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

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
package/dist/fields.d.ts CHANGED
@@ -117,7 +117,97 @@ export declare const fieldsContract: {
117
117
  out: {};
118
118
  in: {};
119
119
  }>>;
120
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
120
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
121
+ UNAUTHORIZED: {
122
+ status: number;
123
+ };
124
+ NOT_ALLOWED: {
125
+ status: number;
126
+ data: z.ZodOptional<z.ZodObject<{
127
+ permission: z.ZodString;
128
+ }, z.core.$strip>>;
129
+ };
130
+ PLUGIN_ONLY: {
131
+ status: number;
132
+ };
133
+ MEMBERS_ONLY: {
134
+ status: number;
135
+ };
136
+ ORG_REQUIRED: {
137
+ status: number;
138
+ };
139
+ SCOPE_REQUIRED: {
140
+ status: number;
141
+ };
142
+ SERVICE_TOKEN_REQUIRED: {
143
+ status: number;
144
+ };
145
+ ORGANIZATION_DISABLED: {
146
+ status: number;
147
+ data: z.ZodObject<{
148
+ manageUrl: z.ZodNullable<z.ZodString>;
149
+ }, z.core.$strip>;
150
+ };
151
+ NOT_IN_PLAN: {
152
+ status: number;
153
+ data: z.ZodOptional<z.ZodObject<{
154
+ manageUrl: z.ZodNullable<z.ZodString>;
155
+ }, z.core.$strip>>;
156
+ };
157
+ READ_ONLY: {
158
+ status: number;
159
+ };
160
+ TOO_MANY_REQUESTS: {
161
+ status: number;
162
+ };
163
+ INVALID_INPUT: {
164
+ status: number;
165
+ data: z.ZodObject<{
166
+ issues: z.ZodArray<z.ZodObject<{
167
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
168
+ message: z.ZodString;
169
+ }, z.core.$strip>>;
170
+ }, z.core.$strip>;
171
+ };
172
+ NOT_FOUND: {
173
+ status: number;
174
+ };
175
+ TAKEN: {
176
+ status: number;
177
+ data: z.ZodObject<{
178
+ field: z.ZodString;
179
+ id: z.ZodOptional<z.ZodString>;
180
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
181
+ }, z.core.$strip>;
182
+ };
183
+ INVALID_CURSOR: {
184
+ status: number;
185
+ };
186
+ INVALID_REFERENCE: {
187
+ status: number;
188
+ data: z.ZodObject<{
189
+ field: z.ZodString;
190
+ }, z.core.$strip>;
191
+ };
192
+ INVALID_FILTER: {
193
+ status: number;
194
+ };
195
+ FILTER_TOO_SLOW: {
196
+ status: number;
197
+ };
198
+ FIELD_IN_USE: {
199
+ status: number;
200
+ data: z.ZodOptional<z.ZodObject<{
201
+ fieldId: z.ZodString;
202
+ }, z.core.$strip>>;
203
+ };
204
+ INVALID_FIELD_GROUP: {
205
+ status: number;
206
+ data: z.ZodOptional<z.ZodObject<{
207
+ groupId: z.ZodString;
208
+ }, z.core.$strip>>;
209
+ };
210
+ }>, Record<never, never>>;
121
211
  usage: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
122
212
  ids: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>>;
123
213
  groupId: z.ZodOptional<z.ZodString>;
@@ -125,7 +215,97 @@ export declare const fieldsContract: {
125
215
  records: z.ZodInt;
126
216
  options: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodInt>>;
127
217
  removable: z.ZodBoolean;
128
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
218
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
219
+ UNAUTHORIZED: {
220
+ status: number;
221
+ };
222
+ NOT_ALLOWED: {
223
+ status: number;
224
+ data: z.ZodOptional<z.ZodObject<{
225
+ permission: z.ZodString;
226
+ }, z.core.$strip>>;
227
+ };
228
+ PLUGIN_ONLY: {
229
+ status: number;
230
+ };
231
+ MEMBERS_ONLY: {
232
+ status: number;
233
+ };
234
+ ORG_REQUIRED: {
235
+ status: number;
236
+ };
237
+ SCOPE_REQUIRED: {
238
+ status: number;
239
+ };
240
+ SERVICE_TOKEN_REQUIRED: {
241
+ status: number;
242
+ };
243
+ ORGANIZATION_DISABLED: {
244
+ status: number;
245
+ data: z.ZodObject<{
246
+ manageUrl: z.ZodNullable<z.ZodString>;
247
+ }, z.core.$strip>;
248
+ };
249
+ NOT_IN_PLAN: {
250
+ status: number;
251
+ data: z.ZodOptional<z.ZodObject<{
252
+ manageUrl: z.ZodNullable<z.ZodString>;
253
+ }, z.core.$strip>>;
254
+ };
255
+ READ_ONLY: {
256
+ status: number;
257
+ };
258
+ TOO_MANY_REQUESTS: {
259
+ status: number;
260
+ };
261
+ INVALID_INPUT: {
262
+ status: number;
263
+ data: z.ZodObject<{
264
+ issues: z.ZodArray<z.ZodObject<{
265
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
266
+ message: z.ZodString;
267
+ }, z.core.$strip>>;
268
+ }, z.core.$strip>;
269
+ };
270
+ NOT_FOUND: {
271
+ status: number;
272
+ };
273
+ TAKEN: {
274
+ status: number;
275
+ data: z.ZodObject<{
276
+ field: z.ZodString;
277
+ id: z.ZodOptional<z.ZodString>;
278
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
279
+ }, z.core.$strip>;
280
+ };
281
+ INVALID_CURSOR: {
282
+ status: number;
283
+ };
284
+ INVALID_REFERENCE: {
285
+ status: number;
286
+ data: z.ZodObject<{
287
+ field: z.ZodString;
288
+ }, z.core.$strip>;
289
+ };
290
+ INVALID_FILTER: {
291
+ status: number;
292
+ };
293
+ FILTER_TOO_SLOW: {
294
+ status: number;
295
+ };
296
+ FIELD_IN_USE: {
297
+ status: number;
298
+ data: z.ZodOptional<z.ZodObject<{
299
+ fieldId: z.ZodString;
300
+ }, z.core.$strip>>;
301
+ };
302
+ INVALID_FIELD_GROUP: {
303
+ status: number;
304
+ data: z.ZodOptional<z.ZodObject<{
305
+ groupId: z.ZodString;
306
+ }, z.core.$strip>>;
307
+ };
308
+ }>, Record<never, never>>;
129
309
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
130
310
  contentType: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
