@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/auth.d.ts CHANGED
@@ -22,10 +22,10 @@ export declare const Session: z.ZodObject<{
22
22
  disabled: "disabled";
23
23
  invited: "invited";
24
24
  }>;
25
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
26
- createdAt: z.ZodISODateTime;
27
- updatedAt: z.ZodISODateTime;
28
- twoFactorEnabled: z.ZodBoolean;
25
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
26
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
27
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
28
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
29
29
  }, {
30
30
  out: {};
31
31
  in: {};
@@ -36,7 +36,7 @@ export declare const Session: z.ZodObject<{
36
36
  name: z.ZodString;
37
37
  country: z.ZodNullable<z.ZodString>;
38
38
  currency: z.ZodString;
39
- createdAt: z.ZodISODateTime;
39
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
40
40
  }, {
41
41
  out: {};
42
42
  in: {};
@@ -44,12 +44,166 @@ export declare const Session: z.ZodObject<{
44
44
  permissions: z.ZodArray<z.ZodString>;
45
45
  }, z.core.$strip>;
46
46
  export type Session = z.infer<typeof Session>;
47
- /** At least 8 characters with a lower-case letter, an upper-case letter and a digit (as old erxes). */
48
- export declare const NewPassword: z.ZodString;
49
47
  export declare const authContract: {
50
48
  setupStatus: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
51
49
  required: z.ZodBoolean;
52
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
50
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
51
+ UNAUTHORIZED: {
52
+ status: number;
53
+ };
54
+ NOT_ALLOWED: {
55
+ status: number;
56
+ data: z.ZodOptional<z.ZodObject<{
57
+ permission: z.ZodString;
58
+ }, z.core.$strip>>;
59
+ };
60
+ PLUGIN_ONLY: {
61
+ status: number;
62
+ };
63
+ MEMBERS_ONLY: {
64
+ status: number;
65
+ };
66
+ ORG_REQUIRED: {
67
+ status: number;
68
+ };
69
+ SCOPE_REQUIRED: {
70
+ status: number;
71
+ };
72
+ SERVICE_TOKEN_REQUIRED: {
73
+ status: number;
74
+ };
75
+ ORGANIZATION_DISABLED: {
76
+ status: number;
77
+ data: z.ZodObject<{
78
+ manageUrl: z.ZodNullable<z.ZodString>;
79
+ }, z.core.$strip>;
80
+ };
81
+ NOT_IN_PLAN: {
82
+ status: number;
83
+ data: z.ZodOptional<z.ZodObject<{
84
+ manageUrl: z.ZodNullable<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ };
87
+ READ_ONLY: {
88
+ status: number;
89
+ };
90
+ TOO_MANY_REQUESTS: {
91
+ status: number;
92
+ };
93
+ INVALID_INPUT: {
94
+ status: number;
95
+ data: z.ZodObject<{
96
+ issues: z.ZodArray<z.ZodObject<{
97
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
98
+ message: z.ZodString;
99
+ }, z.core.$strip>>;
100
+ }, z.core.$strip>;
101
+ };
102
+ NOT_FOUND: {
103
+ status: number;
104
+ };
105
+ TAKEN: {
106
+ status: number;
107
+ data: z.ZodObject<{
108
+ field: z.ZodString;
109
+ id: z.ZodOptional<z.ZodString>;
110
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ }, z.core.$strip>;
112
+ };
113
+ INVALID_CURSOR: {
114
+ status: number;
115
+ };
116
+ INVALID_REFERENCE: {
117
+ status: number;
118
+ data: z.ZodObject<{
119
+ field: z.ZodString;
120
+ }, z.core.$strip>;
121
+ };
122
+ INVALID_FILTER: {
123
+ status: number;
124
+ };
125
+ FILTER_TOO_SLOW: {
126
+ status: number;
127
+ };
128
+ ALREADY_ENABLED: {
129
+ status: number;
130
+ };
131
+ BEYOND_OWN_PERMISSIONS: {
132
+ status: number;
133
+ data: z.ZodOptional<z.ZodObject<{
134
+ permissions: z.ZodArray<z.ZodString>;
135
+ }, z.core.$strip>>;
136
+ };
137
+ BUILTIN_ROLE: {
138
+ status: number;
139
+ };
140
+ CHALLENGE_EXPIRED: {
141
+ status: number;
142
+ };
143
+ CROSS_SITE: {
144
+ status: number;
145
+ };
146
+ FIXED_ROLE: {
147
+ status: number;
148
+ };
149
+ INVALID_CREDENTIALS: {
150
+ status: number;
151
+ };
152
+ INVALID_LINK: {
153
+ status: number;
154
+ };
155
+ LIMIT_EXCEEDED: {
156
+ status: number;
157
+ };
158
+ NOT_ENABLED: {
159
+ status: number;
160
+ };
161
+ NOT_INVITED: {
162
+ status: number;
163
+ };
164
+ NOT_SET_UP: {
165
+ status: number;
166
+ };
167
+ ORGANIZATION_REQUIRED: {
168
+ status: number;
169
+ };
170
+ OWNER_ONLY_PERMISSION: {
171
+ status: number;
172
+ data: z.ZodObject<{
173
+ permissions: z.ZodArray<z.ZodString>;
174
+ }, z.core.$strip>;
175
+ };
176
+ ROLE_IN_USE: {
177
+ status: number;
178
+ };
179
+ ROLE_NOT_FOUND: {
180
+ status: number;
181
+ };
182
+ SAME_PASSWORD: {
183
+ status: number;
184
+ };
185
+ SETUP_DISABLED: {
186
+ status: number;
187
+ };
188
+ SETUP_DONE: {
189
+ status: number;
190
+ };
191
+ TOO_MANY_ATTEMPTS: {
192
+ status: number;
193
+ };
194
+ UNKNOWN_PERMISSION: {
195
+ status: number;
196
+ data: z.ZodObject<{
197
+ permissions: z.ZodArray<z.ZodString>;
198
+ }, z.core.$strip>;
199
+ };
200
+ WRONG_CODE: {
201
+ status: number;
202
+ };
203
+ WRONG_PASSWORD: {
204
+ status: number;
205
+ };
206
+ }>, Record<never, never>>;
53
207
  setup: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
54
208
  country: z.ZodOptional<z.ZodString & z.ZodType<"AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW", string, z.core.$ZodTypeInternals<"AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW", string>>>;
55
209
  currency: z.ZodOptional<z.ZodString>;
@@ -85,10 +239,10 @@ export declare const authContract: {
85
239
  disabled: "disabled";
86
240
  invited: "invited";
87
241
  }>;
88
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
89
- createdAt: z.ZodISODateTime;
90
- updatedAt: z.ZodISODateTime;
91
- twoFactorEnabled: z.ZodBoolean;
242
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
243
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
244
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
245
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
92
246
  }, {
93
247
  out: {};
94
248
  in: {};
@@ -99,13 +253,169 @@ export declare const authContract: {
99
253
  name: z.ZodString;
100
254
  country: z.ZodNullable<z.ZodString>;
101
255
  currency: z.ZodString;
102
- createdAt: z.ZodISODateTime;
256
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
103
257
  }, {
104
258
  out: {};
105
259
  in: {};
106
260
  }>;
107
261
  permissions: z.ZodArray<z.ZodString>;
108
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
262
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
263
+ UNAUTHORIZED: {
264
+ status: number;
265
+ };
266
+ NOT_ALLOWED: {
267
+ status: number;
268
+ data: z.ZodOptional<z.ZodObject<{
269
+ permission: z.ZodString;
270
+ }, z.core.$strip>>;
271
+ };
272
+ PLUGIN_ONLY: {
273
+ status: number;
274
+ };
275
+ MEMBERS_ONLY: {
276
+ status: number;
277
+ };
278
+ ORG_REQUIRED: {
279
+ status: number;
280
+ };
281
+ SCOPE_REQUIRED: {
282
+ status: number;
283
+ };
284
+ SERVICE_TOKEN_REQUIRED: {
285
+ status: number;
286
+ };
287
+ ORGANIZATION_DISABLED: {
288
+ status: number;
289
+ data: z.ZodObject<{
290
+ manageUrl: z.ZodNullable<z.ZodString>;
291
+ }, z.core.$strip>;
292
+ };
293
+ NOT_IN_PLAN: {
294
+ status: number;
295
+ data: z.ZodOptional<z.ZodObject<{
296
+ manageUrl: z.ZodNullable<z.ZodString>;
297
+ }, z.core.$strip>>;
298
+ };
299
+ READ_ONLY: {
300
+ status: number;
301
+ };
302
+ TOO_MANY_REQUESTS: {
303
+ status: number;
304
+ };
305
+ INVALID_INPUT: {
306
+ status: number;
307
+ data: z.ZodObject<{
308
+ issues: z.ZodArray<z.ZodObject<{
309
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
310
+ message: z.ZodString;
311
+ }, z.core.$strip>>;
312
+ }, z.core.$strip>;
313
+ };
314
+ NOT_FOUND: {
315
+ status: number;
316
+ };
317
+ TAKEN: {
318
+ status: number;
319
+ data: z.ZodObject<{
320
+ field: z.ZodString;
321
+ id: z.ZodOptional<z.ZodString>;
322
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
323
+ }, z.core.$strip>;
324
+ };
325
+ INVALID_CURSOR: {
326
+ status: number;
327
+ };
328
+ INVALID_REFERENCE: {
329
+ status: number;
330
+ data: z.ZodObject<{
331
+ field: z.ZodString;
332
+ }, z.core.$strip>;
333
+ };
334
+ INVALID_FILTER: {
335
+ status: number;
336
+ };
337
+ FILTER_TOO_SLOW: {
338
+ status: number;
339
+ };
340
+ ALREADY_ENABLED: {
341
+ status: number;
342
+ };
343
+ BEYOND_OWN_PERMISSIONS: {
344
+ status: number;
345
+ data: z.ZodOptional<z.ZodObject<{
346
+ permissions: z.ZodArray<z.ZodString>;
347
+ }, z.core.$strip>>;
348
+ };
349
+ BUILTIN_ROLE: {
350
+ status: number;
351
+ };
352
+ CHALLENGE_EXPIRED: {
353
+ status: number;
354
+ };
355
+ CROSS_SITE: {
356
+ status: number;
357
+ };
358
+ FIXED_ROLE: {
359
+ status: number;
360
+ };
361
+ INVALID_CREDENTIALS: {
362
+ status: number;
363
+ };
364
+ INVALID_LINK: {
365
+ status: number;
366
+ };
367
+ LIMIT_EXCEEDED: {
368
+ status: number;
369
+ };
370
+ NOT_ENABLED: {
371
+ status: number;
372
+ };
373
+ NOT_INVITED: {
374
+ status: number;
375
+ };
376
+ NOT_SET_UP: {
377
+ status: number;
378
+ };
379
+ ORGANIZATION_REQUIRED: {
380
+ status: number;
381
+ };
382
+ OWNER_ONLY_PERMISSION: {
383
+ status: number;
384
+ data: z.ZodObject<{
385
+ permissions: z.ZodArray<z.ZodString>;
386
+ }, z.core.$strip>;
387
+ };
388
+ ROLE_IN_USE: {
389
+ status: number;
390
+ };
391
+ ROLE_NOT_FOUND: {
392
+ status: number;
393
+ };
394
+ SAME_PASSWORD: {
395
+ status: number;
396
+ };
397
+ SETUP_DISABLED: {
398
+ status: number;
399
+ };
400
+ SETUP_DONE: {
401
+ status: number;
402
+ };
403
+ TOO_MANY_ATTEMPTS: {
404
+ status: number;
405
+ };
406
+ UNKNOWN_PERMISSION: {
407
+ status: number;
408
+ data: z.ZodObject<{
409
+ permissions: z.ZodArray<z.ZodString>;
410
+ }, z.core.$strip>;
411
+ };
412
+ WRONG_CODE: {
413
+ status: number;
414
+ };
415
+ WRONG_PASSWORD: {
416
+ status: number;
417
+ };
418
+ }>, Record<never, never>>;
109
419
  signIn: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
110
420
  email: z.ZodString;
111
421
  password: z.ZodString;
@@ -133,10 +443,10 @@ export declare const authContract: {
133
443
  disabled: "disabled";
134
444
  invited: "invited";
135
445
  }>;
136
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
137
- createdAt: z.ZodISODateTime;
138
- updatedAt: z.ZodISODateTime;
139
- twoFactorEnabled: z.ZodBoolean;
446
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
447
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
448
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
449
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
140
450
  }, {
141
451
  out: {};
142
452
  in: {};
@@ -147,7 +457,7 @@ export declare const authContract: {
147
457
  name: z.ZodString;
148
458
  country: z.ZodNullable<z.ZodString>;
149
459
  currency: z.ZodString;
150
- createdAt: z.ZodISODateTime;
460
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
151
461
  }, {
152
462
  out: {};
153
463
  in: {};
@@ -156,13 +466,325 @@ export declare const authContract: {
156
466
  }, z.core.$strip>, z.ZodObject<{
157
467
  twoFactorRequired: z.ZodLiteral<true>;
158
468
  challenge: z.ZodString;
159
- }, z.core.$strip>]>, Record<never, never>, Record<never, never>>;
469
+ }, z.core.$strip>]>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
470
+ UNAUTHORIZED: {
471
+ status: number;
472
+ };
473
+ NOT_ALLOWED: {
474
+ status: number;
475
+ data: z.ZodOptional<z.ZodObject<{
476
+ permission: z.ZodString;
477
+ }, z.core.$strip>>;
478
+ };
479
+ PLUGIN_ONLY: {
480
+ status: number;
481
+ };
482
+ MEMBERS_ONLY: {
483
+ status: number;
484
+ };
485
+ ORG_REQUIRED: {
486
+ status: number;
487
+ };
488
+ SCOPE_REQUIRED: {
489
+ status: number;
490
+ };
491
+ SERVICE_TOKEN_REQUIRED: {
492
+ status: number;
493
+ };
494
+ ORGANIZATION_DISABLED: {
495
+ status: number;
496
+ data: z.ZodObject<{
497
+ manageUrl: z.ZodNullable<z.ZodString>;
498
+ }, z.core.$strip>;
499
+ };
500
+ NOT_IN_PLAN: {
501
+ status: number;
502
+ data: z.ZodOptional<z.ZodObject<{
503
+ manageUrl: z.ZodNullable<z.ZodString>;
504
+ }, z.core.$strip>>;
505
+ };
506
+ READ_ONLY: {
507
+ status: number;
508
+ };
509
+ TOO_MANY_REQUESTS: {
510
+ status: number;
511
+ };
512
+ INVALID_INPUT: {
513
+ status: number;
514
+ data: z.ZodObject<{
515
+ issues: z.ZodArray<z.ZodObject<{
516
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
517
+ message: z.ZodString;
518
+ }, z.core.$strip>>;
519
+ }, z.core.$strip>;
520
+ };
521
+ NOT_FOUND: {
522
+ status: number;
523
+ };
524
+ TAKEN: {
525
+ status: number;
526
+ data: z.ZodObject<{
527
+ field: z.ZodString;
528
+ id: z.ZodOptional<z.ZodString>;
529
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
530
+ }, z.core.$strip>;
531
+ };
532
+ INVALID_CURSOR: {
533
+ status: number;
534
+ };
535
+ INVALID_REFERENCE: {
536
+ status: number;
537
+ data: z.ZodObject<{
538
+ field: z.ZodString;
539
+ }, z.core.$strip>;
540
+ };
541
+ INVALID_FILTER: {
542
+ status: number;
543
+ };
544
+ FILTER_TOO_SLOW: {
545
+ status: number;
546
+ };
547
+ ALREADY_ENABLED: {
548
+ status: number;
549
+ };
550
+ BEYOND_OWN_PERMISSIONS: {
551
+ status: number;
552
+ data: z.ZodOptional<z.ZodObject<{
553
+ permissions: z.ZodArray<z.ZodString>;
554
+ }, z.core.$strip>>;
555
+ };
556
+ BUILTIN_ROLE: {
557
+ status: number;
558
+ };
559
+ CHALLENGE_EXPIRED: {
560
+ status: number;
561
+ };
562
+ CROSS_SITE: {
563
+ status: number;
564
+ };
565
+ FIXED_ROLE: {
566
+ status: number;
567
+ };
568
+ INVALID_CREDENTIALS: {
569
+ status: number;
570
+ };
571
+ INVALID_LINK: {
572
+ status: number;
573
+ };
574
+ LIMIT_EXCEEDED: {
575
+ status: number;
576
+ };
577
+ NOT_ENABLED: {
578
+ status: number;
579
+ };
580
+ NOT_INVITED: {
581
+ status: number;
582
+ };
583
+ NOT_SET_UP: {
584
+ status: number;
585
+ };
586
+ ORGANIZATION_REQUIRED: {
587
+ status: number;
588
+ };
589
+ OWNER_ONLY_PERMISSION: {
590
+ status: number;
591
+ data: z.ZodObject<{
592
+ permissions: z.ZodArray<z.ZodString>;
593
+ }, z.core.$strip>;
594
+ };
595
+ ROLE_IN_USE: {
596
+ status: number;
597
+ };
598
+ ROLE_NOT_FOUND: {
599
+ status: number;
600
+ };
601
+ SAME_PASSWORD: {
602
+ status: number;
603
+ };
604
+ SETUP_DISABLED: {
605
+ status: number;
606
+ };
607
+ SETUP_DONE: {
608
+ status: number;
609
+ };
610
+ TOO_MANY_ATTEMPTS: {
611
+ status: number;
612
+ };
613
+ UNKNOWN_PERMISSION: {
614
+ status: number;
615
+ data: z.ZodObject<{
616
+ permissions: z.ZodArray<z.ZodString>;
617
+ }, z.core.$strip>;
618
+ };
619
+ WRONG_CODE: {
620
+ status: number;
621
+ };
622
+ WRONG_PASSWORD: {
623
+ status: number;
624
+ };
625
+ }>, Record<never, never>>;
160
626
  requestPasswordReset: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
