@erxes/core-contract 0.1.0-v2.1 → 0.1.0-v2.3

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 (77) hide show
  1. package/dist/activities.d.ts +1387 -139
  2. package/dist/activities.js +90 -30
  3. package/dist/audit.d.ts +1081 -33
  4. package/dist/audit.js +28 -14
  5. package/dist/auth.d.ts +2834 -26
  6. package/dist/auth.js +47 -18
  7. package/dist/automationRuns.d.ts +7 -9
  8. package/dist/automationRuns.js +12 -13
  9. package/dist/automations.d.ts +2443 -61
  10. package/dist/automations.js +41 -21
  11. package/dist/client.d.ts +30704 -0
  12. package/dist/client.js +62 -0
  13. package/dist/common.d.ts +0 -13
  14. package/dist/common.js +1 -13
  15. package/dist/companies.d.ts +1120 -10
  16. package/dist/companies.js +27 -12
  17. package/dist/contract/routes.json.js +17 -1
  18. package/dist/customerAuth.d.ts +1456 -17
  19. package/dist/customerAuth.js +33 -16
  20. package/dist/customers.d.ts +1232 -11
  21. package/dist/customers.js +28 -13
  22. package/dist/{automationDefinition.d.ts → db/src/automationDefinition.d.ts} +2 -2
  23. package/dist/{automationDefinition.js → db/src/automationDefinition.js} +2 -2
  24. package/dist/db/src/enums.js +1 -3
  25. package/dist/db/src/schema/automations.d.ts +1 -0
  26. package/dist/db/src/schema/automations.js +3 -3
  27. package/dist/db/src/schema/index.d.ts +3 -0
  28. package/dist/db/src/schema/index.js +3 -2
  29. package/dist/db/src/schema/leads.js +2 -2
  30. package/dist/db/src/schema/notes.js +92 -0
  31. package/dist/db/src/schema/payments.js +2 -2
  32. package/dist/db/src/schema/platform.js +0 -5
  33. package/dist/db/src/schema/plugins.js +7 -2
  34. package/dist/db/src/schema/transfer.js +2 -2
  35. package/dist/errors.d.ts +516 -0
  36. package/dist/errors.js +218 -0
  37. package/dist/events.d.ts +570 -121
  38. package/dist/events.js +41 -24
  39. package/dist/fields.d.ts +1456 -16
  40. package/dist/fields.js +27 -19
  41. package/dist/files.d.ts +761 -62
  42. package/dist/files.js +32 -21
  43. package/dist/index.d.ts +25187 -618
  44. package/dist/index.js +8 -7
  45. package/dist/leads.d.ts +1105 -21
  46. package/dist/leads.js +31 -13
  47. package/dist/notifications.d.ts +689 -48
  48. package/dist/notifications.js +38 -18
  49. package/dist/organizations.d.ts +260 -2
  50. package/dist/organizations.js +21 -2
  51. package/dist/payments.d.ts +1766 -62
  52. package/dist/payments.js +48 -26
  53. package/dist/platform.d.ts +12 -21
  54. package/dist/platform.js +7 -17
  55. package/dist/plugins.d.ts +802 -71
  56. package/dist/plugins.js +48 -27
  57. package/dist/products.d.ts +1380 -17
  58. package/dist/products.js +32 -16
  59. package/dist/roles.d.ts +560 -5
  60. package/dist/roles.js +20 -6
  61. package/dist/saas.d.ts +164 -2
  62. package/dist/saas.js +9 -2
  63. package/dist/tags.d.ts +340 -4
  64. package/dist/tags.js +14 -6
  65. package/dist/transfer.d.ts +1299 -12
  66. package/dist/transfer.js +32 -13
  67. package/dist/trash.d.ts +278 -21
  68. package/dist/trash.js +23 -16
  69. package/dist/users.d.ts +1206 -18
  70. package/dist/users.js +35 -13
  71. package/dist/values.d.ts +0 -9
  72. package/dist/values.js +2 -7
  73. package/dist/views.d.ts +396 -5
  74. package/dist/views.js +10 -7
  75. package/dist/webhooks.d.ts +765 -9
  76. package/dist/webhooks.js +18 -10
  77. package/package.json +6 -2
@@ -47,11 +47,6 @@ export declare const ProductCategory: z.ZodObject<{
47
47
  in: {};
48
48
  }>;
49
49
  export type ProductCategory = z.infer<typeof ProductCategory>;
50
- /**
51
- * The organisation's catalog of goods and services, shared by every plugin.
52
- * Products are archived, never deleted: orders and invoices keep pointing at
53
- * them. Plugins read with `products:read` and write with `products:write`.
54
- */
55
50
  export declare const productsContract: {
56
51
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
57
52
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -121,7 +116,121 @@ export declare const productsContract: {
121
116
  }, z.core.$strip>;
122
117
  totalCount: z.ZodInt;
123
118
  totalCapped: z.ZodOptional<z.ZodBoolean>;
124
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
119
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
120
+ UNAUTHORIZED: {
121
+ status: number;
122
+ };
123
+ NOT_ALLOWED: {
124
+ status: number;
125
+ data: z.ZodOptional<z.ZodObject<{
126
+ permission: z.ZodString;
127
+ }, z.core.$strip>>;
128
+ };
129
+ PLUGIN_ONLY: {
130
+ status: number;
131
+ };
132
+ MEMBERS_ONLY: {
133
+ status: number;
134
+ };
135
+ ORG_REQUIRED: {
136
+ status: number;
137
+ };
138
+ SCOPE_REQUIRED: {
139
+ status: number;
140
+ };
141
+ SERVICE_TOKEN_REQUIRED: {
142
+ status: number;
143
+ };
144
+ ORGANIZATION_DISABLED: {
145
+ status: number;
146
+ data: z.ZodObject<{
147
+ manageUrl: z.ZodNullable<z.ZodString>;
148
+ }, z.core.$strip>;
149
+ };
150
+ NOT_IN_PLAN: {
151
+ status: number;
152
+ data: z.ZodOptional<z.ZodObject<{
153
+ manageUrl: z.ZodNullable<z.ZodString>;
154
+ }, z.core.$strip>>;
155
+ };
156
+ READ_ONLY: {
157
+ status: number;
158
+ };
159
+ TOO_MANY_REQUESTS: {
160
+ status: number;
161
+ };
162
+ INVALID_INPUT: {
163
+ status: number;
164
+ data: z.ZodObject<{
165
+ issues: z.ZodArray<z.ZodObject<{
166
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
167
+ message: z.ZodString;
168
+ }, z.core.$strip>>;
169
+ }, z.core.$strip>;
170
+ };
171
+ NOT_FOUND: {
172
+ status: number;
173
+ };
174
+ TAKEN: {
175
+ status: number;
176
+ data: z.ZodObject<{
177
+ field: z.ZodString;
178
+ id: z.ZodOptional<z.ZodString>;
179
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
180
+ }, z.core.$strip>;
181
+ };
182
+ INVALID_CURSOR: {
183
+ status: number;
184
+ };
185
+ INVALID_REFERENCE: {
186
+ status: number;
187
+ data: z.ZodObject<{
188
+ field: z.ZodString;
189
+ }, z.core.$strip>;
190
+ };
191
+ INVALID_FILTER: {
192
+ status: number;
193
+ };
194
+ FILTER_TOO_SLOW: {
195
+ status: number;
196
+ };
197
+ CATEGORY_HAS_CHILDREN: {
198
+ status: number;
199
+ };
200
+ INVALID_CATEGORY: {
201
+ status: number;
202
+ };
203
+ INVALID_FIELD: {
204
+ status: number;
205
+ data: z.ZodObject<{
206
+ fieldId: z.ZodString;
207
+ }, z.core.$strip>;
208
+ };
209
+ INVALID_FIELD_VALUE: {
210
+ status: number;
211
+ data: z.ZodObject<{
212
+ fieldId: z.ZodString;
213
+ }, z.core.$strip>;
214
+ };
215
+ INVALID_FILE: {
216
+ status: number;
217
+ };
218
+ INVALID_PRODUCT: {
219
+ status: number;
220
+ };
221
+ LIMIT_EXCEEDED: {
222
+ status: number;
223
+ };
224
+ NOTHING_TO_RETRY: {
225
+ status: number;
226
+ };
227
+ PLUGIN_NOT_INSTALLED: {
228
+ status: number;
229
+ };
230
+ SUBJECT_REQUIRED: {
231
+ status: number;
232
+ };
233
+ }>, Record<never, never>>;
125
234
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
126
235
  id: z.ZodString;
