// ---------------------- // // generated using a custom program // // ---------------------- export interface AccessTokenException { AccessTokenError: IssueAccessTokenErrorString; } export interface OAuth2Error { error_description?: string | null ; error_uri?: string | null ; metadata?: string | null ; state?: string | null ; error: OAuth2ErrorTypeString; } export interface RefreshTokenException { RefreshTokenError: IssueRefreshTokenErrorString; } export interface Auth0JWTDataRequestDto { CorePersonId: number; Email: string; UserId: string; } export interface Auth0JWTDataResponseDto { Company?: string | null ; CompanyId?: number | null ; Email?: string | null ; FamilyName?: string | null ; GivenName?: string | null ; IsActiveClient?: boolean; IsActiveEmployee?: boolean; IsPendingEmployee?: boolean; PicCdnFileName?: string | null ; Role: Array; UniqueName?: string | null ; } export interface IpAddressLocation { asn?: string | null ; city?: string | null ; continent_code?: string | null ; country?: string | null ; country_area: number; country_calling_code?: string | null ; country_capital?: string | null ; country_code?: string | null ; country_code_iso3?: string | null ; country_name?: string | null ; country_population: number; country_tld?: string | null ; currency?: string | null ; currency_name?: string | null ; in_eu?: boolean; ip?: string | null ; languages?: string | null ; latitude: number; longitude: number; network?: string | null ; org?: string | null ; postal?: string | null ; region?: string | null ; region_code?: string | null ; timezone?: string | null ; utc_offset?: string | null ; version?: string | null ; } export interface LogAccessTokenUseDto { continueUrl?: string | null ; } export interface OAuthClientDto { Id: number; Name?: string | null ; Scope?: string | null ; } export interface OauthRequest { client_id: string; client_secret: string; } export interface OauthTokenRequest { claim_scopes: Array; client_id?: string | null ; client_secret?: string | null ; code?: string | null ; grant_type: GrantTypeString; password?: string | null ; redirect_uri?: string | null ; refresh_token?: string | null ; second_factor_answer?: string | null ; second_factor_id?: string | null ; second_factor_state_token?: string | null ; second_factor_type?: SecondFactorTypeString | null ; send_challenge?: boolean; username?: string | null ; } export interface OauthTokenRequestForCallManager { claim_scopes: Array; client_id?: string | null ; client_secret?: string | null ; code?: string | null ; grant_type: GrantTypeString; password?: string | null ; redirect_uri?: string | null ; refresh_token?: string | null ; second_factor_answer?: string | null ; second_factor_id?: string | null ; second_factor_type?: SecondFactorTypeString | null ; send_challenge?: boolean; username?: string | null ; } export interface OauthTokenResponse { access_token?: string | null ; expires_in: number; refresh_token?: string | null ; token_type?: TokenTypeString | null ; } export interface ResetPasswordDto { NewPassword: string; ResetCode: string; Username: string; } export interface SecondFactor { display_data?: string | null ; factor_id?: string | null ; type: SecondFactorTypeString; vendor_name?: string | null ; } export interface UserMetaData { AccountStatus?: OAuthAccountStatusString | null ; AccountType?: AccountTypeString | null ; Factors: Array>; FirstName?: string | null ; HasActiveActivationCode?: boolean; HasActivePasswordResetCode?: boolean; HasActiveUnlockCode?: boolean; PersonId: number; ProfilePictureCdnFileName?: string | null ; Username?: string | null ; } export enum IssueAccessTokenError { Unauthorized = 0 } export type IssueAccessTokenErrorString = keyof typeof IssueAccessTokenError; export enum IssueRefreshTokenError { InvalidClientIdentifier = 0, DatabaseError = 1 } export type IssueRefreshTokenErrorString = keyof typeof IssueRefreshTokenError; export enum OAuth2ErrorType { invalid_request = 0, invalid_client = 1, invalid_grant = 2, unauthorized_client = 3, access_denied = 4, unsupported_response_type = 5, invalid_scope = 6, server_error = 7, temporarily_unavailable = 8, missing_factors = 9, account_locked = 10, password_expired = 11, unresolvable = 12 } export type OAuth2ErrorTypeString = keyof typeof OAuth2ErrorType; export enum AccountType { Ldap = 0, Okta = 1, Standard = 2 } export type AccountTypeString = keyof typeof AccountType; export enum GrantType { refresh_token = 0, token = 1, password = 2, client_credentials = 3, authorization_code = 4 } export type GrantTypeString = keyof typeof GrantType; export enum OAuthAccountStatus { Locked = 0, Disabled = 1, PasswordExpired = 2, Active = 3, NeverLoggedIn = 4, NotActivated = 20 } export type OAuthAccountStatusString = keyof typeof OAuthAccountStatus; export enum SecondFactorType { none = 0, push = 1, sms = 2, call = 3, totp = 4, token = 5, token_hardware = 6, token_software = 7, question = 8, web = 9, email = 10, u2f = 11, webauthn = 12, custom = 13, signed_nonce = 14 } export type SecondFactorTypeString = keyof typeof SecondFactorType; export enum TokenType { bearer = 0, mac = 1 } export type TokenTypeString = keyof typeof TokenType;