161
627
  email: z.ZodString;
162
628
  subdomain: z.ZodOptional<z.ZodString>;
163
629
  }, z.core.$strip>, z.ZodObject<{
164
630
  ok: z.ZodLiteral<true>;
165
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
631
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
632
+ UNAUTHORIZED: {
633
+ status: number;
634
+ };
635
+ NOT_ALLOWED: {
636
+ status: number;
637
+ data: z.ZodOptional<z.ZodObject<{
638
+ permission: z.ZodString;
639
+ }, z.core.$strip>>;
640
+ };
641
+ PLUGIN_ONLY: {
642
+ status: number;
643
+ };
644
+ MEMBERS_ONLY: {
645
+ status: number;
646
+ };
647
+ ORG_REQUIRED: {
648
+ status: number;
649
+ };
650
+ SCOPE_REQUIRED: {
651
+ status: number;
652
+ };
653
+ SERVICE_TOKEN_REQUIRED: {
654
+ status: number;
655
+ };
656
+ ORGANIZATION_DISABLED: {
657
+ status: number;
658
+ data: z.ZodObject<{
659
+ manageUrl: z.ZodNullable<z.ZodString>;
660
+ }, z.core.$strip>;
661
+ };
662
+ NOT_IN_PLAN: {
663
+ status: number;
664
+ data: z.ZodOptional<z.ZodObject<{
665
+ manageUrl: z.ZodNullable<z.ZodString>;
666
+ }, z.core.$strip>>;
667
+ };
668
+ READ_ONLY: {
669
+ status: number;
670
+ };
671
+ TOO_MANY_REQUESTS: {
672
+ status: number;
673
+ };
674
+ INVALID_INPUT: {
675
+ status: number;
676
+ data: z.ZodObject<{
677
+ issues: z.ZodArray<z.ZodObject<{
678
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
679
+ message: z.ZodString;
680
+ }, z.core.$strip>>;
681
+ }, z.core.$strip>;
682
+ };
683
+ NOT_FOUND: {
684
+ status: number;
685
+ };
686
+ TAKEN: {
687
+ status: number;
688
+ data: z.ZodObject<{
689
+ field: z.ZodString;
690
+ id: z.ZodOptional<z.ZodString>;
691
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
692
+ }, z.core.$strip>;
693
+ };
694
+ INVALID_CURSOR: {
695
+ status: number;
696
+ };
697
+ INVALID_REFERENCE: {
698
+ status: number;
699
+ data: z.ZodObject<{
700
+ field: z.ZodString;
701
+ }, z.core.$strip>;
702
+ };
703
+ INVALID_FILTER: {
704
+ status: number;
705
+ };
706
+ FILTER_TOO_SLOW: {
707
+ status: number;
708
+ };
709
+ ALREADY_ENABLED: {
710
+ status: number;
711
+ };
712
+ BEYOND_OWN_PERMISSIONS: {
713
+ status: number;
714
+ data: z.ZodOptional<z.ZodObject<{
715
+ permissions: z.ZodArray<z.ZodString>;
716
+ }, z.core.$strip>>;
717
+ };
718
+ BUILTIN_ROLE: {
719
+ status: number;
720
+ };
721
+ CHALLENGE_EXPIRED: {
722
+ status: number;
723
+ };
724
+ CROSS_SITE: {
725
+ status: number;
726
+ };
727
+ FIXED_ROLE: {
728
+ status: number;
729
+ };
730
+ INVALID_CREDENTIALS: {
731
+ status: number;
732
+ };
733
+ INVALID_LINK: {
734
+ status: number;
735
+ };
736
+ LIMIT_EXCEEDED: {
737
+ status: number;
738
+ };
739
+ NOT_ENABLED: {
740
+ status: number;
741
+ };
742
+ NOT_INVITED: {
743
+ status: number;
744
+ };
745
+ NOT_SET_UP: {
746
+ status: number;
747
+ };
748
+ ORGANIZATION_REQUIRED: {
749
+ status: number;
750
+ };
751
+ OWNER_ONLY_PERMISSION: {
752
+ status: number;
753
+ data: z.ZodObject<{
754
+ permissions: z.ZodArray<z.ZodString>;
755
+ }, z.core.$strip>;
756
+ };
757
+ ROLE_IN_USE: {
758
+ status: number;
759
+ };
760
+ ROLE_NOT_FOUND: {
761
+ status: number;
762
+ };
763
+ SAME_PASSWORD: {
764
+ status: number;
765
+ };
766
+ SETUP_DISABLED: {
767
+ status: number;
768
+ };
769
+ SETUP_DONE: {
770
+ status: number;
771
+ };
772
+ TOO_MANY_ATTEMPTS: {
773
+ status: number;
774
+ };
775
+ UNKNOWN_PERMISSION: {
776
+ status: number;
777
+ data: z.ZodObject<{
778
+ permissions: z.ZodArray<z.ZodString>;
779
+ }, z.core.$strip>;
780
+ };
781
+ WRONG_CODE: {
782
+ status: number;
783
+ };
784
+ WRONG_PASSWORD: {
785
+ status: number;
786
+ };
787
+ }>, Record<never, never>>;
166
788
  resetPassword: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
167
789
  token: z.ZodString;
168
790
  password: z.ZodString;
@@ -189,10 +811,10 @@ export declare const authContract: {
189
811
  disabled: "disabled";
190
812
  invited: "invited";
191
813
  }>;
