import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as MyAccount from "../../../index.js"; export declare namespace AuthenticationMethods { interface Options extends BaseClientOptions { } interface RequestOptions extends BaseRequestOptions { } } export declare class AuthenticationMethods { protected readonly _options: AuthenticationMethods.Options; constructor(_options: AuthenticationMethods.Options); /** * Retrieve detailed list of authentication methods belonging to the authenticated user. * * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.list() */ list(requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __list; /** * Start the enrollment of a supported authentication method. * * @param {MyAccount.CreateAuthenticationMethodRequestContent} request * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.create({ * type: "passkey" * }) */ create(request: MyAccount.CreateAuthenticationMethodRequestContent, requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a single authentication method belonging to the authenticated user. * * @param {MyAccount.PathAuthenticationMethodId} authenticationMethodId - Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications. * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.NotFoundError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.get("authentication_method_id") */ get(authenticationMethodId: MyAccount.PathAuthenticationMethodId, requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __get; /** * Deletes a single authentication method belonging to the authenticated user. * * @param {MyAccount.PathAuthenticationMethodId} authenticationMethodId - Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications. * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.delete("authentication_method_id") */ delete(authenticationMethodId: MyAccount.PathAuthenticationMethodId, requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __delete; /** * Updates a single authentication method * * @param {MyAccount.PathAuthenticationMethodId} authenticationMethodId - Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications. * @param {MyAccount.UpdateAuthenticationMethodRequestContent} request * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.update("authentication_method_id") */ update(authenticationMethodId: MyAccount.PathAuthenticationMethodId, request?: MyAccount.UpdateAuthenticationMethodRequestContent, requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __update; /** * Confirm the enrollment of a supported authentication method. * * @param {MyAccount.PathAuthenticationMethodId} authenticationMethodId - Authentication Method ID. This value is part of the Location header returned when creating an authentication method. It should be used as it is, without any modifications. * @param {MyAccount.VerifyAuthenticationMethodRequestContent} request * @param {AuthenticationMethods.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link MyAccount.BadRequestError} * @throws {@link MyAccount.UnauthorizedError} * @throws {@link MyAccount.ForbiddenError} * @throws {@link MyAccount.TooManyRequestsError} * * @example * await client.authenticationMethods.verify("authentication_method_id", { * auth_session: "auth_session", * authn_response: { * id: "id", * rawId: "rawId", * response: { * attestationObject: "attestationObject", * clientDataJSON: "clientDataJSON" * }, * type: "public-key" * } * }) */ verify(authenticationMethodId: MyAccount.PathAuthenticationMethodId, request: MyAccount.VerifyAuthenticationMethodRequestContent, requestOptions?: AuthenticationMethods.RequestOptions): core.HttpResponsePromise; private __verify; protected _getAuthorizationHeader(endpointMetadata: core.EndpointMetadata): Promise; }