@pear-protocol/types 2.11.0 → 2.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 (66) hide show
  1. package/dist/auth/payloads.d.ts +3 -3
  2. package/dist/auth/payloads.js +1 -1
  3. package/dist/baskets/saved/entities.js +1 -1
  4. package/dist/bundle.d.ts +2 -0
  5. package/dist/bundle.js +2 -0
  6. package/dist/common/refinement.d.ts +3 -3
  7. package/dist/common/trade-legs.js +1 -1
  8. package/dist/copy/entities.d.ts +186 -0
  9. package/dist/copy/entities.js +113 -0
  10. package/dist/copy/index.d.ts +4 -0
  11. package/dist/copy/index.js +4 -0
  12. package/dist/copy/payloads.d.ts +14 -0
  13. package/dist/copy/payloads.js +8 -0
  14. package/dist/copy/queries.d.ts +13 -0
  15. package/dist/copy/queries.js +16 -0
  16. package/dist/copy/responses.d.ts +332 -0
  17. package/dist/copy/responses.js +91 -0
  18. package/dist/execution/entities.d.ts +71 -71
  19. package/dist/execution/entities.js +1 -1
  20. package/dist/execution/queries.d.ts +2 -2
  21. package/dist/execution/responses.d.ts +40 -40
  22. package/dist/ladder/entities.d.ts +22 -17
  23. package/dist/ladder/queries.d.ts +5 -0
  24. package/dist/ladder/queries.js +6 -2
  25. package/dist/ladder/responses.d.ts +63 -48
  26. package/dist/misc/payloads.d.ts +26 -0
  27. package/dist/misc/payloads.js +27 -1
  28. package/dist/misc/responses.d.ts +8 -0
  29. package/dist/misc/responses.js +7 -1
  30. package/dist/notification/entities.d.ts +120 -0
  31. package/dist/notification/entities.js +59 -3
  32. package/dist/notification/responses.d.ts +60 -0
  33. package/dist/order/entities.d.ts +3 -3
  34. package/dist/position/entities.d.ts +1 -1
  35. package/dist/position/responses.d.ts +3 -1
  36. package/dist/position/responses.js +2 -0
  37. package/dist/schedule/entities.d.ts +18 -12
  38. package/dist/schedule/entities.js +2 -1
  39. package/dist/schedule/queries.d.ts +2 -2
  40. package/dist/schedule/responses.d.ts +12 -8
  41. package/dist/schedule/twap-config.js +1 -1
  42. package/dist/statistics/entities.d.ts +10 -0
  43. package/dist/statistics/entities.js +4 -0
  44. package/dist/statistics/responses.d.ts +10 -0
  45. package/dist/sync/payloads.d.ts +12 -0
  46. package/dist/sync/payloads.js +31 -3
  47. package/dist/tca/responses.d.ts +12 -12
  48. package/dist/trade/responses.d.ts +100 -100
  49. package/dist/trade-accounts/entities.d.ts +136 -12
  50. package/dist/trade-accounts/entities.js +41 -9
  51. package/dist/trade-accounts/payloads.d.ts +12 -0
  52. package/dist/trade-accounts/payloads.js +7 -1
  53. package/dist/trade-accounts/response.d.ts +963 -223
  54. package/dist/traders/index.d.ts +1 -0
  55. package/dist/traders/index.js +1 -0
  56. package/dist/traders/public.d.ts +4967 -0
  57. package/dist/traders/public.js +128 -0
  58. package/dist/trigger/common/index.d.ts +3 -2
  59. package/dist/trigger/common/index.js +1 -0
  60. package/dist/trigger/entities/index.d.ts +64 -48
  61. package/dist/trigger/entities/index.js +3 -3
  62. package/dist/trigger/queries.d.ts +2 -2
  63. package/dist/trigger/responses.d.ts +40 -30
  64. package/dist/vaults/entities.d.ts +1 -1
  65. package/dist/vaults/responses.d.ts +2 -2
  66. package/package.json +2 -2
@@ -1,338 +1,1078 @@
1
1
  import { z } from 'zod';