192
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
193
- createdAt: z.ZodISODateTime;
194
- updatedAt: z.ZodISODateTime;
195
- twoFactorEnabled: z.ZodBoolean;
814
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
815
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
816
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
817
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
196
818
  }, {
197
819
  out: {};
198
820
  in: {};
@@ -203,20 +825,332 @@ export declare const authContract: {
203
825
  name: z.ZodString;
204
826
  country: z.ZodNullable<z.ZodString>;
205
827
  currency: z.ZodString;
206
- createdAt: z.ZodISODateTime;
828
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
207
829
  }, {
208
830
  out: {};
209
831
  in: {};
210
832
  }>;
211
833
  permissions: z.ZodArray<z.ZodString>;
212
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
834
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
835
+ UNAUTHORIZED: {
836
+ status: number;
837
+ };
838
+ NOT_ALLOWED: {
839
+ status: number;
840
+ data: z.ZodOptional<z.ZodObject<{
841
+ permission: z.ZodString;
842
+ }, z.core.$strip>>;
843
+ };
844
+ PLUGIN_ONLY: {
845
+ status: number;
846
+ };
847
+ MEMBERS_ONLY: {
848
+ status: number;
849
+ };
850
+ ORG_REQUIRED: {
851
+ status: number;
852
+ };
853
+ SCOPE_REQUIRED: {
854
+ status: number;
855
+ };
856
+ SERVICE_TOKEN_REQUIRED: {
857
+ status: number;
858
+ };
859
+ ORGANIZATION_DISABLED: {
860
+ status: number;
861
+ data: z.ZodObject<{
862
+ manageUrl: z.ZodNullable<z.ZodString>;
863
+ }, z.core.$strip>;
864
+ };
865
+ NOT_IN_PLAN: {
866
+ status: number;
867
+ data: z.ZodOptional<z.ZodObject<{
868
+ manageUrl: z.ZodNullable<z.ZodString>;
869
+ }, z.core.$strip>>;
870
+ };
871
+ READ_ONLY: {
872
+ status: number;
873
+ };
874
+ TOO_MANY_REQUESTS: {
875
+ status: number;
876
+ };
877
+ INVALID_INPUT: {
878
+ status: number;
879
+ data: z.ZodObject<{
880
+ issues: z.ZodArray<z.ZodObject<{
881
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
882
+ message: z.ZodString;
883
+ }, z.core.$strip>>;
884
+ }, z.core.$strip>;
885
+ };
886
+ NOT_FOUND: {
887
+ status: number;
888
+ };
889
+ TAKEN: {
890
+ status: number;
891
+ data: z.ZodObject<{
892
+ field: z.ZodString;
893
+ id: z.ZodOptional<z.ZodString>;
894
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
895
+ }, z.core.$strip>;
896
+ };
897
+ INVALID_CURSOR: {
898
+ status: number;
899
+ };
900
+ INVALID_REFERENCE: {
901
+ status: number;
902
+ data: z.ZodObject<{
903
+ field: z.ZodString;
904
+ }, z.core.$strip>;
905
+ };
906
+ INVALID_FILTER: {
907
+ status: number;
908
+ };
909
+ FILTER_TOO_SLOW: {
910
+ status: number;
911
+ };
912
+ ALREADY_ENABLED: {
913
+ status: number;
914
+ };
915
+ BEYOND_OWN_PERMISSIONS: {
916
+ status: number;
917
+ data: z.ZodOptional<z.ZodObject<{
918
+ permissions: z.ZodArray<z.ZodString>;
919
+ }, z.core.$strip>>;
920
+ };
921
+ BUILTIN_ROLE: {
922
+ status: number;
923
+ };
924
+ CHALLENGE_EXPIRED: {
925
+ status: number;
926
+ };
927
+ CROSS_SITE: {
928
+ status: number;
929
+ };
930
+ FIXED_ROLE: {
931
+ status: number;
932
+ };
933
+ INVALID_CREDENTIALS: {
934
+ status: number;
935
+ };
936
+ INVALID_LINK: {
937
+ status: number;
938
+ };
939
+ LIMIT_EXCEEDED: {
940
+ status: number;
941
+ };
942
+ NOT_ENABLED: {
943
+ status: number;
944
+ };
945
+ NOT_INVITED: {
946
+ status: number;
947
+ };
948
+ NOT_SET_UP: {
949
+ status: number;
950
+ };
951
+ ORGANIZATION_REQUIRED: {
952
+ status: number;
953
+ };
954
+ OWNER_ONLY_PERMISSION: {
955
+ status: number;
956
+ data: z.ZodObject<{
957
+ permissions: z.ZodArray<z.ZodString>;
958
+ }, z.core.$strip>;
959
+ };
960
+ ROLE_IN_USE: {
961
+ status: number;
962
+ };
963
+ ROLE_NOT_FOUND: {
964
+ status: number;
965
+ };
966
+ SAME_PASSWORD: {
967
+ status: number;
968
+ };
969
+ SETUP_DISABLED: {
970
+ status: number;
971
+ };
972
+ SETUP_DONE: {
973
+ status: number;
974
+ };
975
+ TOO_MANY_ATTEMPTS: {
976
+ status: number;
977
+ };
978
+ UNKNOWN_PERMISSION: {
979
+ status: number;
980
+ data: z.ZodObject<{
981
+ permissions: z.ZodArray<z.ZodString>;
982
+ }, z.core.$strip>;
983
+ };
984
+ WRONG_CODE: {
985
+ status: number;
986
+ };
987
+ WRONG_PASSWORD: {
988
+ status: number;
989
+ };
990
+ }>, Record<never, never>>;
213
991
  invitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
214
992
  token: z.ZodString;
215
993
  }, z.core.$strip>, z.ZodObject<{
216
994
  organization: z.ZodString;
217
995
  email: z.ZodString;
218
996
  inviter: z.ZodNullable<z.ZodString>;
219
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
997
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
998
+ UNAUTHORIZED: {
999
+ status: number;
1000
+ };
1001
+ NOT_ALLOWED: {
1002
+ status: number;
1003
+ data: z.ZodOptional<z.ZodObject<{
1004
+ permission: z.ZodString;
1005
+ }, z.core.$strip>>;
1006
+ };
1007
+ PLUGIN_ONLY: {
1008
+ status: number;
1009
+ };
1010
+ MEMBERS_ONLY: {
1011
+ status: number;
1012
+ };
1013
+ ORG_REQUIRED: {
1014
+ status: number;
1015
+ };
1016
+ SCOPE_REQUIRED: {
1017
+ status: number;
1018
+ };
1019
+ SERVICE_TOKEN_REQUIRED: {
1020
+ status: number;
1021
+ };
1022
+ ORGANIZATION_DISABLED: {
1023
+ status: number;
1024
+ data: z.ZodObject<{
1025
+ manageUrl: z.ZodNullable<z.ZodString>;
1026
+ }, z.core.$strip>;
1027
+ };
1028
+ NOT_IN_PLAN: {
1029
+ status: number;
1030
+ data: z.ZodOptional<z.ZodObject<{
1031
+ manageUrl: z.ZodNullable<z.ZodString>;
1032
+ }, z.core.$strip>>;
1033
+ };
1034
+ READ_ONLY: {
1035
+ status: number;
1036
+ };
1037
+ TOO_MANY_REQUESTS: {
1038
+ status: number;
1039
+ };
1040
+ INVALID_INPUT: {
1041
+ status: number;
1042
+ data: z.ZodObject<{
1043
+ issues: z.ZodArray<z.ZodObject<{
1044
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1045
+ message: z.ZodString;
1046
+ }, z.core.$strip>>;
1047
+ }, z.core.$strip>;
1048
+ };
1049
+ NOT_FOUND: {
1050
+ status: number;
1051
+ };
1052
+ TAKEN: {
1053
+ status: number;
1054
+ data: z.ZodObject<{
1055
+ field: z.ZodString;
1056
+ id: z.ZodOptional<z.ZodString>;
1057
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1058
+ }, z.core.$strip>;
1059
+ };
1060
+ INVALID_CURSOR: {
1061
+ status: number;
1062
+ };
1063
+ INVALID_REFERENCE: {
1064
+ status: number;
1065
+ data: z.ZodObject<{
1066
+ field: z.ZodString;
1067
+ }, z.core.$strip>;
1068
+ };
1069
+ INVALID_FILTER: {
1070
+ status: number;
1071
+ };
1072
+ FILTER_TOO_SLOW: {
1073
+ status: number;
1074
+ };
1075
+ ALREADY_ENABLED: {
1076
+ status: number;
1077
+ };
1078
+ BEYOND_OWN_PERMISSIONS: {
1079
+ status: number;
1080
+ data: z.ZodOptional<z.ZodObject<{
1081
+ permissions: z.ZodArray<z.ZodString>;
1082
+ }, z.core.$strip>>;
1083
+ };
1084
+ BUILTIN_ROLE: {
1085
+ status: number;
1086
+ };
1087
+ CHALLENGE_EXPIRED: {
1088
+ status: number;
1089
+ };
1090
+ CROSS_SITE: {
1091
+ status: number;
1092
+ };
1093
+ FIXED_ROLE: {
1094
+ status: number;
1095
+ };
1096
+ INVALID_CREDENTIALS: {
1097
+ status: number;
1098
+ };
1099
+ INVALID_LINK: {
1100
+ status: number;
1101
+ };
1102
+ LIMIT_EXCEEDED: {
1103
+ status: number;
1104
+ };
1105
+ NOT_ENABLED: {
1106
+ status: number;
1107
+ };
1108
+ NOT_INVITED: {
1109
+ status: number;
1110
+ };
1111
+ NOT_SET_UP: {
1112
+ status: number;
1113
+ };
1114
+ ORGANIZATION_REQUIRED: {
1115
+ status: number;
1116
+ };
1117
+ OWNER_ONLY_PERMISSION: {
1118
+ status: number;
1119
+ data: z.ZodObject<{
1120
+ permissions: z.ZodArray<z.ZodString>;
1121
+ }, z.core.$strip>;
1122
+ };
1123
+ ROLE_IN_USE: {
1124
+ status: number;
1125
+ };
1126
+ ROLE_NOT_FOUND: {
1127
+ status: number;
1128
+ };
1129
+ SAME_PASSWORD: {
1130
+ status: number;
1131
+ };
1132
+ SETUP_DISABLED: {
1133
+ status: number;
1134
+ };
1135
+ SETUP_DONE: {
1136
+ status: number;
1137
+ };
1138
+ TOO_MANY_ATTEMPTS: {
1139
+ status: number;
1140
+ };
1141
+ UNKNOWN_PERMISSION: {
1142
+ status: number;
1143
+ data: z.ZodObject<{
1144
+ permissions: z.ZodArray<z.ZodString>;
1145
+ }, z.core.$strip>;
1146
+ };
1147
+ WRONG_CODE: {
1148
+ status: number;
1149
+ };
1150
+ WRONG_PASSWORD: {
1151
+ status: number;
1152
+ };
1153
+ }>, Record<never, never>>;
220
1154
  acceptInvitation: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
221
1155
  token: z.ZodString;
222
1156
  password: z.ZodString;
@@ -245,10 +1179,10 @@ export declare const authContract: {
245
1179
  disabled: "disabled";
246
1180
  invited: "invited";
247
1181
  }>;
248
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
249
- createdAt: z.ZodISODateTime;
250
- updatedAt: z.ZodISODateTime;
251
- twoFactorEnabled: z.ZodBoolean;
1182
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
1183
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
1184
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
1185
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
252
1186
  }, {
253
1187
  out: {};
254
1188
  in: {};
@@ -259,13 +1193,169 @@ export declare const authContract: {
259
1193
  name: z.ZodString;
260
1194
  country: z.ZodNullable<z.ZodString>;
261
1195
  currency: z.ZodString;
262
- createdAt: z.ZodISODateTime;
1196
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
263
1197
  }, {
264
1198
  out: {};
265
1199
  in: {};
266
1200
  }>;
267
1201
  permissions: z.ZodArray<z.ZodString>;
268
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1202
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1203
+ UNAUTHORIZED: {
1204
+ status: number;
1205
+ };
1206
+ NOT_ALLOWED: {
1207
+ status: number;
1208
+ data: z.ZodOptional<z.ZodObject<{
1209
+ permission: z.ZodString;
1210
+ }, z.core.$strip>>;
1211
+ };
1212
+ PLUGIN_ONLY: {
1213
+ status: number;
1214
+ };
1215
+ MEMBERS_ONLY: {
1216
+ status: number;
1217
+ };
1218
+ ORG_REQUIRED: {
1219
+ status: number;
1220
+ };
1221
+ SCOPE_REQUIRED: {
1222
+ status: number;
1223
+ };
1224
+ SERVICE_TOKEN_REQUIRED: {
1225
+ status: number;
1226
+ };
1227
+ ORGANIZATION_DISABLED: {
1228
+ status: number;
1229
+ data: z.ZodObject<{
1230
+ manageUrl: z.ZodNullable<z.ZodString>;
1231
+ }, z.core.$strip>;
1232
+ };
1233
+ NOT_IN_PLAN: {
1234
+ status: number;
1235
+ data: z.ZodOptional<z.ZodObject<{
1236
+ manageUrl: z.ZodNullable<z.ZodString>;
1237
+ }, z.core.$strip>>;
1238
+ };
1239
+ READ_ONLY: {
1240
+ status: number;
1241
+ };
1242
+ TOO_MANY_REQUESTS: {
1243
+ status: number;
1244
+ };
1245
+ INVALID_INPUT: {
1246
+ status: number;
1247
+ data: z.ZodObject<{
1248
+ issues: z.ZodArray<z.ZodObject<{
1249
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1250
+ message: z.ZodString;
1251
+ }, z.core.$strip>>;
1252
+ }, z.core.$strip>;
1253
+ };
1254
+ NOT_FOUND: {
1255
+ status: number;
1256
+ };
1257
+ TAKEN: {
1258
+ status: number;
1259
+ data: z.ZodObject<{
1260
+ field: z.ZodString;
1261
+ id: z.ZodOptional<z.ZodString>;
1262
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1263
+ }, z.core.$strip>;
1264
+ };
1265
+ INVALID_CURSOR: {
1266
+ status: number;
1267
+ };
1268
+ INVALID_REFERENCE: {
1269
+ status: number;
1270
+ data: z.ZodObject<{
1271
+ field: z.ZodString;
1272
+ }, z.core.$strip>;
1273
+ };
1274
+ INVALID_FILTER: {
1275
+ status: number;
1276
+ };
1277
+ FILTER_TOO_SLOW: {
1278
+ status: number;
1279
+ };
1280
+ ALREADY_ENABLED: {
1281
+ status: number;
1282
+ };
1283
+ BEYOND_OWN_PERMISSIONS: {
1284
+ status: number;
1285
+ data: z.ZodOptional<z.ZodObject<{
1286
+ permissions: z.ZodArray<z.ZodString>;
1287
+ }, z.core.$strip>>;
1288
+ };
1289
+ BUILTIN_ROLE: {
1290
+ status: number;
1291
+ };
1292
+ CHALLENGE_EXPIRED: {
1293
+ status: number;
1294
+ };
1295
+ CROSS_SITE: {
1296
+ status: number;
1297
+ };
1298
+ FIXED_ROLE: {
1299
+ status: number;
1300
+ };
1301
+ INVALID_CREDENTIALS: {
1302
+ status: number;
1303
+ };
1304
+ INVALID_LINK: {
1305
+ status: number;
1306
+ };
1307
+ LIMIT_EXCEEDED: {
1308
+ status: number;
1309
+ };
1310
+ NOT_ENABLED: {
1311
+ status: number;
1312
+ };
1313
+ NOT_INVITED: {
1314
+ status: number;
1315
+ };
1316
+ NOT_SET_UP: {
1317
+ status: number;
1318
+ };
1319
+ ORGANIZATION_REQUIRED: {
1320
+ status: number;
1321
+ };
1322
+ OWNER_ONLY_PERMISSION: {
1323
+ status: number;
1324
+ data: z.ZodObject<{
1325
+ permissions: z.ZodArray<z.ZodString>;
1326
+ }, z.core.$strip>;
1327
+ };
1328
+ ROLE_IN_USE: {
1329
+ status: number;
1330
+ };
1331
+ ROLE_NOT_FOUND: {
1332
+ status: number;
1333
+ };
1334
+ SAME_PASSWORD: {
1335
+ status: number;
1336
+ };
1337
+ SETUP_DISABLED: {
1338
+ status: number;
1339
+ };
1340
+ SETUP_DONE: {
1341
+ status: number;
1342
+ };
1343
+ TOO_MANY_ATTEMPTS: {
1344
+ status: number;
1345
+ };
1346
+ UNKNOWN_PERMISSION: {
1347
+ status: number;
1348
+ data: z.ZodObject<{
1349
+ permissions: z.ZodArray<z.ZodString>;
1350
+ }, z.core.$strip>;
1351
+ };
1352
+ WRONG_CODE: {
1353
+ status: number;
1354
+ };
1355
+ WRONG_PASSWORD: {
1356
+ status: number;
1357
+ };
1358
+ }>, Record<never, never>>;
269
1359
  signInTwoFactor: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