131
311
  company: "company";
@@ -198,7 +378,97 @@ export declare const fieldsContract: {
198
378
  }, {
199
379
  out: {};
200
380
  in: {};
201
- }>, Record<never, never>, Record<never, never>>;
381
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
382
+ UNAUTHORIZED: {
383
+ status: number;
384
+ };
385
+ NOT_ALLOWED: {
386
+ status: number;
387
+ data: z.ZodOptional<z.ZodObject<{
388
+ permission: z.ZodString;
389
+ }, z.core.$strip>>;
390
+ };
391
+ PLUGIN_ONLY: {
392
+ status: number;
393
+ };
394
+ MEMBERS_ONLY: {
395
+ status: number;
396
+ };
397
+ ORG_REQUIRED: {
398
+ status: number;
399
+ };
400
+ SCOPE_REQUIRED: {
401
+ status: number;
402
+ };
403
+ SERVICE_TOKEN_REQUIRED: {
404
+ status: number;
405
+ };
406
+ ORGANIZATION_DISABLED: {
407
+ status: number;
408
+ data: z.ZodObject<{
409
+ manageUrl: z.ZodNullable<z.ZodString>;
410
+ }, z.core.$strip>;
411
+ };
412
+ NOT_IN_PLAN: {
413
+ status: number;
414
+ data: z.ZodOptional<z.ZodObject<{
415
+ manageUrl: z.ZodNullable<z.ZodString>;
416
+ }, z.core.$strip>>;
417
+ };
418
+ READ_ONLY: {
419
+ status: number;
420
+ };
421
+ TOO_MANY_REQUESTS: {
422
+ status: number;
423
+ };
424
+ INVALID_INPUT: {
425
+ status: number;
426
+ data: z.ZodObject<{
427
+ issues: z.ZodArray<z.ZodObject<{
428
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
429
+ message: z.ZodString;
430
+ }, z.core.$strip>>;
431
+ }, z.core.$strip>;
432
+ };
433
+ NOT_FOUND: {
434
+ status: number;
435
+ };
436
+ TAKEN: {
437
+ status: number;
438
+ data: z.ZodObject<{
439
+ field: z.ZodString;
440
+ id: z.ZodOptional<z.ZodString>;
441
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
+ }, z.core.$strip>;
443
+ };
444
+ INVALID_CURSOR: {
445
+ status: number;
446
+ };
447
+ INVALID_REFERENCE: {
448
+ status: number;
449
+ data: z.ZodObject<{
450
+ field: z.ZodString;
451
+ }, z.core.$strip>;
452
+ };
453
+ INVALID_FILTER: {
454
+ status: number;
455
+ };
456
+ FILTER_TOO_SLOW: {
457
+ status: number;
458
+ };
459
+ FIELD_IN_USE: {
460
+ status: number;
461
+ data: z.ZodOptional<z.ZodObject<{
462
+ fieldId: z.ZodString;
463
+ }, z.core.$strip>>;
464
+ };
465
+ INVALID_FIELD_GROUP: {
466
+ status: number;
467
+ data: z.ZodOptional<z.ZodObject<{
468
+ groupId: z.ZodString;
469
+ }, z.core.$strip>>;
470
+ };
471
+ }>, Record<never, never>>;
202
472
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
203
473
  groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
474
  label: z.ZodOptional<z.ZodString>;
