parsec-api 0.9.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 (220) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +0 -117
  3. package/client.d.mts +22 -23
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +22 -23
  6. package/client.d.ts.map +1 -1
  7. package/client.js +24 -35
  8. package/client.js.map +1 -1
  9. package/client.mjs +24 -35
  10. package/client.mjs.map +1 -1
  11. package/core/error.d.mts +0 -12
  12. package/core/error.d.mts.map +1 -1
  13. package/core/error.d.ts +0 -12
  14. package/core/error.d.ts.map +1 -1
  15. package/core/error.js +0 -24
  16. package/core/error.js.map +1 -1
  17. package/core/error.mjs +0 -24
  18. package/core/error.mjs.map +1 -1
  19. package/index.d.mts +1 -1
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -1
  22. package/index.d.ts.map +1 -1
  23. package/index.js.map +1 -1
  24. package/index.mjs.map +1 -1
  25. package/internal/tslib.js +21 -21
  26. package/internal/utils/query.d.mts +2 -0
  27. package/internal/utils/query.d.mts.map +1 -0
  28. package/internal/utils/query.d.ts +2 -0
  29. package/internal/utils/query.d.ts.map +1 -0
  30. package/internal/utils/query.js +10 -0
  31. package/internal/utils/query.js.map +1 -0
  32. package/internal/utils/query.mjs +6 -0
  33. package/internal/utils/query.mjs.map +1 -0
  34. package/internal/utils.d.mts +1 -0
  35. package/internal/utils.d.ts +1 -0
  36. package/internal/utils.js +1 -0
  37. package/internal/utils.js.map +1 -1
  38. package/internal/utils.mjs +1 -0
  39. package/package.json +2 -3
  40. package/resources/account.d.mts +63 -39
  41. package/resources/account.d.mts.map +1 -1
  42. package/resources/account.d.ts +63 -39
  43. package/resources/account.d.ts.map +1 -1
  44. package/resources/account.js +5 -13
  45. package/resources/account.js.map +1 -1
  46. package/resources/account.mjs +5 -13
  47. package/resources/account.mjs.map +1 -1
  48. package/resources/builder/builder.d.mts +40 -0
  49. package/resources/builder/builder.d.mts.map +1 -0
  50. package/resources/builder/builder.d.ts +40 -0
  51. package/resources/builder/builder.d.ts.map +1 -0
  52. package/resources/builder/builder.js +32 -0
  53. package/resources/builder/builder.js.map +1 -0
  54. package/resources/builder/builder.mjs +27 -0
  55. package/resources/builder/builder.mjs.map +1 -0
  56. package/resources/builder/escrow.d.mts +49 -0
  57. package/resources/builder/escrow.d.mts.map +1 -0
  58. package/resources/builder/escrow.d.ts +49 -0
  59. package/resources/builder/escrow.d.ts.map +1 -0
  60. package/resources/builder/escrow.js +17 -0
  61. package/resources/builder/escrow.js.map +1 -0
  62. package/resources/builder/escrow.mjs +13 -0
  63. package/resources/builder/escrow.mjs.map +1 -0
  64. package/resources/builder/index.d.mts +5 -0
  65. package/resources/builder/index.d.mts.map +1 -0
  66. package/resources/builder/index.d.ts +5 -0
  67. package/resources/builder/index.d.ts.map +1 -0
  68. package/resources/builder/index.js +13 -0
  69. package/resources/builder/index.js.map +1 -0
  70. package/resources/builder/index.mjs +6 -0
  71. package/resources/builder/index.mjs.map +1 -0
  72. package/resources/builder/onboard.d.mts +163 -0
  73. package/resources/builder/onboard.d.mts.map +1 -0
  74. package/resources/builder/onboard.d.ts +163 -0
  75. package/resources/builder/onboard.d.ts.map +1 -0
  76. package/resources/builder/onboard.js +16 -0
  77. package/resources/builder/onboard.js.map +1 -0
  78. package/resources/builder/onboard.mjs +12 -0
  79. package/resources/builder/onboard.mjs.map +1 -0
  80. package/resources/builder/users.d.mts +469 -0
  81. package/resources/builder/users.d.mts.map +1 -0
  82. package/resources/builder/users.d.ts +469 -0
  83. package/resources/builder/users.d.ts.map +1 -0
  84. package/resources/builder/users.js +46 -0
  85. package/resources/builder/users.js.map +1 -0
  86. package/resources/builder/users.mjs +42 -0
  87. package/resources/builder/users.mjs.map +1 -0
  88. package/resources/builder.d.mts +2 -0
  89. package/resources/builder.d.mts.map +1 -0
  90. package/resources/builder.d.ts +2 -0
  91. package/resources/builder.d.ts.map +1 -0
  92. package/resources/builder.js +6 -0
  93. package/resources/builder.js.map +1 -0
  94. package/resources/builder.mjs +3 -0
  95. package/resources/builder.mjs.map +1 -0
  96. package/resources/ctf.d.mts +97 -0
  97. package/resources/ctf.d.mts.map +1 -0
  98. package/resources/ctf.d.ts +97 -0
  99. package/resources/ctf.d.ts.map +1 -0
  100. package/resources/ctf.js +59 -0
  101. package/resources/ctf.js.map +1 -0
  102. package/resources/ctf.mjs +55 -0
  103. package/resources/ctf.mjs.map +1 -0
  104. package/resources/events.d.mts +84 -12
  105. package/resources/events.d.mts.map +1 -1
  106. package/resources/events.d.ts +84 -12
  107. package/resources/events.d.ts.map +1 -1
  108. package/resources/events.js +4 -15
  109. package/resources/events.js.map +1 -1
  110. package/resources/events.mjs +4 -15
  111. package/resources/events.mjs.map +1 -1
  112. package/resources/exchanges.d.mts +1 -1
  113. package/resources/exchanges.d.mts.map +1 -1
  114. package/resources/exchanges.d.ts +1 -1
  115. package/resources/exchanges.d.ts.map +1 -1
  116. package/resources/fills.d.mts +76 -0
  117. package/resources/fills.d.mts.map +1 -0
  118. package/resources/fills.d.ts +76 -0
  119. package/resources/fills.d.ts.map +1 -0
  120. package/resources/fills.js +27 -0
  121. package/resources/fills.js.map +1 -0
  122. package/resources/fills.mjs +23 -0
  123. package/resources/fills.mjs.map +1 -0
  124. package/resources/index.d.mts +7 -3
  125. package/resources/index.d.mts.map +1 -1
  126. package/resources/index.d.ts +7 -3
  127. package/resources/index.d.ts.map +1 -1
  128. package/resources/index.js +11 -3
  129. package/resources/index.js.map +1 -1
  130. package/resources/index.mjs +6 -2
  131. package/resources/index.mjs.map +1 -1
  132. package/resources/markets.d.mts +92 -19
  133. package/resources/markets.d.mts.map +1 -1
  134. package/resources/markets.d.ts +92 -19
  135. package/resources/markets.d.ts.map +1 -1
  136. package/resources/markets.js +1 -30
  137. package/resources/markets.js.map +1 -1
  138. package/resources/markets.mjs +1 -29
  139. package/resources/markets.mjs.map +1 -1
  140. package/resources/onboard.d.mts +91 -0
  141. package/resources/onboard.d.mts.map +1 -0
  142. package/resources/onboard.d.ts +91 -0
  143. package/resources/onboard.d.ts.map +1 -0
  144. package/resources/onboard.js +17 -0
  145. package/resources/onboard.js.map +1 -0
  146. package/resources/onboard.mjs +13 -0
  147. package/resources/onboard.mjs.map +1 -0
  148. package/resources/orderbook.d.mts +5 -11
  149. package/resources/orderbook.d.mts.map +1 -1
  150. package/resources/orderbook.d.ts +5 -11
  151. package/resources/orderbook.d.ts.map +1 -1
  152. package/resources/orderbook.js +2 -1
  153. package/resources/orderbook.js.map +1 -1
  154. package/resources/orderbook.mjs +2 -1
  155. package/resources/orderbook.mjs.map +1 -1
  156. package/resources/price.d.mts +1 -0
  157. package/resources/price.d.mts.map +1 -1
  158. package/resources/price.d.ts +1 -0
  159. package/resources/price.d.ts.map +1 -1
  160. package/resources/price.js +1 -0
  161. package/resources/price.js.map +1 -1
  162. package/resources/price.mjs +1 -0
  163. package/resources/price.mjs.map +1 -1
  164. package/resources/trades.d.mts +12 -2
  165. package/resources/trades.d.mts.map +1 -1
  166. package/resources/trades.d.ts +12 -2
  167. package/resources/trades.d.ts.map +1 -1
  168. package/resources/trades.js +2 -1
  169. package/resources/trades.js.map +1 -1
  170. package/resources/trades.mjs +2 -1
  171. package/resources/trades.mjs.map +1 -1
  172. package/resources/wallet.d.mts +177 -0
  173. package/resources/wallet.d.mts.map +1 -0
  174. package/resources/wallet.d.ts +177 -0
  175. package/resources/wallet.d.ts.map +1 -0
  176. package/resources/wallet.js +26 -0
  177. package/resources/wallet.js.map +1 -0
  178. package/resources/wallet.mjs +22 -0
  179. package/resources/wallet.mjs.map +1 -0
  180. package/src/client.ts +55 -59
  181. package/src/core/error.ts +0 -29
  182. package/src/index.ts +3 -4
  183. package/src/internal/utils/query.ts +7 -0
  184. package/src/internal/utils.ts +1 -0
  185. package/src/resources/account.ts +78 -55
  186. package/src/resources/builder/builder.ts +78 -0
  187. package/src/resources/builder/escrow.ts +62 -0
  188. package/src/resources/builder/index.ts +15 -0
  189. package/src/resources/builder/onboard.ts +206 -0
  190. package/src/resources/builder/users.ts +606 -0
  191. package/src/resources/builder.ts +3 -0
  192. package/src/resources/ctf.ts +122 -0
  193. package/src/resources/events.ts +104 -26
  194. package/src/resources/exchanges.ts +2 -2
  195. package/src/resources/fills.ts +107 -0
  196. package/src/resources/index.ts +12 -15
  197. package/src/resources/markets.ts +114 -49
  198. package/src/resources/onboard.ts +116 -0
  199. package/src/resources/orderbook.ts +4 -12
  200. package/src/resources/price.ts +1 -0
  201. package/src/resources/trades.ts +14 -3
  202. package/src/resources/wallet.ts +224 -0
  203. package/src/version.ts +1 -1
  204. package/version.d.mts +1 -1
  205. package/version.d.mts.map +1 -1
  206. package/version.d.ts +1 -1
  207. package/version.d.ts.map +1 -1
  208. package/version.js +1 -1
  209. package/version.js.map +1 -1
  210. package/version.mjs +1 -1
  211. package/version.mjs.map +1 -1
  212. package/resources/approvals.d.mts +0 -74
  213. package/resources/approvals.d.mts.map +0 -1
  214. package/resources/approvals.d.ts +0 -74
  215. package/resources/approvals.d.ts.map +0 -1
  216. package/resources/approvals.js +0 -22
  217. package/resources/approvals.js.map +0 -1
  218. package/resources/approvals.mjs +0 -18
  219. package/resources/approvals.mjs.map +0 -1
  220. package/src/resources/approvals.ts +0 -107
