@deepintel-ltd/farmpro-contracts 1.5.19 → 1.5.21

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