@privy-io/api-types 0.15.0 → 0.17.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 +141 -0
- package/client.d.mts +30 -33
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -33
- package/client.d.ts.map +1 -1
- package/client.js +9 -4
- package/client.js.map +1 -1
- package/client.mjs +9 -4
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +6 -2
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +6 -2
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +14 -4
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +14 -4
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +44 -23
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +44 -23
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +32 -8
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +32 -8
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +6 -0
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +6 -0
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/index.d.mts +15 -16
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +15 -16
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +65 -79
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +65 -79
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +9 -8
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +9 -8
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +208 -218
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +208 -218
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/kraken-embed.js.map +1 -1
- package/resources/kraken-embed.mjs.map +1 -1
- package/resources/onramps.d.mts +50 -48
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +50 -48
- package/resources/onramps.d.ts.map +1 -1
- package/resources/policies.d.mts +93 -24
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +93 -24
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +15 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +15 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +3 -2
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +3 -2
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +9 -2
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +9 -2
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +33 -7
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +33 -7
- package/resources/users.d.ts.map +1 -1
- package/resources/{wallet-actions.d.ts → wallets/actions.d.mts} +383 -68
- package/resources/wallets/actions.d.mts.map +1 -0
- package/resources/{wallet-actions.d.mts → wallets/actions.d.ts} +383 -68
- package/resources/wallets/actions.d.ts.map +1 -0
- package/resources/wallets/actions.js +9 -0
- package/resources/wallets/actions.js.map +1 -0
- package/resources/wallets/actions.mjs +5 -0
- package/resources/wallets/actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +11 -4
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +11 -4
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js +3 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs +1 -0
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +14 -3
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +14 -3
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +846 -97
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +846 -97
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +19 -2
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +19 -2
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +596 -108
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +596 -108
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +30 -30
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +30 -30
- package/resources/yield.d.ts.map +1 -1
- package/resources/yield.js.map +1 -1
- package/resources/yield.mjs.map +1 -1
- package/src/client.ts +223 -76
- package/src/resources/accounts.ts +7 -1
- package/src/resources/aggregations.ts +16 -3
- package/src/resources/apps.ts +60 -30
- package/src/resources/client-auth.ts +41 -7
- package/src/resources/embedded-wallets.ts +7 -0
- package/src/resources/index.ts +107 -36
- package/src/resources/intents.ts +73 -91
- package/src/resources/key-quorums.ts +11 -9
- package/src/resources/kraken-embed.ts +560 -1065
- package/src/resources/onramps.ts +69 -54
- package/src/resources/policies.ts +162 -52
- package/src/resources/shared.ts +18 -2
- package/src/resources/swaps.ts +3 -2
- package/src/resources/transactions.ts +18 -9
- package/src/resources/users.ts +38 -6
- package/src/resources/{wallet-actions.ts → wallets/actions.ts} +496 -78
- package/src/resources/wallets/balance.ts +26 -56
- package/src/resources/wallets/index.ts +93 -0
- package/src/resources/wallets/transactions.ts +17 -10
- package/src/resources/wallets/wallets.ts +1312 -177
- package/src/resources/webhooks.ts +729 -118
- package/src/resources/yield.ts +33 -41
- 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/resources/wallet-actions.d.mts.map +0 -1
- package/resources/wallet-actions.d.ts.map +0 -1
- package/resources/wallet-actions.js +0 -9
- package/resources/wallet-actions.js.map +0 -1
- package/resources/wallet-actions.mjs +0 -5
- package/resources/wallet-actions.mjs.map +0 -1
package/src/resources/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ export {
|
|
|
16
16
|
type BalanceAsset,
|
|
17
17
|
type BalanceAssetByChain,
|
|
18
18
|
type BalanceResponse,
|
|
19
|
+
type ChainTestnetMode,
|
|
19
20
|
type CreateAccountFromWalletIDsInput,
|
|
20
21
|
type CreateAccountFromWalletsConfigurationInput,
|
|
21
22
|
type CreateAccountInput,
|
|
@@ -31,14 +32,18 @@ export {
|
|
|
31
32
|
type AggregationMethod,
|
|
32
33
|
type AggregationMetric,
|
|
33
34
|
type AggregationWindow,
|
|
35
|
+
type RollingAggregationWindow,
|
|
34
36
|
} from './aggregations';
|
|
35
37
|
export { Analytics, type AnalyticsEventInput } from './analytics';
|
|
36
38
|
export {
|
|
37
39
|
Apps,
|
|
38
40
|
type AllowlistDeletionResponse,
|
|
39
41
|
type AllowlistEntry,
|
|
42
|
+
type AppAllowlistConfig,
|
|
43
|
+
type AppCustomOAuthProvider,
|
|
40
44
|
type AppResponse,
|
|
41
45
|
type Caip2,
|
|
46
|
+
type CaptchaProvider,
|
|
42
47
|
type Currency,
|
|
43
48
|
type CurrencyAsset,
|
|
44
49
|
type EmailDomain,
|
|
@@ -55,6 +60,7 @@ export {
|
|
|
55
60
|
type GasSpendCurrency,
|
|
56
61
|
type GasSpendRequestBody,
|
|
57
62
|
type GasSpendResponseBody,
|
|
63
|
+
type MfaMethod,
|
|
58
64
|
type PhoneInviteInput,
|
|
59
65
|
type TelegramAuthConfigSchema,
|
|
60
66
|
type TestAccount,
|
|
@@ -85,6 +91,7 @@ export {
|
|
|
85
91
|
type BridgeSandboxFiatVirtualAccountResponse,
|
|
86
92
|
type BridgeSourceAsset,
|
|
87
93
|
type BridgeUsdFiatVirtualAccountDepositInstructions,
|
|
94
|
+
type BridgeUsdFiatVirtualAccountDepositPaymentRail,
|
|
88
95
|
type CustomJwtAuthenticateRequestBody,
|
|
89
96
|
type CustomJwtLinkRequestBody,
|
|
90
97
|
type CustomOAuthProviderID,
|
|
@@ -145,6 +152,7 @@ export {
|
|
|
145
152
|
type OAuthProviderID,
|
|
146
153
|
type OAuthTokenAuthorizationCodeRequestBody,
|
|
147
154
|
type OAuthTokenDeviceCodePendingError,
|
|
155
|
+
type OAuthTokenDeviceCodePendingErrorCode,
|
|
148
156
|
type OAuthTokenDeviceCodeRequestBody,
|
|
149
157
|
type OAuthTokenGrantType,
|
|
150
158
|
type OAuthTokenRefreshTokenRequestBody,
|
|
@@ -210,6 +218,7 @@ export {
|
|
|
210
218
|
type SiwsInitResponseBody,
|
|
211
219
|
type SiwsInput,
|
|
212
220
|
type SiwsLinkRequestBody,
|
|
221
|
+
type SiwsMessageType,
|
|
213
222
|
type SiwsNonce,
|
|
214
223
|
type SiwsUnlinkRequestBody,
|
|
215
224
|
type SmartWalletSiweInput,
|
|
@@ -297,8 +306,11 @@ export {
|
|
|
297
306
|
type BaseActionResult,
|
|
298
307
|
type BaseIntentResponse,
|
|
299
308
|
type IntentAuthorization,
|
|
309
|
+
type IntentAuthorizationKeyMember,
|
|
310
|
+
type IntentAuthorizationKeyQuorum,
|
|
300
311
|
type IntentAuthorizationKeyQuorumMember,
|
|
301
312
|
type IntentAuthorizationMember,
|
|
313
|
+
type IntentAuthorizationUserMember,
|
|
302
314
|
type IntentAuthorizeInput,
|
|
303
315
|
type IntentCreationHeaders,
|
|
304
316
|
type IntentResponse,
|
|
@@ -311,6 +323,7 @@ export {
|
|
|
311
323
|
type RpcIntentResponse,
|
|
312
324
|
type RuleDeleteIntentResponse,
|
|
313
325
|
type RuleIntentCreateRequestDetails,
|
|
326
|
+
type RuleIntentDeleteRequestBody,
|
|
314
327
|
type RuleIntentDeleteRequestDetails,
|
|
315
328
|
type RuleIntentRequestDetails,
|
|
316
329
|
type RuleIntentResponse,
|
|
@@ -322,6 +335,7 @@ export {
|
|
|
322
335
|
} from './intents';
|
|
323
336
|
export {
|
|
324
337
|
KeyQuorums,
|
|
338
|
+
type AuthorizationKey,
|
|
325
339
|
type KeyQuorum,
|
|
326
340
|
type KeyQuorumAuthorizationHeaders,
|
|
327
341
|
type KeyQuorumCreateRequestBody,
|
|
@@ -329,10 +343,12 @@ export {
|
|
|
329
343
|
} from './key-quorums';
|
|
330
344
|
export {
|
|
331
345
|
KrakenEmbed,
|
|
346
|
+
type KrakenEmbedAssetSortOption,
|
|
332
347
|
type KrakenEmbedCancelCustomOrderInput,
|
|
333
348
|
type KrakenEmbedCancelCustomOrderPath,
|
|
334
349
|
type KrakenEmbedCancelCustomOrderResponse,
|
|
335
350
|
type KrakenEmbedCancelCustomOrderResult,
|
|
351
|
+
type KrakenEmbedCountryCode,
|
|
336
352
|
type KrakenEmbedCreateCustomOrderInput,
|
|
337
353
|
type KrakenEmbedCreateCustomOrderResponse,
|
|
338
354
|
type KrakenEmbedCreateCustomOrderResult,
|
|
@@ -342,14 +358,19 @@ export {
|
|
|
342
358
|
type KrakenEmbedCustomOrderAmount,
|
|
343
359
|
type KrakenEmbedCustomOrderOccurrence,
|
|
344
360
|
type KrakenEmbedCustomOrderOccurrenceExecutedAction,
|
|
361
|
+
type KrakenEmbedCustomOrderOccurrenceStatus,
|
|
345
362
|
type KrakenEmbedCustomOrderOccurrenceTrigger,
|
|
363
|
+
type KrakenEmbedCustomOrderOccurrenceTriggerType,
|
|
346
364
|
type KrakenEmbedCustomOrderQuoteAsset,
|
|
347
365
|
type KrakenEmbedCustomOrderStatus,
|
|
366
|
+
type KrakenEmbedCustomOrderStatusValue,
|
|
348
367
|
type KrakenEmbedCustomOrderTrigger,
|
|
368
|
+
type KrakenEmbedCustomOrderTriggerCondition,
|
|
349
369
|
type KrakenEmbedEarnAmount,
|
|
350
370
|
type KrakenEmbedEarnAprEstimate,
|
|
351
371
|
type KrakenEmbedEarnAsset,
|
|
352
372
|
type KrakenEmbedEarnUserAllocation,
|
|
373
|
+
type KrakenEmbedFullName,
|
|
353
374
|
type KrakenEmbedGetAssetListQueryParamsSchema,
|
|
354
375
|
type KrakenEmbedGetCustomOrderHistoryQueryParams,
|
|
355
376
|
type KrakenEmbedGetCustomOrderHistoryResponse,
|
|
@@ -368,11 +389,21 @@ export {
|
|
|
368
389
|
type KrakenEmbedGetPortfolioDetailsQueryParamsSchema,
|
|
369
390
|
type KrakenEmbedGetPortfolioSummaryQueryParams,
|
|
370
391
|
type KrakenEmbedGetPortfolioSummaryResponse,
|
|
392
|
+
type KrakenEmbedGetPortfolioSummaryResult,
|
|
371
393
|
type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema,
|
|
372
394
|
type KrakenEmbedGetQuoteQueryParams,
|
|
395
|
+
type KrakenEmbedIdentityDocumentType,
|
|
396
|
+
type KrakenEmbedIncludeCurrentDayPnlQueryParam,
|
|
373
397
|
type KrakenEmbedListCustomOrdersQueryParams,
|
|
374
398
|
type KrakenEmbedListCustomOrdersResponse,
|
|
375
399
|
type KrakenEmbedListCustomOrdersResult,
|
|
400
|
+
type KrakenEmbedPortfolioSummaryPayload,
|
|
401
|
+
type KrakenEmbedPortfolioTransactionRefID,
|
|
402
|
+
type KrakenEmbedPortfolioTransactionRefIDType,
|
|
403
|
+
type KrakenEmbedQuoteType,
|
|
404
|
+
type KrakenEmbedResidence,
|
|
405
|
+
type KrakenEmbedResidenceDocumentType,
|
|
406
|
+
type KrakenEmbedSortingOrder,
|
|
376
407
|
type KrakenEmbedStartAddressMetadata,
|
|
377
408
|
type KrakenEmbedStartAddressVerificationURLInput,
|
|
378
409
|
type KrakenEmbedStartIdentityInfo,
|
|
@@ -386,6 +417,8 @@ export {
|
|
|
386
417
|
type KrakenEmbedToggleAutoEarnKrakenResponse,
|
|
387
418
|
type KrakenEmbedToggleAutoEarnQueryParams,
|
|
388
419
|
type KrakenEmbedToggleAutoEarnResponse,
|
|
420
|
+
type KrakenEmbedTransactionStatus,
|
|
421
|
+
type KrakenEmbedTransactionType,
|
|
389
422
|
type KrakenEmbedUpcomingReward,
|
|
390
423
|
} from './kraken-embed';
|
|
391
424
|
export {
|
|
@@ -406,7 +439,6 @@ export {
|
|
|
406
439
|
type CreateOrUpdateFiatCustomerRequestInput,
|
|
407
440
|
type CreateStripeOnrampSessionInput,
|
|
408
441
|
type CreateStripeOnrampSessionResponse,
|
|
409
|
-
type CryptoCurrencyCode,
|
|
410
442
|
type ExchangeStripeTokensInput,
|
|
411
443
|
type ExchangeStripeTokensResponse,
|
|
412
444
|
type FiatAmount,
|
|
@@ -433,7 +465,6 @@ export {
|
|
|
433
465
|
type LinkAuthIntentNoAccount,
|
|
434
466
|
type ListStripeConsumerWalletsResponse,
|
|
435
467
|
type ListStripePaymentTokensResponse,
|
|
436
|
-
type OnrampSessionFees,
|
|
437
468
|
type OnrampSessionParams,
|
|
438
469
|
type OnrampSessionTransactionDetails,
|
|
439
470
|
type RefreshStripeQuoteResponse,
|
|
@@ -441,10 +472,11 @@ export {
|
|
|
441
472
|
type StripeCryptoCustomerActive,
|
|
442
473
|
type StripeCryptoCustomerExpired,
|
|
443
474
|
type StripeCryptoCustomerNone,
|
|
475
|
+
type StripeKYCRegion,
|
|
476
|
+
type StripeKYCTier,
|
|
444
477
|
type StripeOnrampCheckoutResponse,
|
|
445
478
|
type StripeOnrampSessionStatus,
|
|
446
479
|
type StripePaymentToken,
|
|
447
|
-
type StripeQuote,
|
|
448
480
|
type StripeTransactionDetails,
|
|
449
481
|
type StripeVerification,
|
|
450
482
|
} from './onramps';
|
|
@@ -477,8 +509,12 @@ export {
|
|
|
477
509
|
type Ethereum7702AuthorizationCondition,
|
|
478
510
|
type EthereumCalldataCondition,
|
|
479
511
|
type EthereumTransactionCondition,
|
|
512
|
+
type EthereumTransactionConditionField,
|
|
480
513
|
type EthereumTypedDataDomainCondition,
|
|
514
|
+
type EthereumTypedDataDomainConditionField,
|
|
481
515
|
type EthereumTypedDataMessageCondition,
|
|
516
|
+
type MessageSigningCondition,
|
|
517
|
+
type MessageSigningField,
|
|
482
518
|
type Policy,
|
|
483
519
|
type PolicyAction,
|
|
484
520
|
type PolicyAuthorizationHeaders,
|
|
@@ -490,7 +526,9 @@ export {
|
|
|
490
526
|
type PolicyRuleResponse,
|
|
491
527
|
type SolanaProgramInstructionCondition,
|
|
492
528
|
type SolanaSystemProgramInstructionCondition,
|
|
529
|
+
type SolanaSystemProgramInstructionConditionField,
|
|
493
530
|
type SolanaTokenProgramInstructionCondition,
|
|
531
|
+
type SolanaTokenProgramInstructionConditionField,
|
|
494
532
|
type SuiTransactionCommandCondition,
|
|
495
533
|
type SuiTransactionCommandOperator,
|
|
496
534
|
type SuiTransferObjectsCommandCondition,
|
|
@@ -500,6 +538,8 @@ export {
|
|
|
500
538
|
type TempoTransactionConditionField,
|
|
501
539
|
type TronCalldataCondition,
|
|
502
540
|
type TronTransactionCondition,
|
|
541
|
+
type TronTransactionConditionField,
|
|
542
|
+
type TypedDataInput,
|
|
503
543
|
type UpdateConditionSetRequestBody,
|
|
504
544
|
} from './policies';
|
|
505
545
|
export {
|
|
@@ -517,7 +557,9 @@ export {
|
|
|
517
557
|
type P256PublicKey,
|
|
518
558
|
type SolanaAddress,
|
|
519
559
|
type SuccessResponse,
|
|
560
|
+
type TokenIdentifier,
|
|
520
561
|
type TronAddress,
|
|
562
|
+
type TronHexAddress,
|
|
521
563
|
} from './shared';
|
|
522
564
|
export {
|
|
523
565
|
Swaps,
|
|
@@ -530,6 +572,7 @@ export {
|
|
|
530
572
|
} from './swaps';
|
|
531
573
|
export {
|
|
532
574
|
Transactions,
|
|
575
|
+
type BlockchainTransactionStatus,
|
|
533
576
|
type Transaction,
|
|
534
577
|
type TransactionList,
|
|
535
578
|
type TransactionScanningAssetDiff,
|
|
@@ -552,6 +595,7 @@ export {
|
|
|
552
595
|
export {
|
|
553
596
|
Users,
|
|
554
597
|
type AuthenticatedUser,
|
|
598
|
+
type ClientSessionUpdateAction,
|
|
555
599
|
type CrossAppEmbeddedWallet,
|
|
556
600
|
type CrossAppSmartWallet,
|
|
557
601
|
type CustomMetadata,
|
|
@@ -561,6 +605,7 @@ export {
|
|
|
561
605
|
type LinkedAccountAppleOAuth,
|
|
562
606
|
type LinkedAccountAuthorizationKey,
|
|
563
607
|
type LinkedAccountBaseWallet,
|
|
608
|
+
type LinkedAccountBaseWalletType,
|
|
564
609
|
type LinkedAccountBitcoinSegwitEmbeddedWallet,
|
|
565
610
|
type LinkedAccountBitcoinTaprootEmbeddedWallet,
|
|
566
611
|
type LinkedAccountCrossApp,
|
|
@@ -590,6 +635,7 @@ export {
|
|
|
590
635
|
type LinkedAccountLinkedInInput,
|
|
591
636
|
type LinkedAccountLinkedInOAuth,
|
|
592
637
|
type LinkedAccountPasskey,
|
|
638
|
+
type LinkedAccountPasskeyCredentialDeviceType,
|
|
593
639
|
type LinkedAccountPasskeyInput,
|
|
594
640
|
type LinkedAccountPhone,
|
|
595
641
|
type LinkedAccountPhoneInput,
|
|
@@ -618,44 +664,15 @@ export {
|
|
|
618
664
|
type UserBatchCreateInput,
|
|
619
665
|
type UserWithIdentityToken,
|
|
620
666
|
} from './users';
|
|
621
|
-
export {
|
|
622
|
-
WalletActions,
|
|
623
|
-
type EvmTransactionWalletActionStep,
|
|
624
|
-
type EvmUserOperationWalletActionStep,
|
|
625
|
-
type EvmWalletActionStepStatus,
|
|
626
|
-
type EarnAsset,
|
|
627
|
-
type EarnDepositActionResponse,
|
|
628
|
-
type EarnDepositRequestBody,
|
|
629
|
-
type EarnIncentiveClaimActionResponse,
|
|
630
|
-
type EarnIncentiveClaimRequestBody,
|
|
631
|
-
type EarnIncentiveRewardEntry,
|
|
632
|
-
type EarnIncentiveRewardsQuery,
|
|
633
|
-
type EarnIncentiveRewardsResponse,
|
|
634
|
-
type EarnIncetiveClaimRewardEntry,
|
|
635
|
-
type EarnWithdrawActionResponse,
|
|
636
|
-
type EarnWithdrawRequestBody,
|
|
637
|
-
type EthereumEarnPositionQuery,
|
|
638
|
-
type EthereumEarnPositionResponse,
|
|
639
|
-
type EthereumEarnProvider,
|
|
640
|
-
type EthereumEarnVaultDetailsResponse,
|
|
641
|
-
type ExternalTransactionWalletActionStep,
|
|
642
|
-
type ExternalTransactionWalletActionStepStatus,
|
|
643
|
-
type FailureReason,
|
|
644
|
-
type SvmTransactionWalletActionStep,
|
|
645
|
-
type SvmWalletActionStepStatus,
|
|
646
|
-
type SwapActionResponse,
|
|
647
|
-
type TransferActionResponse,
|
|
648
|
-
type WalletActionResponse,
|
|
649
|
-
type WalletActionStatus,
|
|
650
|
-
type WalletActionStep,
|
|
651
|
-
type WalletActionStepType,
|
|
652
|
-
type WalletActionType,
|
|
653
|
-
} from './wallet-actions';
|
|
654
667
|
export {
|
|
655
668
|
Wallets,
|
|
669
|
+
type AccessListEntry,
|
|
656
670
|
type AdditionalSignerInput,
|
|
657
671
|
type AdditionalSignerItemInput,
|
|
658
672
|
type Address,
|
|
673
|
+
type AdvancedSwapPlatformFee,
|
|
674
|
+
type AdvancedSwapRequestBody,
|
|
675
|
+
type AdvancedSwapResponse,
|
|
659
676
|
type AmountType,
|
|
660
677
|
type AuthorizationKeyDashboardResponse,
|
|
661
678
|
type AuthorizationKeyResponse,
|
|
@@ -668,6 +685,9 @@ export {
|
|
|
668
685
|
type CustodialWalletProvider,
|
|
669
686
|
type CustomTokenTransferSource,
|
|
670
687
|
type DeveloperFee,
|
|
688
|
+
type EncryptedAuthorizationKey,
|
|
689
|
+
type EncryptedBoundAuthenticateResponse,
|
|
690
|
+
type EncryptedWalletAuthenticateResponse,
|
|
671
691
|
type EthereumPersonalSignRpcInput,
|
|
672
692
|
type EthereumPersonalSignRpcInputParams,
|
|
673
693
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -723,6 +743,7 @@ export {
|
|
|
723
743
|
type HpkeEncryption,
|
|
724
744
|
type HpkeImportConfig,
|
|
725
745
|
type Hex,
|
|
746
|
+
type IntentBinding,
|
|
726
747
|
type NamedTokenTransferSource,
|
|
727
748
|
type OutputWithPreviousTransactionData,
|
|
728
749
|
type PolicyInput,
|
|
@@ -732,6 +753,7 @@ export {
|
|
|
732
753
|
type PrivateKeySubmitInput,
|
|
733
754
|
type PrivyFee,
|
|
734
755
|
type Quantity,
|
|
756
|
+
type RawBoundAuthenticateResponse,
|
|
735
757
|
type RawSignBytesEncoding,
|
|
736
758
|
type RawSignBytesHashFunction,
|
|
737
759
|
type RawSignBytesParams,
|
|
@@ -740,10 +762,13 @@ export {
|
|
|
740
762
|
type RawSignInputParams,
|
|
741
763
|
type RawSignResponse,
|
|
742
764
|
type RawSignResponseData,
|
|
765
|
+
type RawWalletAuthenticateResponse,
|
|
743
766
|
type RecipientPublicKey,
|
|
744
767
|
type RelayerFee,
|
|
745
768
|
type SeedPhraseExportInput,
|
|
746
769
|
type SeedPhraseExportResponse,
|
|
770
|
+
type SignatureOptions,
|
|
771
|
+
type SignatureType,
|
|
747
772
|
type SigningAlgorithm,
|
|
748
773
|
type SolanaRpcInput,
|
|
749
774
|
type SolanaRpcResponse,
|
|
@@ -765,9 +790,13 @@ export {
|
|
|
765
790
|
type SparkClaimStaticDepositRpcInputParams,
|
|
766
791
|
type SparkClaimStaticDepositRpcResponse,
|
|
767
792
|
type SparkClaimStaticDepositRpcResponseData,
|
|
793
|
+
type SparkCoopExitFeeQuote,
|
|
794
|
+
type SparkCoopExitRequest,
|
|
768
795
|
type SparkCreateLightningInvoiceRpcInput,
|
|
769
796
|
type SparkCreateLightningInvoiceRpcInputParams,
|
|
770
797
|
type SparkCreateLightningInvoiceRpcResponse,
|
|
798
|
+
type SparkCurrencyAmount,
|
|
799
|
+
type SparkExitSpeed,
|
|
771
800
|
type SparkGetBalanceRpcInput,
|
|
772
801
|
type SparkGetBalanceRpcResponse,
|
|
773
802
|
type SparkGetClaimStaticDepositQuoteRpcInput,
|
|
@@ -777,6 +806,9 @@ export {
|
|
|
777
806
|
type SparkGetStaticDepositAddressRpcInput,
|
|
778
807
|
type SparkGetStaticDepositAddressRpcResponse,
|
|
779
808
|
type SparkGetStaticDepositAddressRpcResponseData,
|
|
809
|
+
type SparkGetWithdrawalFeeQuoteRpcInput,
|
|
810
|
+
type SparkGetWithdrawalFeeQuoteRpcInputParams,
|
|
811
|
+
type SparkGetWithdrawalFeeQuoteRpcResponse,
|
|
780
812
|
type SparkLightningFee,
|
|
781
813
|
type SparkLightningReceiveRequest,
|
|
782
814
|
type SparkLightningSendRequest,
|
|
@@ -804,7 +836,11 @@ export {
|
|
|
804
836
|
type SparkTransferTokensRpcResponseData,
|
|
805
837
|
type SparkUserTokenMetadata,
|
|
806
838
|
type SparkWalletLeaf,
|
|
839
|
+
type SparkWithdrawRpcInput,
|
|
840
|
+
type SparkWithdrawRpcInputParams,
|
|
841
|
+
type SparkWithdrawRpcResponse,
|
|
807
842
|
type SuiCommandName,
|
|
843
|
+
type SwapSubmissionStatus,
|
|
808
844
|
type TempoAaAuthorization,
|
|
809
845
|
type TempoCall,
|
|
810
846
|
type TempoFeePayerSignature,
|
|
@@ -812,6 +848,7 @@ export {
|
|
|
812
848
|
type TokenTransferDestination,
|
|
813
849
|
type TokenTransferSource,
|
|
814
850
|
type TotalFeeConfigurationBps,
|
|
851
|
+
type TransactionChainNameInput,
|
|
815
852
|
type TransactionDetail,
|
|
816
853
|
type TransactionTokenAddressInput,
|
|
817
854
|
type TransferQuoteRequestBody,
|
|
@@ -819,6 +856,21 @@ export {
|
|
|
819
856
|
type TransferReceivedTransactionDetail,
|
|
820
857
|
type TransferRequestBody,
|
|
821
858
|
type TransferSentTransactionDetail,
|
|
859
|
+
type TronContract,
|
|
860
|
+
type TronRawDataForSend,
|
|
861
|
+
type TronRawDataForSign,
|
|
862
|
+
type TronRpcInput,
|
|
863
|
+
type TronRpcResponse,
|
|
864
|
+
type TronSendTransactionRpcInput,
|
|
865
|
+
type TronSendTransactionRpcInputParams,
|
|
866
|
+
type TronSendTransactionRpcResponse,
|
|
867
|
+
type TronSendTransactionRpcResponseData,
|
|
868
|
+
type TronSignTransactionRpcInput,
|
|
869
|
+
type TronSignTransactionRpcInputParams,
|
|
870
|
+
type TronSignTransactionRpcResponse,
|
|
871
|
+
type TronSignTransactionRpcResponseData,
|
|
872
|
+
type TronTransferContract,
|
|
873
|
+
type TronTriggerSmartContract,
|
|
822
874
|
type TypedDataDomainInputParams,
|
|
823
875
|
type TypedDataTypeFieldInput,
|
|
824
876
|
type TypedDataTypesInputParams,
|
|
@@ -826,12 +878,18 @@ export {
|
|
|
826
878
|
type UnsignedStandardEthereumTransaction,
|
|
827
879
|
type UnsignedTempoTransaction,
|
|
828
880
|
type UserOperationInput,
|
|
881
|
+
type UserSigningKeyBinding,
|
|
829
882
|
type Wallet,
|
|
830
883
|
type WalletAdditionalSigner,
|
|
831
884
|
type WalletAdditionalSignerItem,
|
|
832
885
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
833
886
|
type WalletAPIRevokeAuthorizationKeyInput,
|
|
834
887
|
type WalletAsset,
|
|
888
|
+
type WalletAssetChainNameInput,
|
|
889
|
+
type WalletAuthenticateBoundEncryptedRequestBody,
|
|
890
|
+
type WalletAuthenticateBoundRequestBody,
|
|
891
|
+
type WalletAuthenticateBoundUnencryptedRequestBody,
|
|
892
|
+
type WalletAuthenticateIntentsResponse,
|
|
835
893
|
type WalletAuthenticateRequestBody,
|
|
836
894
|
type WalletAuthenticateWithJwtResponse,
|
|
837
895
|
type WalletAuthorizationHeaders,
|
|
@@ -853,17 +911,20 @@ export {
|
|
|
853
911
|
type WalletRpcRequestBody,
|
|
854
912
|
type WalletRpcResponse,
|
|
855
913
|
type WalletSolanaAsset,
|
|
914
|
+
type WalletTronAsset,
|
|
856
915
|
type WalletUpdateRequestBody,
|
|
857
916
|
type WalletCreateParams,
|
|
858
917
|
type WalletUpdateParams,
|
|
859
918
|
type WalletListParams,
|
|
860
919
|
type WalletExportParams,
|
|
920
|
+
type WalletGetParams,
|
|
861
921
|
type WalletRawSignParams,
|
|
862
922
|
type WalletRpcParams,
|
|
863
923
|
type WalletsCursor,
|
|
864
924
|
} from './wallets/wallets';
|
|
865
925
|
export {
|
|
866
926
|
Webhooks,
|
|
927
|
+
type BlockInfo,
|
|
867
928
|
type BridgeCryptoDepositMetadata,
|
|
868
929
|
type BridgeCryptoTransferMetadata,
|
|
869
930
|
type BridgeFiatDepositMetadata,
|
|
@@ -903,6 +964,7 @@ export {
|
|
|
903
964
|
type UserCreatedWebhookPayload,
|
|
904
965
|
type UserLinkedAccountWebhookPayload,
|
|
905
966
|
type UserOperationCompletedWebhookPayload,
|
|
967
|
+
type UserReference,
|
|
906
968
|
type UserTransferredAccountWebhookPayload,
|
|
907
969
|
type UserUnlinkedAccountWebhookPayload,
|
|
908
970
|
type UserUpdatedAccountWebhookPayload,
|
|
@@ -911,6 +973,10 @@ export {
|
|
|
911
973
|
type WalletActionEarnDepositFailedWebhookPayload,
|
|
912
974
|
type WalletActionEarnDepositRejectedWebhookPayload,
|
|
913
975
|
type WalletActionEarnDepositSucceededWebhookPayload,
|
|
976
|
+
type WalletActionEarnFeeCollectCreatedWebhookPayload,
|
|
977
|
+
type WalletActionEarnFeeCollectFailedWebhookPayload,
|
|
978
|
+
type WalletActionEarnFeeCollectRejectedWebhookPayload,
|
|
979
|
+
type WalletActionEarnFeeCollectSucceededWebhookPayload,
|
|
914
980
|
type WalletActionEarnIncentiveClaimCreatedWebhookPayload,
|
|
915
981
|
type WalletActionEarnIncentiveClaimFailedWebhookPayload,
|
|
916
982
|
type WalletActionEarnIncentiveClaimRejectedWebhookPayload,
|
|
@@ -927,15 +993,19 @@ export {
|
|
|
927
993
|
type WalletActionTransferFailedWebhookPayload,
|
|
928
994
|
type WalletActionTransferRejectedWebhookPayload,
|
|
929
995
|
type WalletActionTransferSucceededWebhookPayload,
|
|
996
|
+
type WalletArchivedWebhookPayload,
|
|
930
997
|
type WalletFundsAsset,
|
|
931
998
|
type WalletFundsErc20Asset,
|
|
932
999
|
type WalletFundsNativeTokenAsset,
|
|
933
1000
|
type WalletFundsSacAsset,
|
|
934
1001
|
type WalletFundsSplAsset,
|
|
935
1002
|
type WalletRecoveredWebhookPayload,
|
|
1003
|
+
type WalletRecoverySetupMethod,
|
|
936
1004
|
type WalletRecoverySetupWebhookPayload,
|
|
1005
|
+
type WalletRestoredWebhookPayload,
|
|
937
1006
|
type WebhookPayload,
|
|
938
1007
|
type YieldClaimConfirmedWebhookPayload,
|
|
1008
|
+
type YieldClaimReward,
|
|
939
1009
|
type YieldDepositConfirmedWebhookPayload,
|
|
940
1010
|
type YieldWithdrawConfirmedWebhookPayload,
|
|
941
1011
|
} from './webhooks';
|
|
@@ -959,5 +1029,6 @@ export {
|
|
|
959
1029
|
type EthereumYieldSweepType,
|
|
960
1030
|
type EthereumYieldWithdrawInput,
|
|
961
1031
|
type EvmCaip2ChainID,
|
|
1032
|
+
type VaultAsset,
|
|
962
1033
|
type YieldAuthorizationHeaders,
|
|
963
1034
|
} from './yield';
|
package/src/resources/intents.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
-
import * as IntentsAPI from './intents';
|
|
5
4
|
import * as KeyQuorumsAPI from './key-quorums';
|
|
6
5
|
import * as PoliciesAPI from './policies';
|
|
7
6
|
import * as SharedAPI from './shared';
|
|
@@ -123,108 +122,83 @@ export interface IntentAuthorization {
|
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
/**
|
|
126
|
-
* A
|
|
125
|
+
* A key member of an intent authorization quorum.
|
|
127
126
|
*/
|
|
128
|
-
export
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export interface UserMember {
|
|
134
|
-
/**
|
|
135
|
-
* Unix timestamp when this member signed, or null if not yet signed.
|
|
136
|
-
*/
|
|
137
|
-
signed_at: number | null;
|
|
138
|
-
|
|
139
|
-
type: 'user';
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* User ID of the key quorum member
|
|
143
|
-
*/
|
|
144
|
-
user_id: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface KeyMember {
|
|
148
|
-
/**
|
|
149
|
-
* Public key of the key quorum member
|
|
150
|
-
*/
|
|
151
|
-
public_key: string;
|
|
127
|
+
export interface IntentAuthorizationKeyMember {
|
|
128
|
+
/**
|
|
129
|
+
* Public key of the key quorum member
|
|
130
|
+
*/
|
|
131
|
+
public_key: string;
|
|
152
132
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
133
|
+
/**
|
|
134
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
135
|
+
*/
|
|
136
|
+
signed_at: number | null;
|
|
157
137
|
|
|
158
|
-
|
|
159
|
-
}
|
|
138
|
+
type: 'key';
|
|
160
139
|
}
|
|
161
140
|
|
|
162
141
|
/**
|
|
163
|
-
* A member of an intent authorization quorum.
|
|
164
|
-
* quorum.
|
|
142
|
+
* A nested key quorum member of an intent authorization quorum.
|
|
165
143
|
*/
|
|
166
|
-
export
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export namespace IntentAuthorizationMember {
|
|
172
|
-
export interface UserMember {
|
|
173
|
-
/**
|
|
174
|
-
* Unix timestamp when this member signed, or null if not yet signed.
|
|
175
|
-
*/
|
|
176
|
-
signed_at: number | null;
|
|
177
|
-
|
|
178
|
-
type: 'user';
|
|
144
|
+
export interface IntentAuthorizationKeyQuorum {
|
|
145
|
+
/**
|
|
146
|
+
* ID of the child key quorum member
|
|
147
|
+
*/
|
|
148
|
+
key_quorum_id: string;
|
|
179
149
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
150
|
+
/**
|
|
151
|
+
* Members of this child quorum
|
|
152
|
+
*/
|
|
153
|
+
members: Array<IntentAuthorizationKeyQuorumMember>;
|
|
185
154
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
public_key: string;
|
|
155
|
+
/**
|
|
156
|
+
* Number of signatures required from this child quorum
|
|
157
|
+
*/
|
|
158
|
+
threshold: number;
|
|
191
159
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Whether this child key quorum has met its signature threshold
|
|
162
|
+
*/
|
|
163
|
+
threshold_met: boolean;
|
|
196
164
|
|
|
197
|
-
|
|
198
|
-
}
|
|
165
|
+
type: 'key_quorum';
|
|
199
166
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
167
|
+
/**
|
|
168
|
+
* Display name for the child key quorum (if any)
|
|
169
|
+
*/
|
|
170
|
+
display_name?: string;
|
|
171
|
+
}
|
|
205
172
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
173
|
+
/**
|
|
174
|
+
* A leaf member (user or key) of a nested key quorum in an intent authorization.
|
|
175
|
+
*/
|
|
176
|
+
export type IntentAuthorizationKeyQuorumMember = IntentAuthorizationUserMember | IntentAuthorizationKeyMember;
|
|
210
177
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
178
|
+
/**
|
|
179
|
+
* A member of an intent authorization quorum. Can be a user, key, or nested key
|
|
180
|
+
* quorum.
|
|
181
|
+
*/
|
|
182
|
+
export type IntentAuthorizationMember =
|
|
183
|
+
| IntentAuthorizationUserMember
|
|
184
|
+
| IntentAuthorizationKeyMember
|
|
185
|
+
| IntentAuthorizationKeyQuorum;
|
|
215
186
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
187
|
+
/**
|
|
188
|
+
* A user member of an intent authorization quorum.
|
|
189
|
+
*/
|
|
190
|
+
export interface IntentAuthorizationUserMember {
|
|
191
|
+
/**
|
|
192
|
+
* Unix timestamp when this member signed, or null if not yet signed.
|
|
193
|
+
*/
|
|
194
|
+
signed_at: number | null;
|
|
220
195
|
|
|
221
|
-
|
|
196
|
+
type: 'user';
|
|
222
197
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
198
|
+
/**
|
|
199
|
+
* User ID of the key quorum member
|
|
200
|
+
*/
|
|
201
|
+
user_id: string;
|
|
228
202
|
}
|
|
229
203
|
|
|
230
204
|
/**
|
|
@@ -516,6 +490,11 @@ export interface RuleIntentCreateRequestDetails {
|
|
|
516
490
|
url: string;
|
|
517
491
|
}
|
|
518
492
|
|
|
493
|
+
/**
|
|
494
|
+
* Empty request body for a rule delete intent.
|
|
495
|
+
*/
|
|
496
|
+
export interface RuleIntentDeleteRequestBody {}
|
|
497
|
+
|
|
519
498
|
/**
|
|
520
499
|
* Request details for deleting a rule via intent.
|
|
521
500
|
*/
|
|
@@ -524,11 +503,10 @@ export interface RuleIntentDeleteRequestDetails {
|
|
|
524
503
|
|
|
525
504
|
url: string;
|
|
526
505
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
export interface Body {}
|
|
506
|
+
/**
|
|
507
|
+
* Empty request body for a rule delete intent.
|
|
508
|
+
*/
|
|
509
|
+
body?: RuleIntentDeleteRequestBody;
|
|
532
510
|
}
|
|
533
511
|
|
|
534
512
|
/**
|
|
@@ -738,8 +716,11 @@ export declare namespace Intents {
|
|
|
738
716
|
type BaseActionResult as BaseActionResult,
|
|
739
717
|
type BaseIntentResponse as BaseIntentResponse,
|
|
740
718
|
type IntentAuthorization as IntentAuthorization,
|
|
719
|
+
type IntentAuthorizationKeyMember as IntentAuthorizationKeyMember,
|
|
720
|
+
type IntentAuthorizationKeyQuorum as IntentAuthorizationKeyQuorum,
|
|
741
721
|
type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
|
|
742
722
|
type IntentAuthorizationMember as IntentAuthorizationMember,
|
|
723
|
+
type IntentAuthorizationUserMember as IntentAuthorizationUserMember,
|
|
743
724
|
type IntentAuthorizeInput as IntentAuthorizeInput,
|
|
744
725
|
type IntentCreationHeaders as IntentCreationHeaders,
|
|
745
726
|
type IntentResponse as IntentResponse,
|
|
@@ -752,6 +733,7 @@ export declare namespace Intents {
|
|
|
752
733
|
type RpcIntentResponse as RpcIntentResponse,
|
|
753
734
|
type RuleDeleteIntentResponse as RuleDeleteIntentResponse,
|
|
754
735
|
type RuleIntentCreateRequestDetails as RuleIntentCreateRequestDetails,
|
|
736
|
+
type RuleIntentDeleteRequestBody as RuleIntentDeleteRequestBody,
|
|
755
737
|
type RuleIntentDeleteRequestDetails as RuleIntentDeleteRequestDetails,
|
|
756
738
|
type RuleIntentRequestDetails as RuleIntentRequestDetails,
|
|
757
739
|
type RuleIntentResponse as RuleIntentResponse,
|