270
1360
  challenge: z.ZodString;
271
1361
  code: z.ZodOptional<z.ZodString>;
@@ -293,10 +1383,10 @@ export declare const authContract: {
293
1383
  disabled: "disabled";
294
1384
  invited: "invited";
295
1385
  }>;
296
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
297
- createdAt: z.ZodISODateTime;
298
- updatedAt: z.ZodISODateTime;
299
- twoFactorEnabled: z.ZodBoolean;
1386
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
1387
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
1388
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
1389
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
300
1390
  }, {
301
1391
  out: {};
302
1392
  in: {};
@@ -307,38 +1397,1130 @@ export declare const authContract: {
307
1397
  name: z.ZodString;
308
1398
  country: z.ZodNullable<z.ZodString>;
309
1399
  currency: z.ZodString;
310
- createdAt: z.ZodISODateTime;
1400
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
311
1401
  }, {
312
1402
  out: {};
313
1403
  in: {};
314
1404
  }>;
315
1405
  permissions: z.ZodArray<z.ZodString>;
316
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1406
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1407
+ UNAUTHORIZED: {
1408
+ status: number;
1409
+ };
1410
+ NOT_ALLOWED: {
1411
+ status: number;
1412
+ data: z.ZodOptional<z.ZodObject<{
1413
+ permission: z.ZodString;
1414
+ }, z.core.$strip>>;
1415
+ };
1416
+ PLUGIN_ONLY: {
1417
+ status: number;
1418
+ };
1419
+ MEMBERS_ONLY: {
1420
+ status: number;
1421
+ };
1422
+ ORG_REQUIRED: {
1423
+ status: number;
1424
+ };
1425
+ SCOPE_REQUIRED: {
1426
+ status: number;
1427
+ };
1428
+ SERVICE_TOKEN_REQUIRED: {
1429
+ status: number;
1430
+ };
1431
+ ORGANIZATION_DISABLED: {
1432
+ status: number;
1433
+ data: z.ZodObject<{
1434
+ manageUrl: z.ZodNullable<z.ZodString>;
1435
+ }, z.core.$strip>;
1436
+ };
1437
+ NOT_IN_PLAN: {
1438
+ status: number;
1439
+ data: z.ZodOptional<z.ZodObject<{
1440
+ manageUrl: z.ZodNullable<z.ZodString>;
1441
+ }, z.core.$strip>>;
1442
+ };
1443
+ READ_ONLY: {
1444
+ status: number;
1445
+ };
1446
+ TOO_MANY_REQUESTS: {
1447
+ status: number;
1448
+ };
1449
+ INVALID_INPUT: {
1450
+ status: number;
1451
+ data: z.ZodObject<{
1452
+ issues: z.ZodArray<z.ZodObject<{
1453
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1454
+ message: z.ZodString;
1455
+ }, z.core.$strip>>;
1456
+ }, z.core.$strip>;
1457
+ };
1458
+ NOT_FOUND: {
1459
+ status: number;
1460
+ };
1461
+ TAKEN: {
1462
+ status: number;
1463
+ data: z.ZodObject<{
1464
+ field: z.ZodString;
1465
+ id: z.ZodOptional<z.ZodString>;
1466
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1467
+ }, z.core.$strip>;
1468
+ };
1469
+ INVALID_CURSOR: {
1470
+ status: number;
1471
+ };
1472
+ INVALID_REFERENCE: {
1473
+ status: number;
1474
+ data: z.ZodObject<{
1475
+ field: z.ZodString;
1476
+ }, z.core.$strip>;
1477
+ };
1478
+ INVALID_FILTER: {
1479
+ status: number;
1480
+ };
1481
+ FILTER_TOO_SLOW: {
1482
+ status: number;
1483
+ };
1484
+ ALREADY_ENABLED: {
1485
+ status: number;
1486
+ };
1487
+ BEYOND_OWN_PERMISSIONS: {
1488
+ status: number;
1489
+ data: z.ZodOptional<z.ZodObject<{
1490
+ permissions: z.ZodArray<z.ZodString>;
1491
+ }, z.core.$strip>>;
1492
+ };
1493
+ BUILTIN_ROLE: {
1494
+ status: number;
1495
+ };
1496
+ CHALLENGE_EXPIRED: {
1497
+ status: number;
1498
+ };
1499
+ CROSS_SITE: {
1500
+ status: number;
1501
+ };
1502
+ FIXED_ROLE: {
1503
+ status: number;
1504
+ };
1505
+ INVALID_CREDENTIALS: {
1506
+ status: number;
1507
+ };
1508
+ INVALID_LINK: {
1509
+ status: number;
1510
+ };
1511
+ LIMIT_EXCEEDED: {
1512
+ status: number;
1513
+ };
1514
+ NOT_ENABLED: {
1515
+ status: number;
1516
+ };
1517
+ NOT_INVITED: {
1518
+ status: number;
1519
+ };
1520
+ NOT_SET_UP: {
1521
+ status: number;
1522
+ };
1523
+ ORGANIZATION_REQUIRED: {
1524
+ status: number;
1525
+ };
1526
+ OWNER_ONLY_PERMISSION: {
1527
+ status: number;
1528
+ data: z.ZodObject<{
1529
+ permissions: z.ZodArray<z.ZodString>;
1530
+ }, z.core.$strip>;
1531
+ };
1532
+ ROLE_IN_USE: {
1533
+ status: number;
1534
+ };
1535
+ ROLE_NOT_FOUND: {
1536
+ status: number;
1537
+ };
1538
+ SAME_PASSWORD: {
1539
+ status: number;
1540
+ };
1541
+ SETUP_DISABLED: {
1542
+ status: number;
1543
+ };
1544
+ SETUP_DONE: {
1545
+ status: number;
1546
+ };
1547
+ TOO_MANY_ATTEMPTS: {
1548
+ status: number;
1549
+ };
1550
+ UNKNOWN_PERMISSION: {
1551
+ status: number;
1552
+ data: z.ZodObject<{
1553
+ permissions: z.ZodArray<z.ZodString>;
1554
+ }, z.core.$strip>;
1555
+ };
1556
+ WRONG_CODE: {
1557
+ status: number;
1558
+ };
1559
+ WRONG_PASSWORD: {
1560
+ status: number;
1561
+ };
1562
+ }>, Record<never, never>>;
317
1563
  twoFactorSetup: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
318
1564
  secret: z.ZodString;
319
1565
  uri: z.ZodString;
320
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1566
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1567
+ UNAUTHORIZED: {
1568
+ status: number;
1569
+ };
1570
+ NOT_ALLOWED: {
1571
+ status: number;
1572
+ data: z.ZodOptional<z.ZodObject<{
1573
+ permission: z.ZodString;
1574
+ }, z.core.$strip>>;
1575
+ };
1576
+ PLUGIN_ONLY: {
1577
+ status: number;
1578
+ };
1579
+ MEMBERS_ONLY: {
1580
+ status: number;
1581
+ };
1582
+ ORG_REQUIRED: {
1583
+ status: number;
1584
+ };
1585
+ SCOPE_REQUIRED: {
1586
+ status: number;
1587
+ };
1588
+ SERVICE_TOKEN_REQUIRED: {
1589
+ status: number;
1590
+ };
1591
+ ORGANIZATION_DISABLED: {
1592
+ status: number;
1593
+ data: z.ZodObject<{
1594
+ manageUrl: z.ZodNullable<z.ZodString>;
1595
+ }, z.core.$strip>;
1596
+ };
1597
+ NOT_IN_PLAN: {
1598
+ status: number;
1599
+ data: z.ZodOptional<z.ZodObject<{
1600
+ manageUrl: z.ZodNullable<z.ZodString>;
1601
+ }, z.core.$strip>>;
1602
+ };
1603
+ READ_ONLY: {
1604
+ status: number;
1605
+ };
1606
+ TOO_MANY_REQUESTS: {
1607
+ status: number;
1608
+ };
1609
+ INVALID_INPUT: {
1610
+ status: number;
1611
+ data: z.ZodObject<{
1612
+ issues: z.ZodArray<z.ZodObject<{
1613
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1614
+ message: z.ZodString;
1615
+ }, z.core.$strip>>;
1616
+ }, z.core.$strip>;
1617
+ };
1618
+ NOT_FOUND: {
1619
+ status: number;
1620
+ };
1621
+ TAKEN: {
1622
+ status: number;
1623
+ data: z.ZodObject<{
1624
+ field: z.ZodString;
1625
+ id: z.ZodOptional<z.ZodString>;
1626
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1627
+ }, z.core.$strip>;
1628
+ };
1629
+ INVALID_CURSOR: {
1630
+ status: number;
1631
+ };
1632
+ INVALID_REFERENCE: {
1633
+ status: number;
1634
+ data: z.ZodObject<{
1635
+ field: z.ZodString;
1636
+ }, z.core.$strip>;
1637
+ };
1638
+ INVALID_FILTER: {
1639
+ status: number;
1640
+ };
1641
+ FILTER_TOO_SLOW: {
1642
+ status: number;
1643
+ };
1644
+ ALREADY_ENABLED: {
1645
+ status: number;
1646
+ };
1647
+ BEYOND_OWN_PERMISSIONS: {
1648
+ status: number;
1649
+ data: z.ZodOptional<z.ZodObject<{
1650
+ permissions: z.ZodArray<z.ZodString>;
1651
+ }, z.core.$strip>>;
1652
+ };
1653
+ BUILTIN_ROLE: {
1654
+ status: number;
1655
+ };
1656
+ CHALLENGE_EXPIRED: {
1657
+ status: number;
1658
+ };
1659
+ CROSS_SITE: {
1660
+ status: number;
1661
+ };
1662
+ FIXED_ROLE: {
1663
+ status: number;
1664
+ };
1665
+ INVALID_CREDENTIALS: {
1666
+ status: number;
1667
+ };
1668
+ INVALID_LINK: {
1669
+ status: number;
1670
+ };
1671
+ LIMIT_EXCEEDED: {
1672
+ status: number;
1673
+ };
1674
+ NOT_ENABLED: {
1675
+ status: number;
1676
+ };
1677
+ NOT_INVITED: {
1678
+ status: number;
1679
+ };
1680
+ NOT_SET_UP: {
1681
+ status: number;
1682
+ };
1683
+ ORGANIZATION_REQUIRED: {
1684
+ status: number;
1685
+ };
1686
+ OWNER_ONLY_PERMISSION: {
1687
+ status: number;
1688
+ data: z.ZodObject<{
1689
+ permissions: z.ZodArray<z.ZodString>;
1690
+ }, z.core.$strip>;
1691
+ };
1692
+ ROLE_IN_USE: {
1693
+ status: number;
1694
+ };
1695
+ ROLE_NOT_FOUND: {
1696
+ status: number;
1697
+ };
1698
+ SAME_PASSWORD: {
1699
+ status: number;
1700
+ };
1701
+ SETUP_DISABLED: {
1702
+ status: number;
1703
+ };
1704
+ SETUP_DONE: {
1705
+ status: number;
1706
+ };
1707
+ TOO_MANY_ATTEMPTS: {
1708
+ status: number;
1709
+ };
1710
+ UNKNOWN_PERMISSION: {
1711
+ status: number;
1712
+ data: z.ZodObject<{
1713
+ permissions: z.ZodArray<z.ZodString>;
1714
+ }, z.core.$strip>;
1715
+ };
1716
+ WRONG_CODE: {
1717
+ status: number;
1718
+ };
1719
+ WRONG_PASSWORD: {
1720
+ status: number;
1721
+ };
1722
+ }>, Record<never, never>>;
321
1723
  twoFactorEnable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