127
236
  }, z.core.$strip>, z.ZodObject<{
@@ -155,7 +264,121 @@ export declare const productsContract: {
155
264
  }, {
156
265
  out: {};
157
266
  in: {};
158
- }>, Record<never, never>, Record<never, never>>;
267
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
268
+ UNAUTHORIZED: {
269
+ status: number;
270
+ };
271
+ NOT_ALLOWED: {
272
+ status: number;
273
+ data: z.ZodOptional<z.ZodObject<{
274
+ permission: z.ZodString;
275
+ }, z.core.$strip>>;
276
+ };
277
+ PLUGIN_ONLY: {
278
+ status: number;
279
+ };
280
+ MEMBERS_ONLY: {
281
+ status: number;
282
+ };
283
+ ORG_REQUIRED: {
284
+ status: number;
285
+ };
286
+ SCOPE_REQUIRED: {
287
+ status: number;
288
+ };
289
+ SERVICE_TOKEN_REQUIRED: {
290
+ status: number;
291
+ };
292
+ ORGANIZATION_DISABLED: {
293
+ status: number;
294
+ data: z.ZodObject<{
295
+ manageUrl: z.ZodNullable<z.ZodString>;
296
+ }, z.core.$strip>;
297
+ };
298
+ NOT_IN_PLAN: {
299
+ status: number;
300
+ data: z.ZodOptional<z.ZodObject<{
301
+ manageUrl: z.ZodNullable<z.ZodString>;
302
+ }, z.core.$strip>>;
303
+ };
304
+ READ_ONLY: {
305
+ status: number;
306
+ };
307
+ TOO_MANY_REQUESTS: {
308
+ status: number;
309
+ };
310
+ INVALID_INPUT: {
311
+ status: number;
312
+ data: z.ZodObject<{
313
+ issues: z.ZodArray<z.ZodObject<{
314
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
315
+ message: z.ZodString;
316
+ }, z.core.$strip>>;
317
+ }, z.core.$strip>;
318
+ };
319
+ NOT_FOUND: {
320
+ status: number;
321
+ };
322
+ TAKEN: {
323
+ status: number;
324
+ data: z.ZodObject<{
325
+ field: z.ZodString;
326
+ id: z.ZodOptional<z.ZodString>;
327
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
328
+ }, z.core.$strip>;
329
+ };
330
+ INVALID_CURSOR: {
331
+ status: number;
332
+ };
333
+ INVALID_REFERENCE: {
334
+ status: number;
335
+ data: z.ZodObject<{
336
+ field: z.ZodString;
337
+ }, z.core.$strip>;
338
+ };
339
+ INVALID_FILTER: {
340
+ status: number;
341
+ };
342
+ FILTER_TOO_SLOW: {
343
+ status: number;
344
+ };
345
+ CATEGORY_HAS_CHILDREN: {
346
+ status: number;
347
+ };
348
+ INVALID_CATEGORY: {
349
+ status: number;
350
+ };
351
+ INVALID_FIELD: {
352
+ status: number;
353
+ data: z.ZodObject<{
354
+ fieldId: z.ZodString;
355
+ }, z.core.$strip>;
356
+ };
357
+ INVALID_FIELD_VALUE: {
358
+ status: number;
359
+ data: z.ZodObject<{
360
+ fieldId: z.ZodString;
361
+ }, z.core.$strip>;
362
+ };
363
+ INVALID_FILE: {
364
+ status: number;
365
+ };
366
+ INVALID_PRODUCT: {
367
+ status: number;
368
+ };
369
+ LIMIT_EXCEEDED: {
370
+ status: number;
371
+ };
372
+ NOTHING_TO_RETRY: {
373
+ status: number;
374
+ };
375
+ PLUGIN_NOT_INSTALLED: {
376
+ status: number;
377
+ };
378
+ SUBJECT_REQUIRED: {
379
+ status: number;
380
+ };
381
+ }>, Record<never, never>>;
159
382
  lookup: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
160
383
  ids: z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>;
