@privy-io/api-types 0.10.0 → 0.12.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 (135) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +22 -28
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -28
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -12
  7. package/client.js.map +1 -1
  8. package/client.mjs +7 -13
  9. package/client.mjs.map +1 -1
  10. package/internal/utils/log.d.mts.map +1 -1
  11. package/internal/utils/log.d.ts.map +1 -1
  12. package/internal/utils/log.js +2 -0
  13. package/internal/utils/log.js.map +1 -1
  14. package/internal/utils/log.mjs +2 -0
  15. package/internal/utils/log.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/apps.d.mts +5 -0
  18. package/resources/apps.d.mts.map +1 -1
  19. package/resources/apps.d.ts +5 -0
  20. package/resources/apps.d.ts.map +1 -1
  21. package/resources/client-auth.d.mts +496 -514
  22. package/resources/client-auth.d.mts.map +1 -1
  23. package/resources/client-auth.d.ts +496 -514
  24. package/resources/client-auth.d.ts.map +1 -1
  25. package/resources/client-auth.js.map +1 -1
  26. package/resources/client-auth.mjs.map +1 -1
  27. package/resources/cross-app.d.mts +5 -0
  28. package/resources/cross-app.d.mts.map +1 -1
  29. package/resources/cross-app.d.ts +5 -0
  30. package/resources/cross-app.d.ts.map +1 -1
  31. package/resources/embedded-wallets.d.mts +10 -10
  32. package/resources/embedded-wallets.d.mts.map +1 -1
  33. package/resources/embedded-wallets.d.ts +10 -10
  34. package/resources/embedded-wallets.d.ts.map +1 -1
  35. package/resources/fiat.d.mts +110 -0
  36. package/resources/fiat.d.mts.map +1 -0
  37. package/resources/fiat.d.ts +110 -0
  38. package/resources/fiat.d.ts.map +1 -0
  39. package/resources/fiat.js +9 -0
  40. package/resources/fiat.js.map +1 -0
  41. package/resources/fiat.mjs +5 -0
  42. package/resources/fiat.mjs.map +1 -0
  43. package/resources/funding.d.mts +46 -46
  44. package/resources/funding.d.mts.map +1 -1
  45. package/resources/funding.d.ts +46 -46
  46. package/resources/funding.d.ts.map +1 -1
  47. package/resources/index.d.mts +11 -10
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +11 -10
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +3 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -1
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/key-quorums.d.mts +1 -132
  56. package/resources/key-quorums.d.mts.map +1 -1
  57. package/resources/key-quorums.d.ts +1 -132
  58. package/resources/key-quorums.d.ts.map +1 -1
  59. package/resources/key-quorums.js +0 -92
  60. package/resources/key-quorums.js.map +1 -1
  61. package/resources/key-quorums.mjs +0 -92
  62. package/resources/key-quorums.mjs.map +1 -1
  63. package/resources/policies.d.mts +2 -312
  64. package/resources/policies.d.mts.map +1 -1
  65. package/resources/policies.d.ts +2 -312
  66. package/resources/policies.d.ts.map +1 -1
  67. package/resources/policies.js +0 -229
  68. package/resources/policies.js.map +1 -1
  69. package/resources/policies.mjs +0 -229
  70. package/resources/policies.mjs.map +1 -1
  71. package/resources/swaps.d.mts +54 -26
  72. package/resources/swaps.d.mts.map +1 -1
  73. package/resources/swaps.d.ts +54 -26
  74. package/resources/swaps.d.ts.map +1 -1
  75. package/resources/transactions.d.mts +28 -44
  76. package/resources/transactions.d.mts.map +1 -1
  77. package/resources/transactions.d.ts +28 -44
  78. package/resources/transactions.d.ts.map +1 -1
  79. package/resources/transactions.js +0 -17
  80. package/resources/transactions.js.map +1 -1
  81. package/resources/transactions.mjs +0 -17
  82. package/resources/transactions.mjs.map +1 -1
  83. package/resources/users.d.mts +1 -345
  84. package/resources/users.d.mts.map +1 -1
  85. package/resources/users.d.ts +1 -345
  86. package/resources/users.d.ts.map +1 -1
  87. package/resources/users.js +0 -272
  88. package/resources/users.js.map +1 -1
  89. package/resources/users.mjs +0 -272
  90. package/resources/users.mjs.map +1 -1
  91. package/resources/wallet-actions.d.mts +22 -3
  92. package/resources/wallet-actions.d.mts.map +1 -1
  93. package/resources/wallet-actions.d.ts +22 -3
  94. package/resources/wallet-actions.d.ts.map +1 -1
  95. package/resources/wallets/index.d.mts +1 -1
  96. package/resources/wallets/index.d.mts.map +1 -1
  97. package/resources/wallets/index.d.ts +1 -1
  98. package/resources/wallets/index.d.ts.map +1 -1
  99. package/resources/wallets/index.js.map +1 -1
  100. package/resources/wallets/index.mjs.map +1 -1
  101. package/resources/wallets/transactions.d.mts +6 -2
  102. package/resources/wallets/transactions.d.mts.map +1 -1
  103. package/resources/wallets/transactions.d.ts +6 -2
  104. package/resources/wallets/transactions.d.ts.map +1 -1
  105. package/resources/wallets/wallets.d.mts +184 -342
  106. package/resources/wallets/wallets.d.mts.map +1 -1
  107. package/resources/wallets/wallets.d.ts +184 -342
  108. package/resources/wallets/wallets.d.ts.map +1 -1
  109. package/resources/wallets/wallets.js +41 -102
  110. package/resources/wallets/wallets.js.map +1 -1
  111. package/resources/wallets/wallets.mjs +41 -102
  112. package/resources/wallets/wallets.mjs.map +1 -1
  113. package/src/client.ts +122 -153
  114. package/src/internal/utils/log.ts +2 -0
  115. package/src/resources/apps.ts +6 -0
  116. package/src/resources/client-auth.ts +743 -787
  117. package/src/resources/cross-app.ts +6 -0
  118. package/src/resources/embedded-wallets.ts +16 -15
  119. package/src/resources/fiat.ts +177 -0
  120. package/src/resources/funding.ts +65 -65
  121. package/src/resources/index.ts +97 -107
  122. package/src/resources/key-quorums.ts +1 -203
  123. package/src/resources/policies.ts +1 -495
  124. package/src/resources/swaps.ts +59 -25
  125. package/src/resources/transactions.ts +35 -55
  126. package/src/resources/users.ts +1 -479
  127. package/src/resources/wallet-actions.ts +38 -2
  128. package/src/resources/wallets/index.ts +4 -9
  129. package/src/resources/wallets/transactions.ts +6 -2
  130. package/src/resources/wallets/wallets.ts +236 -450
  131. package/src/version.ts +1 -1
  132. package/version.d.mts +1 -1
  133. package/version.d.ts +1 -1
  134. package/version.js +1 -1
  135. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -286,6 +286,20 @@ import {
286
286
  WalletCreationAdditionalSignerItem,
287
287
  WalletCreationInput,
288
288
  } from './resources/embedded-wallets';