322
1724
  code: z.ZodString;
323
1725
  }, z.core.$strip>, z.ZodObject<{
324
1726
  recoveryCodes: z.ZodArray<z.ZodString>;
325
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1727
+ }, z.core.$strip>, 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
+ ALREADY_ENABLED: {
1806
+ status: number;
1807
+ };
1808
+ BEYOND_OWN_PERMISSIONS: {
1809
+ status: number;
1810
+ data: z.ZodOptional<z.ZodObject<{
1811
+ permissions: z.ZodArray<z.ZodString>;
1812
+ }, z.core.$strip>>;
1813
+ };
1814
+ BUILTIN_ROLE: {
1815
+ status: number;
1816
+ };
1817
+ CHALLENGE_EXPIRED: {
1818
+ status: number;
1819
+ };
1820
+ CROSS_SITE: {
1821
+ status: number;
1822
+ };
1823
+ FIXED_ROLE: {
1824
+ status: number;
1825
+ };
1826
+ INVALID_CREDENTIALS: {
1827
+ status: number;
1828
+ };
1829
+ INVALID_LINK: {
1830
+ status: number;
1831
+ };
1832
+ LIMIT_EXCEEDED: {
1833
+ status: number;
1834
+ };
1835
+ NOT_ENABLED: {
1836
+ status: number;
1837
+ };
1838
+ NOT_INVITED: {
1839
+ status: number;
1840
+ };
1841
+ NOT_SET_UP: {
1842
+ status: number;
1843
+ };
1844
+ ORGANIZATION_REQUIRED: {
1845
+ status: number;
1846
+ };
1847
+ OWNER_ONLY_PERMISSION: {
1848
+ status: number;
1849
+ data: z.ZodObject<{
1850
+ permissions: z.ZodArray<z.ZodString>;
1851
+ }, z.core.$strip>;
1852
+ };
1853
+ ROLE_IN_USE: {
1854
+ status: number;
1855
+ };
1856
+ ROLE_NOT_FOUND: {
1857
+ status: number;
1858
+ };
1859
+ SAME_PASSWORD: {
1860
+ status: number;
1861
+ };
1862
+ SETUP_DISABLED: {
1863
+ status: number;
1864
+ };
1865
+ SETUP_DONE: {
1866
+ status: number;
1867
+ };
1868
+ TOO_MANY_ATTEMPTS: {
1869
+ status: number;
1870
+ };
1871
+ UNKNOWN_PERMISSION: {
1872
+ status: number;
1873
+ data: z.ZodObject<{
1874
+ permissions: z.ZodArray<z.ZodString>;
1875
+ }, z.core.$strip>;
1876
+ };
1877
+ WRONG_CODE: {
1878
+ status: number;
1879
+ };
1880
+ WRONG_PASSWORD: {
1881
+ status: number;
1882
+ };
1883
+ }>, Record<never, never>>;
326
1884
  twoFactorDisable: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
327
1885
  password: z.ZodString;
328
1886
  }, z.core.$strip>, z.ZodObject<{
329
1887
  ok: z.ZodLiteral<true>;
330
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
1888
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1889
+ UNAUTHORIZED: {
1890
+ status: number;
1891
+ };
1892
+ NOT_ALLOWED: {
1893
+ status: number;
1894
+ data: z.ZodOptional<z.ZodObject<{
1895
+ permission: z.ZodString;
1896
+ }, z.core.$strip>>;
1897
+ };
1898
+ PLUGIN_ONLY: {
1899
+ status: number;
1900
+ };
1901
+ MEMBERS_ONLY: {
1902
+ status: number;
1903
+ };
1904
+ ORG_REQUIRED: {
1905
+ status: number;
1906
+ };
1907
+ SCOPE_REQUIRED: {
1908
+ status: number;
1909
+ };
1910
+ SERVICE_TOKEN_REQUIRED: {
1911
+ status: number;
1912
+ };
1913
+ ORGANIZATION_DISABLED: {
1914
+ status: number;
1915
+ data: z.ZodObject<{
1916
+ manageUrl: z.ZodNullable<z.ZodString>;
1917
+ }, z.core.$strip>;
1918
+ };
1919
+ NOT_IN_PLAN: {
1920
+ status: number;
1921
+ data: z.ZodOptional<z.ZodObject<{
1922
+ manageUrl: z.ZodNullable<z.ZodString>;
1923
+ }, z.core.$strip>>;
1924
+ };
1925
+ READ_ONLY: {
1926
+ status: number;
1927
+ };
1928
+ TOO_MANY_REQUESTS: {
1929
+ status: number;
1930
+ };
1931
+ INVALID_INPUT: {
1932
+ status: number;
1933
+ data: z.ZodObject<{
1934
+ issues: z.ZodArray<z.ZodObject<{
1935
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
1936
+ message: z.ZodString;
1937
+ }, z.core.$strip>>;
1938
+ }, z.core.$strip>;
1939
+ };
1940
+ NOT_FOUND: {
1941
+ status: number;
1942
+ };
1943
+ TAKEN: {
1944
+ status: number;
1945
+ data: z.ZodObject<{
1946
+ field: z.ZodString;
1947
+ id: z.ZodOptional<z.ZodString>;
1948
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
1949
+ }, z.core.$strip>;
1950
+ };
1951
+ INVALID_CURSOR: {
1952
+ status: number;
1953
+ };
1954
+ INVALID_REFERENCE: {
1955
+ status: number;
1956
+ data: z.ZodObject<{
1957
+ field: z.ZodString;
1958
+ }, z.core.$strip>;
1959
+ };
1960
+ INVALID_FILTER: {
1961
+ status: number;
1962
+ };
1963
+ FILTER_TOO_SLOW: {
1964
+ status: number;
1965
+ };
1966
+ ALREADY_ENABLED: {
1967
+ status: number;
1968
+ };
1969
+ BEYOND_OWN_PERMISSIONS: {
1970
+ status: number;
1971
+ data: z.ZodOptional<z.ZodObject<{
1972
+ permissions: z.ZodArray<z.ZodString>;
1973
+ }, z.core.$strip>>;
1974
+ };
1975
+ BUILTIN_ROLE: {
1976
+ status: number;
1977
+ };
1978
+ CHALLENGE_EXPIRED: {
1979
+ status: number;
1980
+ };
1981
+ CROSS_SITE: {
1982
+ status: number;
1983
+ };
1984
+ FIXED_ROLE: {
1985
+ status: number;
1986
+ };
1987
+ INVALID_CREDENTIALS: {
1988
+ status: number;
1989
+ };
1990
+ INVALID_LINK: {
1991
+ status: number;
1992
+ };
1993
+ LIMIT_EXCEEDED: {
1994
+ status: number;
1995
+ };
1996
+ NOT_ENABLED: {
1997
+ status: number;
1998
+ };
1999
+ NOT_INVITED: {
2000
+ status: number;
2001
+ };
2002
+ NOT_SET_UP: {
2003
+ status: number;
2004
+ };
2005
+ ORGANIZATION_REQUIRED: {
2006
+ status: number;
2007
+ };
2008
+ OWNER_ONLY_PERMISSION: {
2009
+ status: number;
2010
+ data: z.ZodObject<{
2011
+ permissions: z.ZodArray<z.ZodString>;
2012
+ }, z.core.$strip>;
2013
+ };
2014
+ ROLE_IN_USE: {
2015
+ status: number;
2016
+ };
2017
+ ROLE_NOT_FOUND: {
2018
+ status: number;
2019
+ };
2020
+ SAME_PASSWORD: {
2021
+ status: number;
2022
+ };
2023
+ SETUP_DISABLED: {
2024
+ status: number;
2025
+ };
2026
+ SETUP_DONE: {
2027
+ status: number;
2028
+ };
2029
+ TOO_MANY_ATTEMPTS: {
2030
+ status: number;
2031
+ };
2032
+ UNKNOWN_PERMISSION: {
2033
+ status: number;
2034
+ data: z.ZodObject<{
2035
+ permissions: z.ZodArray<z.ZodString>;
2036
+ }, z.core.$strip>;
2037
+ };
2038
+ WRONG_CODE: {
2039
+ status: number;
2040
+ };
2041
+ WRONG_PASSWORD: {
2042
+ status: number;
2043
+ };
2044
+ }>, Record<never, never>>;
331
2045
  twoFactorRecoveryCodes: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
332
2046
  password: z.ZodString;
