@tailor-platform/sdk 1.14.0 → 1.14.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 (44) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +19 -0
  3. package/dist/application-BznueWxG.mjs +4 -0
  4. package/dist/{application-DnWZVbDO.mjs → application-DhwHYQ3H.mjs} +95 -44
  5. package/dist/application-DhwHYQ3H.mjs.map +1 -0
  6. package/dist/cli/index.mjs +4 -4
  7. package/dist/cli/lib.d.mts +13 -49
  8. package/dist/cli/lib.mjs +4 -4
  9. package/dist/cli/skills.d.mts +2 -0
  10. package/dist/cli/skills.mjs +51 -0
  11. package/dist/cli/skills.mjs.map +1 -0
  12. package/dist/configure/index.d.mts +4 -4
  13. package/dist/configure/index.mjs +2 -2
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/index-YzESrtj0.d.mts +396 -0
  16. package/dist/{index-DMoFYBhB.d.mts → index-q3n7wQOs.d.mts} +13 -12
  17. package/dist/{jiti-DuCiUfMj.mjs → jiti-BrELlEYT.mjs} +2 -2
  18. package/dist/{jiti-DuCiUfMj.mjs.map → jiti-BrELlEYT.mjs.map} +1 -1
  19. package/dist/{job-zGAXCidt.mjs → job-XiwGyFJt.mjs} +1 -1
  20. package/dist/{job-zGAXCidt.mjs.map → job-XiwGyFJt.mjs.map} +1 -1
  21. package/dist/plugin/index.d.mts +16 -2
  22. package/dist/plugin/index.mjs +208 -1
  23. package/dist/plugin/index.mjs.map +1 -1
  24. package/dist/{schema-BmKdDzr1.mjs → schema-DRYB-nzA.mjs} +1 -1
  25. package/dist/{schema-BmKdDzr1.mjs.map → schema-DRYB-nzA.mjs.map} +1 -1
  26. package/dist/{src-QNTCsO6J.mjs → src-DMROgdcL.mjs} +2 -2
  27. package/dist/{src-QNTCsO6J.mjs.map → src-DMROgdcL.mjs.map} +1 -1
  28. package/dist/{index-Bw_huFr7.d.mts → types-DbvONSS-.d.mts} +576 -460
  29. package/dist/{types-r-ZratAg.mjs → types-b-ig8nW_.mjs} +1 -1
  30. package/dist/types-b-ig8nW_.mjs.map +1 -0
  31. package/dist/{update-BnKKm4aR.mjs → update-Dm8ERWHJ.mjs} +312 -151
  32. package/dist/update-Dm8ERWHJ.mjs.map +1 -0
  33. package/dist/utils/test/index.d.mts +3 -3
  34. package/dist/utils/test/index.mjs +1 -1
  35. package/docs/plugin/custom.md +105 -49
  36. package/docs/plugin/index.md +2 -2
  37. package/package.json +5 -3
  38. package/skills/tailor-sdk/SKILL.md +34 -0
  39. package/dist/application-DM4zTgXU.mjs +0 -4
  40. package/dist/application-DnWZVbDO.mjs.map +0 -1
  41. package/dist/env-4RO7szrH.d.mts +0 -66
  42. package/dist/types-r-ZratAg.mjs.map +0 -1
  43. package/dist/update-BnKKm4aR.mjs.map +0 -1
  44. /package/dist/{chunk-C3Kl5s5P.mjs → chunk-GMkBE123.mjs} +0 -0
@@ -1,5 +1,4 @@
1
1
  /// <reference path="./user-defined.d.ts" />
2
- import { o as InferredAttributeMap, s as TailorUser } from "./env-4RO7szrH.mjs";
3
2
  import { z } from "zod";
4
3
  import { IsAny, NonEmptyObject } from "type-fest";
5
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -37,6 +36,472 @@ declare const TailorDBTypeSettingsSchema: z.ZodObject<{
37
36
  read?: boolean | undefined;
38
37
  }>>>;
39
38
  }, z.core.$strip>;