@@ -268,7 +538,97 @@ export declare const fieldsContract: {
268
538
  }, {
269
539
  out: {};
270
540
  in: {};
271
- }>, Record<never, never>, Record<never, never>>;
541
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
542
+ UNAUTHORIZED: {
543
+ status: number;
544
+ };
545
+ NOT_ALLOWED: {
546
+ status: number;
547
+ data: z.ZodOptional<z.ZodObject<{
548
+ permission: z.ZodString;
549
+ }, z.core.$strip>>;
550
+ };
551
+ PLUGIN_ONLY: {
552
+ status: number;
553
+ };
554
+ MEMBERS_ONLY: {
555
+ status: number;
556
+ };
557
+ ORG_REQUIRED: {
558
+ status: number;
559
+ };
560
+ SCOPE_REQUIRED: {
561
+ status: number;
562
+ };
563
+ SERVICE_TOKEN_REQUIRED: {
564
+ status: number;
565
+ };
566
+ ORGANIZATION_DISABLED: {
567
+ status: number;
568
+ data: z.ZodObject<{
569
+ manageUrl: z.ZodNullable<z.ZodString>;
570
+ }, z.core.$strip>;
571
+ };
572
+ NOT_IN_PLAN: {
573
+ status: number;
574
+ data: z.ZodOptional<z.ZodObject<{
575
+ manageUrl: z.ZodNullable<z.ZodString>;
576
+ }, z.core.$strip>>;
577
+ };
578
+ READ_ONLY: {
579
+ status: number;
580
+ };
581
+ TOO_MANY_REQUESTS: {
582
+ status: number;
583
+ };
584
+ INVALID_INPUT: {
585
+ status: number;
586
+ data: z.ZodObject<{
587
+ issues: z.ZodArray<z.ZodObject<{
588
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
589
+ message: z.ZodString;
590
+ }, z.core.$strip>>;
591
+ }, z.core.$strip>;
592
+ };
593
+ NOT_FOUND: {
594
+ status: number;
595
+ };
596
+ TAKEN: {
597
+ status: number;
598
+ data: z.ZodObject<{
599
+ field: z.ZodString;
600
+ id: z.ZodOptional<z.ZodString>;
601
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
602
+ }, z.core.$strip>;
603
+ };
604
+ INVALID_CURSOR: {
605
+ status: number;
606
+ };
607
+ INVALID_REFERENCE: {
608
+ status: number;
609
+ data: z.ZodObject<{
610
+ field: z.ZodString;
611
+ }, z.core.$strip>;
612
+ };
613
+ INVALID_FILTER: {
614
+ status: number;
615
+ };
616
+ FILTER_TOO_SLOW: {
617
+ status: number;
618
+ };
619
+ FIELD_IN_USE: {
620
+ status: number;
621
+ data: z.ZodOptional<z.ZodObject<{
622
+ fieldId: z.ZodString;
623
+ }, z.core.$strip>>;
624
+ };
625
+ INVALID_FIELD_GROUP: {
626
+ status: number;
627
+ data: z.ZodOptional<z.ZodObject<{
628
+ groupId: z.ZodString;
629
+ }, z.core.$strip>>;
630
+ };
631
+ }>, Record<never, never>>;
272
632
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
273
633
  orders: z.ZodArray<z.ZodObject<{
274
634
  id: z.ZodString;
@@ -276,12 +636,192 @@ export declare const fieldsContract: {
276
636
  }, z.core.$strip>>;
277
637
  }, z.core.$strip>, z.ZodObject<{
278
638
  ok: z.ZodLiteral<true>;
279
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
639
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
640
+ UNAUTHORIZED: {
641
+ status: number;
642
+ };
643
+ NOT_ALLOWED: {
644
+ status: number;
645
+ data: z.ZodOptional<z.ZodObject<{
646
+ permission: z.ZodString;
647
+ }, z.core.$strip>>;
648
+ };
649
+ PLUGIN_ONLY: {
650
+ status: number;
651
+ };
652
+ MEMBERS_ONLY: {
653
+ status: number;
654
+ };
655
+ ORG_REQUIRED: {
656
+ status: number;
657
+ };
658
+ SCOPE_REQUIRED: {
659
+ status: number;
660
+ };
661
+ SERVICE_TOKEN_REQUIRED: {
662
+ status: number;
663
+ };
664
+ ORGANIZATION_DISABLED: {
665
+ status: number;
666
+ data: z.ZodObject<{
667
+ manageUrl: z.ZodNullable<z.ZodString>;
668
+ }, z.core.$strip>;
669
+ };
670
+ NOT_IN_PLAN: {
671
+ status: number;
672
+ data: z.ZodOptional<z.ZodObject<{
673
+ manageUrl: z.ZodNullable<z.ZodString>;
674
+ }, z.core.$strip>>;
675
+ };
676
+ READ_ONLY: {
677
+ status: number;
678
+ };
679
+ TOO_MANY_REQUESTS: {
680
+ status: number;
681
+ };
682
+ INVALID_INPUT: {
683
+ status: number;
684
+ data: z.ZodObject<{
685
+ issues: z.ZodArray<z.ZodObject<{
686
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
687
+ message: z.ZodString;
688
+ }, z.core.$strip>>;
689
+ }, z.core.$strip>;
690
+ };
691
+ NOT_FOUND: {
692
+ status: number;
693
+ };
694
+ TAKEN: {
695
+ status: number;
696
+ data: z.ZodObject<{
697
+ field: z.ZodString;
698
+ id: z.ZodOptional<z.ZodString>;
699
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
700
+ }, z.core.$strip>;
701
+ };
702
+ INVALID_CURSOR: {
703
+ status: number;
704
+ };
705
+ INVALID_REFERENCE: {
706
+ status: number;
707
+ data: z.ZodObject<{
708
+ field: z.ZodString;
709
+ }, z.core.$strip>;
710
+ };
711
+ INVALID_FILTER: {
712
+ status: number;
713
+ };
714
+ FILTER_TOO_SLOW: {
715
+ status: number;
716
+ };
717
+ FIELD_IN_USE: {
718
+ status: number;
719
+ data: z.ZodOptional<z.ZodObject<{
720
+ fieldId: z.ZodString;
721
+ }, z.core.$strip>>;
722
+ };
723
+ INVALID_FIELD_GROUP: {
724
+ status: number;
725
+ data: z.ZodOptional<z.ZodObject<{
726
+ groupId: z.ZodString;
727
+ }, z.core.$strip>>;
728
+ };
729
+ }>, Record<never, never>>;
280
730
  archive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
281
731
  ids: z.ZodArray<z.ZodString>;
282
732
  }, z.core.$strip>, z.ZodObject<{
283
733
  ok: z.ZodLiteral<true>;
284
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
734
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
735
+ UNAUTHORIZED: {
736
+ status: number;
737
+ };
738
+ NOT_ALLOWED: {
739
+ status: number;
740
+ data: z.ZodOptional<z.ZodObject<{
741
+ permission: z.ZodString;
742
+ }, z.core.$strip>>;
743
+ };
744
+ PLUGIN_ONLY: {
745
+ status: number;
746
+ };
747
+ MEMBERS_ONLY: {
748
+ status: number;
749
+ };
750
+ ORG_REQUIRED: {
751
+ status: number;
752
+ };
753
+ SCOPE_REQUIRED: {
754
+ status: number;
755
+ };
756
+ SERVICE_TOKEN_REQUIRED: {
757
+ status: number;
758
+ };
759
+ ORGANIZATION_DISABLED: {
760
+ status: number;
761
+ data: z.ZodObject<{
762
+ manageUrl: z.ZodNullable<z.ZodString>;
763
+ }, z.core.$strip>;
764
+ };
765
+ NOT_IN_PLAN: {
766
+ status: number;
767
+ data: z.ZodOptional<z.ZodObject<{
768
+ manageUrl: z.ZodNullable<z.ZodString>;
769
+ }, z.core.$strip>>;
770
+ };
771
+ READ_ONLY: {
772
+ status: number;
773
+ };
774
+ TOO_MANY_REQUESTS: {
775
+ status: number;
776
+ };
777
+ INVALID_INPUT: {
778
+ status: number;
779
+ data: z.ZodObject<{
780
+ issues: z.ZodArray<z.ZodObject<{
781
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
782
+ message: z.ZodString;
783
+ }, z.core.$strip>>;
784
+ }, z.core.$strip>;
785
+ };
786
+ NOT_FOUND: {
787
+ status: number;
788
+ };
789
+ TAKEN: {
790
+ status: number;
791
+ data: z.ZodObject<{
792
+ field: z.ZodString;
793
+ id: z.ZodOptional<z.ZodString>;
794
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
795
+ }, z.core.$strip>;
796
+ };
797
+ INVALID_CURSOR: {
798
+ status: number;
799
+ };
800
+ INVALID_REFERENCE: {
801
+ status: number;
802
+ data: z.ZodObject<{
803
+ field: z.ZodString;
804
+ }, z.core.$strip>;
805
+ };
806
+ INVALID_FILTER: {
807
+ status: number;
808
+ };
809
+ FILTER_TOO_SLOW: {
810
+ status: number;
811
+ };
812
+ FIELD_IN_USE: {
813
+ status: number;
814
+ data: z.ZodOptional<z.ZodObject<{
815
+ fieldId: z.ZodString;
816
+ }, z.core.$strip>>;
817
+ };
818
+ INVALID_FIELD_GROUP: {
819
+ status: number;
820
+ data: z.ZodOptional<z.ZodObject<{
821
+ groupId: z.ZodString;
822
+ }, z.core.$strip>>;
823
+ };
824
+ }>, Record<never, never>>;
285
825
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
286
826
  id: z.ZodString;
