@deepintel-ltd/farmpro-contracts 1.22.4 → 1.23.1

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 (80) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +6 -0
  4. package/dist/routes/categories.routes.d.ts +26 -26
  5. package/dist/routes/commodity-deals.routes.d.ts +217 -42
  6. package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
  7. package/dist/routes/crop-profile.routes.d.ts +8 -8
  8. package/dist/routes/farm-enterprises.routes.d.ts +395 -0
  9. package/dist/routes/farm-enterprises.routes.d.ts.map +1 -1
  10. package/dist/routes/farm-enterprises.routes.js +14 -1
  11. package/dist/routes/farms.routes.d.ts +73 -20
  12. package/dist/routes/farms.routes.d.ts.map +1 -1
  13. package/dist/routes/fertigation.routes.d.ts +96 -96
  14. package/dist/routes/field-monitoring.routes.d.ts +2 -2
  15. package/dist/routes/finance.routes.d.ts +8 -8
  16. package/dist/routes/index.d.ts +9 -0
  17. package/dist/routes/index.d.ts.map +1 -1
  18. package/dist/routes/index.js +6 -0
  19. package/dist/routes/invoices.routes.d.ts +210 -60
  20. package/dist/routes/invoices.routes.d.ts.map +1 -1
  21. package/dist/routes/invoices.routes.js +4 -1
  22. package/dist/routes/monitoring-visualization.routes.d.ts +2 -2
  23. package/dist/routes/notifications.routes.d.ts +12 -12
  24. package/dist/routes/organization-capabilities.routes.d.ts +1671 -0
  25. package/dist/routes/organization-capabilities.routes.d.ts.map +1 -0
  26. package/dist/routes/organization-capabilities.routes.js +74 -0
  27. package/dist/routes/organizations.routes.d.ts +90 -47
  28. package/dist/routes/organizations.routes.d.ts.map +1 -1
  29. package/dist/routes/purchase-orders.routes.d.ts +2061 -0
  30. package/dist/routes/purchase-orders.routes.d.ts.map +1 -0
  31. package/dist/routes/purchase-orders.routes.js +55 -0
  32. package/dist/routes/suppliers.routes.d.ts +96 -96
  33. package/dist/routes/team-payments.routes.d.ts +105 -105
  34. package/dist/routes/team.routes.d.ts +125 -25
  35. package/dist/routes/team.routes.d.ts.map +1 -1
  36. package/dist/routes/trade-cash-events.routes.d.ts +3837 -0
  37. package/dist/routes/trade-cash-events.routes.d.ts.map +1 -0
  38. package/dist/routes/trade-cash-events.routes.js +126 -0
  39. package/dist/routes/waybills.routes.d.ts +229 -15
  40. package/dist/routes/waybills.routes.d.ts.map +1 -1
  41. package/dist/routes/waybills.routes.js +4 -1
  42. package/dist/schemas/categories.schemas.d.ts +21 -21
  43. package/dist/schemas/commodity-deals.schemas.d.ts +116 -18
  44. package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
  45. package/dist/schemas/commodity-deals.schemas.js +7 -0
  46. package/dist/schemas/crop-profile.schemas.d.ts +12 -12
  47. package/dist/schemas/farm-enterprises.schemas.d.ts +185 -0
  48. package/dist/schemas/farm-enterprises.schemas.d.ts.map +1 -1
  49. package/dist/schemas/farm-enterprises.schemas.js +21 -0
  50. package/dist/schemas/farms.schemas.d.ts +121 -19
  51. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  52. package/dist/schemas/farms.schemas.js +15 -1
  53. package/dist/schemas/fertigation.schemas.d.ts +36 -36
  54. package/dist/schemas/field-monitoring.schemas.d.ts +2 -2
  55. package/dist/schemas/finance.schemas.d.ts +8 -8
  56. package/dist/schemas/invoices.schemas.d.ts +153 -39
  57. package/dist/schemas/invoices.schemas.d.ts.map +1 -1
  58. package/dist/schemas/invoices.schemas.js +8 -2
  59. package/dist/schemas/notifications.schemas.d.ts +18 -18
  60. package/dist/schemas/organization-capabilities.schemas.d.ts +355 -0
  61. package/dist/schemas/organization-capabilities.schemas.d.ts.map +1 -0
  62. package/dist/schemas/organization-capabilities.schemas.js +19 -0
  63. package/dist/schemas/organizations.schemas.d.ts +105 -46
  64. package/dist/schemas/organizations.schemas.d.ts.map +1 -1
  65. package/dist/schemas/organizations.schemas.js +8 -1
  66. package/dist/schemas/purchase-orders.schemas.d.ts +1031 -0
  67. package/dist/schemas/purchase-orders.schemas.d.ts.map +1 -0
  68. package/dist/schemas/purchase-orders.schemas.js +49 -0
  69. package/dist/schemas/suppliers.schemas.d.ts +96 -96
  70. package/dist/schemas/team-payments.schemas.d.ts +87 -87
  71. package/dist/schemas/team.schemas.d.ts +137 -20
  72. package/dist/schemas/team.schemas.d.ts.map +1 -1
  73. package/dist/schemas/team.schemas.js +29 -1
  74. package/dist/schemas/trade-cash-events.schemas.d.ts +1524 -0
  75. package/dist/schemas/trade-cash-events.schemas.d.ts.map +1 -0
  76. package/dist/schemas/trade-cash-events.schemas.js +131 -0
  77. package/dist/schemas/waybills.schemas.d.ts +177 -9
  78. package/dist/schemas/waybills.schemas.d.ts.map +1 -1
  79. package/dist/schemas/waybills.schemas.js +9 -0
  80. package/package.json +1 -1
