@privy-io/api-types 0.7.0 → 0.8.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 (169) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/client.d.mts +37 -28
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +37 -28
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/accounts.d.mts +79 -106
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +79 -106
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/accounts.js.map +1 -1
  16. package/resources/accounts.mjs.map +1 -1
  17. package/resources/aggregations.d.mts +18 -392
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +18 -392
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/aggregations.js.map +1 -1
  22. package/resources/aggregations.mjs.map +1 -1
  23. package/resources/apps.d.mts +139 -70
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +139 -70
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/apps.js.map +1 -1
  28. package/resources/apps.mjs.map +1 -1
  29. package/resources/client-auth.d.mts +796 -427
  30. package/resources/client-auth.d.mts.map +1 -1
  31. package/resources/client-auth.d.ts +796 -427
  32. package/resources/client-auth.d.ts.map +1 -1
  33. package/resources/client-auth.js.map +1 -1
  34. package/resources/client-auth.mjs.map +1 -1
  35. package/resources/cross-app.d.mts +14 -13
  36. package/resources/cross-app.d.mts.map +1 -1
  37. package/resources/cross-app.d.ts +14 -13
  38. package/resources/cross-app.d.ts.map +1 -1
  39. package/resources/embedded-wallets.d.mts +165 -81
  40. package/resources/embedded-wallets.d.mts.map +1 -1
  41. package/resources/embedded-wallets.d.ts +165 -81
  42. package/resources/embedded-wallets.d.ts.map +1 -1
  43. package/resources/embedded-wallets.js.map +1 -1
  44. package/resources/embedded-wallets.mjs.map +1 -1
  45. package/resources/funding.d.mts +150 -64
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +150 -64
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/funding.js.map +1 -1
  50. package/resources/funding.mjs.map +1 -1
  51. package/resources/index.d.mts +17 -14
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +17 -14
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +7 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +3 -0
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +224 -1757
  60. package/resources/intents.d.mts.map +1 -1
  61. package/resources/intents.d.ts +224 -1757
  62. package/resources/intents.d.ts.map +1 -1
  63. package/resources/intents.js.map +1 -1
  64. package/resources/intents.mjs.map +1 -1
  65. package/resources/key-quorums.d.mts +74 -26
  66. package/resources/key-quorums.d.mts.map +1 -1
  67. package/resources/key-quorums.d.ts +74 -26
  68. package/resources/key-quorums.d.ts.map +1 -1
  69. package/resources/key-quorums.js +8 -8
  70. package/resources/key-quorums.js.map +1 -1
  71. package/resources/key-quorums.mjs +8 -8
  72. package/resources/key-quorums.mjs.map +1 -1
  73. package/resources/policies.d.mts +335 -926
  74. package/resources/policies.d.mts.map +1 -1
  75. package/resources/policies.d.ts +335 -926
  76. package/resources/policies.d.ts.map +1 -1
  77. package/resources/policies.js +48 -41
  78. package/resources/policies.js.map +1 -1
  79. package/resources/policies.mjs +48 -41
  80. package/resources/policies.mjs.map +1 -1
  81. package/resources/shared.d.mts +59 -0
  82. package/resources/shared.d.mts.map +1 -0
  83. package/resources/shared.d.ts +59 -0
  84. package/resources/shared.d.ts.map +1 -0
  85. package/resources/shared.js +9 -0
  86. package/resources/shared.js.map +1 -0
  87. package/resources/shared.mjs +5 -0
  88. package/resources/shared.mjs.map +1 -0
  89. package/resources/swaps.d.mts +108 -0
  90. package/resources/swaps.d.mts.map +1 -0
  91. package/resources/swaps.d.ts +108 -0
  92. package/resources/swaps.d.ts.map +1 -0
  93. package/resources/swaps.js +9 -0
  94. package/resources/swaps.js.map +1 -0
  95. package/resources/swaps.mjs +5 -0
  96. package/resources/swaps.mjs.map +1 -0
  97. package/resources/transactions.d.mts +155 -93
  98. package/resources/transactions.d.mts.map +1 -1
  99. package/resources/transactions.d.ts +155 -93
  100. package/resources/transactions.d.ts.map +1 -1
  101. package/resources/users.d.mts +61 -94
  102. package/resources/users.d.mts.map +1 -1
  103. package/resources/users.d.ts +61 -94
  104. package/resources/users.d.ts.map +1 -1
  105. package/resources/users.js.map +1 -1
  106. package/resources/users.mjs.map +1 -1
  107. package/resources/wallet-actions.d.mts +187 -0
  108. package/resources/wallet-actions.d.mts.map +1 -0
  109. package/resources/wallet-actions.d.ts +187 -0
  110. package/resources/wallet-actions.d.ts.map +1 -0
  111. package/resources/wallet-actions.js +9 -0
  112. package/resources/wallet-actions.js.map +1 -0
  113. package/resources/wallet-actions.mjs +5 -0
  114. package/resources/wallet-actions.mjs.map +1 -0
  115. package/resources/wallets/index.d.mts +1 -1
  116. package/resources/wallets/index.d.mts.map +1 -1
  117. package/resources/wallets/index.d.ts +1 -1
  118. package/resources/wallets/index.d.ts.map +1 -1
  119. package/resources/wallets/index.js.map +1 -1
  120. package/resources/wallets/index.mjs.map +1 -1
  121. package/resources/wallets/transactions.d.mts +1 -0
  122. package/resources/wallets/transactions.d.mts.map +1 -1
  123. package/resources/wallets/transactions.d.ts +1 -0
  124. package/resources/wallets/transactions.d.ts.map +1 -1
  125. package/resources/wallets/wallets.d.mts +2377 -971
  126. package/resources/wallets/wallets.d.mts.map +1 -1
  127. package/resources/wallets/wallets.d.ts +2377 -971
  128. package/resources/wallets/wallets.d.ts.map +1 -1
  129. package/resources/wallets/wallets.js +18 -6
  130. package/resources/wallets/wallets.js.map +1 -1
  131. package/resources/wallets/wallets.mjs +18 -6
  132. package/resources/wallets/wallets.mjs.map +1 -1
  133. package/resources/webhooks.d.mts +438 -33
  134. package/resources/webhooks.d.mts.map +1 -1
  135. package/resources/webhooks.d.ts +438 -33
  136. package/resources/webhooks.d.ts.map +1 -1
  137. package/resources/webhooks.js.map +1 -1
  138. package/resources/webhooks.mjs.map +1 -1
  139. package/resources/yield.d.mts +25 -1
  140. package/resources/yield.d.mts.map +1 -1
  141. package/resources/yield.d.ts +25 -1
  142. package/resources/yield.d.ts.map +1 -1
  143. package/src/client.ts +721 -72
  144. package/src/resources/accounts.ts +93 -120
  145. package/src/resources/aggregations.ts +18 -702
  146. package/src/resources/apps.ts +187 -110
  147. package/src/resources/client-auth.ts +1358 -893
  148. package/src/resources/cross-app.ts +19 -15
  149. package/src/resources/embedded-wallets.ts +219 -123
  150. package/src/resources/funding.ts +263 -173
  151. package/src/resources/index.ts +368 -47
  152. package/src/resources/intents.ts +370 -3100
  153. package/src/resources/key-quorums.ts +100 -32
  154. package/src/resources/policies.ts +583 -1558
  155. package/src/resources/shared.ts +79 -0
  156. package/src/resources/swaps.ts +136 -0
  157. package/src/resources/transactions.ts +185 -91
  158. package/src/resources/users.ts +79 -132
  159. package/src/resources/wallet-actions.ts +251 -0
  160. package/src/resources/wallets/index.ts +144 -16
  161. package/src/resources/wallets/transactions.ts +2 -0
  162. package/src/resources/wallets/wallets.ts +2893 -1023
  163. package/src/resources/webhooks.ts +547 -47
  164. package/src/resources/yield.ts +29 -0
  165. package/src/version.ts +1 -1
  166. package/version.d.mts +1 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/version.mjs +1 -1
