import { inspect, InspectOptions } from "util"; import V2 from "../../V2"; export declare class VerifyPasskeysFactorRequest { /** * A [base64url](https://base64.guru/standards/base64url) encoded representation of `rawId`. */ "id"?: string; /** * The globally unique identifier for this `PublicKeyCredential`. */ "rawId"?: string; /** * A string that indicates the mechanism by which the WebAuthn implementation is attached to the authenticator at the time the associated `navigator.credentials.create()` or `navigator.credentials.get()` call completes. */ "authenticatorAttachment"?: string; /** * The valid credential types supported by the API. The values of this enumeration are used for versioning the `AuthenticatorAssertion` and `AuthenticatorAttestation` structures according to the type of the authenticator. */ "type"?: string; "response": VerifyPasskeysFactorRequestResponse; } /** * The result of a WebAuthn credential registration via `navigator.credentials.create()`, as specified in [AuthenticatorAttestationResponse](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse). */ export declare class VerifyPasskeysFactorRequestResponse { /** * The authenticator data and an attestation statement for a new key pair generated by the authenticator. */ "attestationObject"?: string; /** * This property contains the JSON-compatible serialization of the data passed from the browser to the authenticator in order to generate this credential. */ "clientDataJSON"?: string; /** * An array of strings providing hints as to the methods the client could use to communicate with the relevant authenticator of the public key credential to retrieve. */ "transports"?: Array; } /** * Options to pass to update a NewVerifyFactorInstance */ export interface NewVerifyFactorListInstanceUpdateOptions { /** */ verifyPasskeysFactorRequest: VerifyPasskeysFactorRequest; } export interface NewVerifyFactorSolution { serviceSid: string; } export interface NewVerifyFactorListInstance { _version: V2; _solution: NewVerifyFactorSolution; _uri: string; /** * Update a NewVerifyFactorInstance * * @param params - Body for request * @param headers - header params for request * @param callback - Callback to handle processed record * * @returns Resolves to processed NewVerifyFactorInstance */ update(params: VerifyPasskeysFactorRequest, headers?: any, callback?: (error: Error | null, item?: NewVerifyFactorInstance) => any): Promise; /** * Provide a user-friendly representation */ toJSON(): any; [inspect.custom](_depth: any, options: InspectOptions): any; } export declare function NewVerifyFactorListInstance(version: V2, serviceSid: string): NewVerifyFactorListInstance; interface NewVerifyFactorResource { sid: string; account_sid: string; service_sid: string; entity_sid: string; identity: string; date_created: Date; date_updated: Date; friendly_name: string; status: string; factor_type: string; config: any; metadata: any; url: string; } export declare class NewVerifyFactorInstance { protected _version: V2; constructor(_version: V2, payload: NewVerifyFactorResource, serviceSid: string); /** * A 34 character string that uniquely identifies this Factor. */ sid: string; /** * The unique SID identifier of the Account. */ accountSid: string; /** * The unique SID identifier of the Service. */ serviceSid: string; /** * The unique SID identifier of the Entity. */ entitySid: string; /** * Customer unique identity for the Entity owner of the Factor. */ identity: string; /** * The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. */ dateCreated: Date; /** * The date that this Factor was updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. */ dateUpdated: Date; /** * A human readable description of this resource, up to 64 characters. */ friendlyName: string; /** * The Status of this Factor. One of `unverified` or `verified`. */ status: string; /** * The Type of this Factor. Currently `push` and `totp` are supported. */ factorType: string; /** * An object that contains configurations specific to a `factor_type`. */ config: any; /** * Custom metadata associated with the factor. */ metadata: any; /** * The URL of this resource. */ url: string; /** * Provide a user-friendly representation * * @returns Object */ toJSON(): { sid: string; accountSid: string; serviceSid: string; entitySid: string; identity: string; dateCreated: Date; dateUpdated: Date; friendlyName: string; status: string; factorType: string; config: any; metadata: any; url: string; }; [inspect.custom](_depth: any, options: InspectOptions): string; } export {};