161
384
  }, z.core.$strip>, z.ZodObject<{
@@ -191,7 +414,121 @@ export declare const productsContract: {
191
414
  out: {};
192
415
  in: {};
193
416
  }>>;
194
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
417
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
418
+ UNAUTHORIZED: {
419
+ status: number;
420
+ };
421
+ NOT_ALLOWED: {
422
+ status: number;
423
+ data: z.ZodOptional<z.ZodObject<{
424
+ permission: z.ZodString;
425
+ }, z.core.$strip>>;
426
+ };
427
+ PLUGIN_ONLY: {
428
+ status: number;
429
+ };
430
+ MEMBERS_ONLY: {
431
+ status: number;
432
+ };
433
+ ORG_REQUIRED: {
434
+ status: number;
435
+ };
436
+ SCOPE_REQUIRED: {
437
+ status: number;
438
+ };
439
+ SERVICE_TOKEN_REQUIRED: {
440
+ status: number;
441
+ };
442
+ ORGANIZATION_DISABLED: {
443
+ status: number;
444
+ data: z.ZodObject<{
445
+ manageUrl: z.ZodNullable<z.ZodString>;
446
+ }, z.core.$strip>;
447
+ };
448
+ NOT_IN_PLAN: {
449
+ status: number;
450
+ data: z.ZodOptional<z.ZodObject<{
451
+ manageUrl: z.ZodNullable<z.ZodString>;
452
+ }, z.core.$strip>>;
453
+ };
454
+ READ_ONLY: {
455
+ status: number;
456
+ };
457
+ TOO_MANY_REQUESTS: {
458
+ status: number;
459
+ };
460
+ INVALID_INPUT: {
461
+ status: number;
462
+ data: z.ZodObject<{
463
+ issues: z.ZodArray<z.ZodObject<{
464
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
465
+ message: z.ZodString;
466
+ }, z.core.$strip>>;
467
+ }, z.core.$strip>;
468
+ };
469
+ NOT_FOUND: {
470
+ status: number;
471
+ };
472
+ TAKEN: {
473
+ status: number;
474
+ data: z.ZodObject<{
475
+ field: z.ZodString;
476
+ id: z.ZodOptional<z.ZodString>;
477
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
478
+ }, z.core.$strip>;
479
+ };
480
+ INVALID_CURSOR: {
481
+ status: number;
482
+ };
483
+ INVALID_REFERENCE: {
484
+ status: number;
485
+ data: z.ZodObject<{
486
+ field: z.ZodString;
487
+ }, z.core.$strip>;
488
+ };
489
+ INVALID_FILTER: {
490
+ status: number;
491
+ };
492
+ FILTER_TOO_SLOW: {
493
+ status: number;
494
+ };
495
+ CATEGORY_HAS_CHILDREN: {
496
+ status: number;
497
+ };
498
+ INVALID_CATEGORY: {
499
+ status: number;
500
+ };
501
+ INVALID_FIELD: {
502
+ status: number;
503
+ data: z.ZodObject<{
504
+ fieldId: z.ZodString;
505
+ }, z.core.$strip>;
506
+ };
507
+ INVALID_FIELD_VALUE: {
508
+ status: number;
509
+ data: z.ZodObject<{
510
+ fieldId: z.ZodString;
511
+ }, z.core.$strip>;
512
+ };
513
+ INVALID_FILE: {
514
+ status: number;
515
+ };
516
+ INVALID_PRODUCT: {
517
+ status: number;
518
+ };
519
+ LIMIT_EXCEEDED: {
520
+ status: number;
521
+ };
522
+ NOTHING_TO_RETRY: {
523
+ status: number;
524
+ };
525
+ PLUGIN_NOT_INSTALLED: {
526
+ status: number;
527
+ };
528
+ SUBJECT_REQUIRED: {
529
+ status: number;
530
+ };
531
+ }>, Record<never, never>>;
195
532
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
196
533
  kind: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
197
534
  goods: "goods";