@@ -9,44 +9,172 @@ export {
9
9
  type ExtendedChainType,
10
10
  type FirstClassChainType,
11
11
  type WalletChainType,
12
+ type AuthorizationKeyRole,
13
+ type WalletEntropyType,
14
+ type SolanaWalletDerivationStrategy,
15
+ type PolicyInput,
16
+ type AdditionalSignerItemInput,
17
+ type AdditionalSignerInput,
18
+ type WalletAdditionalSignerItem,
19
+ type WalletAdditionalSigner,
20
+ type Address,
12
21
  type WalletCustodian,
13
22
  type CustodialWalletProvider,
14
23
  type CustodialWalletChainType,
15
24
  type CustodialWalletCreateInput,
16
25
  type CustodialWallet,
26
+ type HpkeEncryption,
27
+ type RecipientPublicKey,
28
+ type ExportType,
29
+ type PrivateKeyExportInput,
30
+ type PrivateKeyExportResponse,
31
+ type SeedPhraseExportInput,
32
+ type SeedPhraseExportResponse,
33
+ type WalletImportSupportedChains,
34
+ type WalletImportSupportedEntropyTypes,
35
+ type WalletImportInitResponse,
36
+ type HpkeAeadAlgorithm,
17
37
  type HpkeImportConfig,
18
- type SuiCommandName,
19
- type Wallet,
20
- type WalletUpdateRequestBody,
21
- type WalletBatchItemInput,
22
- type WalletBatchCreateInput,
23
- type WalletBatchCreateResult,
24
- type WalletBatchCreateResponse,
38
+ type CurveType,
39
+ type HDPath,
40
+ type SigningAlgorithm,
41
+ type Hex,
42
+ type Quantity,
43
+ type ExportPrivateKeyRpcInput,
44
+ type ExportPrivateKeyRpcResponse,
45
+ type ExportSeedPhraseRpcInput,
46
+ type ExportSeedPhraseRpcResponse,
47
+ type RawSignHashParams,
48
+ type RawSignBytesEncoding,
49
+ type RawSignBytesHashFunction,
50
+ type RawSignBytesParams,
51
+ type RawSignInputParams,
52
+ type RawSignInput,
53
+ type RawSignResponseData,
54
+ type RawSignResponse,
55
+ type EthereumSign7702Authorization,
56
+ type UnsignedEthereumTransaction,
57
+ type UserOperationInput,
58
+ type TypedDataDomainInputParams,
59
+ type TypedDataTypeFieldInput,
60
+ type TypedDataTypesInputParams,
61
+ type EthereumPersonalSignRpcInputParams,
25
62
  type EthereumPersonalSignRpcInput,
63
+ type EthereumSignTransactionRpcInputParams,
26
64
  type EthereumSignTransactionRpcInput,
65
+ type EthereumSendTransactionRpcInputParams,
27
66
  type EthereumSendTransactionRpcInput,
67
+ type EthereumTypedDataInput,
68
+ type EthereumSignTypedDataRpcInputParams,
28
69
  type EthereumSignTypedDataRpcInput,
29
- type EthereumSignUserOperationRpcInput,
30
- type EthereumSign7702AuthorizationRpcInput,
70
+ type EthereumSecp256k1SignRpcInputParams,
31
71
  type EthereumSecp256k1SignRpcInput,
32
- type SolanaSignTransactionRpcInput,
33
- type SolanaSignAndSendTransactionRpcInput,
34
- type SolanaSignMessageRpcInput,
72
+ type EthereumSign7702AuthorizationRpcInputParams,
73
+ type EthereumSign7702AuthorizationRpcInput,
74
+ type EthereumSignUserOperationRpcInputParams,
75
+ type EthereumSignUserOperationRpcInput,
76
+ type EthereumSendCallsCall,
77
+ type EthereumSendCallsRpcInputParams,
78
+ type EthereumSendCallsRpcInput,
79
+ type EthereumRpcInput,
80
+ type EthereumPersonalSignRpcResponseData,
81
+ type EthereumPersonalSignRpcResponse,
82
+ type EthereumSignTransactionRpcResponseData,
35
83
  type EthereumSignTransactionRpcResponse,
84
+ type EthereumSendTransactionRpcResponseData,
36
85
  type EthereumSendTransactionRpcResponse,
37
- type EthereumPersonalSignRpcResponse,
86
+ type EthereumSignTypedDataRpcResponseData,
38
87
  type EthereumSignTypedDataRpcResponse,
39
- type EthereumSignUserOperationRpcResponse,
40
- type EthereumSign7702AuthorizationRpcResponse,
88
+ type EthereumSecp256k1SignRpcResponseData,
41
89
  type EthereumSecp256k1SignRpcResponse,
90
+ type EthereumSign7702AuthorizationRpcResponseData,
91
+ type EthereumSign7702AuthorizationRpcResponse,
92
+ type EthereumSignUserOperationRpcResponseData,
93
+ type EthereumSignUserOperationRpcResponse,
94
+ type EthereumSendCallsRpcResponseData,
95
+ type EthereumSendCallsRpcResponse,
96
+ type EthereumRpcResponse,
97
+ type SolanaSignTransactionRpcInputParams,
98
+ type SolanaSignTransactionRpcInput,
99
+ type SolanaSignAndSendTransactionRpcInputParams,
100
+ type SolanaSignAndSendTransactionRpcInput,
101
+ type SolanaSignMessageRpcInputParams,
102
+ type SolanaSignMessageRpcInput,
103
+ type SolanaRpcInput,
104
+ type SolanaSignTransactionRpcResponseData,
42
105
  type SolanaSignTransactionRpcResponse,
106
+ type SolanaSignAndSendTransactionRpcResponseData,
43
107
  type SolanaSignAndSendTransactionRpcResponse,
108
+ type SolanaSignMessageRpcResponseData,
44
109
  type SolanaSignMessageRpcResponse,
110
+ type SolanaRpcResponse,
111
+ type SparkNetwork,
112
+ type SparkSigningKeyshare,
113
+ type SparkWalletLeaf,
114
+ type SparkTransferLeaf,
115
+ type SparkTransfer,
116
+ type SparkUserTokenMetadata,
117
+ type SparkTokenBalance,
118
+ type SparkBalance,
119
+ type TokenOutput,
120
+ type OutputWithPreviousTransactionData,
121
+ type SparkLightningFee,
122
+ type SparkLightningReceiveRequest,
123
+ type SparkLightningSendRequest,
124
+ type SparkTransferRpcInputParams,
125
+ type SparkTransferRpcInput,
126
+ type SparkGetBalanceRpcInput,
127
+ type SparkOutputSelectionStrategy,
128
+ type SparkTransferTokensRpcInputParams,
129
+ type SparkTransferTokensRpcInput,
130
+ type SparkGetStaticDepositAddressRpcInput,
131
+ type SparkGetClaimStaticDepositQuoteRpcInputParams,
132
+ type SparkGetClaimStaticDepositQuoteRpcInput,
133
+ type SparkClaimStaticDepositRpcInputParams,
134
+ type SparkClaimStaticDepositRpcInput,
135
+ type SparkCreateLightningInvoiceRpcInputParams,
136
+ type SparkCreateLightningInvoiceRpcInput,
137
+ type SparkPayLightningInvoiceRpcInputParams,
138
+ type SparkPayLightningInvoiceRpcInput,
139
+ type SparkSignMessageWithIdentityKeyRpcInputParams,
140
+ type SparkSignMessageWithIdentityKeyRpcInput,
141
+ type SparkRpcInput,
142
+ type SparkTransferRpcResponse,
143
+ type SparkGetBalanceRpcResponse,
144
+ type SparkTransferTokensRpcResponseData,
145
+ type SparkTransferTokensRpcResponse,
146
+ type SparkGetStaticDepositAddressRpcResponseData,
147
+ type SparkGetStaticDepositAddressRpcResponse,
148
+ type SparkGetClaimStaticDepositQuoteRpcResponseData,
149
+ type SparkGetClaimStaticDepositQuoteRpcResponse,
150
+ type SparkClaimStaticDepositRpcResponseData,
151
+ type SparkClaimStaticDepositRpcResponse,
152
+ type SparkCreateLightningInvoiceRpcResponse,
153
+ type SparkPayLightningInvoiceRpcResponse,
154
+ type SparkSignMessageWithIdentityKeyRpcResponseData,
155
+ type SparkSignMessageWithIdentityKeyRpcResponse,
156
+ type SparkRpcResponse,
157
+ type Wallet,
158
+ type GetByWalletAddressRequestBody,
159
+ type WalletUpdateRequestBody,
160
+ type WalletBatchItemInput,
161
+ type WalletBatchCreateInput,
162
+ type WalletBatchCreateResult,
163
+ type WalletBatchCreateResponse,
45
164
  type WalletRpcRequestBody,
46
165
  type WalletRpcResponse,
166
+ type WalletAuthenticateRequestBody,
167
+ type TokenTransferSource,
168
+ type TokenTransferDestination,
169
+ type CreateTokenTransferRequest,
170
+ type SuiCommandName,
171
+ type WalletAPIRegisterAuthorizationKeyInput,
172
+ type WalletAPIRevokeAuthorizationKeyInput,
173
+ type AuthorizationKeyDashboardResponse,
174
+ type AuthorizationKeyResponse,
175
+ type WalletAuthorizationHeaders,
47
176
  type WalletExportResponse,
48
177
  type WalletInitImportResponse,
49
- type WalletRawSignResponse,
50
178
  type WalletAuthenticateWithJwtResponse,
51
179
  type WalletCreateWalletsWithRecoveryResponse,
52
180
  type WalletCreateParams,
@@ -60,6 +60,8 @@ export namespace TransactionGetResponse {
60
60
  wallet_id: string;
61
61
 
62
62
  sponsored?: boolean;
63
+
64
+ user_operation_hash?: string;
63
65
  }
64
66
 
65
67
  export namespace Transaction {