287
827
  }, z.core.$strip>, z.ZodObject<{
@@ -322,17 +862,287 @@ export declare const fieldsContract: {
322
862
  }, {
323
863
  out: {};
324
864
  in: {};
325
- }>, Record<never, never>, Record<never, never>>;
865
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
866
+ UNAUTHORIZED: {
867
+ status: number;
868
+ };
869
+ NOT_ALLOWED: {
870
+ status: number;
871
+ data: z.ZodOptional<z.ZodObject<{
872
+ permission: z.ZodString;
873
+ }, z.core.$strip>>;
874
+ };
875
+ PLUGIN_ONLY: {
876
+ status: number;
877
+ };
878
+ MEMBERS_ONLY: {
879
+ status: number;
880
+ };
881
+ ORG_REQUIRED: {
882
+ status: number;
883
+ };
884
+ SCOPE_REQUIRED: {
885
+ status: number;
886
+ };
887
+ SERVICE_TOKEN_REQUIRED: {
888
+ status: number;
889
+ };
890
+ ORGANIZATION_DISABLED: {
891
+ status: number;
892
+ data: z.ZodObject<{
893
+ manageUrl: z.ZodNullable<z.ZodString>;
894
+ }, z.core.$strip>;
895
+ };
896
+ NOT_IN_PLAN: {
897
+ status: number;
898
+ data: z.ZodOptional<z.ZodObject<{
899
+ manageUrl: z.ZodNullable<z.ZodString>;
900
+ }, z.core.$strip>>;
901
+ };
902
+ READ_ONLY: {
903
+ status: number;
904
+ };
905
+ TOO_MANY_REQUESTS: {
906
+ status: number;
907
+ };
908
+ INVALID_INPUT: {
909
+ status: number;
910
+ data: z.ZodObject<{
911
+ issues: z.ZodArray<z.ZodObject<{
912
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
913
+ message: z.ZodString;
914
+ }, z.core.$strip>>;
915
+ }, z.core.$strip>;
916
+ };
917
+ NOT_FOUND: {
918
+ status: number;
919
+ };
920
+ TAKEN: {
921
+ status: number;
922
+ data: z.ZodObject<{
923
+ field: z.ZodString;
924
+ id: z.ZodOptional<z.ZodString>;
925
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
926
+ }, z.core.$strip>;
927
+ };
928
+ INVALID_CURSOR: {
929
+ status: number;
930
+ };
931
+ INVALID_REFERENCE: {
932
+ status: number;
933
+ data: z.ZodObject<{
934
+ field: z.ZodString;
935
+ }, z.core.$strip>;
936
+ };
937
+ INVALID_FILTER: {
938
+ status: number;
939
+ };
940
+ FILTER_TOO_SLOW: {
941
+ status: number;
942
+ };
943
+ FIELD_IN_USE: {
944
+ status: number;
945
+ data: z.ZodOptional<z.ZodObject<{
946
+ fieldId: z.ZodString;
947
+ }, z.core.$strip>>;
948
+ };
949
+ INVALID_FIELD_GROUP: {
950
+ status: number;
951
+ data: z.ZodOptional<z.ZodObject<{
952
+ groupId: z.ZodString;
953
+ }, z.core.$strip>>;
954
+ };
955
+ }>, Record<never, never>>;
326
956
  removeUnused: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
327
957
  ids: z.ZodArray<z.ZodString>;
328
958
  }, z.core.$strip>, z.ZodObject<{
329
959
  ok: z.ZodLiteral<true>;
330
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
960
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
961
+ UNAUTHORIZED: {
962
+ status: number;
963
+ };
964
+ NOT_ALLOWED: {
965
+ status: number;
966
+ data: z.ZodOptional<z.ZodObject<{
967
+ permission: z.ZodString;
968
+ }, z.core.$strip>>;
969
+ };
970
+ PLUGIN_ONLY: {
971
+ status: number;
972
+ };
973
+ MEMBERS_ONLY: {
974
+ status: number;
975
+ };
976
+ ORG_REQUIRED: {
977
+ status: number;
978
+ };
979
+ SCOPE_REQUIRED: {
980
+ status: number;
981
+ };
982
+ SERVICE_TOKEN_REQUIRED: {
983
+ status: number;
984
+ };
985
+ ORGANIZATION_DISABLED: {
986
+ status: number;
987
+ data: z.ZodObject<{
988
+ manageUrl: z.ZodNullable<z.ZodString>;
989
+ }, z.core.$strip>;
990
+ };
991
+ NOT_IN_PLAN: {
992
+ status: number;
993
+ data: z.ZodOptional<z.ZodObject<{
994
+ manageUrl: z.ZodNullable<z.ZodString>;
995
+ }, z.core.$strip>>;
996
+ };
997
+ READ_ONLY: {
998
+ status: number;
999
+ };
1000
+ TOO_MANY_REQUESTS: {
1001
+ status: number;
1002
+ };
1003
+ INVALID_INPUT: {
1004
+ status: number;
1005
+ data: z.ZodObject<{
1006
+ issues: z.ZodArray<z.ZodObject<{
1007
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1008
+ message: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ }, z.core.$strip>;
1011
+ };
1012
+ NOT_FOUND: {
1013
+ status: number;
1014
+ };
1015
+ TAKEN: {
1016
+ status: number;
1017
+ data: z.ZodObject<{
1018
+ field: z.ZodString;
1019
+ id: z.ZodOptional<z.ZodString>;
1020
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1021
+ }, z.core.$strip>;
1022
+ };
1023
+ INVALID_CURSOR: {
1024
+ status: number;
1025
+ };
1026
+ INVALID_REFERENCE: {
1027
+ status: number;
1028
+ data: z.ZodObject<{
1029
+ field: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ };
1032
+ INVALID_FILTER: {
1033
+ status: number;
1034
+ };
1035
+ FILTER_TOO_SLOW: {
1036
+ status: number;
1037
+ };
1038
+ FIELD_IN_USE: {
1039
+ status: number;
1040
+ data: z.ZodOptional<z.ZodObject<{
1041
+ fieldId: z.ZodString;
1042
+ }, z.core.$strip>>;
1043
+ };
1044
+ INVALID_FIELD_GROUP: {
1045
+ status: number;
1046
+ data: z.ZodOptional<z.ZodObject<{
1047
+ groupId: z.ZodString;
1048
+ }, z.core.$strip>>;
1049
+ };
1050
+ }>, Record<never, never>>;
331
1051
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
332
1052
  id: z.ZodString;
333
1053
  }, z.core.$strip>, z.ZodObject<{
334
1054
  ok: z.ZodLiteral<true>;
335
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1055
+ }, z.core.$strip>, 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
+ FIELD_IN_USE: {
1134
+ status: number;
1135
+ data: z.ZodOptional<z.ZodObject<{
1136
+ fieldId: z.ZodString;
1137
+ }, z.core.$strip>>;
1138
+ };
1139
+ INVALID_FIELD_GROUP: {
1140
+ status: number;
1141
+ data: z.ZodOptional<z.ZodObject<{
1142
+ groupId: z.ZodString;
1143
+ }, z.core.$strip>>;
1144
+ };
1145
+ }>, Record<never, never>>;
336
1146
  };
