@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
package/dist/users.d.ts CHANGED
@@ -30,10 +30,10 @@ export declare const User: z.ZodObject<{
30
30
  disabled: "disabled";
31
31
  invited: "invited";
32
32
  }>;
33
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
33
34
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
34
35
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
35
36
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
36
- twoFactorEnabled: z.ZodBoolean;
37
37
  }, {
38
38
  out: {};
39
39
  in: {};
@@ -88,10 +88,10 @@ export declare const usersContract: {
88
88
  disabled: "disabled";
89
89
  invited: "invited";
90
90
  }>;
91
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
91
92
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
92
93
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
93
94
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
94
- twoFactorEnabled: z.ZodBoolean;
95
95
  }, {
96
96
  out: {};
97
97
  in: {};
@@ -104,12 +104,276 @@ export declare const usersContract: {
104
104
  }, z.core.$strip>;
105
105
  totalCount: z.ZodInt;
106
106
  totalCapped: z.ZodOptional<z.ZodBoolean>;
107
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
107
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
108
+ UNAUTHORIZED: {
109
+ status: number;
110
+ };
111
+ NOT_ALLOWED: {
112
+ status: number;
113
+ data: z.ZodOptional<z.ZodObject<{
114
+ permission: z.ZodString;
115
+ }, z.core.$strip>>;
116
+ };
117
+ PLUGIN_ONLY: {
118
+ status: number;
119
+ };
120
+ MEMBERS_ONLY: {
121
+ status: number;
122
+ };
123
+ ORG_REQUIRED: {
124
+ status: number;
125
+ };
126
+ SCOPE_REQUIRED: {
127
+ status: number;
128
+ };
129
+ SERVICE_TOKEN_REQUIRED: {
130
+ status: number;
131
+ };
132
+ ORGANIZATION_DISABLED: {
133
+ status: number;
134
+ data: z.ZodObject<{
135
+ manageUrl: z.ZodNullable<z.ZodString>;
136
+ }, z.core.$strip>;
137
+ };
138
+ NOT_IN_PLAN: {
139
+ status: number;
140
+ data: z.ZodOptional<z.ZodObject<{
141
+ manageUrl: z.ZodNullable<z.ZodString>;
142
+ }, z.core.$strip>>;
143
+ };
144
+ READ_ONLY: {
145
+ status: number;
146
+ };
147
+ TOO_MANY_REQUESTS: {
148
+ status: number;
149
+ };
150
+ INVALID_INPUT: {
151
+ status: number;
152
+ data: z.ZodObject<{
153
+ issues: z.ZodArray<z.ZodObject<{
154
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
155
+ message: z.ZodString;
156
+ }, z.core.$strip>>;
157
+ }, z.core.$strip>;
158
+ };
159
+ NOT_FOUND: {
160
+ status: number;
161
+ };
162
+ TAKEN: {
163
+ status: number;
164
+ data: z.ZodObject<{
165
+ field: z.ZodString;
166
+ id: z.ZodOptional<z.ZodString>;
167
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
+ }, z.core.$strip>;
169
+ };
170
+ INVALID_CURSOR: {
171
+ status: number;
172
+ };
173
+ INVALID_REFERENCE: {
174
+ status: number;
175
+ data: z.ZodObject<{
176
+ field: z.ZodString;
177
+ }, z.core.$strip>;
178
+ };
179
+ INVALID_FILTER: {
180
+ status: number;
181
+ };
182
+ FILTER_TOO_SLOW: {
183
+ status: number;
184
+ };
185
+ BEYOND_OWN_PERMISSIONS: {
186
+ status: number;
187
+ data: z.ZodOptional<z.ZodObject<{
188
+ permissions: z.ZodArray<z.ZodString>;
189
+ }, z.core.$strip>>;
190
+ };
191
+ BUILTIN_ROLE: {
192
+ status: number;
193
+ };
194
+ FIXED_ROLE: {
195
+ status: number;
196
+ };
197
+ INVALID_LINK: {
198
+ status: number;
199
+ };
200
+ INVALID_RECIPIENT: {
201
+ status: number;
202
+ };
203
+ LAST_OWNER: {
204
+ status: number;
205
+ };
206
+ LIMIT_EXCEEDED: {
207
+ status: number;
208
+ };
209
+ NOT_INVITED: {
210
+ status: number;
211
+ };
212
+ OWNER_ONLY: {
213
+ status: number;
214
+ };
215
+ OWNER_ONLY_PERMISSION: {
216
+ status: number;
217
+ data: z.ZodObject<{
218
+ permissions: z.ZodArray<z.ZodString>;
219
+ }, z.core.$strip>;
220
+ };
221
+ OWN_ACCOUNT: {
222
+ status: number;
223
+ };
224
+ OWN_ROLE: {
225
+ status: number;
226
+ };
227
+ ROLE_IN_USE: {
228
+ status: number;
229
+ };
230
+ ROLE_NOT_FOUND: {
231
+ status: number;
232
+ };
233
+ UNKNOWN_PERMISSION: {
234
+ status: number;
235
+ data: z.ZodObject<{
236
+ permissions: z.ZodArray<z.ZodString>;
237
+ }, z.core.$strip>;
238
+ };
239
+ }>, Record<never, never>>;
108
240
  resendInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
109
241
  id: z.ZodString;