333
2047
  }, z.core.$strip>, z.ZodObject<{
334
2048
  recoveryCodes: z.ZodArray<z.ZodString>;
335
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2049
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2050
+ UNAUTHORIZED: {
2051
+ status: number;
2052
+ };
2053
+ NOT_ALLOWED: {
2054
+ status: number;
2055
+ data: z.ZodOptional<z.ZodObject<{
2056
+ permission: z.ZodString;
2057
+ }, z.core.$strip>>;
2058
+ };
2059
+ PLUGIN_ONLY: {
2060
+ status: number;
2061
+ };
2062
+ MEMBERS_ONLY: {
2063
+ status: number;
2064
+ };
2065
+ ORG_REQUIRED: {
2066
+ status: number;
2067
+ };
2068
+ SCOPE_REQUIRED: {
2069
+ status: number;
2070
+ };
2071
+ SERVICE_TOKEN_REQUIRED: {
2072
+ status: number;
2073
+ };
2074
+ ORGANIZATION_DISABLED: {
2075
+ status: number;
2076
+ data: z.ZodObject<{
2077
+ manageUrl: z.ZodNullable<z.ZodString>;
2078
+ }, z.core.$strip>;
2079
+ };
2080
+ NOT_IN_PLAN: {
2081
+ status: number;
2082
+ data: z.ZodOptional<z.ZodObject<{
2083
+ manageUrl: z.ZodNullable<z.ZodString>;
2084
+ }, z.core.$strip>>;
2085
+ };
2086
+ READ_ONLY: {
2087
+ status: number;
2088
+ };
2089
+ TOO_MANY_REQUESTS: {
2090
+ status: number;
2091
+ };
2092
+ INVALID_INPUT: {
2093
+ status: number;
2094
+ data: z.ZodObject<{
2095
+ issues: z.ZodArray<z.ZodObject<{
2096
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2097
+ message: z.ZodString;
2098
+ }, z.core.$strip>>;
2099
+ }, z.core.$strip>;
2100
+ };
2101
+ NOT_FOUND: {
2102
+ status: number;
2103
+ };
2104
+ TAKEN: {
2105
+ status: number;
2106
+ data: z.ZodObject<{
2107
+ field: z.ZodString;
2108
+ id: z.ZodOptional<z.ZodString>;
2109
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2110
+ }, z.core.$strip>;
2111
+ };
2112
+ INVALID_CURSOR: {
2113
+ status: number;
2114
+ };
2115
+ INVALID_REFERENCE: {
2116
+ status: number;
2117
+ data: z.ZodObject<{
2118
+ field: z.ZodString;
2119
+ }, z.core.$strip>;
2120
+ };
2121
+ INVALID_FILTER: {
2122
+ status: number;
2123
+ };
2124
+ FILTER_TOO_SLOW: {
2125
+ status: number;
2126
+ };
2127
+ ALREADY_ENABLED: {
2128
+ status: number;
2129
+ };
2130
+ BEYOND_OWN_PERMISSIONS: {
2131
+ status: number;
2132
+ data: z.ZodOptional<z.ZodObject<{
2133
+ permissions: z.ZodArray<z.ZodString>;
2134
+ }, z.core.$strip>>;
2135
+ };
2136
+ BUILTIN_ROLE: {
2137
+ status: number;
2138
+ };
2139
+ CHALLENGE_EXPIRED: {
2140
+ status: number;
2141
+ };
2142
+ CROSS_SITE: {
2143
+ status: number;
2144
+ };
2145
+ FIXED_ROLE: {
2146
+ status: number;
2147
+ };
2148
+ INVALID_CREDENTIALS: {
2149
+ status: number;
2150
+ };
2151
+ INVALID_LINK: {
2152
+ status: number;
2153
+ };
2154
+ LIMIT_EXCEEDED: {
2155
+ status: number;
2156
+ };
2157
+ NOT_ENABLED: {
2158
+ status: number;
2159
+ };
2160
+ NOT_INVITED: {
2161
+ status: number;
2162
+ };
2163
+ NOT_SET_UP: {
2164
+ status: number;
2165
+ };
2166
+ ORGANIZATION_REQUIRED: {
2167
+ status: number;
2168
+ };
2169
+ OWNER_ONLY_PERMISSION: {
2170
+ status: number;
2171
+ data: z.ZodObject<{
2172
+ permissions: z.ZodArray<z.ZodString>;
2173
+ }, z.core.$strip>;
2174
+ };
2175
+ ROLE_IN_USE: {
2176
+ status: number;
2177
+ };
2178
+ ROLE_NOT_FOUND: {
2179
+ status: number;
2180
+ };
2181
+ SAME_PASSWORD: {
2182
+ status: number;
2183
+ };
2184
+ SETUP_DISABLED: {
2185
+ status: number;
2186
+ };
2187
+ SETUP_DONE: {
2188
+ status: number;
2189
+ };
2190
+ TOO_MANY_ATTEMPTS: {
2191
+ status: number;
2192
+ };
2193
+ UNKNOWN_PERMISSION: {
2194
+ status: number;
2195
+ data: z.ZodObject<{
2196
+ permissions: z.ZodArray<z.ZodString>;
2197
+ }, z.core.$strip>;
2198
+ };
2199
+ WRONG_CODE: {
2200
+ status: number;
2201
+ };
2202
+ WRONG_PASSWORD: {
2203
+ status: number;
2204
+ };
2205
+ }>, Record<never, never>>;
336
2206
  signOutEverywhere: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
337
2207
  ok: z.ZodLiteral<true>;
338
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2208
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2209
+ UNAUTHORIZED: {
2210
+ status: number;
2211
+ };
2212
+ NOT_ALLOWED: {
2213
+ status: number;
2214
+ data: z.ZodOptional<z.ZodObject<{
2215
+ permission: z.ZodString;
2216
+ }, z.core.$strip>>;
2217
+ };
2218
+ PLUGIN_ONLY: {
2219
+ status: number;
2220
+ };
2221
+ MEMBERS_ONLY: {
2222
+ status: number;
2223
+ };
2224
+ ORG_REQUIRED: {
2225
+ status: number;
2226
+ };
2227
+ SCOPE_REQUIRED: {
2228
+ status: number;
2229
+ };
2230
+ SERVICE_TOKEN_REQUIRED: {
2231
+ status: number;
2232
+ };
2233
+ ORGANIZATION_DISABLED: {
2234
+ status: number;
2235
+ data: z.ZodObject<{
2236
+ manageUrl: z.ZodNullable<z.ZodString>;
2237
+ }, z.core.$strip>;
2238
+ };
2239
+ NOT_IN_PLAN: {
2240
+ status: number;
2241
+ data: z.ZodOptional<z.ZodObject<{
2242
+ manageUrl: z.ZodNullable<z.ZodString>;
2243
+ }, z.core.$strip>>;
2244
+ };
2245
+ READ_ONLY: {
2246
+ status: number;
2247
+ };
2248
+ TOO_MANY_REQUESTS: {
2249
+ status: number;
2250
+ };
2251
+ INVALID_INPUT: {
2252
+ status: number;
2253
+ data: z.ZodObject<{
2254
+ issues: z.ZodArray<z.ZodObject<{
2255
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2256
+ message: z.ZodString;
2257
+ }, z.core.$strip>>;
2258
+ }, z.core.$strip>;
2259
+ };
2260
+ NOT_FOUND: {
2261
+ status: number;
2262
+ };
2263
+ TAKEN: {
2264
+ status: number;
2265
+ data: z.ZodObject<{
2266
+ field: z.ZodString;
2267
+ id: z.ZodOptional<z.ZodString>;
2268
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2269
+ }, z.core.$strip>;
2270
+ };
2271
+ INVALID_CURSOR: {
2272
+ status: number;
2273
+ };
2274
+ INVALID_REFERENCE: {
2275
+ status: number;
2276
+ data: z.ZodObject<{
2277
+ field: z.ZodString;
2278
+ }, z.core.$strip>;
2279
+ };
2280
+ INVALID_FILTER: {
2281
+ status: number;
2282
+ };
2283
+ FILTER_TOO_SLOW: {
2284
+ status: number;
2285
+ };
2286
+ ALREADY_ENABLED: {
2287
+ status: number;
2288
+ };
2289
+ BEYOND_OWN_PERMISSIONS: {
2290
+ status: number;
2291
+ data: z.ZodOptional<z.ZodObject<{
2292
+ permissions: z.ZodArray<z.ZodString>;
2293
+ }, z.core.$strip>>;
2294
+ };
2295
+ BUILTIN_ROLE: {
2296
+ status: number;
2297
+ };
2298
+ CHALLENGE_EXPIRED: {
2299
+ status: number;
2300
+ };
2301
+ CROSS_SITE: {
2302
+ status: number;
2303
+ };
2304
+ FIXED_ROLE: {
2305
+ status: number;
2306
+ };
2307
+ INVALID_CREDENTIALS: {
2308
+ status: number;
2309
+ };
2310
+ INVALID_LINK: {
2311
+ status: number;
2312
+ };
2313
+ LIMIT_EXCEEDED: {
2314
+ status: number;
2315
+ };
2316
+ NOT_ENABLED: {
2317
+ status: number;
2318
+ };
2319
+ NOT_INVITED: {
2320
+ status: number;
2321
+ };
2322
+ NOT_SET_UP: {
2323
+ status: number;
2324
+ };
2325
+ ORGANIZATION_REQUIRED: {
2326
+ status: number;
2327
+ };
2328
+ OWNER_ONLY_PERMISSION: {
2329
+ status: number;
2330
+ data: z.ZodObject<{
2331
+ permissions: z.ZodArray<z.ZodString>;
2332
+ }, z.core.$strip>;
2333
+ };
2334
+ ROLE_IN_USE: {
2335
+ status: number;
2336
+ };
2337
+ ROLE_NOT_FOUND: {
2338
+ status: number;
2339
+ };
2340
+ SAME_PASSWORD: {
2341
+ status: number;
2342
+ };
2343
+ SETUP_DISABLED: {
2344
+ status: number;
2345
+ };
2346
+ SETUP_DONE: {
2347
+ status: number;
2348
+ };
2349
+ TOO_MANY_ATTEMPTS: {
2350
+ status: number;
2351
+ };
2352
+ UNKNOWN_PERMISSION: {
2353
+ status: number;
2354
+ data: z.ZodObject<{
2355
+ permissions: z.ZodArray<z.ZodString>;
2356
+ }, z.core.$strip>;
2357
+ };
2358
+ WRONG_CODE: {
2359
+ status: number;
2360
+ };
2361
+ WRONG_PASSWORD: {
2362
+ status: number;
2363
+ };
2364
+ }>, Record<never, never>>;
339
2365
  signOut: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
340
2366
  ok: z.ZodLiteral<true>;
341
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2367
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2368
+ UNAUTHORIZED: {
2369
+ status: number;
2370
+ };
2371
+ NOT_ALLOWED: {
2372
+ status: number;
2373
+ data: z.ZodOptional<z.ZodObject<{
2374
+ permission: z.ZodString;
2375
+ }, z.core.$strip>>;
2376
+ };
2377
+ PLUGIN_ONLY: {
2378
+ status: number;
2379
+ };
2380
+ MEMBERS_ONLY: {
2381
+ status: number;
2382
+ };
2383
+ ORG_REQUIRED: {
2384
+ status: number;
2385
+ };
2386
+ SCOPE_REQUIRED: {
2387
+ status: number;
2388
+ };
2389
+ SERVICE_TOKEN_REQUIRED: {
2390
+ status: number;
2391
+ };
2392
+ ORGANIZATION_DISABLED: {
2393
+ status: number;
2394
+ data: z.ZodObject<{
2395
+ manageUrl: z.ZodNullable<z.ZodString>;
2396
+ }, z.core.$strip>;
2397
+ };
2398
+ NOT_IN_PLAN: {
2399
+ status: number;
2400
+ data: z.ZodOptional<z.ZodObject<{
2401
+ manageUrl: z.ZodNullable<z.ZodString>;
2402
+ }, z.core.$strip>>;
2403
+ };
2404
+ READ_ONLY: {
2405
+ status: number;
2406
+ };
2407
+ TOO_MANY_REQUESTS: {
2408
+ status: number;
2409
+ };
2410
+ INVALID_INPUT: {
2411
+ status: number;
2412
+ data: z.ZodObject<{
2413
+ issues: z.ZodArray<z.ZodObject<{
2414
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2415
+ message: z.ZodString;
2416
+ }, z.core.$strip>>;
2417
+ }, z.core.$strip>;
2418
+ };
2419
+ NOT_FOUND: {
2420
+ status: number;
2421
+ };
2422
+ TAKEN: {
2423
+ status: number;
2424
+ data: z.ZodObject<{
2425
+ field: z.ZodString;
2426
+ id: z.ZodOptional<z.ZodString>;
2427
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2428
+ }, z.core.$strip>;
2429
+ };
2430
+ INVALID_CURSOR: {
2431
+ status: number;
2432
+ };
2433
+ INVALID_REFERENCE: {
2434
+ status: number;
2435
+ data: z.ZodObject<{
2436
+ field: z.ZodString;
2437
+ }, z.core.$strip>;
2438
+ };
2439
+ INVALID_FILTER: {
2440
+ status: number;
2441
+ };
2442
+ FILTER_TOO_SLOW: {
2443
+ status: number;
2444
+ };
2445
+ ALREADY_ENABLED: {
2446
+ status: number;
2447
+ };
2448
+ BEYOND_OWN_PERMISSIONS: {
2449
+ status: number;
2450
+ data: z.ZodOptional<z.ZodObject<{
2451
+ permissions: z.ZodArray<z.ZodString>;
2452
+ }, z.core.$strip>>;
2453
+ };
2454
+ BUILTIN_ROLE: {
2455
+ status: number;
2456
+ };
2457
+ CHALLENGE_EXPIRED: {
2458
+ status: number;
2459
+ };
2460
+ CROSS_SITE: {
2461
+ status: number;
2462
+ };
2463
+ FIXED_ROLE: {
2464
+ status: number;
2465
+ };
2466
+ INVALID_CREDENTIALS: {
2467
+ status: number;
2468
+ };
2469
+ INVALID_LINK: {
2470
+ status: number;
2471
+ };
2472
+ LIMIT_EXCEEDED: {
2473
+ status: number;
2474
+ };
2475
+ NOT_ENABLED: {
2476
+ status: number;
2477
+ };
2478
+ NOT_INVITED: {
2479
+ status: number;
2480
+ };
2481
+ NOT_SET_UP: {
2482
+ status: number;
2483
+ };
2484
+ ORGANIZATION_REQUIRED: {
2485
+ status: number;
2486
+ };
2487
+ OWNER_ONLY_PERMISSION: {
2488
+ status: number;
2489
+ data: z.ZodObject<{
2490
+ permissions: z.ZodArray<z.ZodString>;
2491
+ }, z.core.$strip>;
2492
+ };
2493
+ ROLE_IN_USE: {
2494
+ status: number;
2495
+ };
2496
+ ROLE_NOT_FOUND: {
2497
+ status: number;
2498
+ };
2499
+ SAME_PASSWORD: {
2500
+ status: number;
2501
+ };
2502
+ SETUP_DISABLED: {
2503
+ status: number;
2504
+ };
2505
+ SETUP_DONE: {
2506
+ status: number;
2507
+ };
2508
+ TOO_MANY_ATTEMPTS: {
2509
+ status: number;
2510
+ };
2511
+ UNKNOWN_PERMISSION: {
2512
+ status: number;
2513
+ data: z.ZodObject<{
2514
+ permissions: z.ZodArray<z.ZodString>;
2515
+ }, z.core.$strip>;
2516
+ };
2517
+ WRONG_CODE: {
2518
+ status: number;
2519
+ };
2520
+ WRONG_PASSWORD: {
2521
+ status: number;
2522
+ };
2523
+ }>, Record<never, never>>;
342
2524
  me: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