337
1147
  export declare const fieldGroupsContract: {
338
1148
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -363,7 +1173,97 @@ export declare const fieldGroupsContract: {
363
1173
  out: {};
364
1174
  in: {};
365
1175
  }>>;
366
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1176
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1177
+ UNAUTHORIZED: {
1178
+ status: number;
1179
+ };
1180
+ NOT_ALLOWED: {
1181
+ status: number;
1182
+ data: z.ZodOptional<z.ZodObject<{
1183
+ permission: z.ZodString;
1184
+ }, z.core.$strip>>;
1185
+ };
1186
+ PLUGIN_ONLY: {
1187
+ status: number;
1188
+ };
1189
+ MEMBERS_ONLY: {
1190
+ status: number;
1191
+ };
1192
+ ORG_REQUIRED: {
1193
+ status: number;
1194
+ };
1195
+ SCOPE_REQUIRED: {
1196
+ status: number;
1197
+ };
1198
+ SERVICE_TOKEN_REQUIRED: {
1199
+ status: number;
1200
+ };
1201
+ ORGANIZATION_DISABLED: {
1202
+ status: number;
1203
+ data: z.ZodObject<{
1204
+ manageUrl: z.ZodNullable<z.ZodString>;
1205
+ }, z.core.$strip>;
1206
+ };
1207
+ NOT_IN_PLAN: {
1208
+ status: number;
1209
+ data: z.ZodOptional<z.ZodObject<{
1210
+ manageUrl: z.ZodNullable<z.ZodString>;
1211
+ }, z.core.$strip>>;
1212
+ };
1213
+ READ_ONLY: {
1214
+ status: number;
1215
+ };
1216
+ TOO_MANY_REQUESTS: {
1217
+ status: number;
1218
+ };
1219
+ INVALID_INPUT: {
1220
+ status: number;
1221
+ data: z.ZodObject<{
1222
+ issues: z.ZodArray<z.ZodObject<{
1223
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1224
+ message: z.ZodString;
1225
+ }, z.core.$strip>>;
1226
+ }, z.core.$strip>;
1227
+ };
1228
+ NOT_FOUND: {
1229
+ status: number;
1230
+ };
1231
+ TAKEN: {
1232
+ status: number;
1233
+ data: z.ZodObject<{
1234
+ field: z.ZodString;
1235
+ id: z.ZodOptional<z.ZodString>;
1236
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1237
+ }, z.core.$strip>;
1238
+ };
1239
+ INVALID_CURSOR: {
1240
+ status: number;
1241
+ };
1242
+ INVALID_REFERENCE: {
1243
+ status: number;
1244
+ data: z.ZodObject<{
1245
+ field: z.ZodString;
1246
+ }, z.core.$strip>;
1247
+ };
1248
+ INVALID_FILTER: {
1249
+ status: number;
1250
+ };
1251
+ FILTER_TOO_SLOW: {
1252
+ status: number;
1253
+ };
1254
+ FIELD_IN_USE: {
1255
+ status: number;
1256
+ data: z.ZodOptional<z.ZodObject<{
1257
+ fieldId: z.ZodString;
1258
+ }, z.core.$strip>>;
1259
+ };
1260
+ INVALID_FIELD_GROUP: {
1261
+ status: number;
1262
+ data: z.ZodOptional<z.ZodObject<{
1263
+ groupId: z.ZodString;
1264
+ }, z.core.$strip>>;
1265
+ };
1266
+ }>, Record<never, never>>;
367
1267
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
368
1268
  contentType: z.ZodNonOptional<z.ZodOptional<z.ZodEnum<{
369
1269
  company: "company";
@@ -392,7 +1292,97 @@ export declare const fieldGroupsContract: {
392
1292
  }, {
393
1293
  out: {};
394
1294
  in: {};
395
- }>, Record<never, never>, Record<never, never>>;
1295
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1296
+ UNAUTHORIZED: {
1297
+ status: number;
1298
+ };
1299
+ NOT_ALLOWED: {
1300
+ status: number;
1301
+ data: z.ZodOptional<z.ZodObject<{
1302
+ permission: z.ZodString;
1303
+ }, z.core.$strip>>;
1304
+ };
1305
+ PLUGIN_ONLY: {
1306
+ status: number;
1307
+ };
1308
+ MEMBERS_ONLY: {
1309
+ status: number;
1310
+ };
1311
+ ORG_REQUIRED: {
1312
+ status: number;
1313
+ };
1314
+ SCOPE_REQUIRED: {
1315
+ status: number;
1316
+ };
1317
+ SERVICE_TOKEN_REQUIRED: {
1318
+ status: number;
1319
+ };
1320
+ ORGANIZATION_DISABLED: {
1321
+ status: number;
1322
+ data: z.ZodObject<{
1323
+ manageUrl: z.ZodNullable<z.ZodString>;
1324
+ }, z.core.$strip>;
1325
+ };
1326
+ NOT_IN_PLAN: {
1327
+ status: number;
1328
+ data: z.ZodOptional<z.ZodObject<{
1329
+ manageUrl: z.ZodNullable<z.ZodString>;
1330
+ }, z.core.$strip>>;
1331
+ };
1332
+ READ_ONLY: {
1333
+ status: number;
1334
+ };
1335
+ TOO_MANY_REQUESTS: {
1336
+ status: number;
1337
+ };
1338
+ INVALID_INPUT: {
1339
+ status: number;
1340
+ data: z.ZodObject<{
1341
+ issues: z.ZodArray<z.ZodObject<{
1342
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1343
+ message: z.ZodString;
1344
+ }, z.core.$strip>>;
1345
+ }, z.core.$strip>;
1346
+ };
1347
+ NOT_FOUND: {
1348
+ status: number;
1349
+ };
1350
+ TAKEN: {
1351
+ status: number;
1352
+ data: z.ZodObject<{
1353
+ field: z.ZodString;
1354
+ id: z.ZodOptional<z.ZodString>;
1355
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1356
+ }, z.core.$strip>;
1357
+ };
1358
+ INVALID_CURSOR: {
1359
+ status: number;
1360
+ };
1361
+ INVALID_REFERENCE: {
1362
+ status: number;
1363
+ data: z.ZodObject<{
1364
+ field: z.ZodString;
1365
+ }, z.core.$strip>;
1366
+ };
1367
+ INVALID_FILTER: {
1368
+ status: number;
1369
+ };
1370
+ FILTER_TOO_SLOW: {
1371
+ status: number;
1372
+ };
1373
+ FIELD_IN_USE: {
1374
+ status: number;
1375
+ data: z.ZodOptional<z.ZodObject<{
1376
+ fieldId: z.ZodString;
1377
+ }, z.core.$strip>>;
1378
+ };
1379
+ INVALID_FIELD_GROUP: {
1380
+ status: number;
1381
+ data: z.ZodOptional<z.ZodObject<{
1382
+ groupId: z.ZodString;
1383
+ }, z.core.$strip>>;
1384
+ };
1385
+ }>, Record<never, never>>;
396
1386
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
397
1387
  name: z.ZodOptional<z.ZodString>;