2
2
  export declare const TradeAccountResponse: z.ZodObject<{
3
- account: z.ZodObject<{
3
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ connector: z.ZodLiteral<"hyperliquid">;
5
+ metadata: z.ZodOptional<z.ZodObject<{
6
+ agentWalletAddress: z.ZodString;
7
+ isSubaccount: z.ZodBoolean;
8
+ mainAccountAddress: z.ZodString;
9
+ }, z.core.$strip>>;
10
+ id: z.ZodUUID;
11
+ alias: z.ZodString;
12
+ kind: z.ZodEnum<{
13
+ vault: "vault";
14
+ eoa: "eoa";
15
+ }>;
16
+ exchangeIdentifier: z.ZodString;
17
+ sharingEnabled: z.ZodBoolean;
18
+ copyingEnabled: z.ZodBoolean;
19
+ createdAt: z.ZodString;
20
+ updatedAt: z.ZodString;
21
+ deletedAt: z.ZodOptional<z.ZodString>;
22
+ }, z.core.$strip>, z.ZodObject<{
23
+ connector: z.ZodLiteral<"lighter">;
24
+ metadata: z.ZodOptional<z.ZodObject<{
25
+ l1_address: z.ZodString;
26
+ isSubaccount: z.ZodBoolean;
27
+ }, z.core.$strip>>;
28
+ id: z.ZodUUID;
29
+ alias: z.ZodString;
30
+ kind: z.ZodEnum<{
31
+ vault: "vault";
32
+ eoa: "eoa";
33
+ }>;
34
+ exchangeIdentifier: z.ZodString;
35
+ sharingEnabled: z.ZodBoolean;
36
+ copyingEnabled: z.ZodBoolean;
37
+ createdAt: z.ZodString;
38
+ updatedAt: z.ZodString;
39
+ deletedAt: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>, z.ZodObject<{
41
+ metadata: z.ZodOptional<z.ZodObject<{
42
+ l1_address: z.ZodString;
43
+ isSubaccount: z.ZodBoolean;
44
+ }, z.core.$strip>>;
45
+ id: z.ZodUUID;
46
+ alias: z.ZodString;
47
+ kind: z.ZodEnum<{
48
+ vault: "vault";
49
+ eoa: "eoa";
50
+ }>;
51
+ exchangeIdentifier: z.ZodString;
52
+ sharingEnabled: z.ZodBoolean;
53
+ copyingEnabled: z.ZodBoolean;
54
+ createdAt: z.ZodString;
55
+ updatedAt: z.ZodString;
56
+ deletedAt: z.ZodOptional<z.ZodString>;
57
+ connector: z.ZodLiteral<"lighter_rhc">;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ connector: z.ZodLiteral<"binance">;
60
+ metadata: z.ZodOptional<z.ZodNever>;
61
+ id: z.ZodUUID;
62
+ alias: z.ZodString;
63
+ kind: z.ZodEnum<{
64
+ vault: "vault";
65
+ eoa: "eoa";
66
+ }>;
67
+ exchangeIdentifier: z.ZodString;
68
+ sharingEnabled: z.ZodBoolean;
69
+ copyingEnabled: z.ZodBoolean;
70
+ createdAt: z.ZodString;
71
+ updatedAt: z.ZodString;
72
+ deletedAt: z.ZodOptional<z.ZodString>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ connector: z.ZodLiteral<"bybit">;
75
+ metadata: z.ZodOptional<z.ZodNever>;
76
+ id: z.ZodUUID;
77
+ alias: z.ZodString;
78
+ kind: z.ZodEnum<{
79
+ vault: "vault";
80
+ eoa: "eoa";
81
+ }>;
82
+ exchangeIdentifier: z.ZodString;
83
+ sharingEnabled: z.ZodBoolean;
84
+ copyingEnabled: z.ZodBoolean;
85
+ createdAt: z.ZodString;
86
+ updatedAt: z.ZodString;
87
+ deletedAt: z.ZodOptional<z.ZodString>;
88
+ }, z.core.$strip>, z.ZodObject<{
89
+ connector: z.ZodLiteral<"okx">;
90
+ metadata: z.ZodOptional<z.ZodNever>;
91
+ id: z.ZodUUID;
92
+ alias: z.ZodString;
93
+ kind: z.ZodEnum<{
94
+ vault: "vault";
95
+ eoa: "eoa";
96
+ }>;
97
+ exchangeIdentifier: z.ZodString;
98
+ sharingEnabled: z.ZodBoolean;
99
+ copyingEnabled: z.ZodBoolean;
100
+ createdAt: z.ZodString;
101
+ updatedAt: z.ZodString;
102
+ deletedAt: z.ZodOptional<z.ZodString>;
103
+ }, z.core.$strip>], "connector">;
104
+ }, z.core.$strip>;
105
+ export type TradeAccountResponse = z.infer<typeof TradeAccountResponse>;
106
+ export declare const TradeAccountListResponse: z.ZodObject<{
107
+ accounts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
108
+ connector: z.ZodLiteral<"hyperliquid">;
109
+ metadata: z.ZodOptional<z.ZodObject<{
110
+ agentWalletAddress: z.ZodString;
111
+ isSubaccount: z.ZodBoolean;
112
+ mainAccountAddress: z.ZodString;
113
+ }, z.core.$strip>>;
114
+ id: z.ZodUUID;
115
+ alias: z.ZodString;
116
+ kind: z.ZodEnum<{
117
+ vault: "vault";
118
+ eoa: "eoa";
119
+ }>;
120
+ exchangeIdentifier: z.ZodString;
121
+ sharingEnabled: z.ZodBoolean;
122
+ copyingEnabled: z.ZodBoolean;
123
+ createdAt: z.ZodString;
124
+ updatedAt: z.ZodString;
125
+ deletedAt: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strip>, z.ZodObject<{
127
+ connector: z.ZodLiteral<"lighter">;
128
+ metadata: z.ZodOptional<z.ZodObject<{
129
+ l1_address: z.ZodString;
130
+ isSubaccount: z.ZodBoolean;
131
+ }, z.core.$strip>>;
132
+ id: z.ZodUUID;
133
+ alias: z.ZodString;
134
+ kind: z.ZodEnum<{
135
+ vault: "vault";
136
+ eoa: "eoa";
137
+ }>;
138
+ exchangeIdentifier: z.ZodString;
139
+ sharingEnabled: z.ZodBoolean;
140
+ copyingEnabled: z.ZodBoolean;
141
+ createdAt: z.ZodString;
142
+ updatedAt: z.ZodString;
143
+ deletedAt: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$strip>, z.ZodObject<{
145
+ metadata: z.ZodOptional<z.ZodObject<{
146
+ l1_address: z.ZodString;
147
+ isSubaccount: z.ZodBoolean;
148
+ }, z.core.$strip>>;
149
+ id: z.ZodUUID;
150
+ alias: z.ZodString;
151
+ kind: z.ZodEnum<{
152
+ vault: "vault";
153
+ eoa: "eoa";
154
+ }>;
155
+ exchangeIdentifier: z.ZodString;
156
+ sharingEnabled: z.ZodBoolean;
157
+ copyingEnabled: z.ZodBoolean;
158
+ createdAt: z.ZodString;
159
+ updatedAt: z.ZodString;
160
+ deletedAt: z.ZodOptional<z.ZodString>;
161
+ connector: z.ZodLiteral<"lighter_rhc">;
162
+ }, z.core.$strip>, z.ZodObject<{
163
+ connector: z.ZodLiteral<"binance">;
164
+ metadata: z.ZodOptional<z.ZodNever>;
165
+ id: z.ZodUUID;
166
+ alias: z.ZodString;
167
+ kind: z.ZodEnum<{
168
+ vault: "vault";
169
+ eoa: "eoa";
170
+ }>;
171
+ exchangeIdentifier: z.ZodString;
172
+ sharingEnabled: z.ZodBoolean;
173
+ copyingEnabled: z.ZodBoolean;
174
+ createdAt: z.ZodString;
175
+ updatedAt: z.ZodString;
176
+ deletedAt: z.ZodOptional<z.ZodString>;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ connector: z.ZodLiteral<"bybit">;
179
+ metadata: z.ZodOptional<z.ZodNever>;
180
+ id: z.ZodUUID;
181
+ alias: z.ZodString;
182
+ kind: z.ZodEnum<{
183
+ vault: "vault";
184
+ eoa: "eoa";
185
+ }>;
186
+ exchangeIdentifier: z.ZodString;
187
+ sharingEnabled: z.ZodBoolean;
188
+ copyingEnabled: z.ZodBoolean;
189
+ createdAt: z.ZodString;
190
+ updatedAt: z.ZodString;
191
+ deletedAt: z.ZodOptional<z.ZodString>;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ connector: z.ZodLiteral<"okx">;
194
+ metadata: z.ZodOptional<z.ZodNever>;
195
+ id: z.ZodUUID;
196
+ alias: z.ZodString;
197
+ kind: z.ZodEnum<{
198
+ vault: "vault";
199
+ eoa: "eoa";
200
+ }>;
201
+ exchangeIdentifier: z.ZodString;
202
+ sharingEnabled: z.ZodBoolean;
203
+ copyingEnabled: z.ZodBoolean;
204
+ createdAt: z.ZodString;
205
+ updatedAt: z.ZodString;
206
+ deletedAt: z.ZodOptional<z.ZodString>;
207
+ }, z.core.$strip>], "connector">>;
208
+ }, z.core.$strip>;
209
+ export type TradeAccountListResponse = z.infer<typeof TradeAccountListResponse>;
210
+ /**
211
+ * Whether a vault already has a pear-pro trade account (UI: create vs trade). The account is owned by
212
+ * the vault's own synthetic user, so it never shows up in the caller's own list — this is where an
213
+ * authorized owner/trader gets it in order to trade as the vault (via the `pear-vault-address` header).
214
+ */
215
+ export declare const VaultTradeAccountStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
216
+ exists: z.ZodLiteral<false>;
217
+ }, z.core.$strip>, z.ZodObject<{
218
+ exists: z.ZodLiteral<true>;
219
+ tradeAccountId: z.ZodString;
220
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
+ connector: z.ZodLiteral<"hyperliquid">;
222
+ metadata: z.ZodOptional<z.ZodObject<{
223
+ agentWalletAddress: z.ZodString;
224
+ isSubaccount: z.ZodBoolean;
225
+ mainAccountAddress: z.ZodString;
226
+ }, z.core.$strip>>;
227
+ id: z.ZodUUID;
228
+ alias: z.ZodString;
229
+ kind: z.ZodEnum<{
230
+ vault: "vault";
231
+ eoa: "eoa";
232
+ }>;
233
+ exchangeIdentifier: z.ZodString;
234
+ sharingEnabled: z.ZodBoolean;
235
+ copyingEnabled: z.ZodBoolean;
236
+ createdAt: z.ZodString;
237
+ updatedAt: z.ZodString;
238
+ deletedAt: z.ZodOptional<z.ZodString>;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ connector: z.ZodLiteral<"lighter">;
241
+ metadata: z.ZodOptional<z.ZodObject<{
242
+ l1_address: z.ZodString;
243
+ isSubaccount: z.ZodBoolean;
244
+ }, z.core.$strip>>;
245
+ id: z.ZodUUID;
246
+ alias: z.ZodString;
247
+ kind: z.ZodEnum<{
248
+ vault: "vault";
249
+ eoa: "eoa";
250
+ }>;
251
+ exchangeIdentifier: z.ZodString;
252
+ sharingEnabled: z.ZodBoolean;
253
+ copyingEnabled: z.ZodBoolean;
254
+ createdAt: z.ZodString;
255
+ updatedAt: z.ZodString;
256
+ deletedAt: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ metadata: z.ZodOptional<z.ZodObject<{
259
+ l1_address: z.ZodString;
260
+ isSubaccount: z.ZodBoolean;
261
+ }, z.core.$strip>>;
262
+ id: z.ZodUUID;
263
+ alias: z.ZodString;
264
+ kind: z.ZodEnum<{
265
+ vault: "vault";
266
+ eoa: "eoa";
267
+ }>;
268
+ exchangeIdentifier: z.ZodString;
269
+ sharingEnabled: z.ZodBoolean;
270
+ copyingEnabled: z.ZodBoolean;
271
+ createdAt: z.ZodString;
272
+ updatedAt: z.ZodString;
273
+ deletedAt: z.ZodOptional<z.ZodString>;
274
+ connector: z.ZodLiteral<"lighter_rhc">;
275
+ }, z.core.$strip>, z.ZodObject<{
276
+ connector: z.ZodLiteral<"binance">;
277
+ metadata: z.ZodOptional<z.ZodNever>;
278
+ id: z.ZodUUID;
279
+ alias: z.ZodString;
280
+ kind: z.ZodEnum<{
281
+ vault: "vault";
282
+ eoa: "eoa";
283
+ }>;
284
+ exchangeIdentifier: z.ZodString;
285
+ sharingEnabled: z.ZodBoolean;
286
+ copyingEnabled: z.ZodBoolean;
287
+ createdAt: z.ZodString;
288
+ updatedAt: z.ZodString;
289
+ deletedAt: z.ZodOptional<z.ZodString>;
290
+ }, z.core.$strip>, z.ZodObject<{
291
+ connector: z.ZodLiteral<"bybit">;
292
+ metadata: z.ZodOptional<z.ZodNever>;
293
+ id: z.ZodUUID;
294
+ alias: z.ZodString;
295
+ kind: z.ZodEnum<{
296
+ vault: "vault";
297
+ eoa: "eoa";
298
+ }>;
299
+ exchangeIdentifier: z.ZodString;
300
+ sharingEnabled: z.ZodBoolean;
301
+ copyingEnabled: z.ZodBoolean;
302
+ createdAt: z.ZodString;
303
+ updatedAt: z.ZodString;
304
+ deletedAt: z.ZodOptional<z.ZodString>;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ connector: z.ZodLiteral<"okx">;
307
+ metadata: z.ZodOptional<z.ZodNever>;
308
+ id: z.ZodUUID;
309
+ alias: z.ZodString;
310
+ kind: z.ZodEnum<{
311
+ vault: "vault";
312
+ eoa: "eoa";
313
+ }>;
314
+ exchangeIdentifier: z.ZodString;
315
+ sharingEnabled: z.ZodBoolean;
316
+ copyingEnabled: z.ZodBoolean;
317
+ createdAt: z.ZodString;
318
+ updatedAt: z.ZodString;
319
+ deletedAt: z.ZodOptional<z.ZodString>;
320
+ }, z.core.$strip>], "connector">;
321
+ }, z.core.$strip>], "exists">;
322
+ export type VaultTradeAccountStatus = z.infer<typeof VaultTradeAccountStatus>;
323
+ export declare const VaultTradeAccountStatusResponse: z.ZodObject<{
324
+ status: z.ZodDiscriminatedUnion<[z.ZodObject<{
325
+ exists: z.ZodLiteral<false>;
326
+ }, z.core.$strip>, z.ZodObject<{
327
+ exists: z.ZodLiteral<true>;
328
+ tradeAccountId: z.ZodString;
329
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
330
+ connector: z.ZodLiteral<"hyperliquid">;
331
+ metadata: z.ZodOptional<z.ZodObject<{
332
+ agentWalletAddress: z.ZodString;
333
+ isSubaccount: z.ZodBoolean;
334
+ mainAccountAddress: z.ZodString;
335
+ }, z.core.$strip>>;
336
+ id: z.ZodUUID;
337
+ alias: z.ZodString;
338
+ kind: z.ZodEnum<{
339
+ vault: "vault";
340
+ eoa: "eoa";
341
+ }>;
342
+ exchangeIdentifier: z.ZodString;
343
+ sharingEnabled: z.ZodBoolean;
344
+ copyingEnabled: z.ZodBoolean;
345
+ createdAt: z.ZodString;
346
+ updatedAt: z.ZodString;
347
+ deletedAt: z.ZodOptional<z.ZodString>;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ connector: z.ZodLiteral<"lighter">;
350
+ metadata: z.ZodOptional<z.ZodObject<{
351
+ l1_address: z.ZodString;
352
+ isSubaccount: z.ZodBoolean;
353
+ }, z.core.$strip>>;
354
+ id: z.ZodUUID;
355
+ alias: z.ZodString;
356
+ kind: z.ZodEnum<{
357
+ vault: "vault";
358
+ eoa: "eoa";
359
+ }>;
360
+ exchangeIdentifier: z.ZodString;
361
+ sharingEnabled: z.ZodBoolean;
362
+ copyingEnabled: z.ZodBoolean;
363
+ createdAt: z.ZodString;
364
+ updatedAt: z.ZodString;
365
+ deletedAt: z.ZodOptional<z.ZodString>;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ metadata: z.ZodOptional<z.ZodObject<{
368
+ l1_address: z.ZodString;
369
+ isSubaccount: z.ZodBoolean;
370
+ }, z.core.$strip>>;
371
+ id: z.ZodUUID;
372
+ alias: z.ZodString;
373
+ kind: z.ZodEnum<{
374
+ vault: "vault";
375
+ eoa: "eoa";
376
+ }>;
377
+ exchangeIdentifier: z.ZodString;
378
+ sharingEnabled: z.ZodBoolean;
379
+ copyingEnabled: z.ZodBoolean;
380
+ createdAt: z.ZodString;
381
+ updatedAt: z.ZodString;
382
+ deletedAt: z.ZodOptional<z.ZodString>;
383
+ connector: z.ZodLiteral<"lighter_rhc">;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ connector: z.ZodLiteral<"binance">;
386
+ metadata: z.ZodOptional<z.ZodNever>;
387
+ id: z.ZodUUID;
388
+ alias: z.ZodString;
389
+ kind: z.ZodEnum<{
390
+ vault: "vault";
391
+ eoa: "eoa";
392
+ }>;
393
+ exchangeIdentifier: z.ZodString;
394
+ sharingEnabled: z.ZodBoolean;
395
+ copyingEnabled: z.ZodBoolean;
396
+ createdAt: z.ZodString;
397
+ updatedAt: z.ZodString;
398
+ deletedAt: z.ZodOptional<z.ZodString>;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ connector: z.ZodLiteral<"bybit">;
401
+ metadata: z.ZodOptional<z.ZodNever>;
402
+ id: z.ZodUUID;
403
+ alias: z.ZodString;
404
+ kind: z.ZodEnum<{
405
+ vault: "vault";
406
+ eoa: "eoa";
407
+ }>;
408
+ exchangeIdentifier: z.ZodString;
409
+ sharingEnabled: z.ZodBoolean;
410
+ copyingEnabled: z.ZodBoolean;
411
+ createdAt: z.ZodString;
412
+ updatedAt: z.ZodString;
413
+ deletedAt: z.ZodOptional<z.ZodString>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ connector: z.ZodLiteral<"okx">;
416
+ metadata: z.ZodOptional<z.ZodNever>;
417
+ id: z.ZodUUID;
418
+ alias: z.ZodString;
419
+ kind: z.ZodEnum<{
420
+ vault: "vault";
421
+ eoa: "eoa";
422
+ }>;
423
+ exchangeIdentifier: z.ZodString;
424
+ sharingEnabled: z.ZodBoolean;
425
+ copyingEnabled: z.ZodBoolean;
426
+ createdAt: z.ZodString;
427
+ updatedAt: z.ZodString;
428
+ deletedAt: z.ZodOptional<z.ZodString>;
429
+ }, z.core.$strip>], "connector">;
430
+ }, z.core.$strip>], "exists">;
431
+ }, z.core.$strip>;
432
+ export type VaultTradeAccountStatusResponse = z.infer<typeof VaultTradeAccountStatusResponse>;
433
+ export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
434
+ connector: z.ZodLiteral<"hyperliquid">;
435
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
436
+ connector: z.ZodLiteral<"hyperliquid">;
437
+ metadata: z.ZodOptional<z.ZodObject<{
438
+ agentWalletAddress: z.ZodString;
439
+ isSubaccount: z.ZodBoolean;
440
+ mainAccountAddress: z.ZodString;
441
+ }, z.core.$strip>>;
442
+ id: z.ZodUUID;
443
+ alias: z.ZodString;
444
+ kind: z.ZodEnum<{
445
+ vault: "vault";
446
+ eoa: "eoa";
447
+ }>;
448
+ exchangeIdentifier: z.ZodString;
449
+ sharingEnabled: z.ZodBoolean;
450
+ copyingEnabled: z.ZodBoolean;
451
+ createdAt: z.ZodString;
452
+ updatedAt: z.ZodString;
453
+ deletedAt: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ connector: z.ZodLiteral<"lighter">;
456
+ metadata: z.ZodOptional<z.ZodObject<{
457
+ l1_address: z.ZodString;
458
+ isSubaccount: z.ZodBoolean;
459
+ }, z.core.$strip>>;
460
+ id: z.ZodUUID;
461
+ alias: z.ZodString;
462
+ kind: z.ZodEnum<{
463
+ vault: "vault";
464
+ eoa: "eoa";
465
+ }>;
466
+ exchangeIdentifier: z.ZodString;
467
+ sharingEnabled: z.ZodBoolean;
468
+ copyingEnabled: z.ZodBoolean;
469
+ createdAt: z.ZodString;
470
+ updatedAt: z.ZodString;
471
+ deletedAt: z.ZodOptional<z.ZodString>;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ metadata: z.ZodOptional<z.ZodObject<{
474
+ l1_address: z.ZodString;
475
+ isSubaccount: z.ZodBoolean;
476
+ }, z.core.$strip>>;
477
+ id: z.ZodUUID;
478
+ alias: z.ZodString;
479
+ kind: z.ZodEnum<{
480
+ vault: "vault";
481
+ eoa: "eoa";
482
+ }>;
483
+ exchangeIdentifier: z.ZodString;
484
+ sharingEnabled: z.ZodBoolean;
485
+ copyingEnabled: z.ZodBoolean;
486
+ createdAt: z.ZodString;
487
+ updatedAt: z.ZodString;
488
+ deletedAt: z.ZodOptional<z.ZodString>;
489
+ connector: z.ZodLiteral<"lighter_rhc">;
490
+ }, z.core.$strip>, z.ZodObject<{
491
+ connector: z.ZodLiteral<"binance">;
492
+ metadata: z.ZodOptional<z.ZodNever>;
493
+ id: z.ZodUUID;
494
+ alias: z.ZodString;
495
+ kind: z.ZodEnum<{
496
+ vault: "vault";
497
+ eoa: "eoa";
498
+ }>;
499
+ exchangeIdentifier: z.ZodString;
500
+ sharingEnabled: z.ZodBoolean;
501
+ copyingEnabled: z.ZodBoolean;
502
+ createdAt: z.ZodString;
503
+ updatedAt: z.ZodString;
504
+ deletedAt: z.ZodOptional<z.ZodString>;
505
+ }, z.core.$strip>, z.ZodObject<{
506
+ connector: z.ZodLiteral<"bybit">;
507
+ metadata: z.ZodOptional<z.ZodNever>;
508
+ id: z.ZodUUID;
509
+ alias: z.ZodString;
510
+ kind: z.ZodEnum<{
511
+ vault: "vault";
512
+ eoa: "eoa";
513
+ }>;
514
+ exchangeIdentifier: z.ZodString;
515
+ sharingEnabled: z.ZodBoolean;
516
+ copyingEnabled: z.ZodBoolean;
517
+ createdAt: z.ZodString;
518
+ updatedAt: z.ZodString;
519
+ deletedAt: z.ZodOptional<z.ZodString>;
520
+ }, z.core.$strip>, z.ZodObject<{
521
+ connector: z.ZodLiteral<"okx">;
522
+ metadata: z.ZodOptional<z.ZodNever>;
523
+ id: z.ZodUUID;
524
+ alias: z.ZodString;
525
+ kind: z.ZodEnum<{
526
+ vault: "vault";
527
+ eoa: "eoa";
528
+ }>;
529
+ exchangeIdentifier: z.ZodString;
530
+ sharingEnabled: z.ZodBoolean;
531
+ copyingEnabled: z.ZodBoolean;
532
+ createdAt: z.ZodString;
533
+ updatedAt: z.ZodString;
534
+ deletedAt: z.ZodOptional<z.ZodString>;
535
+ }, z.core.$strip>], "connector">;
536
+ credentials: z.ZodObject<{
537
+ signer_key: z.ZodString;
538
+ }, z.core.$strip>;
539
+ }, z.core.$strip>, z.ZodObject<{
540
+ connector: z.ZodLiteral<"binance">;
541
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
542
+ connector: z.ZodLiteral<"hyperliquid">;
543
+ metadata: z.ZodOptional<z.ZodObject<{
544
+ agentWalletAddress: z.ZodString;
545
+ isSubaccount: z.ZodBoolean;
546
+ mainAccountAddress: z.ZodString;
547
+ }, z.core.$strip>>;
548
+ id: z.ZodUUID;
549
+ alias: z.ZodString;
550
+ kind: z.ZodEnum<{
551
+ vault: "vault";
552
+ eoa: "eoa";
553
+ }>;
554
+ exchangeIdentifier: z.ZodString;
555
+ sharingEnabled: z.ZodBoolean;
556
+ copyingEnabled: z.ZodBoolean;
557
+ createdAt: z.ZodString;
558
+ updatedAt: z.ZodString;
559
+ deletedAt: z.ZodOptional<z.ZodString>;
560
+ }, z.core.$strip>, z.ZodObject<{
561
+ connector: z.ZodLiteral<"lighter">;
562
+ metadata: z.ZodOptional<z.ZodObject<{
563
+ l1_address: z.ZodString;
564
+ isSubaccount: z.ZodBoolean;
565
+ }, z.core.$strip>>;
566
+ id: z.ZodUUID;
567
+ alias: z.ZodString;
568
+ kind: z.ZodEnum<{
569
+ vault: "vault";
570
+ eoa: "eoa";
571
+ }>;
572
+ exchangeIdentifier: z.ZodString;
573
+ sharingEnabled: z.ZodBoolean;
574
+ copyingEnabled: z.ZodBoolean;
575
+ createdAt: z.ZodString;
576
+ updatedAt: z.ZodString;
577
+ deletedAt: z.ZodOptional<z.ZodString>;
578
+ }, z.core.$strip>, z.ZodObject<{
579
+ metadata: z.ZodOptional<z.ZodObject<{
580
+ l1_address: z.ZodString;
581
+ isSubaccount: z.ZodBoolean;
582
+ }, z.core.$strip>>;
583
+ id: z.ZodUUID;
584
+ alias: z.ZodString;
585
+ kind: z.ZodEnum<{
586
+ vault: "vault";
587
+ eoa: "eoa";
588
+ }>;
589
+ exchangeIdentifier: z.ZodString;
590
+ sharingEnabled: z.ZodBoolean;
591
+ copyingEnabled: z.ZodBoolean;
592
+ createdAt: z.ZodString;
593
+ updatedAt: z.ZodString;
594
+ deletedAt: z.ZodOptional<z.ZodString>;
595
+ connector: z.ZodLiteral<"lighter_rhc">;
596
+ }, z.core.$strip>, z.ZodObject<{
597
+ connector: z.ZodLiteral<"binance">;
598
+ metadata: z.ZodOptional<z.ZodNever>;
599
+ id: z.ZodUUID;
600
+ alias: z.ZodString;
601
+ kind: z.ZodEnum<{
602
+ vault: "vault";
603
+ eoa: "eoa";
604
+ }>;
605
+ exchangeIdentifier: z.ZodString;
606
+ sharingEnabled: z.ZodBoolean;
607
+ copyingEnabled: z.ZodBoolean;
608
+ createdAt: z.ZodString;
609
+ updatedAt: z.ZodString;
610
+ deletedAt: z.ZodOptional<z.ZodString>;
611
+ }, z.core.$strip>, z.ZodObject<{
612
+ connector: z.ZodLiteral<"bybit">;
613
+ metadata: z.ZodOptional<z.ZodNever>;
614
+ id: z.ZodUUID;
615
+ alias: z.ZodString;
616
+ kind: z.ZodEnum<{
617
+ vault: "vault";
618
+ eoa: "eoa";
619
+ }>;
620
+ exchangeIdentifier: z.ZodString;
621
+ sharingEnabled: z.ZodBoolean;
622
+ copyingEnabled: z.ZodBoolean;
623
+ createdAt: z.ZodString;
624
+ updatedAt: z.ZodString;
625
+ deletedAt: z.ZodOptional<z.ZodString>;
626
+ }, z.core.$strip>, z.ZodObject<{
627
+ connector: z.ZodLiteral<"okx">;
628
+ metadata: z.ZodOptional<z.ZodNever>;
629
+ id: z.ZodUUID;
630
+ alias: z.ZodString;
631
+ kind: z.ZodEnum<{
632
+ vault: "vault";
633
+ eoa: "eoa";
634
+ }>;
635
+ exchangeIdentifier: z.ZodString;
636
+ sharingEnabled: z.ZodBoolean;
637
+ copyingEnabled: z.ZodBoolean;
638
+ createdAt: z.ZodString;
639
+ updatedAt: z.ZodString;
640
+ deletedAt: z.ZodOptional<z.ZodString>;
641
+ }, z.core.$strip>], "connector">;
642
+ credentials: z.ZodObject<{
643
+ read: z.ZodObject<{
644
+ api_key: z.ZodString;
645
+ api_secret: z.ZodString;
646
+ }, z.core.$strip>;
647
+ write: z.ZodObject<{
648
+ api_key: z.ZodString;
649
+ api_secret: z.ZodString;
650
+ }, z.core.$strip>;
651
+ }, z.core.$strip>;
652
+ }, z.core.$strip>, z.ZodObject<{
653
+ connector: z.ZodLiteral<"bybit">;
654
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
655
+ connector: z.ZodLiteral<"hyperliquid">;
656
+ metadata: z.ZodOptional<z.ZodObject<{
657
+ agentWalletAddress: z.ZodString;
658
+ isSubaccount: z.ZodBoolean;
659
+ mainAccountAddress: z.ZodString;
660
+ }, z.core.$strip>>;
661
+ id: z.ZodUUID;
662
+ alias: z.ZodString;
663
+ kind: z.ZodEnum<{
664
+ vault: "vault";
665
+ eoa: "eoa";
666
+ }>;
667
+ exchangeIdentifier: z.ZodString;
668
+ sharingEnabled: z.ZodBoolean;
669
+ copyingEnabled: z.ZodBoolean;
670
+ createdAt: z.ZodString;
671
+ updatedAt: z.ZodString;
672
+ deletedAt: z.ZodOptional<z.ZodString>;
673
+ }, z.core.$strip>, z.ZodObject<{
674
+ connector: z.ZodLiteral<"lighter">;
675
+ metadata: z.ZodOptional<z.ZodObject<{
676
+ l1_address: z.ZodString;
677
+ isSubaccount: z.ZodBoolean;
678
+ }, z.core.$strip>>;
679
+ id: z.ZodUUID;
680
+ alias: z.ZodString;
681
+ kind: z.ZodEnum<{
682
+ vault: "vault";
683
+ eoa: "eoa";
684
+ }>;
685
+ exchangeIdentifier: z.ZodString;
686
+ sharingEnabled: z.ZodBoolean;
687
+ copyingEnabled: z.ZodBoolean;
688
+ createdAt: z.ZodString;
689
+ updatedAt: z.ZodString;
690
+ deletedAt: z.ZodOptional<z.ZodString>;
691
+ }, z.core.$strip>, z.ZodObject<{
692
+ metadata: z.ZodOptional<z.ZodObject<{
693
+ l1_address: z.ZodString;
694
+ isSubaccount: z.ZodBoolean;
695
+ }, z.core.$strip>>;
4
696
  id: z.ZodUUID;
5
697
  alias: z.ZodString;
6
- connector: z.ZodEnum<{
7
- hyperliquid: "hyperliquid";
8
- binance: "binance";
9
- bybit: "bybit";
10
- okx: "okx";
11
- lighter: "lighter";
12
- lighter_rhc: "lighter_rhc";
698
+ kind: z.ZodEnum<{
699
+ vault: "vault";
700
+ eoa: "eoa";
701
+ }>;
702
+ exchangeIdentifier: z.ZodString;
703
+ sharingEnabled: z.ZodBoolean;
704
+ copyingEnabled: z.ZodBoolean;
705
+ createdAt: z.ZodString;
706
+ updatedAt: z.ZodString;
707
+ deletedAt: z.ZodOptional<z.ZodString>;
708
+ connector: z.ZodLiteral<"lighter_rhc">;
709
+ }, z.core.$strip>, z.ZodObject<{
710
+ connector: z.ZodLiteral<"binance">;
711
+ metadata: z.ZodOptional<z.ZodNever>;
712
+ id: z.ZodUUID;
713
+ alias: z.ZodString;
714
+ kind: z.ZodEnum<{
715
+ vault: "vault";
716
+ eoa: "eoa";
717
+ }>;
718
+ exchangeIdentifier: z.ZodString;
719
+ sharingEnabled: z.ZodBoolean;
720
+ copyingEnabled: z.ZodBoolean;
721
+ createdAt: z.ZodString;
722
+ updatedAt: z.ZodString;
723
+ deletedAt: z.ZodOptional<z.ZodString>;
724
+ }, z.core.$strip>, z.ZodObject<{
725
+ connector: z.ZodLiteral<"bybit">;
726
+ metadata: z.ZodOptional<z.ZodNever>;
727
+ id: z.ZodUUID;
728
+ alias: z.ZodString;
729
+ kind: z.ZodEnum<{
730
+ vault: "vault";
731
+ eoa: "eoa";
13
732
  }>;
733
+ exchangeIdentifier: z.ZodString;
734
+ sharingEnabled: z.ZodBoolean;
735
+ copyingEnabled: z.ZodBoolean;
736
+ createdAt: z.ZodString;
737
+ updatedAt: z.ZodString;
738
+ deletedAt: z.ZodOptional<z.ZodString>;
739
+ }, z.core.$strip>, z.ZodObject<{
740
+ connector: z.ZodLiteral<"okx">;
741
+ metadata: z.ZodOptional<z.ZodNever>;
742
+ id: z.ZodUUID;
743
+ alias: z.ZodString;
14
744
  kind: z.ZodEnum<{
15
745
  vault: "vault";
16
746
  eoa: "eoa";
17
747
  }>;
18
748
  exchangeIdentifier: z.ZodString;
19
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
749
+ sharingEnabled: z.ZodBoolean;
750
+ copyingEnabled: z.ZodBoolean;
751
+ createdAt: z.ZodString;
752
+ updatedAt: z.ZodString;
753
+ deletedAt: z.ZodOptional<z.ZodString>;
754
+ }, z.core.$strip>], "connector">;
755
+ credentials: z.ZodObject<{
756
+ api_key: z.ZodString;
757
+ api_secret: z.ZodString;
758
+ }, z.core.$strip>;
759
+ }, z.core.$strip>, z.ZodObject<{
760
+ connector: z.ZodLiteral<"okx">;
761
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
762
+ connector: z.ZodLiteral<"hyperliquid">;
763
+ metadata: z.ZodOptional<z.ZodObject<{
20
764
  agentWalletAddress: z.ZodString;
21
765
  isSubaccount: z.ZodBoolean;
22
766
  mainAccountAddress: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- l1_address: z.ZodString;
25
- }, z.core.$strip>]>>;
767
+ }, z.core.$strip>>;
768
+ id: z.ZodUUID;
769
+ alias: z.ZodString;
770
+ kind: z.ZodEnum<{
771
+ vault: "vault";
772
+ eoa: "eoa";
773
+ }>;
774
+ exchangeIdentifier: z.ZodString;
775
+ sharingEnabled: z.ZodBoolean;
776
+ copyingEnabled: z.ZodBoolean;
26
777
  createdAt: z.ZodString;