@@ -246,7 +583,121 @@ export declare const productsContract: {
246
583
  }, {
247
584
  out: {};
248
585
  in: {};
249
- }>, Record<never, never>, Record<never, never>>;
586
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
587
+ UNAUTHORIZED: {
588
+ status: number;
589
+ };
590
+ NOT_ALLOWED: {
591
+ status: number;
592
+ data: z.ZodOptional<z.ZodObject<{
593
+ permission: z.ZodString;
594
+ }, z.core.$strip>>;
595
+ };
596
+ PLUGIN_ONLY: {
597
+ status: number;
598
+ };
599
+ MEMBERS_ONLY: {
600
+ status: number;
601
+ };
602
+ ORG_REQUIRED: {
603
+ status: number;
604
+ };
605
+ SCOPE_REQUIRED: {
606
+ status: number;
607
+ };
608
+ SERVICE_TOKEN_REQUIRED: {
609
+ status: number;
610
+ };
611
+ ORGANIZATION_DISABLED: {
612
+ status: number;
613
+ data: z.ZodObject<{
614
+ manageUrl: z.ZodNullable<z.ZodString>;
615
+ }, z.core.$strip>;
616
+ };
617
+ NOT_IN_PLAN: {
618
+ status: number;
619
+ data: z.ZodOptional<z.ZodObject<{
620
+ manageUrl: z.ZodNullable<z.ZodString>;
621
+ }, z.core.$strip>>;
622
+ };
623
+ READ_ONLY: {
624
+ status: number;
625
+ };
626
+ TOO_MANY_REQUESTS: {
627
+ status: number;
628
+ };
629
+ INVALID_INPUT: {
630
+ status: number;
631
+ data: z.ZodObject<{
632
+ issues: z.ZodArray<z.ZodObject<{
633
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
634
+ message: z.ZodString;
635
+ }, z.core.$strip>>;
636
+ }, z.core.$strip>;
637
+ };
638
+ NOT_FOUND: {
639
+ status: number;
640
+ };
641
+ TAKEN: {
642
+ status: number;
643
+ data: z.ZodObject<{
644
+ field: z.ZodString;
645
+ id: z.ZodOptional<z.ZodString>;
646
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
647
+ }, z.core.$strip>;
648
+ };
649
+ INVALID_CURSOR: {
650
+ status: number;
651
+ };
652
+ INVALID_REFERENCE: {
653
+ status: number;
654
+ data: z.ZodObject<{
655
+ field: z.ZodString;
656
+ }, z.core.$strip>;
657
+ };
658
+ INVALID_FILTER: {
659
+ status: number;
660
+ };
661
+ FILTER_TOO_SLOW: {
662
+ status: number;
663
+ };
664
+ CATEGORY_HAS_CHILDREN: {
665
+ status: number;
666
+ };
667
+ INVALID_CATEGORY: {
668
+ status: number;
669
+ };
670
+ INVALID_FIELD: {
671
+ status: number;
672
+ data: z.ZodObject<{
673
+ fieldId: z.ZodString;
674
+ }, z.core.$strip>;
675
+ };
676
+ INVALID_FIELD_VALUE: {
677
+ status: number;
678
+ data: z.ZodObject<{
679
+ fieldId: z.ZodString;
680
+ }, z.core.$strip>;
681
+ };
682
+ INVALID_FILE: {
683
+ status: number;
684
+ };
685
+ INVALID_PRODUCT: {
686
+ status: number;
687
+ };
688
+ LIMIT_EXCEEDED: {
689
+ status: number;
690
+ };
691
+ NOTHING_TO_RETRY: {
692
+ status: number;
693
+ };
694
+ PLUGIN_NOT_INSTALLED: {
695
+ status: number;
696
+ };
697
+ SUBJECT_REQUIRED: {
698
+ status: number;
699
+ };
700
+ }>, Record<never, never>>;
250
701
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
251
702
  kind: z.ZodOptional<z.ZodEnum<{
252
703
  goods: "goods";
@@ -302,7 +753,121 @@ export declare const productsContract: {
302
753
  }, {
303
754
  out: {};
304
755
  in: {};
305
- }>, Record<never, never>, Record<never, never>>;
756
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
757
+ UNAUTHORIZED: {
758
+ status: number;
759
+ };
760
+ NOT_ALLOWED: {
761
+ status: number;
762
+ data: z.ZodOptional<z.ZodObject<{
763
+ permission: z.ZodString;
764
+ }, z.core.$strip>>;
765
+ };
766
+ PLUGIN_ONLY: {
767
+ status: number;
768
+ };
769
+ MEMBERS_ONLY: {
770
+ status: number;
771
+ };
772
+ ORG_REQUIRED: {
773
+ status: number;
774
+ };
775
+ SCOPE_REQUIRED: {
776
+ status: number;
777
+ };
778
+ SERVICE_TOKEN_REQUIRED: {
779
+ status: number;
780
+ };
781
+ ORGANIZATION_DISABLED: {
782
+ status: number;
783
+ data: z.ZodObject<{
784
+ manageUrl: z.ZodNullable<z.ZodString>;
785
+ }, z.core.$strip>;
786
+ };
787
+ NOT_IN_PLAN: {
788
+ status: number;
789
+ data: z.ZodOptional<z.ZodObject<{
790
+ manageUrl: z.ZodNullable<z.ZodString>;
791
+ }, z.core.$strip>>;
792
+ };
793
+ READ_ONLY: {
794
+ status: number;
795
+ };
796
+ TOO_MANY_REQUESTS: {
797
+ status: number;
798
+ };
799
+ INVALID_INPUT: {
800
+ status: number;
801
+ data: z.ZodObject<{
802
+ issues: z.ZodArray<z.ZodObject<{
803
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
804
+ message: z.ZodString;
805
+ }, z.core.$strip>>;
806
+ }, z.core.$strip>;
807
+ };
808
+ NOT_FOUND: {
809
+ status: number;
810
+ };
811
+ TAKEN: {
812
+ status: number;
813
+ data: z.ZodObject<{
814
+ field: z.ZodString;
815
+ id: z.ZodOptional<z.ZodString>;
816
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
817
+ }, z.core.$strip>;
818
+ };
819
+ INVALID_CURSOR: {
820
+ status: number;
821
+ };
822
+ INVALID_REFERENCE: {
823
+ status: number;
824
+ data: z.ZodObject<{
825
+ field: z.ZodString;
826
+ }, z.core.$strip>;
827
+ };
828
+ INVALID_FILTER: {
829
+ status: number;
830
+ };
831
+ FILTER_TOO_SLOW: {
832
+ status: number;
833
+ };
834
+ CATEGORY_HAS_CHILDREN: {
835
+ status: number;
836
+ };
837
+ INVALID_CATEGORY: {
838
+ status: number;
839
+ };
840
+ INVALID_FIELD: {
841
+ status: number;
842
+ data: z.ZodObject<{
843
+ fieldId: z.ZodString;
844
+ }, z.core.$strip>;
845
+ };
846
+ INVALID_FIELD_VALUE: {
847
+ status: number;
848
+ data: z.ZodObject<{
849
+ fieldId: z.ZodString;
850
+ }, z.core.$strip>;
851
+ };
852
+ INVALID_FILE: {
853
+ status: number;
854
+ };
855
+ INVALID_PRODUCT: {
856
+ status: number;
857
+ };
858
+ LIMIT_EXCEEDED: {
859
+ status: number;
860
+ };
861
+ NOTHING_TO_RETRY: {
862
+ status: number;
863
+ };
864
+ PLUGIN_NOT_INSTALLED: {
865
+ status: number;
866
+ };
867
+ SUBJECT_REQUIRED: {
868
+ status: number;
869
+ };
870
+ }>, Record<never, never>>;
306
871
  use: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
307
872
  ids: z.ZodArray<z.ZodString>;
308
873
  used: z.ZodBoolean;
@@ -339,7 +904,121 @@ export declare const productsContract: {
339
904
  out: {};
340
905
  in: {};
341
906
  }>>;
342
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
907
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
908
+ UNAUTHORIZED: {
909
+ status: number;
910
+ };
911
+ NOT_ALLOWED: {
912
+ status: number;
913
+ data: z.ZodOptional<z.ZodObject<{
914
+ permission: z.ZodString;
915
+ }, z.core.$strip>>;
916
+ };
917
+ PLUGIN_ONLY: {
918
+ status: number;
919
+ };
920
+ MEMBERS_ONLY: {
921
+ status: number;
922
+ };
923
+ ORG_REQUIRED: {
924
+ status: number;
925
+ };
926
+ SCOPE_REQUIRED: {
927
+ status: number;
928
+ };
929
+ SERVICE_TOKEN_REQUIRED: {
930
+ status: number;
931
+ };
932
+ ORGANIZATION_DISABLED: {
933
+ status: number;
934
+ data: z.ZodObject<{
935
+ manageUrl: z.ZodNullable<z.ZodString>;
936
+ }, z.core.$strip>;
937
+ };
938
+ NOT_IN_PLAN: {
939
+ status: number;
940
+ data: z.ZodOptional<z.ZodObject<{
941
+ manageUrl: z.ZodNullable<z.ZodString>;
942
+ }, z.core.$strip>>;
943
+ };
944
+ READ_ONLY: {
945
+ status: number;
946
+ };
947
+ TOO_MANY_REQUESTS: {
948
+ status: number;
949
+ };
950
+ INVALID_INPUT: {
951
+ status: number;
952
+ data: z.ZodObject<{
953
+ issues: z.ZodArray<z.ZodObject<{
954
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
955
+ message: z.ZodString;
956
+ }, z.core.$strip>>;
957
+ }, z.core.$strip>;
958
+ };
959
+ NOT_FOUND: {
960
+ status: number;
961
+ };
962
+ TAKEN: {
963
+ status: number;
964
+ data: z.ZodObject<{
965
+ field: z.ZodString;
966
+ id: z.ZodOptional<z.ZodString>;
967
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
968
+ }, z.core.$strip>;
969
+ };
970
+ INVALID_CURSOR: {
971
+ status: number;
972
+ };
973
+ INVALID_REFERENCE: {
974
+ status: number;
975
+ data: z.ZodObject<{
976
+ field: z.ZodString;
977
+ }, z.core.$strip>;
978
+ };
979
+ INVALID_FILTER: {
980
+ status: number;
981
+ };
982
+ FILTER_TOO_SLOW: {
983
+ status: number;
984
+ };
985
+ CATEGORY_HAS_CHILDREN: {
986
+ status: number;
987
+ };
988
+ INVALID_CATEGORY: {
989
+ status: number;
990
+ };
991
+ INVALID_FIELD: {
992
+ status: number;
993
+ data: z.ZodObject<{
994
+ fieldId: z.ZodString;
995
+ }, z.core.$strip>;
996
+ };
997
+ INVALID_FIELD_VALUE: {
998
+ status: number;
999
+ data: z.ZodObject<{
1000
+ fieldId: z.ZodString;
1001
+ }, z.core.$strip>;
1002
+ };
1003
+ INVALID_FILE: {
1004
+ status: number;
1005
+ };
1006
+ INVALID_PRODUCT: {
1007
+ status: number;
1008
+ };
1009
+ LIMIT_EXCEEDED: {
1010
+ status: number;
1011
+ };
1012
+ NOTHING_TO_RETRY: {
1013
+ status: number;
1014
+ };
1015
+ PLUGIN_NOT_INSTALLED: {
1016
+ status: number;
1017
+ };
1018
+ SUBJECT_REQUIRED: {
1019
+ status: number;
1020
+ };
1021
+ }>, Record<never, never>>;
343
1022
  archive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
