@illalabs/interfaces 0.20.0 → 0.21.0-canary-beta-881cbe66

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 (58) hide show
  1. package/dist/interfaces/hyperliquid/exchange.d.ts +3248 -0
  2. package/dist/interfaces/hyperliquid/exchange.d.ts.map +1 -0
  3. package/dist/interfaces/hyperliquid/exchange.js +61 -0
  4. package/dist/interfaces/hyperliquid/exchange.js.map +1 -0
  5. package/dist/interfaces/hyperliquid/index.d.ts +2 -0
  6. package/dist/interfaces/hyperliquid/index.d.ts.map +1 -0
  7. package/dist/interfaces/hyperliquid/index.js +2 -0
  8. package/dist/interfaces/hyperliquid/index.js.map +1 -0
  9. package/dist/interfaces/index.d.ts +1 -0
  10. package/dist/interfaces/index.d.ts.map +1 -1
  11. package/dist/interfaces/index.js +1 -0
  12. package/dist/interfaces/index.js.map +1 -1
  13. package/dist/schemas/messages.d.ts +3536 -28
  14. package/dist/schemas/messages.d.ts.map +1 -1
  15. package/dist/schemas/messages.js +91 -0
  16. package/dist/schemas/messages.js.map +1 -1
  17. package/dist/schemas/telemetryEvents.d.ts +8328 -72
  18. package/dist/schemas/telemetryEvents.d.ts.map +1 -1
  19. package/dist/types/actions/inputs.d.ts +8 -2
  20. package/dist/types/actions/inputs.d.ts.map +1 -1
  21. package/dist/types/actions/outputs.d.ts +15 -0
  22. package/dist/types/actions/outputs.d.ts.map +1 -1
  23. package/dist/types/actions/outputs.js.map +1 -1
  24. package/dist/types/actions/tools/hyperliquidClosePositionAction.d.ts +23 -0
  25. package/dist/types/actions/tools/hyperliquidClosePositionAction.d.ts.map +1 -0
  26. package/dist/types/actions/tools/hyperliquidClosePositionAction.js +2 -0
  27. package/dist/types/actions/tools/hyperliquidClosePositionAction.js.map +1 -0
  28. package/dist/types/actions/tools/hyperliquidDepositAction.d.ts +24 -0
  29. package/dist/types/actions/tools/hyperliquidDepositAction.d.ts.map +1 -0
  30. package/dist/types/actions/tools/hyperliquidDepositAction.js +2 -0
  31. package/dist/types/actions/tools/hyperliquidDepositAction.js.map +1 -0
  32. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.d.ts +16 -0
  33. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.d.ts.map +1 -0
  34. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.js +2 -0
  35. package/dist/types/actions/tools/hyperliquidGetAccountSummaryAction.js.map +1 -0
  36. package/dist/types/actions/tools/hyperliquidGetPositionsAction.d.ts +16 -0
  37. package/dist/types/actions/tools/hyperliquidGetPositionsAction.d.ts.map +1 -0
  38. package/dist/types/actions/tools/hyperliquidGetPositionsAction.js +2 -0
  39. package/dist/types/actions/tools/hyperliquidGetPositionsAction.js.map +1 -0
  40. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.d.ts +33 -0
  41. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.d.ts.map +1 -0
  42. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.js +2 -0
  43. package/dist/types/actions/tools/hyperliquidPlaceOrderAction.js.map +1 -0
  44. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.d.ts +25 -0
  45. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.d.ts.map +1 -0
  46. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.js +2 -0
  47. package/dist/types/actions/tools/hyperliquidUpdateLeverageAction.js.map +1 -0
  48. package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts +35 -0
  49. package/dist/types/actions/tools/hyperliquidWithdrawAction.d.ts.map +1 -0
  50. package/dist/types/actions/tools/hyperliquidWithdrawAction.js +2 -0
  51. package/dist/types/actions/tools/hyperliquidWithdrawAction.js.map +1 -0
  52. package/dist/types/actions/tools/index.d.ts +21 -0
  53. package/dist/types/actions/tools/index.d.ts.map +1 -1
  54. package/dist/utils/constants.d.ts +1 -1
  55. package/dist/utils/constants.d.ts.map +1 -1
  56. package/dist/utils/constants.js +7 -0
  57. package/dist/utils/constants.js.map +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,3248 @@