110
242
  }, z.core.$strip>, z.ZodObject<{
111
243
  ok: z.ZodLiteral<true>;
112
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
244
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
245
+ UNAUTHORIZED: {
246
+ status: number;
247
+ };
248
+ NOT_ALLOWED: {
249
+ status: number;
250
+ data: z.ZodOptional<z.ZodObject<{
251
+ permission: z.ZodString;
252
+ }, z.core.$strip>>;
253
+ };
254
+ PLUGIN_ONLY: {
255
+ status: number;
256
+ };
257
+ MEMBERS_ONLY: {
258
+ status: number;
259
+ };
260
+ ORG_REQUIRED: {
261
+ status: number;
262
+ };
263
+ SCOPE_REQUIRED: {
264
+ status: number;
265
+ };
266
+ SERVICE_TOKEN_REQUIRED: {
267
+ status: number;
268
+ };
269
+ ORGANIZATION_DISABLED: {
270
+ status: number;
271
+ data: z.ZodObject<{
272
+ manageUrl: z.ZodNullable<z.ZodString>;
273
+ }, z.core.$strip>;
274
+ };
275
+ NOT_IN_PLAN: {
276
+ status: number;
277
+ data: z.ZodOptional<z.ZodObject<{
278
+ manageUrl: z.ZodNullable<z.ZodString>;
279
+ }, z.core.$strip>>;
280
+ };
281
+ READ_ONLY: {
282
+ status: number;
283
+ };
284
+ TOO_MANY_REQUESTS: {
285
+ status: number;
286
+ };
287
+ INVALID_INPUT: {
288
+ status: number;
289
+ data: z.ZodObject<{
290
+ issues: z.ZodArray<z.ZodObject<{
291
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
292
+ message: z.ZodString;
293
+ }, z.core.$strip>>;
294
+ }, z.core.$strip>;
295
+ };
296
+ NOT_FOUND: {
297
+ status: number;
298
+ };
299
+ TAKEN: {
300
+ status: number;
301
+ data: z.ZodObject<{
302
+ field: z.ZodString;
303
+ id: z.ZodOptional<z.ZodString>;
304
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
305
+ }, z.core.$strip>;
306
+ };
307
+ INVALID_CURSOR: {
308
+ status: number;
309
+ };
310
+ INVALID_REFERENCE: {
311
+ status: number;
312
+ data: z.ZodObject<{
313
+ field: z.ZodString;
314
+ }, z.core.$strip>;
315
+ };
316
+ INVALID_FILTER: {
317
+ status: number;
318
+ };
319
+ FILTER_TOO_SLOW: {
320
+ status: number;
321
+ };
322
+ BEYOND_OWN_PERMISSIONS: {
323
+ status: number;
324
+ data: z.ZodOptional<z.ZodObject<{
325
+ permissions: z.ZodArray<z.ZodString>;
326
+ }, z.core.$strip>>;
327
+ };
328
+ BUILTIN_ROLE: {
329
+ status: number;
330
+ };
331
+ FIXED_ROLE: {
332
+ status: number;
333
+ };
334
+ INVALID_LINK: {
335
+ status: number;
336
+ };
337
+ INVALID_RECIPIENT: {
338
+ status: number;
339
+ };
340
+ LAST_OWNER: {
341
+ status: number;
342
+ };
343
+ LIMIT_EXCEEDED: {
344
+ status: number;
345
+ };
346
+ NOT_INVITED: {
347
+ status: number;
348
+ };
349
+ OWNER_ONLY: {
350
+ status: number;
351
+ };
352
+ OWNER_ONLY_PERMISSION: {
353
+ status: number;
354
+ data: z.ZodObject<{
355
+ permissions: z.ZodArray<z.ZodString>;
356
+ }, z.core.$strip>;
357
+ };
358
+ OWN_ACCOUNT: {
359
+ status: number;
360
+ };
361
+ OWN_ROLE: {
362
+ status: number;
363
+ };
364
+ ROLE_IN_USE: {
365
+ status: number;
366
+ };
367
+ ROLE_NOT_FOUND: {
368
+ status: number;
369
+ };
370
+ UNKNOWN_PERMISSION: {
371
+ status: number;
372
+ data: z.ZodObject<{
373
+ permissions: z.ZodArray<z.ZodString>;
374
+ }, z.core.$strip>;
375
+ };
376
+ }>, Record<never, never>>;
113
377
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
114
378
  id: z.ZodString;