344
1023
  id: z.ZodString;
345
1024
  }, z.core.$strip>, z.ZodObject<{
@@ -373,7 +1052,121 @@ export declare const productsContract: {
373
1052
  }, {
374
1053
  out: {};
375
1054
  in: {};
376
- }>, Record<never, never>, Record<never, never>>;
1055
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1056
+ UNAUTHORIZED: {
1057
+ status: number;
1058
+ };
1059
+ NOT_ALLOWED: {
1060
+ status: number;
1061
+ data: z.ZodOptional<z.ZodObject<{
1062
+ permission: z.ZodString;
1063
+ }, z.core.$strip>>;
1064
+ };
1065
+ PLUGIN_ONLY: {
1066
+ status: number;
1067
+ };
1068
+ MEMBERS_ONLY: {
1069
+ status: number;
1070
+ };
1071
+ ORG_REQUIRED: {
1072
+ status: number;
1073
+ };
1074
+ SCOPE_REQUIRED: {
1075
+ status: number;
1076
+ };
1077
+ SERVICE_TOKEN_REQUIRED: {
1078
+ status: number;
1079
+ };
1080
+ ORGANIZATION_DISABLED: {
1081
+ status: number;
1082
+ data: z.ZodObject<{
1083
+ manageUrl: z.ZodNullable<z.ZodString>;
1084
+ }, z.core.$strip>;
1085
+ };
1086
+ NOT_IN_PLAN: {
1087
+ status: number;
1088
+ data: z.ZodOptional<z.ZodObject<{
1089
+ manageUrl: z.ZodNullable<z.ZodString>;
1090
+ }, z.core.$strip>>;
1091
+ };
1092
+ READ_ONLY: {
1093
+ status: number;
1094
+ };
1095
+ TOO_MANY_REQUESTS: {
1096
+ status: number;
1097
+ };
1098
+ INVALID_INPUT: {
1099
+ status: number;
1100
+ data: z.ZodObject<{
1101
+ issues: z.ZodArray<z.ZodObject<{
1102
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1103
+ message: z.ZodString;
1104
+ }, z.core.$strip>>;
1105
+ }, z.core.$strip>;
1106
+ };
1107
+ NOT_FOUND: {
1108
+ status: number;
1109
+ };
1110
+ TAKEN: {
1111
+ status: number;
1112
+ data: z.ZodObject<{
1113
+ field: z.ZodString;
1114
+ id: z.ZodOptional<z.ZodString>;
1115
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1116
+ }, z.core.$strip>;
1117
+ };
1118
+ INVALID_CURSOR: {
1119
+ status: number;
1120
+ };
1121
+ INVALID_REFERENCE: {
1122
+ status: number;
1123
+ data: z.ZodObject<{
1124
+ field: z.ZodString;
1125
+ }, z.core.$strip>;
1126
+ };
1127
+ INVALID_FILTER: {
1128
+ status: number;
1129
+ };
1130
+ FILTER_TOO_SLOW: {
1131
+ status: number;
1132
+ };
1133
+ CATEGORY_HAS_CHILDREN: {
1134
+ status: number;
1135
+ };
1136
+ INVALID_CATEGORY: {
1137
+ status: number;
1138
+ };
1139
+ INVALID_FIELD: {
1140
+ status: number;
1141
+ data: z.ZodObject<{
1142
+ fieldId: z.ZodString;
1143
+ }, z.core.$strip>;
1144
+ };
1145
+ INVALID_FIELD_VALUE: {
1146
+ status: number;
1147
+ data: z.ZodObject<{
1148
+ fieldId: z.ZodString;
1149
+ }, z.core.$strip>;
1150
+ };
1151
+ INVALID_FILE: {
1152
+ status: number;
1153
+ };
1154
+ INVALID_PRODUCT: {
1155
+ status: number;
1156
+ };
1157
+ LIMIT_EXCEEDED: {
1158
+ status: number;
1159
+ };
1160
+ NOTHING_TO_RETRY: {
1161
+ status: number;
1162
+ };
1163
+ PLUGIN_NOT_INSTALLED: {
1164
+ status: number;
1165
+ };
1166
+ SUBJECT_REQUIRED: {
1167
+ status: number;
1168
+ };
1169
+ }>, Record<never, never>>;
377
1170
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
378
1171
  id: z.ZodString;
