/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * JSON schema for an error returned by Synapse OAuth 2.0 Services. Used to align error messages with RFC 6749 Section 5.2 * @export * @interface OAuthErrorResponse */ export interface OAuthErrorResponse { /** * A short code for the error encountered, typically defined by OAuth 2 specifications * @type {string} * @memberof OAuthErrorResponse */ error?: string; /** * A human-readable description of the error that occurred. * @type {string} * @memberof OAuthErrorResponse */ error_description?: string; /** * A code to be used by clients to handle the error. * @type {string} * @memberof OAuthErrorResponse */ errorCode?: OAuthErrorResponseErrorCodeEnum; /** * The reason for the error * @type {string} * @memberof OAuthErrorResponse */ reason?: string; } /** * @export */ export declare const OAuthErrorResponseErrorCodeEnum: { readonly PASSWORD_RESET_VIA_EMAIL_REQUIRED: "PASSWORD_RESET_VIA_EMAIL_REQUIRED"; readonly USER_CERTIFICATION_REQUIRED: "USER_CERTIFICATION_REQUIRED"; readonly INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST: "INVALID_TABLE_QUERY_FACET_COLUMN_REQUEST"; readonly OAUTH_CLIENT_NOT_VERIFIED: "OAUTH_CLIENT_NOT_VERIFIED"; readonly TWO_FA_REQUIRED: "TWO_FA_REQUIRED"; readonly UNSUPPORTED_WEBHOOK_DOMAIN: "UNSUPPORTED_WEBHOOK_DOMAIN"; readonly PROJECT_STORAGE_LIMIT_EXCEEDED: "PROJECT_STORAGE_LIMIT_EXCEEDED"; readonly TWO_FA_ENABLED_REQUIRED: "TWO_FA_ENABLED_REQUIRED"; }; export type OAuthErrorResponseErrorCodeEnum = typeof OAuthErrorResponseErrorCodeEnum[keyof typeof OAuthErrorResponseErrorCodeEnum]; /** * Check if a given object implements the OAuthErrorResponse interface. */ export declare function instanceOfOAuthErrorResponse(value: object): value is OAuthErrorResponse; export declare function OAuthErrorResponseFromJSON(json: any): OAuthErrorResponse; export declare function OAuthErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OAuthErrorResponse; export declare function OAuthErrorResponseToJSON(json: any): OAuthErrorResponse; export declare function OAuthErrorResponseToJSONTyped(value?: OAuthErrorResponse | null, ignoreDiscriminator?: boolean): any;