398
1388
  code: z.ZodOptional<z.ZodString>;
@@ -418,7 +1408,97 @@ export declare const fieldGroupsContract: {
418
1408
  }, {
419
1409
  out: {};
420
1410
  in: {};
421
- }>, Record<never, never>, Record<never, never>>;
1411
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1412
+ UNAUTHORIZED: {
1413
+ status: number;
1414
+ };
1415
+ NOT_ALLOWED: {
1416
+ status: number;
1417
+ data: z.ZodOptional<z.ZodObject<{
1418
+ permission: z.ZodString;
1419
+ }, z.core.$strip>>;
1420
+ };
1421
+ PLUGIN_ONLY: {
1422
+ status: number;
1423
+ };
1424
+ MEMBERS_ONLY: {
1425
+ status: number;
1426
+ };
1427
+ ORG_REQUIRED: {
1428
+ status: number;
1429
+ };
1430
+ SCOPE_REQUIRED: {
1431
+ status: number;
1432
+ };
1433
+ SERVICE_TOKEN_REQUIRED: {
1434
+ status: number;
1435
+ };
1436
+ ORGANIZATION_DISABLED: {
1437
+ status: number;
1438
+ data: z.ZodObject<{
1439
+ manageUrl: z.ZodNullable<z.ZodString>;
1440
+ }, z.core.$strip>;
1441
+ };
1442
+ NOT_IN_PLAN: {
1443
+ status: number;
1444
+ data: z.ZodOptional<z.ZodObject<{
1445
+ manageUrl: z.ZodNullable<z.ZodString>;
1446
+ }, z.core.$strip>>;
1447
+ };
1448
+ READ_ONLY: {
1449
+ status: number;
1450
+ };
1451
+ TOO_MANY_REQUESTS: {
1452
+ status: number;
1453
+ };
1454
+ INVALID_INPUT: {
1455
+ status: number;
1456
+ data: z.ZodObject<{
1457
+ issues: z.ZodArray<z.ZodObject<{
1458
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1459
+ message: z.ZodString;
1460
+ }, z.core.$strip>>;
1461
+ }, z.core.$strip>;
1462
+ };
1463
+ NOT_FOUND: {
1464
+ status: number;
1465
+ };
1466
+ TAKEN: {
1467
+ status: number;
1468
+ data: z.ZodObject<{
1469
+ field: z.ZodString;
1470
+ id: z.ZodOptional<z.ZodString>;
1471
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1472
+ }, z.core.$strip>;
1473
+ };
1474
+ INVALID_CURSOR: {
1475
+ status: number;
1476
+ };
1477
+ INVALID_REFERENCE: {
1478
+ status: number;
1479
+ data: z.ZodObject<{
1480
+ field: z.ZodString;
1481
+ }, z.core.$strip>;
1482
+ };
1483
+ INVALID_FILTER: {
1484
+ status: number;
1485
+ };
1486
+ FILTER_TOO_SLOW: {
1487
+ status: number;
1488
+ };
1489
+ FIELD_IN_USE: {
1490
+ status: number;
1491
+ data: z.ZodOptional<z.ZodObject<{
1492
+ fieldId: z.ZodString;
1493
+ }, z.core.$strip>>;
1494
+ };
1495
+ INVALID_FIELD_GROUP: {
1496
+ status: number;
1497
+ data: z.ZodOptional<z.ZodObject<{
1498
+ groupId: z.ZodString;
1499
+ }, z.core.$strip>>;
1500
+ };
1501
+ }>, Record<never, never>>;
422
1502
  reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
