@deepintel-ltd/farmpro-contracts 1.5.18 → 1.5.20

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