115
379
  }, z.core.$strip>, z.ZodObject<{
@@ -134,14 +398,146 @@ export declare const usersContract: {
134
398
  disabled: "disabled";
135
399
  invited: "invited";
136
400
  }>;
401
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
137
402
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
138
403
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
139
404
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
140
- twoFactorEnabled: z.ZodBoolean;
141
405
  }, {
142
406
  out: {};
143
407
  in: {};
144
- }>, Record<never, never>, Record<never, never>>;
408
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
409
+ UNAUTHORIZED: {
410
+ status: number;
411
+ };
412
+ NOT_ALLOWED: {
413
+ status: number;
414
+ data: z.ZodOptional<z.ZodObject<{
415
+ permission: z.ZodString;
416
+ }, z.core.$strip>>;
417
+ };
418
+ PLUGIN_ONLY: {
419
+ status: number;
420
+ };
421
+ MEMBERS_ONLY: {
422
+ status: number;
423
+ };
424
+ ORG_REQUIRED: {
425
+ status: number;
426
+ };
427
+ SCOPE_REQUIRED: {
428
+ status: number;
429
+ };
430
+ SERVICE_TOKEN_REQUIRED: {
431
+ status: number;
432
+ };
433
+ ORGANIZATION_DISABLED: {
434
+ status: number;
435
+ data: z.ZodObject<{
436
+ manageUrl: z.ZodNullable<z.ZodString>;
437
+ }, z.core.$strip>;
438
+ };
439
+ NOT_IN_PLAN: {
440
+ status: number;
441
+ data: z.ZodOptional<z.ZodObject<{
442
+ manageUrl: z.ZodNullable<z.ZodString>;
443
+ }, z.core.$strip>>;
444
+ };
445
+ READ_ONLY: {
446
+ status: number;
447
+ };
448
+ TOO_MANY_REQUESTS: {
449
+ status: number;
450
+ };
451
+ INVALID_INPUT: {
452
+ status: number;
453
+ data: z.ZodObject<{
454
+ issues: z.ZodArray<z.ZodObject<{
455
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
456
+ message: z.ZodString;
457
+ }, z.core.$strip>>;
458
+ }, z.core.$strip>;
459
+ };
460
+ NOT_FOUND: {
461
+ status: number;
462
+ };
463
+ TAKEN: {
464
+ status: number;
465
+ data: z.ZodObject<{
466
+ field: z.ZodString;
467
+ id: z.ZodOptional<z.ZodString>;
468
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
469
+ }, z.core.$strip>;
470
+ };
471
+ INVALID_CURSOR: {
472
+ status: number;
473
+ };
474
+ INVALID_REFERENCE: {
475
+ status: number;
476
+ data: z.ZodObject<{
477
+ field: z.ZodString;
478
+ }, z.core.$strip>;
479
+ };
480
+ INVALID_FILTER: {
481
+ status: number;
482
+ };
483
+ FILTER_TOO_SLOW: {
484
+ status: number;
485
+ };
486
+ BEYOND_OWN_PERMISSIONS: {
487
+ status: number;
488
+ data: z.ZodOptional<z.ZodObject<{
489
+ permissions: z.ZodArray<z.ZodString>;
490
+ }, z.core.$strip>>;
491
+ };
492
+ BUILTIN_ROLE: {
493
+ status: number;
494
+ };
495
+ FIXED_ROLE: {
496
+ status: number;
497
+ };
498
+ INVALID_LINK: {
499
+ status: number;
500
+ };
501
+ INVALID_RECIPIENT: {
502
+ status: number;
503
+ };
504
+ LAST_OWNER: {
505
+ status: number;
506
+ };
507
+ LIMIT_EXCEEDED: {
508
+ status: number;
509
+ };
510
+ NOT_INVITED: {
511
+ status: number;
512
+ };
513
+ OWNER_ONLY: {
514
+ status: number;
515
+ };
516
+ OWNER_ONLY_PERMISSION: {
517
+ status: number;
518
+ data: z.ZodObject<{
519
+ permissions: z.ZodArray<z.ZodString>;
520
+ }, z.core.$strip>;
521
+ };
522
+ OWN_ACCOUNT: {
523
+ status: number;
524
+ };
525
+ OWN_ROLE: {
526
+ status: number;
527
+ };
528
+ ROLE_IN_USE: {
529
+ status: number;
530
+ };
531
+ ROLE_NOT_FOUND: {
532
+ status: number;
533
+ };
534
+ UNKNOWN_PERMISSION: {
535
+ status: number;
536
+ data: z.ZodObject<{
537
+ permissions: z.ZodArray<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ };
540
+ }>, Record<never, never>>;
145
541
  invite: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
146
542
  username: z.ZodOptional<z.ZodString>;
147
543
  fullName: z.ZodOptional<z.ZodString>;
@@ -170,14 +566,146 @@ export declare const usersContract: {
170
566
  disabled: "disabled";
171
567
  invited: "invited";
172
568
  }>;