289
+ import {
290
+ Fiat,
291
+ FiatCurrency,
292
+ FiatPaymentRail,
293
+ OfframpDepositInstructions,
294
+ OfframpResponse,
295
+ OnrampAsset,
296
+ OnrampChain,
297
+ OnrampDepositInstructions,
298
+ OnrampKYCResponse,
299
+ OnrampKYCStatus,
300
+ OnrampResponse,
301
+ OnrampTransferStatus,
302
+ } from './resources/fiat';
289
303
  import {
290
304
  CoinbaseBlockchain,
291
305
  CoinbaseEthereumAsset,
@@ -340,10 +354,7 @@ import {
340
354
  import {
341
355
  KeyQuorum,
342
356
  KeyQuorumAuthorizationHeaders,
343
- KeyQuorumCreateParams,
344
357
  KeyQuorumCreateRequestBody,
345
- KeyQuorumDeleteParams,
346
- KeyQuorumUpdateParams,
347
358
  KeyQuorumUpdateRequestBody,
348
359
  KeyQuorums,
349
360
  } from './resources/key-quorums';
@@ -392,18 +403,11 @@ import {
392
403
  PolicyAction,
393
404
  PolicyAuthorizationHeaders,
394
405
  PolicyCondition,
395
- PolicyCreateParams,
396
- PolicyCreateRuleParams,
397
- PolicyDeleteParams,
398
- PolicyDeleteRuleParams,
399
- PolicyGetRuleParams,
400
406
  PolicyMethod,
401
407
  PolicyRequestBody,
402
408
  PolicyRuleRequestBody,
403
409
  PolicyRuleRequestParams,
404
410
  PolicyRuleResponse,
405
- PolicyUpdateParams,
406
- PolicyUpdateRuleParams,
407
411
  SolanaProgramInstructionCondition,
408
412
  SolanaSystemProgramInstructionCondition,
409
413
  SolanaTokenProgramInstructionCondition,
@@ -427,7 +431,15 @@ import {
427
431
  Shared,
428
432
  SuccessResponse,
429
433
  } from './resources/shared';
430
- import { SwapQuoteRequestBody, SwapQuoteResponse, SwapRequestBody, Swaps } from './resources/swaps';
434
+ import {
435
+ SwapDestination,
436
+ SwapQuoteDestination,
437
+ SwapQuoteRequestBody,
438
+ SwapQuoteResponse,
439
+ SwapRequestBody,
440
+ SwapSource,
441
+ Swaps,
442
+ } from './resources/swaps';
431
443
  import {
432
444
  Transaction,
433
445
  TransactionList,
@@ -515,27 +527,8 @@ import {
515
527
  TotpMfaMethod,
516
528
  User,
517
529
  UserBatchCreateInput,
518
- UserCreateParams,
519
- UserGetByCustomAuthIDParams,
520
- UserGetByDiscordUsernameParams,
521
- UserGetByEmailAddressParams,
522
- UserGetByFarcasterIDParams,
523
- UserGetByGitHubUsernameParams,
524
- UserGetByPhoneNumberParams,
525
- UserGetBySmartWalletAddressParams,
526
- UserGetByTelegramUserIDParams,
527
- UserGetByTelegramUsernameParams,
528
- UserGetByTwitterSubjectParams,
529
- UserGetByTwitterUsernameParams,
530
- UserGetByWalletAddressParams,
531
- UserListParams,
532
- UserPregenerateWalletsParams,
533
- UserSearchParams,
534
- UserSetCustomMetadataParams,
535
- UserUnlinkLinkedAccountParams,
536
530
  UserWithIdentityToken,
537
531
  Users,
538
- UsersCursor,
539
532
  } from './resources/users';
540
533
  import {
541
534
  EarnAsset,
@@ -553,6 +546,8 @@ import {
553
546
  EvmTransactionWalletActionStep,
554
547
  EvmUserOperationWalletActionStep,
555
548
  EvmWalletActionStepStatus,
549
+ ExternalTransactionWalletActionStep,
550
+ ExternalTransactionWalletActionStepStatus,
556
551
  FailureReason,
557
552
  SvmTransactionWalletActionStep,
558
553
  SvmWalletActionStepStatus,
@@ -832,7 +827,6 @@ import {
832
827
  WalletAdditionalSignerItem,
833
828
  WalletAsset,
834
829
  WalletAuthenticateRequestBody,
835
- WalletAuthenticateWithJwtParams,
836
830
  WalletAuthenticateWithJwtResponse,
837
831
  WalletAuthorizationHeaders,
838
832
  WalletBatchCreateInput,
@@ -841,7 +835,6 @@ import {
841
835
  WalletBatchItemInput,
842
836
  WalletChainType,
843
837
  WalletCreateParams,
844
- WalletCreateWalletsWithRecoveryParams,
845
838
  WalletCreateWalletsWithRecoveryResponse,
846
839
  WalletCustodian,
847
840
  WalletEntropyType,
@@ -852,8 +845,6 @@ import {
852
845
  WalletImportInitResponse,
853
846
  WalletImportSupportedChains,
854
847
  WalletImportSupportedEntropyTypes,
855
- WalletInitImportParams,
856
- WalletInitImportResponse,
857
848
  WalletListParams,
858
849
  WalletRawSignParams,
859
850
  WalletRevokeResponse,
@@ -861,7 +852,6 @@ import {
861
852
  WalletRpcRequestBody,
862
853
  WalletRpcResponse,
863
854
  WalletSolanaAsset,
864
- WalletSubmitImportParams,
865
855
  WalletUpdateParams,
866
856
  WalletUpdateRequestBody,
867
857
  Wallets,
@@ -1659,29 +1649,21 @@ export class Privy {
1659
1649
 
1660
1650
  static toFile = Uploads.toFile;
1661
1651
 
1652
+ /**
1653
+ * Operations related to wallets
1654
+ */
1662
1655
  wallets: API.Wallets = new API.Wallets(this);
1663
1656
  apps: API.Apps = new API.Apps(this);
1664
1657
  embeddedWallets: API.EmbeddedWallets = new API.EmbeddedWallets(this);
1665
1658
  clientAuth: API.ClientAuth = new API.ClientAuth(this);
1666
1659
  crossApp: API.CrossApp = new API.CrossApp(this);
1667
1660
  funding: API.Funding = new API.Funding(this);
1668
- /**
1669
- * Operations related to users
1670
- */
1671
1661
  users: API.Users = new API.Users(this);
1672
1662
  analytics: API.Analytics = new API.Analytics(this);
1673
- /**
1674
- * Operations related to policies
1675
- */
1676
1663
  policies: API.Policies = new API.Policies(this);
1677
- /**
1678
- * Operations related to transactions
1679
- */
1680
1664
  transactions: API.Transactions = new API.Transactions(this);
1681
- /**
1682
- * Operations related to key quorums
1683
- */
1684
1665
  keyQuorums: API.KeyQuorums = new API.KeyQuorums(this);
1666
+ fiat: API.Fiat = new API.Fiat(this);
1685
1667
  accounts: API.Accounts = new API.Accounts(this);
1686
1668
  aggregations: API.Aggregations = new API.Aggregations(this);
1687
1669
  intents: API.Intents = new API.Intents(this);
@@ -1705,6 +1687,7 @@ Privy.Analytics = Analytics;
1705
1687
  Privy.Policies = Policies;
1706
1688
  Privy.Transactions = Transactions;
1707
1689
  Privy.KeyQuorums = KeyQuorums;
1690
+ Privy.Fiat = Fiat;
1708
1691
  Privy.Accounts = Accounts;
1709
1692
  Privy.Aggregations = Aggregations;
1710
1693
  Privy.Intents = Intents;
@@ -1724,7 +1707,6 @@ export declare namespace Privy {
1724
1707
 
1725
1708
  export {
1726
1709
  Wallets as Wallets,
1727
- type WalletRevokeResponse as WalletRevokeResponse,
1728
1710
  type AdditionalSignerInput as AdditionalSignerInput,
1729
1711
  type AdditionalSignerItemInput as AdditionalSignerItemInput,
1730
1712
  type Address as Address,
@@ -1896,12 +1878,14 @@ export declare namespace Privy {
1896
1878
  type WalletAPIRevokeAuthorizationKeyInput as WalletAPIRevokeAuthorizationKeyInput,
1897
1879
  type WalletAsset as WalletAsset,
1898
1880
  type WalletAuthenticateRequestBody as WalletAuthenticateRequestBody,
1881
+ type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
1899
1882
  type WalletAuthorizationHeaders as WalletAuthorizationHeaders,
1900
1883
  type WalletBatchCreateInput as WalletBatchCreateInput,
1901
1884
  type WalletBatchCreateResponse as WalletBatchCreateResponse,
1902
1885
  type WalletBatchCreateResult as WalletBatchCreateResult,
1903
1886
  type WalletBatchItemInput as WalletBatchItemInput,
1904
1887
  type WalletChainType as WalletChainType,
1888
+ type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
1905
1889
  type WalletCustodian as WalletCustodian,
1906
1890
  type WalletEntropyType as WalletEntropyType,
1907
1891
  type WalletEthereumAsset as WalletEthereumAsset,
@@ -1910,24 +1894,18 @@ export declare namespace Privy {
1910
1894
  type WalletImportInitResponse as WalletImportInitResponse,
1911
1895
  type WalletImportSupportedChains as WalletImportSupportedChains,
1912
1896
  type WalletImportSupportedEntropyTypes as WalletImportSupportedEntropyTypes,
1897
+ type WalletRevokeResponse as WalletRevokeResponse,
1913
1898
  type WalletRpcRequestBody as WalletRpcRequestBody,
1914
1899
  type WalletRpcResponse as WalletRpcResponse,
1915
1900
  type WalletSolanaAsset as WalletSolanaAsset,
1916
1901
  type WalletUpdateRequestBody as WalletUpdateRequestBody,
1917
- type WalletInitImportResponse as WalletInitImportResponse,
1918
- type WalletAuthenticateWithJwtResponse as WalletAuthenticateWithJwtResponse,
1919
- type WalletCreateWalletsWithRecoveryResponse as WalletCreateWalletsWithRecoveryResponse,
1920
1902
  type WalletsCursor as WalletsCursor,
1921
1903
  type WalletCreateParams as WalletCreateParams,
1904
+ type WalletUpdateParams as WalletUpdateParams,
1922
1905
  type WalletListParams as WalletListParams,
1923
1906
  type WalletExportParams as WalletExportParams,
1924
- type WalletInitImportParams as WalletInitImportParams,
1925
1907
  type WalletRawSignParams as WalletRawSignParams,
1926
1908
  type WalletRpcParams as WalletRpcParams,
1927
- type WalletSubmitImportParams as WalletSubmitImportParams,
1928
- type WalletUpdateParams as WalletUpdateParams,
1929
- type WalletAuthenticateWithJwtParams as WalletAuthenticateWithJwtParams,
1930
- type WalletCreateWalletsWithRecoveryParams as WalletCreateWalletsWithRecoveryParams,
1931
1909
  };
1932
1910
 
1933
1911
  export {
@@ -1965,8 +1943,6 @@ export declare namespace Privy {
1965
1943
 
1966
1944
  export {
1967
1945
  EmbeddedWallets as EmbeddedWallets,
1968
- type SmartWalletConfiguration as SmartWalletConfiguration,
1969
- type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
1970
1946
  type AlchemyPaymasterContext as AlchemyPaymasterContext,
1971
1947
  type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput,
1972
1948
  type ICloudClientType as ICloudClientType,
@@ -1979,8 +1955,10 @@ export declare namespace Privy {
1979
1955
  type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput,
1980
1956
  type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse,
1981
1957
  type RecoveryType as RecoveryType,
1958
+ type SmartWalletConfiguration as SmartWalletConfiguration,
1982
1959
  type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled,
1983
1960
  type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled,
1961
+ type SmartWalletConfigurationInput as SmartWalletConfigurationInput,
1984
1962
  type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled,
1985
1963
  type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration,
1986
1964
  type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput,
@@ -1991,65 +1969,6 @@ export declare namespace Privy {
1991
1969
 
1992
1970
  export {
1993
1971
  ClientAuth as ClientAuth,
1994
- type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody,
1995
- type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody,
1996
- type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody,
1997
- type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody,
1998
- type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody,
1999
- type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody,
2000
- type FarcasterInitRequestBody as FarcasterInitRequestBody,
2001
- type FarcasterLinkRequestBody as FarcasterLinkRequestBody,
2002
- type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody,
2003
- type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody,
2004
- type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody,
2005
- type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody,
2006
- type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody,
2007
- type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody,
2008
- type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody,
2009
- type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody,
2010
- type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody,
2011
- type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody,
2012
- type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody,
2013
- type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody,
2014
- type MfaSMSInitRequestBody as MfaSMSInitRequestBody,
2015
- type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody,
2016
- type MfaTotpInitResponseBody as MfaTotpInitResponseBody,
2017
- type MfaTotpInput as MfaTotpInput,
2018
- type MfaVerifyResponseBody as MfaVerifyResponseBody,
2019
- type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody,
2020
- type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody,
2021
- type OAuthInitRequestBody as OAuthInitRequestBody,
2022
- type OAuthInitResponseBody as OAuthInitResponseBody,
2023
- type OAuthLinkRequestBody as OAuthLinkRequestBody,
2024
- type OAuthLinkResponseBody as OAuthLinkResponseBody,
2025
- type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody,
2026
- type OAuthVerifyRequestBody as OAuthVerifyRequestBody,
2027
- type OAuthVerifyResponseBody as OAuthVerifyResponseBody,
2028
- type OptionalRefreshTokenInput as OptionalRefreshTokenInput,
2029
- type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody,
2030
- type PasswordlessInitRequestBody as PasswordlessInitRequestBody,
2031
- type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody,
2032
- type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody,
2033
- type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody,
2034
- type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody,
2035
- type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody,
2036
- type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody,
2037
- type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody,
2038
- type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody,
2039
- type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody,
2040
- type SiweInitRequestBody as SiweInitRequestBody,
2041
- type SiweInitResponseBody as SiweInitResponseBody,
2042
- type SiweLinkRequestBody as SiweLinkRequestBody,
2043
- type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody,
2044
- type SiweUnlinkRequestBody as SiweUnlinkRequestBody,
2045
- type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody,
2046
- type SiwsInitRequestBody as SiwsInitRequestBody,
2047
- type SiwsInitResponseBody as SiwsInitResponseBody,
2048
- type SiwsLinkRequestBody as SiwsLinkRequestBody,
2049
- type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody,
2050
- type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody,
2051
- type TelegramLinkRequestBody as TelegramLinkRequestBody,
2052
- type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody,
2053
1972
  type AuthenticateJwtInput as AuthenticateJwtInput,
2054
1973
  type AuthenticateMode as AuthenticateMode,
2055
1974
  type AuthenticateModeOption as AuthenticateModeOption,
@@ -2076,23 +1995,37 @@ export declare namespace Privy {
2076
1995
  type Caip2ChainID as Caip2ChainID,
2077
1996
  type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
2078
1997
  type CryptoCurrencyCode as CryptoCurrencyCode,
1998
+ type CustomJwtAuthenticateRequestBody as CustomJwtAuthenticateRequestBody,
1999
+ type CustomJwtLinkRequestBody as CustomJwtLinkRequestBody,
2079
2000
  type CustomOAuthProviderID as CustomOAuthProviderID,
2080
2001
  type ExternalOAuthProviderID as ExternalOAuthProviderID,
2081
2002
  type FarcasterAuthenticateInput as FarcasterAuthenticateInput,
2003
+ type FarcasterAuthenticateRequestBody as FarcasterAuthenticateRequestBody,
2082
2004
  type FarcasterConnectInitResponse as FarcasterConnectInitResponse,
2005
+ type FarcasterConnectInitResponseBody as FarcasterConnectInitResponseBody,
2083
2006
  type FarcasterConnectStatusCompletedResponse as FarcasterConnectStatusCompletedResponse,
2007
+ type FarcasterConnectStatusCompletedResponseBody as FarcasterConnectStatusCompletedResponseBody,
2084
2008
  type FarcasterConnectStatusPendingResponse as FarcasterConnectStatusPendingResponse,
2009
+ type FarcasterConnectStatusPendingResponseBody as FarcasterConnectStatusPendingResponseBody,
2085
2010
  type FarcasterInitInput as FarcasterInitInput,
2011
+ type FarcasterInitRequestBody as FarcasterInitRequestBody,
2086
2012
  type FarcasterLinkInput as FarcasterLinkInput,
2013
+ type FarcasterLinkRequestBody as FarcasterLinkRequestBody,
2087
2014
  type FarcasterSignerApproved as FarcasterSignerApproved,
2088
2015
  type FarcasterSignerInitPendingApproval as FarcasterSignerInitPendingApproval,
2016
+ type FarcasterSignerInitRequestBody as FarcasterSignerInitRequestBody,
2017
+ type FarcasterSignerInitResponseBody as FarcasterSignerInitResponseBody,
2089
2018
  type FarcasterSignerRevoked as FarcasterSignerRevoked,
2090
2019
  type FarcasterSignerStatusPendingApproval as FarcasterSignerStatusPendingApproval,
2020
+ type FarcasterSignerStatusResponseBody as FarcasterSignerStatusResponseBody,
2091
2021
  type FarcasterUnlinkInput as FarcasterUnlinkInput,
2022
+ type FarcasterUnlinkRequestBody as FarcasterUnlinkRequestBody,
2092
2023
  type FarcasterV2AuthenticateInput as FarcasterV2AuthenticateInput,
2024
+ type FarcasterV2AuthenticateRequestBody as FarcasterV2AuthenticateRequestBody,
2093
2025
  type FarcasterV2InitInput as FarcasterV2InitInput,
2094
2026
  type FarcasterV2InitRequestBody as FarcasterV2InitRequestBody,
2095
2027
  type FarcasterV2InitResponse as FarcasterV2InitResponse,
2028
+ type FarcasterV2InitResponseBody as FarcasterV2InitResponseBody,
2096
2029
  type FiatAmount as FiatAmount,
2097
2030
  type FiatCurrencyCode as FiatCurrencyCode,
2098
2031
  type FiatCustomerResponse as FiatCustomerResponse,
@@ -2112,15 +2045,36 @@ export declare namespace Privy {
2112
2045
  type GetFiatOnrampTransactionStatusResponse as GetFiatOnrampTransactionStatusResponse,
2113
2046
  type GetFiatOnrampURLInput as GetFiatOnrampURLInput,
2114
2047
  type GetFiatOnrampURLResponse as GetFiatOnrampURLResponse,
2048
+ type GuestAuthenticateRequestBody as GuestAuthenticateRequestBody,
2115
2049
  type LinkJwtInput as LinkJwtInput,
2050
+ type MfaPasskeyEnrollmentRequestBody as MfaPasskeyEnrollmentRequestBody,
2051
+ type MfaPasskeyInitRequestBody as MfaPasskeyInitRequestBody,
2052
+ type MfaPasskeyInitResponseBody as MfaPasskeyInitResponseBody,
2053
+ type MfaPasskeyVerifyRequestBody as MfaPasskeyVerifyRequestBody,
2054
+ type MfaSMSEnrollRequestBody as MfaSMSEnrollRequestBody,
2116
2055
  type MfaSMSInitEnrollInput as MfaSMSInitEnrollInput,
2056
+ type MfaSMSInitRequestBody as MfaSMSInitRequestBody,
2117
2057
  type MfaSMSInitVerifyInput as MfaSMSInitVerifyInput,
2058
+ type MfaSMSVerifyRequestBody as MfaSMSVerifyRequestBody,
2059
+ type MfaTotpInitResponseBody as MfaTotpInitResponseBody,
2060
+ type MfaTotpInput as MfaTotpInput,
2061
+ type MfaVerifyResponseBody as MfaVerifyResponseBody,
2062
+ type OAuthAuthenticateRequestBody as OAuthAuthenticateRequestBody,
2063
+ type OAuthAuthorizationCodeRequestBody as OAuthAuthorizationCodeRequestBody,
2118
2064
  type OAuthCodeType as OAuthCodeType,
2065
+ type OAuthInitRequestBody as OAuthInitRequestBody,
2066
+ type OAuthInitResponseBody as OAuthInitResponseBody,
2067
+ type OAuthLinkRequestBody as OAuthLinkRequestBody,
2068
+ type OAuthLinkResponseBody as OAuthLinkResponseBody,
2119
2069
  type OAuthProviderID as OAuthProviderID,
2120
2070
  type OAuthTransferRequestBody as OAuthTransferRequestBody,
2121
2071
  type OAuthTransferUserInfo as OAuthTransferUserInfo,
2122
2072
  type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta,
2073
+ type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody,
2074
+ type OAuthVerifyRequestBody as OAuthVerifyRequestBody,
2075
+ type OAuthVerifyResponseBody as OAuthVerifyResponseBody,
2123
2076
  type OnrampProvider as OnrampProvider,
2077
+ type OptionalRefreshTokenInput as OptionalRefreshTokenInput,
2124
2078
  type PasskeyAssertionResponse as PasskeyAssertionResponse,
2125
2079
  type PasskeyAttestationResponse as PasskeyAttestationResponse,
2126
2080
  type PasskeyAuthenticateInput as PasskeyAuthenticateInput,
@@ -2140,24 +2094,48 @@ export declare namespace Privy {
2140
2094
  type PasskeyRelyingParty as PasskeyRelyingParty,
2141
2095
  type PasskeyUser as PasskeyUser,
2142
2096
  type PasskeyVerifyExtensions as PasskeyVerifyExtensions,
2097
+ type PasswordlessAuthenticateRequestBody as PasswordlessAuthenticateRequestBody,
2098
+ type PasswordlessInitRequestBody as PasswordlessInitRequestBody,
2099
+ type PasswordlessLinkRequestBody as PasswordlessLinkRequestBody,
2100
+ type PasswordlessSMSAuthenticateRequestBody as PasswordlessSMSAuthenticateRequestBody,
2101
+ type PasswordlessSMSInitRequestBody as PasswordlessSMSInitRequestBody,
2102
+ type PasswordlessSMSLinkRequestBody as PasswordlessSMSLinkRequestBody,
2143
2103
  type PasswordlessSMSTransferRequestBody as PasswordlessSMSTransferRequestBody,
2104
+ type PasswordlessSMSUnlinkRequestBody as PasswordlessSMSUnlinkRequestBody,
2105
+ type PasswordlessSMSUpdateRequestBody as PasswordlessSMSUpdateRequestBody,
2144
2106
  type PasswordlessTransferRequestBody as PasswordlessTransferRequestBody,
2107
+ type PasswordlessUnlinkRequestBody as PasswordlessUnlinkRequestBody,
2108
+ type PasswordlessUpdateRequestBody as PasswordlessUpdateRequestBody,
2145
2109
  type PrivyOAuthProviderID as PrivyOAuthProviderID,
2146
2110
  type ResponsePasskeyInitAuthenticate as ResponsePasskeyInitAuthenticate,
2147
2111
  type ResponsePasskeyInitLink as ResponsePasskeyInitLink,
2148
2112
  type ResponsePasskeyInitRegister as ResponsePasskeyInitRegister,
2149
2113
  type SiweAddressInput as SiweAddressInput,
2114
+ type SiweAuthenticateRequestBody as SiweAuthenticateRequestBody,
2150
2115
  type SiweInitInput as SiweInitInput,
2116
+ type SiweInitRequestBody as SiweInitRequestBody,
2117
+ type SiweInitResponseBody as SiweInitResponseBody,
2151
2118
  type SiweInput as SiweInput,
2119
+ type SiweLinkRequestBody as SiweLinkRequestBody,
2120
+ type SiweLinkSmartWalletRequestBody as SiweLinkSmartWalletRequestBody,
2152
2121
  type SiweNonce as SiweNonce,
2122
+ type SiweUnlinkRequestBody as SiweUnlinkRequestBody,
2153
2123
  type SiwsAddressInput as SiwsAddressInput,
2124
+ type SiwsAuthenticateRequestBody as SiwsAuthenticateRequestBody,
2154
2125
  type SiwsInitInput as SiwsInitInput,
2126
+ type SiwsInitRequestBody as SiwsInitRequestBody,
2127
+ type SiwsInitResponseBody as SiwsInitResponseBody,
2155
2128
  type SiwsInput as SiwsInput,
2129
+ type SiwsLinkRequestBody as SiwsLinkRequestBody,
2156
2130
  type SiwsNonce as SiwsNonce,
2131
+ type SiwsUnlinkRequestBody as SiwsUnlinkRequestBody,
2157
2132
  type SmartWalletSiweInput as SmartWalletSiweInput,
2158
2133
  type TelegramAuthResult as TelegramAuthResult,
2159
2134
  type TelegramAuthenticateInput as TelegramAuthenticateInput,
2135
+ type TelegramAuthenticateRequestBody as TelegramAuthenticateRequestBody,
2136
+ type TelegramLinkRequestBody as TelegramLinkRequestBody,
2160
2137
  type TelegramUnlinkInput as TelegramUnlinkInput,
2138
+ type TelegramUnlinkRequestBody as TelegramUnlinkRequestBody,
2161
2139
  type TelegramWebAppData as TelegramWebAppData,
2162
2140
  type TransferFarcasterInput as TransferFarcasterInput,
2163
2141
  type TransferSiweInput as TransferSiweInput,
@@ -2174,18 +2152,16 @@ export declare namespace Privy {
2174
2152
 
2175
2153
  export {
2176
2154
  Funding as Funding,
2177
- type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput,
2178
- type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse,
2179
- type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse,
2180
- type MoonpayOnRampSignInput as MoonpayOnRampSignInput,
2181
- type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse,
2182
2155
  type CoinbaseBlockchain as CoinbaseBlockchain,
2183
2156
  type CoinbaseEthereumAsset as CoinbaseEthereumAsset,
2184
2157
  type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress,
2185
2158
  type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput,
2159
+ type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput,
2160
+ type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse,
2186
2161
  type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput,
2187
2162
  type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress,
2188
2163
  type CoinbaseOnRampStatus as CoinbaseOnRampStatus,
2164
+ type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse,
2189
2165
  type CoinbaseSolanaAsset as CoinbaseSolanaAsset,
2190
2166
  type MoonpayCurrencyCode as MoonpayCurrencyCode,
2191
2167
  type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig,
@@ -2193,6 +2169,8 @@ export declare namespace Privy {
2193
2169
  type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig,
2194
2170
  type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput,
2195
2171
  type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig,
2172
+ type MoonpayOnRampSignInput as MoonpayOnRampSignInput,
2173
+ type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse,
2196
2174
  type MoonpayPaymentMethod as MoonpayPaymentMethod,
2197
2175
  type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode,
2198
2176
  type MoonpayUiConfig as MoonpayUiConfig,
@@ -2267,25 +2245,6 @@ export declare namespace Privy {
2267
2245
  type User as User,
2268
2246
  type UserBatchCreateInput as UserBatchCreateInput,
2269
2247
  type UserWithIdentityToken as UserWithIdentityToken,
2270
- type UsersCursor as UsersCursor,
2271
- type UserCreateParams as UserCreateParams,
2272
- type UserListParams as UserListParams,
2273
- type UserGetByCustomAuthIDParams as UserGetByCustomAuthIDParams,
2274
- type UserGetByDiscordUsernameParams as UserGetByDiscordUsernameParams,
2275
- type UserGetByEmailAddressParams as UserGetByEmailAddressParams,
2276
- type UserGetByFarcasterIDParams as UserGetByFarcasterIDParams,
2277
- type UserGetByGitHubUsernameParams as UserGetByGitHubUsernameParams,
2278
- type UserGetByPhoneNumberParams as UserGetByPhoneNumberParams,
2279
- type UserGetBySmartWalletAddressParams as UserGetBySmartWalletAddressParams,
2280
- type UserGetByTelegramUserIDParams as UserGetByTelegramUserIDParams,
2281
- type UserGetByTelegramUsernameParams as UserGetByTelegramUsernameParams,
2282
- type UserGetByTwitterSubjectParams as UserGetByTwitterSubjectParams,
2283
- type UserGetByTwitterUsernameParams as UserGetByTwitterUsernameParams,
2284
- type UserGetByWalletAddressParams as UserGetByWalletAddressParams,
2285
- type UserPregenerateWalletsParams as UserPregenerateWalletsParams,
2286
- type UserSearchParams as UserSearchParams,
2287
- type UserSetCustomMetadataParams as UserSetCustomMetadataParams,
2288
- type UserUnlinkLinkedAccountParams as UserUnlinkLinkedAccountParams,
2289
2248
  };
2290
2249
 
2291
2250
  export { Analytics as Analytics, type AnalyticsEventInput as AnalyticsEventInput };
@@ -2333,19 +2292,10 @@ export declare namespace Privy {
2333
2292
  type TronCalldataCondition as TronCalldataCondition,
2334
2293
  type TronTransactionCondition as TronTransactionCondition,
2335
2294
  type UpdateConditionSetRequestBody as UpdateConditionSetRequestBody,
2336
- type PolicyCreateParams as PolicyCreateParams,
2337
- type PolicyCreateRuleParams as PolicyCreateRuleParams,
2338
- type PolicyDeleteParams as PolicyDeleteParams,
2339
- type PolicyDeleteRuleParams as PolicyDeleteRuleParams,
2340
- type PolicyUpdateParams as PolicyUpdateParams,
2341
- type PolicyUpdateRuleParams as PolicyUpdateRuleParams,
2342
- type PolicyGetRuleParams as PolicyGetRuleParams,
2343
2295
  };
2344
2296
 
2345
2297
  export {
2346
2298
  Transactions as Transactions,
2347
- type TransactionScanningRequestBody as TransactionScanningRequestBody,
2348
- type TransactionScanningResponseBody as TransactionScanningResponseBody,
2349
2299
  type Transaction as Transaction,
2350
2300
  type TransactionList as TransactionList,
2351
2301
  type TransactionScanningAssetDiff as TransactionScanningAssetDiff,
@@ -2355,6 +2305,8 @@ export declare namespace Privy {
2355
2305
  type TransactionScanningExposure as TransactionScanningExposure,
2356
2306
  type TransactionScanningMetadata as TransactionScanningMetadata,
2357
2307
  type TransactionScanningParams as TransactionScanningParams,
2308
+ type TransactionScanningRequestBody as TransactionScanningRequestBody,
2309
+ type TransactionScanningResponseBody as TransactionScanningResponseBody,
2358
2310
  type TransactionScanningRpcRequest as TransactionScanningRpcRequest,
2359
2311
  type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult,
2360
2312
  type TransactionScanningSimulationResult as TransactionScanningSimulationResult,
@@ -2370,9 +2322,21 @@ export declare namespace Privy {
2370
2322
  type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders,
2371
2323
  type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody,
2372
2324
  type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody,
2373
- type KeyQuorumCreateParams as KeyQuorumCreateParams,
2374
- type KeyQuorumDeleteParams as KeyQuorumDeleteParams,
2375
- type KeyQuorumUpdateParams as KeyQuorumUpdateParams,
2325
+ };
2326
+
2327
+ export {
2328
+ Fiat as Fiat,
2329
+ type FiatCurrency as FiatCurrency,
2330
+ type FiatPaymentRail as FiatPaymentRail,
2331
+ type OfframpDepositInstructions as OfframpDepositInstructions,
2332
+ type OfframpResponse as OfframpResponse,
2333
+ type OnrampAsset as OnrampAsset,
2334
+ type OnrampChain as OnrampChain,
2335
+ type OnrampDepositInstructions as OnrampDepositInstructions,
2336
+ type OnrampKYCResponse as OnrampKYCResponse,
2337
+ type OnrampKYCStatus as OnrampKYCStatus,
2338
+ type OnrampResponse as OnrampResponse,
2339
+ type OnrampTransferStatus as OnrampTransferStatus,
2376
2340
  };
2377
2341
 
2378
2342
  export {
@@ -2547,6 +2511,8 @@ export declare namespace Privy {
2547
2511
  type EthereumEarnPositionResponse as EthereumEarnPositionResponse,
2548
2512
  type EthereumEarnProvider as EthereumEarnProvider,
2549
2513
  type EthereumEarnVaultDetailsResponse as EthereumEarnVaultDetailsResponse,
2514
+ type ExternalTransactionWalletActionStep as ExternalTransactionWalletActionStep,
2515
+ type ExternalTransactionWalletActionStepStatus as ExternalTransactionWalletActionStepStatus,
2550
2516
  type FailureReason as FailureReason,
2551
2517
  type SvmTransactionWalletActionStep as SvmTransactionWalletActionStep,
2552
2518
  type SvmWalletActionStepStatus as SvmWalletActionStepStatus,
@@ -2595,8 +2561,11 @@ export declare namespace Privy {
2595
2561
 
2596
2562
  export {
2597
2563
  Swaps as Swaps,
2564
+ type SwapDestination as SwapDestination,
2565
+ type SwapQuoteDestination as SwapQuoteDestination,
2598
2566
  type SwapQuoteRequestBody as SwapQuoteRequestBody,
2599
2567
  type SwapQuoteResponse as SwapQuoteResponse,
2600
2568
  type SwapRequestBody as SwapRequestBody,
2569
+ type SwapSource as SwapSource,
2601
2570
  };
2602
2571
  }
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
107
107
  name,
108
108
  (
109
109
  name.toLowerCase() === 'authorization' ||
110
+ name.toLowerCase() === 'api-key' ||
111
+ name.toLowerCase() === 'x-api-key' ||
110
112
  name.toLowerCase() === 'cookie' ||
111
113
  name.toLowerCase() === 'set-cookie'
112
114
  ) ?
@@ -56,6 +56,12 @@ export interface AppResponse {
56
56
 
57
57
  custom_oauth_providers: Array<AppResponse.CustomOAuthProvider>;
58
58
 
59
+ /**
60
+ * Indicates that this response contains only publicly accessible data, not a
61
+ * privileged resource
62
+ */
63
+ data_classification: 'public';
64
+
59
65
  disable_plus_emails: boolean;
60
66
 
61
67
  discord_oauth: boolean;