39
+ declare const RawPermissionsSchema: z.ZodObject<{
40
+ record: z.ZodOptional<z.ZodObject<{
41
+ create: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
42
+ conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
43
+ user: z.ZodString;
44
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
45
+ record: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ oldRecord: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ newRecord: z.ZodString;
50
+ }, z.core.$strip>]>, z.ZodEnum<{
51
+ in: "in";
52
+ "=": "=";
53
+ "!=": "!=";
54
+ "not in": "not in";
55
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
56
+ user: z.ZodString;
57
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
58
+ record: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ oldRecord: z.ZodString;
61
+ }, z.core.$strip>, z.ZodObject<{
62
+ newRecord: z.ZodString;
63
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
64
+ user: z.ZodString;
65
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
66
+ record: z.ZodString;
67
+ }, z.core.$strip>, z.ZodObject<{
68
+ oldRecord: z.ZodString;
69
+ }, z.core.$strip>, z.ZodObject<{
70
+ newRecord: z.ZodString;
71
+ }, z.core.$strip>]>, z.ZodEnum<{
72
+ in: "in";
73
+ "=": "=";
74
+ "!=": "!=";
75
+ "not in": "not in";
76
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
77
+ user: z.ZodString;
78
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
79
+ record: z.ZodString;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ oldRecord: z.ZodString;
82
+ }, z.core.$strip>, z.ZodObject<{
83
+ newRecord: z.ZodString;
84
+ }, z.core.$strip>]>], null>>>>]>;
85
+ description: z.ZodOptional<z.ZodString>;
86
+ permit: z.ZodOptional<z.ZodBoolean>;
87
+ }, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
88
+ user: z.ZodString;
89
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
90
+ record: z.ZodString;
91
+ }, z.core.$strip>, z.ZodObject<{
92
+ oldRecord: z.ZodString;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ newRecord: z.ZodString;
95
+ }, z.core.$strip>]>, z.ZodEnum<{
96
+ in: "in";
97
+ "=": "=";
98
+ "!=": "!=";
99
+ "not in": "not in";
100
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
101
+ user: z.ZodString;
102
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
103
+ record: z.ZodString;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ oldRecord: z.ZodString;
106
+ }, z.core.$strip>, z.ZodObject<{
107
+ newRecord: z.ZodString;
108
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
109
+ user: z.ZodString;
110
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
111
+ record: z.ZodString;
112
+ }, z.core.$strip>, z.ZodObject<{
113
+ oldRecord: z.ZodString;
114
+ }, z.core.$strip>, z.ZodObject<{
115
+ newRecord: z.ZodString;
116
+ }, z.core.$strip>]>, z.ZodEnum<{
117
+ in: "in";
118
+ "=": "=";
119
+ "!=": "!=";
120
+ "not in": "not in";
121
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
122
+ user: z.ZodString;
123
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
124
+ record: z.ZodString;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ oldRecord: z.ZodString;
127
+ }, z.core.$strip>, z.ZodObject<{
128
+ newRecord: z.ZodString;
129
+ }, z.core.$strip>]>, z.ZodBoolean], null>>, z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
130
+ user: z.ZodString;
131
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
132
+ record: z.ZodString;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ oldRecord: z.ZodString;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ newRecord: z.ZodString;
137
+ }, z.core.$strip>]>, z.ZodEnum<{
138
+ in: "in";
139
+ "=": "=";
140
+ "!=": "!=";
141
+ "not in": "not in";
142
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
143
+ user: z.ZodString;
144
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
145
+ record: z.ZodString;
146
+ }, z.core.$strip>, z.ZodObject<{
147
+ oldRecord: z.ZodString;
148
+ }, z.core.$strip>, z.ZodObject<{
149
+ newRecord: z.ZodString;
150
+ }, z.core.$strip>]>], null>>, z.ZodBoolean]>>>]>>>;
151
+ read: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
152
+ conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
153
+ user: z.ZodString;
154
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
155
+ record: z.ZodString;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ oldRecord: z.ZodString;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ newRecord: z.ZodString;
160
+ }, z.core.$strip>]>, z.ZodEnum<{
161
+ in: "in";
162
+ "=": "=";
163
+ "!=": "!=";
164
+ "not in": "not in";
165
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
166
+ user: z.ZodString;
167
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
168
+ record: z.ZodString;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ oldRecord: z.ZodString;
171
+ }, z.core.$strip>, z.ZodObject<{
172
+ newRecord: z.ZodString;
173
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
174
+ user: z.ZodString;
175
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
176
+ record: z.ZodString;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ oldRecord: z.ZodString;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ newRecord: z.ZodString;
181
+ }, z.core.$strip>]>, z.ZodEnum<{
182
+ in: "in";
183
+ "=": "=";
184
+ "!=": "!=";
185
+ "not in": "not in";
186
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
187
+ user: z.ZodString;
188
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
189
+ record: z.ZodString;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ oldRecord: z.ZodString;
192
+ }, z.core.$strip>, z.ZodObject<{
193
+ newRecord: z.ZodString;
194
+ }, z.core.$strip>]>], null>>>>]>;
195
+ description: z.ZodOptional<z.ZodString>;
196
+ permit: z.ZodOptional<z.ZodBoolean>;
197
+ }, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
198
+ user: z.ZodString;
199
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
200
+ record: z.ZodString;
201
+ }, z.core.$strip>, z.ZodObject<{
202
+ oldRecord: z.ZodString;
203
+ }, z.core.$strip>, z.ZodObject<{
204
+ newRecord: z.ZodString;
205
+ }, z.core.$strip>]>, z.ZodEnum<{
206
+ in: "in";
207
+ "=": "=";
208
+ "!=": "!=";
209
+ "not in": "not in";
210
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
211
+ user: z.ZodString;
212
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
213
+ record: z.ZodString;
214
+ }, z.core.$strip>, z.ZodObject<{
215
+ oldRecord: z.ZodString;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ newRecord: z.ZodString;
218
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
219
+ user: z.ZodString;
220
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
221
+ record: z.ZodString;
222
+ }, z.core.$strip>, z.ZodObject<{
223
+ oldRecord: z.ZodString;
224
+ }, z.core.$strip>, z.ZodObject<{
225
+ newRecord: z.ZodString;
226
+ }, z.core.$strip>]>, z.ZodEnum<{
227
+ in: "in";
228
+ "=": "=";
229
+ "!=": "!=";
230
+ "not in": "not in";
231
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
232
+ user: z.ZodString;
233
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
234
+ record: z.ZodString;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ oldRecord: z.ZodString;
237
+ }, z.core.$strip>, z.ZodObject<{
238
+ newRecord: z.ZodString;
239
+ }, z.core.$strip>]>, z.ZodBoolean], null>>, z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
240
+ user: z.ZodString;
241
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
242
+ record: z.ZodString;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ oldRecord: z.ZodString;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ newRecord: z.ZodString;
247
+ }, z.core.$strip>]>, z.ZodEnum<{
248
+ in: "in";
249
+ "=": "=";
250
+ "!=": "!=";
251
+ "not in": "not in";
252
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
253
+ user: z.ZodString;
254
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
255
+ record: z.ZodString;
256
+ }, z.core.$strip>, z.ZodObject<{
257
+ oldRecord: z.ZodString;
258
+ }, z.core.$strip>, z.ZodObject<{
259
+ newRecord: z.ZodString;
260
+ }, z.core.$strip>]>], null>>, z.ZodBoolean]>>>]>>>;
261
+ update: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
262
+ conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
263
+ user: z.ZodString;
264
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
265
+ record: z.ZodString;
266
+ }, z.core.$strip>, z.ZodObject<{
267
+ oldRecord: z.ZodString;
268
+ }, z.core.$strip>, z.ZodObject<{
269
+ newRecord: z.ZodString;
270
+ }, z.core.$strip>]>, z.ZodEnum<{
271
+ in: "in";
272
+ "=": "=";
273
+ "!=": "!=";
274
+ "not in": "not in";
275
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
276
+ user: z.ZodString;
277
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
278
+ record: z.ZodString;
279
+ }, z.core.$strip>, z.ZodObject<{
280
+ oldRecord: z.ZodString;
281
+ }, z.core.$strip>, z.ZodObject<{
282
+ newRecord: z.ZodString;
283
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
284
+ user: z.ZodString;
285
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
286
+ record: z.ZodString;
287
+ }, z.core.$strip>, z.ZodObject<{
288
+ oldRecord: z.ZodString;
289
+ }, z.core.$strip>, z.ZodObject<{
290
+ newRecord: z.ZodString;
291
+ }, z.core.$strip>]>, z.ZodEnum<{
292
+ in: "in";
293
+ "=": "=";
294
+ "!=": "!=";
295
+ "not in": "not in";
296
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
297
+ user: z.ZodString;
298
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
299
+ record: z.ZodString;
300
+ }, z.core.$strip>, z.ZodObject<{
301
+ oldRecord: z.ZodString;
302
+ }, z.core.$strip>, z.ZodObject<{
303
+ newRecord: z.ZodString;
304
+ }, z.core.$strip>]>], null>>>>]>;
305
+ description: z.ZodOptional<z.ZodString>;
306
+ permit: z.ZodOptional<z.ZodBoolean>;
307
+ }, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
308
+ user: z.ZodString;
309
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
310
+ record: z.ZodString;
311
+ }, z.core.$strip>, z.ZodObject<{
312
+ oldRecord: z.ZodString;
313
+ }, z.core.$strip>, z.ZodObject<{
314
+ newRecord: z.ZodString;
315
+ }, z.core.$strip>]>, z.ZodEnum<{
316
+ in: "in";
317
+ "=": "=";
318
+ "!=": "!=";
319
+ "not in": "not in";
320
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
321
+ user: z.ZodString;
322
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
323
+ record: z.ZodString;
324
+ }, z.core.$strip>, z.ZodObject<{
325
+ oldRecord: z.ZodString;
326
+ }, z.core.$strip>, z.ZodObject<{
327
+ newRecord: z.ZodString;
328
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
329
+ user: z.ZodString;
330
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
331
+ record: z.ZodString;
332
+ }, z.core.$strip>, z.ZodObject<{
333
+ oldRecord: z.ZodString;
334
+ }, z.core.$strip>, z.ZodObject<{
335
+ newRecord: z.ZodString;
336
+ }, z.core.$strip>]>, z.ZodEnum<{
337
+ in: "in";
338
+ "=": "=";
339
+ "!=": "!=";
340
+ "not in": "not in";
341
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
342
+ user: z.ZodString;
343
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
344
+ record: z.ZodString;
345
+ }, z.core.$strip>, z.ZodObject<{
346
+ oldRecord: z.ZodString;
347
+ }, z.core.$strip>, z.ZodObject<{
348
+ newRecord: z.ZodString;
349
+ }, z.core.$strip>]>, z.ZodBoolean], null>>, z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
350
+ user: z.ZodString;
351
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
352
+ record: z.ZodString;
353
+ }, z.core.$strip>, z.ZodObject<{
354
+ oldRecord: z.ZodString;
355
+ }, z.core.$strip>, z.ZodObject<{
356
+ newRecord: z.ZodString;
357
+ }, z.core.$strip>]>, z.ZodEnum<{
358
+ in: "in";
359
+ "=": "=";
360
+ "!=": "!=";
361
+ "not in": "not in";
362
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
363
+ user: z.ZodString;
364
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
365
+ record: z.ZodString;
366
+ }, z.core.$strip>, z.ZodObject<{
367
+ oldRecord: z.ZodString;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ newRecord: z.ZodString;
370
+ }, z.core.$strip>]>], null>>, z.ZodBoolean]>>>]>>>;
371
+ delete: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
372
+ conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
373
+ user: z.ZodString;
374
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
375
+ record: z.ZodString;
376
+ }, z.core.$strip>, z.ZodObject<{
377
+ oldRecord: z.ZodString;
378
+ }, z.core.$strip>, z.ZodObject<{
379
+ newRecord: z.ZodString;
380
+ }, z.core.$strip>]>, z.ZodEnum<{
381
+ in: "in";
382
+ "=": "=";
383
+ "!=": "!=";
384
+ "not in": "not in";
385
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
386
+ user: z.ZodString;
387
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
388
+ record: z.ZodString;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ oldRecord: z.ZodString;
391
+ }, z.core.$strip>, z.ZodObject<{
392
+ newRecord: z.ZodString;
393
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
394
+ user: z.ZodString;
395
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
396
+ record: z.ZodString;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ oldRecord: z.ZodString;
399
+ }, z.core.$strip>, z.ZodObject<{
400
+ newRecord: z.ZodString;
401
+ }, z.core.$strip>]>, z.ZodEnum<{
402
+ in: "in";
403
+ "=": "=";
404
+ "!=": "!=";
405
+ "not in": "not in";
406
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
407
+ user: z.ZodString;
408
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
409
+ record: z.ZodString;
410
+ }, z.core.$strip>, z.ZodObject<{
411
+ oldRecord: z.ZodString;
412
+ }, z.core.$strip>, z.ZodObject<{
413
+ newRecord: z.ZodString;
414
+ }, z.core.$strip>]>], null>>>>]>;
415
+ description: z.ZodOptional<z.ZodString>;
416
+ permit: z.ZodOptional<z.ZodBoolean>;
417
+ }, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
418
+ user: z.ZodString;
419
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
420
+ record: z.ZodString;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ oldRecord: z.ZodString;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ newRecord: z.ZodString;
425
+ }, z.core.$strip>]>, z.ZodEnum<{
426
+ in: "in";
427
+ "=": "=";
428
+ "!=": "!=";
429
+ "not in": "not in";
430
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
431
+ user: z.ZodString;
432
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
433
+ record: z.ZodString;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ oldRecord: z.ZodString;
436
+ }, z.core.$strip>, z.ZodObject<{
437
+ newRecord: z.ZodString;
438
+ }, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
439
+ user: z.ZodString;
440
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
441
+ record: z.ZodString;
442
+ }, z.core.$strip>, z.ZodObject<{
443
+ oldRecord: z.ZodString;
444
+ }, z.core.$strip>, z.ZodObject<{
445
+ newRecord: z.ZodString;
446
+ }, z.core.$strip>]>, z.ZodEnum<{
447
+ in: "in";
448
+ "=": "=";
449
+ "!=": "!=";
450
+ "not in": "not in";
451
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
452
+ user: z.ZodString;
453
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
454
+ record: z.ZodString;
455
+ }, z.core.$strip>, z.ZodObject<{
456
+ oldRecord: z.ZodString;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ newRecord: z.ZodString;
459
+ }, z.core.$strip>]>, z.ZodBoolean], null>>, z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
460
+ user: z.ZodString;
461
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
462
+ record: z.ZodString;
463
+ }, z.core.$strip>, z.ZodObject<{
464
+ oldRecord: z.ZodString;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ newRecord: z.ZodString;
467
+ }, z.core.$strip>]>, z.ZodEnum<{
468
+ in: "in";
469
+ "=": "=";
470
+ "!=": "!=";
471
+ "not in": "not in";
472
+ }>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
473
+ user: z.ZodString;
474
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
475
+ record: z.ZodString;
476
+ }, z.core.$strip>, z.ZodObject<{
477
+ oldRecord: z.ZodString;
478
+ }, z.core.$strip>, z.ZodObject<{
479
+ newRecord: z.ZodString;
480
+ }, z.core.$strip>]>], null>>, z.ZodBoolean]>>>]>>>;
481
+ }, z.core.$strip>>;
482
+ gql: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
483
+ conditions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
484
+ user: z.ZodString;
485
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodEnum<{
486
+ in: "in";
487
+ "=": "=";
488
+ "!=": "!=";
489
+ "not in": "not in";
490
+ }>, z.ZodUnion<readonly [z.ZodObject<{
491
+ user: z.ZodString;
492
+ }, z.core.$strip>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>], null>>>>;
493
+ actions: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
494
+ create: "create";
495
+ update: "update";
496
+ delete: "delete";
497
+ aggregate: "aggregate";
498
+ bulkUpsert: "bulkUpsert";
499
+ read: "read";
500
+ }>>>]>;
501
+ permit: z.ZodOptional<z.ZodBoolean>;
502
+ description: z.ZodOptional<z.ZodString>;
503
+ }, z.core.$strip>>>>;
504
+ }, z.core.$strip>;
40
505
  /**
41
506
  * Schema for TailorDB service configuration.
42
507
  * Normalizes gqlOperations from alias ("query") to object format.
@@ -80,6 +545,69 @@ type AllowedValuesOutput<V extends AllowedValues> = V[number] extends infer T ?
80
545
  value: infer K;
81
546
  } ? K : never : never;
82
547
  //#endregion
548
+ //#region src/configure/types/user.d.ts
549
+ interface AttributeMap {}
550
+ interface AttributeList {
551
+ __tuple?: [];
552
+ }
553
+ type InferredAttributeMap = keyof AttributeMap extends never ? Record<string, string | string[] | boolean | boolean[] | undefined> : AttributeMap;
554
+ type InferredAttributeList = AttributeList["__tuple"] extends [] ? string[] : AttributeList["__tuple"];
555
+ /** Represents a user in the Tailor platform. */
556
+ type TailorUser = {
557
+ /**
558
+ * The ID of the user.
559
+ * For unauthenticated users, this will be a nil UUID.
560
+ */
561
+ id: string;
562
+ /**
563
+ * The type of the user.
564
+ * For unauthenticated users, this will be an empty string.
565
+ */
566
+ type: "user" | "machine_user" | "";
567
+ /** The ID of the workspace the user belongs to. */
568
+ workspaceId: string;
569
+ /**
570
+ * A map of the user's attributes.
571
+ * For unauthenticated users, this will be null.
572
+ */
573
+ attributes: InferredAttributeMap | null;
574
+ /**
575
+ * A list of the user's attributes.
576
+ * For unauthenticated users, this will be an empty array.
577
+ */
578
+ attributeList: InferredAttributeList;
579
+ };
580
+ /** Represents an unauthenticated user in the Tailor platform. */
581
+ declare const unauthenticatedTailorUser: TailorUser;
582
+ //#endregion
583
+ //#region src/configure/types/actor.d.ts
584
+ /** User type enum values from the Tailor Platform server. */
585
+ type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
586
+ /** Represents an actor in event triggers. */
587
+ type TailorActor = {
588
+ /** The ID of the workspace the user belongs to. */
589
+ workspaceId: string;
590
+ /** The ID of the user. */
591
+ userId: string;
592
+ /**
593
+ * A map of the user's attributes.
594
+ * Maps from server's `attributeMap` field.
595
+ */
596
+ attributes: InferredAttributeMap | null;
597
+ /**
598
+ * A list of the user's attributes.
599
+ * Maps from server's `attributes` field.
600
+ */
601
+ attributeList: InferredAttributeList;
602
+ /** The type of the user. */
603
+ userType: TailorActorType;
604
+ };
605
+ //#endregion
606
+ //#region src/configure/types/env.d.ts
607
+ interface Env {}
608
+ /** Represents environment variables in the Tailor platform. */
609
+ type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
610
+ //#endregion
83
611
  //#region src/configure/types/helpers.d.ts