343
2525
  user: z.ZodObject<{
344
2526
  id: z.ZodString;
@@ -362,10 +2544,10 @@ export declare const authContract: {
362
2544
  disabled: "disabled";
363
2545
  invited: "invited";
364
2546
  }>;
365
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
366
- createdAt: z.ZodISODateTime;
367
- updatedAt: z.ZodISODateTime;
368
- twoFactorEnabled: z.ZodBoolean;
2547
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
2548
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
2549
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
2550
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
369
2551
  }, {
370
2552
  out: {};
371
2553
  in: {};
@@ -376,13 +2558,169 @@ export declare const authContract: {
376
2558
  name: z.ZodString;
377
2559
  country: z.ZodNullable<z.ZodString>;
378
2560
  currency: z.ZodString;
379
- createdAt: z.ZodISODateTime;
2561
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
380
2562
  }, {
381
2563
  out: {};
382
2564
  in: {};
383
2565
  }>;
384
2566
  permissions: z.ZodArray<z.ZodString>;
385
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2567
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2568
+ UNAUTHORIZED: {
2569
+ status: number;
2570
+ };
2571
+ NOT_ALLOWED: {
2572
+ status: number;
2573
+ data: z.ZodOptional<z.ZodObject<{
2574
+ permission: z.ZodString;
2575
+ }, z.core.$strip>>;
2576
+ };
2577
+ PLUGIN_ONLY: {
2578
+ status: number;
2579
+ };
2580
+ MEMBERS_ONLY: {
2581
+ status: number;
2582
+ };
2583
+ ORG_REQUIRED: {
2584
+ status: number;
2585
+ };
2586
+ SCOPE_REQUIRED: {
2587
+ status: number;
2588
+ };
2589
+ SERVICE_TOKEN_REQUIRED: {
2590
+ status: number;
2591
+ };
2592
+ ORGANIZATION_DISABLED: {
2593
+ status: number;
2594
+ data: z.ZodObject<{
2595
+ manageUrl: z.ZodNullable<z.ZodString>;
2596
+ }, z.core.$strip>;
2597
+ };
2598
+ NOT_IN_PLAN: {
2599
+ status: number;
2600
+ data: z.ZodOptional<z.ZodObject<{
2601
+ manageUrl: z.ZodNullable<z.ZodString>;
2602
+ }, z.core.$strip>>;
2603
+ };
2604
+ READ_ONLY: {
2605
+ status: number;
2606
+ };
2607
+ TOO_MANY_REQUESTS: {
2608
+ status: number;
2609
+ };
2610
+ INVALID_INPUT: {
2611
+ status: number;
2612
+ data: z.ZodObject<{
2613
+ issues: z.ZodArray<z.ZodObject<{
2614
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2615
+ message: z.ZodString;
2616
+ }, z.core.$strip>>;
2617
+ }, z.core.$strip>;
2618
+ };
2619
+ NOT_FOUND: {
2620
+ status: number;
2621
+ };
2622
+ TAKEN: {
2623
+ status: number;
2624
+ data: z.ZodObject<{
2625
+ field: z.ZodString;
2626
+ id: z.ZodOptional<z.ZodString>;
2627
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2628
+ }, z.core.$strip>;
2629
+ };
2630
+ INVALID_CURSOR: {
2631
+ status: number;
2632
+ };
2633
+ INVALID_REFERENCE: {
2634
+ status: number;
2635
+ data: z.ZodObject<{
2636
+ field: z.ZodString;
2637
+ }, z.core.$strip>;
2638
+ };
2639
+ INVALID_FILTER: {
2640
+ status: number;
2641
+ };
2642
+ FILTER_TOO_SLOW: {
2643
+ status: number;
2644
+ };
2645
+ ALREADY_ENABLED: {
2646
+ status: number;
2647
+ };
2648
+ BEYOND_OWN_PERMISSIONS: {
2649
+ status: number;
2650
+ data: z.ZodOptional<z.ZodObject<{
2651
+ permissions: z.ZodArray<z.ZodString>;
2652
+ }, z.core.$strip>>;
2653
+ };
2654
+ BUILTIN_ROLE: {
2655
+ status: number;
2656
+ };
2657
+ CHALLENGE_EXPIRED: {
2658
+ status: number;
2659
+ };
2660
+ CROSS_SITE: {
2661
+ status: number;
2662
+ };
2663
+ FIXED_ROLE: {
2664
+ status: number;
2665
+ };
2666
+ INVALID_CREDENTIALS: {
2667
+ status: number;
2668
+ };
2669
+ INVALID_LINK: {
2670
+ status: number;
2671
+ };
2672
+ LIMIT_EXCEEDED: {
2673
+ status: number;
2674
+ };
2675
+ NOT_ENABLED: {
2676
+ status: number;
2677
+ };
2678
+ NOT_INVITED: {
2679
+ status: number;
2680
+ };
2681
+ NOT_SET_UP: {
2682
+ status: number;
2683
+ };
2684
+ ORGANIZATION_REQUIRED: {
2685
+ status: number;
2686
+ };
2687
+ OWNER_ONLY_PERMISSION: {
2688
+ status: number;
2689
+ data: z.ZodObject<{
2690
+ permissions: z.ZodArray<z.ZodString>;
2691
+ }, z.core.$strip>;
2692
+ };
2693
+ ROLE_IN_USE: {
2694
+ status: number;
2695
+ };
2696
+ ROLE_NOT_FOUND: {
2697
+ status: number;
2698
+ };
2699
+ SAME_PASSWORD: {
2700
+ status: number;
2701
+ };
2702
+ SETUP_DISABLED: {
2703
+ status: number;
2704
+ };
2705
+ SETUP_DONE: {
2706
+ status: number;
2707
+ };
2708
+ TOO_MANY_ATTEMPTS: {
2709
+ status: number;
2710
+ };
2711
+ UNKNOWN_PERMISSION: {
2712
+ status: number;
2713
+ data: z.ZodObject<{
2714
+ permissions: z.ZodArray<z.ZodString>;
2715
+ }, z.core.$strip>;
2716
+ };
2717
+ WRONG_CODE: {
2718
+ status: number;
2719
+ };
2720
+ WRONG_PASSWORD: {
2721
+ status: number;
2722
+ };
2723
+ }>, Record<never, never>>;
386
2724
  onboarded: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
387
2725
  exampleData: z.ZodOptional<z.ZodBoolean>;
388
2726
  language: z.ZodOptional<z.ZodEnum<{
@@ -412,10 +2750,10 @@ export declare const authContract: {
412
2750
  disabled: "disabled";
413
2751
  invited: "invited";
414
2752
  }>;
415
- onboardedAt: z.ZodNullable<z.ZodISODateTime>;
416
- createdAt: z.ZodISODateTime;
417
- updatedAt: z.ZodISODateTime;
418
- twoFactorEnabled: z.ZodBoolean;
2753
+ totpEnabledAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
2754
+ onboardedAt: z.ZodNullable<z.ZodCodec<z.ZodDate, z.ZodISODateTime>>;
2755
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
2756
+ updatedAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
419
2757
  }, {
420
2758
  out: {};
421
2759
  in: {};
@@ -426,26 +2764,494 @@ export declare const authContract: {
426
2764
  name: z.ZodString;
427
2765
  country: z.ZodNullable<z.ZodString>;
428
2766
  currency: z.ZodString;
429
- createdAt: z.ZodISODateTime;
2767
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
430
2768
  }, {
431
2769
  out: {};
432
2770
  in: {};
433
2771
  }>;
434
2772
  permissions: z.ZodArray<z.ZodString>;
435
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2773
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2774
+ UNAUTHORIZED: {
2775
+ status: number;
2776
+ };
2777
+ NOT_ALLOWED: {
2778
+ status: number;
2779
+ data: z.ZodOptional<z.ZodObject<{
2780
+ permission: z.ZodString;
2781
+ }, z.core.$strip>>;
2782
+ };
2783
+ PLUGIN_ONLY: {
2784
+ status: number;
2785
+ };
2786
+ MEMBERS_ONLY: {
2787
+ status: number;
2788
+ };
2789
+ ORG_REQUIRED: {
2790
+ status: number;
2791
+ };
2792
+ SCOPE_REQUIRED: {
2793
+ status: number;
2794
+ };
2795
+ SERVICE_TOKEN_REQUIRED: {
2796
+ status: number;
2797
+ };
2798
+ ORGANIZATION_DISABLED: {
2799
+ status: number;
2800
+ data: z.ZodObject<{
2801
+ manageUrl: z.ZodNullable<z.ZodString>;
2802
+ }, z.core.$strip>;
2803
+ };
2804
+ NOT_IN_PLAN: {
2805
+ status: number;
2806
+ data: z.ZodOptional<z.ZodObject<{
2807
+ manageUrl: z.ZodNullable<z.ZodString>;
2808
+ }, z.core.$strip>>;
2809
+ };
2810
+ READ_ONLY: {
2811
+ status: number;
2812
+ };
2813
+ TOO_MANY_REQUESTS: {
2814
+ status: number;
2815
+ };
2816
+ INVALID_INPUT: {
2817
+ status: number;
2818
+ data: z.ZodObject<{
2819
+ issues: z.ZodArray<z.ZodObject<{
2820
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2821
+ message: z.ZodString;
2822
+ }, z.core.$strip>>;
2823
+ }, z.core.$strip>;
2824
+ };
2825
+ NOT_FOUND: {
2826
+ status: number;
2827
+ };
2828
+ TAKEN: {
2829
+ status: number;
2830
+ data: z.ZodObject<{
2831
+ field: z.ZodString;
2832
+ id: z.ZodOptional<z.ZodString>;
2833
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2834
+ }, z.core.$strip>;
2835
+ };
2836
+ INVALID_CURSOR: {
2837
+ status: number;
2838
+ };
2839
+ INVALID_REFERENCE: {
2840
+ status: number;
2841
+ data: z.ZodObject<{
2842
+ field: z.ZodString;
2843
+ }, z.core.$strip>;
2844
+ };
2845
+ INVALID_FILTER: {
2846
+ status: number;
2847
+ };
2848
+ FILTER_TOO_SLOW: {
2849
+ status: number;
2850
+ };
2851
+ ALREADY_ENABLED: {
2852
+ status: number;
2853
+ };
2854
+ BEYOND_OWN_PERMISSIONS: {
2855
+ status: number;
2856
+ data: z.ZodOptional<z.ZodObject<{
2857
+ permissions: z.ZodArray<z.ZodString>;
2858
+ }, z.core.$strip>>;
2859
+ };
2860
+ BUILTIN_ROLE: {
2861
+ status: number;
2862
+ };
2863
+ CHALLENGE_EXPIRED: {
2864
+ status: number;
2865
+ };
2866
+ CROSS_SITE: {
2867
+ status: number;
2868
+ };
2869
+ FIXED_ROLE: {
2870
+ status: number;
2871
+ };
2872
+ INVALID_CREDENTIALS: {
2873
+ status: number;
2874
+ };
2875
+ INVALID_LINK: {
2876
+ status: number;
2877
+ };
2878
+ LIMIT_EXCEEDED: {
2879
+ status: number;
2880
+ };
2881
+ NOT_ENABLED: {
2882
+ status: number;
2883
+ };
2884
+ NOT_INVITED: {
2885
+ status: number;
2886
+ };
2887
+ NOT_SET_UP: {
2888
+ status: number;
2889
+ };
2890
+ ORGANIZATION_REQUIRED: {
2891
+ status: number;
2892
+ };
2893
+ OWNER_ONLY_PERMISSION: {
2894
+ status: number;
2895
+ data: z.ZodObject<{
2896
+ permissions: z.ZodArray<z.ZodString>;
2897
+ }, z.core.$strip>;
2898
+ };
2899
+ ROLE_IN_USE: {
2900
+ status: number;
2901
+ };
2902
+ ROLE_NOT_FOUND: {
2903
+ status: number;
2904
+ };
2905
+ SAME_PASSWORD: {
2906
+ status: number;
2907
+ };
2908
+ SETUP_DISABLED: {
2909
+ status: number;
2910
+ };
2911
+ SETUP_DONE: {
2912
+ status: number;
2913
+ };
2914
+ TOO_MANY_ATTEMPTS: {
2915
+ status: number;
2916
+ };
2917
+ UNKNOWN_PERMISSION: {
2918
+ status: number;
2919
+ data: z.ZodObject<{
2920
+ permissions: z.ZodArray<z.ZodString>;
2921
+ }, z.core.$strip>;
2922
+ };
2923
+ WRONG_CODE: {
2924
+ status: number;
2925
+ };
2926
+ WRONG_PASSWORD: {
2927
+ status: number;
2928
+ };
2929
+ }>, Record<never, never>>;
436
2930
  changePassword: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