379
1172
  }, z.core.$strip>, z.ZodObject<{
@@ -407,7 +1200,121 @@ export declare const productsContract: {
407
1200
  }, {
408
1201
  out: {};
409
1202
  in: {};
410
- }>, Record<never, never>, Record<never, never>>;
1203
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1204
+ UNAUTHORIZED: {
1205
+ status: number;
1206
+ };
1207
+ NOT_ALLOWED: {
1208
+ status: number;
1209
+ data: z.ZodOptional<z.ZodObject<{
1210
+ permission: z.ZodString;
1211
+ }, z.core.$strip>>;
1212
+ };
1213
+ PLUGIN_ONLY: {
1214
+ status: number;
1215
+ };
1216
+ MEMBERS_ONLY: {
1217
+ status: number;
1218
+ };
1219
+ ORG_REQUIRED: {
1220
+ status: number;
1221
+ };
1222
+ SCOPE_REQUIRED: {
1223
+ status: number;
1224
+ };
1225
+ SERVICE_TOKEN_REQUIRED: {
1226
+ status: number;
1227
+ };
1228
+ ORGANIZATION_DISABLED: {
1229
+ status: number;
1230
+ data: z.ZodObject<{
1231
+ manageUrl: z.ZodNullable<z.ZodString>;
1232
+ }, z.core.$strip>;
1233
+ };
1234
+ NOT_IN_PLAN: {
1235
+ status: number;
1236
+ data: z.ZodOptional<z.ZodObject<{
1237
+ manageUrl: z.ZodNullable<z.ZodString>;
1238
+ }, z.core.$strip>>;
1239
+ };
1240
+ READ_ONLY: {
1241
+ status: number;
1242
+ };
1243
+ TOO_MANY_REQUESTS: {
1244
+ status: number;
1245
+ };
1246
+ INVALID_INPUT: {
1247
+ status: number;
1248
+ data: z.ZodObject<{
1249
+ issues: z.ZodArray<z.ZodObject<{
1250
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1251
+ message: z.ZodString;
1252
+ }, z.core.$strip>>;
1253
+ }, z.core.$strip>;
1254
+ };
1255
+ NOT_FOUND: {
1256
+ status: number;
1257
+ };
1258
+ TAKEN: {
1259
+ status: number;
1260
+ data: z.ZodObject<{
1261
+ field: z.ZodString;
1262
+ id: z.ZodOptional<z.ZodString>;
1263
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1264
+ }, z.core.$strip>;
1265
+ };
1266
+ INVALID_CURSOR: {
1267
+ status: number;
1268
+ };
1269
+ INVALID_REFERENCE: {
1270
+ status: number;
1271
+ data: z.ZodObject<{
1272
+ field: z.ZodString;
1273
+ }, z.core.$strip>;
1274
+ };
1275
+ INVALID_FILTER: {
1276
+ status: number;
1277
+ };
1278
+ FILTER_TOO_SLOW: {
1279
+ status: number;
1280
+ };
1281
+ CATEGORY_HAS_CHILDREN: {
1282
+ status: number;
1283
+ };
1284
+ INVALID_CATEGORY: {
1285
+ status: number;
1286
+ };
1287
+ INVALID_FIELD: {
1288
+ status: number;
1289
+ data: z.ZodObject<{
1290
+ fieldId: z.ZodString;
1291
+ }, z.core.$strip>;
1292
+ };
1293
+ INVALID_FIELD_VALUE: {
1294
+ status: number;
1295
+ data: z.ZodObject<{
1296
+ fieldId: z.ZodString;
1297
+ }, z.core.$strip>;
1298
+ };
1299
+ INVALID_FILE: {
1300
+ status: number;
1301
+ };
1302
+ INVALID_PRODUCT: {
1303
+ status: number;
1304
+ };
1305
+ LIMIT_EXCEEDED: {
1306
+ status: number;
1307
+ };
1308
+ NOTHING_TO_RETRY: {
1309
+ status: number;
1310
+ };
1311
+ PLUGIN_NOT_INSTALLED: {
1312
+ status: number;
1313
+ };
1314
+ SUBJECT_REQUIRED: {
1315
+ status: number;
1316
+ };
1317
+ }>, Record<never, never>>;
411
1318
  };
412
1319
  /** Groups of products, nested by `parentId`. */
413
1320
  export declare const productCategoriesContract: {
@@ -421,7 +1328,121 @@ export declare const productCategoriesContract: {
421
1328
  out: {};
422
1329
  in: {};
423
1330
  }>>;
424
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1331
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1332
+ UNAUTHORIZED: {
1333
+ status: number;
1334
+ };
1335
+ NOT_ALLOWED: {
1336
+ status: number;
1337
+ data: z.ZodOptional<z.ZodObject<{
1338
+ permission: z.ZodString;
1339
+ }, z.core.$strip>>;
1340
+ };
1341
+ PLUGIN_ONLY: {
1342
+ status: number;
1343
+ };
1344
+ MEMBERS_ONLY: {
1345
+ status: number;
1346
+ };
1347
+ ORG_REQUIRED: {
1348
+ status: number;
1349
+ };
1350
+ SCOPE_REQUIRED: {
1351
+ status: number;
1352
+ };
1353
+ SERVICE_TOKEN_REQUIRED: {
1354
+ status: number;
1355
+ };
1356
+ ORGANIZATION_DISABLED: {
1357
+ status: number;
1358
+ data: z.ZodObject<{
1359
+ manageUrl: z.ZodNullable<z.ZodString>;
1360
+ }, z.core.$strip>;
1361
+ };
1362
+ NOT_IN_PLAN: {
1363
+ status: number;
1364
+ data: z.ZodOptional<z.ZodObject<{
1365
+ manageUrl: z.ZodNullable<z.ZodString>;
1366
+ }, z.core.$strip>>;
1367
+ };
1368
+ READ_ONLY: {
1369
+ status: number;
1370
+ };
1371
+ TOO_MANY_REQUESTS: {
1372
+ status: number;
1373
+ };
1374
+ INVALID_INPUT: {
1375
+ status: number;
1376
+ data: z.ZodObject<{
1377
+ issues: z.ZodArray<z.ZodObject<{
1378
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1379
+ message: z.ZodString;
1380
+ }, z.core.$strip>>;
1381
+ }, z.core.$strip>;
1382
+ };
1383
+ NOT_FOUND: {
1384
+ status: number;
1385
+ };
1386
+ TAKEN: {
1387
+ status: number;
1388
+ data: z.ZodObject<{
1389
+ field: z.ZodString;
1390
+ id: z.ZodOptional<z.ZodString>;
1391
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1392
+ }, z.core.$strip>;
1393
+ };
1394
+ INVALID_CURSOR: {
1395
+ status: number;
1396
+ };
1397
+ INVALID_REFERENCE: {
1398
+ status: number;
1399
+ data: z.ZodObject<{
1400
+ field: z.ZodString;
1401
+ }, z.core.$strip>;
1402
+ };
1403
+ INVALID_FILTER: {
1404
+ status: number;
1405
+ };
1406
+ FILTER_TOO_SLOW: {
1407
+ status: number;
1408
+ };
1409
+ CATEGORY_HAS_CHILDREN: {
1410
+ status: number;
1411
+ };
1412
+ INVALID_CATEGORY: {
1413
+ status: number;
1414
+ };
1415
+ INVALID_FIELD: {
1416
+ status: number;
1417
+ data: z.ZodObject<{
1418
+ fieldId: z.ZodString;
1419
+ }, z.core.$strip>;
1420
+ };
1421
+ INVALID_FIELD_VALUE: {
1422
+ status: number;
1423
+ data: z.ZodObject<{
1424
+ fieldId: z.ZodString;
1425
+ }, z.core.$strip>;
1426
+ };
1427
+ INVALID_FILE: {
1428
+ status: number;
1429
+ };
1430
+ INVALID_PRODUCT: {
1431
+ status: number;
1432
+ };
1433
+ LIMIT_EXCEEDED: {
1434
+ status: number;
1435
+ };
1436
+ NOTHING_TO_RETRY: {
1437
+ status: number;
1438
+ };
1439
+ PLUGIN_NOT_INSTALLED: {
1440
+ status: number;
1441
+ };
1442
+ SUBJECT_REQUIRED: {
1443
+ status: number;
1444
+ };
1445
+ }>, Record<never, never>>;
425
1446
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
426
1447
  name: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