84
612
  type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
85
613
  type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
@@ -107,11 +635,11 @@ declare const TailorFieldSchema: z.ZodObject<{
107
635
  type: z.ZodEnum<{
108
636
  string: "string";
109
637
  boolean: "boolean";
110
- date: "date";
111
- enum: "enum";
112
638
  uuid: "uuid";
113
639
  integer: "integer";
114
640
  float: "float";
641
+ enum: "enum";
642
+ date: "date";
115
643
  datetime: "datetime";
116
644
  time: "time";
117
645
  nested: "nested";
@@ -140,11 +668,11 @@ declare const ResolverSchema: z.ZodObject<{
140
668
  type: z.ZodEnum<{
141
669
  string: "string";
142
670
  boolean: "boolean";
143
- date: "date";
144
- enum: "enum";
145
671
  uuid: "uuid";
146
672
  integer: "integer";
147
673
  float: "float";
674
+ enum: "enum";
675
+ date: "date";
148
676
  datetime: "datetime";
149
677
  time: "time";
150
678
  nested: "nested";
@@ -170,11 +698,11 @@ declare const ResolverSchema: z.ZodObject<{
170
698
  type: z.ZodEnum<{
171
699
  string: "string";
172
700
  boolean: "boolean";
173
- date: "date";
174
- enum: "enum";
175
701
  uuid: "uuid";
176
702
  integer: "integer";
177
703
  float: "float";
704
+ enum: "enum";
705
+ date: "date";
178
706
  datetime: "datetime";
179
707
  time: "time";
180
708
  nested: "nested";
@@ -558,7 +1086,7 @@ interface TypeFeatures {
558
1086
  }
559
1087
  //#endregion
560
1088
  //#region src/parser/plugin-config/types.d.ts
561
- type TypeConfigRequired<PluginConfig$1 = unknown> = boolean | ((pluginConfig: PluginConfig$1 | undefined) => boolean);
1089
+ type TypeConfigRequired<PluginConfig = unknown> = boolean | ((pluginConfig: PluginConfig | undefined) => boolean);
562
1090
  /**
563
1091
  * Interface for plugin configuration mapping.
564
1092
  * Extend this interface via declaration merging to add typed plugin configs.
@@ -589,41 +1117,25 @@ interface PluginAttachment {
589
1117
  /**
590
1118
  * Context passed to plugin's process method
591
1119
  */
592
- interface PluginProcessContext<Config = unknown, PluginConfig$1 = unknown> {
1120
+ interface PluginProcessContext<TypeConfig = unknown, PluginConfig = unknown> {
593
1121
  /** The raw TailorDB type being processed */
594
1122
  type: TailorAnyDBType;
595
- /** Plugin-specific configuration passed via .plugin() method */
596
- config: Config;
1123
+ /** Per-type configuration passed via .plugin() method */
1124
+ typeConfig: TypeConfig;
597
1125
  /** Plugin-level configuration passed via definePlugins() */
598
- pluginConfig: PluginConfig$1;
1126
+ pluginConfig: PluginConfig;
599
1127
  /** Namespace of the TailorDB type */
600
1128
  namespace: string;
601
1129
  }
602
- /**
603
- * Plugin-generated type entry passed to processNamespace.
604
- */
605
- interface PluginNamespaceGeneratedTypeEntry {
606
- type: TailorAnyDBType;
607
- /** Plugin ID that generated this type */
608
- pluginId: string;
609
- /** Generated type kind for getGeneratedType() API (e.g., "request", "step") */
610
- generatedTypeKind?: string;
611
- /** Source type that triggered generation */
612
- originalType: TailorAnyDBType;
613
- }
614
1130
  /**
615
1131
  * Context passed to plugin's processNamespace method.
616
1132
  * Used for plugins that operate on a namespace without requiring a source type.
617
1133
  */
618
- interface PluginNamespaceProcessContext<Config = unknown> {
1134
+ interface PluginNamespaceProcessContext<PluginConfig = unknown> {
619
1135
  /** Plugin-level configuration passed via definePlugins() */
620
- pluginConfig: Config;
1136
+ pluginConfig: PluginConfig;
621
1137
  /** Target namespace for generated types */
622
1138
  namespace: string;
623
- /** TailorDB types in the namespace (after type-attached processing) */
624
- types: TailorAnyDBType[];
625
- /** Plugin-generated types for type-attached plugins in the namespace */
626
- generatedTypes: PluginNamespaceGeneratedTypeEntry[];
627
1139
  }
628
1140
  /**
629
1141
  * Interface representing a TailorDB type for plugin output.
@@ -859,7 +1371,7 @@ type NamespacePluginOutput = Omit<PluginOutput, "extends"> & {
859
1371
  /**
860
1372
  * Base plugin interface that all plugins must implement
861
1373
  */
862
- interface PluginBaseCommon<PluginConfig$1 = unknown> {
1374
+ interface PluginCommon<PluginConfig = unknown> {
863
1375
  /** Unique identifier for the plugin */
864
1376
  readonly id: string;
865
1377
  /** Human-readable description of the plugin */
@@ -872,7 +1384,7 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
872
1384
  readonly importPath: string;
873
1385
  /**
874
1386
  * Schema defining the expected plugin-level configuration.
875
- * Used to validate config passed via `definePlugins([plugin, config])`.
1387
+ * Used to validate the `pluginConfig` property on the plugin object.
876
1388
  * If not provided, pluginConfig validation is skipped.
877
1389
  * @example
878
1390
  * ```typescript
@@ -888,13 +1400,13 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
888
1400
  * If a function is provided, it receives pluginConfig from definePlugins().
889
1401
  * Default is optional when not provided.
890
1402
  */
891
- readonly typeConfigRequired?: TypeConfigRequired<PluginConfig$1>;
1403
+ readonly typeConfigRequired?: TypeConfigRequired<PluginConfig>;
892
1404
  /**
893
1405
  * Plugin-level configuration passed via definePlugins().
894
1406
  * This config is stored when the plugin is registered and made available
895
- * to both process() and processNamespace() methods.
1407
+ * to both processType() and processNamespace() methods.
896
1408
  */
897
- readonly pluginConfig?: PluginConfig$1;
1409
+ readonly pluginConfig?: PluginConfig;
898
1410
  /**
899
1411
  * TypeScript type template for generating type-safe plugin configuration.
900
1412
  * Use `Fields` to reference the field names of the type being configured.
@@ -912,7 +1424,7 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
912
1424
  * @param context - Context containing the type, config, pluginConfig, and namespace
913
1425
  * @returns Plugin output with generated types, resolvers, and executors
914
1426
  */
915
- process?(context: PluginProcessContext): PluginOutput | Promise<PluginOutput>;
1427
+ processType?(context: PluginProcessContext): PluginOutput | Promise<PluginOutput>;
916
1428
  /**
917
1429
  * Process plugin for a namespace without requiring a source type.
918
1430
  * This method is called once per namespace for plugins configured via definePlugins().
@@ -922,7 +1434,7 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
922
1434
  */
923
1435
  processNamespace?(context: PluginNamespaceProcessContext): NamespacePluginOutput | Promise<NamespacePluginOutput>;
924
1436
  }
925
- interface PluginBaseWithConfig<PluginConfig$1 = unknown> extends PluginBaseCommon<PluginConfig$1> {
1437
+ interface PluginWithConfig<PluginConfig = unknown> extends PluginCommon<PluginConfig> {
926
1438
  /**
927
1439
  * Schema defining the expected per-type configuration for this plugin.
928
1440
  * Used to validate config passed via `.plugin({ pluginId: config })`.
@@ -936,24 +1448,16 @@ interface PluginBaseWithConfig<PluginConfig$1 = unknown> extends PluginBaseCommo
936
1448
  */
937
1449
  readonly configSchema: TailorAnyField;
938
1450
  }
939
- interface PluginBaseNamespace<PluginConfig$1 = unknown> extends PluginBaseCommon<PluginConfig$1> {
1451
+ interface PluginNamespaceOnly<PluginConfig = unknown> extends PluginCommon<PluginConfig> {
940
1452
  /** Namespace-only plugins do not accept per-type config. */
941
1453
  readonly configSchema?: undefined;
942
- /** Namespace-only plugins cannot define process(). */
943
- process?: never;
1454
+ /** Namespace-only plugins cannot define processType(). */
1455
+ processType?: never;
944
1456
  }
945
1457
  /**
946
- * Base plugin interface that all plugins must implement
1458
+ * Plugin interface that all plugins must implement
947
1459
  */
948
- type PluginBase<PluginConfig$1 = unknown> = PluginBaseWithConfig<PluginConfig$1> | PluginBaseNamespace<PluginConfig$1>;
949
- /**
950
- * Plugin configuration input type for definePlugins()
951
- * Can be:
952
- * - A PluginBase object for custom plugins without configuration
953
- * - A tuple [PluginBase, options] for custom plugins with configuration
954
- * Options can be any value - the plugin's pluginConfigSchema handles validation.
955
- */
956
- type PluginConfig = PluginBase | readonly [PluginBase, unknown];
1460
+ type Plugin<PluginConfig = unknown> = PluginWithConfig<PluginConfig> | PluginNamespaceOnly<PluginConfig>;
957
1461
  //#endregion
958
1462
  //#region src/configure/services/tailordb/schema.d.ts
959
1463
  interface RelationConfig<S extends RelationType, T extends TailorDBType$1> {
@@ -1508,9 +2012,9 @@ type UserAttributeListKey<User extends TailorDBInstance> = { [K in UserFieldKeys
1508
2012
  type UserAttributeMap<User extends TailorDBInstance> = { [K in UserAttributeKey<User>]?: true };
1509
2013
  type DisallowExtraKeys<T, Allowed extends PropertyKey> = T & { [K in Exclude<keyof T, Allowed>]: never };
1510
2014
  type AttributeListValue<User extends TailorDBInstance, Key extends UserAttributeListKey<User>> = Key extends keyof output<User> ? output<User>[Key] : never;
1511
- type AttributeListToTuple<User extends TailorDBInstance, AttributeList extends readonly UserAttributeListKey<User>[]> = { [Index in keyof AttributeList]: AttributeList[Index] extends UserAttributeListKey<User> ? AttributeListValue<User, AttributeList[Index]> : never };
1512
- type AttributeMapSelectedKeys<User extends TailorDBInstance, AttributeMap extends UserAttributeMap<User>> = Extract<{ [K in keyof AttributeMap]-?: undefined extends AttributeMap[K] ? never : K }[keyof AttributeMap], UserAttributeKey<User>>;
1513
- type UserProfile<User extends TailorDBInstance, AttributeMap extends UserAttributeMap<User>, AttributeList extends UserAttributeListKey<User>[]> = {
2015
+ type AttributeListToTuple<User extends TailorDBInstance, AttributeList$1 extends readonly UserAttributeListKey<User>[]> = { [Index in keyof AttributeList$1]: AttributeList$1[Index] extends UserAttributeListKey<User> ? AttributeListValue<User, AttributeList$1[Index]> : never };
2016
+ type AttributeMapSelectedKeys<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User>> = Extract<{ [K in keyof AttributeMap$1]-?: undefined extends AttributeMap$1[K] ? never : K }[keyof AttributeMap$1], UserAttributeKey<User>>;
2017
+ type UserProfile<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User>, AttributeList$1 extends UserAttributeListKey<User>[]> = {
1514
2018
  /**
1515
2019
  * TailorDB namespace where the user type is defined.
1516
2020
  *
@@ -1520,8 +2024,8 @@ type UserProfile<User extends TailorDBInstance, AttributeMap extends UserAttribu
1520
2024
  namespace?: string;
1521
2025
  type: User;
1522
2026
  usernameField: UsernameFieldKey<User>;
1523
- attributes?: DisallowExtraKeys<AttributeMap, UserAttributeKey<User>>;
1524
- attributeList?: AttributeList;
2027
+ attributes?: DisallowExtraKeys<AttributeMap$1, UserAttributeKey<User>>;
2028
+ attributeList?: AttributeList$1;
1525
2029
  };
1526
2030
  type MachineUserAttributeFields = Record<string, TailorField<DefinedFieldMetadata, unknown, FieldMetadata, TailorFieldType>>;
1527
2031
  type TailorFieldOutputValue<Field> = Field extends TailorField<DefinedFieldMetadata, infer Output, FieldMetadata, TailorFieldType> ? Output : never;
@@ -1533,33 +2037,33 @@ type MachineUserFromAttributes<Fields extends MachineUserAttributeFields> = (key
1533
2037
  }) & {
1534
2038
  attributeList?: string[];
1535
2039
  };
1536
- type MachineUser<User extends TailorDBInstance, AttributeMap extends UserAttributeMap<User> = UserAttributeMap<User>, AttributeList extends UserAttributeListKey<User>[] = [], MachineUserAttributes extends MachineUserAttributeFields | undefined = undefined> = IsAny<MachineUserAttributes> extends true ? IsAny<User> extends true ? {
2040
+ type MachineUser<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User> = UserAttributeMap<User>, AttributeList$1 extends UserAttributeListKey<User>[] = [], MachineUserAttributes extends MachineUserAttributeFields | undefined = undefined> = IsAny<MachineUserAttributes> extends true ? IsAny<User> extends true ? {
1537
2041
  attributes: Record<string, AuthAttributeValue>;
1538
2042
  attributeList?: string[];
1539
- } : (AttributeMapSelectedKeys<User, AttributeMap> extends never ? {
2043
+ } : (AttributeMapSelectedKeys<User, AttributeMap$1> extends never ? {
1540
2044
  attributes?: never;
1541
2045
  } : {
1542
- attributes: { [K in AttributeMapSelectedKeys<User, AttributeMap>]: K extends keyof output<User> ? output<User>[K] : never } & { [K in Exclude<keyof output<User>, AttributeMapSelectedKeys<User, AttributeMap>>]?: never };
1543
- }) & ([] extends AttributeList ? {
2046
+ attributes: { [K in AttributeMapSelectedKeys<User, AttributeMap$1>]: K extends keyof output<User> ? output<User>[K] : never } & { [K in Exclude<keyof output<User>, AttributeMapSelectedKeys<User, AttributeMap$1>>]?: never };
2047
+ }) & ([] extends AttributeList$1 ? {
1544
2048
  attributeList?: never;
1545
2049
  } : {
1546
- attributeList: AttributeListToTuple<User, AttributeList>;
2050
+ attributeList: AttributeListToTuple<User, AttributeList$1>;
1547
2051
  }) : [MachineUserAttributes] extends [MachineUserAttributeFields] ? MachineUserFromAttributes<MachineUserAttributes> : IsAny<User> extends true ? {
1548
2052
  attributes: Record<string, AuthAttributeValue>;
1549
2053
  attributeList?: string[];
1550
- } : (AttributeMapSelectedKeys<User, AttributeMap> extends never ? {
2054
+ } : (AttributeMapSelectedKeys<User, AttributeMap$1> extends never ? {
1551
2055
  attributes?: never;
1552
2056
  } : {
1553
- attributes: { [K in AttributeMapSelectedKeys<User, AttributeMap>]: K extends keyof output<User> ? output<User>[K] : never } & { [K in Exclude<keyof output<User>, AttributeMapSelectedKeys<User, AttributeMap>>]?: never };
1554
- }) & ([] extends AttributeList ? {
2057
+ attributes: { [K in AttributeMapSelectedKeys<User, AttributeMap$1>]: K extends keyof output<User> ? output<User>[K] : never } & { [K in Exclude<keyof output<User>, AttributeMapSelectedKeys<User, AttributeMap$1>>]?: never };
2058
+ }) & ([] extends AttributeList$1 ? {
1555
2059
  attributeList?: never;
1556
2060
  } : {
1557
- attributeList: AttributeListToTuple<User, AttributeList>;
2061
+ attributeList: AttributeListToTuple<User, AttributeList$1>;
1558
2062
  });
1559
- type AuthServiceInput<User extends TailorDBInstance, AttributeMap extends UserAttributeMap<User>, AttributeList extends UserAttributeListKey<User>[], MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields | undefined = MachineUserAttributeFields | undefined> = {
1560
- userProfile?: UserProfile<User, AttributeMap, AttributeList>;
2063
+ type AuthServiceInput<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User>, AttributeList$1 extends UserAttributeListKey<User>[], MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields | undefined = MachineUserAttributeFields | undefined> = {
2064
+ userProfile?: UserProfile<User, AttributeMap$1, AttributeList$1>;
1561
2065
  machineUserAttributes?: MachineUserAttributes;
1562
- machineUsers?: Record<MachineUserNames, MachineUser<User, AttributeMap, AttributeList, MachineUserAttributes>>;
2066
+ machineUsers?: Record<MachineUserNames, MachineUser<User, AttributeMap$1, AttributeList$1, MachineUserAttributes>>;
1563
2067
  oauth2Clients?: Record<string, OAuth2ClientInput>;
1564
2068
  idProvider?: IdProviderConfig;
1565
2069
  scim?: SCIMConfig;
@@ -1614,6 +2118,8 @@ interface PluginGeneratedTypeSource {
1614
2118
  generatedTypeKind?: string;
1615
2119
  /** Plugin config used to generate this type */
1616
2120
  pluginConfig?: unknown;
2121
+ /** Namespace where this type was generated */
2122
+ namespace?: string;
1617
2123
  }
1618
2124
  /**
1619
2125
  * Source information for a TailorDB type.
@@ -1626,6 +2132,7 @@ type TypeSourceInfoEntry = UserDefinedTypeSource | PluginGeneratedTypeSource;
1626
2132
  * @public
1627
2133
  */
1628
2134
  type TailorDBTypeParsedSettings = z.output<typeof TailorDBTypeSettingsSchema>;
2135
+ type RawPermissions = z.output<typeof RawPermissionsSchema>;
1629
2136
  interface Script {
1630
2137
  expr: string;
1631
2138
  }
@@ -1713,10 +2220,6 @@ interface Permissions {
1713
2220
  record?: StandardTailorTypePermission;
1714
2221
  gql?: StandardTailorTypeGqlPermission;
1715
2222
  }
1716
- interface RawPermissions {
1717
- record?: TailorTypePermission<any, any>;
1718
- gql?: TailorTypeGqlPermission<any, any>;
1719
- }
1720
2223
  interface TailorDBTypeMetadata {
1721
2224
  name: string;
1722
2225
  description?: string;
@@ -1774,392 +2277,5 @@ interface TailorDBType {
1774
2277
  files?: TailorDBTypeMetadata["files"];
1775
2278
  }
1776
2279
  //#endregion
1777
- //#region src/parser/service/executor/schema.d.ts
1778
- declare const RecordTriggerSchema: z.ZodObject<{
1779
- kind: z.ZodEnum<{
1780
- recordCreated: "recordCreated";
1781
- recordUpdated: "recordUpdated";
1782
- recordDeleted: "recordDeleted";
1783
- }>;
1784
- typeName: z.ZodString;
1785
- condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
1786
- }, z.core.$strip>;
1787
- declare const ResolverExecutedTriggerSchema: z.ZodObject<{
1788
- kind: z.ZodLiteral<"resolverExecuted">;
1789
- resolverName: z.ZodString;
1790
- condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
1791
- }, z.core.$strip>;
1792
- declare const ScheduleTriggerSchema: z.ZodObject<{
1793
- kind: z.ZodLiteral<"schedule">;
1794
- cron: z.ZodString;
1795
- timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1796
- }, z.core.$strip>;
1797
- declare const IncomingWebhookTriggerSchema: z.ZodObject<{
1798
- kind: z.ZodLiteral<"incomingWebhook">;
1799
- }, z.core.$strip>;
1800
- declare const IdpUserTriggerSchema: z.ZodObject<{
1801
- kind: z.ZodEnum<{
1802
- idpUserCreated: "idpUserCreated";
1803
- idpUserUpdated: "idpUserUpdated";
1804
- idpUserDeleted: "idpUserDeleted";
1805
- }>;
1806
- }, z.core.$strip>;
1807
- declare const AuthAccessTokenTriggerSchema: z.ZodObject<{
1808
- kind: z.ZodEnum<{
1809
- authAccessTokenIssued: "authAccessTokenIssued";
1810
- authAccessTokenRefreshed: "authAccessTokenRefreshed";
1811
- authAccessTokenRevoked: "authAccessTokenRevoked";
1812
- }>;
1813
- }, z.core.$strip>;
1814
- declare const FunctionOperationSchema: z.ZodObject<{
1815
- kind: z.ZodEnum<{
1816
- function: "function";
1817
- jobFunction: "jobFunction";
1818
- }>;
1819
- body: z.ZodCustom<Function, Function>;
1820
- authInvoker: z.ZodOptional<z.ZodObject<{
1821
- namespace: z.ZodString;
1822
- machineUserName: z.ZodString;
1823
- }, z.core.$strip>>;
1824
- }, z.core.$strip>;
1825
- declare const GqlOperationSchema: z.ZodObject<{
1826
- kind: z.ZodLiteral<"graphql">;
1827
- appName: z.ZodOptional<z.ZodString>;
1828
- query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
1829
- variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
1830
- authInvoker: z.ZodOptional<z.ZodObject<{
1831
- namespace: z.ZodString;
1832
- machineUserName: z.ZodString;
1833
- }, z.core.$strip>>;
1834
- }, z.core.$strip>;
1835
- declare const WebhookOperationSchema: z.ZodObject<{
1836
- kind: z.ZodLiteral<"webhook">;
1837
- url: z.ZodCustom<Function, Function>;
1838
- requestBody: z.ZodOptional<z.ZodCustom<Function, Function>>;
1839
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1840
- vault: z.ZodString;
1841
- key: z.ZodString;
1842
- }, z.core.$strip>]>>>;
1843
- }, z.core.$strip>;
1844
- declare const WorkflowOperationSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1845
- kind: z.ZodLiteral<"workflow">;
1846
- workflowName: z.ZodString;
1847
- args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
1848
- authInvoker: z.ZodOptional<z.ZodObject<{
1849
- namespace: z.ZodString;
1850
- machineUserName: z.ZodString;
1851
- }, z.core.$strip>>;
1852
- }, z.core.$strip>>;
1853
- declare const ExecutorSchema: z.ZodObject<{
1854
- name: z.ZodString;
1855
- description: z.ZodOptional<z.ZodString>;
1856
- disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1857
- trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
1858
- kind: z.ZodEnum<{
1859
- recordCreated: "recordCreated";
1860
- recordUpdated: "recordUpdated";
1861
- recordDeleted: "recordDeleted";
1862
- }>;
1863
- typeName: z.ZodString;
1864
- condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
1865
- }, z.core.$strip>, z.ZodObject<{
1866
- kind: z.ZodLiteral<"resolverExecuted">;
1867
- resolverName: z.ZodString;
1868
- condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
1869
- }, z.core.$strip>, z.ZodObject<{
1870
- kind: z.ZodLiteral<"schedule">;
1871
- cron: z.ZodString;
1872
- timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1873
- }, z.core.$strip>, z.ZodObject<{
1874
- kind: z.ZodLiteral<"incomingWebhook">;
1875
- }, z.core.$strip>, z.ZodObject<{
1876
- kind: z.ZodEnum<{
1877
- idpUserCreated: "idpUserCreated";
1878
- idpUserUpdated: "idpUserUpdated";
1879
- idpUserDeleted: "idpUserDeleted";
1880
- }>;
1881
- }, z.core.$strip>, z.ZodObject<{
1882
- kind: z.ZodEnum<{
1883
- authAccessTokenIssued: "authAccessTokenIssued";
1884
- authAccessTokenRefreshed: "authAccessTokenRefreshed";
1885
- authAccessTokenRevoked: "authAccessTokenRevoked";
1886
- }>;
1887
- }, z.core.$strip>], "kind">;
1888
- operation: z.ZodUnion<readonly [z.ZodObject<{
1889
- kind: z.ZodEnum<{
1890
- function: "function";
1891
- jobFunction: "jobFunction";
1892
- }>;
1893
- body: z.ZodCustom<Function, Function>;
1894
- authInvoker: z.ZodOptional<z.ZodObject<{
1895
- namespace: z.ZodString;
1896
- machineUserName: z.ZodString;
1897
- }, z.core.$strip>>;
1898
- }, z.core.$strip>, z.ZodObject<{
1899
- kind: z.ZodLiteral<"graphql">;
1900
- appName: z.ZodOptional<z.ZodString>;
1901
- query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
1902
- variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
1903
- authInvoker: z.ZodOptional<z.ZodObject<{
1904
- namespace: z.ZodString;
1905
- machineUserName: z.ZodString;
1906
- }, z.core.$strip>>;
1907
- }, z.core.$strip>, z.ZodObject<{
1908
- kind: z.ZodLiteral<"webhook">;
1909
- url: z.ZodCustom<Function, Function>;
1910
- requestBody: z.ZodOptional<z.ZodCustom<Function, Function>>;
1911
- headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
1912
- vault: z.ZodString;
1913
- key: z.ZodString;
1914
- }, z.core.$strip>]>>>;
1915
- }, z.core.$strip>, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1916
- kind: z.ZodLiteral<"workflow">;
1917
- workflowName: z.ZodString;
1918
- args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
1919
- authInvoker: z.ZodOptional<z.ZodObject<{
1920
- namespace: z.ZodString;
1921
- machineUserName: z.ZodString;
1922
- }, z.core.$strip>>;
1923
- }, z.core.$strip>>]>;
1924
- }, z.core.$strip>;
1925
- //#endregion
1926
- //#region src/parser/service/executor/types.d.ts
1927
- type RecordTrigger = z.infer<typeof RecordTriggerSchema>;
1928
- type ResolverExecutedTrigger = z.infer<typeof ResolverExecutedTriggerSchema>;
1929
- type ScheduleTriggerInput = z.input<typeof ScheduleTriggerSchema>;
1930
- type IncomingWebhookTrigger = z.infer<typeof IncomingWebhookTriggerSchema>;
1931
- type IdpUserTrigger = z.infer<typeof IdpUserTriggerSchema>;
1932
- type AuthAccessTokenTrigger = z.infer<typeof AuthAccessTokenTriggerSchema>;
1933
- type FunctionOperation = z.infer<typeof FunctionOperationSchema>;
1934
- type GqlOperation = z.infer<typeof GqlOperationSchema>;
1935
- type WebhookOperation = z.infer<typeof WebhookOperationSchema>;
1936
- type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
1937
- type Executor = z.infer<typeof ExecutorSchema>;
1938
- type ExecutorInput = z.input<typeof ExecutorSchema>;
1939
- type ExecutorServiceConfig = {
1940
- files: string[];
1941
- ignores?: string[];
1942
- };
1943
- type ExecutorServiceInput = ExecutorServiceConfig;
1944
- //#endregion
1945
- //#region src/parser/service/staticwebsite/schema.d.ts
1946
- declare const StaticWebsiteSchema: z.core.$ZodBranded<z.ZodObject<{
1947
- name: z.ZodString;
1948
- description: z.ZodOptional<z.ZodString>;
1949
- allowedIpAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
1950
- }, z.core.$strip>, "StaticWebsiteConfig", "out">;
1951
- //#endregion
1952
- //#region src/parser/service/staticwebsite/types.d.ts
1953
- type StaticWebsiteInput = z.input<typeof StaticWebsiteSchema>;
1954
- //#endregion
1955
- //#region src/configure/services/staticwebsite/index.d.ts
1956
- declare const staticWebsiteDefinitionBrand: unique symbol;
1957
- type StaticWebsiteDefinitionBrand = {
1958
- readonly [staticWebsiteDefinitionBrand]: true;
1959
- };
1960
- /**
1961
- * Define a static website configuration for the Tailor SDK.
1962
- * @param name - Static website name
1963
- * @param config - Static website configuration
1964
- * @returns Defined static website
1965
- */
1966
- declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
1967
- readonly name: string;
1968
- readonly url: `${string}:url`;
1969
- readonly description?: string | undefined;
1970
- readonly allowedIpAddresses?: string[] | undefined;
1971
- } & StaticWebsiteDefinitionBrand;
1972
- type StaticWebsiteConfig = Omit<ReturnType<typeof defineStaticWebSite>, "url">;
1973
- //#endregion
1974
- //#region src/parser/service/workflow/types.d.ts
1975
- type WorkflowServiceConfig = {
1976
- files: string[];
1977
- job_files?: string[];
1978
- ignores?: string[];
1979
- job_ignores?: string[];
1980
- };
1981
- type WorkflowServiceInput = WorkflowServiceConfig;
1982
- //#endregion
1983
- //#region src/parser/service/idp/schema.d.ts
1984
- declare const IdPSchema: z.core.$ZodBranded<z.ZodObject<{
1985
- name: z.ZodString;
1986
- authorization: z.ZodUnion<readonly [z.ZodLiteral<"insecure">, z.ZodLiteral<"loggedIn">, z.ZodObject<{
1987
- cel: z.ZodString;
1988
- }, z.core.$strip>]>;
1989
- clients: z.ZodArray<z.ZodString>;
1990
- lang: z.ZodOptional<z.ZodEnum<{
1991
- en: "en";
1992
- ja: "ja";
1993
- }>>;
1994
- userAuthPolicy: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1995
- useNonEmailIdentifier: z.ZodOptional<z.ZodBoolean>;
1996
- allowSelfPasswordReset: z.ZodOptional<z.ZodBoolean>;
1997
- passwordRequireUppercase: z.ZodOptional<z.ZodBoolean>;
1998
- passwordRequireLowercase: z.ZodOptional<z.ZodBoolean>;
1999
- passwordRequireNonAlphanumeric: z.ZodOptional<z.ZodBoolean>;
2000
- passwordRequireNumeric: z.ZodOptional<z.ZodBoolean>;
2001
- passwordMinLength: z.ZodOptional<z.ZodNumber>;
2002
- passwordMaxLength: z.ZodOptional<z.ZodNumber>;
2003
- allowedEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
2004
- }, z.core.$strip>, z.ZodTransform<{
2005
- useNonEmailIdentifier?: boolean | undefined;
2006
- allowSelfPasswordReset?: boolean | undefined;
2007
- passwordRequireUppercase?: boolean | undefined;
2008
- passwordRequireLowercase?: boolean | undefined;
2009
- passwordRequireNonAlphanumeric?: boolean | undefined;
2010
- passwordRequireNumeric?: boolean | undefined;
2011
- passwordMinLength?: number | undefined;
2012
- passwordMaxLength?: number | undefined;
2013
- allowedEmailDomains?: string[] | undefined;
2014
- }, {
2015
- useNonEmailIdentifier?: boolean | undefined;
2016
- allowSelfPasswordReset?: boolean | undefined;
2017
- passwordRequireUppercase?: boolean | undefined;
2018
- passwordRequireLowercase?: boolean | undefined;
2019
- passwordRequireNonAlphanumeric?: boolean | undefined;
2020
- passwordRequireNumeric?: boolean | undefined;
2021
- passwordMinLength?: number | undefined;
2022
- passwordMaxLength?: number | undefined;
2023
- allowedEmailDomains?: string[] | undefined;
2024
- }>>>;
2025
- publishUserEvents: z.ZodOptional<z.ZodBoolean>;
2026
- }, z.core.$strip>, "IdPConfig", "out">;
2027
- //#endregion
2028
- //#region src/parser/service/idp/types.d.ts
2029
- type IdPInput = z.input<typeof IdPSchema>;
2030
- declare const idpDefinitionBrand: unique symbol;
2031
- type IdpDefinitionBrand = {
2032
- readonly [idpDefinitionBrand]: true;
2033
- };
2034
- type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
2035
- name: Name;
2036
- provider(providerName: string, clientName: ClientNames): BuiltinIdP;
2037
- } & IdpDefinitionBrand;
2038
- type IdPExternalConfig = {
2039
- name: string;
2040
- external: true;
2041
- };
2042
- type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
2043
- type IdPConfig = IdPOwnConfig | IdPExternalConfig;
2044
- //#endregion
2045
- //#region src/parser/app-config/types.d.ts
2046
- interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], Env extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
2047
- name: string;
2048
- env?: Env;
2049
- cors?: string[];
2050
- allowedIpAddresses?: string[];
2051
- disableIntrospection?: boolean;
2052
- db?: TailorDBServiceInput;
2053
- resolver?: ResolverServiceInput;
2054
- idp?: Idp;
2055
- auth?: Auth;
2056
- executor?: ExecutorServiceInput;
2057
- workflow?: WorkflowServiceInput;
2058
- staticWebsites?: StaticWebsites;
2059
- }
2060
- //#endregion
2061
- //#region src/parser/generator-config/types.d.ts
2062
- type GeneratorConfig = z.input<typeof BaseGeneratorConfigSchema>;
2063
- type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencies"> & {
2064
- dependencies: readonly DependencyKind[];
2065
- };
2066
- //#endregion
2067
- //#region src/parser/generator-config/index.d.ts
2068
- declare const DependencyKindSchema: z.ZodEnum<{
2069
- executor: "executor";
2070
- tailordb: "tailordb";
2071
- resolver: "resolver";
2072
- }>;
2073
- type DependencyKind = z.infer<typeof DependencyKindSchema>;
2074
- declare const CodeGeneratorSchema: z.ZodObject<{
2075
- id: z.ZodString;
2076
- description: z.ZodString;
2077
- dependencies: z.ZodArray<z.ZodEnum<{
2078
- executor: "executor";
2079
- tailordb: "tailordb";
2080
- resolver: "resolver";
2081
- }>>;
2082
- processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2083
- processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2084
- processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2085
- processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2086
- processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2087
- aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
2088
- }, z.core.$strip>;
2089
- declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"@tailor-platform/kysely-type">, z.ZodObject<{
2090
- distPath: z.ZodString;
2091
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/seed">, z.ZodObject<{
2092
- distPath: z.ZodString;
2093
- machineUserName: z.ZodOptional<z.ZodString>;
2094
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/enum-constants">, z.ZodObject<{
2095
- distPath: z.ZodString;
2096
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/file-utils">, z.ZodObject<{
2097
- distPath: z.ZodString;
2098
- }, z.core.$strip>], null>, z.ZodObject<{
2099
- id: z.ZodString;
2100
- description: z.ZodString;
2101
- dependencies: z.ZodArray<z.ZodEnum<{
2102
- executor: "executor";
2103
- tailordb: "tailordb";
2104
- resolver: "resolver";
2105
- }>>;
2106
- processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2107
- processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2108
- processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2109
- processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2110
- processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2111
- aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
2112
- }, z.core.$strip>]>;
2113
- /**
2114
- * Creates a GeneratorConfigSchema with built-in generator support
2115
- * @param builtinGenerators - Map of generator IDs to their constructor functions
2116
- * @returns Generator config schema
2117
- */
2118
- declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (options: any) => CodeGeneratorBase>): z.core.$ZodBranded<z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"@tailor-platform/kysely-type">, z.ZodObject<{
2119
- distPath: z.ZodString;
2120
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/seed">, z.ZodObject<{
2121
- distPath: z.ZodString;
2122
- machineUserName: z.ZodOptional<z.ZodString>;
2123
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/enum-constants">, z.ZodObject<{
2124
- distPath: z.ZodString;
2125
- }, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/file-utils">, z.ZodObject<{
2126
- distPath: z.ZodString;
2127
- }, z.core.$strip>], null>, z.ZodObject<{
2128
- id: z.ZodString;
2129
- description: z.ZodString;
2130
- dependencies: z.ZodArray<z.ZodEnum<{
2131
- executor: "executor";
2132
- tailordb: "tailordb";
2133
- resolver: "resolver";
2134
- }>>;
2135
- processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2136
- processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2137
- processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2138
- processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2139
- processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
2140
- aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
2141
- }, z.core.$strip>]>, z.ZodTransform<CodeGeneratorBase, ["@tailor-platform/kysely-type", {
2142
- distPath: string;
2143
- }] | ["@tailor-platform/seed", {
2144
- distPath: string;
2145
- machineUserName?: string | undefined;
2146
- }] | ["@tailor-platform/enum-constants", {
2147
- distPath: string;
2148
- }] | ["@tailor-platform/file-utils", {
2149
- distPath: string;
2150
- }] | {
2151
- id: string;
2152
- description: string;
2153
- dependencies: ("executor" | "tailordb" | "resolver")[];
2154
- aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
2155
- processType?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
2156
- processResolver?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
2157
- processExecutor?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
2158
- processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
2159
- processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
2160
- }>>, "CodeGenerator", "out">;
2161
- type GeneratorConfigSchemaType = ReturnType<typeof createGeneratorConfigSchema>;
2162
- type Generator = z.output<GeneratorConfigSchemaType>;
2163
- //#endregion
2164
- export { TailorAnyDBField as $, AuthInvoker as A, FieldMetadata as At, SAML as B, ResolverServiceConfig as Bt, ScheduleTriggerInput as C, PermissionCondition as Ct, TypeSourceInfoEntry as D, unsafeAllowAllTypePermission as Dt, TailorDBType as E, unsafeAllowAllGqlPermission as Et, IDToken as F, TailorField as Ft, SCIMConfig as G, AllowedValues as Gt, SCIMAttributeMapping as H, InferFieldsOutput as Ht, IdProviderConfig as I, QueryType as It, UserAttributeKey as J, SCIMResource as K, AllowedValuesOutput as Kt, OAuth2ClientGrantType as L, Resolver as Lt, AuthServiceInput as M, FieldOutput$1 as Mt, BuiltinIdP as N, TailorFieldType as Nt, AuthConfig as O, ArrayFieldOutput as Ot, DefinedAuth as P, TailorAnyField as Pt, ValueOperand as Q, OAuth2ClientInput as R, ResolverExternalConfig as Rt, ResolverExecutedTrigger as S, TailorDBTypeForPlugin as St, WorkflowOperation as T, TailorTypePermission as Tt, SCIMAttributeType as U, JsonCompatible as Ut, SCIMAttribute as V, ResolverServiceInput as Vt, SCIMAuthorization as W, output as Wt, UserAttributeMap as X, UserAttributeListKey as Y, UsernameFieldKey as Z, FunctionOperation as _, PluginGeneratedType as _t, IdPExternalConfig as a, NamespacePluginOutput as at, IncomingWebhookTrigger as b, PluginOutput as bt, WorkflowServiceConfig as c, PluginBaseNamespace as ct, defineStaticWebSite as d, PluginConfigs as dt, TailorAnyDBType as et, AuthAccessTokenTrigger as f, PluginExecutorContext as ft, ExecutorServiceInput as g, PluginGeneratedResolver as gt, ExecutorServiceConfig as h, PluginGeneratedExecutorWithFile as ht, IdPConfig as i, db as it, AuthOwnConfig as j, FieldOptions as jt, AuthExternalConfig as k, DefinedFieldMetadata as kt, WorkflowServiceInput as l, PluginBaseWithConfig as lt, ExecutorInput as m, PluginGeneratedExecutor as mt, GeneratorConfig as n, TailorDBInstance as nt, IdPInput as o, PluginAttachment as ot, Executor as p, PluginExecutorContextBase as pt, TenantProviderConfig as q, AppConfig as r, TailorDBType$1 as rt, IdpDefinitionBrand as s, PluginBase as st, Generator as t, TailorDBField as tt, StaticWebsiteConfig as u, PluginConfig as ut, GqlOperation as v, PluginNamespaceGeneratedTypeEntry as vt, WebhookOperation as w, TailorTypeGqlPermission as wt, RecordTrigger as x, PluginProcessContext as xt, IdpUserTrigger as y, PluginNamespaceProcessContext as yt, OIDC as z, ResolverInput as zt };
2165
- //# sourceMappingURL=index-Bw_huFr7.d.mts.map
2280
+ export { ArrayFieldOutput as $, TailorDBField as A, PluginGeneratedExecutor as B, UserAttributeKey as C, AllowedValues as Ct, ValueOperand as D, UsernameFieldKey as E, Plugin as F, PluginOutput as G, PluginGeneratedResolver as H, PluginAttachment as I, PermissionCondition as J, PluginProcessContext as K, PluginConfigs as L, TailorDBType$1 as M, db as N, TailorAnyDBField as O, NamespacePluginOutput as P, unsafeAllowAllTypePermission as Q, PluginExecutorContext as R, TenantProviderConfig as S, unauthenticatedTailorUser as St, UserAttributeMap as T, TailorDBServiceInput as Tt, PluginGeneratedType as U, PluginGeneratedExecutorWithFile as V, PluginNamespaceProcessContext as W, TailorTypePermission as X, TailorTypeGqlPermission as Y, unsafeAllowAllGqlPermission as Z, SCIMAttributeMapping as _, TailorEnv as _t, AuthInvoker as a, TailorAnyField as at, SCIMConfig as b, AttributeMap as bt, BuiltinIdP as c, Resolver as ct, IdProviderConfig as d, ResolverServiceConfig as dt, DefinedFieldMetadata as et, OAuth2ClientGrantType as f, ResolverServiceInput as ft, SCIMAttribute as g, Env as gt, SAML as h, output as ht, AuthExternalConfig as i, TailorFieldType as it, TailorDBInstance as j, TailorAnyDBType as k, DefinedAuth as l, ResolverExternalConfig as lt, OIDC as m, JsonCompatible as mt, TypeSourceInfoEntry as n, FieldOptions as nt, AuthOwnConfig as o, TailorField as ot, OAuth2ClientInput as p, InferFieldsOutput as pt, TailorDBTypeForPlugin as q, AuthConfig as r, FieldOutput$1 as rt, AuthServiceInput as s, QueryType as st, TailorDBType as t, FieldMetadata as tt, IDToken as u, ResolverInput as ut, SCIMAttributeType as v, TailorActor as vt, UserAttributeListKey as w, AllowedValuesOutput as wt, SCIMResource as x, TailorUser as xt, SCIMAuthorization as y, AttributeList as yt, PluginExecutorContextBase as z };
2281
+ //# sourceMappingURL=types-DbvONSS-.d.mts.map