@privy-io/api-types 0.4.0 → 0.6.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 +66 -0
- package/client.d.mts +25 -12
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -12
- package/client.d.ts.map +1 -1
- package/client.js +32 -5
- package/client.js.map +1 -1
- package/client.mjs +32 -5
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/accounts.d.mts +85 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +85 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +9 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +5 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/aggregations.d.mts +213 -2
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +213 -2
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/client-auth.d.mts +181 -1
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +181 -1
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/funding.d.mts +4 -4
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +4 -4
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +9 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +104 -0
- package/resources/intents.d.mts.map +1 -0
- package/resources/intents.d.ts +104 -0
- package/resources/intents.d.ts.map +1 -0
- package/resources/intents.js +9 -0
- package/resources/intents.js.map +1 -0
- package/resources/intents.mjs +5 -0
- package/resources/intents.mjs.map +1 -0
- package/resources/key-quorums.d.mts +14 -0
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +14 -0
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/policies.d.mts +66 -68
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +66 -68
- package/resources/policies.d.ts.map +1 -1
- package/resources/users.d.mts +72 -62
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +72 -62
- package/resources/users.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +10 -5
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +10 -5
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js +1 -2
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs +1 -2
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +2 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +2 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +203 -76
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +203 -76
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +977 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +977 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +9 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +5 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/yield.d.mts +311 -0
- package/resources/yield.d.mts.map +1 -0
- package/resources/yield.d.ts +311 -0
- package/resources/yield.d.ts.map +1 -0
- package/resources/yield.js +9 -0
- package/resources/yield.js.map +1 -0
- package/resources/yield.mjs +5 -0
- package/resources/yield.mjs.map +1 -0
- package/src/client.ts +240 -18
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/accounts.ts +106 -0
- package/src/resources/aggregations.ts +361 -5
- package/src/resources/client-auth.ts +309 -0
- package/src/resources/funding.ts +4 -1
- package/src/resources/index.ts +101 -8
- package/src/resources/intents.ts +138 -0
- package/src/resources/key-quorums.ts +17 -0
- package/src/resources/policies.ts +86 -88
- package/src/resources/users.ts +128 -111
- package/src/resources/wallets/balance.ts +15 -5
- package/src/resources/wallets/index.ts +7 -3
- package/src/resources/wallets/transactions.ts +2 -2
- package/src/resources/wallets/wallets.ts +250 -96
- package/src/resources/webhooks.ts +1347 -0
- package/src/resources/yield.ts +389 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/funding.ts
CHANGED
|
@@ -15,7 +15,7 @@ export namespace CoinbaseOnRampInitInput {
|
|
|
15
15
|
export interface UnionMember0 {
|
|
16
16
|
addresses: Array<UnionMember0.Address>;
|
|
17
17
|
|
|
18
|
-
assets?: Array<'eth' | 'ETH' | 'USDC' | 'POL'>;
|
|
18
|
+
assets?: Array<'eth' | 'ETH' | 'USDC' | 'POL' | 'MON'>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export namespace UnionMember0 {
|
|
@@ -32,6 +32,7 @@ export namespace CoinbaseOnRampInitInput {
|
|
|
32
32
|
| 'polygon'
|
|
33
33
|
| 'arbitrum'
|
|
34
34
|
| 'stellar'
|
|
35
|
+
| 'monad'
|
|
35
36
|
>;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
@@ -56,6 +57,7 @@ export namespace CoinbaseOnRampInitInput {
|
|
|
56
57
|
| 'polygon'
|
|
57
58
|
| 'arbitrum'
|
|
58
59
|
| 'stellar'
|
|
60
|
+
| 'monad'
|
|
59
61
|
>;
|
|
60
62
|
}
|
|
61
63
|
}
|
|
@@ -127,6 +129,7 @@ export namespace MoonpayOnRampSignInput {
|
|
|
127
129
|
| 'WBTC_ETHEREUM'
|
|
128
130
|
| 'BNB_BNB'
|
|
129
131
|
| 'BNB_BSC'
|
|
132
|
+
| 'MON_MON'
|
|
130
133
|
| 'CELO'
|
|
131
134
|
| 'CUSD'
|
|
132
135
|
| 'DAI'
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Accounts,
|
|
5
|
+
type AccountWallet,
|
|
6
|
+
type AccountResponse,
|
|
7
|
+
type AccountWalletConfigurationItem,
|
|
8
|
+
type CreateAccountInput,
|
|
9
|
+
type AccountsListResponse,
|
|
10
|
+
} from './accounts';
|
|
3
11
|
export {
|
|
4
12
|
Aggregations,
|
|
5
13
|
type AggregationMethod,
|
|
@@ -7,6 +15,7 @@ export {
|
|
|
7
15
|
type AggregationWindow,
|
|
8
16
|
type AggregationGroupBy,
|
|
9
17
|
type Aggregation,
|
|
18
|
+
type AggregationInput,
|
|
10
19
|
} from './aggregations';
|
|
11
20
|
export { Analytics, type AnalyticsEventInput } from './analytics';
|
|
12
21
|
export { Apps, type AppResponse } from './apps';
|
|
@@ -84,6 +93,30 @@ export {
|
|
|
84
93
|
type PrivyOAuthProviderID,
|
|
85
94
|
type CustomOAuthProviderID,
|
|
86
95
|
type OAuthProviderID,
|
|
96
|
+
type BridgeOnrampProvider,
|
|
97
|
+
type OnrampProvider,
|
|
98
|
+
type GetFiatCustomerRequestInput,
|
|
99
|
+
type CreateOrUpdateFiatCustomerRequestInput,
|
|
100
|
+
type BridgeFiatRejectionReason,
|
|
101
|
+
type BridgeFiatCustomerResponse,
|
|
102
|
+
type BridgeSandboxFiatCustomerResponse,
|
|
103
|
+
type FiatCustomerResponse,
|
|
104
|
+
type BridgeDestinationAsset,
|
|
105
|
+
type BridgeSourceAsset,
|
|
106
|
+
type BridgeFiatVirtualAccountSource,
|
|
107
|
+
type BridgeFiatVirtualAccountDestination,
|
|
108
|
+
type BridgeFiatVirtualAccountRequest,
|
|
109
|
+
type BridgeSandboxFiatVirtualAccountRequest,
|
|
110
|
+
type FiatVirtualAccountRequest,
|
|
111
|
+
type BridgeUsdFiatVirtualAccountDepositInstructions,
|
|
112
|
+
type BridgeEurFiatVirtualAccountDepositInstructions,
|
|
113
|
+
type BridgeMxnFiatVirtualAccountDepositInstructions,
|
|
114
|
+
type BridgeBrlFiatVirtualAccountDepositInstructions,
|
|
115
|
+
type BridgeGbpFiatVirtualAccountDepositInstructions,
|
|
116
|
+
type BridgeFiatVirtualAccountDepositInstructions,
|
|
117
|
+
type BridgeFiatVirtualAccountResponse,
|
|
118
|
+
type BridgeSandboxFiatVirtualAccountResponse,
|
|
119
|
+
type FiatVirtualAccountResponse,
|
|
87
120
|
} from './client-auth';
|
|
88
121
|
export { CrossApp, type CrossAppConnectionsResponse } from './cross-app';
|
|
89
122
|
export {
|
|
@@ -107,6 +140,7 @@ export {
|
|
|
107
140
|
type MoonpayOnRampSignInput,
|
|
108
141
|
type MoonpayOnRampSignResponse,
|
|
109
142
|
} from './funding';
|
|
143
|
+
export { Intents, type IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember } from './intents';
|
|
110
144
|
export {
|
|
111
145
|
KeyQuorums,
|
|
112
146
|
type KeyQuorum,
|
|
@@ -117,12 +151,12 @@ export {
|
|
|
117
151
|
} from './key-quorums';
|
|
118
152
|
export {
|
|
119
153
|
Policies,
|
|
120
|
-
type Policy,
|
|
121
154
|
type SuiTransactionCommandOperator,
|
|
122
155
|
type SuiTransferObjectsCommandField,
|
|
123
156
|
type TronTransactionCondition,
|
|
124
157
|
type SuiTransactionCommandCondition,
|
|
125
158
|
type SuiTransferObjectsCommandCondition,
|
|
159
|
+
type Policy,
|
|
126
160
|
type PolicyCreateRuleResponse,
|
|
127
161
|
type PolicyDeleteResponse,
|
|
128
162
|
type PolicyDeleteRuleResponse,
|
|
@@ -144,10 +178,6 @@ export {
|
|
|
144
178
|
} from './transactions';
|
|
145
179
|
export {
|
|
146
180
|
Users,
|
|
147
|
-
type AuthenticatedUser,
|
|
148
|
-
type LinkedAccount,
|
|
149
|
-
type User,
|
|
150
|
-
type UserWithIdentityToken,
|
|
151
181
|
type LinkedAccountEmail,
|
|
152
182
|
type LinkedAccountPhone,
|
|
153
183
|
type LinkedAccountBaseWallet,
|
|
@@ -183,6 +213,7 @@ export {
|
|
|
183
213
|
type CrossAppSmartWallet,
|
|
184
214
|
type LinkedAccountCrossApp,
|
|
185
215
|
type LinkedAccountAuthorizationKey,
|
|
216
|
+
type LinkedAccount,
|
|
186
217
|
type LinkedAccountType,
|
|
187
218
|
type CustomMetadata,
|
|
188
219
|
type LinkedAccountWalletInput,
|
|
@@ -202,13 +233,17 @@ export {
|
|
|
202
233
|
type LinkedAccountFarcasterInput,
|
|
203
234
|
type LinkedAccountTelegramInput,
|
|
204
235
|
type LinkedAccountCustomJwtInput,
|
|
236
|
+
type LinkedAccountPasskeyInput,
|
|
205
237
|
type LinkedAccountInput,
|
|
206
238
|
type UserBatchCreateInput,
|
|
207
239
|
type SMSMfaMethod,
|
|
208
240
|
type TotpMfaMethod,
|
|
209
241
|
type PasskeyMfaMethod,
|
|
210
242
|
type LinkedMfaMethod,
|
|
243
|
+
type User,
|
|
211
244
|
type OAuthTokens,
|
|
245
|
+
type UserWithIdentityToken,
|
|
246
|
+
type AuthenticatedUser,
|
|
212
247
|
type UserCreateParams,
|
|
213
248
|
type UserListParams,
|
|
214
249
|
type UserGetByCustomAuthIDParams,
|
|
@@ -231,12 +266,11 @@ export {
|
|
|
231
266
|
} from './users';
|
|
232
267
|
export {
|
|
233
268
|
Wallets,
|
|
269
|
+
type WalletRevokeResponse,
|
|
234
270
|
type CurveSigningChainType,
|
|
271
|
+
type ExtendedChainType,
|
|
235
272
|
type FirstClassChainType,
|
|
236
|
-
type Wallet,
|
|
237
273
|
type WalletChainType,
|
|
238
|
-
type WalletRevokeResponse,
|
|
239
|
-
type ExtendedChainType,
|
|
240
274
|
type WalletCustodian,
|
|
241
275
|
type CustodialWalletProvider,
|
|
242
276
|
type CustodialWalletChainType,
|
|
@@ -244,6 +278,11 @@ export {
|
|
|
244
278
|
type CustodialWallet,
|
|
245
279
|
type HpkeImportConfig,
|
|
246
280
|
type SuiCommandName,
|
|
281
|
+
type Wallet,
|
|
282
|
+
type WalletBatchItemInput,
|
|
283
|
+
type WalletBatchCreateInput,
|
|
284
|
+
type WalletBatchCreateResult,
|
|
285
|
+
type WalletBatchCreateResponse,
|
|
247
286
|
type EthereumPersonalSignRpcInput,
|
|
248
287
|
type EthereumSignTransactionRpcInput,
|
|
249
288
|
type EthereumSendTransactionRpcInput,
|
|
@@ -282,3 +321,57 @@ export {
|
|
|
282
321
|
type WalletCreateWalletsWithRecoveryParams,
|
|
283
322
|
type WalletsCursor,
|
|
284
323
|
} from './wallets/wallets';
|
|
324
|
+
export {
|
|
325
|
+
Webhooks,
|
|
326
|
+
type UserCreatedWebhookPayload,
|
|
327
|
+
type UserAuthenticatedWebhookPayload,
|
|
328
|
+
type UserLinkedAccountWebhookPayload,
|
|
329
|
+
type UserUnlinkedAccountWebhookPayload,
|
|
330
|
+
type UserUpdatedAccountWebhookPayload,
|
|
331
|
+
type UserTransferredAccountWebhookPayload,
|
|
332
|
+
type UserWalletCreatedWebhookPayload,
|
|
333
|
+
type TransactionBroadcastedWebhookPayload,
|
|
334
|
+
type TransactionConfirmedWebhookPayload,
|
|
335
|
+
type TransactionExecutionRevertedWebhookPayload,
|
|
336
|
+
type TransactionStillPendingWebhookPayload,
|
|
337
|
+
type TransactionFailedWebhookPayload,
|
|
338
|
+
type TransactionReplacedWebhookPayload,
|
|
339
|
+
type TransactionProviderErrorWebhookPayload,
|
|
340
|
+
type FundsDepositedWebhookPayload,
|
|
341
|
+
type FundsWithdrawnWebhookPayload,
|
|
342
|
+
type PrivateKeyExportWebhookPayload,
|
|
343
|
+
type WalletRecoverySetupWebhookPayload,
|
|
344
|
+
type WalletRecoveredWebhookPayload,
|
|
345
|
+
type MfaEnabledWebhookPayload,
|
|
346
|
+
type MfaDisabledWebhookPayload,
|
|
347
|
+
type KrakenEmbedVerificationCompletedWebhookPayload,
|
|
348
|
+
type KrakenEmbedVerificationFailedWebhookPayload,
|
|
349
|
+
type KrakenEmbedQuoteExecutedWebhookPayload,
|
|
350
|
+
type KrakenEmbedQuoteExecutionFailedWebhookPayload,
|
|
351
|
+
type KrakenEmbedQuoteCancelledWebhookPayload,
|
|
352
|
+
type KrakenEmbedUserVerifiedWebhookPayload,
|
|
353
|
+
type KrakenEmbedUserDisabledWebhookPayload,
|
|
354
|
+
type KrakenEmbedUserClosedWebhookPayload,
|
|
355
|
+
type YieldDepositConfirmedWebhookPayload,
|
|
356
|
+
type YieldWithdrawConfirmedWebhookPayload,
|
|
357
|
+
} from './webhooks';
|
|
358
|
+
export {
|
|
359
|
+
Yield,
|
|
360
|
+
type EvmCaip2ChainID,
|
|
361
|
+
type EthereumYieldProvider,
|
|
362
|
+
type EthereumYieldSweepType,
|
|
363
|
+
type EthereumYieldSweepStatus,
|
|
364
|
+
type EthereumYieldDepositInput,
|
|
365
|
+
type EthereumYieldWithdrawInput,
|
|
366
|
+
type EthereumYieldSweepResponse,
|
|
367
|
+
type EthereumVaultDetailsInput,
|
|
368
|
+
type EthereumYieldSweepIDInput,
|
|
369
|
+
type EthereumVaultResponse,
|
|
370
|
+
type EthereumVaultDetailsResponse,
|
|
371
|
+
type EthereumYieldPositionsInput,
|
|
372
|
+
type EthereumVaultPosition,
|
|
373
|
+
type EthereumYieldPositionResponse,
|
|
374
|
+
type EthereumYieldClaimInput,
|
|
375
|
+
type EthereumYieldClaimReward,
|
|
376
|
+
type EthereumYieldClaimResponse,
|
|
377
|
+
} from './yield';
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as IntentsAPI from './intents';
|
|
5
|
+
|
|
6
|
+
export class Intents extends APIResource {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
10
|
+
*/
|
|
11
|
+
export type IntentAuthorizationKeyQuorumMember =
|
|
12
|
+
| IntentAuthorizationKeyQuorumMember.UserMember
|
|
13
|
+
| IntentAuthorizationKeyQuorumMember.KeyMember;
|
|
14
|
+
|
|
15
|
+
export namespace IntentAuthorizationKeyQuorumMember {
|
|
16
|
+
export interface UserMember {
|
|
17
|
+
/**
|
|
18
|
+
* Whether this member has signed the intent
|
|
19
|
+
*/
|
|
20
|
+
has_signed: boolean;
|
|
21
|
+
|
|
22
|
+
type: 'user';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* User ID of the key quorum member
|
|
26
|
+
*/
|
|
27
|
+
user_id: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Display name for the user (email, etc)
|
|
31
|
+
*/
|
|
32
|
+
display_name?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface KeyMember {
|
|
36
|
+
/**
|
|
37
|
+
* Whether this key has signed the intent
|
|
38
|
+
*/
|
|
39
|
+
has_signed: boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Public key of the key quorum member
|
|
43
|
+
*/
|
|
44
|
+
public_key: string;
|
|
45
|
+
|
|
46
|
+
type: 'key';
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Display name for the key (if any)
|
|
50
|
+
*/
|
|
51
|
+
display_name?: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* A member of an intent authorization quorum. Can be a user, key, or nested key
|
|
57
|
+
* quorum.
|
|
58
|
+
*/
|
|
59
|
+
export type IntentAuthorizationMember =
|
|
60
|
+
| IntentAuthorizationMember.UserMember
|
|
61
|
+
| IntentAuthorizationMember.KeyMember
|
|
62
|
+
| IntentAuthorizationMember.KeyQuorumMember;
|
|
63
|
+
|
|
64
|
+
export namespace IntentAuthorizationMember {
|
|
65
|
+
export interface UserMember {
|
|
66
|
+
/**
|
|
67
|
+
* Whether this member has signed the intent
|
|
68
|
+
*/
|
|
69
|
+
has_signed: boolean;
|
|
70
|
+
|
|
71
|
+
type: 'user';
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* User ID of the key quorum member
|
|
75
|
+
*/
|
|
76
|
+
user_id: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Display name for the user (email, etc)
|
|
80
|
+
*/
|
|
81
|
+
display_name?: string;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface KeyMember {
|
|
85
|
+
/**
|
|
86
|
+
* Whether this key has signed the intent
|
|
87
|
+
*/
|
|
88
|
+
has_signed: boolean;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Public key of the key quorum member
|
|
92
|
+
*/
|
|
93
|
+
public_key: string;
|
|
94
|
+
|
|
95
|
+
type: 'key';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Display name for the key (if any)
|
|
99
|
+
*/
|
|
100
|
+
display_name?: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface KeyQuorumMember {
|
|
104
|
+
/**
|
|
105
|
+
* Whether this child key quorum has fulfilled its threshold
|
|
106
|
+
*/
|
|
107
|
+
has_signed: boolean;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* ID of the child key quorum member
|
|
111
|
+
*/
|
|
112
|
+
key_quorum_id: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Members of this child quorum
|
|
116
|
+
*/
|
|
117
|
+
members: Array<IntentsAPI.IntentAuthorizationKeyQuorumMember>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Number of signatures required from this child quorum
|
|
121
|
+
*/
|
|
122
|
+
threshold: number;
|
|
123
|
+
|
|
124
|
+
type: 'key_quorum';
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Display name for the child key quorum (if any)
|
|
128
|
+
*/
|
|
129
|
+
display_name?: string;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export declare namespace Intents {
|
|
134
|
+
export {
|
|
135
|
+
type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
|
|
136
|
+
type IntentAuthorizationMember as IntentAuthorizationMember,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
@@ -105,6 +105,11 @@ export interface KeyQuorum {
|
|
|
105
105
|
|
|
106
106
|
display_name?: string;
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* List of nested key quorum IDs that are members of this key quorum.
|
|
110
|
+
*/
|
|
111
|
+
key_quorum_ids?: Array<string>;
|
|
112
|
+
|
|
108
113
|
user_ids?: Array<string>;
|
|
109
114
|
}
|
|
110
115
|
|
|
@@ -132,6 +137,12 @@ export interface KeyQuorumCreateParams {
|
|
|
132
137
|
|
|
133
138
|
display_name?: string;
|
|
134
139
|
|
|
140
|
+
/**
|
|
141
|
+
* List of key quorum IDs that should be members of this key quorum. Key quorums
|
|
142
|
+
* can only be nested 1 level deep.
|
|
143
|
+
*/
|
|
144
|
+
key_quorum_ids?: Array<string>;
|
|
145
|
+
|
|
135
146
|
/**
|
|
136
147
|
* List of P-256 public keys of the keys that should be authorized to sign on the
|
|
137
148
|
* key quorum, in base64-encoded DER format.
|
|
@@ -165,6 +176,12 @@ export interface KeyQuorumUpdateParams {
|
|
|
165
176
|
*/
|
|
166
177
|
display_name?: string;
|
|
167
178
|
|
|
179
|
+
/**
|
|
180
|
+
* Body param: List of key quorum IDs that should be members of this key quorum.
|
|
181
|
+
* Key quorums can only be nested 1 level deep.
|
|
182
|
+
*/
|
|
183
|
+
key_quorum_ids?: Array<string>;
|
|
184
|
+
|
|
168
185
|
/**
|
|
169
186
|
* Body param: List of P-256 public keys of the keys that should be authorized to
|
|
170
187
|
* sign on the key quorum, in base64-encoded DER format.
|
|
@@ -255,6 +255,81 @@ export class Policies extends APIResource {
|
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
/**
|
|
259
|
+
* Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
|
|
260
|
+
* supported for command names.
|
|
261
|
+
*/
|
|
262
|
+
export type SuiTransactionCommandOperator = 'eq' | 'in';
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Supported fields for SUI TransferObjects command conditions. Only 'recipient'
|
|
266
|
+
* and 'amount' are supported.
|
|
267
|
+
*/
|
|
268
|
+
export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
272
|
+
* transaction types.
|
|
273
|
+
*/
|
|
274
|
+
export interface TronTransactionCondition {
|
|
275
|
+
/**
|
|
276
|
+
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
277
|
+
*/
|
|
278
|
+
field:
|
|
279
|
+
| 'TransferContract.to_address'
|
|
280
|
+
| 'TransferContract.amount'
|
|
281
|
+
| 'TriggerSmartContract.contract_address'
|
|
282
|
+
| 'TriggerSmartContract.call_value'
|
|
283
|
+
| 'TriggerSmartContract.token_id'
|
|
284
|
+
| 'TriggerSmartContract.call_token_value';
|
|
285
|
+
|
|
286
|
+
field_source: 'tron_transaction';
|
|
287
|
+
|
|
288
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
289
|
+
|
|
290
|
+
value: string | Array<string>;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* SUI transaction command attributes, enables allowlisting specific command types.
|
|
295
|
+
* Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
|
|
296
|
+
* 'in' operators are supported.
|
|
297
|
+
*/
|
|
298
|
+
export interface SuiTransactionCommandCondition {
|
|
299
|
+
field: 'commandName';
|
|
300
|
+
|
|
301
|
+
field_source: 'sui_transaction_command';
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
|
|
305
|
+
* supported for command names.
|
|
306
|
+
*/
|
|
307
|
+
operator: SuiTransactionCommandOperator;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
|
|
311
|
+
* 'MergeCoins'
|
|
312
|
+
*/
|
|
313
|
+
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* SUI TransferObjects command attributes, including recipient and amount fields.
|
|
318
|
+
*/
|
|
319
|
+
export interface SuiTransferObjectsCommandCondition {
|
|
320
|
+
/**
|
|
321
|
+
* Supported fields for SUI TransferObjects command conditions. Only 'recipient'
|
|
322
|
+
* and 'amount' are supported.
|
|
323
|
+
*/
|
|
324
|
+
field: SuiTransferObjectsCommandField;
|
|
325
|
+
|
|
326
|
+
field_source: 'sui_transfer_objects_command';
|
|
327
|
+
|
|
328
|
+
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
329
|
+
|
|
330
|
+
value: string | Array<string>;
|
|
331
|
+
}
|
|
332
|
+
|
|
258
333
|
/**
|
|
259
334
|
* A policy for controlling wallet operations.
|
|
260
335
|
*/
|
|
@@ -417,7 +492,7 @@ export namespace Policy {
|
|
|
417
492
|
}
|
|
418
493
|
|
|
419
494
|
/**
|
|
420
|
-
* Allowed contract addresses for
|
|
495
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
421
496
|
*/
|
|
422
497
|
export interface Ethereum7702AuthorizationCondition {
|
|
423
498
|
field: 'contract';
|
|
@@ -491,81 +566,6 @@ export namespace Policy {
|
|
|
491
566
|
}
|
|
492
567
|
}
|
|
493
568
|
|
|
494
|
-
/**
|
|
495
|
-
* Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
|
|
496
|
-
* supported for command names.
|
|
497
|
-
*/
|
|
498
|
-
export type SuiTransactionCommandOperator = 'eq' | 'in';
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Supported fields for SUI TransferObjects command conditions. Only 'recipient'
|
|
502
|
-
* and 'amount' are supported.
|
|
503
|
-
*/
|
|
504
|
-
export type SuiTransferObjectsCommandField = 'recipient' | 'amount';
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* TRON transaction fields for TransferContract and TriggerSmartContract
|
|
508
|
-
* transaction types.
|
|
509
|
-
*/
|
|
510
|
-
export interface TronTransactionCondition {
|
|
511
|
-
/**
|
|
512
|
-
* Supported TRON transaction fields in format "TransactionType.field_name"
|
|
513
|
-
*/
|
|
514
|
-
field:
|
|
515
|
-
| 'TransferContract.to_address'
|
|
516
|
-
| 'TransferContract.amount'
|
|
517
|
-
| 'TriggerSmartContract.contract_address'
|
|
518
|
-
| 'TriggerSmartContract.call_value'
|
|
519
|
-
| 'TriggerSmartContract.token_id'
|
|
520
|
-
| 'TriggerSmartContract.call_token_value';
|
|
521
|
-
|
|
522
|
-
field_source: 'tron_transaction';
|
|
523
|
-
|
|
524
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
525
|
-
|
|
526
|
-
value: string | Array<string>;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* SUI transaction command attributes, enables allowlisting specific command types.
|
|
531
|
-
* Allowed commands: 'TransferObjects', 'SplitCoins', 'MergeCoins'. Only 'eq' and
|
|
532
|
-
* 'in' operators are supported.
|
|
533
|
-
*/
|
|
534
|
-
export interface SuiTransactionCommandCondition {
|
|
535
|
-
field: 'commandName';
|
|
536
|
-
|
|
537
|
-
field_source: 'sui_transaction_command';
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Operator to use for SUI transaction command conditions. Only 'eq' and 'in' are
|
|
541
|
-
* supported for command names.
|
|
542
|
-
*/
|
|
543
|
-
operator: SuiTransactionCommandOperator;
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Command name(s) to match. Must be one of: 'TransferObjects', 'SplitCoins',
|
|
547
|
-
* 'MergeCoins'
|
|
548
|
-
*/
|
|
549
|
-
value: WalletsAPI.SuiCommandName | Array<WalletsAPI.SuiCommandName>;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* SUI TransferObjects command attributes, including recipient and amount fields.
|
|
554
|
-
*/
|
|
555
|
-
export interface SuiTransferObjectsCommandCondition {
|
|
556
|
-
/**
|
|
557
|
-
* Supported fields for SUI TransferObjects command conditions. Only 'recipient'
|
|
558
|
-
* and 'amount' are supported.
|
|
559
|
-
*/
|
|
560
|
-
field: SuiTransferObjectsCommandField;
|
|
561
|
-
|
|
562
|
-
field_source: 'sui_transfer_objects_command';
|
|
563
|
-
|
|
564
|
-
operator: 'eq' | 'gt' | 'gte' | 'lt' | 'lte' | 'in' | 'in_condition_set';
|
|
565
|
-
|
|
566
|
-
value: string | Array<string>;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
569
|
/**
|
|
570
570
|
* A rule that defines the conditions and action to take if the conditions are
|
|
571
571
|
* true.
|
|
@@ -689,7 +689,7 @@ export namespace PolicyCreateRuleResponse {
|
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
|
-
* Allowed contract addresses for
|
|
692
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
693
693
|
*/
|
|
694
694
|
export interface Ethereum7702AuthorizationCondition {
|
|
695
695
|
field: 'contract';
|
|
@@ -895,7 +895,7 @@ export namespace PolicyUpdateRuleResponse {
|
|
|
895
895
|
}
|
|
896
896
|
|
|
897
897
|
/**
|
|
898
|
-
* Allowed contract addresses for
|
|
898
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
899
899
|
*/
|
|
900
900
|
export interface Ethereum7702AuthorizationCondition {
|
|
901
901
|
field: 'contract';
|
|
@@ -1091,7 +1091,7 @@ export namespace PolicyGetRuleResponse {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
/**
|
|
1094
|
-
* Allowed contract addresses for
|
|
1094
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
1095
1095
|
*/
|
|
1096
1096
|
export interface Ethereum7702AuthorizationCondition {
|
|
1097
1097
|
field: 'contract';
|
|
@@ -1193,8 +1193,7 @@ export interface PolicyCreateParams {
|
|
|
1193
1193
|
owner?: PolicyCreateParams.PublicKeyOwner | PolicyCreateParams.UserOwner | null;
|
|
1194
1194
|
|
|
1195
1195
|
/**
|
|
1196
|
-
* Body param
|
|
1197
|
-
* provide this, do not specify an owner.
|
|
1196
|
+
* Body param
|
|
1198
1197
|
*/
|
|
1199
1198
|
owner_id?: string | null;
|
|
1200
1199
|
|
|
@@ -1326,7 +1325,7 @@ export namespace PolicyCreateParams {
|
|
|
1326
1325
|
}
|
|
1327
1326
|
|
|
1328
1327
|
/**
|
|
1329
|
-
* Allowed contract addresses for
|
|
1328
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
1330
1329
|
*/
|
|
1331
1330
|
export interface Ethereum7702AuthorizationCondition {
|
|
1332
1331
|
field: 'contract';
|
|
@@ -1547,7 +1546,7 @@ export namespace PolicyCreateRuleParams {
|
|
|
1547
1546
|
}
|
|
1548
1547
|
|
|
1549
1548
|
/**
|
|
1550
|
-
* Allowed contract addresses for
|
|
1549
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
1551
1550
|
*/
|
|
1552
1551
|
export interface Ethereum7702AuthorizationCondition {
|
|
1553
1552
|
field: 'contract';
|
|
@@ -1655,8 +1654,7 @@ export interface PolicyUpdateParams {
|
|
|
1655
1654
|
owner?: PolicyUpdateParams.PublicKeyOwner | PolicyUpdateParams.UserOwner | null;
|
|
1656
1655
|
|
|
1657
1656
|
/**
|
|
1658
|
-
* Body param
|
|
1659
|
-
* provide this, do not specify an owner.
|
|
1657
|
+
* Body param
|
|
1660
1658
|
*/
|
|
1661
1659
|
owner_id?: string | null;
|
|
1662
1660
|
|
|
@@ -1811,7 +1809,7 @@ export namespace PolicyUpdateParams {
|
|
|
1811
1809
|
}
|
|
1812
1810
|
|
|
1813
1811
|
/**
|
|
1814
|
-
* Allowed contract addresses for
|
|
1812
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
1815
1813
|
*/
|
|
1816
1814
|
export interface Ethereum7702AuthorizationCondition {
|
|
1817
1815
|
field: 'contract';
|
|
@@ -2019,7 +2017,7 @@ export namespace PolicyUpdateRuleParams {
|
|
|
2019
2017
|
}
|
|
2020
2018
|
|
|
2021
2019
|
/**
|
|
2022
|
-
* Allowed contract addresses for
|
|
2020
|
+
* Allowed contract addresses for eth_sign7702Authorization requests.
|
|
2023
2021
|
*/
|
|
2024
2022
|
export interface Ethereum7702AuthorizationCondition {
|
|
2025
2023
|
field: 'contract';
|
|
@@ -2098,12 +2096,12 @@ export interface PolicyGetRuleParams {
|
|
|
2098
2096
|
|
|
2099
2097
|
export declare namespace Policies {
|
|
2100
2098
|
export {
|
|
2101
|
-
type Policy as Policy,
|
|
2102
2099
|
type SuiTransactionCommandOperator as SuiTransactionCommandOperator,
|
|
2103
2100
|
type SuiTransferObjectsCommandField as SuiTransferObjectsCommandField,
|
|
2104
2101
|
type TronTransactionCondition as TronTransactionCondition,
|
|
2105
2102
|
type SuiTransactionCommandCondition as SuiTransactionCommandCondition,
|
|
2106
2103
|
type SuiTransferObjectsCommandCondition as SuiTransferObjectsCommandCondition,
|
|
2104
|
+
type Policy as Policy,
|
|
2107
2105
|
type PolicyCreateRuleResponse as PolicyCreateRuleResponse,
|
|
2108
2106
|
type PolicyDeleteResponse as PolicyDeleteResponse,
|
|
2109
2107
|
type PolicyDeleteRuleResponse as PolicyDeleteRuleResponse,
|