569
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
173
570
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
174
571
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
175
572
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
176
- twoFactorEnabled: z.ZodBoolean;
177
573
  }, {
178
574
  out: {};
179
575
  in: {};
180
- }>, Record<never, never>, Record<never, never>>;
576
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
577
+ UNAUTHORIZED: {
578
+ status: number;
579
+ };
580
+ NOT_ALLOWED: {
581
+ status: number;
582
+ data: z.ZodOptional<z.ZodObject<{
583
+ permission: z.ZodString;
584
+ }, z.core.$strip>>;
585
+ };
586
+ PLUGIN_ONLY: {
587
+ status: number;
588
+ };
589
+ MEMBERS_ONLY: {
590
+ status: number;
591
+ };
592
+ ORG_REQUIRED: {
593
+ status: number;
594
+ };
595
+ SCOPE_REQUIRED: {
596
+ status: number;
597
+ };
598
+ SERVICE_TOKEN_REQUIRED: {
599
+ status: number;
600
+ };
601
+ ORGANIZATION_DISABLED: {
602
+ status: number;
603
+ data: z.ZodObject<{
604
+ manageUrl: z.ZodNullable<z.ZodString>;
605
+ }, z.core.$strip>;
606
+ };
607
+ NOT_IN_PLAN: {
608
+ status: number;
609
+ data: z.ZodOptional<z.ZodObject<{
610
+ manageUrl: z.ZodNullable<z.ZodString>;
611
+ }, z.core.$strip>>;
612
+ };
613
+ READ_ONLY: {
614
+ status: number;
615
+ };
616
+ TOO_MANY_REQUESTS: {
617
+ status: number;
618
+ };
619
+ INVALID_INPUT: {
620
+ status: number;
621
+ data: z.ZodObject<{
622
+ issues: z.ZodArray<z.ZodObject<{
623
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
624
+ message: z.ZodString;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strip>;
627
+ };
628
+ NOT_FOUND: {
629
+ status: number;
630
+ };
631
+ TAKEN: {
632
+ status: number;
633
+ data: z.ZodObject<{
634
+ field: z.ZodString;
635
+ id: z.ZodOptional<z.ZodString>;
636
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
637
+ }, z.core.$strip>;
638
+ };
639
+ INVALID_CURSOR: {
640
+ status: number;
641
+ };
642
+ INVALID_REFERENCE: {
643
+ status: number;
644
+ data: z.ZodObject<{
645
+ field: z.ZodString;
646
+ }, z.core.$strip>;
647
+ };
648
+ INVALID_FILTER: {
649
+ status: number;
650
+ };
651
+ FILTER_TOO_SLOW: {
652
+ status: number;
653
+ };
654
+ BEYOND_OWN_PERMISSIONS: {
655
+ status: number;
656
+ data: z.ZodOptional<z.ZodObject<{
657
+ permissions: z.ZodArray<z.ZodString>;
658
+ }, z.core.$strip>>;
659
+ };
660
+ BUILTIN_ROLE: {
661
+ status: number;
662
+ };
663
+ FIXED_ROLE: {
664
+ status: number;
665
+ };
666
+ INVALID_LINK: {
667
+ status: number;
668
+ };
669
+ INVALID_RECIPIENT: {
670
+ status: number;
671
+ };
672
+ LAST_OWNER: {
673
+ status: number;
674
+ };
675
+ LIMIT_EXCEEDED: {
676
+ status: number;
677
+ };
678
+ NOT_INVITED: {
679
+ status: number;
680
+ };
681
+ OWNER_ONLY: {
682
+ status: number;
683
+ };
684
+ OWNER_ONLY_PERMISSION: {
685
+ status: number;
686
+ data: z.ZodObject<{
687
+ permissions: z.ZodArray<z.ZodString>;
688
+ }, z.core.$strip>;
689
+ };
690
+ OWN_ACCOUNT: {
691
+ status: number;
692
+ };
693
+ OWN_ROLE: {
694
+ status: number;
695
+ };
696
+ ROLE_IN_USE: {
697
+ status: number;
698
+ };
699
+ ROLE_NOT_FOUND: {
700
+ status: number;
701
+ };
702
+ UNKNOWN_PERMISSION: {
703
+ status: number;
704
+ data: z.ZodObject<{
705
+ permissions: z.ZodArray<z.ZodString>;
706
+ }, z.core.$strip>;
707
+ };
708
+ }>, Record<never, never>>;
181
709
  inviteMany: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
182
710
  entries: z.ZodArray<z.ZodObject<{
183
711
  username: z.ZodOptional<z.ZodString>;
@@ -209,15 +737,147 @@ export declare const usersContract: {
209
737
  disabled: "disabled";
210
738
  invited: "invited";
211
739
  }>;
740
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
212
741
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
213
742
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
214
743
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
215
- twoFactorEnabled: z.ZodBoolean;
216
744
  }, {
217
745
  out: {};
218
746
  in: {};
219
747
  }>>;
220
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
748
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
749
+ UNAUTHORIZED: {
750
+ status: number;
751
+ };
752
+ NOT_ALLOWED: {
753
+ status: number;
754
+ data: z.ZodOptional<z.ZodObject<{
755
+ permission: z.ZodString;
756
+ }, z.core.$strip>>;
757
+ };
758
+ PLUGIN_ONLY: {
759
+ status: number;
760
+ };
761
+ MEMBERS_ONLY: {
762
+ status: number;
763
+ };
764
+ ORG_REQUIRED: {
765
+ status: number;
766
+ };
767
+ SCOPE_REQUIRED: {
768
+ status: number;
769
+ };
770
+ SERVICE_TOKEN_REQUIRED: {
771
+ status: number;
772
+ };
773
+ ORGANIZATION_DISABLED: {
774
+ status: number;
775
+ data: z.ZodObject<{
776
+ manageUrl: z.ZodNullable<z.ZodString>;
777
+ }, z.core.$strip>;
778
+ };
779
+ NOT_IN_PLAN: {
780
+ status: number;
781
+ data: z.ZodOptional<z.ZodObject<{
782
+ manageUrl: z.ZodNullable<z.ZodString>;
783
+ }, z.core.$strip>>;
784
+ };
785
+ READ_ONLY: {
786
+ status: number;
787
+ };
788
+ TOO_MANY_REQUESTS: {
789
+ status: number;
790
+ };
791
+ INVALID_INPUT: {
792
+ status: number;
793
+ data: z.ZodObject<{
794
+ issues: z.ZodArray<z.ZodObject<{
795
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
796
+ message: z.ZodString;
797
+ }, z.core.$strip>>;
798
+ }, z.core.$strip>;
799
+ };
800
+ NOT_FOUND: {
801
+ status: number;
802
+ };
803
+ TAKEN: {
804
+ status: number;
805
+ data: z.ZodObject<{
806
+ field: z.ZodString;
807
+ id: z.ZodOptional<z.ZodString>;
808
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
809
+ }, z.core.$strip>;
810
+ };
811
+ INVALID_CURSOR: {
812
+ status: number;
813
+ };
814
+ INVALID_REFERENCE: {
815
+ status: number;
816
+ data: z.ZodObject<{
817
+ field: z.ZodString;
818
+ }, z.core.$strip>;
819
+ };
820
+ INVALID_FILTER: {
821
+ status: number;
822
+ };
823
+ FILTER_TOO_SLOW: {
824
+ status: number;
825
+ };
826
+ BEYOND_OWN_PERMISSIONS: {
827
+ status: number;
828
+ data: z.ZodOptional<z.ZodObject<{
829
+ permissions: z.ZodArray<z.ZodString>;
830
+ }, z.core.$strip>>;
831
+ };
832
+ BUILTIN_ROLE: {
833
+ status: number;
834
+ };
835
+ FIXED_ROLE: {
836
+ status: number;
837
+ };
838
+ INVALID_LINK: {
839
+ status: number;
840
+ };
841
+ INVALID_RECIPIENT: {
842
+ status: number;
843
+ };
844
+ LAST_OWNER: {
845
+ status: number;
846
+ };
847
+ LIMIT_EXCEEDED: {
848
+ status: number;
849
+ };
850
+ NOT_INVITED: {
851
+ status: number;
852
+ };
853
+ OWNER_ONLY: {
854
+ status: number;
855
+ };
856
+ OWNER_ONLY_PERMISSION: {
857
+ status: number;
858
+ data: z.ZodObject<{
859
+ permissions: z.ZodArray<z.ZodString>;
860
+ }, z.core.$strip>;
861
+ };
862
+ OWN_ACCOUNT: {
863
+ status: number;
864
+ };
865
+ OWN_ROLE: {
866
+ status: number;
867
+ };
868
+ ROLE_IN_USE: {
869
+ status: number;
870
+ };
871
+ ROLE_NOT_FOUND: {
872
+ status: number;
873
+ };
874
+ UNKNOWN_PERMISSION: {
875
+ status: number;
876
+ data: z.ZodObject<{
877
+ permissions: z.ZodArray<z.ZodString>;
878
+ }, z.core.$strip>;
879
+ };
880
+ }>, Record<never, never>>;
221
881
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
222
882
  email: z.ZodOptional<z.ZodString>;