27
778
  updatedAt: z.ZodString;
28
779
  deletedAt: z.ZodOptional<z.ZodString>;
29
- }, z.core.$strip>;
30
- }, z.core.$strip>;
31
- export type TradeAccountResponse = z.infer<typeof TradeAccountResponse>;
32
- export declare const TradeAccountListResponse: z.ZodObject<{
33
- accounts: z.ZodArray<z.ZodObject<{
780
+ }, z.core.$strip>, z.ZodObject<{
781
+ connector: z.ZodLiteral<"lighter">;
782
+ metadata: z.ZodOptional<z.ZodObject<{
783
+ l1_address: z.ZodString;
784
+ isSubaccount: z.ZodBoolean;
785
+ }, z.core.$strip>>;
34
786
  id: z.ZodUUID;
35
787
  alias: z.ZodString;
36
- connector: z.ZodEnum<{
37
- hyperliquid: "hyperliquid";
38
- binance: "binance";
39
- bybit: "bybit";
40
- okx: "okx";
41
- lighter: "lighter";
42
- lighter_rhc: "lighter_rhc";
43
- }>;
44
788
  kind: z.ZodEnum<{
45
789
  vault: "vault";
46
790
  eoa: "eoa";
47
791
  }>;
48
792
  exchangeIdentifier: z.ZodString;
49
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
50
- agentWalletAddress: z.ZodString;
51
- isSubaccount: z.ZodBoolean;
52
- mainAccountAddress: z.ZodString;
53
- }, z.core.$strip>, z.ZodObject<{
54
- l1_address: z.ZodString;
55
- }, z.core.$strip>]>>;
793
+ sharingEnabled: z.ZodBoolean;
794
+ copyingEnabled: z.ZodBoolean;
56
795
  createdAt: z.ZodString;