@@ -0,0 +1,469 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Users extends APIResource {
5
+ /**
6
+ * Creates a new end-user with an API key. The user inherits the builder's QPS
7
+ * pool. Optionally provide an external EOA address to skip embedded wallet
8
+ * creation.
9
+ */
10
+ create(body: UserCreateParams, options?: RequestOptions): APIPromise<UserCreateResponse>;
11
+ /**
12
+ * Returns details for a single end-user owned by this builder.
13
+ */
14
+ retrieve(customerID: string, options?: RequestOptions): APIPromise<UserRetrieveResponse>;
15
+ /**
16
+ * Updates mutable fields on an end-user (currently only qps_limit).
17
+ */
18
+ update(customerID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<UserUpdateResponse>;
19
+ /**
20
+ * Returns a paginated list of end-users created by this builder.
21
+ */
22
+ list(query?: UserListParams | null | undefined, options?: RequestOptions): APIPromise<UserListResponse>;
23
+ /**
24
+ * Deactivates the end-user, revoking their API key. This action is irreversible.
25
+ */
26
+ deactivate(customerID: string, options?: RequestOptions): APIPromise<void>;
27
+ }
28
+ export interface UserCreateResponse {
29
+ /**
30
+ * API key for the created user.
31
+ */
32
+ api_key: string;
33
+ /**
34
+ * Parsec customer ID for the created user.
35
+ */
36
+ customer_id: string;
37
+ /**
38
+ * Your application's identifier for this user.
39
+ */
40
+ external_id: string;
41
+ /**
42
+ * Whether fee escrow is enabled for this user.
43
+ */
44
+ fee_escrow_enabled: boolean;
45
+ /**
46
+ * Exchanges linked to this user.
47
+ */
48
+ linked_exchanges: Array<string>;
49
+ /**
50
+ * User status ("active").
51
+ */
52
+ status: string;
53
+ /**
54
+ * Affiliate fee recipient address.
55
+ */
56
+ affiliate_address?: string | null;
57
+ /**
58
+ * Fee rate in basis points.
59
+ */
60
+ fee_bps?: number | null;
61
+ wallet?: UserCreateResponse.Wallet;
62
+ }
63
+ export declare namespace UserCreateResponse {
64
+ interface Wallet {
65
+ /**
66
+ * EVM wallet address on Polygon.
67
+ */
68
+ eoa_address: string;
69
+ /**
70
+ * Privy wallet identifier.
71
+ */
72
+ privy_wallet_id: string;
73
+ /**
74
+ * Wallet type ("eoa" or "safe").
75
+ */
76
+ wallet_type: string;
77
+ /**
78
+ * Token balances for this wallet.
79
+ */
80
+ balances?: Array<Wallet.Balance> | null;
81
+ /**
82
+ * Chain ID for the wallet (e.g. 137 for Polygon).
83
+ */
84
+ chain_id?: number | null;
85
+ /**
86
+ * Wallet creation timestamp.
87
+ */
88
+ created_at?: string | null;
89
+ /**
90
+ * Safe wallet address (present when wallet_type is "safe").
91
+ */
92
+ safe_address?: string | null;
93
+ }
94
+ namespace Wallet {
95
+ interface Balance {
96
+ /**
97
+ * Token symbol (e.g. "USDC").
98
+ */
99
+ token: string;
100
+ /**
101
+ * Human-readable balance (e.g. "100.50").
102
+ */
103
+ balance: string;
104
+ /**
105
+ * Token decimal places.
106
+ */
107
+ decimals: number;
108
+ /**
109
+ * Raw balance in smallest unit (e.g. "100500000").
110
+ */
111
+ raw_balance: string;
112
+ /**
113
+ * ERC-20 contract address. Null for native token.
114
+ */
115
+ contract_address?: string | null;
116
+ }
117
+ }
118
+ }
119
+ export interface UserRetrieveResponse {
120
+ /**
121
+ * API key for this user.
122
+ */
123
+ api_key: string;
124
+ /**
125
+ * Parsec customer ID.
126
+ */
127
+ customer_id: string;
128
+ /**
129
+ * Your application's identifier for this user.
130
+ */
131
+ external_id: string;
132
+ /**
133
+ * Whether fee escrow is enabled for this user.
134
+ */
135
+ fee_escrow_enabled: boolean;
136
+ /**
137
+ * Exchanges linked to this user.
138
+ */
139
+ linked_exchanges: Array<string>;
140
+ /**
141
+ * User's tier.
142
+ */
143
+ tier: string;
144
+ /**
145
+ * Affiliate fee recipient address.
146
+ */
147
+ affiliate_address?: string | null;
148
+ /**
149
+ * User creation timestamp.
150
+ */
151
+ created_at?: string | null;
152
+ /**
153
+ * Fee rate in basis points.
154
+ */
155
+ fee_bps?: number | null;
156
+ /**
157
+ * Per-second rate limit allocated from builder's pool.
158
+ */
159
+ qps_limit?: number | null;
160
+ wallet?: UserRetrieveResponse.Wallet;
161
+ }
162
+ export declare namespace UserRetrieveResponse {
163
+ interface Wallet {
164
+ /**
165
+ * EVM wallet address on Polygon.
166
+ */
167
+ eoa_address: string;
168
+ /**
169
+ * Privy wallet identifier.
170
+ */
171
+ privy_wallet_id: string;
172
+ /**
173
+ * Wallet type ("eoa" or "safe").
174
+ */
175
+ wallet_type: string;
176
+ /**
177
+ * Token balances for this wallet.
178
+ */
179
+ balances?: Array<Wallet.Balance> | null;
180
+ /**
181
+ * Chain ID for the wallet (e.g. 137 for Polygon).
182
+ */
183
+ chain_id?: number | null;
184
+ /**
185
+ * Wallet creation timestamp.
186
+ */
187
+ created_at?: string | null;
188
+ /**
189
+ * Safe wallet address (present when wallet_type is "safe").
190
+ */
191
+ safe_address?: string | null;
192
+ }
193
+ namespace Wallet {
194
+ interface Balance {
195
+ /**
196
+ * Token symbol (e.g. "USDC").
197
+ */
198
+ token: string;
199
+ /**
200
+ * Human-readable balance (e.g. "100.50").
201
+ */
202
+ balance: string;
203
+ /**
204
+ * Token decimal places.
205
+ */
206
+ decimals: number;
207
+ /**
208
+ * Raw balance in smallest unit (e.g. "100500000").
209
+ */
210
+ raw_balance: string;
211
+ /**
212
+ * ERC-20 contract address. Null for native token.
213
+ */
214
+ contract_address?: string | null;
215
+ }
216
+ }
217
+ }
218
+ export interface UserUpdateResponse {
219
+ /**
220
+ * API key for this user.
221
+ */
222
+ api_key: string;
223
+ /**
224
+ * Parsec customer ID.
225
+ */
226
+ customer_id: string;
227
+ /**
228
+ * Your application's identifier for this user.
229
+ */
230
+ external_id: string;
231
+ /**
232
+ * Whether fee escrow is enabled for this user.
233
+ */
234
+ fee_escrow_enabled: boolean;
235
+ /**
236
+ * Exchanges linked to this user.
237
+ */
238
+ linked_exchanges: Array<string>;
239
+ /**
240
+ * User's tier.
241
+ */
242
+ tier: string;
243
+ /**
244
+ * Affiliate fee recipient address.
245
+ */
246
+ affiliate_address?: string | null;
247
+ /**
248
+ * User creation timestamp.
249
+ */
250
+ created_at?: string | null;
251
+ /**
252
+ * Fee rate in basis points.
253
+ */
254
+ fee_bps?: number | null;
255
+ /**
256
+ * Per-second rate limit allocated from builder's pool.
257
+ */
258
+ qps_limit?: number | null;
259
+ wallet?: UserUpdateResponse.Wallet;
260
+ }
261
+ export declare namespace UserUpdateResponse {
262
+ interface Wallet {
263
+ /**
264
+ * EVM wallet address on Polygon.
265
+ */
266
+ eoa_address: string;
267
+ /**
268
+ * Privy wallet identifier.
269
+ */
270
+ privy_wallet_id: string;
271
+ /**
272
+ * Wallet type ("eoa" or "safe").
273
+ */
274
+ wallet_type: string;
275
+ /**
276
+ * Token balances for this wallet.
277
+ */
278
+ balances?: Array<Wallet.Balance> | null;
279
+ /**
280
+ * Chain ID for the wallet (e.g. 137 for Polygon).
281
+ */
282
+ chain_id?: number | null;
283
+ /**
284
+ * Wallet creation timestamp.
285
+ */
286
+ created_at?: string | null;
287
+ /**
288
+ * Safe wallet address (present when wallet_type is "safe").
289
+ */
290
+ safe_address?: string | null;
291
+ }
292
+ namespace Wallet {
293
+ interface Balance {
294
+ /**
295
+ * Token symbol (e.g. "USDC").
296
+ */
297
+ token: string;
298
+ /**
299
+ * Human-readable balance (e.g. "100.50").
300
+ */
301
+ balance: string;
302
+ /**
303
+ * Token decimal places.
304
+ */
305
+ decimals: number;
306
+ /**
307
+ * Raw balance in smallest unit (e.g. "100500000").
308
+ */
309
+ raw_balance: string;
310
+ /**
311
+ * ERC-20 contract address. Null for native token.
312
+ */
313
+ contract_address?: string | null;
314
+ }
315
+ }
316
+ }
317
+ export interface UserListResponse {
318
+ /**
319
+ * Number of users in this page.
320
+ */
321
+ count: number;
322
+ /**
323
+ * List of end-users.
324
+ */
325
+ users: Array<UserListResponse.User>;
326
+ /**
327
+ * Cursor for the next page. Null if no more results.
328
+ */
329
+ next_cursor?: string | null;
330
+ }
331
+ export declare namespace UserListResponse {
332
+ interface User {
333
+ /**
334
+ * API key for this user.
335
+ */
336
+ api_key: string;
337
+ /**
338
+ * Parsec customer ID.
339
+ */
340
+ customer_id: string;
341
+ /**
342
+ * Your application's identifier for this user.
343
+ */
344
+ external_id: string;
345
+ /**
346
+ * Whether fee escrow is enabled for this user.
347
+ */
348
+ fee_escrow_enabled: boolean;
349
+ /**
350
+ * Exchanges linked to this user.
351
+ */
352
+ linked_exchanges: Array<string>;
353
+ /**
354
+ * User's tier.
355
+ */
356
+ tier: string;
357
+ /**
358
+ * Affiliate fee recipient address.
359
+ */
360
+ affiliate_address?: string | null;
361
+ /**
362
+ * User creation timestamp.
363
+ */
364
+ created_at?: string | null;
365
+ /**
366
+ * Fee rate in basis points.
367
+ */
368
+ fee_bps?: number | null;
369
+ /**
370
+ * Per-second rate limit allocated from builder's pool.
371
+ */
372
+ qps_limit?: number | null;
373
+ wallet?: User.Wallet;
374
+ }
375
+ namespace User {
376
+ interface Wallet {
377
+ /**
378
+ * EVM wallet address on Polygon.
379
+ */
380
+ eoa_address: string;
381
+ /**
382
+ * Privy wallet identifier.
383
+ */
384
+ privy_wallet_id: string;
385
+ /**
386
+ * Wallet type ("eoa" or "safe").
387
+ */
388
+ wallet_type: string;
389
+ /**
390
+ * Token balances for this wallet.
391
+ */
392
+ balances?: Array<Wallet.Balance> | null;
393
+ /**
394
+ * Chain ID for the wallet (e.g. 137 for Polygon).
395
+ */
396
+ chain_id?: number | null;
397
+ /**
398
+ * Wallet creation timestamp.
399
+ */
400
+ created_at?: string | null;
401
+ /**
402
+ * Safe wallet address (present when wallet_type is "safe").
403
+ */
404
+ safe_address?: string | null;
405
+ }
406
+ namespace Wallet {
407
+ interface Balance {
408
+ /**
409
+ * Token symbol (e.g. "USDC").
410
+ */
411
+ token: string;
412
+ /**
413
+ * Human-readable balance (e.g. "100.50").
414
+ */
415
+ balance: string;
416
+ /**
417
+ * Token decimal places.
418
+ */
419
+ decimals: number;
420
+ /**
421
+ * Raw balance in smallest unit (e.g. "100500000").
422
+ */
423
+ raw_balance: string;
424
+ /**
425
+ * ERC-20 contract address. Null for native token.
426
+ */
427
+ contract_address?: string | null;
428
+ }
429
+ }
430
+ }
431
+ }
432
+ export interface UserCreateParams {
433
+ /**
434
+ * Your application's unique identifier for this user.
435
+ */
436
+ external_id: string;
437
+ /**
438
+ * Optional email address for the user.
439
+ */
440
+ email?: string;
441
+ /**
442
+ * External EOA address (42-char hex, 0x-prefixed). Skips embedded wallet creation.
443
+ */
444
+ eoa_address?: string;
445
+ /**
446
+ * Per-second rate limit for this user. Deducted from builder's QPS pool.
447
+ */
448
+ qps_limit?: number;
449
+ }
450
+ export interface UserUpdateParams {
451
+ /**
452
+ * New per-second rate limit for this user.
453
+ */
454
+ qps_limit?: number;
455
+ }
456
+ export interface UserListParams {
457
+ /**
458
+ * Pagination cursor from a previous response.
459
+ */
460
+ cursor?: string;
461
+ /**
462
+ * Maximum number of users to return.
463
+ */
464
+ limit?: number;
465
+ }
466
+ export declare namespace Users {
467
+ export { type UserCreateResponse as UserCreateResponse, type UserRetrieveResponse as UserRetrieveResponse, type UserUpdateResponse as UserUpdateResponse, type UserListResponse as UserListResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, };
468
+ }
469
+ //# sourceMappingURL=users.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../src/resources/builder/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAIxF;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIxF;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;OAEG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM3E;AAED,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