223
883
  username: z.ZodOptional<z.ZodString>;
@@ -267,14 +927,146 @@ export declare const usersContract: {
267
927
  disabled: "disabled";
268
928
  invited: "invited";
269
929
  }>;
930
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
270
931
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
271
932
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
272
933
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
273
- twoFactorEnabled: z.ZodBoolean;
274
934
  }, {
275
935
  out: {};
276
936
  in: {};
277
- }>, Record<never, never>, Record<never, never>>;
937
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
938
+ UNAUTHORIZED: {
939
+ status: number;
940
+ };
941
+ NOT_ALLOWED: {
942
+ status: number;
943
+ data: z.ZodOptional<z.ZodObject<{
944
+ permission: z.ZodString;
945
+ }, z.core.$strip>>;
946
+ };
947
+ PLUGIN_ONLY: {
948
+ status: number;
949
+ };
950
+ MEMBERS_ONLY: {
951
+ status: number;
952
+ };
953
+ ORG_REQUIRED: {
954
+ status: number;
955
+ };
956
+ SCOPE_REQUIRED: {
957
+ status: number;
958
+ };
959
+ SERVICE_TOKEN_REQUIRED: {
960
+ status: number;
961
+ };
962
+ ORGANIZATION_DISABLED: {
963
+ status: number;
964
+ data: z.ZodObject<{
965
+ manageUrl: z.ZodNullable<z.ZodString>;
966
+ }, z.core.$strip>;
967
+ };
968
+ NOT_IN_PLAN: {
969
+ status: number;
970
+ data: z.ZodOptional<z.ZodObject<{
971
+ manageUrl: z.ZodNullable<z.ZodString>;
972
+ }, z.core.$strip>>;
973
+ };
974
+ READ_ONLY: {
975
+ status: number;
976
+ };
977
+ TOO_MANY_REQUESTS: {
978
+ status: number;
979
+ };
980
+ INVALID_INPUT: {
981
+ status: number;
982
+ data: z.ZodObject<{
983
+ issues: z.ZodArray<z.ZodObject<{
984
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
985
+ message: z.ZodString;
986
+ }, z.core.$strip>>;
987
+ }, z.core.$strip>;
988
+ };
989
+ NOT_FOUND: {
990
+ status: number;
991
+ };
992
+ TAKEN: {
993
+ status: number;
994
+ data: z.ZodObject<{
995
+ field: z.ZodString;
996
+ id: z.ZodOptional<z.ZodString>;
997
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
998
+ }, z.core.$strip>;
999
+ };
1000
+ INVALID_CURSOR: {
1001
+ status: number;
1002
+ };
1003
+ INVALID_REFERENCE: {
1004
+ status: number;
1005
+ data: z.ZodObject<{
1006
+ field: z.ZodString;
1007
+ }, z.core.$strip>;
1008
+ };
1009
+ INVALID_FILTER: {
1010
+ status: number;
1011
+ };
1012
+ FILTER_TOO_SLOW: {
1013
+ status: number;
1014
+ };
1015
+ BEYOND_OWN_PERMISSIONS: {
1016
+ status: number;
1017
+ data: z.ZodOptional<z.ZodObject<{
1018
+ permissions: z.ZodArray<z.ZodString>;
1019
+ }, z.core.$strip>>;
1020
+ };
1021
+ BUILTIN_ROLE: {
1022
+ status: number;
1023
+ };
1024
+ FIXED_ROLE: {
1025
+ status: number;
1026
+ };
1027
+ INVALID_LINK: {
1028
+ status: number;
1029
+ };
1030
+ INVALID_RECIPIENT: {
1031
+ status: number;
1032
+ };
1033
+ LAST_OWNER: {
1034
+ status: number;
1035
+ };
1036
+ LIMIT_EXCEEDED: {
1037
+ status: number;
1038
+ };
1039
+ NOT_INVITED: {
1040
+ status: number;
1041
+ };
1042
+ OWNER_ONLY: {
1043
+ status: number;
1044
+ };
1045
+ OWNER_ONLY_PERMISSION: {
1046
+ status: number;
1047
+ data: z.ZodObject<{
1048
+ permissions: z.ZodArray<z.ZodString>;
1049
+ }, z.core.$strip>;
1050
+ };
1051
+ OWN_ACCOUNT: {
1052
+ status: number;
1053
+ };
1054
+ OWN_ROLE: {
1055
+ status: number;
1056
+ };
1057
+ ROLE_IN_USE: {
1058
+ status: number;
1059
+ };
1060
+ ROLE_NOT_FOUND: {
1061
+ status: number;
1062
+ };
1063
+ UNKNOWN_PERMISSION: {
1064
+ status: number;
1065
+ data: z.ZodObject<{
1066
+ permissions: z.ZodArray<z.ZodString>;
1067
+ }, z.core.$strip>;
1068
+ };
1069
+ }>, Record<never, never>>;
278
1070
  setPassword: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
