@erxes/core-contract 0.1.0-v2.0 → 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 (102) hide show
  1. package/dist/activities.d.ts +1394 -139
  2. package/dist/activities.js +96 -40
  3. package/dist/audit.d.ts +1092 -48
  4. package/dist/audit.js +37 -23
  5. package/dist/auth.d.ts +2867 -61
  6. package/dist/auth.js +55 -25
  7. package/dist/automationRuns.d.ts +12 -13
  8. package/dist/automationRuns.js +15 -30
  9. package/dist/automations.d.ts +2474 -93
  10. package/dist/automations.js +56 -44
  11. package/dist/client.d.ts +30704 -0
  12. package/dist/client.js +62 -0
  13. package/dist/common.d.ts +28 -16
  14. package/dist/common.js +30 -22
  15. package/dist/companies.d.ts +1154 -44
  16. package/dist/companies.js +33 -17
  17. package/dist/contract/routes.json.js +1810 -0
  18. package/dist/customerAuth.d.ts +1661 -0
  19. package/dist/customerAuth.js +197 -0
  20. package/dist/customers.d.ts +1283 -65
  21. package/dist/customers.js +35 -25
  22. package/dist/{automationDefinition.d.ts → db/src/automationDefinition.d.ts} +4 -3
  23. package/dist/{automationDefinition.js → db/src/automationDefinition.js} +10 -32
  24. package/dist/db/src/enums.d.ts +8 -0
  25. package/dist/db/src/enums.js +334 -0
  26. package/dist/db/src/schema/auditStreams.js +6 -14
  27. package/dist/db/src/schema/authTokens.js +4 -6
  28. package/dist/db/src/schema/automations.d.ts +1 -0
  29. package/dist/db/src/schema/automations.js +15 -31
  30. package/dist/db/src/schema/common.d.ts +2 -6
  31. package/dist/db/src/schema/common.js +1 -24
  32. package/dist/db/src/schema/companies.js +6 -5
  33. package/dist/db/src/schema/customerAuth.js +101 -0
  34. package/dist/db/src/schema/customers.js +6 -6
  35. package/dist/db/src/schema/events.js +12 -60
  36. package/dist/db/src/schema/fieldValues.js +2 -2
  37. package/dist/db/src/schema/fields.js +10 -28
  38. package/dist/db/src/schema/index.d.ts +3 -0
  39. package/dist/db/src/schema/index.js +22 -20
  40. package/dist/db/src/schema/leadStages.js +5 -10
  41. package/dist/db/src/schema/leads.js +6 -11
  42. package/dist/db/src/schema/notes.js +92 -0
  43. package/dist/db/src/schema/oauth.js +3 -3
  44. package/dist/db/src/schema/payments.js +13 -23
  45. package/dist/db/src/schema/platform.js +11 -31
  46. package/dist/db/src/schema/plugins.js +10 -5
  47. package/dist/db/src/schema/products.js +7 -8
  48. package/dist/db/src/schema/rateLimits.js +7 -0
  49. package/dist/db/src/schema/saas.js +3 -9
  50. package/dist/db/src/schema/tags.js +6 -5
  51. package/dist/db/src/schema/transfer.js +13 -33
  52. package/dist/db/src/schema/trash.js +6 -7
  53. package/dist/db/src/schema/users.js +6 -10
  54. package/dist/db/src/schema/views.js +5 -13
  55. package/dist/db/src/schema/webhooks.js +7 -14
  56. package/dist/db/src/table.js +16 -2
  57. package/dist/errors.d.ts +516 -0
  58. package/dist/errors.js +218 -0
  59. package/dist/events.d.ts +585 -140
  60. package/dist/events.js +57 -42
  61. package/dist/fields.d.ts +1478 -66
  62. package/dist/fields.js +33 -47
  63. package/dist/files.d.ts +766 -62
  64. package/dist/files.js +34 -22
  65. package/dist/index.d.ts +25707 -902
  66. package/dist/index.js +22 -20
  67. package/dist/leads.d.ts +1108 -22
  68. package/dist/leads.js +39 -20
  69. package/dist/notifications.d.ts +691 -94
  70. package/dist/notifications.js +45 -91
  71. package/dist/organizations.d.ts +263 -5
  72. package/dist/organizations.js +21 -2
  73. package/dist/payments.d.ts +1794 -120
  74. package/dist/payments.js +58 -60
  75. package/dist/platform.d.ts +12 -20
  76. package/dist/platform.js +8 -21
  77. package/dist/plugins.d.ts +808 -71
  78. package/dist/plugins.js +66 -35
  79. package/dist/products.d.ts +1411 -53
  80. package/dist/products.js +40 -23
  81. package/dist/roles.d.ts +560 -8
  82. package/dist/roles.js +25 -11
  83. package/dist/routes.d.ts +8 -0
  84. package/dist/routes.js +13 -0
  85. package/dist/saas.d.ts +164 -8
  86. package/dist/saas.js +14 -29
  87. package/dist/tags.d.ts +344 -8
  88. package/dist/tags.js +16 -8
  89. package/dist/transfer.d.ts +1361 -36
  90. package/dist/transfer.js +47 -49
  91. package/dist/trash.d.ts +299 -23
  92. package/dist/trash.js +27 -20
  93. package/dist/users.d.ts +1233 -59
  94. package/dist/users.js +48 -39
  95. package/dist/values.d.ts +150 -0
  96. package/dist/values.js +139 -0
  97. package/dist/views.d.ts +404 -13
  98. package/dist/views.js +18 -28
  99. package/dist/webhooks.d.ts +791 -29
  100. package/dist/webhooks.js +36 -21
  101. package/package.json +9 -2
  102. package/dist/db/src/schema/jobs.js +0 -44
