mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-21 10:39:08 +00:00
47 lines
650 B
TypeScript
47 lines
650 B
TypeScript
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[]
|
|
} |