@openfort/openfort-node 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.d.mts +977 -781
- package/dist/index.d.ts +977 -781
- package/dist/index.js +90 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +82 -3
- package/dist/index.mjs.map +1 -1
- package/openapi.json +321 -0
- package/package.json +16 -16
- package/pnpm-workspace.yaml +0 -11
package/dist/index.d.ts
CHANGED
|
@@ -132,6 +132,21 @@ interface ExportEvmAccountOptions {
|
|
|
132
132
|
/** Idempotency key */
|
|
133
133
|
idempotencyKey?: string;
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* Options for updating an EVM account (e.g., upgrading to Delegated Account)
|
|
137
|
+
*/
|
|
138
|
+
interface UpdateEvmAccountOptions {
|
|
139
|
+
/** Account ID (starts with acc_) */
|
|
140
|
+
id: string;
|
|
141
|
+
/** Upgrade the account type. Currently only supports "Delegated Account". */
|
|
142
|
+
accountType?: 'Delegated Account';
|
|
143
|
+
/** The chain type. */
|
|
144
|
+
chainType: 'EVM' | 'SVM';
|
|
145
|
+
/** The chain ID. Must be a supported chain. */
|
|
146
|
+
chainId: number;
|
|
147
|
+
/** The implementation type for delegation (e.g., "Calibur"). Required when accountType is "Delegated Account". */
|
|
148
|
+
implementationType?: string;
|
|
149
|
+
}
|
|
135
150
|
/**
|
|
136
151
|
* Options for signing data
|
|
137
152
|
*/
|
|
@@ -167,721 +182,333 @@ interface EvmAccountData {
|
|
|
167
182
|
declare function toEvmAccount(data: EvmAccountData): EvmAccount;
|
|
168
183
|
|
|
169
184
|
/**
|
|
170
|
-
*
|
|
171
|
-
* Shared types for wallet functionality
|
|
185
|
+
* Error types for HTTP-level errors
|
|
172
186
|
*/
|
|
187
|
+
type HttpErrorType = 'unexpected_error' | 'unauthorized' | 'forbidden' | 'not_found' | 'bad_request' | 'conflict' | 'rate_limited' | 'bad_gateway' | 'service_unavailable' | 'unknown' | 'network_timeout' | 'network_connection_failed' | 'network_ip_blocked' | 'network_dns_failure';
|
|
173
188
|
/**
|
|
174
|
-
*
|
|
189
|
+
* Extended API error type
|
|
175
190
|
*/
|
|
176
|
-
|
|
177
|
-
/** Array of accounts */
|
|
178
|
-
accounts: T[];
|
|
179
|
-
/** Token for fetching the next page */
|
|
180
|
-
nextPageToken?: string;
|
|
181
|
-
/** Total count of accounts */
|
|
182
|
-
total?: number;
|
|
183
|
-
}
|
|
184
|
-
|
|
191
|
+
type APIErrorType = HttpErrorType | string;
|
|
185
192
|
/**
|
|
186
|
-
*
|
|
187
|
-
* Main client for EVM wallet operations
|
|
193
|
+
* Shape of Openfort API error responses
|
|
188
194
|
*/
|
|
189
|
-
|
|
195
|
+
interface OpenfortErrorResponse {
|
|
196
|
+
message?: string;
|
|
197
|
+
error?: string;
|
|
198
|
+
statusCode?: number;
|
|
199
|
+
correlationId?: string;
|
|
200
|
+
}
|
|
190
201
|
/**
|
|
191
|
-
*
|
|
202
|
+
* Type guard to check if an object is an Openfort error response
|
|
192
203
|
*/
|
|
193
|
-
|
|
194
|
-
/** Optional custom API base URL */
|
|
195
|
-
basePath?: string;
|
|
196
|
-
/** Optional wallet secret for X-Wallet-Auth header */
|
|
197
|
-
walletSecret?: string;
|
|
198
|
-
}
|
|
204
|
+
declare function isOpenfortError(obj: unknown): obj is OpenfortErrorResponse;
|
|
199
205
|
/**
|
|
200
|
-
*
|
|
201
|
-
* Provides methods for creating, retrieving, and managing server-side EVM accounts.
|
|
206
|
+
* Extended API error that encompasses both Openfort errors and other API-related errors
|
|
202
207
|
*/
|
|
203
|
-
declare class
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
*
|
|
211
|
-
* @param _accessToken - Openfort API key (passed for backwards compatibility)
|
|
212
|
-
* @param _options - Optional client configuration (for backwards compatibility)
|
|
213
|
-
*/
|
|
214
|
-
constructor(_accessToken?: string, _options?: string | EvmClientOptions);
|
|
208
|
+
declare class APIError extends Error {
|
|
209
|
+
statusCode: number;
|
|
210
|
+
errorType: APIErrorType;
|
|
211
|
+
errorMessage: string;
|
|
212
|
+
correlationId?: string;
|
|
213
|
+
errorLink?: string;
|
|
214
|
+
cause?: Error | unknown;
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* @param options - Account creation options
|
|
219
|
-
* @returns The created EVM account
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* ```typescript
|
|
223
|
-
* // Create an EVM wallet
|
|
224
|
-
* const account = await openfort.evm.createAccount();
|
|
216
|
+
* Constructor for the APIError class
|
|
225
217
|
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
*
|
|
218
|
+
* @param statusCode - The HTTP status code
|
|
219
|
+
* @param errorType - The type of error
|
|
220
|
+
* @param errorMessage - The error message
|
|
221
|
+
* @param correlationId - The correlation ID for tracing
|
|
222
|
+
* @param errorLink - URL to documentation about this error
|
|
223
|
+
* @param cause - The cause of the error
|
|
231
224
|
*/
|
|
232
|
-
|
|
225
|
+
constructor(statusCode: number, errorType: APIErrorType, errorMessage: string, correlationId?: string, errorLink?: string, cause?: Error | unknown);
|
|
233
226
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* @param options - Account retrieval options (id or address)
|
|
237
|
-
* @returns The EVM account
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```typescript
|
|
241
|
-
* const account = await openfort.evm.getAccount({
|
|
242
|
-
* id: 'acc_...',
|
|
243
|
-
* });
|
|
244
|
-
*
|
|
245
|
-
* // Or by address (requires listing and filtering)
|
|
246
|
-
* const account = await openfort.evm.getAccount({
|
|
247
|
-
* address: '0x...',
|
|
248
|
-
* });
|
|
249
|
-
* ```
|
|
227
|
+
* Convert the error to a JSON object
|
|
250
228
|
*/
|
|
251
|
-
|
|
229
|
+
toJSON(): {
|
|
230
|
+
errorLink?: string | undefined;
|
|
231
|
+
correlationId?: string | undefined;
|
|
232
|
+
name: string;
|
|
233
|
+
statusCode: number;
|
|
234
|
+
errorType: string;
|
|
235
|
+
errorMessage: string;
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Error thrown when a network-level failure occurs before reaching the Openfort service.
|
|
240
|
+
* This includes gateway errors, IP blocklist rejections, DNS failures, timeouts, etc.
|
|
241
|
+
*/
|
|
242
|
+
declare class NetworkError extends APIError {
|
|
243
|
+
networkDetails?: {
|
|
244
|
+
code?: string;
|
|
245
|
+
message?: string;
|
|
246
|
+
retryable?: boolean;
|
|
247
|
+
};
|
|
252
248
|
/**
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
* @param options - List options (limit, skip, filters)
|
|
256
|
-
* @returns List of EVM accounts
|
|
249
|
+
* Constructor for the NetworkError class
|
|
257
250
|
*
|
|
258
|
-
* @
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
* });
|
|
263
|
-
* ```
|
|
251
|
+
* @param errorType - The type of network error
|
|
252
|
+
* @param errorMessage - The error message
|
|
253
|
+
* @param networkDetails - Additional network error details
|
|
254
|
+
* @param cause - The cause of the error
|
|
264
255
|
*/
|
|
265
|
-
|
|
256
|
+
constructor(errorType: HttpErrorType, errorMessage: string, networkDetails?: {
|
|
257
|
+
code?: string;
|
|
258
|
+
message?: string;
|
|
259
|
+
retryable?: boolean;
|
|
260
|
+
}, cause?: Error | unknown);
|
|
266
261
|
/**
|
|
267
|
-
*
|
|
268
|
-
* The private key is encrypted using RSA-OAEP with SHA-256.
|
|
269
|
-
*
|
|
270
|
-
* @param options - Import options including the private key
|
|
271
|
-
* @returns The imported EVM account
|
|
272
|
-
*
|
|
273
|
-
* @example
|
|
274
|
-
* ```typescript
|
|
275
|
-
* const account = await openfort.evm.importAccount({
|
|
276
|
-
* privateKey: '0x...',
|
|
277
|
-
* });
|
|
278
|
-
* ```
|
|
262
|
+
* Convert the error to a JSON object
|
|
279
263
|
*/
|
|
280
|
-
|
|
264
|
+
toJSON(): {
|
|
265
|
+
networkDetails?: {
|
|
266
|
+
code?: string;
|
|
267
|
+
message?: string;
|
|
268
|
+
retryable?: boolean;
|
|
269
|
+
} | undefined;
|
|
270
|
+
errorLink?: string | undefined;
|
|
271
|
+
correlationId?: string | undefined;
|
|
272
|
+
name: string;
|
|
273
|
+
statusCode: number;
|
|
274
|
+
errorType: string;
|
|
275
|
+
errorMessage: string;
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Error thrown when an error is not known or cannot be categorized
|
|
280
|
+
*/
|
|
281
|
+
declare class UnknownError extends Error {
|
|
282
|
+
cause?: Error;
|
|
281
283
|
/**
|
|
282
|
-
*
|
|
283
|
-
* Uses RSA-OAEP with SHA-256 for E2E encryption.
|
|
284
|
-
*
|
|
285
|
-
* @param options - Export options with account ID
|
|
286
|
-
* @returns The private key as a hex string (without 0x prefix)
|
|
284
|
+
* Constructor for the UnknownError class
|
|
287
285
|
*
|
|
288
|
-
* @
|
|
289
|
-
*
|
|
290
|
-
* const privateKey = await openfort.evm.exportAccount({
|
|
291
|
-
* id: 'acc_...',
|
|
292
|
-
* });
|
|
293
|
-
* // Returns: 'a1b2c3d4...' (64-character hex string)
|
|
294
|
-
* ```
|
|
286
|
+
* @param message - The error message
|
|
287
|
+
* @param cause - The cause of the error
|
|
295
288
|
*/
|
|
296
|
-
|
|
289
|
+
constructor(message: string, cause?: Error);
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Error thrown for user input validation failures
|
|
293
|
+
*/
|
|
294
|
+
declare class ValidationError extends Error {
|
|
295
|
+
field?: string;
|
|
296
|
+
value?: unknown;
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
* @param options - Sign options with account ID and data
|
|
301
|
-
* @returns The signature as a hex string
|
|
298
|
+
* Constructor for the ValidationError class
|
|
302
299
|
*
|
|
303
|
-
* @
|
|
304
|
-
*
|
|
305
|
-
*
|
|
306
|
-
* id: 'acc_...',
|
|
307
|
-
* data: '0x...', // hex-encoded transaction or message hash
|
|
308
|
-
* });
|
|
309
|
-
* ```
|
|
300
|
+
* @param message - The error message
|
|
301
|
+
* @param field - The field that failed validation
|
|
302
|
+
* @param value - The invalid value
|
|
310
303
|
*/
|
|
311
|
-
|
|
304
|
+
constructor(message: string, field?: string, value?: unknown);
|
|
312
305
|
}
|
|
313
306
|
|
|
314
307
|
/**
|
|
315
|
-
*
|
|
316
|
-
*
|
|
308
|
+
* Generated by orval v8.4.2 🍺
|
|
309
|
+
* Do not edit manually.
|
|
310
|
+
* Openfort API
|
|
311
|
+
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
312
|
+
* OpenAPI spec version: 1.0.0
|
|
317
313
|
*/
|
|
314
|
+
type JsonRpcSuccessResponseAnyJsonrpc = typeof JsonRpcSuccessResponseAnyJsonrpc[keyof typeof JsonRpcSuccessResponseAnyJsonrpc];
|
|
315
|
+
declare const JsonRpcSuccessResponseAnyJsonrpc: {
|
|
316
|
+
readonly '20': "2.0";
|
|
317
|
+
};
|
|
318
318
|
/**
|
|
319
|
-
*
|
|
319
|
+
* JSON-RPC 2.0 Success Response
|
|
320
320
|
*/
|
|
321
|
-
interface
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
address: string;
|
|
326
|
-
/** Account type identifier */
|
|
327
|
-
custody: 'Developer';
|
|
321
|
+
interface JsonRpcSuccessResponseAny {
|
|
322
|
+
jsonrpc: JsonRpcSuccessResponseAnyJsonrpc;
|
|
323
|
+
result: unknown;
|
|
324
|
+
id: string | number | null;
|
|
328
325
|
}
|
|
329
326
|
/**
|
|
330
|
-
*
|
|
327
|
+
* JSON-RPC 2.0 Error Object
|
|
331
328
|
*/
|
|
332
|
-
interface
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
*/
|
|
337
|
-
signMessage(parameters: {
|
|
338
|
-
message: string;
|
|
339
|
-
}): Promise<string>;
|
|
340
|
-
/**
|
|
341
|
-
* Signs a transaction
|
|
342
|
-
* @param parameters - Object containing the base64-encoded transaction
|
|
343
|
-
*/
|
|
344
|
-
signTransaction(parameters: {
|
|
345
|
-
transaction: string;
|
|
346
|
-
}): Promise<string>;
|
|
329
|
+
interface JsonRpcError {
|
|
330
|
+
code: number;
|
|
331
|
+
message: string;
|
|
332
|
+
data?: unknown;
|
|
347
333
|
}
|
|
334
|
+
type JsonRpcErrorResponseJsonrpc = typeof JsonRpcErrorResponseJsonrpc[keyof typeof JsonRpcErrorResponseJsonrpc];
|
|
335
|
+
declare const JsonRpcErrorResponseJsonrpc: {
|
|
336
|
+
readonly '20': "2.0";
|
|
337
|
+
};
|
|
348
338
|
/**
|
|
349
|
-
*
|
|
350
|
-
*/
|
|
351
|
-
type SolanaAccount = SolanaAccountBase & SolanaSigningMethods;
|
|
352
|
-
/**
|
|
353
|
-
* Options for creating a Solana account
|
|
339
|
+
* JSON-RPC 2.0 Error Response
|
|
354
340
|
*/
|
|
355
|
-
interface
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
idempotencyKey?: string;
|
|
341
|
+
interface JsonRpcErrorResponse {
|
|
342
|
+
jsonrpc: JsonRpcErrorResponseJsonrpc;
|
|
343
|
+
error: JsonRpcError;
|
|
344
|
+
id: string | number | null;
|
|
360
345
|
}
|
|
361
346
|
/**
|
|
362
|
-
*
|
|
347
|
+
* JSON-RPC 2.0 Response (either success or error)
|
|
363
348
|
*/
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
349
|
+
type JsonRpcResponse = JsonRpcSuccessResponseAny | JsonRpcErrorResponse;
|
|
350
|
+
type JsonRpcRequestJsonrpc = typeof JsonRpcRequestJsonrpc[keyof typeof JsonRpcRequestJsonrpc];
|
|
351
|
+
declare const JsonRpcRequestJsonrpc: {
|
|
352
|
+
readonly '20': "2.0";
|
|
353
|
+
};
|
|
370
354
|
/**
|
|
371
|
-
*
|
|
355
|
+
* JSON-RPC 2.0 Request
|
|
372
356
|
*/
|
|
373
|
-
interface
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
357
|
+
interface JsonRpcRequest {
|
|
358
|
+
jsonrpc: JsonRpcRequestJsonrpc;
|
|
359
|
+
method: string;
|
|
360
|
+
params?: unknown;
|
|
361
|
+
id?: string | number | null;
|
|
378
362
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
*/
|
|
382
|
-
interface ImportSolanaAccountOptions {
|
|
383
|
-
/** Private key as base58 string or 64-byte hex string */
|
|
384
|
-
privateKey: string;
|
|
363
|
+
interface CheckoutResponse {
|
|
364
|
+
url: string;
|
|
385
365
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
366
|
+
type Currency = typeof Currency[keyof typeof Currency];
|
|
367
|
+
declare const Currency: {
|
|
368
|
+
readonly usd: "usd";
|
|
369
|
+
};
|
|
370
|
+
interface CheckoutRequest {
|
|
371
|
+
/**
|
|
372
|
+
* Amount in cents
|
|
373
|
+
* @minimum 1
|
|
374
|
+
*/
|
|
375
|
+
amount: number;
|
|
376
|
+
currency: Currency;
|
|
377
|
+
cancelUrl?: string;
|
|
378
|
+
successUrl?: string;
|
|
379
|
+
}
|
|
380
|
+
interface CheckoutSubscriptionRequest {
|
|
381
|
+
plan: string;
|
|
382
|
+
cancelUrl?: string;
|
|
383
|
+
successUrl?: string;
|
|
384
|
+
}
|
|
385
|
+
interface Money {
|
|
386
|
+
/**
|
|
387
|
+
* Amount in cents
|
|
388
|
+
* @minimum 1
|
|
389
|
+
*/
|
|
390
|
+
amount: number;
|
|
391
|
+
currency: Currency;
|
|
392
|
+
}
|
|
393
|
+
interface BalanceResponse {
|
|
394
|
+
balance: Money;
|
|
395
|
+
expenses: Money;
|
|
396
|
+
payments: Money;
|
|
397
|
+
}
|
|
398
|
+
type ResponseTypeLIST = typeof ResponseTypeLIST[keyof typeof ResponseTypeLIST];
|
|
399
|
+
declare const ResponseTypeLIST: {
|
|
400
|
+
readonly list: "list";
|
|
401
|
+
};
|
|
402
|
+
interface EntityIdResponse {
|
|
391
403
|
id: string;
|
|
392
404
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
405
|
+
type SponsorSchemaPAYFORUSER = typeof SponsorSchemaPAYFORUSER[keyof typeof SponsorSchemaPAYFORUSER];
|
|
406
|
+
declare const SponsorSchemaPAYFORUSER: {
|
|
407
|
+
readonly pay_for_user: "pay_for_user";
|
|
408
|
+
};
|
|
409
|
+
type SponsorSchema = typeof SponsorSchema[keyof typeof SponsorSchema];
|
|
410
|
+
declare const SponsorSchema: {
|
|
411
|
+
readonly pay_for_user: "pay_for_user";
|
|
412
|
+
readonly charge_custom_tokens: "charge_custom_tokens";
|
|
413
|
+
readonly fixed_rate: "fixed_rate";
|
|
414
|
+
};
|
|
415
|
+
interface PayForUserPolicyStrategy {
|
|
416
|
+
sponsorSchema: SponsorSchemaPAYFORUSER;
|
|
417
|
+
/** @nullable */
|
|
418
|
+
depositor?: string | null;
|
|
401
419
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
|
|
420
|
+
type SponsorSchemaCHARGECUSTOMTOKENS = typeof SponsorSchemaCHARGECUSTOMTOKENS[keyof typeof SponsorSchemaCHARGECUSTOMTOKENS];
|
|
421
|
+
declare const SponsorSchemaCHARGECUSTOMTOKENS: {
|
|
422
|
+
readonly charge_custom_tokens: "charge_custom_tokens";
|
|
423
|
+
};
|
|
424
|
+
interface ChargeCustomTokenPolicyStrategy {
|
|
425
|
+
sponsorSchema: SponsorSchemaCHARGECUSTOMTOKENS;
|
|
426
|
+
/** @nullable */
|
|
427
|
+
depositor?: string | null;
|
|
428
|
+
tokenContract: string;
|
|
429
|
+
tokenContractAmount: string;
|
|
410
430
|
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
431
|
+
type SponsorSchemaFIXEDRATE = typeof SponsorSchemaFIXEDRATE[keyof typeof SponsorSchemaFIXEDRATE];
|
|
432
|
+
declare const SponsorSchemaFIXEDRATE: {
|
|
433
|
+
readonly fixed_rate: "fixed_rate";
|
|
434
|
+
};
|
|
435
|
+
interface FixedRateTokenPolicyStrategy {
|
|
436
|
+
sponsorSchema: SponsorSchemaFIXEDRATE;
|
|
437
|
+
/** @nullable */
|
|
438
|
+
depositor?: string | null;
|
|
439
|
+
tokenContract: string;
|
|
440
|
+
tokenContractAmount: string;
|
|
441
|
+
}
|
|
442
|
+
type PolicyStrategy = PayForUserPolicyStrategy | ChargeCustomTokenPolicyStrategy | FixedRateTokenPolicyStrategy;
|
|
443
|
+
type EntityTypePOLICY = typeof EntityTypePOLICY[keyof typeof EntityTypePOLICY];
|
|
444
|
+
declare const EntityTypePOLICY: {
|
|
445
|
+
readonly policy: "policy";
|
|
446
|
+
};
|
|
447
|
+
interface Policy {
|
|
422
448
|
id: string;
|
|
423
|
-
|
|
449
|
+
object: EntityTypePOLICY;
|
|
450
|
+
createdAt: number;
|
|
451
|
+
/** @nullable */
|
|
452
|
+
name: string | null;
|
|
453
|
+
deleted: boolean;
|
|
454
|
+
enabled: boolean;
|
|
455
|
+
/** The chain ID. */
|
|
456
|
+
chainId: number;
|
|
457
|
+
paymaster?: EntityIdResponse;
|
|
458
|
+
forwarderContract?: EntityIdResponse;
|
|
459
|
+
strategy: PolicyStrategy;
|
|
460
|
+
transactionIntents: EntityIdResponse[];
|
|
461
|
+
policyRules: EntityIdResponse[];
|
|
462
|
+
}
|
|
463
|
+
interface PlayerMetadata {
|
|
464
|
+
[key: string]: string | number;
|
|
465
|
+
}
|
|
466
|
+
type EntityTypePLAYER = typeof EntityTypePLAYER[keyof typeof EntityTypePLAYER];
|
|
467
|
+
declare const EntityTypePLAYER: {
|
|
468
|
+
readonly player: "player";
|
|
469
|
+
};
|
|
470
|
+
interface Player {
|
|
471
|
+
id: string;
|
|
472
|
+
object: EntityTypePLAYER;
|
|
473
|
+
createdAt: number;
|
|
474
|
+
name: string;
|
|
475
|
+
description?: string;
|
|
476
|
+
metadata?: PlayerMetadata;
|
|
477
|
+
transactionIntents?: EntityIdResponse[];
|
|
478
|
+
accounts?: EntityIdResponse[];
|
|
479
|
+
}
|
|
480
|
+
type EntityTypeACCOUNT = typeof EntityTypeACCOUNT[keyof typeof EntityTypeACCOUNT];
|
|
481
|
+
declare const EntityTypeACCOUNT: {
|
|
482
|
+
readonly account: "account";
|
|
483
|
+
};
|
|
484
|
+
interface Account$1 {
|
|
485
|
+
id: string;
|
|
486
|
+
object: EntityTypeACCOUNT;
|
|
487
|
+
createdAt: number;
|
|
424
488
|
address: string;
|
|
489
|
+
ownerAddress: string;
|
|
490
|
+
deployed: boolean;
|
|
491
|
+
custodial: boolean;
|
|
492
|
+
embeddedSigner: boolean;
|
|
493
|
+
/** The chain ID. */
|
|
494
|
+
chainId: number;
|
|
495
|
+
accountType: string;
|
|
496
|
+
pendingOwnerAddress?: string;
|
|
497
|
+
transactionIntents?: EntityIdResponse[];
|
|
498
|
+
player: EntityIdResponse;
|
|
425
499
|
}
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Options for creating a Solana wallet client
|
|
441
|
-
*/
|
|
442
|
-
interface SolanaClientOptions {
|
|
443
|
-
/** Optional custom API base URL */
|
|
444
|
-
basePath?: string;
|
|
445
|
-
/** Optional wallet secret for X-Wallet-Auth header */
|
|
446
|
-
walletSecret?: string;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Client for managing Solana wallets.
|
|
450
|
-
* Provides methods for creating, retrieving, and managing server-side Solana accounts.
|
|
451
|
-
*/
|
|
452
|
-
declare class SolanaClient {
|
|
453
|
-
static type: string;
|
|
454
|
-
/**
|
|
455
|
-
* Creates a new Solana wallet client.
|
|
456
|
-
*
|
|
457
|
-
* Note: The API client is configured globally via the main Openfort class.
|
|
458
|
-
* This client just provides wallet-specific methods.
|
|
459
|
-
*
|
|
460
|
-
* @param _accessToken - Openfort API key (passed for backwards compatibility)
|
|
461
|
-
* @param _options - Optional client configuration (for backwards compatibility)
|
|
462
|
-
*/
|
|
463
|
-
constructor(_accessToken?: string, _options?: string | SolanaClientOptions);
|
|
464
|
-
/**
|
|
465
|
-
* Creates a new Solana backend wallet.
|
|
466
|
-
*
|
|
467
|
-
* @param options - Account creation options
|
|
468
|
-
* @returns The created Solana account
|
|
469
|
-
*
|
|
470
|
-
* @example
|
|
471
|
-
* ```typescript
|
|
472
|
-
* // Create a Solana wallet
|
|
473
|
-
* const account = await openfort.solana.createAccount();
|
|
474
|
-
*
|
|
475
|
-
* // Create with a specific wallet/player
|
|
476
|
-
* const account = await openfort.solana.createAccount({
|
|
477
|
-
* wallet: 'pla_...',
|
|
478
|
-
* });
|
|
479
|
-
* ```
|
|
480
|
-
*/
|
|
481
|
-
createAccount(options?: CreateSolanaAccountOptions): Promise<SolanaAccount>;
|
|
482
|
-
/**
|
|
483
|
-
* Retrieves an existing Solana account.
|
|
484
|
-
*
|
|
485
|
-
* @param options - Account retrieval options (id or address)
|
|
486
|
-
* @returns The Solana account
|
|
487
|
-
*
|
|
488
|
-
* @example
|
|
489
|
-
* ```typescript
|
|
490
|
-
* const account = await openfort.solana.getAccount({
|
|
491
|
-
* id: 'acc_...',
|
|
492
|
-
* });
|
|
493
|
-
*
|
|
494
|
-
* // Or by address (requires listing and filtering)
|
|
495
|
-
* const account = await openfort.solana.getAccount({
|
|
496
|
-
* address: 'So1ana...',
|
|
497
|
-
* });
|
|
498
|
-
* ```
|
|
499
|
-
*/
|
|
500
|
-
getAccount(options: GetSolanaAccountOptions): Promise<SolanaAccount>;
|
|
501
|
-
/**
|
|
502
|
-
* Lists all Solana backend wallets.
|
|
503
|
-
*
|
|
504
|
-
* @param options - List options (limit, skip, filters)
|
|
505
|
-
* @returns List of Solana accounts
|
|
506
|
-
*
|
|
507
|
-
* @example
|
|
508
|
-
* ```typescript
|
|
509
|
-
* const { accounts } = await openfort.solana.listAccounts({
|
|
510
|
-
* limit: 10,
|
|
511
|
-
* });
|
|
512
|
-
* ```
|
|
513
|
-
*/
|
|
514
|
-
listAccounts(options?: ListSolanaAccountsOptions): Promise<ListAccountsResult<SolanaAccount>>;
|
|
515
|
-
/**
|
|
516
|
-
* Imports a Solana account using a private key.
|
|
517
|
-
* The private key is encrypted using RSA-OAEP with SHA-256.
|
|
518
|
-
*
|
|
519
|
-
* @param options - Import options including the private key
|
|
520
|
-
* @returns The imported Solana account
|
|
521
|
-
*
|
|
522
|
-
* @example
|
|
523
|
-
* ```typescript
|
|
524
|
-
* const account = await openfort.solana.importAccount({
|
|
525
|
-
* privateKey: '5K...', // base58 or hex format
|
|
526
|
-
* // base58 or hex format
|
|
527
|
-
* });
|
|
528
|
-
* ```
|
|
529
|
-
*/
|
|
530
|
-
importAccount(options: ImportSolanaAccountOptions): Promise<SolanaAccount>;
|
|
531
|
-
/**
|
|
532
|
-
* Exports a Solana account's private key.
|
|
533
|
-
* Uses RSA-OAEP with SHA-256 for E2E encryption.
|
|
534
|
-
*
|
|
535
|
-
* @param options - Export options with account ID
|
|
536
|
-
* @returns The private key as a base58 encoded string (standard Solana format)
|
|
537
|
-
*
|
|
538
|
-
* @example
|
|
539
|
-
* ```typescript
|
|
540
|
-
* const privateKey = await openfort.solana.exportAccount({
|
|
541
|
-
* id: 'acc_...',
|
|
542
|
-
* });
|
|
543
|
-
* // Returns: '5Kd3...' (base58 encoded)
|
|
544
|
-
* ```
|
|
545
|
-
*/
|
|
546
|
-
exportAccount(options: ExportSolanaAccountOptions): Promise<string>;
|
|
547
|
-
/**
|
|
548
|
-
* Signs data using the backend wallet.
|
|
549
|
-
*
|
|
550
|
-
* @param accountId - The account ID
|
|
551
|
-
* @param data - Data to sign (hex-encoded)
|
|
552
|
-
* @returns The signature
|
|
553
|
-
*/
|
|
554
|
-
signData(accountId: string, data: string): Promise<string>;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Error types for HTTP-level errors
|
|
559
|
-
*/
|
|
560
|
-
type HttpErrorType = 'unexpected_error' | 'unauthorized' | 'forbidden' | 'not_found' | 'bad_request' | 'conflict' | 'rate_limited' | 'bad_gateway' | 'service_unavailable' | 'unknown' | 'network_timeout' | 'network_connection_failed' | 'network_ip_blocked' | 'network_dns_failure';
|
|
561
|
-
/**
|
|
562
|
-
* Extended API error type
|
|
563
|
-
*/
|
|
564
|
-
type APIErrorType = HttpErrorType | string;
|
|
565
|
-
/**
|
|
566
|
-
* Shape of Openfort API error responses
|
|
567
|
-
*/
|
|
568
|
-
interface OpenfortErrorResponse {
|
|
569
|
-
message?: string;
|
|
570
|
-
error?: string;
|
|
571
|
-
statusCode?: number;
|
|
572
|
-
correlationId?: string;
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* Type guard to check if an object is an Openfort error response
|
|
576
|
-
*/
|
|
577
|
-
declare function isOpenfortError(obj: unknown): obj is OpenfortErrorResponse;
|
|
578
|
-
/**
|
|
579
|
-
* Extended API error that encompasses both Openfort errors and other API-related errors
|
|
580
|
-
*/
|
|
581
|
-
declare class APIError extends Error {
|
|
582
|
-
statusCode: number;
|
|
583
|
-
errorType: APIErrorType;
|
|
584
|
-
errorMessage: string;
|
|
585
|
-
correlationId?: string;
|
|
586
|
-
errorLink?: string;
|
|
587
|
-
cause?: Error | unknown;
|
|
588
|
-
/**
|
|
589
|
-
* Constructor for the APIError class
|
|
590
|
-
*
|
|
591
|
-
* @param statusCode - The HTTP status code
|
|
592
|
-
* @param errorType - The type of error
|
|
593
|
-
* @param errorMessage - The error message
|
|
594
|
-
* @param correlationId - The correlation ID for tracing
|
|
595
|
-
* @param errorLink - URL to documentation about this error
|
|
596
|
-
* @param cause - The cause of the error
|
|
597
|
-
*/
|
|
598
|
-
constructor(statusCode: number, errorType: APIErrorType, errorMessage: string, correlationId?: string, errorLink?: string, cause?: Error | unknown);
|
|
599
|
-
/**
|
|
600
|
-
* Convert the error to a JSON object
|
|
601
|
-
*/
|
|
602
|
-
toJSON(): {
|
|
603
|
-
errorLink?: string | undefined;
|
|
604
|
-
correlationId?: string | undefined;
|
|
605
|
-
name: string;
|
|
606
|
-
statusCode: number;
|
|
607
|
-
errorType: string;
|
|
608
|
-
errorMessage: string;
|
|
609
|
-
};
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* Error thrown when a network-level failure occurs before reaching the Openfort service.
|
|
613
|
-
* This includes gateway errors, IP blocklist rejections, DNS failures, timeouts, etc.
|
|
614
|
-
*/
|
|
615
|
-
declare class NetworkError extends APIError {
|
|
616
|
-
networkDetails?: {
|
|
617
|
-
code?: string;
|
|
618
|
-
message?: string;
|
|
619
|
-
retryable?: boolean;
|
|
620
|
-
};
|
|
621
|
-
/**
|
|
622
|
-
* Constructor for the NetworkError class
|
|
623
|
-
*
|
|
624
|
-
* @param errorType - The type of network error
|
|
625
|
-
* @param errorMessage - The error message
|
|
626
|
-
* @param networkDetails - Additional network error details
|
|
627
|
-
* @param cause - The cause of the error
|
|
628
|
-
*/
|
|
629
|
-
constructor(errorType: HttpErrorType, errorMessage: string, networkDetails?: {
|
|
630
|
-
code?: string;
|
|
631
|
-
message?: string;
|
|
632
|
-
retryable?: boolean;
|
|
633
|
-
}, cause?: Error | unknown);
|
|
634
|
-
/**
|
|
635
|
-
* Convert the error to a JSON object
|
|
636
|
-
*/
|
|
637
|
-
toJSON(): {
|
|
638
|
-
networkDetails?: {
|
|
639
|
-
code?: string;
|
|
640
|
-
message?: string;
|
|
641
|
-
retryable?: boolean;
|
|
642
|
-
} | undefined;
|
|
643
|
-
errorLink?: string | undefined;
|
|
644
|
-
correlationId?: string | undefined;
|
|
645
|
-
name: string;
|
|
646
|
-
statusCode: number;
|
|
647
|
-
errorType: string;
|
|
648
|
-
errorMessage: string;
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
/**
|
|
652
|
-
* Error thrown when an error is not known or cannot be categorized
|
|
653
|
-
*/
|
|
654
|
-
declare class UnknownError extends Error {
|
|
655
|
-
cause?: Error;
|
|
656
|
-
/**
|
|
657
|
-
* Constructor for the UnknownError class
|
|
658
|
-
*
|
|
659
|
-
* @param message - The error message
|
|
660
|
-
* @param cause - The cause of the error
|
|
661
|
-
*/
|
|
662
|
-
constructor(message: string, cause?: Error);
|
|
663
|
-
}
|
|
664
|
-
/**
|
|
665
|
-
* Error thrown for user input validation failures
|
|
666
|
-
*/
|
|
667
|
-
declare class ValidationError extends Error {
|
|
668
|
-
field?: string;
|
|
669
|
-
value?: unknown;
|
|
670
|
-
/**
|
|
671
|
-
* Constructor for the ValidationError class
|
|
672
|
-
*
|
|
673
|
-
* @param message - The error message
|
|
674
|
-
* @param field - The field that failed validation
|
|
675
|
-
* @param value - The invalid value
|
|
676
|
-
*/
|
|
677
|
-
constructor(message: string, field?: string, value?: unknown);
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Generated by orval v8.4.2 🍺
|
|
682
|
-
* Do not edit manually.
|
|
683
|
-
* Openfort API
|
|
684
|
-
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
685
|
-
* OpenAPI spec version: 1.0.0
|
|
686
|
-
*/
|
|
687
|
-
type JsonRpcSuccessResponseAnyJsonrpc = typeof JsonRpcSuccessResponseAnyJsonrpc[keyof typeof JsonRpcSuccessResponseAnyJsonrpc];
|
|
688
|
-
declare const JsonRpcSuccessResponseAnyJsonrpc: {
|
|
689
|
-
readonly '20': "2.0";
|
|
690
|
-
};
|
|
691
|
-
/**
|
|
692
|
-
* JSON-RPC 2.0 Success Response
|
|
693
|
-
*/
|
|
694
|
-
interface JsonRpcSuccessResponseAny {
|
|
695
|
-
jsonrpc: JsonRpcSuccessResponseAnyJsonrpc;
|
|
696
|
-
result: unknown;
|
|
697
|
-
id: string | number | null;
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* JSON-RPC 2.0 Error Object
|
|
701
|
-
*/
|
|
702
|
-
interface JsonRpcError {
|
|
703
|
-
code: number;
|
|
704
|
-
message: string;
|
|
705
|
-
data?: unknown;
|
|
706
|
-
}
|
|
707
|
-
type JsonRpcErrorResponseJsonrpc = typeof JsonRpcErrorResponseJsonrpc[keyof typeof JsonRpcErrorResponseJsonrpc];
|
|
708
|
-
declare const JsonRpcErrorResponseJsonrpc: {
|
|
709
|
-
readonly '20': "2.0";
|
|
710
|
-
};
|
|
711
|
-
/**
|
|
712
|
-
* JSON-RPC 2.0 Error Response
|
|
713
|
-
*/
|
|
714
|
-
interface JsonRpcErrorResponse {
|
|
715
|
-
jsonrpc: JsonRpcErrorResponseJsonrpc;
|
|
716
|
-
error: JsonRpcError;
|
|
717
|
-
id: string | number | null;
|
|
718
|
-
}
|
|
719
|
-
/**
|
|
720
|
-
* JSON-RPC 2.0 Response (either success or error)
|
|
721
|
-
*/
|
|
722
|
-
type JsonRpcResponse = JsonRpcSuccessResponseAny | JsonRpcErrorResponse;
|
|
723
|
-
type JsonRpcRequestJsonrpc = typeof JsonRpcRequestJsonrpc[keyof typeof JsonRpcRequestJsonrpc];
|
|
724
|
-
declare const JsonRpcRequestJsonrpc: {
|
|
725
|
-
readonly '20': "2.0";
|
|
726
|
-
};
|
|
727
|
-
/**
|
|
728
|
-
* JSON-RPC 2.0 Request
|
|
729
|
-
*/
|
|
730
|
-
interface JsonRpcRequest {
|
|
731
|
-
jsonrpc: JsonRpcRequestJsonrpc;
|
|
732
|
-
method: string;
|
|
733
|
-
params?: unknown;
|
|
734
|
-
id?: string | number | null;
|
|
735
|
-
}
|
|
736
|
-
interface CheckoutResponse {
|
|
737
|
-
url: string;
|
|
738
|
-
}
|
|
739
|
-
type Currency = typeof Currency[keyof typeof Currency];
|
|
740
|
-
declare const Currency: {
|
|
741
|
-
readonly usd: "usd";
|
|
742
|
-
};
|
|
743
|
-
interface CheckoutRequest {
|
|
744
|
-
/**
|
|
745
|
-
* Amount in cents
|
|
746
|
-
* @minimum 1
|
|
747
|
-
*/
|
|
748
|
-
amount: number;
|
|
749
|
-
currency: Currency;
|
|
750
|
-
cancelUrl?: string;
|
|
751
|
-
successUrl?: string;
|
|
752
|
-
}
|
|
753
|
-
interface CheckoutSubscriptionRequest {
|
|
754
|
-
plan: string;
|
|
755
|
-
cancelUrl?: string;
|
|
756
|
-
successUrl?: string;
|
|
757
|
-
}
|
|
758
|
-
interface Money {
|
|
759
|
-
/**
|
|
760
|
-
* Amount in cents
|
|
761
|
-
* @minimum 1
|
|
762
|
-
*/
|
|
763
|
-
amount: number;
|
|
764
|
-
currency: Currency;
|
|
765
|
-
}
|
|
766
|
-
interface BalanceResponse {
|
|
767
|
-
balance: Money;
|
|
768
|
-
expenses: Money;
|
|
769
|
-
payments: Money;
|
|
770
|
-
}
|
|
771
|
-
type ResponseTypeLIST = typeof ResponseTypeLIST[keyof typeof ResponseTypeLIST];
|
|
772
|
-
declare const ResponseTypeLIST: {
|
|
773
|
-
readonly list: "list";
|
|
774
|
-
};
|
|
775
|
-
interface EntityIdResponse {
|
|
776
|
-
id: string;
|
|
777
|
-
}
|
|
778
|
-
type SponsorSchemaPAYFORUSER = typeof SponsorSchemaPAYFORUSER[keyof typeof SponsorSchemaPAYFORUSER];
|
|
779
|
-
declare const SponsorSchemaPAYFORUSER: {
|
|
780
|
-
readonly pay_for_user: "pay_for_user";
|
|
781
|
-
};
|
|
782
|
-
type SponsorSchema = typeof SponsorSchema[keyof typeof SponsorSchema];
|
|
783
|
-
declare const SponsorSchema: {
|
|
784
|
-
readonly pay_for_user: "pay_for_user";
|
|
785
|
-
readonly charge_custom_tokens: "charge_custom_tokens";
|
|
786
|
-
readonly fixed_rate: "fixed_rate";
|
|
787
|
-
};
|
|
788
|
-
interface PayForUserPolicyStrategy {
|
|
789
|
-
sponsorSchema: SponsorSchemaPAYFORUSER;
|
|
790
|
-
/** @nullable */
|
|
791
|
-
depositor?: string | null;
|
|
792
|
-
}
|
|
793
|
-
type SponsorSchemaCHARGECUSTOMTOKENS = typeof SponsorSchemaCHARGECUSTOMTOKENS[keyof typeof SponsorSchemaCHARGECUSTOMTOKENS];
|
|
794
|
-
declare const SponsorSchemaCHARGECUSTOMTOKENS: {
|
|
795
|
-
readonly charge_custom_tokens: "charge_custom_tokens";
|
|
796
|
-
};
|
|
797
|
-
interface ChargeCustomTokenPolicyStrategy {
|
|
798
|
-
sponsorSchema: SponsorSchemaCHARGECUSTOMTOKENS;
|
|
799
|
-
/** @nullable */
|
|
800
|
-
depositor?: string | null;
|
|
801
|
-
tokenContract: string;
|
|
802
|
-
tokenContractAmount: string;
|
|
803
|
-
}
|
|
804
|
-
type SponsorSchemaFIXEDRATE = typeof SponsorSchemaFIXEDRATE[keyof typeof SponsorSchemaFIXEDRATE];
|
|
805
|
-
declare const SponsorSchemaFIXEDRATE: {
|
|
806
|
-
readonly fixed_rate: "fixed_rate";
|
|
807
|
-
};
|
|
808
|
-
interface FixedRateTokenPolicyStrategy {
|
|
809
|
-
sponsorSchema: SponsorSchemaFIXEDRATE;
|
|
810
|
-
/** @nullable */
|
|
811
|
-
depositor?: string | null;
|
|
812
|
-
tokenContract: string;
|
|
813
|
-
tokenContractAmount: string;
|
|
814
|
-
}
|
|
815
|
-
type PolicyStrategy = PayForUserPolicyStrategy | ChargeCustomTokenPolicyStrategy | FixedRateTokenPolicyStrategy;
|
|
816
|
-
type EntityTypePOLICY = typeof EntityTypePOLICY[keyof typeof EntityTypePOLICY];
|
|
817
|
-
declare const EntityTypePOLICY: {
|
|
818
|
-
readonly policy: "policy";
|
|
819
|
-
};
|
|
820
|
-
interface Policy {
|
|
821
|
-
id: string;
|
|
822
|
-
object: EntityTypePOLICY;
|
|
823
|
-
createdAt: number;
|
|
824
|
-
/** @nullable */
|
|
825
|
-
name: string | null;
|
|
826
|
-
deleted: boolean;
|
|
827
|
-
enabled: boolean;
|
|
828
|
-
/** The chain ID. */
|
|
829
|
-
chainId: number;
|
|
830
|
-
paymaster?: EntityIdResponse;
|
|
831
|
-
forwarderContract?: EntityIdResponse;
|
|
832
|
-
strategy: PolicyStrategy;
|
|
833
|
-
transactionIntents: EntityIdResponse[];
|
|
834
|
-
policyRules: EntityIdResponse[];
|
|
835
|
-
}
|
|
836
|
-
interface PlayerMetadata {
|
|
837
|
-
[key: string]: string | number;
|
|
838
|
-
}
|
|
839
|
-
type EntityTypePLAYER = typeof EntityTypePLAYER[keyof typeof EntityTypePLAYER];
|
|
840
|
-
declare const EntityTypePLAYER: {
|
|
841
|
-
readonly player: "player";
|
|
842
|
-
};
|
|
843
|
-
interface Player {
|
|
844
|
-
id: string;
|
|
845
|
-
object: EntityTypePLAYER;
|
|
846
|
-
createdAt: number;
|
|
847
|
-
name: string;
|
|
848
|
-
description?: string;
|
|
849
|
-
metadata?: PlayerMetadata;
|
|
850
|
-
transactionIntents?: EntityIdResponse[];
|
|
851
|
-
accounts?: EntityIdResponse[];
|
|
852
|
-
}
|
|
853
|
-
type EntityTypeACCOUNT = typeof EntityTypeACCOUNT[keyof typeof EntityTypeACCOUNT];
|
|
854
|
-
declare const EntityTypeACCOUNT: {
|
|
855
|
-
readonly account: "account";
|
|
856
|
-
};
|
|
857
|
-
interface Account$1 {
|
|
858
|
-
id: string;
|
|
859
|
-
object: EntityTypeACCOUNT;
|
|
860
|
-
createdAt: number;
|
|
861
|
-
address: string;
|
|
862
|
-
ownerAddress: string;
|
|
863
|
-
deployed: boolean;
|
|
864
|
-
custodial: boolean;
|
|
865
|
-
embeddedSigner: boolean;
|
|
866
|
-
/** The chain ID. */
|
|
867
|
-
chainId: number;
|
|
868
|
-
accountType: string;
|
|
869
|
-
pendingOwnerAddress?: string;
|
|
870
|
-
transactionIntents?: EntityIdResponse[];
|
|
871
|
-
player: EntityIdResponse;
|
|
872
|
-
}
|
|
873
|
-
type EntityTypeDEVELOPERACCOUNT = typeof EntityTypeDEVELOPERACCOUNT[keyof typeof EntityTypeDEVELOPERACCOUNT];
|
|
874
|
-
declare const EntityTypeDEVELOPERACCOUNT: {
|
|
875
|
-
readonly developerAccount: "developerAccount";
|
|
876
|
-
};
|
|
877
|
-
interface DeveloperAccount {
|
|
878
|
-
id: string;
|
|
879
|
-
object: EntityTypeDEVELOPERACCOUNT;
|
|
880
|
-
createdAt: number;
|
|
881
|
-
address: string;
|
|
882
|
-
custodial: boolean;
|
|
883
|
-
name?: string;
|
|
884
|
-
transactionIntents?: EntityIdResponse[];
|
|
500
|
+
type EntityTypeDEVELOPERACCOUNT = typeof EntityTypeDEVELOPERACCOUNT[keyof typeof EntityTypeDEVELOPERACCOUNT];
|
|
501
|
+
declare const EntityTypeDEVELOPERACCOUNT: {
|
|
502
|
+
readonly developerAccount: "developerAccount";
|
|
503
|
+
};
|
|
504
|
+
interface DeveloperAccount {
|
|
505
|
+
id: string;
|
|
506
|
+
object: EntityTypeDEVELOPERACCOUNT;
|
|
507
|
+
createdAt: number;
|
|
508
|
+
address: string;
|
|
509
|
+
custodial: boolean;
|
|
510
|
+
name?: string;
|
|
511
|
+
transactionIntents?: EntityIdResponse[];
|
|
885
512
|
}
|
|
886
513
|
type TransactionAbstractionType = typeof TransactionAbstractionType[keyof typeof TransactionAbstractionType];
|
|
887
514
|
declare const TransactionAbstractionType: {
|
|
@@ -4192,6 +3819,113 @@ interface CreateBackendWalletRequest {
|
|
|
4192
3819
|
/** The wallet ID to associate with this wallet (starts with `pla_`). */
|
|
4193
3820
|
wallet?: string;
|
|
4194
3821
|
}
|
|
3822
|
+
/**
|
|
3823
|
+
* The type of object.
|
|
3824
|
+
*/
|
|
3825
|
+
type UpdateBackendWalletResponseObject = typeof UpdateBackendWalletResponseObject[keyof typeof UpdateBackendWalletResponseObject];
|
|
3826
|
+
declare const UpdateBackendWalletResponseObject: {
|
|
3827
|
+
readonly backendWallet: "backendWallet";
|
|
3828
|
+
};
|
|
3829
|
+
/**
|
|
3830
|
+
* The chain type the wallet is associated with.
|
|
3831
|
+
*/
|
|
3832
|
+
type UpdateBackendWalletResponseChainType = typeof UpdateBackendWalletResponseChainType[keyof typeof UpdateBackendWalletResponseChainType];
|
|
3833
|
+
declare const UpdateBackendWalletResponseChainType: {
|
|
3834
|
+
readonly EVM: "EVM";
|
|
3835
|
+
readonly SVM: "SVM";
|
|
3836
|
+
};
|
|
3837
|
+
/**
|
|
3838
|
+
* Key custody: always "Developer" for backend wallets (server-managed keys in TEE).
|
|
3839
|
+
*/
|
|
3840
|
+
type UpdateBackendWalletResponseCustody = typeof UpdateBackendWalletResponseCustody[keyof typeof UpdateBackendWalletResponseCustody];
|
|
3841
|
+
declare const UpdateBackendWalletResponseCustody: {
|
|
3842
|
+
readonly Developer: "Developer";
|
|
3843
|
+
};
|
|
3844
|
+
/**
|
|
3845
|
+
* The chain type.
|
|
3846
|
+
*/
|
|
3847
|
+
type UpdateBackendWalletResponseDelegatedAccountChainChainType = typeof UpdateBackendWalletResponseDelegatedAccountChainChainType[keyof typeof UpdateBackendWalletResponseDelegatedAccountChainChainType];
|
|
3848
|
+
declare const UpdateBackendWalletResponseDelegatedAccountChainChainType: {
|
|
3849
|
+
readonly EVM: "EVM";
|
|
3850
|
+
readonly SVM: "SVM";
|
|
3851
|
+
};
|
|
3852
|
+
/**
|
|
3853
|
+
* The chain configuration for this delegation.
|
|
3854
|
+
*/
|
|
3855
|
+
type UpdateBackendWalletResponseDelegatedAccountChain = {
|
|
3856
|
+
/** The chain ID. */
|
|
3857
|
+
chainId: number;
|
|
3858
|
+
/** The chain type. */
|
|
3859
|
+
chainType: UpdateBackendWalletResponseDelegatedAccountChainChainType;
|
|
3860
|
+
};
|
|
3861
|
+
/**
|
|
3862
|
+
* Present when the wallet has been upgraded to a delegated account.
|
|
3863
|
+
*/
|
|
3864
|
+
type UpdateBackendWalletResponseDelegatedAccount = {
|
|
3865
|
+
/** The chain configuration for this delegation. */
|
|
3866
|
+
chain: UpdateBackendWalletResponseDelegatedAccountChain;
|
|
3867
|
+
/** The implementation contract address. */
|
|
3868
|
+
implementationAddress: string;
|
|
3869
|
+
/** The implementation type used for delegation. */
|
|
3870
|
+
implementationType: string;
|
|
3871
|
+
/** The delegated account ID (starts with `acc_`). */
|
|
3872
|
+
id: string;
|
|
3873
|
+
};
|
|
3874
|
+
/**
|
|
3875
|
+
* Response from updating a backend wallet.
|
|
3876
|
+
*/
|
|
3877
|
+
interface UpdateBackendWalletResponse {
|
|
3878
|
+
/** The type of object. */
|
|
3879
|
+
object: UpdateBackendWalletResponseObject;
|
|
3880
|
+
/** The wallet ID (starts with `acc_`). */
|
|
3881
|
+
id: string;
|
|
3882
|
+
/** The wallet address. */
|
|
3883
|
+
address: string;
|
|
3884
|
+
/** The chain type the wallet is associated with. */
|
|
3885
|
+
chainType: UpdateBackendWalletResponseChainType;
|
|
3886
|
+
/** Key custody: always "Developer" for backend wallets (server-managed keys in TEE). */
|
|
3887
|
+
custody: UpdateBackendWalletResponseCustody;
|
|
3888
|
+
/** The current account type. */
|
|
3889
|
+
accountType: string;
|
|
3890
|
+
/** Creation timestamp (Unix epoch seconds). */
|
|
3891
|
+
createdAt: number;
|
|
3892
|
+
/** Last updated timestamp (Unix epoch seconds). */
|
|
3893
|
+
updatedAt: number;
|
|
3894
|
+
/** Present when the wallet has been upgraded to a delegated account. */
|
|
3895
|
+
delegatedAccount?: UpdateBackendWalletResponseDelegatedAccount;
|
|
3896
|
+
}
|
|
3897
|
+
/**
|
|
3898
|
+
* Upgrade the account type. Currently only supports upgrading to "Delegated Account".
|
|
3899
|
+
*/
|
|
3900
|
+
type UpdateBackendWalletRequestAccountType = typeof UpdateBackendWalletRequestAccountType[keyof typeof UpdateBackendWalletRequestAccountType];
|
|
3901
|
+
declare const UpdateBackendWalletRequestAccountType: {
|
|
3902
|
+
readonly Delegated_Account: "Delegated Account";
|
|
3903
|
+
};
|
|
3904
|
+
/**
|
|
3905
|
+
* The chain type.
|
|
3906
|
+
*/
|
|
3907
|
+
type UpdateBackendWalletRequestChainType = typeof UpdateBackendWalletRequestChainType[keyof typeof UpdateBackendWalletRequestChainType];
|
|
3908
|
+
declare const UpdateBackendWalletRequestChainType: {
|
|
3909
|
+
readonly EVM: "EVM";
|
|
3910
|
+
readonly SVM: "SVM";
|
|
3911
|
+
};
|
|
3912
|
+
/**
|
|
3913
|
+
* Request to update a backend wallet.
|
|
3914
|
+
|
|
3915
|
+
All fields are optional — only provide the fields you want to update.
|
|
3916
|
+
Currently supports upgrading to a Delegated Account (EIP-7702).
|
|
3917
|
+
*/
|
|
3918
|
+
interface UpdateBackendWalletRequest {
|
|
3919
|
+
/** Upgrade the account type. Currently only supports upgrading to "Delegated Account". */
|
|
3920
|
+
accountType?: UpdateBackendWalletRequestAccountType;
|
|
3921
|
+
/** The chain type. */
|
|
3922
|
+
chainType: UpdateBackendWalletRequestChainType;
|
|
3923
|
+
/** The chain ID. Must be a [supported chain](/development/chains). */
|
|
3924
|
+
chainId: number;
|
|
3925
|
+
/** The implementation type for delegation (e.g., "Calibur", "CaliburV9").
|
|
3926
|
+
Required when accountType is "Delegated Account". */
|
|
3927
|
+
implementationType?: string;
|
|
3928
|
+
}
|
|
4195
3929
|
/**
|
|
4196
3930
|
* The type of object.
|
|
4197
3931
|
*/
|
|
@@ -4602,6 +4336,50 @@ interface UserProjectDeleteResponse {
|
|
|
4602
4336
|
object: EntityTypeUSER;
|
|
4603
4337
|
deleted: boolean;
|
|
4604
4338
|
}
|
|
4339
|
+
type UsageAlertType = typeof UsageAlertType[keyof typeof UsageAlertType];
|
|
4340
|
+
declare const UsageAlertType: {
|
|
4341
|
+
readonly warning: "warning";
|
|
4342
|
+
readonly critical: "critical";
|
|
4343
|
+
readonly info: "info";
|
|
4344
|
+
};
|
|
4345
|
+
interface UsageAlert {
|
|
4346
|
+
type: UsageAlertType;
|
|
4347
|
+
message: string;
|
|
4348
|
+
percentUsed: number;
|
|
4349
|
+
}
|
|
4350
|
+
type UsageSummaryResponsePlan = {
|
|
4351
|
+
priceUsd: number;
|
|
4352
|
+
name: string;
|
|
4353
|
+
tier: string;
|
|
4354
|
+
};
|
|
4355
|
+
type UsageSummaryResponseOperations = {
|
|
4356
|
+
/** @nullable */
|
|
4357
|
+
estimatedOverageCostUsd: number | null;
|
|
4358
|
+
overageCount: number;
|
|
4359
|
+
percentUsed: number;
|
|
4360
|
+
included: number;
|
|
4361
|
+
current: number;
|
|
4362
|
+
};
|
|
4363
|
+
type UsageSummaryResponseBillingPeriod = {
|
|
4364
|
+
end: string;
|
|
4365
|
+
start: string;
|
|
4366
|
+
};
|
|
4367
|
+
interface UsageSummaryResponse {
|
|
4368
|
+
plan: UsageSummaryResponsePlan;
|
|
4369
|
+
operations: UsageSummaryResponseOperations;
|
|
4370
|
+
billingPeriod: UsageSummaryResponseBillingPeriod;
|
|
4371
|
+
alerts: UsageAlert[];
|
|
4372
|
+
}
|
|
4373
|
+
type MonthlyUsageHistoryResponseMonthsItem = {
|
|
4374
|
+
/** @nullable */
|
|
4375
|
+
overageCostUsd: number | null;
|
|
4376
|
+
operationsIncluded: number;
|
|
4377
|
+
operationsCount: number;
|
|
4378
|
+
month: string;
|
|
4379
|
+
};
|
|
4380
|
+
interface MonthlyUsageHistoryResponse {
|
|
4381
|
+
months: MonthlyUsageHistoryResponseMonthsItem[];
|
|
4382
|
+
}
|
|
4605
4383
|
interface ApiKeyResponse {
|
|
4606
4384
|
id: number;
|
|
4607
4385
|
createdAt: number;
|
|
@@ -9112,6 +8890,14 @@ Returns details for a specific backend wallet.
|
|
|
9112
8890
|
*/
|
|
9113
8891
|
declare const getBackendWallet: (id: string, options?: SecondParameter$j<typeof openfortApiClient<BackendWalletResponse>>) => Promise<BackendWalletResponse>;
|
|
9114
8892
|
/**
|
|
8893
|
+
* Update a backend wallet.
|
|
8894
|
+
|
|
8895
|
+
Currently supports upgrading an EOA backend wallet to a Delegated Account (EIP-7702).
|
|
8896
|
+
Provide the target accountType along with the required delegation parameters (chainId, implementationType).
|
|
8897
|
+
* @summary Update backend wallet.
|
|
8898
|
+
*/
|
|
8899
|
+
declare const updateBackendWallet: (id: string, updateBackendWalletRequest: UpdateBackendWalletRequest, options?: SecondParameter$j<typeof openfortApiClient<UpdateBackendWalletResponse>>) => Promise<UpdateBackendWalletResponse>;
|
|
8900
|
+
/**
|
|
9115
8901
|
* Delete a backend wallet.
|
|
9116
8902
|
|
|
9117
8903
|
Permanently deletes a backend wallet and its associated private key.
|
|
@@ -9184,6 +8970,7 @@ declare const rotateWalletSecret: (rotateWalletSecretRequest: RotateWalletSecret
|
|
|
9184
8970
|
type ListBackendWalletsResult = NonNullable<Awaited<ReturnType<typeof listBackendWallets>>>;
|
|
9185
8971
|
type CreateBackendWalletResult = NonNullable<Awaited<ReturnType<typeof createBackendWallet>>>;
|
|
9186
8972
|
type GetBackendWalletResult = NonNullable<Awaited<ReturnType<typeof getBackendWallet>>>;
|
|
8973
|
+
type UpdateBackendWalletResult = NonNullable<Awaited<ReturnType<typeof updateBackendWallet>>>;
|
|
9187
8974
|
type DeleteBackendWalletResult = NonNullable<Awaited<ReturnType<typeof deleteBackendWallet>>>;
|
|
9188
8975
|
type SignResult = NonNullable<Awaited<ReturnType<typeof sign>>>;
|
|
9189
8976
|
type ExportPrivateKeyResult = NonNullable<Awaited<ReturnType<typeof exportPrivateKey>>>;
|
|
@@ -9975,150 +9762,557 @@ This object represents the trigger where the subscription owner has subscribed t
|
|
|
9975
9762
|
*/
|
|
9976
9763
|
declare const createTrigger: (id: string, createTriggerRequest: CreateTriggerRequest, options?: SecondParameter$2<typeof openfortApiClient<TriggerResponse>>) => Promise<TriggerResponse>;
|
|
9977
9764
|
/**
|
|
9978
|
-
* Returns a trigger for the given id.
|
|
9765
|
+
* Returns a trigger for the given id.
|
|
9766
|
+
|
|
9767
|
+
This object represents the trigger where the subscription owner has subscribed to.
|
|
9768
|
+
* @summary Get trigger by id.
|
|
9769
|
+
*/
|
|
9770
|
+
declare const getTrigger: (id: string, triggerId: string, options?: SecondParameter$2<typeof openfortApiClient<TriggerResponse>>) => Promise<TriggerResponse>;
|
|
9771
|
+
/**
|
|
9772
|
+
* Deletes a trigger for the given subscription.
|
|
9773
|
+
|
|
9774
|
+
This object represents the trigger where the subscription owner has subscribed to.
|
|
9775
|
+
* @summary Delete trigger of subscription.
|
|
9776
|
+
*/
|
|
9777
|
+
declare const deleteTrigger: (id: string, triggerId: string, options?: SecondParameter$2<typeof openfortApiClient<TriggerDeleteResponse>>) => Promise<TriggerDeleteResponse>;
|
|
9778
|
+
/**
|
|
9779
|
+
* Test a trigger
|
|
9780
|
+
|
|
9781
|
+
Returns a trigger for the given id.
|
|
9782
|
+
* @summary Test trigger by id.
|
|
9783
|
+
*/
|
|
9784
|
+
declare const testTrigger: (options?: SecondParameter$2<typeof openfortApiClient<TestTrigger200>>) => Promise<TestTrigger200>;
|
|
9785
|
+
type GetSubscriptionsResult = NonNullable<Awaited<ReturnType<typeof getSubscriptions>>>;
|
|
9786
|
+
type CreateSubscriptionResult = NonNullable<Awaited<ReturnType<typeof createSubscription>>>;
|
|
9787
|
+
type ListSubscriptionLogsResult = NonNullable<Awaited<ReturnType<typeof listSubscriptionLogs>>>;
|
|
9788
|
+
type GetSubscriptionResult = NonNullable<Awaited<ReturnType<typeof getSubscription>>>;
|
|
9789
|
+
type DeleteSubscriptionResult = NonNullable<Awaited<ReturnType<typeof deleteSubscription>>>;
|
|
9790
|
+
type GetTriggersResult = NonNullable<Awaited<ReturnType<typeof getTriggers>>>;
|
|
9791
|
+
type CreateTriggerResult = NonNullable<Awaited<ReturnType<typeof createTrigger>>>;
|
|
9792
|
+
type GetTriggerResult = NonNullable<Awaited<ReturnType<typeof getTrigger>>>;
|
|
9793
|
+
type DeleteTriggerResult = NonNullable<Awaited<ReturnType<typeof deleteTrigger>>>;
|
|
9794
|
+
type TestTriggerResult = NonNullable<Awaited<ReturnType<typeof testTrigger>>>;
|
|
9795
|
+
|
|
9796
|
+
/**
|
|
9797
|
+
* Generated by orval v8.4.2 🍺
|
|
9798
|
+
* Do not edit manually.
|
|
9799
|
+
* Openfort API
|
|
9800
|
+
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
9801
|
+
* OpenAPI spec version: 1.0.0
|
|
9802
|
+
*/
|
|
9803
|
+
|
|
9804
|
+
type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
9805
|
+
/**
|
|
9806
|
+
* Returns a list of TransactionIntents.
|
|
9807
|
+
* @summary List transaction intents.
|
|
9808
|
+
*/
|
|
9809
|
+
declare const getTransactionIntents: (params?: GetTransactionIntentsParams, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentListResponse>>) => Promise<TransactionIntentListResponse>;
|
|
9810
|
+
/**
|
|
9811
|
+
* Creates a TransactionIntent.
|
|
9812
|
+
|
|
9813
|
+
A pending TransactionIntent has the `response` attribute as undefined.
|
|
9814
|
+
|
|
9815
|
+
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).
|
|
9816
|
+
|
|
9817
|
+
When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account.
|
|
9818
|
+
* @summary Create a transaction intent object.
|
|
9819
|
+
*/
|
|
9820
|
+
declare const createTransactionIntent: (createTransactionIntentRequest: CreateTransactionIntentRequest, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentResponse>>) => Promise<TransactionIntentResponse>;
|
|
9821
|
+
/**
|
|
9822
|
+
* Retrieves the details of a TransactionIntent that has previously been created.
|
|
9823
|
+
* @summary Get a transaction intent object.
|
|
9824
|
+
*/
|
|
9825
|
+
declare const getTransactionIntent: (id: string, params?: GetTransactionIntentParams, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentResponse>>) => Promise<TransactionIntentResponse>;
|
|
9826
|
+
/**
|
|
9827
|
+
* Estimate the gas cost of broadcasting a TransactionIntent.
|
|
9828
|
+
|
|
9829
|
+
This is a simulation, it does not send the transaction on-chain.
|
|
9830
|
+
|
|
9831
|
+
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.
|
|
9832
|
+
* @summary Estimate gas cost of creating a transaction
|
|
9833
|
+
*/
|
|
9834
|
+
declare const estimateTransactionIntentCost: (createTransactionIntentRequest: CreateTransactionIntentRequest, options?: SecondParameter$1<typeof openfortApiClient<EstimateTransactionIntentGasResult>>) => Promise<EstimateTransactionIntentGasResult>;
|
|
9835
|
+
/**
|
|
9836
|
+
* Broadcasts a signed TransactionIntent to the blockchain.
|
|
9837
|
+
|
|
9838
|
+
Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain.
|
|
9839
|
+
* @summary Send a signed transaction signableHash.
|
|
9840
|
+
*/
|
|
9841
|
+
declare const signature: (id: string, signatureRequest: SignatureRequest, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentResponse>>) => Promise<TransactionIntentResponse>;
|
|
9842
|
+
type GetTransactionIntentsResult = NonNullable<Awaited<ReturnType<typeof getTransactionIntents>>>;
|
|
9843
|
+
type CreateTransactionIntentResult = NonNullable<Awaited<ReturnType<typeof createTransactionIntent>>>;
|
|
9844
|
+
type GetTransactionIntentResult = NonNullable<Awaited<ReturnType<typeof getTransactionIntent>>>;
|
|
9845
|
+
type EstimateTransactionIntentCostResult = NonNullable<Awaited<ReturnType<typeof estimateTransactionIntentCost>>>;
|
|
9846
|
+
type SignatureResult = NonNullable<Awaited<ReturnType<typeof signature>>>;
|
|
9847
|
+
|
|
9848
|
+
/**
|
|
9849
|
+
* Generated by orval v8.4.2 🍺
|
|
9850
|
+
* Do not edit manually.
|
|
9851
|
+
* Openfort API
|
|
9852
|
+
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
9853
|
+
* OpenAPI spec version: 1.0.0
|
|
9854
|
+
*/
|
|
9855
|
+
|
|
9856
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
9857
|
+
/**
|
|
9858
|
+
* Retrieves an authenticated users.
|
|
9859
|
+
|
|
9860
|
+
Users have linked accounts and are authenticated with a provider.
|
|
9861
|
+
* @summary List authenticated users.
|
|
9862
|
+
*/
|
|
9863
|
+
declare const getAuthUsers: (params?: GetAuthUsersParams, options?: SecondParameter<typeof openfortApiClient<BaseEntityListResponseAuthUserResponse>>) => Promise<BaseEntityListResponseAuthUserResponse>;
|
|
9864
|
+
/**
|
|
9865
|
+
* Retrieves an authenticated user.
|
|
9866
|
+
|
|
9867
|
+
Users have linked accounts and are authenticated with a provider.
|
|
9868
|
+
* @summary Get authenticated user by id.
|
|
9869
|
+
*/
|
|
9870
|
+
declare const getAuthUser: (id: string, options?: SecondParameter<typeof openfortApiClient<AuthUserResponse>>) => Promise<AuthUserResponse>;
|
|
9871
|
+
/**
|
|
9872
|
+
* It will delete all linked accounts the user is authenticated with.
|
|
9873
|
+
If the user has a linked embedded signer, it will be deleted as well.
|
|
9874
|
+
* @summary Delete user by id.
|
|
9875
|
+
*/
|
|
9876
|
+
declare const deleteUser: (id: string, options?: SecondParameter<typeof openfortApiClient<BaseDeleteEntityResponseEntityTypePLAYER>>) => Promise<BaseDeleteEntityResponseEntityTypePLAYER>;
|
|
9877
|
+
/**
|
|
9878
|
+
* Retrieves the wallet associated with an authenticated user.
|
|
9879
|
+
* @summary Get wallet for user.
|
|
9880
|
+
*/
|
|
9881
|
+
declare const getUserWallet: (id: string, options?: SecondParameter<typeof openfortApiClient<BaseEntityResponseEntityTypeWALLET>>) => Promise<BaseEntityResponseEntityTypeWALLET>;
|
|
9882
|
+
/**
|
|
9883
|
+
* Pre-generate a user with an embedded account before they authenticate.
|
|
9884
|
+
Creates a user record and an embedded account using the provided SSS key shares.
|
|
9885
|
+
When the user later authenticates (via email, OAuth, third-party auth, etc.)
|
|
9886
|
+
with the same identifier, they will be linked to this pre-generated account.
|
|
9979
9887
|
|
|
9980
|
-
|
|
9981
|
-
|
|
9888
|
+
You can pregenerate using either:
|
|
9889
|
+
- `email`: User will be linked when they authenticate with the same email
|
|
9890
|
+
- `thirdPartyUserId` + `thirdPartyProvider`: User will be linked when they authenticate via the same third-party provider
|
|
9891
|
+
* @summary Pre-generate a user with an embedded account.
|
|
9982
9892
|
*/
|
|
9983
|
-
declare const
|
|
9893
|
+
declare const pregenerateUserV2: (pregenerateUserRequestV2: PregenerateUserRequestV2, options?: SecondParameter<typeof openfortApiClient<PregenerateAccountResponse>>) => Promise<PregenerateAccountResponse>;
|
|
9984
9894
|
/**
|
|
9985
|
-
*
|
|
9986
|
-
|
|
9987
|
-
This object represents the trigger where the subscription owner has subscribed to.
|
|
9988
|
-
* @summary Delete trigger of subscription.
|
|
9895
|
+
* @summary Get user information.
|
|
9989
9896
|
*/
|
|
9990
|
-
declare const
|
|
9897
|
+
declare const meV2: (options?: SecondParameter<typeof openfortApiClient<AuthUserResponse>>) => Promise<AuthUserResponse>;
|
|
9991
9898
|
/**
|
|
9992
|
-
*
|
|
9993
|
-
|
|
9994
|
-
Returns a trigger for the given id.
|
|
9995
|
-
* @summary Test trigger by id.
|
|
9899
|
+
* @summary Verify oauth token of a third party auth provider.
|
|
9996
9900
|
*/
|
|
9997
|
-
declare const
|
|
9998
|
-
type
|
|
9999
|
-
type
|
|
10000
|
-
type
|
|
10001
|
-
type
|
|
10002
|
-
type
|
|
10003
|
-
type
|
|
10004
|
-
type
|
|
10005
|
-
type GetTriggerResult = NonNullable<Awaited<ReturnType<typeof getTrigger>>>;
|
|
10006
|
-
type DeleteTriggerResult = NonNullable<Awaited<ReturnType<typeof deleteTrigger>>>;
|
|
10007
|
-
type TestTriggerResult = NonNullable<Awaited<ReturnType<typeof testTrigger>>>;
|
|
9901
|
+
declare const thirdPartyV2: (thirdPartyOAuthRequest: ThirdPartyOAuthRequest, options?: SecondParameter<typeof openfortApiClient<AuthUserResponse>>) => Promise<AuthUserResponse>;
|
|
9902
|
+
type GetAuthUsersResult = NonNullable<Awaited<ReturnType<typeof getAuthUsers>>>;
|
|
9903
|
+
type GetAuthUserResult = NonNullable<Awaited<ReturnType<typeof getAuthUser>>>;
|
|
9904
|
+
type DeleteUserResult = NonNullable<Awaited<ReturnType<typeof deleteUser>>>;
|
|
9905
|
+
type GetUserWalletResult = NonNullable<Awaited<ReturnType<typeof getUserWallet>>>;
|
|
9906
|
+
type PregenerateUserV2Result = NonNullable<Awaited<ReturnType<typeof pregenerateUserV2>>>;
|
|
9907
|
+
type MeV2Result = NonNullable<Awaited<ReturnType<typeof meV2>>>;
|
|
9908
|
+
type ThirdPartyV2Result = NonNullable<Awaited<ReturnType<typeof thirdPartyV2>>>;
|
|
10008
9909
|
|
|
10009
9910
|
/**
|
|
10010
|
-
*
|
|
10011
|
-
*
|
|
10012
|
-
* Openfort API
|
|
10013
|
-
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
10014
|
-
* OpenAPI spec version: 1.0.0
|
|
9911
|
+
* @module Wallets
|
|
9912
|
+
* Shared types for wallet functionality
|
|
10015
9913
|
*/
|
|
10016
|
-
|
|
10017
|
-
type SecondParameter$1<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
10018
|
-
/**
|
|
10019
|
-
* Returns a list of TransactionIntents.
|
|
10020
|
-
* @summary List transaction intents.
|
|
10021
|
-
*/
|
|
10022
|
-
declare const getTransactionIntents: (params?: GetTransactionIntentsParams, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentListResponse>>) => Promise<TransactionIntentListResponse>;
|
|
10023
9914
|
/**
|
|
10024
|
-
*
|
|
9915
|
+
* Result of listing wallet accounts
|
|
9916
|
+
*/
|
|
9917
|
+
interface ListAccountsResult<T> {
|
|
9918
|
+
/** Array of accounts */
|
|
9919
|
+
accounts: T[];
|
|
9920
|
+
/** Token for fetching the next page */
|
|
9921
|
+
nextPageToken?: string;
|
|
9922
|
+
/** Total count of accounts */
|
|
9923
|
+
total?: number;
|
|
9924
|
+
}
|
|
10025
9925
|
|
|
10026
|
-
|
|
9926
|
+
/**
|
|
9927
|
+
* @module Wallets/EVM/EvmClient
|
|
9928
|
+
* Main client for EVM wallet operations
|
|
9929
|
+
*/
|
|
10027
9930
|
|
|
10028
|
-
|
|
9931
|
+
/**
|
|
9932
|
+
* Options for creating an EVM wallet client
|
|
9933
|
+
*/
|
|
9934
|
+
interface EvmClientOptions {
|
|
9935
|
+
/** Optional custom API base URL */
|
|
9936
|
+
basePath?: string;
|
|
9937
|
+
/** Optional wallet secret for X-Wallet-Auth header */
|
|
9938
|
+
walletSecret?: string;
|
|
9939
|
+
}
|
|
9940
|
+
/**
|
|
9941
|
+
* Client for managing EVM wallets.
|
|
9942
|
+
* Provides methods for creating, retrieving, and managing server-side EVM accounts.
|
|
9943
|
+
*/
|
|
9944
|
+
declare class EvmClient {
|
|
9945
|
+
static type: string;
|
|
9946
|
+
/**
|
|
9947
|
+
* Creates a new EVM wallet client.
|
|
9948
|
+
*
|
|
9949
|
+
* Note: The API client is configured globally via the main Openfort class.
|
|
9950
|
+
* This client just provides wallet-specific methods.
|
|
9951
|
+
*
|
|
9952
|
+
* @param _accessToken - Openfort API key (passed for backwards compatibility)
|
|
9953
|
+
* @param _options - Optional client configuration (for backwards compatibility)
|
|
9954
|
+
*/
|
|
9955
|
+
constructor(_accessToken?: string, _options?: string | EvmClientOptions);
|
|
9956
|
+
/**
|
|
9957
|
+
* Creates a new EVM backend wallet.
|
|
9958
|
+
*
|
|
9959
|
+
* @param options - Account creation options
|
|
9960
|
+
* @returns The created EVM account
|
|
9961
|
+
*
|
|
9962
|
+
* @example
|
|
9963
|
+
* ```typescript
|
|
9964
|
+
* // Create an EVM wallet
|
|
9965
|
+
* const account = await openfort.evm.createAccount();
|
|
9966
|
+
*
|
|
9967
|
+
* // Create with a specific wallet
|
|
9968
|
+
* const account = await openfort.evm.createAccount({
|
|
9969
|
+
* wallet: 'pla_...',
|
|
9970
|
+
* });
|
|
9971
|
+
* ```
|
|
9972
|
+
*/
|
|
9973
|
+
createAccount(options?: CreateEvmAccountOptions): Promise<EvmAccount>;
|
|
9974
|
+
/**
|
|
9975
|
+
* Retrieves an existing EVM account.
|
|
9976
|
+
*
|
|
9977
|
+
* @param options - Account retrieval options (id or address)
|
|
9978
|
+
* @returns The EVM account
|
|
9979
|
+
*
|
|
9980
|
+
* @example
|
|
9981
|
+
* ```typescript
|
|
9982
|
+
* const account = await openfort.evm.getAccount({
|
|
9983
|
+
* id: 'acc_...',
|
|
9984
|
+
* });
|
|
9985
|
+
*
|
|
9986
|
+
* // Or by address (requires listing and filtering)
|
|
9987
|
+
* const account = await openfort.evm.getAccount({
|
|
9988
|
+
* address: '0x...',
|
|
9989
|
+
* });
|
|
9990
|
+
* ```
|
|
9991
|
+
*/
|
|
9992
|
+
getAccount(options: GetEvmAccountOptions): Promise<EvmAccount>;
|
|
9993
|
+
/**
|
|
9994
|
+
* Lists all EVM backend wallets.
|
|
9995
|
+
*
|
|
9996
|
+
* @param options - List options (limit, skip, filters)
|
|
9997
|
+
* @returns List of EVM accounts
|
|
9998
|
+
*
|
|
9999
|
+
* @example
|
|
10000
|
+
* ```typescript
|
|
10001
|
+
* const { accounts } = await openfort.evm.listAccounts({
|
|
10002
|
+
* limit: 10,
|
|
10003
|
+
* });
|
|
10004
|
+
* ```
|
|
10005
|
+
*/
|
|
10006
|
+
listAccounts(options?: ListEvmAccountsOptions): Promise<ListAccountsResult<EvmAccount>>;
|
|
10007
|
+
/**
|
|
10008
|
+
* Imports an EVM account using a private key.
|
|
10009
|
+
* The private key is encrypted using RSA-OAEP with SHA-256.
|
|
10010
|
+
*
|
|
10011
|
+
* @param options - Import options including the private key
|
|
10012
|
+
* @returns The imported EVM account
|
|
10013
|
+
*
|
|
10014
|
+
* @example
|
|
10015
|
+
* ```typescript
|
|
10016
|
+
* const account = await openfort.evm.importAccount({
|
|
10017
|
+
* privateKey: '0x...',
|
|
10018
|
+
* });
|
|
10019
|
+
* ```
|
|
10020
|
+
*/
|
|
10021
|
+
importAccount(options: ImportEvmAccountOptions): Promise<EvmAccount>;
|
|
10022
|
+
/**
|
|
10023
|
+
* Exports an EVM account's private key.
|
|
10024
|
+
* Uses RSA-OAEP with SHA-256 for E2E encryption.
|
|
10025
|
+
*
|
|
10026
|
+
* @param options - Export options with account ID
|
|
10027
|
+
* @returns The private key as a hex string (without 0x prefix)
|
|
10028
|
+
*
|
|
10029
|
+
* @example
|
|
10030
|
+
* ```typescript
|
|
10031
|
+
* const privateKey = await openfort.evm.exportAccount({
|
|
10032
|
+
* id: 'acc_...',
|
|
10033
|
+
* });
|
|
10034
|
+
* // Returns: 'a1b2c3d4...' (64-character hex string)
|
|
10035
|
+
* ```
|
|
10036
|
+
*/
|
|
10037
|
+
exportAccount(options: ExportEvmAccountOptions): Promise<string>;
|
|
10038
|
+
/**
|
|
10039
|
+
* Signs data (transaction or message hash) using the backend wallet.
|
|
10040
|
+
*
|
|
10041
|
+
* @param options - Sign options with account ID and data
|
|
10042
|
+
* @returns The signature as a hex string
|
|
10043
|
+
*
|
|
10044
|
+
* @example
|
|
10045
|
+
* ```typescript
|
|
10046
|
+
* const signature = await openfort.evm.signData({
|
|
10047
|
+
* id: 'acc_...',
|
|
10048
|
+
* data: '0x...', // hex-encoded transaction or message hash
|
|
10049
|
+
* });
|
|
10050
|
+
* ```
|
|
10051
|
+
*/
|
|
10052
|
+
signData(options: SignDataOptions): Promise<string>;
|
|
10053
|
+
/**
|
|
10054
|
+
* Updates an EVM backend wallet.
|
|
10055
|
+
*
|
|
10056
|
+
* Currently supports upgrading an EVM EOA to a Delegated Account (EIP-7702).
|
|
10057
|
+
*
|
|
10058
|
+
* @param options - Update options including account ID and delegation parameters
|
|
10059
|
+
* @returns The updated backend wallet response
|
|
10060
|
+
*
|
|
10061
|
+
* @example
|
|
10062
|
+
* ```typescript
|
|
10063
|
+
* const updated = await openfort.accounts.evm.backend.update({
|
|
10064
|
+
* id: 'acc_...',
|
|
10065
|
+
* accountType: 'Delegated Account',
|
|
10066
|
+
* chain: { chainType: 'EVM', chainId: 8453 },
|
|
10067
|
+
* implementationType: 'Calibur',
|
|
10068
|
+
* });
|
|
10069
|
+
* ```
|
|
10070
|
+
*/
|
|
10071
|
+
update(options: UpdateEvmAccountOptions): Promise<UpdateBackendWalletResponse>;
|
|
10072
|
+
}
|
|
10029
10073
|
|
|
10030
|
-
When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account.
|
|
10031
|
-
* @summary Create a transaction intent object.
|
|
10032
|
-
*/
|
|
10033
|
-
declare const createTransactionIntent: (createTransactionIntentRequest: CreateTransactionIntentRequest, options?: SecondParameter$1<typeof openfortApiClient<TransactionIntentResponse>>) => Promise<TransactionIntentResponse>;
|
|
10034
10074
|
/**
|
|
10035
|
-
*
|
|
10036
|
-
*
|
|
10037
|
-
*/
|
|
10038
|
-
|
|
10075
|
+
* @module Wallets/Solana/Types
|
|
10076
|
+
* Solana-specific types for wallet operations
|
|
10077
|
+
*/
|
|
10078
|
+
/**
|
|
10079
|
+
* Base Solana account with signing capabilities
|
|
10080
|
+
*/
|
|
10081
|
+
interface SolanaAccountBase {
|
|
10082
|
+
/** The account's unique identifier */
|
|
10083
|
+
id: string;
|
|
10084
|
+
/** The account's address (base58 encoded) */
|
|
10085
|
+
address: string;
|
|
10086
|
+
/** Account type identifier */
|
|
10087
|
+
custody: 'Developer';
|
|
10088
|
+
}
|
|
10089
|
+
/**
|
|
10090
|
+
* Solana signing methods interface
|
|
10091
|
+
*/
|
|
10092
|
+
interface SolanaSigningMethods {
|
|
10093
|
+
/**
|
|
10094
|
+
* Signs a message
|
|
10095
|
+
* @param parameters - Object containing the message to sign
|
|
10096
|
+
*/
|
|
10097
|
+
signMessage(parameters: {
|
|
10098
|
+
message: string;
|
|
10099
|
+
}): Promise<string>;
|
|
10100
|
+
/**
|
|
10101
|
+
* Signs a transaction
|
|
10102
|
+
* @param parameters - Object containing the base64-encoded transaction
|
|
10103
|
+
*/
|
|
10104
|
+
signTransaction(parameters: {
|
|
10105
|
+
transaction: string;
|
|
10106
|
+
}): Promise<string>;
|
|
10107
|
+
}
|
|
10108
|
+
/**
|
|
10109
|
+
* Full Solana server account with all signing capabilities
|
|
10110
|
+
*/
|
|
10111
|
+
type SolanaAccount = SolanaAccountBase & SolanaSigningMethods;
|
|
10112
|
+
/**
|
|
10113
|
+
* Options for creating a Solana account
|
|
10114
|
+
*/
|
|
10115
|
+
interface CreateSolanaAccountOptions {
|
|
10116
|
+
/** Wallet ID (starts with pla_). Optional - associates the wallet with a player. */
|
|
10117
|
+
wallet?: string;
|
|
10118
|
+
/** Idempotency key */
|
|
10119
|
+
idempotencyKey?: string;
|
|
10120
|
+
}
|
|
10121
|
+
/**
|
|
10122
|
+
* Options for getting a Solana account
|
|
10123
|
+
*/
|
|
10124
|
+
interface GetSolanaAccountOptions {
|
|
10125
|
+
/** Account address (base58 encoded) */
|
|
10126
|
+
address?: string;
|
|
10127
|
+
/** Account ID */
|
|
10128
|
+
id?: string;
|
|
10129
|
+
}
|
|
10039
10130
|
/**
|
|
10040
|
-
*
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10131
|
+
* Options for listing Solana accounts
|
|
10132
|
+
*/
|
|
10133
|
+
interface ListSolanaAccountsOptions {
|
|
10134
|
+
/** Maximum number of accounts to return (default: 10, max: 100) */
|
|
10135
|
+
limit?: number;
|
|
10136
|
+
/** Number of accounts to skip (for pagination) */
|
|
10137
|
+
skip?: number;
|
|
10138
|
+
}
|
|
10048
10139
|
/**
|
|
10049
|
-
*
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
type GetTransactionIntentsResult = NonNullable<Awaited<ReturnType<typeof getTransactionIntents>>>;
|
|
10056
|
-
type CreateTransactionIntentResult = NonNullable<Awaited<ReturnType<typeof createTransactionIntent>>>;
|
|
10057
|
-
type GetTransactionIntentResult = NonNullable<Awaited<ReturnType<typeof getTransactionIntent>>>;
|
|
10058
|
-
type EstimateTransactionIntentCostResult = NonNullable<Awaited<ReturnType<typeof estimateTransactionIntentCost>>>;
|
|
10059
|
-
type SignatureResult = NonNullable<Awaited<ReturnType<typeof signature>>>;
|
|
10060
|
-
|
|
10140
|
+
* Options for importing a Solana account
|
|
10141
|
+
*/
|
|
10142
|
+
interface ImportSolanaAccountOptions {
|
|
10143
|
+
/** Private key as base58 string or 64-byte hex string */
|
|
10144
|
+
privateKey: string;
|
|
10145
|
+
}
|
|
10061
10146
|
/**
|
|
10062
|
-
*
|
|
10063
|
-
* Do not edit manually.
|
|
10064
|
-
* Openfort API
|
|
10065
|
-
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
10066
|
-
* OpenAPI spec version: 1.0.0
|
|
10147
|
+
* Options for exporting a Solana account
|
|
10067
10148
|
*/
|
|
10068
|
-
|
|
10069
|
-
|
|
10149
|
+
interface ExportSolanaAccountOptions {
|
|
10150
|
+
/** Account ID (starts with acc_) */
|
|
10151
|
+
id: string;
|
|
10152
|
+
}
|
|
10070
10153
|
/**
|
|
10071
|
-
*
|
|
10154
|
+
* Options for signing a message
|
|
10155
|
+
*/
|
|
10156
|
+
interface SignMessageOptions {
|
|
10157
|
+
/** Account ID for API calls */
|
|
10158
|
+
accountId: string;
|
|
10159
|
+
/** Message to sign (will be UTF-8 encoded) */
|
|
10160
|
+
message: string;
|
|
10161
|
+
}
|
|
10162
|
+
/**
|
|
10163
|
+
* Options for signing a transaction
|
|
10164
|
+
*/
|
|
10165
|
+
interface SignTransactionOptions {
|
|
10166
|
+
/** Account ID for API calls */
|
|
10167
|
+
accountId: string;
|
|
10168
|
+
/** Base64-encoded serialized transaction */
|
|
10169
|
+
transaction: string;
|
|
10170
|
+
}
|
|
10072
10171
|
|
|
10073
|
-
Users have linked accounts and are authenticated with a provider.
|
|
10074
|
-
* @summary List authenticated users.
|
|
10075
|
-
*/
|
|
10076
|
-
declare const getAuthUsers: (params?: GetAuthUsersParams, options?: SecondParameter<typeof openfortApiClient<BaseEntityListResponseAuthUserResponse>>) => Promise<BaseEntityListResponseAuthUserResponse>;
|
|
10077
10172
|
/**
|
|
10078
|
-
*
|
|
10173
|
+
* @module Wallets/Solana/Accounts/SolanaAccount
|
|
10174
|
+
* Factory function for creating Solana account objects with bound action methods
|
|
10175
|
+
*/
|
|
10079
10176
|
|
|
10080
|
-
Users have linked accounts and are authenticated with a provider.
|
|
10081
|
-
* @summary Get authenticated user by id.
|
|
10082
|
-
*/
|
|
10083
|
-
declare const getAuthUser: (id: string, options?: SecondParameter<typeof openfortApiClient<AuthUserResponse>>) => Promise<AuthUserResponse>;
|
|
10084
10177
|
/**
|
|
10085
|
-
*
|
|
10086
|
-
|
|
10087
|
-
|
|
10088
|
-
*/
|
|
10089
|
-
|
|
10178
|
+
* Raw account data from API response
|
|
10179
|
+
*/
|
|
10180
|
+
interface SolanaAccountData {
|
|
10181
|
+
/** Account unique ID */
|
|
10182
|
+
id: string;
|
|
10183
|
+
/** Account address (base58 encoded) */
|
|
10184
|
+
address: string;
|
|
10185
|
+
}
|
|
10090
10186
|
/**
|
|
10091
|
-
*
|
|
10092
|
-
*
|
|
10093
|
-
|
|
10094
|
-
|
|
10187
|
+
* Creates a Solana account object with bound action methods.
|
|
10188
|
+
*
|
|
10189
|
+
* @param data - Raw account data from API
|
|
10190
|
+
* @returns Solana account object with signing methods
|
|
10191
|
+
*/
|
|
10192
|
+
declare function toSolanaAccount(data: SolanaAccountData): SolanaAccount;
|
|
10193
|
+
|
|
10095
10194
|
/**
|
|
10096
|
-
*
|
|
10097
|
-
|
|
10098
|
-
|
|
10099
|
-
with the same identifier, they will be linked to this pre-generated account.
|
|
10195
|
+
* @module Wallets/Solana/SolanaClient
|
|
10196
|
+
* Main client for Solana wallet operations
|
|
10197
|
+
*/
|
|
10100
10198
|
|
|
10101
|
-
You can pregenerate using either:
|
|
10102
|
-
- `email`: User will be linked when they authenticate with the same email
|
|
10103
|
-
- `thirdPartyUserId` + `thirdPartyProvider`: User will be linked when they authenticate via the same third-party provider
|
|
10104
|
-
* @summary Pre-generate a user with an embedded account.
|
|
10105
|
-
*/
|
|
10106
|
-
declare const pregenerateUserV2: (pregenerateUserRequestV2: PregenerateUserRequestV2, options?: SecondParameter<typeof openfortApiClient<PregenerateAccountResponse>>) => Promise<PregenerateAccountResponse>;
|
|
10107
10199
|
/**
|
|
10108
|
-
*
|
|
10109
|
-
*/
|
|
10110
|
-
|
|
10200
|
+
* Options for creating a Solana wallet client
|
|
10201
|
+
*/
|
|
10202
|
+
interface SolanaClientOptions {
|
|
10203
|
+
/** Optional custom API base URL */
|
|
10204
|
+
basePath?: string;
|
|
10205
|
+
/** Optional wallet secret for X-Wallet-Auth header */
|
|
10206
|
+
walletSecret?: string;
|
|
10207
|
+
}
|
|
10111
10208
|
/**
|
|
10112
|
-
*
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
type
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10209
|
+
* Client for managing Solana wallets.
|
|
10210
|
+
* Provides methods for creating, retrieving, and managing server-side Solana accounts.
|
|
10211
|
+
*/
|
|
10212
|
+
declare class SolanaClient {
|
|
10213
|
+
static type: string;
|
|
10214
|
+
/**
|
|
10215
|
+
* Creates a new Solana wallet client.
|
|
10216
|
+
*
|
|
10217
|
+
* Note: The API client is configured globally via the main Openfort class.
|
|
10218
|
+
* This client just provides wallet-specific methods.
|
|
10219
|
+
*
|
|
10220
|
+
* @param _accessToken - Openfort API key (passed for backwards compatibility)
|
|
10221
|
+
* @param _options - Optional client configuration (for backwards compatibility)
|
|
10222
|
+
*/
|
|
10223
|
+
constructor(_accessToken?: string, _options?: string | SolanaClientOptions);
|
|
10224
|
+
/**
|
|
10225
|
+
* Creates a new Solana backend wallet.
|
|
10226
|
+
*
|
|
10227
|
+
* @param options - Account creation options
|
|
10228
|
+
* @returns The created Solana account
|
|
10229
|
+
*
|
|
10230
|
+
* @example
|
|
10231
|
+
* ```typescript
|
|
10232
|
+
* // Create a Solana wallet
|
|
10233
|
+
* const account = await openfort.solana.createAccount();
|
|
10234
|
+
*
|
|
10235
|
+
* // Create with a specific wallet/player
|
|
10236
|
+
* const account = await openfort.solana.createAccount({
|
|
10237
|
+
* wallet: 'pla_...',
|
|
10238
|
+
* });
|
|
10239
|
+
* ```
|
|
10240
|
+
*/
|
|
10241
|
+
createAccount(options?: CreateSolanaAccountOptions): Promise<SolanaAccount>;
|
|
10242
|
+
/**
|
|
10243
|
+
* Retrieves an existing Solana account.
|
|
10244
|
+
*
|
|
10245
|
+
* @param options - Account retrieval options (id or address)
|
|
10246
|
+
* @returns The Solana account
|
|
10247
|
+
*
|
|
10248
|
+
* @example
|
|
10249
|
+
* ```typescript
|
|
10250
|
+
* const account = await openfort.solana.getAccount({
|
|
10251
|
+
* id: 'acc_...',
|
|
10252
|
+
* });
|
|
10253
|
+
*
|
|
10254
|
+
* // Or by address (requires listing and filtering)
|
|
10255
|
+
* const account = await openfort.solana.getAccount({
|
|
10256
|
+
* address: 'So1ana...',
|
|
10257
|
+
* });
|
|
10258
|
+
* ```
|
|
10259
|
+
*/
|
|
10260
|
+
getAccount(options: GetSolanaAccountOptions): Promise<SolanaAccount>;
|
|
10261
|
+
/**
|
|
10262
|
+
* Lists all Solana backend wallets.
|
|
10263
|
+
*
|
|
10264
|
+
* @param options - List options (limit, skip, filters)
|
|
10265
|
+
* @returns List of Solana accounts
|
|
10266
|
+
*
|
|
10267
|
+
* @example
|
|
10268
|
+
* ```typescript
|
|
10269
|
+
* const { accounts } = await openfort.solana.listAccounts({
|
|
10270
|
+
* limit: 10,
|
|
10271
|
+
* });
|
|
10272
|
+
* ```
|
|
10273
|
+
*/
|
|
10274
|
+
listAccounts(options?: ListSolanaAccountsOptions): Promise<ListAccountsResult<SolanaAccount>>;
|
|
10275
|
+
/**
|
|
10276
|
+
* Imports a Solana account using a private key.
|
|
10277
|
+
* The private key is encrypted using RSA-OAEP with SHA-256.
|
|
10278
|
+
*
|
|
10279
|
+
* @param options - Import options including the private key
|
|
10280
|
+
* @returns The imported Solana account
|
|
10281
|
+
*
|
|
10282
|
+
* @example
|
|
10283
|
+
* ```typescript
|
|
10284
|
+
* const account = await openfort.solana.importAccount({
|
|
10285
|
+
* privateKey: '5K...', // base58 or hex format
|
|
10286
|
+
* // base58 or hex format
|
|
10287
|
+
* });
|
|
10288
|
+
* ```
|
|
10289
|
+
*/
|
|
10290
|
+
importAccount(options: ImportSolanaAccountOptions): Promise<SolanaAccount>;
|
|
10291
|
+
/**
|
|
10292
|
+
* Exports a Solana account's private key.
|
|
10293
|
+
* Uses RSA-OAEP with SHA-256 for E2E encryption.
|
|
10294
|
+
*
|
|
10295
|
+
* @param options - Export options with account ID
|
|
10296
|
+
* @returns The private key as a base58 encoded string (standard Solana format)
|
|
10297
|
+
*
|
|
10298
|
+
* @example
|
|
10299
|
+
* ```typescript
|
|
10300
|
+
* const privateKey = await openfort.solana.exportAccount({
|
|
10301
|
+
* id: 'acc_...',
|
|
10302
|
+
* });
|
|
10303
|
+
* // Returns: '5Kd3...' (base58 encoded)
|
|
10304
|
+
* ```
|
|
10305
|
+
*/
|
|
10306
|
+
exportAccount(options: ExportSolanaAccountOptions): Promise<string>;
|
|
10307
|
+
/**
|
|
10308
|
+
* Signs data using the backend wallet.
|
|
10309
|
+
*
|
|
10310
|
+
* @param accountId - The account ID
|
|
10311
|
+
* @param data - Data to sign (hex-encoded)
|
|
10312
|
+
* @returns The signature
|
|
10313
|
+
*/
|
|
10314
|
+
signData(accountId: string, data: string): Promise<string>;
|
|
10315
|
+
}
|
|
10122
10316
|
|
|
10123
10317
|
/**
|
|
10124
10318
|
* Constants for the Openfort SDK.
|
|
@@ -15376,6 +15570,8 @@ declare class Openfort {
|
|
|
15376
15570
|
import: (options: ImportEvmAccountOptions) => Promise<EvmAccount>;
|
|
15377
15571
|
/** Export private key (with E2E encryption) */
|
|
15378
15572
|
export: (options: ExportEvmAccountOptions) => Promise<string>;
|
|
15573
|
+
/** Update EOA to delegated account */
|
|
15574
|
+
update: (options: UpdateEvmAccountOptions) => Promise<UpdateBackendWalletResponse>;
|
|
15379
15575
|
};
|
|
15380
15576
|
/** Embedded wallet operations (User custody) */
|
|
15381
15577
|
embedded: {
|
|
@@ -15767,4 +15963,4 @@ declare class Openfort {
|
|
|
15767
15963
|
createEncryptionSession(shieldApiKey: string, shieldApiSecret: string, encryptionShare: string, shieldApiBaseUrl?: string): Promise<string>;
|
|
15768
15964
|
}
|
|
15769
15965
|
|
|
15770
|
-
export { APIError, type APIErrorType, APITopic, APITopicBALANCECONTRACT, APITopicBALANCEDEVACCOUNT, APITopicBALANCEPROJECT, APITopicTRANSACTIONSUCCESSFUL, APITriggerType, type Abi, type AbiType, type AccelbyteOAuthConfig, type Account$1 as Account, type AccountAbstractionV6Details, type AccountAbstractionV8Details, type AccountAbstractionV9Details, type AccountEventResponse, type AccountListQueries, type AccountListQueriesV2, AccountListQueriesV2AccountType, AccountListQueriesV2ChainType, AccountListQueriesV2Custody, type AccountListResponse, type AccountListV2Response, AccountNotFoundError, type AccountPolicyRuleResponse, type AccountResponse, AccountResponseExpandable, type AccountV2Response, AccountV2ResponseCustody, type ActionRequiredResponse, Actions, type AllowedOriginsRequest, type AllowedOriginsResponse, type ApiKeyResponse, ApiKeyType, type AppleOAuthConfig, type AuthConfig, type AuthMigrationListResponse, type AuthMigrationResponse, AuthMigrationStatus, type AuthPlayerListQueries, type AuthPlayerListResponse, type AuthPlayerResponse, type AuthPlayerResponseWithRecoveryShare, AuthProvider, type AuthProviderListResponse, AuthProviderResponse, AuthProviderResponseV2, type AuthProviderWithTypeResponse, type AuthResponse, type AuthSessionResponse, type AuthUserResponse, type AuthenticateOAuthRequest, AuthenticateOAuthRequestProvider, type AuthenticateSIWEResult, type AuthenticatedPlayerResponse, AuthenticationType, type AuthorizePlayerRequest, type AuthorizeResult, type AuthorizedApp, type AuthorizedAppsResponse, type AuthorizedAppsResponseAuthorizedAppsItem, type AuthorizedNetwork, type AuthorizedNetworksResponse, type AuthorizedNetworksResponseAuthorizedNetworksItem, type AuthorizedOriginsResponse, type BackendWalletListQueries, BackendWalletListQueriesChainType, type BackendWalletListResponse, BackendWalletListResponseObject, type BackendWalletResponse, BackendWalletResponseChainType, BackendWalletResponseCustody, BackendWalletResponseObject, type BalanceEventResponse, type BalanceResponse, type BaseDeleteEntityResponseEntityTypePLAYER, type BaseEntityListResponseAccountV2Response, type BaseEntityListResponseAuthUserResponse, type BaseEntityListResponseDeviceResponse, type BaseEntityListResponseEmailSampleResponse, type BaseEntityListResponseLogResponse, type BaseEntityListResponseTriggerResponse, type BaseEntityResponseEntityTypeWALLET, BasicAuthProvider, BasicAuthProviderEMAIL, BasicAuthProviderGUEST, BasicAuthProviderPHONE, BasicAuthProviderWEB3, type BetterAuthConfig, type BillingSubscriptionResponse, type BillingSubscriptionResponsePlan, type CallbackOAuthParams, type CallbackOAuthResult, type CancelTransferAccountOwnershipResult, type ChargeCustomTokenPolicyStrategy, type CheckoutRequest, type CheckoutResponse, type CheckoutSubscriptionRequest, type ChildProjectListResponse, type ChildProjectResponse, type CodeChallenge, CodeChallengeMethod, type CodeChallengeVerify, type ContractDeleteResponse, type ContractEventResponse, type ContractListQueries, type ContractListResponse, type ContractPolicyRuleResponse, type ContractReadQueries, type ContractReadResponse, type ContractResponse, type CountPerIntervalLimitPolicyRuleResponse, type CreateAccountRequest, type CreateAccountRequestV2, CreateAccountRequestV2AccountType, CreateAccountRequestV2ChainType, type CreateAccountResult, type CreateAccountV2Result, type CreateAuthPlayerRequest, type CreateAuthPlayerResult, type CreateBackendWalletRequest, CreateBackendWalletRequestChainType, type CreateBackendWalletResponse, CreateBackendWalletResponseChainType, CreateBackendWalletResponseObject, type CreateBackendWalletResult, type CreateContractRequest, type CreateContractResult, type CreateDeveloperAccountCreateRequest, type CreateDeveloperAccountResult, type CreateDeviceRequest, type CreateDeviceResponse, type CreateEcosystemConfigurationRequest, type CreateEmailSampleRequest, type CreateEmailSampleResponse, type CreateEmbeddedRequest, CreateEmbeddedRequestAccountType, CreateEmbeddedRequestChainType, type CreateEventRequest, type CreateEventResponse, type CreateEventResult, type CreateEvmAccountOptions, type CreateFeeSponsorshipRequest, type CreateFeeSponsorshipResult, type CreateForwarderContractRequest, type CreateForwarderContractResponse, type CreateForwarderContractResult, type CreateGasPolicyLegacyResult, type CreateGasPolicyRuleLegacyResult, type CreateGasPolicyWithdrawalLegacyResult, type CreateMigrationRequest, type CreateOAuthConfigResult, type CreateOnrampSessionResult, type CreatePaymasterRequest, type CreatePaymasterRequestContext, type CreatePaymasterResponse, type CreatePaymasterResult, type CreatePlayerResult, type CreatePolicyBody, CreatePolicyBodySchema, type CreatePolicyRequest, type CreatePolicyRuleRequest, type CreatePolicyV2Request, CreatePolicyV2RequestScope, type CreatePolicyV2Result, type CreatePolicyV2RuleRequest, CreatePolicyV2RuleRequestAction, type CreateProjectApiKeyRequest, type CreateProjectRequest, type CreateResult, type CreateSMTPConfigResponse, type CreateSessionRequest, type CreateSessionResult, type CreateSolanaAccountOptions, type CreateSubscriptionRequest, type CreateSubscriptionResponse, type CreateSubscriptionResult, type CreateTransactionIntentRequest, type CreateTransactionIntentResult, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResult, CriteriaOperator, CriteriaOperatorEQUAL, CriteriaOperatorGREATERTHAN, CriteriaOperatorGREATERTHANOREQUAL, CriteriaOperatorIN, CriteriaOperatorLESSTHAN, CriteriaOperatorLESSTHANOREQUAL, CriteriaOperatorMATCH, CriteriaOperatorNOTIN, CriteriaType, Currency, type CustomAuthConfig, type DeleteAccountResponse, type DeleteAuthPlayerResult, type DeleteBackendWalletResponse, DeleteBackendWalletResponseObject, type DeleteBackendWalletResult, type DeleteContractResult, type DeleteDeveloperAccountResult, type DeleteEventResult, type DeleteFeeSponsorshipResult, type DeleteForwarderContractResult, type DeleteGasPolicyLegacyResult, type DeleteGasPolicyRuleLegacyResult, type DeleteOAuthConfigResult, type DeletePaymasterResult, type DeletePlayerResult, type DeletePolicyV2Result, type DeleteSMTPConfigResponse, type DeleteSubscriptionResult, type DeleteTriggerResult, type DeleteUserResult, type DeprecatedCallbackOAuthParams, type DeprecatedCallbackOAuthResult, type DeveloperAccount, type DeveloperAccountDeleteResponse, type DeveloperAccountGetMessageResponse, type DeveloperAccountListQueries, type DeveloperAccountListResponse, type DeveloperAccountResponse, DeveloperAccountResponseExpandable, type DeviceListQueries, type DeviceListResponse, type DeviceResponse, type DeviceStat, type DisableAccountResult, type DisableFeeSponsorshipResult, type DisableGasPolicyLegacyResult, type DiscordOAuthConfig, type EcosystemConfigurationResponse, type EcosystemMetadata, type EmailAuthConfig, type EmailAuthConfigPasswordRequirements, type EmailSampleDeleteResponse, type EmailSampleListResponse, type EmailSampleResponse, EmailTypeRequest, EmailTypeResponse, type EmbeddedNextActionResponse, EmbeddedNextActionResponseNextAction, type EmbeddedResponse, type EmbeddedV2Response, type EnableFeeSponsorshipResult, type EnableGasPolicyLegacyResult, EncryptionError, type EntityIdResponse, EntityTypeACCOUNT, EntityTypeCONTRACT, EntityTypeDEVELOPERACCOUNT, EntityTypeDEVICE, EntityTypeEMAILSAMPLE, EntityTypeEVENT, EntityTypeFEESPONSORSHIP, EntityTypeFORWARDERCONTRACT, EntityTypeLOG, EntityTypePAYMASTER, EntityTypePLAYER, EntityTypePOLICY, EntityTypePOLICYRULE, EntityTypePOLICYV2, EntityTypePOLICYV2RULE, EntityTypePROJECT, EntityTypeREADCONTRACT, EntityTypeSESSION, EntityTypeSIGNATURE, EntityTypeSMTPCONFIG, EntityTypeSUBSCRIPTION, EntityTypeTRANSACTIONINTENT, EntityTypeTRIGGER, EntityTypeUSER, EntityTypeWALLET, type EpicGamesOAuthConfig, ErrorTypeINVALIDREQUESTERROR, type EstimateTransactionIntentCostResult, type EstimateTransactionIntentGasResult, type EthValueCriterion, EthValueCriterionOperator, type EthValueCriterionRequest, EthValueCriterionRequestOperator, EthValueCriterionRequestType, EthValueCriterionSchema, type EvaluatePolicyV2Payload, type EvaluatePolicyV2Request, type EvaluatePolicyV2Response, EvaluatePolicyV2ResponseObject, type EvaluatePolicyV2Result, type EventDeleteResponse, type EventListQueries, type EventListResponse, type EventResponse, type EvmAccount, type EvmAccountBase, type EvmAccountData, type EvmAddressCriterion, EvmAddressCriterionOperator, type EvmAddressCriterionRequest, EvmAddressCriterionRequestOperator, EvmAddressCriterionRequestType, EvmAddressCriterionSchema, EvmClient, EvmCriteriaType, EvmCriteriaTypeETHVALUE, EvmCriteriaTypeEVMADDRESS, EvmCriteriaTypeEVMDATA, EvmCriteriaTypeEVMMESSAGE, EvmCriteriaTypeEVMNETWORK, EvmCriteriaTypeEVMTYPEDDATAFIELD, EvmCriteriaTypeEVMTYPEDDATAVERIFYINGCONTRACT, EvmCriteriaTypeNETUSDCHANGE, type EvmDataCriterion, type EvmDataCriterionRequest, EvmDataCriterionRequestOperator, EvmDataCriterionRequestType, EvmDataCriterionSchema, type EvmMessageCriterion, type EvmMessageCriterionRequest, EvmMessageCriterionRequestOperator, EvmMessageCriterionRequestType, EvmMessageCriterionSchema, type EvmNetworkCriterion, EvmNetworkCriterionOperator, type EvmNetworkCriterionRequest, EvmNetworkCriterionRequestOperator, EvmNetworkCriterionRequestType, EvmNetworkCriterionSchema, type SignMessageOptions$1 as EvmSignMessageOptions, type SignTransactionOptions$1 as EvmSignTransactionOptions, type SignTypedDataOptions as EvmSignTypedDataOptions, type EvmSigningMethods, type EvmTypedDataFieldCriterion, EvmTypedDataFieldCriterionOperator, type EvmTypedDataFieldCriterionRequest, EvmTypedDataFieldCriterionRequestOperator, EvmTypedDataFieldCriterionRequestType, EvmTypedDataFieldCriterionSchema, type EvmTypedDataVerifyingContractCriterion, EvmTypedDataVerifyingContractCriterionOperator, type EvmTypedDataVerifyingContractCriterionRequest, EvmTypedDataVerifyingContractCriterionRequestOperator, EvmTypedDataVerifyingContractCriterionRequestType, EvmTypedDataVerifyingContractCriterionSchema, type ExportPrivateKeyRequest, type ExportPrivateKeyResponse, ExportPrivateKeyResponseObject, type ExportPrivateKeyResult, type ExportSolanaAccountOptions, type ExportedEmbeddedRequest, type FacebookOAuthConfig, type FeeSponsorshipDeleteResponse, type FeeSponsorshipListQueries, type FeeSponsorshipListResponse, type FeeSponsorshipResponse, type FeeSponsorshipStrategy, type FeeSponsorshipStrategyResponse, type FieldErrors, type FirebaseOAuthConfig, type FixedRateTokenPolicyStrategy, type ForwarderContractDeleteResponse, type ForwarderContractResponse, type GasPerIntervalLimitPolicyRuleResponse, type GasPerTransactionLimitPolicyRuleResponse, type GasReport, type GasReportListResponse, type GasReportTransactionIntents, type GasReportTransactionIntentsListResponse, type GetAccountParams, type GetAccountResult, type GetAccountV2Result, type GetAccountsParams, type GetAccountsResult, GetAccountsV2AccountType, GetAccountsV2ChainType, GetAccountsV2Custody, type GetAccountsV2Params, type GetAccountsV2Result, type GetAuthPlayerResult, type GetAuthPlayersParams, type GetAuthPlayersResult, type GetAuthUserResult, type GetAuthUsersParams, type GetAuthUsersResult, type GetBackendWalletResult, type GetContractResult, type GetContractsParams, type GetContractsResult, type GetDeveloperAccountParams, type GetDeveloperAccountResult, type GetDeveloperAccountsParams, type GetDeveloperAccountsResult, type GetDeviceResponse, type GetEmailSampleResponse, type GetEventResponse, type GetEventResult, type GetEventsParams, type GetEventsResult, type GetEvmAccountOptions, type GetFeeSponsorshipResult, type GetForwarderContractResult, type GetGasPoliciesLegacyParams, type GetGasPoliciesLegacyResult, type GetGasPolicyBalanceLegacyResult, type GetGasPolicyLegacyParams, type GetGasPolicyLegacyResult, type GetGasPolicyReportTransactionIntentsLegacyParams, type GetGasPolicyReportTransactionIntentsLegacyResult, GetGasPolicyRulesLegacyExpandItem, type GetGasPolicyRulesLegacyParams, type GetGasPolicyRulesLegacyResult, type GetGasPolicyTotalGasUsageLegacyParams, type GetGasPolicyTotalGasUsageLegacyResult, type GetJwksResult, type GetOAuthConfigResult, type GetOnrampQuoteResult, type GetPaymasterResult, type GetPlayerParams, type GetPlayerResult, type GetPlayerSessionsParams, type GetPlayerSessionsResult, type GetPlayersParams, type GetPlayersResult, type GetPolicyV2Result, type GetProjectLogsParams, type GetProjectLogsResult, type GetSMTPConfigResponse, type GetSessionParams, type GetSessionResult, type GetSignerIdByAddressParams, type GetSignerIdByAddressResult, type GetSolanaAccountOptions, type GetSubscriptionResponse, type GetSubscriptionResult, type GetSubscriptionsResult, type GetTransactionIntentParams, type GetTransactionIntentResult, type GetTransactionIntentsParams, type GetTransactionIntentsResult, type GetTriggerResponse, type GetTriggerResult, type GetTriggersResult, type GetUserWalletResult, type GetVerificationPayloadParams, type GetVerificationPayloadResult, type GetWebhookLogsByProjectIdResult, type GoogleOAuthConfig, type GrantCallbackRequest, type GrantOAuthResponse, type GrantOAuthResult, type GuestAuthConfig, type HandleChainRpcRequestResult, type HandleRpcRequestResult, type HandleSolanaRpcRequestResult, type HttpErrorType, IMPORT_ENCRYPTION_PUBLIC_KEY, type ImportPrivateKeyRequest, ImportPrivateKeyRequestChainType, type ImportPrivateKeyResponse, ImportPrivateKeyResponseChainType, ImportPrivateKeyResponseObject, type ImportPrivateKeyResult, type ImportSolanaAccountOptions, type InitEmbeddedRequest, type InitOAuthResult, type InitSIWEResult, type Interaction, InvalidAPIKeyFormatError, InvalidPublishableKeyFormatError, type InvalidRequestError, type InvalidRequestErrorResponse, InvalidWalletSecretFormatError, type JsonRpcError, type JsonRpcErrorResponse, JsonRpcErrorResponseJsonrpc, type JsonRpcRequest, JsonRpcRequestJsonrpc, type JsonRpcResponse, type JsonRpcSuccessResponseAny, JsonRpcSuccessResponseAnyJsonrpc, type JwtKey, type JwtKeyResponse, type LineOAuthConfig, type LinkEmailResult, type LinkOAuthResult, type LinkSIWEResult, type LinkThirdPartyResult, type LinkedAccountResponse, type LinkedAccountResponseV2, type ListAccountsResult, ListBackendWalletsChainType, type ListBackendWalletsParams, type ListBackendWalletsResult, type ListConfigRequest, type ListEvmAccountsOptions, type ListFeeSponsorshipsParams, type ListFeeSponsorshipsResult, type ListForwarderContractsParams, type ListForwarderContractsResult, type ListMigrationsRequest, type ListOAuthConfigResult, type ListParams, type ListPaymastersParams, type ListPaymastersResult, type ListPoliciesParams, type ListPoliciesResult, ListPoliciesScopeItem, type ListResult, type ListSolanaAccountsOptions, type ListSubscriptionLogsParams, type ListSubscriptionLogsRequest, type ListSubscriptionLogsResult, type Log, type LogResponse, type LoginEmailPasswordResult, type LoginOIDCRequest, type LoginOIDCResult, type LoginRequest, type LoginWithIdTokenRequest, type LoginWithIdTokenResult, type LogoutRequest, type LogoutResult, type LootLockerOAuthConfig, type MappingStrategy, type MeResult, type MeV2Result, type MessageBirdSmsProviderConfig, type MintAddressCriterion, MintAddressCriterionOperator, type MintAddressCriterionRequest, MintAddressCriterionRequestOperator, MintAddressCriterionRequestType, MintAddressCriterionSchema, MissingAPIKeyError, MissingPublishableKeyError, MissingWalletSecretError, type Money, type MonthRange, type MyEcosystemResponse, type NetUSDChangeCriterion, NetUSDChangeCriterionOperator, type NetUSDChangeCriterionRequest, NetUSDChangeCriterionRequestOperator, NetUSDChangeCriterionRequestType, NetworkError, type NextActionPayload, type NextActionResponse, NextActionType, type OAuthConfigListResponse, type OAuthConfigRequest, type OAuthConfigResponse, type OAuthInitRequest, type OAuthInitRequestOptions, type OAuthInitRequestOptionsQueryParams, OAuthProvider, OAuthProviderAPPLE, OAuthProviderDISCORD, OAuthProviderEPICGAMES, OAuthProviderFACEBOOK, OAuthProviderGOOGLE, OAuthProviderLINE, OAuthProviderTWITTER, type OAuthResponse, type OIDCAuthConfig, type OnrampFee, OnrampProvider, type OnrampQuoteRequest, type OnrampQuoteResponse, type OnrampQuotesResponse, type OnrampSessionRequest, type OnrampSessionResponse, type OnrampSessionResponseQuote, Openfort, type OpenfortErrorResponse, type OpenfortOptions, type PagingQueries, type PasskeyEnv, type PayForUserPolicyStrategy, type PaymasterDeleteResponse, type PaymasterResponse, type PaymasterResponseContext, type PhoneAuthConfig, type PickContractResponseId, type PickJsonFragmentExcludeKeyofJsonFragmentInputsOrOutputs, type PickJsonFragmentTypeExcludeKeyofJsonFragmentTypeComponents, type PickPlayerResponseId, type Plan, PlanChangeType, type PlansResponse, type PlayFabOAuthConfig, type Player, type PlayerCancelTransferOwnershipRequest, type PlayerCreateRequest, type PlayerDeleteResponse, type PlayerListQueries, type PlayerListResponse, type PlayerMetadata, type PlayerResponse, PlayerResponseExpandable, type PlayerTransferOwnershipRequest, type PlayerUpdateRequest, type Policy, type PolicyBalanceWithdrawResponse, type PolicyDeleteResponse, type PolicyListQueries, type PolicyListResponse, PolicyRateLimit, PolicyRateLimitCOUNTPERINTERVAL, PolicyRateLimitGASPERINTERVAL, PolicyRateLimitGASPERTRANSACTION, type PolicyReportQueries, type PolicyReportTransactionIntentsQueries, type PolicyResponse, PolicyResponseExpandable, type PolicyRuleDeleteResponse, type PolicyRuleListQueries, PolicyRuleListQueriesExpandItem, type PolicyRuleListResponse, type PolicyRuleResponse, PolicyRuleType, PolicyRuleTypeACCOUNT, PolicyRuleTypeCONTRACT, PolicyRuleTypeRATELIMIT, type PolicyStrategy, type PolicyStrategyRequest, PolicyV2Action, type PolicyV2Criterion, type PolicyV2CriterionRequest, type PolicyV2DeleteResponse, type PolicyV2ListQueries, PolicyV2ListQueriesScopeItem, type PolicyV2ListResponse, type PolicyV2Response, type PolicyV2RuleResponse, PolicyV2Scope, type PoolOAuthParams, type PoolOAuthResult, type PregenerateAccountResponse, PregenerateAccountResponseCustody, type PregenerateUserRequestV2, PregenerateUserRequestV2AccountType, PregenerateUserRequestV2ChainType, type PregenerateUserV2Result, PrismaSortOrder, PrivateKeyPolicy, type ProgramIdCriterion, ProgramIdCriterionOperator, type ProgramIdCriterionRequest, ProgramIdCriterionRequestOperator, ProgramIdCriterionRequestType, ProgramIdCriterionSchema, type ProjectListResponse, type ProjectLogs, type ProjectResponse, type ProjectStatsRequest, ProjectStatsRequestTimeFrame, type ProjectStatsResponse, type QueryResult, type RSAKeyPair, type ReadContractParams, type ReadContractResult, type RecordStringUnknown, type RecoverV2EmbeddedRequest, type RecoverV2Response, type RecoveryMethodDetails, type RefreshResult, type RefreshTokenRequest, type RegisterEmbeddedRequest, type RegisterEmbeddedV2Request, type RegisterGuestResult, type RegisterWalletSecretRequest, type RegisterWalletSecretResponse, RegisterWalletSecretResponseObject, type RegisterWalletSecretResult, type RemoveAccountResult, type RequestEmailVerificationResult, type RequestOptions, type RequestResetPasswordRequest, type RequestResetPasswordResult, type RequestTransferAccountOwnershipResult, type RequestVerifyEmailRequest, type ResetPasswordRequest, type ResetPasswordResult, type ResponseResponse, ResponseTypeLIST, type RevokeSessionRequest, type RevokeSessionResult, type RevokeWalletSecretRequest, type RevokeWalletSecretResponse, RevokeWalletSecretResponseObject, type RevokeWalletSecretResult, type RotateWalletSecretRequest, type RotateWalletSecretResponse, RotateWalletSecretResponseObject, type RotateWalletSecretResult, type Rule, RuleSchema, type SIWEAuthenticateRequest, type SIWEInitResponse, type SIWERequest, type SMTPConfigResponse, SendEvmTransactionRuleSchema, SendSolTransactionRuleSchema, type SessionListQueries, type SessionListResponse, type SessionResponse, SessionResponseExpandable, type ShieldConfiguration, SignEvmHashRuleSchema, SignEvmMessageRuleSchema, SignEvmTransactionRuleSchema, SignEvmTypedDataRuleSchema, type SignPayloadDeveloperAccountResult, type SignPayloadRequest, type SignPayloadRequestTypes, type SignPayloadRequestValue, type SignPayloadResponse, type SignRequest, type SignResponse, SignResponseObject, type SignResult, SignSolMessageRuleSchema, SignSolTransactionRuleSchema, type SignatureRequest, type SignatureResult, type SignatureSessionResult, type SignerIdResponse, type SignupEmailPasswordResult, type SignupRequest, type SmartAccountData, type SmsApiProviderConfig, SmsProviderMESSAGEBIRD, SmsProviderSMSAPI, SmsProviderTWILIO, SmsProviderTXTLOCAL, SmsProviderVONAGE, type SolAddressCriterion, SolAddressCriterionOperator, type SolAddressCriterionRequest, SolAddressCriterionRequestOperator, SolAddressCriterionRequestType, SolAddressCriterionSchema, type SolDataCriterion, type SolDataCriterionRequest, SolDataCriterionRequestOperator, SolDataCriterionRequestType, SolDataCriterionSchema, type SolMessageCriterion, type SolMessageCriterionRequest, SolMessageCriterionRequestOperator, SolMessageCriterionRequestType, SolMessageCriterionSchema, type SolNetworkCriterion, SolNetworkCriterionOperator, type SolNetworkCriterionRequest, SolNetworkCriterionRequestOperator, SolNetworkCriterionRequestType, SolNetworkCriterionSchema, type SolValueCriterion, SolValueCriterionOperator, type SolValueCriterionRequest, SolValueCriterionRequestOperator, SolValueCriterionRequestType, SolValueCriterionSchema, type SolanaAccount, type SolanaAccountBase, type SolanaAccountData, SolanaClient, SolanaCriteriaType, SolanaCriteriaTypeMINTADDRESS, SolanaCriteriaTypePROGRAMID, SolanaCriteriaTypeSOLADDRESS, SolanaCriteriaTypeSOLDATA, SolanaCriteriaTypeSOLMESSAGE, SolanaCriteriaTypeSOLNETWORK, SolanaCriteriaTypeSOLVALUE, SolanaCriteriaTypeSPLADDRESS, SolanaCriteriaTypeSPLVALUE, type SignMessageOptions as SolanaSignMessageOptions, type SignTransactionOptions as SolanaSignTransactionOptions, type SolanaSigningMethods, type SplAddressCriterion, SplAddressCriterionOperator, type SplAddressCriterionRequest, SplAddressCriterionRequestOperator, SplAddressCriterionRequestType, SplAddressCriterionSchema, type SplValueCriterion, SplValueCriterionOperator, type SplValueCriterionRequest, SplValueCriterionRequestOperator, SplValueCriterionRequestType, SplValueCriterionSchema, SponsorEvmTransactionRuleSchema, SponsorSchema, SponsorSchemaCHARGECUSTOMTOKENS, SponsorSchemaFIXEDRATE, SponsorSchemaPAYFORUSER, SponsorSolTransactionRuleSchema, type StandardDetails, type Stat, Status, type SubscriptionDeleteResponse, type SubscriptionListResponse, type SubscriptionLogsResponse, type SubscriptionResponse, type SupabaseAuthConfig, type SwitchChainQueriesV2, type SwitchChainRequest, type SwitchChainV2Result, type TestTrigger200, type TestTriggerResult, type ThirdPartyLinkRequest, ThirdPartyOAuthProvider, ThirdPartyOAuthProviderACCELBYTE, ThirdPartyOAuthProviderBETTERAUTH, ThirdPartyOAuthProviderCUSTOM, ThirdPartyOAuthProviderFIREBASE, ThirdPartyOAuthProviderLOOTLOCKER, ThirdPartyOAuthProviderOIDC, ThirdPartyOAuthProviderPLAYFAB, ThirdPartyOAuthProviderSUPABASE, type ThirdPartyOAuthRequest, type ThirdPartyResult, type ThirdPartyV2Result, TimeIntervalType, TimeoutError, TokenType, TransactionAbstractionType, type TransactionConfirmedEventResponse, type TransactionIntent, type TransactionIntentListQueries, type TransactionIntentListResponse, type TransactionIntentResponse, TransactionIntentResponseExpandable, type TransactionResponseLog, type TransactionStat, TransactionStatus, type Transition, type TriggerDeleteResponse, type TriggerListResponse, type TriggerResponse, type TwilioSmsProviderConfig, type TwitterOAuthConfig, type TxtLocalSmsProviderConfig, type TypedDataField, type TypedDomainData, UnknownError, type UnlinkEmailRequest, type UnlinkEmailResult, type UnlinkOAuthRequest, type UnlinkOAuthResult, type UnlinkSIWEResult, type UpdateAuthorizedAppsRequest, type UpdateAuthorizedNetworksRequest, type UpdateAuthorizedOriginsRequest, type UpdateContractRequest, type UpdateContractResult, type UpdateDeveloperAccountCreateRequest, type UpdateDeveloperAccountResult, type UpdateEmailSampleRequest, type UpdateEmailSampleResponse, type UpdateFeeSponsorshipRequest, type UpdateFeeSponsorshipResult, type UpdateForwarderContractResult, type UpdateGasPolicyLegacyResult, type UpdateGasPolicyRuleLegacyResult, type UpdateMigrationRequest, type UpdatePaymasterResult, type UpdatePlayerResult, type UpdatePolicyBody, UpdatePolicyBodySchema, type UpdatePolicyRequest, type UpdatePolicyRuleRequest, type UpdatePolicyV2Request, type UpdatePolicyV2Result, type UpdateProjectApiKeyRequest, type UpdateProjectRequest, type UpsertSMTPConfigRequest, type UserDeleteResponse, UserInputValidationError, type UserListQueries, type UserListResponse, type UserOperationV6, type UserOperationV8, type UserOperationV9, type UserProjectCreateRequest, UserProjectCreateRequestRole, type UserProjectDeleteResponse, type UserProjectListResponse, type UserProjectResponse, UserProjectRole, UserProjectRoleADMIN, UserProjectRoleMEMBER, type UserProjectUpdateRequest, UserProjectUpdateRequestRole, ValidationError, type VerifyAuthTokenParams, type VerifyAuthTokenResult, type VerifyEmailRequest, type VerifyEmailResult, type VerifyOAuthTokenResult, type VonageSmsProviderConfig, type WalletResponse, type Web3AuthConfig, type WebhookResponse, type WithdrawalPolicyRequest, type ZKSyncDetails, authV2 as authApi, openfortAuth_schemas as authSchemas, authenticateSIWE, authorize, callbackOAuth, cancelTransferAccountOwnership, configure, create, createAccount, createAccountV2, createAuthPlayer, createBackendWallet, createContract, createDeveloperAccount, createEvent, createFeeSponsorship, createForwarderContract, createGasPolicyLegacy, createGasPolicyRuleLegacy, createGasPolicyWithdrawalLegacy, createOAuthConfig, createOnrampSession, createPaymaster, createPlayer, createPolicyV2, createSession, createSubscription, createTransactionIntent, createTrigger, decryptExportedPrivateKey, Openfort as default, deleteAuthPlayer, deleteBackendWallet, deleteContract, deleteDeveloperAccount, deleteEvent, deleteFeeSponsorship, deleteForwarderContract, deleteGasPolicyLegacy, deleteGasPolicyRuleLegacy, deleteOAuthConfig, deletePaymaster, deletePlayer, deletePolicyV2, deleteSubscription, deleteTrigger, deleteUser, deprecatedCallbackOAuth, disableAccount, disableFeeSponsorship, disableGasPolicyLegacy, enableFeeSponsorship, enableGasPolicyLegacy, encryptForImport, estimateTransactionIntentCost, evaluatePolicyV2, exportPrivateKey, generateRSAKeyPair, getAccount, getAccountV2, getAccounts, getAccountsV2, getAuthPlayer, getAuthPlayers, getAuthUser, getAuthUsers, getBackendWallet, getConfig, getContract, getContracts, getDeveloperAccount, getDeveloperAccounts, getEvent, getEvents, getFeeSponsorship, getForwarderContract, getGasPoliciesLegacy, getGasPolicyBalanceLegacy, getGasPolicyLegacy, getGasPolicyReportTransactionIntentsLegacy, getGasPolicyRulesLegacy, getGasPolicyTotalGasUsageLegacy, getJwks, getOAuthConfig, getOnrampQuote, getPaymaster, getPlayer, getPlayerSessions, getPlayers, getPolicyV2, getProjectLogs, getSession, getSignerIdByAddress, getSubscription, getSubscriptions, getTransactionIntent, getTransactionIntents, getTrigger, getTriggers, getUserWallet, getVerificationPayload, getWebhookLogsByProjectId, grantOAuth, handleChainRpcRequest, handleRpcRequest, handleSolanaRpcRequest, importPrivateKey, initOAuth, initSIWE, isOpenfortError, linkEmail, linkOAuth, linkSIWE, linkThirdParty, list, listBackendWallets, listFeeSponsorships, listForwarderContracts, listOAuthConfig, listPaymasters, listPolicies, listSubscriptionLogs, loginEmailPassword, loginOIDC, loginWithIdToken, logout, me, meV2, poolOAuth, pregenerateUserV2, query, readContract, refresh, registerGuest, registerWalletSecret, removeAccount, requestEmailVerification, requestResetPassword, requestTransferAccountOwnership, resetPassword, revokeSession, revokeWalletSecret, rotateWalletSecret, sign, signPayloadDeveloperAccount, signature, signatureSession, signupEmailPassword, switchChainV2, testTrigger, thirdParty, thirdPartyV2, toEvmAccount, toSolanaAccount, unlinkEmail, unlinkOAuth, unlinkSIWE, updateContract, updateDeveloperAccount, updateFeeSponsorship, updateForwarderContract, updateGasPolicyLegacy, updateGasPolicyRuleLegacy, updatePaymaster, updatePlayer, updatePolicyV2, verifyAuthToken, verifyEmail, verifyOAuthToken };
|
|
15966
|
+
export { APIError, type APIErrorType, APITopic, APITopicBALANCECONTRACT, APITopicBALANCEDEVACCOUNT, APITopicBALANCEPROJECT, APITopicTRANSACTIONSUCCESSFUL, APITriggerType, type Abi, type AbiType, type AccelbyteOAuthConfig, type Account$1 as Account, type AccountAbstractionV6Details, type AccountAbstractionV8Details, type AccountAbstractionV9Details, type AccountEventResponse, type AccountListQueries, type AccountListQueriesV2, AccountListQueriesV2AccountType, AccountListQueriesV2ChainType, AccountListQueriesV2Custody, type AccountListResponse, type AccountListV2Response, AccountNotFoundError, type AccountPolicyRuleResponse, type AccountResponse, AccountResponseExpandable, type AccountV2Response, AccountV2ResponseCustody, type ActionRequiredResponse, Actions, type AllowedOriginsRequest, type AllowedOriginsResponse, type ApiKeyResponse, ApiKeyType, type AppleOAuthConfig, type AuthConfig, type AuthMigrationListResponse, type AuthMigrationResponse, AuthMigrationStatus, type AuthPlayerListQueries, type AuthPlayerListResponse, type AuthPlayerResponse, type AuthPlayerResponseWithRecoveryShare, AuthProvider, type AuthProviderListResponse, AuthProviderResponse, AuthProviderResponseV2, type AuthProviderWithTypeResponse, type AuthResponse, type AuthSessionResponse, type AuthUserResponse, type AuthenticateOAuthRequest, AuthenticateOAuthRequestProvider, type AuthenticateSIWEResult, type AuthenticatedPlayerResponse, AuthenticationType, type AuthorizePlayerRequest, type AuthorizeResult, type AuthorizedApp, type AuthorizedAppsResponse, type AuthorizedAppsResponseAuthorizedAppsItem, type AuthorizedNetwork, type AuthorizedNetworksResponse, type AuthorizedNetworksResponseAuthorizedNetworksItem, type AuthorizedOriginsResponse, type BackendWalletListQueries, BackendWalletListQueriesChainType, type BackendWalletListResponse, BackendWalletListResponseObject, type BackendWalletResponse, BackendWalletResponseChainType, BackendWalletResponseCustody, BackendWalletResponseObject, type BalanceEventResponse, type BalanceResponse, type BaseDeleteEntityResponseEntityTypePLAYER, type BaseEntityListResponseAccountV2Response, type BaseEntityListResponseAuthUserResponse, type BaseEntityListResponseDeviceResponse, type BaseEntityListResponseEmailSampleResponse, type BaseEntityListResponseLogResponse, type BaseEntityListResponseTriggerResponse, type BaseEntityResponseEntityTypeWALLET, BasicAuthProvider, BasicAuthProviderEMAIL, BasicAuthProviderGUEST, BasicAuthProviderPHONE, BasicAuthProviderWEB3, type BetterAuthConfig, type BillingSubscriptionResponse, type BillingSubscriptionResponsePlan, type CallbackOAuthParams, type CallbackOAuthResult, type CancelTransferAccountOwnershipResult, type ChargeCustomTokenPolicyStrategy, type CheckoutRequest, type CheckoutResponse, type CheckoutSubscriptionRequest, type ChildProjectListResponse, type ChildProjectResponse, type CodeChallenge, CodeChallengeMethod, type CodeChallengeVerify, type ContractDeleteResponse, type ContractEventResponse, type ContractListQueries, type ContractListResponse, type ContractPolicyRuleResponse, type ContractReadQueries, type ContractReadResponse, type ContractResponse, type CountPerIntervalLimitPolicyRuleResponse, type CreateAccountRequest, type CreateAccountRequestV2, CreateAccountRequestV2AccountType, CreateAccountRequestV2ChainType, type CreateAccountResult, type CreateAccountV2Result, type CreateAuthPlayerRequest, type CreateAuthPlayerResult, type CreateBackendWalletRequest, CreateBackendWalletRequestChainType, type CreateBackendWalletResponse, CreateBackendWalletResponseChainType, CreateBackendWalletResponseObject, type CreateBackendWalletResult, type CreateContractRequest, type CreateContractResult, type CreateDeveloperAccountCreateRequest, type CreateDeveloperAccountResult, type CreateDeviceRequest, type CreateDeviceResponse, type CreateEcosystemConfigurationRequest, type CreateEmailSampleRequest, type CreateEmailSampleResponse, type CreateEmbeddedRequest, CreateEmbeddedRequestAccountType, CreateEmbeddedRequestChainType, type CreateEventRequest, type CreateEventResponse, type CreateEventResult, type CreateEvmAccountOptions, type CreateFeeSponsorshipRequest, type CreateFeeSponsorshipResult, type CreateForwarderContractRequest, type CreateForwarderContractResponse, type CreateForwarderContractResult, type CreateGasPolicyLegacyResult, type CreateGasPolicyRuleLegacyResult, type CreateGasPolicyWithdrawalLegacyResult, type CreateMigrationRequest, type CreateOAuthConfigResult, type CreateOnrampSessionResult, type CreatePaymasterRequest, type CreatePaymasterRequestContext, type CreatePaymasterResponse, type CreatePaymasterResult, type CreatePlayerResult, type CreatePolicyBody, CreatePolicyBodySchema, type CreatePolicyRequest, type CreatePolicyRuleRequest, type CreatePolicyV2Request, CreatePolicyV2RequestScope, type CreatePolicyV2Result, type CreatePolicyV2RuleRequest, CreatePolicyV2RuleRequestAction, type CreateProjectApiKeyRequest, type CreateProjectRequest, type CreateResult, type CreateSMTPConfigResponse, type CreateSessionRequest, type CreateSessionResult, type CreateSolanaAccountOptions, type CreateSubscriptionRequest, type CreateSubscriptionResponse, type CreateSubscriptionResult, type CreateTransactionIntentRequest, type CreateTransactionIntentResult, type CreateTriggerRequest, type CreateTriggerResponse, type CreateTriggerResult, CriteriaOperator, CriteriaOperatorEQUAL, CriteriaOperatorGREATERTHAN, CriteriaOperatorGREATERTHANOREQUAL, CriteriaOperatorIN, CriteriaOperatorLESSTHAN, CriteriaOperatorLESSTHANOREQUAL, CriteriaOperatorMATCH, CriteriaOperatorNOTIN, CriteriaType, Currency, type CustomAuthConfig, type DeleteAccountResponse, type DeleteAuthPlayerResult, type DeleteBackendWalletResponse, DeleteBackendWalletResponseObject, type DeleteBackendWalletResult, type DeleteContractResult, type DeleteDeveloperAccountResult, type DeleteEventResult, type DeleteFeeSponsorshipResult, type DeleteForwarderContractResult, type DeleteGasPolicyLegacyResult, type DeleteGasPolicyRuleLegacyResult, type DeleteOAuthConfigResult, type DeletePaymasterResult, type DeletePlayerResult, type DeletePolicyV2Result, type DeleteSMTPConfigResponse, type DeleteSubscriptionResult, type DeleteTriggerResult, type DeleteUserResult, type DeprecatedCallbackOAuthParams, type DeprecatedCallbackOAuthResult, type DeveloperAccount, type DeveloperAccountDeleteResponse, type DeveloperAccountGetMessageResponse, type DeveloperAccountListQueries, type DeveloperAccountListResponse, type DeveloperAccountResponse, DeveloperAccountResponseExpandable, type DeviceListQueries, type DeviceListResponse, type DeviceResponse, type DeviceStat, type DisableAccountResult, type DisableFeeSponsorshipResult, type DisableGasPolicyLegacyResult, type DiscordOAuthConfig, type EcosystemConfigurationResponse, type EcosystemMetadata, type EmailAuthConfig, type EmailAuthConfigPasswordRequirements, type EmailSampleDeleteResponse, type EmailSampleListResponse, type EmailSampleResponse, EmailTypeRequest, EmailTypeResponse, type EmbeddedNextActionResponse, EmbeddedNextActionResponseNextAction, type EmbeddedResponse, type EmbeddedV2Response, type EnableFeeSponsorshipResult, type EnableGasPolicyLegacyResult, EncryptionError, type EntityIdResponse, EntityTypeACCOUNT, EntityTypeCONTRACT, EntityTypeDEVELOPERACCOUNT, EntityTypeDEVICE, EntityTypeEMAILSAMPLE, EntityTypeEVENT, EntityTypeFEESPONSORSHIP, EntityTypeFORWARDERCONTRACT, EntityTypeLOG, EntityTypePAYMASTER, EntityTypePLAYER, EntityTypePOLICY, EntityTypePOLICYRULE, EntityTypePOLICYV2, EntityTypePOLICYV2RULE, EntityTypePROJECT, EntityTypeREADCONTRACT, EntityTypeSESSION, EntityTypeSIGNATURE, EntityTypeSMTPCONFIG, EntityTypeSUBSCRIPTION, EntityTypeTRANSACTIONINTENT, EntityTypeTRIGGER, EntityTypeUSER, EntityTypeWALLET, type EpicGamesOAuthConfig, ErrorTypeINVALIDREQUESTERROR, type EstimateTransactionIntentCostResult, type EstimateTransactionIntentGasResult, type EthValueCriterion, EthValueCriterionOperator, type EthValueCriterionRequest, EthValueCriterionRequestOperator, EthValueCriterionRequestType, EthValueCriterionSchema, type EvaluatePolicyV2Payload, type EvaluatePolicyV2Request, type EvaluatePolicyV2Response, EvaluatePolicyV2ResponseObject, type EvaluatePolicyV2Result, type EventDeleteResponse, type EventListQueries, type EventListResponse, type EventResponse, type EvmAccount, type EvmAccountBase, type EvmAccountData, type EvmAddressCriterion, EvmAddressCriterionOperator, type EvmAddressCriterionRequest, EvmAddressCriterionRequestOperator, EvmAddressCriterionRequestType, EvmAddressCriterionSchema, EvmClient, EvmCriteriaType, EvmCriteriaTypeETHVALUE, EvmCriteriaTypeEVMADDRESS, EvmCriteriaTypeEVMDATA, EvmCriteriaTypeEVMMESSAGE, EvmCriteriaTypeEVMNETWORK, EvmCriteriaTypeEVMTYPEDDATAFIELD, EvmCriteriaTypeEVMTYPEDDATAVERIFYINGCONTRACT, EvmCriteriaTypeNETUSDCHANGE, type EvmDataCriterion, type EvmDataCriterionRequest, EvmDataCriterionRequestOperator, EvmDataCriterionRequestType, EvmDataCriterionSchema, type EvmMessageCriterion, type EvmMessageCriterionRequest, EvmMessageCriterionRequestOperator, EvmMessageCriterionRequestType, EvmMessageCriterionSchema, type EvmNetworkCriterion, EvmNetworkCriterionOperator, type EvmNetworkCriterionRequest, EvmNetworkCriterionRequestOperator, EvmNetworkCriterionRequestType, EvmNetworkCriterionSchema, type SignMessageOptions$1 as EvmSignMessageOptions, type SignTransactionOptions$1 as EvmSignTransactionOptions, type SignTypedDataOptions as EvmSignTypedDataOptions, type EvmSigningMethods, type EvmTypedDataFieldCriterion, EvmTypedDataFieldCriterionOperator, type EvmTypedDataFieldCriterionRequest, EvmTypedDataFieldCriterionRequestOperator, EvmTypedDataFieldCriterionRequestType, EvmTypedDataFieldCriterionSchema, type EvmTypedDataVerifyingContractCriterion, EvmTypedDataVerifyingContractCriterionOperator, type EvmTypedDataVerifyingContractCriterionRequest, EvmTypedDataVerifyingContractCriterionRequestOperator, EvmTypedDataVerifyingContractCriterionRequestType, EvmTypedDataVerifyingContractCriterionSchema, type ExportPrivateKeyRequest, type ExportPrivateKeyResponse, ExportPrivateKeyResponseObject, type ExportPrivateKeyResult, type ExportSolanaAccountOptions, type ExportedEmbeddedRequest, type FacebookOAuthConfig, type FeeSponsorshipDeleteResponse, type FeeSponsorshipListQueries, type FeeSponsorshipListResponse, type FeeSponsorshipResponse, type FeeSponsorshipStrategy, type FeeSponsorshipStrategyResponse, type FieldErrors, type FirebaseOAuthConfig, type FixedRateTokenPolicyStrategy, type ForwarderContractDeleteResponse, type ForwarderContractResponse, type GasPerIntervalLimitPolicyRuleResponse, type GasPerTransactionLimitPolicyRuleResponse, type GasReport, type GasReportListResponse, type GasReportTransactionIntents, type GasReportTransactionIntentsListResponse, type GetAccountParams, type GetAccountResult, type GetAccountV2Result, type GetAccountsParams, type GetAccountsResult, GetAccountsV2AccountType, GetAccountsV2ChainType, GetAccountsV2Custody, type GetAccountsV2Params, type GetAccountsV2Result, type GetAuthPlayerResult, type GetAuthPlayersParams, type GetAuthPlayersResult, type GetAuthUserResult, type GetAuthUsersParams, type GetAuthUsersResult, type GetBackendWalletResult, type GetContractResult, type GetContractsParams, type GetContractsResult, type GetDeveloperAccountParams, type GetDeveloperAccountResult, type GetDeveloperAccountsParams, type GetDeveloperAccountsResult, type GetDeviceResponse, type GetEmailSampleResponse, type GetEventResponse, type GetEventResult, type GetEventsParams, type GetEventsResult, type GetEvmAccountOptions, type GetFeeSponsorshipResult, type GetForwarderContractResult, type GetGasPoliciesLegacyParams, type GetGasPoliciesLegacyResult, type GetGasPolicyBalanceLegacyResult, type GetGasPolicyLegacyParams, type GetGasPolicyLegacyResult, type GetGasPolicyReportTransactionIntentsLegacyParams, type GetGasPolicyReportTransactionIntentsLegacyResult, GetGasPolicyRulesLegacyExpandItem, type GetGasPolicyRulesLegacyParams, type GetGasPolicyRulesLegacyResult, type GetGasPolicyTotalGasUsageLegacyParams, type GetGasPolicyTotalGasUsageLegacyResult, type GetJwksResult, type GetOAuthConfigResult, type GetOnrampQuoteResult, type GetPaymasterResult, type GetPlayerParams, type GetPlayerResult, type GetPlayerSessionsParams, type GetPlayerSessionsResult, type GetPlayersParams, type GetPlayersResult, type GetPolicyV2Result, type GetProjectLogsParams, type GetProjectLogsResult, type GetSMTPConfigResponse, type GetSessionParams, type GetSessionResult, type GetSignerIdByAddressParams, type GetSignerIdByAddressResult, type GetSolanaAccountOptions, type GetSubscriptionResponse, type GetSubscriptionResult, type GetSubscriptionsResult, type GetTransactionIntentParams, type GetTransactionIntentResult, type GetTransactionIntentsParams, type GetTransactionIntentsResult, type GetTriggerResponse, type GetTriggerResult, type GetTriggersResult, type GetUserWalletResult, type GetVerificationPayloadParams, type GetVerificationPayloadResult, type GetWebhookLogsByProjectIdResult, type GoogleOAuthConfig, type GrantCallbackRequest, type GrantOAuthResponse, type GrantOAuthResult, type GuestAuthConfig, type HandleChainRpcRequestResult, type HandleRpcRequestResult, type HandleSolanaRpcRequestResult, type HttpErrorType, IMPORT_ENCRYPTION_PUBLIC_KEY, type ImportPrivateKeyRequest, ImportPrivateKeyRequestChainType, type ImportPrivateKeyResponse, ImportPrivateKeyResponseChainType, ImportPrivateKeyResponseObject, type ImportPrivateKeyResult, type ImportSolanaAccountOptions, type InitEmbeddedRequest, type InitOAuthResult, type InitSIWEResult, type Interaction, InvalidAPIKeyFormatError, InvalidPublishableKeyFormatError, type InvalidRequestError, type InvalidRequestErrorResponse, InvalidWalletSecretFormatError, type JsonRpcError, type JsonRpcErrorResponse, JsonRpcErrorResponseJsonrpc, type JsonRpcRequest, JsonRpcRequestJsonrpc, type JsonRpcResponse, type JsonRpcSuccessResponseAny, JsonRpcSuccessResponseAnyJsonrpc, type JwtKey, type JwtKeyResponse, type LineOAuthConfig, type LinkEmailResult, type LinkOAuthResult, type LinkSIWEResult, type LinkThirdPartyResult, type LinkedAccountResponse, type LinkedAccountResponseV2, type ListAccountsResult, ListBackendWalletsChainType, type ListBackendWalletsParams, type ListBackendWalletsResult, type ListConfigRequest, type ListEvmAccountsOptions, type ListFeeSponsorshipsParams, type ListFeeSponsorshipsResult, type ListForwarderContractsParams, type ListForwarderContractsResult, type ListMigrationsRequest, type ListOAuthConfigResult, type ListParams, type ListPaymastersParams, type ListPaymastersResult, type ListPoliciesParams, type ListPoliciesResult, ListPoliciesScopeItem, type ListResult, type ListSolanaAccountsOptions, type ListSubscriptionLogsParams, type ListSubscriptionLogsRequest, type ListSubscriptionLogsResult, type Log, type LogResponse, type LoginEmailPasswordResult, type LoginOIDCRequest, type LoginOIDCResult, type LoginRequest, type LoginWithIdTokenRequest, type LoginWithIdTokenResult, type LogoutRequest, type LogoutResult, type LootLockerOAuthConfig, type MappingStrategy, type MeResult, type MeV2Result, type MessageBirdSmsProviderConfig, type MintAddressCriterion, MintAddressCriterionOperator, type MintAddressCriterionRequest, MintAddressCriterionRequestOperator, MintAddressCriterionRequestType, MintAddressCriterionSchema, MissingAPIKeyError, MissingPublishableKeyError, MissingWalletSecretError, type Money, type MonthRange, type MonthlyUsageHistoryResponse, type MonthlyUsageHistoryResponseMonthsItem, type MyEcosystemResponse, type NetUSDChangeCriterion, NetUSDChangeCriterionOperator, type NetUSDChangeCriterionRequest, NetUSDChangeCriterionRequestOperator, NetUSDChangeCriterionRequestType, NetworkError, type NextActionPayload, type NextActionResponse, NextActionType, type OAuthConfigListResponse, type OAuthConfigRequest, type OAuthConfigResponse, type OAuthInitRequest, type OAuthInitRequestOptions, type OAuthInitRequestOptionsQueryParams, OAuthProvider, OAuthProviderAPPLE, OAuthProviderDISCORD, OAuthProviderEPICGAMES, OAuthProviderFACEBOOK, OAuthProviderGOOGLE, OAuthProviderLINE, OAuthProviderTWITTER, type OAuthResponse, type OIDCAuthConfig, type OnrampFee, OnrampProvider, type OnrampQuoteRequest, type OnrampQuoteResponse, type OnrampQuotesResponse, type OnrampSessionRequest, type OnrampSessionResponse, type OnrampSessionResponseQuote, Openfort, type OpenfortErrorResponse, type OpenfortOptions, type PagingQueries, type PasskeyEnv, type PayForUserPolicyStrategy, type PaymasterDeleteResponse, type PaymasterResponse, type PaymasterResponseContext, type PhoneAuthConfig, type PickContractResponseId, type PickJsonFragmentExcludeKeyofJsonFragmentInputsOrOutputs, type PickJsonFragmentTypeExcludeKeyofJsonFragmentTypeComponents, type PickPlayerResponseId, type Plan, PlanChangeType, type PlansResponse, type PlayFabOAuthConfig, type Player, type PlayerCancelTransferOwnershipRequest, type PlayerCreateRequest, type PlayerDeleteResponse, type PlayerListQueries, type PlayerListResponse, type PlayerMetadata, type PlayerResponse, PlayerResponseExpandable, type PlayerTransferOwnershipRequest, type PlayerUpdateRequest, type Policy, type PolicyBalanceWithdrawResponse, type PolicyDeleteResponse, type PolicyListQueries, type PolicyListResponse, PolicyRateLimit, PolicyRateLimitCOUNTPERINTERVAL, PolicyRateLimitGASPERINTERVAL, PolicyRateLimitGASPERTRANSACTION, type PolicyReportQueries, type PolicyReportTransactionIntentsQueries, type PolicyResponse, PolicyResponseExpandable, type PolicyRuleDeleteResponse, type PolicyRuleListQueries, PolicyRuleListQueriesExpandItem, type PolicyRuleListResponse, type PolicyRuleResponse, PolicyRuleType, PolicyRuleTypeACCOUNT, PolicyRuleTypeCONTRACT, PolicyRuleTypeRATELIMIT, type PolicyStrategy, type PolicyStrategyRequest, PolicyV2Action, type PolicyV2Criterion, type PolicyV2CriterionRequest, type PolicyV2DeleteResponse, type PolicyV2ListQueries, PolicyV2ListQueriesScopeItem, type PolicyV2ListResponse, type PolicyV2Response, type PolicyV2RuleResponse, PolicyV2Scope, type PoolOAuthParams, type PoolOAuthResult, type PregenerateAccountResponse, PregenerateAccountResponseCustody, type PregenerateUserRequestV2, PregenerateUserRequestV2AccountType, PregenerateUserRequestV2ChainType, type PregenerateUserV2Result, PrismaSortOrder, PrivateKeyPolicy, type ProgramIdCriterion, ProgramIdCriterionOperator, type ProgramIdCriterionRequest, ProgramIdCriterionRequestOperator, ProgramIdCriterionRequestType, ProgramIdCriterionSchema, type ProjectListResponse, type ProjectLogs, type ProjectResponse, type ProjectStatsRequest, ProjectStatsRequestTimeFrame, type ProjectStatsResponse, type QueryResult, type RSAKeyPair, type ReadContractParams, type ReadContractResult, type RecordStringUnknown, type RecoverV2EmbeddedRequest, type RecoverV2Response, type RecoveryMethodDetails, type RefreshResult, type RefreshTokenRequest, type RegisterEmbeddedRequest, type RegisterEmbeddedV2Request, type RegisterGuestResult, type RegisterWalletSecretRequest, type RegisterWalletSecretResponse, RegisterWalletSecretResponseObject, type RegisterWalletSecretResult, type RemoveAccountResult, type RequestEmailVerificationResult, type RequestOptions, type RequestResetPasswordRequest, type RequestResetPasswordResult, type RequestTransferAccountOwnershipResult, type RequestVerifyEmailRequest, type ResetPasswordRequest, type ResetPasswordResult, type ResponseResponse, ResponseTypeLIST, type RevokeSessionRequest, type RevokeSessionResult, type RevokeWalletSecretRequest, type RevokeWalletSecretResponse, RevokeWalletSecretResponseObject, type RevokeWalletSecretResult, type RotateWalletSecretRequest, type RotateWalletSecretResponse, RotateWalletSecretResponseObject, type RotateWalletSecretResult, type Rule, RuleSchema, type SIWEAuthenticateRequest, type SIWEInitResponse, type SIWERequest, type SMTPConfigResponse, SendEvmTransactionRuleSchema, SendSolTransactionRuleSchema, type SessionListQueries, type SessionListResponse, type SessionResponse, SessionResponseExpandable, type ShieldConfiguration, SignEvmHashRuleSchema, SignEvmMessageRuleSchema, SignEvmTransactionRuleSchema, SignEvmTypedDataRuleSchema, type SignPayloadDeveloperAccountResult, type SignPayloadRequest, type SignPayloadRequestTypes, type SignPayloadRequestValue, type SignPayloadResponse, type SignRequest, type SignResponse, SignResponseObject, type SignResult, SignSolMessageRuleSchema, SignSolTransactionRuleSchema, type SignatureRequest, type SignatureResult, type SignatureSessionResult, type SignerIdResponse, type SignupEmailPasswordResult, type SignupRequest, type SmartAccountData, type SmsApiProviderConfig, SmsProviderMESSAGEBIRD, SmsProviderSMSAPI, SmsProviderTWILIO, SmsProviderTXTLOCAL, SmsProviderVONAGE, type SolAddressCriterion, SolAddressCriterionOperator, type SolAddressCriterionRequest, SolAddressCriterionRequestOperator, SolAddressCriterionRequestType, SolAddressCriterionSchema, type SolDataCriterion, type SolDataCriterionRequest, SolDataCriterionRequestOperator, SolDataCriterionRequestType, SolDataCriterionSchema, type SolMessageCriterion, type SolMessageCriterionRequest, SolMessageCriterionRequestOperator, SolMessageCriterionRequestType, SolMessageCriterionSchema, type SolNetworkCriterion, SolNetworkCriterionOperator, type SolNetworkCriterionRequest, SolNetworkCriterionRequestOperator, SolNetworkCriterionRequestType, SolNetworkCriterionSchema, type SolValueCriterion, SolValueCriterionOperator, type SolValueCriterionRequest, SolValueCriterionRequestOperator, SolValueCriterionRequestType, SolValueCriterionSchema, type SolanaAccount, type SolanaAccountBase, type SolanaAccountData, SolanaClient, SolanaCriteriaType, SolanaCriteriaTypeMINTADDRESS, SolanaCriteriaTypePROGRAMID, SolanaCriteriaTypeSOLADDRESS, SolanaCriteriaTypeSOLDATA, SolanaCriteriaTypeSOLMESSAGE, SolanaCriteriaTypeSOLNETWORK, SolanaCriteriaTypeSOLVALUE, SolanaCriteriaTypeSPLADDRESS, SolanaCriteriaTypeSPLVALUE, type SignMessageOptions as SolanaSignMessageOptions, type SignTransactionOptions as SolanaSignTransactionOptions, type SolanaSigningMethods, type SplAddressCriterion, SplAddressCriterionOperator, type SplAddressCriterionRequest, SplAddressCriterionRequestOperator, SplAddressCriterionRequestType, SplAddressCriterionSchema, type SplValueCriterion, SplValueCriterionOperator, type SplValueCriterionRequest, SplValueCriterionRequestOperator, SplValueCriterionRequestType, SplValueCriterionSchema, SponsorEvmTransactionRuleSchema, SponsorSchema, SponsorSchemaCHARGECUSTOMTOKENS, SponsorSchemaFIXEDRATE, SponsorSchemaPAYFORUSER, SponsorSolTransactionRuleSchema, type StandardDetails, type Stat, Status, type SubscriptionDeleteResponse, type SubscriptionListResponse, type SubscriptionLogsResponse, type SubscriptionResponse, type SupabaseAuthConfig, type SwitchChainQueriesV2, type SwitchChainRequest, type SwitchChainV2Result, type TestTrigger200, type TestTriggerResult, type ThirdPartyLinkRequest, ThirdPartyOAuthProvider, ThirdPartyOAuthProviderACCELBYTE, ThirdPartyOAuthProviderBETTERAUTH, ThirdPartyOAuthProviderCUSTOM, ThirdPartyOAuthProviderFIREBASE, ThirdPartyOAuthProviderLOOTLOCKER, ThirdPartyOAuthProviderOIDC, ThirdPartyOAuthProviderPLAYFAB, ThirdPartyOAuthProviderSUPABASE, type ThirdPartyOAuthRequest, type ThirdPartyResult, type ThirdPartyV2Result, TimeIntervalType, TimeoutError, TokenType, TransactionAbstractionType, type TransactionConfirmedEventResponse, type TransactionIntent, type TransactionIntentListQueries, type TransactionIntentListResponse, type TransactionIntentResponse, TransactionIntentResponseExpandable, type TransactionResponseLog, type TransactionStat, TransactionStatus, type Transition, type TriggerDeleteResponse, type TriggerListResponse, type TriggerResponse, type TwilioSmsProviderConfig, type TwitterOAuthConfig, type TxtLocalSmsProviderConfig, type TypedDataField, type TypedDomainData, UnknownError, type UnlinkEmailRequest, type UnlinkEmailResult, type UnlinkOAuthRequest, type UnlinkOAuthResult, type UnlinkSIWEResult, type UpdateAuthorizedAppsRequest, type UpdateAuthorizedNetworksRequest, type UpdateAuthorizedOriginsRequest, type UpdateBackendWalletRequest, UpdateBackendWalletRequestAccountType, UpdateBackendWalletRequestChainType, type UpdateBackendWalletResponse, UpdateBackendWalletResponseChainType, UpdateBackendWalletResponseCustody, type UpdateBackendWalletResponseDelegatedAccount, type UpdateBackendWalletResponseDelegatedAccountChain, UpdateBackendWalletResponseDelegatedAccountChainChainType, UpdateBackendWalletResponseObject, type UpdateBackendWalletResult, type UpdateContractRequest, type UpdateContractResult, type UpdateDeveloperAccountCreateRequest, type UpdateDeveloperAccountResult, type UpdateEmailSampleRequest, type UpdateEmailSampleResponse, type UpdateFeeSponsorshipRequest, type UpdateFeeSponsorshipResult, type UpdateForwarderContractResult, type UpdateGasPolicyLegacyResult, type UpdateGasPolicyRuleLegacyResult, type UpdateMigrationRequest, type UpdatePaymasterResult, type UpdatePlayerResult, type UpdatePolicyBody, UpdatePolicyBodySchema, type UpdatePolicyRequest, type UpdatePolicyRuleRequest, type UpdatePolicyV2Request, type UpdatePolicyV2Result, type UpdateProjectApiKeyRequest, type UpdateProjectRequest, type UpsertSMTPConfigRequest, type UsageAlert, UsageAlertType, type UsageSummaryResponse, type UsageSummaryResponseBillingPeriod, type UsageSummaryResponseOperations, type UsageSummaryResponsePlan, type UserDeleteResponse, UserInputValidationError, type UserListQueries, type UserListResponse, type UserOperationV6, type UserOperationV8, type UserOperationV9, type UserProjectCreateRequest, UserProjectCreateRequestRole, type UserProjectDeleteResponse, type UserProjectListResponse, type UserProjectResponse, UserProjectRole, UserProjectRoleADMIN, UserProjectRoleMEMBER, type UserProjectUpdateRequest, UserProjectUpdateRequestRole, ValidationError, type VerifyAuthTokenParams, type VerifyAuthTokenResult, type VerifyEmailRequest, type VerifyEmailResult, type VerifyOAuthTokenResult, type VonageSmsProviderConfig, type WalletResponse, type Web3AuthConfig, type WebhookResponse, type WithdrawalPolicyRequest, type ZKSyncDetails, authV2 as authApi, openfortAuth_schemas as authSchemas, authenticateSIWE, authorize, callbackOAuth, cancelTransferAccountOwnership, configure, create, createAccount, createAccountV2, createAuthPlayer, createBackendWallet, createContract, createDeveloperAccount, createEvent, createFeeSponsorship, createForwarderContract, createGasPolicyLegacy, createGasPolicyRuleLegacy, createGasPolicyWithdrawalLegacy, createOAuthConfig, createOnrampSession, createPaymaster, createPlayer, createPolicyV2, createSession, createSubscription, createTransactionIntent, createTrigger, decryptExportedPrivateKey, Openfort as default, deleteAuthPlayer, deleteBackendWallet, deleteContract, deleteDeveloperAccount, deleteEvent, deleteFeeSponsorship, deleteForwarderContract, deleteGasPolicyLegacy, deleteGasPolicyRuleLegacy, deleteOAuthConfig, deletePaymaster, deletePlayer, deletePolicyV2, deleteSubscription, deleteTrigger, deleteUser, deprecatedCallbackOAuth, disableAccount, disableFeeSponsorship, disableGasPolicyLegacy, enableFeeSponsorship, enableGasPolicyLegacy, encryptForImport, estimateTransactionIntentCost, evaluatePolicyV2, exportPrivateKey, generateRSAKeyPair, getAccount, getAccountV2, getAccounts, getAccountsV2, getAuthPlayer, getAuthPlayers, getAuthUser, getAuthUsers, getBackendWallet, getConfig, getContract, getContracts, getDeveloperAccount, getDeveloperAccounts, getEvent, getEvents, getFeeSponsorship, getForwarderContract, getGasPoliciesLegacy, getGasPolicyBalanceLegacy, getGasPolicyLegacy, getGasPolicyReportTransactionIntentsLegacy, getGasPolicyRulesLegacy, getGasPolicyTotalGasUsageLegacy, getJwks, getOAuthConfig, getOnrampQuote, getPaymaster, getPlayer, getPlayerSessions, getPlayers, getPolicyV2, getProjectLogs, getSession, getSignerIdByAddress, getSubscription, getSubscriptions, getTransactionIntent, getTransactionIntents, getTrigger, getTriggers, getUserWallet, getVerificationPayload, getWebhookLogsByProjectId, grantOAuth, handleChainRpcRequest, handleRpcRequest, handleSolanaRpcRequest, importPrivateKey, initOAuth, initSIWE, isOpenfortError, linkEmail, linkOAuth, linkSIWE, linkThirdParty, list, listBackendWallets, listFeeSponsorships, listForwarderContracts, listOAuthConfig, listPaymasters, listPolicies, listSubscriptionLogs, loginEmailPassword, loginOIDC, loginWithIdToken, logout, me, meV2, poolOAuth, pregenerateUserV2, query, readContract, refresh, registerGuest, registerWalletSecret, removeAccount, requestEmailVerification, requestResetPassword, requestTransferAccountOwnership, resetPassword, revokeSession, revokeWalletSecret, rotateWalletSecret, sign, signPayloadDeveloperAccount, signature, signatureSession, signupEmailPassword, switchChainV2, testTrigger, thirdParty, thirdPartyV2, toEvmAccount, toSolanaAccount, unlinkEmail, unlinkOAuth, unlinkSIWE, updateBackendWallet, updateContract, updateDeveloperAccount, updateFeeSponsorship, updateForwarderContract, updateGasPolicyLegacy, updateGasPolicyRuleLegacy, updatePaymaster, updatePlayer, updatePolicyV2, verifyAuthToken, verifyEmail, verifyOAuthToken };
|