package/dist/audit.d.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  import { z } from "zod";
2
2
  export declare const AuditEntry: z.ZodObject<{
3
3
  id: z.ZodString;
4
+ actorType: z.ZodEnum<{
5
+ customer: "customer";
6
+ plugin: "plugin";
7
+ system: "system";
8
+ user: "user";
9
+ }>;
10
+ actorId: z.ZodNullable<z.ZodString>;
4
11
  action: z.ZodString;
5
12
  targetType: z.ZodNullable<z.ZodString>;
6
13
  targetId: z.ZodNullable<z.ZodString>;
@@ -10,28 +17,12 @@ export declare const AuditEntry: z.ZodObject<{
10
17
  ip: z.ZodNullable<z.ZodString>;
11
18
  userAgent: z.ZodNullable<z.ZodString>;
12
19
  source: z.ZodString;
13
- createdAt: z.ZodISODateTime;
14
- actor: z.ZodObject<{
15
- type: z.ZodEnum<{
16
- plugin: "plugin";
17
- system: "system";
18
- user: "user";
19
- }>;
20
- id: z.ZodNullable<z.ZodString>;
21
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>;
20
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
24
21
  }, {
25
22
  out: {};
26
23
  in: {};
27
24
  }>;
28
25
  export type AuditEntry = z.infer<typeof AuditEntry>;
29
- /** Who changed what in core (owners and admins). */
30
- export declare const AuditStreamFormat: z.ZodEnum<{
31
- datadog: "datadog";
32
- erxes: "erxes";
33
- splunk: "splunk";
34
- }>;
35
26
  export declare const AuditStream: z.ZodObject<{
36
27
  id: z.ZodString;
37
28
  name: z.ZodString;
@@ -47,10 +38,10 @@ export declare const AuditStream: z.ZodObject<{
47
38
  paused: "paused";
48
39
  }>;
49
40
  cursorSeq: z.ZodInt;
50
- lastDeliveredAt: z.ZodNullable<z.ZodISODateTime>;
41
+ lastDeliveredAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
51
42
  lastError: z.ZodNullable<z.ZodString>;
52
43
  consecutiveFailures: z.ZodInt;
53
- createdAt: z.ZodISODateTime;
44
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
54
45
  pending: z.ZodInt;
55
46
  }, {
56
47
  out: {};
@@ -81,6 +72,13 @@ export declare const auditContract: {
81
72
  }, z.core.$strip>, z.ZodObject<{
82
73
  data: z.ZodArray<z.ZodObject<{
83
74
  id: z.ZodString;
75
+ actorType: z.ZodEnum<{
76
+ customer: "customer";
77
+ plugin: "plugin";
78
+ system: "system";
79
+ user: "user";
80
+ }>;
81
+ actorId: z.ZodNullable<z.ZodString>;
84
82
  action: z.ZodString;
85
83
  targetType: z.ZodNullable<z.ZodString>;
86
84
  targetId: z.ZodNullable<z.ZodString>;
@@ -90,17 +88,7 @@ export declare const auditContract: {
90
88
  ip: z.ZodNullable<z.ZodString>;
91
89
  userAgent: z.ZodNullable<z.ZodString>;
92
90
  source: z.ZodString;
93
- createdAt: z.ZodISODateTime;
94
- actor: z.ZodObject<{
95
- type: z.ZodEnum<{
96
- plugin: "plugin";
97
- system: "system";
98
- user: "user";
99
- }>;
100
- id: z.ZodNullable<z.ZodString>;
101
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
102
- avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
103
- }, z.core.$strip>;
91
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
104
92
  }, {
105
93
  out: {};
106
94
  in: {};
@@ -113,7 +101,103 @@ export declare const auditContract: {
113
101
  }, z.core.$strip>;
114
102
  totalCount: z.ZodInt;
115
103
  totalCapped: z.ZodBoolean;
116
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
104
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
105
+ UNAUTHORIZED: {
106
+ status: number;
107
+ };
108
+ NOT_ALLOWED: {
109
+ status: number;
110
+ data: z.ZodOptional<z.ZodObject<{
111
+ permission: z.ZodString;
112
+ }, z.core.$strip>>;
113
+ };
114
+ PLUGIN_ONLY: {
115
+ status: number;
116
+ };
117
+ MEMBERS_ONLY: {
118
+ status: number;
119
+ };
120
+ ORG_REQUIRED: {
121
+ status: number;
122
+ };
123
+ SCOPE_REQUIRED: {
124
+ status: number;
125
+ };
126
+ SERVICE_TOKEN_REQUIRED: {
127
+ status: number;
128
+ };
129
+ ORGANIZATION_DISABLED: {
130
+ status: number;
131
+ data: z.ZodObject<{
132
+ manageUrl: z.ZodNullable<z.ZodString>;
133
+ }, z.core.$strip>;
134
+ };
135
+ NOT_IN_PLAN: {
136
+ status: number;
137
+ data: z.ZodOptional<z.ZodObject<{
138
+ manageUrl: z.ZodNullable<z.ZodString>;
139
+ }, z.core.$strip>>;
140
+ };
141
+ READ_ONLY: {
142
+ status: number;
143
+ };
144
+ TOO_MANY_REQUESTS: {
145
+ status: number;
146
+ };
147
+ INVALID_INPUT: {
148
+ status: number;
149
+ data: z.ZodObject<{
150
+ issues: z.ZodArray<z.ZodObject<{
151
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
152
+ message: z.ZodString;
153
+ }, z.core.$strip>>;
154
+ }, z.core.$strip>;
155
+ };
156
+ NOT_FOUND: {
157
+ status: number;
158
+ };
159
+ TAKEN: {
160
+ status: number;
161
+ data: z.ZodObject<{
162
+ field: z.ZodString;
163
+ id: z.ZodOptional<z.ZodString>;
164
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
165
+ }, z.core.$strip>;
166
+ };
167
+ INVALID_CURSOR: {
168
+ status: number;
169
+ };
170
+ INVALID_REFERENCE: {
171
+ status: number;
172
+ data: z.ZodObject<{
173
+ field: z.ZodString;
174
+ }, z.core.$strip>;
175
+ };
176
+ INVALID_FILTER: {
177
+ status: number;
178
+ };
179
+ FILTER_TOO_SLOW: {
180
+ status: number;
181
+ };
182
+ INVALID_ACTOR: {
183
+ status: number;
184
+ };
185
+ INVALID_OWNER: {
186
+ status: number;
187
+ };
188
+ INVALID_RECIPIENT: {
189
+ status: number;
190
+ };
191
+ INVALID_TYPE: {
192
+ status: number;
193
+ };
194
+ INVALID_URL: {
195
+ status: number;
196
+ };
197
+ LIMIT_EXCEEDED: {
198
+ status: number;
199
+ };
200
+ }>, Record<never, never>>;
117
201
  record: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
118
202
  entries: z.ZodArray<z.ZodObject<{
119
203
  action: z.ZodString;
@@ -128,7 +212,103 @@ export declare const auditContract: {
128
212
  }, z.core.$strip>>;
129
213
  }, z.core.$strip>, z.ZodObject<{
130
214
  recorded: z.ZodInt;
131
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
215
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
216
+ UNAUTHORIZED: {
217
+ status: number;
218
+ };
219
+ NOT_ALLOWED: {
220
+ status: number;
221
+ data: z.ZodOptional<z.ZodObject<{
222
+ permission: z.ZodString;
223
+ }, z.core.$strip>>;
224
+ };
225
+ PLUGIN_ONLY: {
226
+ status: number;
227
+ };
228
+ MEMBERS_ONLY: {
229
+ status: number;
230
+ };
231
+ ORG_REQUIRED: {
232
+ status: number;
233
+ };
234
+ SCOPE_REQUIRED: {
235
+ status: number;
236
+ };
237
+ SERVICE_TOKEN_REQUIRED: {
238
+ status: number;
239
+ };
240
+ ORGANIZATION_DISABLED: {
241
+ status: number;
242
+ data: z.ZodObject<{
243
+ manageUrl: z.ZodNullable<z.ZodString>;
244
+ }, z.core.$strip>;
245
+ };
246
+ NOT_IN_PLAN: {
247
+ status: number;
248
+ data: z.ZodOptional<z.ZodObject<{
249
+ manageUrl: z.ZodNullable<z.ZodString>;
250
+ }, z.core.$strip>>;
251
+ };
252
+ READ_ONLY: {
253
+ status: number;
254
+ };
255
+ TOO_MANY_REQUESTS: {
256
+ status: number;
257
+ };
258
+ INVALID_INPUT: {
259
+ status: number;
260
+ data: z.ZodObject<{
261
+ issues: z.ZodArray<z.ZodObject<{
262
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
263
+ message: z.ZodString;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>;
266
+ };
267
+ NOT_FOUND: {
268
+ status: number;
269
+ };
270
+ TAKEN: {
271
+ status: number;
272
+ data: z.ZodObject<{
273
+ field: z.ZodString;
274
+ id: z.ZodOptional<z.ZodString>;
275
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
276
+ }, z.core.$strip>;
277
+ };
278
+ INVALID_CURSOR: {
279
+ status: number;
280
+ };
281
+ INVALID_REFERENCE: {
282
+ status: number;
283
+ data: z.ZodObject<{
284
+ field: z.ZodString;
285
+ }, z.core.$strip>;
286
+ };
287
+ INVALID_FILTER: {
288
+ status: number;
289
+ };
290
+ FILTER_TOO_SLOW: {
291
+ status: number;
292
+ };
293
+ INVALID_ACTOR: {
294
+ status: number;
295
+ };
296
+ INVALID_OWNER: {
297
+ status: number;
298
+ };
299
+ INVALID_RECIPIENT: {
300
+ status: number;
301
+ };
302
+ INVALID_TYPE: {
303
+ status: number;
304
+ };
305
+ INVALID_URL: {
306
+ status: number;
307
+ };
308
+ LIMIT_EXCEEDED: {
309
+ status: number;
310
+ };
311
+ }>, Record<never, never>>;
132
312
  verify: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
133
313
  ok: z.ZodBoolean;
134
314
  checked: z.ZodInt;
@@ -139,7 +319,103 @@ export declare const auditContract: {
139
319
  latestAt: z.ZodNullable<z.ZodISODateTime>;
140
320
  mismatchAt: z.ZodNullable<z.ZodInt>;
141
321
  }, z.core.$strip>;
142
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
322
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
323
+ UNAUTHORIZED: {
324
+ status: number;
325
+ };
326
+ NOT_ALLOWED: {
327
+ status: number;
328
+ data: z.ZodOptional<z.ZodObject<{
329
+ permission: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ };
332
+ PLUGIN_ONLY: {
333
+ status: number;
334
+ };
335
+ MEMBERS_ONLY: {
336
+ status: number;
337
+ };
338
+ ORG_REQUIRED: {
339
+ status: number;
340
+ };
341
+ SCOPE_REQUIRED: {
342
+ status: number;
343
+ };
344
+ SERVICE_TOKEN_REQUIRED: {
345
+ status: number;
346
+ };
347
+ ORGANIZATION_DISABLED: {
348
+ status: number;
349
+ data: z.ZodObject<{
350
+ manageUrl: z.ZodNullable<z.ZodString>;
351
+ }, z.core.$strip>;
352
+ };
353
+ NOT_IN_PLAN: {
354
+ status: number;
355
+ data: z.ZodOptional<z.ZodObject<{
356
+ manageUrl: z.ZodNullable<z.ZodString>;
357
+ }, z.core.$strip>>;
358
+ };
359
+ READ_ONLY: {
360
+ status: number;
361
+ };
362
+ TOO_MANY_REQUESTS: {
363
+ status: number;
364
+ };
365
+ INVALID_INPUT: {
366
+ status: number;
367
+ data: z.ZodObject<{
368
+ issues: z.ZodArray<z.ZodObject<{
369
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
370
+ message: z.ZodString;
371
+ }, z.core.$strip>>;
372
+ }, z.core.$strip>;
373
+ };
374
+ NOT_FOUND: {
375
+ status: number;
376
+ };
377
+ TAKEN: {
378
+ status: number;
379
+ data: z.ZodObject<{
380
+ field: z.ZodString;
381
+ id: z.ZodOptional<z.ZodString>;
382
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
383
+ }, z.core.$strip>;
384
+ };
385
+ INVALID_CURSOR: {
386
+ status: number;
387
+ };
388
+ INVALID_REFERENCE: {
389
+ status: number;
390
+ data: z.ZodObject<{
391
+ field: z.ZodString;
392
+ }, z.core.$strip>;
393
+ };
394
+ INVALID_FILTER: {
395
+ status: number;
396
+ };
397
+ FILTER_TOO_SLOW: {
398
+ status: number;
399
+ };
400
+ INVALID_ACTOR: {
401
+ status: number;
402
+ };
403
+ INVALID_OWNER: {
404
+ status: number;
405
+ };
406
+ INVALID_RECIPIENT: {
407
+ status: number;
408
+ };
409
+ INVALID_TYPE: {
410
+ status: number;
411
+ };
412
+ INVALID_URL: {
413
+ status: number;
414
+ };
415
+ LIMIT_EXCEEDED: {
416
+ status: number;
417
+ };
418
+ }>, Record<never, never>>;
143
419
  checkpoints: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
144
420
  after: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
145
421
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -149,19 +425,307 @@ export declare const auditContract: {
149
425
  hash: z.ZodString;
150
426
  keyId: z.ZodString;
151
427
  signature: z.ZodString;
152
- createdAt: z.ZodISODateTime;
428
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
153
429
  }, z.core.$strip>>;
154
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
430
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
431
+ UNAUTHORIZED: {
432
+ status: number;
433
+ };
434
+ NOT_ALLOWED: {
435
+ status: number;
436
+ data: z.ZodOptional<z.ZodObject<{
437
+ permission: z.ZodString;
438
+ }, z.core.$strip>>;
439
+ };
440
+ PLUGIN_ONLY: {
441
+ status: number;
442
+ };
443
+ MEMBERS_ONLY: {
444
+ status: number;
445
+ };
446
+ ORG_REQUIRED: {
447
+ status: number;
448
+ };
449
+ SCOPE_REQUIRED: {
450
+ status: number;
451
+ };
452
+ SERVICE_TOKEN_REQUIRED: {
453
+ status: number;
454
+ };
455
+ ORGANIZATION_DISABLED: {
456
+ status: number;
457
+ data: z.ZodObject<{
458
+ manageUrl: z.ZodNullable<z.ZodString>;
459
+ }, z.core.$strip>;
460
+ };
461
+ NOT_IN_PLAN: {
462
+ status: number;
463
+ data: z.ZodOptional<z.ZodObject<{
464
+ manageUrl: z.ZodNullable<z.ZodString>;
465
+ }, z.core.$strip>>;
466
+ };
467
+ READ_ONLY: {
468
+ status: number;
469
+ };
470
+ TOO_MANY_REQUESTS: {
471
+ status: number;
472
+ };
473
+ INVALID_INPUT: {
474
+ status: number;
475
+ data: z.ZodObject<{
476
+ issues: z.ZodArray<z.ZodObject<{
477
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
478
+ message: z.ZodString;
479
+ }, z.core.$strip>>;
480
+ }, z.core.$strip>;
481
+ };
482
+ NOT_FOUND: {
483
+ status: number;
484
+ };
485
+ TAKEN: {
486
+ status: number;
487
+ data: z.ZodObject<{
488
+ field: z.ZodString;
489
+ id: z.ZodOptional<z.ZodString>;
490
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
491
+ }, z.core.$strip>;
492
+ };
493
+ INVALID_CURSOR: {
494
+ status: number;
495
+ };
496
+ INVALID_REFERENCE: {
497
+ status: number;
498
+ data: z.ZodObject<{
499
+ field: z.ZodString;
500
+ }, z.core.$strip>;
501
+ };
502
+ INVALID_FILTER: {
503
+ status: number;
504
+ };
505
+ FILTER_TOO_SLOW: {
506
+ status: number;
507
+ };
508
+ INVALID_ACTOR: {
509
+ status: number;
510
+ };
511
+ INVALID_OWNER: {
512
+ status: number;
513
+ };
514
+ INVALID_RECIPIENT: {
515
+ status: number;
516
+ };
517
+ INVALID_TYPE: {
518
+ status: number;
519
+ };
520
+ INVALID_URL: {
521
+ status: number;
522
+ };
523
+ LIMIT_EXCEEDED: {
524
+ status: number;
525
+ };
526
+ }>, Record<never, never>>;
155
527
  settings: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
156
528
  retentionDays: z.ZodInt;
157
529
  maxRetentionDays: z.ZodInt;
158
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
530
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
531
+ UNAUTHORIZED: {
532
+ status: number;
533
+ };
534
+ NOT_ALLOWED: {
535
+ status: number;
536
+ data: z.ZodOptional<z.ZodObject<{
537
+ permission: z.ZodString;
538
+ }, z.core.$strip>>;
539
+ };
540
+ PLUGIN_ONLY: {
541
+ status: number;
542
+ };
543
+ MEMBERS_ONLY: {
544
+ status: number;
545
+ };
546
+ ORG_REQUIRED: {
547
+ status: number;
548
+ };
549
+ SCOPE_REQUIRED: {
550
+ status: number;
551
+ };
552
+ SERVICE_TOKEN_REQUIRED: {
553
+ status: number;
554
+ };
555
+ ORGANIZATION_DISABLED: {
556
+ status: number;
557
+ data: z.ZodObject<{
558
+ manageUrl: z.ZodNullable<z.ZodString>;
559
+ }, z.core.$strip>;
560
+ };
561
+ NOT_IN_PLAN: {
562
+ status: number;
563
+ data: z.ZodOptional<z.ZodObject<{
564
+ manageUrl: z.ZodNullable<z.ZodString>;
565
+ }, z.core.$strip>>;
566
+ };
567
+ READ_ONLY: {
568
+ status: number;
569
+ };
570
+ TOO_MANY_REQUESTS: {
571
+ status: number;
572
+ };
573
+ INVALID_INPUT: {
574
+ status: number;
575
+ data: z.ZodObject<{
576
+ issues: z.ZodArray<z.ZodObject<{
577
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
578
+ message: z.ZodString;
579
+ }, z.core.$strip>>;
580
+ }, z.core.$strip>;
581
+ };
582
+ NOT_FOUND: {
583
+ status: number;
584
+ };
585
+ TAKEN: {
586
+ status: number;
587
+ data: z.ZodObject<{
588
+ field: z.ZodString;
589
+ id: z.ZodOptional<z.ZodString>;
590
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
591
+ }, z.core.$strip>;
592
+ };
593
+ INVALID_CURSOR: {
594
+ status: number;
595
+ };
596
+ INVALID_REFERENCE: {
597
+ status: number;
598
+ data: z.ZodObject<{
599
+ field: z.ZodString;
600
+ }, z.core.$strip>;
601
+ };
602
+ INVALID_FILTER: {
603
+ status: number;
604
+ };
605
+ FILTER_TOO_SLOW: {
606
+ status: number;
607
+ };
608
+ INVALID_ACTOR: {
609
+ status: number;
610
+ };
611
+ INVALID_OWNER: {
612
+ status: number;
613
+ };
614
+ INVALID_RECIPIENT: {
615
+ status: number;
616
+ };
617
+ INVALID_TYPE: {
618
+ status: number;
619
+ };
620
+ INVALID_URL: {
621
+ status: number;
622
+ };
623
+ LIMIT_EXCEEDED: {
624
+ status: number;
625
+ };
626
+ }>, Record<never, never>>;
159
627
  updateSettings: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
160
628
  retentionDays: z.ZodInt;
161
629
  }, z.core.$strip>, z.ZodObject<{
162
630
  retentionDays: z.ZodInt;
163
631
  maxRetentionDays: z.ZodInt;
164
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
632
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
633
+ UNAUTHORIZED: {
634
+ status: number;
635
+ };
636
+ NOT_ALLOWED: {
637
+ status: number;
638
+ data: z.ZodOptional<z.ZodObject<{
639
+ permission: z.ZodString;
640
+ }, z.core.$strip>>;
641
+ };
642
+ PLUGIN_ONLY: {
643
+ status: number;
644
+ };
645
+ MEMBERS_ONLY: {
646
+ status: number;
647
+ };
648
+ ORG_REQUIRED: {
649
+ status: number;
650
+ };
651
+ SCOPE_REQUIRED: {
652
+ status: number;
653
+ };
654
+ SERVICE_TOKEN_REQUIRED: {
655
+ status: number;
656
+ };
657
+ ORGANIZATION_DISABLED: {
658
+ status: number;
659
+ data: z.ZodObject<{
660
+ manageUrl: z.ZodNullable<z.ZodString>;
661
+ }, z.core.$strip>;
662
+ };
663
+ NOT_IN_PLAN: {
664
+ status: number;
665
+ data: z.ZodOptional<z.ZodObject<{
666
+ manageUrl: z.ZodNullable<z.ZodString>;
667
+ }, z.core.$strip>>;
668
+ };
669
+ READ_ONLY: {
670
+ status: number;
671
+ };
672
+ TOO_MANY_REQUESTS: {
673
+ status: number;
674
+ };
675
+ INVALID_INPUT: {
676
+ status: number;
677
+ data: z.ZodObject<{
678
+ issues: z.ZodArray<z.ZodObject<{
679
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
680
+ message: z.ZodString;
681
+ }, z.core.$strip>>;
682
+ }, z.core.$strip>;
683
+ };
684
+ NOT_FOUND: {
685
+ status: number;
686
+ };
687
+ TAKEN: {
688
+ status: number;
689
+ data: z.ZodObject<{
690
+ field: z.ZodString;
691
+ id: z.ZodOptional<z.ZodString>;
692
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
693
+ }, z.core.$strip>;
694
+ };
695
+ INVALID_CURSOR: {
696
+ status: number;
697
+ };
698
+ INVALID_REFERENCE: {
699
+ status: number;
700
+ data: z.ZodObject<{
701
+ field: z.ZodString;
702
+ }, z.core.$strip>;
703
+ };
704
+ INVALID_FILTER: {
705
+ status: number;
706
+ };
707
+ FILTER_TOO_SLOW: {
708
+ status: number;
709
+ };
710
+ INVALID_ACTOR: {
711
+ status: number;
712
+ };
713
+ INVALID_OWNER: {
714
+ status: number;
715
+ };
716
+ INVALID_RECIPIENT: {
717
+ status: number;
718
+ };
719
+ INVALID_TYPE: {
720
+ status: number;
721
+ };
722
+ INVALID_URL: {
723
+ status: number;
724
+ };
725
+ LIMIT_EXCEEDED: {
726
+ status: number;
727
+ };
728
+ }>, Record<never, never>>;
165
729
  streams: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
166
730
  data: z.ZodArray<z.ZodObject<{
167
731
  id: z.ZodString;
@@ -178,16 +742,112 @@ export declare const auditContract: {
178
742
  paused: "paused";
179
743
  }>;
180
744
  cursorSeq: z.ZodInt;
181
- lastDeliveredAt: z.ZodNullable<z.ZodISODateTime>;
745
+ lastDeliveredAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
182
746
  lastError: z.ZodNullable<z.ZodString>;
183
747
  consecutiveFailures: z.ZodInt;
184
- createdAt: z.ZodISODateTime;
748
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
185
749
  pending: z.ZodInt;
186
750
  }, {
187
751
  out: {};
188
752
  in: {};
189
753
  }>>;
190
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
754
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
755
+ UNAUTHORIZED: {
756
+ status: number;
757
+ };
758
+ NOT_ALLOWED: {
759
+ status: number;
760
+ data: z.ZodOptional<z.ZodObject<{
761
+ permission: z.ZodString;
762
+ }, z.core.$strip>>;
763
+ };
764
+ PLUGIN_ONLY: {
765
+ status: number;
766
+ };
767
+ MEMBERS_ONLY: {
768
+ status: number;
769
+ };
770
+ ORG_REQUIRED: {
771
+ status: number;
772
+ };
773
+ SCOPE_REQUIRED: {
774
+ status: number;
775
+ };
776
+ SERVICE_TOKEN_REQUIRED: {
777
+ status: number;
778
+ };
779
+ ORGANIZATION_DISABLED: {
780
+ status: number;
781
+ data: z.ZodObject<{
782
+ manageUrl: z.ZodNullable<z.ZodString>;
783
+ }, z.core.$strip>;
784
+ };
785
+ NOT_IN_PLAN: {
786
+ status: number;
787
+ data: z.ZodOptional<z.ZodObject<{
788
+ manageUrl: z.ZodNullable<z.ZodString>;
789
+ }, z.core.$strip>>;
790
+ };
791
+ READ_ONLY: {
792
+ status: number;
793
+ };
794
+ TOO_MANY_REQUESTS: {
795
+ status: number;
796
+ };
797
+ INVALID_INPUT: {
798
+ status: number;
799
+ data: z.ZodObject<{
800
+ issues: z.ZodArray<z.ZodObject<{
801
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
802
+ message: z.ZodString;
803
+ }, z.core.$strip>>;
804
+ }, z.core.$strip>;
805
+ };
806
+ NOT_FOUND: {
807
+ status: number;
808
+ };
809
+ TAKEN: {
810
+ status: number;
811
+ data: z.ZodObject<{
812
+ field: z.ZodString;
813
+ id: z.ZodOptional<z.ZodString>;
814
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
815
+ }, z.core.$strip>;
816
+ };
817
+ INVALID_CURSOR: {
818
+ status: number;
819
+ };
820
+ INVALID_REFERENCE: {
821
+ status: number;
822
+ data: z.ZodObject<{
823
+ field: z.ZodString;
824
+ }, z.core.$strip>;
825
+ };
826
+ INVALID_FILTER: {
827
+ status: number;
828
+ };
829
+ FILTER_TOO_SLOW: {
830
+ status: number;
831
+ };
832
+ INVALID_ACTOR: {
833
+ status: number;
834
+ };
835
+ INVALID_OWNER: {
836
+ status: number;
837
+ };
838
+ INVALID_RECIPIENT: {
839
+ status: number;
840
+ };
841
+ INVALID_TYPE: {
842
+ status: number;
843
+ };
844
+ INVALID_URL: {
845
+ status: number;
846
+ };
847
+ LIMIT_EXCEEDED: {
848
+ status: number;
849
+ };
850
+ }>, Record<never, never>>;
191
851
  createStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
192
852
  name: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
193
853
  url: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
@@ -223,17 +883,113 @@ export declare const auditContract: {
223
883
  paused: "paused";
224
884
  }>;
225
885
  cursorSeq: z.ZodInt;
226
- lastDeliveredAt: z.ZodNullable<z.ZodISODateTime>;
886
+ lastDeliveredAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
227
887
  lastError: z.ZodNullable<z.ZodString>;
228
888
  consecutiveFailures: z.ZodInt;
229
- createdAt: z.ZodISODateTime;
889
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
230
890
  pending: z.ZodInt;
231
891
  }, {
232
892
  out: {};
233
893
  in: {};
234
894
  }>;
235
895
  secret: z.ZodString;
236
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
896
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
897
+ UNAUTHORIZED: {
898
+ status: number;
899
+ };
900
+ NOT_ALLOWED: {
901
+ status: number;
902
+ data: z.ZodOptional<z.ZodObject<{
903
+ permission: z.ZodString;
904
+ }, z.core.$strip>>;
905
+ };
906
+ PLUGIN_ONLY: {
907
+ status: number;
908
+ };
909
+ MEMBERS_ONLY: {
910
+ status: number;
911
+ };
912
+ ORG_REQUIRED: {
913
+ status: number;
914
+ };
915
+ SCOPE_REQUIRED: {
916
+ status: number;
917
+ };
918
+ SERVICE_TOKEN_REQUIRED: {
919
+ status: number;
920
+ };
921
+ ORGANIZATION_DISABLED: {
922
+ status: number;
923
+ data: z.ZodObject<{
924
+ manageUrl: z.ZodNullable<z.ZodString>;
925
+ }, z.core.$strip>;
926
+ };
927
+ NOT_IN_PLAN: {
928
+ status: number;
929
+ data: z.ZodOptional<z.ZodObject<{
930
+ manageUrl: z.ZodNullable<z.ZodString>;
931
+ }, z.core.$strip>>;
932
+ };
933
+ READ_ONLY: {
934
+ status: number;
935
+ };
936
+ TOO_MANY_REQUESTS: {
937
+ status: number;
938
+ };
939
+ INVALID_INPUT: {
940
+ status: number;
941
+ data: z.ZodObject<{
942
+ issues: z.ZodArray<z.ZodObject<{
943
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
944
+ message: z.ZodString;
945
+ }, z.core.$strip>>;
946
+ }, z.core.$strip>;
947
+ };
948
+ NOT_FOUND: {
949
+ status: number;
950
+ };
951
+ TAKEN: {
952
+ status: number;
953
+ data: z.ZodObject<{
954
+ field: z.ZodString;
955
+ id: z.ZodOptional<z.ZodString>;
956
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
957
+ }, z.core.$strip>;
958
+ };
959
+ INVALID_CURSOR: {
960
+ status: number;
961
+ };
962
+ INVALID_REFERENCE: {
963
+ status: number;
964
+ data: z.ZodObject<{
965
+ field: z.ZodString;
966
+ }, z.core.$strip>;
967
+ };
968
+ INVALID_FILTER: {
969
+ status: number;
970
+ };
971
+ FILTER_TOO_SLOW: {
972
+ status: number;
973
+ };
974
+ INVALID_ACTOR: {
975
+ status: number;
976
+ };
977
+ INVALID_OWNER: {
978
+ status: number;
979
+ };
980
+ INVALID_RECIPIENT: {
981
+ status: number;
982
+ };
983
+ INVALID_TYPE: {
984
+ status: number;
985
+ };
986
+ INVALID_URL: {
987
+ status: number;
988
+ };
989
+ LIMIT_EXCEEDED: {
990
+ status: number;
991
+ };
992
+ }>, Record<never, never>>;
237
993
  updateStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
238
994
  name: z.ZodOptional<z.ZodString>;
239
995
  url: z.ZodOptional<z.ZodString>;
@@ -269,20 +1025,212 @@ export declare const auditContract: {
269
1025
  paused: "paused";
270
1026
  }>;
271
1027
  cursorSeq: z.ZodInt;
272
- lastDeliveredAt: z.ZodNullable<z.ZodISODateTime>;
1028
+ lastDeliveredAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
273
1029
  lastError: z.ZodNullable<z.ZodString>;
274
1030
  consecutiveFailures: z.ZodInt;
275
- createdAt: z.ZodISODateTime;
1031
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
276
1032
  pending: z.ZodInt;
277
1033
  }, {
278
1034
  out: {};
279
1035
  in: {};
280
- }>, Record<never, never>, Record<never, never>>;
1036
+ }>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1037
+ UNAUTHORIZED: {
1038
+ status: number;
1039
+ };
1040
+ NOT_ALLOWED: {
1041
+ status: number;
1042
+ data: z.ZodOptional<z.ZodObject<{
1043
+ permission: z.ZodString;
1044
+ }, z.core.$strip>>;
1045
+ };
1046
+ PLUGIN_ONLY: {
1047
+ status: number;
1048
+ };
1049
+ MEMBERS_ONLY: {
1050
+ status: number;
1051
+ };
1052
+ ORG_REQUIRED: {
1053
+ status: number;
1054
+ };
1055
+ SCOPE_REQUIRED: {
1056
+ status: number;
1057
+ };
1058
+ SERVICE_TOKEN_REQUIRED: {
1059
+ status: number;
1060
+ };
1061
+ ORGANIZATION_DISABLED: {
1062
+ status: number;
1063
+ data: z.ZodObject<{
1064
+ manageUrl: z.ZodNullable<z.ZodString>;
1065
+ }, z.core.$strip>;
1066
+ };
1067
+ NOT_IN_PLAN: {
1068
+ status: number;
1069
+ data: z.ZodOptional<z.ZodObject<{
1070
+ manageUrl: z.ZodNullable<z.ZodString>;
1071
+ }, z.core.$strip>>;
1072
+ };
1073
+ READ_ONLY: {
1074
+ status: number;
1075
+ };
1076
+ TOO_MANY_REQUESTS: {
1077
+ status: number;
1078
+ };
1079
+ INVALID_INPUT: {
1080
+ status: number;
1081
+ data: z.ZodObject<{
1082
+ issues: z.ZodArray<z.ZodObject<{
1083
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1084
+ message: z.ZodString;
1085
+ }, z.core.$strip>>;
1086
+ }, z.core.$strip>;
1087
+ };
1088
+ NOT_FOUND: {
1089
+ status: number;
1090
+ };
1091
+ TAKEN: {
1092
+ status: number;
1093
+ data: z.ZodObject<{
1094
+ field: z.ZodString;
1095
+ id: z.ZodOptional<z.ZodString>;
1096
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1097
+ }, z.core.$strip>;
1098
+ };
1099
+ INVALID_CURSOR: {
1100
+ status: number;
1101
+ };
1102
+ INVALID_REFERENCE: {
1103
+ status: number;
1104
+ data: z.ZodObject<{
1105
+ field: z.ZodString;
1106
+ }, z.core.$strip>;
1107
+ };
1108
+ INVALID_FILTER: {
1109
+ status: number;
1110
+ };
1111
+ FILTER_TOO_SLOW: {
1112
+ status: number;
1113
+ };
1114
+ INVALID_ACTOR: {
1115
+ status: number;
1116
+ };
1117
+ INVALID_OWNER: {
1118
+ status: number;
1119
+ };
1120
+ INVALID_RECIPIENT: {
1121
+ status: number;
1122
+ };
1123
+ INVALID_TYPE: {
1124
+ status: number;
1125
+ };
1126
+ INVALID_URL: {
1127
+ status: number;
1128
+ };
1129
+ LIMIT_EXCEEDED: {
1130
+ status: number;
1131
+ };
1132
+ }>, Record<never, never>>;
281
1133
  removeStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