279
1071
  id: z.ZodString;
280
1072
  password: z.ZodString;
@@ -300,14 +1092,146 @@ export declare const usersContract: {
300
1092
  disabled: "disabled";
301
1093
  invited: "invited";
302
1094
  }>;
1095
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
303
1096
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
304
1097
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
305
1098
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
306
- twoFactorEnabled: z.ZodBoolean;
307
1099
  }, {
308
1100
  out: {};
309
1101
  in: {};
310
- }>, Record<never, never>, Record<never, never>>;
1102
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1103
+ UNAUTHORIZED: {
1104
+ status: number;
1105
+ };
1106
+ NOT_ALLOWED: {
1107
+ status: number;
1108
+ data: z.ZodOptional<z.ZodObject<{
1109
+ permission: z.ZodString;
1110
+ }, z.core.$strip>>;
1111
+ };
1112
+ PLUGIN_ONLY: {
1113
+ status: number;
1114
+ };
1115
+ MEMBERS_ONLY: {
1116
+ status: number;
1117
+ };
1118
+ ORG_REQUIRED: {
1119
+ status: number;
1120
+ };
1121
+ SCOPE_REQUIRED: {
1122
+ status: number;
1123
+ };
1124
+ SERVICE_TOKEN_REQUIRED: {
1125
+ status: number;
1126
+ };
1127
+ ORGANIZATION_DISABLED: {
1128
+ status: number;
1129
+ data: z.ZodObject<{
1130
+ manageUrl: z.ZodNullable<z.ZodString>;
1131
+ }, z.core.$strip>;
1132
+ };
1133
+ NOT_IN_PLAN: {
1134
+ status: number;
1135
+ data: z.ZodOptional<z.ZodObject<{
1136
+ manageUrl: z.ZodNullable<z.ZodString>;
1137
+ }, z.core.$strip>>;
1138
+ };
1139
+ READ_ONLY: {
1140
+ status: number;
1141
+ };
1142
+ TOO_MANY_REQUESTS: {
1143
+ status: number;
1144
+ };
1145
+ INVALID_INPUT: {
1146
+ status: number;
1147
+ data: z.ZodObject<{
1148
+ issues: z.ZodArray<z.ZodObject<{
1149
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1150
+ message: z.ZodString;
1151
+ }, z.core.$strip>>;
1152
+ }, z.core.$strip>;
1153
+ };
1154
+ NOT_FOUND: {
1155
+ status: number;
1156
+ };
1157
+ TAKEN: {
1158
+ status: number;
1159
+ data: z.ZodObject<{
1160
+ field: z.ZodString;
1161
+ id: z.ZodOptional<z.ZodString>;
1162
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1163
+ }, z.core.$strip>;
1164
+ };
1165
+ INVALID_CURSOR: {
1166
+ status: number;
1167
+ };
1168
+ INVALID_REFERENCE: {
1169
+ status: number;
1170
+ data: z.ZodObject<{
1171
+ field: z.ZodString;
1172
+ }, z.core.$strip>;
1173
+ };
1174
+ INVALID_FILTER: {
1175
+ status: number;
1176
+ };
1177
+ FILTER_TOO_SLOW: {
1178
+ status: number;
1179
+ };
1180
+ BEYOND_OWN_PERMISSIONS: {
1181
+ status: number;
1182
+ data: z.ZodOptional<z.ZodObject<{
1183
+ permissions: z.ZodArray<z.ZodString>;
1184
+ }, z.core.$strip>>;
1185
+ };
1186
+ BUILTIN_ROLE: {
1187
+ status: number;
1188
+ };
1189
+ FIXED_ROLE: {
1190
+ status: number;
1191
+ };
1192
+ INVALID_LINK: {
1193
+ status: number;
1194
+ };
1195
+ INVALID_RECIPIENT: {
1196
+ status: number;
1197
+ };
1198
+ LAST_OWNER: {
1199
+ status: number;
1200
+ };
1201
+ LIMIT_EXCEEDED: {
1202
+ status: number;
1203
+ };
1204
+ NOT_INVITED: {
1205
+ status: number;
1206
+ };
1207
+ OWNER_ONLY: {
1208
+ status: number;
1209
+ };
1210
+ OWNER_ONLY_PERMISSION: {
1211
+ status: number;
1212
+ data: z.ZodObject<{
1213
+ permissions: z.ZodArray<z.ZodString>;
1214
+ }, z.core.$strip>;
1215
+ };
1216
+ OWN_ACCOUNT: {
1217
+ status: number;
1218
+ };
1219
+ OWN_ROLE: {
1220
+ status: number;
1221
+ };
1222
+ ROLE_IN_USE: {
1223
+ status: number;
1224
+ };
1225
+ ROLE_NOT_FOUND: {
1226
+ status: number;
1227
+ };
1228
+ UNKNOWN_PERMISSION: {
1229
+ status: number;
1230
+ data: z.ZodObject<{
1231
+ permissions: z.ZodArray<z.ZodString>;
1232
+ }, z.core.$strip>;
1233
+ };
1234
+ }>, Record<never, never>>;
311
1235
  disable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
