import { PasskeyDetails as PasskeyDetails$1 } from 'wallets/types'; import { IPasskeyHandler as IPasskeyHandler$1 } from 'core/passkey'; import { User as User$2, ThirdPartyOAuthProvider as ThirdPartyOAuthProvider$1 } from 'types'; import { Account } from 'core/configuration/account'; import { Hex } from 'wallets/evm/types'; declare class TypedEventEmitter> { private emitter; on(event: K, listener: (...args: T[K]) => void): this; off(event: K, listener: (...args: T[K]) => void): this; emit(event: K, ...args: T[K]): boolean; once(event: K, listener: (...args: T[K]) => void): this; removeAllListeners(event?: K): this; listenerCount(event: K): number; listeners(event: K): ((...args: T[K]) => void)[]; } declare enum ShieldAuthProvider { OPENFORT = "openfort", CUSTOM = "custom" } interface ShieldAuthOptions { authProvider: ShieldAuthProvider; encryptionPart?: string; encryptionSession?: string; externalUserId?: string; apiKey?: string; apiSecret?: string; } interface ShieldOptions { baseURL?: string; apiKey: string; } // TypeScript Version: 4.7 type StringLiteralsOrString = Literals | (string & {}); type AxiosHeaderValue = AxiosHeaders | string | string[] | number | boolean | null; interface RawAxiosHeaders { [key: string]: AxiosHeaderValue; } type MethodsHeaders = Partial< { [Key in Method as Lowercase]: AxiosHeaders; } & { common: AxiosHeaders } >; type AxiosHeaderMatcher = | string | RegExp | ((this: AxiosHeaders, value: string, name: string) => boolean); type AxiosHeaderParser = (this: AxiosHeaders, value: AxiosHeaderValue, header: string) => any; declare class AxiosHeaders { constructor(headers?: RawAxiosHeaders | AxiosHeaders | string); [key: string]: any; set( headerName?: string, value?: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher ): AxiosHeaders; set(headers?: RawAxiosHeaders | AxiosHeaders | string, rewrite?: boolean): AxiosHeaders; get(headerName: string, parser: RegExp): RegExpExecArray | null; get(headerName: string, matcher?: true | AxiosHeaderParser): AxiosHeaderValue; has(header: string, matcher?: AxiosHeaderMatcher): boolean; delete(header: string | string[], matcher?: AxiosHeaderMatcher): boolean; clear(matcher?: AxiosHeaderMatcher): boolean; normalize(format: boolean): AxiosHeaders; concat( ...targets: Array ): AxiosHeaders; toJSON(asStrings?: boolean): RawAxiosHeaders; static from(thing?: AxiosHeaders | RawAxiosHeaders | string): AxiosHeaders; static accessor(header: string | string[]): AxiosHeaders; static concat( ...targets: Array ): AxiosHeaders; setContentType(value: ContentType, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getContentType(parser?: RegExp): RegExpExecArray | null; getContentType(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasContentType(matcher?: AxiosHeaderMatcher): boolean; setContentLength(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getContentLength(parser?: RegExp): RegExpExecArray | null; getContentLength(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasContentLength(matcher?: AxiosHeaderMatcher): boolean; setAccept(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getAccept(parser?: RegExp): RegExpExecArray | null; getAccept(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasAccept(matcher?: AxiosHeaderMatcher): boolean; setUserAgent(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getUserAgent(parser?: RegExp): RegExpExecArray | null; getUserAgent(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasUserAgent(matcher?: AxiosHeaderMatcher): boolean; setContentEncoding(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getContentEncoding(parser?: RegExp): RegExpExecArray | null; getContentEncoding(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasContentEncoding(matcher?: AxiosHeaderMatcher): boolean; setAuthorization(value: AxiosHeaderValue, rewrite?: boolean | AxiosHeaderMatcher): AxiosHeaders; getAuthorization(parser?: RegExp): RegExpExecArray | null; getAuthorization(matcher?: AxiosHeaderMatcher): AxiosHeaderValue; hasAuthorization(matcher?: AxiosHeaderMatcher): boolean; getSetCookie(): string[]; [Symbol.iterator](): IterableIterator<[string, AxiosHeaderValue]>; } type CommonRequestHeadersList = | 'Accept' | 'Content-Length' | 'User-Agent' | 'Content-Encoding' | 'Authorization' | 'Location'; type ContentType = | AxiosHeaderValue | 'text/html' | 'text/plain' | 'multipart/form-data' | 'application/json' | 'application/x-www-form-urlencoded' | 'application/octet-stream'; type RawAxiosRequestHeaders = Partial< RawAxiosHeaders & { [Key in CommonRequestHeadersList]: AxiosHeaderValue; } & { 'Content-Type': ContentType; } >; type AxiosRequestHeaders = RawAxiosRequestHeaders & AxiosHeaders; type CommonResponseHeadersList = | 'Server' | 'Content-Type' | 'Content-Length' | 'Cache-Control' | 'Content-Encoding'; type CommonResponseHeaderKey = CommonResponseHeadersList | Lowercase; type RawCommonResponseHeaders = { [Key in CommonResponseHeaderKey]: AxiosHeaderValue; } & { 'set-cookie': string[]; }; type RawAxiosResponseHeaders = Partial; type AxiosResponseHeaders = RawAxiosResponseHeaders & AxiosHeaders; interface AxiosRequestTransformer { (this: InternalAxiosRequestConfig, data: any, headers: AxiosRequestHeaders): any; } interface AxiosResponseTransformer { ( this: InternalAxiosRequestConfig, data: any, headers: AxiosResponseHeaders, status?: number ): any; } interface AxiosAdapter { (config: InternalAxiosRequestConfig): AxiosPromise; } interface AxiosBasicCredentials { username: string; password: string; } interface AxiosProxyConfig { host: string; port: number; auth?: AxiosBasicCredentials; protocol?: string; } declare enum HttpStatusCode { Continue = 100, SwitchingProtocols = 101, Processing = 102, EarlyHints = 103, Ok = 200, Created = 201, Accepted = 202, NonAuthoritativeInformation = 203, NoContent = 204, ResetContent = 205, PartialContent = 206, MultiStatus = 207, AlreadyReported = 208, ImUsed = 226, MultipleChoices = 300, MovedPermanently = 301, Found = 302, SeeOther = 303, NotModified = 304, UseProxy = 305, Unused = 306, TemporaryRedirect = 307, PermanentRedirect = 308, BadRequest = 400, Unauthorized = 401, PaymentRequired = 402, Forbidden = 403, NotFound = 404, MethodNotAllowed = 405, NotAcceptable = 406, ProxyAuthenticationRequired = 407, RequestTimeout = 408, Conflict = 409, Gone = 410, LengthRequired = 411, PreconditionFailed = 412, PayloadTooLarge = 413, UriTooLong = 414, UnsupportedMediaType = 415, RangeNotSatisfiable = 416, ExpectationFailed = 417, ImATeapot = 418, MisdirectedRequest = 421, UnprocessableEntity = 422, Locked = 423, FailedDependency = 424, TooEarly = 425, UpgradeRequired = 426, PreconditionRequired = 428, TooManyRequests = 429, RequestHeaderFieldsTooLarge = 431, UnavailableForLegalReasons = 451, InternalServerError = 500, NotImplemented = 501, BadGateway = 502, ServiceUnavailable = 503, GatewayTimeout = 504, HttpVersionNotSupported = 505, VariantAlsoNegotiates = 506, InsufficientStorage = 507, LoopDetected = 508, NotExtended = 510, NetworkAuthenticationRequired = 511, } type UppercaseMethod = | 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY'; type Method = (UppercaseMethod | Lowercase) & {}; type ResponseType = | 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata'; type UppercaseResponseEncoding = | 'ASCII' | 'ANSI' | 'BINARY' | 'BASE64' | 'BASE64URL' | 'HEX' | 'LATIN1' | 'UCS-2' | 'UCS2' | 'UTF-8' | 'UTF8' | 'UTF16LE'; type responseEncoding = ( | UppercaseResponseEncoding | Lowercase ) & {}; interface TransitionalOptions { silentJSONParsing?: boolean; forcedJSONParsing?: boolean; clarifyTimeoutError?: boolean; legacyInterceptorReqResOrdering?: boolean; } interface GenericAbortSignal { readonly aborted: boolean; onabort?: ((...args: any) => any) | null; addEventListener?: (...args: any) => any; removeEventListener?: (...args: any) => any; } interface FormDataVisitorHelpers { defaultVisitor: SerializerVisitor; convertValue: (value: any) => any; isVisitable: (value: any) => boolean; } interface SerializerVisitor { ( this: GenericFormData, value: any, key: string | number, path: null | Array, helpers: FormDataVisitorHelpers ): boolean; } interface SerializerOptions { visitor?: SerializerVisitor; dots?: boolean; metaTokens?: boolean; indexes?: boolean | null; } // tslint:disable-next-line interface FormSerializerOptions extends SerializerOptions {} interface ParamEncoder { (value: any, defaultEncoder: (value: any) => any): any; } interface CustomParamsSerializer { (params: Record, options?: ParamsSerializerOptions): string; } interface ParamsSerializerOptions extends SerializerOptions { encode?: ParamEncoder; serialize?: CustomParamsSerializer; } type MaxUploadRate = number; type MaxDownloadRate = number; type BrowserProgressEvent = any; interface AxiosProgressEvent { loaded: number; total?: number; progress?: number; bytes: number; rate?: number; estimated?: number; upload?: boolean; download?: boolean; event?: BrowserProgressEvent; lengthComputable: boolean; } type Milliseconds = number; type AxiosAdapterName = StringLiteralsOrString<'xhr' | 'http' | 'fetch'>; type AxiosAdapterConfig = AxiosAdapter | AxiosAdapterName; type AddressFamily = 4 | 6 | undefined; interface LookupAddressEntry { address: string; family?: AddressFamily; } type LookupAddress = string | LookupAddressEntry; interface AxiosRequestConfig { url?: string; method?: StringLiteralsOrString; baseURL?: string; allowAbsoluteUrls?: boolean; transformRequest?: AxiosRequestTransformer | AxiosRequestTransformer[]; transformResponse?: AxiosResponseTransformer | AxiosResponseTransformer[]; headers?: (RawAxiosRequestHeaders & MethodsHeaders) | AxiosHeaders; params?: any; paramsSerializer?: ParamsSerializerOptions | CustomParamsSerializer; data?: D; timeout?: Milliseconds; timeoutErrorMessage?: string; withCredentials?: boolean; adapter?: AxiosAdapterConfig | AxiosAdapterConfig[]; auth?: AxiosBasicCredentials; responseType?: ResponseType; responseEncoding?: StringLiteralsOrString; xsrfCookieName?: string; xsrfHeaderName?: string; onUploadProgress?: (progressEvent: AxiosProgressEvent) => void; onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void; maxContentLength?: number; validateStatus?: ((status: number) => boolean) | null; maxBodyLength?: number; maxRedirects?: number; maxRate?: number | [MaxUploadRate, MaxDownloadRate]; beforeRedirect?: ( options: Record, responseDetails: { headers: Record; statusCode: HttpStatusCode; }, requestDetails: { headers: Record; url: string; method: string; }, ) => void; socketPath?: string | null; allowedSocketPaths?: string | string[] | null; transport?: any; httpAgent?: any; httpsAgent?: any; proxy?: AxiosProxyConfig | false; cancelToken?: CancelToken | undefined; decompress?: boolean; transitional?: TransitionalOptions; signal?: GenericAbortSignal; insecureHTTPParser?: boolean; env?: { FormData?: new (...args: any[]) => object; fetch?: (input: URL | Request | string, init?: RequestInit) => Promise; Request?: new (input: URL | Request | string, init?: RequestInit) => Request; Response?: new ( body?: ArrayBuffer | ArrayBufferView | Blob | FormData | URLSearchParams | string | null, init?: ResponseInit ) => Response; }; formSerializer?: FormSerializerOptions; family?: AddressFamily; lookup?: | (( hostname: string, options: object, cb: ( err: Error | null, address: LookupAddress | LookupAddress[], family?: AddressFamily ) => void ) => void) | (( hostname: string, options: object ) => Promise< [address: LookupAddressEntry | LookupAddressEntry[], family?: AddressFamily] | LookupAddress >); withXSRFToken?: boolean | ((config: InternalAxiosRequestConfig) => boolean | undefined); parseReviver?: (this: any, key: string, value: any, context?: { source?: string }) => any; fetchOptions?: Omit | Record; httpVersion?: 1 | 2; http2Options?: Record & { sessionTimeout?: number; }; formDataHeaderPolicy?: 'legacy' | 'content-only'; redact?: string[]; } interface InternalAxiosRequestConfig extends AxiosRequestConfig { headers: AxiosRequestHeaders; } interface HeadersDefaults { common: RawAxiosRequestHeaders; delete: RawAxiosRequestHeaders; get: RawAxiosRequestHeaders; head: RawAxiosRequestHeaders; post: RawAxiosRequestHeaders; put: RawAxiosRequestHeaders; patch: RawAxiosRequestHeaders; options?: RawAxiosRequestHeaders; purge?: RawAxiosRequestHeaders; link?: RawAxiosRequestHeaders; unlink?: RawAxiosRequestHeaders; query?: RawAxiosRequestHeaders; } interface AxiosDefaults extends Omit, 'headers'> { headers: HeadersDefaults; } interface CreateAxiosDefaults extends Omit, 'headers'> { headers?: RawAxiosRequestHeaders | AxiosHeaders | Partial; } interface AxiosResponse { data: T; status: number; statusText: string; headers: (H & RawAxiosResponseHeaders) | AxiosResponseHeaders; config: InternalAxiosRequestConfig; request?: any; } type AxiosPromise = Promise>; interface Cancel { message: string | undefined; } interface CancelToken { promise: Promise; reason?: Cancel; throwIfRequested(): void; } interface AxiosInterceptorOptions { synchronous?: boolean; runWhen?: ((config: InternalAxiosRequestConfig) => boolean) | null; } type AxiosInterceptorFulfilled = (value: T) => T | Promise; type AxiosInterceptorRejected = (error: any) => any; type AxiosRequestInterceptorUse = ( onFulfilled?: AxiosInterceptorFulfilled | null, onRejected?: AxiosInterceptorRejected | null, options?: AxiosInterceptorOptions ) => number; type AxiosResponseInterceptorUse = ( onFulfilled?: AxiosInterceptorFulfilled | null, onRejected?: AxiosInterceptorRejected | null ) => number; interface AxiosInterceptorHandler { fulfilled: AxiosInterceptorFulfilled; rejected?: AxiosInterceptorRejected; synchronous: boolean; runWhen?: ((config: InternalAxiosRequestConfig) => boolean) | null; } interface AxiosInterceptorManager { use: V extends AxiosResponse ? AxiosResponseInterceptorUse : AxiosRequestInterceptorUse; eject(id: number): void; clear(): void; handlers?: Array>; } declare class Axios { constructor(config?: AxiosRequestConfig); defaults: AxiosDefaults; interceptors: { request: AxiosInterceptorManager; response: AxiosInterceptorManager; }; getUri(config?: AxiosRequestConfig): string; request, D = any>(config: AxiosRequestConfig): Promise; get, D = any>( url: string, config?: AxiosRequestConfig ): Promise; delete, D = any>( url: string, config?: AxiosRequestConfig ): Promise; head, D = any>( url: string, config?: AxiosRequestConfig ): Promise; options, D = any>( url: string, config?: AxiosRequestConfig ): Promise; post, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; put, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; patch, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; postForm, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; putForm, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; patchForm, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; query, D = any>( url: string, data?: D, config?: AxiosRequestConfig ): Promise; } interface AxiosInstance extends Axios { , D = any>(config: AxiosRequestConfig): Promise; , D = any>(url: string, config?: AxiosRequestConfig): Promise; create(config?: CreateAxiosDefaults): AxiosInstance; defaults: Omit & { headers: HeadersDefaults & { [key: string]: AxiosHeaderValue; }; }; } interface GenericFormData { append(name: string, value: any, options?: any): any; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ interface ConfigurationParameters { apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); username?: string; password?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); basePath?: string; baseOptions?: any; formDataCtor?: new () => any; } declare class Configuration { /** * parameter for apiKey security * @param name security name * @memberof Configuration */ apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); /** * parameter for basic security * * @type {string} * @memberof Configuration */ username?: string; /** * parameter for basic security * * @type {string} * @memberof Configuration */ password?: string; /** * parameter for oauth2 security * @param name security name * @param scopes oauth2 scope * @memberof Configuration */ accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); /** * override base path * * @type {string} * @memberof Configuration */ basePath?: string; /** * base options for axios calls * * @type {any} * @memberof Configuration */ baseOptions?: any; /** * The FormData constructor that will be used to create multipart form data * requests. You can inject this here so that execution environments that * do not support the FormData class can still run the generated client. * * @type {new () => FormData} */ formDataCtor?: new () => any; constructor(param?: ConfigurationParameters); /** * Check if the given MIME is a JSON MIME. * JSON MIME examples: * application/json * application/json; charset=UTF8 * APPLICATION/JSON * application/vnd.company+json * @param mime - MIME (Multipurpose Internet Mail Extensions) * @return True if the given MIME is JSON, false otherwise. */ isJsonMime(mime: string): boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @class BaseAPI */ declare class BaseAPI { protected basePath: string; protected axios: AxiosInstance; protected configuration: Configuration | undefined; constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance); } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface EntityIdResponse */ interface EntityIdResponse$1 { /** * * @type {string} * @memberof EntityIdResponse */ 'id': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypeACCOUNT: { readonly ACCOUNT: "account"; }; type EntityTypeACCOUNT = typeof EntityTypeACCOUNT[keyof typeof EntityTypeACCOUNT]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * V9 UserOperation extends V8 with paymasterSignature field. paymasterSignature enables parallelizable Paymaster signing - data can be passed to the Paymaster after the UserOperation is signed by the wallet. * @export * @interface UserOperationV9 */ interface UserOperationV9$1 { /** * The data to pass to the `sender` during the main execution call. * @type {string} * @memberof UserOperationV9 */ 'callData': string; /** * The amount of gas to allocate the main execution call * @type {string} * @memberof UserOperationV9 */ 'callGasLimit': string; /** * Account init code. Only for new accounts. * @type {string} * @memberof UserOperationV9 */ 'factory'?: string; /** * Factory data for account creation. * @type {string} * @memberof UserOperationV9 */ 'factoryData'?: string; /** * Maximum fee per gas. * @type {string} * @memberof UserOperationV9 */ 'maxFeePerGas': string; /** * Maximum priority fee per gas. * @type {string} * @memberof UserOperationV9 */ 'maxPriorityFeePerGas': string; /** * Anti-replay parameter. * @type {string} * @memberof UserOperationV9 */ 'nonce': string; /** * Paymaster address. * @type {string} * @memberof UserOperationV9 */ 'paymaster'?: string; /** * Paymaster verification gas limit. * @type {string} * @memberof UserOperationV9 */ 'paymasterVerificationGasLimit'?: string; /** * Paymaster post-operation gas limit. * @type {string} * @memberof UserOperationV9 */ 'paymasterPostOpGasLimit'?: string; /** * Paymaster data. * @type {string} * @memberof UserOperationV9 */ 'paymasterData'?: string; /** * Extra gas to pay the bundler. * @type {string} * @memberof UserOperationV9 */ 'preVerificationGas': string; /** * The account making the operation. * @type {string} * @memberof UserOperationV9 */ 'sender': string; /** * Data passed into the account to verify authorization. * @type {string} * @memberof UserOperationV9 */ 'signature': string; /** * The amount of gas to allocate for the verification step. * @type {string} * @memberof UserOperationV9 */ 'verificationGasLimit': string; /** * Paymaster signature - enables parallelizable signing. This field does not affect the UserOperation hash, allowing the sender and paymaster to sign in parallel. * @type {string} * @memberof UserOperationV9 */ 'paymasterSignature'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountInfoPost200ResponseUser */ interface AccountInfoPost200ResponseUser { /** * * @type {string} * @memberof AccountInfoPost200ResponseUser */ 'id': string; /** * * @type {string} * @memberof AccountInfoPost200ResponseUser */ 'name'?: string; /** * * @type {string} * @memberof AccountInfoPost200ResponseUser */ 'email'?: string; /** * * @type {string} * @memberof AccountInfoPost200ResponseUser */ 'image'?: string; /** * * @type {boolean} * @memberof AccountInfoPost200ResponseUser */ 'emailVerified': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountInfoPost200Response */ interface AccountInfoPost200Response { /** * * @type {AccountInfoPost200ResponseUser} * @memberof AccountInfoPost200Response */ 'user': AccountInfoPost200ResponseUser; /** * * @type {{ [key: string]: any; }} * @memberof AccountInfoPost200Response */ 'data': { [key: string]: any; }; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountInfoPostRequest */ interface AccountInfoPostRequest { /** * The provider given account id for which to get the account info * @type {string} * @memberof AccountInfoPostRequest */ 'accountId': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const AccountResponseExpandable: { readonly Player: "player"; readonly TransactionIntents: "transactionIntents"; }; type AccountResponseExpandable = typeof AccountResponseExpandable[keyof typeof AccountResponseExpandable]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const PrismaSortOrder: { readonly Asc: "asc"; readonly Desc: "desc"; }; type PrismaSortOrder = typeof PrismaSortOrder[keyof typeof PrismaSortOrder]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypePLAYER: { readonly PLAYER: "player"; }; type EntityTypePLAYER = typeof EntityTypePLAYER[keyof typeof EntityTypePLAYER]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PlayerMetadataValue */ interface PlayerMetadataValue$1 { } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountResponsePlayer */ interface AccountResponsePlayer { /** * * @type {string} * @memberof AccountResponsePlayer */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof AccountResponsePlayer */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof AccountResponsePlayer */ 'createdAt': number; /** * * @type {string} * @memberof AccountResponsePlayer */ 'name': string; /** * * @type {string} * @memberof AccountResponsePlayer */ 'description'?: string; /** * * @type {{ [key: string]: PlayerMetadataValue; }} * @memberof AccountResponsePlayer */ 'metadata'?: { [key: string]: PlayerMetadataValue$1; }; /** * * @type {Array} * @memberof AccountResponsePlayer */ 'transactionIntents'?: Array; /** * * @type {Array} * @memberof AccountResponsePlayer */ 'accounts'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypeTRANSACTIONINTENT: { readonly TRANSACTION_INTENT: "transactionIntent"; }; type EntityTypeTRANSACTIONINTENT = typeof EntityTypeTRANSACTIONINTENT[keyof typeof EntityTypeTRANSACTIONINTENT]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface Interaction */ interface Interaction$1 { /** * The address of the recipient of native tokens. Use *only* to transfer native tokens. If you provide one of a `pla_...`, or `acc_...` it will be converted to the corresponding address. * @type {string} * @memberof Interaction */ 'to'?: string; /** * The value intended to be sent with the transaction. Should be a stringified number in WEI (i.e. factor 10^18). * * @type {string} * @memberof Interaction */ 'value'?: string; /** * The contract ID you want to interact with. Must have been added to Openfort first, starts with `con_`. * @type {string} * @memberof Interaction */ 'contract'?: string; /** * The function name of the contract. Accepts a a function signature as well (e.g. mint(address)). * @type {string} * @memberof Interaction */ 'functionName'?: string; /** * The function arguments of the contract, in string format. If you provide one of a `pla_...`, `con_...` or `acc_...` it will be converted to the corresponding address. * @type {Array} * @memberof Interaction */ 'functionArgs'?: Array; /** * Data to append to the end of the calldata. Useful for [adding a \"domain\" tag](https://opensea.notion.site/opensea/Seaport-Order-Attributions-ec2d69bf455041a5baa490941aad307f) * @type {string} * @memberof Interaction */ 'dataSuffix'?: string; /** * The encoded calldata of the contract. * @type {string} * @memberof Interaction */ 'data'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface NextActionPayload */ interface NextActionPayload$1 { /** * The userOperation. * @type {any} * @memberof NextActionPayload * @deprecated */ 'userOp'?: any; /** * The hashed userOperation. * @type {string} * @memberof NextActionPayload * @deprecated */ 'userOpHash'?: string; /** * The userOperation. * @type {any} * @memberof NextActionPayload * @deprecated */ 'userOperation'?: any; /** * The hashed userOperation. * @type {string} * @memberof NextActionPayload * @deprecated */ 'userOperationHash'?: string; /** * chain-agnostic hash to sign. * @type {string} * @memberof NextActionPayload */ 'signableHash'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const NextActionType: { readonly SIGN_WITH_WALLET: "sign_with_wallet"; }; type NextActionType = typeof NextActionType[keyof typeof NextActionType]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface NextActionResponse */ interface NextActionResponse$1 { /** * * @type {NextActionType} * @memberof NextActionResponse */ 'type': NextActionType; /** * * @type {NextActionPayload} * @memberof NextActionResponse */ 'payload': NextActionPayload$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TransactionErrorExplanation */ interface TransactionErrorExplanation { /** * A human-readable description of what caused the error. * @type {string} * @memberof TransactionErrorExplanation */ 'cause': string; /** * A human-readable suggestion for how to resolve the error. * @type {string} * @memberof TransactionErrorExplanation */ 'solution': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TransactionError */ interface TransactionError { /** * The error reason string returned by the bundler or execution environment. * @type {string} * @memberof TransactionError */ 'reason': string; /** * The decoded error name from the contract revert, if available. * @type {string} * @memberof TransactionError */ 'name'?: string; /** * * @type {TransactionErrorExplanation} * @memberof TransactionError */ 'explanation'?: TransactionErrorExplanation; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TransactionResponseLog */ interface TransactionResponseLog { /** * * @type {number} * @memberof TransactionResponseLog */ 'blockNumber': number; /** * * @type {string} * @memberof TransactionResponseLog */ 'blockHash': string; /** * * @type {number} * @memberof TransactionResponseLog */ 'transactionIndex': number; /** * * @type {boolean} * @memberof TransactionResponseLog */ 'removed': boolean; /** * * @type {string} * @memberof TransactionResponseLog */ 'address': string; /** * * @type {string} * @memberof TransactionResponseLog */ 'data': string; /** * * @type {Array} * @memberof TransactionResponseLog */ 'topics': Array; /** * * @type {string} * @memberof TransactionResponseLog */ 'transactionHash': string; /** * * @type {number} * @memberof TransactionResponseLog */ 'logIndex': number; /** * * @type {boolean} * @memberof TransactionResponseLog */ 'orphaned'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ResponseResponse */ interface ResponseResponse$1 { /** * The unix timestamp in seconds when the transactionIntent was created. * @type {number} * @memberof ResponseResponse */ 'createdAt': number; /** * The block height (number) of the block including the transaction of this log. * @type {number} * @memberof ResponseResponse */ 'blockNumber'?: number; /** * The transaction hash of the transaction of this log. * @type {string} * @memberof ResponseResponse */ 'transactionHash'?: string; /** * The l1 gas used by the transaction of this log. * @type {string} * @memberof ResponseResponse */ 'l1GasUsed'?: string; /** * The gas used by the transaction of this log. * @type {string} * @memberof ResponseResponse */ 'gasUsed'?: string; /** * The gas fee by the transaction of this log. * @type {string} * @memberof ResponseResponse */ 'gasFee'?: string; /** * The l1 gas fee by the transaction of this log. * @type {string} * @memberof ResponseResponse */ 'l1GasFee'?: string; /** * The status of the transaction of this log. * @type {number} * @memberof ResponseResponse */ 'status'?: number; /** * The logs of the transaction of this log. * @type {Array} * @memberof ResponseResponse */ 'logs'?: Array; /** * The address of the contract of this log. * @type {string} * @memberof ResponseResponse */ 'to'?: string; /** * * @type {TransactionError} * @memberof ResponseResponse */ 'error'?: TransactionError; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const TransactionAbstractionType$1: { readonly AAV6: "accountAbstractionV6"; readonly AAV8: "accountAbstractionV8"; readonly AAV9: "accountAbstractionV9"; readonly ZKSYNC: "zkSync"; readonly EOA: "standard"; }; type TransactionAbstractionType$1 = typeof TransactionAbstractionType$1[keyof typeof TransactionAbstractionType$1]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Specific transaction details based on its type * @export * @interface TransactionIntentResponseDetails */ interface TransactionIntentResponseDetails { /** * The transaction sender. * @type {string} * @memberof TransactionIntentResponseDetails */ 'from': string; /** * The transaction recipient or contract address. * @type {string} * @memberof TransactionIntentResponseDetails */ 'to': string; /** * A contract hashed method call with encoded args. * @type {string} * @memberof TransactionIntentResponseDetails */ 'data'?: string; /** * Unique number identifying this transaction. * @type {string} * @memberof TransactionIntentResponseDetails */ 'nonce': string; /** * The gas limit for the transaction. * @type {string} * @memberof TransactionIntentResponseDetails */ 'gas': string; /** * Total fee per gas (in wei), inclusive of `maxPriorityFeePerGas`. Only applies to EIP-1559 Transactions. * @type {string} * @memberof TransactionIntentResponseDetails */ 'maxFeePerGas': string; /** * Max priority fee per gas (in wei). Only applies to EIP-1559 Transactions. * @type {string} * @memberof TransactionIntentResponseDetails */ 'maxPriorityFeePerGas': string; /** * Address of the paymaster account that will pay the fees. * @type {string} * @memberof TransactionIntentResponseDetails */ 'paymaster'?: string; /** * Input data to the paymaster * @type {string} * @memberof TransactionIntentResponseDetails */ 'paymasterInput'?: string; /** * Value in wei sent with this transaction. * @type {string} * @memberof TransactionIntentResponseDetails */ 'value'?: string; /** * * @type {UserOperationV9} * @memberof TransactionIntentResponseDetails */ 'userOperation': UserOperationV9$1; /** * A User Operation hash. * @type {string} * @memberof TransactionIntentResponseDetails */ 'userOperationHash': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const TransactionStatus: { readonly NONE: "none"; readonly NEW: "new"; readonly SENT: "sent"; readonly DROPPED: "dropped"; readonly INDEXED: "indexed"; readonly CONFIRMED: "confirmed"; readonly REVERTED: "reverted"; readonly NOT_FOUND: "notfound"; readonly REPLACED: "replaced"; readonly EXPIRED: "expired"; }; type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * A transition represents a change in the status of a transaction intent. * @export * @interface Transition */ interface Transition { /** * * @type {TransactionStatus} * @memberof Transition */ 'fromStatus': TransactionStatus; /** * * @type {TransactionStatus} * @memberof Transition */ 'toStatus': TransactionStatus; /** * * @type {number} * @memberof Transition */ 'at': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeveloperAccountResponseTransactionIntentsInner */ interface DeveloperAccountResponseTransactionIntentsInner { /** * * @type {string} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'id': string; /** * * @type {EntityTypeTRANSACTIONINTENT} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'object': EntityTypeTRANSACTIONINTENT; /** * * @type {number} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'createdAt': number; /** * The unix timestamp in seconds when the transactionIntent was created. * @type {number} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'updatedAt': number; /** * The chain ID. * @type {number} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'chainId': number; /** * * @type {TransactionAbstractionType} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'abstractionType': TransactionAbstractionType$1; /** * Transition of statuses the transaction has gone through. * @type {Array} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'transitions'?: Array; /** * * @type {TransactionIntentResponseDetails} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'details'?: TransactionIntentResponseDetails; /** * * @type {string} * @memberof DeveloperAccountResponseTransactionIntentsInner * @deprecated */ 'userOperationHash'?: string; /** * * @type {any} * @memberof DeveloperAccountResponseTransactionIntentsInner * @deprecated */ 'userOperation'?: any; /** * * @type {ResponseResponse} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'response'?: ResponseResponse$1; /** * * @type {Array} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'interactions'?: Array; /** * * @type {NextActionResponse} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'nextAction'?: NextActionResponse$1; /** * * @type {EntityIdResponse} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'policy'?: EntityIdResponse$1; /** * * @type {EntityIdResponse} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'player'?: EntityIdResponse$1; /** * * @type {EntityIdResponse} * @memberof DeveloperAccountResponseTransactionIntentsInner */ 'account': EntityIdResponse$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountResponse */ interface AccountResponse { /** * * @type {string} * @memberof AccountResponse */ 'id': string; /** * * @type {EntityTypeACCOUNT} * @memberof AccountResponse */ 'object': EntityTypeACCOUNT; /** * * @type {number} * @memberof AccountResponse */ 'createdAt': number; /** * * @type {string} * @memberof AccountResponse */ 'address': string; /** * * @type {string} * @memberof AccountResponse */ 'ownerAddress': string; /** * * @type {boolean} * @memberof AccountResponse */ 'deployed': boolean; /** * * @type {boolean} * @memberof AccountResponse */ 'custodial': boolean; /** * * @type {boolean} * @memberof AccountResponse */ 'embeddedSigner': boolean; /** * The chain ID. * @type {number} * @memberof AccountResponse */ 'chainId': number; /** * * @type {string} * @memberof AccountResponse */ 'accountType': string; /** * * @type {string} * @memberof AccountResponse */ 'pendingOwnerAddress'?: string; /** * * @type {Array} * @memberof AccountResponse */ 'transactionIntents'?: Array; /** * * @type {AccountResponsePlayer} * @memberof AccountResponse */ 'player': AccountResponsePlayer; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const ResponseTypeLIST: { readonly LIST: "list"; }; type ResponseTypeLIST = typeof ResponseTypeLIST[keyof typeof ResponseTypeLIST]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountListResponse */ interface AccountListResponse { /** * * @type {ResponseTypeLIST} * @memberof AccountListResponse */ 'object': ResponseTypeLIST; /** * * @type {string} * @memberof AccountListResponse */ 'url': string; /** * * @type {Array} * @memberof AccountListResponse */ 'data': Array; /** * * @type {number} * @memberof AccountListResponse */ 'start': number; /** * * @type {number} * @memberof AccountListResponse */ 'end': number; /** * * @type {number} * @memberof AccountListResponse */ 'total': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PasskeyEnv */ interface PasskeyEnv$1 { /** * * @type {string} * @memberof PasskeyEnv */ 'name'?: string; /** * * @type {string} * @memberof PasskeyEnv */ 'os'?: string; /** * * @type {string} * @memberof PasskeyEnv */ 'osVersion'?: string; /** * * @type {string} * @memberof PasskeyEnv */ 'device'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RecoveryMethodDetails */ interface RecoveryMethodDetails$1 { /** * * @type {string} * @memberof RecoveryMethodDetails */ 'passkeyId'?: string; /** * * @type {PasskeyEnv} * @memberof RecoveryMethodDetails */ 'passkeyEnv'?: PasskeyEnv$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SmartAccountData */ interface SmartAccountData { /** * * @type {string} * @memberof SmartAccountData */ 'implementationType': string; /** * * @type {string} * @memberof SmartAccountData */ 'factoryAddress'?: string; /** * * @type {string} * @memberof SmartAccountData */ 'implementationAddress': string; /** * * @type {string} * @memberof SmartAccountData */ 'salt'?: string; /** * * @type {string} * @memberof SmartAccountData */ 'deployedTx'?: string; /** * * @type {number} * @memberof SmartAccountData */ 'deployedAt'?: number; /** * * @type {boolean} * @memberof SmartAccountData */ 'active': boolean; /** * * @type {string} * @memberof SmartAccountData */ 'ownerAddress'?: string; /** * * @type {number} * @memberof SmartAccountData */ 'chainId'?: number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AccountV2Response */ interface AccountV2Response { /** * * @type {string} * @memberof AccountV2Response */ 'id': string; /** * * @type {string} * @memberof AccountV2Response */ 'wallet': string; /** * * @type {string} * @memberof AccountV2Response */ 'accountType': string; /** * * @type {string} * @memberof AccountV2Response */ 'address': string; /** * * @type {string} * @memberof AccountV2Response */ 'ownerAddress'?: string; /** * * @type {string} * @memberof AccountV2Response */ 'chainType': string; /** * * @type {number} * @memberof AccountV2Response */ 'chainId'?: number; /** * * @type {number} * @memberof AccountV2Response */ 'createdAt': number; /** * * @type {number} * @memberof AccountV2Response */ 'updatedAt': number; /** * * @type {SmartAccountData} * @memberof AccountV2Response */ 'smartAccount'?: SmartAccountData; /** * * @type {string} * @memberof AccountV2Response */ 'recoveryMethod'?: string; /** * * @type {RecoveryMethodDetails} * @memberof AccountV2Response */ 'recoveryMethodDetails'?: RecoveryMethodDetails$1; /** * Indicates key custody: \"Developer\" for TEE managed keys, \"User\" for user-managed keys. * @type {string} * @memberof AccountV2Response */ 'custody': AccountV2ResponseCustodyEnum; } declare const AccountV2ResponseCustodyEnum: { readonly Developer: "Developer"; readonly User: "User"; }; type AccountV2ResponseCustodyEnum = typeof AccountV2ResponseCustodyEnum[keyof typeof AccountV2ResponseCustodyEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const Actions: { readonly ActionVerifyEmail: "verify_email"; }; type Actions = typeof Actions[keyof typeof Actions]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PlayerResponseAccountsInner */ interface PlayerResponseAccountsInner { /** * * @type {string} * @memberof PlayerResponseAccountsInner */ 'id': string; /** * * @type {EntityTypeACCOUNT} * @memberof PlayerResponseAccountsInner */ 'object': EntityTypeACCOUNT; /** * * @type {number} * @memberof PlayerResponseAccountsInner */ 'createdAt': number; /** * * @type {string} * @memberof PlayerResponseAccountsInner */ 'address': string; /** * * @type {string} * @memberof PlayerResponseAccountsInner */ 'ownerAddress': string; /** * * @type {boolean} * @memberof PlayerResponseAccountsInner */ 'deployed': boolean; /** * * @type {boolean} * @memberof PlayerResponseAccountsInner */ 'custodial': boolean; /** * * @type {boolean} * @memberof PlayerResponseAccountsInner */ 'embeddedSigner': boolean; /** * The chain ID. * @type {number} * @memberof PlayerResponseAccountsInner */ 'chainId': number; /** * * @type {string} * @memberof PlayerResponseAccountsInner */ 'accountType': string; /** * * @type {string} * @memberof PlayerResponseAccountsInner */ 'pendingOwnerAddress'?: string; /** * * @type {Array} * @memberof PlayerResponseAccountsInner */ 'transactionIntents'?: Array; /** * * @type {EntityIdResponse} * @memberof PlayerResponseAccountsInner */ 'player': EntityIdResponse$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AuthPlayerResponsePlayer */ interface AuthPlayerResponsePlayer { /** * * @type {string} * @memberof AuthPlayerResponsePlayer */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof AuthPlayerResponsePlayer */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof AuthPlayerResponsePlayer */ 'createdAt': number; /** * * @type {string} * @memberof AuthPlayerResponsePlayer */ 'name': string; /** * * @type {string} * @memberof AuthPlayerResponsePlayer */ 'description'?: string; /** * * @type {{ [key: string]: PlayerMetadataValue; }} * @memberof AuthPlayerResponsePlayer */ 'metadata'?: { [key: string]: PlayerMetadataValue$1; }; /** * * @type {Array} * @memberof AuthPlayerResponsePlayer */ 'transactionIntents'?: Array; /** * * @type {Array} * @memberof AuthPlayerResponsePlayer */ 'accounts'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const AuthProviderResponse: { readonly Email: "email"; readonly Wallet: "wallet"; readonly Google: "google"; readonly Apple: "apple"; readonly Twitter: "twitter"; readonly Discord: "discord"; readonly EpicGames: "epic_games"; readonly Facebook: "facebook"; readonly Accelbyte: "accelbyte"; readonly Firebase: "firebase"; readonly Lootlocker: "lootlocker"; readonly Playfab: "playfab"; readonly Supabase: "supabase"; readonly Custom: "custom"; readonly Oidc: "oidc"; }; type AuthProviderResponse = typeof AuthProviderResponse[keyof typeof AuthProviderResponse]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkedAccountResponse */ interface LinkedAccountResponse { /** * * @type {AuthProviderResponse} * @memberof LinkedAccountResponse */ 'provider': AuthProviderResponse; /** * * @type {string} * @memberof LinkedAccountResponse */ 'email'?: string; /** * * @type {string} * @memberof LinkedAccountResponse */ 'externalUserId'?: string; /** * * @type {string} * @memberof LinkedAccountResponse */ 'connectorType'?: string; /** * * @type {string} * @memberof LinkedAccountResponse */ 'walletClientType'?: string; /** * * @type {boolean} * @memberof LinkedAccountResponse */ 'disabled': boolean; /** * * @type {boolean} * @memberof LinkedAccountResponse */ 'verified'?: boolean; /** * * @type {number} * @memberof LinkedAccountResponse */ 'updatedAt'?: number; /** * * @type {string} * @memberof LinkedAccountResponse */ 'address'?: string; /** * * @type {{ [key: string]: PlayerMetadataValue; }} * @memberof LinkedAccountResponse */ 'metadata'?: { [key: string]: PlayerMetadataValue$1; }; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AuthPlayerResponse */ interface AuthPlayerResponse { /** * * @type {AuthPlayerResponsePlayer} * @memberof AuthPlayerResponse */ 'player'?: AuthPlayerResponsePlayer; /** * * @type {string} * @memberof AuthPlayerResponse */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof AuthPlayerResponse */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof AuthPlayerResponse */ 'createdAt': number; /** * * @type {Array} * @memberof AuthPlayerResponse */ 'linkedAccounts': Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const AuthProviderResponseV2: { readonly Credential: "credential"; readonly Email: "email"; readonly Wallet: "wallet"; readonly Google: "google"; readonly Apple: "apple"; readonly Twitter: "twitter"; readonly Discord: "discord"; readonly Facebook: "facebook"; readonly Custom: "custom"; readonly Oidc: "oidc"; readonly Siwe: "siwe"; }; type AuthProviderResponseV2 = typeof AuthProviderResponseV2[keyof typeof AuthProviderResponseV2]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AuthResponse */ interface AuthResponse$1 { /** * * @type {AuthPlayerResponse} * @memberof AuthResponse */ 'player': AuthPlayerResponse; /** * JWT access token. * @type {string} * @memberof AuthResponse */ 'token': string; /** * Refresh token. * @type {string} * @memberof AuthResponse */ 'refreshToken': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkedAccountResponseV2 */ interface LinkedAccountResponseV2 { /** * * @type {AuthProviderResponseV2} * @memberof LinkedAccountResponseV2 */ 'provider': AuthProviderResponseV2; /** * * @type {number} * @memberof LinkedAccountResponseV2 */ 'createdAt': number; /** * * @type {number} * @memberof LinkedAccountResponseV2 */ 'updatedAt': number; /** * * @type {string} * @memberof LinkedAccountResponseV2 */ 'accountId'?: string; /** * * @type {string} * @memberof LinkedAccountResponseV2 */ 'chainType'?: string; /** * * @type {string} * @memberof LinkedAccountResponseV2 */ 'connectorType'?: string; /** * * @type {string} * @memberof LinkedAccountResponseV2 */ 'walletClientType'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AuthUserResponse */ interface AuthUserResponse { /** * * @type {string} * @memberof AuthUserResponse */ 'id': string; /** * * @type {number} * @memberof AuthUserResponse */ 'createdAt': number; /** * * @type {string} * @memberof AuthUserResponse */ 'name': string; /** * * @type {string} * @memberof AuthUserResponse */ 'email': string | null; /** * * @type {boolean} * @memberof AuthUserResponse */ 'emailVerified': boolean; /** * * @type {string} * @memberof AuthUserResponse */ 'phoneNumber': string | null; /** * * @type {boolean} * @memberof AuthUserResponse */ 'phoneNumberVerified': boolean; /** * * @type {boolean} * @memberof AuthUserResponse */ 'isAnonymous'?: boolean; /** * * @type {Array} * @memberof AuthUserResponse */ 'linkedAccounts': Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * OAuth provider * @export * @interface AuthenticateOAuthRequestProvider */ interface AuthenticateOAuthRequestProvider { } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const PlayerResponseExpandable: { readonly TransactionIntents: "transactionIntents"; readonly Accounts: "accounts"; }; type PlayerResponseExpandable = typeof PlayerResponseExpandable[keyof typeof PlayerResponseExpandable]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Enum of the supporting OAuth providers. * @export * @enum {string} */ declare const TokenType$1: { readonly IDTOKEN: "idToken"; readonly CUSTOMTOKEN: "customToken"; }; type TokenType$1 = typeof TokenType$1[keyof typeof TokenType$1]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface AuthenticateOAuthRequest */ interface AuthenticateOAuthRequest { /** * * @type {AuthenticateOAuthRequestProvider} * @memberof AuthenticateOAuthRequest */ 'provider': AuthenticateOAuthRequestProvider; /** * Token to be verified * @type {string} * @memberof AuthenticateOAuthRequest */ 'token': string; /** * * @type {TokenType} * @memberof AuthenticateOAuthRequest */ 'tokenType': TokenType$1; /** * Specifies the fields to expand in the response. * @type {Array} * @memberof AuthenticateOAuthRequest */ 'expand'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface BaseDeleteEntityResponseEntityTypePLAYER */ interface BaseDeleteEntityResponseEntityTypePLAYER { /** * * @type {string} * @memberof BaseDeleteEntityResponseEntityTypePLAYER */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof BaseDeleteEntityResponseEntityTypePLAYER */ 'object': EntityTypePLAYER; /** * * @type {boolean} * @memberof BaseDeleteEntityResponseEntityTypePLAYER */ 'deleted': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface BaseEntityListResponseAccountV2Response */ interface BaseEntityListResponseAccountV2Response { /** * * @type {ResponseTypeLIST} * @memberof BaseEntityListResponseAccountV2Response */ 'object': ResponseTypeLIST; /** * * @type {string} * @memberof BaseEntityListResponseAccountV2Response */ 'url': string; /** * * @type {Array} * @memberof BaseEntityListResponseAccountV2Response */ 'data': Array; /** * * @type {number} * @memberof BaseEntityListResponseAccountV2Response */ 'start': number; /** * * @type {number} * @memberof BaseEntityListResponseAccountV2Response */ 'end': number; /** * * @type {number} * @memberof BaseEntityListResponseAccountV2Response */ 'total': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface BaseEntityListResponseAuthUserResponse */ interface BaseEntityListResponseAuthUserResponse { /** * * @type {ResponseTypeLIST} * @memberof BaseEntityListResponseAuthUserResponse */ 'object': ResponseTypeLIST; /** * * @type {string} * @memberof BaseEntityListResponseAuthUserResponse */ 'url': string; /** * * @type {Array} * @memberof BaseEntityListResponseAuthUserResponse */ 'data': Array; /** * * @type {number} * @memberof BaseEntityListResponseAuthUserResponse */ 'start': number; /** * * @type {number} * @memberof BaseEntityListResponseAuthUserResponse */ 'end': number; /** * * @type {number} * @memberof BaseEntityListResponseAuthUserResponse */ 'total': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypeWALLET: { readonly WALLET: "wallet"; }; type EntityTypeWALLET = typeof EntityTypeWALLET[keyof typeof EntityTypeWALLET]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface BaseEntityResponseEntityTypeWALLET */ interface BaseEntityResponseEntityTypeWALLET { /** * * @type {string} * @memberof BaseEntityResponseEntityTypeWALLET */ 'id': string; /** * * @type {EntityTypeWALLET} * @memberof BaseEntityResponseEntityTypeWALLET */ 'object': EntityTypeWALLET; /** * * @type {number} * @memberof BaseEntityResponseEntityTypeWALLET */ 'createdAt': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ChangeEmailPost200Response */ interface ChangeEmailPost200Response { /** * Indicates if the request was successful * @type {boolean} * @memberof ChangeEmailPost200Response */ 'status': boolean; /** * Status message of the email change process * @type {string} * @memberof ChangeEmailPost200Response */ 'message'?: ChangeEmailPost200ResponseMessageEnum; } declare const ChangeEmailPost200ResponseMessageEnum: { readonly EmailUpdated: "Email updated"; readonly VerificationEmailSent: "Verification email sent"; }; type ChangeEmailPost200ResponseMessageEnum = typeof ChangeEmailPost200ResponseMessageEnum[keyof typeof ChangeEmailPost200ResponseMessageEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ChangeEmailPostRequest */ interface ChangeEmailPostRequest { /** * The new email address to set must be a valid email address * @type {string} * @memberof ChangeEmailPostRequest */ 'newEmail': string; /** * The URL to redirect to after email verification * @type {string} * @memberof ChangeEmailPostRequest */ 'callbackURL'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface User */ interface User$1 { /** * * @type {string} * @memberof User */ 'id': string; /** * * @type {string} * @memberof User */ 'name': string; /** * * @type {string} * @memberof User */ 'email': string; /** * * @type {boolean} * @memberof User */ 'emailVerified'?: boolean; /** * * @type {string} * @memberof User */ 'image'?: string; /** * * @type {string} * @memberof User */ 'createdAt': string; /** * * @type {string} * @memberof User */ 'updatedAt': string; /** * * @type {boolean} * @memberof User */ 'isAnonymous'?: boolean; /** * * @type {string} * @memberof User */ 'phoneNumber'?: string; /** * * @type {boolean} * @memberof User */ 'phoneNumberVerified'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ChangePasswordPost200Response */ interface ChangePasswordPost200Response { /** * New session token if other sessions were revoked * @type {string} * @memberof ChangePasswordPost200Response */ 'token'?: string | null; /** * * @type {User} * @memberof ChangePasswordPost200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ChangePasswordPostRequest */ interface ChangePasswordPostRequest { /** * The new password to set * @type {string} * @memberof ChangePasswordPostRequest */ 'newPassword': string; /** * The current password is required * @type {string} * @memberof ChangePasswordPostRequest */ 'currentPassword': string; /** * Must be a boolean value * @type {boolean} * @memberof ChangePasswordPostRequest */ 'revokeOtherSessions'?: boolean | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CheckVerificationOtpRequest */ interface CheckVerificationOtpRequest { /** * Email address the OTP was sent to * @type {string} * @memberof CheckVerificationOtpRequest */ 'email': string; /** * Type of the OTP * @type {string} * @memberof CheckVerificationOtpRequest */ 'type': CheckVerificationOtpRequestTypeEnum; /** * OTP to verify * @type {string} * @memberof CheckVerificationOtpRequest */ 'otp': string; } declare const CheckVerificationOtpRequestTypeEnum: { readonly EmailVerification: "email-verification"; readonly SignIn: "sign-in"; readonly ForgetPassword: "forget-password"; }; type CheckVerificationOtpRequestTypeEnum = typeof CheckVerificationOtpRequestTypeEnum[keyof typeof CheckVerificationOtpRequestTypeEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CodeChallenge */ interface CodeChallenge { /** * The code challenge. * @type {string} * @memberof CodeChallenge */ 'codeChallenge': string; /** * The code verifier. * @type {string} * @memberof CodeChallenge */ 'method': CodeChallengeMethodEnum; } declare const CodeChallengeMethodEnum: { readonly Plain: "plain"; readonly S256: "S256"; }; type CodeChallengeMethodEnum = typeof CodeChallengeMethodEnum[keyof typeof CodeChallengeMethodEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CodeChallengeVerify */ interface CodeChallengeVerify { /** * The code verifier. * @type {string} * @memberof CodeChallengeVerify */ 'codeVerifier': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CreateAccountRequest */ interface CreateAccountRequest { /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof CreateAccountRequest */ 'chainId': number; /** * Use this parameter to create a new Account for Player with the provided owner address. * @type {string} * @memberof CreateAccountRequest */ 'externalOwnerAddress'?: string; /** * The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, ZKSyncUpgradeableV2). Defaults to UpgradeableV6. * @type {string} * @memberof CreateAccountRequest */ 'accountType'?: string; /** * For account types that support social recovery, wether to enable Openfort as guardian or not. Defaults to false. * @type {boolean} * @memberof CreateAccountRequest */ 'defaultGuardian'?: boolean; /** * ID of the player this account belongs to (starts with `pla_`). If none is provided, a new player will be created. * @type {string} * @memberof CreateAccountRequest */ 'player'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CreateAccountRequestV2 */ interface CreateAccountRequestV2 { /** * The type of smart account that will be created. \"Externally Owned Account\", \"Smart Account\" or \"Delegated Account\". * @type {string} * @memberof CreateAccountRequestV2 */ 'accountType': CreateAccountRequestV2AccountTypeEnum; /** * The chain type. \"EVM\" or \"SVM\". * @type {string} * @memberof CreateAccountRequestV2 */ 'chainType': CreateAccountRequestV2ChainTypeEnum; /** * * @type {string} * @memberof CreateAccountRequestV2 */ 'address'?: string; /** * The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur). Defaults to UpgradeableV6 in mainnets. * @type {string} * @memberof CreateAccountRequestV2 */ 'implementationType'?: string; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof CreateAccountRequestV2 */ 'chainId'?: number; /** * ID of the user this account belongs to (starts with `usr_`). Also might take wallet ID (starts with `pla_`) * @type {string} * @memberof CreateAccountRequestV2 */ 'user': string; /** * ID of the account (starts with `acc_`) to be linked with. Required for accountType \"Smart Account\". * @type {string} * @memberof CreateAccountRequestV2 */ 'account'?: string; } declare const CreateAccountRequestV2AccountTypeEnum: { readonly ExternallyOwnedAccount: "Externally Owned Account"; readonly SmartAccount: "Smart Account"; readonly DelegatedAccount: "Delegated Account"; }; type CreateAccountRequestV2AccountTypeEnum = typeof CreateAccountRequestV2AccountTypeEnum[keyof typeof CreateAccountRequestV2AccountTypeEnum]; declare const CreateAccountRequestV2ChainTypeEnum: { readonly Evm: "EVM"; readonly Svm: "SVM"; }; type CreateAccountRequestV2ChainTypeEnum = typeof CreateAccountRequestV2ChainTypeEnum[keyof typeof CreateAccountRequestV2ChainTypeEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Enum of the supporting third party auth providers. * @export * @enum {string} */ declare const ThirdPartyOAuthProvider: { readonly ACCELBYTE: "accelbyte"; readonly FIREBASE: "firebase"; readonly LOOTLOCKER: "lootlocker"; readonly PLAYFAB: "playfab"; readonly SUPABASE: "supabase"; readonly CUSTOM: "custom"; readonly OIDC: "oidc"; readonly BETTER_AUTH: "better-auth"; }; type ThirdPartyOAuthProvider = typeof ThirdPartyOAuthProvider[keyof typeof ThirdPartyOAuthProvider]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CreateSessionRequest */ interface CreateSessionRequest { /** * The address of the session key. * @type {string} * @memberof CreateSessionRequest */ 'address': string; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof CreateSessionRequest */ 'chainId': number; /** * If no account exists for a given player, create one with this address. * @type {string} * @memberof CreateSessionRequest */ 'externalOwnerAddress'?: string; /** * Maximum number of times the session key can be used. * @type {number} * @memberof CreateSessionRequest */ 'limit'?: number; /** * Set to `true` to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain. * @type {boolean} * @memberof CreateSessionRequest */ 'optimistic'?: boolean; /** * ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). If no Policy is provided, the own Account native token funds will be used to pay for gas. * @type {string} * @memberof CreateSessionRequest */ 'policy'?: string; /** * The unix timestamp in seconds when the session key becomes valid. * @type {number} * @memberof CreateSessionRequest */ 'validAfter': number; /** * The unix timestamp in seconds when the session key expires. * @type {number} * @memberof CreateSessionRequest */ 'validUntil': number; /** * The list of whitelisted addresses (contracts the session key can interact with). * @type {Array} * @memberof CreateSessionRequest */ 'whitelist'?: Array; /** * The player ID (starts with pla_). * @type {string} * @memberof CreateSessionRequest */ 'player'?: string; /** * ID of the Account this TransactionIntent is executed with, if one exists (starts with `acc_` or `dac_`). When providing a Player and ChainID, you can omit this parameter. * @type {string} * @memberof CreateSessionRequest */ 'account'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface CreateTransactionIntentRequest */ interface CreateTransactionIntentRequest { /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof CreateTransactionIntentRequest */ 'chainId': number; /** * ID of the Player this TransactionIntent belongs to, if one exists (starts with `pla_`). If you omit this parameter a new Player will be created. * @type {string} * @memberof CreateTransactionIntentRequest */ 'player'?: string; /** * ID of the Account this TransactionIntent is executed with, if one exists (starts with `acc_` or `dac_`). When providing a Player and ChainID, you can omit this parameter. * @type {string} * @memberof CreateTransactionIntentRequest */ 'account'?: string; /** * ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). If no Policy is provided, the own Account native token funds will be used to pay for gas. * @type {string} * @memberof CreateTransactionIntentRequest */ 'policy'?: string; /** * Use this parameter to create a new Account for Player with the provided owner address. If you omit this parameter and no Account exists for the Player, a custodial Account will be created. * @type {string} * @memberof CreateTransactionIntentRequest */ 'externalOwnerAddress'?: string; /** * Set to `true` to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain. * @type {boolean} * @memberof CreateTransactionIntentRequest */ 'optimistic'?: boolean; /** * Signed authorization for delegated accounts. This signature is used to authorize the user operation for AccountAbstractionV8. The signature should be in the format \"0x...\" and will be parsed to extract r, s, and yParity values. * @type {string} * @memberof CreateTransactionIntentRequest */ 'signedAuthorization'?: string; /** * * @type {Array} * @memberof CreateTransactionIntentRequest */ 'interactions': Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface DeleteAccountResponse */ interface DeleteAccountResponse { /** * * @type {string} * @memberof DeleteAccountResponse */ 'id': string; /** * * @type {EntityTypeACCOUNT} * @memberof DeleteAccountResponse */ 'object': EntityTypeACCOUNT; /** * * @type {boolean} * @memberof DeleteAccountResponse */ 'deleted': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypeDEVELOPERACCOUNT: { readonly DEVELOPER_ACCOUNT: "developerAccount"; }; type EntityTypeDEVELOPERACCOUNT = typeof EntityTypeDEVELOPERACCOUNT[keyof typeof EntityTypeDEVELOPERACCOUNT]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface EmailOtpResetPasswordPostRequest */ interface EmailOtpResetPasswordPostRequest { /** * Email address to reset the password * @type {string} * @memberof EmailOtpResetPasswordPostRequest */ 'email': string; /** * OTP sent to the email * @type {string} * @memberof EmailOtpResetPasswordPostRequest */ 'otp': string; /** * New password * @type {string} * @memberof EmailOtpResetPasswordPostRequest */ 'password': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface EmailOtpSendVerificationOtpPostRequest */ interface EmailOtpSendVerificationOtpPostRequest { /** * Email address to send the OTP * @type {string} * @memberof EmailOtpSendVerificationOtpPostRequest */ 'email': string; /** * Type of the OTP * @type {string} * @memberof EmailOtpSendVerificationOtpPostRequest */ 'type': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface EmailOtpVerifyEmailPost200Response */ interface EmailOtpVerifyEmailPost200Response { /** * Indicates if the verification was successful * @type {boolean} * @memberof EmailOtpVerifyEmailPost200Response */ 'status': boolean; /** * Session token if autoSignInAfterVerification is enabled, otherwise null * @type {string} * @memberof EmailOtpVerifyEmailPost200Response */ 'token': string | null; /** * * @type {User} * @memberof EmailOtpVerifyEmailPost200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface EmailOtpVerifyEmailPostRequest */ interface EmailOtpVerifyEmailPostRequest { /** * Email address to verify * @type {string} * @memberof EmailOtpVerifyEmailPostRequest */ 'email': string; /** * OTP to verify * @type {string} * @memberof EmailOtpVerifyEmailPostRequest */ 'otp': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypePOLICY: { readonly POLICY: "policy"; }; type EntityTypePOLICY = typeof EntityTypePOLICY[keyof typeof EntityTypePOLICY]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const EntityTypeSESSION: { readonly SESSION: "session"; }; type EntityTypeSESSION = typeof EntityTypeSESSION[keyof typeof EntityTypeSESSION]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * return value from estimateTransactionIntentCost * @export * @interface EstimateTransactionIntentGasResult */ interface EstimateTransactionIntentGasResult { /** * estimated TX gas cost * @type {string} * @memberof EstimateTransactionIntentGasResult */ 'estimatedTXGas': string; /** * estimated TX gas cost in the chain native token (WEI) * @type {string} * @memberof EstimateTransactionIntentGasResult */ 'estimatedTXGasFee': string; /** * estimated TX gas cost in USD * @type {string} * @memberof EstimateTransactionIntentGasResult */ 'estimatedTXGasFeeUSD': string; /** * when using a policy, the estimated TX gas cost in the ERC-20 token defined in the strategy (WEI) * @type {string} * @memberof EstimateTransactionIntentGasResult */ 'estimatedTXGasFeeToken'?: string; /** * gas price used for the estimation * @type {string} * @memberof EstimateTransactionIntentGasResult */ 'gasPrice': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ExportShareResponse */ interface ExportShareResponse { /** * * @type {string} * @memberof ExportShareResponse */ 'id': string; /** * * @type {string} * @memberof ExportShareResponse */ 'wallet': string; /** * * @type {string} * @memberof ExportShareResponse */ 'accountType': string; /** * * @type {string} * @memberof ExportShareResponse */ 'address': string; /** * * @type {string} * @memberof ExportShareResponse */ 'ownerAddress'?: string; /** * * @type {string} * @memberof ExportShareResponse */ 'chainType': string; /** * * @type {number} * @memberof ExportShareResponse */ 'chainId'?: number; /** * * @type {number} * @memberof ExportShareResponse */ 'createdAt': number; /** * * @type {number} * @memberof ExportShareResponse */ 'updatedAt': number; /** * * @type {SmartAccountData} * @memberof ExportShareResponse */ 'smartAccount'?: SmartAccountData; /** * * @type {string} * @memberof ExportShareResponse */ 'recoveryMethod'?: string; /** * * @type {RecoveryMethodDetails} * @memberof ExportShareResponse */ 'recoveryMethodDetails'?: RecoveryMethodDetails$1; /** * Indicates key custody: \"Developer\" for TEE managed keys, \"User\" for user-managed keys. * @type {string} * @memberof ExportShareResponse */ 'custody': ExportShareResponseCustodyEnum; /** * * @type {string} * @memberof ExportShareResponse */ 'share': string; /** * * @type {string} * @memberof ExportShareResponse */ 'signerId': string; /** * * @type {string} * @memberof ExportShareResponse */ 'userId'?: string; } declare const ExportShareResponseCustodyEnum: { readonly Developer: "Developer"; readonly User: "User"; }; type ExportShareResponseCustodyEnum = typeof ExportShareResponseCustodyEnum[keyof typeof ExportShareResponseCustodyEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const SponsorSchemaFIXEDRATE: { readonly FIXED_RATE: "fixed_rate"; }; type SponsorSchemaFIXEDRATE = typeof SponsorSchemaFIXEDRATE[keyof typeof SponsorSchemaFIXEDRATE]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ForgetPasswordEmailOtpPost200Response */ interface ForgetPasswordEmailOtpPost200Response { /** * Indicates if the OTP was sent successfully * @type {boolean} * @memberof ForgetPasswordEmailOtpPost200Response */ 'success'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ForgetPasswordEmailOtpPostRequest */ interface ForgetPasswordEmailOtpPostRequest { /** * Email address to send the OTP * @type {string} * @memberof ForgetPasswordEmailOtpPostRequest */ 'email': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ForgetPasswordPost200Response */ interface ForgetPasswordPost200Response { /** * * @type {boolean} * @memberof ForgetPasswordPost200Response */ 'status'?: boolean; /** * * @type {string} * @memberof ForgetPasswordPost200Response */ 'message'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ForgetPasswordPostRequest */ interface ForgetPasswordPostRequest { /** * The email address of the user to send a password reset email to * @type {string} * @memberof ForgetPasswordPostRequest */ 'email': string; /** * The URL to redirect the user to reset their password. If the token isn\'t valid or expired, it\'ll be redirected with a query parameter `?error=INVALID_TOKEN`. If the token is valid, it\'ll be redirected with a query parameter `?token=VALID_TOKEN * @type {string} * @memberof ForgetPasswordPostRequest */ 'redirectTo'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface Session */ interface Session$1 { /** * * @type {string} * @memberof Session */ 'id': string; /** * * @type {string} * @memberof Session */ 'expiresAt': string; /** * * @type {string} * @memberof Session */ 'token': string; /** * * @type {string} * @memberof Session */ 'createdAt': string; /** * * @type {string} * @memberof Session */ 'updatedAt': string; /** * * @type {string} * @memberof Session */ 'ipAddress'?: string; /** * * @type {string} * @memberof Session */ 'userAgent'?: string; /** * * @type {string} * @memberof Session */ 'userId': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface GetSessionGet200Response */ interface GetSessionGet200Response { /** * * @type {Session} * @memberof GetSessionGet200Response */ 'session': Session$1; /** * * @type {User} * @memberof GetSessionGet200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * JSON-RPC 2.0 Error Object * @export * @interface JsonRpcError */ interface JsonRpcError { /** * * @type {number} * @memberof JsonRpcError */ 'code': number; /** * * @type {string} * @memberof JsonRpcError */ 'message': string; /** * * @type {any} * @memberof JsonRpcError */ 'data'?: any; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface JsonRpcSuccessResponseAnyId */ interface JsonRpcSuccessResponseAnyId { } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * JSON-RPC 2.0 Request * @export * @interface JsonRpcRequest */ interface JsonRpcRequest { /** * * @type {string} * @memberof JsonRpcRequest */ 'jsonrpc': JsonRpcRequestJsonrpcEnum; /** * * @type {string} * @memberof JsonRpcRequest */ 'method': string; /** * * @type {any} * @memberof JsonRpcRequest */ 'params'?: any; /** * * @type {JsonRpcSuccessResponseAnyId} * @memberof JsonRpcRequest */ 'id'?: JsonRpcSuccessResponseAnyId | null; } declare const JsonRpcRequestJsonrpcEnum: { readonly _20: "2.0"; }; type JsonRpcRequestJsonrpcEnum = typeof JsonRpcRequestJsonrpcEnum[keyof typeof JsonRpcRequestJsonrpcEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * JSON-RPC 2.0 Response (either success or error) * @export * @interface JsonRpcResponse */ interface JsonRpcResponse { /** * * @type {string} * @memberof JsonRpcResponse */ 'jsonrpc': JsonRpcResponseJsonrpcEnum; /** * * @type {any} * @memberof JsonRpcResponse */ 'result': any; /** * * @type {JsonRpcSuccessResponseAnyId} * @memberof JsonRpcResponse */ 'id': JsonRpcSuccessResponseAnyId | null; /** * * @type {JsonRpcError} * @memberof JsonRpcResponse */ 'error': JsonRpcError; } declare const JsonRpcResponseJsonrpcEnum: { readonly _20: "2.0"; }; type JsonRpcResponseJsonrpcEnum = typeof JsonRpcResponseJsonrpcEnum[keyof typeof JsonRpcResponseJsonrpcEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface JwtKey */ interface JwtKey { /** * * @type {string} * @memberof JwtKey */ 'kty': string; /** * * @type {string} * @memberof JwtKey */ 'x': string; /** * * @type {string} * @memberof JwtKey */ 'y': string; /** * * @type {string} * @memberof JwtKey */ 'crv': string; /** * * @type {string} * @memberof JwtKey */ 'kid': string; /** * * @type {string} * @memberof JwtKey */ 'use': string; /** * * @type {string} * @memberof JwtKey */ 'alg': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface JwtKeyResponse */ interface JwtKeyResponse { /** * * @type {Array} * @memberof JwtKeyResponse */ 'keys': Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkEmail200Response */ interface LinkEmail200Response { /** * * @type {AuthPlayerResponsePlayer} * @memberof LinkEmail200Response */ 'player'?: AuthPlayerResponsePlayer; /** * * @type {string} * @memberof LinkEmail200Response */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof LinkEmail200Response */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof LinkEmail200Response */ 'createdAt': number; /** * * @type {Array} * @memberof LinkEmail200Response */ 'linkedAccounts': Array; /** * * @type {Actions} * @memberof LinkEmail200Response */ 'action': Actions; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSiweListWalletsGet200ResponseInner */ interface LinkSiweListWalletsGet200ResponseInner { /** * Unique identifier for this wallet record * @type {string} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'id': string; /** * User ID this wallet is linked to * @type {string} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'userId': string; /** * Checksummed Ethereum wallet address * @type {string} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'address': string; /** * Blockchain network chain ID * @type {number} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'chainId': number; /** * Whether this is the user\'s primary wallet * @type {boolean} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'isPrimary': boolean; /** * Timestamp when the wallet was linked * @type {string} * @memberof LinkSiweListWalletsGet200ResponseInner */ 'createdAt': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSiweNoncePost200Response */ interface LinkSiweNoncePost200Response { /** * Cryptographically secure nonce to use in SIWE message * @type {string} * @memberof LinkSiweNoncePost200Response */ 'nonce': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSiweUnlinkPost200Response */ interface LinkSiweUnlinkPost200Response { /** * Indicates successful wallet unlinking * @type {boolean} * @memberof LinkSiweUnlinkPost200Response */ 'success': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSiweUnlinkPostRequest */ interface LinkSiweUnlinkPostRequest { /** * Ethereum wallet address to unlink (must be 42 characters starting with 0x) * @type {string} * @memberof LinkSiweUnlinkPostRequest */ 'walletAddress': string; /** * Blockchain network chain ID (default: 1 for Ethereum mainnet) * @type {number} * @memberof LinkSiweUnlinkPostRequest */ 'chainId'?: number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSiweVerifyPost200Response */ interface LinkSiweVerifyPost200Response { /** * Whether the wallet was successfully linked * @type {boolean} * @memberof LinkSiweVerifyPost200Response */ 'success': boolean; /** * The checksummed Ethereum address that was linked * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'walletAddress': string; /** * The blockchain network chain ID * @type {number} * @memberof LinkSiweVerifyPost200Response */ 'chainId': number; /** * Whether this is the user\'s primary wallet (first wallet linked) * @type {boolean} * @memberof LinkSiweVerifyPost200Response */ 'isPrimary': boolean; /** * Type of connector used (e.g., \'injected\', \'walletConnect\') * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'connectorType'?: string; /** * Type of wallet client used (e.g., \'Phantom\', \'MetaMask\') * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'walletClientType'?: string; /** * ENS name associated with the wallet (if available) * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'ensName'?: string; /** * ENS avatar URL (if available) * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'ensAvatar'?: string; /** * Optional informational message * @type {string} * @memberof LinkSiweVerifyPost200Response */ 'message'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSocialPost200Response */ interface LinkSocialPost200Response { /** * The authorization URL to redirect the user to * @type {string} * @memberof LinkSocialPost200Response */ 'url'?: string; /** * Indicates if the user should be redirected to the authorization URL * @type {boolean} * @memberof LinkSocialPost200Response */ 'redirect': boolean; /** * * @type {boolean} * @memberof LinkSocialPost200Response */ 'status'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSocialPostRequestIdToken */ interface LinkSocialPostRequestIdToken { /** * * @type {string} * @memberof LinkSocialPostRequestIdToken */ 'token': string; /** * * @type {string} * @memberof LinkSocialPostRequestIdToken */ 'nonce'?: string | null; /** * * @type {string} * @memberof LinkSocialPostRequestIdToken */ 'accessToken'?: string | null; /** * * @type {string} * @memberof LinkSocialPostRequestIdToken */ 'refreshToken'?: string | null; /** * * @type {Array} * @memberof LinkSocialPostRequestIdToken */ 'scopes'?: Array | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LinkSocialPostRequest */ interface LinkSocialPostRequest { /** * The URL to redirect to after the user has signed in * @type {string} * @memberof LinkSocialPostRequest */ 'callbackURL'?: string | null; /** * * @type {string} * @memberof LinkSocialPostRequest */ 'provider': string; /** * * @type {LinkSocialPostRequestIdToken} * @memberof LinkSocialPostRequest */ 'idToken'?: LinkSocialPostRequestIdToken | null; /** * * @type {boolean} * @memberof LinkSocialPostRequest */ 'requestSignUp'?: boolean | null; /** * Additional scopes to request from the provider * @type {Array} * @memberof LinkSocialPostRequest */ 'scopes'?: Array | null; /** * The URL to redirect to if there is an error during the link process * @type {string} * @memberof LinkSocialPostRequest */ 'errorCallbackURL'?: string | null; /** * Disable automatic redirection to the provider. Useful for handling the redirection yourself * @type {boolean} * @memberof LinkSocialPostRequest */ 'disableRedirect'?: boolean | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ListAccountsGet200ResponseInner */ interface ListAccountsGet200ResponseInner { /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'provider': string; /** * * @type {number} * @memberof ListAccountsGet200ResponseInner */ 'createdAt': number; /** * * @type {number} * @memberof ListAccountsGet200ResponseInner */ 'updatedAt': number; /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'accountId': string; /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'chainType': string; /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'chainId': string; /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'connectorType': string; /** * * @type {string} * @memberof ListAccountsGet200ResponseInner */ 'walletClientType': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LoginRequest */ interface LoginRequest { /** * The email address of the user. * @type {string} * @memberof LoginRequest */ 'email': string; /** * The password of the user. * @type {string} * @memberof LoginRequest */ 'password': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Enum of the supporting OAuth providers. * @export * @enum {string} */ declare const OAuthProvider$1: { readonly GOOGLE: "google"; readonly TWITTER: "twitter"; readonly FACEBOOK: "facebook"; readonly DISCORD: "discord"; readonly EPIC_GAMES: "epic_games"; readonly LINE: "line"; readonly APPLE: "apple"; }; type OAuthProvider$1 = typeof OAuthProvider$1[keyof typeof OAuthProvider$1]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LoginWithIdTokenRequest */ interface LoginWithIdTokenRequest { /** * * @type {OAuthProvider} * @memberof LoginWithIdTokenRequest */ 'provider': OAuthProvider$1; /** * Token to be verified * @type {string} * @memberof LoginWithIdTokenRequest */ 'token': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface LogoutRequest */ interface LogoutRequest { /** * Specifies the refresh token. * @type {string} * @memberof LogoutRequest */ 'refreshToken': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface OAuthInitRequestOptions */ interface OAuthInitRequestOptions { /** * A URL to custom handle the provider callback * @type {string} * @memberof OAuthInitRequestOptions */ 'callbackTo'?: string; /** * An object of query params * @type {{ [key: string]: string; }} * @memberof OAuthInitRequestOptions */ 'queryParams'?: { [key: string]: string; }; /** * A URL to send the user to after they are confirmed. * @type {string} * @memberof OAuthInitRequestOptions */ 'redirectTo'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface OAuthInitRequest */ interface OAuthInitRequest { /** * * @type {OAuthInitRequestOptions} * @memberof OAuthInitRequest */ 'options'?: OAuthInitRequestOptions; /** * Use Pooling for the OAuth flow This option is for the flow that requires the user can\'t be redirected from the authorization page to the application. The client should poll the server to check if the user has authorized the application. * @type {boolean} * @memberof OAuthInitRequest */ 'usePooling'?: boolean; /** * * @type {OAuthProvider} * @memberof OAuthInitRequest */ 'provider': OAuthProvider$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface OAuthResponse */ interface OAuthResponse { /** * * @type {string} * @memberof OAuthResponse */ 'url': string; /** * * @type {string} * @memberof OAuthResponse */ 'key': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberForgetPasswordPost200Response */ interface PhoneNumberForgetPasswordPost200Response { /** * Indicates if the OTP was sent successfully * @type {boolean} * @memberof PhoneNumberForgetPasswordPost200Response */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberForgetPasswordPostRequest */ interface PhoneNumberForgetPasswordPostRequest { /** * The phone number which is associated with the user. Eg: \"+1234567890\" * @type {string} * @memberof PhoneNumberForgetPasswordPostRequest */ 'phoneNumber': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberRequestPasswordResetPostRequest */ interface PhoneNumberRequestPasswordResetPostRequest { /** * * @type {string} * @memberof PhoneNumberRequestPasswordResetPostRequest */ 'phoneNumber': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberResetPasswordPostRequest */ interface PhoneNumberResetPasswordPostRequest { /** * The one time password to reset the password. Eg: \"123456\" * @type {string} * @memberof PhoneNumberResetPasswordPostRequest */ 'otp': string; /** * The phone number to the account which intends to reset the password for. Eg: \"+1234567890\" * @type {string} * @memberof PhoneNumberResetPasswordPostRequest */ 'phoneNumber': string; /** * The new password. Eg: \"new-and-secure-password\" * @type {string} * @memberof PhoneNumberResetPasswordPostRequest */ 'newPassword': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberSendOtpPostRequest */ interface PhoneNumberSendOtpPostRequest { /** * Phone number to send OTP. Eg: \"+1234567890\" * @type {string} * @memberof PhoneNumberSendOtpPostRequest */ 'phoneNumber': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * User object with phone number details, null if no user is created or found * @export * @interface PhoneNumberVerifyPost200ResponseUser */ interface PhoneNumberVerifyPost200ResponseUser { /** * Unique identifier of the user * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'id': string; /** * User\'s email address * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'email'?: string | null; /** * Whether the email is verified * @type {boolean} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'emailVerified'?: boolean | null; /** * User\'s name * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'name'?: string | null; /** * User\'s profile image URL * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'image'?: string | null; /** * User\'s phone number * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'phoneNumber': string; /** * Whether the phone number is verified * @type {boolean} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'phoneNumberVerified': boolean; /** * Timestamp when the user was created * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'createdAt': string; /** * Timestamp when the user was last updated * @type {string} * @memberof PhoneNumberVerifyPost200ResponseUser */ 'updatedAt': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberVerifyPost200Response */ interface PhoneNumberVerifyPost200Response { /** * Indicates if the verification was successful * @type {boolean} * @memberof PhoneNumberVerifyPost200Response */ 'status': boolean; /** * Session token if session is created, null if disableSession is true or no session is created * @type {string} * @memberof PhoneNumberVerifyPost200Response */ 'token'?: string | null; /** * * @type {PhoneNumberVerifyPost200ResponseUser} * @memberof PhoneNumberVerifyPost200Response */ 'user'?: PhoneNumberVerifyPost200ResponseUser | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PhoneNumberVerifyPostRequest */ interface PhoneNumberVerifyPostRequest { /** * Phone number to verify. Eg: \"+1234567890\" * @type {string} * @memberof PhoneNumberVerifyPostRequest */ 'phoneNumber': string; /** * OTP code. Eg: \"123456\" * @type {string} * @memberof PhoneNumberVerifyPostRequest */ 'code': string; /** * Disable session creation after verification. Eg: false * @type {boolean} * @memberof PhoneNumberVerifyPostRequest */ 'disableSession'?: boolean | null; /** * Check if there is a session and update the phone number. Eg: true * @type {boolean} * @memberof PhoneNumberVerifyPostRequest */ 'updatePhoneNumber'?: boolean | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PlayerResponse */ interface PlayerResponse { /** * * @type {string} * @memberof PlayerResponse */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof PlayerResponse */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof PlayerResponse */ 'createdAt': number; /** * * @type {string} * @memberof PlayerResponse */ 'name': string; /** * * @type {string} * @memberof PlayerResponse */ 'description'?: string; /** * * @type {{ [key: string]: PlayerMetadataValue; }} * @memberof PlayerResponse */ 'metadata'?: { [key: string]: PlayerMetadataValue$1; }; /** * * @type {Array} * @memberof PlayerResponse */ 'transactionIntents'?: Array; /** * * @type {Array} * @memberof PlayerResponse */ 'accounts'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PolicyStrategy */ interface PolicyStrategy$1 { /** * * @type {SponsorSchemaFIXEDRATE} * @memberof PolicyStrategy */ 'sponsorSchema': SponsorSchemaFIXEDRATE; /** * * @type {string} * @memberof PolicyStrategy */ 'depositor'?: string | null; /** * * @type {string} * @memberof PolicyStrategy */ 'tokenContract': string; /** * * @type {string} * @memberof PolicyStrategy */ 'tokenContractAmount': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PregenerateAccountResponse */ interface PregenerateAccountResponse { /** * * @type {string} * @memberof PregenerateAccountResponse */ 'id': string; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'wallet': string; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'accountType': string; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'address': string; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'ownerAddress'?: string; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'chainType': string; /** * * @type {number} * @memberof PregenerateAccountResponse */ 'chainId'?: number; /** * * @type {number} * @memberof PregenerateAccountResponse */ 'createdAt': number; /** * * @type {number} * @memberof PregenerateAccountResponse */ 'updatedAt': number; /** * * @type {SmartAccountData} * @memberof PregenerateAccountResponse */ 'smartAccount'?: SmartAccountData; /** * * @type {string} * @memberof PregenerateAccountResponse */ 'recoveryMethod'?: string; /** * * @type {RecoveryMethodDetails} * @memberof PregenerateAccountResponse */ 'recoveryMethodDetails'?: RecoveryMethodDetails$1; /** * Indicates key custody: \"Developer\" for TEE managed keys, \"User\" for user-managed keys. * @type {string} * @memberof PregenerateAccountResponse */ 'custody': PregenerateAccountResponseCustodyEnum; /** * The recovery share for the user\'s embedded signer. This should be stored securely and provided to the user for account recovery. * @type {string} * @memberof PregenerateAccountResponse */ 'recoveryShare': string; /** * User uuid * @type {string} * @memberof PregenerateAccountResponse */ 'user': string; } declare const PregenerateAccountResponseCustodyEnum: { readonly Developer: "Developer"; readonly User: "User"; }; type PregenerateAccountResponseCustodyEnum = typeof PregenerateAccountResponseCustodyEnum[keyof typeof PregenerateAccountResponseCustodyEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface PregenerateUserRequestV2 */ interface PregenerateUserRequestV2 { /** * The email address of the user to pregenerate. Required if thirdPartyUserId is not provided. * @type {string} * @memberof PregenerateUserRequestV2 */ 'email'?: string; /** * The third-party user ID from an external auth provider (Firebase, Supabase, etc.). Required if email is not provided. * @type {string} * @memberof PregenerateUserRequestV2 */ 'thirdPartyUserId'?: string; /** * * @type {ThirdPartyOAuthProvider} * @memberof PregenerateUserRequestV2 */ 'thirdPartyProvider'?: ThirdPartyOAuthProvider; /** * The type of account to pregenerate. \"Externally Owned Account\", \"Smart Account\" or \"Delegated Account\". Defaults to \"Smart Account\". * @type {string} * @memberof PregenerateUserRequestV2 */ 'accountType'?: PregenerateUserRequestV2AccountTypeEnum; /** * The chain type. \"EVM\" or \"SVM\". Defaults to \"EVM\". * @type {string} * @memberof PregenerateUserRequestV2 */ 'chainType'?: PregenerateUserRequestV2ChainTypeEnum; /** * The chain ID. Required for Smart Account and Delegated Account types. Must be a [supported chain](/development/chains). * @type {number} * @memberof PregenerateUserRequestV2 */ 'chainId'?: number; /** * The implementation type for Smart Account or Delegated Account (e.g. Calibur, UpgradeableV6). Required for Smart Account and Delegated Account types. * @type {string} * @memberof PregenerateUserRequestV2 */ 'implementationType'?: string; } declare const PregenerateUserRequestV2AccountTypeEnum: { readonly ExternallyOwnedAccount: "Externally Owned Account"; readonly SmartAccount: "Smart Account"; readonly DelegatedAccount: "Delegated Account"; }; type PregenerateUserRequestV2AccountTypeEnum = typeof PregenerateUserRequestV2AccountTypeEnum[keyof typeof PregenerateUserRequestV2AccountTypeEnum]; declare const PregenerateUserRequestV2ChainTypeEnum: { readonly Evm: "EVM"; readonly Svm: "SVM"; }; type PregenerateUserRequestV2ChainTypeEnum = typeof PregenerateUserRequestV2ChainTypeEnum[keyof typeof PregenerateUserRequestV2ChainTypeEnum]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RefreshTokenPost200Response */ interface RefreshTokenPost200Response { /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'tokenType'?: string; /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'idToken'?: string; /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'accessToken'?: string; /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'refreshToken'?: string; /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'accessTokenExpiresAt'?: string; /** * * @type {string} * @memberof RefreshTokenPost200Response */ 'refreshTokenExpiresAt'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RefreshTokenPostRequest */ interface RefreshTokenPostRequest { /** * The provider ID for the OAuth provider * @type {string} * @memberof RefreshTokenPostRequest */ 'providerId': string; /** * The account ID associated with the refresh token * @type {string} * @memberof RefreshTokenPostRequest */ 'accountId'?: string | null; /** * The user ID associated with the account * @type {string} * @memberof RefreshTokenPostRequest */ 'userId'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RefreshTokenRequest */ interface RefreshTokenRequest { /** * Specifies the session refresh token. * @type {string} * @memberof RefreshTokenRequest */ 'refreshToken': string; /** * Specifies whether to force refresh the session. * @type {boolean} * @memberof RefreshTokenRequest */ 'forceRefresh'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RequestResetPasswordRequest */ interface RequestResetPasswordRequest { /** * The email address of the user. * @type {string} * @memberof RequestResetPasswordRequest */ 'email': string; /** * The URL sent to the user by email to reset the password. At the end of the URL, we will add the token in the format `?token=token`. * @type {string} * @memberof RequestResetPasswordRequest */ 'redirectUrl': string; /** * * @type {CodeChallenge} * @memberof RequestResetPasswordRequest */ 'challenge'?: CodeChallenge; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RequestVerifyEmailRequest */ interface RequestVerifyEmailRequest { /** * The email address of the user. * @type {string} * @memberof RequestVerifyEmailRequest */ 'email': string; /** * The URL sent to the user by email to reset the password. At the end of the URL, we will add the token in the format `?token=token`. * @type {string} * @memberof RequestVerifyEmailRequest */ 'redirectUrl': string; /** * * @type {CodeChallenge} * @memberof RequestVerifyEmailRequest */ 'challenge'?: CodeChallenge; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ResetPasswordPostRequest */ interface ResetPasswordPostRequest { /** * The new password to set * @type {string} * @memberof ResetPasswordPostRequest */ 'newPassword': string; /** * The token to reset the password * @type {string} * @memberof ResetPasswordPostRequest */ 'token'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ResetPasswordRequest */ interface ResetPasswordRequest { /** * The email address of the user. * @type {string} * @memberof ResetPasswordRequest */ 'email': string; /** * The new password of the user. * @type {string} * @memberof ResetPasswordRequest */ 'password': string; /** * Unique value to identify the request. It\'s used to mitigate CSRF attacks. * @type {string} * @memberof ResetPasswordRequest */ 'state'?: string; /** * * @type {CodeChallengeVerify} * @memberof ResetPasswordRequest */ 'challenge'?: CodeChallengeVerify; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Response from reset password operation * @export * @interface ResetPasswordResponse */ interface ResetPasswordResponse { /** * Indicates whether the password was successfully reset * @type {boolean} * @memberof ResetPasswordResponse */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ResetPasswordTokenGet200Response */ interface ResetPasswordTokenGet200Response { /** * * @type {string} * @memberof ResetPasswordTokenGet200Response */ 'token'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RevokeOtherSessionsPost200Response */ interface RevokeOtherSessionsPost200Response { /** * Indicates if all other sessions were revoked successfully * @type {boolean} * @memberof RevokeOtherSessionsPost200Response */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RevokeSessionPost200Response */ interface RevokeSessionPost200Response { /** * Indicates if the session was revoked successfully * @type {boolean} * @memberof RevokeSessionPost200Response */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RevokeSessionPostRequest */ interface RevokeSessionPostRequest { /** * The token to revoke * @type {string} * @memberof RevokeSessionPostRequest */ 'token': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RevokeSessionRequest */ interface RevokeSessionRequest { /** * The address of the session key to revoke. * @type {string} * @memberof RevokeSessionRequest */ 'address': string; /** * ID of the Policy that defines the gas sponsorship strategy (starts with `pol_`). If no Policy is provided, the own Account native token funds will be used to pay for gas. * @type {string} * @memberof RevokeSessionRequest */ 'policy'?: string; /** * Whether the transactionIntent is optimistic (resolve before it arrives on chain) or not. * @type {boolean} * @memberof RevokeSessionRequest */ 'optimistic'?: boolean; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof RevokeSessionRequest */ 'chainId': number; /** * The player ID (starts with pla_). * @type {string} * @memberof RevokeSessionRequest */ 'player'?: string; /** * ID of the Account this TransactionIntent is executed with, if one exists (starts with `acc_` or `dac_`). When providing a Player and ChainID, you can omit this parameter. * @type {string} * @memberof RevokeSessionRequest */ 'account'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface RevokeSessionsPost200Response */ interface RevokeSessionsPost200Response { /** * Indicates if all sessions were revoked successfully * @type {boolean} * @memberof RevokeSessionsPost200Response */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SIWEAuthenticateRequest */ interface SIWEAuthenticateRequest { /** * Signature of the EIP-712 message with the user\'s wallet. * @type {string} * @memberof SIWEAuthenticateRequest */ 'signature': string; /** * The EIP-712 message to sign. * @type {string} * @memberof SIWEAuthenticateRequest */ 'message': string; /** * The wallet client of the user * @type {string} * @memberof SIWEAuthenticateRequest */ 'walletClientType': string; /** * The connector type of the user * @type {string} * @memberof SIWEAuthenticateRequest */ 'connectorType': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SIWEInitResponse */ interface SIWEInitResponse$1 { /** * The address of the player. * @type {string} * @memberof SIWEInitResponse */ 'address': string; /** * * @type {string} * @memberof SIWEInitResponse */ 'nonce': string; /** * * @type {number} * @memberof SIWEInitResponse */ 'expiresAt': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SIWERequest */ interface SIWERequest { /** * The address of the user. * @type {string} * @memberof SIWERequest */ 'address': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SendVerificationEmailPost200Response */ interface SendVerificationEmailPost200Response { /** * Indicates if the email was sent successfully * @type {boolean} * @memberof SendVerificationEmailPost200Response */ 'status'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SendVerificationEmailPostRequest */ interface SendVerificationEmailPostRequest { /** * The email to send the verification email to * @type {string} * @memberof SendVerificationEmailPostRequest */ 'email': string; /** * The URL to use for email verification callback * @type {string} * @memberof SendVerificationEmailPostRequest */ 'callbackURL'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Contains list of the expandable fields for the session response * @export * @enum {string} */ declare const SessionResponseExpandable: { readonly TransactionIntents: "transactionIntents"; }; type SessionResponseExpandable = typeof SessionResponseExpandable[keyof typeof SessionResponseExpandable]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SessionResponse */ interface SessionResponse$1 { /** * * @type {string} * @memberof SessionResponse */ 'id': string; /** * * @type {EntityTypeSESSION} * @memberof SessionResponse */ 'object': EntityTypeSESSION; /** * * @type {number} * @memberof SessionResponse */ 'createdAt': number; /** * * @type {number} * @memberof SessionResponse */ 'updatedAt': number; /** * * @type {boolean} * @memberof SessionResponse */ 'isActive': boolean; /** * * @type {string} * @memberof SessionResponse */ 'address': string; /** * * @type {string} * @memberof SessionResponse */ 'validAfter': string; /** * * @type {string} * @memberof SessionResponse */ 'validUntil': string; /** * * @type {EntityIdResponse} * @memberof SessionResponse */ 'account': EntityIdResponse$1; /** * * @type {Array} * @memberof SessionResponse */ 'whitelist': Array; /** * * @type {number} * @memberof SessionResponse */ 'limit': number; /** * * @type {NextActionResponse} * @memberof SessionResponse */ 'nextAction'?: NextActionResponse$1; /** * * @type {Array} * @memberof SessionResponse */ 'transactionIntents'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SessionListResponse */ interface SessionListResponse { /** * * @type {ResponseTypeLIST} * @memberof SessionListResponse */ 'object': ResponseTypeLIST; /** * * @type {string} * @memberof SessionListResponse */ 'url': string; /** * * @type {Array} * @memberof SessionListResponse */ 'data': Array; /** * * @type {number} * @memberof SessionListResponse */ 'start': number; /** * * @type {number} * @memberof SessionListResponse */ 'end': number; /** * * @type {number} * @memberof SessionListResponse */ 'total': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignInAnonymousPost200Response */ interface SignInAnonymousPost200Response { /** * Session token * @type {string} * @memberof SignInAnonymousPost200Response */ 'token': string; /** * * @type {User} * @memberof SignInAnonymousPost200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignInEmailOtpPost200Response */ interface SignInEmailOtpPost200Response { /** * Session token for the authenticated session * @type {string} * @memberof SignInEmailOtpPost200Response */ 'token': string; /** * * @type {User} * @memberof SignInEmailOtpPost200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignInEmailOtpPostRequest */ interface SignInEmailOtpPostRequest { /** * Email address to sign in * @type {string} * @memberof SignInEmailOtpPostRequest */ 'email': string; /** * OTP sent to the email * @type {string} * @memberof SignInEmailOtpPostRequest */ 'otp': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignInEmailPostRequest */ interface SignInEmailPostRequest { /** * Email of the user * @type {string} * @memberof SignInEmailPostRequest */ 'email': string; /** * Password of the user * @type {string} * @memberof SignInEmailPostRequest */ 'password': string; /** * Callback URL to use as a redirect for email verification * @type {string} * @memberof SignInEmailPostRequest */ 'callbackURL'?: string | null; /** * * @type {boolean} * @memberof SignInEmailPostRequest */ 'rememberMe'?: boolean | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignInPhoneNumberPostRequest */ interface SignInPhoneNumberPostRequest { /** * Phone number to sign in. Eg: \"+1234567890\" * @type {string} * @memberof SignInPhoneNumberPostRequest */ 'phoneNumber': string; /** * Password to use for sign in. * @type {string} * @memberof SignInPhoneNumberPostRequest */ 'password': string; /** * Remember the session. Eg: true * @type {boolean} * @memberof SignInPhoneNumberPostRequest */ 'rememberMe'?: boolean | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignOutPost200Response */ interface SignOutPost200Response { /** * * @type {boolean} * @memberof SignOutPost200Response */ 'success'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignUpEmailPost200Response */ interface SignUpEmailPost200Response { /** * Authentication token for the session * @type {string} * @memberof SignUpEmailPost200Response */ 'token'?: string | null; /** * * @type {User} * @memberof SignUpEmailPost200Response */ 'user': User$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignUpEmailPostRequest */ interface SignUpEmailPostRequest { /** * The name of the user * @type {string} * @memberof SignUpEmailPostRequest */ 'name': string; /** * The email of the user * @type {string} * @memberof SignUpEmailPostRequest */ 'email': string; /** * The password of the user * @type {string} * @memberof SignUpEmailPostRequest */ 'password': string; /** * The profile image URL of the user * @type {string} * @memberof SignUpEmailPostRequest */ 'image'?: string; /** * The URL to use for email verification callback * @type {string} * @memberof SignUpEmailPostRequest */ 'callbackURL'?: string; /** * If this is false, the session will not be remembered. Default is `true`. * @type {boolean} * @memberof SignUpEmailPostRequest */ 'rememberMe'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignatureRequest */ interface SignatureRequest { /** * signed userOperationHash by the owner or valid session key * @type {string} * @memberof SignatureRequest */ 'signature': string; /** * Set to `true` to indicate that the transactionIntent request should be resolved as soon as possible, after the transactionIntent is created and simulated and before it arrives on chain. * @type {boolean} * @memberof SignatureRequest */ 'optimistic'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignerIdResponse */ interface SignerIdResponse { /** * * @type {string} * @memberof SignerIdResponse */ 'id': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignupEmailPassword201Response */ interface SignupEmailPassword201Response { /** * * @type {AuthPlayerResponse} * @memberof SignupEmailPassword201Response */ 'player': AuthPlayerResponse; /** * JWT access token. * @type {string} * @memberof SignupEmailPassword201Response */ 'token': string; /** * Refresh token. * @type {string} * @memberof SignupEmailPassword201Response */ 'refreshToken': string; /** * * @type {Actions} * @memberof SignupEmailPassword201Response */ 'action': Actions; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SignupRequest */ interface SignupRequest { /** * The email address of the player. * @type {string} * @memberof SignupRequest */ 'email': string; /** * The password of the player. * @type {string} * @memberof SignupRequest */ 'password': string; /** * The name of the player. * @type {string} * @memberof SignupRequest */ 'name'?: string; /** * The description of the player. * @type {string} * @memberof SignupRequest */ 'description'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SiweNoncePost200Response */ interface SiweNoncePost200Response { /** * Cryptographically secure random nonce to be used in SIWE message * @type {string} * @memberof SiweNoncePost200Response */ 'nonce': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SiweNoncePostRequest */ interface SiweNoncePostRequest { /** * Ethereum wallet address (must be 42 characters starting with 0x) * @type {string} * @memberof SiweNoncePostRequest */ 'walletAddress': string; /** * Blockchain network chain ID (default: 1 for Ethereum mainnet) * @type {number} * @memberof SiweNoncePostRequest */ 'chainId'?: number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SiweVerifyPost200ResponseUser */ interface SiweVerifyPost200ResponseUser { /** * User ID * @type {string} * @memberof SiweVerifyPost200ResponseUser */ 'id': string; /** * Ethereum wallet address * @type {string} * @memberof SiweVerifyPost200ResponseUser */ 'walletAddress': string; /** * Chain ID used for authentication * @type {number} * @memberof SiweVerifyPost200ResponseUser */ 'chainId': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SiweVerifyPost200Response */ interface SiweVerifyPost200Response { /** * Session token * @type {string} * @memberof SiweVerifyPost200Response */ 'token': string; /** * Always true on successful authentication * @type {boolean} * @memberof SiweVerifyPost200Response */ 'success': boolean; /** * * @type {SiweVerifyPost200ResponseUser} * @memberof SiweVerifyPost200Response */ 'user': SiweVerifyPost200ResponseUser; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SiweVerifyPostRequest */ interface SiweVerifyPostRequest { /** * The SIWE message string that was signed * @type {string} * @memberof SiweVerifyPostRequest */ 'message': string; /** * The signature from the user\'s wallet * @type {string} * @memberof SiweVerifyPostRequest */ 'signature': string; /** * Ethereum wallet address (must be 42 characters starting with 0x) * @type {string} * @memberof SiweVerifyPostRequest */ 'walletAddress': string; /** * Blockchain network chain ID (must match the Chain ID in SIWE message, default: 1) * @type {number} * @memberof SiweVerifyPostRequest */ 'chainId'?: number; /** * Type of wallet client used (e.g., \'Phantom\', \'MetaMask\') * @type {string} * @memberof SiweVerifyPostRequest */ 'walletClientType'?: string; /** * Type of connector used (e.g., \'injected\', \'walletConnect\') * @type {string} * @memberof SiweVerifyPostRequest */ 'connectorType'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SocialSignIn200ResponseUser */ interface SocialSignIn200ResponseUser { /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'id': string; /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'email': string; /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'name'?: string | null; /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'image'?: string | null; /** * * @type {boolean} * @memberof SocialSignIn200ResponseUser */ 'emailVerified': boolean; /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'createdAt': string; /** * * @type {string} * @memberof SocialSignIn200ResponseUser */ 'updatedAt': string; /** * * @type {boolean} * @memberof SocialSignIn200ResponseUser */ 'isAnonymous'?: boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Session response when idToken is provided * @export * @interface SocialSignIn200Response */ interface SocialSignIn200Response { /** * * @type {boolean} * @memberof SocialSignIn200Response */ 'redirect': boolean; /** * Session token * @type {string} * @memberof SocialSignIn200Response */ 'token': string; /** * * @type {string} * @memberof SocialSignIn200Response */ 'url'?: string | null; /** * * @type {SocialSignIn200ResponseUser} * @memberof SocialSignIn200Response */ 'user': SocialSignIn200ResponseUser; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SocialSignIn403Response */ interface SocialSignIn403Response { /** * * @type {string} * @memberof SocialSignIn403Response */ 'message'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SocialSignInRequestIdToken */ interface SocialSignInRequestIdToken { /** * ID token from the provider * @type {string} * @memberof SocialSignInRequestIdToken */ 'token': string; /** * Nonce used to generate the token * @type {string} * @memberof SocialSignInRequestIdToken */ 'nonce'?: string | null; /** * Access token from the provider * @type {string} * @memberof SocialSignInRequestIdToken */ 'accessToken'?: string | null; /** * Refresh token from the provider * @type {string} * @memberof SocialSignInRequestIdToken */ 'refreshToken'?: string | null; /** * Expiry date of the token * @type {number} * @memberof SocialSignInRequestIdToken */ 'expiresAt'?: number | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SocialSignInRequest */ interface SocialSignInRequest { /** * Callback URL to redirect to after the user has signed in * @type {string} * @memberof SocialSignInRequest */ 'callbackURL'?: string | null; /** * * @type {string} * @memberof SocialSignInRequest */ 'newUserCallbackURL'?: string | null; /** * Callback URL to redirect to if an error happens * @type {string} * @memberof SocialSignInRequest */ 'errorCallbackURL'?: string | null; /** * * @type {string} * @memberof SocialSignInRequest */ 'provider': string; /** * Disable automatic redirection to the provider. Useful for handling the redirection yourself * @type {boolean} * @memberof SocialSignInRequest */ 'disableRedirect'?: boolean | null; /** * * @type {SocialSignInRequestIdToken} * @memberof SocialSignInRequest */ 'idToken'?: SocialSignInRequestIdToken | null; /** * Array of scopes to request from the provider. This will override the default scopes passed. * @type {Array} * @memberof SocialSignInRequest */ 'scopes'?: Array | null; /** * Explicitly request sign-up. Useful when disableImplicitSignUp is true for this provider * @type {boolean} * @memberof SocialSignInRequest */ 'requestSignUp'?: boolean | null; /** * The login hint to use for the authorization code request * @type {string} * @memberof SocialSignInRequest */ 'loginHint'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface SwitchChainQueriesV2 */ interface SwitchChainQueriesV2 { /** * The account ID (starts with acc_) * @type {string} * @memberof SwitchChainQueriesV2 */ 'account': string; /** * The target chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof SwitchChainQueriesV2 */ 'chainId': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ThirdPartyLinkRequest */ interface ThirdPartyLinkRequest { /** * * @type {ThirdPartyOAuthProvider} * @memberof ThirdPartyLinkRequest */ 'provider': ThirdPartyOAuthProvider; /** * * @type {string} * @memberof ThirdPartyLinkRequest */ 'token': string; /** * * @type {string} * @memberof ThirdPartyLinkRequest */ 'tokenType': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ThirdPartyOAuthRequest */ interface ThirdPartyOAuthRequest { /** * * @type {ThirdPartyOAuthProvider} * @memberof ThirdPartyOAuthRequest */ 'provider': ThirdPartyOAuthProvider; /** * Token to be verified * @type {string} * @memberof ThirdPartyOAuthRequest */ 'token': string; /** * * @type {TokenType} * @memberof ThirdPartyOAuthRequest */ 'tokenType'?: TokenType$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @enum {string} */ declare const TransactionIntentResponseExpandable: { readonly Policy: "policy"; readonly Player: "player"; readonly Account: "account"; }; type TransactionIntentResponseExpandable = typeof TransactionIntentResponseExpandable[keyof typeof TransactionIntentResponseExpandable]; /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The account ID (starts with acc_). * @export * @interface TransactionIntentResponseAccount */ interface TransactionIntentResponseAccount$1 { /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'id': string; /** * * @type {EntityTypeDEVELOPERACCOUNT} * @memberof TransactionIntentResponseAccount */ 'object': EntityTypeDEVELOPERACCOUNT; /** * * @type {number} * @memberof TransactionIntentResponseAccount */ 'createdAt': number; /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'address': string; /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'ownerAddress': string; /** * * @type {boolean} * @memberof TransactionIntentResponseAccount */ 'deployed': boolean; /** * * @type {boolean} * @memberof TransactionIntentResponseAccount */ 'custodial': boolean; /** * * @type {boolean} * @memberof TransactionIntentResponseAccount */ 'embeddedSigner': boolean; /** * The chain ID. * @type {number} * @memberof TransactionIntentResponseAccount */ 'chainId': number; /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'accountType': string; /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'pendingOwnerAddress'?: string; /** * * @type {Array} * @memberof TransactionIntentResponseAccount */ 'transactionIntents'?: Array; /** * * @type {EntityIdResponse} * @memberof TransactionIntentResponseAccount */ 'player': EntityIdResponse$1; /** * * @type {string} * @memberof TransactionIntentResponseAccount */ 'name'?: string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The player ID (starts with pla_). * @export * @interface TransactionIntentResponsePlayer */ interface TransactionIntentResponsePlayer$1 { /** * * @type {string} * @memberof TransactionIntentResponsePlayer */ 'id': string; /** * * @type {EntityTypePLAYER} * @memberof TransactionIntentResponsePlayer */ 'object': EntityTypePLAYER; /** * * @type {number} * @memberof TransactionIntentResponsePlayer */ 'createdAt': number; /** * * @type {string} * @memberof TransactionIntentResponsePlayer */ 'name': string; /** * * @type {string} * @memberof TransactionIntentResponsePlayer */ 'description'?: string; /** * * @type {{ [key: string]: PlayerMetadataValue; }} * @memberof TransactionIntentResponsePlayer */ 'metadata'?: { [key: string]: PlayerMetadataValue$1; }; /** * * @type {Array} * @memberof TransactionIntentResponsePlayer */ 'transactionIntents'?: Array; /** * * @type {Array} * @memberof TransactionIntentResponsePlayer */ 'accounts'?: Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The policy ID (starts with pol_). * @export * @interface TransactionIntentResponsePolicy */ interface TransactionIntentResponsePolicy$1 { /** * * @type {string} * @memberof TransactionIntentResponsePolicy */ 'id': string; /** * * @type {EntityTypePOLICY} * @memberof TransactionIntentResponsePolicy */ 'object': EntityTypePOLICY; /** * * @type {number} * @memberof TransactionIntentResponsePolicy */ 'createdAt': number; /** * * @type {string} * @memberof TransactionIntentResponsePolicy */ 'name': string | null; /** * * @type {boolean} * @memberof TransactionIntentResponsePolicy */ 'deleted': boolean; /** * * @type {boolean} * @memberof TransactionIntentResponsePolicy */ 'enabled': boolean; /** * The chain ID. * @type {number} * @memberof TransactionIntentResponsePolicy */ 'chainId': number; /** * * @type {EntityIdResponse} * @memberof TransactionIntentResponsePolicy */ 'paymaster'?: EntityIdResponse$1; /** * * @type {EntityIdResponse} * @memberof TransactionIntentResponsePolicy */ 'forwarderContract'?: EntityIdResponse$1; /** * * @type {PolicyStrategy} * @memberof TransactionIntentResponsePolicy */ 'strategy': PolicyStrategy$1; /** * * @type {Array} * @memberof TransactionIntentResponsePolicy */ 'transactionIntents': Array; /** * * @type {Array} * @memberof TransactionIntentResponsePolicy */ 'policyRules': Array; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TransactionIntentResponse */ interface TransactionIntentResponse$1 { /** * * @type {string} * @memberof TransactionIntentResponse */ 'id': string; /** * * @type {EntityTypeTRANSACTIONINTENT} * @memberof TransactionIntentResponse */ 'object': EntityTypeTRANSACTIONINTENT; /** * * @type {number} * @memberof TransactionIntentResponse */ 'createdAt': number; /** * The unix timestamp in seconds when the transactionIntent was created. * @type {number} * @memberof TransactionIntentResponse */ 'updatedAt': number; /** * The chain ID. * @type {number} * @memberof TransactionIntentResponse */ 'chainId': number; /** * * @type {TransactionAbstractionType} * @memberof TransactionIntentResponse */ 'abstractionType': TransactionAbstractionType$1; /** * Transition of statuses the transaction has gone through. * @type {Array} * @memberof TransactionIntentResponse */ 'transitions'?: Array; /** * * @type {TransactionIntentResponseDetails} * @memberof TransactionIntentResponse */ 'details'?: TransactionIntentResponseDetails; /** * * @type {string} * @memberof TransactionIntentResponse * @deprecated */ 'userOperationHash'?: string; /** * * @type {any} * @memberof TransactionIntentResponse * @deprecated */ 'userOperation'?: any; /** * * @type {ResponseResponse} * @memberof TransactionIntentResponse */ 'response'?: ResponseResponse$1; /** * * @type {Array} * @memberof TransactionIntentResponse */ 'interactions'?: Array; /** * * @type {NextActionResponse} * @memberof TransactionIntentResponse */ 'nextAction'?: NextActionResponse$1; /** * * @type {TransactionIntentResponsePolicy} * @memberof TransactionIntentResponse */ 'policy'?: TransactionIntentResponsePolicy$1; /** * * @type {TransactionIntentResponsePlayer} * @memberof TransactionIntentResponse */ 'player'?: TransactionIntentResponsePlayer$1; /** * * @type {TransactionIntentResponseAccount} * @memberof TransactionIntentResponse */ 'account': TransactionIntentResponseAccount$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface TransactionIntentListResponse */ interface TransactionIntentListResponse { /** * * @type {ResponseTypeLIST} * @memberof TransactionIntentListResponse */ 'object': ResponseTypeLIST; /** * * @type {string} * @memberof TransactionIntentListResponse */ 'url': string; /** * * @type {Array} * @memberof TransactionIntentListResponse */ 'data': Array; /** * * @type {number} * @memberof TransactionIntentListResponse */ 'start': number; /** * * @type {number} * @memberof TransactionIntentListResponse */ 'end': number; /** * * @type {number} * @memberof TransactionIntentListResponse */ 'total': number; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface UnlinkAccountPostRequest */ interface UnlinkAccountPostRequest { /** * * @type {string} * @memberof UnlinkAccountPostRequest */ 'providerId': string; /** * * @type {string} * @memberof UnlinkAccountPostRequest */ 'accountId'?: string | null; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Response from unlink account operation * @export * @interface UnlinkAccountResponse */ interface UnlinkAccountResponse { /** * Indicates whether the account was successfully unlinked * @type {boolean} * @memberof UnlinkAccountResponse */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface UnlinkEmailRequest */ interface UnlinkEmailRequest { /** * The email address of the user. * @type {string} * @memberof UnlinkEmailRequest */ 'email': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * The request to verify access token * @export * @interface UnlinkOAuthRequest */ interface UnlinkOAuthRequest { /** * * @type {OAuthProvider} * @memberof UnlinkOAuthRequest */ 'provider': OAuthProvider$1; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface VerifyEmailGet200ResponseUser */ interface VerifyEmailGet200ResponseUser { /** * User ID * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'id': string; /** * User email * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'email': string; /** * User name * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'name': string; /** * User image URL * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'image': string; /** * Indicates if the user email is verified * @type {boolean} * @memberof VerifyEmailGet200ResponseUser */ 'emailVerified': boolean; /** * User creation date * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'createdAt': string; /** * User update date * @type {string} * @memberof VerifyEmailGet200ResponseUser */ 'updatedAt': string; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface VerifyEmailGet200Response */ interface VerifyEmailGet200Response { /** * * @type {VerifyEmailGet200ResponseUser} * @memberof VerifyEmailGet200Response */ 'user': VerifyEmailGet200ResponseUser; /** * Indicates if the email was verified successfully * @type {boolean} * @memberof VerifyEmailGet200Response */ 'status': boolean; } /** * Openfort API * Complete Openfort API references and guides can be found at: https://www.openfort.io/docs * * The version of the OpenAPI document: 1.0.0 * Contact: founders@openfort.xyz * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface VerifyEmailRequest */ interface VerifyEmailRequest { /** * The email address of the user. * @type {string} * @memberof VerifyEmailRequest */ 'email': string; /** * Unique value to identify the request. Obtained from the email. * @type {string} * @memberof VerifyEmailRequest */ 'token': string; /** * * @type {CodeChallengeVerify} * @memberof VerifyEmailRequest */ 'challenge'?: CodeChallengeVerify; } /** * Request parameters for createAccount operation in AccsV1Api. * @export * @interface AccsV1ApiCreateAccountRequest */ interface AccsV1ApiCreateAccountRequest { /** * * @type {CreateAccountRequest} * @memberof AccsV1ApiCreateAccount */ readonly createAccountRequest: CreateAccountRequest; } /** * Request parameters for disableAccount operation in AccsV1Api. * @export * @interface AccsV1ApiDisableAccountRequest */ interface AccsV1ApiDisableAccountRequest { /** * * @type {string} * @memberof AccsV1ApiDisableAccount */ readonly id: string; } /** * Request parameters for getAccount operation in AccsV1Api. * @export * @interface AccsV1ApiGetAccountRequest */ interface AccsV1ApiGetAccountRequest { /** * Specifies the unique account ID (starts with acc_). * @type {string} * @memberof AccsV1ApiGetAccount */ readonly id: string; /** * * @type {Array} * @memberof AccsV1ApiGetAccount */ readonly expand?: Array; } /** * Request parameters for getAccounts operation in AccsV1Api. * @export * @interface AccsV1ApiGetAccountsRequest */ interface AccsV1ApiGetAccountsRequest { /** * Specifies the maximum number of records to return. * @type {number} * @memberof AccsV1ApiGetAccounts */ readonly limit?: number; /** * Specifies the offset for the first records to return. * @type {number} * @memberof AccsV1ApiGetAccounts */ readonly skip?: number; /** * Specifies the order in which to sort the results. * @type {PrismaSortOrder} * @memberof AccsV1ApiGetAccounts */ readonly order?: PrismaSortOrder; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof AccsV1ApiGetAccounts */ readonly chainId?: number; /** * Specifies the unique player ID (starts with pla_) * @type {string} * @memberof AccsV1ApiGetAccounts */ readonly player?: string; /** * Specifies the address of the account * @type {string} * @memberof AccsV1ApiGetAccounts */ readonly address?: string; /** * Specifies the fields to expand in the response. * @type {Array} * @memberof AccsV1ApiGetAccounts */ readonly expand?: Array; } /** * AccsV1Api - object-oriented interface * @export * @class AccsV1Api * @extends {BaseAPI} */ declare class AccsV1Api extends BaseAPI { /** * Creates a new blockchain account for the provided player. If not player is provided, a new one will be created. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Each player can only have one account per chain. * @summary Create an account object. * @param {AccsV1ApiCreateAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV1Api */ createAccount(requestParameters: AccsV1ApiCreateAccountRequest, options?: AxiosRequestConfig): Promise>; /** * Disables an account. Accounts won\'t be shown for user and won\'t be accessible for transactions. * @summary Disable account by id. * @param {AccsV1ApiDisableAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV1Api */ disableAccount(requestParameters: AccsV1ApiDisableAccountRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information. Returns the latest 10 transaction intents created by this account. * @summary Get existing account. * @param {AccsV1ApiGetAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV1Api */ getAccount(requestParameters: AccsV1ApiGetAccountRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page. * @summary List accounts of a player. * @param {AccsV1ApiGetAccountsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV1Api */ getAccounts(requestParameters?: AccsV1ApiGetAccountsRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for createAccountV2 operation in AccsV2Api. * @export * @interface AccsV2ApiCreateAccountV2Request */ interface AccsV2ApiCreateAccountV2Request { /** * * @type {CreateAccountRequestV2} * @memberof AccsV2ApiCreateAccountV2 */ readonly createAccountRequestV2: CreateAccountRequestV2; } /** * Request parameters for exportAccountShare operation in AccsV2Api. * @export * @interface AccsV2ApiExportAccountShareRequest */ interface AccsV2ApiExportAccountShareRequest { /** * * @type {string} * @memberof AccsV2ApiExportAccountShare */ readonly accountUuid: string; } /** * Request parameters for getAccountV2 operation in AccsV2Api. * @export * @interface AccsV2ApiGetAccountV2Request */ interface AccsV2ApiGetAccountV2Request { /** * * @type {string} * @memberof AccsV2ApiGetAccountV2 */ readonly id: string; } /** * Request parameters for getAccountsV2 operation in AccsV2Api. * @export * @interface AccsV2ApiGetAccountsV2Request */ interface AccsV2ApiGetAccountsV2Request { /** * Specifies the maximum number of records to return. * @type {number} * @memberof AccsV2ApiGetAccountsV2 */ readonly limit?: number; /** * Specifies the offset for the first records to return. * @type {number} * @memberof AccsV2ApiGetAccountsV2 */ readonly skip?: number; /** * Specifies the order in which to sort the results. * @type {PrismaSortOrder} * @memberof AccsV2ApiGetAccountsV2 */ readonly order?: PrismaSortOrder; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof AccsV2ApiGetAccountsV2 */ readonly chainId?: number; /** * Specifies the unique user ID (starts with pla_) * @type {string} * @memberof AccsV2ApiGetAccountsV2 */ readonly user?: string; /** * The chain type. Must be either \"EVM\" or \"SVM\". * @type {'EVM' | 'SVM'} * @memberof AccsV2ApiGetAccountsV2 */ readonly chainType?: GetAccountsV2ChainTypeEnum; /** * Specifies the type of account. Must be either \"Smart Account\" or \"Externally Owned Account\". * @type {'Externally Owned Account' | 'Smart Account' | 'Delegated Account'} * @memberof AccsV2ApiGetAccountsV2 */ readonly accountType?: GetAccountsV2AccountTypeEnum; /** * Specifies the key custody of the account. Must be either \"Developer\" or \"User\". * @type {'Developer' | 'User'} * @memberof AccsV2ApiGetAccountsV2 */ readonly custody?: GetAccountsV2CustodyEnum; /** * Specifies the account address * @type {string} * @memberof AccsV2ApiGetAccountsV2 */ readonly address?: string; } /** * Request parameters for getSignerIdByAddress operation in AccsV2Api. * @export * @interface AccsV2ApiGetSignerIdByAddressRequest */ interface AccsV2ApiGetSignerIdByAddressRequest { /** * * @type {string} * @memberof AccsV2ApiGetSignerIdByAddress */ readonly address: string; } /** * Request parameters for removeAccount operation in AccsV2Api. * @export * @interface AccsV2ApiRemoveAccountRequest */ interface AccsV2ApiRemoveAccountRequest { /** * * @type {string} * @memberof AccsV2ApiRemoveAccount */ readonly id: string; } /** * Request parameters for switchChainV2 operation in AccsV2Api. * @export * @interface AccsV2ApiSwitchChainV2Request */ interface AccsV2ApiSwitchChainV2Request { /** * * @type {SwitchChainQueriesV2} * @memberof AccsV2ApiSwitchChainV2 */ readonly switchChainQueriesV2: SwitchChainQueriesV2; } /** * AccsV2Api - object-oriented interface * @export * @class AccsV2Api * @extends {BaseAPI} */ declare class AccsV2Api extends BaseAPI { /** * Creates a new blockchain account for a user. Account creation does not consume any gas. The account can be used to interact with the blockchain. * @summary Create new account. * @param {AccsV2ApiCreateAccountV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ createAccountV2(requestParameters: AccsV2ApiCreateAccountV2Request, options?: AxiosRequestConfig): Promise>; /** * Exports the primary share for an account, including all data needed to import it on another instance. * @summary Export account share. * @param {AccsV2ApiExportAccountShareRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ exportAccountShare(requestParameters: AccsV2ApiExportAccountShareRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the details of an existing account. Supply the unique account ID and Openfort will return the corresponding account information. * @summary Get existing account. * @param {AccsV2ApiGetAccountV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ getAccountV2(requestParameters: AccsV2ApiGetAccountV2Request, options?: AxiosRequestConfig): Promise>; /** * Returns a list of accounts for the given user. This object represents a user\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. * @summary List user accounts. * @param {AccsV2ApiGetAccountsV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ getAccountsV2(requestParameters?: AccsV2ApiGetAccountsV2Request, options?: AxiosRequestConfig): Promise>; /** * Retrieves the signer ID associated with a given blockchain address. * @summary Get signer ID by address. * @param {AccsV2ApiGetSignerIdByAddressRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ getSignerIdByAddress(requestParameters: AccsV2ApiGetSignerIdByAddressRequest, options?: AxiosRequestConfig): Promise>; /** * Removes an account from a project. * @summary Delete account. * @param {AccsV2ApiRemoveAccountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ removeAccount(requestParameters: AccsV2ApiRemoveAccountRequest, options?: AxiosRequestConfig): Promise>; /** * Switches the blockchain network for an existing account. This allows moving an account between different blockchain networks while maintaining the same account identity. * @summary Switch account blockchain. * @param {AccsV2ApiSwitchChainV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AccsV2Api */ switchChainV2(requestParameters: AccsV2ApiSwitchChainV2Request, options?: AxiosRequestConfig): Promise>; } /** * @export */ declare const GetAccountsV2ChainTypeEnum: { readonly Evm: "EVM"; readonly Svm: "SVM"; }; type GetAccountsV2ChainTypeEnum = typeof GetAccountsV2ChainTypeEnum[keyof typeof GetAccountsV2ChainTypeEnum]; /** * @export */ declare const GetAccountsV2AccountTypeEnum: { readonly ExternallyOwnedAccount: "Externally Owned Account"; readonly SmartAccount: "Smart Account"; readonly DelegatedAccount: "Delegated Account"; }; type GetAccountsV2AccountTypeEnum = typeof GetAccountsV2AccountTypeEnum[keyof typeof GetAccountsV2AccountTypeEnum]; /** * @export */ declare const GetAccountsV2CustodyEnum: { readonly Developer: "Developer"; readonly User: "User"; }; type GetAccountsV2CustodyEnum = typeof GetAccountsV2CustodyEnum[keyof typeof GetAccountsV2CustodyEnum]; /** * Request parameters for authenticateSIWE operation in AuthV1Api. * @export * @interface AuthV1ApiAuthenticateSIWERequest */ interface AuthV1ApiAuthenticateSIWERequest { /** * * @type {SIWEAuthenticateRequest} * @memberof AuthV1ApiAuthenticateSIWE */ readonly sIWEAuthenticateRequest: SIWEAuthenticateRequest; } /** * Request parameters for getJwks operation in AuthV1Api. * @export * @interface AuthV1ApiGetJwksRequest */ interface AuthV1ApiGetJwksRequest { /** * Specifies the project publishable key (starts with pk_). * @type {string} * @memberof AuthV1ApiGetJwks */ readonly publishableKey: string; } /** * Request parameters for initOAuth operation in AuthV1Api. * @export * @interface AuthV1ApiInitOAuthRequest */ interface AuthV1ApiInitOAuthRequest { /** * * @type {OAuthInitRequest} * @memberof AuthV1ApiInitOAuth */ readonly oAuthInitRequest: OAuthInitRequest; /** * * @type {string} * @memberof AuthV1ApiInitOAuth */ readonly xGame?: string; } /** * Request parameters for initSIWE operation in AuthV1Api. * @export * @interface AuthV1ApiInitSIWERequest */ interface AuthV1ApiInitSIWERequest { /** * * @type {SIWERequest} * @memberof AuthV1ApiInitSIWE */ readonly sIWERequest: SIWERequest; /** * * @type {string} * @memberof AuthV1ApiInitSIWE */ readonly xGame?: string; } /** * Request parameters for linkEmail operation in AuthV1Api. * @export * @interface AuthV1ApiLinkEmailRequest */ interface AuthV1ApiLinkEmailRequest { /** * * @type {LoginRequest} * @memberof AuthV1ApiLinkEmail */ readonly loginRequest: LoginRequest; /** * * @type {string} * @memberof AuthV1ApiLinkEmail */ readonly xGame?: string; } /** * Request parameters for linkOAuth operation in AuthV1Api. * @export * @interface AuthV1ApiLinkOAuthRequest */ interface AuthV1ApiLinkOAuthRequest { /** * * @type {OAuthInitRequest} * @memberof AuthV1ApiLinkOAuth */ readonly oAuthInitRequest: OAuthInitRequest; /** * * @type {string} * @memberof AuthV1ApiLinkOAuth */ readonly xGame?: string; } /** * Request parameters for linkSIWE operation in AuthV1Api. * @export * @interface AuthV1ApiLinkSIWERequest */ interface AuthV1ApiLinkSIWERequest { /** * * @type {SIWEAuthenticateRequest} * @memberof AuthV1ApiLinkSIWE */ readonly sIWEAuthenticateRequest: SIWEAuthenticateRequest; } /** * Request parameters for linkThirdParty operation in AuthV1Api. * @export * @interface AuthV1ApiLinkThirdPartyRequest */ interface AuthV1ApiLinkThirdPartyRequest { /** * * @type {ThirdPartyLinkRequest} * @memberof AuthV1ApiLinkThirdParty */ readonly thirdPartyLinkRequest: ThirdPartyLinkRequest; /** * * @type {string} * @memberof AuthV1ApiLinkThirdParty */ readonly xGame?: string; } /** * Request parameters for loginEmailPassword operation in AuthV1Api. * @export * @interface AuthV1ApiLoginEmailPasswordRequest */ interface AuthV1ApiLoginEmailPasswordRequest { /** * * @type {LoginRequest} * @memberof AuthV1ApiLoginEmailPassword */ readonly loginRequest: LoginRequest; /** * * @type {string} * @memberof AuthV1ApiLoginEmailPassword */ readonly xGame?: string; } /** * Request parameters for loginWithIdToken operation in AuthV1Api. * @export * @interface AuthV1ApiLoginWithIdTokenRequest */ interface AuthV1ApiLoginWithIdTokenRequest { /** * * @type {LoginWithIdTokenRequest} * @memberof AuthV1ApiLoginWithIdToken */ readonly loginWithIdTokenRequest: LoginWithIdTokenRequest; } /** * Request parameters for logout operation in AuthV1Api. * @export * @interface AuthV1ApiLogoutRequest */ interface AuthV1ApiLogoutRequest { /** * * @type {LogoutRequest} * @memberof AuthV1ApiLogout */ readonly logoutRequest: LogoutRequest; } /** * Request parameters for poolOAuth operation in AuthV1Api. * @export * @interface AuthV1ApiPoolOAuthRequest */ interface AuthV1ApiPoolOAuthRequest { /** * * @type {string} * @memberof AuthV1ApiPoolOAuth */ readonly key: string; } /** * Request parameters for refresh operation in AuthV1Api. * @export * @interface AuthV1ApiRefreshRequest */ interface AuthV1ApiRefreshRequest { /** * * @type {RefreshTokenRequest} * @memberof AuthV1ApiRefresh */ readonly refreshTokenRequest: RefreshTokenRequest; } /** * Request parameters for registerGuest operation in AuthV1Api. * @export * @interface AuthV1ApiRegisterGuestRequest */ interface AuthV1ApiRegisterGuestRequest { /** * * @type {string} * @memberof AuthV1ApiRegisterGuest */ readonly xGame?: string; } /** * Request parameters for requestEmailVerification operation in AuthV1Api. * @export * @interface AuthV1ApiRequestEmailVerificationRequest */ interface AuthV1ApiRequestEmailVerificationRequest { /** * * @type {RequestVerifyEmailRequest} * @memberof AuthV1ApiRequestEmailVerification */ readonly requestVerifyEmailRequest: RequestVerifyEmailRequest; } /** * Request parameters for requestResetPassword operation in AuthV1Api. * @export * @interface AuthV1ApiRequestResetPasswordRequest */ interface AuthV1ApiRequestResetPasswordRequest { /** * * @type {RequestResetPasswordRequest} * @memberof AuthV1ApiRequestResetPassword */ readonly requestResetPasswordRequest: RequestResetPasswordRequest; } /** * Request parameters for resetPassword operation in AuthV1Api. * @export * @interface AuthV1ApiResetPasswordRequest */ interface AuthV1ApiResetPasswordRequest { /** * * @type {ResetPasswordRequest} * @memberof AuthV1ApiResetPassword */ readonly resetPasswordRequest: ResetPasswordRequest; } /** * Request parameters for signupEmailPassword operation in AuthV1Api. * @export * @interface AuthV1ApiSignupEmailPasswordRequest */ interface AuthV1ApiSignupEmailPasswordRequest { /** * * @type {SignupRequest} * @memberof AuthV1ApiSignupEmailPassword */ readonly signupRequest: SignupRequest; /** * * @type {string} * @memberof AuthV1ApiSignupEmailPassword */ readonly xGame?: string; } /** * Request parameters for thirdParty operation in AuthV1Api. * @export * @interface AuthV1ApiThirdPartyRequest */ interface AuthV1ApiThirdPartyRequest { /** * * @type {ThirdPartyOAuthRequest} * @memberof AuthV1ApiThirdParty */ readonly thirdPartyOAuthRequest: ThirdPartyOAuthRequest; /** * * @type {string} * @memberof AuthV1ApiThirdParty */ readonly xGame?: string; } /** * Request parameters for unlinkEmail operation in AuthV1Api. * @export * @interface AuthV1ApiUnlinkEmailRequest */ interface AuthV1ApiUnlinkEmailRequest { /** * * @type {UnlinkEmailRequest} * @memberof AuthV1ApiUnlinkEmail */ readonly unlinkEmailRequest: UnlinkEmailRequest; } /** * Request parameters for unlinkOAuth operation in AuthV1Api. * @export * @interface AuthV1ApiUnlinkOAuthRequest */ interface AuthV1ApiUnlinkOAuthRequest { /** * * @type {UnlinkOAuthRequest} * @memberof AuthV1ApiUnlinkOAuth */ readonly unlinkOAuthRequest: UnlinkOAuthRequest; } /** * Request parameters for unlinkSIWE operation in AuthV1Api. * @export * @interface AuthV1ApiUnlinkSIWERequest */ interface AuthV1ApiUnlinkSIWERequest { /** * * @type {SIWERequest} * @memberof AuthV1ApiUnlinkSIWE */ readonly sIWERequest: SIWERequest; } /** * Request parameters for verifyEmail operation in AuthV1Api. * @export * @interface AuthV1ApiVerifyEmailRequest */ interface AuthV1ApiVerifyEmailRequest { /** * * @type {VerifyEmailRequest} * @memberof AuthV1ApiVerifyEmail */ readonly verifyEmailRequest: VerifyEmailRequest; } /** * Request parameters for verifyOAuthToken operation in AuthV1Api. * @export * @interface AuthV1ApiVerifyOAuthTokenRequest */ interface AuthV1ApiVerifyOAuthTokenRequest { /** * * @type {AuthenticateOAuthRequest} * @memberof AuthV1ApiVerifyOAuthToken */ readonly authenticateOAuthRequest: AuthenticateOAuthRequest; } /** * AuthV1Api - object-oriented interface * @export * @class AuthV1Api * @extends {BaseAPI} */ declare class AuthV1Api extends BaseAPI { /** * * @summary Authenticate player with SIWE * @param {AuthV1ApiAuthenticateSIWERequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ authenticateSIWE(requestParameters: AuthV1ApiAuthenticateSIWERequest, options?: AxiosRequestConfig): Promise>; /** * Get the jwks.json file. You can use the jwks.json file to verify the signature of a JWT token issued by Openfort Auth. * @summary Get the jwks.json file. * @param {AuthV1ApiGetJwksRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ getJwks(requestParameters: AuthV1ApiGetJwksRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Initialize OAuth. * @param {AuthV1ApiInitOAuthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ initOAuth(requestParameters: AuthV1ApiInitOAuthRequest, options?: AxiosRequestConfig): Promise>; /** * Create a challenge to link external wallet to the player. * @summary Initialize SIWE. * @param {AuthV1ApiInitSIWERequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ initSIWE(requestParameters: AuthV1ApiInitSIWERequest, options?: AxiosRequestConfig): Promise>; /** * * @param {AuthV1ApiLinkEmailRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ linkEmail(requestParameters: AuthV1ApiLinkEmailRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Initialize Link OAuth. * @param {AuthV1ApiLinkOAuthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ linkOAuth(requestParameters: AuthV1ApiLinkOAuthRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Link external wallet. * @param {AuthV1ApiLinkSIWERequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ linkSIWE(requestParameters: AuthV1ApiLinkSIWERequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Initialize Link OAuth. * @param {AuthV1ApiLinkThirdPartyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ linkThirdParty(requestParameters: AuthV1ApiLinkThirdPartyRequest, options?: AxiosRequestConfig): Promise>; /** * Authenticate a player based on email and password. * @summary Email and password login. * @param {AuthV1ApiLoginEmailPasswordRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ loginEmailPassword(requestParameters: AuthV1ApiLoginEmailPasswordRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Authenticate player with oauth token. * @param {AuthV1ApiLoginWithIdTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ loginWithIdToken(requestParameters: AuthV1ApiLoginWithIdTokenRequest, options?: AxiosRequestConfig): Promise>; /** * When using Openfort Auth, the endpoint logs out the player. * @summary Log out a player. * @param {AuthV1ApiLogoutRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ logout(requestParameters: AuthV1ApiLogoutRequest, options?: AxiosRequestConfig): Promise>; /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ me(options?: AxiosRequestConfig): Promise>; /** * * @summary Initialize OAuth. * @param {AuthV1ApiPoolOAuthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ poolOAuth(requestParameters: AuthV1ApiPoolOAuthRequest, options?: AxiosRequestConfig): Promise>; /** * Get or create a new session for the player based on the refresh token. * @summary Refresh or create auth session. * @param {AuthV1ApiRefreshRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ refresh(requestParameters: AuthV1ApiRefreshRequest, options?: AxiosRequestConfig): Promise>; /** * Create a guest player. * @summary Create a guest player. * @param {AuthV1ApiRegisterGuestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ registerGuest(requestParameters?: AuthV1ApiRegisterGuestRequest, options?: AxiosRequestConfig): Promise>; /** * Start the Email Verification process for a player. * @summary Request an Email Verification. * @param {AuthV1ApiRequestEmailVerificationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ requestEmailVerification(requestParameters: AuthV1ApiRequestEmailVerificationRequest, options?: AxiosRequestConfig): Promise>; /** * Start the Reset process for a player\'s password. * @summary Request a Reset password. * @param {AuthV1ApiRequestResetPasswordRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ requestResetPassword(requestParameters: AuthV1ApiRequestResetPasswordRequest, options?: AxiosRequestConfig): Promise>; /** * Reset a player\'s password. * @summary Reset a password. * @param {AuthV1ApiResetPasswordRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ resetPassword(requestParameters: AuthV1ApiResetPasswordRequest, options?: AxiosRequestConfig): Promise>; /** * Create and authenticate a player based on email and password. * @summary Email and password signup. * @param {AuthV1ApiSignupEmailPasswordRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ signupEmailPassword(requestParameters: AuthV1ApiSignupEmailPasswordRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Verify oauth token of a third party auth provider. * @param {AuthV1ApiThirdPartyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ thirdParty(requestParameters: AuthV1ApiThirdPartyRequest, options?: AxiosRequestConfig): Promise>; /** * * @param {AuthV1ApiUnlinkEmailRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ unlinkEmail(requestParameters: AuthV1ApiUnlinkEmailRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Unlink OAuth account * @param {AuthV1ApiUnlinkOAuthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ unlinkOAuth(requestParameters: AuthV1ApiUnlinkOAuthRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Unlink external wallet. * @param {AuthV1ApiUnlinkSIWERequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ unlinkSIWE(requestParameters: AuthV1ApiUnlinkSIWERequest, options?: AxiosRequestConfig): Promise>; /** * Verify a player\'s email address. * @summary Verify an email. * @param {AuthV1ApiVerifyEmailRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ verifyEmail(requestParameters: AuthV1ApiVerifyEmailRequest, options?: AxiosRequestConfig): Promise>; /** * The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player. Returns the latest 10 transaction intents for the player. * @summary Retrieve player by oauth token. * @param {AuthV1ApiVerifyOAuthTokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV1Api */ verifyOAuthToken(requestParameters: AuthV1ApiVerifyOAuthTokenRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for accountInfoPost operation in AuthV2Api. * @export * @interface AuthV2ApiAccountInfoPostRequest */ interface AuthV2ApiAccountInfoPostRequest { /** * * @type {AccountInfoPostRequest} * @memberof AuthV2ApiAccountInfoPost */ readonly accountInfoPostRequest: AccountInfoPostRequest; } /** * Request parameters for changeEmailPost operation in AuthV2Api. * @export * @interface AuthV2ApiChangeEmailPostRequest */ interface AuthV2ApiChangeEmailPostRequest { /** * * @type {ChangeEmailPostRequest} * @memberof AuthV2ApiChangeEmailPost */ readonly changeEmailPostRequest: ChangeEmailPostRequest; } /** * Request parameters for changePasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiChangePasswordPostRequest */ interface AuthV2ApiChangePasswordPostRequest { /** * * @type {ChangePasswordPostRequest} * @memberof AuthV2ApiChangePasswordPost */ readonly changePasswordPostRequest: ChangePasswordPostRequest; } /** * Request parameters for checkVerificationOtp operation in AuthV2Api. * @export * @interface AuthV2ApiCheckVerificationOtpRequest */ interface AuthV2ApiCheckVerificationOtpRequest { /** * * @type {CheckVerificationOtpRequest} * @memberof AuthV2ApiCheckVerificationOtp */ readonly checkVerificationOtpRequest: CheckVerificationOtpRequest; } /** * Request parameters for emailOtpResetPasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiEmailOtpResetPasswordPostRequest */ interface AuthV2ApiEmailOtpResetPasswordPostRequest { /** * * @type {EmailOtpResetPasswordPostRequest} * @memberof AuthV2ApiEmailOtpResetPasswordPost */ readonly emailOtpResetPasswordPostRequest: EmailOtpResetPasswordPostRequest; } /** * Request parameters for emailOtpSendVerificationOtpPost operation in AuthV2Api. * @export * @interface AuthV2ApiEmailOtpSendVerificationOtpPostRequest */ interface AuthV2ApiEmailOtpSendVerificationOtpPostRequest { /** * * @type {EmailOtpSendVerificationOtpPostRequest} * @memberof AuthV2ApiEmailOtpSendVerificationOtpPost */ readonly emailOtpSendVerificationOtpPostRequest: EmailOtpSendVerificationOtpPostRequest; } /** * Request parameters for emailOtpVerifyEmailPost operation in AuthV2Api. * @export * @interface AuthV2ApiEmailOtpVerifyEmailPostRequest */ interface AuthV2ApiEmailOtpVerifyEmailPostRequest { /** * * @type {EmailOtpVerifyEmailPostRequest} * @memberof AuthV2ApiEmailOtpVerifyEmailPost */ readonly emailOtpVerifyEmailPostRequest: EmailOtpVerifyEmailPostRequest; } /** * Request parameters for forgetPasswordEmailOtpPost operation in AuthV2Api. * @export * @interface AuthV2ApiForgetPasswordEmailOtpPostRequest */ interface AuthV2ApiForgetPasswordEmailOtpPostRequest { /** * * @type {ForgetPasswordEmailOtpPostRequest} * @memberof AuthV2ApiForgetPasswordEmailOtpPost */ readonly forgetPasswordEmailOtpPostRequest: ForgetPasswordEmailOtpPostRequest; } /** * Request parameters for forgetPasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiForgetPasswordPostRequest */ interface AuthV2ApiForgetPasswordPostRequest { /** * * @type {ForgetPasswordPostRequest} * @memberof AuthV2ApiForgetPasswordPost */ readonly forgetPasswordPostRequest: ForgetPasswordPostRequest; } /** * Request parameters for getAccessTokenPost operation in AuthV2Api. * @export * @interface AuthV2ApiGetAccessTokenPostRequest */ interface AuthV2ApiGetAccessTokenPostRequest { /** * * @type {RefreshTokenPostRequest} * @memberof AuthV2ApiGetAccessTokenPost */ readonly refreshTokenPostRequest: RefreshTokenPostRequest; } /** * Request parameters for getSessionGet operation in AuthV2Api. * @export * @interface AuthV2ApiGetSessionGetRequest */ interface AuthV2ApiGetSessionGetRequest { /** * Disable cookie cache and fetch session from database * @type {boolean} * @memberof AuthV2ApiGetSessionGet */ readonly disableCookieCache?: boolean; } /** * Request parameters for linkSiweNoncePost operation in AuthV2Api. * @export * @interface AuthV2ApiLinkSiweNoncePostRequest */ interface AuthV2ApiLinkSiweNoncePostRequest { /** * * @type {SiweNoncePostRequest} * @memberof AuthV2ApiLinkSiweNoncePost */ readonly siweNoncePostRequest: SiweNoncePostRequest; } /** * Request parameters for linkSiweUnlinkPost operation in AuthV2Api. * @export * @interface AuthV2ApiLinkSiweUnlinkPostRequest */ interface AuthV2ApiLinkSiweUnlinkPostRequest { /** * * @type {LinkSiweUnlinkPostRequest} * @memberof AuthV2ApiLinkSiweUnlinkPost */ readonly linkSiweUnlinkPostRequest: LinkSiweUnlinkPostRequest; } /** * Request parameters for linkSiweVerifyPost operation in AuthV2Api. * @export * @interface AuthV2ApiLinkSiweVerifyPostRequest */ interface AuthV2ApiLinkSiweVerifyPostRequest { /** * * @type {SiweVerifyPostRequest} * @memberof AuthV2ApiLinkSiweVerifyPost */ readonly siweVerifyPostRequest: SiweVerifyPostRequest; } /** * Request parameters for linkSocialPost operation in AuthV2Api. * @export * @interface AuthV2ApiLinkSocialPostRequest */ interface AuthV2ApiLinkSocialPostRequest { /** * * @type {LinkSocialPostRequest} * @memberof AuthV2ApiLinkSocialPost */ readonly linkSocialPostRequest: LinkSocialPostRequest; } /** * Request parameters for phoneNumberForgetPasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiPhoneNumberForgetPasswordPostRequest */ interface AuthV2ApiPhoneNumberForgetPasswordPostRequest { /** * * @type {PhoneNumberForgetPasswordPostRequest} * @memberof AuthV2ApiPhoneNumberForgetPasswordPost */ readonly phoneNumberForgetPasswordPostRequest: PhoneNumberForgetPasswordPostRequest; } /** * Request parameters for phoneNumberRequestPasswordResetPost operation in AuthV2Api. * @export * @interface AuthV2ApiPhoneNumberRequestPasswordResetPostRequest */ interface AuthV2ApiPhoneNumberRequestPasswordResetPostRequest { /** * * @type {PhoneNumberRequestPasswordResetPostRequest} * @memberof AuthV2ApiPhoneNumberRequestPasswordResetPost */ readonly phoneNumberRequestPasswordResetPostRequest: PhoneNumberRequestPasswordResetPostRequest; } /** * Request parameters for phoneNumberResetPasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiPhoneNumberResetPasswordPostRequest */ interface AuthV2ApiPhoneNumberResetPasswordPostRequest { /** * * @type {PhoneNumberResetPasswordPostRequest} * @memberof AuthV2ApiPhoneNumberResetPasswordPost */ readonly phoneNumberResetPasswordPostRequest: PhoneNumberResetPasswordPostRequest; } /** * Request parameters for phoneNumberSendOtpPost operation in AuthV2Api. * @export * @interface AuthV2ApiPhoneNumberSendOtpPostRequest */ interface AuthV2ApiPhoneNumberSendOtpPostRequest { /** * * @type {PhoneNumberSendOtpPostRequest} * @memberof AuthV2ApiPhoneNumberSendOtpPost */ readonly phoneNumberSendOtpPostRequest: PhoneNumberSendOtpPostRequest; } /** * Request parameters for phoneNumberVerifyPost operation in AuthV2Api. * @export * @interface AuthV2ApiPhoneNumberVerifyPostRequest */ interface AuthV2ApiPhoneNumberVerifyPostRequest { /** * * @type {PhoneNumberVerifyPostRequest} * @memberof AuthV2ApiPhoneNumberVerifyPost */ readonly phoneNumberVerifyPostRequest: PhoneNumberVerifyPostRequest; } /** * Request parameters for refreshTokenPost operation in AuthV2Api. * @export * @interface AuthV2ApiRefreshTokenPostRequest */ interface AuthV2ApiRefreshTokenPostRequest { /** * * @type {RefreshTokenPostRequest} * @memberof AuthV2ApiRefreshTokenPost */ readonly refreshTokenPostRequest: RefreshTokenPostRequest; } /** * Request parameters for requestPasswordResetPost operation in AuthV2Api. * @export * @interface AuthV2ApiRequestPasswordResetPostRequest */ interface AuthV2ApiRequestPasswordResetPostRequest { /** * * @type {ForgetPasswordPostRequest} * @memberof AuthV2ApiRequestPasswordResetPost */ readonly forgetPasswordPostRequest: ForgetPasswordPostRequest; } /** * Request parameters for resetPasswordPost operation in AuthV2Api. * @export * @interface AuthV2ApiResetPasswordPostRequest */ interface AuthV2ApiResetPasswordPostRequest { /** * * @type {ResetPasswordPostRequest} * @memberof AuthV2ApiResetPasswordPost */ readonly resetPasswordPostRequest: ResetPasswordPostRequest; } /** * Request parameters for resetPasswordTokenGet operation in AuthV2Api. * @export * @interface AuthV2ApiResetPasswordTokenGetRequest */ interface AuthV2ApiResetPasswordTokenGetRequest { /** * * @type {string} * @memberof AuthV2ApiResetPasswordTokenGet */ readonly token: string; /** * * @type {string} * @memberof AuthV2ApiResetPasswordTokenGet */ readonly callbackURL?: string; } /** * Request parameters for revokeOtherSessionsPost operation in AuthV2Api. * @export * @interface AuthV2ApiRevokeOtherSessionsPostRequest */ interface AuthV2ApiRevokeOtherSessionsPostRequest { /** * * @type {object} * @memberof AuthV2ApiRevokeOtherSessionsPost */ readonly body?: object; } /** * Request parameters for revokeSessionPost operation in AuthV2Api. * @export * @interface AuthV2ApiRevokeSessionPostRequest */ interface AuthV2ApiRevokeSessionPostRequest { /** * * @type {RevokeSessionPostRequest} * @memberof AuthV2ApiRevokeSessionPost */ readonly revokeSessionPostRequest?: RevokeSessionPostRequest; } /** * Request parameters for revokeSessionsPost operation in AuthV2Api. * @export * @interface AuthV2ApiRevokeSessionsPostRequest */ interface AuthV2ApiRevokeSessionsPostRequest { /** * * @type {object} * @memberof AuthV2ApiRevokeSessionsPost */ readonly body?: object; } /** * Request parameters for sendVerificationEmailPost operation in AuthV2Api. * @export * @interface AuthV2ApiSendVerificationEmailPostRequest */ interface AuthV2ApiSendVerificationEmailPostRequest { /** * * @type {SendVerificationEmailPostRequest} * @memberof AuthV2ApiSendVerificationEmailPost */ readonly sendVerificationEmailPostRequest?: SendVerificationEmailPostRequest; } /** * Request parameters for signInEmailOtpPost operation in AuthV2Api. * @export * @interface AuthV2ApiSignInEmailOtpPostRequest */ interface AuthV2ApiSignInEmailOtpPostRequest { /** * * @type {SignInEmailOtpPostRequest} * @memberof AuthV2ApiSignInEmailOtpPost */ readonly signInEmailOtpPostRequest: SignInEmailOtpPostRequest; } /** * Request parameters for signInEmailPost operation in AuthV2Api. * @export * @interface AuthV2ApiSignInEmailPostRequest */ interface AuthV2ApiSignInEmailPostRequest { /** * * @type {SignInEmailPostRequest} * @memberof AuthV2ApiSignInEmailPost */ readonly signInEmailPostRequest: SignInEmailPostRequest; } /** * Request parameters for signInPhoneNumberPost operation in AuthV2Api. * @export * @interface AuthV2ApiSignInPhoneNumberPostRequest */ interface AuthV2ApiSignInPhoneNumberPostRequest { /** * * @type {SignInPhoneNumberPostRequest} * @memberof AuthV2ApiSignInPhoneNumberPost */ readonly signInPhoneNumberPostRequest: SignInPhoneNumberPostRequest; } /** * Request parameters for signOutPost operation in AuthV2Api. * @export * @interface AuthV2ApiSignOutPostRequest */ interface AuthV2ApiSignOutPostRequest { /** * * @type {object} * @memberof AuthV2ApiSignOutPost */ readonly body?: object; } /** * Request parameters for signUpEmailPost operation in AuthV2Api. * @export * @interface AuthV2ApiSignUpEmailPostRequest */ interface AuthV2ApiSignUpEmailPostRequest { /** * * @type {SignUpEmailPostRequest} * @memberof AuthV2ApiSignUpEmailPost */ readonly signUpEmailPostRequest?: SignUpEmailPostRequest; } /** * Request parameters for siweNoncePost operation in AuthV2Api. * @export * @interface AuthV2ApiSiweNoncePostRequest */ interface AuthV2ApiSiweNoncePostRequest { /** * * @type {SiweNoncePostRequest} * @memberof AuthV2ApiSiweNoncePost */ readonly siweNoncePostRequest: SiweNoncePostRequest; } /** * Request parameters for siweVerifyPost operation in AuthV2Api. * @export * @interface AuthV2ApiSiweVerifyPostRequest */ interface AuthV2ApiSiweVerifyPostRequest { /** * * @type {SiweVerifyPostRequest} * @memberof AuthV2ApiSiweVerifyPost */ readonly siweVerifyPostRequest: SiweVerifyPostRequest; } /** * Request parameters for socialSignIn operation in AuthV2Api. * @export * @interface AuthV2ApiSocialSignInRequest */ interface AuthV2ApiSocialSignInRequest { /** * * @type {SocialSignInRequest} * @memberof AuthV2ApiSocialSignIn */ readonly socialSignInRequest: SocialSignInRequest; } /** * Request parameters for unlinkAccountPost operation in AuthV2Api. * @export * @interface AuthV2ApiUnlinkAccountPostRequest */ interface AuthV2ApiUnlinkAccountPostRequest { /** * * @type {UnlinkAccountPostRequest} * @memberof AuthV2ApiUnlinkAccountPost */ readonly unlinkAccountPostRequest: UnlinkAccountPostRequest; } /** * Request parameters for verifyEmailGet operation in AuthV2Api. * @export * @interface AuthV2ApiVerifyEmailGetRequest */ interface AuthV2ApiVerifyEmailGetRequest { /** * The token to verify the email * @type {string} * @memberof AuthV2ApiVerifyEmailGet */ readonly token: string; /** * The URL to redirect to after email verification * @type {string} * @memberof AuthV2ApiVerifyEmailGet */ readonly callbackURL?: string; } /** * AuthV2Api - object-oriented interface * @export * @class AuthV2Api * @extends {BaseAPI} */ declare class AuthV2Api extends BaseAPI { /** * Get the account info provided by the provider * @summary Get account info. * @param {AuthV2ApiAccountInfoPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ accountInfoPost(requestParameters: AuthV2ApiAccountInfoPostRequest, options?: AxiosRequestConfig): Promise>; /** * Change user\'s email * @summary Change email. * @param {AuthV2ApiChangeEmailPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ changeEmailPost(requestParameters: AuthV2ApiChangeEmailPostRequest, options?: AxiosRequestConfig): Promise>; /** * Change the password of the user * @summary Change password. * @param {AuthV2ApiChangePasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ changePasswordPost(requestParameters: AuthV2ApiChangePasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Check if a verification OTP is valid * @summary Check email OTP. * @param {AuthV2ApiCheckVerificationOtpRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ checkVerificationOtp(requestParameters: AuthV2ApiCheckVerificationOtpRequest, options?: AxiosRequestConfig): Promise>; /** * Reset user password with OTP * @summary Reset password with email OTP. * @param {AuthV2ApiEmailOtpResetPasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ emailOtpResetPasswordPost(requestParameters: AuthV2ApiEmailOtpResetPasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Send verification OTP * @summary Request email verification with OTP. * @param {AuthV2ApiEmailOtpSendVerificationOtpPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ emailOtpSendVerificationOtpPost(requestParameters: AuthV2ApiEmailOtpSendVerificationOtpPostRequest, options?: AxiosRequestConfig): Promise>; /** * Verify email with OTP * @summary Verify email with OTP. * @param {AuthV2ApiEmailOtpVerifyEmailPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ emailOtpVerifyEmailPost(requestParameters: AuthV2ApiEmailOtpVerifyEmailPostRequest, options?: AxiosRequestConfig): Promise>; /** * Send a password reset OTP to the user * @summary Request password reset with email OTP. * @param {AuthV2ApiForgetPasswordEmailOtpPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ forgetPasswordEmailOtpPost(requestParameters: AuthV2ApiForgetPasswordEmailOtpPostRequest, options?: AxiosRequestConfig): Promise>; /** * Send a password reset email to the user * @summary Forget password. * @param {AuthV2ApiForgetPasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ forgetPasswordPost(requestParameters: AuthV2ApiForgetPasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Get a valid access token, doing a refresh if needed * @summary Get access token. * @param {AuthV2ApiGetAccessTokenPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ getAccessTokenPost(requestParameters: AuthV2ApiGetAccessTokenPostRequest, options?: AxiosRequestConfig): Promise>; /** * Get the current session * @summary Get the current session. * @param {AuthV2ApiGetSessionGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ getSessionGet(requestParameters?: AuthV2ApiGetSessionGetRequest, options?: AxiosRequestConfig): Promise>; /** * Get all SIWE wallets linked to the authenticated user with full wallet metadata including primary status and chain information. Requires active session. * @summary List linked wallets. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ linkSiweListWalletsGet(options?: AxiosRequestConfig): Promise>; /** * Generates a cryptographically secure nonce for creating a SIWE message to link a wallet to the current authenticated user. Requires active session. * @summary Initialize SIWE link. * @param {AuthV2ApiLinkSiweNoncePostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ linkSiweNoncePost(requestParameters: AuthV2ApiLinkSiweNoncePostRequest, options?: AxiosRequestConfig): Promise>; /** * Remove a linked wallet from the authenticated user account. If the wallet being unlinked is the primary wallet, another wallet will be automatically promoted to primary. Requires active session. * @summary Unlink SIWE wallet. * @param {AuthV2ApiLinkSiweUnlinkPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ linkSiweUnlinkPost(requestParameters: AuthV2ApiLinkSiweUnlinkPostRequest, options?: AxiosRequestConfig): Promise>; /** * Verifies the SIWE signature and links the wallet to the currently authenticated user. Requires active session. * @summary Verify and link SIWE wallet. * @param {AuthV2ApiLinkSiweVerifyPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ linkSiweVerifyPost(requestParameters: AuthV2ApiLinkSiweVerifyPostRequest, options?: AxiosRequestConfig): Promise>; /** * Link a social account to the user * @summary Link social account. * @param {AuthV2ApiLinkSocialPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ linkSocialPost(requestParameters: AuthV2ApiLinkSocialPostRequest, options?: AxiosRequestConfig): Promise>; /** * List all accounts linked to the user * @summary List lined accounts. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ listAccountsGet(options?: AxiosRequestConfig): Promise>; /** * List all active sessions for the user * @summary List sessions. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ listSessionsGet(options?: AxiosRequestConfig): Promise>; /** * Request OTP for password reset via phone number * @summary Reset password reset with phone(forget password flow). * @param {AuthV2ApiPhoneNumberForgetPasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ phoneNumberForgetPasswordPost(requestParameters: AuthV2ApiPhoneNumberForgetPasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Request OTP for password reset via phone number * @summary Request password reset with phone. * @param {AuthV2ApiPhoneNumberRequestPasswordResetPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ phoneNumberRequestPasswordResetPost(requestParameters: AuthV2ApiPhoneNumberRequestPasswordResetPostRequest, options?: AxiosRequestConfig): Promise>; /** * Reset password using phone number OTP * @summary Reset password with phone OTP. * @param {AuthV2ApiPhoneNumberResetPasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ phoneNumberResetPasswordPost(requestParameters: AuthV2ApiPhoneNumberResetPasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Use this endpoint to send OTP to phone number * @summary Send OTP to phone number. * @param {AuthV2ApiPhoneNumberSendOtpPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ phoneNumberSendOtpPost(requestParameters: AuthV2ApiPhoneNumberSendOtpPostRequest, options?: AxiosRequestConfig): Promise>; /** * Use this endpoint to verify phone number * @summary Verify phone OTP. * @param {AuthV2ApiPhoneNumberVerifyPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ phoneNumberVerifyPost(requestParameters: AuthV2ApiPhoneNumberVerifyPostRequest, options?: AxiosRequestConfig): Promise>; /** * Refresh the access token using a refresh token * @summary Refresh access token. * @param {AuthV2ApiRefreshTokenPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ refreshTokenPost(requestParameters: AuthV2ApiRefreshTokenPostRequest, options?: AxiosRequestConfig): Promise>; /** * Send a password reset email to the user * @summary Request password reset. * @param {AuthV2ApiRequestPasswordResetPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ requestPasswordResetPost(requestParameters: AuthV2ApiRequestPasswordResetPostRequest, options?: AxiosRequestConfig): Promise>; /** * Reset the password for a user * @summary Reset password. * @param {AuthV2ApiResetPasswordPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ resetPasswordPost(requestParameters: AuthV2ApiResetPasswordPostRequest, options?: AxiosRequestConfig): Promise>; /** * Redirects the user to the callback URL with the token * @summary Reset password callback. * @param {AuthV2ApiResetPasswordTokenGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ resetPasswordTokenGet(requestParameters: AuthV2ApiResetPasswordTokenGetRequest, options?: AxiosRequestConfig): Promise>; /** * Revoke all other sessions for the user except the current one * @summary Revoke other sessions. * @param {AuthV2ApiRevokeOtherSessionsPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ revokeOtherSessionsPost(requestParameters?: AuthV2ApiRevokeOtherSessionsPostRequest, options?: AxiosRequestConfig): Promise>; /** * Revoke a single session * @summary Revoke session. * @param {AuthV2ApiRevokeSessionPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ revokeSessionPost(requestParameters?: AuthV2ApiRevokeSessionPostRequest, options?: AxiosRequestConfig): Promise>; /** * Revoke all sessions for the user * @summary Revoke sessions. * @param {AuthV2ApiRevokeSessionsPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ revokeSessionsPost(requestParameters?: AuthV2ApiRevokeSessionsPostRequest, options?: AxiosRequestConfig): Promise>; /** * Send a verification email to the user * @summary Send verification email. * @param {AuthV2ApiSendVerificationEmailPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ sendVerificationEmailPost(requestParameters?: AuthV2ApiSendVerificationEmailPostRequest, options?: AxiosRequestConfig): Promise>; /** * Sign in anonymously * @summary Anonymous sign in. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signInAnonymousPost(options?: AxiosRequestConfig): Promise>; /** * Sign in with OTP * @summary Sign in with email OTP. * @param {AuthV2ApiSignInEmailOtpPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signInEmailOtpPost(requestParameters: AuthV2ApiSignInEmailOtpPostRequest, options?: AxiosRequestConfig): Promise>; /** * Sign in with email and password * @summary Sign in with email and password. * @param {AuthV2ApiSignInEmailPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signInEmailPost(requestParameters: AuthV2ApiSignInEmailPostRequest, options?: AxiosRequestConfig): Promise>; /** * Use this endpoint to sign in with phone number * @summary Sign in with phone. * @param {AuthV2ApiSignInPhoneNumberPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signInPhoneNumberPost(requestParameters: AuthV2ApiSignInPhoneNumberPostRequest, options?: AxiosRequestConfig): Promise>; /** * Sign out the current user * @summary Sign out. * @param {AuthV2ApiSignOutPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signOutPost(requestParameters?: AuthV2ApiSignOutPostRequest, options?: AxiosRequestConfig): Promise>; /** * Sign up a user using email and password * @summary Sign up with email and password. * @param {AuthV2ApiSignUpEmailPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ signUpEmailPost(requestParameters?: AuthV2ApiSignUpEmailPostRequest, options?: AxiosRequestConfig): Promise>; /** * Generate a nonce for Sign-In With Ethereum (SIWE) authentication * @summary Initialize SIWE login. * @param {AuthV2ApiSiweNoncePostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ siweNoncePost(requestParameters: AuthV2ApiSiweNoncePostRequest, options?: AxiosRequestConfig): Promise>; /** * Verify a signed SIWE message and authenticate the user * @summary Login with SIWE. * @param {AuthV2ApiSiweVerifyPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ siweVerifyPost(requestParameters: AuthV2ApiSiweVerifyPostRequest, options?: AxiosRequestConfig): Promise>; /** * Sign in with a social provider * @summary Sign in with a social provider. * @param {AuthV2ApiSocialSignInRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ socialSignIn(requestParameters: AuthV2ApiSocialSignInRequest, options?: AxiosRequestConfig): Promise>; /** * Unlink an account * @summary Unlink account. * @param {AuthV2ApiUnlinkAccountPostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ unlinkAccountPost(requestParameters: AuthV2ApiUnlinkAccountPostRequest, options?: AxiosRequestConfig): Promise>; /** * Verify the email of the user. Usually this endpoint is called when user clicks \'Verify email\' link from the letter. * @summary Verify email. * @param {AuthV2ApiVerifyEmailGetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthV2Api */ verifyEmailGet(requestParameters: AuthV2ApiVerifyEmailGetRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for handleChainRpcRequest operation in RPCApi. * @export * @interface RPCApiHandleChainRpcRequestRequest */ interface RPCApiHandleChainRpcRequestRequest { /** * * @type {number} * @memberof RPCApiHandleChainRpcRequest */ readonly chainId: number; /** * * @type {JsonRpcRequest} * @memberof RPCApiHandleChainRpcRequest */ readonly jsonRpcRequest: JsonRpcRequest; } /** * Request parameters for handleRpcRequest operation in RPCApi. * @export * @interface RPCApiHandleRpcRequestRequest */ interface RPCApiHandleRpcRequestRequest { /** * * @type {JsonRpcRequest} * @memberof RPCApiHandleRpcRequest */ readonly jsonRpcRequest: JsonRpcRequest; } /** * RPCApi - object-oriented interface * @export * @class RPCApi * @extends {BaseAPI} */ declare class RPCApi extends BaseAPI { /** * Execute chain-specific JSON-RPC 2.0 methods (bundler & paymaster) This endpoint handles chain-specific JSON-RPC 2.0 requests for ERC-4337 bundler operations and ERC-7677 paymaster operations. The chainId is specified in the URL path following the standard pattern. **Supported namespaces:** - `eth_*`: ERC-4337 bundler methods (sendUserOperation, estimateUserOperationGas, getUserOperationReceipt, getUserOperationByHash, supportedEntryPoints) - `openfort_*`: Openfort bundler extensions (getUserOperationGasPrice, getUserOperationStatus) - `pm_*`: ERC-7677 paymaster methods (getPaymasterStubData, getPaymasterData) - `wallet_*`: EIP-7811 wallet methods (can also be called here with chainId context) * @summary Execute chain-specific bundler and paymaster JSON-RPC methods * @param {RPCApiHandleChainRpcRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RPCApi */ handleChainRpcRequest(requestParameters: RPCApiHandleChainRpcRequestRequest, options?: AxiosRequestConfig): Promise>; /** * Execute JSON-RPC 2.0 wallet methods This endpoint handles wallet-namespace JSON-RPC 2.0 requests following the specification at https://www.jsonrpc.org/specification. It supports EIP-7811 wallet methods that operate across multiple chains. **Supported methods:** - `wallet_getAssets`: Retrieve wallet assets across multiple chains with optional filtering **Authentication:** Supports multiple authentication methods including public key access tokens and third-party tokens * @summary Execute wallet JSON-RPC methods * @param {RPCApiHandleRpcRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof RPCApi */ handleRpcRequest(requestParameters: RPCApiHandleRpcRequestRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for createSession operation in SessionsApi. * @export * @interface SessionsApiCreateSessionRequest */ interface SessionsApiCreateSessionRequest { /** * * @type {CreateSessionRequest} * @memberof SessionsApiCreateSession */ readonly createSessionRequest: CreateSessionRequest; /** * * @type {string} * @memberof SessionsApiCreateSession */ readonly xBehalfOfProject?: string; } /** * Request parameters for getPlayerSessions operation in SessionsApi. * @export * @interface SessionsApiGetPlayerSessionsRequest */ interface SessionsApiGetPlayerSessionsRequest { /** * The player ID (starts with pla_) * @type {string} * @memberof SessionsApiGetPlayerSessions */ readonly player: string; /** * Specifies the maximum number of records to return. * @type {number} * @memberof SessionsApiGetPlayerSessions */ readonly limit?: number; /** * Specifies the offset for the first records to return. * @type {number} * @memberof SessionsApiGetPlayerSessions */ readonly skip?: number; /** * Specifies the order in which to sort the results. * @type {PrismaSortOrder} * @memberof SessionsApiGetPlayerSessions */ readonly order?: PrismaSortOrder; /** * Specifies the fields to expand in the response. * @type {Array} * @memberof SessionsApiGetPlayerSessions */ readonly expand?: Array; } /** * Request parameters for getSession operation in SessionsApi. * @export * @interface SessionsApiGetSessionRequest */ interface SessionsApiGetSessionRequest { /** * Specifies the unique session ID (starts with ses_). * @type {string} * @memberof SessionsApiGetSession */ readonly id: string; /** * Specifies the fields to expand. * @type {Array} * @memberof SessionsApiGetSession */ readonly expand?: Array; } /** * Request parameters for revokeSession operation in SessionsApi. * @export * @interface SessionsApiRevokeSessionRequest */ interface SessionsApiRevokeSessionRequest { /** * * @type {RevokeSessionRequest} * @memberof SessionsApiRevokeSession */ readonly revokeSessionRequest: RevokeSessionRequest; /** * * @type {string} * @memberof SessionsApiRevokeSession */ readonly xBehalfOfProject?: string; } /** * Request parameters for signatureSession operation in SessionsApi. * @export * @interface SessionsApiSignatureSessionRequest */ interface SessionsApiSignatureSessionRequest { /** * Specifies the unique session ID (starts with ses_). * @type {string} * @memberof SessionsApiSignatureSession */ readonly id: string; /** * * @type {SignatureRequest} * @memberof SessionsApiSignatureSession */ readonly signatureRequest: SignatureRequest; } /** * SessionsApi - object-oriented interface * @export * @class SessionsApi * @extends {BaseAPI} */ declare class SessionsApi extends BaseAPI { /** * Creates a Session. * @summary Create a session key. * @param {SessionsApiCreateSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionsApi */ createSession(requestParameters: SessionsApiCreateSessionRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a list of Sessions. Returns the latest 10 transaction intents for each session. * @summary List session keys of a player. * @param {SessionsApiGetPlayerSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionsApi */ getPlayerSessions(requestParameters: SessionsApiGetPlayerSessionsRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the details of a Session that has previously been created. Returns the latest 10 transaction intents that used this session. * @summary Returns a player session by session id * @param {SessionsApiGetSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionsApi */ getSession(requestParameters: SessionsApiGetSessionRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Revoke the session session key. * @param {SessionsApiRevokeSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionsApi */ revokeSession(requestParameters: SessionsApiRevokeSessionRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Send signed userOperationHash to create session. * @param {SessionsApiSignatureSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SessionsApi */ signatureSession(requestParameters: SessionsApiSignatureSessionRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for createTransactionIntent operation in TransactionIntentsApi. * @export * @interface TransactionIntentsApiCreateTransactionIntentRequest */ interface TransactionIntentsApiCreateTransactionIntentRequest { /** * * @type {CreateTransactionIntentRequest} * @memberof TransactionIntentsApiCreateTransactionIntent */ readonly createTransactionIntentRequest: CreateTransactionIntentRequest; /** * * @type {string} * @memberof TransactionIntentsApiCreateTransactionIntent */ readonly xBehalfOfProject?: string; } /** * Request parameters for estimateTransactionIntentCost operation in TransactionIntentsApi. * @export * @interface TransactionIntentsApiEstimateTransactionIntentCostRequest */ interface TransactionIntentsApiEstimateTransactionIntentCostRequest { /** * * @type {CreateTransactionIntentRequest} * @memberof TransactionIntentsApiEstimateTransactionIntentCost */ readonly createTransactionIntentRequest: CreateTransactionIntentRequest; } /** * Request parameters for getTransactionIntent operation in TransactionIntentsApi. * @export * @interface TransactionIntentsApiGetTransactionIntentRequest */ interface TransactionIntentsApiGetTransactionIntentRequest { /** * Specifies the unique transaction intent ID (starts with tin_). * @type {string} * @memberof TransactionIntentsApiGetTransactionIntent */ readonly id: string; /** * Specifies the expandable fields. * @type {Array} * @memberof TransactionIntentsApiGetTransactionIntent */ readonly expand?: Array; } /** * Request parameters for getTransactionIntents operation in TransactionIntentsApi. * @export * @interface TransactionIntentsApiGetTransactionIntentsRequest */ interface TransactionIntentsApiGetTransactionIntentsRequest { /** * Specifies the maximum number of records to return. * @type {number} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly limit?: number; /** * Specifies the offset for the first records to return. * @type {number} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly skip?: number; /** * Specifies the order in which to sort the results. * @type {PrismaSortOrder} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly order?: PrismaSortOrder; /** * Specifies the fields to expand in the response. * @type {Array} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly expand?: Array; /** * The chain ID. Must be a [supported chain](/development/chains). * @type {number} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly chainId?: number; /** * Filter by account ID or developer account (starts with acc_ or dac_ respectively). * @type {Array} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly account?: Array; /** * Filter by player ID (starts with pla_). * @type {Array} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly player?: Array; /** * Filter by successful (1) or failed (0) transaction intents. * @type {number} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly status?: number; /** * Filter by policy ID (starts with pol_). * @type {Array} * @memberof TransactionIntentsApiGetTransactionIntents */ readonly policy?: Array; } /** * Request parameters for signature operation in TransactionIntentsApi. * @export * @interface TransactionIntentsApiSignatureRequest */ interface TransactionIntentsApiSignatureRequest { /** * Specifies the unique transaction intent ID (starts with tin_). * @type {string} * @memberof TransactionIntentsApiSignature */ readonly id: string; /** * * @type {SignatureRequest} * @memberof TransactionIntentsApiSignature */ readonly signatureRequest: SignatureRequest; } /** * TransactionIntentsApi - object-oriented interface * @export * @class TransactionIntentsApi * @extends {BaseAPI} */ declare class TransactionIntentsApi extends BaseAPI { /** * Creates a TransactionIntent. A pending TransactionIntent has the `response` attribute as undefined. After the TransactionIntent is created and broadcasted to the blockchain, `response` will be populated with the transaction hash and a status (1 success, 0 fail). When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account. * @summary Create a transaction intent object. * @param {TransactionIntentsApiCreateTransactionIntentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionIntentsApi */ createTransactionIntent(requestParameters: TransactionIntentsApiCreateTransactionIntentRequest, options?: AxiosRequestConfig): Promise>; /** * Estimate the gas cost of broadcasting a TransactionIntent. This is a simulation, it does not send the transaction on-chain. If a Policy ID is used that includes payment of gas in ERC-20 tokens, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens that will be used. * @summary Estimate gas cost of creating a transaction * @param {TransactionIntentsApiEstimateTransactionIntentCostRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionIntentsApi */ estimateTransactionIntentCost(requestParameters: TransactionIntentsApiEstimateTransactionIntentCostRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the details of a TransactionIntent that has previously been created. * @summary Get a transaction intent object. * @param {TransactionIntentsApiGetTransactionIntentRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionIntentsApi */ getTransactionIntent(requestParameters: TransactionIntentsApiGetTransactionIntentRequest, options?: AxiosRequestConfig): Promise>; /** * Returns a list of TransactionIntents. * @summary List transaction intents. * @param {TransactionIntentsApiGetTransactionIntentsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionIntentsApi */ getTransactionIntents(requestParameters?: TransactionIntentsApiGetTransactionIntentsRequest, options?: AxiosRequestConfig): Promise>; /** * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain. * @summary Send a signed transaction signableHash. * @param {TransactionIntentsApiSignatureRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof TransactionIntentsApi */ signature(requestParameters: TransactionIntentsApiSignatureRequest, options?: AxiosRequestConfig): Promise>; } /** * Request parameters for deleteUser operation in UsersApi. * @export * @interface UsersApiDeleteUserRequest */ interface UsersApiDeleteUserRequest { /** * Specifies the unique user ID (starts with pla_). * @type {string} * @memberof UsersApiDeleteUser */ readonly id: string; } /** * Request parameters for getAuthUser operation in UsersApi. * @export * @interface UsersApiGetAuthUserRequest */ interface UsersApiGetAuthUserRequest { /** * * @type {string} * @memberof UsersApiGetAuthUser */ readonly id: string; } /** * Request parameters for getAuthUsers operation in UsersApi. * @export * @interface UsersApiGetAuthUsersRequest */ interface UsersApiGetAuthUsersRequest { /** * Specifies the maximum number of records to return. * @type {number} * @memberof UsersApiGetAuthUsers */ readonly limit?: number; /** * Specifies the offset for the first records to return. * @type {number} * @memberof UsersApiGetAuthUsers */ readonly skip?: number; /** * Specifies the order in which to sort the results. * @type {PrismaSortOrder} * @memberof UsersApiGetAuthUsers */ readonly order?: PrismaSortOrder; /** * Filter by user name. * @type {string} * @memberof UsersApiGetAuthUsers */ readonly name?: string; /** * Filter by external user ID (accountId from linked accounts). * @type {string} * @memberof UsersApiGetAuthUsers */ readonly externalUserId?: string; /** * Filter by user email. * @type {string} * @memberof UsersApiGetAuthUsers */ readonly email?: string; /** * Filter by user phone number. * @type {string} * @memberof UsersApiGetAuthUsers */ readonly phoneNumber?: string; /** * Filter by provider ID (e.g., \"google\", \"apple\", \"siwe\", \"credential\"). * @type {string} * @memberof UsersApiGetAuthUsers */ readonly authProviderId?: string; /** * Filter by wallet client type (for SIWE accounts). * @type {string} * @memberof UsersApiGetAuthUsers */ readonly walletClientType?: string; } /** * Request parameters for getUserWallet operation in UsersApi. * @export * @interface UsersApiGetUserWalletRequest */ interface UsersApiGetUserWalletRequest { /** * * @type {string} * @memberof UsersApiGetUserWallet */ readonly id: string; } /** * Request parameters for pregenerateUserV2 operation in UsersApi. * @export * @interface UsersApiPregenerateUserV2Request */ interface UsersApiPregenerateUserV2Request { /** * * @type {PregenerateUserRequestV2} * @memberof UsersApiPregenerateUserV2 */ readonly pregenerateUserRequestV2: PregenerateUserRequestV2; } /** * Request parameters for thirdPartyV2 operation in UsersApi. * @export * @interface UsersApiThirdPartyV2Request */ interface UsersApiThirdPartyV2Request { /** * * @type {ThirdPartyOAuthRequest} * @memberof UsersApiThirdPartyV2 */ readonly thirdPartyOAuthRequest: ThirdPartyOAuthRequest; } /** * UsersApi - object-oriented interface * @export * @class UsersApi * @extends {BaseAPI} */ declare class UsersApi extends BaseAPI { /** * It will delete all linked accounts the user is authenticated with. If the user has a linked embedded signer, it will be deleted as well. * @summary Delete user by id. * @param {UsersApiDeleteUserRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves an authenticated user. Users have linked accounts and are authenticated with a provider. * @summary Get authenticated user by id. * @param {UsersApiGetAuthUserRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ getAuthUser(requestParameters: UsersApiGetAuthUserRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves an authenticated users. Users have linked accounts and are authenticated with a provider. * @summary List authenticated users. * @param {UsersApiGetAuthUsersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ getAuthUsers(requestParameters?: UsersApiGetAuthUsersRequest, options?: AxiosRequestConfig): Promise>; /** * Retrieves the wallet associated with an authenticated user. * @summary Get wallet for user. * @param {UsersApiGetUserWalletRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ getUserWallet(requestParameters: UsersApiGetUserWalletRequest, options?: AxiosRequestConfig): Promise>; /** * * @summary Get user information. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ meV2(options?: AxiosRequestConfig): Promise>; /** * Pre-generate a user with an embedded account before they authenticate. Creates a user record and an embedded account using the provided SSS key shares. When the user later authenticates (via email, OAuth, third-party auth, etc.) with the same identifier, they will be linked to this pre-generated account. You can pregenerate using either: - `email`: User will be linked when they authenticate with the same email - `thirdPartyUserId` + `thirdPartyProvider`: User will be linked when they authenticate via the same third-party provider * @summary Pre-generate a user with an embedded account. * @param {UsersApiPregenerateUserV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ pregenerateUserV2(requestParameters: UsersApiPregenerateUserV2Request, options?: AxiosRequestConfig): Promise>; /** * * @summary Verify oauth token of a third party auth provider. * @param {UsersApiThirdPartyV2Request} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof UsersApi */ thirdPartyV2(requestParameters: UsersApiThirdPartyV2Request, options?: AxiosRequestConfig): Promise>; } /** * Configuration for generated clients */ type BackendAPIConfiguration = Configuration; type OpenfortAPIConfiguration = { backend: BackendAPIConfiguration; }; interface IStorage$1 { get(key: string): Promise; save(key: string, value: string): void; remove(key: string): void; flush(): void; } interface BackendApiClientsOptions { basePath: string; accessToken: string; nativeAppIdentifier?: string; storage?: IStorage$1; onLogout?: () => void; } declare class BackendApiClients { config: OpenfortAPIConfiguration; transactionIntentsApi: TransactionIntentsApi; accountsApi: AccsV1Api; accountsV2Api: AccsV2Api; rpcApi: RPCApi; sessionsApi: SessionsApi; authApi: AuthV2Api; userApi: UsersApi; authenticationApi: AuthV1Api; private storage?; private onLogout?; private axiosInstance; constructor(options: BackendApiClientsOptions); /** * Setup Axios response interceptor to handle 401 errors */ private setupInterceptors; /** * Clear all authentication-related storage */ private clearAuthenticationState; /** * Emit logout event to notify the SDK */ private emitLogoutEvent; } declare enum StorageKeys { AUTHENTICATION = "openfort.authentication", CONFIGURATION = "openfort.configuration", ACCOUNT = "openfort.account", TEST = "openfort.test", SESSION = "openfort.session" } interface IStorage { get(key: StorageKeys | string): Promise; save(key: StorageKeys | string, value: string): void; remove(key: StorageKeys | string): void; flush(): void; } declare class Authentication { readonly type: 'session' | 'third_party'; readonly token: string; readonly userId: string; readonly thirdPartyProvider?: string | undefined; readonly thirdPartyTokenType?: string | undefined; constructor(type: 'session' | 'third_party', token: string, userId: string, thirdPartyProvider?: string | undefined, thirdPartyTokenType?: string | undefined); private static thirdPartyAuthToken; get provider(): string | undefined; get tokenType(): string | undefined; save(storage: IStorage): void; static clear(storage: IStorage): void; static fromStorage(storage: IStorage): Promise; } declare enum EmbeddedState { NONE = 0, UNAUTHENTICATED = 1, EMBEDDED_SIGNER_NOT_CONFIGURED = 2, CREATING_ACCOUNT = 3, READY = 4 } /** * Openfort SDK Events * Subscribe to these events to handle authentication, wallet operations, and UI flows */ declare enum OpenfortEvents { /** Called when an authentication process begins */ ON_AUTH_INIT = "onAuthInit", /** Called after the user successfully authenticates */ ON_AUTH_SUCCESS = "onAuthSuccess", /** Called when an OTP for login was requested */ ON_OTP_REQUEST = "onOtpRequest", /** Called when an OTP for login wasn't sent successfully */ ON_OTP_FAILURE = "onOtpFailure", /** Called when authentication fails */ ON_AUTH_FAILURE = "onAuthFailure", /** Called after the user logs out */ ON_LOGOUT = "onLogout", /** Called when switching between accounts */ ON_SWITCH_ACCOUNT = "onSwitchAccount", /** Called when the user signs a message */ ON_SIGNED_MESSAGE = "onSignedMessage", /** Called after embedded wallet is created for user */ ON_EMBEDDED_WALLET_CREATED = "onEmbeddedWalletCreated", /** Called when an embedded wallet is recovered */ ON_EMBEDDED_WALLET_RECOVERED = "onEmbeddedWalletRecovered" } /** * Authentication initialization payload */ type AuthInitPayload = { method: 'email' | 'oauth' | 'siwe' | 'idToken' | 'guest' | 'phone'; provider?: string; }; /** * Signed message payload */ type SignedMessagePayload = { message: string | Uint8Array; signature: string; }; interface OpenfortEventMap extends Record { [OpenfortEvents.ON_AUTH_INIT]: [AuthInitPayload]; [OpenfortEvents.ON_AUTH_SUCCESS]: [AuthResponse]; [OpenfortEvents.ON_AUTH_FAILURE]: [Error]; [OpenfortEvents.ON_LOGOUT]: []; [OpenfortEvents.ON_SWITCH_ACCOUNT]: [string]; [OpenfortEvents.ON_SIGNED_MESSAGE]: [SignedMessagePayload]; [OpenfortEvents.ON_EMBEDDED_WALLET_CREATED]: [EmbeddedAccount]; [OpenfortEvents.ON_EMBEDDED_WALLET_RECOVERED]: [EmbeddedAccount]; } declare enum RecoveryMethod { PASSWORD = "password", AUTOMATIC = "automatic", PASSKEY = "passkey" } interface PasskeyEnv { name?: string; os?: string; osVersion?: string; device?: string; } type RecoveryMethodDetails = { passkeyId?: string; passkeyEnv?: PasskeyEnv; }; declare enum AuthType { OPENFORT = "openfort", THIRD_PARTY = "thirdParty" } type SIWEInitResponse = { address: string; nonce: string; }; type AddEmailOptions = { email: string; callbackURL: string; }; type AddEmailResult = ChangeEmailPost200Response; type InitializeOAuthOptions = { /** A space-separated list of scopes granted to the OAuth application. */ scopes?: string; /** If set to true does not immediately redirect the current browser context to visit the OAuth authorization page for the provider. */ skipBrowserRedirect?: boolean; }; declare enum TokenType { ID_TOKEN = "idToken", CUSTOM_TOKEN = "customToken" } declare enum ThirdPartyAuthProvider { ACCELBYTE = "accelbyte", FIREBASE = "firebase", BETTER_AUTH = "better-auth", LOOTLOCKER = "lootlocker", PLAYFAB = "playfab", SUPABASE = "supabase", CUSTOM = "custom", OIDC = "oidc" } declare enum BasicAuthProvider { EMAIL = "email", WALLET = "wallet" } declare enum OAuthProvider { GOOGLE = "google", TWITTER = "twitter", APPLE = "apple", FACEBOOK = "facebook", DISCORD = "discord", EPIC_GAMES = "epic_games", LINE = "line" } interface NextActionPayload { signableHash?: string; } interface NextActionResponse { type: 'sign_with_wallet'; payload: NextActionPayload; } interface EntityIdResponse { id: string; } interface Interaction { to?: string; value?: string; contract?: string; functionName?: string; functionArgs?: any[]; dataSuffix?: string; data?: string; } interface Log { blockNumber: number; blockHash: string; transactionIndex: number; removed: boolean; address: string; data: string; topics: string[]; transactionHash: string; logIndex: number; orphaned?: boolean; } interface ResponseResponse { createdAt: number; blockNumber?: number; transactionHash?: string; l1GasUsed?: string; gasUsed?: string; gasFee?: string; l1GasFee?: string; status?: number; logs?: Log[]; to?: string; error?: any; } interface SessionResponse { id: string; object: 'session'; createdAt: number; updatedAt: number; isActive?: boolean; address: string; validAfter?: string; validUntil?: string; whitelist?: string[]; limit?: number; nextAction?: NextActionResponse; transactionIntents?: TransactionIntentResponse[]; } interface PolicyStrategy { sponsorSchema: 'fixed_rate'; depositor?: string | null; tokenContract: string; tokenContractAmount: string; } interface TransactionIntentResponsePolicy { id: string; object: 'policy'; createdAt: number; name: string | null; deleted: boolean; enabled: boolean; chainId: number; paymaster?: EntityIdResponse; strategy: PolicyStrategy; transactionIntents: EntityIdResponse[]; policyRules: EntityIdResponse[]; } interface TransactionIntentResponseAccount { id: string; object: 'developerAccount'; createdAt: number; address: string; ownerAddress: string; deployed: boolean; custodial: boolean; embeddedSigner: boolean; chainId: number; accountType: string; pendingOwnerAddress?: string; transactionIntents?: EntityIdResponse[]; player: EntityIdResponse; name?: string; } interface TransactionIntentResponsePlayer { id: string; object: 'player'; createdAt: number; name: string; description?: string; metadata?: { [key: string]: PlayerMetadataValue; }; transactionIntents?: EntityIdResponse[]; accounts?: EntityIdResponse[]; } declare const TRANSACTION_ABSTRACTION_TYPE: { readonly accountAbstractionV6: "accountAbstractionV6"; readonly accountAbstractionV8: "accountAbstractionV8"; readonly accountAbstractionV9: "accountAbstractionV9"; readonly zksync: "zkSync"; readonly standard: "standard"; }; type TransactionAbstractionType = (typeof TRANSACTION_ABSTRACTION_TYPE)[keyof typeof TRANSACTION_ABSTRACTION_TYPE]; interface TransactionIntentResponse { id: string; object: 'transactionIntent'; createdAt: number; updatedAt: number; abstractionType: TransactionAbstractionType; details?: AccountAbstractionV6Details | AccountAbstractionV8Details | AccountAbstractionV9Details | ZKSyncDetails | StandardDetails; chainId: number; response?: ResponseResponse; interactions?: Interaction[]; nextAction?: NextActionResponse; policy?: TransactionIntentResponsePolicy | EntityIdResponse; player?: TransactionIntentResponsePlayer | EntityIdResponse; account: TransactionIntentResponseAccount | EntityIdResponse; } type PlayerMetadataValue = unknown; /** * User profile information */ interface User { /** Unique user identifier */ id: string; /** User's email address */ email?: string; /** User's display name */ name?: string; /** URL to user's profile image */ image?: string; /** Whether the user's email has been verified */ emailVerified?: boolean; /** ISO timestamp when the user was created */ createdAt?: string; /** ISO timestamp when the user was last updated */ updatedAt?: string; /** Whether the user is anonymous */ isAnonymous?: boolean; /** User's phone number */ phoneNumber?: string; /** Whether the user's phone number has been verified */ phoneNumberVerified?: boolean; /** List of user linked accounts */ linkedAccounts?: ListAccountsGet200ResponseInner[]; } /** * Session information */ interface Session { /** Session identifier */ id?: string; /** Session token for authentication */ token: string; /** User ID associated with this session */ userId: string; /** ISO timestamp when the session expires */ expiresAt?: string; /** ISO timestamp when the session was created */ createdAt?: string; /** ISO timestamp when the session was last updated */ updatedAt?: string; } /** * Authentication response returned by SDK auth methods * Contains session token and user/session details */ interface AuthResponse { /** Session token for authentication */ token: string | null; /** Full user profile information */ user: User; /** Session details */ session?: Session; } declare enum AuthActionRequiredActions { ACTION_VERIFY_EMAIL = "verify_email" } interface AuthActionRequiredResponse { action: AuthActionRequiredActions; } interface AccountAbstractionV6Details { userOperation: UserOperationV6; userOperationHash: string; } interface UserOperationV6 { callData: string; callGasLimit: string; initCode?: string; maxFeePerGas: string; maxPriorityFeePerGas: string; nonce: string; paymasterAndData?: string; preVerificationGas: string; sender: string; signature: string; verificationGasLimit: string; } interface AccountAbstractionV8Details { userOperation: UserOperationV8; userOperationHash: string; } interface AccountAbstractionV9Details { userOperation: UserOperationV9; userOperationHash: string; } interface UserOperationV9 { callData: string; callGasLimit: string; factory?: string; factoryData?: string; maxFeePerGas: string; maxPriorityFeePerGas: string; nonce: string; paymaster?: string; paymasterVerificationGasLimit?: string; paymasterPostOpGasLimit?: string; paymasterData?: string; preVerificationGas: string; sender: string; signature: string; verificationGasLimit: string; } interface UserOperationV8 { callData: string; callGasLimit: string; factory?: string; factoryData?: string; maxFeePerGas: string; maxPriorityFeePerGas: string; nonce: string; paymaster?: string; paymasterVerificationGasLimit?: string; paymasterPostOpGasLimit?: string; paymasterData?: string; preVerificationGas: string; sender: string; signature: string; verificationGasLimit: string; } interface ZKSyncDetails { from: string; to: string; data?: string; nonce: string; gas: string; maxFeePerGas: string; maxPriorityFeePerGas: string; paymaster?: string; paymasterInput?: string; value?: string; } interface StandardDetails { from: string; to: string; data?: string; nonce: string; gas: string; maxFeePerGas: string; maxPriorityFeePerGas: string; value?: string; } declare enum AccountTypeEnum { EOA = "Externally Owned Account", SMART_ACCOUNT = "Smart Account", DELEGATED_ACCOUNT = "Delegated Account" } declare enum ChainTypeEnum { EVM = "EVM", SVM = "SVM" } interface EmbeddedAccount { id: string; chainType: ChainTypeEnum; address: string; createdAt?: number; implementationType?: string; factoryAddress?: string; implementationAddress?: string; salt?: string; accountType: AccountTypeEnum; recoveryMethod?: RecoveryMethod; recoveryMethodDetails?: RecoveryMethodDetails; chainId?: number; /** @deprecated */ ownerAddress?: string; /** @deprecated */ type?: string; } type EmbeddedAccountConfigureParams = { chainId?: number; recoveryParams: RecoveryParams; chainType?: ChainTypeEnum; accountType?: AccountTypeEnum; }; type EmbeddedAccountRecoverParams = { account: string; recoveryParams: RecoveryParams; }; type EmbeddedAccountCreateParams = { accountType: AccountTypeEnum; chainType: ChainTypeEnum; chainId?: number; recoveryParams: RecoveryParams; }; type EmbeddedAccountImportParams = { privateKey: string; accountType: AccountTypeEnum; chainType: ChainTypeEnum; chainId?: number; recoveryParams: RecoveryParams; }; type PasskeyInfo = { passkeyId: string; passkeyKey?: string; }; type RecoveryParams = { recoveryMethod: RecoveryMethod.AUTOMATIC; encryptionSession: string; } | { recoveryMethod: RecoveryMethod.PASSWORD; password: string; } | { recoveryMethod: RecoveryMethod.PASSKEY; passkeyInfo?: PasskeyInfo; }; type EntropyResponse = { recoveryPassword?: string; encryptionSession?: string; passkey?: PasskeyDetails$1; }; declare enum SortOrdering { ASC = "asc", DESC = "desc" } type ListAccountsParams = { address?: string; accountType?: AccountTypeEnum; chainType?: ChainTypeEnum; chainId?: number; order?: SortOrdering; limit?: number; skip?: number; }; declare class AuthManager { private backendApiClientsInstance?; private publishableKeyInstance?; setBackendApiClients(backendApiClients: BackendApiClients, publishableKey: string): void; private get backendApiClients(); private get publishableKey(); private buildAuthHeaders; initOAuth(provider: OAuthProvider, redirectUrl: string, options?: InitializeOAuthOptions): Promise; linkOAuthToAnonymous(auth: Authentication, provider: OAuthProvider, redirectUrl: string): Promise; registerGuest(): Promise; loginWithIdToken(provider: OAuthProvider, token: string): Promise; authenticateThirdParty(provider: ThirdPartyAuthProvider, token: string): Promise<{ userId: string; }>; initSIWE(address: string): Promise; linkSIWE(address: string, auth: Authentication): Promise; authenticateSIWE(signature: string, message: string, walletClientType: string, connectorType: string, address: string): Promise; loginEmailPassword(email: string, password: string): Promise; requestResetPassword(email: string, redirectUrl: string): Promise; resetPassword(password: string, token: string): Promise; requestEmailVerification(email: string, redirectUrl: string): Promise; verifyEmail(token: string, callbackURL?: string): Promise; signupEmailPassword(email: string, password: string, name: string, callbackURL?: string, anonymousAuthToken?: string): Promise; validateCredentials(authentication: Authentication, _forceRefresh?: boolean): Promise; logout(auth: Authentication): Promise; getUser(auth: Authentication): Promise; linkOAuth(auth: Authentication, provider: OAuthProvider, redirectTo: string, options?: InitializeOAuthOptions): Promise; unlinkOAuth(provider: OAuthProvider, auth: Authentication): Promise; addEmail(email: string, callbackURL: string, auth: Authentication): Promise; unlinkWallet(address: string, chainId: number, auth: Authentication): Promise; linkWallet(signature: string, message: string, walletClientType: string, connectorType: string, address: string, chainId: number, auth: Authentication): Promise; requestEmailOTP(email: string, type: 'sign-in' | 'email-verification'): Promise; verifyEmailOtp(email: string, otp: string, anonymousAuthToken?: string): Promise; loginWithEmailOTP(email: string, otp: string, anonymousAuthToken?: string): Promise; requestPhoneOtp(phoneNumber: string): Promise; loginWithSMSOTP(phoneNumber: string, code: string): Promise; linkSMSOTP(phoneNumber: string, code: string, auth: Authentication): Promise; private getSessionWithToken; } declare class AuthApi { private storage; private authManager; private validateAndRefreshToken; private ensureInitialized; private eventEmitter; constructor(storage: IStorage, authManager: AuthManager, validateAndRefreshToken: () => Promise, ensureInitialized: () => Promise, eventEmitter: TypedEventEmitter); logInWithEmailPassword({ email, password }: { email: string; password: string; }): Promise; signUpGuest(): Promise; signUpWithEmailPassword({ email, password, name, callbackURL, }: { email: string; password: string; name?: string; callbackURL?: string; }): Promise; initOAuth({ provider, redirectTo, options, }: { provider: OAuthProvider; redirectTo: string; options?: InitializeOAuthOptions; }): Promise; logInWithIdToken({ provider, token }: { provider: OAuthProvider; token: string; }): Promise; storeCredentials({ token, userId }: { token: string; userId: string; }): Promise; /** * Logs the user out by flushing the signer and removing credentials. */ logout(): Promise; requestEmailOtp({ email }: { email: string; }): Promise; logInWithEmailOtp({ email, otp }: { email: string; otp: string; }): Promise; requestPhoneOtp({ phoneNumber }: { phoneNumber: string; }): Promise; linkPhoneOtp({ phoneNumber, otp }: { phoneNumber: string; otp: string; }): Promise; logInWithPhoneOtp({ phoneNumber, otp }: { phoneNumber: string; otp: string; }): Promise; requestResetPassword({ email, redirectUrl }: { email: string; redirectUrl: string; }): Promise; resetPassword({ password, token }: { password: string; token: string; }): Promise; requestEmailVerification({ email, redirectUrl }: { email: string; redirectUrl: string; }): Promise; verifyEmail({ token, callbackURL }: { token: string; callbackURL?: string; }): Promise; verifyEmailOtp({ email, otp }: { email: string; otp: string; }): Promise; initLinkOAuth({ provider, redirectTo, options, }: { provider: OAuthProvider; redirectTo: string; options?: InitializeOAuthOptions; }): Promise; unlinkOAuth({ provider }: { provider: OAuthProvider; }): Promise; initSiwe({ address }: { address: string; }): Promise; initLinkSiwe({ address }: { address: string; }): Promise; loginWithSiwe({ signature, message, walletClientType, connectorType, address, }: { signature: string; message: string; walletClientType: string; connectorType: string; address: string; }): Promise; linkWithSiwe({ signature, message, walletClientType, connectorType, address, chainId, }: { signature: string; message: string; walletClientType: string; connectorType: string; address: string; chainId: number; }): Promise; unlinkWallet({ address, chainId }: { address: string; chainId: number; }): Promise; addEmail(options: AddEmailOptions): Promise; } interface TypedDataPayload { types: { [K in string]: Array<{ name: string; type: string; }>; } & { EIP712Domain?: Array<{ name: string; type: string; }>; }; domain: { name?: string; version?: string; chainId?: number; verifyingContract?: string; salt?: string; }; primaryType: string; message: Record; } interface RequestArguments { method: string; params?: any[]; } declare enum ProviderEvent { ACCOUNTS_CHANGED = "accountsChanged", CHAIN_CHANGED = "chainChanged", ACCOUNTS_CONNECT = "connect", DISCONNECT = "disconnect" } interface ProviderConnectInfo { chainId: string; } interface ProviderDisconnectError { code: number; message: string; } interface ProviderEventMap extends Record { [ProviderEvent.ACCOUNTS_CHANGED]: [string[]]; [ProviderEvent.CHAIN_CHANGED]: [string]; [ProviderEvent.ACCOUNTS_CONNECT]: [ProviderConnectInfo]; [ProviderEvent.DISCONNECT]: [ProviderDisconnectError]; } type Provider = { request: (request: RequestArguments) => Promise; on: (event: E, listener: (...args: ProviderEventMap[E]) => void) => void; removeListener: (event: E, listener: (...args: ProviderEventMap[E]) => void) => void; isOpenfort: boolean; }; interface MessagePoster { postMessage(message: string): void; } declare class EmbeddedWalletApi { private readonly storage; private readonly validateAndRefreshToken; private readonly ensureInitialized; private readonly eventEmitter; private readonly passkeyHandler; private iframeManager; private iframeManagerPromise; private signer; private signerPromise; private provider; private messagePoster; private messenger; constructor(storage: IStorage, validateAndRefreshToken: () => Promise, ensureInitialized: () => Promise, eventEmitter: TypedEventEmitter, passkeyHandler: IPasskeyHandler$1); private get backendApiClients(); private getIframeManager; private createIframeManager; /** * Ensure signer is available, creating it from storage if needed */ private ensureSigner; private createSigner; private createIframe; private getPasskeyKey; private getEntropy; configure(params: EmbeddedAccountConfigureParams): Promise; create(params: EmbeddedAccountCreateParams): Promise; import(params: EmbeddedAccountImportParams): Promise; recover(params: EmbeddedAccountRecoverParams): Promise; /** * Signs a personal message using the configured signer * @param message The message to sign * @param options Optional parameters to control message signing behavior * @returns The signed message */ signMessage(message: string | Uint8Array, options?: { hashMessage?: boolean; arrayifyMessage?: boolean; }): Promise; signTypedData(domain: TypedDataPayload['domain'], types: TypedDataPayload['types'], message: TypedDataPayload['message']): Promise; exportPrivateKey(): Promise; setRecoveryMethod(previousRecovery: RecoveryParams, newRecovery: RecoveryParams): Promise; get(): Promise; list(requestParams?: ListAccountsParams): Promise; getEmbeddedState(): Promise; watchEmbeddedState(params: { onChange: (state: EmbeddedState, prevState?: EmbeddedState) => void; onError?: (error: Error) => void; pollingInterval?: number; }): () => void; getEthereumProvider(options?: { feeSponsorship?: string; chains?: Record; providerInfo?: { icon: `data:image/${string}`; name: string; rdns: string; }; announceProvider?: boolean; }): Promise; ping(delay: number): Promise; getURL(): string; setMessagePoster(poster: MessagePoster): Promise; private handleLogout; onMessage(message: Record): Promise; isReady(): boolean; } declare class UserApi { private storage; private authManager; private validateAndRefreshToken; constructor(storage: IStorage, authManager: AuthManager, validateAndRefreshToken: () => Promise); get(): Promise; } interface SDKOverrides { backendUrl?: string; iframeUrl?: string; shieldUrl?: string; crypto?: { digest?: (algorithm: string, data: BufferSource) => Promise; }; storage?: IStorage; passkeyHandler?: IPasskeyHandler$1; } interface ThirdPartyAuthConfiguration { provider: ThirdPartyOAuthProvider$1; getAccessToken: () => Promise; } declare class OpenfortConfiguration { readonly publishableKey: string; readonly nativeAppIdentifier?: string; constructor(options: { publishableKey: string; nativeAppIdentifier?: string; }); } declare class ShieldConfiguration { readonly shieldPublishableKey: string; readonly debug?: boolean; /** * The relying party identifier for WebAuthn passkey operations. * This is typically the domain name (e.g. "example.com") and determines which * passkeys are available during authentication — only passkeys created under this * RP ID will be offered by the browser. Must match the domain the app is hosted on. */ readonly passkeyRpId?: string; /** * The relying party display name shown in the browser's passkey creation dialog * as the service requesting the passkey (e.g. "My App" or "Acme Corp"). * This identifies your application to the user during the WebAuthn ceremony. */ readonly passkeyRpName?: string; /** * The display name shown next to the passkey credential in the browser's passkey dialog * (e.g. "My Wallet" or "Trading Account"). This helps users identify the specific * credential when they have multiple passkeys for the same service. * Defaults to "Openfort - Embedded Wallet" if not provided. */ readonly passkeyDisplayName?: string; constructor(options: { shieldPublishableKey: string; shieldDebug?: boolean; /** The relying party identifier (domain) for WebAuthn passkey operations. */ passkeyRpId?: string; /** The relying party display name shown as the service name in passkey dialogs. */ passkeyRpName?: string; /** The credential display name shown next to the passkey in browser dialogs. Defaults to "Openfort - Embedded Wallet". */ passkeyDisplayName?: string; }); } type OpenfortSDKConfiguration = { baseConfiguration: OpenfortConfiguration; shieldConfiguration?: ShieldConfiguration; overrides?: SDKOverrides; thirdPartyAuth?: ThirdPartyAuthConfiguration; debug?: boolean; /** * Disable anonymous error telemetry (Sentry). Telemetry is best-effort and * never throws, but you can turn it off entirely — for example in React * Native, where the telemetry SDK's dynamic import is unnecessary overhead. * Defaults to `false`. */ disableTelemetry?: boolean; }; declare class SDKConfiguration { readonly baseConfiguration: OpenfortConfiguration; readonly shieldConfiguration?: ShieldConfiguration; readonly thirdPartyAuth?: ThirdPartyAuthConfiguration; readonly shieldUrl: string; readonly iframeUrl: string; readonly backendUrl: string; readonly storage?: IStorage; readonly nativeAppIdentifier?: string; readonly debug?: boolean; readonly disableTelemetry?: boolean; static instance: SDKConfiguration | null; constructor({ baseConfiguration, shieldConfiguration, overrides, thirdPartyAuth, debug, disableTelemetry, }: OpenfortSDKConfiguration); static getInstance(): SDKConfiguration | null; } /** * Openfort Authentication Error Codes * * These error codes are returned by Openfort's authentication API * and can be used to provide specific error handling in your application. * * @example * ```typescript * import { OPENFORT_AUTH_ERROR_CODES, OpenfortError } from '@openfort/openfort-js' * * try { * await openfort.logInWithEmailPassword({ email, password }) * } catch (error) { * if (error instanceof OpenfortError) { * if (error.code === OPENFORT_AUTH_ERROR_CODES.INVALID_CREDENTIALS) { * console.error('Invalid email or password') * } * } * } * ``` */ declare const ERROR_CODES: { /** * Provider configuration */ readonly PROVIDER_DISABLED: "PROVIDER_DISABLED"; /** * Invalid email or password provided during login */ readonly INVALID_CREDENTIALS: "INVALID_EMAIL_OR_PASSWORD"; /** * Email format is invalid */ readonly INVALID_EMAIL: "INVALID_EMAIL"; /** * Password is invalid */ readonly INVALID_PASSWORD: "INVALID_PASSWORD"; /** * Authentication token is invalid or malformed */ readonly INVALID_TOKEN: "INVALID_TOKEN"; /** * No user found with the provided email or identifier */ readonly USER_NOT_FOUND: "USER_NOT_FOUND"; /** * A user with this email already exists */ readonly USER_ALREADY_EXISTS: "USER_ALREADY_EXISTS"; /** * Email address is already registered to another account * (Alias for USER_ALREADY_EXISTS) */ readonly EMAIL_ALREADY_IN_USE: "USER_ALREADY_EXISTS"; /** * User email address not found in the system */ readonly USER_EMAIL_NOT_FOUND: "USER_EMAIL_NOT_FOUND"; /** * Failed to create user account */ readonly FAILED_TO_CREATE_USER: "FAILED_TO_CREATE_USER"; /** * Failed to update user information */ readonly FAILED_TO_UPDATE_USER: "FAILED_TO_UPDATE_USER"; /** * Password does not meet minimum length requirements */ readonly PASSWORD_TOO_SHORT: "PASSWORD_TOO_SHORT"; /** * Password exceeds maximum length */ readonly PASSWORD_TOO_LONG: "PASSWORD_TOO_LONG"; /** * Email address has not been verified */ readonly EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; /** * Email cannot be updated for this account */ readonly EMAIL_CANNOT_BE_UPDATED: "EMAIL_CAN_NOT_BE_UPDATED"; /** * User session has expired and needs to be refreshed */ readonly SESSION_EXPIRED: "SESSION_EXPIRED"; /** * Failed to create a new session */ readonly SESSION_CREATION_FAILED: "FAILED_TO_CREATE_SESSION"; /** * Failed to retrieve session information */ readonly SESSION_RETRIEVAL_FAILED: "FAILED_TO_GET_SESSION"; /** * Social account is already linked to another user */ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "SOCIAL_ACCOUNT_ALREADY_LINKED"; /** * OAuth provider is not configured or not found */ readonly OAUTH_PROVIDER_NOT_FOUND: "PROVIDER_NOT_FOUND"; /** * ID token validation is not supported for this provider */ readonly OAUTH_TOKEN_INVALID: "ID_TOKEN_NOT_SUPPORTED"; /** * Failed to retrieve user information from OAuth provider */ readonly OAUTH_USER_INFO_FAILED: "FAILED_TO_GET_USER_INFO"; /** * Cannot unlink the last authentication method from account */ readonly CANNOT_UNLINK_LAST_ACCOUNT: "FAILED_TO_UNLINK_LAST_ACCOUNT"; /** * Account or linked account not found */ readonly ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND"; /** * Credential account (email/password) not found */ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "CREDENTIAL_ACCOUNT_NOT_FOUND"; /** * User already has a password set */ readonly USER_ALREADY_HAS_PASSWORD: "USER_ALREADY_HAS_PASSWORD"; /** * Invalid or incorrect OTP code provided */ readonly OTP_INVALID: "INVALID_OTP"; /** * OTP code has expired */ readonly OTP_EXPIRED: "OTP_EXPIRED"; /** * Failed to send OTP code */ readonly OTP_SEND_FAILED: "OTP_SEND_FAILED"; /** * SDK configuration is invalid or incomplete */ readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION"; /** * No active session found, user needs to log in */ readonly NOT_LOGGED_IN: "NOT_LOGGED_IN"; /** * User is already logged in */ readonly ALREADY_LOGGED_IN: "ALREADY_LOGGED_IN"; /** * Failed to refresh authentication token */ readonly REFRESH_TOKEN_ERROR: "REFRESH_TOKEN_ERROR"; /** * Embedded signer is not available or initialized */ readonly MISSING_SIGNER: "MISSING_SIGNER"; /** * Signer is not configured */ readonly NOT_CONFIGURED: "NOT_CONFIGURED"; /** * Recovery password is required but not provided */ readonly MISSING_RECOVERY_PASSWORD: "MISSING_RECOVERY_PASSWORD"; /** * Wrong recovery password for this embedded signer */ readonly WRONG_RECOVERY_PASSWORD: "WRONG_RECOVERY_PASSWORD"; /** * Passkey is required but not provided */ readonly MISSING_PASSKEY: "MISSING_PASSKEY"; /** * Incorrect passkey for this embedded signer */ readonly INCORRECT_PASSKEY: "INCORRECT_PASSKEY"; /** * Project entropy is missing */ readonly MISSING_PROJECT_ENTROPY: "MISSING_PROJECT_ENTROPY"; /** * User entropy is missing */ readonly MISSING_USER_ENTROPY: "MISSING_USER_ENTROPY"; /** * Incorrect user entropy provided */ readonly INCORRECT_USER_ENTROPY: "INCORRECT_USER_ENTROPY"; /** * User not authorized to access this ecosystem or resource */ readonly USER_NOT_AUTHORIZED: "USER_NOT_AUTHORIZED"; /** * OTP verification required to proceed */ readonly OTP_REQUIRED: "OTP_REQUIRED"; /** * Internal SDK error occurred */ readonly INTERNAL_ERROR: "INTERNAL_ERROR"; /** * Network or HTTP request error */ readonly REQUEST_ERROR: "REQUEST_ERROR"; /** * Operation not supported in current context */ readonly OPERATION_NOT_SUPPORTED: "OPERATION_NOT_SUPPORTED"; /** * Logout operation failed */ readonly LOGOUT_ERROR: "LOGOUT_ERROR"; /** * Unknown error occurred */ readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; }; /** * Full name for error codes */ declare const OPENFORT_AUTH_ERROR_CODES: { /** * Provider configuration */ readonly PROVIDER_DISABLED: "PROVIDER_DISABLED"; /** * Invalid email or password provided during login */ readonly INVALID_CREDENTIALS: "INVALID_EMAIL_OR_PASSWORD"; /** * Email format is invalid */ readonly INVALID_EMAIL: "INVALID_EMAIL"; /** * Password is invalid */ readonly INVALID_PASSWORD: "INVALID_PASSWORD"; /** * Authentication token is invalid or malformed */ readonly INVALID_TOKEN: "INVALID_TOKEN"; /** * No user found with the provided email or identifier */ readonly USER_NOT_FOUND: "USER_NOT_FOUND"; /** * A user with this email already exists */ readonly USER_ALREADY_EXISTS: "USER_ALREADY_EXISTS"; /** * Email address is already registered to another account * (Alias for USER_ALREADY_EXISTS) */ readonly EMAIL_ALREADY_IN_USE: "USER_ALREADY_EXISTS"; /** * User email address not found in the system */ readonly USER_EMAIL_NOT_FOUND: "USER_EMAIL_NOT_FOUND"; /** * Failed to create user account */ readonly FAILED_TO_CREATE_USER: "FAILED_TO_CREATE_USER"; /** * Failed to update user information */ readonly FAILED_TO_UPDATE_USER: "FAILED_TO_UPDATE_USER"; /** * Password does not meet minimum length requirements */ readonly PASSWORD_TOO_SHORT: "PASSWORD_TOO_SHORT"; /** * Password exceeds maximum length */ readonly PASSWORD_TOO_LONG: "PASSWORD_TOO_LONG"; /** * Email address has not been verified */ readonly EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; /** * Email cannot be updated for this account */ readonly EMAIL_CANNOT_BE_UPDATED: "EMAIL_CAN_NOT_BE_UPDATED"; /** * User session has expired and needs to be refreshed */ readonly SESSION_EXPIRED: "SESSION_EXPIRED"; /** * Failed to create a new session */ readonly SESSION_CREATION_FAILED: "FAILED_TO_CREATE_SESSION"; /** * Failed to retrieve session information */ readonly SESSION_RETRIEVAL_FAILED: "FAILED_TO_GET_SESSION"; /** * Social account is already linked to another user */ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "SOCIAL_ACCOUNT_ALREADY_LINKED"; /** * OAuth provider is not configured or not found */ readonly OAUTH_PROVIDER_NOT_FOUND: "PROVIDER_NOT_FOUND"; /** * ID token validation is not supported for this provider */ readonly OAUTH_TOKEN_INVALID: "ID_TOKEN_NOT_SUPPORTED"; /** * Failed to retrieve user information from OAuth provider */ readonly OAUTH_USER_INFO_FAILED: "FAILED_TO_GET_USER_INFO"; /** * Cannot unlink the last authentication method from account */ readonly CANNOT_UNLINK_LAST_ACCOUNT: "FAILED_TO_UNLINK_LAST_ACCOUNT"; /** * Account or linked account not found */ readonly ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND"; /** * Credential account (email/password) not found */ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "CREDENTIAL_ACCOUNT_NOT_FOUND"; /** * User already has a password set */ readonly USER_ALREADY_HAS_PASSWORD: "USER_ALREADY_HAS_PASSWORD"; /** * Invalid or incorrect OTP code provided */ readonly OTP_INVALID: "INVALID_OTP"; /** * OTP code has expired */ readonly OTP_EXPIRED: "OTP_EXPIRED"; /** * Failed to send OTP code */ readonly OTP_SEND_FAILED: "OTP_SEND_FAILED"; /** * SDK configuration is invalid or incomplete */ readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION"; /** * No active session found, user needs to log in */ readonly NOT_LOGGED_IN: "NOT_LOGGED_IN"; /** * User is already logged in */ readonly ALREADY_LOGGED_IN: "ALREADY_LOGGED_IN"; /** * Failed to refresh authentication token */ readonly REFRESH_TOKEN_ERROR: "REFRESH_TOKEN_ERROR"; /** * Embedded signer is not available or initialized */ readonly MISSING_SIGNER: "MISSING_SIGNER"; /** * Signer is not configured */ readonly NOT_CONFIGURED: "NOT_CONFIGURED"; /** * Recovery password is required but not provided */ readonly MISSING_RECOVERY_PASSWORD: "MISSING_RECOVERY_PASSWORD"; /** * Wrong recovery password for this embedded signer */ readonly WRONG_RECOVERY_PASSWORD: "WRONG_RECOVERY_PASSWORD"; /** * Passkey is required but not provided */ readonly MISSING_PASSKEY: "MISSING_PASSKEY"; /** * Incorrect passkey for this embedded signer */ readonly INCORRECT_PASSKEY: "INCORRECT_PASSKEY"; /** * Project entropy is missing */ readonly MISSING_PROJECT_ENTROPY: "MISSING_PROJECT_ENTROPY"; /** * User entropy is missing */ readonly MISSING_USER_ENTROPY: "MISSING_USER_ENTROPY"; /** * Incorrect user entropy provided */ readonly INCORRECT_USER_ENTROPY: "INCORRECT_USER_ENTROPY"; /** * User not authorized to access this ecosystem or resource */ readonly USER_NOT_AUTHORIZED: "USER_NOT_AUTHORIZED"; /** * OTP verification required to proceed */ readonly OTP_REQUIRED: "OTP_REQUIRED"; /** * Internal SDK error occurred */ readonly INTERNAL_ERROR: "INTERNAL_ERROR"; /** * Network or HTTP request error */ readonly REQUEST_ERROR: "REQUEST_ERROR"; /** * Operation not supported in current context */ readonly OPERATION_NOT_SUPPORTED: "OPERATION_NOT_SUPPORTED"; /** * Logout operation failed */ readonly LOGOUT_ERROR: "LOGOUT_ERROR"; /** * Unknown error occurred */ readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; }; /** * Convenient alias for error codes * Use this for cleaner imports */ declare const OPENFORT_ERROR_CODES: { /** * Provider configuration */ readonly PROVIDER_DISABLED: "PROVIDER_DISABLED"; /** * Invalid email or password provided during login */ readonly INVALID_CREDENTIALS: "INVALID_EMAIL_OR_PASSWORD"; /** * Email format is invalid */ readonly INVALID_EMAIL: "INVALID_EMAIL"; /** * Password is invalid */ readonly INVALID_PASSWORD: "INVALID_PASSWORD"; /** * Authentication token is invalid or malformed */ readonly INVALID_TOKEN: "INVALID_TOKEN"; /** * No user found with the provided email or identifier */ readonly USER_NOT_FOUND: "USER_NOT_FOUND"; /** * A user with this email already exists */ readonly USER_ALREADY_EXISTS: "USER_ALREADY_EXISTS"; /** * Email address is already registered to another account * (Alias for USER_ALREADY_EXISTS) */ readonly EMAIL_ALREADY_IN_USE: "USER_ALREADY_EXISTS"; /** * User email address not found in the system */ readonly USER_EMAIL_NOT_FOUND: "USER_EMAIL_NOT_FOUND"; /** * Failed to create user account */ readonly FAILED_TO_CREATE_USER: "FAILED_TO_CREATE_USER"; /** * Failed to update user information */ readonly FAILED_TO_UPDATE_USER: "FAILED_TO_UPDATE_USER"; /** * Password does not meet minimum length requirements */ readonly PASSWORD_TOO_SHORT: "PASSWORD_TOO_SHORT"; /** * Password exceeds maximum length */ readonly PASSWORD_TOO_LONG: "PASSWORD_TOO_LONG"; /** * Email address has not been verified */ readonly EMAIL_NOT_VERIFIED: "EMAIL_NOT_VERIFIED"; /** * Email cannot be updated for this account */ readonly EMAIL_CANNOT_BE_UPDATED: "EMAIL_CAN_NOT_BE_UPDATED"; /** * User session has expired and needs to be refreshed */ readonly SESSION_EXPIRED: "SESSION_EXPIRED"; /** * Failed to create a new session */ readonly SESSION_CREATION_FAILED: "FAILED_TO_CREATE_SESSION"; /** * Failed to retrieve session information */ readonly SESSION_RETRIEVAL_FAILED: "FAILED_TO_GET_SESSION"; /** * Social account is already linked to another user */ readonly SOCIAL_ACCOUNT_ALREADY_LINKED: "SOCIAL_ACCOUNT_ALREADY_LINKED"; /** * OAuth provider is not configured or not found */ readonly OAUTH_PROVIDER_NOT_FOUND: "PROVIDER_NOT_FOUND"; /** * ID token validation is not supported for this provider */ readonly OAUTH_TOKEN_INVALID: "ID_TOKEN_NOT_SUPPORTED"; /** * Failed to retrieve user information from OAuth provider */ readonly OAUTH_USER_INFO_FAILED: "FAILED_TO_GET_USER_INFO"; /** * Cannot unlink the last authentication method from account */ readonly CANNOT_UNLINK_LAST_ACCOUNT: "FAILED_TO_UNLINK_LAST_ACCOUNT"; /** * Account or linked account not found */ readonly ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND"; /** * Credential account (email/password) not found */ readonly CREDENTIAL_ACCOUNT_NOT_FOUND: "CREDENTIAL_ACCOUNT_NOT_FOUND"; /** * User already has a password set */ readonly USER_ALREADY_HAS_PASSWORD: "USER_ALREADY_HAS_PASSWORD"; /** * Invalid or incorrect OTP code provided */ readonly OTP_INVALID: "INVALID_OTP"; /** * OTP code has expired */ readonly OTP_EXPIRED: "OTP_EXPIRED"; /** * Failed to send OTP code */ readonly OTP_SEND_FAILED: "OTP_SEND_FAILED"; /** * SDK configuration is invalid or incomplete */ readonly INVALID_CONFIGURATION: "INVALID_CONFIGURATION"; /** * No active session found, user needs to log in */ readonly NOT_LOGGED_IN: "NOT_LOGGED_IN"; /** * User is already logged in */ readonly ALREADY_LOGGED_IN: "ALREADY_LOGGED_IN"; /** * Failed to refresh authentication token */ readonly REFRESH_TOKEN_ERROR: "REFRESH_TOKEN_ERROR"; /** * Embedded signer is not available or initialized */ readonly MISSING_SIGNER: "MISSING_SIGNER"; /** * Signer is not configured */ readonly NOT_CONFIGURED: "NOT_CONFIGURED"; /** * Recovery password is required but not provided */ readonly MISSING_RECOVERY_PASSWORD: "MISSING_RECOVERY_PASSWORD"; /** * Wrong recovery password for this embedded signer */ readonly WRONG_RECOVERY_PASSWORD: "WRONG_RECOVERY_PASSWORD"; /** * Passkey is required but not provided */ readonly MISSING_PASSKEY: "MISSING_PASSKEY"; /** * Incorrect passkey for this embedded signer */ readonly INCORRECT_PASSKEY: "INCORRECT_PASSKEY"; /** * Project entropy is missing */ readonly MISSING_PROJECT_ENTROPY: "MISSING_PROJECT_ENTROPY"; /** * User entropy is missing */ readonly MISSING_USER_ENTROPY: "MISSING_USER_ENTROPY"; /** * Incorrect user entropy provided */ readonly INCORRECT_USER_ENTROPY: "INCORRECT_USER_ENTROPY"; /** * User not authorized to access this ecosystem or resource */ readonly USER_NOT_AUTHORIZED: "USER_NOT_AUTHORIZED"; /** * OTP verification required to proceed */ readonly OTP_REQUIRED: "OTP_REQUIRED"; /** * Internal SDK error occurred */ readonly INTERNAL_ERROR: "INTERNAL_ERROR"; /** * Network or HTTP request error */ readonly REQUEST_ERROR: "REQUEST_ERROR"; /** * Operation not supported in current context */ readonly OPERATION_NOT_SUPPORTED: "OPERATION_NOT_SUPPORTED"; /** * Logout operation failed */ readonly LOGOUT_ERROR: "LOGOUT_ERROR"; /** * Unknown error occurred */ readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; }; /** * Type representing valid Openfort error codes */ type OpenfortErrorCode = (typeof ERROR_CODES)[keyof typeof ERROR_CODES]; /** * Alias for backward compatibility * @deprecated Use OpenfortErrorCode instead */ type OpenfortAuthErrorCode = OpenfortErrorCode; /** * Openfort SDK Error Classes * * Modern error handling pattern with: * - Base OpenfortError class with `error` (code) + `error_description` (message) * - Domain-specific error subclasses with contextual properties * - Static factory methods for creating errors from API payloads */ /** * Base error class for all Openfort SDK errors * * @example * ```typescript * import { OpenfortError, OPENFORT_ERROR_CODES } from '@openfort/openfort-js' * * try { * await openfort.logInWithEmailPassword({ email, password }) * } catch (error) { * if (error instanceof OpenfortError) { * console.error(`Error: ${error.error}`) * console.error(`Description: ${error.error_description}`) * } * } * ``` */ declare class OpenfortError extends Error { /** * Machine-readable error code for programmatic handling * @example "invalid_credentials", "session_expired", "missing_signer" */ readonly error: string; /** * Human-readable error description */ readonly error_description: string; constructor(error: string, error_description: string); /** * Create error from API response payload * Handles both nested and flat error response formats */ static fromPayload({ error, error_description, message, code, }: { error?: string | { message?: string; code?: string; }; error_description?: string; message?: string; code?: string; }): OpenfortError; } /** * Authentication-related errors (login, signup, OAuth) * * @example * ```typescript * if (error instanceof AuthenticationError) { * if (error.statusCode === 401) { * console.log('Invalid credentials') * } * } * ``` */ declare class AuthenticationError extends OpenfortError { readonly statusCode?: number | undefined; constructor(error: string, error_description: string, statusCode?: number | undefined); } /** * Session management errors (token refresh, expiration) * * @example * ```typescript * if (error instanceof SessionError) { * if (error.error === OPENFORT_ERROR_CODES.SESSION_EXPIRED) { * console.log('Please log in again') * } * } * ``` */ declare class SessionError extends OpenfortError { readonly audience?: string | undefined; readonly scope?: string | undefined; constructor(error: string, error_description: string, audience?: string | undefined, scope?: string | undefined); } /** * Configuration errors (missing keys, invalid config) */ declare class ConfigurationError extends OpenfortError { constructor(error_description: string); } /** * Embedded wallet/signer errors * * @example * ```typescript * if (error instanceof SignerError) { * console.log(`Signer error for account: ${error.accountId}`) * } * ``` */ declare class SignerError extends OpenfortError { readonly accountId?: string | undefined; constructor(error: string, error_description: string, accountId?: string | undefined); } /** * User registration/profile errors */ declare class UserError extends OpenfortError { readonly userId?: string | undefined; constructor(error: string, error_description: string, userId?: string | undefined); } /** * OTP verification errors */ declare class OTPError extends OpenfortError { constructor(error: string, error_description: string); } /** * OAuth/Social login errors * * @example * ```typescript * if (error instanceof OAuthError) { * console.log(`OAuth error with provider: ${error.provider}`) * } * ``` */ declare class OAuthError extends OpenfortError { readonly provider?: string | undefined; constructor(error: string, error_description: string, provider?: string | undefined); } /** * Ecosystem authorization errors (403) */ declare class AuthorizationError extends OpenfortError { constructor(error_description?: string); } /** * Recovery method errors (passkey, password recovery) */ declare class RecoveryError extends OpenfortError { readonly recoveryMethod?: string | undefined; constructor(error: string, error_description: string, recoveryMethod?: string | undefined); } /** * Network/request errors */ declare class RequestError extends OpenfortError { readonly statusCode?: number | undefined; constructor(error_description: string, statusCode?: number | undefined); } /** * Funding (cross-chain wallet deposit) resource. * * Wraps the API's `/v2/funding` session endpoints: create a session for a * destination, set a single payment method (a source route) to mint a Relay * deposit address, then poll until terminal. Sessions are guarded by a * per-session `clientSecret` and authenticated with the project publishable key. * * NOTE: This thin wrapper calls the backend directly. Once the API's funding * endpoints are part of the published OpenAPI spec, this can move onto the * generated `BackendApiClients.fundingApi` like the other resources. */ /** Where the funded crypto should land (CAIP-2 chain + token + wallet). */ interface FundingTarget { chain: string; currency: string; address: string; } /** The source route the user commits to sending from. */ interface FundingSource { chain: string; currency: string; amount: string; } interface CreateFundingSessionParams { target: FundingTarget; /** Lock the deposit to a fixed amount (destination base units). */ amountUnits?: string; metadata?: Record; /** Idempotency/correlation key — reusing it returns the existing session. */ externalId?: string; /** true = single-use deposit address; false (default) = open/reusable. */ strict?: boolean; /** * One-call funding: set the payment method at creation when the source route * is already known — the session comes back in `waiting_payment` with the * deposit address, skipping the separate setPaymentMethod round trip. */ paymentMethod?: FundingPaymentMethodInput; } interface FundingPaymentMethodBase { source: FundingSource; /** * Origin-chain refund address (refunds land on the source chain). Optional — * the server defaults it to the target address for same-VM routes, or to a * source-VM stand-in for cross-VM routes (e.g. an EVM source funding a Solana * wallet), where the destination address isn't valid on the source chain. */ refundTo?: string; } /** * The source route the user commits to. `evm` / `solana` are self-custody * transfers; `cex` is a guided withdrawal from a centralized exchange — the same * deposit address, plus withdrawal guidance (network, minimum, memo) and no * wallet deeplinks (exchanges don't expose them). */ type FundingPaymentMethodInput = (FundingPaymentMethodBase & { type: 'evm'; }) | (FundingPaymentMethodBase & { type: 'solana'; }) | (FundingPaymentMethodBase & { type: 'cex'; /** Exchange id, e.g. "binance" | "coinbase". */ cex: string; }); type FundingSessionStatus = 'requires_payment_method' | 'waiting_payment' | 'processing' | 'succeeded' | 'bounced' | 'expired'; interface FundingFee { kind: string; amount: string; currency: string; } interface FundingWalletDeeplink { app: string; label: string; url: string; } /** Withdrawal guidance for a `cex` payment method. */ interface FundingCexGuidance { /** Exchange id, e.g. "binance" | "coinbase". */ exchange: string; /** Network name as the exchange labels it, e.g. "Base", "Polygon". */ network: string; /** Minimum withdrawal in source base units, if the exchange enforces one. */ minWithdrawal: string | null; /** True when the network requires a destination tag / memo. */ requiresMemo: boolean; } interface FundingPaymentMethod { type: string; source: FundingSource; receiverAddress: string; addressUri: string; deeplinks: FundingWalletDeeplink[]; /** Withdrawal guidance; present only for `cex` payment methods, else null. */ cex: FundingCexGuidance | null; fees: FundingFee[]; minAmount: string | null; } interface FundingSession { id: string; object: string; status: FundingSessionStatus; clientSecret: string; target: FundingTarget; amountUnits: string | null; metadata: Record | null; externalId: string | null; strict: boolean; paymentMethod: FundingPaymentMethod | null; createdAt: number; expiresAt: number; } /** * Parameters for a Coinbase "Transfer funds" pay-link. Session-bound: the * destination chain and address come from the session, so the link can't be * redirected — the client only chooses the amount. */ interface PayLinkParams { /** Funding session (starts with fnd_) whose wallet receives the funds. */ sessionId: string; /** * The session's client secret. Optional when the session was created on this * SDK instance (remembered from create()); required for sessions created elsewhere. */ clientSecret?: string; /** Amount to deliver, in the asset's human units (Coinbase enforces a minimum). */ amount: string; /** Destination asset ticker; defaults to "USDC" server-side. */ asset?: string; } /** A source currency available on a chain. */ interface FundingCurrency { symbol: string; /** Contract address, or the zero address for the chain's native asset. */ address: string; decimals: number; logo: string | null; /** True for the chain's native currency (ETH, SOL, POL, …). */ native: boolean; } /** A source chain the rail can route from, with its routable currencies. */ interface FundingChain { /** CAIP-2 chain id, e.g. "eip155:8453". */ id: string; name: string; logo: string | null; vmType: string; currencies: FundingCurrency[]; } declare class FundingApi { private request; /** * Client secrets remembered from create() responses, so follow-up calls in * the same SDK instance don't need to thread the secret manually. Passing an * explicit `clientSecret` always overrides (e.g. sessions created elsewhere). */ private readonly secrets; private resolveSecret; private remember; /** Funding session sub-resource: create → setPaymentMethod → get/wait. */ readonly sessions: { create: (params: CreateFundingSessionParams) => Promise; setPaymentMethod: (sessionId: string, params: { paymentMethod: FundingPaymentMethodInput; clientSecret?: string; }) => Promise; get: (sessionId: string, params?: { clientSecret?: string; }) => Promise; /** * Poll a session until it reaches a terminal status (`succeeded`, `bounced`, * or `expired`). Resolves with the terminal session; rejects on timeout. */ wait: (sessionId: string, params?: { clientSecret?: string; pollMs?: number; timeoutMs?: number; }) => Promise; }; /** * One-call deposit: create a session with the payment method set, then poll * until it reaches a terminal status (`succeeded`, `bounced`, or `expired`). * Bundles `sessions.create` + `sessions.wait` — the headless equivalent of the * React `useFunding().fund()` flow. Resolves with the terminal session; rejects * on timeout. */ readonly fund: (params: { target: FundingTarget; paymentMethod: FundingPaymentMethodInput; /** Lock the deposit to a fixed amount (destination base units). */ amountUnits?: string; metadata?: Record; /** Idempotency/correlation key — reusing it returns the existing session. */ externalId?: string; /** true = single-use deposit address; false (default) = open/reusable. */ strict?: boolean; /** Poll interval and overall timeout for the wait phase. */ wait?: { pollMs?: number; timeoutMs?: number; }; }) => Promise; /** * Resolve a prefilled Coinbase "Transfer funds" URL that delivers the asset to * the session's wallet. Session-bound — the destination comes from the session, * so the client only chooses the amount. Powers the "send from an exchange" path. */ readonly payLink: (params: PayLinkParams) => Promise; /** * The source chains + currencies the rail can route from — a live passthrough * of the provider's supported routes, for building the source picker. */ readonly chains: () => Promise; } declare class ProxyApi { private backendApiClients; private validateAndRefreshToken; private ensureInitialized; private getSignerSignFunction?; constructor(_storage: IStorage, backendApiClients: BackendApiClients, validateAndRefreshToken: () => Promise, ensureInitialized: () => Promise, getSignerSignFunction?: (() => Promise<(message: string | Uint8Array) => Promise>) | undefined); sendSignatureTransactionIntentRequest(transactionIntentId: string, signableHash?: string | null, signature?: string | null, optimistic?: boolean): Promise; sendSignatureSessionRequest(sessionId: string, signature: string, optimistic?: boolean): Promise; } /** * Passkey-specific error types for better error handling and UX. * * These errors allow consumers to distinguish between: * - User cancellation (expected flow) * - PRF not supported (device limitation) * - Invalid seed (configuration error) * - Creation/assertion failures (unexpected errors) */ /** Error codes for passkey operations */ declare const PASSKEY_ERROR_CODES: { readonly USER_CANCELLED: "passkey_user_cancelled"; readonly CREATION_FAILED: "passkey_creation_failed"; readonly ASSERTION_FAILED: "passkey_assertion_failed"; readonly PRF_NOT_SUPPORTED: "passkey_prf_not_supported"; readonly INVALID_SEED: "passkey_invalid_seed"; }; type PasskeyErrorCode = (typeof PASSKEY_ERROR_CODES)[keyof typeof PASSKEY_ERROR_CODES]; /** * Error thrown when user cancels a passkey operation. * This is an expected flow, not a failure. */ declare class PasskeyUserCancelledError extends OpenfortError { constructor(message?: string); } /** * Error thrown when passkey creation fails. */ declare class PasskeyCreationFailedError extends OpenfortError { readonly cause?: Error; constructor(message?: string, cause?: Error); } /** * Error thrown when PRF extension is not supported. * This typically means the device/browser doesn't support the PRF WebAuthn extension. */ declare class PasskeyPRFNotSupportedError extends OpenfortError { constructor(message?: string); } /** * Error thrown when passkey assertion (get) fails. */ declare class PasskeyAssertionFailedError extends OpenfortError { readonly cause?: Error; constructor(message?: string, cause?: Error); } /** * Error thrown when passkey seed is invalid (empty or missing). * The seed is required for PRF key derivation. */ declare class PasskeySeedInvalidError extends OpenfortError { constructor(message?: string); } /** * Configuration for creating a new passkey. */ interface PasskeyCreateConfig { /** Unique identifier for the passkey */ id: string; /** Seed value used for PRF-based key derivation */ seed: string; } /** * Configuration for deriving a key from an existing passkey. */ interface PasskeyDeriveConfig { /** The passkey ID (base64 encoded credential ID) */ id: string; /** Seed value used for PRF-based key derivation */ seed: string; } /** * Result of passkey creation. */ interface PasskeyDetails { /** The passkey ID (base64 encoded credential ID) */ id: string; /** Human-readable display name */ displayName?: string; /** Derived key material as base64url string */ key?: string; } /** * Strategy interface for passkey handlers. * Implementations: PasskeyHandler (browser), native handlers (React Native) */ interface IPasskeyHandler { /** Creates a new passkey and derives a key using the PRF extension. */ createPasskey(config: PasskeyCreateConfig): Promise; /** Derives and exports key material from an existing passkey as base64url string. */ deriveAndExportKey(config: PasskeyDeriveConfig): Promise; } /** * PasskeyHandler handles operations related to passkeys. * This class is ONLY suitable for key-derivation related use cases. * That is, it's not designed (and must NOT be used) for authentication. */ declare class PasskeyHandler implements IPasskeyHandler { private readonly validByteLengths; private readonly rpId?; private readonly rpName?; private readonly displayName; private readonly timeoutMs; private readonly derivedKeyLengthBytes; /** * Creates a new passkey handler * @param rpId The issuer's domain name * @param rpName The issuer's display name * @param displayName Credential display name shown in passkey dialogs * @param timeoutMs Timeout (in milliseconds) before a passkey dialog expires * @param derivedKeyLengthBytes Byte length for target keys (16, 24, or 32) */ constructor({ rpId, rpName, displayName, timeoutMs, derivedKeyLengthBytes }?: PasskeyHandlerConfig); static randomPasskeyName(): string; private getChallengeBytes; private deriveKeyFromAssertion; /** * Prompts the user to create a passkey. * @param id User identifier * @param seed Seed phrase for PRF key derivation * @returns PasskeyDetails with passkey details if passkey creation was successful * @throws PasskeySeedInvalidError if seed is empty * @throws PasskeyUserCancelledError if user cancels the operation * @throws PasskeyPRFNotSupportedError if PRF extension fails * @throws PasskeyCreationFailedError for other failures */ createPasskey({ id, seed }: PasskeyCreateConfig): Promise; /** * Derive and export a key using local passkey * @param id Internal ID of the passkey * @param seed Seed phrase to derive passkey ID * @returns base64url encoded derived key * @throws PasskeySeedInvalidError if seed is empty * @throws PasskeyUserCancelledError if user cancels the operation * @throws PasskeyPRFNotSupportedError if PRF extension fails * @throws PasskeyAssertionFailedError for other failures */ deriveAndExportKey({ id, seed }: PasskeyDeriveConfig): Promise; } interface PasskeyHandlerConfig { rpId?: string; rpName?: string; /** Credential display name shown in passkey dialogs */ displayName?: string; /** Timeout in milliseconds before passkey dialog expires (default: 60000) */ timeoutMs?: number; /** Derived key length in bytes: 16, 24, or 32 (default: 32) */ derivedKeyLengthBytes?: number; } /** * Base64/Base64URL encoding utilities for passkey operations. */ /** * Converts ArrayBuffer or Uint8Array to base64url string. * Base64URL uses '-' and '_' instead of '+' and '/', and omits padding '='. */ declare function arrayBufferToBase64URL(buffer: ArrayBuffer | Uint8Array): string; /** * Converts base64 or base64url string to ArrayBuffer. */ declare function base64ToArrayBuffer(base64: string): ArrayBuffer; declare class Openfort { private storage; private iAuthManager; private openfortInternal; private initPromise; private asyncInitPromise; private authInstance?; private embeddedWalletInstance?; private userInstance?; private proxyInstance?; private fundingInstance?; private configuration; eventEmitter: TypedEventEmitter; private iPasskeyHandler; /** * Global event emitter singleton for subscribing to SDK events * @internal */ private static globalEventEmitter; get auth(): AuthApi; get embeddedWallet(): EmbeddedWalletApi; get user(): UserApi; get proxy(): ProxyApi; get funding(): FundingApi; private initializeSynchronously; constructor(sdkConfiguration: OpenfortSDKConfiguration); /** * Get the global event emitter for subscribing to SDK events * @returns The global event emitter instance */ static getEventEmitter(): TypedEventEmitter; /** * Wait for SDK initialization to complete. This triggers async initialization * which includes storage access, so it should only be called in browser environments. * @returns Promise that resolves when initialization is complete */ waitForInitialization(): Promise; /** * Get the current access token * @returns Access token or null */ getAccessToken(): Promise; /** * Validates and refreshes the access token if needed. */ validateAndRefreshToken(forceRefresh?: boolean): Promise; private get backendApiClients(); private get authManager(); get passkeyHandler(): IPasskeyHandler; static isStorageAccessible(storage: IStorage): Promise; /** * Performs async initialization tasks * @private */ private initializeAsync; /** * Ensures async initialization is complete. This is called lazily when * storage is actually needed, not during construction. * * @returns Promise that resolves when async initialization is complete * @throws {OpenfortError} If initialization fails */ private ensureAsyncInitialized; /** * Ensures the SDK is initialized. This method guarantees that initialization * happens exactly once, even if called concurrently from multiple methods. * * @returns Promise that resolves when initialization is complete * @throws {OpenfortError} If initialization fails */ private ensureInitialized; } declare class OpenfortInternal { private storage; private authManager; private eventEmitter; constructor(storage: IStorage, authManager: AuthManager, eventEmitter: TypedEventEmitter); getThirdPartyAuthToken(): Promise; getAccessToken(): Promise; /** * Validates and refreshes the access token if needed. * Uses promise deduplication to prevent race conditions when multiple API calls * simultaneously detect an expired token. */ validateAndRefreshToken(forceRefresh?: boolean): Promise; } interface SignerConfigureRequest { chainId?: number; entropy?: EntropyResponse; accountType: AccountTypeEnum; chainType: ChainTypeEnum; getPasskeyKeyFn: (id: string) => Promise; } interface SignerCreateRequest { accountType: AccountTypeEnum; chainType: ChainTypeEnum; chainId?: number; entropy?: EntropyResponse; } interface SignerRecoverRequest { account: string; entropy?: EntropyResponse; } declare class MissingRecoveryPasswordError extends RecoveryError { constructor(); } declare class WrongPasskeyError extends RecoveryError { constructor(); } declare class MissingProjectEntropyError extends RecoveryError { constructor(); } declare class WrongRecoveryPasswordError extends RecoveryError { constructor(); } declare class NotConfiguredError extends SignerError { constructor(); } declare class OTPRequiredError extends OpenfortError { constructor(); } /** * Thrown when the iframe signer does not respond to a `sign` request within * the configured timeout window. The handshake itself succeeded — penpal is * connected — but `remote.sign()` never resolved. In practice this means the * passkey/biometry prompt was dismissed, the iframe is frozen, or a * postMessage was dropped. Without this timeout the promise hangs forever * and the caller sees an endless "Processing" spinner with no error. */ declare class IframeSignTimeoutError extends SignerError { constructor(timeoutMs: number); } /** * Thrown when the iframe signer returns a response without a signature * (empty string, undefined, or null). The transport succeeded but the * payload is unusable — posting it downstream would create a malformed * UserOperation, so fail fast instead. */ declare class IframeSignEmptyResponseError extends SignerError { constructor(); } /** * Thrown when the consumer calls `destroy()` on an `IframeManager` before its * connection handshake has finished. The two paths that produce this error are * (a) `initialize()` called on a manager that was already destroyed, and * (b) `destroy()` racing an in-flight `initialize()` (component unmount during * the penpal handshake). The original "configure your origin" copy is * intentionally NOT surfaced here, because it misled customers (Sentry * OPENFORT-JS-HD) into believing their dashboard origin config was wrong when * the real cause was a teardown race. */ declare class SessionEndedBeforeSetupError extends OpenfortError { constructor(); } /** * Thrown when the penpal handshake does not complete within the connection * window — the iframe never replied to SYN/ACK. Distinct from a dashboard * origin misconfiguration: a timeout usually means the embed page is * unreachable, blocked by CSP, or the network dropped the load. Collapsing it * into the native-app "configure your origin" copy misled web users whose * origin was fine (Sentry OPENFORT-JS-D0, seen on playground.openfort.io). The * original PenpalError is kept as `cause` so callers can still inspect * `code === 'CONNECTION_TIMEOUT'`. */ declare class IframeHandshakeTimeoutError extends OpenfortError { constructor(timeoutMs: number, cause: unknown); } interface Signer$1 { sign(message: Uint8Array | string, requireArrayify?: boolean, requireHash?: boolean): Promise; disconnect(): Promise; configure(params: SignerConfigureRequest): Promise; switchChain({ chainId }: { chainId: number; }): Promise; setRecoveryMethod({ recoveryMethod, recoveryPassword, encryptionSession, }: { recoveryMethod: RecoveryMethod; recoveryPassword?: string; encryptionSession?: string; }): Promise; export(): Promise; create(params: SignerCreateRequest): Promise; recover(params: SignerRecoverRequest): Promise; } /** * EIP-7702 Authorization utilities * Standalone implementation for preparing and signing EIP-7702 authorizations */ /** * EIP-7702 Authorization object */ type Authorization = { /** Contract address to delegate execution to */ address: string; /** Chain ID where the authorization is valid */ chainId: number; /** Nonce of the EOA account */ nonce: number; }; /** * Signed EIP-7702 Authorization object */ type SignedAuthorization = Authorization & { /** Signature r value */ r: string; /** Signature s value */ s: string; /** Signature v value (27 or 28) */ v: number; /** Y parity (0 or 1) */ yParity: number; }; /** * Parameters for preparing an authorization */ type PrepareAuthorizationParams = { /** Contract address to delegate to */ contractAddress: string; /** Chain ID (optional, will be auto-filled if not provided) */ chainId?: number; /** Nonce (optional, will be auto-filled if not provided) */ nonce?: number; /** RPC URL for fetching chain data if chainId or nonce are not provided */ rpcUrl?: string; /** Account address for fetching nonce */ accountAddress?: string; }; /** * Parameters for signing an authorization */ type SignAuthorizationParams = { /** The prepared authorization to sign */ authorization: Authorization; /** Signer instance to use for signing */ signer: Signer$1; }; /** * Signs an EIP-7702 Authorization using the Signer interface. * * @param params - Parameters for signing * @returns The signed authorization with signature fields */ declare function signAuthorization(params: SignAuthorizationParams): Promise; /** * Serializes a signed authorization to compact signature format. * The API expects this format to parse with Viem's parseSignature function. * Format: 0x${r}${s}${yParity} (130 character hex string = 65 bytes) * * @param signedAuth - The signed authorization * @returns Compact signature hex string (r + s + yParity) */ declare function serializeSignedAuthorization(signedAuth: SignedAuthorization): string; /** * Prepares and signs an EIP-7702 authorization in one call. * * @param params - Parameters including contract address, chainId, nonce, and signer * @returns The signed authorization with signature fields */ declare function prepareAndSignAuthorization(params: PrepareAuthorizationParams & { signer: Signer$1; }): Promise; type RevokePermissionsRequestParams = { permissionContext: Hex; }; /** * Utility type for creating union types where only one property can be set at a time. * This is useful for creating mutually exclusive options. */ type OneOf = T extends infer U ? U & Partial, never>> : never; /** @internal */ type AccountSigner = { type: 'account'; data: { id: `0x${string}`; }; }; /** @internal */ type KeySigner = { type: 'key'; data: { id: string; }; }; /** @internal */ type MultiKeySigner = { type: 'keys'; data: { ids: string[]; }; }; /** @internal */ type WalletSigner = { type: 'wallet'; }; type Signer = OneOf; /** @internal */ type CustomPolicy = { data: data; type: { custom: string; }; }; /** @internal */ type TokenAllowancePolicy = { type: 'token-allowance'; data: { /** Token allowance (in wei). */ allowance: uint256; }; }; /** @internal */ type GasLimitPolicy = { type: 'gas-limit'; data: { /** Gas limit (in wei). */ limit: uint256; }; }; /** @internal */ type RateLimitPolicy = { type: 'rate-limit'; data: { /** Number of times during each interval. */ count: number; /** Interval (in seconds). */ interval: number; }; }; type Policy = OneOf | GasLimitPolicy | RateLimitPolicy | CustomPolicy>; /** @internal */ type CustomPermission = { data: data; type: type; }; /** @internal */ type GasLimitPermission = { type: 'gas-limit'; data: { limit: `0x${string}`; }; }; /** @internal */ type CallLimitPermission = { type: 'call-limit'; data: { count: number; }; }; type RateLimitPermission = { type: 'rate-limit'; data: { count: number; interval: number; }; }; /** @internal */ type NativeTokenTransferPermission = { type: 'native-token-transfer'; data: { /** Native token ticker (e.g. ETH). */ ticker: string; }; }; /** @internal */ type ERC721TokenTransferPermission = { type: 'erc721-token-transfer'; data: { address: `0x${string}`; tokenIds: `0x${string}`[]; }; }; /** @internal */ type ERC1155TokenTransferPermission = { type: 'erc1155-token-transfer'; data: { address: `0x${string}`; allowances: { [tokenId: string]: `0x${string}`; }; }; }; /** @internal */ type Erc20TokenTransferPermission = { type: 'erc20-token-transfer'; data: { /** ERC20 address. */ address: `0x${string}`; /** Native token ticker (e.g. ETH). */ ticker: string; }; }; /** @internal */ type ContractCallPermission = { type: 'contract-call'; data: { /** Contract address. */ address: `0x${string}`; /** Set of contract signatures to permit. */ calls: string[]; }; }; type Permission = OneOf & { /** Set of policies for the permission. No longer in the 7715 spec but required by viem */ policies?: readonly Policy[]; /** Whether or not the wallet must grant the permission. */ required?: boolean | undefined; }; type GrantPermissionsParameters = { /** Timestamp (in seconds) that specifies the time by which this session MUST expire. */ expiry: number; /** Set of permissions to grant to the user. */ permissions: readonly Permission[]; } & OneOf<{ /** Signer to assign the permissions to. */ signer?: Signer | undefined; } | { /** Account to assign the permissions to. */ account?: `0x${string}` | undefined; }>; type GrantPermissionsReturnType = { /** Timestamp (in seconds) that specifies the time by which this session MUST expire. */ expiry: number; /** ERC-4337 Factory to deploy smart contract account. */ factory?: `0x${string}` | undefined; /** Calldata to use when calling the ERC-4337 Factory. */ factoryData?: string | undefined; /** Set of granted permissions. */ grantedPermissions: readonly Permission[]; /** Permissions identifier. */ permissionsContext: string; /** Signer attached to the permissions. */ signerData?: { userOpBuilder?: `0x${string}` | undefined; submitToAddress?: `0x${string}` | undefined; } | undefined; }; declare function cryptoDigest(algorithm: string, data: BufferSource): Promise; /** * Global event emitter for subscribing to Openfort SDK events * * @example * ```typescript * import { openfortEvents } from "@openfort/openfort-js"; * * openfortEvents.on("onEmbeddedWalletCreated", (wallet) => { * console.log('Wallet created:', wallet); * }); * * openfortEvents.on("onAuthSuccess", (authResponse) => { * console.log('User authenticated:', authResponse); * }); * ``` */ declare const openfortEvents: TypedEventEmitter; export { AccountTypeEnum, AuthActionRequiredActions, AuthActionRequiredResponse, AuthApi, AuthInitPayload, AuthResponse, AuthType, AuthenticationError, Authorization, AuthorizationError, BasicAuthProvider, ChainTypeEnum, ConfigurationError, CreateFundingSessionParams, EmbeddedAccount, EmbeddedState, EmbeddedWalletApi, FundingApi, FundingCexGuidance, FundingChain, FundingCurrency, FundingFee, FundingPaymentMethod, FundingPaymentMethodInput, FundingSession, FundingSessionStatus, FundingSource, FundingTarget, FundingWalletDeeplink, GrantPermissionsParameters, GrantPermissionsReturnType, IPasskeyHandler, IframeHandshakeTimeoutError, IframeSignEmptyResponseError, IframeSignTimeoutError, InitializeOAuthOptions, MissingProjectEntropyError, MissingRecoveryPasswordError, NotConfiguredError, OAuthError, OAuthProvider, OPENFORT_AUTH_ERROR_CODES, OPENFORT_ERROR_CODES, OTPError, OTPRequiredError, Openfort, OpenfortAuthErrorCode, OpenfortConfiguration, OpenfortError, OpenfortErrorCode, OpenfortEventMap, OpenfortEvents, OpenfortInternal, OpenfortSDKConfiguration, PASSKEY_ERROR_CODES, PasskeyAssertionFailedError, PasskeyCreateConfig, PasskeyCreationFailedError, PasskeyDeriveConfig, PasskeyDetails, PasskeyEnv, PasskeyErrorCode, PasskeyHandler, PasskeyPRFNotSupportedError, PasskeySeedInvalidError, PasskeyUserCancelledError, PayLinkParams, Permission, Policy, PrepareAuthorizationParams, Provider, ProxyApi, RecoveryError, RecoveryMethod, RecoveryMethodDetails, RecoveryParams, RequestError, RevokePermissionsRequestParams, SDKConfiguration, SDKOverrides, SessionEndedBeforeSetupError, SessionError, SessionResponse, ShieldAuthOptions, ShieldConfiguration, ShieldOptions, SignAuthorizationParams, SignedAuthorization, SignedMessagePayload, Signer, SignerError, IStorage as Storage, ThirdPartyAuthConfiguration, ThirdPartyAuthProvider as ThirdPartyOAuthProvider, TokenType, TransactionIntentResponse, TypedDataPayload, User, ListAccountsGet200ResponseInner as UserAccount, UserApi, UserError, WrongPasskeyError, WrongRecoveryPasswordError, arrayBufferToBase64URL, base64ToArrayBuffer, cryptoDigest, openfortEvents, prepareAndSignAuthorization, serializeSignedAuthorization, signAuthorization };