427
1448
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -436,7 +1457,121 @@ export declare const productCategoriesContract: {
436
1457
  }, {
437
1458
  out: {};
438
1459
  in: {};
439
- }>, Record<never, never>, Record<never, never>>;
1460
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1461
+ UNAUTHORIZED: {
1462
+ status: number;
1463
+ };
1464
+ NOT_ALLOWED: {
1465
+ status: number;
1466
+ data: z.ZodOptional<z.ZodObject<{
1467
+ permission: z.ZodString;
1468
+ }, z.core.$strip>>;
1469
+ };
1470
+ PLUGIN_ONLY: {
1471
+ status: number;
1472
+ };
1473
+ MEMBERS_ONLY: {
1474
+ status: number;
1475
+ };
1476
+ ORG_REQUIRED: {
1477
+ status: number;
1478
+ };
1479
+ SCOPE_REQUIRED: {
1480
+ status: number;
1481
+ };
1482
+ SERVICE_TOKEN_REQUIRED: {
1483
+ status: number;
1484
+ };
1485
+ ORGANIZATION_DISABLED: {
1486
+ status: number;
1487
+ data: z.ZodObject<{
1488
+ manageUrl: z.ZodNullable<z.ZodString>;
1489
+ }, z.core.$strip>;
1490
+ };
1491
+ NOT_IN_PLAN: {
1492
+ status: number;
1493
+ data: z.ZodOptional<z.ZodObject<{
1494
+ manageUrl: z.ZodNullable<z.ZodString>;
1495
+ }, z.core.$strip>>;
1496
+ };
1497
+ READ_ONLY: {
1498
+ status: number;
1499
+ };
1500
+ TOO_MANY_REQUESTS: {
1501
+ status: number;
1502
+ };
1503
+ INVALID_INPUT: {
1504
+ status: number;
1505
+ data: z.ZodObject<{
1506
+ issues: z.ZodArray<z.ZodObject<{
1507
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1508
+ message: z.ZodString;
1509
+ }, z.core.$strip>>;
1510
+ }, z.core.$strip>;
1511
+ };
1512
+ NOT_FOUND: {
1513
+ status: number;
1514
+ };
1515
+ TAKEN: {
1516
+ status: number;
1517
+ data: z.ZodObject<{
1518
+ field: z.ZodString;
1519
+ id: z.ZodOptional<z.ZodString>;
1520
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1521
+ }, z.core.$strip>;
1522
+ };
1523
+ INVALID_CURSOR: {
1524
+ status: number;
1525
+ };
1526
+ INVALID_REFERENCE: {
1527
+ status: number;
1528
+ data: z.ZodObject<{
1529
+ field: z.ZodString;
1530
+ }, z.core.$strip>;
1531
+ };
1532
+ INVALID_FILTER: {
1533
+ status: number;
1534
+ };
1535
+ FILTER_TOO_SLOW: {
1536
+ status: number;
1537
+ };
1538
+ CATEGORY_HAS_CHILDREN: {
1539
+ status: number;
1540
+ };
1541
+ INVALID_CATEGORY: {
1542
+ status: number;
1543
+ };
1544
+ INVALID_FIELD: {
1545
+ status: number;
1546
+ data: z.ZodObject<{
1547
+ fieldId: z.ZodString;
1548
+ }, z.core.$strip>;
1549
+ };
1550
+ INVALID_FIELD_VALUE: {
1551
+ status: number;
1552
+ data: z.ZodObject<{
1553
+ fieldId: z.ZodString;
1554
+ }, z.core.$strip>;
1555
+ };
1556
+ INVALID_FILE: {
1557
+ status: number;
1558
+ };
1559
+ INVALID_PRODUCT: {
1560
+ status: number;
1561
+ };
1562
+ LIMIT_EXCEEDED: {
1563
+ status: number;
1564
+ };
1565
+ NOTHING_TO_RETRY: {
1566
+ status: number;
1567
+ };
1568
+ PLUGIN_NOT_INSTALLED: {
1569
+ status: number;
1570
+ };
1571
+ SUBJECT_REQUIRED: {
1572
+ status: number;
1573
+ };
1574
+ }>, Record<never, never>>;
440
1575
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
441
1576
  name: z.ZodOptional<z.ZodString>;