282
1134
  id: z.ZodString;
283
1135
  }, z.core.$strip>, z.ZodObject<{
284
1136
  ok: z.ZodLiteral<true>;
285
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1137
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1138
+ UNAUTHORIZED: {
1139
+ status: number;
1140
+ };
1141
+ NOT_ALLOWED: {
1142
+ status: number;
1143
+ data: z.ZodOptional<z.ZodObject<{
1144
+ permission: z.ZodString;
1145
+ }, z.core.$strip>>;
1146
+ };
1147
+ PLUGIN_ONLY: {
1148
+ status: number;
1149
+ };
1150
+ MEMBERS_ONLY: {
1151
+ status: number;
1152
+ };
1153
+ ORG_REQUIRED: {
1154
+ status: number;
1155
+ };
1156
+ SCOPE_REQUIRED: {
1157
+ status: number;
1158
+ };
1159
+ SERVICE_TOKEN_REQUIRED: {
1160
+ status: number;
1161
+ };
1162
+ ORGANIZATION_DISABLED: {
1163
+ status: number;
1164
+ data: z.ZodObject<{
1165
+ manageUrl: z.ZodNullable<z.ZodString>;
1166
+ }, z.core.$strip>;
1167
+ };
1168
+ NOT_IN_PLAN: {
1169
+ status: number;
1170
+ data: z.ZodOptional<z.ZodObject<{
1171
+ manageUrl: z.ZodNullable<z.ZodString>;
1172
+ }, z.core.$strip>>;
1173
+ };
1174
+ READ_ONLY: {
1175
+ status: number;
1176
+ };
1177
+ TOO_MANY_REQUESTS: {
1178
+ status: number;
1179
+ };
1180
+ INVALID_INPUT: {
1181
+ status: number;
1182
+ data: z.ZodObject<{
1183
+ issues: z.ZodArray<z.ZodObject<{
1184
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1185
+ message: z.ZodString;
1186
+ }, z.core.$strip>>;
1187
+ }, z.core.$strip>;
1188
+ };
1189
+ NOT_FOUND: {
1190
+ status: number;
1191
+ };
1192
+ TAKEN: {
1193
+ status: number;
1194
+ data: z.ZodObject<{
1195
+ field: z.ZodString;
1196
+ id: z.ZodOptional<z.ZodString>;
1197
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1198
+ }, z.core.$strip>;
1199
+ };
1200
+ INVALID_CURSOR: {
1201
+ status: number;
1202
+ };
1203
+ INVALID_REFERENCE: {
1204
+ status: number;
1205
+ data: z.ZodObject<{
1206
+ field: z.ZodString;
1207
+ }, z.core.$strip>;
1208
+ };
1209
+ INVALID_FILTER: {
1210
+ status: number;
1211
+ };
1212
+ FILTER_TOO_SLOW: {
1213
+ status: number;
1214
+ };
1215
+ INVALID_ACTOR: {
1216
+ status: number;
1217
+ };
1218
+ INVALID_OWNER: {
1219
+ status: number;
1220
+ };
1221
+ INVALID_RECIPIENT: {
1222
+ status: number;
1223
+ };
1224
+ INVALID_TYPE: {
1225
+ status: number;
1226
+ };
1227
+ INVALID_URL: {
1228
+ status: number;
1229
+ };
1230
+ LIMIT_EXCEEDED: {
1231
+ status: number;
1232
+ };
1233
+ }>, Record<never, never>>;
286
1234
  testStream: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