312
1236
  id: z.ZodString;
313
1237
  }, z.core.$strip>, z.ZodObject<{
@@ -332,14 +1256,146 @@ export declare const usersContract: {
332
1256
  disabled: "disabled";
333
1257
  invited: "invited";
334
1258
  }>;
1259
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
335
1260
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
336
1261
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
337
1262
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
338
- twoFactorEnabled: z.ZodBoolean;
339
1263
  }, {
340
1264
  out: {};
341
1265
  in: {};
342
- }>, Record<never, never>, Record<never, never>>;
1266
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1267
+ UNAUTHORIZED: {
1268
+ status: number;
1269
+ };
1270
+ NOT_ALLOWED: {
1271
+ status: number;
1272
+ data: z.ZodOptional<z.ZodObject<{
1273
+ permission: z.ZodString;
1274
+ }, z.core.$strip>>;
1275
+ };
1276
+ PLUGIN_ONLY: {
1277
+ status: number;
1278
+ };
1279
+ MEMBERS_ONLY: {
1280
+ status: number;
1281
+ };
1282
+ ORG_REQUIRED: {
1283
+ status: number;
1284
+ };
1285
+ SCOPE_REQUIRED: {
1286
+ status: number;
1287
+ };
1288
+ SERVICE_TOKEN_REQUIRED: {
1289
+ status: number;
1290
+ };
1291
+ ORGANIZATION_DISABLED: {
1292
+ status: number;
1293
+ data: z.ZodObject<{
1294
+ manageUrl: z.ZodNullable<z.ZodString>;
1295
+ }, z.core.$strip>;
1296
+ };
1297
+ NOT_IN_PLAN: {
1298
+ status: number;
1299
+ data: z.ZodOptional<z.ZodObject<{
1300
+ manageUrl: z.ZodNullable<z.ZodString>;
1301
+ }, z.core.$strip>>;
1302
+ };
1303
+ READ_ONLY: {
1304
+ status: number;
1305
+ };
1306
+ TOO_MANY_REQUESTS: {
1307
+ status: number;
1308
+ };
1309
+ INVALID_INPUT: {
1310
+ status: number;
1311
+ data: z.ZodObject<{
1312
+ issues: z.ZodArray<z.ZodObject<{
1313
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1314
+ message: z.ZodString;
1315
+ }, z.core.$strip>>;
1316
+ }, z.core.$strip>;
1317
+ };
1318
+ NOT_FOUND: {
1319
+ status: number;
1320
+ };
1321
+ TAKEN: {
1322
+ status: number;
1323
+ data: z.ZodObject<{
1324
+ field: z.ZodString;
1325
+ id: z.ZodOptional<z.ZodString>;
1326
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1327
+ }, z.core.$strip>;
1328
+ };
1329
+ INVALID_CURSOR: {
1330
+ status: number;
1331
+ };
1332
+ INVALID_REFERENCE: {
1333
+ status: number;
1334
+ data: z.ZodObject<{
1335
+ field: z.ZodString;
1336
+ }, z.core.$strip>;
1337
+ };
1338
+ INVALID_FILTER: {
1339
+ status: number;
1340
+ };
1341
+ FILTER_TOO_SLOW: {
1342
+ status: number;
1343
+ };
1344
+ BEYOND_OWN_PERMISSIONS: {
1345
+ status: number;
1346
+ data: z.ZodOptional<z.ZodObject<{
1347
+ permissions: z.ZodArray<z.ZodString>;
1348
+ }, z.core.$strip>>;
1349
+ };
1350
+ BUILTIN_ROLE: {
1351
+ status: number;
1352
+ };
1353
+ FIXED_ROLE: {
1354
+ status: number;
1355
+ };
1356
+ INVALID_LINK: {
1357
+ status: number;
1358
+ };
1359
+ INVALID_RECIPIENT: {
1360
+ status: number;
1361
+ };
1362
+ LAST_OWNER: {
1363
+ status: number;
1364
+ };
1365
+ LIMIT_EXCEEDED: {
1366
+ status: number;
1367
+ };
1368
+ NOT_INVITED: {
1369
+ status: number;
1370
+ };
1371
+ OWNER_ONLY: {
1372
+ status: number;
1373
+ };
1374
+ OWNER_ONLY_PERMISSION: {
1375
+ status: number;
1376
+ data: z.ZodObject<{
1377
+ permissions: z.ZodArray<z.ZodString>;
1378
+ }, z.core.$strip>;
1379
+ };
1380
+ OWN_ACCOUNT: {
1381
+ status: number;
1382
+ };
1383
+ OWN_ROLE: {
1384
+ status: number;
1385
+ };
1386
+ ROLE_IN_USE: {
1387
+ status: number;
1388
+ };
1389
+ ROLE_NOT_FOUND: {
1390
+ status: number;
1391
+ };
1392
+ UNKNOWN_PERMISSION: {
1393
+ status: number;
1394
+ data: z.ZodObject<{
1395
+ permissions: z.ZodArray<z.ZodString>;
1396
+ }, z.core.$strip>;
1397
+ };
1398
+ }>, Record<never, never>>;
343
1399
  enable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
