@privy-io/api-types 0.9.0 → 0.11.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 (180) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/client.d.mts +40 -43
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +40 -43
  5. package/client.d.ts.map +1 -1
  6. package/client.js +28 -20
  7. package/client.js.map +1 -1
  8. package/client.mjs +29 -21
  9. package/client.mjs.map +1 -1
  10. package/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/accounts.d.mts +128 -86
  16. package/resources/accounts.d.mts.map +1 -1
  17. package/resources/accounts.d.ts +128 -86
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/aggregations.d.mts +43 -43
  20. package/resources/aggregations.d.mts.map +1 -1
  21. package/resources/aggregations.d.ts +43 -43
  22. package/resources/aggregations.d.ts.map +1 -1
  23. package/resources/apps.d.mts +169 -135
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +169 -135
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/client-auth.d.mts +931 -947
  28. package/resources/client-auth.d.mts.map +1 -1
  29. package/resources/client-auth.d.ts +931 -947
  30. package/resources/client-auth.d.ts.map +1 -1
  31. package/resources/client-auth.js.map +1 -1
  32. package/resources/client-auth.mjs.map +1 -1
  33. package/resources/embedded-wallets.d.mts +122 -122
  34. package/resources/embedded-wallets.d.mts.map +1 -1
  35. package/resources/embedded-wallets.d.ts +122 -122
  36. package/resources/embedded-wallets.d.ts.map +1 -1
  37. package/resources/fiat.d.mts +110 -0
  38. package/resources/fiat.d.mts.map +1 -0
  39. package/resources/fiat.d.ts +110 -0
  40. package/resources/fiat.d.ts.map +1 -0
  41. package/resources/fiat.js +9 -0
  42. package/resources/fiat.js.map +1 -0
  43. package/resources/fiat.mjs +5 -0
  44. package/resources/fiat.mjs.map +1 -0
  45. package/resources/funding.d.mts +86 -86
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +86 -86
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/index.d.mts +20 -18
  50. package/resources/index.d.mts.map +1 -1
  51. package/resources/index.d.ts +20 -18
  52. package/resources/index.d.ts.map +1 -1
  53. package/resources/index.js +5 -1
  54. package/resources/index.js.map +1 -1
  55. package/resources/index.mjs +3 -1
  56. package/resources/index.mjs.map +1 -1
  57. package/resources/intents.d.mts +269 -265
  58. package/resources/intents.d.mts.map +1 -1
  59. package/resources/intents.d.ts +269 -265
  60. package/resources/intents.d.ts.map +1 -1
  61. package/resources/key-quorums.d.mts +15 -146
  62. package/resources/key-quorums.d.mts.map +1 -1
  63. package/resources/key-quorums.d.ts +15 -146
  64. package/resources/key-quorums.d.ts.map +1 -1
  65. package/resources/key-quorums.js +0 -92
  66. package/resources/key-quorums.js.map +1 -1
  67. package/resources/key-quorums.mjs +0 -92
  68. package/resources/key-quorums.mjs.map +1 -1
  69. package/resources/kraken-embed.d.mts +12 -20
  70. package/resources/kraken-embed.d.mts.map +1 -1
  71. package/resources/kraken-embed.d.ts +12 -20
  72. package/resources/kraken-embed.d.ts.map +1 -1
  73. package/resources/organizations.d.mts +65 -0
  74. package/resources/organizations.d.mts.map +1 -0
  75. package/resources/organizations.d.ts +65 -0
  76. package/resources/organizations.d.ts.map +1 -0
  77. package/resources/organizations.js +9 -0
  78. package/resources/organizations.js.map +1 -0
  79. package/resources/organizations.mjs +5 -0
  80. package/resources/organizations.mjs.map +1 -0
  81. package/resources/policies.d.mts +261 -553
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +261 -553
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +0 -229
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +0 -229
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +28 -28
  90. package/resources/shared.d.mts.map +1 -1
  91. package/resources/shared.d.ts +28 -28
  92. package/resources/shared.d.ts.map +1 -1
  93. package/resources/swaps.d.mts +6 -9
  94. package/resources/swaps.d.mts.map +1 -1
  95. package/resources/swaps.d.ts +6 -9
  96. package/resources/swaps.d.ts.map +1 -1
  97. package/resources/swaps.js.map +1 -1
  98. package/resources/swaps.mjs.map +1 -1
  99. package/resources/transactions.d.mts +80 -96
  100. package/resources/transactions.d.mts.map +1 -1
  101. package/resources/transactions.d.ts +80 -96
  102. package/resources/transactions.d.ts.map +1 -1
  103. package/resources/transactions.js +0 -17
  104. package/resources/transactions.js.map +1 -1
  105. package/resources/transactions.mjs +0 -17
  106. package/resources/transactions.mjs.map +1 -1
  107. package/resources/users.d.mts +480 -815
  108. package/resources/users.d.mts.map +1 -1
  109. package/resources/users.d.ts +480 -815
  110. package/resources/users.d.ts.map +1 -1
  111. package/resources/users.js +0 -272
  112. package/resources/users.js.map +1 -1
  113. package/resources/users.mjs +0 -272
  114. package/resources/users.mjs.map +1 -1
  115. package/resources/wallet-actions.d.mts +302 -145
  116. package/resources/wallet-actions.d.mts.map +1 -1
  117. package/resources/wallet-actions.d.ts +302 -145
  118. package/resources/wallet-actions.d.ts.map +1 -1
  119. package/resources/wallets/index.d.mts +1 -1
  120. package/resources/wallets/index.d.mts.map +1 -1
  121. package/resources/wallets/index.d.ts +1 -1
  122. package/resources/wallets/index.d.ts.map +1 -1
  123. package/resources/wallets/index.js.map +1 -1
  124. package/resources/wallets/index.mjs.map +1 -1
  125. package/resources/wallets/transactions.d.mts +7 -2
  126. package/resources/wallets/transactions.d.mts.map +1 -1
  127. package/resources/wallets/transactions.d.ts +7 -2
  128. package/resources/wallets/transactions.d.ts.map +1 -1
  129. package/resources/wallets/transactions.js +1 -1
  130. package/resources/wallets/transactions.mjs +1 -1
  131. package/resources/wallets/wallets.d.mts +1592 -1580
  132. package/resources/wallets/wallets.d.mts.map +1 -1
  133. package/resources/wallets/wallets.d.ts +1592 -1580
  134. package/resources/wallets/wallets.d.ts.map +1 -1
  135. package/resources/wallets/wallets.js +45 -103
  136. package/resources/wallets/wallets.js.map +1 -1
  137. package/resources/wallets/wallets.mjs +45 -103
  138. package/resources/wallets/wallets.mjs.map +1 -1
  139. package/resources/webhooks.d.mts +935 -877
  140. package/resources/webhooks.d.mts.map +1 -1
  141. package/resources/webhooks.d.ts +935 -877
  142. package/resources/webhooks.d.ts.map +1 -1
  143. package/resources/yield.d.mts +157 -157
  144. package/resources/yield.d.mts.map +1 -1
  145. package/resources/yield.d.ts +157 -157
  146. package/resources/yield.d.ts.map +1 -1
  147. package/src/client.ts +650 -618
  148. package/src/internal/types.ts +6 -8
  149. package/src/resources/accounts.ts +157 -103
  150. package/src/resources/aggregations.ts +55 -55
  151. package/src/resources/apps.ts +221 -178
  152. package/src/resources/client-auth.ts +1271 -1315
  153. package/src/resources/embedded-wallets.ts +160 -160
  154. package/src/resources/fiat.ts +177 -0
  155. package/src/resources/funding.ts +130 -130
  156. package/src/resources/index.ts +551 -542
  157. package/src/resources/intents.ts +326 -322
  158. package/src/resources/key-quorums.ts +16 -218
  159. package/src/resources/kraken-embed.ts +14 -22
  160. package/src/resources/organizations.ts +82 -0
  161. package/src/resources/policies.ts +383 -848
  162. package/src/resources/shared.ts +34 -34
  163. package/src/resources/swaps.ts +5 -10
  164. package/src/resources/transactions.ts +116 -136
  165. package/src/resources/users.ts +693 -1160
  166. package/src/resources/wallet-actions.ts +392 -185
  167. package/src/resources/wallets/index.ts +160 -156
  168. package/src/resources/wallets/transactions.ts +18 -3
  169. package/src/resources/wallets/wallets.ts +2123 -2113
  170. package/src/resources/webhooks.ts +1172 -1100
  171. package/src/resources/yield.ts +188 -188
  172. package/src/version.ts +1 -1
  173. package/version.d.mts +1 -1
  174. package/version.d.mts.map +1 -1
  175. package/version.d.ts +1 -1
  176. package/version.d.ts.map +1 -1
  177. package/version.js +1 -1
  178. package/version.js.map +1 -1
  179. package/version.mjs +1 -1
  180. package/version.mjs.map +1 -1