287
1235
  id: z.ZodString;
288
1236
  }, z.core.$strip>, z.ZodObject<{
@@ -291,5 +1239,101 @@ export declare const auditContract: {
291
1239
  body: z.ZodNullable<z.ZodString>;
292
1240
  error: z.ZodNullable<z.ZodString>;
293
1241
  ms: z.ZodNullable<z.ZodNumber>;
294
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1242
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1243
+ UNAUTHORIZED: {
1244
+ status: number;
1245
+ };
1246
+ NOT_ALLOWED: {
1247
+ status: number;
1248
+ data: z.ZodOptional<z.ZodObject<{
1249
+ permission: z.ZodString;
1250
+ }, z.core.$strip>>;
1251
+ };
1252
+ PLUGIN_ONLY: {
1253
+ status: number;
1254
+ };
1255
+ MEMBERS_ONLY: {
1256
+ status: number;
1257
+ };
1258
+ ORG_REQUIRED: {
1259
+ status: number;
1260
+ };
1261
+ SCOPE_REQUIRED: {
1262
+ status: number;
1263
+ };
1264
+ SERVICE_TOKEN_REQUIRED: {
1265
+ status: number;
1266
+ };
1267
+ ORGANIZATION_DISABLED: {
1268
+ status: number;
1269
+ data: z.ZodObject<{
1270
+ manageUrl: z.ZodNullable<z.ZodString>;
1271
+ }, z.core.$strip>;
1272
+ };
1273
+ NOT_IN_PLAN: {
1274
+ status: number;
1275
+ data: z.ZodOptional<z.ZodObject<{
1276
+ manageUrl: z.ZodNullable<z.ZodString>;
1277
+ }, z.core.$strip>>;
1278
+ };
1279
+ READ_ONLY: {
1280
+ status: number;
1281
+ };
1282
+ TOO_MANY_REQUESTS: {
1283
+ status: number;
1284
+ };
1285
+ INVALID_INPUT: {
1286
+ status: number;
1287
+ data: z.ZodObject<{
1288
+ issues: z.ZodArray<z.ZodObject<{
1289
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1290
+ message: z.ZodString;
1291
+ }, z.core.$strip>>;
1292
+ }, z.core.$strip>;
1293
+ };
1294
+ NOT_FOUND: {
1295
+ status: number;
1296
+ };
1297
+ TAKEN: {
1298
+ status: number;
1299
+ data: z.ZodObject<{
1300
+ field: z.ZodString;
1301
+ id: z.ZodOptional<z.ZodString>;
1302
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1303
+ }, z.core.$strip>;
1304
+ };
1305
+ INVALID_CURSOR: {
1306
+ status: number;
1307
+ };
1308
+ INVALID_REFERENCE: {
1309
+ status: number;
1310
+ data: z.ZodObject<{
1311
+ field: z.ZodString;
1312
+ }, z.core.$strip>;
1313
+ };
1314
+ INVALID_FILTER: {
1315
+ status: number;
1316
+ };
1317
+ FILTER_TOO_SLOW: {
1318
+ status: number;
1319
+ };
1320
+ INVALID_ACTOR: {
1321
+ status: number;
1322
+ };
1323
+ INVALID_OWNER: {
1324
+ status: number;
1325
+ };
1326
+ INVALID_RECIPIENT: {
1327
+ status: number;
1328
+ };
1329
+ INVALID_TYPE: {
1330
+ status: number;
1331
+ };
1332
+ INVALID_URL: {
1333
+ status: number;
1334
+ };
1335
+ LIMIT_EXCEEDED: {
1336
+ status: number;
1337
+ };
1338
+ }>, Record<never, never>>;
295
1339
  };