57
796
  updatedAt: z.ZodString;
58
797
  deletedAt: z.ZodOptional<z.ZodString>;
59
- }, z.core.$strip>>;
60
- }, z.core.$strip>;
61
- export type TradeAccountListResponse = z.infer<typeof TradeAccountListResponse>;
62
- /**
63
- * Whether a vault already has a pear-pro trade account (UI: create vs trade). The account is owned by
64
- * the vault's own synthetic user, so it never shows up in the caller's own list — this is where an
65
- * authorized owner/trader gets it in order to trade as the vault (via the `pear-vault-address` header).
66
- */
67
- export declare const VaultTradeAccountStatus: z.ZodDiscriminatedUnion<[z.ZodObject<{
68
- exists: z.ZodLiteral<false>;
69
- }, z.core.$strip>, z.ZodObject<{
70
- exists: z.ZodLiteral<true>;
71
- tradeAccountId: z.ZodString;
72
- account: z.ZodObject<{
798
+ }, z.core.$strip>, z.ZodObject<{
799
+ metadata: z.ZodOptional<z.ZodObject<{
800
+ l1_address: z.ZodString;
801
+ isSubaccount: z.ZodBoolean;
802
+ }, z.core.$strip>>;
73
803
  id: z.ZodUUID;
74
804
  alias: z.ZodString;
75
- connector: z.ZodEnum<{
76
- hyperliquid: "hyperliquid";
77
- binance: "binance";
78
- bybit: "bybit";
79
- okx: "okx";
80
- lighter: "lighter";
81
- lighter_rhc: "lighter_rhc";
82
- }>;
83
805
  kind: z.ZodEnum<{
84
806
  vault: "vault";
85
807
  eoa: "eoa";
86
808
  }>;
87
809
  exchangeIdentifier: z.ZodString;
88
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
89
- agentWalletAddress: z.ZodString;
90
- isSubaccount: z.ZodBoolean;
91
- mainAccountAddress: z.ZodString;
92
- }, z.core.$strip>, z.ZodObject<{
93
- l1_address: z.ZodString;
94
- }, z.core.$strip>]>>;
810
+ sharingEnabled: z.ZodBoolean;
811
+ copyingEnabled: z.ZodBoolean;
95
812
  createdAt: z.ZodString;
96
813
  updatedAt: z.ZodString;
97
814
  deletedAt: z.ZodOptional<z.ZodString>;
98
- }, z.core.$strip>;
99
- }, z.core.$strip>], "exists">;
100
- export type VaultTradeAccountStatus = z.infer<typeof VaultTradeAccountStatus>;
101
- export declare const VaultTradeAccountStatusResponse: z.ZodObject<{
102
- status: z.ZodDiscriminatedUnion<[z.ZodObject<{
103
- exists: z.ZodLiteral<false>;
815
+ connector: z.ZodLiteral<"lighter_rhc">;
104
816
  }, z.core.$strip>, z.ZodObject<{
105
- exists: z.ZodLiteral<true>;
106
- tradeAccountId: z.ZodString;
107
- account: z.ZodObject<{
108
- id: z.ZodUUID;
109
- alias: z.ZodString;
110
- connector: z.ZodEnum<{
111
- hyperliquid: "hyperliquid";
112
- binance: "binance";
113
- bybit: "bybit";
114
- okx: "okx";
115
- lighter: "lighter";
116
- lighter_rhc: "lighter_rhc";
117
- }>;
118
- kind: z.ZodEnum<{
119
- vault: "vault";
120
- eoa: "eoa";
121
- }>;
122
- exchangeIdentifier: z.ZodString;
123
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
124
- agentWalletAddress: z.ZodString;
125
- isSubaccount: z.ZodBoolean;
126
- mainAccountAddress: z.ZodString;
127
- }, z.core.$strip>, z.ZodObject<{
128
- l1_address: z.ZodString;
129
- }, z.core.$strip>]>>;
130
- createdAt: z.ZodString;
131
- updatedAt: z.ZodString;
132
- deletedAt: z.ZodOptional<z.ZodString>;
133
- }, z.core.$strip>;
134
- }, z.core.$strip>], "exists">;
135
- }, z.core.$strip>;
136
- export type VaultTradeAccountStatusResponse = z.infer<typeof VaultTradeAccountStatusResponse>;
137
- export declare const ExchangeCredentialsResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
138
- connector: z.ZodLiteral<"hyperliquid">;
139
- account: z.ZodObject<{
817
+ connector: z.ZodLiteral<"binance">;
818
+ metadata: z.ZodOptional<z.ZodNever>;
140
819
  id: z.ZodUUID;
141
820
  alias: z.ZodString;
142
- connector: z.ZodEnum<{
143
- hyperliquid: "hyperliquid";
144
- binance: "binance";
145
- bybit: "bybit";
146
- okx: "okx";
147
- lighter: "lighter";
148
- lighter_rhc: "lighter_rhc";
149
- }>;
150
821
  kind: z.ZodEnum<{
151
822
  vault: "vault";
152
823
  eoa: "eoa";
153
824
  }>;
154
825
  exchangeIdentifier: z.ZodString;
155
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
156
- agentWalletAddress: z.ZodString;
157
- isSubaccount: z.ZodBoolean;
158
- mainAccountAddress: z.ZodString;
159
- }, z.core.$strip>, z.ZodObject<{
160
- l1_address: z.ZodString;
161
- }, z.core.$strip>]>>;
826
+ sharingEnabled: z.ZodBoolean;
827
+ copyingEnabled: z.ZodBoolean;
162
828
  createdAt: z.ZodString;