437
2931
  currentPassword: z.ZodString;
438
2932
  newPassword: z.ZodString;
439
2933
  }, z.core.$strip>, z.ZodObject<{
440
2934
  ok: z.ZodLiteral<true>;
441
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
2935
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2936
+ UNAUTHORIZED: {
2937
+ status: number;
2938
+ };
2939
+ NOT_ALLOWED: {
2940
+ status: number;
2941
+ data: z.ZodOptional<z.ZodObject<{
2942
+ permission: z.ZodString;
2943
+ }, z.core.$strip>>;
2944
+ };
2945
+ PLUGIN_ONLY: {
2946
+ status: number;
2947
+ };
2948
+ MEMBERS_ONLY: {
2949
+ status: number;
2950
+ };
2951
+ ORG_REQUIRED: {
2952
+ status: number;
2953
+ };
2954
+ SCOPE_REQUIRED: {
2955
+ status: number;
2956
+ };
2957
+ SERVICE_TOKEN_REQUIRED: {
2958
+ status: number;
2959
+ };
2960
+ ORGANIZATION_DISABLED: {
2961
+ status: number;
2962
+ data: z.ZodObject<{
2963
+ manageUrl: z.ZodNullable<z.ZodString>;
2964
+ }, z.core.$strip>;
2965
+ };
2966
+ NOT_IN_PLAN: {
2967
+ status: number;
2968
+ data: z.ZodOptional<z.ZodObject<{
2969
+ manageUrl: z.ZodNullable<z.ZodString>;
2970
+ }, z.core.$strip>>;
2971
+ };
2972
+ READ_ONLY: {
2973
+ status: number;
2974
+ };
2975
+ TOO_MANY_REQUESTS: {
2976
+ status: number;
2977
+ };
2978
+ INVALID_INPUT: {
2979
+ status: number;
2980
+ data: z.ZodObject<{
2981
+ issues: z.ZodArray<z.ZodObject<{
2982
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
2983
+ message: z.ZodString;
2984
+ }, z.core.$strip>>;
2985
+ }, z.core.$strip>;
2986
+ };
2987
+ NOT_FOUND: {
2988
+ status: number;
2989
+ };
2990
+ TAKEN: {
2991
+ status: number;
2992
+ data: z.ZodObject<{
2993
+ field: z.ZodString;
2994
+ id: z.ZodOptional<z.ZodString>;
2995
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
2996
+ }, z.core.$strip>;
2997
+ };
2998
+ INVALID_CURSOR: {
2999
+ status: number;
3000
+ };
3001
+ INVALID_REFERENCE: {
3002
+ status: number;
3003
+ data: z.ZodObject<{
3004
+ field: z.ZodString;
3005
+ }, z.core.$strip>;
3006
+ };
3007
+ INVALID_FILTER: {
3008
+ status: number;
3009
+ };
3010
+ FILTER_TOO_SLOW: {
3011
+ status: number;
3012
+ };
3013
+ ALREADY_ENABLED: {
3014
+ status: number;
3015
+ };
3016
+ BEYOND_OWN_PERMISSIONS: {
3017
+ status: number;
3018
+ data: z.ZodOptional<z.ZodObject<{
3019
+ permissions: z.ZodArray<z.ZodString>;
3020
+ }, z.core.$strip>>;
3021
+ };
3022
+ BUILTIN_ROLE: {
3023
+ status: number;
3024
+ };
3025
+ CHALLENGE_EXPIRED: {
3026
+ status: number;
3027
+ };
3028
+ CROSS_SITE: {
3029
+ status: number;
3030
+ };
3031
+ FIXED_ROLE: {
3032
+ status: number;
3033
+ };
3034
+ INVALID_CREDENTIALS: {
3035
+ status: number;
3036
+ };
3037
+ INVALID_LINK: {
3038
+ status: number;
3039
+ };
3040
+ LIMIT_EXCEEDED: {
3041
+ status: number;
3042
+ };
3043
+ NOT_ENABLED: {
3044
+ status: number;
3045
+ };
3046
+ NOT_INVITED: {
3047
+ status: number;
3048
+ };
3049
+ NOT_SET_UP: {
3050
+ status: number;
3051
+ };
3052
+ ORGANIZATION_REQUIRED: {
3053
+ status: number;
3054
+ };
3055
+ OWNER_ONLY_PERMISSION: {
3056
+ status: number;
3057
+ data: z.ZodObject<{
3058
+ permissions: z.ZodArray<z.ZodString>;
3059
+ }, z.core.$strip>;
3060
+ };
3061
+ ROLE_IN_USE: {
3062
+ status: number;
3063
+ };
3064
+ ROLE_NOT_FOUND: {
3065
+ status: number;
3066
+ };
3067
+ SAME_PASSWORD: {
3068
+ status: number;
3069
+ };
3070
+ SETUP_DISABLED: {
3071
+ status: number;
3072
+ };
3073
+ SETUP_DONE: {
3074
+ status: number;
3075
+ };
3076
+ TOO_MANY_ATTEMPTS: {
3077
+ status: number;
3078
+ };
3079
+ UNKNOWN_PERMISSION: {
3080
+ status: number;
3081
+ data: z.ZodObject<{
3082
+ permissions: z.ZodArray<z.ZodString>;
3083
+ }, z.core.$strip>;
3084
+ };
3085
+ WRONG_CODE: {
3086
+ status: number;
3087
+ };
3088
+ WRONG_PASSWORD: {
3089
+ status: number;
3090
+ };
3091
+ }>, Record<never, never>>;
442
3092
  signIns: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
443
3093
  data: z.ZodArray<z.ZodObject<{
444
3094
  id: z.ZodString;
445
3095
  success: z.ZodBoolean;
446
3096
  ip: z.ZodNullable<z.ZodString>;
447
3097
  userAgent: z.ZodNullable<z.ZodString>;
448
- createdAt: z.ZodISODateTime;
3098
+ createdAt: z.ZodCodec<z.ZodDate, z.ZodISODateTime>;
449
3099
  }, z.core.$strip>>;
450
- }, z.core.$strip>, Record<never, never>, Record<never, never>>;
3100
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3101
+ UNAUTHORIZED: {
3102
+ status: number;
3103
+ };
3104
+ NOT_ALLOWED: {
3105
+ status: number;
3106
+ data: z.ZodOptional<z.ZodObject<{
3107
+ permission: z.ZodString;
3108
+ }, z.core.$strip>>;
3109
+ };
3110
+ PLUGIN_ONLY: {
3111
+ status: number;
3112
+ };
3113
+ MEMBERS_ONLY: {
3114
+ status: number;
3115
+ };
3116
+ ORG_REQUIRED: {
3117
+ status: number;
3118
+ };
3119
+ SCOPE_REQUIRED: {
3120
+ status: number;
3121
+ };
3122
+ SERVICE_TOKEN_REQUIRED: {
3123
+ status: number;
3124
+ };
3125
+ ORGANIZATION_DISABLED: {
3126
+ status: number;
3127
+ data: z.ZodObject<{
3128
+ manageUrl: z.ZodNullable<z.ZodString>;
3129
+ }, z.core.$strip>;
3130
+ };
3131
+ NOT_IN_PLAN: {
3132
+ status: number;
3133
+ data: z.ZodOptional<z.ZodObject<{
3134
+ manageUrl: z.ZodNullable<z.ZodString>;
3135
+ }, z.core.$strip>>;
3136
+ };
3137
+ READ_ONLY: {
3138
+ status: number;
3139
+ };
3140
+ TOO_MANY_REQUESTS: {
3141
+ status: number;
3142
+ };
3143
+ INVALID_INPUT: {
3144
+ status: number;
3145
+ data: z.ZodObject<{
3146
+ issues: z.ZodArray<z.ZodObject<{
3147
+ path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodInt]>>;
3148
+ message: z.ZodString;
3149
+ }, z.core.$strip>>;
3150
+ }, z.core.$strip>;
3151
+ };
3152
+ NOT_FOUND: {
3153
+ status: number;
3154
+ };
3155
+ TAKEN: {
3156
+ status: number;
3157
+ data: z.ZodObject<{
3158
+ field: z.ZodString;
3159
+ id: z.ZodOptional<z.ZodString>;
3160
+ values: z.ZodOptional<z.ZodArray<z.ZodString>>;
3161
+ }, z.core.$strip>;
3162
+ };
3163
+ INVALID_CURSOR: {
3164
+ status: number;
3165
+ };
3166
+ INVALID_REFERENCE: {
3167
+ status: number;
3168
+ data: z.ZodObject<{
3169
+ field: z.ZodString;
3170
+ }, z.core.$strip>;
3171
+ };
3172
+ INVALID_FILTER: {
3173
+ status: number;
3174
+ };
3175
+ FILTER_TOO_SLOW: {
3176
+ status: number;
3177
+ };
3178
+ ALREADY_ENABLED: {
3179
+ status: number;
3180
+ };
3181
+ BEYOND_OWN_PERMISSIONS: {
3182
+ status: number;
3183
+ data: z.ZodOptional<z.ZodObject<{
3184
+ permissions: z.ZodArray<z.ZodString>;
3185
+ }, z.core.$strip>>;
3186
+ };
3187
+ BUILTIN_ROLE: {
3188
+ status: number;
3189
+ };
3190
+ CHALLENGE_EXPIRED: {
3191
+ status: number;
3192
+ };
3193
+ CROSS_SITE: {
3194
+ status: number;
3195
+ };
3196
+ FIXED_ROLE: {
3197
+ status: number;
3198
+ };
3199
+ INVALID_CREDENTIALS: {
3200
+ status: number;
3201
+ };
3202
+ INVALID_LINK: {
3203
+ status: number;
3204
+ };
3205
+ LIMIT_EXCEEDED: {
3206
+ status: number;
3207
+ };
3208
+ NOT_ENABLED: {
3209
+ status: number;
3210
+ };
3211
+ NOT_INVITED: {
3212
+ status: number;
3213
+ };
3214
+ NOT_SET_UP: {
3215
+ status: number;
3216
+ };
3217
+ ORGANIZATION_REQUIRED: {
3218
+ status: number;
3219
+ };
3220
+ OWNER_ONLY_PERMISSION: {
3221
+ status: number;
3222
+ data: z.ZodObject<{
3223
+ permissions: z.ZodArray<z.ZodString>;
3224
+ }, z.core.$strip>;
3225
+ };
3226
+ ROLE_IN_USE: {
3227
+ status: number;
3228
+ };
3229
+ ROLE_NOT_FOUND: {
3230
+ status: number;
3231
+ };
3232
+ SAME_PASSWORD: {
3233
+ status: number;
3234
+ };
3235
+ SETUP_DISABLED: {
3236
+ status: number;
3237
+ };
3238
+ SETUP_DONE: {
3239
+ status: number;
3240
+ };
3241
+ TOO_MANY_ATTEMPTS: {
3242
+ status: number;
3243
+ };
3244
+ UNKNOWN_PERMISSION: {
3245
+ status: number;
3246
+ data: z.ZodObject<{
3247
+ permissions: z.ZodArray<z.ZodString>;
3248
+ }, z.core.$strip>;
3249
+ };
3250
+ WRONG_CODE: {
3251
+ status: number;
3252
+ };
3253
+ WRONG_PASSWORD: {
3254
+ status: number;
3255
+ };
3256
+ }>, Record<never, never>>;
451
3257
  };