423
1503
  orders: z.ZodArray<z.ZodObject<{
424
1504
  id: z.ZodString;
@@ -426,7 +1506,97 @@ export declare const fieldGroupsContract: {
426
1506
  }, z.core.$strip>>;
427
1507
  }, z.core.$strip>, z.ZodObject<{
428
1508
  ok: z.ZodLiteral<true>;
429
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1509
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1510
+ UNAUTHORIZED: {
1511
+ status: number;
1512
+ };
1513
+ NOT_ALLOWED: {
1514
+ status: number;
1515
+ data: z.ZodOptional<z.ZodObject<{
1516
+ permission: z.ZodString;
1517
+ }, z.core.$strip>>;
1518
+ };
1519
+ PLUGIN_ONLY: {
1520
+ status: number;
1521
+ };
1522
+ MEMBERS_ONLY: {
1523
+ status: number;
1524
+ };
1525
+ ORG_REQUIRED: {
1526
+ status: number;
1527
+ };
1528
+ SCOPE_REQUIRED: {
1529
+ status: number;
1530
+ };
1531
+ SERVICE_TOKEN_REQUIRED: {
1532
+ status: number;
1533
+ };
1534
+ ORGANIZATION_DISABLED: {
1535
+ status: number;
1536
+ data: z.ZodObject<{
1537
+ manageUrl: z.ZodNullable<z.ZodString>;
1538
+ }, z.core.$strip>;
1539
+ };
1540
+ NOT_IN_PLAN: {
1541
+ status: number;
1542
+ data: z.ZodOptional<z.ZodObject<{
1543
+ manageUrl: z.ZodNullable<z.ZodString>;
1544
+ }, z.core.$strip>>;
1545
+ };
1546
+ READ_ONLY: {
1547
+ status: number;
1548
+ };
1549
+ TOO_MANY_REQUESTS: {
1550
+ status: number;
1551
+ };
1552
+ INVALID_INPUT: {
1553
+ status: number;
1554
+ data: z.ZodObject<{
1555
+ issues: z.ZodArray<z.ZodObject<{
1556
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1557
+ message: z.ZodString;
1558
+ }, z.core.$strip>>;
1559
+ }, z.core.$strip>;
1560
+ };
1561
+ NOT_FOUND: {
1562
+ status: number;
1563
+ };
1564
+ TAKEN: {
1565
+ status: number;
1566
+ data: z.ZodObject<{
1567
+ field: z.ZodString;
1568
+ id: z.ZodOptional<z.ZodString>;
1569
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1570
+ }, z.core.$strip>;
1571
+ };
1572
+ INVALID_CURSOR: {
1573
+ status: number;
1574
+ };
1575
+ INVALID_REFERENCE: {
1576
+ status: number;
1577
+ data: z.ZodObject<{
1578
+ field: z.ZodString;
1579
+ }, z.core.$strip>;
1580
+ };
1581
+ INVALID_FILTER: {
1582
+ status: number;
1583
+ };
1584
+ FILTER_TOO_SLOW: {
1585
+ status: number;
1586
+ };
1587
+ FIELD_IN_USE: {
1588
+ status: number;
1589
+ data: z.ZodOptional<z.ZodObject<{
1590
+ fieldId: z.ZodString;
1591
+ }, z.core.$strip>>;
1592
+ };
1593
+ INVALID_FIELD_GROUP: {
1594
+ status: number;
1595
+ data: z.ZodOptional<z.ZodObject<{
1596
+ groupId: z.ZodString;
1597
+ }, z.core.$strip>>;
1598
+ };
1599
+ }>, Record<never, never>>;
430
1600
  archive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
431
1601
  id: z.ZodString;
432
1602
  }, z.core.$strip>, z.ZodObject<{
@@ -445,7 +1615,97 @@ export declare const fieldGroupsContract: {
445
1615
  }, {
446
1616
  out: {};
447
1617
  in: {};
448
- }>, Record<never, never>, Record<never, never>>;
1618
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1619
+ UNAUTHORIZED: {
1620
+ status: number;
1621
+ };
1622
+ NOT_ALLOWED: {
1623
+ status: number;
1624
+ data: z.ZodOptional<z.ZodObject<{
1625
+ permission: z.ZodString;
1626
+ }, z.core.$strip>>;
1627
+ };
1628
+ PLUGIN_ONLY: {
1629
+ status: number;
1630
+ };
1631
+ MEMBERS_ONLY: {
1632
+ status: number;
1633
+ };
1634
+ ORG_REQUIRED: {
1635
+ status: number;
1636
+ };
1637
+ SCOPE_REQUIRED: {
1638
+ status: number;
1639
+ };
1640
+ SERVICE_TOKEN_REQUIRED: {
1641
+ status: number;
1642
+ };
1643
+ ORGANIZATION_DISABLED: {
1644
+ status: number;
1645
+ data: z.ZodObject<{
1646
+ manageUrl: z.ZodNullable<z.ZodString>;
1647
+ }, z.core.$strip>;
1648
+ };
1649
+ NOT_IN_PLAN: {
1650
+ status: number;
1651
+ data: z.ZodOptional<z.ZodObject<{
1652
+ manageUrl: z.ZodNullable<z.ZodString>;
1653
+ }, z.core.$strip>>;
1654
+ };
1655
+ READ_ONLY: {
1656
+ status: number;
1657
+ };
1658
+ TOO_MANY_REQUESTS: {
1659
+ status: number;
1660
+ };
1661
+ INVALID_INPUT: {
1662
+ status: number;
1663
+ data: z.ZodObject<{
1664
+ issues: z.ZodArray<z.ZodObject<{
1665
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1666
+ message: z.ZodString;
1667
+ }, z.core.$strip>>;
1668
+ }, z.core.$strip>;
1669
+ };
1670
+ NOT_FOUND: {
1671
+ status: number;
1672
+ };
1673
+ TAKEN: {
1674
+ status: number;
1675
+ data: z.ZodObject<{
1676
+ field: z.ZodString;
1677
+ id: z.ZodOptional<z.ZodString>;
1678
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1679
+ }, z.core.$strip>;
1680
+ };
1681
+ INVALID_CURSOR: {
1682
+ status: number;
1683
+ };
1684
+ INVALID_REFERENCE: {
1685
+ status: number;
1686
+ data: z.ZodObject<{
1687
+ field: z.ZodString;
1688
+ }, z.core.$strip>;
1689
+ };
1690
+ INVALID_FILTER: {
1691
+ status: number;
1692
+ };
1693
+ FILTER_TOO_SLOW: {
1694
+ status: number;
1695
+ };
1696
+ FIELD_IN_USE: {
1697
+ status: number;
1698
+ data: z.ZodOptional<z.ZodObject<{
1699
+ fieldId: z.ZodString;
1700
+ }, z.core.$strip>>;
1701
+ };
1702
+ INVALID_FIELD_GROUP: {
1703
+ status: number;
1704
+ data: z.ZodOptional<z.ZodObject<{
1705
+ groupId: z.ZodString;
1706
+ }, z.core.$strip>>;
1707
+ };
1708
+ }>, Record<never, never>>;
449
1709
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
450
1710
  id: z.ZodString;