1
+ import { z } from "zod";
2
+ /**
3
+ * Request/response contract for the Hyperliquid submission relay
4
+ * (`POST /api/v1/hyperliquid/exchange`).
5
+ *
6
+ * The relay forwards an ALREADY-SIGNED Hyperliquid action to Hyperliquid's
7
+ * `/exchange` endpoint and maps the response — it never signs. These are the
8
+ * same shapes the api-server controller validates, so the contract is
9
+ * single-sourced between the SDK and the API.
10
+ */
11
+ /** ECDSA signature split, as Hyperliquid expects it in the exchange envelope. */
12
+ export declare const HyperliquidSignatureSchema: z.ZodObject<{
13
+ r: z.ZodString;
14
+ s: z.ZodString;
15
+ v: z.ZodNumber;
16
+ }, "strip", z.ZodTypeAny, {
17
+ r: string;
18
+ s: string;
19
+ v: number;
20
+ }, {
21
+ r: string;
22
+ s: string;
23
+ v: number;
24
+ }>;
25
+ export declare const HyperliquidExchangeSubmitRequestSchema: z.ZodObject<{
26
+ /** The unsigned action verbatim from the tool's actionMetadata.unsignedAction. */
27
+ action: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ /** Millisecond nonce the signature commits to. */
29
+ nonce: z.ZodNumber;
30
+ signature: z.ZodObject<{
31
+ r: z.ZodString;
32
+ s: z.ZodString;
33
+ v: z.ZodNumber;
34
+ }, "strip", z.ZodTypeAny, {
35
+ r: string;
36
+ s: string;
37
+ v: number;
38
+ }, {
39
+ r: string;
40
+ s: string;
41
+ v: number;
42
+ }>;
43
+ /** Sub-account / vault address. Unused in v1 (always undefined). */
44
+ vaultAddress: z.ZodOptional<z.ZodString>;
45
+ network: z.ZodEnum<["mainnet", "testnet"]>;
46
+ /** Integrity HMAC issued with the original signature request, if present. */
47
+ hmac: z.ZodOptional<z.ZodString>;
48
+ /**
49
+ * When true, the relay does NOT submit. Instead it re-derives a fresh
50
+ * order from `action` using current market data (new markPx → recomputed
51
+ * IOC price) and a new nonce, and returns it under `rebuilt` for the client
52
+ * to re-sign and resubmit with `rebuildOrder: false`. Defaults to false
53
+ * (submit the already-signed action verbatim). The relay never signs and
54
+ * never holds keys in either mode. Treated as false when omitted.
55
+ */
56
+ rebuildOrder: z.ZodOptional<z.ZodBoolean>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ nonce: number;
59
+ action: Record<string, unknown>;
60
+ network: "testnet" | "mainnet";
61
+ signature: {
62
+ r: string;
63
+ s: string;
64
+ v: number;
65
+ };
66
+ hmac?: string | undefined;
67
+ vaultAddress?: string | undefined;
68
+ rebuildOrder?: boolean | undefined;
69
+ }, {
70
+ nonce: number;
71
+ action: Record<string, unknown>;
72
+ network: "testnet" | "mainnet";
73
+ signature: {
74
+ r: string;
75
+ s: string;
76
+ v: number;
77
+ };
78
+ hmac?: string | undefined;
79
+ vaultAddress?: string | undefined;
80
+ rebuildOrder?: boolean | undefined;
81
+ }>;
82
+ /** A freshly rebuilt, unsigned order returned when `rebuildOrder: true`. */
83
+ export declare const HyperliquidRebuiltOrderSchema: z.ZodObject<{
84
+ action: z.ZodRecord<z.ZodString, z.ZodUnknown>;
85
+ nonce: z.ZodNumber;
86
+ network: z.ZodEnum<["mainnet", "testnet"]>;
87
+ /** The EIP-712 typed data to re-sign. */
88
+ signatureRequest: z.ZodDiscriminatedUnion<"signMethod", [z.ZodObject<{
89
+ id: z.ZodString;
90
+ signerAddress: z.ZodString;
91
+ description: z.ZodOptional<z.ZodString>;
92
+ metadata: z.ZodOptional<z.ZodObject<{
93
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
94
+ toAddress: z.ZodString;
95
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
96
+ mismatch: z.ZodOptional<z.ZodObject<{
97
+ claimedRecipientReference: z.ZodString;
98
+ canonicalContactId: z.ZodString;
99
+ canonicalContactName: z.ZodString;
100
+ }, "strip", z.ZodTypeAny, {
101
+ claimedRecipientReference: string;
102
+ canonicalContactId: string;
103
+ canonicalContactName: string;
104
+ }, {
105
+ claimedRecipientReference: string;
106
+ canonicalContactId: string;
107
+ canonicalContactName: string;
108
+ }>>;
109
+ blocked: z.ZodOptional<z.ZodBoolean>;
110
+ } & {
111
+ authorizationKind: z.ZodLiteral<"self">;
112
+ }, "strip", z.ZodTypeAny, {
113
+ toAddress: string;
114
+ authorizationKind: "self";
115
+ claimedRecipientReference?: string | undefined;
116
+ mismatch?: {
117
+ claimedRecipientReference: string;
118
+ canonicalContactId: string;
119
+ canonicalContactName: string;
120
+ } | undefined;
121
+ blocked?: boolean | undefined;
122
+ }, {
123
+ toAddress: string;
124
+ authorizationKind: "self";
125
+ claimedRecipientReference?: string | undefined;
126
+ mismatch?: {
127
+ claimedRecipientReference: string;
128
+ canonicalContactId: string;
129
+ canonicalContactName: string;
130
+ } | undefined;
131
+ blocked?: boolean | undefined;
132
+ }>, z.ZodObject<{
133
+ toAddress: z.ZodString;
134
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
135
+ mismatch: z.ZodOptional<z.ZodObject<{
136
+ claimedRecipientReference: z.ZodString;
137
+ canonicalContactId: z.ZodString;
138
+ canonicalContactName: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ claimedRecipientReference: string;
141
+ canonicalContactId: string;
142
+ canonicalContactName: string;
143
+ }, {
144
+ claimedRecipientReference: string;
145
+ canonicalContactId: string;
146
+ canonicalContactName: string;
147
+ }>>;
148
+ blocked: z.ZodOptional<z.ZodBoolean>;
149
+ } & {
150
+ authorizationKind: z.ZodLiteral<"contact">;
151
+ contactId: z.ZodString;
152
+ contactName: z.ZodString;
153
+ }, "strip", z.ZodTypeAny, {
154
+ toAddress: string;
155
+ authorizationKind: "contact";
156
+ contactId: string;
157
+ contactName: string;
158
+ claimedRecipientReference?: string | undefined;
159
+ mismatch?: {
160
+ claimedRecipientReference: string;
161
+ canonicalContactId: string;
162
+ canonicalContactName: string;
163
+ } | undefined;
164
+ blocked?: boolean | undefined;
165
+ }, {
166
+ toAddress: string;
167
+ authorizationKind: "contact";
168
+ contactId: string;
169
+ contactName: string;
170
+ claimedRecipientReference?: string | undefined;
171
+ mismatch?: {
172
+ claimedRecipientReference: string;
173
+ canonicalContactId: string;
174
+ canonicalContactName: string;
175
+ } | undefined;
176
+ blocked?: boolean | undefined;
177
+ }>]>>;
178
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
179
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
180
+ toAddress: z.ZodString;
181
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
182
+ mismatch: z.ZodOptional<z.ZodObject<{
183
+ claimedRecipientReference: z.ZodString;
184
+ canonicalContactId: z.ZodString;
185
+ canonicalContactName: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ claimedRecipientReference: string;
188
+ canonicalContactId: string;
189
+ canonicalContactName: string;
190
+ }, {
191
+ claimedRecipientReference: string;
192
+ canonicalContactId: string;
193
+ canonicalContactName: string;
194
+ }>>;
195
+ blocked: z.ZodOptional<z.ZodBoolean>;
196
+ } & {
197
+ authorizationKind: z.ZodLiteral<"self">;
198
+ }, "strip", z.ZodTypeAny, {
199
+ toAddress: string;
200
+ authorizationKind: "self";
201
+ claimedRecipientReference?: string | undefined;
202
+ mismatch?: {
203
+ claimedRecipientReference: string;
204
+ canonicalContactId: string;
205
+ canonicalContactName: string;
206
+ } | undefined;
207
+ blocked?: boolean | undefined;
208
+ }, {
209
+ toAddress: string;
210
+ authorizationKind: "self";
211
+ claimedRecipientReference?: string | undefined;
212
+ mismatch?: {
213
+ claimedRecipientReference: string;
214
+ canonicalContactId: string;
215
+ canonicalContactName: string;
216
+ } | undefined;
217
+ blocked?: boolean | undefined;
218
+ }>, z.ZodObject<{
219
+ toAddress: z.ZodString;
220
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
221
+ mismatch: z.ZodOptional<z.ZodObject<{
222
+ claimedRecipientReference: z.ZodString;
223
+ canonicalContactId: z.ZodString;
224
+ canonicalContactName: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ claimedRecipientReference: string;
227
+ canonicalContactId: string;
228
+ canonicalContactName: string;
229
+ }, {
230
+ claimedRecipientReference: string;
231
+ canonicalContactId: string;
232
+ canonicalContactName: string;
233
+ }>>;
234
+ blocked: z.ZodOptional<z.ZodBoolean>;
235
+ } & {
236
+ authorizationKind: z.ZodLiteral<"contact">;
237
+ contactId: z.ZodString;
238
+ contactName: z.ZodString;
239
+ }, "strip", z.ZodTypeAny, {
240
+ toAddress: string;
241
+ authorizationKind: "contact";
242
+ contactId: string;
243
+ contactName: string;
244
+ claimedRecipientReference?: string | undefined;
245
+ mismatch?: {
246
+ claimedRecipientReference: string;
247
+ canonicalContactId: string;
248
+ canonicalContactName: string;
249
+ } | undefined;
250
+ blocked?: boolean | undefined;
251
+ }, {
252
+ toAddress: string;
253
+ authorizationKind: "contact";
254
+ contactId: string;
255
+ contactName: string;
256
+ claimedRecipientReference?: string | undefined;
257
+ mismatch?: {
258
+ claimedRecipientReference: string;
259
+ canonicalContactId: string;
260
+ canonicalContactName: string;
261
+ } | undefined;
262
+ blocked?: boolean | undefined;
263
+ }>]>>;
264
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
265
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
266
+ toAddress: z.ZodString;
267
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
268
+ mismatch: z.ZodOptional<z.ZodObject<{
269
+ claimedRecipientReference: z.ZodString;
270
+ canonicalContactId: z.ZodString;
271
+ canonicalContactName: z.ZodString;
272
+ }, "strip", z.ZodTypeAny, {
273
+ claimedRecipientReference: string;
274
+ canonicalContactId: string;
275
+ canonicalContactName: string;
276
+ }, {
277
+ claimedRecipientReference: string;
278
+ canonicalContactId: string;
279
+ canonicalContactName: string;
280
+ }>>;
281
+ blocked: z.ZodOptional<z.ZodBoolean>;
282
+ } & {
283
+ authorizationKind: z.ZodLiteral<"self">;
284
+ }, "strip", z.ZodTypeAny, {
285
+ toAddress: string;
286
+ authorizationKind: "self";
287
+ claimedRecipientReference?: string | undefined;
288
+ mismatch?: {
289
+ claimedRecipientReference: string;
290
+ canonicalContactId: string;
291
+ canonicalContactName: string;
292
+ } | undefined;
293
+ blocked?: boolean | undefined;
294
+ }, {
295
+ toAddress: string;
296
+ authorizationKind: "self";
297
+ claimedRecipientReference?: string | undefined;
298
+ mismatch?: {
299
+ claimedRecipientReference: string;
300
+ canonicalContactId: string;
301
+ canonicalContactName: string;
302
+ } | undefined;
303
+ blocked?: boolean | undefined;
304
+ }>, z.ZodObject<{
305
+ toAddress: z.ZodString;
306
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
307
+ mismatch: z.ZodOptional<z.ZodObject<{
308
+ claimedRecipientReference: z.ZodString;
309
+ canonicalContactId: z.ZodString;
310
+ canonicalContactName: z.ZodString;
311
+ }, "strip", z.ZodTypeAny, {
312
+ claimedRecipientReference: string;
313
+ canonicalContactId: string;
314
+ canonicalContactName: string;
315
+ }, {
316
+ claimedRecipientReference: string;
317
+ canonicalContactId: string;
318
+ canonicalContactName: string;
319
+ }>>;
320
+ blocked: z.ZodOptional<z.ZodBoolean>;
321
+ } & {
322
+ authorizationKind: z.ZodLiteral<"contact">;
323
+ contactId: z.ZodString;
324
+ contactName: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ toAddress: string;
327
+ authorizationKind: "contact";
328
+ contactId: string;
329
+ contactName: string;
330
+ claimedRecipientReference?: string | undefined;
331
+ mismatch?: {
332
+ claimedRecipientReference: string;
333
+ canonicalContactId: string;
334
+ canonicalContactName: string;
335
+ } | undefined;
336
+ blocked?: boolean | undefined;
337
+ }, {
338
+ toAddress: string;
339
+ authorizationKind: "contact";
340
+ contactId: string;
341
+ contactName: string;
342
+ claimedRecipientReference?: string | undefined;
343
+ mismatch?: {
344
+ claimedRecipientReference: string;
345
+ canonicalContactId: string;
346
+ canonicalContactName: string;
347
+ } | undefined;
348
+ blocked?: boolean | undefined;
349
+ }>]>>;
350
+ }, z.ZodUnknown, "strip">>>;
351
+ hmac: z.ZodOptional<z.ZodString>;
352
+ } & {
353
+ signMethod: z.ZodLiteral<"typedData">;
354
+ typedData: z.ZodObject<{
355
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
356
+ name: z.ZodString;
357
+ type: z.ZodString;
358
+ }, "strip", z.ZodTypeAny, {
359
+ type: string;
360
+ name: string;
361
+ }, {
362
+ type: string;
363
+ name: string;
364
+ }>, "many">>;
365
+ domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
366
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
367
+ primaryType: z.ZodString;
368
+ }, "strip", z.ZodTypeAny, {
369
+ message: Record<string, unknown>;
370
+ types: Record<string, {
371
+ type: string;
372
+ name: string;
373
+ }[]>;
374
+ domain: Record<string, unknown>;
375
+ primaryType: string;
376
+ }, {
377
+ message: Record<string, unknown>;
378
+ types: Record<string, {
379
+ type: string;
380
+ name: string;
381
+ }[]>;
382
+ domain: Record<string, unknown>;
383
+ primaryType: string;
384
+ }>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ id: string;
387
+ signerAddress: string;
388
+ signMethod: "typedData";
389
+ typedData: {
390
+ message: Record<string, unknown>;
391
+ types: Record<string, {
392
+ type: string;
393
+ name: string;
394
+ }[]>;
395
+ domain: Record<string, unknown>;
396
+ primaryType: string;
397
+ };
398
+ description?: string | undefined;
399
+ metadata?: z.objectOutputType<{
400
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
401
+ toAddress: z.ZodString;
402
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
403
+ mismatch: z.ZodOptional<z.ZodObject<{
404
+ claimedRecipientReference: z.ZodString;
405
+ canonicalContactId: z.ZodString;
406
+ canonicalContactName: z.ZodString;
407
+ }, "strip", z.ZodTypeAny, {
408
+ claimedRecipientReference: string;
409
+ canonicalContactId: string;
410
+ canonicalContactName: string;
411
+ }, {
412
+ claimedRecipientReference: string;
413
+ canonicalContactId: string;
414
+ canonicalContactName: string;
415
+ }>>;
416
+ blocked: z.ZodOptional<z.ZodBoolean>;
417
+ } & {
418
+ authorizationKind: z.ZodLiteral<"self">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ toAddress: string;
421
+ authorizationKind: "self";
422
+ claimedRecipientReference?: string | undefined;
423
+ mismatch?: {
424
+ claimedRecipientReference: string;
425
+ canonicalContactId: string;
426
+ canonicalContactName: string;
427
+ } | undefined;
428
+ blocked?: boolean | undefined;
429
+ }, {
430
+ toAddress: string;
431
+ authorizationKind: "self";
432
+ claimedRecipientReference?: string | undefined;
433
+ mismatch?: {
434
+ claimedRecipientReference: string;
435
+ canonicalContactId: string;
436
+ canonicalContactName: string;
437
+ } | undefined;
438
+ blocked?: boolean | undefined;
439
+ }>, z.ZodObject<{
440
+ toAddress: z.ZodString;
441
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
442
+ mismatch: z.ZodOptional<z.ZodObject<{
443
+ claimedRecipientReference: z.ZodString;
444
+ canonicalContactId: z.ZodString;
445
+ canonicalContactName: z.ZodString;
446
+ }, "strip", z.ZodTypeAny, {
447
+ claimedRecipientReference: string;
448
+ canonicalContactId: string;
449
+ canonicalContactName: string;
450
+ }, {
451
+ claimedRecipientReference: string;
452
+ canonicalContactId: string;
453
+ canonicalContactName: string;
454
+ }>>;
455
+ blocked: z.ZodOptional<z.ZodBoolean>;
456
+ } & {
457
+ authorizationKind: z.ZodLiteral<"contact">;
458
+ contactId: z.ZodString;
459
+ contactName: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ toAddress: string;
462
+ authorizationKind: "contact";
463
+ contactId: string;
464
+ contactName: string;
465
+ claimedRecipientReference?: string | undefined;
466
+ mismatch?: {
467
+ claimedRecipientReference: string;
468
+ canonicalContactId: string;
469
+ canonicalContactName: string;
470
+ } | undefined;
471
+ blocked?: boolean | undefined;
472
+ }, {
473
+ toAddress: string;
474
+ authorizationKind: "contact";
475
+ contactId: string;
476
+ contactName: string;
477
+ claimedRecipientReference?: string | undefined;
478
+ mismatch?: {
479
+ claimedRecipientReference: string;
480
+ canonicalContactId: string;
481
+ canonicalContactName: string;
482
+ } | undefined;
483
+ blocked?: boolean | undefined;
484
+ }>]>>;
485
+ }, z.ZodUnknown, "strip"> | undefined;
486
+ hmac?: string | undefined;
487
+ }, {
488
+ id: string;
489
+ signerAddress: string;
490
+ signMethod: "typedData";
491
+ typedData: {
492
+ message: Record<string, unknown>;
493
+ types: Record<string, {
494
+ type: string;
495
+ name: string;
496
+ }[]>;
497
+ domain: Record<string, unknown>;
498
+ primaryType: string;
499
+ };
500
+ description?: string | undefined;
501
+ metadata?: z.objectInputType<{
502
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
503
+ toAddress: z.ZodString;
504
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
505
+ mismatch: z.ZodOptional<z.ZodObject<{
506
+ claimedRecipientReference: z.ZodString;
507
+ canonicalContactId: z.ZodString;
508
+ canonicalContactName: z.ZodString;
509
+ }, "strip", z.ZodTypeAny, {
510
+ claimedRecipientReference: string;
511
+ canonicalContactId: string;
512
+ canonicalContactName: string;
513
+ }, {
514
+ claimedRecipientReference: string;
515
+ canonicalContactId: string;
516
+ canonicalContactName: string;
517
+ }>>;
518
+ blocked: z.ZodOptional<z.ZodBoolean>;
519
+ } & {
520
+ authorizationKind: z.ZodLiteral<"self">;
521
+ }, "strip", z.ZodTypeAny, {
522
+ toAddress: string;
523
+ authorizationKind: "self";
524
+ claimedRecipientReference?: string | undefined;
525
+ mismatch?: {
526
+ claimedRecipientReference: string;
527
+ canonicalContactId: string;
528
+ canonicalContactName: string;
529
+ } | undefined;
530
+ blocked?: boolean | undefined;
531
+ }, {
532
+ toAddress: string;
533
+ authorizationKind: "self";
534
+ claimedRecipientReference?: string | undefined;
535
+ mismatch?: {
536
+ claimedRecipientReference: string;
537
+ canonicalContactId: string;
538
+ canonicalContactName: string;
539
+ } | undefined;
540
+ blocked?: boolean | undefined;
541
+ }>, z.ZodObject<{
542
+ toAddress: z.ZodString;
543
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
544
+ mismatch: z.ZodOptional<z.ZodObject<{
545
+ claimedRecipientReference: z.ZodString;
546
+ canonicalContactId: z.ZodString;
547
+ canonicalContactName: z.ZodString;
548
+ }, "strip", z.ZodTypeAny, {
549
+ claimedRecipientReference: string;
550
+ canonicalContactId: string;
551
+ canonicalContactName: string;
552
+ }, {
553
+ claimedRecipientReference: string;
554
+ canonicalContactId: string;
555
+ canonicalContactName: string;
556
+ }>>;
557
+ blocked: z.ZodOptional<z.ZodBoolean>;
558
+ } & {
559
+ authorizationKind: z.ZodLiteral<"contact">;
560
+ contactId: z.ZodString;
561
+ contactName: z.ZodString;
562
+ }, "strip", z.ZodTypeAny, {
563
+ toAddress: string;
564
+ authorizationKind: "contact";
565
+ contactId: string;
566
+ contactName: string;
567
+ claimedRecipientReference?: string | undefined;
568
+ mismatch?: {
569
+ claimedRecipientReference: string;
570
+ canonicalContactId: string;
571
+ canonicalContactName: string;
572
+ } | undefined;
573
+ blocked?: boolean | undefined;
574
+ }, {
575
+ toAddress: string;
576
+ authorizationKind: "contact";
577
+ contactId: string;
578
+ contactName: string;
579
+ claimedRecipientReference?: string | undefined;
580
+ mismatch?: {
581
+ claimedRecipientReference: string;
582
+ canonicalContactId: string;
583
+ canonicalContactName: string;
584
+ } | undefined;
585
+ blocked?: boolean | undefined;
586
+ }>]>>;
587
+ }, z.ZodUnknown, "strip"> | undefined;
588
+ hmac?: string | undefined;
589
+ }>, z.ZodObject<{
590
+ id: z.ZodString;
591
+ signerAddress: z.ZodString;
592
+ description: z.ZodOptional<z.ZodString>;
593
+ metadata: z.ZodOptional<z.ZodObject<{
594
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
595
+ toAddress: z.ZodString;
596
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
597
+ mismatch: z.ZodOptional<z.ZodObject<{
598
+ claimedRecipientReference: z.ZodString;
599
+ canonicalContactId: z.ZodString;
600
+ canonicalContactName: z.ZodString;
601
+ }, "strip", z.ZodTypeAny, {
602
+ claimedRecipientReference: string;
603
+ canonicalContactId: string;
604
+ canonicalContactName: string;
605
+ }, {
606
+ claimedRecipientReference: string;
607
+ canonicalContactId: string;
608
+ canonicalContactName: string;
609
+ }>>;
610
+ blocked: z.ZodOptional<z.ZodBoolean>;
611
+ } & {
612
+ authorizationKind: z.ZodLiteral<"self">;
613
+ }, "strip", z.ZodTypeAny, {
614
+ toAddress: string;
615
+ authorizationKind: "self";
616
+ claimedRecipientReference?: string | undefined;
617
+ mismatch?: {
618
+ claimedRecipientReference: string;
619
+ canonicalContactId: string;
620
+ canonicalContactName: string;
621
+ } | undefined;
622
+ blocked?: boolean | undefined;
623
+ }, {
624
+ toAddress: string;
625
+ authorizationKind: "self";
626
+ claimedRecipientReference?: string | undefined;
627
+ mismatch?: {
628
+ claimedRecipientReference: string;
629
+ canonicalContactId: string;
630
+ canonicalContactName: string;
631
+ } | undefined;
632
+ blocked?: boolean | undefined;
633
+ }>, z.ZodObject<{
634
+ toAddress: z.ZodString;
635
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
636
+ mismatch: z.ZodOptional<z.ZodObject<{
637
+ claimedRecipientReference: z.ZodString;
638
+ canonicalContactId: z.ZodString;
639
+ canonicalContactName: z.ZodString;
640
+ }, "strip", z.ZodTypeAny, {
641
+ claimedRecipientReference: string;
642
+ canonicalContactId: string;
643
+ canonicalContactName: string;
644
+ }, {
645
+ claimedRecipientReference: string;
646
+ canonicalContactId: string;
647
+ canonicalContactName: string;
648
+ }>>;
649
+ blocked: z.ZodOptional<z.ZodBoolean>;
650
+ } & {
651
+ authorizationKind: z.ZodLiteral<"contact">;
652
+ contactId: z.ZodString;
653
+ contactName: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ toAddress: string;
656
+ authorizationKind: "contact";
657
+ contactId: string;
658
+ contactName: string;
659
+ claimedRecipientReference?: string | undefined;
660
+ mismatch?: {
661
+ claimedRecipientReference: string;
662
+ canonicalContactId: string;
663
+ canonicalContactName: string;
664
+ } | undefined;
665
+ blocked?: boolean | undefined;
666
+ }, {
667
+ toAddress: string;
668
+ authorizationKind: "contact";
669
+ contactId: string;
670
+ contactName: string;
671
+ claimedRecipientReference?: string | undefined;
672
+ mismatch?: {
673
+ claimedRecipientReference: string;
674
+ canonicalContactId: string;
675
+ canonicalContactName: string;
676
+ } | undefined;
677
+ blocked?: boolean | undefined;
678
+ }>]>>;
679
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
680
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
681
+ toAddress: z.ZodString;
682
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
683
+ mismatch: z.ZodOptional<z.ZodObject<{
684
+ claimedRecipientReference: z.ZodString;
685
+ canonicalContactId: z.ZodString;
686
+ canonicalContactName: z.ZodString;
687
+ }, "strip", z.ZodTypeAny, {
688
+ claimedRecipientReference: string;
689
+ canonicalContactId: string;
690
+ canonicalContactName: string;
691
+ }, {
692
+ claimedRecipientReference: string;
693
+ canonicalContactId: string;
694
+ canonicalContactName: string;
695
+ }>>;
696
+ blocked: z.ZodOptional<z.ZodBoolean>;
697
+ } & {
698
+ authorizationKind: z.ZodLiteral<"self">;
699
+ }, "strip", z.ZodTypeAny, {
700
+ toAddress: string;
701
+ authorizationKind: "self";
702
+ claimedRecipientReference?: string | undefined;
703
+ mismatch?: {
704
+ claimedRecipientReference: string;
705
+ canonicalContactId: string;
706
+ canonicalContactName: string;
707
+ } | undefined;
708
+ blocked?: boolean | undefined;
709
+ }, {
710
+ toAddress: string;
711
+ authorizationKind: "self";
712
+ claimedRecipientReference?: string | undefined;
713
+ mismatch?: {
714
+ claimedRecipientReference: string;
715
+ canonicalContactId: string;
716
+ canonicalContactName: string;
717
+ } | undefined;
718
+ blocked?: boolean | undefined;
719
+ }>, z.ZodObject<{
720
+ toAddress: z.ZodString;
721
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
722
+ mismatch: z.ZodOptional<z.ZodObject<{
723
+ claimedRecipientReference: z.ZodString;
724
+ canonicalContactId: z.ZodString;
725
+ canonicalContactName: z.ZodString;
726
+ }, "strip", z.ZodTypeAny, {
727
+ claimedRecipientReference: string;
728
+ canonicalContactId: string;
729
+ canonicalContactName: string;
730
+ }, {
731
+ claimedRecipientReference: string;
732
+ canonicalContactId: string;
733
+ canonicalContactName: string;
734
+ }>>;
735
+ blocked: z.ZodOptional<z.ZodBoolean>;
736
+ } & {
737
+ authorizationKind: z.ZodLiteral<"contact">;
738
+ contactId: z.ZodString;
739
+ contactName: z.ZodString;
740
+ }, "strip", z.ZodTypeAny, {
741
+ toAddress: string;
742
+ authorizationKind: "contact";
743
+ contactId: string;
744
+ contactName: string;
745
+ claimedRecipientReference?: string | undefined;
746
+ mismatch?: {
747
+ claimedRecipientReference: string;
748
+ canonicalContactId: string;
749
+ canonicalContactName: string;
750
+ } | undefined;
751
+ blocked?: boolean | undefined;
752
+ }, {
753
+ toAddress: string;
754
+ authorizationKind: "contact";
755
+ contactId: string;
756
+ contactName: string;
757
+ claimedRecipientReference?: string | undefined;
758
+ mismatch?: {
759
+ claimedRecipientReference: string;
760
+ canonicalContactId: string;
761
+ canonicalContactName: string;
762
+ } | undefined;
763
+ blocked?: boolean | undefined;
764
+ }>]>>;
765
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
766
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
767
+ toAddress: z.ZodString;
768
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
769
+ mismatch: z.ZodOptional<z.ZodObject<{
770
+ claimedRecipientReference: z.ZodString;
771
+ canonicalContactId: z.ZodString;
772
+ canonicalContactName: z.ZodString;
773
+ }, "strip", z.ZodTypeAny, {
774
+ claimedRecipientReference: string;
775
+ canonicalContactId: string;
776
+ canonicalContactName: string;
777
+ }, {
778
+ claimedRecipientReference: string;
779
+ canonicalContactId: string;
780
+ canonicalContactName: string;
781
+ }>>;
782
+ blocked: z.ZodOptional<z.ZodBoolean>;
783
+ } & {
784
+ authorizationKind: z.ZodLiteral<"self">;
785
+ }, "strip", z.ZodTypeAny, {
786
+ toAddress: string;
787
+ authorizationKind: "self";
788
+ claimedRecipientReference?: string | undefined;
789
+ mismatch?: {
790
+ claimedRecipientReference: string;
791
+ canonicalContactId: string;
792
+ canonicalContactName: string;
793
+ } | undefined;
794
+ blocked?: boolean | undefined;
795
+ }, {
796
+ toAddress: string;
797
+ authorizationKind: "self";
798
+ claimedRecipientReference?: string | undefined;
799
+ mismatch?: {
800
+ claimedRecipientReference: string;
801
+ canonicalContactId: string;
802
+ canonicalContactName: string;
803
+ } | undefined;
804
+ blocked?: boolean | undefined;
805
+ }>, z.ZodObject<{
806
+ toAddress: z.ZodString;
807
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
808
+ mismatch: z.ZodOptional<z.ZodObject<{
809
+ claimedRecipientReference: z.ZodString;
810
+ canonicalContactId: z.ZodString;
811
+ canonicalContactName: z.ZodString;
812
+ }, "strip", z.ZodTypeAny, {
813
+ claimedRecipientReference: string;
814
+ canonicalContactId: string;
815
+ canonicalContactName: string;
816
+ }, {
817
+ claimedRecipientReference: string;
818
+ canonicalContactId: string;
819
+ canonicalContactName: string;
820
+ }>>;
821
+ blocked: z.ZodOptional<z.ZodBoolean>;
822
+ } & {
823
+ authorizationKind: z.ZodLiteral<"contact">;
824
+ contactId: z.ZodString;
825
+ contactName: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ toAddress: string;
828
+ authorizationKind: "contact";
829
+ contactId: string;
830
+ contactName: string;
831
+ claimedRecipientReference?: string | undefined;
832
+ mismatch?: {
833
+ claimedRecipientReference: string;
834
+ canonicalContactId: string;
835
+ canonicalContactName: string;
836
+ } | undefined;
837
+ blocked?: boolean | undefined;
838
+ }, {
839
+ toAddress: string;
840
+ authorizationKind: "contact";
841
+ contactId: string;
842
+ contactName: string;
843
+ claimedRecipientReference?: string | undefined;
844
+ mismatch?: {
845
+ claimedRecipientReference: string;
846
+ canonicalContactId: string;
847
+ canonicalContactName: string;
848
+ } | undefined;
849
+ blocked?: boolean | undefined;
850
+ }>]>>;
851
+ }, z.ZodUnknown, "strip">>>;
852
+ hmac: z.ZodOptional<z.ZodString>;
853
+ } & {
854
+ signMethod: z.ZodLiteral<"message">;
855
+ rawHash: z.ZodString;
856
+ }, "strip", z.ZodTypeAny, {
857
+ id: string;
858
+ signerAddress: string;
859
+ signMethod: "message";
860
+ rawHash: string;
861
+ description?: string | undefined;
862
+ metadata?: z.objectOutputType<{
863
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
864
+ toAddress: z.ZodString;
865
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
866
+ mismatch: z.ZodOptional<z.ZodObject<{
867
+ claimedRecipientReference: z.ZodString;
868
+ canonicalContactId: z.ZodString;
869
+ canonicalContactName: z.ZodString;
870
+ }, "strip", z.ZodTypeAny, {
871
+ claimedRecipientReference: string;
872
+ canonicalContactId: string;
873
+ canonicalContactName: string;
874
+ }, {
875
+ claimedRecipientReference: string;
876
+ canonicalContactId: string;
877
+ canonicalContactName: string;
878
+ }>>;
879
+ blocked: z.ZodOptional<z.ZodBoolean>;
880
+ } & {
881
+ authorizationKind: z.ZodLiteral<"self">;
882
+ }, "strip", z.ZodTypeAny, {
883
+ toAddress: string;
884
+ authorizationKind: "self";
885
+ claimedRecipientReference?: string | undefined;
886
+ mismatch?: {
887
+ claimedRecipientReference: string;
888
+ canonicalContactId: string;
889
+ canonicalContactName: string;
890
+ } | undefined;
891
+ blocked?: boolean | undefined;
892
+ }, {
893
+ toAddress: string;
894
+ authorizationKind: "self";
895
+ claimedRecipientReference?: string | undefined;
896
+ mismatch?: {
897
+ claimedRecipientReference: string;
898
+ canonicalContactId: string;
899
+ canonicalContactName: string;
900
+ } | undefined;
901
+ blocked?: boolean | undefined;
902
+ }>, z.ZodObject<{
903
+ toAddress: z.ZodString;
904
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
905
+ mismatch: z.ZodOptional<z.ZodObject<{
906
+ claimedRecipientReference: z.ZodString;
907
+ canonicalContactId: z.ZodString;
908
+ canonicalContactName: z.ZodString;
909
+ }, "strip", z.ZodTypeAny, {
910
+ claimedRecipientReference: string;
911
+ canonicalContactId: string;
912
+ canonicalContactName: string;
913
+ }, {
914
+ claimedRecipientReference: string;
915
+ canonicalContactId: string;
916
+ canonicalContactName: string;
917
+ }>>;
918
+ blocked: z.ZodOptional<z.ZodBoolean>;
919
+ } & {
920
+ authorizationKind: z.ZodLiteral<"contact">;
921
+ contactId: z.ZodString;
922
+ contactName: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ toAddress: string;
925
+ authorizationKind: "contact";
926
+ contactId: string;
927
+ contactName: string;
928
+ claimedRecipientReference?: string | undefined;
929
+ mismatch?: {
930
+ claimedRecipientReference: string;
931
+ canonicalContactId: string;
932
+ canonicalContactName: string;
933
+ } | undefined;
934
+ blocked?: boolean | undefined;
935
+ }, {
936
+ toAddress: string;
937
+ authorizationKind: "contact";
938
+ contactId: string;
939
+ contactName: string;
940
+ claimedRecipientReference?: string | undefined;
941
+ mismatch?: {
942
+ claimedRecipientReference: string;
943
+ canonicalContactId: string;
944
+ canonicalContactName: string;
945
+ } | undefined;
946
+ blocked?: boolean | undefined;
947
+ }>]>>;
948
+ }, z.ZodUnknown, "strip"> | undefined;
949
+ hmac?: string | undefined;
950
+ }, {
951
+ id: string;
952
+ signerAddress: string;
953
+ signMethod: "message";
954
+ rawHash: string;
955
+ description?: string | undefined;
956
+ metadata?: z.objectInputType<{
957
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
958
+ toAddress: z.ZodString;
959
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
960
+ mismatch: z.ZodOptional<z.ZodObject<{
961
+ claimedRecipientReference: z.ZodString;
962
+ canonicalContactId: z.ZodString;
963
+ canonicalContactName: z.ZodString;
964
+ }, "strip", z.ZodTypeAny, {
965
+ claimedRecipientReference: string;
966
+ canonicalContactId: string;
967
+ canonicalContactName: string;
968
+ }, {
969
+ claimedRecipientReference: string;
970
+ canonicalContactId: string;
971
+ canonicalContactName: string;
972
+ }>>;
973
+ blocked: z.ZodOptional<z.ZodBoolean>;
974
+ } & {
975
+ authorizationKind: z.ZodLiteral<"self">;
976
+ }, "strip", z.ZodTypeAny, {
977
+ toAddress: string;
978
+ authorizationKind: "self";
979
+ claimedRecipientReference?: string | undefined;
980
+ mismatch?: {
981
+ claimedRecipientReference: string;
982
+ canonicalContactId: string;
983
+ canonicalContactName: string;
984
+ } | undefined;
985
+ blocked?: boolean | undefined;
986
+ }, {
987
+ toAddress: string;
988
+ authorizationKind: "self";
989
+ claimedRecipientReference?: string | undefined;
990
+ mismatch?: {
991
+ claimedRecipientReference: string;
992
+ canonicalContactId: string;
993
+ canonicalContactName: string;
994
+ } | undefined;
995
+ blocked?: boolean | undefined;
996
+ }>, z.ZodObject<{
997
+ toAddress: z.ZodString;
998
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
999
+ mismatch: z.ZodOptional<z.ZodObject<{
1000
+ claimedRecipientReference: z.ZodString;
1001
+ canonicalContactId: z.ZodString;
1002
+ canonicalContactName: z.ZodString;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ claimedRecipientReference: string;
1005
+ canonicalContactId: string;
1006
+ canonicalContactName: string;
1007
+ }, {
1008
+ claimedRecipientReference: string;
1009
+ canonicalContactId: string;
1010
+ canonicalContactName: string;
1011
+ }>>;
1012
+ blocked: z.ZodOptional<z.ZodBoolean>;
1013
+ } & {
1014
+ authorizationKind: z.ZodLiteral<"contact">;
1015
+ contactId: z.ZodString;
1016
+ contactName: z.ZodString;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ toAddress: string;
1019
+ authorizationKind: "contact";
1020
+ contactId: string;
1021
+ contactName: string;
1022
+ claimedRecipientReference?: string | undefined;
1023
+ mismatch?: {
1024
+ claimedRecipientReference: string;
1025
+ canonicalContactId: string;
1026
+ canonicalContactName: string;
1027
+ } | undefined;
1028
+ blocked?: boolean | undefined;
1029
+ }, {
1030
+ toAddress: string;
1031
+ authorizationKind: "contact";
1032
+ contactId: string;
1033
+ contactName: string;
1034
+ claimedRecipientReference?: string | undefined;
1035
+ mismatch?: {
1036
+ claimedRecipientReference: string;
1037
+ canonicalContactId: string;
1038
+ canonicalContactName: string;
1039
+ } | undefined;
1040
+ blocked?: boolean | undefined;
1041
+ }>]>>;
1042
+ }, z.ZodUnknown, "strip"> | undefined;
1043
+ hmac?: string | undefined;
1044
+ }>]>;
1045
+ }, "strip", z.ZodTypeAny, {
1046
+ nonce: number;
1047
+ action: Record<string, unknown>;
1048
+ network: "testnet" | "mainnet";
1049
+ signatureRequest: {
1050
+ id: string;
1051
+ signerAddress: string;
1052
+ signMethod: "typedData";
1053
+ typedData: {
1054
+ message: Record<string, unknown>;
1055
+ types: Record<string, {
1056
+ type: string;
1057
+ name: string;
1058
+ }[]>;
1059
+ domain: Record<string, unknown>;
1060
+ primaryType: string;
1061
+ };
1062
+ description?: string | undefined;
1063
+ metadata?: z.objectOutputType<{
1064
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1065
+ toAddress: z.ZodString;
1066
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1067
+ mismatch: z.ZodOptional<z.ZodObject<{
1068
+ claimedRecipientReference: z.ZodString;
1069
+ canonicalContactId: z.ZodString;
1070
+ canonicalContactName: z.ZodString;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ claimedRecipientReference: string;
1073
+ canonicalContactId: string;
1074
+ canonicalContactName: string;
1075
+ }, {
1076
+ claimedRecipientReference: string;
1077
+ canonicalContactId: string;
1078
+ canonicalContactName: string;
1079
+ }>>;
1080
+ blocked: z.ZodOptional<z.ZodBoolean>;
1081
+ } & {
1082
+ authorizationKind: z.ZodLiteral<"self">;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ toAddress: string;
1085
+ authorizationKind: "self";
1086
+ claimedRecipientReference?: string | undefined;
1087
+ mismatch?: {
1088
+ claimedRecipientReference: string;
1089
+ canonicalContactId: string;
1090
+ canonicalContactName: string;
1091
+ } | undefined;
1092
+ blocked?: boolean | undefined;
1093
+ }, {
1094
+ toAddress: string;
1095
+ authorizationKind: "self";
1096
+ claimedRecipientReference?: string | undefined;
1097
+ mismatch?: {
1098
+ claimedRecipientReference: string;
1099
+ canonicalContactId: string;
1100
+ canonicalContactName: string;
1101
+ } | undefined;
1102
+ blocked?: boolean | undefined;
1103
+ }>, z.ZodObject<{
1104
+ toAddress: z.ZodString;
1105
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1106
+ mismatch: z.ZodOptional<z.ZodObject<{
1107
+ claimedRecipientReference: z.ZodString;
1108
+ canonicalContactId: z.ZodString;
1109
+ canonicalContactName: z.ZodString;
1110
+ }, "strip", z.ZodTypeAny, {
1111
+ claimedRecipientReference: string;
1112
+ canonicalContactId: string;
1113
+ canonicalContactName: string;
1114
+ }, {
1115
+ claimedRecipientReference: string;
1116
+ canonicalContactId: string;
1117
+ canonicalContactName: string;
1118
+ }>>;
1119
+ blocked: z.ZodOptional<z.ZodBoolean>;
1120
+ } & {
1121
+ authorizationKind: z.ZodLiteral<"contact">;
1122
+ contactId: z.ZodString;
1123
+ contactName: z.ZodString;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ toAddress: string;
1126
+ authorizationKind: "contact";
1127
+ contactId: string;
1128
+ contactName: string;
1129
+ claimedRecipientReference?: string | undefined;
1130
+ mismatch?: {
1131
+ claimedRecipientReference: string;
1132
+ canonicalContactId: string;
1133
+ canonicalContactName: string;
1134
+ } | undefined;
1135
+ blocked?: boolean | undefined;
1136
+ }, {
1137
+ toAddress: string;
1138
+ authorizationKind: "contact";
1139
+ contactId: string;
1140
+ contactName: string;
1141
+ claimedRecipientReference?: string | undefined;
1142
+ mismatch?: {
1143
+ claimedRecipientReference: string;
1144
+ canonicalContactId: string;
1145
+ canonicalContactName: string;
1146
+ } | undefined;
1147
+ blocked?: boolean | undefined;
1148
+ }>]>>;
1149
+ }, z.ZodUnknown, "strip"> | undefined;
1150
+ hmac?: string | undefined;
1151
+ } | {
1152
+ id: string;
1153
+ signerAddress: string;
1154
+ signMethod: "message";
1155
+ rawHash: string;
1156
+ description?: string | undefined;
1157
+ metadata?: z.objectOutputType<{
1158
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1159
+ toAddress: z.ZodString;
1160
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1161
+ mismatch: z.ZodOptional<z.ZodObject<{
1162
+ claimedRecipientReference: z.ZodString;
1163
+ canonicalContactId: z.ZodString;
1164
+ canonicalContactName: z.ZodString;
1165
+ }, "strip", z.ZodTypeAny, {
1166
+ claimedRecipientReference: string;
1167
+ canonicalContactId: string;
1168
+ canonicalContactName: string;
1169
+ }, {
1170
+ claimedRecipientReference: string;
1171
+ canonicalContactId: string;
1172
+ canonicalContactName: string;
1173
+ }>>;
1174
+ blocked: z.ZodOptional<z.ZodBoolean>;
1175
+ } & {
1176
+ authorizationKind: z.ZodLiteral<"self">;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ toAddress: string;
1179
+ authorizationKind: "self";
1180
+ claimedRecipientReference?: string | undefined;
1181
+ mismatch?: {
1182
+ claimedRecipientReference: string;
1183
+ canonicalContactId: string;
1184
+ canonicalContactName: string;
1185
+ } | undefined;
1186
+ blocked?: boolean | undefined;
1187
+ }, {
1188
+ toAddress: string;
1189
+ authorizationKind: "self";
1190
+ claimedRecipientReference?: string | undefined;
1191
+ mismatch?: {
1192
+ claimedRecipientReference: string;
1193
+ canonicalContactId: string;
1194
+ canonicalContactName: string;
1195
+ } | undefined;
1196
+ blocked?: boolean | undefined;
1197
+ }>, z.ZodObject<{
1198
+ toAddress: z.ZodString;
1199
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1200
+ mismatch: z.ZodOptional<z.ZodObject<{
1201
+ claimedRecipientReference: z.ZodString;
1202
+ canonicalContactId: z.ZodString;
1203
+ canonicalContactName: z.ZodString;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ claimedRecipientReference: string;
1206
+ canonicalContactId: string;
1207
+ canonicalContactName: string;
1208
+ }, {
1209
+ claimedRecipientReference: string;
1210
+ canonicalContactId: string;
1211
+ canonicalContactName: string;
1212
+ }>>;
1213
+ blocked: z.ZodOptional<z.ZodBoolean>;
1214
+ } & {
1215
+ authorizationKind: z.ZodLiteral<"contact">;
1216
+ contactId: z.ZodString;
1217
+ contactName: z.ZodString;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ toAddress: string;
1220
+ authorizationKind: "contact";
1221
+ contactId: string;
1222
+ contactName: string;
1223
+ claimedRecipientReference?: string | undefined;
1224
+ mismatch?: {
1225
+ claimedRecipientReference: string;
1226
+ canonicalContactId: string;
1227
+ canonicalContactName: string;
1228
+ } | undefined;
1229
+ blocked?: boolean | undefined;
1230
+ }, {
1231
+ toAddress: string;
1232
+ authorizationKind: "contact";
1233
+ contactId: string;
1234
+ contactName: string;
1235
+ claimedRecipientReference?: string | undefined;
1236
+ mismatch?: {
1237
+ claimedRecipientReference: string;
1238
+ canonicalContactId: string;
1239
+ canonicalContactName: string;
1240
+ } | undefined;
1241
+ blocked?: boolean | undefined;
1242
+ }>]>>;
1243
+ }, z.ZodUnknown, "strip"> | undefined;
1244
+ hmac?: string | undefined;
1245
+ };
1246
+ }, {
1247
+ nonce: number;
1248
+ action: Record<string, unknown>;
1249
+ network: "testnet" | "mainnet";
1250
+ signatureRequest: {
1251
+ id: string;
1252
+ signerAddress: string;
1253
+ signMethod: "typedData";
1254
+ typedData: {
1255
+ message: Record<string, unknown>;
1256
+ types: Record<string, {
1257
+ type: string;
1258
+ name: string;
1259
+ }[]>;
1260
+ domain: Record<string, unknown>;
1261
+ primaryType: string;
1262
+ };
1263
+ description?: string | undefined;
1264
+ metadata?: z.objectInputType<{
1265
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1266
+ toAddress: z.ZodString;
1267
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1268
+ mismatch: z.ZodOptional<z.ZodObject<{
1269
+ claimedRecipientReference: z.ZodString;
1270
+ canonicalContactId: z.ZodString;
1271
+ canonicalContactName: z.ZodString;
1272
+ }, "strip", z.ZodTypeAny, {
1273
+ claimedRecipientReference: string;
1274
+ canonicalContactId: string;
1275
+ canonicalContactName: string;
1276
+ }, {
1277
+ claimedRecipientReference: string;
1278
+ canonicalContactId: string;
1279
+ canonicalContactName: string;
1280
+ }>>;
1281
+ blocked: z.ZodOptional<z.ZodBoolean>;
1282
+ } & {
1283
+ authorizationKind: z.ZodLiteral<"self">;
1284
+ }, "strip", z.ZodTypeAny, {
1285
+ toAddress: string;
1286
+ authorizationKind: "self";
1287
+ claimedRecipientReference?: string | undefined;
1288
+ mismatch?: {
1289
+ claimedRecipientReference: string;
1290
+ canonicalContactId: string;
1291
+ canonicalContactName: string;
1292
+ } | undefined;
1293
+ blocked?: boolean | undefined;
1294
+ }, {
1295
+ toAddress: string;
1296
+ authorizationKind: "self";
1297
+ claimedRecipientReference?: string | undefined;
1298
+ mismatch?: {
1299
+ claimedRecipientReference: string;
1300
+ canonicalContactId: string;
1301
+ canonicalContactName: string;
1302
+ } | undefined;
1303
+ blocked?: boolean | undefined;
1304
+ }>, z.ZodObject<{
1305
+ toAddress: z.ZodString;
1306
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1307
+ mismatch: z.ZodOptional<z.ZodObject<{
1308
+ claimedRecipientReference: z.ZodString;
1309
+ canonicalContactId: z.ZodString;
1310
+ canonicalContactName: z.ZodString;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ claimedRecipientReference: string;
1313
+ canonicalContactId: string;
1314
+ canonicalContactName: string;
1315
+ }, {
1316
+ claimedRecipientReference: string;
1317
+ canonicalContactId: string;
1318
+ canonicalContactName: string;
1319
+ }>>;
1320
+ blocked: z.ZodOptional<z.ZodBoolean>;
1321
+ } & {
1322
+ authorizationKind: z.ZodLiteral<"contact">;
1323
+ contactId: z.ZodString;
1324
+ contactName: z.ZodString;
1325
+ }, "strip", z.ZodTypeAny, {
1326
+ toAddress: string;
1327
+ authorizationKind: "contact";
1328
+ contactId: string;
1329
+ contactName: string;
1330
+ claimedRecipientReference?: string | undefined;
1331
+ mismatch?: {
1332
+ claimedRecipientReference: string;
1333
+ canonicalContactId: string;
1334
+ canonicalContactName: string;
1335
+ } | undefined;
1336
+ blocked?: boolean | undefined;
1337
+ }, {
1338
+ toAddress: string;
1339
+ authorizationKind: "contact";
1340
+ contactId: string;
1341
+ contactName: string;
1342
+ claimedRecipientReference?: string | undefined;
1343
+ mismatch?: {
1344
+ claimedRecipientReference: string;
1345
+ canonicalContactId: string;
1346
+ canonicalContactName: string;
1347
+ } | undefined;
1348
+ blocked?: boolean | undefined;
1349
+ }>]>>;
1350
+ }, z.ZodUnknown, "strip"> | undefined;
1351
+ hmac?: string | undefined;
1352
+ } | {
1353
+ id: string;
1354
+ signerAddress: string;
1355
+ signMethod: "message";
1356
+ rawHash: string;
1357
+ description?: string | undefined;
1358
+ metadata?: z.objectInputType<{
1359
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1360
+ toAddress: z.ZodString;
1361
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1362
+ mismatch: z.ZodOptional<z.ZodObject<{
1363
+ claimedRecipientReference: z.ZodString;
1364
+ canonicalContactId: z.ZodString;
1365
+ canonicalContactName: z.ZodString;
1366
+ }, "strip", z.ZodTypeAny, {
1367
+ claimedRecipientReference: string;
1368
+ canonicalContactId: string;
1369
+ canonicalContactName: string;
1370
+ }, {
1371
+ claimedRecipientReference: string;
1372
+ canonicalContactId: string;
1373
+ canonicalContactName: string;
1374
+ }>>;
1375
+ blocked: z.ZodOptional<z.ZodBoolean>;
1376
+ } & {
1377
+ authorizationKind: z.ZodLiteral<"self">;
1378
+ }, "strip", z.ZodTypeAny, {
1379
+ toAddress: string;
1380
+ authorizationKind: "self";
1381
+ claimedRecipientReference?: string | undefined;
1382
+ mismatch?: {
1383
+ claimedRecipientReference: string;
1384
+ canonicalContactId: string;
1385
+ canonicalContactName: string;
1386
+ } | undefined;
1387
+ blocked?: boolean | undefined;
1388
+ }, {
1389
+ toAddress: string;
1390
+ authorizationKind: "self";
1391
+ claimedRecipientReference?: string | undefined;
1392
+ mismatch?: {
1393
+ claimedRecipientReference: string;
1394
+ canonicalContactId: string;
1395
+ canonicalContactName: string;
1396
+ } | undefined;
1397
+ blocked?: boolean | undefined;
1398
+ }>, z.ZodObject<{
1399
+ toAddress: z.ZodString;
1400
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1401
+ mismatch: z.ZodOptional<z.ZodObject<{
1402
+ claimedRecipientReference: z.ZodString;
1403
+ canonicalContactId: z.ZodString;
1404
+ canonicalContactName: z.ZodString;
1405
+ }, "strip", z.ZodTypeAny, {
1406
+ claimedRecipientReference: string;
1407
+ canonicalContactId: string;
1408
+ canonicalContactName: string;
1409
+ }, {
1410
+ claimedRecipientReference: string;
1411
+ canonicalContactId: string;
1412
+ canonicalContactName: string;
1413
+ }>>;
1414
+ blocked: z.ZodOptional<z.ZodBoolean>;
1415
+ } & {
1416
+ authorizationKind: z.ZodLiteral<"contact">;
1417
+ contactId: z.ZodString;
1418
+ contactName: z.ZodString;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ toAddress: string;
1421
+ authorizationKind: "contact";
1422
+ contactId: string;
1423
+ contactName: string;
1424
+ claimedRecipientReference?: string | undefined;
1425
+ mismatch?: {
1426
+ claimedRecipientReference: string;
1427
+ canonicalContactId: string;
1428
+ canonicalContactName: string;
1429
+ } | undefined;
1430
+ blocked?: boolean | undefined;
1431
+ }, {
1432
+ toAddress: string;
1433
+ authorizationKind: "contact";
1434
+ contactId: string;
1435
+ contactName: string;
1436
+ claimedRecipientReference?: string | undefined;
1437
+ mismatch?: {
1438
+ claimedRecipientReference: string;
1439
+ canonicalContactId: string;
1440
+ canonicalContactName: string;
1441
+ } | undefined;
1442
+ blocked?: boolean | undefined;
1443
+ }>]>>;
1444
+ }, z.ZodUnknown, "strip"> | undefined;
1445
+ hmac?: string | undefined;
1446
+ };
1447
+ }>;
1448
+ export declare const HyperliquidExchangeSubmitResponseSchema: z.ZodObject<{
1449
+ success: z.ZodBoolean;
1450
+ status: z.ZodEnum<["filled", "resting", "error", "rebuilt"]>;
1451
+ /** Order id (filled or resting). */
1452
+ oid: z.ZodOptional<z.ZodNumber>;
1453
+ /** Average fill price (filled). */
1454
+ avgPx: z.ZodOptional<z.ZodString>;
1455
+ /** Filled size. */
1456
+ totalSz: z.ZodOptional<z.ZodString>;
1457
+ /** Mapped, user-facing message on failure. */
1458
+ error: z.ZodOptional<z.ZodString>;
1459
+ /** Present only when status === "rebuilt" (rebuildOrder was true). */
1460
+ rebuilt: z.ZodOptional<z.ZodObject<{
1461
+ action: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1462
+ nonce: z.ZodNumber;
1463
+ network: z.ZodEnum<["mainnet", "testnet"]>;
1464
+ /** The EIP-712 typed data to re-sign. */
1465
+ signatureRequest: z.ZodDiscriminatedUnion<"signMethod", [z.ZodObject<{
1466
+ id: z.ZodString;
1467
+ signerAddress: z.ZodString;
1468
+ description: z.ZodOptional<z.ZodString>;
1469
+ metadata: z.ZodOptional<z.ZodObject<{
1470
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1471
+ toAddress: z.ZodString;
1472
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1473
+ mismatch: z.ZodOptional<z.ZodObject<{
1474
+ claimedRecipientReference: z.ZodString;
1475
+ canonicalContactId: z.ZodString;
1476
+ canonicalContactName: z.ZodString;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ claimedRecipientReference: string;
1479
+ canonicalContactId: string;
1480
+ canonicalContactName: string;
1481
+ }, {
1482
+ claimedRecipientReference: string;
1483
+ canonicalContactId: string;
1484
+ canonicalContactName: string;
1485
+ }>>;
1486
+ blocked: z.ZodOptional<z.ZodBoolean>;
1487
+ } & {
1488
+ authorizationKind: z.ZodLiteral<"self">;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ toAddress: string;
1491
+ authorizationKind: "self";
1492
+ claimedRecipientReference?: string | undefined;
1493
+ mismatch?: {
1494
+ claimedRecipientReference: string;
1495
+ canonicalContactId: string;
1496
+ canonicalContactName: string;
1497
+ } | undefined;
1498
+ blocked?: boolean | undefined;
1499
+ }, {
1500
+ toAddress: string;
1501
+ authorizationKind: "self";
1502
+ claimedRecipientReference?: string | undefined;
1503
+ mismatch?: {
1504
+ claimedRecipientReference: string;
1505
+ canonicalContactId: string;
1506
+ canonicalContactName: string;
1507
+ } | undefined;
1508
+ blocked?: boolean | undefined;
1509
+ }>, z.ZodObject<{
1510
+ toAddress: z.ZodString;
1511
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1512
+ mismatch: z.ZodOptional<z.ZodObject<{
1513
+ claimedRecipientReference: z.ZodString;
1514
+ canonicalContactId: z.ZodString;
1515
+ canonicalContactName: z.ZodString;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ claimedRecipientReference: string;
1518
+ canonicalContactId: string;
1519
+ canonicalContactName: string;
1520
+ }, {
1521
+ claimedRecipientReference: string;
1522
+ canonicalContactId: string;
1523
+ canonicalContactName: string;
1524
+ }>>;
1525
+ blocked: z.ZodOptional<z.ZodBoolean>;
1526
+ } & {
1527
+ authorizationKind: z.ZodLiteral<"contact">;
1528
+ contactId: z.ZodString;
1529
+ contactName: z.ZodString;
1530
+ }, "strip", z.ZodTypeAny, {
1531
+ toAddress: string;
1532
+ authorizationKind: "contact";
1533
+ contactId: string;
1534
+ contactName: string;
1535
+ claimedRecipientReference?: string | undefined;
1536
+ mismatch?: {
1537
+ claimedRecipientReference: string;
1538
+ canonicalContactId: string;
1539
+ canonicalContactName: string;
1540
+ } | undefined;
1541
+ blocked?: boolean | undefined;
1542
+ }, {
1543
+ toAddress: string;
1544
+ authorizationKind: "contact";
1545
+ contactId: string;
1546
+ contactName: string;
1547
+ claimedRecipientReference?: string | undefined;
1548
+ mismatch?: {
1549
+ claimedRecipientReference: string;
1550
+ canonicalContactId: string;
1551
+ canonicalContactName: string;
1552
+ } | undefined;
1553
+ blocked?: boolean | undefined;
1554
+ }>]>>;
1555
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1556
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1557
+ toAddress: z.ZodString;
1558
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1559
+ mismatch: z.ZodOptional<z.ZodObject<{
1560
+ claimedRecipientReference: z.ZodString;
1561
+ canonicalContactId: z.ZodString;
1562
+ canonicalContactName: z.ZodString;
1563
+ }, "strip", z.ZodTypeAny, {
1564
+ claimedRecipientReference: string;
1565
+ canonicalContactId: string;
1566
+ canonicalContactName: string;
1567
+ }, {
1568
+ claimedRecipientReference: string;
1569
+ canonicalContactId: string;
1570
+ canonicalContactName: string;
1571
+ }>>;
1572
+ blocked: z.ZodOptional<z.ZodBoolean>;
1573
+ } & {
1574
+ authorizationKind: z.ZodLiteral<"self">;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ toAddress: string;
1577
+ authorizationKind: "self";
1578
+ claimedRecipientReference?: string | undefined;
1579
+ mismatch?: {
1580
+ claimedRecipientReference: string;
1581
+ canonicalContactId: string;
1582
+ canonicalContactName: string;
1583
+ } | undefined;
1584
+ blocked?: boolean | undefined;
1585
+ }, {
1586
+ toAddress: string;
1587
+ authorizationKind: "self";
1588
+ claimedRecipientReference?: string | undefined;
1589
+ mismatch?: {
1590
+ claimedRecipientReference: string;
1591
+ canonicalContactId: string;
1592
+ canonicalContactName: string;
1593
+ } | undefined;
1594
+ blocked?: boolean | undefined;
1595
+ }>, z.ZodObject<{
1596
+ toAddress: z.ZodString;
1597
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1598
+ mismatch: z.ZodOptional<z.ZodObject<{
1599
+ claimedRecipientReference: z.ZodString;
1600
+ canonicalContactId: z.ZodString;
1601
+ canonicalContactName: z.ZodString;
1602
+ }, "strip", z.ZodTypeAny, {
1603
+ claimedRecipientReference: string;
1604
+ canonicalContactId: string;
1605
+ canonicalContactName: string;
1606
+ }, {
1607
+ claimedRecipientReference: string;
1608
+ canonicalContactId: string;
1609
+ canonicalContactName: string;
1610
+ }>>;
1611
+ blocked: z.ZodOptional<z.ZodBoolean>;
1612
+ } & {
1613
+ authorizationKind: z.ZodLiteral<"contact">;
1614
+ contactId: z.ZodString;
1615
+ contactName: z.ZodString;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ toAddress: string;
1618
+ authorizationKind: "contact";
1619
+ contactId: string;
1620
+ contactName: string;
1621
+ claimedRecipientReference?: string | undefined;
1622
+ mismatch?: {
1623
+ claimedRecipientReference: string;
1624
+ canonicalContactId: string;
1625
+ canonicalContactName: string;
1626
+ } | undefined;
1627
+ blocked?: boolean | undefined;
1628
+ }, {
1629
+ toAddress: string;
1630
+ authorizationKind: "contact";
1631
+ contactId: string;
1632
+ contactName: string;
1633
+ claimedRecipientReference?: string | undefined;
1634
+ mismatch?: {
1635
+ claimedRecipientReference: string;
1636
+ canonicalContactId: string;
1637
+ canonicalContactName: string;
1638
+ } | undefined;
1639
+ blocked?: boolean | undefined;
1640
+ }>]>>;
1641
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1642
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1643
+ toAddress: z.ZodString;
1644
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1645
+ mismatch: z.ZodOptional<z.ZodObject<{
1646
+ claimedRecipientReference: z.ZodString;
1647
+ canonicalContactId: z.ZodString;
1648
+ canonicalContactName: z.ZodString;
1649
+ }, "strip", z.ZodTypeAny, {
1650
+ claimedRecipientReference: string;
1651
+ canonicalContactId: string;
1652
+ canonicalContactName: string;
1653
+ }, {
1654
+ claimedRecipientReference: string;
1655
+ canonicalContactId: string;
1656
+ canonicalContactName: string;
1657
+ }>>;
1658
+ blocked: z.ZodOptional<z.ZodBoolean>;
1659
+ } & {
1660
+ authorizationKind: z.ZodLiteral<"self">;
1661
+ }, "strip", z.ZodTypeAny, {
1662
+ toAddress: string;
1663
+ authorizationKind: "self";
1664
+ claimedRecipientReference?: string | undefined;
1665
+ mismatch?: {
1666
+ claimedRecipientReference: string;
1667
+ canonicalContactId: string;
1668
+ canonicalContactName: string;
1669
+ } | undefined;
1670
+ blocked?: boolean | undefined;
1671
+ }, {
1672
+ toAddress: string;
1673
+ authorizationKind: "self";
1674
+ claimedRecipientReference?: string | undefined;
1675
+ mismatch?: {
1676
+ claimedRecipientReference: string;
1677
+ canonicalContactId: string;
1678
+ canonicalContactName: string;
1679
+ } | undefined;
1680
+ blocked?: boolean | undefined;
1681
+ }>, z.ZodObject<{
1682
+ toAddress: z.ZodString;
1683
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1684
+ mismatch: z.ZodOptional<z.ZodObject<{
1685
+ claimedRecipientReference: z.ZodString;
1686
+ canonicalContactId: z.ZodString;
1687
+ canonicalContactName: z.ZodString;
1688
+ }, "strip", z.ZodTypeAny, {
1689
+ claimedRecipientReference: string;
1690
+ canonicalContactId: string;
1691
+ canonicalContactName: string;
1692
+ }, {
1693
+ claimedRecipientReference: string;
1694
+ canonicalContactId: string;
1695
+ canonicalContactName: string;
1696
+ }>>;
1697
+ blocked: z.ZodOptional<z.ZodBoolean>;
1698
+ } & {
1699
+ authorizationKind: z.ZodLiteral<"contact">;
1700
+ contactId: z.ZodString;
1701
+ contactName: z.ZodString;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ toAddress: string;
1704
+ authorizationKind: "contact";
1705
+ contactId: string;
1706
+ contactName: string;
1707
+ claimedRecipientReference?: string | undefined;
1708
+ mismatch?: {
1709
+ claimedRecipientReference: string;
1710
+ canonicalContactId: string;
1711
+ canonicalContactName: string;
1712
+ } | undefined;
1713
+ blocked?: boolean | undefined;
1714
+ }, {
1715
+ toAddress: string;
1716
+ authorizationKind: "contact";
1717
+ contactId: string;
1718
+ contactName: string;
1719
+ claimedRecipientReference?: string | undefined;
1720
+ mismatch?: {
1721
+ claimedRecipientReference: string;
1722
+ canonicalContactId: string;
1723
+ canonicalContactName: string;
1724
+ } | undefined;
1725
+ blocked?: boolean | undefined;
1726
+ }>]>>;
1727
+ }, z.ZodUnknown, "strip">>>;
1728
+ hmac: z.ZodOptional<z.ZodString>;
1729
+ } & {
1730
+ signMethod: z.ZodLiteral<"typedData">;
1731
+ typedData: z.ZodObject<{
1732
+ types: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1733
+ name: z.ZodString;
1734
+ type: z.ZodString;
1735
+ }, "strip", z.ZodTypeAny, {
1736
+ type: string;
1737
+ name: string;
1738
+ }, {
1739
+ type: string;
1740
+ name: string;
1741
+ }>, "many">>;
1742
+ domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1743
+ message: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1744
+ primaryType: z.ZodString;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ message: Record<string, unknown>;
1747
+ types: Record<string, {
1748
+ type: string;
1749
+ name: string;
1750
+ }[]>;
1751
+ domain: Record<string, unknown>;
1752
+ primaryType: string;
1753
+ }, {
1754
+ message: Record<string, unknown>;
1755
+ types: Record<string, {
1756
+ type: string;
1757
+ name: string;
1758
+ }[]>;
1759
+ domain: Record<string, unknown>;
1760
+ primaryType: string;
1761
+ }>;
1762
+ }, "strip", z.ZodTypeAny, {
1763
+ id: string;
1764
+ signerAddress: string;
1765
+ signMethod: "typedData";
1766
+ typedData: {
1767
+ message: Record<string, unknown>;
1768
+ types: Record<string, {
1769
+ type: string;
1770
+ name: string;
1771
+ }[]>;
1772
+ domain: Record<string, unknown>;
1773
+ primaryType: string;
1774
+ };
1775
+ description?: string | undefined;
1776
+ metadata?: z.objectOutputType<{
1777
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1778
+ toAddress: z.ZodString;
1779
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1780
+ mismatch: z.ZodOptional<z.ZodObject<{
1781
+ claimedRecipientReference: z.ZodString;
1782
+ canonicalContactId: z.ZodString;
1783
+ canonicalContactName: z.ZodString;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ claimedRecipientReference: string;
1786
+ canonicalContactId: string;
1787
+ canonicalContactName: string;
1788
+ }, {
1789
+ claimedRecipientReference: string;
1790
+ canonicalContactId: string;
1791
+ canonicalContactName: string;
1792
+ }>>;
1793
+ blocked: z.ZodOptional<z.ZodBoolean>;
1794
+ } & {
1795
+ authorizationKind: z.ZodLiteral<"self">;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ toAddress: string;
1798
+ authorizationKind: "self";
1799
+ claimedRecipientReference?: string | undefined;
1800
+ mismatch?: {
1801
+ claimedRecipientReference: string;
1802
+ canonicalContactId: string;
1803
+ canonicalContactName: string;
1804
+ } | undefined;
1805
+ blocked?: boolean | undefined;
1806
+ }, {
1807
+ toAddress: string;
1808
+ authorizationKind: "self";
1809
+ claimedRecipientReference?: string | undefined;
1810
+ mismatch?: {
1811
+ claimedRecipientReference: string;
1812
+ canonicalContactId: string;
1813
+ canonicalContactName: string;
1814
+ } | undefined;
1815
+ blocked?: boolean | undefined;
1816
+ }>, z.ZodObject<{
1817
+ toAddress: z.ZodString;
1818
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1819
+ mismatch: z.ZodOptional<z.ZodObject<{
1820
+ claimedRecipientReference: z.ZodString;
1821
+ canonicalContactId: z.ZodString;
1822
+ canonicalContactName: z.ZodString;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ claimedRecipientReference: string;
1825
+ canonicalContactId: string;
1826
+ canonicalContactName: string;
1827
+ }, {
1828
+ claimedRecipientReference: string;
1829
+ canonicalContactId: string;
1830
+ canonicalContactName: string;
1831
+ }>>;
1832
+ blocked: z.ZodOptional<z.ZodBoolean>;
1833
+ } & {
1834
+ authorizationKind: z.ZodLiteral<"contact">;
1835
+ contactId: z.ZodString;
1836
+ contactName: z.ZodString;
1837
+ }, "strip", z.ZodTypeAny, {
1838
+ toAddress: string;
1839
+ authorizationKind: "contact";
1840
+ contactId: string;
1841
+ contactName: string;
1842
+ claimedRecipientReference?: string | undefined;
1843
+ mismatch?: {
1844
+ claimedRecipientReference: string;
1845
+ canonicalContactId: string;
1846
+ canonicalContactName: string;
1847
+ } | undefined;
1848
+ blocked?: boolean | undefined;
1849
+ }, {
1850
+ toAddress: string;
1851
+ authorizationKind: "contact";
1852
+ contactId: string;
1853
+ contactName: string;
1854
+ claimedRecipientReference?: string | undefined;
1855
+ mismatch?: {
1856
+ claimedRecipientReference: string;
1857
+ canonicalContactId: string;
1858
+ canonicalContactName: string;
1859
+ } | undefined;
1860
+ blocked?: boolean | undefined;
1861
+ }>]>>;
1862
+ }, z.ZodUnknown, "strip"> | undefined;
1863
+ hmac?: string | undefined;
1864
+ }, {
1865
+ id: string;
1866
+ signerAddress: string;
1867
+ signMethod: "typedData";
1868
+ typedData: {
1869
+ message: Record<string, unknown>;
1870
+ types: Record<string, {
1871
+ type: string;
1872
+ name: string;
1873
+ }[]>;
1874
+ domain: Record<string, unknown>;
1875
+ primaryType: string;
1876
+ };
1877
+ description?: string | undefined;
1878
+ metadata?: z.objectInputType<{
1879
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1880
+ toAddress: z.ZodString;
1881
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1882
+ mismatch: z.ZodOptional<z.ZodObject<{
1883
+ claimedRecipientReference: z.ZodString;
1884
+ canonicalContactId: z.ZodString;
1885
+ canonicalContactName: z.ZodString;
1886
+ }, "strip", z.ZodTypeAny, {
1887
+ claimedRecipientReference: string;
1888
+ canonicalContactId: string;
1889
+ canonicalContactName: string;
1890
+ }, {
1891
+ claimedRecipientReference: string;
1892
+ canonicalContactId: string;
1893
+ canonicalContactName: string;
1894
+ }>>;
1895
+ blocked: z.ZodOptional<z.ZodBoolean>;
1896
+ } & {
1897
+ authorizationKind: z.ZodLiteral<"self">;
1898
+ }, "strip", z.ZodTypeAny, {
1899
+ toAddress: string;
1900
+ authorizationKind: "self";
1901
+ claimedRecipientReference?: string | undefined;
1902
+ mismatch?: {
1903
+ claimedRecipientReference: string;
1904
+ canonicalContactId: string;
1905
+ canonicalContactName: string;
1906
+ } | undefined;
1907
+ blocked?: boolean | undefined;
1908
+ }, {
1909
+ toAddress: string;
1910
+ authorizationKind: "self";
1911
+ claimedRecipientReference?: string | undefined;
1912
+ mismatch?: {
1913
+ claimedRecipientReference: string;
1914
+ canonicalContactId: string;
1915
+ canonicalContactName: string;
1916
+ } | undefined;
1917
+ blocked?: boolean | undefined;
1918
+ }>, z.ZodObject<{
1919
+ toAddress: z.ZodString;
1920
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1921
+ mismatch: z.ZodOptional<z.ZodObject<{
1922
+ claimedRecipientReference: z.ZodString;
1923
+ canonicalContactId: z.ZodString;
1924
+ canonicalContactName: z.ZodString;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ claimedRecipientReference: string;
1927
+ canonicalContactId: string;
1928
+ canonicalContactName: string;
1929
+ }, {
1930
+ claimedRecipientReference: string;
1931
+ canonicalContactId: string;
1932
+ canonicalContactName: string;
1933
+ }>>;
1934
+ blocked: z.ZodOptional<z.ZodBoolean>;
1935
+ } & {
1936
+ authorizationKind: z.ZodLiteral<"contact">;
1937
+ contactId: z.ZodString;
1938
+ contactName: z.ZodString;
1939
+ }, "strip", z.ZodTypeAny, {
1940
+ toAddress: string;
1941
+ authorizationKind: "contact";
1942
+ contactId: string;
1943
+ contactName: string;
1944
+ claimedRecipientReference?: string | undefined;
1945
+ mismatch?: {
1946
+ claimedRecipientReference: string;
1947
+ canonicalContactId: string;
1948
+ canonicalContactName: string;
1949
+ } | undefined;
1950
+ blocked?: boolean | undefined;
1951
+ }, {
1952
+ toAddress: string;
1953
+ authorizationKind: "contact";
1954
+ contactId: string;
1955
+ contactName: string;
1956
+ claimedRecipientReference?: string | undefined;
1957
+ mismatch?: {
1958
+ claimedRecipientReference: string;
1959
+ canonicalContactId: string;
1960
+ canonicalContactName: string;
1961
+ } | undefined;
1962
+ blocked?: boolean | undefined;
1963
+ }>]>>;
1964
+ }, z.ZodUnknown, "strip"> | undefined;
1965
+ hmac?: string | undefined;
1966
+ }>, z.ZodObject<{
1967
+ id: z.ZodString;
1968
+ signerAddress: z.ZodString;
1969
+ description: z.ZodOptional<z.ZodString>;
1970
+ metadata: z.ZodOptional<z.ZodObject<{
1971
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
1972
+ toAddress: z.ZodString;
1973
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
1974
+ mismatch: z.ZodOptional<z.ZodObject<{
1975
+ claimedRecipientReference: z.ZodString;
1976
+ canonicalContactId: z.ZodString;
1977
+ canonicalContactName: z.ZodString;
1978
+ }, "strip", z.ZodTypeAny, {
1979
+ claimedRecipientReference: string;
1980
+ canonicalContactId: string;
1981
+ canonicalContactName: string;
1982
+ }, {
1983
+ claimedRecipientReference: string;
1984
+ canonicalContactId: string;
1985
+ canonicalContactName: string;
1986
+ }>>;
1987
+ blocked: z.ZodOptional<z.ZodBoolean>;
1988
+ } & {
1989
+ authorizationKind: z.ZodLiteral<"self">;
1990
+ }, "strip", z.ZodTypeAny, {
1991
+ toAddress: string;
1992
+ authorizationKind: "self";
1993
+ claimedRecipientReference?: string | undefined;
1994
+ mismatch?: {
1995
+ claimedRecipientReference: string;
1996
+ canonicalContactId: string;
1997
+ canonicalContactName: string;
1998
+ } | undefined;
1999
+ blocked?: boolean | undefined;
2000
+ }, {
2001
+ toAddress: string;
2002
+ authorizationKind: "self";
2003
+ claimedRecipientReference?: string | undefined;
2004
+ mismatch?: {
2005
+ claimedRecipientReference: string;
2006
+ canonicalContactId: string;
2007
+ canonicalContactName: string;
2008
+ } | undefined;
2009
+ blocked?: boolean | undefined;
2010
+ }>, z.ZodObject<{
2011
+ toAddress: z.ZodString;
2012
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2013
+ mismatch: z.ZodOptional<z.ZodObject<{
2014
+ claimedRecipientReference: z.ZodString;
2015
+ canonicalContactId: z.ZodString;
2016
+ canonicalContactName: z.ZodString;
2017
+ }, "strip", z.ZodTypeAny, {
2018
+ claimedRecipientReference: string;
2019
+ canonicalContactId: string;
2020
+ canonicalContactName: string;
2021
+ }, {
2022
+ claimedRecipientReference: string;
2023
+ canonicalContactId: string;
2024
+ canonicalContactName: string;
2025
+ }>>;
2026
+ blocked: z.ZodOptional<z.ZodBoolean>;
2027
+ } & {
2028
+ authorizationKind: z.ZodLiteral<"contact">;
2029
+ contactId: z.ZodString;
2030
+ contactName: z.ZodString;
2031
+ }, "strip", z.ZodTypeAny, {
2032
+ toAddress: string;
2033
+ authorizationKind: "contact";
2034
+ contactId: string;
2035
+ contactName: string;
2036
+ claimedRecipientReference?: string | undefined;
2037
+ mismatch?: {
2038
+ claimedRecipientReference: string;
2039
+ canonicalContactId: string;
2040
+ canonicalContactName: string;
2041
+ } | undefined;
2042
+ blocked?: boolean | undefined;
2043
+ }, {
2044
+ toAddress: string;
2045
+ authorizationKind: "contact";
2046
+ contactId: string;
2047
+ contactName: string;
2048
+ claimedRecipientReference?: string | undefined;
2049
+ mismatch?: {
2050
+ claimedRecipientReference: string;
2051
+ canonicalContactId: string;
2052
+ canonicalContactName: string;
2053
+ } | undefined;
2054
+ blocked?: boolean | undefined;
2055
+ }>]>>;
2056
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2057
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2058
+ toAddress: z.ZodString;
2059
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2060
+ mismatch: z.ZodOptional<z.ZodObject<{
2061
+ claimedRecipientReference: z.ZodString;
2062
+ canonicalContactId: z.ZodString;
2063
+ canonicalContactName: z.ZodString;
2064
+ }, "strip", z.ZodTypeAny, {
2065
+ claimedRecipientReference: string;
2066
+ canonicalContactId: string;
2067
+ canonicalContactName: string;
2068
+ }, {
2069
+ claimedRecipientReference: string;
2070
+ canonicalContactId: string;
2071
+ canonicalContactName: string;
2072
+ }>>;
2073
+ blocked: z.ZodOptional<z.ZodBoolean>;
2074
+ } & {
2075
+ authorizationKind: z.ZodLiteral<"self">;
2076
+ }, "strip", z.ZodTypeAny, {
2077
+ toAddress: string;
2078
+ authorizationKind: "self";
2079
+ claimedRecipientReference?: string | undefined;
2080
+ mismatch?: {
2081
+ claimedRecipientReference: string;
2082
+ canonicalContactId: string;
2083
+ canonicalContactName: string;
2084
+ } | undefined;
2085
+ blocked?: boolean | undefined;
2086
+ }, {
2087
+ toAddress: string;
2088
+ authorizationKind: "self";
2089
+ claimedRecipientReference?: string | undefined;
2090
+ mismatch?: {
2091
+ claimedRecipientReference: string;
2092
+ canonicalContactId: string;
2093
+ canonicalContactName: string;
2094
+ } | undefined;
2095
+ blocked?: boolean | undefined;
2096
+ }>, z.ZodObject<{
2097
+ toAddress: z.ZodString;
2098
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2099
+ mismatch: z.ZodOptional<z.ZodObject<{
2100
+ claimedRecipientReference: z.ZodString;
2101
+ canonicalContactId: z.ZodString;
2102
+ canonicalContactName: z.ZodString;
2103
+ }, "strip", z.ZodTypeAny, {
2104
+ claimedRecipientReference: string;
2105
+ canonicalContactId: string;
2106
+ canonicalContactName: string;
2107
+ }, {
2108
+ claimedRecipientReference: string;
2109
+ canonicalContactId: string;
2110
+ canonicalContactName: string;
2111
+ }>>;
2112
+ blocked: z.ZodOptional<z.ZodBoolean>;
2113
+ } & {
2114
+ authorizationKind: z.ZodLiteral<"contact">;
2115
+ contactId: z.ZodString;
2116
+ contactName: z.ZodString;
2117
+ }, "strip", z.ZodTypeAny, {
2118
+ toAddress: string;
2119
+ authorizationKind: "contact";
2120
+ contactId: string;
2121
+ contactName: string;
2122
+ claimedRecipientReference?: string | undefined;
2123
+ mismatch?: {
2124
+ claimedRecipientReference: string;
2125
+ canonicalContactId: string;
2126
+ canonicalContactName: string;
2127
+ } | undefined;
2128
+ blocked?: boolean | undefined;
2129
+ }, {
2130
+ toAddress: string;
2131
+ authorizationKind: "contact";
2132
+ contactId: string;
2133
+ contactName: string;
2134
+ claimedRecipientReference?: string | undefined;
2135
+ mismatch?: {
2136
+ claimedRecipientReference: string;
2137
+ canonicalContactId: string;
2138
+ canonicalContactName: string;
2139
+ } | undefined;
2140
+ blocked?: boolean | undefined;
2141
+ }>]>>;
2142
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2143
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2144
+ toAddress: z.ZodString;
2145
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2146
+ mismatch: z.ZodOptional<z.ZodObject<{
2147
+ claimedRecipientReference: z.ZodString;
2148
+ canonicalContactId: z.ZodString;
2149
+ canonicalContactName: z.ZodString;
2150
+ }, "strip", z.ZodTypeAny, {
2151
+ claimedRecipientReference: string;
2152
+ canonicalContactId: string;
2153
+ canonicalContactName: string;
2154
+ }, {
2155
+ claimedRecipientReference: string;
2156
+ canonicalContactId: string;
2157
+ canonicalContactName: string;
2158
+ }>>;
2159
+ blocked: z.ZodOptional<z.ZodBoolean>;
2160
+ } & {
2161
+ authorizationKind: z.ZodLiteral<"self">;
2162
+ }, "strip", z.ZodTypeAny, {
2163
+ toAddress: string;
2164
+ authorizationKind: "self";
2165
+ claimedRecipientReference?: string | undefined;
2166
+ mismatch?: {
2167
+ claimedRecipientReference: string;
2168
+ canonicalContactId: string;
2169
+ canonicalContactName: string;
2170
+ } | undefined;
2171
+ blocked?: boolean | undefined;
2172
+ }, {
2173
+ toAddress: string;
2174
+ authorizationKind: "self";
2175
+ claimedRecipientReference?: string | undefined;
2176
+ mismatch?: {
2177
+ claimedRecipientReference: string;
2178
+ canonicalContactId: string;
2179
+ canonicalContactName: string;
2180
+ } | undefined;
2181
+ blocked?: boolean | undefined;
2182
+ }>, z.ZodObject<{
2183
+ toAddress: z.ZodString;
2184
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2185
+ mismatch: z.ZodOptional<z.ZodObject<{
2186
+ claimedRecipientReference: z.ZodString;
2187
+ canonicalContactId: z.ZodString;
2188
+ canonicalContactName: z.ZodString;
2189
+ }, "strip", z.ZodTypeAny, {
2190
+ claimedRecipientReference: string;
2191
+ canonicalContactId: string;
2192
+ canonicalContactName: string;
2193
+ }, {
2194
+ claimedRecipientReference: string;
2195
+ canonicalContactId: string;
2196
+ canonicalContactName: string;
2197
+ }>>;
2198
+ blocked: z.ZodOptional<z.ZodBoolean>;
2199
+ } & {
2200
+ authorizationKind: z.ZodLiteral<"contact">;
2201
+ contactId: z.ZodString;
2202
+ contactName: z.ZodString;
2203
+ }, "strip", z.ZodTypeAny, {
2204
+ toAddress: string;
2205
+ authorizationKind: "contact";
2206
+ contactId: string;
2207
+ contactName: string;
2208
+ claimedRecipientReference?: string | undefined;
2209
+ mismatch?: {
2210
+ claimedRecipientReference: string;
2211
+ canonicalContactId: string;
2212
+ canonicalContactName: string;
2213
+ } | undefined;
2214
+ blocked?: boolean | undefined;
2215
+ }, {
2216
+ toAddress: string;
2217
+ authorizationKind: "contact";
2218
+ contactId: string;
2219
+ contactName: string;
2220
+ claimedRecipientReference?: string | undefined;
2221
+ mismatch?: {
2222
+ claimedRecipientReference: string;
2223
+ canonicalContactId: string;
2224
+ canonicalContactName: string;
2225
+ } | undefined;
2226
+ blocked?: boolean | undefined;
2227
+ }>]>>;
2228
+ }, z.ZodUnknown, "strip">>>;
2229
+ hmac: z.ZodOptional<z.ZodString>;
2230
+ } & {
2231
+ signMethod: z.ZodLiteral<"message">;
2232
+ rawHash: z.ZodString;
2233
+ }, "strip", z.ZodTypeAny, {
2234
+ id: string;
2235
+ signerAddress: string;
2236
+ signMethod: "message";
2237
+ rawHash: string;
2238
+ description?: string | undefined;
2239
+ metadata?: z.objectOutputType<{
2240
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2241
+ toAddress: z.ZodString;
2242
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2243
+ mismatch: z.ZodOptional<z.ZodObject<{
2244
+ claimedRecipientReference: z.ZodString;
2245
+ canonicalContactId: z.ZodString;
2246
+ canonicalContactName: z.ZodString;
2247
+ }, "strip", z.ZodTypeAny, {
2248
+ claimedRecipientReference: string;
2249
+ canonicalContactId: string;
2250
+ canonicalContactName: string;
2251
+ }, {
2252
+ claimedRecipientReference: string;
2253
+ canonicalContactId: string;
2254
+ canonicalContactName: string;
2255
+ }>>;
2256
+ blocked: z.ZodOptional<z.ZodBoolean>;
2257
+ } & {
2258
+ authorizationKind: z.ZodLiteral<"self">;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ toAddress: string;
2261
+ authorizationKind: "self";
2262
+ claimedRecipientReference?: string | undefined;
2263
+ mismatch?: {
2264
+ claimedRecipientReference: string;
2265
+ canonicalContactId: string;
2266
+ canonicalContactName: string;
2267
+ } | undefined;
2268
+ blocked?: boolean | undefined;
2269
+ }, {
2270
+ toAddress: string;
2271
+ authorizationKind: "self";
2272
+ claimedRecipientReference?: string | undefined;
2273
+ mismatch?: {
2274
+ claimedRecipientReference: string;
2275
+ canonicalContactId: string;
2276
+ canonicalContactName: string;
2277
+ } | undefined;
2278
+ blocked?: boolean | undefined;
2279
+ }>, z.ZodObject<{
2280
+ toAddress: z.ZodString;
2281
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2282
+ mismatch: z.ZodOptional<z.ZodObject<{
2283
+ claimedRecipientReference: z.ZodString;
2284
+ canonicalContactId: z.ZodString;
2285
+ canonicalContactName: z.ZodString;
2286
+ }, "strip", z.ZodTypeAny, {
2287
+ claimedRecipientReference: string;
2288
+ canonicalContactId: string;
2289
+ canonicalContactName: string;
2290
+ }, {
2291
+ claimedRecipientReference: string;
2292
+ canonicalContactId: string;
2293
+ canonicalContactName: string;
2294
+ }>>;
2295
+ blocked: z.ZodOptional<z.ZodBoolean>;
2296
+ } & {
2297
+ authorizationKind: z.ZodLiteral<"contact">;
2298
+ contactId: z.ZodString;
2299
+ contactName: z.ZodString;
2300
+ }, "strip", z.ZodTypeAny, {
2301
+ toAddress: string;
2302
+ authorizationKind: "contact";
2303
+ contactId: string;
2304
+ contactName: string;
2305
+ claimedRecipientReference?: string | undefined;
2306
+ mismatch?: {
2307
+ claimedRecipientReference: string;
2308
+ canonicalContactId: string;
2309
+ canonicalContactName: string;
2310
+ } | undefined;
2311
+ blocked?: boolean | undefined;
2312
+ }, {
2313
+ toAddress: string;
2314
+ authorizationKind: "contact";
2315
+ contactId: string;
2316
+ contactName: string;
2317
+ claimedRecipientReference?: string | undefined;
2318
+ mismatch?: {
2319
+ claimedRecipientReference: string;
2320
+ canonicalContactId: string;
2321
+ canonicalContactName: string;
2322
+ } | undefined;
2323
+ blocked?: boolean | undefined;
2324
+ }>]>>;
2325
+ }, z.ZodUnknown, "strip"> | undefined;
2326
+ hmac?: string | undefined;
2327
+ }, {
2328
+ id: string;
2329
+ signerAddress: string;
2330
+ signMethod: "message";
2331
+ rawHash: string;
2332
+ description?: string | undefined;
2333
+ metadata?: z.objectInputType<{
2334
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2335
+ toAddress: z.ZodString;
2336
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2337
+ mismatch: z.ZodOptional<z.ZodObject<{
2338
+ claimedRecipientReference: z.ZodString;
2339
+ canonicalContactId: z.ZodString;
2340
+ canonicalContactName: z.ZodString;
2341
+ }, "strip", z.ZodTypeAny, {
2342
+ claimedRecipientReference: string;
2343
+ canonicalContactId: string;
2344
+ canonicalContactName: string;
2345
+ }, {
2346
+ claimedRecipientReference: string;
2347
+ canonicalContactId: string;
2348
+ canonicalContactName: string;
2349
+ }>>;
2350
+ blocked: z.ZodOptional<z.ZodBoolean>;
2351
+ } & {
2352
+ authorizationKind: z.ZodLiteral<"self">;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ toAddress: string;
2355
+ authorizationKind: "self";
2356
+ claimedRecipientReference?: string | undefined;
2357
+ mismatch?: {
2358
+ claimedRecipientReference: string;
2359
+ canonicalContactId: string;
2360
+ canonicalContactName: string;
2361
+ } | undefined;
2362
+ blocked?: boolean | undefined;
2363
+ }, {
2364
+ toAddress: string;
2365
+ authorizationKind: "self";
2366
+ claimedRecipientReference?: string | undefined;
2367
+ mismatch?: {
2368
+ claimedRecipientReference: string;
2369
+ canonicalContactId: string;
2370
+ canonicalContactName: string;
2371
+ } | undefined;
2372
+ blocked?: boolean | undefined;
2373
+ }>, z.ZodObject<{
2374
+ toAddress: z.ZodString;
2375
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2376
+ mismatch: z.ZodOptional<z.ZodObject<{
2377
+ claimedRecipientReference: z.ZodString;
2378
+ canonicalContactId: z.ZodString;
2379
+ canonicalContactName: z.ZodString;
2380
+ }, "strip", z.ZodTypeAny, {
2381
+ claimedRecipientReference: string;
2382
+ canonicalContactId: string;
2383
+ canonicalContactName: string;
2384
+ }, {
2385
+ claimedRecipientReference: string;
2386
+ canonicalContactId: string;
2387
+ canonicalContactName: string;
2388
+ }>>;
2389
+ blocked: z.ZodOptional<z.ZodBoolean>;
2390
+ } & {
2391
+ authorizationKind: z.ZodLiteral<"contact">;
2392
+ contactId: z.ZodString;
2393
+ contactName: z.ZodString;
2394
+ }, "strip", z.ZodTypeAny, {
2395
+ toAddress: string;
2396
+ authorizationKind: "contact";
2397
+ contactId: string;
2398
+ contactName: string;
2399
+ claimedRecipientReference?: string | undefined;
2400
+ mismatch?: {
2401
+ claimedRecipientReference: string;
2402
+ canonicalContactId: string;
2403
+ canonicalContactName: string;
2404
+ } | undefined;
2405
+ blocked?: boolean | undefined;
2406
+ }, {
2407
+ toAddress: string;
2408
+ authorizationKind: "contact";
2409
+ contactId: string;
2410
+ contactName: string;
2411
+ claimedRecipientReference?: string | undefined;
2412
+ mismatch?: {
2413
+ claimedRecipientReference: string;
2414
+ canonicalContactId: string;
2415
+ canonicalContactName: string;
2416
+ } | undefined;
2417
+ blocked?: boolean | undefined;
2418
+ }>]>>;
2419
+ }, z.ZodUnknown, "strip"> | undefined;
2420
+ hmac?: string | undefined;
2421
+ }>]>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ nonce: number;
2424
+ action: Record<string, unknown>;
2425
+ network: "testnet" | "mainnet";
2426
+ signatureRequest: {
2427
+ id: string;
2428
+ signerAddress: string;
2429
+ signMethod: "typedData";
2430
+ typedData: {
2431
+ message: Record<string, unknown>;
2432
+ types: Record<string, {
2433
+ type: string;
2434
+ name: string;
2435
+ }[]>;
2436
+ domain: Record<string, unknown>;
2437
+ primaryType: string;
2438
+ };
2439
+ description?: string | undefined;
2440
+ metadata?: z.objectOutputType<{
2441
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2442
+ toAddress: z.ZodString;
2443
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2444
+ mismatch: z.ZodOptional<z.ZodObject<{
2445
+ claimedRecipientReference: z.ZodString;
2446
+ canonicalContactId: z.ZodString;
2447
+ canonicalContactName: z.ZodString;
2448
+ }, "strip", z.ZodTypeAny, {
2449
+ claimedRecipientReference: string;
2450
+ canonicalContactId: string;
2451
+ canonicalContactName: string;
2452
+ }, {
2453
+ claimedRecipientReference: string;
2454
+ canonicalContactId: string;
2455
+ canonicalContactName: string;
2456
+ }>>;
2457
+ blocked: z.ZodOptional<z.ZodBoolean>;
2458
+ } & {
2459
+ authorizationKind: z.ZodLiteral<"self">;
2460
+ }, "strip", z.ZodTypeAny, {
2461
+ toAddress: string;
2462
+ authorizationKind: "self";
2463
+ claimedRecipientReference?: string | undefined;
2464
+ mismatch?: {
2465
+ claimedRecipientReference: string;
2466
+ canonicalContactId: string;
2467
+ canonicalContactName: string;
2468
+ } | undefined;
2469
+ blocked?: boolean | undefined;
2470
+ }, {
2471
+ toAddress: string;
2472
+ authorizationKind: "self";
2473
+ claimedRecipientReference?: string | undefined;
2474
+ mismatch?: {
2475
+ claimedRecipientReference: string;
2476
+ canonicalContactId: string;
2477
+ canonicalContactName: string;
2478
+ } | undefined;
2479
+ blocked?: boolean | undefined;
2480
+ }>, z.ZodObject<{
2481
+ toAddress: z.ZodString;
2482
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2483
+ mismatch: z.ZodOptional<z.ZodObject<{
2484
+ claimedRecipientReference: z.ZodString;
2485
+ canonicalContactId: z.ZodString;
2486
+ canonicalContactName: z.ZodString;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ claimedRecipientReference: string;
2489
+ canonicalContactId: string;
2490
+ canonicalContactName: string;
2491
+ }, {
2492
+ claimedRecipientReference: string;
2493
+ canonicalContactId: string;
2494
+ canonicalContactName: string;
2495
+ }>>;
2496
+ blocked: z.ZodOptional<z.ZodBoolean>;
2497
+ } & {
2498
+ authorizationKind: z.ZodLiteral<"contact">;
2499
+ contactId: z.ZodString;
2500
+ contactName: z.ZodString;
2501
+ }, "strip", z.ZodTypeAny, {
2502
+ toAddress: string;
2503
+ authorizationKind: "contact";
2504
+ contactId: string;
2505
+ contactName: string;
2506
+ claimedRecipientReference?: string | undefined;
2507
+ mismatch?: {
2508
+ claimedRecipientReference: string;
2509
+ canonicalContactId: string;
2510
+ canonicalContactName: string;
2511
+ } | undefined;
2512
+ blocked?: boolean | undefined;
2513
+ }, {
2514
+ toAddress: string;
2515
+ authorizationKind: "contact";
2516
+ contactId: string;
2517
+ contactName: string;
2518
+ claimedRecipientReference?: string | undefined;
2519
+ mismatch?: {
2520
+ claimedRecipientReference: string;
2521
+ canonicalContactId: string;
2522
+ canonicalContactName: string;
2523
+ } | undefined;
2524
+ blocked?: boolean | undefined;
2525
+ }>]>>;
2526
+ }, z.ZodUnknown, "strip"> | undefined;
2527
+ hmac?: string | undefined;
2528
+ } | {
2529
+ id: string;
2530
+ signerAddress: string;
2531
+ signMethod: "message";
2532
+ rawHash: string;
2533
+ description?: string | undefined;
2534
+ metadata?: z.objectOutputType<{
2535
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2536
+ toAddress: z.ZodString;
2537
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2538
+ mismatch: z.ZodOptional<z.ZodObject<{
2539
+ claimedRecipientReference: z.ZodString;
2540
+ canonicalContactId: z.ZodString;
2541
+ canonicalContactName: z.ZodString;
2542
+ }, "strip", z.ZodTypeAny, {
2543
+ claimedRecipientReference: string;
2544
+ canonicalContactId: string;
2545
+ canonicalContactName: string;
2546
+ }, {
2547
+ claimedRecipientReference: string;
2548
+ canonicalContactId: string;
2549
+ canonicalContactName: string;
2550
+ }>>;
2551
+ blocked: z.ZodOptional<z.ZodBoolean>;
2552
+ } & {
2553
+ authorizationKind: z.ZodLiteral<"self">;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ toAddress: string;
2556
+ authorizationKind: "self";
2557
+ claimedRecipientReference?: string | undefined;
2558
+ mismatch?: {
2559
+ claimedRecipientReference: string;
2560
+ canonicalContactId: string;
2561
+ canonicalContactName: string;
2562
+ } | undefined;
2563
+ blocked?: boolean | undefined;
2564
+ }, {
2565
+ toAddress: string;
2566
+ authorizationKind: "self";
2567
+ claimedRecipientReference?: string | undefined;
2568
+ mismatch?: {
2569
+ claimedRecipientReference: string;
2570
+ canonicalContactId: string;
2571
+ canonicalContactName: string;
2572
+ } | undefined;
2573
+ blocked?: boolean | undefined;
2574
+ }>, z.ZodObject<{
2575
+ toAddress: z.ZodString;
2576
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2577
+ mismatch: z.ZodOptional<z.ZodObject<{
2578
+ claimedRecipientReference: z.ZodString;
2579
+ canonicalContactId: z.ZodString;
2580
+ canonicalContactName: z.ZodString;
2581
+ }, "strip", z.ZodTypeAny, {
2582
+ claimedRecipientReference: string;
2583
+ canonicalContactId: string;
2584
+ canonicalContactName: string;
2585
+ }, {
2586
+ claimedRecipientReference: string;
2587
+ canonicalContactId: string;
2588
+ canonicalContactName: string;
2589
+ }>>;
2590
+ blocked: z.ZodOptional<z.ZodBoolean>;
2591
+ } & {
2592
+ authorizationKind: z.ZodLiteral<"contact">;
2593
+ contactId: z.ZodString;
2594
+ contactName: z.ZodString;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ toAddress: string;
2597
+ authorizationKind: "contact";
2598
+ contactId: string;
2599
+ contactName: string;
2600
+ claimedRecipientReference?: string | undefined;
2601
+ mismatch?: {
2602
+ claimedRecipientReference: string;
2603
+ canonicalContactId: string;
2604
+ canonicalContactName: string;
2605
+ } | undefined;
2606
+ blocked?: boolean | undefined;
2607
+ }, {
2608
+ toAddress: string;
2609
+ authorizationKind: "contact";
2610
+ contactId: string;
2611
+ contactName: string;
2612
+ claimedRecipientReference?: string | undefined;
2613
+ mismatch?: {
2614
+ claimedRecipientReference: string;
2615
+ canonicalContactId: string;
2616
+ canonicalContactName: string;
2617
+ } | undefined;
2618
+ blocked?: boolean | undefined;
2619
+ }>]>>;
2620
+ }, z.ZodUnknown, "strip"> | undefined;
2621
+ hmac?: string | undefined;
2622
+ };
2623
+ }, {
2624
+ nonce: number;
2625
+ action: Record<string, unknown>;
2626
+ network: "testnet" | "mainnet";
2627
+ signatureRequest: {
2628
+ id: string;
2629
+ signerAddress: string;
2630
+ signMethod: "typedData";
2631
+ typedData: {
2632
+ message: Record<string, unknown>;
2633
+ types: Record<string, {
2634
+ type: string;
2635
+ name: string;
2636
+ }[]>;
2637
+ domain: Record<string, unknown>;
2638
+ primaryType: string;
2639
+ };
2640
+ description?: string | undefined;
2641
+ metadata?: z.objectInputType<{
2642
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2643
+ toAddress: z.ZodString;
2644
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2645
+ mismatch: z.ZodOptional<z.ZodObject<{
2646
+ claimedRecipientReference: z.ZodString;
2647
+ canonicalContactId: z.ZodString;
2648
+ canonicalContactName: z.ZodString;
2649
+ }, "strip", z.ZodTypeAny, {
2650
+ claimedRecipientReference: string;
2651
+ canonicalContactId: string;
2652
+ canonicalContactName: string;
2653
+ }, {
2654
+ claimedRecipientReference: string;
2655
+ canonicalContactId: string;
2656
+ canonicalContactName: string;
2657
+ }>>;
2658
+ blocked: z.ZodOptional<z.ZodBoolean>;
2659
+ } & {
2660
+ authorizationKind: z.ZodLiteral<"self">;
2661
+ }, "strip", z.ZodTypeAny, {
2662
+ toAddress: string;
2663
+ authorizationKind: "self";
2664
+ claimedRecipientReference?: string | undefined;
2665
+ mismatch?: {
2666
+ claimedRecipientReference: string;
2667
+ canonicalContactId: string;
2668
+ canonicalContactName: string;
2669
+ } | undefined;
2670
+ blocked?: boolean | undefined;
2671
+ }, {
2672
+ toAddress: string;
2673
+ authorizationKind: "self";
2674
+ claimedRecipientReference?: string | undefined;
2675
+ mismatch?: {
2676
+ claimedRecipientReference: string;
2677
+ canonicalContactId: string;
2678
+ canonicalContactName: string;
2679
+ } | undefined;
2680
+ blocked?: boolean | undefined;
2681
+ }>, z.ZodObject<{
2682
+ toAddress: z.ZodString;
2683
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2684
+ mismatch: z.ZodOptional<z.ZodObject<{
2685
+ claimedRecipientReference: z.ZodString;
2686
+ canonicalContactId: z.ZodString;
2687
+ canonicalContactName: z.ZodString;
2688
+ }, "strip", z.ZodTypeAny, {
2689
+ claimedRecipientReference: string;
2690
+ canonicalContactId: string;
2691
+ canonicalContactName: string;
2692
+ }, {
2693
+ claimedRecipientReference: string;
2694
+ canonicalContactId: string;
2695
+ canonicalContactName: string;
2696
+ }>>;
2697
+ blocked: z.ZodOptional<z.ZodBoolean>;
2698
+ } & {
2699
+ authorizationKind: z.ZodLiteral<"contact">;
2700
+ contactId: z.ZodString;
2701
+ contactName: z.ZodString;
2702
+ }, "strip", z.ZodTypeAny, {
2703
+ toAddress: string;
2704
+ authorizationKind: "contact";
2705
+ contactId: string;
2706
+ contactName: string;
2707
+ claimedRecipientReference?: string | undefined;
2708
+ mismatch?: {
2709
+ claimedRecipientReference: string;
2710
+ canonicalContactId: string;
2711
+ canonicalContactName: string;
2712
+ } | undefined;
2713
+ blocked?: boolean | undefined;
2714
+ }, {
2715
+ toAddress: string;
2716
+ authorizationKind: "contact";
2717
+ contactId: string;
2718
+ contactName: string;
2719
+ claimedRecipientReference?: string | undefined;
2720
+ mismatch?: {
2721
+ claimedRecipientReference: string;
2722
+ canonicalContactId: string;
2723
+ canonicalContactName: string;
2724
+ } | undefined;
2725
+ blocked?: boolean | undefined;
2726
+ }>]>>;
2727
+ }, z.ZodUnknown, "strip"> | undefined;
2728
+ hmac?: string | undefined;
2729
+ } | {
2730
+ id: string;
2731
+ signerAddress: string;
2732
+ signMethod: "message";
2733
+ rawHash: string;
2734
+ description?: string | undefined;
2735
+ metadata?: z.objectInputType<{
2736
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2737
+ toAddress: z.ZodString;
2738
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2739
+ mismatch: z.ZodOptional<z.ZodObject<{
2740
+ claimedRecipientReference: z.ZodString;
2741
+ canonicalContactId: z.ZodString;
2742
+ canonicalContactName: z.ZodString;
2743
+ }, "strip", z.ZodTypeAny, {
2744
+ claimedRecipientReference: string;
2745
+ canonicalContactId: string;
2746
+ canonicalContactName: string;
2747
+ }, {
2748
+ claimedRecipientReference: string;
2749
+ canonicalContactId: string;
2750
+ canonicalContactName: string;
2751
+ }>>;
2752
+ blocked: z.ZodOptional<z.ZodBoolean>;
2753
+ } & {
2754
+ authorizationKind: z.ZodLiteral<"self">;
2755
+ }, "strip", z.ZodTypeAny, {
2756
+ toAddress: string;
2757
+ authorizationKind: "self";
2758
+ claimedRecipientReference?: string | undefined;
2759
+ mismatch?: {
2760
+ claimedRecipientReference: string;
2761
+ canonicalContactId: string;
2762
+ canonicalContactName: string;
2763
+ } | undefined;
2764
+ blocked?: boolean | undefined;
2765
+ }, {
2766
+ toAddress: string;
2767
+ authorizationKind: "self";
2768
+ claimedRecipientReference?: string | undefined;
2769
+ mismatch?: {
2770
+ claimedRecipientReference: string;
2771
+ canonicalContactId: string;
2772
+ canonicalContactName: string;
2773
+ } | undefined;
2774
+ blocked?: boolean | undefined;
2775
+ }>, z.ZodObject<{
2776
+ toAddress: z.ZodString;
2777
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2778
+ mismatch: z.ZodOptional<z.ZodObject<{
2779
+ claimedRecipientReference: z.ZodString;
2780
+ canonicalContactId: z.ZodString;
2781
+ canonicalContactName: z.ZodString;
2782
+ }, "strip", z.ZodTypeAny, {
2783
+ claimedRecipientReference: string;
2784
+ canonicalContactId: string;
2785
+ canonicalContactName: string;
2786
+ }, {
2787
+ claimedRecipientReference: string;
2788
+ canonicalContactId: string;
2789
+ canonicalContactName: string;
2790
+ }>>;
2791
+ blocked: z.ZodOptional<z.ZodBoolean>;
2792
+ } & {
2793
+ authorizationKind: z.ZodLiteral<"contact">;
2794
+ contactId: z.ZodString;
2795
+ contactName: z.ZodString;
2796
+ }, "strip", z.ZodTypeAny, {
2797
+ toAddress: string;
2798
+ authorizationKind: "contact";
2799
+ contactId: string;
2800
+ contactName: string;
2801
+ claimedRecipientReference?: string | undefined;
2802
+ mismatch?: {
2803
+ claimedRecipientReference: string;
2804
+ canonicalContactId: string;
2805
+ canonicalContactName: string;
2806
+ } | undefined;
2807
+ blocked?: boolean | undefined;
2808
+ }, {
2809
+ toAddress: string;
2810
+ authorizationKind: "contact";
2811
+ contactId: string;
2812
+ contactName: string;
2813
+ claimedRecipientReference?: string | undefined;
2814
+ mismatch?: {
2815
+ claimedRecipientReference: string;
2816
+ canonicalContactId: string;
2817
+ canonicalContactName: string;
2818
+ } | undefined;
2819
+ blocked?: boolean | undefined;
2820
+ }>]>>;
2821
+ }, z.ZodUnknown, "strip"> | undefined;
2822
+ hmac?: string | undefined;
2823
+ };
2824
+ }>>;
2825
+ }, "strip", z.ZodTypeAny, {
2826
+ status: "error" | "filled" | "resting" | "rebuilt";
2827
+ success: boolean;
2828
+ error?: string | undefined;
2829
+ rebuilt?: {
2830
+ nonce: number;
2831
+ action: Record<string, unknown>;
2832
+ network: "testnet" | "mainnet";
2833
+ signatureRequest: {
2834
+ id: string;
2835
+ signerAddress: string;
2836
+ signMethod: "typedData";
2837
+ typedData: {
2838
+ message: Record<string, unknown>;
2839
+ types: Record<string, {
2840
+ type: string;
2841
+ name: string;
2842
+ }[]>;
2843
+ domain: Record<string, unknown>;
2844
+ primaryType: string;
2845
+ };
2846
+ description?: string | undefined;
2847
+ metadata?: z.objectOutputType<{
2848
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2849
+ toAddress: z.ZodString;
2850
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2851
+ mismatch: z.ZodOptional<z.ZodObject<{
2852
+ claimedRecipientReference: z.ZodString;
2853
+ canonicalContactId: z.ZodString;
2854
+ canonicalContactName: z.ZodString;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ claimedRecipientReference: string;
2857
+ canonicalContactId: string;
2858
+ canonicalContactName: string;
2859
+ }, {
2860
+ claimedRecipientReference: string;
2861
+ canonicalContactId: string;
2862
+ canonicalContactName: string;
2863
+ }>>;
2864
+ blocked: z.ZodOptional<z.ZodBoolean>;
2865
+ } & {
2866
+ authorizationKind: z.ZodLiteral<"self">;
2867
+ }, "strip", z.ZodTypeAny, {
2868
+ toAddress: string;
2869
+ authorizationKind: "self";
2870
+ claimedRecipientReference?: string | undefined;
2871
+ mismatch?: {
2872
+ claimedRecipientReference: string;
2873
+ canonicalContactId: string;
2874
+ canonicalContactName: string;
2875
+ } | undefined;
2876
+ blocked?: boolean | undefined;
2877
+ }, {
2878
+ toAddress: string;
2879
+ authorizationKind: "self";
2880
+ claimedRecipientReference?: string | undefined;
2881
+ mismatch?: {
2882
+ claimedRecipientReference: string;
2883
+ canonicalContactId: string;
2884
+ canonicalContactName: string;
2885
+ } | undefined;
2886
+ blocked?: boolean | undefined;
2887
+ }>, z.ZodObject<{
2888
+ toAddress: z.ZodString;
2889
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2890
+ mismatch: z.ZodOptional<z.ZodObject<{
2891
+ claimedRecipientReference: z.ZodString;
2892
+ canonicalContactId: z.ZodString;
2893
+ canonicalContactName: z.ZodString;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ claimedRecipientReference: string;
2896
+ canonicalContactId: string;
2897
+ canonicalContactName: string;
2898
+ }, {
2899
+ claimedRecipientReference: string;
2900
+ canonicalContactId: string;
2901
+ canonicalContactName: string;
2902
+ }>>;
2903
+ blocked: z.ZodOptional<z.ZodBoolean>;
2904
+ } & {
2905
+ authorizationKind: z.ZodLiteral<"contact">;
2906
+ contactId: z.ZodString;
2907
+ contactName: z.ZodString;
2908
+ }, "strip", z.ZodTypeAny, {
2909
+ toAddress: string;
2910
+ authorizationKind: "contact";
2911
+ contactId: string;
2912
+ contactName: string;
2913
+ claimedRecipientReference?: string | undefined;
2914
+ mismatch?: {
2915
+ claimedRecipientReference: string;
2916
+ canonicalContactId: string;
2917
+ canonicalContactName: string;
2918
+ } | undefined;
2919
+ blocked?: boolean | undefined;
2920
+ }, {
2921
+ toAddress: string;
2922
+ authorizationKind: "contact";
2923
+ contactId: string;
2924
+ contactName: string;
2925
+ claimedRecipientReference?: string | undefined;
2926
+ mismatch?: {
2927
+ claimedRecipientReference: string;
2928
+ canonicalContactId: string;
2929
+ canonicalContactName: string;
2930
+ } | undefined;
2931
+ blocked?: boolean | undefined;
2932
+ }>]>>;
2933
+ }, z.ZodUnknown, "strip"> | undefined;
2934
+ hmac?: string | undefined;
2935
+ } | {
2936
+ id: string;
2937
+ signerAddress: string;
2938
+ signMethod: "message";
2939
+ rawHash: string;
2940
+ description?: string | undefined;
2941
+ metadata?: z.objectOutputType<{
2942
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
2943
+ toAddress: z.ZodString;
2944
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2945
+ mismatch: z.ZodOptional<z.ZodObject<{
2946
+ claimedRecipientReference: z.ZodString;
2947
+ canonicalContactId: z.ZodString;
2948
+ canonicalContactName: z.ZodString;
2949
+ }, "strip", z.ZodTypeAny, {
2950
+ claimedRecipientReference: string;
2951
+ canonicalContactId: string;
2952
+ canonicalContactName: string;
2953
+ }, {
2954
+ claimedRecipientReference: string;
2955
+ canonicalContactId: string;
2956
+ canonicalContactName: string;
2957
+ }>>;
2958
+ blocked: z.ZodOptional<z.ZodBoolean>;
2959
+ } & {
2960
+ authorizationKind: z.ZodLiteral<"self">;
2961
+ }, "strip", z.ZodTypeAny, {
2962
+ toAddress: string;
2963
+ authorizationKind: "self";
2964
+ claimedRecipientReference?: string | undefined;
2965
+ mismatch?: {
2966
+ claimedRecipientReference: string;
2967
+ canonicalContactId: string;
2968
+ canonicalContactName: string;
2969
+ } | undefined;
2970
+ blocked?: boolean | undefined;
2971
+ }, {
2972
+ toAddress: string;
2973
+ authorizationKind: "self";
2974
+ claimedRecipientReference?: string | undefined;
2975
+ mismatch?: {
2976
+ claimedRecipientReference: string;
2977
+ canonicalContactId: string;
2978
+ canonicalContactName: string;
2979
+ } | undefined;
2980
+ blocked?: boolean | undefined;
2981
+ }>, z.ZodObject<{
2982
+ toAddress: z.ZodString;
2983
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
2984
+ mismatch: z.ZodOptional<z.ZodObject<{
2985
+ claimedRecipientReference: z.ZodString;
2986
+ canonicalContactId: z.ZodString;
2987
+ canonicalContactName: z.ZodString;
2988
+ }, "strip", z.ZodTypeAny, {
2989
+ claimedRecipientReference: string;
2990
+ canonicalContactId: string;
2991
+ canonicalContactName: string;
2992
+ }, {
2993
+ claimedRecipientReference: string;
2994
+ canonicalContactId: string;
2995
+ canonicalContactName: string;
2996
+ }>>;
2997
+ blocked: z.ZodOptional<z.ZodBoolean>;
2998
+ } & {
2999
+ authorizationKind: z.ZodLiteral<"contact">;
3000
+ contactId: z.ZodString;
3001
+ contactName: z.ZodString;
3002
+ }, "strip", z.ZodTypeAny, {
3003
+ toAddress: string;
3004
+ authorizationKind: "contact";
3005
+ contactId: string;
3006
+ contactName: string;
3007
+ claimedRecipientReference?: string | undefined;
3008
+ mismatch?: {
3009
+ claimedRecipientReference: string;
3010
+ canonicalContactId: string;
3011
+ canonicalContactName: string;
3012
+ } | undefined;
3013
+ blocked?: boolean | undefined;
3014
+ }, {
3015
+ toAddress: string;
3016
+ authorizationKind: "contact";
3017
+ contactId: string;
3018
+ contactName: string;
3019
+ claimedRecipientReference?: string | undefined;
3020
+ mismatch?: {
3021
+ claimedRecipientReference: string;
3022
+ canonicalContactId: string;
3023
+ canonicalContactName: string;
3024
+ } | undefined;
3025
+ blocked?: boolean | undefined;
3026
+ }>]>>;
3027
+ }, z.ZodUnknown, "strip"> | undefined;
3028
+ hmac?: string | undefined;
3029
+ };
3030
+ } | undefined;
3031
+ oid?: number | undefined;
3032
+ avgPx?: string | undefined;
3033
+ totalSz?: string | undefined;
3034
+ }, {
3035
+ status: "error" | "filled" | "resting" | "rebuilt";
3036
+ success: boolean;
3037
+ error?: string | undefined;
3038
+ rebuilt?: {
3039
+ nonce: number;
3040
+ action: Record<string, unknown>;
3041
+ network: "testnet" | "mainnet";
3042
+ signatureRequest: {
3043
+ id: string;
3044
+ signerAddress: string;
3045
+ signMethod: "typedData";
3046
+ typedData: {
3047
+ message: Record<string, unknown>;
3048
+ types: Record<string, {
3049
+ type: string;
3050
+ name: string;
3051
+ }[]>;
3052
+ domain: Record<string, unknown>;
3053
+ primaryType: string;
3054
+ };
3055
+ description?: string | undefined;
3056
+ metadata?: z.objectInputType<{
3057
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
3058
+ toAddress: z.ZodString;
3059
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
3060
+ mismatch: z.ZodOptional<z.ZodObject<{
3061
+ claimedRecipientReference: z.ZodString;
3062
+ canonicalContactId: z.ZodString;
3063
+ canonicalContactName: z.ZodString;
3064
+ }, "strip", z.ZodTypeAny, {
3065
+ claimedRecipientReference: string;
3066
+ canonicalContactId: string;
3067
+ canonicalContactName: string;
3068
+ }, {
3069
+ claimedRecipientReference: string;
3070
+ canonicalContactId: string;
3071
+ canonicalContactName: string;
3072
+ }>>;
3073
+ blocked: z.ZodOptional<z.ZodBoolean>;
3074
+ } & {
3075
+ authorizationKind: z.ZodLiteral<"self">;
3076
+ }, "strip", z.ZodTypeAny, {
3077
+ toAddress: string;
3078
+ authorizationKind: "self";
3079
+ claimedRecipientReference?: string | undefined;
3080
+ mismatch?: {
3081
+ claimedRecipientReference: string;
3082
+ canonicalContactId: string;
3083
+ canonicalContactName: string;
3084
+ } | undefined;
3085
+ blocked?: boolean | undefined;
3086
+ }, {
3087
+ toAddress: string;
3088
+ authorizationKind: "self";
3089
+ claimedRecipientReference?: string | undefined;
3090
+ mismatch?: {
3091
+ claimedRecipientReference: string;
3092
+ canonicalContactId: string;
3093
+ canonicalContactName: string;
3094
+ } | undefined;
3095
+ blocked?: boolean | undefined;
3096
+ }>, z.ZodObject<{
3097
+ toAddress: z.ZodString;
3098
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
3099
+ mismatch: z.ZodOptional<z.ZodObject<{
3100
+ claimedRecipientReference: z.ZodString;
3101
+ canonicalContactId: z.ZodString;
3102
+ canonicalContactName: z.ZodString;
3103
+ }, "strip", z.ZodTypeAny, {
3104
+ claimedRecipientReference: string;
3105
+ canonicalContactId: string;
3106
+ canonicalContactName: string;
3107
+ }, {
3108
+ claimedRecipientReference: string;
3109
+ canonicalContactId: string;
3110
+ canonicalContactName: string;
3111
+ }>>;
3112
+ blocked: z.ZodOptional<z.ZodBoolean>;
3113
+ } & {
3114
+ authorizationKind: z.ZodLiteral<"contact">;
3115
+ contactId: z.ZodString;
3116
+ contactName: z.ZodString;
3117
+ }, "strip", z.ZodTypeAny, {
3118
+ toAddress: string;
3119
+ authorizationKind: "contact";
3120
+ contactId: string;
3121
+ contactName: string;
3122
+ claimedRecipientReference?: string | undefined;
3123
+ mismatch?: {
3124
+ claimedRecipientReference: string;
3125
+ canonicalContactId: string;
3126
+ canonicalContactName: string;
3127
+ } | undefined;
3128
+ blocked?: boolean | undefined;
3129
+ }, {
3130
+ toAddress: string;
3131
+ authorizationKind: "contact";
3132
+ contactId: string;
3133
+ contactName: string;
3134
+ claimedRecipientReference?: string | undefined;
3135
+ mismatch?: {
3136
+ claimedRecipientReference: string;
3137
+ canonicalContactId: string;
3138
+ canonicalContactName: string;
3139
+ } | undefined;
3140
+ blocked?: boolean | undefined;
3141
+ }>]>>;
3142
+ }, z.ZodUnknown, "strip"> | undefined;
3143
+ hmac?: string | undefined;
3144
+ } | {
3145
+ id: string;
3146
+ signerAddress: string;
3147
+ signMethod: "message";
3148
+ rawHash: string;
3149
+ description?: string | undefined;
3150
+ metadata?: z.objectInputType<{
3151
+ recipientAuthorization: z.ZodOptional<z.ZodDiscriminatedUnion<"authorizationKind", [z.ZodObject<{
3152
+ toAddress: z.ZodString;
3153
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
3154
+ mismatch: z.ZodOptional<z.ZodObject<{
3155
+ claimedRecipientReference: z.ZodString;
3156
+ canonicalContactId: z.ZodString;
3157
+ canonicalContactName: z.ZodString;
3158
+ }, "strip", z.ZodTypeAny, {
3159
+ claimedRecipientReference: string;
3160
+ canonicalContactId: string;
3161
+ canonicalContactName: string;
3162
+ }, {
3163
+ claimedRecipientReference: string;
3164
+ canonicalContactId: string;
3165
+ canonicalContactName: string;
3166
+ }>>;
3167
+ blocked: z.ZodOptional<z.ZodBoolean>;
3168
+ } & {
3169
+ authorizationKind: z.ZodLiteral<"self">;
3170
+ }, "strip", z.ZodTypeAny, {
3171
+ toAddress: string;
3172
+ authorizationKind: "self";
3173
+ claimedRecipientReference?: string | undefined;
3174
+ mismatch?: {
3175
+ claimedRecipientReference: string;
3176
+ canonicalContactId: string;
3177
+ canonicalContactName: string;
3178
+ } | undefined;
3179
+ blocked?: boolean | undefined;
3180
+ }, {
3181
+ toAddress: string;
3182
+ authorizationKind: "self";
3183
+ claimedRecipientReference?: string | undefined;
3184
+ mismatch?: {
3185
+ claimedRecipientReference: string;
3186
+ canonicalContactId: string;
3187
+ canonicalContactName: string;
3188
+ } | undefined;
3189
+ blocked?: boolean | undefined;
3190
+ }>, z.ZodObject<{
3191
+ toAddress: z.ZodString;
3192
+ claimedRecipientReference: z.ZodOptional<z.ZodString>;
3193
+ mismatch: z.ZodOptional<z.ZodObject<{
3194
+ claimedRecipientReference: z.ZodString;
3195
+ canonicalContactId: z.ZodString;
3196
+ canonicalContactName: z.ZodString;
3197
+ }, "strip", z.ZodTypeAny, {
3198
+ claimedRecipientReference: string;
3199
+ canonicalContactId: string;
3200
+ canonicalContactName: string;
3201
+ }, {
3202
+ claimedRecipientReference: string;
3203
+ canonicalContactId: string;
3204
+ canonicalContactName: string;
3205
+ }>>;
3206
+ blocked: z.ZodOptional<z.ZodBoolean>;
3207
+ } & {
3208
+ authorizationKind: z.ZodLiteral<"contact">;
3209
+ contactId: z.ZodString;
3210
+ contactName: z.ZodString;
3211
+ }, "strip", z.ZodTypeAny, {
3212
+ toAddress: string;
3213
+ authorizationKind: "contact";
3214
+ contactId: string;
3215
+ contactName: string;
3216
+ claimedRecipientReference?: string | undefined;
3217
+ mismatch?: {
3218
+ claimedRecipientReference: string;
3219
+ canonicalContactId: string;
3220
+ canonicalContactName: string;
3221
+ } | undefined;
3222
+ blocked?: boolean | undefined;
3223
+ }, {
3224
+ toAddress: string;
3225
+ authorizationKind: "contact";
3226
+ contactId: string;
3227
+ contactName: string;
3228
+ claimedRecipientReference?: string | undefined;
3229
+ mismatch?: {
3230
+ claimedRecipientReference: string;
3231
+ canonicalContactId: string;
3232
+ canonicalContactName: string;
3233
+ } | undefined;
3234
+ blocked?: boolean | undefined;
3235
+ }>]>>;
3236
+ }, z.ZodUnknown, "strip"> | undefined;
3237
+ hmac?: string | undefined;
3238
+ };
3239
+ } | undefined;
3240
+ oid?: number | undefined;
3241
+ avgPx?: string | undefined;
3242
+ totalSz?: string | undefined;
3243
+ }>;
3244
+ export type HyperliquidSignature = z.infer<typeof HyperliquidSignatureSchema>;
3245
+ export type HyperliquidRebuiltOrder = z.infer<typeof HyperliquidRebuiltOrderSchema>;
3246
+ export type HyperliquidExchangeSubmitRequest = z.infer<typeof HyperliquidExchangeSubmitRequestSchema>;
3247
+ export type HyperliquidExchangeSubmitResponse = z.infer<typeof HyperliquidExchangeSubmitResponseSchema>;
3248
+ //# sourceMappingURL=exchange.d.ts.map