@privy-io/api-types 0.19.0 → 0.21.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 +48 -0
- package/client.d.mts +25 -16
- package/client.d.mts.map +1 -1
- package/client.d.ts +25 -16
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/actions.d.mts +14 -0
- package/resources/actions.d.mts.map +1 -0
- package/resources/actions.d.ts +14 -0
- package/resources/actions.d.ts.map +1 -0
- package/resources/actions.js +9 -0
- package/resources/actions.js.map +1 -0
- package/resources/actions.mjs +5 -0
- package/resources/actions.mjs.map +1 -0
- package/resources/apps.d.mts +4 -0
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +4 -0
- package/resources/apps.d.ts.map +1 -1
- package/resources/cards.d.mts +436 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +436 -0
- package/resources/cards.d.ts.map +1 -0
- package/resources/cards.js +9 -0
- package/resources/cards.js.map +1 -0
- package/resources/cards.mjs +5 -0
- package/resources/cards.mjs.map +1 -0
- package/resources/client-auth.d.mts +22 -5
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +22 -5
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/fiat.d.mts +921 -2
- package/resources/fiat.d.mts.map +1 -1
- package/resources/fiat.d.ts +921 -2
- package/resources/fiat.d.ts.map +1 -1
- package/resources/fiat.js.map +1 -1
- package/resources/fiat.mjs.map +1 -1
- package/resources/index.d.mts +11 -8
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +1 -0
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +1 -0
- package/resources/intents.d.ts.map +1 -1
- package/resources/onramps.d.mts +39 -1
- package/resources/onramps.d.mts.map +1 -1
- package/resources/onramps.d.ts +39 -1
- package/resources/onramps.d.ts.map +1 -1
- package/resources/onramps.js.map +1 -1
- package/resources/onramps.mjs.map +1 -1
- package/resources/organizations.d.mts +54 -1
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts +54 -1
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.js.map +1 -1
- package/resources/organizations.mjs.map +1 -1
- package/resources/policies.d.mts +26 -3
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +26 -3
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +9 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +9 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +9 -0
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +9 -0
- package/resources/swaps.d.ts.map +1 -1
- package/resources/transactions.d.mts +3 -0
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +3 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +20 -0
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +20 -0
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-automations.d.mts +295 -0
- package/resources/wallet-automations.d.mts.map +1 -0
- package/resources/wallet-automations.d.ts +295 -0
- package/resources/wallet-automations.d.ts.map +1 -0
- package/resources/wallet-automations.js +9 -0
- package/resources/wallet-automations.js.map +1 -0
- package/resources/wallet-automations.mjs +5 -0
- package/resources/wallet-automations.mjs.map +1 -0
- package/resources/wallets/actions.d.mts +171 -5
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +171 -5
- package/resources/wallets/actions.d.ts.map +1 -1
- package/resources/wallets/actions.js.map +1 -1
- package/resources/wallets/actions.mjs.map +1 -1
- package/resources/wallets/balance.d.mts +3 -3
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +3 -3
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/index.d.mts +2 -2
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +2 -2
- 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 +11 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +530 -41
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +530 -41
- 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 +686 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +686 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +439 -0
- package/src/resources/actions.ts +17 -0
- package/src/resources/apps.ts +5 -0
- package/src/resources/cards.ts +570 -0
- package/src/resources/client-auth.ts +29 -4
- package/src/resources/fiat.ts +1226 -3
- package/src/resources/index.ts +215 -0
- package/src/resources/intents.ts +2 -0
- package/src/resources/onramps.ts +43 -0
- package/src/resources/organizations.ts +68 -0
- package/src/resources/policies.ts +61 -0
- package/src/resources/shared.ts +12 -0
- package/src/resources/swaps.ts +11 -0
- package/src/resources/transactions.ts +3 -0
- package/src/resources/users.ts +25 -0
- package/src/resources/wallet-automations.ts +417 -0
- package/src/resources/wallets/actions.ts +216 -4
- package/src/resources/wallets/balance.ts +32 -1
- package/src/resources/wallets/index.ts +43 -0
- package/src/resources/wallets/transactions.ts +11 -1
- package/src/resources/wallets/wallets.ts +696 -31
- package/src/resources/webhooks.ts +878 -9
- 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/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export {
|
|
|
24
24
|
type UpdateAccountFromWalletsConfigurationInput,
|
|
25
25
|
type UpdateAccountInput,
|
|
26
26
|
} from './accounts';
|
|
27
|
+
export { Actions, type ListActions } from './actions';
|
|
27
28
|
export {
|
|
28
29
|
Aggregations,
|
|
29
30
|
type Aggregation,
|
|
@@ -69,6 +70,49 @@ export {
|
|
|
69
70
|
type UserOwnedRecoveryOption,
|
|
70
71
|
type WalletInviteInput,
|
|
71
72
|
} from './apps';
|
|
73
|
+
export {
|
|
74
|
+
Cards,
|
|
75
|
+
type CardIssuingBankAgreement,
|
|
76
|
+
type CardIssuingBankInfo,
|
|
77
|
+
type CardIssuingCancellationReason,
|
|
78
|
+
type CardIssuingCardResponse,
|
|
79
|
+
type CardIssuingCardStatus,
|
|
80
|
+
type CardIssuingCardholder,
|
|
81
|
+
type CardIssuingCardsResponse,
|
|
82
|
+
type CardIssuingConfig,
|
|
83
|
+
type CardIssuingConfigQueryParams,
|
|
84
|
+
type CardIssuingConfigResponse,
|
|
85
|
+
type CardIssuingCreateCardInput,
|
|
86
|
+
type CardIssuingCustomerBankTermsRequiredResponse,
|
|
87
|
+
type CardIssuingCustomerConsentsRequestBody,
|
|
88
|
+
type CardIssuingCustomerElectronicDisclosureRequiredResponse,
|
|
89
|
+
type CardIssuingCustomerErrorResponse,
|
|
90
|
+
type CardIssuingCustomerInput,
|
|
91
|
+
type CardIssuingCustomerKYCRequiredResponse,
|
|
92
|
+
type CardIssuingCustomerNotCreatedResponse,
|
|
93
|
+
type CardIssuingCustomerPendingResponse,
|
|
94
|
+
type CardIssuingCustomerProviderTermsRequiredResponse,
|
|
95
|
+
type CardIssuingCustomerReadyResponse,
|
|
96
|
+
type CardIssuingCustomerRejectedResponse,
|
|
97
|
+
type CardIssuingCustomerRejectionReason,
|
|
98
|
+
type CardIssuingCustomerResponse,
|
|
99
|
+
type CardIssuingCustomerUnderReviewResponse,
|
|
100
|
+
type CardIssuingDispute,
|
|
101
|
+
type CardIssuingDisputeStatus,
|
|
102
|
+
type CardIssuingEphemeralKey,
|
|
103
|
+
type CardIssuingEphemeralKeyRequestBody,
|
|
104
|
+
type CardIssuingEphemeralKeyResponse,
|
|
105
|
+
type CardIssuingListCardsInput,
|
|
106
|
+
type CardIssuingListTransactionsInput,
|
|
107
|
+
type CardIssuingMerchant,
|
|
108
|
+
type CardIssuingReplaceCardRequestBody,
|
|
109
|
+
type CardIssuingReplacementReason,
|
|
110
|
+
type CardIssuingStatementQueryParams,
|
|
111
|
+
type CardIssuingTransactionResponse,
|
|
112
|
+
type CardIssuingTransactionStatus,
|
|
113
|
+
type CardIssuingTransactionsResponse,
|
|
114
|
+
type CardIssuingUpdateCardInput,
|
|
115
|
+
} from './cards';
|
|
72
116
|
export {
|
|
73
117
|
ClientAuth,
|
|
74
118
|
type AuthenticateJwtInput,
|
|
@@ -163,9 +207,11 @@ export {
|
|
|
163
207
|
type OAuthTokenRefreshTokenRequestBody,
|
|
164
208
|
type OAuthTokenRequestBody,
|
|
165
209
|
type OAuthTokenSuccessResponse,
|
|
210
|
+
type OAuthTransferNativeSDKRequestBody,
|
|
166
211
|
type OAuthTransferRequestBody,
|
|
167
212
|
type OAuthTransferUserInfo,
|
|
168
213
|
type OAuthTransferUserInfoMeta,
|
|
214
|
+
type OAuthTransferWebSDKRequestBody,
|
|
169
215
|
type OAuthUnlinkRequestBody,
|
|
170
216
|
type OAuthVerifyRequestBody,
|
|
171
217
|
type OAuthVerifyResponseBody,
|
|
@@ -268,8 +314,62 @@ export {
|
|
|
268
314
|
} from './embedded-wallets';
|
|
269
315
|
export {
|
|
270
316
|
Fiat,
|
|
317
|
+
type BridgeCreateExternalFiatAccountRequestBody,
|
|
318
|
+
type BridgeCreateFiatDepositAccountRequestBody,
|
|
319
|
+
type BridgeExternalFiatAccount,
|
|
320
|
+
type BridgeFiatDepositAccount,
|
|
321
|
+
type BridgeOrganizationExternalFiatAccount,
|
|
322
|
+
type CreateExternalFiatAccountRequestBody,
|
|
323
|
+
type CreateFiatDepositAccountRequestBody,
|
|
324
|
+
type CreateFiatDepositAccountSource,
|
|
325
|
+
type CreatePayoutRequestBody,
|
|
326
|
+
type ExternalFiatAccount,
|
|
327
|
+
type ExternalFiatAccountAddress,
|
|
328
|
+
type ExternalFiatAccountData,
|
|
329
|
+
type ExternalFiatAccountGBData,
|
|
330
|
+
type ExternalFiatAccountIbanData,
|
|
331
|
+
type ExternalFiatAccountPixData,
|
|
332
|
+
type ExternalFiatAccountResponse,
|
|
333
|
+
type ExternalFiatAccountSwiftCategory,
|
|
334
|
+
type ExternalFiatAccountSwiftData,
|
|
335
|
+
type ExternalFiatAccountSwiftPurposeOfFunds,
|
|
336
|
+
type ExternalFiatAccountUsData,
|
|
271
337
|
type FiatCurrency,
|
|
338
|
+
type FiatDepositAccount,
|
|
339
|
+
type FiatDepositAccountDestination,
|
|
340
|
+
type FiatDepositAccountResponse,
|
|
341
|
+
type FiatDepositAccountSource,
|
|
342
|
+
type FiatDepositAccountStatus,
|
|
343
|
+
type FiatDepositInstructions,
|
|
272
344
|
type FiatPaymentRail,
|
|
345
|
+
type KYBLinksRequestBody,
|
|
346
|
+
type KYBStatusListResponse,
|
|
347
|
+
type KYBStatusResponse,
|
|
348
|
+
type KYBTosRequestBody,
|
|
349
|
+
type KYCIdentifyingDocument,
|
|
350
|
+
type KYCLinksRequestBody,
|
|
351
|
+
type KYCResidentialAddress,
|
|
352
|
+
type KYCStatusListResponse,
|
|
353
|
+
type KYCStatusResponse,
|
|
354
|
+
type KYCSubmitData,
|
|
355
|
+
type KYCSubmitRequestBody,
|
|
356
|
+
type KyxCapabilities,
|
|
357
|
+
type KyxCapabilityStatus,
|
|
358
|
+
type KyxEndorsement,
|
|
359
|
+
type KyxEndorsementName,
|
|
360
|
+
type KyxEndorsementStatus,
|
|
361
|
+
type KyxEnvironment,
|
|
362
|
+
type KyxProvider,
|
|
363
|
+
type KyxProviderStatus,
|
|
364
|
+
type KyxTosRequestBody,
|
|
365
|
+
type KyxTosResponse,
|
|
366
|
+
type KyxTosStatus,
|
|
367
|
+
type KyxTosStatusDetail,
|
|
368
|
+
type KyxVerificationStatus,
|
|
369
|
+
type KyxVerificationStatusDetail,
|
|
370
|
+
type ListExternalFiatAccountsResponse,
|
|
371
|
+
type ListFiatDepositAccountsResponse,
|
|
372
|
+
type ListOrganizationExternalFiatAccountsResponse,
|
|
273
373
|
type OfframpDepositInstructions,
|
|
274
374
|
type OfframpResponse,
|
|
275
375
|
type OnrampAsset,
|
|
@@ -279,6 +379,10 @@ export {
|
|
|
279
379
|
type OnrampKYCStatus,
|
|
280
380
|
type OnrampResponse,
|
|
281
381
|
type OnrampTransferStatus,
|
|
382
|
+
type OrganizationExternalFiatAccount,
|
|
383
|
+
type OrganizationExternalFiatAccountResponse,
|
|
384
|
+
type PayoutDestination,
|
|
385
|
+
type PayoutSource,
|
|
282
386
|
} from './fiat';
|
|
283
387
|
export {
|
|
284
388
|
Funding,
|
|
@@ -466,6 +570,8 @@ export {
|
|
|
466
570
|
type GetFiatOnrampURLInput,
|
|
467
571
|
type GetFiatOnrampURLResponse,
|
|
468
572
|
type GetStripeCryptoCustomerResponse,
|
|
573
|
+
type GetStripeOnrampTransactionLimitsQueryParams,
|
|
574
|
+
type GetStripeOnrampTransactionLimitsResponse,
|
|
469
575
|
type LinkAuthIntentCreated,
|
|
470
576
|
type LinkAuthIntentNoAccount,
|
|
471
577
|
type ListStripeConsumerWalletsResponse,
|
|
@@ -481,6 +587,7 @@ export {
|
|
|
481
587
|
type StripeKYCTier,
|
|
482
588
|
type StripeOnrampCheckoutResponse,
|
|
483
589
|
type StripeOnrampSessionStatus,
|
|
590
|
+
type StripeOnrampTransactionLimit,
|
|
484
591
|
type StripePaymentToken,
|
|
485
592
|
type StripeTransactionDetails,
|
|
486
593
|
type StripeVerification,
|
|
@@ -488,9 +595,13 @@ export {
|
|
|
488
595
|
export {
|
|
489
596
|
Organizations,
|
|
490
597
|
type CreateOrganizationSecretResponse,
|
|
598
|
+
type Organization,
|
|
599
|
+
type OrganizationCreateRequestBody,
|
|
491
600
|
type OrganizationSecretIDInput,
|
|
492
601
|
type OrganizationSecretView,
|
|
493
602
|
type OrganizationSecretsListResponse,
|
|
603
|
+
type OrganizationUpdateRequestBody,
|
|
604
|
+
type OrganizationsListResponse,
|
|
494
605
|
type UpdateOrganizationSecretSigningKeyInput,
|
|
495
606
|
} from './organizations';
|
|
496
607
|
export {
|
|
@@ -546,15 +657,19 @@ export {
|
|
|
546
657
|
type TronTransactionConditionField,
|
|
547
658
|
type TypedDataInput,
|
|
548
659
|
type UpdateConditionSetRequestBody,
|
|
660
|
+
type XrplTransactionCondition,
|
|
661
|
+
type XrplTransactionConditionField,
|
|
549
662
|
} from './policies';
|
|
550
663
|
export {
|
|
551
664
|
Shared,
|
|
552
665
|
type BitcoinAddress,
|
|
553
666
|
type CurrencyAmount,
|
|
667
|
+
type IntegrationEnvironment,
|
|
554
668
|
type EvmAddress,
|
|
555
669
|
type EvmChecksumAddress,
|
|
556
670
|
type HyperliquidTokenAddress,
|
|
557
671
|
type KeyQuorumID,
|
|
672
|
+
type OrchestrationProvider,
|
|
558
673
|
type OwnerIDInput,
|
|
559
674
|
type OwnerInput,
|
|
560
675
|
type OwnerInputPublicKey,
|
|
@@ -670,6 +785,42 @@ export {
|
|
|
670
785
|
type UserBatchCreateInput,
|
|
671
786
|
type UserWithIdentityToken,
|
|
672
787
|
} from './users';
|
|
788
|
+
export {
|
|
789
|
+
WalletAutomations,
|
|
790
|
+
type AutomationActionConfig,
|
|
791
|
+
type AutomationActionConfigInput,
|
|
792
|
+
type AutomationAssetFilter,
|
|
793
|
+
type AutomationAssetFilterAll,
|
|
794
|
+
type AutomationAssetFilterExclude,
|
|
795
|
+
type AutomationAssetFilterInclude,
|
|
796
|
+
type AutomationAssetFilterInput,
|
|
797
|
+
type AutomationAssetFilterInputExclude,
|
|
798
|
+
type AutomationAssetFilterInputInclude,
|
|
799
|
+
type AutomationAssetSpec,
|
|
800
|
+
type AutomationAssetSpecInput,
|
|
801
|
+
type AutomationConfig,
|
|
802
|
+
type AutomationConfigInput,
|
|
803
|
+
type AutomationDepositTriggerConfig,
|
|
804
|
+
type AutomationDepositTriggerConfigInput,
|
|
805
|
+
type AutomationDestinationAsset,
|
|
806
|
+
type AutomationDestinationAssetInput,
|
|
807
|
+
type AutomationEarnDepositActionConfig,
|
|
808
|
+
type AutomationEarnDepositActionConfigInput,
|
|
809
|
+
type AutomationSwapActionConfig,
|
|
810
|
+
type AutomationSwapActionConfigInput,
|
|
811
|
+
type AutomationTriggerConfig,
|
|
812
|
+
type AutomationTriggerConfigInput,
|
|
813
|
+
type CreateAutomationRequestBody,
|
|
814
|
+
type SwapAttachmentParams,
|
|
815
|
+
type UpdateAutomationRequestBody,
|
|
816
|
+
type WalletAutomationExecutionListResponse,
|
|
817
|
+
type WalletAutomationExecutionResponse,
|
|
818
|
+
type WalletAutomationExecutionStatus,
|
|
819
|
+
type WalletAutomationListResponse,
|
|
820
|
+
type WalletAutomationResponse,
|
|
821
|
+
type WalletAutomationStatus,
|
|
822
|
+
type WalletAutomationSuccessResponse,
|
|
823
|
+
} from './wallet-automations';
|
|
673
824
|
export {
|
|
674
825
|
Wallets,
|
|
675
826
|
type AccessListEntry,
|
|
@@ -680,9 +831,28 @@ export {
|
|
|
680
831
|
type AdvancedSwapRequestBody,
|
|
681
832
|
type AdvancedSwapResponse,
|
|
682
833
|
type AmountType,
|
|
834
|
+
type AptosBcsHex,
|
|
835
|
+
type AptosRpcInput,
|
|
836
|
+
type AptosRpcResponse,
|
|
837
|
+
type AptosSignTransactionRpcInput,
|
|
838
|
+
type AptosSignTransactionRpcInputParams,
|
|
839
|
+
type AptosSignTransactionRpcResponse,
|
|
840
|
+
type AptosSignTransactionRpcResponseData,
|
|
841
|
+
type AptosSignedTransactionBcsHex,
|
|
842
|
+
type AttachWalletAutomationRequestBody,
|
|
683
843
|
type AuthorizationKeyDashboardResponse,
|
|
684
844
|
type AuthorizationKeyResponse,
|
|
685
845
|
type AuthorizationKeyRole,
|
|
846
|
+
type CreateCryptoDepositAccountRequestBody,
|
|
847
|
+
type CreateCryptoDepositAccountResponse,
|
|
848
|
+
type CreateCryptoDepositAccountWithConfigRequestBody,
|
|
849
|
+
type CreateCryptoDepositAccountWithRouteRequestBody,
|
|
850
|
+
type CryptoDepositAddressRoute,
|
|
851
|
+
type CryptoDepositAsset,
|
|
852
|
+
type CryptoDepositAssetFilter,
|
|
853
|
+
type CryptoDepositAssetFilterAll,
|
|
854
|
+
type CryptoDepositAssetFilterExclude,
|
|
855
|
+
type CryptoDepositAssetFilterInclude,
|
|
686
856
|
type CurveSigningChainType,
|
|
687
857
|
type CurveType,
|
|
688
858
|
type CustodialWallet,
|
|
@@ -690,10 +860,12 @@ export {
|
|
|
690
860
|
type CustodialWalletCreateInput,
|
|
691
861
|
type CustodialWalletProvider,
|
|
692
862
|
type CustomTokenTransferSource,
|
|
863
|
+
type DetachWalletAutomationRequestBody,
|
|
693
864
|
type DeveloperFee,
|
|
694
865
|
type EncryptedAuthorizationKey,
|
|
695
866
|
type EncryptedBoundAuthenticateResponse,
|
|
696
867
|
type EncryptedWalletAuthenticateResponse,
|
|
868
|
+
type EntityID,
|
|
697
869
|
type EthereumPersonalSignRpcInput,
|
|
698
870
|
type EthereumPersonalSignRpcInputParams,
|
|
699
871
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -751,6 +923,14 @@ export {
|
|
|
751
923
|
type Hex,
|
|
752
924
|
type IntentBinding,
|
|
753
925
|
type NamedTokenTransferSource,
|
|
926
|
+
type NearRpcRequestBody,
|
|
927
|
+
type NearRpcResponse,
|
|
928
|
+
type NearSignTransactionRpcRequestBody,
|
|
929
|
+
type NearSignTransactionRpcRequestBodyParams,
|
|
930
|
+
type NearSignTransactionRpcResponse,
|
|
931
|
+
type NearSignTransactionRpcResponseData,
|
|
932
|
+
type NearSignedTransactionBorshBase64,
|
|
933
|
+
type NearUnsignedTransactionBorshBase64,
|
|
754
934
|
type OutputWithPreviousTransactionData,
|
|
755
935
|
type PolicyInput,
|
|
756
936
|
type PrivateKeyExportInput,
|
|
@@ -888,6 +1068,7 @@ export {
|
|
|
888
1068
|
type UserOperationInput,
|
|
889
1069
|
type UserSigningKeyBinding,
|
|
890
1070
|
type Wallet,
|
|
1071
|
+
type WalletActionNonce,
|
|
891
1072
|
type WalletAdditionalSigner,
|
|
892
1073
|
type WalletAdditionalSignerItem,
|
|
893
1074
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
@@ -901,6 +1082,8 @@ export {
|
|
|
901
1082
|
type WalletAuthenticateRequestBody,
|
|
902
1083
|
type WalletAuthenticateWithJwtResponse,
|
|
903
1084
|
type WalletAuthorizationHeaders,
|
|
1085
|
+
type WalletAutomationAttachmentListResponse,
|
|
1086
|
+
type WalletAutomationAttachmentResponse,
|
|
904
1087
|
type WalletBatchCreateInput,
|
|
905
1088
|
type WalletBatchCreateResponse,
|
|
906
1089
|
type WalletBatchCreateResult,
|
|
@@ -909,6 +1092,9 @@ export {
|
|
|
909
1092
|
type WalletCreateWalletsWithRecoveryResponse,
|
|
910
1093
|
type WalletCustodian,
|
|
911
1094
|
type WalletEntity,
|
|
1095
|
+
type WalletEntityAssignmentRequestBody,
|
|
1096
|
+
type WalletEntityAssignmentResponse,
|
|
1097
|
+
type WalletEntityType,
|
|
912
1098
|
type WalletEntropyType,
|
|
913
1099
|
type WalletEthereumAsset,
|
|
914
1100
|
type WalletExportRequestBody,
|
|
@@ -922,6 +1108,12 @@ export {
|
|
|
922
1108
|
type WalletSolanaAsset,
|
|
923
1109
|
type WalletTronAsset,
|
|
924
1110
|
type WalletUpdateRequestBody,
|
|
1111
|
+
type XrplRpcInput,
|
|
1112
|
+
type XrplRpcResponse,
|
|
1113
|
+
type XrplSignTransactionRpcInput,
|
|
1114
|
+
type XrplSignTransactionRpcInputParams,
|
|
1115
|
+
type XrplSignTransactionRpcResponse,
|
|
1116
|
+
type XrplSignTransactionRpcResponseData,
|
|
925
1117
|
type WalletCreateParams,
|
|
926
1118
|
type WalletUpdateParams,
|
|
927
1119
|
type WalletListParams,
|
|
@@ -942,6 +1134,13 @@ export {
|
|
|
942
1134
|
type BridgeRefundMetadata,
|
|
943
1135
|
type BridgeStaticMemoDepositMetadata,
|
|
944
1136
|
type BridgeTransferRefundMetadata,
|
|
1137
|
+
type DepositCompletedData,
|
|
1138
|
+
type DepositCompletedDestination,
|
|
1139
|
+
type DepositFailedData,
|
|
1140
|
+
type DepositStartedData,
|
|
1141
|
+
type DepositStartedDestination,
|
|
1142
|
+
type DepositStartedSource,
|
|
1143
|
+
type FiatDepositCurrency,
|
|
945
1144
|
type FundsDepositedWebhookPayload,
|
|
946
1145
|
type FundsWithdrawnWebhookPayload,
|
|
947
1146
|
type IntentAuthorizedWebhookPayload,
|
|
@@ -960,6 +1159,9 @@ export {
|
|
|
960
1159
|
type KrakenEmbedUserVerifiedWebhookPayload,
|
|
961
1160
|
type MfaDisabledWebhookPayload,
|
|
962
1161
|
type MfaEnabledWebhookPayload,
|
|
1162
|
+
type OrganizationKYBUpdatedData,
|
|
1163
|
+
type OrganizationKYBUpdatedKYBData,
|
|
1164
|
+
type OrganizationKYBUpdatedTosData,
|
|
963
1165
|
type PrivateKeyExportWebhookPayload,
|
|
964
1166
|
type SeedPhraseExportWebhookPayload,
|
|
965
1167
|
type TransactionBroadcastedWebhookPayload,
|
|
@@ -969,8 +1171,15 @@ export {
|
|
|
969
1171
|
type TransactionProviderErrorWebhookPayload,
|
|
970
1172
|
type TransactionReplacedWebhookPayload,
|
|
971
1173
|
type TransactionStillPendingWebhookPayload,
|
|
1174
|
+
type UsageCrossChainFeeRecordedWebhookPayload,
|
|
1175
|
+
type UsageGasSponsorshipRecordedWebhookPayload,
|
|
1176
|
+
type UsageSourceType,
|
|
972
1177
|
type UserAuthenticatedWebhookPayload,
|
|
973
1178
|
type UserCreatedWebhookPayload,
|
|
1179
|
+
type UserDeletedWebhookPayload,
|
|
1180
|
+
type UserKYCUpdatedData,
|
|
1181
|
+
type UserKYCUpdatedKYCData,
|
|
1182
|
+
type UserKYCUpdatedTosData,
|
|
974
1183
|
type UserLinkedAccountWebhookPayload,
|
|
975
1184
|
type UserOperationCompletedWebhookPayload,
|
|
976
1185
|
type UserReference,
|
|
@@ -994,6 +1203,10 @@ export {
|
|
|
994
1203
|
type WalletActionEarnWithdrawFailedWebhookPayload,
|
|
995
1204
|
type WalletActionEarnWithdrawRejectedWebhookPayload,
|
|
996
1205
|
type WalletActionEarnWithdrawSucceededWebhookPayload,
|
|
1206
|
+
type WalletActionPayoutCreatedWebhookPayload,
|
|
1207
|
+
type WalletActionPayoutFailedWebhookPayload,
|
|
1208
|
+
type WalletActionPayoutRejectedWebhookPayload,
|
|
1209
|
+
type WalletActionPayoutSucceededWebhookPayload,
|
|
997
1210
|
type WalletActionSwapCreatedWebhookPayload,
|
|
998
1211
|
type WalletActionSwapFailedWebhookPayload,
|
|
999
1212
|
type WalletActionSwapRejectedWebhookPayload,
|
|
@@ -1003,11 +1216,13 @@ export {
|
|
|
1003
1216
|
type WalletActionTransferRejectedWebhookPayload,
|
|
1004
1217
|
type WalletActionTransferSucceededWebhookPayload,
|
|
1005
1218
|
type WalletArchivedWebhookPayload,
|
|
1219
|
+
type WalletAutomationSubmittedWebhookPayload,
|
|
1006
1220
|
type WalletFundsAsset,
|
|
1007
1221
|
type WalletFundsErc20Asset,
|
|
1008
1222
|
type WalletFundsNativeTokenAsset,
|
|
1009
1223
|
type WalletFundsSacAsset,
|
|
1010
1224
|
type WalletFundsSplAsset,
|
|
1225
|
+
type WalletFundsTrc20Asset,
|
|
1011
1226
|
type WalletRecoveredWebhookPayload,
|
|
1012
1227
|
type WalletRecoverySetupMethod,
|
|
1013
1228
|
type WalletRecoverySetupWebhookPayload,
|
package/src/resources/intents.ts
CHANGED
package/src/resources/onramps.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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 AppsAPI from './apps';
|
|
4
5
|
import * as ClientAuthAPI from './client-auth';
|
|
5
6
|
import * as FiatAPI from './fiat';
|
|
6
7
|
import * as SharedAPI from './shared';
|
|
@@ -400,6 +401,33 @@ export interface GetStripeCryptoCustomerResponse {
|
|
|
400
401
|
data: StripeCryptoCustomerActive | StripeCryptoCustomerExpired | StripeCryptoCustomerNone;
|
|
401
402
|
}
|
|
402
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Query parameters for retrieving Stripe onramp transaction limits.
|
|
406
|
+
*/
|
|
407
|
+
export interface GetStripeOnrampTransactionLimitsQueryParams {
|
|
408
|
+
/**
|
|
409
|
+
* A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
|
|
410
|
+
*/
|
|
411
|
+
destination_chain: AppsAPI.Caip2;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Whether to use the sandbox or production environment for fiat onramp.
|
|
415
|
+
*/
|
|
416
|
+
environment: FiatOnrampEnvironment;
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* The destination wallet address.
|
|
420
|
+
*/
|
|
421
|
+
wallet_address: string;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* The remaining Stripe onramp limits by source currency and payment method.
|
|
426
|
+
*/
|
|
427
|
+
export interface GetStripeOnrampTransactionLimitsResponse {
|
|
428
|
+
limits: { [key: string]: { [key: string]: Array<StripeOnrampTransactionLimit> } };
|
|
429
|
+
}
|
|
430
|
+
|
|
403
431
|
/**
|
|
404
432
|
* Auth intent created. Pass id to authenticate().
|
|
405
433
|
*/
|
|
@@ -516,6 +544,8 @@ export interface StripeCryptoCustomerActive {
|
|
|
516
544
|
|
|
517
545
|
kyc_tiers: Array<StripeKYCTier>;
|
|
518
546
|
|
|
547
|
+
link_auth_intent_id: string | null;
|
|
548
|
+
|
|
519
549
|
provided_fields: Array<string>;
|
|
520
550
|
|
|
521
551
|
status: 'active';
|
|
@@ -572,6 +602,16 @@ export interface StripeOnrampCheckoutResponse {
|
|
|
572
602
|
*/
|
|
573
603
|
export type StripeOnrampSessionStatus = 'active' | 'expired' | 'none';
|
|
574
604
|
|
|
605
|
+
/**
|
|
606
|
+
* The remaining Stripe onramp amount for a payment method.
|
|
607
|
+
*/
|
|
608
|
+
export interface StripeOnrampTransactionLimit {
|
|
609
|
+
/**
|
|
610
|
+
* The remaining amount available for the payment method.
|
|
611
|
+
*/
|
|
612
|
+
limit: number;
|
|
613
|
+
}
|
|
614
|
+
|
|
575
615
|
/**
|
|
576
616
|
* A saved payment token.
|
|
577
617
|
*/
|
|
@@ -630,6 +670,8 @@ export declare namespace Onramps {
|
|
|
630
670
|
type GetFiatOnrampURLInput as GetFiatOnrampURLInput,
|
|
631
671
|
type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse,
|
|
632
672
|
type GetStripeCryptoCustomerResponse as GetStripeCryptoCustomerResponse,
|
|
673
|
+
type GetStripeOnrampTransactionLimitsQueryParams as GetStripeOnrampTransactionLimitsQueryParams,
|
|
674
|
+
type GetStripeOnrampTransactionLimitsResponse as GetStripeOnrampTransactionLimitsResponse,
|
|
633
675
|
type LinkAuthIntentCreated as LinkAuthIntentCreated,
|
|
634
676
|
type LinkAuthIntentNoAccount as LinkAuthIntentNoAccount,
|
|
635
677
|
type ListStripeConsumerWalletsResponse as ListStripeConsumerWalletsResponse,
|
|
@@ -645,6 +687,7 @@ export declare namespace Onramps {
|
|
|
645
687
|
type StripeKYCTier as StripeKYCTier,
|
|
646
688
|
type StripeOnrampCheckoutResponse as StripeOnrampCheckoutResponse,
|
|
647
689
|
type StripeOnrampSessionStatus as StripeOnrampSessionStatus,
|
|
690
|
+
type StripeOnrampTransactionLimit as StripeOnrampTransactionLimit,
|
|
648
691
|
type StripePaymentToken as StripePaymentToken,
|
|
649
692
|
type StripeTransactionDetails as StripeTransactionDetails,
|
|
650
693
|
type StripeVerification as StripeVerification,
|
|
@@ -1,6 +1,7 @@
|
|
|
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 SharedAPI from './shared';
|
|
4
5
|
|
|
5
6
|
export class Organizations extends APIResource {}
|
|
6
7
|
|
|
@@ -14,6 +15,48 @@ export interface CreateOrganizationSecretResponse extends OrganizationSecretView
|
|
|
14
15
|
organization_secret: string;
|
|
15
16
|
}
|
|
16
17
|
|
|
18
|
+
/**
|
|
19
|
+
* A Privy organization object.
|
|
20
|
+
*/
|
|
21
|
+
export interface Organization {
|
|
22
|
+
/**
|
|
23
|
+
* Unique organization identifier
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Unix timestamp when the organization was created
|
|
29
|
+
*/
|
|
30
|
+
created_at: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A unique identifier for a key quorum.
|
|
34
|
+
*/
|
|
35
|
+
default_key_quorum_id: SharedAPI.KeyQuorumID;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Organization display name
|
|
39
|
+
*/
|
|
40
|
+
display_name: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Unix timestamp when the organization was last updated
|
|
44
|
+
*/
|
|
45
|
+
updated_at: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Request body for creating an organization.
|
|
50
|
+
*/
|
|
51
|
+
export interface OrganizationCreateRequestBody {
|
|
52
|
+
/**
|
|
53
|
+
* A unique identifier for a key quorum.
|
|
54
|
+
*/
|
|
55
|
+
default_key_quorum_id: SharedAPI.KeyQuorumID;
|
|
56
|
+
|
|
57
|
+
display_name: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
17
60
|
/**
|
|
18
61
|
* Request body for targeting a specific organization secret.
|
|
19
62
|
*/
|
|
@@ -61,6 +104,27 @@ export interface OrganizationSecretsListResponse {
|
|
|
61
104
|
data: Array<OrganizationSecretView>;
|
|
62
105
|
}
|
|
63
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Request body for updating an organization.
|
|
109
|
+
*/
|
|
110
|
+
export interface OrganizationUpdateRequestBody {
|
|
111
|
+
/**
|
|
112
|
+
* A unique identifier for a key quorum.
|
|
113
|
+
*/
|
|
114
|
+
default_key_quorum_id?: SharedAPI.KeyQuorumID;
|
|
115
|
+
|
|
116
|
+
display_name?: string;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Response returned when listing organizations for an app.
|
|
121
|
+
*/
|
|
122
|
+
export interface OrganizationsListResponse {
|
|
123
|
+
data: Array<Organization>;
|
|
124
|
+
|
|
125
|
+
next_cursor: string | null;
|
|
126
|
+
}
|
|
127
|
+
|
|
64
128
|
/**
|
|
65
129
|
* Request body for updating the signing public key on an organization secret.
|
|
66
130
|
*/
|
|
@@ -74,9 +138,13 @@ export interface UpdateOrganizationSecretSigningKeyInput extends OrganizationSec
|
|
|
74
138
|
export declare namespace Organizations {
|
|
75
139
|
export {
|
|
76
140
|
type CreateOrganizationSecretResponse as CreateOrganizationSecretResponse,
|
|
141
|
+
type Organization as Organization,
|
|
142
|
+
type OrganizationCreateRequestBody as OrganizationCreateRequestBody,
|
|
77
143
|
type OrganizationSecretIDInput as OrganizationSecretIDInput,
|
|
78
144
|
type OrganizationSecretView as OrganizationSecretView,
|
|
79
145
|
type OrganizationSecretsListResponse as OrganizationSecretsListResponse,
|
|
146
|
+
type OrganizationUpdateRequestBody as OrganizationUpdateRequestBody,
|
|
147
|
+
type OrganizationsListResponse as OrganizationsListResponse,
|
|
80
148
|
type UpdateOrganizationSecretSigningKeyInput as UpdateOrganizationSecretSigningKeyInput,
|
|
81
149
|
};
|
|
82
150
|
}
|
|
@@ -494,6 +494,7 @@ export type PolicyCondition =
|
|
|
494
494
|
| SystemCondition
|
|
495
495
|
| TronTransactionCondition
|
|
496
496
|
| TronCalldataCondition
|
|
497
|
+
| XrplTransactionCondition
|
|
497
498
|
| SuiTransactionCommandCondition
|
|
498
499
|
| SuiTransferObjectsCommandCondition
|
|
499
500
|
| ActionRequestBodyCondition
|
|
@@ -520,6 +521,7 @@ export type PolicyMethod =
|
|
|
520
521
|
| 'signRawMessageBytes'
|
|
521
522
|
| 'tron_sendTransaction'
|
|
522
523
|
| 'tron_signTransaction'
|
|
524
|
+
| 'xrpl_signTransaction'
|
|
523
525
|
| 'earn_deposit'
|
|
524
526
|
| 'earn_withdraw'
|
|
525
527
|
| 'transfer'
|
|
@@ -907,6 +909,63 @@ export interface UpdateConditionSetRequestBody {
|
|
|
907
909
|
owner_id?: SharedAPI.OwnerIDInput | null;
|
|
908
910
|
}
|
|
909
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Policy condition evaluated against decoded XRPL transaction fields.
|
|
914
|
+
*/
|
|
915
|
+
export interface XrplTransactionCondition {
|
|
916
|
+
/**
|
|
917
|
+
* Supported XRPL transaction field paths for policy conditions.
|
|
918
|
+
*/
|
|
919
|
+
field: XrplTransactionConditionField;
|
|
920
|
+
|
|
921
|
+
field_source: 'xrpl_transaction';
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Operator to use for policy conditions.
|
|
925
|
+
*/
|
|
926
|
+
operator: ConditionOperator;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Value to compare against in a policy condition. Can be a single string or an
|
|
930
|
+
* array of strings.
|
|
931
|
+
*/
|
|
932
|
+
value: ConditionValue;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Supported XRPL transaction field paths for policy conditions.
|
|
937
|
+
*/
|
|
938
|
+
export type XrplTransactionConditionField =
|
|
939
|
+
| 'TransactionType'
|
|
940
|
+
| 'Payment.Destination'
|
|
941
|
+
| 'Payment.DestinationTag'
|
|
942
|
+
| 'Payment.Amount.drops'
|
|
943
|
+
| 'Payment.Amount.value'
|
|
944
|
+
| 'Payment.Amount.currency'
|
|
945
|
+
| 'Payment.Amount.issuer'
|
|
946
|
+
| 'Payment.SendMax.drops'
|
|
947
|
+
| 'Payment.SendMax.value'
|
|
948
|
+
| 'Payment.SendMax.currency'
|
|
949
|
+
| 'Payment.SendMax.issuer'
|
|
950
|
+
| 'Payment.DeliverMin.drops'
|
|
951
|
+
| 'Payment.DeliverMin.value'
|
|
952
|
+
| 'Payment.DeliverMin.currency'
|
|
953
|
+
| 'Payment.DeliverMin.issuer'
|
|
954
|
+
| 'OfferCreate.TakerPays.drops'
|
|
955
|
+
| 'OfferCreate.TakerPays.value'
|
|
956
|
+
| 'OfferCreate.TakerPays.currency'
|
|
957
|
+
| 'OfferCreate.TakerPays.issuer'
|
|
958
|
+
| 'OfferCreate.TakerGets.drops'
|
|
959
|
+
| 'OfferCreate.TakerGets.value'
|
|
960
|
+
| 'OfferCreate.TakerGets.currency'
|
|
961
|
+
| 'OfferCreate.TakerGets.issuer'
|
|
962
|
+
| 'OfferCreate.Expiration'
|
|
963
|
+
| 'TrustSet.LimitAmount.value'
|
|
964
|
+
| 'TrustSet.LimitAmount.currency'
|
|
965
|
+
| 'TrustSet.LimitAmount.issuer'
|
|
966
|
+
| 'TrustSet.QualityIn'
|
|
967
|
+
| 'TrustSet.QualityOut';
|
|
968
|
+
|
|
910
969
|
export declare namespace Policies {
|
|
911
970
|
export {
|
|
912
971
|
type AbiParameter as AbiParameter,
|
|
@@ -960,5 +1019,7 @@ export declare namespace Policies {
|
|
|
960
1019
|
type TronTransactionConditionField as TronTransactionConditionField,
|
|
961
1020
|
type TypedDataInput as TypedDataInput,
|
|
962
1021
|
type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
|
|
1022
|
+
type XrplTransactionCondition as XrplTransactionCondition,
|
|
1023
|
+
type XrplTransactionConditionField as XrplTransactionConditionField,
|
|
963
1024
|
};
|
|
964
1025
|
}
|
package/src/resources/shared.ts
CHANGED
|
@@ -24,6 +24,11 @@ export interface CurrencyAmount {
|
|
|
24
24
|
value: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* The Privy API environment.
|
|
29
|
+
*/
|
|
30
|
+
export type IntegrationEnvironment = 'sandbox' | 'production';
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* EVM address: 0x followed by 40 hex characters. Preserves input case.
|
|
29
34
|
*/
|
|
@@ -46,6 +51,11 @@ export type HyperliquidTokenAddress = string;
|
|
|
46
51
|
*/
|
|
47
52
|
export type KeyQuorumID = string;
|
|
48
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Supported fiat orchestration providers.
|
|
56
|
+
*/
|
|
57
|
+
export type OrchestrationProvider = 'bridge';
|
|
58
|
+
|
|
49
59
|
/**
|
|
50
60
|
* The key quorum ID to set as the owner of the resource. If you provide this, do
|
|
51
61
|
* not specify an owner.
|
|
@@ -114,10 +124,12 @@ export declare namespace Shared {
|
|
|
114
124
|
export {
|
|
115
125
|
type BitcoinAddress as BitcoinAddress,
|
|
116
126
|
type CurrencyAmount as CurrencyAmount,
|
|
127
|
+
type IntegrationEnvironment as IntegrationEnvironment,
|
|
117
128
|
type EvmAddress as EvmAddress,
|
|
118
129
|
type EvmChecksumAddress as EvmChecksumAddress,
|
|
119
130
|
type HyperliquidTokenAddress as HyperliquidTokenAddress,
|
|
120
131
|
type KeyQuorumID as KeyQuorumID,
|
|
132
|
+
type OrchestrationProvider as OrchestrationProvider,
|
|
121
133
|
type OwnerIDInput as OwnerIDInput,
|
|
122
134
|
type OwnerInput as OwnerInput,
|
|
123
135
|
type OwnerInputPublicKey as OwnerInputPublicKey,
|