451
1711
  }, z.core.$strip>, z.ZodObject<{
@@ -464,10 +1724,190 @@ export declare const fieldGroupsContract: {
464
1724
  }, {
465
1725
  out: {};
466
1726
  in: {};
467
- }>, Record<never, never>, Record<never, never>>;
1727
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1728
+ UNAUTHORIZED: {
1729
+ status: number;
1730
+ };
1731
+ NOT_ALLOWED: {
1732
+ status: number;
1733
+ data: z.ZodOptional<z.ZodObject<{
1734
+ permission: z.ZodString;
1735
+ }, z.core.$strip>>;
1736
+ };
1737
+ PLUGIN_ONLY: {
1738
+ status: number;
1739
+ };
1740
+ MEMBERS_ONLY: {
1741
+ status: number;
1742
+ };
1743
+ ORG_REQUIRED: {
1744
+ status: number;
1745
+ };
1746
+ SCOPE_REQUIRED: {
1747
+ status: number;
1748
+ };
1749
+ SERVICE_TOKEN_REQUIRED: {
1750
+ status: number;
1751
+ };
1752
+ ORGANIZATION_DISABLED: {
1753
+ status: number;
1754
+ data: z.ZodObject<{
1755
+ manageUrl: z.ZodNullable<z.ZodString>;
1756
+ }, z.core.$strip>;
1757
+ };
1758
+ NOT_IN_PLAN: {
1759
+ status: number;
1760
+ data: z.ZodOptional<z.ZodObject<{
1761
+ manageUrl: z.ZodNullable<z.ZodString>;
1762
+ }, z.core.$strip>>;
1763
+ };
1764
+ READ_ONLY: {
1765
+ status: number;
1766
+ };
1767
+ TOO_MANY_REQUESTS: {
1768
+ status: number;
1769
+ };
1770
+ INVALID_INPUT: {
1771
+ status: number;
1772
+ data: z.ZodObject<{
1773
+ issues: z.ZodArray<z.ZodObject<{
1774
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1775
+ message: z.ZodString;
1776
+ }, z.core.$strip>>;
1777
+ }, z.core.$strip>;
1778
+ };
1779
+ NOT_FOUND: {
1780
+ status: number;
1781
+ };
1782
+ TAKEN: {
1783
+ status: number;
1784
+ data: z.ZodObject<{
1785
+ field: z.ZodString;
1786
+ id: z.ZodOptional<z.ZodString>;
1787
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1788
+ }, z.core.$strip>;
1789
+ };
1790
+ INVALID_CURSOR: {
1791
+ status: number;
1792
+ };
1793
+ INVALID_REFERENCE: {
1794
+ status: number;
1795
+ data: z.ZodObject<{
1796
+ field: z.ZodString;
1797
+ }, z.core.$strip>;
1798
+ };
1799
+ INVALID_FILTER: {
1800
+ status: number;
1801
+ };
1802
+ FILTER_TOO_SLOW: {
1803
+ status: number;
1804
+ };
1805
+ FIELD_IN_USE: {
1806
+ status: number;
1807
+ data: z.ZodOptional<z.ZodObject<{
1808
+ fieldId: z.ZodString;
1809
+ }, z.core.$strip>>;
1810
+ };
1811
+ INVALID_FIELD_GROUP: {
1812
+ status: number;
1813
+ data: z.ZodOptional<z.ZodObject<{
1814
+ groupId: z.ZodString;
1815
+ }, z.core.$strip>>;
1816
+ };
1817
+ }>, Record<never, never>>;
468
1818
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
469
1819
  id: z.ZodString;
470
1820
  }, z.core.$strip>, z.ZodObject<{
471
1821
  ok: z.ZodLiteral<true>;
472
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1822
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1823
+ UNAUTHORIZED: {
1824
+ status: number;
1825
+ };
1826
+ NOT_ALLOWED: {
1827
+ status: number;
1828
+ data: z.ZodOptional<z.ZodObject<{
1829
+ permission: z.ZodString;
1830
+ }, z.core.$strip>>;
1831
+ };
1832
+ PLUGIN_ONLY: {
1833
+ status: number;
1834
+ };
1835
+ MEMBERS_ONLY: {
1836
+ status: number;
1837
+ };
1838
+ ORG_REQUIRED: {
1839
+ status: number;
1840
+ };
1841
+ SCOPE_REQUIRED: {
1842
+ status: number;
1843
+ };
1844
+ SERVICE_TOKEN_REQUIRED: {
1845
+ status: number;
1846
+ };
1847
+ ORGANIZATION_DISABLED: {
1848
+ status: number;
1849
+ data: z.ZodObject<{
1850
+ manageUrl: z.ZodNullable<z.ZodString>;
1851
+ }, z.core.$strip>;
1852
+ };
1853
+ NOT_IN_PLAN: {
1854
+ status: number;
1855
+ data: z.ZodOptional<z.ZodObject<{
1856
+ manageUrl: z.ZodNullable<z.ZodString>;
1857
+ }, z.core.$strip>>;
1858
+ };
1859
+ READ_ONLY: {
1860
+ status: number;
1861
+ };
1862
+ TOO_MANY_REQUESTS: {
1863
+ status: number;
1864
+ };
1865
+ INVALID_INPUT: {
1866
+ status: number;
1867
+ data: z.ZodObject<{
1868
+ issues: z.ZodArray<z.ZodObject<{
1869
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1870
+ message: z.ZodString;
1871
+ }, z.core.$strip>>;
1872
+ }, z.core.$strip>;
1873
+ };
1874
+ NOT_FOUND: {
1875
+ status: number;
1876
+ };
1877
+ TAKEN: {
1878
+ status: number;
1879
+ data: z.ZodObject<{
1880
+ field: z.ZodString;
1881
+ id: z.ZodOptional<z.ZodString>;
1882
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1883
+ }, z.core.$strip>;
1884
+ };
1885
+ INVALID_CURSOR: {
1886
+ status: number;
1887
+ };
1888
+ INVALID_REFERENCE: {
1889
+ status: number;
1890
+ data: z.ZodObject<{
1891
+ field: z.ZodString;
1892
+ }, z.core.$strip>;
1893
+ };
1894
+ INVALID_FILTER: {
1895
+ status: number;
1896
+ };
1897
+ FILTER_TOO_SLOW: {
1898
+ status: number;
1899
+ };
1900
+ FIELD_IN_USE: {
1901
+ status: number;
1902
+ data: z.ZodOptional<z.ZodObject<{
1903
+ fieldId: z.ZodString;
1904
+ }, z.core.$strip>>;
1905
+ };
1906
+ INVALID_FIELD_GROUP: {
1907
+ status: number;
1908
+ data: z.ZodOptional<z.ZodObject<{
1909
+ groupId: z.ZodString;
1910
+ }, z.core.$strip>>;
1911
+ };
1912
+ }>, Record<never, never>>;
473
1913
  };