@@ -0,0 +1,3837 @@
1
+ import { z } from 'zod';
2
+ export declare const tradeCashEventsRouter: {
3
+ listTradeCashEvents: {
4
+ pathParams: z.ZodObject<{
5
+ organizationId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ organizationId: string;
8
+ }, {
9
+ organizationId: string;
10
+ }>;
11
+ query: z.ZodObject<{
12
+ type: z.ZodOptional<z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>>;
13
+ dealId: z.ZodOptional<z.ZodString>;
14
+ invoiceId: z.ZodOptional<z.ZodString>;
15
+ partyId: z.ZodOptional<z.ZodString>;
16
+ page: z.ZodOptional<z.ZodNumber>;
17
+ pageSize: z.ZodOptional<z.ZodNumber>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ type?: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | undefined;
20
+ pageSize?: number | undefined;
21
+ invoiceId?: string | undefined;
22
+ partyId?: string | undefined;
23
+ dealId?: string | undefined;
24
+ page?: number | undefined;
25
+ }, {
26
+ type?: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt" | undefined;
27
+ pageSize?: number | undefined;
28
+ invoiceId?: string | undefined;
29
+ partyId?: string | undefined;
30
+ dealId?: string | undefined;
31
+ page?: number | undefined;
32
+ }>;
33
+ summary: "List trade cash events (requires COMMODITY_TRADE pack)";
34
+ method: "GET";
35
+ path: "/organizations/:organizationId/trade-cash-events";
36
+ responses: {
37
+ 200: z.ZodObject<{
38
+ data: z.ZodArray<z.ZodObject<{
39
+ type: z.ZodLiteral<string>;
40
+ id: z.ZodString;
41
+ attributes: z.ZodObject<{
42
+ organizationId: z.ZodString;
43
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
44
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
45
+ partyId: z.ZodString;
46
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ amount: z.ZodNumber;
48
+ currency: z.ZodDefault<z.ZodString>;
49
+ occurredAt: z.ZodString;
50
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ } & {
56
+ createdAt: z.ZodString;
57
+ updatedAt: z.ZodString;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
60
+ createdAt: string;
61
+ updatedAt: string;
62
+ organizationId: string;
63
+ currency: string;
64
+ occurredAt: string;
65
+ amount: number;
66
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
67
+ partyId: string;
68
+ method?: string | null | undefined;
69
+ notes?: string | null | undefined;
70
+ invoiceId?: string | null | undefined;
71
+ reference?: string | null | undefined;
72
+ partyName?: string | null | undefined;
73
+ dealId?: string | null | undefined;
74
+ }, {
75
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
76
+ createdAt: string;
77
+ updatedAt: string;
78
+ organizationId: string;
79
+ occurredAt: string;
80
+ amount: number;
81
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
82
+ partyId: string;
83
+ method?: string | null | undefined;
84
+ currency?: string | undefined;
85
+ notes?: string | null | undefined;
86
+ invoiceId?: string | null | undefined;
87
+ reference?: string | null | undefined;
88
+ partyName?: string | null | undefined;
89
+ dealId?: string | null | undefined;
90
+ }>;
91
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
92
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
93
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ type: string;
96
+ id: string;
97
+ attributes: {
98
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
99
+ createdAt: string;
100
+ updatedAt: string;
101
+ organizationId: string;
102
+ currency: string;
103
+ occurredAt: string;
104
+ amount: number;
105
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
106
+ partyId: string;
107
+ method?: string | null | undefined;
108
+ notes?: string | null | undefined;
109
+ invoiceId?: string | null | undefined;
110
+ reference?: string | null | undefined;
111
+ partyName?: string | null | undefined;
112
+ dealId?: string | null | undefined;
113
+ };
114
+ relationships?: Record<string, unknown> | undefined;
115
+ links?: Record<string, string> | undefined;
116
+ meta?: Record<string, unknown> | undefined;
117
+ }, {
118
+ type: string;
119
+ id: string;
120
+ attributes: {
121
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ organizationId: string;
125
+ occurredAt: string;
126
+ amount: number;
127
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
128
+ partyId: string;
129
+ method?: string | null | undefined;
130
+ currency?: string | undefined;
131
+ notes?: string | null | undefined;
132
+ invoiceId?: string | null | undefined;
133
+ reference?: string | null | undefined;
134
+ partyName?: string | null | undefined;
135
+ dealId?: string | null | undefined;
136
+ };
137
+ relationships?: Record<string, unknown> | undefined;
138
+ links?: Record<string, string> | undefined;
139
+ meta?: Record<string, unknown> | undefined;
140
+ }>, "many">;
141
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ type: z.ZodString;
143
+ id: z.ZodString;
144
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
145
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
146
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
147
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
+ }, "strip", z.ZodTypeAny, {
149
+ type: string;
150
+ id: string;
151
+ attributes?: Record<string, unknown> | undefined;
152
+ relationships?: Record<string, unknown> | undefined;
153
+ links?: Record<string, string> | undefined;
154
+ meta?: Record<string, unknown> | undefined;
155
+ }, {
156
+ type: string;
157
+ id: string;
158
+ attributes?: Record<string, unknown> | undefined;
159
+ relationships?: Record<string, unknown> | undefined;
160
+ links?: Record<string, string> | undefined;
161
+ meta?: Record<string, unknown> | undefined;
162
+ }>, "many">>;
163
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
164
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ data: {
167
+ type: string;
168
+ id: string;
169
+ attributes: {
170
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
171
+ createdAt: string;
172
+ updatedAt: string;
173
+ organizationId: string;
174
+ currency: string;
175
+ occurredAt: string;
176
+ amount: number;
177
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
178
+ partyId: string;
179
+ method?: string | null | undefined;
180
+ notes?: string | null | undefined;
181
+ invoiceId?: string | null | undefined;
182
+ reference?: string | null | undefined;
183
+ partyName?: string | null | undefined;
184
+ dealId?: string | null | undefined;
185
+ };
186
+ relationships?: Record<string, unknown> | undefined;
187
+ links?: Record<string, string> | undefined;
188
+ meta?: Record<string, unknown> | undefined;
189
+ }[];
190
+ links?: Record<string, string> | undefined;
191
+ meta?: Record<string, unknown> | undefined;
192
+ included?: {
193
+ type: string;
194
+ id: string;
195
+ attributes?: Record<string, unknown> | undefined;
196
+ relationships?: Record<string, unknown> | undefined;
197
+ links?: Record<string, string> | undefined;
198
+ meta?: Record<string, unknown> | undefined;
199
+ }[] | undefined;
200
+ }, {
201
+ data: {
202
+ type: string;
203
+ id: string;
204
+ attributes: {
205
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
206
+ createdAt: string;
207
+ updatedAt: string;
208
+ organizationId: string;
209
+ occurredAt: string;
210
+ amount: number;
211
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
212
+ partyId: string;
213
+ method?: string | null | undefined;
214
+ currency?: string | undefined;
215
+ notes?: string | null | undefined;
216
+ invoiceId?: string | null | undefined;
217
+ reference?: string | null | undefined;
218
+ partyName?: string | null | undefined;
219
+ dealId?: string | null | undefined;
220
+ };
221
+ relationships?: Record<string, unknown> | undefined;
222
+ links?: Record<string, string> | undefined;
223
+ meta?: Record<string, unknown> | undefined;
224
+ }[];
225
+ links?: Record<string, string> | undefined;
226
+ meta?: Record<string, unknown> | undefined;
227
+ included?: {
228
+ type: string;
229
+ id: string;
230
+ attributes?: Record<string, unknown> | undefined;
231
+ relationships?: Record<string, unknown> | undefined;
232
+ links?: Record<string, string> | undefined;
233
+ meta?: Record<string, unknown> | undefined;
234
+ }[] | undefined;
235
+ }>;
236
+ 401: z.ZodObject<{
237
+ errors: z.ZodArray<z.ZodObject<{
238
+ id: z.ZodOptional<z.ZodString>;
239
+ links: z.ZodOptional<z.ZodObject<{
240
+ about: z.ZodOptional<z.ZodString>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ about?: string | undefined;
243
+ }, {
244
+ about?: string | undefined;
245
+ }>>;
246
+ status: z.ZodOptional<z.ZodString>;
247
+ code: z.ZodOptional<z.ZodString>;
248
+ title: z.ZodOptional<z.ZodString>;
249
+ detail: z.ZodOptional<z.ZodString>;
250
+ source: z.ZodOptional<z.ZodObject<{
251
+ pointer: z.ZodOptional<z.ZodString>;
252
+ parameter: z.ZodOptional<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ pointer?: string | undefined;
255
+ parameter?: string | undefined;
256
+ }, {
257
+ pointer?: string | undefined;
258
+ parameter?: string | undefined;
259
+ }>>;
260
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ status?: string | undefined;
263
+ code?: string | undefined;
264
+ id?: string | undefined;
265
+ links?: {
266
+ about?: string | undefined;
267
+ } | undefined;
268
+ meta?: Record<string, unknown> | undefined;
269
+ title?: string | undefined;
270
+ detail?: string | undefined;
271
+ source?: {
272
+ pointer?: string | undefined;
273
+ parameter?: string | undefined;
274
+ } | undefined;
275
+ }, {
276
+ status?: string | undefined;
277
+ code?: string | undefined;
278
+ id?: string | undefined;
279
+ links?: {
280
+ about?: string | undefined;
281
+ } | undefined;
282
+ meta?: Record<string, unknown> | undefined;
283
+ title?: string | undefined;
284
+ detail?: string | undefined;
285
+ source?: {
286
+ pointer?: string | undefined;
287
+ parameter?: string | undefined;
288
+ } | undefined;
289
+ }>, "many">;
290
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ errors: {
293
+ status?: string | undefined;
294
+ code?: string | undefined;
295
+ id?: string | undefined;
296
+ links?: {
297
+ about?: string | undefined;
298
+ } | undefined;
299
+ meta?: Record<string, unknown> | undefined;
300
+ title?: string | undefined;
301
+ detail?: string | undefined;
302
+ source?: {
303
+ pointer?: string | undefined;
304
+ parameter?: string | undefined;
305
+ } | undefined;
306
+ }[];
307
+ meta?: Record<string, unknown> | undefined;
308
+ }, {
309
+ errors: {
310
+ status?: string | undefined;
311
+ code?: string | undefined;
312
+ id?: string | undefined;
313
+ links?: {
314
+ about?: string | undefined;
315
+ } | undefined;
316
+ meta?: Record<string, unknown> | undefined;
317
+ title?: string | undefined;
318
+ detail?: string | undefined;
319
+ source?: {
320
+ pointer?: string | undefined;
321
+ parameter?: string | undefined;
322
+ } | undefined;
323
+ }[];
324
+ meta?: Record<string, unknown> | undefined;
325
+ }>;
326
+ 403: z.ZodObject<{
327
+ errors: z.ZodArray<z.ZodObject<{
328
+ id: z.ZodOptional<z.ZodString>;
329
+ links: z.ZodOptional<z.ZodObject<{
330
+ about: z.ZodOptional<z.ZodString>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ about?: string | undefined;
333
+ }, {
334
+ about?: string | undefined;
335
+ }>>;
336
+ status: z.ZodOptional<z.ZodString>;
337
+ code: z.ZodOptional<z.ZodString>;
338
+ title: z.ZodOptional<z.ZodString>;
339
+ detail: z.ZodOptional<z.ZodString>;
340
+ source: z.ZodOptional<z.ZodObject<{
341
+ pointer: z.ZodOptional<z.ZodString>;
342
+ parameter: z.ZodOptional<z.ZodString>;
343
+ }, "strip", z.ZodTypeAny, {
344
+ pointer?: string | undefined;
345
+ parameter?: string | undefined;
346
+ }, {
347
+ pointer?: string | undefined;
348
+ parameter?: string | undefined;
349
+ }>>;
350
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
351
+ }, "strip", z.ZodTypeAny, {
352
+ status?: string | undefined;
353
+ code?: string | undefined;
354
+ id?: string | undefined;
355
+ links?: {
356
+ about?: string | undefined;
357
+ } | undefined;
358
+ meta?: Record<string, unknown> | undefined;
359
+ title?: string | undefined;
360
+ detail?: string | undefined;
361
+ source?: {
362
+ pointer?: string | undefined;
363
+ parameter?: string | undefined;
364
+ } | undefined;
365
+ }, {
366
+ status?: string | undefined;
367
+ code?: string | undefined;
368
+ id?: string | undefined;
369
+ links?: {
370
+ about?: string | undefined;
371
+ } | undefined;
372
+ meta?: Record<string, unknown> | undefined;
373
+ title?: string | undefined;
374
+ detail?: string | undefined;
375
+ source?: {
376
+ pointer?: string | undefined;
377
+ parameter?: string | undefined;
378
+ } | undefined;
379
+ }>, "many">;
380
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
381
+ }, "strip", z.ZodTypeAny, {
382
+ errors: {
383
+ status?: string | undefined;
384
+ code?: string | undefined;
385
+ id?: string | undefined;
386
+ links?: {
387
+ about?: string | undefined;
388
+ } | undefined;
389
+ meta?: Record<string, unknown> | undefined;
390
+ title?: string | undefined;
391
+ detail?: string | undefined;
392
+ source?: {
393
+ pointer?: string | undefined;
394
+ parameter?: string | undefined;
395
+ } | undefined;
396
+ }[];
397
+ meta?: Record<string, unknown> | undefined;
398
+ }, {
399
+ errors: {
400
+ status?: string | undefined;
401
+ code?: string | undefined;
402
+ id?: string | undefined;
403
+ links?: {
404
+ about?: string | undefined;
405
+ } | undefined;
406
+ meta?: Record<string, unknown> | undefined;
407
+ title?: string | undefined;
408
+ detail?: string | undefined;
409
+ source?: {
410
+ pointer?: string | undefined;
411
+ parameter?: string | undefined;
412
+ } | undefined;
413
+ }[];
414
+ meta?: Record<string, unknown> | undefined;
415
+ }>;
416
+ 404: z.ZodObject<{
417
+ errors: z.ZodArray<z.ZodObject<{
418
+ id: z.ZodOptional<z.ZodString>;
419
+ links: z.ZodOptional<z.ZodObject<{
420
+ about: z.ZodOptional<z.ZodString>;
421
+ }, "strip", z.ZodTypeAny, {
422
+ about?: string | undefined;
423
+ }, {
424
+ about?: string | undefined;
425
+ }>>;
426
+ status: z.ZodOptional<z.ZodString>;
427
+ code: z.ZodOptional<z.ZodString>;
428
+ title: z.ZodOptional<z.ZodString>;
429
+ detail: z.ZodOptional<z.ZodString>;
430
+ source: z.ZodOptional<z.ZodObject<{
431
+ pointer: z.ZodOptional<z.ZodString>;
432
+ parameter: z.ZodOptional<z.ZodString>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ pointer?: string | undefined;
435
+ parameter?: string | undefined;
436
+ }, {
437
+ pointer?: string | undefined;
438
+ parameter?: string | undefined;
439
+ }>>;
440
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
441
+ }, "strip", z.ZodTypeAny, {
442
+ status?: string | undefined;
443
+ code?: string | undefined;
444
+ id?: string | undefined;
445
+ links?: {
446
+ about?: string | undefined;
447
+ } | undefined;
448
+ meta?: Record<string, unknown> | undefined;
449
+ title?: string | undefined;
450
+ detail?: string | undefined;
451
+ source?: {
452
+ pointer?: string | undefined;
453
+ parameter?: string | undefined;
454
+ } | undefined;
455
+ }, {
456
+ status?: string | undefined;
457
+ code?: string | undefined;
458
+ id?: string | undefined;
459
+ links?: {
460
+ about?: string | undefined;
461
+ } | undefined;
462
+ meta?: Record<string, unknown> | undefined;
463
+ title?: string | undefined;
464
+ detail?: string | undefined;
465
+ source?: {
466
+ pointer?: string | undefined;
467
+ parameter?: string | undefined;
468
+ } | undefined;
469
+ }>, "many">;
470
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ errors: {
473
+ status?: string | undefined;
474
+ code?: string | undefined;
475
+ id?: string | undefined;
476
+ links?: {
477
+ about?: string | undefined;
478
+ } | undefined;
479
+ meta?: Record<string, unknown> | undefined;
480
+ title?: string | undefined;
481
+ detail?: string | undefined;
482
+ source?: {
483
+ pointer?: string | undefined;
484
+ parameter?: string | undefined;
485
+ } | undefined;
486
+ }[];
487
+ meta?: Record<string, unknown> | undefined;
488
+ }, {
489
+ errors: {
490
+ status?: string | undefined;
491
+ code?: string | undefined;
492
+ id?: string | undefined;
493
+ links?: {
494
+ about?: string | undefined;
495
+ } | undefined;
496
+ meta?: Record<string, unknown> | undefined;
497
+ title?: string | undefined;
498
+ detail?: string | undefined;
499
+ source?: {
500
+ pointer?: string | undefined;
501
+ parameter?: string | undefined;
502
+ } | undefined;
503
+ }[];
504
+ meta?: Record<string, unknown> | undefined;
505
+ }>;
506
+ };
507
+ };
508
+ createTradeCashEvent: {
509
+ pathParams: z.ZodObject<{
510
+ organizationId: z.ZodString;
511
+ }, "strip", z.ZodTypeAny, {
512
+ organizationId: string;
513
+ }, {
514
+ organizationId: string;
515
+ }>;
516
+ summary: "Record a trade cash event";
517
+ method: "POST";
518
+ body: z.ZodObject<{
519
+ data: z.ZodObject<{
520
+ type: z.ZodLiteral<"trade-cash-events">;
521
+ attributes: z.ZodObject<{
522
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
523
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
524
+ partyId: z.ZodString;
525
+ partyName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
526
+ amount: z.ZodNumber;
527
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
528
+ occurredAt: z.ZodString;
529
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
530
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
531
+ dealId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
532
+ invoiceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
533
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
534
+ }, "strip", z.ZodTypeAny, {
535
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
536
+ currency: string;
537
+ occurredAt: string;
538
+ amount: number;
539
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
540
+ partyId: string;
541
+ method?: string | null | undefined;
542
+ notes?: string | null | undefined;
543
+ invoiceId?: string | null | undefined;
544
+ reference?: string | null | undefined;
545
+ partyName?: string | null | undefined;
546
+ dealId?: string | null | undefined;
547
+ }, {
548
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
549
+ occurredAt: string;
550
+ amount: number;
551
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
552
+ partyId: string;
553
+ method?: string | null | undefined;
554
+ currency?: string | undefined;
555
+ notes?: string | null | undefined;
556
+ invoiceId?: string | null | undefined;
557
+ reference?: string | null | undefined;
558
+ partyName?: string | null | undefined;
559
+ dealId?: string | null | undefined;
560
+ }>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ type: "trade-cash-events";
563
+ attributes: {
564
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
565
+ currency: string;
566
+ occurredAt: string;
567
+ amount: number;
568
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
569
+ partyId: string;
570
+ method?: string | null | undefined;
571
+ notes?: string | null | undefined;
572
+ invoiceId?: string | null | undefined;
573
+ reference?: string | null | undefined;
574
+ partyName?: string | null | undefined;
575
+ dealId?: string | null | undefined;
576
+ };
577
+ }, {
578
+ type: "trade-cash-events";
579
+ attributes: {
580
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
581
+ occurredAt: string;
582
+ amount: number;
583
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
584
+ partyId: string;
585
+ method?: string | null | undefined;
586
+ currency?: string | undefined;
587
+ notes?: string | null | undefined;
588
+ invoiceId?: string | null | undefined;
589
+ reference?: string | null | undefined;
590
+ partyName?: string | null | undefined;
591
+ dealId?: string | null | undefined;
592
+ };
593
+ }>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ data: {
596
+ type: "trade-cash-events";
597
+ attributes: {
598
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
599
+ currency: string;
600
+ occurredAt: string;
601
+ amount: number;
602
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
603
+ partyId: string;
604
+ method?: string | null | undefined;
605
+ notes?: string | null | undefined;
606
+ invoiceId?: string | null | undefined;
607
+ reference?: string | null | undefined;
608
+ partyName?: string | null | undefined;
609
+ dealId?: string | null | undefined;
610
+ };
611
+ };
612
+ }, {
613
+ data: {
614
+ type: "trade-cash-events";
615
+ attributes: {
616
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
617
+ occurredAt: string;
618
+ amount: number;
619
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
620
+ partyId: string;
621
+ method?: string | null | undefined;
622
+ currency?: string | undefined;
623
+ notes?: string | null | undefined;
624
+ invoiceId?: string | null | undefined;
625
+ reference?: string | null | undefined;
626
+ partyName?: string | null | undefined;
627
+ dealId?: string | null | undefined;
628
+ };
629
+ };
630
+ }>;
631
+ path: "/organizations/:organizationId/trade-cash-events";
632
+ responses: {
633
+ 201: z.ZodObject<{
634
+ data: z.ZodObject<{
635
+ type: z.ZodLiteral<string>;
636
+ id: z.ZodString;
637
+ attributes: z.ZodObject<{
638
+ organizationId: z.ZodString;
639
+ type: z.ZodEnum<["capital_in", "capital_out", "commission_payout", "supplier_payment", "buyer_receipt"]>;
640
+ partyType: z.ZodEnum<["investor", "staff", "supplier", "buyer", "broker", "other"]>;
641
+ partyId: z.ZodString;
642
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ amount: z.ZodNumber;
644
+ currency: z.ZodDefault<z.ZodString>;
645
+ occurredAt: z.ZodString;
646
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
+ dealId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
+ invoiceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ } & {
652
+ createdAt: z.ZodString;
653
+ updatedAt: z.ZodString;
654
+ }, "strip", z.ZodTypeAny, {
655
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
656
+ createdAt: string;
657
+ updatedAt: string;
658
+ organizationId: string;
659
+ currency: string;
660
+ occurredAt: string;
661
+ amount: number;
662
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
663
+ partyId: string;
664
+ method?: string | null | undefined;
665
+ notes?: string | null | undefined;
666
+ invoiceId?: string | null | undefined;
667
+ reference?: string | null | undefined;
668
+ partyName?: string | null | undefined;
669
+ dealId?: string | null | undefined;
670
+ }, {
671
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
672
+ createdAt: string;
673
+ updatedAt: string;
674
+ organizationId: string;
675
+ occurredAt: string;
676
+ amount: number;
677
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
678
+ partyId: string;
679
+ method?: string | null | undefined;
680
+ currency?: string | undefined;
681
+ notes?: string | null | undefined;
682
+ invoiceId?: string | null | undefined;
683
+ reference?: string | null | undefined;
684
+ partyName?: string | null | undefined;
685
+ dealId?: string | null | undefined;
686
+ }>;
687
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
688
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
689
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
690
+ }, "strip", z.ZodTypeAny, {
691
+ type: string;
692
+ id: string;
693
+ attributes: {
694
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
695
+ createdAt: string;
696
+ updatedAt: string;
697
+ organizationId: string;
698
+ currency: string;
699
+ occurredAt: string;
700
+ amount: number;
701
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
702
+ partyId: string;
703
+ method?: string | null | undefined;
704
+ notes?: string | null | undefined;
705
+ invoiceId?: string | null | undefined;
706
+ reference?: string | null | undefined;
707
+ partyName?: string | null | undefined;
708
+ dealId?: string | null | undefined;
709
+ };
710
+ relationships?: Record<string, unknown> | undefined;
711
+ links?: Record<string, string> | undefined;
712
+ meta?: Record<string, unknown> | undefined;
713
+ }, {
714
+ type: string;
715
+ id: string;
716
+ attributes: {
717
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
718
+ createdAt: string;
719
+ updatedAt: string;
720
+ organizationId: string;
721
+ occurredAt: string;
722
+ amount: number;
723
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
724
+ partyId: string;
725
+ method?: string | null | undefined;
726
+ currency?: string | undefined;
727
+ notes?: string | null | undefined;
728
+ invoiceId?: string | null | undefined;
729
+ reference?: string | null | undefined;
730
+ partyName?: string | null | undefined;
731
+ dealId?: string | null | undefined;
732
+ };
733
+ relationships?: Record<string, unknown> | undefined;
734
+ links?: Record<string, string> | undefined;
735
+ meta?: Record<string, unknown> | undefined;
736
+ }>;
737
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
738
+ type: z.ZodString;
739
+ id: z.ZodString;
740
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
741
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
742
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
743
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
744
+ }, "strip", z.ZodTypeAny, {
745
+ type: string;
746
+ id: string;
747
+ attributes?: Record<string, unknown> | undefined;
748
+ relationships?: Record<string, unknown> | undefined;
749
+ links?: Record<string, string> | undefined;
750
+ meta?: Record<string, unknown> | undefined;
751
+ }, {
752
+ type: string;
753
+ id: string;
754
+ attributes?: Record<string, unknown> | undefined;
755
+ relationships?: Record<string, unknown> | undefined;
756
+ links?: Record<string, string> | undefined;
757
+ meta?: Record<string, unknown> | undefined;
758
+ }>, "many">>;
759
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
760
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ data: {
763
+ type: string;
764
+ id: string;
765
+ attributes: {
766
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
767
+ createdAt: string;
768
+ updatedAt: string;
769
+ organizationId: string;
770
+ currency: string;
771
+ occurredAt: string;
772
+ amount: number;
773
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
774
+ partyId: string;
775
+ method?: string | null | undefined;
776
+ notes?: string | null | undefined;
777
+ invoiceId?: string | null | undefined;
778
+ reference?: string | null | undefined;
779
+ partyName?: string | null | undefined;
780
+ dealId?: string | null | undefined;
781
+ };
782
+ relationships?: Record<string, unknown> | undefined;
783
+ links?: Record<string, string> | undefined;
784
+ meta?: Record<string, unknown> | undefined;
785
+ };
786
+ links?: Record<string, string> | undefined;
787
+ meta?: Record<string, unknown> | undefined;
788
+ included?: {
789
+ type: string;
790
+ id: string;
791
+ attributes?: Record<string, unknown> | undefined;
792
+ relationships?: Record<string, unknown> | undefined;
793
+ links?: Record<string, string> | undefined;
794
+ meta?: Record<string, unknown> | undefined;
795
+ }[] | undefined;
796
+ }, {
797
+ data: {
798
+ type: string;
799
+ id: string;
800
+ attributes: {
801
+ type: "capital_in" | "capital_out" | "commission_payout" | "supplier_payment" | "buyer_receipt";
802
+ createdAt: string;
803
+ updatedAt: string;
804
+ organizationId: string;
805
+ occurredAt: string;
806
+ amount: number;
807
+ partyType: "investor" | "other" | "supplier" | "buyer" | "staff" | "broker";
808
+ partyId: string;
809
+ method?: string | null | undefined;
810
+ currency?: string | undefined;
811
+ notes?: string | null | undefined;
812
+ invoiceId?: string | null | undefined;
813
+ reference?: string | null | undefined;
814
+ partyName?: string | null | undefined;
815
+ dealId?: string | null | undefined;
816
+ };
817
+ relationships?: Record<string, unknown> | undefined;
818
+ links?: Record<string, string> | undefined;
819
+ meta?: Record<string, unknown> | undefined;
820
+ };
821
+ links?: Record<string, string> | undefined;
822
+ meta?: Record<string, unknown> | undefined;
823
+ included?: {
824
+ type: string;
825
+ id: string;
826
+ attributes?: Record<string, unknown> | undefined;
827
+ relationships?: Record<string, unknown> | undefined;
828
+ links?: Record<string, string> | undefined;
829
+ meta?: Record<string, unknown> | undefined;
830
+ }[] | undefined;
831
+ }>;
832
+ 400: z.ZodObject<{
833
+ errors: z.ZodArray<z.ZodObject<{
834
+ id: z.ZodOptional<z.ZodString>;
835
+ links: z.ZodOptional<z.ZodObject<{
836
+ about: z.ZodOptional<z.ZodString>;
837
+ }, "strip", z.ZodTypeAny, {
838
+ about?: string | undefined;
839
+ }, {
840
+ about?: string | undefined;
841
+ }>>;
842
+ status: z.ZodOptional<z.ZodString>;
843
+ code: z.ZodOptional<z.ZodString>;
844
+ title: z.ZodOptional<z.ZodString>;
845
+ detail: z.ZodOptional<z.ZodString>;
846
+ source: z.ZodOptional<z.ZodObject<{
847
+ pointer: z.ZodOptional<z.ZodString>;
848
+ parameter: z.ZodOptional<z.ZodString>;
849
+ }, "strip", z.ZodTypeAny, {
850
+ pointer?: string | undefined;
851
+ parameter?: string | undefined;
852
+ }, {
853
+ pointer?: string | undefined;
854
+ parameter?: string | undefined;
855
+ }>>;
856
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
857
+ }, "strip", z.ZodTypeAny, {
858
+ status?: string | undefined;
859
+ code?: string | undefined;
860
+ id?: string | undefined;
861
+ links?: {
862
+ about?: string | undefined;
863
+ } | undefined;
864
+ meta?: Record<string, unknown> | undefined;
865
+ title?: string | undefined;
866
+ detail?: string | undefined;
867
+ source?: {
868
+ pointer?: string | undefined;
869
+ parameter?: string | undefined;
870
+ } | undefined;
871
+ }, {
872
+ status?: string | undefined;
873
+ code?: string | undefined;
874
+ id?: string | undefined;
875
+ links?: {
876
+ about?: string | undefined;
877
+ } | undefined;
878
+ meta?: Record<string, unknown> | undefined;
879
+ title?: string | undefined;
880
+ detail?: string | undefined;
881
+ source?: {
882
+ pointer?: string | undefined;
883
+ parameter?: string | undefined;
884
+ } | undefined;
885
+ }>, "many">;
886
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ errors: {
889
+ status?: string | undefined;
890
+ code?: string | undefined;
891
+ id?: string | undefined;
892
+ links?: {
893
+ about?: string | undefined;
894
+ } | undefined;
895
+ meta?: Record<string, unknown> | undefined;
896
+ title?: string | undefined;
897
+ detail?: string | undefined;
898
+ source?: {
899
+ pointer?: string | undefined;
900
+ parameter?: string | undefined;
901
+ } | undefined;
902
+ }[];
903
+ meta?: Record<string, unknown> | undefined;
904
+ }, {
905
+ errors: {
906
+ status?: string | undefined;
907
+ code?: string | undefined;
908
+ id?: string | undefined;
909
+ links?: {
910
+ about?: string | undefined;
911
+ } | undefined;
912
+ meta?: Record<string, unknown> | undefined;
913
+ title?: string | undefined;
914
+ detail?: string | undefined;
915
+ source?: {
916
+ pointer?: string | undefined;
917
+ parameter?: string | undefined;
918
+ } | undefined;
919
+ }[];
920
+ meta?: Record<string, unknown> | undefined;
921
+ }>;
922
+ 401: z.ZodObject<{
923
+ errors: z.ZodArray<z.ZodObject<{
924
+ id: z.ZodOptional<z.ZodString>;
925
+ links: z.ZodOptional<z.ZodObject<{
926
+ about: z.ZodOptional<z.ZodString>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ about?: string | undefined;
929
+ }, {
930
+ about?: string | undefined;
931
+ }>>;
932
+ status: z.ZodOptional<z.ZodString>;
933
+ code: z.ZodOptional<z.ZodString>;
934
+ title: z.ZodOptional<z.ZodString>;
935
+ detail: z.ZodOptional<z.ZodString>;
936
+ source: z.ZodOptional<z.ZodObject<{
937
+ pointer: z.ZodOptional<z.ZodString>;
938
+ parameter: z.ZodOptional<z.ZodString>;
939
+ }, "strip", z.ZodTypeAny, {
940
+ pointer?: string | undefined;
941
+ parameter?: string | undefined;
942
+ }, {
943
+ pointer?: string | undefined;
944
+ parameter?: string | undefined;
945
+ }>>;
946
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ status?: string | undefined;
949
+ code?: string | undefined;
950
+ id?: string | undefined;
951
+ links?: {
952
+ about?: string | undefined;
953
+ } | undefined;
954
+ meta?: Record<string, unknown> | undefined;
955
+ title?: string | undefined;
956
+ detail?: string | undefined;
957
+ source?: {
958
+ pointer?: string | undefined;
959
+ parameter?: string | undefined;
960
+ } | undefined;
961
+ }, {
962
+ status?: string | undefined;
963
+ code?: string | undefined;
964
+ id?: string | undefined;
965
+ links?: {
966
+ about?: string | undefined;
967
+ } | undefined;
968
+ meta?: Record<string, unknown> | undefined;
969
+ title?: string | undefined;
970
+ detail?: string | undefined;
971
+ source?: {
972
+ pointer?: string | undefined;
973
+ parameter?: string | undefined;
974
+ } | undefined;
975
+ }>, "many">;
976
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
977
+ }, "strip", z.ZodTypeAny, {
978
+ errors: {
979
+ status?: string | undefined;
980
+ code?: string | undefined;
981
+ id?: string | undefined;
982
+ links?: {
983
+ about?: string | undefined;
984
+ } | undefined;
985
+ meta?: Record<string, unknown> | undefined;
986
+ title?: string | undefined;
987
+ detail?: string | undefined;
988
+ source?: {
989
+ pointer?: string | undefined;
990
+ parameter?: string | undefined;
991
+ } | undefined;
992
+ }[];
993
+ meta?: Record<string, unknown> | undefined;
994
+ }, {
995
+ errors: {
996
+ status?: string | undefined;
997
+ code?: string | undefined;
998
+ id?: string | undefined;
999
+ links?: {
1000
+ about?: string | undefined;
1001
+ } | undefined;
1002
+ meta?: Record<string, unknown> | undefined;
1003
+ title?: string | undefined;
1004
+ detail?: string | undefined;
1005
+ source?: {
1006
+ pointer?: string | undefined;
1007
+ parameter?: string | undefined;
1008
+ } | undefined;
1009
+ }[];
1010
+ meta?: Record<string, unknown> | undefined;
1011
+ }>;
1012
+ 403: z.ZodObject<{
1013
+ errors: z.ZodArray<z.ZodObject<{
1014
+ id: z.ZodOptional<z.ZodString>;
1015
+ links: z.ZodOptional<z.ZodObject<{
1016
+ about: z.ZodOptional<z.ZodString>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ about?: string | undefined;
1019
+ }, {
1020
+ about?: string | undefined;
1021
+ }>>;
1022
+ status: z.ZodOptional<z.ZodString>;
1023
+ code: z.ZodOptional<z.ZodString>;
1024
+ title: z.ZodOptional<z.ZodString>;
1025
+ detail: z.ZodOptional<z.ZodString>;
1026
+ source: z.ZodOptional<z.ZodObject<{
1027
+ pointer: z.ZodOptional<z.ZodString>;
1028
+ parameter: z.ZodOptional<z.ZodString>;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ pointer?: string | undefined;
1031
+ parameter?: string | undefined;
1032
+ }, {
1033
+ pointer?: string | undefined;
1034
+ parameter?: string | undefined;
1035
+ }>>;
1036
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1037
+ }, "strip", z.ZodTypeAny, {
1038
+ status?: string | undefined;
1039
+ code?: string | undefined;
1040
+ id?: string | undefined;
1041
+ links?: {
1042
+ about?: string | undefined;
1043
+ } | undefined;
1044
+ meta?: Record<string, unknown> | undefined;
1045
+ title?: string | undefined;
1046
+ detail?: string | undefined;
1047
+ source?: {
1048
+ pointer?: string | undefined;
1049
+ parameter?: string | undefined;
1050
+ } | undefined;
1051
+ }, {
1052
+ status?: string | undefined;
1053
+ code?: string | undefined;
1054
+ id?: string | undefined;
1055
+ links?: {
1056
+ about?: string | undefined;
1057
+ } | undefined;
1058
+ meta?: Record<string, unknown> | undefined;
1059
+ title?: string | undefined;
1060
+ detail?: string | undefined;
1061
+ source?: {
1062
+ pointer?: string | undefined;
1063
+ parameter?: string | undefined;
1064
+ } | undefined;
1065
+ }>, "many">;
1066
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1067
+ }, "strip", z.ZodTypeAny, {
1068
+ errors: {
1069
+ status?: string | undefined;
1070
+ code?: string | undefined;
1071
+ id?: string | undefined;
1072
+ links?: {
1073
+ about?: string | undefined;
1074
+ } | undefined;
1075
+ meta?: Record<string, unknown> | undefined;
1076
+ title?: string | undefined;
1077
+ detail?: string | undefined;
1078
+ source?: {
1079
+ pointer?: string | undefined;
1080
+ parameter?: string | undefined;
1081
+ } | undefined;
1082
+ }[];
1083
+ meta?: Record<string, unknown> | undefined;
1084
+ }, {
1085
+ errors: {
1086
+ status?: string | undefined;
1087
+ code?: string | undefined;
1088
+ id?: string | undefined;
1089
+ links?: {
1090
+ about?: string | undefined;
1091
+ } | undefined;
1092
+ meta?: Record<string, unknown> | undefined;
1093
+ title?: string | undefined;
1094
+ detail?: string | undefined;
1095
+ source?: {
1096
+ pointer?: string | undefined;
1097
+ parameter?: string | undefined;
1098
+ } | undefined;
1099
+ }[];
1100
+ meta?: Record<string, unknown> | undefined;
1101
+ }>;
1102
+ 404: z.ZodObject<{
1103
+ errors: z.ZodArray<z.ZodObject<{
1104
+ id: z.ZodOptional<z.ZodString>;
1105
+ links: z.ZodOptional<z.ZodObject<{
1106
+ about: z.ZodOptional<z.ZodString>;
1107
+ }, "strip", z.ZodTypeAny, {
1108
+ about?: string | undefined;
1109
+ }, {
1110
+ about?: string | undefined;
1111
+ }>>;
1112
+ status: z.ZodOptional<z.ZodString>;
1113
+ code: z.ZodOptional<z.ZodString>;
1114
+ title: z.ZodOptional<z.ZodString>;
1115
+ detail: z.ZodOptional<z.ZodString>;
1116
+ source: z.ZodOptional<z.ZodObject<{
1117
+ pointer: z.ZodOptional<z.ZodString>;
1118
+ parameter: z.ZodOptional<z.ZodString>;
1119
+ }, "strip", z.ZodTypeAny, {
1120
+ pointer?: string | undefined;
1121
+ parameter?: string | undefined;
1122
+ }, {
1123
+ pointer?: string | undefined;
1124
+ parameter?: string | undefined;
1125
+ }>>;
1126
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1127
+ }, "strip", z.ZodTypeAny, {
1128
+ status?: string | undefined;
1129
+ code?: string | undefined;
1130
+ id?: string | undefined;
1131
+ links?: {
1132
+ about?: string | undefined;
1133
+ } | undefined;
1134
+ meta?: Record<string, unknown> | undefined;
1135
+ title?: string | undefined;
1136
+ detail?: string | undefined;
1137
+ source?: {
1138
+ pointer?: string | undefined;
1139
+ parameter?: string | undefined;
1140
+ } | undefined;
1141
+ }, {
1142
+ status?: string | undefined;
1143
+ code?: string | undefined;
1144
+ id?: string | undefined;
1145
+ links?: {
1146
+ about?: string | undefined;
1147
+ } | undefined;
1148
+ meta?: Record<string, unknown> | undefined;
1149
+ title?: string | undefined;
1150
+ detail?: string | undefined;
1151
+ source?: {
1152
+ pointer?: string | undefined;
1153
+ parameter?: string | undefined;
1154
+ } | undefined;
1155
+ }>, "many">;
1156
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ errors: {
1159
+ status?: string | undefined;
1160
+ code?: string | undefined;
1161
+ id?: string | undefined;
1162
+ links?: {
1163
+ about?: string | undefined;
1164
+ } | undefined;
1165
+ meta?: Record<string, unknown> | undefined;
1166
+ title?: string | undefined;
1167
+ detail?: string | undefined;
1168
+ source?: {
1169
+ pointer?: string | undefined;
1170
+ parameter?: string | undefined;
1171
+ } | undefined;
1172
+ }[];
1173
+ meta?: Record<string, unknown> | undefined;
1174
+ }, {
1175
+ errors: {
1176
+ status?: string | undefined;
1177
+ code?: string | undefined;
1178
+ id?: string | undefined;
1179
+ links?: {
1180
+ about?: string | undefined;
1181
+ } | undefined;
1182
+ meta?: Record<string, unknown> | undefined;
1183
+ title?: string | undefined;
1184
+ detail?: string | undefined;
1185
+ source?: {
1186
+ pointer?: string | undefined;
1187
+ parameter?: string | undefined;
1188
+ } | undefined;
1189
+ }[];
1190
+ meta?: Record<string, unknown> | undefined;
1191
+ }>;
1192
+ };
1193
+ };
1194
+ deleteTradeCashEvent: {
1195
+ pathParams: z.ZodObject<{
1196
+ organizationId: z.ZodString;
1197
+ } & {
1198
+ id: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ id: string;
1201
+ organizationId: string;
1202
+ }, {
1203
+ id: string;
1204
+ organizationId: string;
1205
+ }>;
1206
+ summary: "Delete a trade cash event";
1207
+ method: "DELETE";
1208
+ path: "/organizations/:organizationId/trade-cash-events/:id";
1209
+ responses: {
1210
+ 204: z.ZodUndefined;
1211
+ 401: z.ZodObject<{
1212
+ errors: z.ZodArray<z.ZodObject<{
1213
+ id: z.ZodOptional<z.ZodString>;
1214
+ links: z.ZodOptional<z.ZodObject<{
1215
+ about: z.ZodOptional<z.ZodString>;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ about?: string | undefined;
1218
+ }, {
1219
+ about?: string | undefined;
1220
+ }>>;
1221
+ status: z.ZodOptional<z.ZodString>;
1222
+ code: z.ZodOptional<z.ZodString>;
1223
+ title: z.ZodOptional<z.ZodString>;
1224
+ detail: z.ZodOptional<z.ZodString>;
1225
+ source: z.ZodOptional<z.ZodObject<{
1226
+ pointer: z.ZodOptional<z.ZodString>;
1227
+ parameter: z.ZodOptional<z.ZodString>;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ pointer?: string | undefined;
1230
+ parameter?: string | undefined;
1231
+ }, {
1232
+ pointer?: string | undefined;
1233
+ parameter?: string | undefined;
1234
+ }>>;
1235
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ status?: string | undefined;
1238
+ code?: string | undefined;
1239
+ id?: string | undefined;
1240
+ links?: {
1241
+ about?: string | undefined;
1242
+ } | undefined;
1243
+ meta?: Record<string, unknown> | undefined;
1244
+ title?: string | undefined;
1245
+ detail?: string | undefined;
1246
+ source?: {
1247
+ pointer?: string | undefined;
1248
+ parameter?: string | undefined;
1249
+ } | undefined;
1250
+ }, {
1251
+ status?: string | undefined;
1252
+ code?: string | undefined;
1253
+ id?: string | undefined;
1254
+ links?: {
1255
+ about?: string | undefined;
1256
+ } | undefined;
1257
+ meta?: Record<string, unknown> | undefined;
1258
+ title?: string | undefined;
1259
+ detail?: string | undefined;
1260
+ source?: {
1261
+ pointer?: string | undefined;
1262
+ parameter?: string | undefined;
1263
+ } | undefined;
1264
+ }>, "many">;
1265
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1266
+ }, "strip", z.ZodTypeAny, {
1267
+ errors: {
1268
+ status?: string | undefined;
1269
+ code?: string | undefined;
1270
+ id?: string | undefined;
1271
+ links?: {
1272
+ about?: string | undefined;
1273
+ } | undefined;
1274
+ meta?: Record<string, unknown> | undefined;
1275
+ title?: string | undefined;
1276
+ detail?: string | undefined;
1277
+ source?: {
1278
+ pointer?: string | undefined;
1279
+ parameter?: string | undefined;
1280
+ } | undefined;
1281
+ }[];
1282
+ meta?: Record<string, unknown> | undefined;
1283
+ }, {
1284
+ errors: {
1285
+ status?: string | undefined;
1286
+ code?: string | undefined;
1287
+ id?: string | undefined;
1288
+ links?: {
1289
+ about?: string | undefined;
1290
+ } | undefined;
1291
+ meta?: Record<string, unknown> | undefined;
1292
+ title?: string | undefined;
1293
+ detail?: string | undefined;
1294
+ source?: {
1295
+ pointer?: string | undefined;
1296
+ parameter?: string | undefined;
1297
+ } | undefined;
1298
+ }[];
1299
+ meta?: Record<string, unknown> | undefined;
1300
+ }>;
1301
+ 403: z.ZodObject<{
1302
+ errors: z.ZodArray<z.ZodObject<{
1303
+ id: z.ZodOptional<z.ZodString>;
1304
+ links: z.ZodOptional<z.ZodObject<{
1305
+ about: z.ZodOptional<z.ZodString>;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ about?: string | undefined;
1308
+ }, {
1309
+ about?: string | undefined;
1310
+ }>>;
1311
+ status: z.ZodOptional<z.ZodString>;
1312
+ code: z.ZodOptional<z.ZodString>;
1313
+ title: z.ZodOptional<z.ZodString>;
1314
+ detail: z.ZodOptional<z.ZodString>;
1315
+ source: z.ZodOptional<z.ZodObject<{
1316
+ pointer: z.ZodOptional<z.ZodString>;
1317
+ parameter: z.ZodOptional<z.ZodString>;
1318
+ }, "strip", z.ZodTypeAny, {
1319
+ pointer?: string | undefined;
1320
+ parameter?: string | undefined;
1321
+ }, {
1322
+ pointer?: string | undefined;
1323
+ parameter?: string | undefined;
1324
+ }>>;
1325
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1326
+ }, "strip", z.ZodTypeAny, {
1327
+ status?: string | undefined;
1328
+ code?: string | undefined;
1329
+ id?: string | undefined;
1330
+ links?: {
1331
+ about?: string | undefined;
1332
+ } | undefined;
1333
+ meta?: Record<string, unknown> | undefined;
1334
+ title?: string | undefined;
1335
+ detail?: string | undefined;
1336
+ source?: {
1337
+ pointer?: string | undefined;
1338
+ parameter?: string | undefined;
1339
+ } | undefined;
1340
+ }, {
1341
+ status?: string | undefined;
1342
+ code?: string | undefined;
1343
+ id?: string | undefined;
1344
+ links?: {
1345
+ about?: string | undefined;
1346
+ } | undefined;
1347
+ meta?: Record<string, unknown> | undefined;
1348
+ title?: string | undefined;
1349
+ detail?: string | undefined;
1350
+ source?: {
1351
+ pointer?: string | undefined;
1352
+ parameter?: string | undefined;
1353
+ } | undefined;
1354
+ }>, "many">;
1355
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ errors: {
1358
+ status?: string | undefined;
1359
+ code?: string | undefined;
1360
+ id?: string | undefined;
1361
+ links?: {
1362
+ about?: string | undefined;
1363
+ } | undefined;
1364
+ meta?: Record<string, unknown> | undefined;
1365
+ title?: string | undefined;
1366
+ detail?: string | undefined;
1367
+ source?: {
1368
+ pointer?: string | undefined;
1369
+ parameter?: string | undefined;
1370
+ } | undefined;
1371
+ }[];
1372
+ meta?: Record<string, unknown> | undefined;
1373
+ }, {
1374
+ errors: {
1375
+ status?: string | undefined;
1376
+ code?: string | undefined;
1377
+ id?: string | undefined;
1378
+ links?: {
1379
+ about?: string | undefined;
1380
+ } | undefined;
1381
+ meta?: Record<string, unknown> | undefined;
1382
+ title?: string | undefined;
1383
+ detail?: string | undefined;
1384
+ source?: {
1385
+ pointer?: string | undefined;
1386
+ parameter?: string | undefined;
1387
+ } | undefined;
1388
+ }[];
1389
+ meta?: Record<string, unknown> | undefined;
1390
+ }>;
1391
+ 404: z.ZodObject<{
1392
+ errors: z.ZodArray<z.ZodObject<{
1393
+ id: z.ZodOptional<z.ZodString>;
1394
+ links: z.ZodOptional<z.ZodObject<{
1395
+ about: z.ZodOptional<z.ZodString>;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ about?: string | undefined;
1398
+ }, {
1399
+ about?: string | undefined;
1400
+ }>>;
1401
+ status: z.ZodOptional<z.ZodString>;
1402
+ code: z.ZodOptional<z.ZodString>;
1403
+ title: z.ZodOptional<z.ZodString>;
1404
+ detail: z.ZodOptional<z.ZodString>;
1405
+ source: z.ZodOptional<z.ZodObject<{
1406
+ pointer: z.ZodOptional<z.ZodString>;
1407
+ parameter: z.ZodOptional<z.ZodString>;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ pointer?: string | undefined;
1410
+ parameter?: string | undefined;
1411
+ }, {
1412
+ pointer?: string | undefined;
1413
+ parameter?: string | undefined;
1414
+ }>>;
1415
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1416
+ }, "strip", z.ZodTypeAny, {
1417
+ status?: string | undefined;
1418
+ code?: string | undefined;
1419
+ id?: string | undefined;
1420
+ links?: {
1421
+ about?: string | undefined;
1422
+ } | undefined;
1423
+ meta?: Record<string, unknown> | undefined;
1424
+ title?: string | undefined;
1425
+ detail?: string | undefined;
1426
+ source?: {
1427
+ pointer?: string | undefined;
1428
+ parameter?: string | undefined;
1429
+ } | undefined;
1430
+ }, {
1431
+ status?: string | undefined;
1432
+ code?: string | undefined;
1433
+ id?: string | undefined;
1434
+ links?: {
1435
+ about?: string | undefined;
1436
+ } | undefined;
1437
+ meta?: Record<string, unknown> | undefined;
1438
+ title?: string | undefined;
1439
+ detail?: string | undefined;
1440
+ source?: {
1441
+ pointer?: string | undefined;
1442
+ parameter?: string | undefined;
1443
+ } | undefined;
1444
+ }>, "many">;
1445
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1446
+ }, "strip", z.ZodTypeAny, {
1447
+ errors: {
1448
+ status?: string | undefined;
1449
+ code?: string | undefined;
1450
+ id?: string | undefined;
1451
+ links?: {
1452
+ about?: string | undefined;
1453
+ } | undefined;
1454
+ meta?: Record<string, unknown> | undefined;
1455
+ title?: string | undefined;
1456
+ detail?: string | undefined;
1457
+ source?: {
1458
+ pointer?: string | undefined;
1459
+ parameter?: string | undefined;
1460
+ } | undefined;
1461
+ }[];
1462
+ meta?: Record<string, unknown> | undefined;
1463
+ }, {
1464
+ errors: {
1465
+ status?: string | undefined;
1466
+ code?: string | undefined;
1467
+ id?: string | undefined;
1468
+ links?: {
1469
+ about?: string | undefined;
1470
+ } | undefined;
1471
+ meta?: Record<string, unknown> | undefined;
1472
+ title?: string | undefined;
1473
+ detail?: string | undefined;
1474
+ source?: {
1475
+ pointer?: string | undefined;
1476
+ parameter?: string | undefined;
1477
+ } | undefined;
1478
+ }[];
1479
+ meta?: Record<string, unknown> | undefined;
1480
+ }>;
1481
+ };
1482
+ };
1483
+ getInvestorBalances: {
1484
+ pathParams: z.ZodObject<{
1485
+ organizationId: z.ZodString;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ organizationId: string;
1488
+ }, {
1489
+ organizationId: string;
1490
+ }>;
1491
+ summary: "Investor capital in/out running balances";
1492
+ method: "GET";
1493
+ path: "/organizations/:organizationId/trade-cash-events/investor-balances";
1494
+ responses: {
1495
+ 200: z.ZodObject<{
1496
+ data: z.ZodObject<{
1497
+ type: z.ZodLiteral<"investor-balances">;
1498
+ id: z.ZodString;
1499
+ attributes: z.ZodObject<{
1500
+ balances: z.ZodArray<z.ZodObject<{
1501
+ partyId: z.ZodString;
1502
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1503
+ capitalIn: z.ZodNumber;
1504
+ capitalOut: z.ZodNumber;
1505
+ balance: z.ZodNumber;
1506
+ dealCount: z.ZodOptional<z.ZodNumber>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ balance: number;
1509
+ partyId: string;
1510
+ capitalIn: number;
1511
+ capitalOut: number;
1512
+ dealCount?: number | undefined;
1513
+ partyName?: string | null | undefined;
1514
+ }, {
1515
+ balance: number;
1516
+ partyId: string;
1517
+ capitalIn: number;
1518
+ capitalOut: number;
1519
+ dealCount?: number | undefined;
1520
+ partyName?: string | null | undefined;
1521
+ }>, "many">;
1522
+ }, "strip", z.ZodTypeAny, {
1523
+ balances: {
1524
+ balance: number;
1525
+ partyId: string;
1526
+ capitalIn: number;
1527
+ capitalOut: number;
1528
+ dealCount?: number | undefined;
1529
+ partyName?: string | null | undefined;
1530
+ }[];
1531
+ }, {
1532
+ balances: {
1533
+ balance: number;
1534
+ partyId: string;
1535
+ capitalIn: number;
1536
+ capitalOut: number;
1537
+ dealCount?: number | undefined;
1538
+ partyName?: string | null | undefined;
1539
+ }[];
1540
+ }>;
1541
+ }, "strip", z.ZodTypeAny, {
1542
+ type: "investor-balances";
1543
+ id: string;
1544
+ attributes: {
1545
+ balances: {
1546
+ balance: number;
1547
+ partyId: string;
1548
+ capitalIn: number;
1549
+ capitalOut: number;
1550
+ dealCount?: number | undefined;
1551
+ partyName?: string | null | undefined;
1552
+ }[];
1553
+ };
1554
+ }, {
1555
+ type: "investor-balances";
1556
+ id: string;
1557
+ attributes: {
1558
+ balances: {
1559
+ balance: number;
1560
+ partyId: string;
1561
+ capitalIn: number;
1562
+ capitalOut: number;
1563
+ dealCount?: number | undefined;
1564
+ partyName?: string | null | undefined;
1565
+ }[];
1566
+ };
1567
+ }>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ data: {
1570
+ type: "investor-balances";
1571
+ id: string;
1572
+ attributes: {
1573
+ balances: {
1574
+ balance: number;
1575
+ partyId: string;
1576
+ capitalIn: number;
1577
+ capitalOut: number;
1578
+ dealCount?: number | undefined;
1579
+ partyName?: string | null | undefined;
1580
+ }[];
1581
+ };
1582
+ };
1583
+ }, {
1584
+ data: {
1585
+ type: "investor-balances";
1586
+ id: string;
1587
+ attributes: {
1588
+ balances: {
1589
+ balance: number;
1590
+ partyId: string;
1591
+ capitalIn: number;
1592
+ capitalOut: number;
1593
+ dealCount?: number | undefined;
1594
+ partyName?: string | null | undefined;
1595
+ }[];
1596
+ };
1597
+ };
1598
+ }>;
1599
+ 401: z.ZodObject<{
1600
+ errors: z.ZodArray<z.ZodObject<{
1601
+ id: z.ZodOptional<z.ZodString>;
1602
+ links: z.ZodOptional<z.ZodObject<{
1603
+ about: z.ZodOptional<z.ZodString>;
1604
+ }, "strip", z.ZodTypeAny, {
1605
+ about?: string | undefined;
1606
+ }, {
1607
+ about?: string | undefined;
1608
+ }>>;
1609
+ status: z.ZodOptional<z.ZodString>;
1610
+ code: z.ZodOptional<z.ZodString>;
1611
+ title: z.ZodOptional<z.ZodString>;
1612
+ detail: z.ZodOptional<z.ZodString>;
1613
+ source: z.ZodOptional<z.ZodObject<{
1614
+ pointer: z.ZodOptional<z.ZodString>;
1615
+ parameter: z.ZodOptional<z.ZodString>;
1616
+ }, "strip", z.ZodTypeAny, {
1617
+ pointer?: string | undefined;
1618
+ parameter?: string | undefined;
1619
+ }, {
1620
+ pointer?: string | undefined;
1621
+ parameter?: string | undefined;
1622
+ }>>;
1623
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ status?: string | undefined;
1626
+ code?: string | undefined;
1627
+ id?: string | undefined;
1628
+ links?: {
1629
+ about?: string | undefined;
1630
+ } | undefined;
1631
+ meta?: Record<string, unknown> | undefined;
1632
+ title?: string | undefined;
1633
+ detail?: string | undefined;
1634
+ source?: {
1635
+ pointer?: string | undefined;
1636
+ parameter?: string | undefined;
1637
+ } | undefined;
1638
+ }, {
1639
+ status?: string | undefined;
1640
+ code?: string | undefined;
1641
+ id?: string | undefined;
1642
+ links?: {
1643
+ about?: string | undefined;
1644
+ } | undefined;
1645
+ meta?: Record<string, unknown> | undefined;
1646
+ title?: string | undefined;
1647
+ detail?: string | undefined;
1648
+ source?: {
1649
+ pointer?: string | undefined;
1650
+ parameter?: string | undefined;
1651
+ } | undefined;
1652
+ }>, "many">;
1653
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1654
+ }, "strip", z.ZodTypeAny, {
1655
+ errors: {
1656
+ status?: string | undefined;
1657
+ code?: string | undefined;
1658
+ id?: string | undefined;
1659
+ links?: {
1660
+ about?: string | undefined;
1661
+ } | undefined;
1662
+ meta?: Record<string, unknown> | undefined;
1663
+ title?: string | undefined;
1664
+ detail?: string | undefined;
1665
+ source?: {
1666
+ pointer?: string | undefined;
1667
+ parameter?: string | undefined;
1668
+ } | undefined;
1669
+ }[];
1670
+ meta?: Record<string, unknown> | undefined;
1671
+ }, {
1672
+ errors: {
1673
+ status?: string | undefined;
1674
+ code?: string | undefined;
1675
+ id?: string | undefined;
1676
+ links?: {
1677
+ about?: string | undefined;
1678
+ } | undefined;
1679
+ meta?: Record<string, unknown> | undefined;
1680
+ title?: string | undefined;
1681
+ detail?: string | undefined;
1682
+ source?: {
1683
+ pointer?: string | undefined;
1684
+ parameter?: string | undefined;
1685
+ } | undefined;
1686
+ }[];
1687
+ meta?: Record<string, unknown> | undefined;
1688
+ }>;
1689
+ 403: z.ZodObject<{
1690
+ errors: z.ZodArray<z.ZodObject<{
1691
+ id: z.ZodOptional<z.ZodString>;
1692
+ links: z.ZodOptional<z.ZodObject<{
1693
+ about: z.ZodOptional<z.ZodString>;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ about?: string | undefined;
1696
+ }, {
1697
+ about?: string | undefined;
1698
+ }>>;
1699
+ status: z.ZodOptional<z.ZodString>;
1700
+ code: z.ZodOptional<z.ZodString>;
1701
+ title: z.ZodOptional<z.ZodString>;
1702
+ detail: z.ZodOptional<z.ZodString>;
1703
+ source: z.ZodOptional<z.ZodObject<{
1704
+ pointer: z.ZodOptional<z.ZodString>;
1705
+ parameter: z.ZodOptional<z.ZodString>;
1706
+ }, "strip", z.ZodTypeAny, {
1707
+ pointer?: string | undefined;
1708
+ parameter?: string | undefined;
1709
+ }, {
1710
+ pointer?: string | undefined;
1711
+ parameter?: string | undefined;
1712
+ }>>;
1713
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ status?: string | undefined;
1716
+ code?: string | undefined;
1717
+ id?: string | undefined;
1718
+ links?: {
1719
+ about?: string | undefined;
1720
+ } | undefined;
1721
+ meta?: Record<string, unknown> | undefined;
1722
+ title?: string | undefined;
1723
+ detail?: string | undefined;
1724
+ source?: {
1725
+ pointer?: string | undefined;
1726
+ parameter?: string | undefined;
1727
+ } | undefined;
1728
+ }, {
1729
+ status?: string | undefined;
1730
+ code?: string | undefined;
1731
+ id?: string | undefined;
1732
+ links?: {
1733
+ about?: string | undefined;
1734
+ } | undefined;
1735
+ meta?: Record<string, unknown> | undefined;
1736
+ title?: string | undefined;
1737
+ detail?: string | undefined;
1738
+ source?: {
1739
+ pointer?: string | undefined;
1740
+ parameter?: string | undefined;
1741
+ } | undefined;
1742
+ }>, "many">;
1743
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ errors: {
1746
+ status?: string | undefined;
1747
+ code?: string | undefined;
1748
+ id?: string | undefined;
1749
+ links?: {
1750
+ about?: string | undefined;
1751
+ } | undefined;
1752
+ meta?: Record<string, unknown> | undefined;
1753
+ title?: string | undefined;
1754
+ detail?: string | undefined;
1755
+ source?: {
1756
+ pointer?: string | undefined;
1757
+ parameter?: string | undefined;
1758
+ } | undefined;
1759
+ }[];
1760
+ meta?: Record<string, unknown> | undefined;
1761
+ }, {
1762
+ errors: {
1763
+ status?: string | undefined;
1764
+ code?: string | undefined;
1765
+ id?: string | undefined;
1766
+ links?: {
1767
+ about?: string | undefined;
1768
+ } | undefined;
1769
+ meta?: Record<string, unknown> | undefined;
1770
+ title?: string | undefined;
1771
+ detail?: string | undefined;
1772
+ source?: {
1773
+ pointer?: string | undefined;
1774
+ parameter?: string | undefined;
1775
+ } | undefined;
1776
+ }[];
1777
+ meta?: Record<string, unknown> | undefined;
1778
+ }>;
1779
+ 404: z.ZodObject<{
1780
+ errors: z.ZodArray<z.ZodObject<{
1781
+ id: z.ZodOptional<z.ZodString>;
1782
+ links: z.ZodOptional<z.ZodObject<{
1783
+ about: z.ZodOptional<z.ZodString>;
1784
+ }, "strip", z.ZodTypeAny, {
1785
+ about?: string | undefined;
1786
+ }, {
1787
+ about?: string | undefined;
1788
+ }>>;
1789
+ status: z.ZodOptional<z.ZodString>;
1790
+ code: z.ZodOptional<z.ZodString>;
1791
+ title: z.ZodOptional<z.ZodString>;
1792
+ detail: z.ZodOptional<z.ZodString>;
1793
+ source: z.ZodOptional<z.ZodObject<{
1794
+ pointer: z.ZodOptional<z.ZodString>;
1795
+ parameter: z.ZodOptional<z.ZodString>;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ pointer?: string | undefined;
1798
+ parameter?: string | undefined;
1799
+ }, {
1800
+ pointer?: string | undefined;
1801
+ parameter?: string | undefined;
1802
+ }>>;
1803
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1804
+ }, "strip", z.ZodTypeAny, {
1805
+ status?: string | undefined;
1806
+ code?: string | undefined;
1807
+ id?: string | undefined;
1808
+ links?: {
1809
+ about?: string | undefined;
1810
+ } | undefined;
1811
+ meta?: Record<string, unknown> | undefined;
1812
+ title?: string | undefined;
1813
+ detail?: string | undefined;
1814
+ source?: {
1815
+ pointer?: string | undefined;
1816
+ parameter?: string | undefined;
1817
+ } | undefined;
1818
+ }, {
1819
+ status?: string | undefined;
1820
+ code?: string | undefined;
1821
+ id?: string | undefined;
1822
+ links?: {
1823
+ about?: string | undefined;
1824
+ } | undefined;
1825
+ meta?: Record<string, unknown> | undefined;
1826
+ title?: string | undefined;
1827
+ detail?: string | undefined;
1828
+ source?: {
1829
+ pointer?: string | undefined;
1830
+ parameter?: string | undefined;
1831
+ } | undefined;
1832
+ }>, "many">;
1833
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1834
+ }, "strip", z.ZodTypeAny, {
1835
+ errors: {
1836
+ status?: string | undefined;
1837
+ code?: string | undefined;
1838
+ id?: string | undefined;
1839
+ links?: {
1840
+ about?: string | undefined;
1841
+ } | undefined;
1842
+ meta?: Record<string, unknown> | undefined;
1843
+ title?: string | undefined;
1844
+ detail?: string | undefined;
1845
+ source?: {
1846
+ pointer?: string | undefined;
1847
+ parameter?: string | undefined;
1848
+ } | undefined;
1849
+ }[];
1850
+ meta?: Record<string, unknown> | undefined;
1851
+ }, {
1852
+ errors: {
1853
+ status?: string | undefined;
1854
+ code?: string | undefined;
1855
+ id?: string | undefined;
1856
+ links?: {
1857
+ about?: string | undefined;
1858
+ } | undefined;
1859
+ meta?: Record<string, unknown> | undefined;
1860
+ title?: string | undefined;
1861
+ detail?: string | undefined;
1862
+ source?: {
1863
+ pointer?: string | undefined;
1864
+ parameter?: string | undefined;
1865
+ } | undefined;
1866
+ }[];
1867
+ meta?: Record<string, unknown> | undefined;
1868
+ }>;
1869
+ };
1870
+ };
1871
+ getMyInvestorCash: {
1872
+ pathParams: z.ZodObject<{
1873
+ organizationId: z.ZodString;
1874
+ }, "strip", z.ZodTypeAny, {
1875
+ organizationId: string;
1876
+ }, {
1877
+ organizationId: string;
1878
+ }>;
1879
+ summary: "Current user investor cash ledger summary";
1880
+ method: "GET";
1881
+ path: "/organizations/:organizationId/trade-cash-events/my-investor-cash";
1882
+ responses: {
1883
+ 200: z.ZodObject<{
1884
+ data: z.ZodObject<{
1885
+ type: z.ZodLiteral<"investor-balances">;
1886
+ id: z.ZodString;
1887
+ attributes: z.ZodObject<{
1888
+ balances: z.ZodArray<z.ZodObject<{
1889
+ partyId: z.ZodString;
1890
+ partyName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1891
+ capitalIn: z.ZodNumber;
1892
+ capitalOut: z.ZodNumber;
1893
+ balance: z.ZodNumber;
1894
+ dealCount: z.ZodOptional<z.ZodNumber>;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ balance: number;
1897
+ partyId: string;
1898
+ capitalIn: number;
1899
+ capitalOut: number;
1900
+ dealCount?: number | undefined;
1901
+ partyName?: string | null | undefined;
1902
+ }, {
1903
+ balance: number;
1904
+ partyId: string;
1905
+ capitalIn: number;
1906
+ capitalOut: number;
1907
+ dealCount?: number | undefined;
1908
+ partyName?: string | null | undefined;
1909
+ }>, "many">;
1910
+ }, "strip", z.ZodTypeAny, {
1911
+ balances: {
1912
+ balance: number;
1913
+ partyId: string;
1914
+ capitalIn: number;
1915
+ capitalOut: number;
1916
+ dealCount?: number | undefined;
1917
+ partyName?: string | null | undefined;
1918
+ }[];
1919
+ }, {
1920
+ balances: {
1921
+ balance: number;
1922
+ partyId: string;
1923
+ capitalIn: number;
1924
+ capitalOut: number;
1925
+ dealCount?: number | undefined;
1926
+ partyName?: string | null | undefined;
1927
+ }[];
1928
+ }>;
1929
+ }, "strip", z.ZodTypeAny, {
1930
+ type: "investor-balances";
1931
+ id: string;
1932
+ attributes: {
1933
+ balances: {
1934
+ balance: number;
1935
+ partyId: string;
1936
+ capitalIn: number;
1937
+ capitalOut: number;
1938
+ dealCount?: number | undefined;
1939
+ partyName?: string | null | undefined;
1940
+ }[];
1941
+ };
1942
+ }, {
1943
+ type: "investor-balances";
1944
+ id: string;
1945
+ attributes: {
1946
+ balances: {
1947
+ balance: number;
1948
+ partyId: string;
1949
+ capitalIn: number;
1950
+ capitalOut: number;
1951
+ dealCount?: number | undefined;
1952
+ partyName?: string | null | undefined;
1953
+ }[];
1954
+ };
1955
+ }>;
1956
+ }, "strip", z.ZodTypeAny, {
1957
+ data: {
1958
+ type: "investor-balances";
1959
+ id: string;
1960
+ attributes: {
1961
+ balances: {
1962
+ balance: number;
1963
+ partyId: string;
1964
+ capitalIn: number;
1965
+ capitalOut: number;
1966
+ dealCount?: number | undefined;
1967
+ partyName?: string | null | undefined;
1968
+ }[];
1969
+ };
1970
+ };
1971
+ }, {
1972
+ data: {
1973
+ type: "investor-balances";
1974
+ id: string;
1975
+ attributes: {
1976
+ balances: {
1977
+ balance: number;
1978
+ partyId: string;
1979
+ capitalIn: number;
1980
+ capitalOut: number;
1981
+ dealCount?: number | undefined;
1982
+ partyName?: string | null | undefined;
1983
+ }[];
1984
+ };
1985
+ };
1986
+ }>;
1987
+ 401: z.ZodObject<{
1988
+ errors: z.ZodArray<z.ZodObject<{
1989
+ id: z.ZodOptional<z.ZodString>;
1990
+ links: z.ZodOptional<z.ZodObject<{
1991
+ about: z.ZodOptional<z.ZodString>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ about?: string | undefined;
1994
+ }, {
1995
+ about?: string | undefined;
1996
+ }>>;
1997
+ status: z.ZodOptional<z.ZodString>;
1998
+ code: z.ZodOptional<z.ZodString>;
1999
+ title: z.ZodOptional<z.ZodString>;
2000
+ detail: z.ZodOptional<z.ZodString>;
2001
+ source: z.ZodOptional<z.ZodObject<{
2002
+ pointer: z.ZodOptional<z.ZodString>;
2003
+ parameter: z.ZodOptional<z.ZodString>;
2004
+ }, "strip", z.ZodTypeAny, {
2005
+ pointer?: string | undefined;
2006
+ parameter?: string | undefined;
2007
+ }, {
2008
+ pointer?: string | undefined;
2009
+ parameter?: string | undefined;
2010
+ }>>;
2011
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2012
+ }, "strip", z.ZodTypeAny, {
2013
+ status?: string | undefined;
2014
+ code?: string | undefined;
2015
+ id?: string | undefined;
2016
+ links?: {
2017
+ about?: string | undefined;
2018
+ } | undefined;
2019
+ meta?: Record<string, unknown> | undefined;
2020
+ title?: string | undefined;
2021
+ detail?: string | undefined;
2022
+ source?: {
2023
+ pointer?: string | undefined;
2024
+ parameter?: string | undefined;
2025
+ } | undefined;
2026
+ }, {
2027
+ status?: string | undefined;
2028
+ code?: string | undefined;
2029
+ id?: string | undefined;
2030
+ links?: {
2031
+ about?: string | undefined;
2032
+ } | undefined;
2033
+ meta?: Record<string, unknown> | undefined;
2034
+ title?: string | undefined;
2035
+ detail?: string | undefined;
2036
+ source?: {
2037
+ pointer?: string | undefined;
2038
+ parameter?: string | undefined;
2039
+ } | undefined;
2040
+ }>, "many">;
2041
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2042
+ }, "strip", z.ZodTypeAny, {
2043
+ errors: {
2044
+ status?: string | undefined;
2045
+ code?: string | undefined;
2046
+ id?: string | undefined;
2047
+ links?: {
2048
+ about?: string | undefined;
2049
+ } | undefined;
2050
+ meta?: Record<string, unknown> | undefined;
2051
+ title?: string | undefined;
2052
+ detail?: string | undefined;
2053
+ source?: {
2054
+ pointer?: string | undefined;
2055
+ parameter?: string | undefined;
2056
+ } | undefined;
2057
+ }[];
2058
+ meta?: Record<string, unknown> | undefined;
2059
+ }, {
2060
+ errors: {
2061
+ status?: string | undefined;
2062
+ code?: string | undefined;
2063
+ id?: string | undefined;
2064
+ links?: {
2065
+ about?: string | undefined;
2066
+ } | undefined;
2067
+ meta?: Record<string, unknown> | undefined;
2068
+ title?: string | undefined;
2069
+ detail?: string | undefined;
2070
+ source?: {
2071
+ pointer?: string | undefined;
2072
+ parameter?: string | undefined;
2073
+ } | undefined;
2074
+ }[];
2075
+ meta?: Record<string, unknown> | undefined;
2076
+ }>;
2077
+ 403: z.ZodObject<{
2078
+ errors: z.ZodArray<z.ZodObject<{
2079
+ id: z.ZodOptional<z.ZodString>;
2080
+ links: z.ZodOptional<z.ZodObject<{
2081
+ about: z.ZodOptional<z.ZodString>;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ about?: string | undefined;
2084
+ }, {
2085
+ about?: string | undefined;
2086
+ }>>;
2087
+ status: z.ZodOptional<z.ZodString>;
2088
+ code: z.ZodOptional<z.ZodString>;
2089
+ title: z.ZodOptional<z.ZodString>;
2090
+ detail: z.ZodOptional<z.ZodString>;
2091
+ source: z.ZodOptional<z.ZodObject<{
2092
+ pointer: z.ZodOptional<z.ZodString>;
2093
+ parameter: z.ZodOptional<z.ZodString>;
2094
+ }, "strip", z.ZodTypeAny, {
2095
+ pointer?: string | undefined;
2096
+ parameter?: string | undefined;
2097
+ }, {
2098
+ pointer?: string | undefined;
2099
+ parameter?: string | undefined;
2100
+ }>>;
2101
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2102
+ }, "strip", z.ZodTypeAny, {
2103
+ status?: string | undefined;
2104
+ code?: string | undefined;
2105
+ id?: string | undefined;
2106
+ links?: {
2107
+ about?: string | undefined;
2108
+ } | undefined;
2109
+ meta?: Record<string, unknown> | undefined;
2110
+ title?: string | undefined;
2111
+ detail?: string | undefined;
2112
+ source?: {
2113
+ pointer?: string | undefined;
2114
+ parameter?: string | undefined;
2115
+ } | undefined;
2116
+ }, {
2117
+ status?: string | undefined;
2118
+ code?: string | undefined;
2119
+ id?: string | undefined;
2120
+ links?: {
2121
+ about?: string | undefined;
2122
+ } | undefined;
2123
+ meta?: Record<string, unknown> | undefined;
2124
+ title?: string | undefined;
2125
+ detail?: string | undefined;
2126
+ source?: {
2127
+ pointer?: string | undefined;
2128
+ parameter?: string | undefined;
2129
+ } | undefined;
2130
+ }>, "many">;
2131
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2132
+ }, "strip", z.ZodTypeAny, {
2133
+ errors: {
2134
+ status?: string | undefined;
2135
+ code?: string | undefined;
2136
+ id?: string | undefined;
2137
+ links?: {
2138
+ about?: string | undefined;
2139
+ } | undefined;
2140
+ meta?: Record<string, unknown> | undefined;
2141
+ title?: string | undefined;
2142
+ detail?: string | undefined;
2143
+ source?: {
2144
+ pointer?: string | undefined;
2145
+ parameter?: string | undefined;
2146
+ } | undefined;
2147
+ }[];
2148
+ meta?: Record<string, unknown> | undefined;
2149
+ }, {
2150
+ errors: {
2151
+ status?: string | undefined;
2152
+ code?: string | undefined;
2153
+ id?: string | undefined;
2154
+ links?: {
2155
+ about?: string | undefined;
2156
+ } | undefined;
2157
+ meta?: Record<string, unknown> | undefined;
2158
+ title?: string | undefined;
2159
+ detail?: string | undefined;
2160
+ source?: {
2161
+ pointer?: string | undefined;
2162
+ parameter?: string | undefined;
2163
+ } | undefined;
2164
+ }[];
2165
+ meta?: Record<string, unknown> | undefined;
2166
+ }>;
2167
+ 404: z.ZodObject<{
2168
+ errors: z.ZodArray<z.ZodObject<{
2169
+ id: z.ZodOptional<z.ZodString>;
2170
+ links: z.ZodOptional<z.ZodObject<{
2171
+ about: z.ZodOptional<z.ZodString>;
2172
+ }, "strip", z.ZodTypeAny, {
2173
+ about?: string | undefined;
2174
+ }, {
2175
+ about?: string | undefined;
2176
+ }>>;
2177
+ status: z.ZodOptional<z.ZodString>;
2178
+ code: z.ZodOptional<z.ZodString>;
2179
+ title: z.ZodOptional<z.ZodString>;
2180
+ detail: z.ZodOptional<z.ZodString>;
2181
+ source: z.ZodOptional<z.ZodObject<{
2182
+ pointer: z.ZodOptional<z.ZodString>;
2183
+ parameter: z.ZodOptional<z.ZodString>;
2184
+ }, "strip", z.ZodTypeAny, {
2185
+ pointer?: string | undefined;
2186
+ parameter?: string | undefined;
2187
+ }, {
2188
+ pointer?: string | undefined;
2189
+ parameter?: string | undefined;
2190
+ }>>;
2191
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ status?: string | undefined;
2194
+ code?: string | undefined;
2195
+ id?: string | undefined;
2196
+ links?: {
2197
+ about?: string | undefined;
2198
+ } | undefined;
2199
+ meta?: Record<string, unknown> | undefined;
2200
+ title?: string | undefined;
2201
+ detail?: string | undefined;
2202
+ source?: {
2203
+ pointer?: string | undefined;
2204
+ parameter?: string | undefined;
2205
+ } | undefined;
2206
+ }, {
2207
+ status?: string | undefined;
2208
+ code?: string | undefined;
2209
+ id?: string | undefined;
2210
+ links?: {
2211
+ about?: string | undefined;
2212
+ } | undefined;
2213
+ meta?: Record<string, unknown> | undefined;
2214
+ title?: string | undefined;
2215
+ detail?: string | undefined;
2216
+ source?: {
2217
+ pointer?: string | undefined;
2218
+ parameter?: string | undefined;
2219
+ } | undefined;
2220
+ }>, "many">;
2221
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2222
+ }, "strip", z.ZodTypeAny, {
2223
+ errors: {
2224
+ status?: string | undefined;
2225
+ code?: string | undefined;
2226
+ id?: string | undefined;
2227
+ links?: {
2228
+ about?: string | undefined;
2229
+ } | undefined;
2230
+ meta?: Record<string, unknown> | undefined;
2231
+ title?: string | undefined;
2232
+ detail?: string | undefined;
2233
+ source?: {
2234
+ pointer?: string | undefined;
2235
+ parameter?: string | undefined;
2236
+ } | undefined;
2237
+ }[];
2238
+ meta?: Record<string, unknown> | undefined;
2239
+ }, {
2240
+ errors: {
2241
+ status?: string | undefined;
2242
+ code?: string | undefined;
2243
+ id?: string | undefined;
2244
+ links?: {
2245
+ about?: string | undefined;
2246
+ } | undefined;
2247
+ meta?: Record<string, unknown> | undefined;
2248
+ title?: string | undefined;
2249
+ detail?: string | undefined;
2250
+ source?: {
2251
+ pointer?: string | undefined;
2252
+ parameter?: string | undefined;
2253
+ } | undefined;
2254
+ }[];
2255
+ meta?: Record<string, unknown> | undefined;
2256
+ }>;
2257
+ };
2258
+ };
2259
+ getTradeControlBoard: {
2260
+ pathParams: z.ZodObject<{
2261
+ organizationId: z.ZodString;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ organizationId: string;
2264
+ }, {
2265
+ organizationId: string;
2266
+ }>;
2267
+ query: z.ZodObject<{
2268
+ from: z.ZodOptional<z.ZodString>;
2269
+ to: z.ZodOptional<z.ZodString>;
2270
+ }, "strip", z.ZodTypeAny, {
2271
+ from?: string | undefined;
2272
+ to?: string | undefined;
2273
+ }, {
2274
+ from?: string | undefined;
2275
+ to?: string | undefined;
2276
+ }>;
2277
+ summary: "Trade desk control board (qty/money in/out)";
2278
+ method: "GET";
2279
+ path: "/organizations/:organizationId/trade-control-board";
2280
+ responses: {
2281
+ 200: z.ZodObject<{
2282
+ data: z.ZodObject<{
2283
+ type: z.ZodLiteral<"trade-control-board">;
2284
+ id: z.ZodString;
2285
+ attributes: z.ZodObject<{
2286
+ periodStart: z.ZodNullable<z.ZodString>;
2287
+ periodEnd: z.ZodNullable<z.ZodString>;
2288
+ purchaseTotal: z.ZodNumber;
2289
+ transportTotal: z.ZodNumber;
2290
+ storageTotal: z.ZodNumber;
2291
+ miscellaneousTotal: z.ZodNumber;
2292
+ saleTotal: z.ZodNumber;
2293
+ buyerReceipts: z.ZodNumber;
2294
+ supplierPayments: z.ZodNumber;
2295
+ commissionPayouts: z.ZodNumber;
2296
+ capitalIn: z.ZodNumber;
2297
+ capitalOut: z.ZodNumber;
2298
+ grossProfit: z.ZodNumber;
2299
+ dealCount: z.ZodNumber;
2300
+ byBuyer: z.ZodArray<z.ZodObject<{
2301
+ buyerName: z.ZodString;
2302
+ saleTotal: z.ZodNumber;
2303
+ dealCount: z.ZodNumber;
2304
+ }, "strip", z.ZodTypeAny, {
2305
+ buyerName: string;
2306
+ dealCount: number;
2307
+ saleTotal: number;
2308
+ }, {
2309
+ buyerName: string;
2310
+ dealCount: number;
2311
+ saleTotal: number;
2312
+ }>, "many">;
2313
+ bySupplier: z.ZodArray<z.ZodObject<{
2314
+ supplierName: z.ZodString;
2315
+ purchaseTotal: z.ZodNumber;
2316
+ dealCount: z.ZodNumber;
2317
+ }, "strip", z.ZodTypeAny, {
2318
+ supplierName: string;
2319
+ dealCount: number;
2320
+ purchaseTotal: number;
2321
+ }, {
2322
+ supplierName: string;
2323
+ dealCount: number;
2324
+ purchaseTotal: number;
2325
+ }>, "many">;
2326
+ }, "strip", z.ZodTypeAny, {
2327
+ periodStart: string | null;
2328
+ periodEnd: string | null;
2329
+ grossProfit: number;
2330
+ byBuyer: {
2331
+ buyerName: string;
2332
+ dealCount: number;
2333
+ saleTotal: number;
2334
+ }[];
2335
+ dealCount: number;
2336
+ capitalIn: number;
2337
+ capitalOut: number;
2338
+ purchaseTotal: number;
2339
+ transportTotal: number;
2340
+ storageTotal: number;
2341
+ miscellaneousTotal: number;
2342
+ saleTotal: number;
2343
+ buyerReceipts: number;
2344
+ supplierPayments: number;
2345
+ commissionPayouts: number;
2346
+ bySupplier: {
2347
+ supplierName: string;
2348
+ dealCount: number;
2349
+ purchaseTotal: number;
2350
+ }[];
2351
+ }, {
2352
+ periodStart: string | null;
2353
+ periodEnd: string | null;
2354
+ grossProfit: number;
2355
+ byBuyer: {
2356
+ buyerName: string;
2357
+ dealCount: number;
2358
+ saleTotal: number;
2359
+ }[];
2360
+ dealCount: number;
2361
+ capitalIn: number;
2362
+ capitalOut: number;
2363
+ purchaseTotal: number;
2364
+ transportTotal: number;
2365
+ storageTotal: number;
2366
+ miscellaneousTotal: number;
2367
+ saleTotal: number;
2368
+ buyerReceipts: number;
2369
+ supplierPayments: number;
2370
+ commissionPayouts: number;
2371
+ bySupplier: {
2372
+ supplierName: string;
2373
+ dealCount: number;
2374
+ purchaseTotal: number;
2375
+ }[];
2376
+ }>;
2377
+ }, "strip", z.ZodTypeAny, {
2378
+ type: "trade-control-board";
2379
+ id: string;
2380
+ attributes: {
2381
+ periodStart: string | null;
2382
+ periodEnd: string | null;
2383
+ grossProfit: number;
2384
+ byBuyer: {
2385
+ buyerName: string;
2386
+ dealCount: number;
2387
+ saleTotal: number;
2388
+ }[];
2389
+ dealCount: number;
2390
+ capitalIn: number;
2391
+ capitalOut: number;
2392
+ purchaseTotal: number;
2393
+ transportTotal: number;
2394
+ storageTotal: number;
2395
+ miscellaneousTotal: number;
2396
+ saleTotal: number;
2397
+ buyerReceipts: number;
2398
+ supplierPayments: number;
2399
+ commissionPayouts: number;
2400
+ bySupplier: {
2401
+ supplierName: string;
2402
+ dealCount: number;
2403
+ purchaseTotal: number;
2404
+ }[];
2405
+ };
2406
+ }, {
2407
+ type: "trade-control-board";
2408
+ id: string;
2409
+ attributes: {
2410
+ periodStart: string | null;
2411
+ periodEnd: string | null;
2412
+ grossProfit: number;
2413
+ byBuyer: {
2414
+ buyerName: string;
2415
+ dealCount: number;
2416
+ saleTotal: number;
2417
+ }[];
2418
+ dealCount: number;
2419
+ capitalIn: number;
2420
+ capitalOut: number;
2421
+ purchaseTotal: number;
2422
+ transportTotal: number;
2423
+ storageTotal: number;
2424
+ miscellaneousTotal: number;
2425
+ saleTotal: number;
2426
+ buyerReceipts: number;
2427
+ supplierPayments: number;
2428
+ commissionPayouts: number;
2429
+ bySupplier: {
2430
+ supplierName: string;
2431
+ dealCount: number;
2432
+ purchaseTotal: number;
2433
+ }[];
2434
+ };
2435
+ }>;
2436
+ }, "strip", z.ZodTypeAny, {
2437
+ data: {
2438
+ type: "trade-control-board";
2439
+ id: string;
2440
+ attributes: {
2441
+ periodStart: string | null;
2442
+ periodEnd: string | null;
2443
+ grossProfit: number;
2444
+ byBuyer: {
2445
+ buyerName: string;
2446
+ dealCount: number;
2447
+ saleTotal: number;
2448
+ }[];
2449
+ dealCount: number;
2450
+ capitalIn: number;
2451
+ capitalOut: number;
2452
+ purchaseTotal: number;
2453
+ transportTotal: number;
2454
+ storageTotal: number;
2455
+ miscellaneousTotal: number;
2456
+ saleTotal: number;
2457
+ buyerReceipts: number;
2458
+ supplierPayments: number;
2459
+ commissionPayouts: number;
2460
+ bySupplier: {
2461
+ supplierName: string;
2462
+ dealCount: number;
2463
+ purchaseTotal: number;
2464
+ }[];
2465
+ };
2466
+ };
2467
+ }, {
2468
+ data: {
2469
+ type: "trade-control-board";
2470
+ id: string;
2471
+ attributes: {
2472
+ periodStart: string | null;
2473
+ periodEnd: string | null;
2474
+ grossProfit: number;
2475
+ byBuyer: {
2476
+ buyerName: string;
2477
+ dealCount: number;
2478
+ saleTotal: number;
2479
+ }[];
2480
+ dealCount: number;
2481
+ capitalIn: number;
2482
+ capitalOut: number;
2483
+ purchaseTotal: number;
2484
+ transportTotal: number;
2485
+ storageTotal: number;
2486
+ miscellaneousTotal: number;
2487
+ saleTotal: number;
2488
+ buyerReceipts: number;
2489
+ supplierPayments: number;
2490
+ commissionPayouts: number;
2491
+ bySupplier: {
2492
+ supplierName: string;
2493
+ dealCount: number;
2494
+ purchaseTotal: number;
2495
+ }[];
2496
+ };
2497
+ };
2498
+ }>;
2499
+ 401: z.ZodObject<{
2500
+ errors: z.ZodArray<z.ZodObject<{
2501
+ id: z.ZodOptional<z.ZodString>;
2502
+ links: z.ZodOptional<z.ZodObject<{
2503
+ about: z.ZodOptional<z.ZodString>;
2504
+ }, "strip", z.ZodTypeAny, {
2505
+ about?: string | undefined;
2506
+ }, {
2507
+ about?: string | undefined;
2508
+ }>>;
2509
+ status: z.ZodOptional<z.ZodString>;
2510
+ code: z.ZodOptional<z.ZodString>;
2511
+ title: z.ZodOptional<z.ZodString>;
2512
+ detail: z.ZodOptional<z.ZodString>;
2513
+ source: z.ZodOptional<z.ZodObject<{
2514
+ pointer: z.ZodOptional<z.ZodString>;
2515
+ parameter: z.ZodOptional<z.ZodString>;
2516
+ }, "strip", z.ZodTypeAny, {
2517
+ pointer?: string | undefined;
2518
+ parameter?: string | undefined;
2519
+ }, {
2520
+ pointer?: string | undefined;
2521
+ parameter?: string | undefined;
2522
+ }>>;
2523
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ status?: string | undefined;
2526
+ code?: string | undefined;
2527
+ id?: string | undefined;
2528
+ links?: {
2529
+ about?: string | undefined;
2530
+ } | undefined;
2531
+ meta?: Record<string, unknown> | undefined;
2532
+ title?: string | undefined;
2533
+ detail?: string | undefined;
2534
+ source?: {
2535
+ pointer?: string | undefined;
2536
+ parameter?: string | undefined;
2537
+ } | undefined;
2538
+ }, {
2539
+ status?: string | undefined;
2540
+ code?: string | undefined;
2541
+ id?: string | undefined;
2542
+ links?: {
2543
+ about?: string | undefined;
2544
+ } | undefined;
2545
+ meta?: Record<string, unknown> | undefined;
2546
+ title?: string | undefined;
2547
+ detail?: string | undefined;
2548
+ source?: {
2549
+ pointer?: string | undefined;
2550
+ parameter?: string | undefined;
2551
+ } | undefined;
2552
+ }>, "many">;
2553
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ errors: {
2556
+ status?: string | undefined;
2557
+ code?: string | undefined;
2558
+ id?: string | undefined;
2559
+ links?: {
2560
+ about?: string | undefined;
2561
+ } | undefined;
2562
+ meta?: Record<string, unknown> | undefined;
2563
+ title?: string | undefined;
2564
+ detail?: string | undefined;
2565
+ source?: {
2566
+ pointer?: string | undefined;
2567
+ parameter?: string | undefined;
2568
+ } | undefined;
2569
+ }[];
2570
+ meta?: Record<string, unknown> | undefined;
2571
+ }, {
2572
+ errors: {
2573
+ status?: string | undefined;
2574
+ code?: string | undefined;
2575
+ id?: string | undefined;
2576
+ links?: {
2577
+ about?: string | undefined;
2578
+ } | undefined;
2579
+ meta?: Record<string, unknown> | undefined;
2580
+ title?: string | undefined;
2581
+ detail?: string | undefined;
2582
+ source?: {
2583
+ pointer?: string | undefined;
2584
+ parameter?: string | undefined;
2585
+ } | undefined;
2586
+ }[];
2587
+ meta?: Record<string, unknown> | undefined;
2588
+ }>;
2589
+ 403: z.ZodObject<{
2590
+ errors: z.ZodArray<z.ZodObject<{
2591
+ id: z.ZodOptional<z.ZodString>;
2592
+ links: z.ZodOptional<z.ZodObject<{
2593
+ about: z.ZodOptional<z.ZodString>;
2594
+ }, "strip", z.ZodTypeAny, {
2595
+ about?: string | undefined;
2596
+ }, {
2597
+ about?: string | undefined;
2598
+ }>>;
2599
+ status: z.ZodOptional<z.ZodString>;
2600
+ code: z.ZodOptional<z.ZodString>;
2601
+ title: z.ZodOptional<z.ZodString>;
2602
+ detail: z.ZodOptional<z.ZodString>;
2603
+ source: z.ZodOptional<z.ZodObject<{
2604
+ pointer: z.ZodOptional<z.ZodString>;
2605
+ parameter: z.ZodOptional<z.ZodString>;
2606
+ }, "strip", z.ZodTypeAny, {
2607
+ pointer?: string | undefined;
2608
+ parameter?: string | undefined;
2609
+ }, {
2610
+ pointer?: string | undefined;
2611
+ parameter?: string | undefined;
2612
+ }>>;
2613
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2614
+ }, "strip", z.ZodTypeAny, {
2615
+ status?: string | undefined;
2616
+ code?: string | undefined;
2617
+ id?: string | undefined;
2618
+ links?: {
2619
+ about?: string | undefined;
2620
+ } | undefined;
2621
+ meta?: Record<string, unknown> | undefined;
2622
+ title?: string | undefined;
2623
+ detail?: string | undefined;
2624
+ source?: {
2625
+ pointer?: string | undefined;
2626
+ parameter?: string | undefined;
2627
+ } | undefined;
2628
+ }, {
2629
+ status?: string | undefined;
2630
+ code?: string | undefined;
2631
+ id?: string | undefined;
2632
+ links?: {
2633
+ about?: string | undefined;
2634
+ } | undefined;
2635
+ meta?: Record<string, unknown> | undefined;
2636
+ title?: string | undefined;
2637
+ detail?: string | undefined;
2638
+ source?: {
2639
+ pointer?: string | undefined;
2640
+ parameter?: string | undefined;
2641
+ } | undefined;
2642
+ }>, "many">;
2643
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2644
+ }, "strip", z.ZodTypeAny, {
2645
+ errors: {
2646
+ status?: string | undefined;
2647
+ code?: string | undefined;
2648
+ id?: string | undefined;
2649
+ links?: {
2650
+ about?: string | undefined;
2651
+ } | undefined;
2652
+ meta?: Record<string, unknown> | undefined;
2653
+ title?: string | undefined;
2654
+ detail?: string | undefined;
2655
+ source?: {
2656
+ pointer?: string | undefined;
2657
+ parameter?: string | undefined;
2658
+ } | undefined;
2659
+ }[];
2660
+ meta?: Record<string, unknown> | undefined;
2661
+ }, {
2662
+ errors: {
2663
+ status?: string | undefined;
2664
+ code?: string | undefined;
2665
+ id?: string | undefined;
2666
+ links?: {
2667
+ about?: string | undefined;
2668
+ } | undefined;
2669
+ meta?: Record<string, unknown> | undefined;
2670
+ title?: string | undefined;
2671
+ detail?: string | undefined;
2672
+ source?: {
2673
+ pointer?: string | undefined;
2674
+ parameter?: string | undefined;
2675
+ } | undefined;
2676
+ }[];
2677
+ meta?: Record<string, unknown> | undefined;
2678
+ }>;
2679
+ 404: z.ZodObject<{
2680
+ errors: z.ZodArray<z.ZodObject<{
2681
+ id: z.ZodOptional<z.ZodString>;
2682
+ links: z.ZodOptional<z.ZodObject<{
2683
+ about: z.ZodOptional<z.ZodString>;
2684
+ }, "strip", z.ZodTypeAny, {
2685
+ about?: string | undefined;
2686
+ }, {
2687
+ about?: string | undefined;
2688
+ }>>;
2689
+ status: z.ZodOptional<z.ZodString>;
2690
+ code: z.ZodOptional<z.ZodString>;
2691
+ title: z.ZodOptional<z.ZodString>;
2692
+ detail: z.ZodOptional<z.ZodString>;
2693
+ source: z.ZodOptional<z.ZodObject<{
2694
+ pointer: z.ZodOptional<z.ZodString>;
2695
+ parameter: z.ZodOptional<z.ZodString>;
2696
+ }, "strip", z.ZodTypeAny, {
2697
+ pointer?: string | undefined;
2698
+ parameter?: string | undefined;
2699
+ }, {
2700
+ pointer?: string | undefined;
2701
+ parameter?: string | undefined;
2702
+ }>>;
2703
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2704
+ }, "strip", z.ZodTypeAny, {
2705
+ status?: string | undefined;
2706
+ code?: string | undefined;
2707
+ id?: string | undefined;
2708
+ links?: {
2709
+ about?: string | undefined;
2710
+ } | undefined;
2711
+ meta?: Record<string, unknown> | undefined;
2712
+ title?: string | undefined;
2713
+ detail?: string | undefined;
2714
+ source?: {
2715
+ pointer?: string | undefined;
2716
+ parameter?: string | undefined;
2717
+ } | undefined;
2718
+ }, {
2719
+ status?: string | undefined;
2720
+ code?: string | undefined;
2721
+ id?: string | undefined;
2722
+ links?: {
2723
+ about?: string | undefined;
2724
+ } | undefined;
2725
+ meta?: Record<string, unknown> | undefined;
2726
+ title?: string | undefined;
2727
+ detail?: string | undefined;
2728
+ source?: {
2729
+ pointer?: string | undefined;
2730
+ parameter?: string | undefined;
2731
+ } | undefined;
2732
+ }>, "many">;
2733
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2734
+ }, "strip", z.ZodTypeAny, {
2735
+ errors: {
2736
+ status?: string | undefined;
2737
+ code?: string | undefined;
2738
+ id?: string | undefined;
2739
+ links?: {
2740
+ about?: string | undefined;
2741
+ } | undefined;
2742
+ meta?: Record<string, unknown> | undefined;
2743
+ title?: string | undefined;
2744
+ detail?: string | undefined;
2745
+ source?: {
2746
+ pointer?: string | undefined;
2747
+ parameter?: string | undefined;
2748
+ } | undefined;
2749
+ }[];
2750
+ meta?: Record<string, unknown> | undefined;
2751
+ }, {
2752
+ errors: {
2753
+ status?: string | undefined;
2754
+ code?: string | undefined;
2755
+ id?: string | undefined;
2756
+ links?: {
2757
+ about?: string | undefined;
2758
+ } | undefined;
2759
+ meta?: Record<string, unknown> | undefined;
2760
+ title?: string | undefined;
2761
+ detail?: string | undefined;
2762
+ source?: {
2763
+ pointer?: string | undefined;
2764
+ parameter?: string | undefined;
2765
+ } | undefined;
2766
+ }[];
2767
+ meta?: Record<string, unknown> | undefined;
2768
+ }>;
2769
+ };
2770
+ };
2771
+ listInvoicePayments: {
2772
+ pathParams: z.ZodObject<{
2773
+ organizationId: z.ZodString;
2774
+ } & {
2775
+ invoiceId: z.ZodString;
2776
+ }, "strip", z.ZodTypeAny, {
2777
+ organizationId: string;
2778
+ invoiceId: string;
2779
+ }, {
2780
+ organizationId: string;
2781
+ invoiceId: string;
2782
+ }>;
2783
+ summary: "List payments on an invoice";
2784
+ method: "GET";
2785
+ path: "/organizations/:organizationId/invoices/:invoiceId/payments";
2786
+ responses: {
2787
+ 200: z.ZodObject<{
2788
+ data: z.ZodArray<z.ZodObject<{
2789
+ type: z.ZodLiteral<string>;
2790
+ id: z.ZodString;
2791
+ attributes: z.ZodObject<{
2792
+ organizationId: z.ZodString;
2793
+ invoiceId: z.ZodString;
2794
+ amount: z.ZodNumber;
2795
+ currency: z.ZodDefault<z.ZodString>;
2796
+ occurredAt: z.ZodString;
2797
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2798
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2799
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2800
+ } & {
2801
+ createdAt: z.ZodString;
2802
+ updatedAt: z.ZodString;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ createdAt: string;
2805
+ updatedAt: string;
2806
+ organizationId: string;
2807
+ currency: string;
2808
+ occurredAt: string;
2809
+ amount: number;
2810
+ invoiceId: string;
2811
+ method?: string | null | undefined;
2812
+ notes?: string | null | undefined;
2813
+ reference?: string | null | undefined;
2814
+ }, {
2815
+ createdAt: string;
2816
+ updatedAt: string;
2817
+ organizationId: string;
2818
+ occurredAt: string;
2819
+ amount: number;
2820
+ invoiceId: string;
2821
+ method?: string | null | undefined;
2822
+ currency?: string | undefined;
2823
+ notes?: string | null | undefined;
2824
+ reference?: string | null | undefined;
2825
+ }>;
2826
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2827
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2828
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2829
+ }, "strip", z.ZodTypeAny, {
2830
+ type: string;
2831
+ id: string;
2832
+ attributes: {
2833
+ createdAt: string;
2834
+ updatedAt: string;
2835
+ organizationId: string;
2836
+ currency: string;
2837
+ occurredAt: string;
2838
+ amount: number;
2839
+ invoiceId: string;
2840
+ method?: string | null | undefined;
2841
+ notes?: string | null | undefined;
2842
+ reference?: string | null | undefined;
2843
+ };
2844
+ relationships?: Record<string, unknown> | undefined;
2845
+ links?: Record<string, string> | undefined;
2846
+ meta?: Record<string, unknown> | undefined;
2847
+ }, {
2848
+ type: string;
2849
+ id: string;
2850
+ attributes: {
2851
+ createdAt: string;
2852
+ updatedAt: string;
2853
+ organizationId: string;
2854
+ occurredAt: string;
2855
+ amount: number;
2856
+ invoiceId: string;
2857
+ method?: string | null | undefined;
2858
+ currency?: string | undefined;
2859
+ notes?: string | null | undefined;
2860
+ reference?: string | null | undefined;
2861
+ };
2862
+ relationships?: Record<string, unknown> | undefined;
2863
+ links?: Record<string, string> | undefined;
2864
+ meta?: Record<string, unknown> | undefined;
2865
+ }>, "many">;
2866
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
2867
+ type: z.ZodString;
2868
+ id: z.ZodString;
2869
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2870
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2871
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2872
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2873
+ }, "strip", z.ZodTypeAny, {
2874
+ type: string;
2875
+ id: string;
2876
+ attributes?: Record<string, unknown> | undefined;
2877
+ relationships?: Record<string, unknown> | undefined;
2878
+ links?: Record<string, string> | undefined;
2879
+ meta?: Record<string, unknown> | undefined;
2880
+ }, {
2881
+ type: string;
2882
+ id: string;
2883
+ attributes?: Record<string, unknown> | undefined;
2884
+ relationships?: Record<string, unknown> | undefined;
2885
+ links?: Record<string, string> | undefined;
2886
+ meta?: Record<string, unknown> | undefined;
2887
+ }>, "many">>;
2888
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2889
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2890
+ }, "strip", z.ZodTypeAny, {
2891
+ data: {
2892
+ type: string;
2893
+ id: string;
2894
+ attributes: {
2895
+ createdAt: string;
2896
+ updatedAt: string;
2897
+ organizationId: string;
2898
+ currency: string;
2899
+ occurredAt: string;
2900
+ amount: number;
2901
+ invoiceId: string;
2902
+ method?: string | null | undefined;
2903
+ notes?: string | null | undefined;
2904
+ reference?: string | null | undefined;
2905
+ };
2906
+ relationships?: Record<string, unknown> | undefined;
2907
+ links?: Record<string, string> | undefined;
2908
+ meta?: Record<string, unknown> | undefined;
2909
+ }[];
2910
+ links?: Record<string, string> | undefined;
2911
+ meta?: Record<string, unknown> | undefined;
2912
+ included?: {
2913
+ type: string;
2914
+ id: string;
2915
+ attributes?: Record<string, unknown> | undefined;
2916
+ relationships?: Record<string, unknown> | undefined;
2917
+ links?: Record<string, string> | undefined;
2918
+ meta?: Record<string, unknown> | undefined;
2919
+ }[] | undefined;
2920
+ }, {
2921
+ data: {
2922
+ type: string;
2923
+ id: string;
2924
+ attributes: {
2925
+ createdAt: string;
2926
+ updatedAt: string;
2927
+ organizationId: string;
2928
+ occurredAt: string;
2929
+ amount: number;
2930
+ invoiceId: string;
2931
+ method?: string | null | undefined;
2932
+ currency?: string | undefined;
2933
+ notes?: string | null | undefined;
2934
+ reference?: string | null | undefined;
2935
+ };
2936
+ relationships?: Record<string, unknown> | undefined;
2937
+ links?: Record<string, string> | undefined;
2938
+ meta?: Record<string, unknown> | undefined;
2939
+ }[];
2940
+ links?: Record<string, string> | undefined;
2941
+ meta?: Record<string, unknown> | undefined;
2942
+ included?: {
2943
+ type: string;
2944
+ id: string;
2945
+ attributes?: Record<string, unknown> | undefined;
2946
+ relationships?: Record<string, unknown> | undefined;
2947
+ links?: Record<string, string> | undefined;
2948
+ meta?: Record<string, unknown> | undefined;
2949
+ }[] | undefined;
2950
+ }>;
2951
+ 401: z.ZodObject<{
2952
+ errors: z.ZodArray<z.ZodObject<{
2953
+ id: z.ZodOptional<z.ZodString>;
2954
+ links: z.ZodOptional<z.ZodObject<{
2955
+ about: z.ZodOptional<z.ZodString>;
2956
+ }, "strip", z.ZodTypeAny, {
2957
+ about?: string | undefined;
2958
+ }, {
2959
+ about?: string | undefined;
2960
+ }>>;
2961
+ status: z.ZodOptional<z.ZodString>;
2962
+ code: z.ZodOptional<z.ZodString>;
2963
+ title: z.ZodOptional<z.ZodString>;
2964
+ detail: z.ZodOptional<z.ZodString>;
2965
+ source: z.ZodOptional<z.ZodObject<{
2966
+ pointer: z.ZodOptional<z.ZodString>;
2967
+ parameter: z.ZodOptional<z.ZodString>;
2968
+ }, "strip", z.ZodTypeAny, {
2969
+ pointer?: string | undefined;
2970
+ parameter?: string | undefined;
2971
+ }, {
2972
+ pointer?: string | undefined;
2973
+ parameter?: string | undefined;
2974
+ }>>;
2975
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2976
+ }, "strip", z.ZodTypeAny, {
2977
+ status?: string | undefined;
2978
+ code?: string | undefined;
2979
+ id?: string | undefined;
2980
+ links?: {
2981
+ about?: string | undefined;
2982
+ } | undefined;
2983
+ meta?: Record<string, unknown> | undefined;
2984
+ title?: string | undefined;
2985
+ detail?: string | undefined;
2986
+ source?: {
2987
+ pointer?: string | undefined;
2988
+ parameter?: string | undefined;
2989
+ } | undefined;
2990
+ }, {
2991
+ status?: string | undefined;
2992
+ code?: string | undefined;
2993
+ id?: string | undefined;
2994
+ links?: {
2995
+ about?: string | undefined;
2996
+ } | undefined;
2997
+ meta?: Record<string, unknown> | undefined;
2998
+ title?: string | undefined;
2999
+ detail?: string | undefined;
3000
+ source?: {
3001
+ pointer?: string | undefined;
3002
+ parameter?: string | undefined;
3003
+ } | undefined;
3004
+ }>, "many">;
3005
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3006
+ }, "strip", z.ZodTypeAny, {
3007
+ errors: {
3008
+ status?: string | undefined;
3009
+ code?: string | undefined;
3010
+ id?: string | undefined;
3011
+ links?: {
3012
+ about?: string | undefined;
3013
+ } | undefined;
3014
+ meta?: Record<string, unknown> | undefined;
3015
+ title?: string | undefined;
3016
+ detail?: string | undefined;
3017
+ source?: {
3018
+ pointer?: string | undefined;
3019
+ parameter?: string | undefined;
3020
+ } | undefined;
3021
+ }[];
3022
+ meta?: Record<string, unknown> | undefined;
3023
+ }, {
3024
+ errors: {
3025
+ status?: string | undefined;
3026
+ code?: string | undefined;
3027
+ id?: string | undefined;
3028
+ links?: {
3029
+ about?: string | undefined;
3030
+ } | undefined;
3031
+ meta?: Record<string, unknown> | undefined;
3032
+ title?: string | undefined;
3033
+ detail?: string | undefined;
3034
+ source?: {
3035
+ pointer?: string | undefined;
3036
+ parameter?: string | undefined;
3037
+ } | undefined;
3038
+ }[];
3039
+ meta?: Record<string, unknown> | undefined;
3040
+ }>;
3041
+ 403: z.ZodObject<{
3042
+ errors: z.ZodArray<z.ZodObject<{
3043
+ id: z.ZodOptional<z.ZodString>;
3044
+ links: z.ZodOptional<z.ZodObject<{
3045
+ about: z.ZodOptional<z.ZodString>;
3046
+ }, "strip", z.ZodTypeAny, {
3047
+ about?: string | undefined;
3048
+ }, {
3049
+ about?: string | undefined;
3050
+ }>>;
3051
+ status: z.ZodOptional<z.ZodString>;
3052
+ code: z.ZodOptional<z.ZodString>;
3053
+ title: z.ZodOptional<z.ZodString>;
3054
+ detail: z.ZodOptional<z.ZodString>;
3055
+ source: z.ZodOptional<z.ZodObject<{
3056
+ pointer: z.ZodOptional<z.ZodString>;
3057
+ parameter: z.ZodOptional<z.ZodString>;
3058
+ }, "strip", z.ZodTypeAny, {
3059
+ pointer?: string | undefined;
3060
+ parameter?: string | undefined;
3061
+ }, {
3062
+ pointer?: string | undefined;
3063
+ parameter?: string | undefined;
3064
+ }>>;
3065
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3066
+ }, "strip", z.ZodTypeAny, {
3067
+ status?: string | undefined;
3068
+ code?: string | undefined;
3069
+ id?: string | undefined;
3070
+ links?: {
3071
+ about?: string | undefined;
3072
+ } | undefined;
3073
+ meta?: Record<string, unknown> | undefined;
3074
+ title?: string | undefined;
3075
+ detail?: string | undefined;
3076
+ source?: {
3077
+ pointer?: string | undefined;
3078
+ parameter?: string | undefined;
3079
+ } | undefined;
3080
+ }, {
3081
+ status?: string | undefined;
3082
+ code?: string | undefined;
3083
+ id?: string | undefined;
3084
+ links?: {
3085
+ about?: string | undefined;
3086
+ } | undefined;
3087
+ meta?: Record<string, unknown> | undefined;
3088
+ title?: string | undefined;
3089
+ detail?: string | undefined;
3090
+ source?: {
3091
+ pointer?: string | undefined;
3092
+ parameter?: string | undefined;
3093
+ } | undefined;
3094
+ }>, "many">;
3095
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3096
+ }, "strip", z.ZodTypeAny, {
3097
+ errors: {
3098
+ status?: string | undefined;
3099
+ code?: string | undefined;
3100
+ id?: string | undefined;
3101
+ links?: {
3102
+ about?: string | undefined;
3103
+ } | undefined;
3104
+ meta?: Record<string, unknown> | undefined;
3105
+ title?: string | undefined;
3106
+ detail?: string | undefined;
3107
+ source?: {
3108
+ pointer?: string | undefined;
3109
+ parameter?: string | undefined;
3110
+ } | undefined;
3111
+ }[];
3112
+ meta?: Record<string, unknown> | undefined;
3113
+ }, {
3114
+ errors: {
3115
+ status?: string | undefined;
3116
+ code?: string | undefined;
3117
+ id?: string | undefined;
3118
+ links?: {
3119
+ about?: string | undefined;
3120
+ } | undefined;
3121
+ meta?: Record<string, unknown> | undefined;
3122
+ title?: string | undefined;
3123
+ detail?: string | undefined;
3124
+ source?: {
3125
+ pointer?: string | undefined;
3126
+ parameter?: string | undefined;
3127
+ } | undefined;
3128
+ }[];
3129
+ meta?: Record<string, unknown> | undefined;
3130
+ }>;
3131
+ 404: z.ZodObject<{
3132
+ errors: z.ZodArray<z.ZodObject<{
3133
+ id: z.ZodOptional<z.ZodString>;
3134
+ links: z.ZodOptional<z.ZodObject<{
3135
+ about: z.ZodOptional<z.ZodString>;
3136
+ }, "strip", z.ZodTypeAny, {
3137
+ about?: string | undefined;
3138
+ }, {
3139
+ about?: string | undefined;
3140
+ }>>;
3141
+ status: z.ZodOptional<z.ZodString>;
3142
+ code: z.ZodOptional<z.ZodString>;
3143
+ title: z.ZodOptional<z.ZodString>;
3144
+ detail: z.ZodOptional<z.ZodString>;
3145
+ source: z.ZodOptional<z.ZodObject<{
3146
+ pointer: z.ZodOptional<z.ZodString>;
3147
+ parameter: z.ZodOptional<z.ZodString>;
3148
+ }, "strip", z.ZodTypeAny, {
3149
+ pointer?: string | undefined;
3150
+ parameter?: string | undefined;
3151
+ }, {
3152
+ pointer?: string | undefined;
3153
+ parameter?: string | undefined;
3154
+ }>>;
3155
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3156
+ }, "strip", z.ZodTypeAny, {
3157
+ status?: string | undefined;
3158
+ code?: string | undefined;
3159
+ id?: string | undefined;
3160
+ links?: {
3161
+ about?: string | undefined;
3162
+ } | undefined;
3163
+ meta?: Record<string, unknown> | undefined;
3164
+ title?: string | undefined;
3165
+ detail?: string | undefined;
3166
+ source?: {
3167
+ pointer?: string | undefined;
3168
+ parameter?: string | undefined;
3169
+ } | undefined;
3170
+ }, {
3171
+ status?: string | undefined;
3172
+ code?: string | undefined;
3173
+ id?: string | undefined;
3174
+ links?: {
3175
+ about?: string | undefined;
3176
+ } | undefined;
3177
+ meta?: Record<string, unknown> | undefined;
3178
+ title?: string | undefined;
3179
+ detail?: string | undefined;
3180
+ source?: {
3181
+ pointer?: string | undefined;
3182
+ parameter?: string | undefined;
3183
+ } | undefined;
3184
+ }>, "many">;
3185
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3186
+ }, "strip", z.ZodTypeAny, {
3187
+ errors: {
3188
+ status?: string | undefined;
3189
+ code?: string | undefined;
3190
+ id?: string | undefined;
3191
+ links?: {
3192
+ about?: string | undefined;
3193
+ } | undefined;
3194
+ meta?: Record<string, unknown> | undefined;
3195
+ title?: string | undefined;
3196
+ detail?: string | undefined;
3197
+ source?: {
3198
+ pointer?: string | undefined;
3199
+ parameter?: string | undefined;
3200
+ } | undefined;
3201
+ }[];
3202
+ meta?: Record<string, unknown> | undefined;
3203
+ }, {
3204
+ errors: {
3205
+ status?: string | undefined;
3206
+ code?: string | undefined;
3207
+ id?: string | undefined;
3208
+ links?: {
3209
+ about?: string | undefined;
3210
+ } | undefined;
3211
+ meta?: Record<string, unknown> | undefined;
3212
+ title?: string | undefined;
3213
+ detail?: string | undefined;
3214
+ source?: {
3215
+ pointer?: string | undefined;
3216
+ parameter?: string | undefined;
3217
+ } | undefined;
3218
+ }[];
3219
+ meta?: Record<string, unknown> | undefined;
3220
+ }>;
3221
+ };
3222
+ };
3223
+ createInvoicePayment: {
3224
+ pathParams: z.ZodObject<{
3225
+ organizationId: z.ZodString;
3226
+ } & {
3227
+ invoiceId: z.ZodString;
3228
+ }, "strip", z.ZodTypeAny, {
3229
+ organizationId: string;
3230
+ invoiceId: string;
3231
+ }, {
3232
+ organizationId: string;
3233
+ invoiceId: string;
3234
+ }>;
3235
+ summary: "Record a (partial) buyer payment on an invoice";
3236
+ method: "POST";
3237
+ body: z.ZodObject<{
3238
+ data: z.ZodObject<{
3239
+ type: z.ZodLiteral<"invoice-payments">;
3240
+ attributes: z.ZodObject<{
3241
+ amount: z.ZodNumber;
3242
+ currency: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3243
+ occurredAt: z.ZodString;
3244
+ method: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3245
+ reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3246
+ notes: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3247
+ }, "strip", z.ZodTypeAny, {
3248
+ currency: string;
3249
+ occurredAt: string;
3250
+ amount: number;
3251
+ method?: string | null | undefined;
3252
+ notes?: string | null | undefined;
3253
+ reference?: string | null | undefined;
3254
+ }, {
3255
+ occurredAt: string;
3256
+ amount: number;
3257
+ method?: string | null | undefined;
3258
+ currency?: string | undefined;
3259
+ notes?: string | null | undefined;
3260
+ reference?: string | null | undefined;
3261
+ }>;
3262
+ }, "strip", z.ZodTypeAny, {
3263
+ type: "invoice-payments";
3264
+ attributes: {
3265
+ currency: string;
3266
+ occurredAt: string;
3267
+ amount: number;
3268
+ method?: string | null | undefined;
3269
+ notes?: string | null | undefined;
3270
+ reference?: string | null | undefined;
3271
+ };
3272
+ }, {
3273
+ type: "invoice-payments";
3274
+ attributes: {
3275
+ occurredAt: string;
3276
+ amount: number;
3277
+ method?: string | null | undefined;
3278
+ currency?: string | undefined;
3279
+ notes?: string | null | undefined;
3280
+ reference?: string | null | undefined;
3281
+ };
3282
+ }>;
3283
+ }, "strip", z.ZodTypeAny, {
3284
+ data: {
3285
+ type: "invoice-payments";
3286
+ attributes: {
3287
+ currency: string;
3288
+ occurredAt: string;
3289
+ amount: number;
3290
+ method?: string | null | undefined;
3291
+ notes?: string | null | undefined;
3292
+ reference?: string | null | undefined;
3293
+ };
3294
+ };
3295
+ }, {
3296
+ data: {
3297
+ type: "invoice-payments";
3298
+ attributes: {
3299
+ occurredAt: string;
3300
+ amount: number;
3301
+ method?: string | null | undefined;
3302
+ currency?: string | undefined;
3303
+ notes?: string | null | undefined;
3304
+ reference?: string | null | undefined;
3305
+ };
3306
+ };
3307
+ }>;
3308
+ path: "/organizations/:organizationId/invoices/:invoiceId/payments";
3309
+ responses: {
3310
+ 201: z.ZodObject<{
3311
+ data: z.ZodObject<{
3312
+ type: z.ZodLiteral<string>;
3313
+ id: z.ZodString;
3314
+ attributes: z.ZodObject<{
3315
+ organizationId: z.ZodString;
3316
+ invoiceId: z.ZodString;
3317
+ amount: z.ZodNumber;
3318
+ currency: z.ZodDefault<z.ZodString>;
3319
+ occurredAt: z.ZodString;
3320
+ method: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3321
+ reference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3322
+ notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3323
+ } & {
3324
+ createdAt: z.ZodString;
3325
+ updatedAt: z.ZodString;
3326
+ }, "strip", z.ZodTypeAny, {
3327
+ createdAt: string;
3328
+ updatedAt: string;
3329
+ organizationId: string;
3330
+ currency: string;
3331
+ occurredAt: string;
3332
+ amount: number;
3333
+ invoiceId: string;
3334
+ method?: string | null | undefined;
3335
+ notes?: string | null | undefined;
3336
+ reference?: string | null | undefined;
3337
+ }, {
3338
+ createdAt: string;
3339
+ updatedAt: string;
3340
+ organizationId: string;
3341
+ occurredAt: string;
3342
+ amount: number;
3343
+ invoiceId: string;
3344
+ method?: string | null | undefined;
3345
+ currency?: string | undefined;
3346
+ notes?: string | null | undefined;
3347
+ reference?: string | null | undefined;
3348
+ }>;
3349
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3350
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3351
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ type: string;
3354
+ id: string;
3355
+ attributes: {
3356
+ createdAt: string;
3357
+ updatedAt: string;
3358
+ organizationId: string;
3359
+ currency: string;
3360
+ occurredAt: string;
3361
+ amount: number;
3362
+ invoiceId: string;
3363
+ method?: string | null | undefined;
3364
+ notes?: string | null | undefined;
3365
+ reference?: string | null | undefined;
3366
+ };
3367
+ relationships?: Record<string, unknown> | undefined;
3368
+ links?: Record<string, string> | undefined;
3369
+ meta?: Record<string, unknown> | undefined;
3370
+ }, {
3371
+ type: string;
3372
+ id: string;
3373
+ attributes: {
3374
+ createdAt: string;
3375
+ updatedAt: string;
3376
+ organizationId: string;
3377
+ occurredAt: string;
3378
+ amount: number;
3379
+ invoiceId: string;
3380
+ method?: string | null | undefined;
3381
+ currency?: string | undefined;
3382
+ notes?: string | null | undefined;
3383
+ reference?: string | null | undefined;
3384
+ };
3385
+ relationships?: Record<string, unknown> | undefined;
3386
+ links?: Record<string, string> | undefined;
3387
+ meta?: Record<string, unknown> | undefined;
3388
+ }>;
3389
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
3390
+ type: z.ZodString;
3391
+ id: z.ZodString;
3392
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3393
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3394
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3395
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3396
+ }, "strip", z.ZodTypeAny, {
3397
+ type: string;
3398
+ id: string;
3399
+ attributes?: Record<string, unknown> | undefined;
3400
+ relationships?: Record<string, unknown> | undefined;
3401
+ links?: Record<string, string> | undefined;
3402
+ meta?: Record<string, unknown> | undefined;
3403
+ }, {
3404
+ type: string;
3405
+ id: string;
3406
+ attributes?: Record<string, unknown> | undefined;
3407
+ relationships?: Record<string, unknown> | undefined;
3408
+ links?: Record<string, string> | undefined;
3409
+ meta?: Record<string, unknown> | undefined;
3410
+ }>, "many">>;
3411
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3412
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3413
+ }, "strip", z.ZodTypeAny, {
3414
+ data: {
3415
+ type: string;
3416
+ id: string;
3417
+ attributes: {
3418
+ createdAt: string;
3419
+ updatedAt: string;
3420
+ organizationId: string;
3421
+ currency: string;
3422
+ occurredAt: string;
3423
+ amount: number;
3424
+ invoiceId: string;
3425
+ method?: string | null | undefined;
3426
+ notes?: string | null | undefined;
3427
+ reference?: string | null | undefined;
3428
+ };
3429
+ relationships?: Record<string, unknown> | undefined;
3430
+ links?: Record<string, string> | undefined;
3431
+ meta?: Record<string, unknown> | undefined;
3432
+ };
3433
+ links?: Record<string, string> | undefined;
3434
+ meta?: Record<string, unknown> | undefined;
3435
+ included?: {
3436
+ type: string;
3437
+ id: string;
3438
+ attributes?: Record<string, unknown> | undefined;
3439
+ relationships?: Record<string, unknown> | undefined;
3440
+ links?: Record<string, string> | undefined;
3441
+ meta?: Record<string, unknown> | undefined;
3442
+ }[] | undefined;
3443
+ }, {
3444
+ data: {
3445
+ type: string;
3446
+ id: string;
3447
+ attributes: {
3448
+ createdAt: string;
3449
+ updatedAt: string;
3450
+ organizationId: string;
3451
+ occurredAt: string;
3452
+ amount: number;
3453
+ invoiceId: string;
3454
+ method?: string | null | undefined;
3455
+ currency?: string | undefined;
3456
+ notes?: string | null | undefined;
3457
+ reference?: string | null | undefined;
3458
+ };
3459
+ relationships?: Record<string, unknown> | undefined;
3460
+ links?: Record<string, string> | undefined;
3461
+ meta?: Record<string, unknown> | undefined;
3462
+ };
3463
+ links?: Record<string, string> | undefined;
3464
+ meta?: Record<string, unknown> | undefined;
3465
+ included?: {
3466
+ type: string;
3467
+ id: string;
3468
+ attributes?: Record<string, unknown> | undefined;
3469
+ relationships?: Record<string, unknown> | undefined;
3470
+ links?: Record<string, string> | undefined;
3471
+ meta?: Record<string, unknown> | undefined;
3472
+ }[] | undefined;
3473
+ }>;
3474
+ 400: z.ZodObject<{
3475
+ errors: z.ZodArray<z.ZodObject<{
3476
+ id: z.ZodOptional<z.ZodString>;
3477
+ links: z.ZodOptional<z.ZodObject<{
3478
+ about: z.ZodOptional<z.ZodString>;
3479
+ }, "strip", z.ZodTypeAny, {
3480
+ about?: string | undefined;
3481
+ }, {
3482
+ about?: string | undefined;
3483
+ }>>;
3484
+ status: z.ZodOptional<z.ZodString>;
3485
+ code: z.ZodOptional<z.ZodString>;
3486
+ title: z.ZodOptional<z.ZodString>;
3487
+ detail: z.ZodOptional<z.ZodString>;
3488
+ source: z.ZodOptional<z.ZodObject<{
3489
+ pointer: z.ZodOptional<z.ZodString>;
3490
+ parameter: z.ZodOptional<z.ZodString>;
3491
+ }, "strip", z.ZodTypeAny, {
3492
+ pointer?: string | undefined;
3493
+ parameter?: string | undefined;
3494
+ }, {
3495
+ pointer?: string | undefined;
3496
+ parameter?: string | undefined;
3497
+ }>>;
3498
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3499
+ }, "strip", z.ZodTypeAny, {
3500
+ status?: string | undefined;
3501
+ code?: string | undefined;
3502
+ id?: string | undefined;
3503
+ links?: {
3504
+ about?: string | undefined;
3505
+ } | undefined;
3506
+ meta?: Record<string, unknown> | undefined;
3507
+ title?: string | undefined;
3508
+ detail?: string | undefined;
3509
+ source?: {
3510
+ pointer?: string | undefined;
3511
+ parameter?: string | undefined;
3512
+ } | undefined;
3513
+ }, {
3514
+ status?: string | undefined;
3515
+ code?: string | undefined;
3516
+ id?: string | undefined;
3517
+ links?: {
3518
+ about?: string | undefined;
3519
+ } | undefined;
3520
+ meta?: Record<string, unknown> | undefined;
3521
+ title?: string | undefined;
3522
+ detail?: string | undefined;
3523
+ source?: {
3524
+ pointer?: string | undefined;
3525
+ parameter?: string | undefined;
3526
+ } | undefined;
3527
+ }>, "many">;
3528
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3529
+ }, "strip", z.ZodTypeAny, {
3530
+ errors: {
3531
+ status?: string | undefined;
3532
+ code?: string | undefined;
3533
+ id?: string | undefined;
3534
+ links?: {
3535
+ about?: string | undefined;
3536
+ } | undefined;
3537
+ meta?: Record<string, unknown> | undefined;
3538
+ title?: string | undefined;
3539
+ detail?: string | undefined;
3540
+ source?: {
3541
+ pointer?: string | undefined;
3542
+ parameter?: string | undefined;
3543
+ } | undefined;
3544
+ }[];
3545
+ meta?: Record<string, unknown> | undefined;
3546
+ }, {
3547
+ errors: {
3548
+ status?: string | undefined;
3549
+ code?: string | undefined;
3550
+ id?: string | undefined;
3551
+ links?: {
3552
+ about?: string | undefined;
3553
+ } | undefined;
3554
+ meta?: Record<string, unknown> | undefined;
3555
+ title?: string | undefined;
3556
+ detail?: string | undefined;
3557
+ source?: {
3558
+ pointer?: string | undefined;
3559
+ parameter?: string | undefined;
3560
+ } | undefined;
3561
+ }[];
3562
+ meta?: Record<string, unknown> | undefined;
3563
+ }>;
3564
+ 401: z.ZodObject<{
3565
+ errors: z.ZodArray<z.ZodObject<{
3566
+ id: z.ZodOptional<z.ZodString>;
3567
+ links: z.ZodOptional<z.ZodObject<{
3568
+ about: z.ZodOptional<z.ZodString>;
3569
+ }, "strip", z.ZodTypeAny, {
3570
+ about?: string | undefined;
3571
+ }, {
3572
+ about?: string | undefined;
3573
+ }>>;
3574
+ status: z.ZodOptional<z.ZodString>;
3575
+ code: z.ZodOptional<z.ZodString>;
3576
+ title: z.ZodOptional<z.ZodString>;
3577
+ detail: z.ZodOptional<z.ZodString>;
3578
+ source: z.ZodOptional<z.ZodObject<{
3579
+ pointer: z.ZodOptional<z.ZodString>;
3580
+ parameter: z.ZodOptional<z.ZodString>;
3581
+ }, "strip", z.ZodTypeAny, {
3582
+ pointer?: string | undefined;
3583
+ parameter?: string | undefined;
3584
+ }, {
3585
+ pointer?: string | undefined;
3586
+ parameter?: string | undefined;
3587
+ }>>;
3588
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3589
+ }, "strip", z.ZodTypeAny, {
3590
+ status?: string | undefined;
3591
+ code?: string | undefined;
3592
+ id?: string | undefined;
3593
+ links?: {
3594
+ about?: string | undefined;
3595
+ } | undefined;
3596
+ meta?: Record<string, unknown> | undefined;
3597
+ title?: string | undefined;
3598
+ detail?: string | undefined;
3599
+ source?: {
3600
+ pointer?: string | undefined;
3601
+ parameter?: string | undefined;
3602
+ } | undefined;
3603
+ }, {
3604
+ status?: string | undefined;
3605
+ code?: string | undefined;
3606
+ id?: string | undefined;
3607
+ links?: {
3608
+ about?: string | undefined;
3609
+ } | undefined;
3610
+ meta?: Record<string, unknown> | undefined;
3611
+ title?: string | undefined;
3612
+ detail?: string | undefined;
3613
+ source?: {
3614
+ pointer?: string | undefined;
3615
+ parameter?: string | undefined;
3616
+ } | undefined;
3617
+ }>, "many">;
3618
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3619
+ }, "strip", z.ZodTypeAny, {
3620
+ errors: {
3621
+ status?: string | undefined;
3622
+ code?: string | undefined;
3623
+ id?: string | undefined;
3624
+ links?: {
3625
+ about?: string | undefined;
3626
+ } | undefined;
3627
+ meta?: Record<string, unknown> | undefined;
3628
+ title?: string | undefined;
3629
+ detail?: string | undefined;
3630
+ source?: {
3631
+ pointer?: string | undefined;
3632
+ parameter?: string | undefined;
3633
+ } | undefined;
3634
+ }[];
3635
+ meta?: Record<string, unknown> | undefined;
3636
+ }, {
3637
+ errors: {
3638
+ status?: string | undefined;
3639
+ code?: string | undefined;
3640
+ id?: string | undefined;
3641
+ links?: {
3642
+ about?: string | undefined;
3643
+ } | undefined;
3644
+ meta?: Record<string, unknown> | undefined;
3645
+ title?: string | undefined;
3646
+ detail?: string | undefined;
3647
+ source?: {
3648
+ pointer?: string | undefined;
3649
+ parameter?: string | undefined;
3650
+ } | undefined;
3651
+ }[];
3652
+ meta?: Record<string, unknown> | undefined;
3653
+ }>;
3654
+ 403: z.ZodObject<{
3655
+ errors: z.ZodArray<z.ZodObject<{
3656
+ id: z.ZodOptional<z.ZodString>;
3657
+ links: z.ZodOptional<z.ZodObject<{
3658
+ about: z.ZodOptional<z.ZodString>;
3659
+ }, "strip", z.ZodTypeAny, {
3660
+ about?: string | undefined;
3661
+ }, {
3662
+ about?: string | undefined;
3663
+ }>>;
3664
+ status: z.ZodOptional<z.ZodString>;
3665
+ code: z.ZodOptional<z.ZodString>;
3666
+ title: z.ZodOptional<z.ZodString>;
3667
+ detail: z.ZodOptional<z.ZodString>;
3668
+ source: z.ZodOptional<z.ZodObject<{
3669
+ pointer: z.ZodOptional<z.ZodString>;
3670
+ parameter: z.ZodOptional<z.ZodString>;
3671
+ }, "strip", z.ZodTypeAny, {
3672
+ pointer?: string | undefined;
3673
+ parameter?: string | undefined;
3674
+ }, {
3675
+ pointer?: string | undefined;
3676
+ parameter?: string | undefined;
3677
+ }>>;
3678
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3679
+ }, "strip", z.ZodTypeAny, {
3680
+ status?: string | undefined;
3681
+ code?: string | undefined;
3682
+ id?: string | undefined;
3683
+ links?: {
3684
+ about?: string | undefined;
3685
+ } | undefined;
3686
+ meta?: Record<string, unknown> | undefined;
3687
+ title?: string | undefined;
3688
+ detail?: string | undefined;
3689
+ source?: {
3690
+ pointer?: string | undefined;
3691
+ parameter?: string | undefined;
3692
+ } | undefined;
3693
+ }, {
3694
+ status?: string | undefined;
3695
+ code?: string | undefined;
3696
+ id?: string | undefined;
3697
+ links?: {
3698
+ about?: string | undefined;
3699
+ } | undefined;
3700
+ meta?: Record<string, unknown> | undefined;
3701
+ title?: string | undefined;
3702
+ detail?: string | undefined;
3703
+ source?: {
3704
+ pointer?: string | undefined;
3705
+ parameter?: string | undefined;
3706
+ } | undefined;
3707
+ }>, "many">;
3708
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3709
+ }, "strip", z.ZodTypeAny, {
3710
+ errors: {
3711
+ status?: string | undefined;
3712
+ code?: string | undefined;
3713
+ id?: string | undefined;
3714
+ links?: {
3715
+ about?: string | undefined;
3716
+ } | undefined;
3717
+ meta?: Record<string, unknown> | undefined;
3718
+ title?: string | undefined;
3719
+ detail?: string | undefined;
3720
+ source?: {
3721
+ pointer?: string | undefined;
3722
+ parameter?: string | undefined;
3723
+ } | undefined;
3724
+ }[];
3725
+ meta?: Record<string, unknown> | undefined;
3726
+ }, {
3727
+ errors: {
3728
+ status?: string | undefined;
3729
+ code?: string | undefined;
3730
+ id?: string | undefined;
3731
+ links?: {
3732
+ about?: string | undefined;
3733
+ } | undefined;
3734
+ meta?: Record<string, unknown> | undefined;
3735
+ title?: string | undefined;
3736
+ detail?: string | undefined;
3737
+ source?: {
3738
+ pointer?: string | undefined;
3739
+ parameter?: string | undefined;
3740
+ } | undefined;
3741
+ }[];
3742
+ meta?: Record<string, unknown> | undefined;
3743
+ }>;
3744
+ 404: z.ZodObject<{
3745
+ errors: z.ZodArray<z.ZodObject<{
3746
+ id: z.ZodOptional<z.ZodString>;
3747
+ links: z.ZodOptional<z.ZodObject<{
3748
+ about: z.ZodOptional<z.ZodString>;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ about?: string | undefined;
3751
+ }, {
3752
+ about?: string | undefined;
3753
+ }>>;
3754
+ status: z.ZodOptional<z.ZodString>;
3755
+ code: z.ZodOptional<z.ZodString>;
3756
+ title: z.ZodOptional<z.ZodString>;
3757
+ detail: z.ZodOptional<z.ZodString>;
3758
+ source: z.ZodOptional<z.ZodObject<{
3759
+ pointer: z.ZodOptional<z.ZodString>;
3760
+ parameter: z.ZodOptional<z.ZodString>;
3761
+ }, "strip", z.ZodTypeAny, {
3762
+ pointer?: string | undefined;
3763
+ parameter?: string | undefined;
3764
+ }, {
3765
+ pointer?: string | undefined;
3766
+ parameter?: string | undefined;
3767
+ }>>;
3768
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3769
+ }, "strip", z.ZodTypeAny, {
3770
+ status?: string | undefined;
3771
+ code?: string | undefined;
3772
+ id?: string | undefined;
3773
+ links?: {
3774
+ about?: string | undefined;
3775
+ } | undefined;
3776
+ meta?: Record<string, unknown> | undefined;
3777
+ title?: string | undefined;
3778
+ detail?: string | undefined;
3779
+ source?: {
3780
+ pointer?: string | undefined;
3781
+ parameter?: string | undefined;
3782
+ } | undefined;
3783
+ }, {
3784
+ status?: string | undefined;
3785
+ code?: string | undefined;
3786
+ id?: string | undefined;
3787
+ links?: {
3788
+ about?: string | undefined;
3789
+ } | undefined;
3790
+ meta?: Record<string, unknown> | undefined;
3791
+ title?: string | undefined;
3792
+ detail?: string | undefined;
3793
+ source?: {
3794
+ pointer?: string | undefined;
3795
+ parameter?: string | undefined;
3796
+ } | undefined;
3797
+ }>, "many">;
3798
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3799
+ }, "strip", z.ZodTypeAny, {
3800
+ errors: {
3801
+ status?: string | undefined;
3802
+ code?: string | undefined;
3803
+ id?: string | undefined;
3804
+ links?: {
3805
+ about?: string | undefined;
3806
+ } | undefined;
3807
+ meta?: Record<string, unknown> | undefined;
3808
+ title?: string | undefined;
3809
+ detail?: string | undefined;
3810
+ source?: {
3811
+ pointer?: string | undefined;
3812
+ parameter?: string | undefined;
3813
+ } | undefined;
3814
+ }[];
3815
+ meta?: Record<string, unknown> | undefined;
3816
+ }, {
3817
+ errors: {
3818
+ status?: string | undefined;
3819
+ code?: string | undefined;
3820
+ id?: string | undefined;
3821
+ links?: {
3822
+ about?: string | undefined;
3823
+ } | undefined;
3824
+ meta?: Record<string, unknown> | undefined;
3825
+ title?: string | undefined;
3826
+ detail?: string | undefined;
3827
+ source?: {
3828
+ pointer?: string | undefined;
3829
+ parameter?: string | undefined;
3830
+ } | undefined;
3831
+ }[];
3832
+ meta?: Record<string, unknown> | undefined;
3833
+ }>;
3834
+ };
3835
+ };
3836
+ };
3837
+ //# sourceMappingURL=trade-cash-events.routes.d.ts.map