@openfort/openfort-node 0.9.2 → 0.10.0
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 +12 -0
- package/dist/index.d.mts +559 -582
- package/dist/index.d.ts +559 -582
- package/dist/index.js +539 -189
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +538 -182
- package/dist/index.mjs.map +1 -1
- package/examples/evm/delegation/sendTransaction.ts +34 -0
- package/examples/evm/policies/createAccountPolicy.ts +68 -0
- package/examples/evm/policies/createProjectPolicy.ts +53 -0
- package/examples/evm/policies/deletePolicy.ts +34 -0
- package/examples/evm/policies/getPolicyById.ts +34 -0
- package/examples/evm/policies/listAccountPolicies.ts +11 -0
- package/examples/evm/policies/listPolicies.ts +11 -0
- package/examples/evm/policies/listProjectPolicies.ts +11 -0
- package/examples/evm/policies/signTypedDataPolicy.ts +35 -0
- package/examples/evm/policies/updatePolicy.ts +44 -0
- package/examples/evm/policies/validation.ts +45 -0
- package/examples/evm/transactions/sendTransaction.ts +44 -0
- package/examples/package.json +13 -0
- package/examples/pnpm-lock.yaml +933 -0
- package/examples/solana/policies/createSolAllowlistPolicy.ts +27 -0
- package/examples/solana/policies/createSolMessagePolicy.ts +29 -0
- package/examples/solana/policies/createSplTokenLimitsPolicy.ts +33 -0
- package/examples/solana/transactions/sendRawTransaction.ts +23 -0
- package/examples/solana/transactions/sendTransaction.ts +37 -0
- package/examples/solana/transactions/transfer.ts +44 -0
- package/knip.json +10 -1
- package/openapi.json +28 -637
- package/package.json +42 -4
- package/tsconfig.json +3 -4
- package/examples/policies/createAccountPolicy.ts +0 -71
- package/examples/policies/createEvmPolicy.ts +0 -149
- package/examples/policies/createSolanaPolicy.ts +0 -176
- package/examples/policies/createTypedDataPolicy.ts +0 -159
- package/examples/policies/deletePolicy.ts +0 -34
- package/examples/policies/getPolicy.ts +0 -41
- package/examples/policies/listPolicies.ts +0 -34
- package/examples/policies/multiRulePolicy.ts +0 -133
- package/examples/policies/updatePolicy.ts +0 -77
- package/examples/policies/validatePolicy.ts +0 -176
- /package/examples/{contracts → evm/contracts}/createContract.ts +0 -0
- /package/examples/{contracts → evm/contracts}/listContracts.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/createTransactionIntent.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/estimateGas.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/getTransactionIntent.ts +0 -0
- /package/examples/{transactions → evm/transactionIntents}/listTransactionIntents.ts +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,186 +1,11 @@
|
|
|
1
1
|
import { Address, Hash, Hex, SignableMessage, TransactionSerializable, TypedData, TypedDataDefinition } from 'viem';
|
|
2
2
|
export { Address, Hash, Hex, SignableMessage, TransactionSerializable, TypedData, TypedDataDefinition } from 'viem';
|
|
3
|
+
import { Instruction } from '@solana/kit';
|
|
3
4
|
import { ShieldAuthProvider } from '@openfort/shield-js';
|
|
4
5
|
export { ShieldAuthProvider } from '@openfort/shield-js';
|
|
5
6
|
import { AxiosRequestConfig } from 'axios';
|
|
6
7
|
import { z } from 'zod';
|
|
7
8
|
|
|
8
|
-
/**
|
|
9
|
-
* @module Wallets/EVM/Types
|
|
10
|
-
* EVM-specific types for wallet operations
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Base EVM account with signing capabilities
|
|
15
|
-
*/
|
|
16
|
-
interface EvmAccountBase {
|
|
17
|
-
/** The account's unique identifier */
|
|
18
|
-
id: string;
|
|
19
|
-
/** The account's address */
|
|
20
|
-
address: Address;
|
|
21
|
-
/** Account type identifier */
|
|
22
|
-
custody: 'Developer';
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* EVM signing methods interface
|
|
26
|
-
*/
|
|
27
|
-
interface EvmSigningMethods {
|
|
28
|
-
/**
|
|
29
|
-
* Signs a hash and returns the signature
|
|
30
|
-
* @param parameters - Object containing the hash to sign
|
|
31
|
-
*/
|
|
32
|
-
sign(parameters: {
|
|
33
|
-
hash: Hash;
|
|
34
|
-
}): Promise<Hex>;
|
|
35
|
-
/**
|
|
36
|
-
* Signs a message (EIP-191 personal sign)
|
|
37
|
-
* @param parameters - Object containing the message to sign
|
|
38
|
-
*/
|
|
39
|
-
signMessage(parameters: {
|
|
40
|
-
message: SignableMessage;
|
|
41
|
-
}): Promise<Hex>;
|
|
42
|
-
/**
|
|
43
|
-
* Signs a transaction
|
|
44
|
-
* @param transaction - Transaction to sign
|
|
45
|
-
*/
|
|
46
|
-
signTransaction(transaction: TransactionSerializable): Promise<Hex>;
|
|
47
|
-
/**
|
|
48
|
-
* Signs typed data (EIP-712)
|
|
49
|
-
* @param parameters - Typed data definition
|
|
50
|
-
*/
|
|
51
|
-
signTypedData<const T extends TypedData | Record<string, unknown>, P extends keyof T | 'EIP712Domain' = keyof T>(parameters: TypedDataDefinition<T, P>): Promise<Hex>;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Full EVM server account with all signing capabilities
|
|
55
|
-
*/
|
|
56
|
-
type EvmAccount = EvmAccountBase & EvmSigningMethods;
|
|
57
|
-
/**
|
|
58
|
-
* Options for sign message action
|
|
59
|
-
*/
|
|
60
|
-
interface SignMessageOptions$1 {
|
|
61
|
-
/** Account address */
|
|
62
|
-
address: Address;
|
|
63
|
-
/** Message to sign (string or SignableMessage) */
|
|
64
|
-
message: SignableMessage;
|
|
65
|
-
/** Idempotency key */
|
|
66
|
-
idempotencyKey?: string;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Options for sign typed data action
|
|
70
|
-
*/
|
|
71
|
-
interface SignTypedDataOptions<T extends TypedData | Record<string, unknown> = TypedData, P extends keyof T | 'EIP712Domain' = keyof T> {
|
|
72
|
-
/** Account address */
|
|
73
|
-
address: Address;
|
|
74
|
-
/** Typed data definition */
|
|
75
|
-
typedData: TypedDataDefinition<T, P>;
|
|
76
|
-
/** Idempotency key */
|
|
77
|
-
idempotencyKey?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Options for sign transaction action
|
|
81
|
-
*/
|
|
82
|
-
interface SignTransactionOptions$1 {
|
|
83
|
-
/** Account address */
|
|
84
|
-
address: Address;
|
|
85
|
-
/** Transaction to sign */
|
|
86
|
-
transaction: TransactionSerializable;
|
|
87
|
-
/** Idempotency key */
|
|
88
|
-
idempotencyKey?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Options for creating an EVM account
|
|
92
|
-
*/
|
|
93
|
-
interface CreateEvmAccountOptions {
|
|
94
|
-
/** Wallet ID (starts with pla_). Optional - associates the wallet with a player. */
|
|
95
|
-
wallet?: string;
|
|
96
|
-
/** Idempotency key */
|
|
97
|
-
idempotencyKey?: string;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Options for getting an EVM account
|
|
101
|
-
*/
|
|
102
|
-
interface GetEvmAccountOptions {
|
|
103
|
-
/** Account address */
|
|
104
|
-
address?: Address;
|
|
105
|
-
/** Account ID */
|
|
106
|
-
id?: string;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Options for listing EVM accounts
|
|
110
|
-
*/
|
|
111
|
-
interface ListEvmAccountsOptions {
|
|
112
|
-
/** Maximum number of accounts to return (default: 10, max: 100) */
|
|
113
|
-
limit?: number;
|
|
114
|
-
/** Number of accounts to skip (for pagination) */
|
|
115
|
-
skip?: number;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Options for importing an EVM account
|
|
119
|
-
*/
|
|
120
|
-
interface ImportEvmAccountOptions {
|
|
121
|
-
/** Private key as hex string (with or without 0x prefix) */
|
|
122
|
-
privateKey: string;
|
|
123
|
-
/** Idempotency key */
|
|
124
|
-
idempotencyKey?: string;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Options for exporting an EVM account
|
|
128
|
-
*/
|
|
129
|
-
interface ExportEvmAccountOptions {
|
|
130
|
-
/** Account ID (starts with acc_) */
|
|
131
|
-
id: string;
|
|
132
|
-
/** Idempotency key */
|
|
133
|
-
idempotencyKey?: string;
|
|
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
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Options for signing data
|
|
152
|
-
*/
|
|
153
|
-
interface SignDataOptions {
|
|
154
|
-
/** Account ID (starts with acc_) */
|
|
155
|
-
id: string;
|
|
156
|
-
/** Data to sign (hex-encoded transaction data or message hash) */
|
|
157
|
-
data: string;
|
|
158
|
-
/** Idempotency key */
|
|
159
|
-
idempotencyKey?: string;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* @module Wallets/EVM/Accounts/EvmAccount
|
|
164
|
-
* Factory function for creating EVM account objects with bound action methods
|
|
165
|
-
*/
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Raw account data from API response
|
|
169
|
-
*/
|
|
170
|
-
interface EvmAccountData {
|
|
171
|
-
/** Account unique ID */
|
|
172
|
-
id: string;
|
|
173
|
-
/** Account address */
|
|
174
|
-
address: string;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Creates an EVM account object with bound action methods.
|
|
178
|
-
*
|
|
179
|
-
* @param data - Raw account data from API
|
|
180
|
-
* @returns EVM account object with signing methods
|
|
181
|
-
*/
|
|
182
|
-
declare function toEvmAccount(data: EvmAccountData): EvmAccount;
|
|
183
|
-
|
|
184
9
|
/**
|
|
185
10
|
* Error types for HTTP-level errors
|
|
186
11
|
*/
|
|
@@ -188,14 +13,18 @@ type HttpErrorType = 'unexpected_error' | 'unauthorized' | 'forbidden' | 'not_fo
|
|
|
188
13
|
/**
|
|
189
14
|
* Extended API error type
|
|
190
15
|
*/
|
|
191
|
-
type APIErrorType = HttpErrorType | string;
|
|
16
|
+
type APIErrorType = HttpErrorType | (string & {});
|
|
192
17
|
/**
|
|
193
18
|
* Shape of Openfort API error responses
|
|
194
19
|
*/
|
|
195
20
|
interface OpenfortErrorResponse {
|
|
21
|
+
/** The human-readable error message */
|
|
196
22
|
message?: string;
|
|
23
|
+
/** The error type or description string */
|
|
197
24
|
error?: string;
|
|
25
|
+
/** The HTTP status code of the response */
|
|
198
26
|
statusCode?: number;
|
|
27
|
+
/** A unique identifier for tracing this error across systems */
|
|
199
28
|
correlationId?: string;
|
|
200
29
|
}
|
|
201
30
|
/**
|
|
@@ -206,11 +35,17 @@ declare function isOpenfortError(obj: unknown): obj is OpenfortErrorResponse;
|
|
|
206
35
|
* Extended API error that encompasses both Openfort errors and other API-related errors
|
|
207
36
|
*/
|
|
208
37
|
declare class APIError extends Error {
|
|
38
|
+
/** The HTTP status code */
|
|
209
39
|
statusCode: number;
|
|
40
|
+
/** The classified error type */
|
|
210
41
|
errorType: APIErrorType;
|
|
42
|
+
/** The human-readable error message */
|
|
211
43
|
errorMessage: string;
|
|
44
|
+
/** A unique identifier for tracing this error across systems */
|
|
212
45
|
correlationId?: string;
|
|
46
|
+
/** URL to documentation about this error */
|
|
213
47
|
errorLink?: string;
|
|
48
|
+
/** The underlying error that caused this API error */
|
|
214
49
|
cause?: Error | unknown;
|
|
215
50
|
/**
|
|
216
51
|
* Constructor for the APIError class
|
|
@@ -231,7 +66,7 @@ declare class APIError extends Error {
|
|
|
231
66
|
correlationId?: string | undefined;
|
|
232
67
|
name: string;
|
|
233
68
|
statusCode: number;
|
|
234
|
-
errorType:
|
|
69
|
+
errorType: APIErrorType;
|
|
235
70
|
errorMessage: string;
|
|
236
71
|
};
|
|
237
72
|
}
|
|
@@ -240,6 +75,7 @@ declare class APIError extends Error {
|
|
|
240
75
|
* This includes gateway errors, IP blocklist rejections, DNS failures, timeouts, etc.
|
|
241
76
|
*/
|
|
242
77
|
declare class NetworkError extends APIError {
|
|
78
|
+
/** Additional details about the network failure (error code, message, and whether the request can be retried) */
|
|
243
79
|
networkDetails?: {
|
|
244
80
|
code?: string;
|
|
245
81
|
message?: string;
|
|
@@ -271,7 +107,7 @@ declare class NetworkError extends APIError {
|
|
|
271
107
|
correlationId?: string | undefined;
|
|
272
108
|
name: string;
|
|
273
109
|
statusCode: number;
|
|
274
|
-
errorType:
|
|
110
|
+
errorType: APIErrorType;
|
|
275
111
|
errorMessage: string;
|
|
276
112
|
};
|
|
277
113
|
}
|
|
@@ -279,6 +115,7 @@ declare class NetworkError extends APIError {
|
|
|
279
115
|
* Error thrown when an error is not known or cannot be categorized
|
|
280
116
|
*/
|
|
281
117
|
declare class UnknownError extends Error {
|
|
118
|
+
/** The underlying error that caused this unknown error */
|
|
282
119
|
cause?: Error;
|
|
283
120
|
/**
|
|
284
121
|
* Constructor for the UnknownError class
|
|
@@ -292,7 +129,9 @@ declare class UnknownError extends Error {
|
|
|
292
129
|
* Error thrown for user input validation failures
|
|
293
130
|
*/
|
|
294
131
|
declare class ValidationError extends Error {
|
|
132
|
+
/** The name of the field that failed validation */
|
|
295
133
|
field?: string;
|
|
134
|
+
/** The invalid value that was provided */
|
|
296
135
|
value?: unknown;
|
|
297
136
|
/**
|
|
298
137
|
* Constructor for the ValidationError class
|
|
@@ -305,7 +144,7 @@ declare class ValidationError extends Error {
|
|
|
305
144
|
}
|
|
306
145
|
|
|
307
146
|
/**
|
|
308
|
-
* Generated by orval v8.
|
|
147
|
+
* Generated by orval v8.5.1 🍺
|
|
309
148
|
* Do not edit manually.
|
|
310
149
|
* Openfort API
|
|
311
150
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -2383,6 +2222,8 @@ interface SmartAccountData {
|
|
|
2383
2222
|
deployedTx?: string;
|
|
2384
2223
|
deployedAt?: number;
|
|
2385
2224
|
active: boolean;
|
|
2225
|
+
ownerAddress?: string;
|
|
2226
|
+
chainId?: number;
|
|
2386
2227
|
}
|
|
2387
2228
|
interface PasskeyEnv {
|
|
2388
2229
|
name?: string;
|
|
@@ -2395,7 +2236,7 @@ interface RecoveryMethodDetails {
|
|
|
2395
2236
|
passkeyEnv?: PasskeyEnv;
|
|
2396
2237
|
}
|
|
2397
2238
|
/**
|
|
2398
|
-
* Indicates key custody: "Developer" for
|
|
2239
|
+
* Indicates key custody: "Developer" for TEE managed keys, "User" for user-managed keys.
|
|
2399
2240
|
*/
|
|
2400
2241
|
type PregenerateAccountResponseCustody = typeof PregenerateAccountResponseCustody[keyof typeof PregenerateAccountResponseCustody];
|
|
2401
2242
|
declare const PregenerateAccountResponseCustody: {
|
|
@@ -2415,7 +2256,7 @@ interface PregenerateAccountResponse {
|
|
|
2415
2256
|
smartAccount?: SmartAccountData;
|
|
2416
2257
|
recoveryMethod?: string;
|
|
2417
2258
|
recoveryMethodDetails?: RecoveryMethodDetails;
|
|
2418
|
-
/** Indicates key custody: "Developer" for
|
|
2259
|
+
/** Indicates key custody: "Developer" for TEE managed keys, "User" for user-managed keys. */
|
|
2419
2260
|
custody: PregenerateAccountResponseCustody;
|
|
2420
2261
|
/** The recovery share for the user's embedded signer.
|
|
2421
2262
|
This should be stored securely and provided to the user for account recovery. */
|
|
@@ -3684,94 +3525,6 @@ interface CreateEmbeddedRequest {
|
|
|
3684
3525
|
/** The type of smart account that will be created (e.g. UpgradeableV6, UpgradeableV5, Calibur, Simple). Defaults to UpgradeableV6 in mainnets. Must support EIP-7702 for Delegated Accounts. */
|
|
3685
3526
|
implementationType?: string;
|
|
3686
3527
|
}
|
|
3687
|
-
/**
|
|
3688
|
-
* The type of object.
|
|
3689
|
-
*/
|
|
3690
|
-
type BackendWalletResponseObject = typeof BackendWalletResponseObject[keyof typeof BackendWalletResponseObject];
|
|
3691
|
-
declare const BackendWalletResponseObject: {
|
|
3692
|
-
readonly backendWallet: "backendWallet";
|
|
3693
|
-
};
|
|
3694
|
-
/**
|
|
3695
|
-
* The chain type the wallet is associated with.
|
|
3696
|
-
*/
|
|
3697
|
-
type BackendWalletResponseChainType = typeof BackendWalletResponseChainType[keyof typeof BackendWalletResponseChainType];
|
|
3698
|
-
declare const BackendWalletResponseChainType: {
|
|
3699
|
-
readonly EVM: "EVM";
|
|
3700
|
-
readonly SVM: "SVM";
|
|
3701
|
-
};
|
|
3702
|
-
/**
|
|
3703
|
-
* Key custody: always "Developer" for backend wallets (server-managed keys in TEE).
|
|
3704
|
-
*/
|
|
3705
|
-
type BackendWalletResponseCustody = typeof BackendWalletResponseCustody[keyof typeof BackendWalletResponseCustody];
|
|
3706
|
-
declare const BackendWalletResponseCustody: {
|
|
3707
|
-
readonly Developer: "Developer";
|
|
3708
|
-
};
|
|
3709
|
-
/**
|
|
3710
|
-
* Backend wallet details response.
|
|
3711
|
-
*/
|
|
3712
|
-
interface BackendWalletResponse {
|
|
3713
|
-
/** The type of object. */
|
|
3714
|
-
object: BackendWalletResponseObject;
|
|
3715
|
-
/** The wallet ID (starts with `acc_`). */
|
|
3716
|
-
id: string;
|
|
3717
|
-
/** The wallet address. */
|
|
3718
|
-
address: string;
|
|
3719
|
-
/** The chain type the wallet is associated with. */
|
|
3720
|
-
chainType: BackendWalletResponseChainType;
|
|
3721
|
-
/** Key custody: always "Developer" for backend wallets (server-managed keys in TEE). */
|
|
3722
|
-
custody: BackendWalletResponseCustody;
|
|
3723
|
-
/** Creation timestamp (Unix epoch seconds). */
|
|
3724
|
-
createdAt: number;
|
|
3725
|
-
/** Last updated timestamp (Unix epoch seconds). */
|
|
3726
|
-
updatedAt: number;
|
|
3727
|
-
}
|
|
3728
|
-
/**
|
|
3729
|
-
* The type of object.
|
|
3730
|
-
*/
|
|
3731
|
-
type BackendWalletListResponseObject = typeof BackendWalletListResponseObject[keyof typeof BackendWalletListResponseObject];
|
|
3732
|
-
declare const BackendWalletListResponseObject: {
|
|
3733
|
-
readonly list: "list";
|
|
3734
|
-
};
|
|
3735
|
-
/**
|
|
3736
|
-
* List of backend wallets response.
|
|
3737
|
-
*/
|
|
3738
|
-
interface BackendWalletListResponse {
|
|
3739
|
-
/** The type of object. */
|
|
3740
|
-
object: BackendWalletListResponseObject;
|
|
3741
|
-
/** API endpoint URL. */
|
|
3742
|
-
url: string;
|
|
3743
|
-
/** List of backend wallets. */
|
|
3744
|
-
data: BackendWalletResponse[];
|
|
3745
|
-
/** Starting index. */
|
|
3746
|
-
start: number;
|
|
3747
|
-
/** Ending index. */
|
|
3748
|
-
end: number;
|
|
3749
|
-
/** Total number of wallets. */
|
|
3750
|
-
total: number;
|
|
3751
|
-
}
|
|
3752
|
-
/**
|
|
3753
|
-
* Filter by chain type.
|
|
3754
|
-
*/
|
|
3755
|
-
type BackendWalletListQueriesChainType = typeof BackendWalletListQueriesChainType[keyof typeof BackendWalletListQueriesChainType];
|
|
3756
|
-
declare const BackendWalletListQueriesChainType: {
|
|
3757
|
-
readonly EVM: "EVM";
|
|
3758
|
-
readonly SVM: "SVM";
|
|
3759
|
-
};
|
|
3760
|
-
/**
|
|
3761
|
-
* Query parameters for listing backend wallets.
|
|
3762
|
-
*/
|
|
3763
|
-
interface BackendWalletListQueries {
|
|
3764
|
-
/** Number of wallets to return (default: 10, max: 100). */
|
|
3765
|
-
limit?: number;
|
|
3766
|
-
/** Number of wallets to skip (for pagination). */
|
|
3767
|
-
skip?: number;
|
|
3768
|
-
/** Filter by chain type. */
|
|
3769
|
-
chainType?: BackendWalletListQueriesChainType;
|
|
3770
|
-
/** Filter by wallet address. */
|
|
3771
|
-
address?: string;
|
|
3772
|
-
/** Filter by associated wallet ID (starts with `pla_`). */
|
|
3773
|
-
wallet?: string;
|
|
3774
|
-
}
|
|
3775
3528
|
/**
|
|
3776
3529
|
* The type of object.
|
|
3777
3530
|
*/
|
|
@@ -3797,6 +3550,8 @@ interface CreateBackendWalletResponse {
|
|
|
3797
3550
|
id: string;
|
|
3798
3551
|
/** The wallet address generated for this account. */
|
|
3799
3552
|
address: string;
|
|
3553
|
+
/** The wallet ID */
|
|
3554
|
+
walletId: string;
|
|
3800
3555
|
/** The chain type the wallet is associated with. */
|
|
3801
3556
|
chainType: CreateBackendWalletResponseChainType;
|
|
3802
3557
|
/** Creation timestamp (Unix epoch seconds). */
|
|
@@ -3822,155 +3577,48 @@ interface CreateBackendWalletRequest {
|
|
|
3822
3577
|
/**
|
|
3823
3578
|
* The type of object.
|
|
3824
3579
|
*/
|
|
3825
|
-
type
|
|
3826
|
-
declare const
|
|
3580
|
+
type DeleteBackendWalletResponseObject = typeof DeleteBackendWalletResponseObject[keyof typeof DeleteBackendWalletResponseObject];
|
|
3581
|
+
declare const DeleteBackendWalletResponseObject: {
|
|
3827
3582
|
readonly backendWallet: "backendWallet";
|
|
3828
3583
|
};
|
|
3829
3584
|
/**
|
|
3830
|
-
*
|
|
3585
|
+
* Response from deleting a backend wallet.
|
|
3831
3586
|
*/
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3587
|
+
interface DeleteBackendWalletResponse {
|
|
3588
|
+
/** The type of object. */
|
|
3589
|
+
object: DeleteBackendWalletResponseObject;
|
|
3590
|
+
/** The deleted wallet ID. */
|
|
3591
|
+
id: string;
|
|
3592
|
+
/** Whether the wallet was deleted. */
|
|
3593
|
+
deleted: boolean;
|
|
3594
|
+
}
|
|
3837
3595
|
/**
|
|
3838
|
-
*
|
|
3596
|
+
* The type of object.
|
|
3839
3597
|
*/
|
|
3840
|
-
type
|
|
3841
|
-
declare const
|
|
3842
|
-
readonly
|
|
3598
|
+
type SignResponseObject = typeof SignResponseObject[keyof typeof SignResponseObject];
|
|
3599
|
+
declare const SignResponseObject: {
|
|
3600
|
+
readonly signature: "signature";
|
|
3843
3601
|
};
|
|
3844
3602
|
/**
|
|
3845
|
-
*
|
|
3603
|
+
* Response from signing data via backend wallet.
|
|
3846
3604
|
*/
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3605
|
+
interface SignResponse {
|
|
3606
|
+
/** The type of object. */
|
|
3607
|
+
object: SignResponseObject;
|
|
3608
|
+
/** The account ID that signed the data (starts with `acc_`). */
|
|
3609
|
+
account: string;
|
|
3610
|
+
/** The signature bytes (hex-encoded). */
|
|
3611
|
+
signature: string;
|
|
3612
|
+
}
|
|
3852
3613
|
/**
|
|
3853
|
-
*
|
|
3614
|
+
* Request to sign data via backend wallet.
|
|
3854
3615
|
*/
|
|
3855
|
-
|
|
3856
|
-
/** The
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
chainType: UpdateBackendWalletResponseDelegatedAccountChainChainType;
|
|
3860
|
-
};
|
|
3616
|
+
interface SignRequest {
|
|
3617
|
+
/** The data to sign (hex-encoded transaction data or message hash). */
|
|
3618
|
+
data: string;
|
|
3619
|
+
}
|
|
3861
3620
|
/**
|
|
3862
|
-
*
|
|
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
|
-
}
|
|
3929
|
-
/**
|
|
3930
|
-
* The type of object.
|
|
3931
|
-
*/
|
|
3932
|
-
type DeleteBackendWalletResponseObject = typeof DeleteBackendWalletResponseObject[keyof typeof DeleteBackendWalletResponseObject];
|
|
3933
|
-
declare const DeleteBackendWalletResponseObject: {
|
|
3934
|
-
readonly backendWallet: "backendWallet";
|
|
3935
|
-
};
|
|
3936
|
-
/**
|
|
3937
|
-
* Response from deleting a backend wallet.
|
|
3938
|
-
*/
|
|
3939
|
-
interface DeleteBackendWalletResponse {
|
|
3940
|
-
/** The type of object. */
|
|
3941
|
-
object: DeleteBackendWalletResponseObject;
|
|
3942
|
-
/** The deleted wallet ID. */
|
|
3943
|
-
id: string;
|
|
3944
|
-
/** Whether the wallet was deleted. */
|
|
3945
|
-
deleted: boolean;
|
|
3946
|
-
}
|
|
3947
|
-
/**
|
|
3948
|
-
* The type of object.
|
|
3949
|
-
*/
|
|
3950
|
-
type SignResponseObject = typeof SignResponseObject[keyof typeof SignResponseObject];
|
|
3951
|
-
declare const SignResponseObject: {
|
|
3952
|
-
readonly signature: "signature";
|
|
3953
|
-
};
|
|
3954
|
-
/**
|
|
3955
|
-
* Response from signing data via backend wallet.
|
|
3956
|
-
*/
|
|
3957
|
-
interface SignResponse {
|
|
3958
|
-
/** The type of object. */
|
|
3959
|
-
object: SignResponseObject;
|
|
3960
|
-
/** The account ID that signed the data (starts with `acc_`). */
|
|
3961
|
-
account: string;
|
|
3962
|
-
/** The signature bytes (hex-encoded). */
|
|
3963
|
-
signature: string;
|
|
3964
|
-
}
|
|
3965
|
-
/**
|
|
3966
|
-
* Request to sign data via backend wallet.
|
|
3967
|
-
*/
|
|
3968
|
-
interface SignRequest {
|
|
3969
|
-
/** The data to sign (hex-encoded transaction data or message hash). */
|
|
3970
|
-
data: string;
|
|
3971
|
-
}
|
|
3972
|
-
/**
|
|
3973
|
-
* The type of object.
|
|
3621
|
+
* The type of object.
|
|
3974
3622
|
*/
|
|
3975
3623
|
type ExportPrivateKeyResponseObject = typeof ExportPrivateKeyResponseObject[keyof typeof ExportPrivateKeyResponseObject];
|
|
3976
3624
|
declare const ExportPrivateKeyResponseObject: {
|
|
@@ -4019,6 +3667,8 @@ interface ImportPrivateKeyResponse {
|
|
|
4019
3667
|
id: string;
|
|
4020
3668
|
/** The wallet address derived from the imported private key. */
|
|
4021
3669
|
address: string;
|
|
3670
|
+
/** The wallet ID */
|
|
3671
|
+
walletId: string;
|
|
4022
3672
|
/** The chain type the wallet is associated with. */
|
|
4023
3673
|
chainType?: ImportPrivateKeyResponseChainType;
|
|
4024
3674
|
/** Creation timestamp (Unix epoch seconds). */
|
|
@@ -4148,7 +3798,7 @@ interface RotateWalletSecretRequest {
|
|
|
4148
3798
|
newKeyId?: string;
|
|
4149
3799
|
}
|
|
4150
3800
|
/**
|
|
4151
|
-
* Indicates key custody: "Developer" for
|
|
3801
|
+
* Indicates key custody: "Developer" for TEE managed keys, "User" for user-managed keys.
|
|
4152
3802
|
*/
|
|
4153
3803
|
type AccountV2ResponseCustody = typeof AccountV2ResponseCustody[keyof typeof AccountV2ResponseCustody];
|
|
4154
3804
|
declare const AccountV2ResponseCustody: {
|
|
@@ -4168,7 +3818,7 @@ interface AccountV2Response {
|
|
|
4168
3818
|
smartAccount?: SmartAccountData;
|
|
4169
3819
|
recoveryMethod?: string;
|
|
4170
3820
|
recoveryMethodDetails?: RecoveryMethodDetails;
|
|
4171
|
-
/** Indicates key custody: "Developer" for
|
|
3821
|
+
/** Indicates key custody: "Developer" for TEE managed keys, "User" for user-managed keys. */
|
|
4172
3822
|
custody: AccountV2ResponseCustody;
|
|
4173
3823
|
}
|
|
4174
3824
|
interface BaseEntityListResponseAccountV2Response {
|
|
@@ -4267,7 +3917,7 @@ interface CreateAccountRequestV2 {
|
|
|
4267
3917
|
implementationType?: string;
|
|
4268
3918
|
/** The chain ID. Must be a [supported chain](/development/chains). */
|
|
4269
3919
|
chainId?: number;
|
|
4270
|
-
/** ID of the user this account belongs to (starts with `usr_`).
|
|
3920
|
+
/** ID of the user this account belongs to (starts with `usr_`). Also might take wallet ID (starts with `pla_`) */
|
|
4271
3921
|
user: string;
|
|
4272
3922
|
/** ID of the account (starts with `acc_`) to be linked with. Required for accountType "Smart Account". */
|
|
4273
3923
|
account?: string;
|
|
@@ -4885,10 +4535,6 @@ interface UnlinkEmailRequest {
|
|
|
4885
4535
|
/** The email address of the user. */
|
|
4886
4536
|
email: string;
|
|
4887
4537
|
}
|
|
4888
|
-
interface LoginOIDCRequest {
|
|
4889
|
-
/** The identity token of the user. */
|
|
4890
|
-
identityToken: string;
|
|
4891
|
-
}
|
|
4892
4538
|
interface OAuthResponse {
|
|
4893
4539
|
url: string;
|
|
4894
4540
|
key: string;
|
|
@@ -5610,14 +5256,6 @@ interface JwtKey {
|
|
|
5610
5256
|
interface JwtKeyResponse {
|
|
5611
5257
|
keys: JwtKey[];
|
|
5612
5258
|
}
|
|
5613
|
-
interface AuthenticatedPlayerResponse {
|
|
5614
|
-
/** Player's identifier. */
|
|
5615
|
-
player: AuthPlayerResponse;
|
|
5616
|
-
}
|
|
5617
|
-
interface AuthorizePlayerRequest {
|
|
5618
|
-
/** The authorization code received from the api to authorize the project to use the Ecosystem player. */
|
|
5619
|
-
authorizationCode: string;
|
|
5620
|
-
}
|
|
5621
5259
|
type GetTransactionIntentsParams = {
|
|
5622
5260
|
/**
|
|
5623
5261
|
* Specifies the maximum number of records to return.
|
|
@@ -6145,33 +5783,6 @@ type ListFeeSponsorshipsParams = {
|
|
|
6145
5783
|
*/
|
|
6146
5784
|
deleted?: boolean;
|
|
6147
5785
|
};
|
|
6148
|
-
type ListBackendWalletsParams = {
|
|
6149
|
-
/**
|
|
6150
|
-
* Number of wallets to return (default: 10, max: 100).
|
|
6151
|
-
*/
|
|
6152
|
-
limit?: number;
|
|
6153
|
-
/**
|
|
6154
|
-
* Number of wallets to skip (for pagination).
|
|
6155
|
-
*/
|
|
6156
|
-
skip?: number;
|
|
6157
|
-
/**
|
|
6158
|
-
* Filter by chain type.
|
|
6159
|
-
*/
|
|
6160
|
-
chainType?: ListBackendWalletsChainType;
|
|
6161
|
-
/**
|
|
6162
|
-
* Filter by wallet address.
|
|
6163
|
-
*/
|
|
6164
|
-
address?: string;
|
|
6165
|
-
/**
|
|
6166
|
-
* Filter by associated wallet ID (starts with `pla_`).
|
|
6167
|
-
*/
|
|
6168
|
-
wallet?: string;
|
|
6169
|
-
};
|
|
6170
|
-
type ListBackendWalletsChainType = typeof ListBackendWalletsChainType[keyof typeof ListBackendWalletsChainType];
|
|
6171
|
-
declare const ListBackendWalletsChainType: {
|
|
6172
|
-
readonly EVM: "EVM";
|
|
6173
|
-
readonly SVM: "SVM";
|
|
6174
|
-
};
|
|
6175
5786
|
type GetAccountsV2Params = {
|
|
6176
5787
|
/**
|
|
6177
5788
|
* Specifies the maximum number of records to return.
|
|
@@ -6337,7 +5948,7 @@ declare const openfortApiClient: <T>(config: AxiosRequestConfig, options?: Reque
|
|
|
6337
5948
|
declare const getConfig: () => OpenfortClientOptions | undefined;
|
|
6338
5949
|
|
|
6339
5950
|
/**
|
|
6340
|
-
* Generated by orval v8.
|
|
5951
|
+
* Generated by orval v8.5.1 🍺
|
|
6341
5952
|
* Do not edit manually.
|
|
6342
5953
|
* Openfort API
|
|
6343
5954
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -6389,7 +6000,7 @@ type GetAccountResult = NonNullable<Awaited<ReturnType<typeof getAccount>>>;
|
|
|
6389
6000
|
type DisableAccountResult = NonNullable<Awaited<ReturnType<typeof disableAccount>>>;
|
|
6390
6001
|
|
|
6391
6002
|
/**
|
|
6392
|
-
* Generated by orval v8.
|
|
6003
|
+
* Generated by orval v8.5.1 🍺
|
|
6393
6004
|
* Do not edit manually.
|
|
6394
6005
|
* Openfort API
|
|
6395
6006
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -6445,7 +6056,7 @@ type RemoveAccountResult = NonNullable<Awaited<ReturnType<typeof removeAccount>>
|
|
|
6445
6056
|
type SwitchChainV2Result = NonNullable<Awaited<ReturnType<typeof switchChainV2>>>;
|
|
6446
6057
|
|
|
6447
6058
|
/**
|
|
6448
|
-
* Generated by orval v8.
|
|
6059
|
+
* Generated by orval v8.5.1 🍺
|
|
6449
6060
|
* Do not edit manually.
|
|
6450
6061
|
* Openfort API
|
|
6451
6062
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -6541,7 +6152,6 @@ declare const deleteAuthPlayer: (id: string, options?: SecondParameter$m<typeof
|
|
|
6541
6152
|
* @summary Verify auth token.
|
|
6542
6153
|
*/
|
|
6543
6154
|
declare const verifyAuthToken: (params: VerifyAuthTokenParams, options?: SecondParameter$m<typeof openfortApiClient<AuthSessionResponse>>) => Promise<AuthSessionResponse>;
|
|
6544
|
-
declare const authorize: (authorizePlayerRequest: AuthorizePlayerRequest, options?: SecondParameter$m<typeof openfortApiClient<AuthPlayerResponse | AuthenticatedPlayerResponse>>) => Promise<AuthPlayerResponse | AuthenticatedPlayerResponse>;
|
|
6545
6155
|
type VerifyOAuthTokenResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthToken>>>;
|
|
6546
6156
|
type ListOAuthConfigResult = NonNullable<Awaited<ReturnType<typeof listOAuthConfig>>>;
|
|
6547
6157
|
type CreateOAuthConfigResult = NonNullable<Awaited<ReturnType<typeof createOAuthConfig>>>;
|
|
@@ -6557,10 +6167,9 @@ type GetAuthPlayersResult = NonNullable<Awaited<ReturnType<typeof getAuthPlayers
|
|
|
6557
6167
|
type GetAuthPlayerResult = NonNullable<Awaited<ReturnType<typeof getAuthPlayer>>>;
|
|
6558
6168
|
type DeleteAuthPlayerResult = NonNullable<Awaited<ReturnType<typeof deleteAuthPlayer>>>;
|
|
6559
6169
|
type VerifyAuthTokenResult = NonNullable<Awaited<ReturnType<typeof verifyAuthToken>>>;
|
|
6560
|
-
type AuthorizeResult = NonNullable<Awaited<ReturnType<typeof authorize>>>;
|
|
6561
6170
|
|
|
6562
6171
|
/**
|
|
6563
|
-
* Generated by orval v8.
|
|
6172
|
+
* Generated by orval v8.5.1 🍺
|
|
6564
6173
|
* Do not edit manually.
|
|
6565
6174
|
* Openfort Auth
|
|
6566
6175
|
* API Reference for Openfort Auth
|
|
@@ -8368,7 +7977,7 @@ declare namespace openfortAuth_schemas {
|
|
|
8368
7977
|
}
|
|
8369
7978
|
|
|
8370
7979
|
/**
|
|
8371
|
-
* Generated by orval v8.
|
|
7980
|
+
* Generated by orval v8.5.1 🍺
|
|
8372
7981
|
* Do not edit manually.
|
|
8373
7982
|
* Openfort Auth
|
|
8374
7983
|
* API Reference for Openfort Auth
|
|
@@ -8719,7 +8328,7 @@ declare namespace authV2 {
|
|
|
8719
8328
|
}
|
|
8720
8329
|
|
|
8721
8330
|
/**
|
|
8722
|
-
* Generated by orval v8.
|
|
8331
|
+
* Generated by orval v8.5.1 🍺
|
|
8723
8332
|
* Do not edit manually.
|
|
8724
8333
|
* Openfort API
|
|
8725
8334
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -8787,11 +8396,6 @@ declare const resetPassword: (resetPasswordRequest: ResetPasswordRequest, option
|
|
|
8787
8396
|
declare const linkEmail: (loginRequest: LoginRequest, options?: SecondParameter$k<typeof openfortApiClient<AuthPlayerResponse | ActionRequiredResponse>>) => Promise<AuthPlayerResponse | ActionRequiredResponse>;
|
|
8788
8397
|
declare const unlinkEmail: (unlinkEmailRequest: UnlinkEmailRequest, options?: SecondParameter$k<typeof openfortApiClient<AuthPlayerResponse>>) => Promise<AuthPlayerResponse>;
|
|
8789
8398
|
/**
|
|
8790
|
-
* Authenticate a player from an identity token.
|
|
8791
|
-
* @summary OIDC Identity token.
|
|
8792
|
-
*/
|
|
8793
|
-
declare const loginOIDC: (loginOIDCRequest: LoginOIDCRequest, options?: SecondParameter$k<typeof openfortApiClient<AuthResponse>>) => Promise<AuthResponse>;
|
|
8794
|
-
/**
|
|
8795
8399
|
* @summary Initialize OAuth.
|
|
8796
8400
|
*/
|
|
8797
8401
|
declare const initOAuth: (oAuthInitRequest: OAuthInitRequest, options?: SecondParameter$k<typeof openfortApiClient<OAuthResponse>>) => Promise<OAuthResponse>;
|
|
@@ -8846,7 +8450,6 @@ type RequestResetPasswordResult = NonNullable<Awaited<ReturnType<typeof requestR
|
|
|
8846
8450
|
type ResetPasswordResult = NonNullable<Awaited<ReturnType<typeof resetPassword>>>;
|
|
8847
8451
|
type LinkEmailResult = NonNullable<Awaited<ReturnType<typeof linkEmail>>>;
|
|
8848
8452
|
type UnlinkEmailResult = NonNullable<Awaited<ReturnType<typeof unlinkEmail>>>;
|
|
8849
|
-
type LoginOIDCResult = NonNullable<Awaited<ReturnType<typeof loginOIDC>>>;
|
|
8850
8453
|
type InitOAuthResult = NonNullable<Awaited<ReturnType<typeof initOAuth>>>;
|
|
8851
8454
|
type LinkOAuthResult = NonNullable<Awaited<ReturnType<typeof linkOAuth>>>;
|
|
8852
8455
|
type LinkThirdPartyResult = NonNullable<Awaited<ReturnType<typeof linkThirdParty>>>;
|
|
@@ -8859,7 +8462,7 @@ type GetJwksResult = NonNullable<Awaited<ReturnType<typeof getJwks>>>;
|
|
|
8859
8462
|
type MeResult = NonNullable<Awaited<ReturnType<typeof me>>>;
|
|
8860
8463
|
|
|
8861
8464
|
/**
|
|
8862
|
-
* Generated by orval v8.
|
|
8465
|
+
* Generated by orval v8.5.1 🍺
|
|
8863
8466
|
* Do not edit manually.
|
|
8864
8467
|
* Openfort API
|
|
8865
8468
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -8868,13 +8471,6 @@ type MeResult = NonNullable<Awaited<ReturnType<typeof me>>>;
|
|
|
8868
8471
|
|
|
8869
8472
|
type SecondParameter$j<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
8870
8473
|
/**
|
|
8871
|
-
* List backend wallets.
|
|
8872
|
-
|
|
8873
|
-
Returns a paginated list of backend wallets for the project.
|
|
8874
|
-
* @summary List backend wallets.
|
|
8875
|
-
*/
|
|
8876
|
-
declare const listBackendWallets: (params?: ListBackendWalletsParams, options?: SecondParameter$j<typeof openfortApiClient<BackendWalletListResponse>>) => Promise<BackendWalletListResponse>;
|
|
8877
|
-
/**
|
|
8878
8474
|
* Create a new backend wallet account.
|
|
8879
8475
|
|
|
8880
8476
|
Generates a new keypair securely in the backend wallet system.
|
|
@@ -8883,21 +8479,6 @@ The private key is stored encrypted and never exposed.
|
|
|
8883
8479
|
*/
|
|
8884
8480
|
declare const createBackendWallet: (createBackendWalletRequest: CreateBackendWalletRequest, options?: SecondParameter$j<typeof openfortApiClient<CreateBackendWalletResponse>>) => Promise<CreateBackendWalletResponse>;
|
|
8885
8481
|
/**
|
|
8886
|
-
* Get backend wallet details.
|
|
8887
|
-
|
|
8888
|
-
Returns details for a specific backend wallet.
|
|
8889
|
-
* @summary Get backend wallet.
|
|
8890
|
-
*/
|
|
8891
|
-
declare const getBackendWallet: (id: string, options?: SecondParameter$j<typeof openfortApiClient<BackendWalletResponse>>) => Promise<BackendWalletResponse>;
|
|
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
|
-
/**
|
|
8901
8482
|
* Delete a backend wallet.
|
|
8902
8483
|
|
|
8903
8484
|
Permanently deletes a backend wallet and its associated private key.
|
|
@@ -8967,10 +8548,7 @@ This proves possession of the new private key without transmitting it.
|
|
|
8967
8548
|
* @summary Rotate wallet secret.
|
|
8968
8549
|
*/
|
|
8969
8550
|
declare const rotateWalletSecret: (rotateWalletSecretRequest: RotateWalletSecretRequest, options?: SecondParameter$j<typeof openfortApiClient<RotateWalletSecretResponse>>) => Promise<RotateWalletSecretResponse>;
|
|
8970
|
-
type ListBackendWalletsResult = NonNullable<Awaited<ReturnType<typeof listBackendWallets>>>;
|
|
8971
8551
|
type CreateBackendWalletResult = NonNullable<Awaited<ReturnType<typeof createBackendWallet>>>;
|
|
8972
|
-
type GetBackendWalletResult = NonNullable<Awaited<ReturnType<typeof getBackendWallet>>>;
|
|
8973
|
-
type UpdateBackendWalletResult = NonNullable<Awaited<ReturnType<typeof updateBackendWallet>>>;
|
|
8974
8552
|
type DeleteBackendWalletResult = NonNullable<Awaited<ReturnType<typeof deleteBackendWallet>>>;
|
|
8975
8553
|
type SignResult = NonNullable<Awaited<ReturnType<typeof sign>>>;
|
|
8976
8554
|
type ExportPrivateKeyResult = NonNullable<Awaited<ReturnType<typeof exportPrivateKey>>>;
|
|
@@ -8980,7 +8558,7 @@ type RevokeWalletSecretResult = NonNullable<Awaited<ReturnType<typeof revokeWall
|
|
|
8980
8558
|
type RotateWalletSecretResult = NonNullable<Awaited<ReturnType<typeof rotateWalletSecret>>>;
|
|
8981
8559
|
|
|
8982
8560
|
/**
|
|
8983
|
-
* Generated by orval v8.
|
|
8561
|
+
* Generated by orval v8.5.1 🍺
|
|
8984
8562
|
* Do not edit manually.
|
|
8985
8563
|
* Openfort API
|
|
8986
8564
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9029,7 +8607,7 @@ type DeleteContractResult = NonNullable<Awaited<ReturnType<typeof deleteContract
|
|
|
9029
8607
|
type ReadContractResult = NonNullable<Awaited<ReturnType<typeof readContract>>>;
|
|
9030
8608
|
|
|
9031
8609
|
/**
|
|
9032
|
-
* Generated by orval v8.
|
|
8610
|
+
* Generated by orval v8.5.1 🍺
|
|
9033
8611
|
* Do not edit manually.
|
|
9034
8612
|
* Openfort API
|
|
9035
8613
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9065,7 +8643,7 @@ type GetEventResult = NonNullable<Awaited<ReturnType<typeof getEvent>>>;
|
|
|
9065
8643
|
type DeleteEventResult = NonNullable<Awaited<ReturnType<typeof deleteEvent>>>;
|
|
9066
8644
|
|
|
9067
8645
|
/**
|
|
9068
|
-
* Generated by orval v8.
|
|
8646
|
+
* Generated by orval v8.5.1 🍺
|
|
9069
8647
|
* Do not edit manually.
|
|
9070
8648
|
* Openfort API
|
|
9071
8649
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9135,7 +8713,7 @@ type EnableFeeSponsorshipResult = NonNullable<Awaited<ReturnType<typeof enableFe
|
|
|
9135
8713
|
type DisableFeeSponsorshipResult = NonNullable<Awaited<ReturnType<typeof disableFeeSponsorship>>>;
|
|
9136
8714
|
|
|
9137
8715
|
/**
|
|
9138
|
-
* Generated by orval v8.
|
|
8716
|
+
* Generated by orval v8.5.1 🍺
|
|
9139
8717
|
* Do not edit manually.
|
|
9140
8718
|
* Openfort API
|
|
9141
8719
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9187,7 +8765,7 @@ type GetForwarderContractResult = NonNullable<Awaited<ReturnType<typeof getForwa
|
|
|
9187
8765
|
type DeleteForwarderContractResult = NonNullable<Awaited<ReturnType<typeof deleteForwarderContract>>>;
|
|
9188
8766
|
|
|
9189
8767
|
/**
|
|
9190
|
-
* Generated by orval v8.
|
|
8768
|
+
* Generated by orval v8.5.1 🍺
|
|
9191
8769
|
* Do not edit manually.
|
|
9192
8770
|
* Openfort API
|
|
9193
8771
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9266,7 +8844,7 @@ type GetGasPolicyBalanceLegacyResult = NonNullable<Awaited<ReturnType<typeof get
|
|
|
9266
8844
|
type CreateGasPolicyWithdrawalLegacyResult = NonNullable<Awaited<ReturnType<typeof createGasPolicyWithdrawalLegacy>>>;
|
|
9267
8845
|
|
|
9268
8846
|
/**
|
|
9269
|
-
* Generated by orval v8.
|
|
8847
|
+
* Generated by orval v8.5.1 🍺
|
|
9270
8848
|
* Do not edit manually.
|
|
9271
8849
|
* Openfort API
|
|
9272
8850
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9301,7 +8879,7 @@ type UpdateGasPolicyRuleLegacyResult = NonNullable<Awaited<ReturnType<typeof upd
|
|
|
9301
8879
|
type DeleteGasPolicyRuleLegacyResult = NonNullable<Awaited<ReturnType<typeof deleteGasPolicyRuleLegacy>>>;
|
|
9302
8880
|
|
|
9303
8881
|
/**
|
|
9304
|
-
* Generated by orval v8.
|
|
8882
|
+
* Generated by orval v8.5.1 🍺
|
|
9305
8883
|
* Do not edit manually.
|
|
9306
8884
|
* Openfort API
|
|
9307
8885
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9313,7 +8891,7 @@ declare const query: (queryBody: unknown, options?: SecondParameter$c<typeof ope
|
|
|
9313
8891
|
type QueryResult = NonNullable<Awaited<ReturnType<typeof query>>>;
|
|
9314
8892
|
|
|
9315
8893
|
/**
|
|
9316
|
-
* Generated by orval v8.
|
|
8894
|
+
* Generated by orval v8.5.1 🍺
|
|
9317
8895
|
* Do not edit manually.
|
|
9318
8896
|
* Openfort API
|
|
9319
8897
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9333,7 +8911,7 @@ type GetProjectLogsResult = NonNullable<Awaited<ReturnType<typeof getProjectLogs
|
|
|
9333
8911
|
type GetWebhookLogsByProjectIdResult = NonNullable<Awaited<ReturnType<typeof getWebhookLogsByProjectId>>>;
|
|
9334
8912
|
|
|
9335
8913
|
/**
|
|
9336
|
-
* Generated by orval v8.
|
|
8914
|
+
* Generated by orval v8.5.1 🍺
|
|
9337
8915
|
* Do not edit manually.
|
|
9338
8916
|
* Openfort API
|
|
9339
8917
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9364,7 +8942,7 @@ type CreateOnrampSessionResult = NonNullable<Awaited<ReturnType<typeof createOnr
|
|
|
9364
8942
|
type GetOnrampQuoteResult = NonNullable<Awaited<ReturnType<typeof getOnrampQuote>>>;
|
|
9365
8943
|
|
|
9366
8944
|
/**
|
|
9367
|
-
* Generated by orval v8.
|
|
8945
|
+
* Generated by orval v8.5.1 🍺
|
|
9368
8946
|
* Do not edit manually.
|
|
9369
8947
|
* Openfort API
|
|
9370
8948
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9416,7 +8994,7 @@ type GetPaymasterResult = NonNullable<Awaited<ReturnType<typeof getPaymaster>>>;
|
|
|
9416
8994
|
type DeletePaymasterResult = NonNullable<Awaited<ReturnType<typeof deletePaymaster>>>;
|
|
9417
8995
|
|
|
9418
8996
|
/**
|
|
9419
|
-
* Generated by orval v8.
|
|
8997
|
+
* Generated by orval v8.5.1 🍺
|
|
9420
8998
|
* Do not edit manually.
|
|
9421
8999
|
* Openfort API
|
|
9422
9000
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9475,7 +9053,7 @@ type RequestTransferAccountOwnershipResult = NonNullable<Awaited<ReturnType<type
|
|
|
9475
9053
|
type CancelTransferAccountOwnershipResult = NonNullable<Awaited<ReturnType<typeof cancelTransferAccountOwnership>>>;
|
|
9476
9054
|
|
|
9477
9055
|
/**
|
|
9478
|
-
* Generated by orval v8.
|
|
9056
|
+
* Generated by orval v8.5.1 🍺
|
|
9479
9057
|
* Do not edit manually.
|
|
9480
9058
|
* Openfort API
|
|
9481
9059
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9522,7 +9100,7 @@ type DeletePolicyV2Result = NonNullable<Awaited<ReturnType<typeof deletePolicyV2
|
|
|
9522
9100
|
type EvaluatePolicyV2Result = NonNullable<Awaited<ReturnType<typeof evaluatePolicyV2>>>;
|
|
9523
9101
|
|
|
9524
9102
|
/**
|
|
9525
|
-
* Generated by orval v8.
|
|
9103
|
+
* Generated by orval v8.5.1 🍺
|
|
9526
9104
|
* Do not edit manually.
|
|
9527
9105
|
* Openfort API
|
|
9528
9106
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9562,7 +9140,7 @@ type HandleRpcRequestResult = NonNullable<Awaited<ReturnType<typeof handleRpcReq
|
|
|
9562
9140
|
type HandleChainRpcRequestResult = NonNullable<Awaited<ReturnType<typeof handleChainRpcRequest>>>;
|
|
9563
9141
|
|
|
9564
9142
|
/**
|
|
9565
|
-
* Generated by orval v8.
|
|
9143
|
+
* Generated by orval v8.5.1 🍺
|
|
9566
9144
|
* Do not edit manually.
|
|
9567
9145
|
* Openfort API
|
|
9568
9146
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9604,7 +9182,7 @@ type SignatureSessionResult = NonNullable<Awaited<ReturnType<typeof signatureSes
|
|
|
9604
9182
|
type GetSessionResult = NonNullable<Awaited<ReturnType<typeof getSession>>>;
|
|
9605
9183
|
|
|
9606
9184
|
/**
|
|
9607
|
-
* Generated by orval v8.
|
|
9185
|
+
* Generated by orval v8.5.1 🍺
|
|
9608
9186
|
* Do not edit manually.
|
|
9609
9187
|
* Openfort API
|
|
9610
9188
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9663,7 +9241,7 @@ type DeleteDeveloperAccountResult = NonNullable<Awaited<ReturnType<typeof delete
|
|
|
9663
9241
|
type GetVerificationPayloadResult = NonNullable<Awaited<ReturnType<typeof getVerificationPayload>>>;
|
|
9664
9242
|
|
|
9665
9243
|
/**
|
|
9666
|
-
* Generated by orval v8.
|
|
9244
|
+
* Generated by orval v8.5.1 🍺
|
|
9667
9245
|
* Do not edit manually.
|
|
9668
9246
|
* Openfort API
|
|
9669
9247
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9696,7 +9274,7 @@ declare const handleSolanaRpcRequest: (cluster: string, jsonRpcRequest: JsonRpcR
|
|
|
9696
9274
|
type HandleSolanaRpcRequestResult = NonNullable<Awaited<ReturnType<typeof handleSolanaRpcRequest>>>;
|
|
9697
9275
|
|
|
9698
9276
|
/**
|
|
9699
|
-
* Generated by orval v8.
|
|
9277
|
+
* Generated by orval v8.5.1 🍺
|
|
9700
9278
|
* Do not edit manually.
|
|
9701
9279
|
* Openfort API
|
|
9702
9280
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9794,7 +9372,7 @@ type DeleteTriggerResult = NonNullable<Awaited<ReturnType<typeof deleteTrigger>>
|
|
|
9794
9372
|
type TestTriggerResult = NonNullable<Awaited<ReturnType<typeof testTrigger>>>;
|
|
9795
9373
|
|
|
9796
9374
|
/**
|
|
9797
|
-
* Generated by orval v8.
|
|
9375
|
+
* Generated by orval v8.5.1 🍺
|
|
9798
9376
|
* Do not edit manually.
|
|
9799
9377
|
* Openfort API
|
|
9800
9378
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9846,7 +9424,7 @@ type EstimateTransactionIntentCostResult = NonNullable<Awaited<ReturnType<typeof
|
|
|
9846
9424
|
type SignatureResult = NonNullable<Awaited<ReturnType<typeof signature>>>;
|
|
9847
9425
|
|
|
9848
9426
|
/**
|
|
9849
|
-
* Generated by orval v8.
|
|
9427
|
+
* Generated by orval v8.5.1 🍺
|
|
9850
9428
|
* Do not edit manually.
|
|
9851
9429
|
* Openfort API
|
|
9852
9430
|
* Complete Openfort API references and guides can be found at: https://www.openfort.io/docs
|
|
@@ -9907,6 +9485,219 @@ type PregenerateUserV2Result = NonNullable<Awaited<ReturnType<typeof pregenerate
|
|
|
9907
9485
|
type MeV2Result = NonNullable<Awaited<ReturnType<typeof meV2>>>;
|
|
9908
9486
|
type ThirdPartyV2Result = NonNullable<Awaited<ReturnType<typeof thirdPartyV2>>>;
|
|
9909
9487
|
|
|
9488
|
+
/**
|
|
9489
|
+
* @module Wallets/EVM/Types
|
|
9490
|
+
* EVM-specific types for wallet operations
|
|
9491
|
+
*/
|
|
9492
|
+
|
|
9493
|
+
/**
|
|
9494
|
+
* Base EVM account with signing capabilities
|
|
9495
|
+
*/
|
|
9496
|
+
interface EvmAccountBase {
|
|
9497
|
+
/** The account's unique identifier */
|
|
9498
|
+
id: string;
|
|
9499
|
+
/** The account's address */
|
|
9500
|
+
address: Address;
|
|
9501
|
+
/** Account type identifier */
|
|
9502
|
+
custody: 'Developer';
|
|
9503
|
+
/** Wallet ID */
|
|
9504
|
+
walletId: string;
|
|
9505
|
+
}
|
|
9506
|
+
/**
|
|
9507
|
+
* EVM signing methods interface
|
|
9508
|
+
*/
|
|
9509
|
+
interface EvmSigningMethods {
|
|
9510
|
+
/**
|
|
9511
|
+
* Signs a hash and returns the signature
|
|
9512
|
+
* @param parameters - Object containing the hash to sign
|
|
9513
|
+
*/
|
|
9514
|
+
sign(parameters: {
|
|
9515
|
+
hash: Hash;
|
|
9516
|
+
}): Promise<Hex>;
|
|
9517
|
+
/**
|
|
9518
|
+
* Signs a message (EIP-191 personal sign)
|
|
9519
|
+
* @param parameters - Object containing the message to sign
|
|
9520
|
+
*/
|
|
9521
|
+
signMessage(parameters: {
|
|
9522
|
+
message: SignableMessage;
|
|
9523
|
+
}): Promise<Hex>;
|
|
9524
|
+
/**
|
|
9525
|
+
* Signs a transaction
|
|
9526
|
+
* @param transaction - Transaction to sign
|
|
9527
|
+
*/
|
|
9528
|
+
signTransaction(transaction: TransactionSerializable): Promise<Hex>;
|
|
9529
|
+
/**
|
|
9530
|
+
* Signs typed data (EIP-712)
|
|
9531
|
+
* @param parameters - Typed data definition
|
|
9532
|
+
*/
|
|
9533
|
+
signTypedData<const T extends TypedData | Record<string, unknown>, P extends keyof T | 'EIP712Domain' = keyof T>(parameters: TypedDataDefinition<T, P>): Promise<Hex>;
|
|
9534
|
+
}
|
|
9535
|
+
/**
|
|
9536
|
+
* Full EVM server account with all signing capabilities
|
|
9537
|
+
*/
|
|
9538
|
+
type EvmAccount = EvmAccountBase & EvmSigningMethods;
|
|
9539
|
+
/**
|
|
9540
|
+
* Options for creating an EVM account
|
|
9541
|
+
*/
|
|
9542
|
+
interface CreateEvmAccountOptions {
|
|
9543
|
+
/** Wallet ID (starts with pla_). Optional - associates the wallet with a player. */
|
|
9544
|
+
wallet?: string;
|
|
9545
|
+
/** Idempotency key */
|
|
9546
|
+
idempotencyKey?: string;
|
|
9547
|
+
}
|
|
9548
|
+
/**
|
|
9549
|
+
* Options for getting an EVM account
|
|
9550
|
+
*/
|
|
9551
|
+
interface GetEvmAccountOptions {
|
|
9552
|
+
/** Account address */
|
|
9553
|
+
address?: Address;
|
|
9554
|
+
/** Account ID */
|
|
9555
|
+
id?: string;
|
|
9556
|
+
}
|
|
9557
|
+
/**
|
|
9558
|
+
* Options for retrieving linked (delegated) accounts for an EVM address
|
|
9559
|
+
*/
|
|
9560
|
+
interface GetLinkedAccountsOptions {
|
|
9561
|
+
/** The EVM address to look up linked accounts for */
|
|
9562
|
+
address: string;
|
|
9563
|
+
/** The chain ID to filter linked accounts by */
|
|
9564
|
+
chainId: number;
|
|
9565
|
+
}
|
|
9566
|
+
/**
|
|
9567
|
+
* Options for listing EVM accounts
|
|
9568
|
+
*/
|
|
9569
|
+
interface ListEvmAccountsOptions {
|
|
9570
|
+
/** Maximum number of accounts to return (default: 10, max: 100) */
|
|
9571
|
+
limit?: number;
|
|
9572
|
+
/** Number of accounts to skip (for pagination) */
|
|
9573
|
+
skip?: number;
|
|
9574
|
+
}
|
|
9575
|
+
/**
|
|
9576
|
+
* Options for importing an EVM account
|
|
9577
|
+
*/
|
|
9578
|
+
interface ImportEvmAccountOptions {
|
|
9579
|
+
/** Private key as hex string (with or without 0x prefix) */
|
|
9580
|
+
privateKey: string;
|
|
9581
|
+
/** Idempotency key */
|
|
9582
|
+
idempotencyKey?: string;
|
|
9583
|
+
}
|
|
9584
|
+
/**
|
|
9585
|
+
* Options for exporting an EVM account
|
|
9586
|
+
*/
|
|
9587
|
+
interface ExportEvmAccountOptions {
|
|
9588
|
+
/** Account ID (starts with acc_) */
|
|
9589
|
+
id: string;
|
|
9590
|
+
/** Idempotency key */
|
|
9591
|
+
idempotencyKey?: string;
|
|
9592
|
+
}
|
|
9593
|
+
/**
|
|
9594
|
+
* Options for updating an EVM account (e.g., upgrading to Delegated Account)
|
|
9595
|
+
*/
|
|
9596
|
+
interface UpdateEvmAccountOptions {
|
|
9597
|
+
/** WalletId (starts with pla_) */
|
|
9598
|
+
walletId: string;
|
|
9599
|
+
/** Upgrade the account type. Currently only supports "Delegated Account". */
|
|
9600
|
+
accountType?: 'Delegated Account';
|
|
9601
|
+
/** The chain ID. Must be a supported chain. */
|
|
9602
|
+
chainId: number;
|
|
9603
|
+
/** The implementation type for delegation (e.g., "Calibur"). Required when accountType is "Delegated Account". */
|
|
9604
|
+
implementationType?: string;
|
|
9605
|
+
/** The ID of the existing account to upgrade. Required when accountType is "Delegated Account". */
|
|
9606
|
+
accountId?: string;
|
|
9607
|
+
}
|
|
9608
|
+
/**
|
|
9609
|
+
* Options for signing data
|
|
9610
|
+
*/
|
|
9611
|
+
interface SignDataOptions {
|
|
9612
|
+
/** Account ID (starts with acc_) */
|
|
9613
|
+
id: string;
|
|
9614
|
+
/** Data to sign (hex-encoded transaction data or message hash) */
|
|
9615
|
+
data: string;
|
|
9616
|
+
/** Idempotency key */
|
|
9617
|
+
idempotencyKey?: string;
|
|
9618
|
+
}
|
|
9619
|
+
/**
|
|
9620
|
+
* Options for sending a gasless transaction with EIP-7702 delegation
|
|
9621
|
+
*/
|
|
9622
|
+
interface SendTransactionOptions {
|
|
9623
|
+
/** Account ID (starts with acc_) */
|
|
9624
|
+
account: EvmAccount;
|
|
9625
|
+
/** Chain ID to execute on */
|
|
9626
|
+
chainId: number;
|
|
9627
|
+
/** Contract interactions to execute */
|
|
9628
|
+
interactions: Interaction[];
|
|
9629
|
+
/** Policy ID for gas sponsorship (starts with pol_). Optional. */
|
|
9630
|
+
policy?: string;
|
|
9631
|
+
/** Custom RPC URL. If omitted, uses viem's default public RPC for the chain. */
|
|
9632
|
+
rpcUrl?: string;
|
|
9633
|
+
}
|
|
9634
|
+
|
|
9635
|
+
/**
|
|
9636
|
+
* @module Wallets/EVM/Accounts/EvmAccount
|
|
9637
|
+
* Factory function for creating EVM account objects with bound action methods
|
|
9638
|
+
*/
|
|
9639
|
+
|
|
9640
|
+
/**
|
|
9641
|
+
* Raw account data from API response
|
|
9642
|
+
*/
|
|
9643
|
+
interface EvmAccountData {
|
|
9644
|
+
/** Account unique ID */
|
|
9645
|
+
id: string;
|
|
9646
|
+
/** Account address */
|
|
9647
|
+
address: string;
|
|
9648
|
+
/** Wallet ID */
|
|
9649
|
+
walletId: string;
|
|
9650
|
+
}
|
|
9651
|
+
/**
|
|
9652
|
+
* Creates an EVM account object with bound action methods.
|
|
9653
|
+
*
|
|
9654
|
+
* @param data - Raw account data from API
|
|
9655
|
+
* @returns EVM account object with signing methods
|
|
9656
|
+
*/
|
|
9657
|
+
declare function toEvmAccount(data: EvmAccountData): EvmAccount;
|
|
9658
|
+
|
|
9659
|
+
/**
|
|
9660
|
+
* Delegates an EVM account via EIP-7702 and sends a gasless transaction in one call.
|
|
9661
|
+
*
|
|
9662
|
+
* Internally: registers delegation -> fetches EOA nonce via RPC -> hashes and signs
|
|
9663
|
+
* EIP-7702 authorization -> creates transaction intent -> signs and submits if needed.
|
|
9664
|
+
*
|
|
9665
|
+
* @param options - Transaction options including account ID, chain, interactions, and optional policy
|
|
9666
|
+
* @returns The transaction intent response
|
|
9667
|
+
*
|
|
9668
|
+
* @example
|
|
9669
|
+
* ```typescript
|
|
9670
|
+
* const result = await openfort.accounts.evm.backend.sendTransaction({
|
|
9671
|
+
* id: 'acc_...',
|
|
9672
|
+
* chainId: 84532,
|
|
9673
|
+
* interactions: [{ to: '0x...', data: '0x...' }],
|
|
9674
|
+
* policy: 'pol_...',
|
|
9675
|
+
* });
|
|
9676
|
+
* console.log(result.response?.transactionHash);
|
|
9677
|
+
* ```
|
|
9678
|
+
*/
|
|
9679
|
+
declare function sendTransaction$1(options: SendTransactionOptions): Promise<TransactionIntentResponse>;
|
|
9680
|
+
|
|
9681
|
+
/**
|
|
9682
|
+
* Updates an EVM backend wallet.
|
|
9683
|
+
*
|
|
9684
|
+
* Currently supports upgrading an EVM EOA to a Delegated Account (EIP-7702).
|
|
9685
|
+
*
|
|
9686
|
+
* @param options - Update options including account ID and delegation parameters
|
|
9687
|
+
* @returns The updated backend wallet response
|
|
9688
|
+
*
|
|
9689
|
+
* @example
|
|
9690
|
+
* ```typescript
|
|
9691
|
+
* const updated = await openfort.accounts.evm.backend.update({
|
|
9692
|
+
* id: 'acc_...',
|
|
9693
|
+
* accountType: 'Delegated Account',
|
|
9694
|
+
* chain: { chainType: 'EVM', chainId: 8453 },
|
|
9695
|
+
* implementationType: 'Calibur',
|
|
9696
|
+
* });
|
|
9697
|
+
* ```
|
|
9698
|
+
*/
|
|
9699
|
+
declare function update(options: UpdateEvmAccountOptions): Promise<AccountV2Response>;
|
|
9700
|
+
|
|
9910
9701
|
/**
|
|
9911
9702
|
* @module Wallets
|
|
9912
9703
|
* Shared types for wallet functionality
|
|
@@ -9923,11 +9714,6 @@ interface ListAccountsResult<T> {
|
|
|
9923
9714
|
total?: number;
|
|
9924
9715
|
}
|
|
9925
9716
|
|
|
9926
|
-
/**
|
|
9927
|
-
* @module Wallets/EVM/EvmClient
|
|
9928
|
-
* Main client for EVM wallet operations
|
|
9929
|
-
*/
|
|
9930
|
-
|
|
9931
9717
|
/**
|
|
9932
9718
|
* Options for creating an EVM wallet client
|
|
9933
9719
|
*/
|
|
@@ -9990,6 +9776,13 @@ declare class EvmClient {
|
|
|
9990
9776
|
* ```
|
|
9991
9777
|
*/
|
|
9992
9778
|
getAccount(options: GetEvmAccountOptions): Promise<EvmAccount>;
|
|
9779
|
+
/**
|
|
9780
|
+
* Retrieves delegated accounts linked to an EVM address on a specific chain.
|
|
9781
|
+
*
|
|
9782
|
+
* @param options - Options containing the address and chain ID
|
|
9783
|
+
* @returns List of linked accounts
|
|
9784
|
+
*/
|
|
9785
|
+
getLinkedAccounts(options: GetLinkedAccountsOptions): Promise<AccountListV2Response>;
|
|
9993
9786
|
/**
|
|
9994
9787
|
* Lists all EVM backend wallets.
|
|
9995
9788
|
*
|
|
@@ -10050,31 +9843,13 @@ declare class EvmClient {
|
|
|
10050
9843
|
* ```
|
|
10051
9844
|
*/
|
|
10052
9845
|
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
9846
|
}
|
|
10073
9847
|
|
|
10074
9848
|
/**
|
|
10075
9849
|
* @module Wallets/Solana/Types
|
|
10076
9850
|
* Solana-specific types for wallet operations
|
|
10077
9851
|
*/
|
|
9852
|
+
|
|
10078
9853
|
/**
|
|
10079
9854
|
* Base Solana account with signing capabilities
|
|
10080
9855
|
*/
|
|
@@ -10105,18 +9880,39 @@ interface SolanaSigningMethods {
|
|
|
10105
9880
|
transaction: string;
|
|
10106
9881
|
}): Promise<string>;
|
|
10107
9882
|
}
|
|
9883
|
+
/**
|
|
9884
|
+
* Solana cluster identifier
|
|
9885
|
+
*/
|
|
9886
|
+
type SolanaCluster = 'devnet' | 'mainnet-beta';
|
|
10108
9887
|
/**
|
|
10109
9888
|
* Full Solana server account with all signing capabilities
|
|
10110
9889
|
*/
|
|
10111
|
-
type SolanaAccount = SolanaAccountBase & SolanaSigningMethods
|
|
9890
|
+
type SolanaAccount = SolanaAccountBase & SolanaSigningMethods & {
|
|
9891
|
+
/**
|
|
9892
|
+
* Transfer SOL or SPL tokens to a destination address.
|
|
9893
|
+
* Handles ATA creation, mint decimals, and balance validation automatically.
|
|
9894
|
+
* @param options - Transfer options (destination, amount, token, cluster)
|
|
9895
|
+
* @returns Object with the transaction signature
|
|
9896
|
+
*/
|
|
9897
|
+
transfer(options: AccountTransferOptions): Promise<{
|
|
9898
|
+
signature: string;
|
|
9899
|
+
}>;
|
|
9900
|
+
/**
|
|
9901
|
+
* Send a pre-built base64-encoded transaction via the gasless Kora flow.
|
|
9902
|
+
* Decodes the transaction, extracts instructions, and re-wraps them.
|
|
9903
|
+
* @param options - Raw transaction options (cluster, transaction, etc.)
|
|
9904
|
+
* @returns Object with the transaction signature
|
|
9905
|
+
*/
|
|
9906
|
+
sendRawTransaction(options: AccountSendRawTransactionOptions): Promise<{
|
|
9907
|
+
signature: string;
|
|
9908
|
+
}>;
|
|
9909
|
+
};
|
|
10112
9910
|
/**
|
|
10113
9911
|
* Options for creating a Solana account
|
|
10114
9912
|
*/
|
|
10115
9913
|
interface CreateSolanaAccountOptions {
|
|
10116
9914
|
/** Wallet ID (starts with pla_). Optional - associates the wallet with a player. */
|
|
10117
9915
|
wallet?: string;
|
|
10118
|
-
/** Idempotency key */
|
|
10119
|
-
idempotencyKey?: string;
|
|
10120
9916
|
}
|
|
10121
9917
|
/**
|
|
10122
9918
|
* Options for getting a Solana account
|
|
@@ -10168,6 +9964,75 @@ interface SignTransactionOptions {
|
|
|
10168
9964
|
/** Base64-encoded serialized transaction */
|
|
10169
9965
|
transaction: string;
|
|
10170
9966
|
}
|
|
9967
|
+
/**
|
|
9968
|
+
* Options for sending a gasless Solana transaction via Kora
|
|
9969
|
+
*/
|
|
9970
|
+
interface SendSolanaTransactionOptions {
|
|
9971
|
+
/** The Solana account to send the transaction from */
|
|
9972
|
+
account: SolanaAccount;
|
|
9973
|
+
/** The Solana cluster to use */
|
|
9974
|
+
cluster: SolanaCluster;
|
|
9975
|
+
/** Solana instructions to include in the transaction */
|
|
9976
|
+
instructions: Instruction[];
|
|
9977
|
+
/** Compute unit limit (default: 200_000) */
|
|
9978
|
+
computeUnitLimit?: number;
|
|
9979
|
+
/** Compute unit price in micro-lamports (default: 50_000n) */
|
|
9980
|
+
computeUnitPrice?: bigint;
|
|
9981
|
+
/** Solana RPC URL. Defaults to public RPC for the cluster. */
|
|
9982
|
+
rpcUrl?: string;
|
|
9983
|
+
/** Solana WebSocket URL. Defaults to public WS for the cluster. */
|
|
9984
|
+
wsUrl?: string;
|
|
9985
|
+
}
|
|
9986
|
+
/**
|
|
9987
|
+
* Options for the high-level transfer action
|
|
9988
|
+
*/
|
|
9989
|
+
interface TransferOptions {
|
|
9990
|
+
/** The Solana account to transfer from */
|
|
9991
|
+
account: SolanaAccount;
|
|
9992
|
+
/** Destination address (base58 encoded) */
|
|
9993
|
+
to: string;
|
|
9994
|
+
/** Amount in smallest unit (lamports for SOL, base units for SPL) */
|
|
9995
|
+
amount: bigint;
|
|
9996
|
+
/** Token to transfer: 'sol' (default), 'usdc', or a mint address */
|
|
9997
|
+
token?: string;
|
|
9998
|
+
/** The Solana cluster to use */
|
|
9999
|
+
cluster: SolanaCluster;
|
|
10000
|
+
/** Compute unit limit (default: 200_000) */
|
|
10001
|
+
computeUnitLimit?: number;
|
|
10002
|
+
/** Compute unit price in micro-lamports (default: 50_000n) */
|
|
10003
|
+
computeUnitPrice?: bigint;
|
|
10004
|
+
/** Solana RPC URL. Defaults to public RPC for the cluster. */
|
|
10005
|
+
rpcUrl?: string;
|
|
10006
|
+
/** Solana WebSocket URL. Defaults to public WS for the cluster. */
|
|
10007
|
+
wsUrl?: string;
|
|
10008
|
+
}
|
|
10009
|
+
/**
|
|
10010
|
+
* Transfer options without the account field, for use on the account object
|
|
10011
|
+
*/
|
|
10012
|
+
type AccountTransferOptions = Omit<TransferOptions, 'account'>;
|
|
10013
|
+
/**
|
|
10014
|
+
* Options for sending a pre-built base64-encoded Solana transaction via Kora
|
|
10015
|
+
*/
|
|
10016
|
+
interface SendRawSolanaTransactionOptions {
|
|
10017
|
+
/** The Solana account to send the transaction from */
|
|
10018
|
+
account: SolanaAccount;
|
|
10019
|
+
/** The Solana cluster to use */
|
|
10020
|
+
cluster: SolanaCluster;
|
|
10021
|
+
/** Base64-encoded wire transaction */
|
|
10022
|
+
transaction: string;
|
|
10023
|
+
/** Compute unit limit (default: 200_000) */
|
|
10024
|
+
computeUnitLimit?: number;
|
|
10025
|
+
/** Compute unit price in micro-lamports (default: 50_000n) */
|
|
10026
|
+
computeUnitPrice?: bigint;
|
|
10027
|
+
/** Solana RPC URL. Defaults to public RPC for the cluster. */
|
|
10028
|
+
rpcUrl?: string;
|
|
10029
|
+
/** Solana WebSocket URL. Defaults to public WS for the cluster. */
|
|
10030
|
+
wsUrl?: string;
|
|
10031
|
+
}
|
|
10032
|
+
/**
|
|
10033
|
+
* Raw transaction options without the account field, for use on the account object
|
|
10034
|
+
*/
|
|
10035
|
+
type AccountSendRawTransactionOptions = Omit<SendRawSolanaTransactionOptions, 'account'>;
|
|
10171
10036
|
|
|
10172
10037
|
/**
|
|
10173
10038
|
* @module Wallets/Solana/Accounts/SolanaAccount
|
|
@@ -10191,6 +10056,89 @@ interface SolanaAccountData {
|
|
|
10191
10056
|
*/
|
|
10192
10057
|
declare function toSolanaAccount(data: SolanaAccountData): SolanaAccount;
|
|
10193
10058
|
|
|
10059
|
+
/**
|
|
10060
|
+
* Sends a pre-built base64-encoded Solana transaction via the gasless Kora flow.
|
|
10061
|
+
*
|
|
10062
|
+
* Decodes the base64 transaction, extracts its instructions by decompiling
|
|
10063
|
+
* the transaction message, and re-wraps them using the existing `sendTransaction`
|
|
10064
|
+
* gasless flow. The original fee payer, blockhash, and any existing signatures
|
|
10065
|
+
* are discarded — a new transaction is built with Kora as the fee payer.
|
|
10066
|
+
*
|
|
10067
|
+
* @param options - Raw transaction options
|
|
10068
|
+
* @returns Object with the transaction signature
|
|
10069
|
+
*
|
|
10070
|
+
* @example
|
|
10071
|
+
* ```typescript
|
|
10072
|
+
* const result = await sendRawTransaction({
|
|
10073
|
+
* account,
|
|
10074
|
+
* cluster: 'devnet',
|
|
10075
|
+
* transaction: 'base64EncodedTransaction...',
|
|
10076
|
+
* });
|
|
10077
|
+
* console.log('Transaction signature:', result.signature);
|
|
10078
|
+
* ```
|
|
10079
|
+
*/
|
|
10080
|
+
declare function sendRawTransaction(options: SendRawSolanaTransactionOptions): Promise<{
|
|
10081
|
+
signature: string;
|
|
10082
|
+
}>;
|
|
10083
|
+
|
|
10084
|
+
/**
|
|
10085
|
+
* Sends a gasless Solana transaction via Kora.
|
|
10086
|
+
*
|
|
10087
|
+
* Orchestrates the Kora gasless flow using KoraClient:
|
|
10088
|
+
* 1. Get fee payer address from Kora
|
|
10089
|
+
* 2. Get blockhash from Kora
|
|
10090
|
+
* 3. Build transaction with compute budget + user-provided instructions
|
|
10091
|
+
* 4. Compile and manually sign with Openfort backend
|
|
10092
|
+
* 5. Kora co-signs, send via RPC
|
|
10093
|
+
* 6. Confirm on Solana
|
|
10094
|
+
*
|
|
10095
|
+
* Requires `@solana/kit`, `@solana-program/compute-budget`, `@solana/kora`,
|
|
10096
|
+
* and `@solana/transaction-confirmation` as peer dependencies.
|
|
10097
|
+
*
|
|
10098
|
+
* @param options - Transaction options
|
|
10099
|
+
* @returns Object with the transaction signature
|
|
10100
|
+
*
|
|
10101
|
+
* @example
|
|
10102
|
+
* ```typescript
|
|
10103
|
+
* const account = await openfort.accounts.solana.backend.create();
|
|
10104
|
+
* const result = await openfort.accounts.solana.backend.sendTransaction({
|
|
10105
|
+
* account,
|
|
10106
|
+
* cluster: 'devnet',
|
|
10107
|
+
* instructions: [...myInstructions],
|
|
10108
|
+
* });
|
|
10109
|
+
* console.log('Transaction signature:', result.signature);
|
|
10110
|
+
* ```
|
|
10111
|
+
*/
|
|
10112
|
+
declare function sendTransaction(options: SendSolanaTransactionOptions): Promise<{
|
|
10113
|
+
signature: string;
|
|
10114
|
+
}>;
|
|
10115
|
+
|
|
10116
|
+
/**
|
|
10117
|
+
* Transfers SOL or SPL tokens between accounts.
|
|
10118
|
+
*
|
|
10119
|
+
* Routes to native SOL or SPL transfer based on the `token` option,
|
|
10120
|
+
* builds the appropriate instructions, and delegates to `sendTransaction()`
|
|
10121
|
+
* for the Openfort gasless flow.
|
|
10122
|
+
*
|
|
10123
|
+
* @param options - Transfer options
|
|
10124
|
+
* @returns The transfer result with transaction signature
|
|
10125
|
+
*
|
|
10126
|
+
* @example
|
|
10127
|
+
* ```typescript
|
|
10128
|
+
* // SOL transfer
|
|
10129
|
+
* await transfer({ account, to: "dest...", amount: 1_000_000n, cluster: "devnet" })
|
|
10130
|
+
*
|
|
10131
|
+
* // USDC by name
|
|
10132
|
+
* await transfer({ account, to: "dest...", amount: 1_000_000n, token: "usdc", cluster: "devnet" })
|
|
10133
|
+
*
|
|
10134
|
+
* // SPL by mint address
|
|
10135
|
+
* await transfer({ account, to: "dest...", amount: 100n, token: "4zMMC9...", cluster: "devnet" })
|
|
10136
|
+
* ```
|
|
10137
|
+
*/
|
|
10138
|
+
declare function transfer(options: TransferOptions): Promise<{
|
|
10139
|
+
signature: string;
|
|
10140
|
+
}>;
|
|
10141
|
+
|
|
10194
10142
|
/**
|
|
10195
10143
|
* @module Wallets/Solana/SolanaClient
|
|
10196
10144
|
* Main client for Solana wallet operations
|
|
@@ -10210,6 +10158,7 @@ interface SolanaClientOptions {
|
|
|
10210
10158
|
* Provides methods for creating, retrieving, and managing server-side Solana accounts.
|
|
10211
10159
|
*/
|
|
10212
10160
|
declare class SolanaClient {
|
|
10161
|
+
/** Wallet type identifier used for client registration */
|
|
10213
10162
|
static type: string;
|
|
10214
10163
|
/**
|
|
10215
10164
|
* Creates a new Solana wallet client.
|
|
@@ -10405,6 +10354,12 @@ declare class AccountNotFoundError extends Error {
|
|
|
10405
10354
|
*/
|
|
10406
10355
|
constructor(message?: string);
|
|
10407
10356
|
}
|
|
10357
|
+
/**
|
|
10358
|
+
* DelegationError is thrown when EIP-7702 delegation or gasless transaction flow fails.
|
|
10359
|
+
*/
|
|
10360
|
+
declare class DelegationError extends Error {
|
|
10361
|
+
constructor(message: string);
|
|
10362
|
+
}
|
|
10408
10363
|
/**
|
|
10409
10364
|
* EncryptionError is thrown when encryption or decryption fails.
|
|
10410
10365
|
*/
|
|
@@ -10538,6 +10493,7 @@ declare const EvmTypedDataFieldCriterionSchema: z.ZodObject<{
|
|
|
10538
10493
|
value?: string | undefined;
|
|
10539
10494
|
values?: string[] | undefined;
|
|
10540
10495
|
}>;
|
|
10496
|
+
/** Zod schema for a rule that governs EVM transaction signing. */
|
|
10541
10497
|
declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
10542
10498
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10543
10499
|
operation: z.ZodLiteral<"signEvmTransaction">;
|
|
@@ -10626,6 +10582,7 @@ declare const SignEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
10626
10582
|
args?: Record<string, unknown> | undefined;
|
|
10627
10583
|
})[];
|
|
10628
10584
|
}>;
|
|
10585
|
+
/** Zod schema for a rule that governs EVM transaction sending (includes network criteria). */
|
|
10629
10586
|
declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
10630
10587
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10631
10588
|
operation: z.ZodLiteral<"sendEvmTransaction">;
|
|
@@ -10735,6 +10692,7 @@ declare const SendEvmTransactionRuleSchema: z.ZodObject<{
|
|
|
10735
10692
|
args?: Record<string, unknown> | undefined;
|
|
10736
10693
|
})[];
|
|
10737
10694
|
}>;
|
|
10695
|
+
/** Zod schema for a rule that governs EVM message signing (EIP-191). */
|
|
10738
10696
|
declare const SignEvmMessageRuleSchema: z.ZodObject<{
|
|
10739
10697
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10740
10698
|
operation: z.ZodLiteral<"signEvmMessage">;
|
|
@@ -10769,6 +10727,7 @@ declare const SignEvmMessageRuleSchema: z.ZodObject<{
|
|
|
10769
10727
|
pattern: string;
|
|
10770
10728
|
}[];
|
|
10771
10729
|
}>;
|
|
10730
|
+
/** Zod schema for a rule that governs EIP-712 typed data signing. */
|
|
10772
10731
|
declare const SignEvmTypedDataRuleSchema: z.ZodObject<{
|
|
10773
10732
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10774
10733
|
operation: z.ZodLiteral<"signEvmTypedData">;
|
|
@@ -10836,6 +10795,7 @@ declare const SignEvmTypedDataRuleSchema: z.ZodObject<{
|
|
|
10836
10795
|
values?: string[] | undefined;
|
|
10837
10796
|
})[];
|
|
10838
10797
|
}>;
|
|
10798
|
+
/** Zod schema for a rule that governs raw EVM hash signing (no criteria). */
|
|
10839
10799
|
declare const SignEvmHashRuleSchema: z.ZodObject<{
|
|
10840
10800
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10841
10801
|
operation: z.ZodLiteral<"signEvmHash">;
|
|
@@ -10846,6 +10806,7 @@ declare const SignEvmHashRuleSchema: z.ZodObject<{
|
|
|
10846
10806
|
action: "accept" | "reject";
|
|
10847
10807
|
operation: "signEvmHash";
|
|
10848
10808
|
}>;
|
|
10809
|
+
/** Zod schema for a rule that governs EVM transaction gas sponsorship. */
|
|
10849
10810
|
declare const SponsorEvmTransactionRuleSchema: z.ZodObject<{
|
|
10850
10811
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
10851
10812
|
operation: z.ZodLiteral<"sponsorEvmTransaction">;
|
|
@@ -11078,11 +11039,11 @@ declare const SolNetworkCriterionSchema: z.ZodObject<{
|
|
|
11078
11039
|
}, "strip", z.ZodTypeAny, {
|
|
11079
11040
|
type: "solNetwork";
|
|
11080
11041
|
operator: "in" | "not in";
|
|
11081
|
-
networks: ("
|
|
11042
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11082
11043
|
}, {
|
|
11083
11044
|
type: "solNetwork";
|
|
11084
11045
|
operator: "in" | "not in";
|
|
11085
|
-
networks: ("
|
|
11046
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11086
11047
|
}>;
|
|
11087
11048
|
/** Solana message criterion — matches a sign-message payload against a regex. */
|
|
11088
11049
|
declare const SolMessageCriterionSchema: z.ZodObject<{
|
|
@@ -11099,6 +11060,7 @@ declare const SolMessageCriterionSchema: z.ZodObject<{
|
|
|
11099
11060
|
operator: "match";
|
|
11100
11061
|
pattern: string;
|
|
11101
11062
|
}>;
|
|
11063
|
+
/** Zod schema for a rule that governs Solana transaction signing. */
|
|
11102
11064
|
declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
11103
11065
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
11104
11066
|
operation: z.ZodLiteral<"signSolTransaction">;
|
|
@@ -11271,6 +11233,7 @@ declare const SignSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11271
11233
|
programIds: string[];
|
|
11272
11234
|
})[];
|
|
11273
11235
|
}>;
|
|
11236
|
+
/** Zod schema for a rule that governs Solana transaction sending (includes network criteria). */
|
|
11274
11237
|
declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
11275
11238
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
11276
11239
|
operation: z.ZodLiteral<"sendSolTransaction">;
|
|
@@ -11381,11 +11344,11 @@ declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11381
11344
|
}, "strip", z.ZodTypeAny, {
|
|
11382
11345
|
type: "solNetwork";
|
|
11383
11346
|
operator: "in" | "not in";
|
|
11384
|
-
networks: ("
|
|
11347
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11385
11348
|
}, {
|
|
11386
11349
|
type: "solNetwork";
|
|
11387
11350
|
operator: "in" | "not in";
|
|
11388
|
-
networks: ("
|
|
11351
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11389
11352
|
}>]>, "many">;
|
|
11390
11353
|
}, "strip", z.ZodTypeAny, {
|
|
11391
11354
|
action: "accept" | "reject";
|
|
@@ -11423,7 +11386,7 @@ declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11423
11386
|
} | {
|
|
11424
11387
|
type: "solNetwork";
|
|
11425
11388
|
operator: "in" | "not in";
|
|
11426
|
-
networks: ("
|
|
11389
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11427
11390
|
})[];
|
|
11428
11391
|
}, {
|
|
11429
11392
|
action: "accept" | "reject";
|
|
@@ -11461,9 +11424,10 @@ declare const SendSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11461
11424
|
} | {
|
|
11462
11425
|
type: "solNetwork";
|
|
11463
11426
|
operator: "in" | "not in";
|
|
11464
|
-
networks: ("
|
|
11427
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11465
11428
|
})[];
|
|
11466
11429
|
}>;
|
|
11430
|
+
/** Zod schema for a rule that governs Solana message signing. */
|
|
11467
11431
|
declare const SignSolMessageRuleSchema: z.ZodObject<{
|
|
11468
11432
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
11469
11433
|
operation: z.ZodLiteral<"signSolMessage">;
|
|
@@ -11498,6 +11462,7 @@ declare const SignSolMessageRuleSchema: z.ZodObject<{
|
|
|
11498
11462
|
pattern: string;
|
|
11499
11463
|
}[];
|
|
11500
11464
|
}>;
|
|
11465
|
+
/** Zod schema for a rule that governs Solana transaction fee sponsorship. */
|
|
11501
11466
|
declare const SponsorSolTransactionRuleSchema: z.ZodObject<{
|
|
11502
11467
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
11503
11468
|
operation: z.ZodLiteral<"sponsorSolTransaction">;
|
|
@@ -11608,11 +11573,11 @@ declare const SponsorSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11608
11573
|
}, "strip", z.ZodTypeAny, {
|
|
11609
11574
|
type: "solNetwork";
|
|
11610
11575
|
operator: "in" | "not in";
|
|
11611
|
-
networks: ("
|
|
11576
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11612
11577
|
}, {
|
|
11613
11578
|
type: "solNetwork";
|
|
11614
11579
|
operator: "in" | "not in";
|
|
11615
|
-
networks: ("
|
|
11580
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11616
11581
|
}>]>, "many">;
|
|
11617
11582
|
}, "strip", z.ZodTypeAny, {
|
|
11618
11583
|
action: "accept" | "reject";
|
|
@@ -11650,7 +11615,7 @@ declare const SponsorSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11650
11615
|
} | {
|
|
11651
11616
|
type: "solNetwork";
|
|
11652
11617
|
operator: "in" | "not in";
|
|
11653
|
-
networks: ("
|
|
11618
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11654
11619
|
})[];
|
|
11655
11620
|
}, {
|
|
11656
11621
|
action: "accept" | "reject";
|
|
@@ -11688,10 +11653,11 @@ declare const SponsorSolTransactionRuleSchema: z.ZodObject<{
|
|
|
11688
11653
|
} | {
|
|
11689
11654
|
type: "solNetwork";
|
|
11690
11655
|
operator: "in" | "not in";
|
|
11691
|
-
networks: ("
|
|
11656
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
11692
11657
|
})[];
|
|
11693
11658
|
}>;
|
|
11694
11659
|
|
|
11660
|
+
/** Zod schema for a policy rule — a discriminated union over the `operation` field covering all EVM and Solana rule types. */
|
|
11695
11661
|
declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
11696
11662
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
11697
11663
|
operation: z.ZodLiteral<"signEvmTransaction">;
|
|
@@ -12343,11 +12309,11 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12343
12309
|
}, "strip", z.ZodTypeAny, {
|
|
12344
12310
|
type: "solNetwork";
|
|
12345
12311
|
operator: "in" | "not in";
|
|
12346
|
-
networks: ("
|
|
12312
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12347
12313
|
}, {
|
|
12348
12314
|
type: "solNetwork";
|
|
12349
12315
|
operator: "in" | "not in";
|
|
12350
|
-
networks: ("
|
|
12316
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12351
12317
|
}>]>, "many">;
|
|
12352
12318
|
}, "strip", z.ZodTypeAny, {
|
|
12353
12319
|
action: "accept" | "reject";
|
|
@@ -12385,7 +12351,7 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12385
12351
|
} | {
|
|
12386
12352
|
type: "solNetwork";
|
|
12387
12353
|
operator: "in" | "not in";
|
|
12388
|
-
networks: ("
|
|
12354
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12389
12355
|
})[];
|
|
12390
12356
|
}, {
|
|
12391
12357
|
action: "accept" | "reject";
|
|
@@ -12423,7 +12389,7 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12423
12389
|
} | {
|
|
12424
12390
|
type: "solNetwork";
|
|
12425
12391
|
operator: "in" | "not in";
|
|
12426
|
-
networks: ("
|
|
12392
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12427
12393
|
})[];
|
|
12428
12394
|
}>, z.ZodObject<{
|
|
12429
12395
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -12557,11 +12523,11 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12557
12523
|
}, "strip", z.ZodTypeAny, {
|
|
12558
12524
|
type: "solNetwork";
|
|
12559
12525
|
operator: "in" | "not in";
|
|
12560
|
-
networks: ("
|
|
12526
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12561
12527
|
}, {
|
|
12562
12528
|
type: "solNetwork";
|
|
12563
12529
|
operator: "in" | "not in";
|
|
12564
|
-
networks: ("
|
|
12530
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12565
12531
|
}>]>, "many">;
|
|
12566
12532
|
}, "strip", z.ZodTypeAny, {
|
|
12567
12533
|
action: "accept" | "reject";
|
|
@@ -12599,7 +12565,7 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12599
12565
|
} | {
|
|
12600
12566
|
type: "solNetwork";
|
|
12601
12567
|
operator: "in" | "not in";
|
|
12602
|
-
networks: ("
|
|
12568
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12603
12569
|
})[];
|
|
12604
12570
|
}, {
|
|
12605
12571
|
action: "accept" | "reject";
|
|
@@ -12637,10 +12603,12 @@ declare const RuleSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
|
|
|
12637
12603
|
} | {
|
|
12638
12604
|
type: "solNetwork";
|
|
12639
12605
|
operator: "in" | "not in";
|
|
12640
|
-
networks: ("
|
|
12606
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
12641
12607
|
})[];
|
|
12642
12608
|
}>]>;
|
|
12609
|
+
/** A single policy rule. Each rule specifies an operation (e.g. signEvmTransaction), an action (accept/reject), and optional criteria. */
|
|
12643
12610
|
type Rule = z.infer<typeof RuleSchema>;
|
|
12611
|
+
/** Zod schema for the request body when creating a new policy. */
|
|
12644
12612
|
declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
12645
12613
|
/** The scope of the policy. 'project' applies to all accounts, 'account' applies to a specific account. */
|
|
12646
12614
|
scope: z.ZodEnum<["project", "account"]>;
|
|
@@ -13304,11 +13272,11 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13304
13272
|
}, "strip", z.ZodTypeAny, {
|
|
13305
13273
|
type: "solNetwork";
|
|
13306
13274
|
operator: "in" | "not in";
|
|
13307
|
-
networks: ("
|
|
13275
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13308
13276
|
}, {
|
|
13309
13277
|
type: "solNetwork";
|
|
13310
13278
|
operator: "in" | "not in";
|
|
13311
|
-
networks: ("
|
|
13279
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13312
13280
|
}>]>, "many">;
|
|
13313
13281
|
}, "strip", z.ZodTypeAny, {
|
|
13314
13282
|
action: "accept" | "reject";
|
|
@@ -13346,7 +13314,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13346
13314
|
} | {
|
|
13347
13315
|
type: "solNetwork";
|
|
13348
13316
|
operator: "in" | "not in";
|
|
13349
|
-
networks: ("
|
|
13317
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13350
13318
|
})[];
|
|
13351
13319
|
}, {
|
|
13352
13320
|
action: "accept" | "reject";
|
|
@@ -13384,7 +13352,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13384
13352
|
} | {
|
|
13385
13353
|
type: "solNetwork";
|
|
13386
13354
|
operator: "in" | "not in";
|
|
13387
|
-
networks: ("
|
|
13355
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13388
13356
|
})[];
|
|
13389
13357
|
}>, z.ZodObject<{
|
|
13390
13358
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -13518,11 +13486,11 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13518
13486
|
}, "strip", z.ZodTypeAny, {
|
|
13519
13487
|
type: "solNetwork";
|
|
13520
13488
|
operator: "in" | "not in";
|
|
13521
|
-
networks: ("
|
|
13489
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13522
13490
|
}, {
|
|
13523
13491
|
type: "solNetwork";
|
|
13524
13492
|
operator: "in" | "not in";
|
|
13525
|
-
networks: ("
|
|
13493
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13526
13494
|
}>]>, "many">;
|
|
13527
13495
|
}, "strip", z.ZodTypeAny, {
|
|
13528
13496
|
action: "accept" | "reject";
|
|
@@ -13560,7 +13528,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13560
13528
|
} | {
|
|
13561
13529
|
type: "solNetwork";
|
|
13562
13530
|
operator: "in" | "not in";
|
|
13563
|
-
networks: ("
|
|
13531
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13564
13532
|
})[];
|
|
13565
13533
|
}, {
|
|
13566
13534
|
action: "accept" | "reject";
|
|
@@ -13598,7 +13566,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13598
13566
|
} | {
|
|
13599
13567
|
type: "solNetwork";
|
|
13600
13568
|
operator: "in" | "not in";
|
|
13601
|
-
networks: ("
|
|
13569
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13602
13570
|
})[];
|
|
13603
13571
|
}>]>, "many">;
|
|
13604
13572
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -13760,7 +13728,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13760
13728
|
} | {
|
|
13761
13729
|
type: "solNetwork";
|
|
13762
13730
|
operator: "in" | "not in";
|
|
13763
|
-
networks: ("
|
|
13731
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13764
13732
|
})[];
|
|
13765
13733
|
} | {
|
|
13766
13734
|
action: "accept" | "reject";
|
|
@@ -13806,7 +13774,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13806
13774
|
} | {
|
|
13807
13775
|
type: "solNetwork";
|
|
13808
13776
|
operator: "in" | "not in";
|
|
13809
|
-
networks: ("
|
|
13777
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13810
13778
|
})[];
|
|
13811
13779
|
})[];
|
|
13812
13780
|
priority?: number | undefined;
|
|
@@ -13972,7 +13940,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
13972
13940
|
} | {
|
|
13973
13941
|
type: "solNetwork";
|
|
13974
13942
|
operator: "in" | "not in";
|
|
13975
|
-
networks: ("
|
|
13943
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
13976
13944
|
})[];
|
|
13977
13945
|
} | {
|
|
13978
13946
|
action: "accept" | "reject";
|
|
@@ -14018,7 +13986,7 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
14018
13986
|
} | {
|
|
14019
13987
|
type: "solNetwork";
|
|
14020
13988
|
operator: "in" | "not in";
|
|
14021
|
-
networks: ("
|
|
13989
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14022
13990
|
})[];
|
|
14023
13991
|
})[];
|
|
14024
13992
|
priority?: number | undefined;
|
|
@@ -14026,7 +13994,9 @@ declare const CreatePolicyBodySchema: z.ZodObject<{
|
|
|
14026
13994
|
description?: string | undefined;
|
|
14027
13995
|
enabled?: boolean | undefined;
|
|
14028
13996
|
}>;
|
|
13997
|
+
/** Request body for creating a new policy. */
|
|
14029
13998
|
type CreatePolicyBody = z.infer<typeof CreatePolicyBodySchema>;
|
|
13999
|
+
/** Zod schema for the request body when updating an existing policy. */
|
|
14030
14000
|
declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
14031
14001
|
/** A description of what this policy does. */
|
|
14032
14002
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -14686,11 +14656,11 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14686
14656
|
}, "strip", z.ZodTypeAny, {
|
|
14687
14657
|
type: "solNetwork";
|
|
14688
14658
|
operator: "in" | "not in";
|
|
14689
|
-
networks: ("
|
|
14659
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14690
14660
|
}, {
|
|
14691
14661
|
type: "solNetwork";
|
|
14692
14662
|
operator: "in" | "not in";
|
|
14693
|
-
networks: ("
|
|
14663
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14694
14664
|
}>]>, "many">;
|
|
14695
14665
|
}, "strip", z.ZodTypeAny, {
|
|
14696
14666
|
action: "accept" | "reject";
|
|
@@ -14728,7 +14698,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14728
14698
|
} | {
|
|
14729
14699
|
type: "solNetwork";
|
|
14730
14700
|
operator: "in" | "not in";
|
|
14731
|
-
networks: ("
|
|
14701
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14732
14702
|
})[];
|
|
14733
14703
|
}, {
|
|
14734
14704
|
action: "accept" | "reject";
|
|
@@ -14766,7 +14736,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14766
14736
|
} | {
|
|
14767
14737
|
type: "solNetwork";
|
|
14768
14738
|
operator: "in" | "not in";
|
|
14769
|
-
networks: ("
|
|
14739
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14770
14740
|
})[];
|
|
14771
14741
|
}>, z.ZodObject<{
|
|
14772
14742
|
action: z.ZodEnum<["reject", "accept"]>;
|
|
@@ -14900,11 +14870,11 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14900
14870
|
}, "strip", z.ZodTypeAny, {
|
|
14901
14871
|
type: "solNetwork";
|
|
14902
14872
|
operator: "in" | "not in";
|
|
14903
|
-
networks: ("
|
|
14873
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14904
14874
|
}, {
|
|
14905
14875
|
type: "solNetwork";
|
|
14906
14876
|
operator: "in" | "not in";
|
|
14907
|
-
networks: ("
|
|
14877
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14908
14878
|
}>]>, "many">;
|
|
14909
14879
|
}, "strip", z.ZodTypeAny, {
|
|
14910
14880
|
action: "accept" | "reject";
|
|
@@ -14942,7 +14912,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14942
14912
|
} | {
|
|
14943
14913
|
type: "solNetwork";
|
|
14944
14914
|
operator: "in" | "not in";
|
|
14945
|
-
networks: ("
|
|
14915
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14946
14916
|
})[];
|
|
14947
14917
|
}, {
|
|
14948
14918
|
action: "accept" | "reject";
|
|
@@ -14980,7 +14950,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
14980
14950
|
} | {
|
|
14981
14951
|
type: "solNetwork";
|
|
14982
14952
|
operator: "in" | "not in";
|
|
14983
|
-
networks: ("
|
|
14953
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
14984
14954
|
})[];
|
|
14985
14955
|
}>]>, "many">>;
|
|
14986
14956
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15144,7 +15114,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
15144
15114
|
} | {
|
|
15145
15115
|
type: "solNetwork";
|
|
15146
15116
|
operator: "in" | "not in";
|
|
15147
|
-
networks: ("
|
|
15117
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
15148
15118
|
})[];
|
|
15149
15119
|
} | {
|
|
15150
15120
|
action: "accept" | "reject";
|
|
@@ -15190,7 +15160,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
15190
15160
|
} | {
|
|
15191
15161
|
type: "solNetwork";
|
|
15192
15162
|
operator: "in" | "not in";
|
|
15193
|
-
networks: ("
|
|
15163
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
15194
15164
|
})[];
|
|
15195
15165
|
})[] | undefined;
|
|
15196
15166
|
}, {
|
|
@@ -15354,7 +15324,7 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
15354
15324
|
} | {
|
|
15355
15325
|
type: "solNetwork";
|
|
15356
15326
|
operator: "in" | "not in";
|
|
15357
|
-
networks: ("
|
|
15327
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
15358
15328
|
})[];
|
|
15359
15329
|
} | {
|
|
15360
15330
|
action: "accept" | "reject";
|
|
@@ -15400,10 +15370,11 @@ declare const UpdatePolicyBodySchema: z.ZodObject<{
|
|
|
15400
15370
|
} | {
|
|
15401
15371
|
type: "solNetwork";
|
|
15402
15372
|
operator: "in" | "not in";
|
|
15403
|
-
networks: ("
|
|
15373
|
+
networks: ("devnet" | "mainnet-beta" | "testnet")[];
|
|
15404
15374
|
})[];
|
|
15405
15375
|
})[] | undefined;
|
|
15406
15376
|
}>;
|
|
15377
|
+
/** Request body for updating an existing policy. */
|
|
15407
15378
|
type UpdatePolicyBody = z.infer<typeof UpdatePolicyBodySchema>;
|
|
15408
15379
|
|
|
15409
15380
|
/**
|
|
@@ -15571,7 +15542,9 @@ declare class Openfort {
|
|
|
15571
15542
|
/** Export private key (with E2E encryption) */
|
|
15572
15543
|
export: (options: ExportEvmAccountOptions) => Promise<string>;
|
|
15573
15544
|
/** Update EOA to delegated account */
|
|
15574
|
-
update:
|
|
15545
|
+
update: typeof update;
|
|
15546
|
+
/** Delegate + create + sign + submit a gasless transaction in one call */
|
|
15547
|
+
sendTransaction: typeof sendTransaction$1;
|
|
15575
15548
|
};
|
|
15576
15549
|
/** Embedded wallet operations (User custody) */
|
|
15577
15550
|
embedded: {
|
|
@@ -15601,6 +15574,12 @@ declare class Openfort {
|
|
|
15601
15574
|
import: (options: ImportSolanaAccountOptions) => Promise<SolanaAccount>;
|
|
15602
15575
|
/** Export private key (with E2E encryption) */
|
|
15603
15576
|
export: (options: ExportSolanaAccountOptions) => Promise<string>;
|
|
15577
|
+
/** Send a gasless transaction via Kora */
|
|
15578
|
+
sendTransaction: typeof sendTransaction;
|
|
15579
|
+
/** Send a pre-built base64 transaction via Kora gasless flow */
|
|
15580
|
+
sendRawTransaction: typeof sendRawTransaction;
|
|
15581
|
+
/** Transfer SOL or SPL tokens (high-level) */
|
|
15582
|
+
transfer: typeof transfer;
|
|
15604
15583
|
};
|
|
15605
15584
|
/** Embedded wallet operations (User custody) */
|
|
15606
15585
|
embedded: {
|
|
@@ -15769,7 +15748,7 @@ declare class Openfort {
|
|
|
15769
15748
|
get transactionIntents(): {
|
|
15770
15749
|
/** List transaction intents */
|
|
15771
15750
|
list: (params?: GetTransactionIntentsParams, options?: string | RequestOptions | undefined) => Promise<TransactionIntentListResponse>;
|
|
15772
|
-
/** Create a transaction intent with contract interactions */
|
|
15751
|
+
/** Create a transaction intent with contract interactions. */
|
|
15773
15752
|
create: (createTransactionIntentRequest: CreateTransactionIntentRequest, options?: string | RequestOptions | undefined) => Promise<TransactionIntentResponse>;
|
|
15774
15753
|
/** Get a transaction intent by ID */
|
|
15775
15754
|
get: (id: string, params?: GetTransactionIntentParams, options?: string | RequestOptions | undefined) => Promise<TransactionIntentResponse>;
|
|
@@ -15893,8 +15872,6 @@ declare class Openfort {
|
|
|
15893
15872
|
verifyToken: (params: VerifyAuthTokenParams, options?: string | RequestOptions | undefined) => Promise<AuthSessionResponse>;
|
|
15894
15873
|
/** Verify OAuth token */
|
|
15895
15874
|
verifyOAuthToken: (authenticateOAuthRequest: AuthenticateOAuthRequest, options?: string | RequestOptions | undefined) => Promise<PlayerResponse>;
|
|
15896
|
-
/** Authorize */
|
|
15897
|
-
authorize: (authorizePlayerRequest: AuthorizePlayerRequest, options?: string | RequestOptions | undefined) => Promise<AuthPlayerResponse | AuthenticatedPlayerResponse>;
|
|
15898
15875
|
};
|
|
15899
15876
|
};
|
|
15900
15877
|
/**
|
|
@@ -15963,4 +15940,4 @@ declare class Openfort {
|
|
|
15963
15940
|
createEncryptionSession(shieldApiKey: string, shieldApiSecret: string, encryptionShare: string, shieldApiBaseUrl?: string): Promise<string>;
|
|
15964
15941
|
}
|
|
15965
15942
|
|
|
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 };
|
|
15943
|
+
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 AccountSendRawTransactionOptions, type AccountTransferOptions, 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, AuthenticationType, type AuthorizedApp, type AuthorizedAppsResponse, type AuthorizedAppsResponseAuthorizedAppsItem, type AuthorizedNetwork, type AuthorizedNetworksResponse, type AuthorizedNetworksResponseAuthorizedNetworksItem, type AuthorizedOriginsResponse, 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, DelegationError, 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 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 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, 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 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, type SendRawSolanaTransactionOptions, SendSolTransactionRuleSchema, type SendSolanaTransactionOptions, 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, type SolanaCluster, 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 TransferOptions, 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 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, 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, 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, listFeeSponsorships, listForwarderContracts, listOAuthConfig, listPaymasters, listPolicies, listSubscriptionLogs, loginEmailPassword, 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 };
|