163
829
  updatedAt: z.ZodString;
164
830
  deletedAt: z.ZodOptional<z.ZodString>;
165
- }, z.core.$strip>;
166
- credentials: z.ZodObject<{
167
- signer_key: z.ZodString;
168
- }, z.core.$strip>;
169
- }, z.core.$strip>, z.ZodObject<{
170
- connector: z.ZodLiteral<"binance">;
171
- account: z.ZodObject<{
831
+ }, z.core.$strip>, z.ZodObject<{
832
+ connector: z.ZodLiteral<"bybit">;
833
+ metadata: z.ZodOptional<z.ZodNever>;
172
834
  id: z.ZodUUID;
173
835
  alias: z.ZodString;
174
- connector: z.ZodEnum<{
175
- hyperliquid: "hyperliquid";
176
- binance: "binance";
177
- bybit: "bybit";
178
- okx: "okx";
179
- lighter: "lighter";
180
- lighter_rhc: "lighter_rhc";
181
- }>;
182
836
  kind: z.ZodEnum<{
183
837
  vault: "vault";
184
838
  eoa: "eoa";
185
839
  }>;
186
840
  exchangeIdentifier: z.ZodString;
187
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
188
- agentWalletAddress: z.ZodString;
189
- isSubaccount: z.ZodBoolean;
190
- mainAccountAddress: z.ZodString;
191
- }, z.core.$strip>, z.ZodObject<{
192
- l1_address: z.ZodString;
193
- }, z.core.$strip>]>>;
841
+ sharingEnabled: z.ZodBoolean;
842
+ copyingEnabled: z.ZodBoolean;
194
843
  createdAt: z.ZodString;
