@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
@@ -1,65 +1,5 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import * as SharedAPI from "./shared.mjs";
3
- import { APIPromise } from "../core/api-promise.mjs";
4
- import { RequestOptions } from "../internal/request-options.mjs";
5
- /**
6
- * Operations related to key quorums
7
- */
8
2
  export declare class KeyQuorums extends APIResource {
9
- /**
10
- * Create a new key quorum.
11
- *
12
- * @example
13
- * ```ts
14
- * const keyQuorum = await client.keyQuorums.create({
15
- * authorization_threshold: 1,
16
- * display_name: 'Prod key quorum',
17
- * public_keys: [
18
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
19
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
20
- * ],
21
- * });
22
- * ```
23
- */
24
- create(body: KeyQuorumCreateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
25
- /**
26
- * Delete a key quorum by key quorum ID.
27
- *
28
- * @example
29
- * ```ts
30
- * const successResponse = await client.keyQuorums._delete(
31
- * 'string',
32
- * );
33
- * ```
34
- */
35
- _delete(keyQuorumID: SharedAPI.KeyQuorumID, params?: KeyQuorumDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SharedAPI.SuccessResponse>;
36
- /**
37
- * Update a key quorum by key quorum ID.
38
- *
39
- * @example
40
- * ```ts
41
- * const keyQuorum = await client.keyQuorums._update(
42
- * 'string',
43
- * {
44
- * authorization_threshold: 1,
45
- * display_name: 'Prod key quorum',
46
- * public_keys: [
47
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
48
- * ],
49
- * },
50
- * );
51
- * ```
52
- */
53
- _update(keyQuorumID: SharedAPI.KeyQuorumID, params: KeyQuorumUpdateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
54
- /**
55
- * Get a key quorum by ID.
56
- *
57
- * @example
58
- * ```ts
59
- * const keyQuorum = await client.keyQuorums.get('string');
60
- * ```
61
- */
62
- get(keyQuorumID: SharedAPI.KeyQuorumID, options?: RequestOptions): APIPromise<KeyQuorum>;
63
3
  }
64
4
  /**
65
5
  * A key quorum for authorizing wallet operations.
@@ -82,35 +22,28 @@ export declare namespace KeyQuorum {
82
22
  }
83
23
  }
84
24
  /**
85
- * Request input for creating a key quorum.
25
+ * Headers required to authorize modifications to key quorums.
86
26
  */
87
- export interface KeyQuorumCreateRequestBody {
88
- /**
89
- * The number of keys that must sign for an action to be valid. Must be less than
90
- * or equal to total number of key quorum members.
91
- */
92
- authorization_threshold?: number;
93
- display_name?: string;
27
+ export interface KeyQuorumAuthorizationHeaders {
94
28
  /**
95
- * List of key quorum IDs that should be members of this key quorum. Key quorums
96
- * can only be nested 1 level deep.
29
+ * ID of your Privy app.
97
30
  */
98
- key_quorum_ids?: Array<string>;
31
+ 'privy-app-id': string;
99
32
  /**
100
- * List of P-256 public keys of the keys that should be authorized to sign on the
101
- * key quorum, in base64-encoded DER format.
33
+ * Request authorization signature. If multiple signatures are required, they
34
+ * should be comma separated.
102
35
  */
103
- public_keys?: Array<string>;
36
+ 'privy-authorization-signature'?: string;
104
37
  /**
105
- * List of user IDs of the users that should be authorized to sign on the key
106
- * quorum.
38
+ * Request expiry. Value is a Unix timestamp in milliseconds representing the
39
+ * deadline by which the request must be processed.
107
40
  */
108
- user_ids?: Array<string>;
41
+ 'privy-request-expiry'?: string;
109
42
  }
110
43
  /**
111
- * Request input for updating an existing key quorum.
44
+ * Request input for creating a key quorum.
112
45
  */
113
- export interface KeyQuorumUpdateRequestBody {
46
+ export interface KeyQuorumCreateRequestBody {
114
47
  /**
115
48
  * The number of keys that must sign for an action to be valid. Must be less than
116
49
  * or equal to total number of key quorum members.
@@ -134,25 +67,9 @@ export interface KeyQuorumUpdateRequestBody {
134
67
  user_ids?: Array<string>;
135
68
  }
136
69
  /**
137
- * Headers required to authorize modifications to key quorums.
70
+ * Request input for updating an existing key quorum.
138
71
  */
139
- export interface KeyQuorumAuthorizationHeaders {
140
- /**
141
- * ID of your Privy app.
142
- */
143
- 'privy-app-id': string;
144
- /**
145
- * Request authorization signature. If multiple signatures are required, they
146
- * should be comma separated.
147
- */
148
- 'privy-authorization-signature'?: string;
149
- /**
150
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
151
- * deadline by which the request must be processed.
152
- */
153
- 'privy-request-expiry'?: string;
154
- }
155
- export interface KeyQuorumCreateParams {
72
+ export interface KeyQuorumUpdateRequestBody {
156
73
  /**
157
74
  * The number of keys that must sign for an action to be valid. Must be less than
158
75
  * or equal to total number of key quorum members.
@@ -175,55 +92,7 @@ export interface KeyQuorumCreateParams {
175
92
  */
176
93
  user_ids?: Array<string>;
177
94
  }
178
- export interface KeyQuorumDeleteParams {
179
- /**
180
- * Request authorization signature. If multiple signatures are required, they
181
- * should be comma separated.
182
- */
183
- 'privy-authorization-signature'?: string;
184
- /**
185
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
186
- * deadline by which the request must be processed.
187
- */
188
- 'privy-request-expiry'?: string;
189
- }
190
- export interface KeyQuorumUpdateParams {
191
- /**
192
- * Body param: The number of keys that must sign for an action to be valid. Must be
193
- * less than or equal to total number of key quorum members.
194
- */
195
- authorization_threshold?: number;
196
- /**
197
- * Body param
198
- */
199
- display_name?: string;
200
- /**
201
- * Body param: List of key quorum IDs that should be members of this key quorum.
202
- * Key quorums can only be nested 1 level deep.
203
- */
204
- key_quorum_ids?: Array<string>;
205
- /**
206
- * Body param: List of P-256 public keys of the keys that should be authorized to
207
- * sign on the key quorum, in base64-encoded DER format.
208
- */
209
- public_keys?: Array<string>;
210
- /**
211
- * Body param: List of user IDs of the users that should be authorized to sign on
212
- * the key quorum.
213
- */
214
- user_ids?: Array<string>;
215
- /**
216
- * Header param: Request authorization signature. If multiple signatures are
217
- * required, they should be comma separated.
218
- */
219
- 'privy-authorization-signature'?: string;
220
- /**
221
- * Header param: Request expiry. Value is a Unix timestamp in milliseconds
222
- * representing the deadline by which the request must be processed.
223
- */
224
- 'privy-request-expiry'?: string;
225
- }
226
95
  export declare namespace KeyQuorums {
227
- export { type KeyQuorum as KeyQuorum, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateParams as KeyQuorumCreateParams, type KeyQuorumDeleteParams as KeyQuorumDeleteParams, type KeyQuorumUpdateParams as KeyQuorumUpdateParams, };
96
+ export { type KeyQuorum as KeyQuorum, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, };
228
97
  }
229
98
  //# sourceMappingURL=key-quorums.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.d.mts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,MAAM,GAAE,qBAAqB,GA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EvB;;;OAGG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IAEzC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,65 +1,5 @@
1
1
  import { APIResource } from "../core/resource.js";
2
- import * as SharedAPI from "./shared.js";
3
- import { APIPromise } from "../core/api-promise.js";
4
- import { RequestOptions } from "../internal/request-options.js";
5
- /**
6
- * Operations related to key quorums
7
- */
8
2
  export declare class KeyQuorums extends APIResource {
9
- /**
10
- * Create a new key quorum.
11
- *
12
- * @example
13
- * ```ts
14
- * const keyQuorum = await client.keyQuorums.create({
15
- * authorization_threshold: 1,
16
- * display_name: 'Prod key quorum',
17
- * public_keys: [
18
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
19
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
20
- * ],
21
- * });
22
- * ```
23
- */
24
- create(body: KeyQuorumCreateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
25
- /**
26
- * Delete a key quorum by key quorum ID.
27
- *
28
- * @example
29
- * ```ts
30
- * const successResponse = await client.keyQuorums._delete(
31
- * 'string',
32
- * );
33
- * ```
34
- */
35
- _delete(keyQuorumID: SharedAPI.KeyQuorumID, params?: KeyQuorumDeleteParams | null | undefined, options?: RequestOptions): APIPromise<SharedAPI.SuccessResponse>;
36
- /**
37
- * Update a key quorum by key quorum ID.
38
- *
39
- * @example
40
- * ```ts
41
- * const keyQuorum = await client.keyQuorums._update(
42
- * 'string',
43
- * {
44
- * authorization_threshold: 1,
45
- * display_name: 'Prod key quorum',
46
- * public_keys: [
47
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
48
- * ],
49
- * },
50
- * );
51
- * ```
52
- */
53
- _update(keyQuorumID: SharedAPI.KeyQuorumID, params: KeyQuorumUpdateParams, options?: RequestOptions): APIPromise<KeyQuorum>;
54
- /**
55
- * Get a key quorum by ID.
56
- *
57
- * @example
58
- * ```ts
59
- * const keyQuorum = await client.keyQuorums.get('string');
60
- * ```
61
- */
62
- get(keyQuorumID: SharedAPI.KeyQuorumID, options?: RequestOptions): APIPromise<KeyQuorum>;
63
3
  }
64
4
  /**
65
5
  * A key quorum for authorizing wallet operations.
@@ -82,35 +22,28 @@ export declare namespace KeyQuorum {
82
22
  }
83
23
  }
84
24
  /**
85
- * Request input for creating a key quorum.
25
+ * Headers required to authorize modifications to key quorums.
86
26
  */
87
- export interface KeyQuorumCreateRequestBody {
88
- /**
89
- * The number of keys that must sign for an action to be valid. Must be less than
90
- * or equal to total number of key quorum members.
91
- */
92
- authorization_threshold?: number;
93
- display_name?: string;
27
+ export interface KeyQuorumAuthorizationHeaders {
94
28
  /**
95
- * List of key quorum IDs that should be members of this key quorum. Key quorums
96
- * can only be nested 1 level deep.
29
+ * ID of your Privy app.
97
30
  */
98
- key_quorum_ids?: Array<string>;
31
+ 'privy-app-id': string;
99
32
  /**
100
- * List of P-256 public keys of the keys that should be authorized to sign on the
101
- * key quorum, in base64-encoded DER format.
33
+ * Request authorization signature. If multiple signatures are required, they
34
+ * should be comma separated.
102
35
  */
103
- public_keys?: Array<string>;
36
+ 'privy-authorization-signature'?: string;
104
37
  /**
105
- * List of user IDs of the users that should be authorized to sign on the key
106
- * quorum.
38
+ * Request expiry. Value is a Unix timestamp in milliseconds representing the
39
+ * deadline by which the request must be processed.
107
40
  */
108
- user_ids?: Array<string>;
41
+ 'privy-request-expiry'?: string;
109
42
  }
110
43
  /**
111
- * Request input for updating an existing key quorum.
44
+ * Request input for creating a key quorum.
112
45
  */
113
- export interface KeyQuorumUpdateRequestBody {
46
+ export interface KeyQuorumCreateRequestBody {
114
47
  /**
115
48
  * The number of keys that must sign for an action to be valid. Must be less than
116
49
  * or equal to total number of key quorum members.
@@ -134,25 +67,9 @@ export interface KeyQuorumUpdateRequestBody {
134
67
  user_ids?: Array<string>;
135
68
  }
136
69
  /**
137
- * Headers required to authorize modifications to key quorums.
70
+ * Request input for updating an existing key quorum.
138
71
  */
139
- export interface KeyQuorumAuthorizationHeaders {
140
- /**
141
- * ID of your Privy app.
142
- */
143
- 'privy-app-id': string;
144
- /**
145
- * Request authorization signature. If multiple signatures are required, they
146
- * should be comma separated.
147
- */
148
- 'privy-authorization-signature'?: string;
149
- /**
150
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
151
- * deadline by which the request must be processed.
152
- */
153
- 'privy-request-expiry'?: string;
154
- }
155
- export interface KeyQuorumCreateParams {
72
+ export interface KeyQuorumUpdateRequestBody {
156
73
  /**
157
74
  * The number of keys that must sign for an action to be valid. Must be less than
158
75
  * or equal to total number of key quorum members.
@@ -175,55 +92,7 @@ export interface KeyQuorumCreateParams {
175
92
  */
176
93
  user_ids?: Array<string>;
177
94
  }
178
- export interface KeyQuorumDeleteParams {
179
- /**
180
- * Request authorization signature. If multiple signatures are required, they
181
- * should be comma separated.
182
- */
183
- 'privy-authorization-signature'?: string;
184
- /**
185
- * Request expiry. Value is a Unix timestamp in milliseconds representing the
186
- * deadline by which the request must be processed.
187
- */
188
- 'privy-request-expiry'?: string;
189
- }
190
- export interface KeyQuorumUpdateParams {
191
- /**
192
- * Body param: The number of keys that must sign for an action to be valid. Must be
193
- * less than or equal to total number of key quorum members.
194
- */
195
- authorization_threshold?: number;
196
- /**
197
- * Body param
198
- */
199
- display_name?: string;
200
- /**
201
- * Body param: List of key quorum IDs that should be members of this key quorum.
202
- * Key quorums can only be nested 1 level deep.
203
- */
204
- key_quorum_ids?: Array<string>;
205
- /**
206
- * Body param: List of P-256 public keys of the keys that should be authorized to
207
- * sign on the key quorum, in base64-encoded DER format.
208
- */
209
- public_keys?: Array<string>;
210
- /**
211
- * Body param: List of user IDs of the users that should be authorized to sign on
212
- * the key quorum.
213
- */
214
- user_ids?: Array<string>;
215
- /**
216
- * Header param: Request authorization signature. If multiple signatures are
217
- * required, they should be comma separated.
218
- */
219
- 'privy-authorization-signature'?: string;
220
- /**
221
- * Header param: Request expiry. Value is a Unix timestamp in milliseconds
222
- * representing the deadline by which the request must be processed.
223
- */
224
- 'privy-request-expiry'?: string;
225
- }
226
95
  export declare namespace KeyQuorums {
227
- export { type KeyQuorum as KeyQuorum, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateParams as KeyQuorumCreateParams, type KeyQuorumDeleteParams as KeyQuorumDeleteParams, type KeyQuorumUpdateParams as KeyQuorumUpdateParams, };
96
+ export { type KeyQuorum as KeyQuorum, type KeyQuorumAuthorizationHeaders as KeyQuorumAuthorizationHeaders, type KeyQuorumCreateRequestBody as KeyQuorumCreateRequestBody, type KeyQuorumUpdateRequestBody as KeyQuorumUpdateRequestBody, };
228
97
  }
229
98
  //# sourceMappingURL=key-quorums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.d.ts","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIpF;;;;;;;;;OASG;IACH,OAAO,CACL,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC;IAmBxC;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACL,WAAW,EAAE,SAAS,CAAC,WAAW,EAClC,MAAM,EAAE,qBAAqB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC;IAqBxB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EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE/B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -3,99 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.KeyQuorums = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
- const headers_1 = require("../internal/headers.js");
7
- const path_1 = require("../internal/utils/path.js");
8
- /**
9
- * Operations related to key quorums
10
- */
11
6
  class KeyQuorums extends resource_1.APIResource {
12
- /**
13
- * Create a new key quorum.
14
- *
15
- * @example
16
- * ```ts
17
- * const keyQuorum = await client.keyQuorums.create({
18
- * authorization_threshold: 1,
19
- * display_name: 'Prod key quorum',
20
- * public_keys: [
21
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
22
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
23
- * ],
24
- * });
25
- * ```
26
- */
27
- create(body, options) {
28
- return this._client.post('/v1/key_quorums', { body, ...options });
29
- }
30
- /**
31
- * Delete a key quorum by key quorum ID.
32
- *
33
- * @example
34
- * ```ts
35
- * const successResponse = await client.keyQuorums._delete(
36
- * 'string',
37
- * );
38
- * ```
39
- */
40
- _delete(keyQuorumID, params = {}, options) {
41
- const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, } = params ?? {};
42
- return this._client.delete((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, {
43
- ...options,
44
- headers: (0, headers_1.buildHeaders)([
45
- {
46
- ...(privyAuthorizationSignature != null ?
47
- { 'privy-authorization-signature': privyAuthorizationSignature }
48
- : undefined),
49
- ...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
50
- },
51
- options?.headers,
52
- ]),
53
- });
54
- }
55
- /**
56
- * Update a key quorum by key quorum ID.
57
- *
58
- * @example
59
- * ```ts
60
- * const keyQuorum = await client.keyQuorums._update(
61
- * 'string',
62
- * {
63
- * authorization_threshold: 1,
64
- * display_name: 'Prod key quorum',
65
- * public_keys: [
66
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
67
- * ],
68
- * },
69
- * );
70
- * ```
71
- */
72
- _update(keyQuorumID, params, options) {
73
- const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, ...body } = params;
74
- return this._client.patch((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, {
75
- body,
76
- ...options,
77
- headers: (0, headers_1.buildHeaders)([
78
- {
79
- ...(privyAuthorizationSignature != null ?
80
- { 'privy-authorization-signature': privyAuthorizationSignature }
81
- : undefined),
82
- ...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
83
- },
84
- options?.headers,
85
- ]),
86
- });
87
- }
88
- /**
89
- * Get a key quorum by ID.
90
- *
91
- * @example
92
- * ```ts
93
- * const keyQuorum = await client.keyQuorums.get('string');
94
- * ```
95
- */
96
- get(keyQuorumID, options) {
97
- return this._client.get((0, path_1.path) `/v1/key_quorums/${keyQuorumID}`, options);
98
- }
99
7
  }
100
8
  exports.KeyQuorums = KeyQuorums;
101
9
  //# sourceMappingURL=key-quorums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.js","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CACL,WAAkC,EAClC,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EACJ,+BAA+B,EAAE,2BAA2B,EAC5D,sBAAsB,EAAE,kBAAkB,GAC3C,GAAG,MAAM,IAAI,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,mBAAmB,WAAW,EAAE,EAAE;YAC/D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,2BAA2B,IAAI,IAAI,CAAC,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AA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,MAAa,UAAW,SAAQ,sBAAW;CAAG;AAA9C,gCAA8C"}
@@ -1,97 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
- import { buildHeaders } from "../internal/headers.mjs";
4
- import { path } from "../internal/utils/path.mjs";
5
- /**
6
- * Operations related to key quorums
7
- */
8
3
  export class KeyQuorums extends APIResource {
9
- /**
10
- * Create a new key quorum.
11
- *
12
- * @example
13
- * ```ts
14
- * const keyQuorum = await client.keyQuorums.create({
15
- * authorization_threshold: 1,
16
- * display_name: 'Prod key quorum',
17
- * public_keys: [
18
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
19
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAErzZtQr/bMIh3Y8f9ZqseB9i/AfjQ\nhu+agbNqXcJy/TfoNqvc/Y3Mh7gIZ8ZLXQEykycx4mYSpqrxp1lBKqsZDQ==',
20
- * ],
21
- * });
22
- * ```
23
- */
24
- create(body, options) {
25
- return this._client.post('/v1/key_quorums', { body, ...options });
26
- }
27
- /**
28
- * Delete a key quorum by key quorum ID.
29
- *
30
- * @example
31
- * ```ts
32
- * const successResponse = await client.keyQuorums._delete(
33
- * 'string',
34
- * );
35
- * ```
36
- */
37
- _delete(keyQuorumID, params = {}, options) {
38
- const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, } = params ?? {};
39
- return this._client.delete(path `/v1/key_quorums/${keyQuorumID}`, {
40
- ...options,
41
- headers: buildHeaders([
42
- {
43
- ...(privyAuthorizationSignature != null ?
44
- { 'privy-authorization-signature': privyAuthorizationSignature }
45
- : undefined),
46
- ...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
47
- },
48
- options?.headers,
49
- ]),
50
- });
51
- }
52
- /**
53
- * Update a key quorum by key quorum ID.
54
- *
55
- * @example
56
- * ```ts
57
- * const keyQuorum = await client.keyQuorums._update(
58
- * 'string',
59
- * {
60
- * authorization_threshold: 1,
61
- * display_name: 'Prod key quorum',
62
- * public_keys: [
63
- * 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEx4aoeD72yykviK+f/ckqE2CItVIG\n1rCnvC3/XZ1HgpOcMEMialRmTrqIK4oZlYd1RfxU3za/C9yjhboIuoPD3g==',
64
- * ],
65
- * },
66
- * );
67
- * ```
68
- */
69
- _update(keyQuorumID, params, options) {
70
- const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, ...body } = params;
71
- return this._client.patch(path `/v1/key_quorums/${keyQuorumID}`, {
72
- body,
73
- ...options,
74
- headers: buildHeaders([
75
- {
76
- ...(privyAuthorizationSignature != null ?
77
- { 'privy-authorization-signature': privyAuthorizationSignature }
78
- : undefined),
79
- ...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
80
- },
81
- options?.headers,
82
- ]),
83
- });
84
- }
85
- /**
86
- * Get a key quorum by ID.
87
- *
88
- * @example
89
- * ```ts
90
- * const keyQuorum = await client.keyQuorums.get('string');
91
- * ```
92
- */
93
- get(keyQuorumID, options) {
94
- return this._client.get(path `/v1/key_quorums/${keyQuorumID}`, options);
95
- }
96
4
  }
97
5
  //# sourceMappingURL=key-quorums.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"key-quorums.mjs","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MA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