@tailor-platform/sdk 1.14.1 → 1.15.0
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.
- package/CHANGELOG.md +46 -0
- package/README.md +19 -0
- package/dist/{application-DnWZVbDO.mjs → application-DPunZ4lc.mjs} +95 -44
- package/dist/application-DPunZ4lc.mjs.map +1 -0
- package/dist/application-JwJ_-_PQ.mjs +4 -0
- package/dist/cli/index.mjs +5 -5
- package/dist/cli/lib.d.mts +62 -52
- package/dist/cli/lib.mjs +4 -4
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.d.mts +2 -0
- package/dist/cli/skills.mjs +51 -0
- package/dist/cli/skills.mjs.map +1 -0
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +2 -9
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-BlUBAAvu.d.mts → index-Bs9AsQb2.d.mts} +28 -11
- package/dist/index-DomkP6gz.d.mts +396 -0
- package/dist/{jiti-DuCiUfMj.mjs → jiti-BrELlEYT.mjs} +2 -2
- package/dist/{jiti-DuCiUfMj.mjs.map → jiti-BrELlEYT.mjs.map} +1 -1
- package/dist/{job-zGAXCidt.mjs → job-XiwGyFJt.mjs} +1 -1
- package/dist/{job-zGAXCidt.mjs.map → job-XiwGyFJt.mjs.map} +1 -1
- package/dist/plugin/index.d.mts +16 -2
- package/dist/plugin/index.mjs +208 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{schema-BmKdDzr1.mjs → schema-DRYB-nzA.mjs} +1 -1
- package/dist/{schema-BmKdDzr1.mjs.map → schema-DRYB-nzA.mjs.map} +1 -1
- package/dist/{src-QNTCsO6J.mjs → src-DMROgdcL.mjs} +2 -2
- package/dist/{src-QNTCsO6J.mjs.map → src-DMROgdcL.mjs.map} +1 -1
- package/dist/{index-Bid18Opo.d.mts → types-Db1oxr0U.d.mts} +584 -509
- package/dist/{types-r-ZratAg.mjs → types-b-ig8nW_.mjs} +1 -1
- package/dist/types-b-ig8nW_.mjs.map +1 -0
- package/dist/{update-2eb6jz9o.mjs → update-C_ZTRB63.mjs} +419 -437
- package/dist/update-C_ZTRB63.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/utils/test/index.mjs +1 -1
- package/docs/plugin/custom.md +156 -83
- package/docs/plugin/index.md +2 -2
- package/package.json +5 -3
- package/skills/tailor-sdk/SKILL.md +34 -0
- package/dist/application-DM4zTgXU.mjs +0 -4
- package/dist/application-DnWZVbDO.mjs.map +0 -1
- package/dist/env-4RO7szrH.d.mts +0 -66
- package/dist/types-r-ZratAg.mjs.map +0 -1
- package/dist/update-2eb6jz9o.mjs.map +0 -1
- /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
|
+
delete: "delete";
|
|
496
|
+
update: "update";
|
|
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";
|
|
638
|
+
date: "date";
|
|
639
|
+
enum: "enum";
|
|
110
640
|
uuid: "uuid";
|
|
111
641
|
integer: "integer";
|
|
112
642
|
float: "float";
|
|
113
|
-
enum: "enum";
|
|
114
|
-
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";
|
|
671
|
+
date: "date";
|
|
672
|
+
enum: "enum";
|
|
143
673
|
uuid: "uuid";
|
|
144
674
|
integer: "integer";
|
|
145
675
|
float: "float";
|
|
146
|
-
enum: "enum";
|
|
147
|
-
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";
|
|
701
|
+
date: "date";
|
|
702
|
+
enum: "enum";
|
|
173
703
|
uuid: "uuid";
|
|
174
704
|
integer: "integer";
|
|
175
705
|
float: "float";
|
|
176
|
-
enum: "enum";
|
|
177
|
-
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
|
|
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<
|
|
1120
|
+
interface PluginProcessContext<TypeConfig = unknown, PluginConfig = unknown> {
|
|
593
1121
|
/** The raw TailorDB type being processed */
|
|
594
1122
|
type: TailorAnyDBType;
|
|
595
|
-
/**
|
|
596
|
-
|
|
1123
|
+
/** Per-type configuration passed via .plugin() method */
|
|
1124
|
+
typeConfig: TypeConfig;
|
|
597
1125
|
/** Plugin-level configuration passed via definePlugins() */
|
|
598
|
-
pluginConfig: PluginConfig
|
|
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<
|
|
1134
|
+
interface PluginNamespaceProcessContext<PluginConfig = unknown> {
|
|
619
1135
|
/** Plugin-level configuration passed via definePlugins() */
|
|
620
|
-
pluginConfig:
|
|
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.
|
|
@@ -830,10 +1342,11 @@ interface PluginExtends {
|
|
|
830
1342
|
* These fields will be merged into the original type's fields.
|
|
831
1343
|
* Existing fields (from original definition or earlier plugins) take precedence.
|
|
832
1344
|
*/
|
|
833
|
-
fields?: Record<string,
|
|
1345
|
+
fields?: Record<string, TailorAnyDBField>;
|
|
834
1346
|
}
|
|
835
1347
|
/**
|
|
836
|
-
*
|
|
1348
|
+
* Base output returned by a plugin's process method.
|
|
1349
|
+
* Used by both processType and processNamespace.
|
|
837
1350
|
*/
|
|
838
1351
|
interface PluginOutput {
|
|
839
1352
|
/**
|
|
@@ -846,20 +1359,26 @@ interface PluginOutput {
|
|
|
846
1359
|
resolvers?: PluginGeneratedResolver[];
|
|
847
1360
|
/** Additional executors to generate */
|
|
848
1361
|
executors?: PluginGeneratedExecutor[];
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* Output returned by a plugin's processType method.
|
|
1365
|
+
* Extends PluginOutput with the ability to add fields to the source type.
|
|
1366
|
+
*/
|
|
1367
|
+
interface TypePluginOutput extends PluginOutput {
|
|
849
1368
|
/** Extensions to apply to the source type */
|
|
850
1369
|
extends?: PluginExtends;
|
|
851
1370
|
}
|
|
852
1371
|
/**
|
|
853
1372
|
* Output returned by a plugin's processNamespace method.
|
|
854
|
-
*
|
|
1373
|
+
* Alias for PluginOutput (namespace plugins cannot extend a source type).
|
|
855
1374
|
*/
|
|
856
|
-
type NamespacePluginOutput =
|
|
857
|
-
extends?: never;
|
|
858
|
-
};
|
|
1375
|
+
type NamespacePluginOutput = PluginOutput;
|
|
859
1376
|
/**
|
|
860
|
-
*
|
|
1377
|
+
* Plugin interface that all plugins must implement.
|
|
1378
|
+
* @template TypeConfig - Type for per-type configuration passed via .plugin() method
|
|
1379
|
+
* @template PluginConfig - Type for plugin-level configuration passed via definePlugins()
|
|
861
1380
|
*/
|
|
862
|
-
interface
|
|
1381
|
+
interface Plugin<TypeConfig = unknown, PluginConfig = unknown> {
|
|
863
1382
|
/** Unique identifier for the plugin */
|
|
864
1383
|
readonly id: string;
|
|
865
1384
|
/** Human-readable description of the plugin */
|
|
@@ -870,49 +1389,25 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
|
|
|
870
1389
|
* (e.g., plugin executors and seed schema generation).
|
|
871
1390
|
*/
|
|
872
1391
|
readonly importPath: string;
|
|
873
|
-
/**
|
|
874
|
-
* Schema defining the expected plugin-level configuration.
|
|
875
|
-
* Used to validate config passed via `definePlugins([plugin, config])`.
|
|
876
|
-
* If not provided, pluginConfig validation is skipped.
|
|
877
|
-
* @example
|
|
878
|
-
* ```typescript
|
|
879
|
-
* pluginConfigSchema: t.object({
|
|
880
|
-
* archiveTablePrefix: t.string({ optional: true }),
|
|
881
|
-
* defaultRetentionDays: t.int({ optional: true }),
|
|
882
|
-
* })
|
|
883
|
-
* ```
|
|
884
|
-
*/
|
|
885
|
-
readonly pluginConfigSchema?: TailorAnyField;
|
|
886
1392
|
/**
|
|
887
1393
|
* Controls whether per-type plugin config is required when attaching via .plugin().
|
|
888
1394
|
* If a function is provided, it receives pluginConfig from definePlugins().
|
|
889
1395
|
* Default is optional when not provided.
|
|
890
1396
|
*/
|
|
891
|
-
readonly typeConfigRequired?: TypeConfigRequired<PluginConfig
|
|
1397
|
+
readonly typeConfigRequired?: TypeConfigRequired<PluginConfig>;
|
|
892
1398
|
/**
|
|
893
1399
|
* Plugin-level configuration passed via definePlugins().
|
|
894
1400
|
* This config is stored when the plugin is registered and made available
|
|
895
|
-
* to both
|
|
896
|
-
*/
|
|
897
|
-
readonly pluginConfig?: PluginConfig$1;
|
|
898
|
-
/**
|
|
899
|
-
* TypeScript type template for generating type-safe plugin configuration.
|
|
900
|
-
* Use `Fields` to reference the field names of the type being configured.
|
|
901
|
-
* If not provided, the type is generated from configSchema.
|
|
902
|
-
* @example
|
|
903
|
-
* ```typescript
|
|
904
|
-
* // For field-aware configs:
|
|
905
|
-
* configTypeTemplate: "{ labels: Partial<Record<Fields, FieldLabel>>; typeLabel?: FieldLabel }"
|
|
906
|
-
* ```
|
|
1401
|
+
* to both processType() and processNamespace() methods.
|
|
907
1402
|
*/
|
|
908
|
-
readonly
|
|
1403
|
+
readonly pluginConfig?: PluginConfig;
|
|
909
1404
|
/**
|
|
910
1405
|
* Process a single TailorDB type and generate outputs.
|
|
911
1406
|
* This method is called for each type that has this plugin attached via .plugin().
|
|
912
1407
|
* @param context - Context containing the type, config, pluginConfig, and namespace
|
|
913
1408
|
* @returns Plugin output with generated types, resolvers, and executors
|
|
914
1409
|
*/
|
|
915
|
-
|
|
1410
|
+
processType?(context: PluginProcessContext<TypeConfig, PluginConfig>): TypePluginOutput | Promise<TypePluginOutput>;
|
|
916
1411
|
/**
|
|
917
1412
|
* Process plugin for a namespace without requiring a source type.
|
|
918
1413
|
* This method is called once per namespace for plugins configured via definePlugins().
|
|
@@ -920,40 +1415,8 @@ interface PluginBaseCommon<PluginConfig$1 = unknown> {
|
|
|
920
1415
|
* @param context - Context containing the plugin config, namespace, and types
|
|
921
1416
|
* @returns Plugin output with generated types, resolvers, and executors
|
|
922
1417
|
*/
|
|
923
|
-
processNamespace?(context: PluginNamespaceProcessContext): NamespacePluginOutput | Promise<NamespacePluginOutput>;
|
|
924
|
-
}
|
|
925
|
-
interface PluginBaseWithConfig<PluginConfig$1 = unknown> extends PluginBaseCommon<PluginConfig$1> {
|
|
926
|
-
/**
|
|
927
|
-
* Schema defining the expected per-type configuration for this plugin.
|
|
928
|
-
* Used to validate config passed via `.plugin({ pluginId: config })`.
|
|
929
|
-
* Uses the same field types as createResolver's input (t.string(), t.number(), etc.).
|
|
930
|
-
* @example
|
|
931
|
-
* ```typescript
|
|
932
|
-
* configSchema: t.object({
|
|
933
|
-
* archiveReason: t.bool({ optional: true }),
|
|
934
|
-
* })
|
|
935
|
-
* ```
|
|
936
|
-
*/
|
|
937
|
-
readonly configSchema: TailorAnyField;
|
|
1418
|
+
processNamespace?(context: PluginNamespaceProcessContext<PluginConfig>): NamespacePluginOutput | Promise<NamespacePluginOutput>;
|
|
938
1419
|
}
|
|
939
|
-
interface PluginBaseNamespace<PluginConfig$1 = unknown> extends PluginBaseCommon<PluginConfig$1> {
|
|
940
|
-
/** Namespace-only plugins do not accept per-type config. */
|
|
941
|
-
readonly configSchema?: undefined;
|
|
942
|
-
/** Namespace-only plugins cannot define process(). */
|
|
943
|
-
process?: never;
|
|
944
|
-
}
|
|
945
|
-
/**
|
|
946
|
-
* Base plugin interface that all plugins must implement
|
|
947
|
-
*/
|
|
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];
|
|
957
1420
|
//#endregion
|
|
958
1421
|
//#region src/configure/services/tailordb/schema.d.ts
|
|
959
1422
|
interface RelationConfig<S extends RelationType, T extends TailorDBType$1> {
|
|
@@ -1508,9 +1971,9 @@ type UserAttributeListKey<User extends TailorDBInstance> = { [K in UserFieldKeys
|
|
|
1508
1971
|
type UserAttributeMap<User extends TailorDBInstance> = { [K in UserAttributeKey<User>]?: true };
|
|
1509
1972
|
type DisallowExtraKeys<T, Allowed extends PropertyKey> = T & { [K in Exclude<keyof T, Allowed>]: never };
|
|
1510
1973
|
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>[]> = {
|
|
1974
|
+
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 };
|
|
1975
|
+
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>>;
|
|
1976
|
+
type UserProfile<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User>, AttributeList$1 extends UserAttributeListKey<User>[]> = {
|
|
1514
1977
|
/**
|
|
1515
1978
|
* TailorDB namespace where the user type is defined.
|
|
1516
1979
|
*
|
|
@@ -1520,8 +1983,8 @@ type UserProfile<User extends TailorDBInstance, AttributeMap extends UserAttribu
|
|
|
1520
1983
|
namespace?: string;
|
|
1521
1984
|
type: User;
|
|
1522
1985
|
usernameField: UsernameFieldKey<User>;
|
|
1523
|
-
attributes?: DisallowExtraKeys<AttributeMap, UserAttributeKey<User>>;
|
|
1524
|
-
attributeList?: AttributeList;
|
|
1986
|
+
attributes?: DisallowExtraKeys<AttributeMap$1, UserAttributeKey<User>>;
|
|
1987
|
+
attributeList?: AttributeList$1;
|
|
1525
1988
|
};
|
|
1526
1989
|
type MachineUserAttributeFields = Record<string, TailorField<DefinedFieldMetadata, unknown, FieldMetadata, TailorFieldType>>;
|
|
1527
1990
|
type TailorFieldOutputValue<Field> = Field extends TailorField<DefinedFieldMetadata, infer Output, FieldMetadata, TailorFieldType> ? Output : never;
|
|
@@ -1533,33 +1996,33 @@ type MachineUserFromAttributes<Fields extends MachineUserAttributeFields> = (key
|
|
|
1533
1996
|
}) & {
|
|
1534
1997
|
attributeList?: string[];
|
|
1535
1998
|
};
|
|
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 ? {
|
|
1999
|
+
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
2000
|
attributes: Record<string, AuthAttributeValue>;
|
|
1538
2001
|
attributeList?: string[];
|
|
1539
|
-
} : (AttributeMapSelectedKeys<User, AttributeMap> extends never ? {
|
|
2002
|
+
} : (AttributeMapSelectedKeys<User, AttributeMap$1> extends never ? {
|
|
1540
2003
|
attributes?: never;
|
|
1541
2004
|
} : {
|
|
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 ? {
|
|
2005
|
+
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 };
|
|
2006
|
+
}) & ([] extends AttributeList$1 ? {
|
|
1544
2007
|
attributeList?: never;
|
|
1545
2008
|
} : {
|
|
1546
|
-
attributeList: AttributeListToTuple<User, AttributeList>;
|
|
2009
|
+
attributeList: AttributeListToTuple<User, AttributeList$1>;
|
|
1547
2010
|
}) : [MachineUserAttributes] extends [MachineUserAttributeFields] ? MachineUserFromAttributes<MachineUserAttributes> : IsAny<User> extends true ? {
|
|
1548
2011
|
attributes: Record<string, AuthAttributeValue>;
|
|
1549
2012
|
attributeList?: string[];
|
|
1550
|
-
} : (AttributeMapSelectedKeys<User, AttributeMap> extends never ? {
|
|
2013
|
+
} : (AttributeMapSelectedKeys<User, AttributeMap$1> extends never ? {
|
|
1551
2014
|
attributes?: never;
|
|
1552
2015
|
} : {
|
|
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 ? {
|
|
2016
|
+
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 };
|
|
2017
|
+
}) & ([] extends AttributeList$1 ? {
|
|
1555
2018
|
attributeList?: never;
|
|
1556
2019
|
} : {
|
|
1557
|
-
attributeList: AttributeListToTuple<User, AttributeList>;
|
|
2020
|
+
attributeList: AttributeListToTuple<User, AttributeList$1>;
|
|
1558
2021
|
});
|
|
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>;
|
|
2022
|
+
type AuthServiceInput<User extends TailorDBInstance, AttributeMap$1 extends UserAttributeMap<User>, AttributeList$1 extends UserAttributeListKey<User>[], MachineUserNames extends string, MachineUserAttributes extends MachineUserAttributeFields | undefined = MachineUserAttributeFields | undefined> = {
|
|
2023
|
+
userProfile?: UserProfile<User, AttributeMap$1, AttributeList$1>;
|
|
1561
2024
|
machineUserAttributes?: MachineUserAttributes;
|
|
1562
|
-
machineUsers?: Record<MachineUserNames, MachineUser<User, AttributeMap, AttributeList, MachineUserAttributes>>;
|
|
2025
|
+
machineUsers?: Record<MachineUserNames, MachineUser<User, AttributeMap$1, AttributeList$1, MachineUserAttributes>>;
|
|
1563
2026
|
oauth2Clients?: Record<string, OAuth2ClientInput>;
|
|
1564
2027
|
idProvider?: IdProviderConfig;
|
|
1565
2028
|
scim?: SCIMConfig;
|
|
@@ -1614,6 +2077,8 @@ interface PluginGeneratedTypeSource {
|
|
|
1614
2077
|
generatedTypeKind?: string;
|
|
1615
2078
|
/** Plugin config used to generate this type */
|
|
1616
2079
|
pluginConfig?: unknown;
|
|
2080
|
+
/** Namespace where this type was generated */
|
|
2081
|
+
namespace?: string;
|
|
1617
2082
|
}
|
|
1618
2083
|
/**
|
|
1619
2084
|
* Source information for a TailorDB type.
|
|
@@ -1626,6 +2091,7 @@ type TypeSourceInfoEntry = UserDefinedTypeSource | PluginGeneratedTypeSource;
|
|
|
1626
2091
|
* @public
|
|
1627
2092
|
*/
|
|
1628
2093
|
type TailorDBTypeParsedSettings = z.output<typeof TailorDBTypeSettingsSchema>;
|
|
2094
|
+
type RawPermissions = z.output<typeof RawPermissionsSchema>;
|
|
1629
2095
|
interface Script {
|
|
1630
2096
|
expr: string;
|
|
1631
2097
|
}
|
|
@@ -1713,10 +2179,6 @@ interface Permissions {
|
|
|
1713
2179
|
record?: StandardTailorTypePermission;
|
|
1714
2180
|
gql?: StandardTailorTypeGqlPermission;
|
|
1715
2181
|
}
|
|
1716
|
-
interface RawPermissions {
|
|
1717
|
-
record?: TailorTypePermission<any, any>;
|
|
1718
|
-
gql?: TailorTypeGqlPermission<any, any>;
|
|
1719
|
-
}
|
|
1720
2182
|
interface TailorDBTypeMetadata {
|
|
1721
2183
|
name: string;
|
|
1722
2184
|
description?: string;
|
|
@@ -1774,392 +2236,5 @@ interface TailorDBType {
|
|
|
1774
2236
|
files?: TailorDBTypeMetadata["files"];
|
|
1775
2237
|
}
|
|
1776
2238
|
//#endregion
|
|
1777
|
-
|
|
1778
|
-
|
|
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-Bid18Opo.d.mts.map
|
|
2239
|
+
export { unsafeAllowAllTypePermission as $, TailorDBField as A, PluginGeneratedExecutor as B, UserAttributeKey as C, unauthenticatedTailorUser as Ct, ValueOperand as D, UsernameFieldKey as E, TailorDBServiceInput as Et, Plugin as F, PluginOutput as G, PluginGeneratedResolver as H, PluginAttachment as I, TypePluginOutput as J, PluginProcessContext as K, PluginConfigs as L, TailorDBType$1 as M, db as N, TailorAnyDBField as O, NamespacePluginOutput as P, unsafeAllowAllGqlPermission as Q, PluginExecutorContext as R, TenantProviderConfig as S, TailorUser as St, UserAttributeMap as T, AllowedValuesOutput as Tt, PluginGeneratedType as U, PluginGeneratedExecutorWithFile as V, PluginNamespaceProcessContext as W, TailorTypeGqlPermission as X, PermissionCondition as Y, TailorTypePermission as Z, SCIMAttributeMapping as _, Env as _t, AuthInvoker as a, TailorFieldType as at, SCIMConfig as b, AttributeList as bt, BuiltinIdP as c, QueryType as ct, IdProviderConfig as d, ResolverInput as dt, ArrayFieldOutput as et, OAuth2ClientGrantType as f, ResolverServiceConfig as ft, SCIMAttribute as g, output as gt, SAML as h, JsonCompatible as ht, AuthExternalConfig as i, FieldOutput$1 as it, TailorDBInstance as j, TailorAnyDBType as k, DefinedAuth as l, Resolver as lt, OIDC as m, InferFieldsOutput as mt, TypeSourceInfoEntry as n, FieldMetadata as nt, AuthOwnConfig as o, TailorAnyField as ot, OAuth2ClientInput as p, ResolverServiceInput as pt, TailorDBTypeForPlugin as q, AuthConfig as r, FieldOptions as rt, AuthServiceInput as s, TailorField as st, TailorDBType as t, DefinedFieldMetadata as tt, IDToken as u, ResolverExternalConfig as ut, SCIMAttributeType as v, TailorEnv as vt, UserAttributeListKey as w, AllowedValues as wt, SCIMResource as x, AttributeMap as xt, SCIMAuthorization as y, TailorActor as yt, PluginExecutorContextBase as z };
|
|
2240
|
+
//# sourceMappingURL=types-Db1oxr0U.d.mts.map
|