195
844
  updatedAt: z.ZodString;
196
845
  deletedAt: z.ZodOptional<z.ZodString>;
197
- }, z.core.$strip>;
198
- credentials: z.ZodObject<{
199
- read: z.ZodObject<{
200
- api_key: z.ZodString;
201
- api_secret: z.ZodString;
202
- }, z.core.$strip>;
203
- write: z.ZodObject<{
204
- api_key: z.ZodString;
205
- api_secret: z.ZodString;
206
- }, z.core.$strip>;
207
- }, z.core.$strip>;
208
- }, z.core.$strip>, z.ZodObject<{
209
- connector: z.ZodLiteral<"bybit">;
210
- account: z.ZodObject<{
846
+ }, z.core.$strip>, z.ZodObject<{
847
+ connector: z.ZodLiteral<"okx">;
848
+ metadata: z.ZodOptional<z.ZodNever>;
211
849
  id: z.ZodUUID;
212
850
  alias: z.ZodString;
213
- connector: z.ZodEnum<{
214
- hyperliquid: "hyperliquid";
215
- binance: "binance";
216
- bybit: "bybit";
217
- okx: "okx";
218
- lighter: "lighter";
219
- lighter_rhc: "lighter_rhc";
220
- }>;
221
851
  kind: z.ZodEnum<{
222
852
  vault: "vault";
223
853
  eoa: "eoa";
224
854
  }>;
225
855
  exchangeIdentifier: z.ZodString;
226
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
227
- agentWalletAddress: z.ZodString;
228
- isSubaccount: z.ZodBoolean;
229
- mainAccountAddress: z.ZodString;
230
- }, z.core.$strip>, z.ZodObject<{
231
- l1_address: z.ZodString;
232
- }, z.core.$strip>]>>;
856
+ sharingEnabled: z.ZodBoolean;
857
+ copyingEnabled: z.ZodBoolean;
233
858
  createdAt: z.ZodString;
