import { ApiProperty } from "@nestjs/swagger"; export class CreateIdentityProvider { @ApiProperty() name: string; @ApiProperty() clientId: string; @ApiProperty() clientSecret: string; @ApiProperty() issuerUrl: string; @ApiProperty() permissions: number[]; } export class IdentityProviderResponse { @ApiProperty() id: string; @ApiProperty() name: string; @ApiProperty() clientId: string; @ApiProperty() issueUrl: string; @ApiProperty() permissions: { id: number; name: string; }[]; } export class IdentityProviderListResponse { @ApiProperty() providers: IdentityProviderResponse[] }