export interface ResetPasswordMfaPhoneChallengeMembers extends BaseMembers { /** * Access to client-specific information (e.g., client ID, name). * @type {ClientMembers} */ client: ClientMembers; /** * Access to organization-specific information, if applicable. * @type {OrganizationMembers} */ organization: OrganizationMembers; /** * Access to prompt details (e.g., prompt name). * @type {PromptMembers} */ prompt: PromptMembers; /** * Access to the specific properties and data of the 'reset-password-mfa-phone-challenge' 画面. * @type {ScreenMembersOnResetPasswordMfaPhoneChallenge} */ screen: ScreenMembersOnResetPasswordMfaPhoneChallenge; /** * Access to the current トランザクション details (e.g., state, errors). * @type {TransactionMembers} */ transaction: TransactionMembers; /** * Sends the 確認コード to the user's phone via the specified method (SMS or Voice). * This action corresponds to the user clicking the "Send Code via SMS" or "Send Code via Voice Call" button. * It triggers the Auth0 backend to initiate the code delivery process. * * @param {ContinueOptions} payload - The options specifying the delivery type ('sms' or 'voice') and any custom data. * @returns {Promise<void>} A promise that resolves when the action is successfully submitted to the server. * @throws {Error} Throws an error if the submission fails (e.g., network issue, invalid state). * @example * ```typescript * import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge'; * * const screen = new ResetPasswordMfaPhoneChallenge(); * * // Send code via SMS * await screen.continue({ type: 'sms' }); * * // Send code via Voice Call * await screen.continue({ type: 'voice' }); * ``` */ continue(payload: ContinueOptions): Promise<void>; /** * 別のMFA方式を選択できる画面にユーザーを遷移させます。 * このアクションは、ユーザーが「Try Another Method」ボタンをクリックした場合に対応します。 * * @param {TryAnotherMethodOptions} payload - 現在のチャレンジの種類(`sms` または `voice`)およびカスタムデータを指定するオプション。`type` フィールドは、ユーザーがどのフローから離脱するかをバックエンドに通知するために必要です。 * @returns {Promise<void>} アクションがサーバーに正常に送信されると解決されるPromise。 * @throws {Error} 送信に失敗した場合にエラーをスローします。 * @example * ```typescript * import ResetPasswordMfaPhoneChallenge from '@auth0/auth0-acul-js/reset-password-mfa-phone-challenge'; * * const screen = new ResetPasswordMfaPhoneChallenge(); * * // If the user was presented with SMS option initially: * await screen.tryAnotherMethod({ type: 'sms' }); * * // If the user was presented with Voice option initially: * await screen.tryAnotherMethod({ type: 'voice' }); * ``` */ tryAnotherMethod(payload: TryAnotherMethodOptions): Promise<void>;}