@privy-io/api-types 0.22.0 → 0.23.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/client.d.mts +6 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/accounts.d.mts +0 -8
  10. package/resources/accounts.d.mts.map +1 -1
  11. package/resources/accounts.d.ts +0 -8
  12. package/resources/accounts.d.ts.map +1 -1
  13. package/resources/cards.d.mts +4 -0
  14. package/resources/cards.d.mts.map +1 -1
  15. package/resources/cards.d.ts +4 -0
  16. package/resources/cards.d.ts.map +1 -1
  17. package/resources/fiat.d.mts +525 -61
  18. package/resources/fiat.d.mts.map +1 -1
  19. package/resources/fiat.d.ts +525 -61
  20. package/resources/fiat.d.ts.map +1 -1
  21. package/resources/index.d.mts +3 -3
  22. package/resources/index.d.mts.map +1 -1
  23. package/resources/index.d.ts +3 -3
  24. package/resources/index.d.ts.map +1 -1
  25. package/resources/index.js.map +1 -1
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/wallet-automations.d.mts +10 -8
  28. package/resources/wallet-automations.d.mts.map +1 -1
  29. package/resources/wallet-automations.d.ts +10 -8
  30. package/resources/wallet-automations.d.ts.map +1 -1
  31. package/resources/wallets/actions.d.mts +7 -0
  32. package/resources/wallets/actions.d.mts.map +1 -1
  33. package/resources/wallets/actions.d.ts +7 -0
  34. package/resources/wallets/actions.d.ts.map +1 -1
  35. package/resources/wallets/index.d.mts +1 -1
  36. package/resources/wallets/index.d.mts.map +1 -1
  37. package/resources/wallets/index.d.ts +1 -1
  38. package/resources/wallets/index.d.ts.map +1 -1
  39. package/resources/wallets/index.js.map +1 -1
  40. package/resources/wallets/index.mjs.map +1 -1
  41. package/resources/wallets/wallets.d.mts +228 -9
  42. package/resources/wallets/wallets.d.mts.map +1 -1
  43. package/resources/wallets/wallets.d.ts +228 -9
  44. package/resources/wallets/wallets.d.ts.map +1 -1
  45. package/resources/wallets/wallets.js.map +1 -1
  46. package/resources/wallets/wallets.mjs.map +1 -1
  47. package/resources/webhooks.d.mts +14 -14
  48. package/resources/webhooks.d.mts.map +1 -1
  49. package/resources/webhooks.d.ts +14 -14
  50. package/resources/webhooks.d.ts.map +1 -1
  51. package/src/client.ts +64 -6
  52. package/src/resources/accounts.ts +0 -10
  53. package/src/resources/cards.ts +5 -0
  54. package/src/resources/fiat.ts +637 -63
  55. package/src/resources/index.ts +32 -3
  56. package/src/resources/wallet-automations.ts +11 -9
  57. package/src/resources/wallets/actions.ts +8 -0
  58. package/src/resources/wallets/index.ts +14 -0
  59. package/src/resources/wallets/wallets.ts +287 -10
  60. package/src/resources/webhooks.ts +15 -15
  61. package/src/version.ts +1 -1
  62. package/version.d.mts +1 -1
  63. package/version.d.ts +1 -1
  64. package/version.js +1 -1
  65. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -362,13 +362,26 @@ import {
362
362
  FiatDepositAccountStatus,
363
363
  FiatDepositInstructions,
364
364
  FiatPaymentRail,
365
+ KYBAccountPurpose,
366
+ KYBAssociatedPerson,
367
+ KYBBusinessDocument,
368
+ KYBBusinessType,
369
+ KYBDocumentPurpose,
370
+ KYBEstimatedAnnualRevenue,
371
+ KYBHighRiskActivity,
372
+ KYBIndividualDocument,
373
+ KYBIndividualDocumentPurpose,
365
374
  KYBLinksRequestBody,
375
+ KYBPlaceOfBirth,
376
+ KYBPubliclyTradedListing,
377
+ KYBRegulatedActivity,
378
+ KYBSourceOfFunds,
366
379
  KYBStatusListResponse,
367
380
  KYBStatusResponse,
381
+ KYBSubmitData,
382
+ KYBSubmitRequestBody,
368
383
  KYBTosRequestBody,
369
- KYCIdentifyingDocument,
370
384
  KYCLinksRequestBody,
371
- KYCResidentialAddress,
372
385
  KYCStatusListResponse,
373
386
  KYCStatusResponse,
374
387
  KYCSubmitData,
@@ -403,6 +416,8 @@ import {
403
416
  OrganizationExternalFiatAccountResponse,
404
417
  PayoutDestination,
405
418
  PayoutSource,
419
+ VerificationAddress,
420
+ VerificationDocument,
406
421
  } from './resources/fiat';
407
422
  import {
408
423
  CoinbaseBlockchain,
@@ -898,9 +913,9 @@ import {
898
913
  TransactionProviderErrorWebhookPayload,
899
914
  TransactionReplacedWebhookPayload,
900
915
  TransactionStillPendingWebhookPayload,
901
- UsageCrossChainFeeRecordedWebhookPayload,
902
916
  UsageGasSponsorshipRecordedWebhookPayload,
903
917
  UsageSourceType,
918
+ UsageSwapProviderFeeRecordedWebhookPayload,
904
919
  UserAuthenticatedWebhookPayload,
905
920
  UserCreatedWebhookPayload,
906
921
  UserDeletedWebhookPayload,
@@ -1017,6 +1032,7 @@ import {
1017
1032
  CryptoDepositAccountSourceChain,
1018
1033
  CryptoDepositAccountSourceCurrency,
1019
1034
  CryptoDepositAddressRoute,
1035
+ CryptoDepositAddressStrategy,
1020
1036
  CryptoDepositAsset,
1021
1037
  CryptoDepositAssetFilter,
1022
1038
  CryptoDepositAssetFilterAll,
@@ -1030,6 +1046,10 @@ import {
1030
1046
  CustodialWalletCreateInput,
1031
1047
  CustodialWalletProvider,
1032
1048
  CustomTokenTransferSource,
1049
+ DepositAccountCryptoQuoteAmount,
1050
+ DepositAccountCryptoQuoteAsset,
1051
+ DepositAccountCryptoQuoteRequestBody,
1052
+ DepositAccountCryptoQuoteResponse,
1033
1053
  DetachWalletAutomationRequestBody,
1034
1054
  DeveloperFee,
1035
1055
  EncryptedAuthorizationKey,
@@ -1212,10 +1232,19 @@ import {
1212
1232
  TransactionChainNameInput,
1213
1233
  TransactionDetail,
1214
1234
  TransactionTokenAddressInput,
1235
+ TransferCustodyOptions,
1236
+ TransferInitiation,
1237
+ TransferInitiationAttestations,
1238
+ TransferInitiationChannel,
1239
+ TransferInitiationSubchannel,
1215
1240
  TransferQuoteRequestBody,
1216
1241
  TransferQuoteResponse,
1217
1242
  TransferReceivedTransactionDetail,
1218
1243
  TransferRequestBody,
1244
+ TransferScaAttestation,
1245
+ TransferScaAuthFactor,
1246
+ TransferScaAuthFactorCategory,
1247
+ TransferScaOutcome,
1219
1248
  TransferSentTransactionDetail,
1220
1249
  TronContract,
1221
1250
  TronRawDataForSend,
@@ -2194,6 +2223,7 @@ export declare namespace Privy {
2194
2223
  type CryptoDepositAccountSourceChain as CryptoDepositAccountSourceChain,
2195
2224
  type CryptoDepositAccountSourceCurrency as CryptoDepositAccountSourceCurrency,
2196
2225
  type CryptoDepositAddressRoute as CryptoDepositAddressRoute,
2226
+ type CryptoDepositAddressStrategy as CryptoDepositAddressStrategy,
2197
2227
  type CryptoDepositAsset as CryptoDepositAsset,
2198
2228
  type CryptoDepositAssetFilter as CryptoDepositAssetFilter,
2199
2229
  type CryptoDepositAssetFilterAll as CryptoDepositAssetFilterAll,
@@ -2207,6 +2237,10 @@ export declare namespace Privy {
2207
2237
  type CustodialWalletCreateInput as CustodialWalletCreateInput,
2208
2238
  type CustodialWalletProvider as CustodialWalletProvider,
2209
2239
  type CustomTokenTransferSource as CustomTokenTransferSource,
2240
+ type DepositAccountCryptoQuoteAmount as DepositAccountCryptoQuoteAmount,
2241
+ type DepositAccountCryptoQuoteAsset as DepositAccountCryptoQuoteAsset,
2242
+ type DepositAccountCryptoQuoteRequestBody as DepositAccountCryptoQuoteRequestBody,
2243
+ type DepositAccountCryptoQuoteResponse as DepositAccountCryptoQuoteResponse,
2210
2244
  type DetachWalletAutomationRequestBody as DetachWalletAutomationRequestBody,
2211
2245
  type DeveloperFee as DeveloperFee,
2212
2246
  type EncryptedAuthorizationKey as EncryptedAuthorizationKey,
@@ -2389,10 +2423,19 @@ export declare namespace Privy {
2389
2423
  type TransactionChainNameInput as TransactionChainNameInput,
2390
2424
  type TransactionDetail as TransactionDetail,
2391
2425
  type TransactionTokenAddressInput as TransactionTokenAddressInput,
2426
+ type TransferCustodyOptions as TransferCustodyOptions,
2427
+ type TransferInitiation as TransferInitiation,
2428
+ type TransferInitiationAttestations as TransferInitiationAttestations,
2429
+ type TransferInitiationChannel as TransferInitiationChannel,
2430
+ type TransferInitiationSubchannel as TransferInitiationSubchannel,
2392
2431
  type TransferQuoteRequestBody as TransferQuoteRequestBody,
2393
2432
  type TransferQuoteResponse as TransferQuoteResponse,
2394
2433
  type TransferReceivedTransactionDetail as TransferReceivedTransactionDetail,
2395
2434
  type TransferRequestBody as TransferRequestBody,
2435
+ type TransferScaAttestation as TransferScaAttestation,
2436
+ type TransferScaAuthFactor as TransferScaAuthFactor,
2437
+ type TransferScaAuthFactorCategory as TransferScaAuthFactorCategory,
2438
+ type TransferScaOutcome as TransferScaOutcome,
2396
2439
  type TransferSentTransactionDetail as TransferSentTransactionDetail,
2397
2440
  type TronContract as TronContract,
2398
2441
  type TronRawDataForSend as TronRawDataForSend,
@@ -2982,13 +3025,26 @@ export declare namespace Privy {
2982
3025
  type FiatDepositAccountStatus as FiatDepositAccountStatus,
2983
3026
  type FiatDepositInstructions as FiatDepositInstructions,
2984
3027
  type FiatPaymentRail as FiatPaymentRail,
3028
+ type KYBAccountPurpose as KYBAccountPurpose,
3029
+ type KYBAssociatedPerson as KYBAssociatedPerson,
3030
+ type KYBBusinessDocument as KYBBusinessDocument,
3031
+ type KYBBusinessType as KYBBusinessType,
3032
+ type KYBDocumentPurpose as KYBDocumentPurpose,
3033
+ type KYBEstimatedAnnualRevenue as KYBEstimatedAnnualRevenue,
3034
+ type KYBHighRiskActivity as KYBHighRiskActivity,
3035
+ type KYBIndividualDocument as KYBIndividualDocument,
3036
+ type KYBIndividualDocumentPurpose as KYBIndividualDocumentPurpose,
2985
3037
  type KYBLinksRequestBody as KYBLinksRequestBody,
3038
+ type KYBPlaceOfBirth as KYBPlaceOfBirth,
3039
+ type KYBPubliclyTradedListing as KYBPubliclyTradedListing,
3040
+ type KYBRegulatedActivity as KYBRegulatedActivity,
3041
+ type KYBSourceOfFunds as KYBSourceOfFunds,
2986
3042
  type KYBStatusListResponse as KYBStatusListResponse,
2987
3043
  type KYBStatusResponse as KYBStatusResponse,
3044
+ type KYBSubmitData as KYBSubmitData,
3045
+ type KYBSubmitRequestBody as KYBSubmitRequestBody,
2988
3046
  type KYBTosRequestBody as KYBTosRequestBody,
2989
- type KYCIdentifyingDocument as KYCIdentifyingDocument,
2990
3047
  type KYCLinksRequestBody as KYCLinksRequestBody,
2991
- type KYCResidentialAddress as KYCResidentialAddress,
2992
3048
  type KYCStatusListResponse as KYCStatusListResponse,
2993
3049
  type KYCStatusResponse as KYCStatusResponse,
2994
3050
  type KYCSubmitData as KYCSubmitData,
@@ -3023,6 +3079,8 @@ export declare namespace Privy {
3023
3079
  type OrganizationExternalFiatAccountResponse as OrganizationExternalFiatAccountResponse,
3024
3080
  type PayoutDestination as PayoutDestination,
3025
3081
  type PayoutSource as PayoutSource,
3082
+ type VerificationAddress as VerificationAddress,
3083
+ type VerificationDocument as VerificationDocument,
3026
3084
  };
3027
3085
 
3028
3086
  export {
@@ -3211,9 +3269,9 @@ export declare namespace Privy {
3211
3269
  type TransactionProviderErrorWebhookPayload as TransactionProviderErrorWebhookPayload,
3212
3270
  type TransactionReplacedWebhookPayload as TransactionReplacedWebhookPayload,
3213
3271
  type TransactionStillPendingWebhookPayload as TransactionStillPendingWebhookPayload,
3214
- type UsageCrossChainFeeRecordedWebhookPayload as UsageCrossChainFeeRecordedWebhookPayload,
3215
3272
  type UsageGasSponsorshipRecordedWebhookPayload as UsageGasSponsorshipRecordedWebhookPayload,
3216
3273
  type UsageSourceType as UsageSourceType,
3274
+ type UsageSwapProviderFeeRecordedWebhookPayload as UsageSwapProviderFeeRecordedWebhookPayload,
3217
3275
  type UserAuthenticatedWebhookPayload as UserAuthenticatedWebhookPayload,
3218
3276
  type UserCreatedWebhookPayload as UserCreatedWebhookPayload,
3219
3277
  type UserDeletedWebhookPayload as UserDeletedWebhookPayload,
@@ -80,11 +80,6 @@ export interface AccountWallet {
80
80
  * The wallet chain types that offer first class support.
81
81
  */
82
82
  chain_type: WalletsAPI.FirstClassChainType;
83
-
84
- /**
85
- * Information about the custodian managing this wallet.
86
- */
87
- custody?: WalletsAPI.WalletCustodian;
88
83
  }
89
84
 
90
85
  /**
@@ -95,11 +90,6 @@ export interface AccountWalletConfigurationItem {
95
90
  * The wallet chain types that offer first class support.
96
91
  */
97
92
  chain_type: WalletsAPI.FirstClassChainType;
98
-
99
- /**
100
- * Information about the custodian managing this wallet.
101
- */
102
- custody?: WalletsAPI.WalletCustodian;
103
93
  }
104
94
 
105
95
  /**
@@ -132,6 +132,11 @@ export interface CardIssuingCardsResponse {
132
132
  * Browser-safe configuration for rendering Stripe Issuing card details.
133
133
  */
134
134
  export interface CardIssuingConfig {
135
+ /**
136
+ * Logo for the in-app card face. Null when none is set.
137
+ */
138
+ card_logo_url: string | null;
139
+
135
140
  /**
136
141
  * Stripe publishable key for initializing Stripe.js in the browser.
137
142
  */