344
1400
  id: z.ZodString;
345
1401
  }, z.core.$strip>, z.ZodObject<{
@@ -364,12 +1420,144 @@ export declare const usersContract: {
364
1420
  disabled: "disabled";
365
1421
  invited: "invited";
366
1422
  }>;
1423
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
367
1424
  onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
368
1425
  createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
369
1426
  updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
370
- twoFactorEnabled: z.ZodBoolean;
371
1427
  }, {
372
1428
  out: {};
373
1429
  in: {};
374
- }>, Record<never, never>, Record<never, never>>;
1430
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1431
+ UNAUTHORIZED: {
1432
+ status: number;
1433
+ };
1434
+ NOT_ALLOWED: {
1435
+ status: number;
1436
+ data: z.ZodOptional<z.ZodObject<{
1437
+ permission: z.ZodString;
1438
+ }, z.core.$strip>>;
1439
+ };
1440
+ PLUGIN_ONLY: {
1441
+ status: number;
1442
+ };
1443
+ MEMBERS_ONLY: {
1444
+ status: number;
1445
+ };
1446
+ ORG_REQUIRED: {
1447
+ status: number;
1448
+ };
1449
+ SCOPE_REQUIRED: {
1450
+ status: number;
1451
+ };
1452
+ SERVICE_TOKEN_REQUIRED: {
1453
+ status: number;
1454
+ };
1455
+ ORGANIZATION_DISABLED: {
1456
+ status: number;
1457
+ data: z.ZodObject<{
1458
+ manageUrl: z.ZodNullable<z.ZodString>;
1459
+ }, z.core.$strip>;
1460
+ };
1461
+ NOT_IN_PLAN: {
1462
+ status: number;
1463
+ data: z.ZodOptional<z.ZodObject<{
1464
+ manageUrl: z.ZodNullable<z.ZodString>;
1465
+ }, z.core.$strip>>;
1466
+ };
1467
+ READ_ONLY: {
1468
+ status: number;
1469
+ };
1470
+ TOO_MANY_REQUESTS: {
1471
+ status: number;
1472
+ };
1473
+ INVALID_INPUT: {
1474
+ status: number;
1475
+ data: z.ZodObject<{
1476
+ issues: z.ZodArray<z.ZodObject<{
1477
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1478
+ message: z.ZodString;
1479
+ }, z.core.$strip>>;
1480
+ }, z.core.$strip>;
1481
+ };
1482
+ NOT_FOUND: {
1483
+ status: number;
1484
+ };
1485
+ TAKEN: {
1486
+ status: number;
1487
+ data: z.ZodObject<{
1488
+ field: z.ZodString;
1489
+ id: z.ZodOptional<z.ZodString>;
1490
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1491
+ }, z.core.$strip>;
1492
+ };
1493
+ INVALID_CURSOR: {
1494
+ status: number;
1495
+ };
1496
+ INVALID_REFERENCE: {
1497
+ status: number;
1498
+ data: z.ZodObject<{
1499
+ field: z.ZodString;
1500
+ }, z.core.$strip>;
1501
+ };
1502
+ INVALID_FILTER: {
1503
+ status: number;
1504
+ };
1505
+ FILTER_TOO_SLOW: {
1506
+ status: number;
1507
+ };
1508
+ BEYOND_OWN_PERMISSIONS: {
1509
+ status: number;
1510
+ data: z.ZodOptional<z.ZodObject<{
1511
+ permissions: z.ZodArray<z.ZodString>;
1512
+ }, z.core.$strip>>;
1513
+ };
1514
+ BUILTIN_ROLE: {
1515
+ status: number;
1516
+ };
1517
+ FIXED_ROLE: {
1518
+ status: number;
1519
+ };
1520
+ INVALID_LINK: {
1521
+ status: number;
1522
+ };
1523
+ INVALID_RECIPIENT: {
1524
+ status: number;
1525
+ };
1526
+ LAST_OWNER: {
1527
+ status: number;
1528
+ };
1529
+ LIMIT_EXCEEDED: {
1530
+ status: number;
1531
+ };
1532
+ NOT_INVITED: {
1533
+ status: number;
1534
+ };
1535
+ OWNER_ONLY: {
1536
+ status: number;
1537
+ };
1538
+ OWNER_ONLY_PERMISSION: {
1539
+ status: number;
1540
+ data: z.ZodObject<{
1541
+ permissions: z.ZodArray<z.ZodString>;
1542
+ }, z.core.$strip>;
1543
+ };
1544
+ OWN_ACCOUNT: {
1545
+ status: number;
1546
+ };
1547
+ OWN_ROLE: {
1548
+ status: number;
1549
+ };
1550
+ ROLE_IN_USE: {
1551
+ status: number;
1552
+ };
1553
+ ROLE_NOT_FOUND: {
1554
+ status: number;
1555
+ };
1556
+ UNKNOWN_PERMISSION: {
1557
+ status: number;
1558
+ data: z.ZodObject<{
1559
+ permissions: z.ZodArray<z.ZodString>;
1560
+ }, z.core.$strip>;
1561
+ };
1562
+ }>, Record<never, never>>;
375
1563
  };