/** * OAuth 2.0 grant type */ export declare enum SdPlatformAuthGrantType { Password = "password", RefreshToken = "refresh_token", Code = "authorization_code" } /** * DTO for ShapeDiver Platform Authentication API (OAuth 2.0) */ export interface SdPlatformAuthRequest { /** * The grant type. */ grant_type: SdPlatformAuthGrantType; /** * The client id. */ client_id?: string | null; /** * The client secret. */ client_secret?: string | null; /** * The refresh token. */ refresh_token?: string | null; /** * The username. */ username?: string | null; /** * The password. */ password?: string | null; /** * The code. */ code?: string | null; /** * The state. Used if the grant type is "authorization_code", * if we are authenticating against an Open Id provider. */ state?: string | null; /** * The code verifier. Used if the grant type is "authorization_code", * if we are authenticating an application against the ShapeDiver Platform using PKCE. */ code_verifier?: string | null; /** * The redirect URI. Used if the grant type is "authorization_code", * if we are authenticating an application against the ShapeDiver Platform using PKCE. */ redirect_uri?: string | null; } export declare enum SdPlatformRequestAuthorizationCodeResponseType { Code = "code" } export declare enum SdPlatformRequestAuthorizationCodeCodeChallengeMethod { S256 = "S256" } export interface SdPlatformRequestAuthorizationCode { /** * The uri to be verified. */ redirect_uri: string; /** * Must be present. */ state: string; /** * Must be present and must be 'code'. */ response_type: SdPlatformRequestAuthorizationCodeResponseType; /** * Must be present. */ code_challenge: string; /** * Must be 'S256'. */ code_challenge_method: SdPlatformRequestAuthorizationCodeCodeChallengeMethod; /** * Must be present. */ client_id: string; } //# sourceMappingURL=SdPlatformAuthRequest.d.ts.map