@@ -2,25 +2,32 @@ import { APIResource } from "../core/resource.js";
2
2
  export declare class Shared extends APIResource {
3
3
  }
4
4
  /**
5
- * A simple success response.
5
+ * A monetary value with its currency denomination.
6
6
  */
7
- export interface SuccessResponse {
8
- success: boolean;
7
+ export interface CurrencyAmount {
8
+ /**
9
+ * Currency code
10
+ */
11
+ currency: 'usd';
12
+ /**
13
+ * The monetary value as a string.
14
+ */
15
+ value: string;
9
16
  }
10
- /**
11
- * A P-256 (secp256r1) public key.
12
- */
13
- export type P256PublicKey = string;
14
17
  /**
15
18
  * A unique identifier for a key quorum.
16
19
  */
17
20
  export type KeyQuorumID = string;
18
21
  /**
19
- * Owner input specifying a Privy user ID.
22
+ * The key quorum ID to set as the owner of the resource. If you provide this, do
23
+ * not specify an owner.
20
24
  */
21
- export interface OwnerInputUser {
22
- user_id: string;
23
- }
25
+ export type OwnerIDInput = string | null;
26
+ /**
27
+ * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
28
+ * null to remove the current owner.
29
+ */
30
+ export type OwnerInput = OwnerInputUser | OwnerInputPublicKey;
24
31
  /**
25
32
  * Owner input specifying a P-256 public key.
26
33
  */
@@ -31,29 +38,22 @@ export interface OwnerInputPublicKey {
31
38
  public_key: P256PublicKey;
32
39
  }
33
40
  /**
34
- * The owner of the resource, specified as a Privy user ID, a P-256 public key, or
35
- * null to remove the current owner.
41
+ * Owner input specifying a Privy user ID.
36
42
  */
37
- export type OwnerInput = OwnerInputUser | OwnerInputPublicKey;
43
+ export interface OwnerInputUser {
44
+ user_id: string;
45
+ }
38
46
  /**
39
- * The key quorum ID to set as the owner of the resource. If you provide this, do
40
- * not specify an owner.
47
+ * A P-256 (secp256r1) public key.
41
48
  */
42
- export type OwnerIDInput = string | null;
49
+ export type P256PublicKey = string;
43
50
  /**
44
- * A monetary value with its currency denomination.
51
+ * A simple success response.
45
52
  */
46
- export interface CurrencyAmount {
47
- /**
48
- * Currency code
49
- */
50
- currency: 'usd';
51
- /**
52
- * The monetary value as a string.
53
- */
54
- value: string;
53
+ export interface SuccessResponse {
54
+ success: boolean;
55
55
  }
56
56
  export declare namespace Shared {
57
- export { type SuccessResponse as SuccessResponse, type P256PublicKey as P256PublicKey, type KeyQuorumID as KeyQuorumID, type OwnerInputUser as OwnerInputUser, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInput as OwnerInput, type OwnerIDInput as OwnerIDInput, type CurrencyAmount as CurrencyAmount, };
57
+ export { type CurrencyAmount as CurrencyAmount, type KeyQuorumID as KeyQuorumID, type OwnerIDInput as OwnerIDInput, type OwnerInput as OwnerInput, type OwnerInputPublicKey as OwnerInputPublicKey, type OwnerInputUser as OwnerInputUser, type P256PublicKey as P256PublicKey, type SuccessResponse as SuccessResponse, };
58
58
  }
59
59
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,MAAO,SAAQ,WAAW;CAAG;AAE1C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,mBAAmB,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,C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,EAC/B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -1,10 +1,7 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
+ import * as WalletsAPI from "./wallets/wallets.mjs";
2
3
  export declare class Swaps extends APIResource {
3
4
  }
4
- /**
5
- * Whether the swap amount refers to the input token or output token.
6
- */
7
- export type SwapAmountType = 'exact_input' | 'exact_output';
8
5
  /**
9
6
  * Input for requesting a token swap quote.
10
7
  */
@@ -26,9 +23,9 @@ export interface SwapQuoteRequestBody {
26
23
  */
27
24
  output_token: string;
28
25
  /**
29
- * Whether the swap amount refers to the input token or output token.
26
+ * Whether the amount refers to the input token or output token.
30
27
  */
31
- amount_type?: SwapAmountType;
28
+ amount_type?: WalletsAPI.AmountType;
32
29
  /**
33
30
  * Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
34
31
  * auto-slippage is used.
@@ -89,9 +86,9 @@ export interface SwapRequestBody {
89
86
  */
90
87
  output_token: string;
91
88
  /**
92
- * Whether the swap amount refers to the input token or output token.
89
+ * Whether the amount refers to the input token or output token.
93
90
  */
94
- amount_type?: SwapAmountType;
91
+ amount_type?: WalletsAPI.AmountType;
95
92
  /**
96
93
  * Address to receive the output tokens. Defaults to the wallet address if not
97
94
  * specified.
@@ -103,6 +100,6 @@ export interface SwapRequestBody {
103
100
  slippage_bps?: number;
104
101
  }
105
102
  export declare namespace Swaps {
106
- export { type SwapAmountType as SwapAmountType, type SwapQuoteRequestBody as SwapQuoteRequestBody, type SwapQuoteResponse as SwapQuoteResponse, type SwapRequestBody as SwapRequestBody, };
103
+ export { type SwapQuoteRequestBody as SwapQuoteRequestBody, type SwapQuoteResponse as SwapQuoteResponse, type SwapRequestBody as SwapRequestBody, };
107
104
  }
108
105
  //# sourceMappingURL=swaps.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swaps.d.mts","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,cAAc,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAE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MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IAEpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -1,10 +1,7 @@
1
1
  import { APIResource } from "../core/resource.js";
2
+ import * as WalletsAPI from "./wallets/wallets.js";
2
3
  export declare class Swaps extends APIResource {
3
4
  }
4
- /**
5
- * Whether the swap amount refers to the input token or output token.
6
- */
7
- export type SwapAmountType = 'exact_input' | 'exact_output';
8
5
  /**
9
6
  * Input for requesting a token swap quote.
10
7
  */
@@ -26,9 +23,9 @@ export interface SwapQuoteRequestBody {
26
23
  */
27
24
  output_token: string;
28
25
  /**
29
- * Whether the swap amount refers to the input token or output token.
26
+ * Whether the amount refers to the input token or output token.
30
27
  */
31
- amount_type?: SwapAmountType;
28
+ amount_type?: WalletsAPI.AmountType;
32
29
  /**
33
30
  * Maximum slippage tolerance in basis points (e.g., 50 for 0.5%). If omitted,
34
31
  * auto-slippage is used.
@@ -89,9 +86,9 @@ export interface SwapRequestBody {
89
86
  */
90
87
  output_token: string;
91
88
  /**
92
- * Whether the swap amount refers to the input token or output token.
89
+ * Whether the amount refers to the input token or output token.
93
90
  */
94
- amount_type?: SwapAmountType;
91
+ amount_type?: WalletsAPI.AmountType;
95
92
  /**
96
93
  * Address to receive the output tokens. Defaults to the wallet address if not
97
94
  * specified.
@@ -103,6 +100,6 @@ export interface SwapRequestBody {
103
100
  slippage_bps?: number;
104
101
  }
105
102
  export declare namespace Swaps {
106
- export { type SwapAmountType as SwapAmountType, type SwapQuoteRequestBody as SwapQuoteRequestBody, type SwapQuoteResponse as SwapQuoteResponse, type SwapRequestBody as SwapRequestBody, };
103
+ export { type SwapQuoteRequestBody as SwapQuoteRequestBody, type SwapQuoteResponse as SwapQuoteResponse, type SwapRequestBody as SwapRequestBody, };
107
104
  }
108
105
  //# sourceMappingURL=swaps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"swaps.d.ts","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG;AAEzC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,GAAG,cAAc,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;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YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IAEpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"swaps.js","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
1
+ {"version":3,"file":"swaps.js","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
@@ -1 +1 @@
1
- {"version":3,"file":"swaps.mjs","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
1
+ {"version":3,"file":"swaps.mjs","sourceRoot":"","sources":["../src/resources/swaps.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
@@ -1,80 +1,37 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- /**
5
- * Operations related to transactions
6
- */
7
2
  export declare class Transactions extends APIResource {
8
- /**
9
- * Get a transaction by transaction ID.
10
- *
11
- * @example
12
- * ```ts
13
- * const transaction = await client.transactions.get(
14
- * 'transaction_id',
15
- * );
16
- * ```
17
- */
18
- get(transactionID: string, options?: RequestOptions): APIPromise<Transaction>;
19
3
  }
20
4
  /**
21
- * The request body for scanning a transaction.
22
- */
23
- export interface TransactionScanningRequestBody {
24
- chain_id: string;
25
- /**
26
- * Additional information for Blockaid to validate against.
27
- */
28
- metadata: TransactionScanningMetadata;
29
- /**
30
- * Raw RPC request to execute with the wallet.
31
- */
32
- request: TransactionScanningRpcRequest;
33
- }
34
- /**
35
- * The response from scanning a transaction.
36
- */
37
- export interface TransactionScanningResponseBody {
38
- /**
39
- * The simulation result from a transaction scan.
40
- */
41
- simulation: TransactionScanningSimulationResult;
42
- /**
43
- * The validation result from a transaction scan.
44
- */
45
- validation: TransactionScanningValidationResult;
46
- }
47
- /**
48
- * Additional information for Blockaid to validate against.
49
- */
50
- export interface TransactionScanningMetadata {
51
- domain: string;
52
- }
53
- /**
54
- * Raw RPC request to execute with the wallet.
5
+ * A transaction from a Privy wallet.
55
6
  */
56
- export interface TransactionScanningRpcRequest {
57
- method: string;
58
- params: Array<unknown>;
7
+ export interface Transaction {
8
+ id: string;
9
+ caip2: string;
10
+ created_at: number;
11
+ status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending';
12
+ transaction_hash: string | null;
13
+ wallet_id: string;
14
+ reference_id?: string | null;
15
+ sponsored?: boolean;
16
+ user_operation_hash?: string;
59
17
  }
60
18
  /**
61
- * A failed validation result from a transaction scan.
19
+ * A list of transactions.
62
20
  */
63
- export interface TransactionScanningValidationErrorResult {
64
- error: string;
65
- status: 'Error';
21
+ export interface TransactionList {
22
+ transactions: Array<Transaction>;
66
23
  }
67
24
  /**
68
- * A successful validation result from a transaction scan.
25
+ * An asset diff representing assets entering/leaving a wallet.
69
26
  */
70
- export interface TransactionScanningValidationSuccessResult {
71
- result_type: string;
72
- status: 'Success';
27
+ export interface TransactionScanningAssetDiff {
28
+ /**
29
+ * Information about the moving asset in a transaction scan.
30
+ */
31
+ asset: TransactionScanningAssetInfo;
32
+ in: Array<TransactionScanningAssetValue>;
33
+ out: Array<TransactionScanningAssetValue>;
73
34
  }
74
- /**
75
- * The validation result from a transaction scan.
76
- */
77
- export type TransactionScanningValidationResult = TransactionScanningValidationErrorResult | TransactionScanningValidationSuccessResult;
78
35
  /**
79
36
  * Information about the moving asset in a transaction scan.
80
37
  */
@@ -93,15 +50,12 @@ export interface TransactionScanningAssetValue {
93
50
  value?: string;
94
51
  }
95
52
  /**
96
- * An asset diff representing assets entering/leaving a wallet.
53
+ * Decoded calldata from a scanned transaction.
97
54
  */
98
- export interface TransactionScanningAssetDiff {
99
- /**
100
- * Information about the moving asset in a transaction scan.
101
- */
102
- asset: TransactionScanningAssetInfo;
103
- in: Array<TransactionScanningAssetValue>;
104
- out: Array<TransactionScanningAssetValue>;
55
+ export interface TransactionScanningCalldata {
56
+ function_selector: string;
57
+ function_declaration?: string;
58
+ function_signature?: string;
105
59
  }
106
60
  /**
107
61
  * An exposure representing assets approved to spend.
@@ -116,12 +70,10 @@ export interface TransactionScanningExposure {
116
70
  };
117
71
  }
118
72
  /**
119
- * Decoded calldata from a scanned transaction.
73
+ * Additional information for Blockaid to validate against.
120
74
  */
121
- export interface TransactionScanningCalldata {
122
- function_selector: string;
123
- function_declaration?: string;
124
- function_signature?: string;
75
+ export interface TransactionScanningMetadata {
76
+ domain: string;
125
77
  }
126
78
  /**
127
79
  * The parameters of the scanned transaction.
@@ -140,6 +92,40 @@ export interface TransactionScanningParams {
140
92
  to?: string;
141
93
  value?: string;
142
94
  }
95
+ /**
96
+ * The request body for scanning a transaction.
97
+ */
98
+ export interface TransactionScanningRequestBody {
99
+ chain_id: string;
100
+ /**
101
+ * Additional information for Blockaid to validate against.
102
+ */
103
+ metadata: TransactionScanningMetadata;
104
+ /**
105
+ * Raw RPC request to execute with the wallet.
106
+ */
107
+ request: TransactionScanningRpcRequest;
108
+ }
109
+ /**
110
+ * The response from scanning a transaction.
111
+ */
112
+ export interface TransactionScanningResponseBody {
113
+ /**
114
+ * The simulation result from a transaction scan.
115
+ */
116
+ simulation: TransactionScanningSimulationResult;
117
+ /**
118
+ * The validation result from a transaction scan.
119
+ */
120
+ validation: TransactionScanningValidationResult;
121
+ }
122
+ /**
123
+ * Raw RPC request to execute with the wallet.
124
+ */
125
+ export interface TransactionScanningRpcRequest {
126
+ method: string;
127
+ params: Array<unknown>;
128
+ }
143
129
  /**
144
130
  * A failed simulation result from a transaction scan.
145
131
  */
@@ -147,6 +133,10 @@ export interface TransactionScanningSimulationErrorResult {
147
133
  error: string;
148
134
  status: 'Error';
149
135
  }
136
+ /**
137
+ * The simulation result from a transaction scan.
138
+ */
139
+ export type TransactionScanningSimulationResult = TransactionScanningSimulationErrorResult | TransactionScanningSimulationSuccessResult;
150
140
  /**
151
141
  * A successful simulation result from a transaction scan.
152
142
  */
@@ -160,30 +150,24 @@ export interface TransactionScanningSimulationSuccessResult {
160
150
  params?: TransactionScanningParams;
161
151
  }
162
152
  /**
163
- * The simulation result from a transaction scan.
153
+ * A failed validation result from a transaction scan.
164
154
  */
165
- export type TransactionScanningSimulationResult = TransactionScanningSimulationErrorResult | TransactionScanningSimulationSuccessResult;
155
+ export interface TransactionScanningValidationErrorResult {
156
+ error: string;
157
+ status: 'Error';
158
+ }
166
159
  /**
167
- * A transaction from a Privy wallet.
160
+ * The validation result from a transaction scan.
168
161
  */
169
- export interface Transaction {
170
- id: string;
171
- caip2: string;
172
- created_at: number;
173
- status: 'broadcasted' | 'confirmed' | 'execution_reverted' | 'failed' | 'replaced' | 'finalized' | 'provider_error' | 'pending';
174
- transaction_hash: string | null;
175
- wallet_id: string;
176
- reference_id?: string | null;
177
- sponsored?: boolean;
178
- user_operation_hash?: string;
179
- }
162
+ export type TransactionScanningValidationResult = TransactionScanningValidationErrorResult | TransactionScanningValidationSuccessResult;
180
163
  /**
181
- * A list of transactions.
164
+ * A successful validation result from a transaction scan.
182
165
  */
183
- export interface TransactionList {
184
- transactions: Array<Transaction>;
166
+ export interface TransactionScanningValidationSuccessResult {
167
+ result_type: string;
168
+ status: 'Success';
185
169
  }
186
170
  export declare namespace Transactions {
187
- export { type TransactionScanningRequestBody as TransactionScanningRequestBody, type TransactionScanningResponseBody as TransactionScanningResponseBody, type TransactionScanningMetadata as TransactionScanningMetadata, type TransactionScanningRpcRequest as TransactionScanningRpcRequest, type TransactionScanningValidationErrorResult as TransactionScanningValidationErrorResult, type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult, type TransactionScanningValidationResult as TransactionScanningValidationResult, type TransactionScanningAssetInfo as TransactionScanningAssetInfo, type TransactionScanningAssetValue as TransactionScanningAssetValue, type TransactionScanningAssetDiff as TransactionScanningAssetDiff, type TransactionScanningExposure as TransactionScanningExposure, type TransactionScanningCalldata as TransactionScanningCalldata, type TransactionScanningParams as TransactionScanningParams, type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult, type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult, type TransactionScanningSimulationResult as TransactionScanningSimulationResult, type Transaction as Transaction, type TransactionList as TransactionList, };
171
+ export { type Transaction as Transaction, type TransactionList as TransactionList, type TransactionScanningAssetDiff as TransactionScanningAssetDiff, type TransactionScanningAssetInfo as TransactionScanningAssetInfo, type TransactionScanningAssetValue as TransactionScanningAssetValue, type TransactionScanningCalldata as TransactionScanningCalldata, type TransactionScanningExposure as TransactionScanningExposure, type TransactionScanningMetadata as TransactionScanningMetadata, type TransactionScanningParams as TransactionScanningParams, type TransactionScanningRequestBody as TransactionScanningRequestBody, type TransactionScanningResponseBody as TransactionScanningResponseBody, type TransactionScanningRpcRequest as TransactionScanningRpcRequest, type TransactionScanningSimulationErrorResult as TransactionScanningSimulationErrorResult, type TransactionScanningSimulationResult as TransactionScanningSimulationResult, type TransactionScanningSimulationSuccessResult as TransactionScanningSimulationSuccessResult, type TransactionScanningValidationErrorResult as TransactionScanningValidationErrorResult, type TransactionScanningValidationResult as TransactionScanningValidationResult, type TransactionScanningValidationSuccessResult as TransactionScanningValidationSuccessResult, };
188
172
  }
189
173
  //# sourceMappingURL=transactions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transactions.d.mts","sourceRoot":"","sources":["../src/resources/transactions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC;CAG9E;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,2BAA2B,CAAC;IAEtC;;OAEG;IACH,OAAO,EAAE,6BAA6B,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,UAAU,EAAE,mCAAmC,CAAC;IAEhD;;OAEG;IACH,UAAU,EAAE,mCAAmC,CAAC;CACjD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wCAAwC;IACvD,KAAK,EAAE,MAAM,CA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