@privy-io/api-types 0.20.0 → 0.22.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 +64 -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 +449 -0
- package/resources/cards.d.mts.map +1 -0
- package/resources/cards.d.ts +449 -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 +31 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +31 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +11 -1
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +11 -1
- 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/wallet-automations.d.mts +387 -0
- package/resources/wallet-automations.d.mts.map +1 -0
- package/resources/wallet-automations.d.ts +387 -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 +207 -8
- package/resources/wallets/actions.d.mts.map +1 -1
- package/resources/wallets/actions.d.ts +207 -8
- 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 +672 -48
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +672 -48
- 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 +481 -0
- package/src/resources/actions.ts +17 -0
- package/src/resources/apps.ts +5 -0
- package/src/resources/cards.ts +586 -0
- package/src/resources/client-auth.ts +29 -4
- package/src/resources/fiat.ts +1226 -3
- package/src/resources/index.ts +236 -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 +44 -0
- package/src/resources/swaps.ts +13 -1
- package/src/resources/transactions.ts +3 -0
- package/src/resources/wallet-automations.ts +529 -0
- package/src/resources/wallets/actions.ts +261 -7
- package/src/resources/wallets/balance.ts +41 -1
- package/src/resources/wallets/index.ts +55 -0
- package/src/resources/wallets/transactions.ts +11 -1
- package/src/resources/wallets/wallets.ts +888 -39
- 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,50 @@ 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 CardIssuingPinUpdate,
|
|
109
|
+
type CardIssuingReplaceCardRequestBody,
|
|
110
|
+
type CardIssuingReplacementReason,
|
|
111
|
+
type CardIssuingStatementQueryParams,
|
|
112
|
+
type CardIssuingTransactionResponse,
|
|
113
|
+
type CardIssuingTransactionStatus,
|
|
114
|
+
type CardIssuingTransactionsResponse,
|
|
115
|
+
type CardIssuingUpdateCardInput,
|
|
116
|
+
} from './cards';
|
|
72
117
|
export {
|
|
73
118
|
ClientAuth,
|
|
74
119
|
type AuthenticateJwtInput,
|
|
@@ -163,9 +208,11 @@ export {
|
|
|
163
208
|
type OAuthTokenRefreshTokenRequestBody,
|
|
164
209
|
type OAuthTokenRequestBody,
|
|
165
210
|
type OAuthTokenSuccessResponse,
|
|
211
|
+
type OAuthTransferNativeSDKRequestBody,
|
|
166
212
|
type OAuthTransferRequestBody,
|
|
167
213
|
type OAuthTransferUserInfo,
|
|
168
214
|
type OAuthTransferUserInfoMeta,
|
|
215
|
+
type OAuthTransferWebSDKRequestBody,
|
|
169
216
|
type OAuthUnlinkRequestBody,
|
|
170
217
|
type OAuthVerifyRequestBody,
|
|
171
218
|
type OAuthVerifyResponseBody,
|
|
@@ -268,8 +315,62 @@ export {
|
|
|
268
315
|
} from './embedded-wallets';
|
|
269
316
|
export {
|
|
270
317
|
Fiat,
|
|
318
|
+
type BridgeCreateExternalFiatAccountRequestBody,
|
|
319
|
+
type BridgeCreateFiatDepositAccountRequestBody,
|
|
320
|
+
type BridgeExternalFiatAccount,
|
|
321
|
+
type BridgeFiatDepositAccount,
|
|
322
|
+
type BridgeOrganizationExternalFiatAccount,
|
|
323
|
+
type CreateExternalFiatAccountRequestBody,
|
|
324
|
+
type CreateFiatDepositAccountRequestBody,
|
|
325
|
+
type CreateFiatDepositAccountSource,
|
|
326
|
+
type CreatePayoutRequestBody,
|
|
327
|
+
type ExternalFiatAccount,
|
|
328
|
+
type ExternalFiatAccountAddress,
|
|
329
|
+
type ExternalFiatAccountData,
|
|
330
|
+
type ExternalFiatAccountGBData,
|
|
331
|
+
type ExternalFiatAccountIbanData,
|
|
332
|
+
type ExternalFiatAccountPixData,
|
|
333
|
+
type ExternalFiatAccountResponse,
|
|
334
|
+
type ExternalFiatAccountSwiftCategory,
|
|
335
|
+
type ExternalFiatAccountSwiftData,
|
|
336
|
+
type ExternalFiatAccountSwiftPurposeOfFunds,
|
|
337
|
+
type ExternalFiatAccountUsData,
|
|
271
338
|
type FiatCurrency,
|
|
339
|
+
type FiatDepositAccount,
|
|
340
|
+
type FiatDepositAccountDestination,
|
|
341
|
+
type FiatDepositAccountResponse,
|
|
342
|
+
type FiatDepositAccountSource,
|
|
343
|
+
type FiatDepositAccountStatus,
|
|
344
|
+
type FiatDepositInstructions,
|
|
272
345
|
type FiatPaymentRail,
|
|
346
|
+
type KYBLinksRequestBody,
|
|
347
|
+
type KYBStatusListResponse,
|
|
348
|
+
type KYBStatusResponse,
|
|
349
|
+
type KYBTosRequestBody,
|
|
350
|
+
type KYCIdentifyingDocument,
|
|
351
|
+
type KYCLinksRequestBody,
|
|
352
|
+
type KYCResidentialAddress,
|
|
353
|
+
type KYCStatusListResponse,
|
|
354
|
+
type KYCStatusResponse,
|
|
355
|
+
type KYCSubmitData,
|
|
356
|
+
type KYCSubmitRequestBody,
|
|
357
|
+
type KyxCapabilities,
|
|
358
|
+
type KyxCapabilityStatus,
|
|
359
|
+
type KyxEndorsement,
|
|
360
|
+
type KyxEndorsementName,
|
|
361
|
+
type KyxEndorsementStatus,
|
|
362
|
+
type KyxEnvironment,
|
|
363
|
+
type KyxProvider,
|
|
364
|
+
type KyxProviderStatus,
|
|
365
|
+
type KyxTosRequestBody,
|
|
366
|
+
type KyxTosResponse,
|
|
367
|
+
type KyxTosStatus,
|
|
368
|
+
type KyxTosStatusDetail,
|
|
369
|
+
type KyxVerificationStatus,
|
|
370
|
+
type KyxVerificationStatusDetail,
|
|
371
|
+
type ListExternalFiatAccountsResponse,
|
|
372
|
+
type ListFiatDepositAccountsResponse,
|
|
373
|
+
type ListOrganizationExternalFiatAccountsResponse,
|
|
273
374
|
type OfframpDepositInstructions,
|
|
274
375
|
type OfframpResponse,
|
|
275
376
|
type OnrampAsset,
|
|
@@ -279,6 +380,10 @@ export {
|
|
|
279
380
|
type OnrampKYCStatus,
|
|
280
381
|
type OnrampResponse,
|
|
281
382
|
type OnrampTransferStatus,
|
|
383
|
+
type OrganizationExternalFiatAccount,
|
|
384
|
+
type OrganizationExternalFiatAccountResponse,
|
|
385
|
+
type PayoutDestination,
|
|
386
|
+
type PayoutSource,
|
|
282
387
|
} from './fiat';
|
|
283
388
|
export {
|
|
284
389
|
Funding,
|
|
@@ -466,6 +571,8 @@ export {
|
|
|
466
571
|
type GetFiatOnrampURLInput,
|
|
467
572
|
type GetFiatOnrampURLResponse,
|
|
468
573
|
type GetStripeCryptoCustomerResponse,
|
|
574
|
+
type GetStripeOnrampTransactionLimitsQueryParams,
|
|
575
|
+
type GetStripeOnrampTransactionLimitsResponse,
|
|
469
576
|
type LinkAuthIntentCreated,
|
|
470
577
|
type LinkAuthIntentNoAccount,
|
|
471
578
|
type ListStripeConsumerWalletsResponse,
|
|
@@ -481,6 +588,7 @@ export {
|
|
|
481
588
|
type StripeKYCTier,
|
|
482
589
|
type StripeOnrampCheckoutResponse,
|
|
483
590
|
type StripeOnrampSessionStatus,
|
|
591
|
+
type StripeOnrampTransactionLimit,
|
|
484
592
|
type StripePaymentToken,
|
|
485
593
|
type StripeTransactionDetails,
|
|
486
594
|
type StripeVerification,
|
|
@@ -488,9 +596,13 @@ export {
|
|
|
488
596
|
export {
|
|
489
597
|
Organizations,
|
|
490
598
|
type CreateOrganizationSecretResponse,
|
|
599
|
+
type Organization,
|
|
600
|
+
type OrganizationCreateRequestBody,
|
|
491
601
|
type OrganizationSecretIDInput,
|
|
492
602
|
type OrganizationSecretView,
|
|
493
603
|
type OrganizationSecretsListResponse,
|
|
604
|
+
type OrganizationUpdateRequestBody,
|
|
605
|
+
type OrganizationsListResponse,
|
|
494
606
|
type UpdateOrganizationSecretSigningKeyInput,
|
|
495
607
|
} from './organizations';
|
|
496
608
|
export {
|
|
@@ -546,24 +658,33 @@ export {
|
|
|
546
658
|
type TronTransactionConditionField,
|
|
547
659
|
type TypedDataInput,
|
|
548
660
|
type UpdateConditionSetRequestBody,
|
|
661
|
+
type XrplTransactionCondition,
|
|
662
|
+
type XrplTransactionConditionField,
|
|
549
663
|
} from './policies';
|
|
550
664
|
export {
|
|
551
665
|
Shared,
|
|
552
666
|
type BitcoinAddress,
|
|
667
|
+
type BitcoinCaip2,
|
|
668
|
+
type Bps,
|
|
553
669
|
type CurrencyAmount,
|
|
670
|
+
type IntegrationEnvironment,
|
|
554
671
|
type EvmAddress,
|
|
672
|
+
type EvmCaip2,
|
|
555
673
|
type EvmChecksumAddress,
|
|
556
674
|
type HyperliquidTokenAddress,
|
|
557
675
|
type KeyQuorumID,
|
|
676
|
+
type OrchestrationProvider,
|
|
558
677
|
type OwnerIDInput,
|
|
559
678
|
type OwnerInput,
|
|
560
679
|
type OwnerInputPublicKey,
|
|
561
680
|
type OwnerInputUser,
|
|
562
681
|
type P256PublicKey,
|
|
563
682
|
type SolanaAddress,
|
|
683
|
+
type SolanaCaip2,
|
|
564
684
|
type SuccessResponse,
|
|
565
685
|
type TokenIdentifier,
|
|
566
686
|
type TronAddress,
|
|
687
|
+
type TronCaip2,
|
|
567
688
|
type TronHexAddress,
|
|
568
689
|
} from './shared';
|
|
569
690
|
export {
|
|
@@ -670,6 +791,47 @@ export {
|
|
|
670
791
|
type UserBatchCreateInput,
|
|
671
792
|
type UserWithIdentityToken,
|
|
672
793
|
} from './users';
|
|
794
|
+
export {
|
|
795
|
+
WalletAutomations,
|
|
796
|
+
type AutomationActionConfig,
|
|
797
|
+
type AutomationActionConfigInput,
|
|
798
|
+
type AutomationAssetFilter,
|
|
799
|
+
type AutomationAssetFilterAll,
|
|
800
|
+
type AutomationAssetFilterExclude,
|
|
801
|
+
type AutomationAssetFilterInclude,
|
|
802
|
+
type AutomationAssetFilterInput,
|
|
803
|
+
type AutomationAssetFilterInputExclude,
|
|
804
|
+
type AutomationAssetFilterInputInclude,
|
|
805
|
+
type AutomationAssetSpec,
|
|
806
|
+
type AutomationAssetSpecInput,
|
|
807
|
+
type AutomationConfig,
|
|
808
|
+
type AutomationConfigInput,
|
|
809
|
+
type AutomationDepositTriggerConfig,
|
|
810
|
+
type AutomationDepositTriggerConfigInput,
|
|
811
|
+
type AutomationDestinationAsset,
|
|
812
|
+
type AutomationDestinationAssetInput,
|
|
813
|
+
type AutomationEarnDepositActionConfig,
|
|
814
|
+
type AutomationEarnDepositActionConfigInput,
|
|
815
|
+
type AutomationSwapActionConfig,
|
|
816
|
+
type AutomationSwapActionConfigInput,
|
|
817
|
+
type AutomationTriggerConfig,
|
|
818
|
+
type AutomationTriggerConfigInput,
|
|
819
|
+
type CreateAutomationRequestBody,
|
|
820
|
+
type SwapAttachmentParams,
|
|
821
|
+
type UpdateAutomationRequestBody,
|
|
822
|
+
type WalletAutomationExecutionListResponse,
|
|
823
|
+
type WalletAutomationExecutionResponse,
|
|
824
|
+
type WalletAutomationExecutionStatus,
|
|
825
|
+
type WalletAutomationListResponse,
|
|
826
|
+
type WalletAutomationReindexAssetResult,
|
|
827
|
+
type WalletAutomationReindexAssetStatus,
|
|
828
|
+
type WalletAutomationReindexCaip2,
|
|
829
|
+
type WalletAutomationReindexRequestBody,
|
|
830
|
+
type WalletAutomationReindexResponse,
|
|
831
|
+
type WalletAutomationResponse,
|
|
832
|
+
type WalletAutomationStatus,
|
|
833
|
+
type WalletAutomationSuccessResponse,
|
|
834
|
+
} from './wallet-automations';
|
|
673
835
|
export {
|
|
674
836
|
Wallets,
|
|
675
837
|
type AccessListEntry,
|
|
@@ -680,20 +842,48 @@ export {
|
|
|
680
842
|
type AdvancedSwapRequestBody,
|
|
681
843
|
type AdvancedSwapResponse,
|
|
682
844
|
type AmountType,
|
|
845
|
+
type AptosBcsHex,
|
|
846
|
+
type AptosRpcInput,
|
|
847
|
+
type AptosRpcResponse,
|
|
848
|
+
type AptosSignTransactionRpcInput,
|
|
849
|
+
type AptosSignTransactionRpcInputParams,
|
|
850
|
+
type AptosSignTransactionRpcResponse,
|
|
851
|
+
type AptosSignTransactionRpcResponseData,
|
|
852
|
+
type AptosSignedTransactionBcsHex,
|
|
853
|
+
type AttachWalletAutomationRequestBody,
|
|
854
|
+
type AttachedWalletAutomation,
|
|
683
855
|
type AuthorizationKeyDashboardResponse,
|
|
684
856
|
type AuthorizationKeyResponse,
|
|
685
857
|
type AuthorizationKeyRole,
|
|
858
|
+
type CreateCryptoDepositAccountRequestBody,
|
|
859
|
+
type CreateCryptoDepositAccountResponse,
|
|
860
|
+
type CreateCryptoDepositAccountWithConfigRequestBody,
|
|
861
|
+
type CreateCryptoDepositAccountWithRouteRequestBody,
|
|
862
|
+
type CryptoDepositAccountCaip2,
|
|
863
|
+
type CryptoDepositAccountChain,
|
|
864
|
+
type CryptoDepositAccountConfigResponse,
|
|
865
|
+
type CryptoDepositAccountSourceChain,
|
|
866
|
+
type CryptoDepositAccountSourceCurrency,
|
|
867
|
+
type CryptoDepositAddressRoute,
|
|
868
|
+
type CryptoDepositAsset,
|
|
869
|
+
type CryptoDepositAssetFilter,
|
|
870
|
+
type CryptoDepositAssetFilterAll,
|
|
871
|
+
type CryptoDepositAssetFilterExclude,
|
|
872
|
+
type CryptoDepositAssetFilterInclude,
|
|
686
873
|
type CurveSigningChainType,
|
|
687
874
|
type CurveType,
|
|
688
875
|
type CustodialWallet,
|
|
876
|
+
type CustodialWalletChain,
|
|
689
877
|
type CustodialWalletChainType,
|
|
690
878
|
type CustodialWalletCreateInput,
|
|
691
879
|
type CustodialWalletProvider,
|
|
692
880
|
type CustomTokenTransferSource,
|
|
881
|
+
type DetachWalletAutomationRequestBody,
|
|
693
882
|
type DeveloperFee,
|
|
694
883
|
type EncryptedAuthorizationKey,
|
|
695
884
|
type EncryptedBoundAuthenticateResponse,
|
|
696
885
|
type EncryptedWalletAuthenticateResponse,
|
|
886
|
+
type EntityID,
|
|
697
887
|
type EthereumPersonalSignRpcInput,
|
|
698
888
|
type EthereumPersonalSignRpcInputParams,
|
|
699
889
|
type EthereumPersonalSignRpcResponse,
|
|
@@ -742,6 +932,8 @@ export {
|
|
|
742
932
|
type FirstClassChainType,
|
|
743
933
|
type Gas,
|
|
744
934
|
type GetByWalletAddressRequestBody,
|
|
935
|
+
type GetCryptoDepositAccountNextOrderResponse,
|
|
936
|
+
type GetCryptoDepositAccountOrderResponse,
|
|
745
937
|
type HDInitInput,
|
|
746
938
|
type HDPath,
|
|
747
939
|
type HDSubmitInput,
|
|
@@ -750,7 +942,16 @@ export {
|
|
|
750
942
|
type HpkeImportConfig,
|
|
751
943
|
type Hex,
|
|
752
944
|
type IntentBinding,
|
|
945
|
+
type ListCryptoDepositAccountsResponse,
|
|
753
946
|
type NamedTokenTransferSource,
|
|
947
|
+
type NearRpcRequestBody,
|
|
948
|
+
type NearRpcResponse,
|
|
949
|
+
type NearSignTransactionRpcRequestBody,
|
|
950
|
+
type NearSignTransactionRpcRequestBodyParams,
|
|
951
|
+
type NearSignTransactionRpcResponse,
|
|
952
|
+
type NearSignTransactionRpcResponseData,
|
|
953
|
+
type NearSignedTransactionBorshBase64,
|
|
954
|
+
type NearUnsignedTransactionBorshBase64,
|
|
754
955
|
type OutputWithPreviousTransactionData,
|
|
755
956
|
type PolicyInput,
|
|
756
957
|
type PrivateKeyExportInput,
|
|
@@ -888,6 +1089,7 @@ export {
|
|
|
888
1089
|
type UserOperationInput,
|
|
889
1090
|
type UserSigningKeyBinding,
|
|
890
1091
|
type Wallet,
|
|
1092
|
+
type WalletActionNonce,
|
|
891
1093
|
type WalletAdditionalSigner,
|
|
892
1094
|
type WalletAdditionalSignerItem,
|
|
893
1095
|
type WalletAPIRegisterAuthorizationKeyInput,
|
|
@@ -901,6 +1103,8 @@ export {
|
|
|
901
1103
|
type WalletAuthenticateRequestBody,
|
|
902
1104
|
type WalletAuthenticateWithJwtResponse,
|
|
903
1105
|
type WalletAuthorizationHeaders,
|
|
1106
|
+
type WalletAutomationAttachmentListResponse,
|
|
1107
|
+
type WalletAutomationAttachmentResponse,
|
|
904
1108
|
type WalletBatchCreateInput,
|
|
905
1109
|
type WalletBatchCreateResponse,
|
|
906
1110
|
type WalletBatchCreateResult,
|
|
@@ -909,6 +1113,9 @@ export {
|
|
|
909
1113
|
type WalletCreateWalletsWithRecoveryResponse,
|
|
910
1114
|
type WalletCustodian,
|
|
911
1115
|
type WalletEntity,
|
|
1116
|
+
type WalletEntityAssignmentRequestBody,
|
|
1117
|
+
type WalletEntityAssignmentResponse,
|
|
1118
|
+
type WalletEntityType,
|
|
912
1119
|
type WalletEntropyType,
|
|
913
1120
|
type WalletEthereumAsset,
|
|
914
1121
|
type WalletExportRequestBody,
|
|
@@ -922,6 +1129,12 @@ export {
|
|
|
922
1129
|
type WalletSolanaAsset,
|
|
923
1130
|
type WalletTronAsset,
|
|
924
1131
|
type WalletUpdateRequestBody,
|
|
1132
|
+
type XrplRpcInput,
|
|
1133
|
+
type XrplRpcResponse,
|
|
1134
|
+
type XrplSignTransactionRpcInput,
|
|
1135
|
+
type XrplSignTransactionRpcInputParams,
|
|
1136
|
+
type XrplSignTransactionRpcResponse,
|
|
1137
|
+
type XrplSignTransactionRpcResponseData,
|
|
925
1138
|
type WalletCreateParams,
|
|
926
1139
|
type WalletUpdateParams,
|
|
927
1140
|
type WalletListParams,
|
|
@@ -942,6 +1155,13 @@ export {
|
|
|
942
1155
|
type BridgeRefundMetadata,
|
|
943
1156
|
type BridgeStaticMemoDepositMetadata,
|
|
944
1157
|
type BridgeTransferRefundMetadata,
|
|
1158
|
+
type DepositCompletedData,
|
|
1159
|
+
type DepositCompletedDestination,
|
|
1160
|
+
type DepositFailedData,
|
|
1161
|
+
type DepositStartedData,
|
|
1162
|
+
type DepositStartedDestination,
|
|
1163
|
+
type DepositStartedSource,
|
|
1164
|
+
type FiatDepositCurrency,
|
|
945
1165
|
type FundsDepositedWebhookPayload,
|
|
946
1166
|
type FundsWithdrawnWebhookPayload,
|
|
947
1167
|
type IntentAuthorizedWebhookPayload,
|
|
@@ -960,6 +1180,9 @@ export {
|
|
|
960
1180
|
type KrakenEmbedUserVerifiedWebhookPayload,
|
|
961
1181
|
type MfaDisabledWebhookPayload,
|
|
962
1182
|
type MfaEnabledWebhookPayload,
|
|
1183
|
+
type OrganizationKYBUpdatedData,
|
|
1184
|
+
type OrganizationKYBUpdatedKYBData,
|
|
1185
|
+
type OrganizationKYBUpdatedTosData,
|
|
963
1186
|
type PrivateKeyExportWebhookPayload,
|
|
964
1187
|
type SeedPhraseExportWebhookPayload,
|
|
965
1188
|
type TransactionBroadcastedWebhookPayload,
|
|
@@ -969,8 +1192,15 @@ export {
|
|
|
969
1192
|
type TransactionProviderErrorWebhookPayload,
|
|
970
1193
|
type TransactionReplacedWebhookPayload,
|
|
971
1194
|
type TransactionStillPendingWebhookPayload,
|
|
1195
|
+
type UsageCrossChainFeeRecordedWebhookPayload,
|
|
1196
|
+
type UsageGasSponsorshipRecordedWebhookPayload,
|
|
1197
|
+
type UsageSourceType,
|
|
972
1198
|
type UserAuthenticatedWebhookPayload,
|
|
973
1199
|
type UserCreatedWebhookPayload,
|
|
1200
|
+
type UserDeletedWebhookPayload,
|
|
1201
|
+
type UserKYCUpdatedData,
|
|
1202
|
+
type UserKYCUpdatedKYCData,
|
|
1203
|
+
type UserKYCUpdatedTosData,
|
|
974
1204
|
type UserLinkedAccountWebhookPayload,
|
|
975
1205
|
type UserOperationCompletedWebhookPayload,
|
|
976
1206
|
type UserReference,
|
|
@@ -994,6 +1224,10 @@ export {
|
|
|
994
1224
|
type WalletActionEarnWithdrawFailedWebhookPayload,
|
|
995
1225
|
type WalletActionEarnWithdrawRejectedWebhookPayload,
|
|
996
1226
|
type WalletActionEarnWithdrawSucceededWebhookPayload,
|
|
1227
|
+
type WalletActionPayoutCreatedWebhookPayload,
|
|
1228
|
+
type WalletActionPayoutFailedWebhookPayload,
|
|
1229
|
+
type WalletActionPayoutRejectedWebhookPayload,
|
|
1230
|
+
type WalletActionPayoutSucceededWebhookPayload,
|
|
997
1231
|
type WalletActionSwapCreatedWebhookPayload,
|
|
998
1232
|
type WalletActionSwapFailedWebhookPayload,
|
|
999
1233
|
type WalletActionSwapRejectedWebhookPayload,
|
|
@@ -1003,7 +1237,9 @@ export {
|
|
|
1003
1237
|
type WalletActionTransferRejectedWebhookPayload,
|
|
1004
1238
|
type WalletActionTransferSucceededWebhookPayload,
|
|
1005
1239
|
type WalletArchivedWebhookPayload,
|
|
1240
|
+
type WalletAutomationSubmittedWebhookPayload,
|
|
1006
1241
|
type WalletFundsAsset,
|
|
1242
|
+
type WalletFundsBtknAsset,
|
|
1007
1243
|
type WalletFundsErc20Asset,
|
|
1008
1244
|
type WalletFundsNativeTokenAsset,
|
|
1009
1245
|
type WalletFundsSacAsset,
|
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
|
}
|