Skip to main content

SessionRequest

Axis Vertex JavaScript SDK: react


Axis Vertex JavaScript SDK: react / SessionRequest

Type Alias: SessionRequest

SessionRequest = InvitationSessionRequest | { action: EmptyAction; purposeRef?: string; } | { action: "authenticate"; body: PrimaryAuthentication; } | { action: "magic"; body: { proof: string; state: string; transactionId: string; }; } | { action: "challenge"; body: { identifier: PrimaryAuthentication["identifier"]; method: "EMAIL_OTP" | "SMS_OTP" | "EMAIL_MAGIC_LINK"; }; } | { action: "authorize"; body: object & ProviderRegistrationProof; } | { action: "mfa"; body: { code: string; method: MfaProofMethod; }; } | { action: "workspace"; body: { owner: string; version: number; workspaceId: string; }; } | { action: "updateProfile"; body: { avatarUrl?: string; displayName?: string; }; } | { action: "changePassword"; body: { currentPassword: string; newPassword: string; }; purposeRef?: string; } | { action: "revokeSession" | "removeCredential"; id: string; purposeRef?: string; } | { action: "switchOrganization"; body: { organizationId: string; }; } | { action: "checkPermission"; body: { organizationId?: string | null; permission: string; }; } | { action: "identityCreate"; body: CreateIdentityOperation | { expectedLoginMethodVersion: number; payload: Record<string, never>; type: "ACCOUNT_DELETE"; }; idempotencyKey: string; } | { action: "identityGet" | "identityCancel"; ref: string; } | { action: "identityReauthenticate"; body: { method: "PASSWORD"; password: string; } | { challengeRef: string; code: string; method: "EMAIL_OTP"; }; ref: string; } | { action: "identityCurrentChallenge"; body: { identifierId: string; }; ref: string; } | { action: "identityStepUpStart"; ref: string; } | { action: "identityStepUpVerify"; body: { challengeRef: string; code: string; }; ref: string; } | { action: "identityWebAuthnStart"; body: { challengeRef: string; }; ref: string; } | { action: "identityWebAuthnVerify"; body: { challengeRef: string; credential: string; requestRef: string; }; ref: string; } | { action: "identityChallenge"; body: { targetProofMethod: "EMAIL_OTP" | "PHONE_OTP"; }; ref: string; } | { action: "identityComplete"; body: CompleteIdentityOperation; ref: string; } | { action: "identityTransfer"; body: { decision: "ACCEPT" | "REJECT"; }; ref: string; } | { action: "identityAuthorize"; body: { methodId?: string; purpose: IdentityProofPurpose; }; ref: string; } | { action: "mfaOperationCreate"; body: { expectedLoginMethodVersion: number; requestId: string; type: MfaOperationType; }; } | { action: "mfaOperationGet" | "mfaOperationBegin" | "mfaOperationProviderCallback" | "mfaOperationCancel"; ref: string; } | { action: "mfaOperationReauthenticate"; body: MfaOperationReauthentication; ref: string; } | { action: "mfaOperationChallenge"; body: { identifierId: string; method: "EMAIL_OTP"; }; ref: string; } | { action: "mfaOperationAuthorize"; body: { methodId: string; }; ref: string; } | { action: "mfaOperationStepUpStart"; ref: string; } | { action: "mfaOperationStepUpVerify"; body: { challengeRef: string; code: string; }; ref: string; } | { action: "mfaOperationWebAuthnStart"; body: { challengeRef: string; }; ref: string; } | { action: "mfaOperationWebAuthnVerify"; body: { challengeRef: string; credential: string; requestRef: string; }; ref: string; } | { action: "mfaOperationComplete"; body: { code?: string; }; ref: string; } | { action: "registrationStart"; body: Omit<StartRegistration, "organizationInvitationToken">; idempotencyKey: string; } | { action: "registrationGet" | "registrationChallenge" | "registrationCancel"; ref: string; } | { action: "registrationComplete"; body: { code: string; }; ref: string; } | { action: "resetRequest"; body: { email: string; }; } | { action: "resetComplete"; body: { newPassword: string; token: string; }; } | { action: "stepUpStart"; body: { reason: string; trigger: string; }; } | { action: "stepUpVerify"; body: { code: string; ref: string; }; } | { action: "stepUpWebAuthn"; body: { ref: string; }; } | { action: "stepUpWebAuthnVerify"; body: { credential: string; ref: string; }; } | { action: "enrollmentReauth"; body: { method: "webauthn"; password: string; }; } | { action: "webauthnVerify"; body: { credential: string; ref: string; }; } | { action: "recoveryVerify"; body: { code: string; }; }