442
1577
  parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -452,10 +1587,238 @@ export declare const productCategoriesContract: {
452
1587
  }, {
453
1588
  out: {};
454
1589
  in: {};
455
- }>, Record<never, never>, Record<never, never>>;
1590
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1591
+ UNAUTHORIZED: {
1592
+ status: number;
1593
+ };
1594
+ NOT_ALLOWED: {
1595
+ status: number;
1596
+ data: z.ZodOptional<z.ZodObject<{
1597
+ permission: z.ZodString;
1598
+ }, z.core.$strip>>;
1599
+ };
1600
+ PLUGIN_ONLY: {
1601
+ status: number;
1602
+ };
1603
+ MEMBERS_ONLY: {
1604
+ status: number;
1605
+ };
1606
+ ORG_REQUIRED: {
1607
+ status: number;
1608
+ };
1609
+ SCOPE_REQUIRED: {
1610
+ status: number;
1611
+ };
1612
+ SERVICE_TOKEN_REQUIRED: {
1613
+ status: number;
1614
+ };
1615
+ ORGANIZATION_DISABLED: {
1616
+ status: number;
1617
+ data: z.ZodObject<{
1618
+ manageUrl: z.ZodNullable<z.ZodString>;
1619
+ }, z.core.$strip>;
1620
+ };
1621
+ NOT_IN_PLAN: {
1622
+ status: number;
1623
+ data: z.ZodOptional<z.ZodObject<{
1624
+ manageUrl: z.ZodNullable<z.ZodString>;
1625
+ }, z.core.$strip>>;
1626
+ };
1627
+ READ_ONLY: {
1628
+ status: number;
1629
+ };
1630
+ TOO_MANY_REQUESTS: {
1631
+ status: number;
1632
+ };
1633
+ INVALID_INPUT: {
1634
+ status: number;
1635
+ data: z.ZodObject<{
1636
+ issues: z.ZodArray<z.ZodObject<{
1637
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1638
+ message: z.ZodString;
1639
+ }, z.core.$strip>>;
1640
+ }, z.core.$strip>;
1641
+ };
1642
+ NOT_FOUND: {
1643
+ status: number;
1644
+ };
1645
+ TAKEN: {
1646
+ status: number;
1647
+ data: z.ZodObject<{
1648
+ field: z.ZodString;
1649
+ id: z.ZodOptional<z.ZodString>;
1650
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1651
+ }, z.core.$strip>;
1652
+ };
1653
+ INVALID_CURSOR: {
1654
+ status: number;
1655
+ };
1656
+ INVALID_REFERENCE: {
1657
+ status: number;
1658
+ data: z.ZodObject<{
1659
+ field: z.ZodString;
1660
+ }, z.core.$strip>;
1661
+ };
1662
+ INVALID_FILTER: {
1663
+ status: number;
1664
+ };
1665
+ FILTER_TOO_SLOW: {
1666
+ status: number;
1667
+ };
1668
+ CATEGORY_HAS_CHILDREN: {
1669
+ status: number;
1670
+ };
1671
+ INVALID_CATEGORY: {
1672
+ status: number;
1673
+ };
1674
+ INVALID_FIELD: {
1675
+ status: number;
1676
+ data: z.ZodObject<{
1677
+ fieldId: z.ZodString;
1678
+ }, z.core.$strip>;
1679
+ };
1680
+ INVALID_FIELD_VALUE: {
1681
+ status: number;
1682
+ data: z.ZodObject<{
1683
+ fieldId: z.ZodString;
1684
+ }, z.core.$strip>;
1685
+ };
1686
+ INVALID_FILE: {
1687
+ status: number;
1688
+ };
1689
+ INVALID_PRODUCT: {
1690
+ status: number;
1691
+ };
1692
+ LIMIT_EXCEEDED: {
1693
+ status: number;
1694
+ };
1695
+ NOTHING_TO_RETRY: {
1696
+ status: number;
1697
+ };
1698
+ PLUGIN_NOT_INSTALLED: {
1699
+ status: number;
1700
+ };
1701
+ SUBJECT_REQUIRED: {
1702
+ status: number;
1703
+ };
1704
+ }>, Record<never, never>>;
456
1705
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
457
1706
  id: z.ZodString;
458
1707
  }, z.core.$strip>, z.ZodObject<{
459
1708
  ok: z.ZodLiteral<true>;
460
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1709
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1710
+ UNAUTHORIZED: {
1711
+ status: number;
1712
+ };
1713
+ NOT_ALLOWED: {
1714
+ status: number;
1715
+ data: z.ZodOptional<z.ZodObject<{
1716
+ permission: z.ZodString;
1717
+ }, z.core.$strip>>;
1718
+ };
1719
+ PLUGIN_ONLY: {
1720
+ status: number;
1721
+ };
1722
+ MEMBERS_ONLY: {
1723
+ status: number;
1724
+ };
1725
+ ORG_REQUIRED: {
1726
+ status: number;
1727
+ };
1728
+ SCOPE_REQUIRED: {
1729
+ status: number;
1730
+ };
1731
+ SERVICE_TOKEN_REQUIRED: {
1732
+ status: number;
1733
+ };
1734
+ ORGANIZATION_DISABLED: {
1735
+ status: number;
1736
+ data: z.ZodObject<{
1737
+ manageUrl: z.ZodNullable<z.ZodString>;
1738
+ }, z.core.$strip>;
1739
+ };
1740
+ NOT_IN_PLAN: {
1741
+ status: number;
1742
+ data: z.ZodOptional<z.ZodObject<{
1743
+ manageUrl: z.ZodNullable<z.ZodString>;
1744
+ }, z.core.$strip>>;
1745
+ };
1746
+ READ_ONLY: {
1747
+ status: number;
1748
+ };
1749
+ TOO_MANY_REQUESTS: {
1750
+ status: number;
1751
+ };
1752
+ INVALID_INPUT: {
1753
+ status: number;
1754
+ data: z.ZodObject<{
1755
+ issues: z.ZodArray<z.ZodObject<{
1756
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1757
+ message: z.ZodString;
1758
+ }, z.core.$strip>>;
1759
+ }, z.core.$strip>;
1760
+ };
1761
+ NOT_FOUND: {
1762
+ status: number;
1763
+ };
1764
+ TAKEN: {
1765
+ status: number;
1766
+ data: z.ZodObject<{
1767
+ field: z.ZodString;
1768
+ id: z.ZodOptional<z.ZodString>;
1769
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1770
+ }, z.core.$strip>;
1771
+ };
1772
+ INVALID_CURSOR: {
1773
+ status: number;
1774
+ };
1775
+ INVALID_REFERENCE: {
1776
+ status: number;
1777
+ data: z.ZodObject<{
1778
+ field: z.ZodString;
1779
+ }, z.core.$strip>;
1780
+ };
1781
+ INVALID_FILTER: {
1782
+ status: number;
1783
+ };
1784
+ FILTER_TOO_SLOW: {
1785
+ status: number;
1786
+ };
1787
+ CATEGORY_HAS_CHILDREN: {
1788
+ status: number;
1789
+ };
1790
+ INVALID_CATEGORY: {
1791
+ status: number;
1792
+ };
1793
+ INVALID_FIELD: {
1794
+ status: number;
1795
+ data: z.ZodObject<{
1796
+ fieldId: z.ZodString;
1797
+ }, z.core.$strip>;
1798
+ };
1799
+ INVALID_FIELD_VALUE: {
1800
+ status: number;
1801
+ data: z.ZodObject<{
1802
+ fieldId: z.ZodString;
1803
+ }, z.core.$strip>;
1804
+ };
1805
+ INVALID_FILE: {
1806
+ status: number;
1807
+ };
1808
+ INVALID_PRODUCT: {
1809
+ status: number;
1810
+ };
1811
+ LIMIT_EXCEEDED: {
1812
+ status: number;
1813
+ };
1814
+ NOTHING_TO_RETRY: {
1815
+ status: number;
1816
+ };
1817
+ PLUGIN_NOT_INSTALLED: {
1818
+ status: number;
1819
+ };
1820
+ SUBJECT_REQUIRED: {
1821
+ status: number;
1822
+ };
1823
+ }>, Record<never, never>>;
461
1824
  };