import type { StepType } from './enums.js'; export declare const callbackType: { readonly BooleanAttributeInputCallback: "BooleanAttributeInputCallback"; readonly ChoiceCallback: "ChoiceCallback"; readonly ConfirmationCallback: "ConfirmationCallback"; readonly DeviceProfileCallback: "DeviceProfileCallback"; readonly HiddenValueCallback: "HiddenValueCallback"; readonly KbaCreateCallback: "KbaCreateCallback"; readonly MetadataCallback: "MetadataCallback"; readonly NameCallback: "NameCallback"; readonly NumberAttributeInputCallback: "NumberAttributeInputCallback"; readonly PasswordCallback: "PasswordCallback"; readonly PingOneProtectEvaluationCallback: "PingOneProtectEvaluationCallback"; readonly PingOneProtectInitializeCallback: "PingOneProtectInitializeCallback"; readonly PollingWaitCallback: "PollingWaitCallback"; readonly ReCaptchaCallback: "ReCaptchaCallback"; readonly ReCaptchaEnterpriseCallback: "ReCaptchaEnterpriseCallback"; readonly RedirectCallback: "RedirectCallback"; readonly SelectIdPCallback: "SelectIdPCallback"; readonly StringAttributeInputCallback: "StringAttributeInputCallback"; readonly SuspendedTextOutputCallback: "SuspendedTextOutputCallback"; readonly TermsAndConditionsCallback: "TermsAndConditionsCallback"; readonly TextInputCallback: "TextInputCallback"; readonly TextOutputCallback: "TextOutputCallback"; readonly ValidatedCreatePasswordCallback: "ValidatedCreatePasswordCallback"; readonly ValidatedCreateUsernameCallback: "ValidatedCreateUsernameCallback"; }; export type CallbackType = (typeof callbackType)[keyof typeof callbackType]; export interface NameValue { name: string; value: unknown; } /** * Represents the authentication tree API callback schema. */ export interface Callback { _id?: number; input?: NameValue[]; output: NameValue[]; type: CallbackType; } /** * Base interface for all types of authentication step responses. */ export interface AuthResponse { type: StepType; } /** * Represents details of a failure in an authentication step. */ export interface FailureDetail { failureUrl?: string; } /** * Represents the authentication tree API payload schema. */ export interface Step { authId?: string; callbacks?: Callback[]; code?: number; description?: string; detail?: StepDetail; header?: string; message?: string; ok?: string; realm?: string; reason?: string; stage?: string; status?: number; successUrl?: string; tokenId?: string; } /** * Represents details of a failure in an authentication step. */ export interface StepDetail { failedPolicyRequirements?: FailedPolicyRequirement[]; failureUrl?: string; result?: boolean; } /** * Represents failed policies for a matching property. */ export interface FailedPolicyRequirement { policyRequirements: PolicyRequirement[]; property: string; } /** * Represents a failed policy policy and failed policy params. */ export interface PolicyRequirement { params?: Partial; policyRequirement: string; } export interface PolicyParams { [key: string]: unknown; disallowedFields: string; duplicateValue: string; forbiddenChars: string; maxLength: number; minLength: number; numCaps: number; numNums: number; } export type ConfigurablePaths = keyof CustomPathConfig; /** * Optional configuration for custom paths for actions */ export interface CustomPathConfig { authenticate?: string; authorize?: string; accessToken?: string; endSession?: string; userInfo?: string; revoke?: string; sessions?: string; } //# sourceMappingURL=am-callback.types.d.ts.map