/* Options: Date: 2024-12-23 13:12:19 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Authenticate.* //ExcludeTypes: //DefaultImports: */ export module ConsumerApi { // @ts-nocheck export interface IReturn { createResponse(): T; } export interface IPost { } // @DataContract export class ResponseError { // @DataMember(Order=1) public errorCode?: string|null; // @DataMember(Order=2) public fieldName?: string|null; // @DataMember(Order=3) public message?: string|null; // @DataMember(Order=4) public meta?: { [index: string]: string; }|null; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class ResponseStatus { // @DataMember(Order=1) public errorCode?: string|null; // @DataMember(Order=2) public message?: string|null; // @DataMember(Order=3) public stackTrace?: string|null; // @DataMember(Order=4) public errors?: ResponseError[]|null; // @DataMember(Order=5) public meta?: { [index: string]: string; }|null; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class AuthenticateResponse implements IHasSessionId, IHasBearerToken { // @DataMember(Order=1) public userId?: string|null; // @DataMember(Order=2) public sessionId?: string|null; // @DataMember(Order=3) public userName?: string|null; // @DataMember(Order=4) public displayName?: string|null; // @DataMember(Order=5) public referrerUrl?: string|null; // @DataMember(Order=6) public bearerToken?: string|null; // @DataMember(Order=7) public refreshToken?: string|null; // @DataMember(Order=8) public profileUrl?: string|null; // @DataMember(Order=9) public roles?: string[]|null; // @DataMember(Order=10) public permissions?: string[]|null; // @DataMember(Order=11) public responseStatus?: ResponseStatus|null; // @DataMember(Order=12) public meta?: { [index: string]: string; }|null; public constructor(init?: Partial) { (Object as any).assign(this, init); } } /** @description Sign In */ // @Route("/auth", "OPTIONS,GET,POST,DELETE") // @Route("/auth/{provider}", "OPTIONS,GET,POST,DELETE") // @Api(Description="Sign In") // @DataContract export class Authenticate implements IReturn, IPost { /** @description AuthProvider, e.g. credentials */ // @DataMember(Order=1) public provider?: string|null; // @DataMember(Order=2) public state?: string|null; // @DataMember(Order=3) public oauth_token?: string|null; // @DataMember(Order=4) public oauth_verifier?: string|null; // @DataMember(Order=5) public userName?: string|null; // @DataMember(Order=6) public password?: string|null; // @DataMember(Order=7) public rememberMe?: boolean|null; // @DataMember(Order=9) public errorView?: string|null; // @DataMember(Order=10) public nonce?: string|null; // @DataMember(Order=11) public uri?: string|null; // @DataMember(Order=12) public response?: string|null; // @DataMember(Order=13) public qop?: string|null; // @DataMember(Order=14) public nc?: string|null; // @DataMember(Order=15) public cnonce?: string|null; // @DataMember(Order=17) public accessToken?: string|null; // @DataMember(Order=18) public accessTokenSecret?: string|null; // @DataMember(Order=19) public scope?: string|null; // @DataMember(Order=20) public returnUrl?: string|null; // @DataMember(Order=21) public meta?: { [index: string]: string; }|null; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'Authenticate'; } public getMethod() { return 'POST'; } public createResponse() { return new AuthenticateResponse(); } } }