234
859
  updatedAt: z.ZodString;
235
860
  deletedAt: z.ZodOptional<z.ZodString>;
236
- }, z.core.$strip>;
861
+ }, z.core.$strip>], "connector">;
237
862
  credentials: z.ZodObject<{
238
863
  api_key: z.ZodString;
239
864
  api_secret: z.ZodString;
865
+ api_pass: z.ZodString;
240
866
  }, z.core.$strip>;
241
867
  }, z.core.$strip>, z.ZodObject<{
242
- connector: z.ZodLiteral<"okx">;
243
- account: z.ZodObject<{
868
+ connector: z.ZodLiteral<"lighter">;
869
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
870
+ connector: z.ZodLiteral<"hyperliquid">;
871
+ metadata: z.ZodOptional<z.ZodObject<{
872
+ agentWalletAddress: z.ZodString;
873
+ isSubaccount: z.ZodBoolean;
874
+ mainAccountAddress: z.ZodString;
875
+ }, z.core.$strip>>;
244
876
  id: z.ZodUUID;
245
877
  alias: z.ZodString;
246
- connector: z.ZodEnum<{
247
- hyperliquid: "hyperliquid";
248
- binance: "binance";
249
- bybit: "bybit";
250
- okx: "okx";
251
- lighter: "lighter";
252
- lighter_rhc: "lighter_rhc";
253
- }>;
254
878
  kind: z.ZodEnum<{
255
879
  vault: "vault";
256
880
  eoa: "eoa";
257
881
  }>;
258
882
  exchangeIdentifier: z.ZodString;
259
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
260
- agentWalletAddress: z.ZodString;
883
+ sharingEnabled: z.ZodBoolean;
884
+ copyingEnabled: z.ZodBoolean;
885
+ createdAt: z.ZodString;
886
+ updatedAt: z.ZodString;
887
+ deletedAt: z.ZodOptional<z.ZodString>;
888
+ }, z.core.$strip>, z.ZodObject<{
889
+ connector: z.ZodLiteral<"lighter">;
890
+ metadata: z.ZodOptional<z.ZodObject<{
891
+ l1_address: z.ZodString;
261
892
  isSubaccount: z.ZodBoolean;
262
- mainAccountAddress: z.ZodString;
263
- }, z.core.$strip>, z.ZodObject<{
893
+ }, z.core.$strip>>;
894
+ id: z.ZodUUID;
895
+ alias: z.ZodString;
896
+ kind: z.ZodEnum<{
897
+ vault: "vault";
898
+ eoa: "eoa";
899
+ }>;
900
+ exchangeIdentifier: z.ZodString;
901
+ sharingEnabled: z.ZodBoolean;
902
+ copyingEnabled: z.ZodBoolean;
903
+ createdAt: z.ZodString;
904
+ updatedAt: z.ZodString;
905
+ deletedAt: z.ZodOptional<z.ZodString>;
906
+ }, z.core.$strip>, z.ZodObject<{
907
+ metadata: z.ZodOptional<z.ZodObject<{
264
908
  l1_address: z.ZodString;
265
- }, z.core.$strip>]>>;
909
+ isSubaccount: z.ZodBoolean;
910
+ }, z.core.$strip>>;
911
+ id: z.ZodUUID;
912
+ alias: z.ZodString;
913
+ kind: z.ZodEnum<{
914
+ vault: "vault";
915
+ eoa: "eoa";
916
+ }>;
917
+ exchangeIdentifier: z.ZodString;
918
+ sharingEnabled: z.ZodBoolean;
919
+ copyingEnabled: z.ZodBoolean;
266
920
  createdAt: z.ZodString;
267
921
  updatedAt: z.ZodString;
268
922
  deletedAt: z.ZodOptional<z.ZodString>;
269
- }, z.core.$strip>;
270
- credentials: z.ZodObject<{
271
- api_key: z.ZodString;
272
- api_secret: z.ZodString;
273
- api_pass: z.ZodString;
274
- }, z.core.$strip>;
275
- }, z.core.$strip>, z.ZodObject<{
276
- connector: z.ZodLiteral<"lighter">;
277
- account: z.ZodObject<{
923
+ connector: z.ZodLiteral<"lighter_rhc">;
924
+ }, z.core.$strip>, z.ZodObject<{
925
+ connector: z.ZodLiteral<"binance">;
926
+ metadata: z.ZodOptional<z.ZodNever>;
278
927
  id: z.ZodUUID;
279
928
  alias: z.ZodString;
280
- connector: z.ZodEnum<{
281
- hyperliquid: "hyperliquid";
282
- binance: "binance";
283
- bybit: "bybit";
284
- okx: "okx";
285
- lighter: "lighter";
286
- lighter_rhc: "lighter_rhc";
929
+ kind: z.ZodEnum<{
930
+ vault: "vault";
931
+ eoa: "eoa";
287
932
  }>;
933
+ exchangeIdentifier: z.ZodString;
934
+ sharingEnabled: z.ZodBoolean;
935
+ copyingEnabled: z.ZodBoolean;
936
+ createdAt: z.ZodString;
937
+ updatedAt: z.ZodString;
938
+ deletedAt: z.ZodOptional<z.ZodString>;
939
+ }, z.core.$strip>, z.ZodObject<{
940
+ connector: z.ZodLiteral<"bybit">;
941
+ metadata: z.ZodOptional<z.ZodNever>;
942
+ id: z.ZodUUID;
943
+ alias: z.ZodString;
288
944
  kind: z.ZodEnum<{
289
945
  vault: "vault";
290
946
  eoa: "eoa";
291
947
  }>;
292
948
  exchangeIdentifier: z.ZodString;
293
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
294
- agentWalletAddress: z.ZodString;
295
- isSubaccount: z.ZodBoolean;
296
- mainAccountAddress: z.ZodString;
297
- }, z.core.$strip>, z.ZodObject<{
298
- l1_address: z.ZodString;
299
- }, z.core.$strip>]>>;
949
+ sharingEnabled: z.ZodBoolean;
950
+ copyingEnabled: z.ZodBoolean;
300
951
  createdAt: z.ZodString;
301
952
  updatedAt: z.ZodString;
302
953
  deletedAt: z.ZodOptional<z.ZodString>;
303
- }, z.core.$strip>;
954
+ }, z.core.$strip>, z.ZodObject<{
955
+ connector: z.ZodLiteral<"okx">;
956
+ metadata: z.ZodOptional<z.ZodNever>;
957
+ id: z.ZodUUID;
958
+ alias: z.ZodString;
959
+ kind: z.ZodEnum<{
960
+ vault: "vault";
961
+ eoa: "eoa";
962
+ }>;
963
+ exchangeIdentifier: z.ZodString;
964
+ sharingEnabled: z.ZodBoolean;
965
+ copyingEnabled: z.ZodBoolean;
966
+ createdAt: z.ZodString;
967
+ updatedAt: z.ZodString;
968
+ deletedAt: z.ZodOptional<z.ZodString>;
969
+ }, z.core.$strip>], "connector">;
304
970
  credentials: z.ZodObject<{
305
971
  api_private_key: z.ZodString;
306
972
  api_key_index: z.ZodNumber;
307
973
  }, z.core.$strip>;
308
974
  }, z.core.$strip>, z.ZodObject<{
309
- account: z.ZodObject<{
975
+ account: z.ZodDiscriminatedUnion<[z.ZodObject<{
976
+ connector: z.ZodLiteral<"hyperliquid">;
977
+ metadata: z.ZodOptional<z.ZodObject<{
978
+ agentWalletAddress: z.ZodString;
979
+ isSubaccount: z.ZodBoolean;
980
+ mainAccountAddress: z.ZodString;
981
+ }, z.core.$strip>>;
310
982
  id: z.ZodUUID;
311
983
  alias: z.ZodString;
312
- connector: z.ZodEnum<{
313
- hyperliquid: "hyperliquid";
314
- binance: "binance";
315
- bybit: "bybit";
316
- okx: "okx";
317
- lighter: "lighter";
318
- lighter_rhc: "lighter_rhc";
319
- }>;
320
984
  kind: z.ZodEnum<{
321
985
  vault: "vault";
322
986
  eoa: "eoa";
323
987
  }>;
324
988
  exchangeIdentifier: z.ZodString;
325
- metadata: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
326
- agentWalletAddress: z.ZodString;
989
+ sharingEnabled: z.ZodBoolean;
990
+ copyingEnabled: z.ZodBoolean;
991
+ createdAt: z.ZodString;
992
+ updatedAt: z.ZodString;
993
+ deletedAt: z.ZodOptional<z.ZodString>;
994
+ }, z.core.$strip>, z.ZodObject<{
995
+ connector: z.ZodLiteral<"lighter">;
996
+ metadata: z.ZodOptional<z.ZodObject<{
997
+ l1_address: z.ZodString;
327
998
  isSubaccount: z.ZodBoolean;
328
- mainAccountAddress: z.ZodString;
329
- }, z.core.$strip>, z.ZodObject<{
999
+ }, z.core.$strip>>;
1000
+ id: z.ZodUUID;
1001
+ alias: z.ZodString;
1002
+ kind: z.ZodEnum<{
1003
+ vault: "vault";
1004
+ eoa: "eoa";
1005
+ }>;
1006
+ exchangeIdentifier: z.ZodString;
1007
+ sharingEnabled: z.ZodBoolean;
1008
+ copyingEnabled: z.ZodBoolean;
1009
+ createdAt: z.ZodString;
1010
+ updatedAt: z.ZodString;
1011
+ deletedAt: z.ZodOptional<z.ZodString>;
1012
+ }, z.core.$strip>, z.ZodObject<{
1013
+ metadata: z.ZodOptional<z.ZodObject<{
330
1014
  l1_address: z.ZodString;
331
- }, z.core.$strip>]>>;
1015
+ isSubaccount: z.ZodBoolean;
1016
+ }, z.core.$strip>>;
1017
+ id: z.ZodUUID;
1018
+ alias: z.ZodString;
1019
+ kind: z.ZodEnum<{
1020
+ vault: "vault";
1021
+ eoa: "eoa";
1022
+ }>;
1023
+ exchangeIdentifier: z.ZodString;
1024
+ sharingEnabled: z.ZodBoolean;
1025
+ copyingEnabled: z.ZodBoolean;
332
1026
  createdAt: z.ZodString;
333
1027
  updatedAt: z.ZodString;
334
1028
  deletedAt: z.ZodOptional<z.ZodString>;
335
- }, z.core.$strip>;
1029
+ connector: z.ZodLiteral<"lighter_rhc">;
1030
+ }, z.core.$strip>, z.ZodObject<{
1031
+ connector: z.ZodLiteral<"binance">;
1032
+ metadata: z.ZodOptional<z.ZodNever>;
1033
+ id: z.ZodUUID;
1034
+ alias: z.ZodString;
1035
+ kind: z.ZodEnum<{
1036
+ vault: "vault";
1037
+ eoa: "eoa";
1038
+ }>;
1039
+ exchangeIdentifier: z.ZodString;
1040
+ sharingEnabled: z.ZodBoolean;
1041
+ copyingEnabled: z.ZodBoolean;
1042
+ createdAt: z.ZodString;
1043
+ updatedAt: z.ZodString;
1044
+ deletedAt: z.ZodOptional<z.ZodString>;
1045
+ }, z.core.$strip>, z.ZodObject<{
1046
+ connector: z.ZodLiteral<"bybit">;
1047
+ metadata: z.ZodOptional<z.ZodNever>;
1048
+ id: z.ZodUUID;
1049
+ alias: z.ZodString;
1050
+ kind: z.ZodEnum<{
1051
+ vault: "vault";
1052
+ eoa: "eoa";
1053
+ }>;
1054
+ exchangeIdentifier: z.ZodString;
1055
+ sharingEnabled: z.ZodBoolean;
1056
+ copyingEnabled: z.ZodBoolean;
1057
+ createdAt: z.ZodString;
1058
+ updatedAt: z.ZodString;
1059
+ deletedAt: z.ZodOptional<z.ZodString>;
1060
+ }, z.core.$strip>, z.ZodObject<{
1061
+ connector: z.ZodLiteral<"okx">;
1062
+ metadata: z.ZodOptional<z.ZodNever>;
1063
+ id: z.ZodUUID;
1064
+ alias: z.ZodString;
1065
+ kind: z.ZodEnum<{
1066
+ vault: "vault";
1067
+ eoa: "eoa";
1068
+ }>;
1069
+ exchangeIdentifier: z.ZodString;
1070
+ sharingEnabled: z.ZodBoolean;
1071
+ copyingEnabled: z.ZodBoolean;
1072
+ createdAt: z.ZodString;
1073
+ updatedAt: z.ZodString;
1074
+ deletedAt: z.ZodOptional<z.ZodString>;
1075
+ }, z.core.$strip>], "connector">;
336
1076
  credentials: z.ZodObject<{
337
1077
  api_private_key: z.ZodString;
338
1078
  api_key_index: z.ZodNumber;