@tailor-platform/sdk 1.15.1 → 1.16.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 +24 -0
- package/dist/application-CNpRSiWJ.mjs +4 -0
- package/dist/{application-B0TR65qY.mjs → application-DQ2F9UmJ.mjs} +22 -6
- package/dist/application-DQ2F9UmJ.mjs.map +1 -0
- package/dist/cli/index.mjs +136 -2
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +20 -3
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +3 -3
- package/dist/{index-Bs9AsQb2.d.mts → index-1V_2bvT4.d.mts} +11 -11
- package/dist/{index-DomkP6gz.d.mts → index-Ds8lbSJb.d.mts} +2 -2
- package/dist/plugin/index.d.mts +1 -1
- package/dist/schema-DRYB-nzA.mjs.map +1 -1
- package/dist/{types-Db1oxr0U.d.mts → types-_sYDzqHG.d.mts} +96 -52
- package/dist/types-b-ig8nW_.mjs.map +1 -1
- package/dist/{update-CnSKzwg6.mjs → update-C5jgLxpK.mjs} +48 -24
- package/dist/update-C5jgLxpK.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +3 -3
- package/docs/cli/function.md +64 -0
- package/docs/cli-reference.md +8 -0
- package/package.json +1 -1
- package/dist/application-B0TR65qY.mjs.map +0 -1
- package/dist/application-BmaRd-Tl.mjs +0 -4
- package/dist/update-CnSKzwg6.mjs.map +0 -1
|
@@ -41,7 +41,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
41
41
|
create: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
42
|
conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
43
43
|
user: z.ZodString;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
45
45
|
record: z.ZodString;
|
|
46
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
47
47
|
oldRecord: z.ZodString;
|
|
@@ -52,9 +52,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
52
52
|
"=": "=";
|
|
53
53
|
"!=": "!=";
|
|
54
54
|
"not in": "not in";
|
|
55
|
+
hasAny: "hasAny";
|
|
56
|
+
"not hasAny": "not hasAny";
|
|
55
57
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
56
58
|
user: z.ZodString;
|
|
57
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
58
60
|
record: z.ZodString;
|
|
59
61
|
}, z.core.$strip>, z.ZodObject<{
|
|
60
62
|
oldRecord: z.ZodString;
|
|
@@ -62,7 +64,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
62
64
|
newRecord: z.ZodString;
|
|
63
65
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
64
66
|
user: z.ZodString;
|
|
65
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
66
68
|
record: z.ZodString;
|
|
67
69
|
}, z.core.$strip>, z.ZodObject<{
|
|
68
70
|
oldRecord: z.ZodString;
|
|
@@ -73,9 +75,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
73
75
|
"=": "=";
|
|
74
76
|
"!=": "!=";
|
|
75
77
|
"not in": "not in";
|
|
78
|
+
hasAny: "hasAny";
|
|
79
|
+
"not hasAny": "not hasAny";
|
|
76
80
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
77
81
|
user: z.ZodString;
|
|
78
|
-
}, z.core.$
|
|
82
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
79
83
|
record: z.ZodString;
|
|
80
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
81
85
|
oldRecord: z.ZodString;
|
|
@@ -86,7 +90,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
86
90
|
permit: z.ZodOptional<z.ZodBoolean>;
|
|
87
91
|
}, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
88
92
|
user: z.ZodString;
|
|
89
|
-
}, z.core.$
|
|
93
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
90
94
|
record: z.ZodString;
|
|
91
95
|
}, z.core.$strip>, z.ZodObject<{
|
|
92
96
|
oldRecord: z.ZodString;
|
|
@@ -97,9 +101,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
97
101
|
"=": "=";
|
|
98
102
|
"!=": "!=";
|
|
99
103
|
"not in": "not in";
|
|
104
|
+
hasAny: "hasAny";
|
|
105
|
+
"not hasAny": "not hasAny";
|
|
100
106
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
101
107
|
user: z.ZodString;
|
|
102
|
-
}, z.core.$
|
|
108
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
103
109
|
record: z.ZodString;
|
|
104
110
|
}, z.core.$strip>, z.ZodObject<{
|
|
105
111
|
oldRecord: z.ZodString;
|
|
@@ -107,7 +113,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
107
113
|
newRecord: z.ZodString;
|
|
108
114
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
109
115
|
user: z.ZodString;
|
|
110
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
111
117
|
record: z.ZodString;
|
|
112
118
|
}, z.core.$strip>, z.ZodObject<{
|
|
113
119
|
oldRecord: z.ZodString;
|
|
@@ -118,9 +124,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
118
124
|
"=": "=";
|
|
119
125
|
"!=": "!=";
|
|
120
126
|
"not in": "not in";
|
|
127
|
+
hasAny: "hasAny";
|
|
128
|
+
"not hasAny": "not hasAny";
|
|
121
129
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
122
130
|
user: z.ZodString;
|
|
123
|
-
}, z.core.$
|
|
131
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
124
132
|
record: z.ZodString;
|
|
125
133
|
}, z.core.$strip>, z.ZodObject<{
|
|
126
134
|
oldRecord: z.ZodString;
|
|
@@ -128,7 +136,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
128
136
|
newRecord: z.ZodString;
|
|
129
137
|
}, 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
138
|
user: z.ZodString;
|
|
131
|
-
}, z.core.$
|
|
139
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
132
140
|
record: z.ZodString;
|
|
133
141
|
}, z.core.$strip>, z.ZodObject<{
|
|
134
142
|
oldRecord: z.ZodString;
|
|
@@ -139,9 +147,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
139
147
|
"=": "=";
|
|
140
148
|
"!=": "!=";
|
|
141
149
|
"not in": "not in";
|
|
150
|
+
hasAny: "hasAny";
|
|
151
|
+
"not hasAny": "not hasAny";
|
|
142
152
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
143
153
|
user: z.ZodString;
|
|
144
|
-
}, z.core.$
|
|
154
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
145
155
|
record: z.ZodString;
|
|
146
156
|
}, z.core.$strip>, z.ZodObject<{
|
|
147
157
|
oldRecord: z.ZodString;
|
|
@@ -151,7 +161,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
151
161
|
read: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
152
162
|
conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
153
163
|
user: z.ZodString;
|
|
154
|
-
}, z.core.$
|
|
164
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
155
165
|
record: z.ZodString;
|
|
156
166
|
}, z.core.$strip>, z.ZodObject<{
|
|
157
167
|
oldRecord: z.ZodString;
|
|
@@ -162,9 +172,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
162
172
|
"=": "=";
|
|
163
173
|
"!=": "!=";
|
|
164
174
|
"not in": "not in";
|
|
175
|
+
hasAny: "hasAny";
|
|
176
|
+
"not hasAny": "not hasAny";
|
|
165
177
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
166
178
|
user: z.ZodString;
|
|
167
|
-
}, z.core.$
|
|
179
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
168
180
|
record: z.ZodString;
|
|
169
181
|
}, z.core.$strip>, z.ZodObject<{
|
|
170
182
|
oldRecord: z.ZodString;
|
|
@@ -172,7 +184,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
172
184
|
newRecord: z.ZodString;
|
|
173
185
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
174
186
|
user: z.ZodString;
|
|
175
|
-
}, z.core.$
|
|
187
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
176
188
|
record: z.ZodString;
|
|
177
189
|
}, z.core.$strip>, z.ZodObject<{
|
|
178
190
|
oldRecord: z.ZodString;
|
|
@@ -183,9 +195,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
183
195
|
"=": "=";
|
|
184
196
|
"!=": "!=";
|
|
185
197
|
"not in": "not in";
|
|
198
|
+
hasAny: "hasAny";
|
|
199
|
+
"not hasAny": "not hasAny";
|
|
186
200
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
187
201
|
user: z.ZodString;
|
|
188
|
-
}, z.core.$
|
|
202
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
189
203
|
record: z.ZodString;
|
|
190
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
191
205
|
oldRecord: z.ZodString;
|
|
@@ -196,7 +210,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
196
210
|
permit: z.ZodOptional<z.ZodBoolean>;
|
|
197
211
|
}, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
198
212
|
user: z.ZodString;
|
|
199
|
-
}, z.core.$
|
|
213
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
200
214
|
record: z.ZodString;
|
|
201
215
|
}, z.core.$strip>, z.ZodObject<{
|
|
202
216
|
oldRecord: z.ZodString;
|
|
@@ -207,9 +221,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
207
221
|
"=": "=";
|
|
208
222
|
"!=": "!=";
|
|
209
223
|
"not in": "not in";
|
|
224
|
+
hasAny: "hasAny";
|
|
225
|
+
"not hasAny": "not hasAny";
|
|
210
226
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
211
227
|
user: z.ZodString;
|
|
212
|
-
}, z.core.$
|
|
228
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
213
229
|
record: z.ZodString;
|
|
214
230
|
}, z.core.$strip>, z.ZodObject<{
|
|
215
231
|
oldRecord: z.ZodString;
|
|
@@ -217,7 +233,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
217
233
|
newRecord: z.ZodString;
|
|
218
234
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
219
235
|
user: z.ZodString;
|
|
220
|
-
}, z.core.$
|
|
236
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
221
237
|
record: z.ZodString;
|
|
222
238
|
}, z.core.$strip>, z.ZodObject<{
|
|
223
239
|
oldRecord: z.ZodString;
|
|
@@ -228,9 +244,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
228
244
|
"=": "=";
|
|
229
245
|
"!=": "!=";
|
|
230
246
|
"not in": "not in";
|
|
247
|
+
hasAny: "hasAny";
|
|
248
|
+
"not hasAny": "not hasAny";
|
|
231
249
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
232
250
|
user: z.ZodString;
|
|
233
|
-
}, z.core.$
|
|
251
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
234
252
|
record: z.ZodString;
|
|
235
253
|
}, z.core.$strip>, z.ZodObject<{
|
|
236
254
|
oldRecord: z.ZodString;
|
|
@@ -238,7 +256,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
238
256
|
newRecord: z.ZodString;
|
|
239
257
|
}, 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
258
|
user: z.ZodString;
|
|
241
|
-
}, z.core.$
|
|
259
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
242
260
|
record: z.ZodString;
|
|
243
261
|
}, z.core.$strip>, z.ZodObject<{
|
|
244
262
|
oldRecord: z.ZodString;
|
|
@@ -249,9 +267,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
249
267
|
"=": "=";
|
|
250
268
|
"!=": "!=";
|
|
251
269
|
"not in": "not in";
|
|
270
|
+
hasAny: "hasAny";
|
|
271
|
+
"not hasAny": "not hasAny";
|
|
252
272
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
253
273
|
user: z.ZodString;
|
|
254
|
-
}, z.core.$
|
|
274
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
255
275
|
record: z.ZodString;
|
|
256
276
|
}, z.core.$strip>, z.ZodObject<{
|
|
257
277
|
oldRecord: z.ZodString;
|
|
@@ -261,7 +281,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
261
281
|
update: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
262
282
|
conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
263
283
|
user: z.ZodString;
|
|
264
|
-
}, z.core.$
|
|
284
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
265
285
|
record: z.ZodString;
|
|
266
286
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
287
|
oldRecord: z.ZodString;
|
|
@@ -272,9 +292,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
272
292
|
"=": "=";
|
|
273
293
|
"!=": "!=";
|
|
274
294
|
"not in": "not in";
|
|
295
|
+
hasAny: "hasAny";
|
|
296
|
+
"not hasAny": "not hasAny";
|
|
275
297
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
276
298
|
user: z.ZodString;
|
|
277
|
-
}, z.core.$
|
|
299
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
278
300
|
record: z.ZodString;
|
|
279
301
|
}, z.core.$strip>, z.ZodObject<{
|
|
280
302
|
oldRecord: z.ZodString;
|
|
@@ -282,7 +304,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
282
304
|
newRecord: z.ZodString;
|
|
283
305
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
284
306
|
user: z.ZodString;
|
|
285
|
-
}, z.core.$
|
|
307
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
286
308
|
record: z.ZodString;
|
|
287
309
|
}, z.core.$strip>, z.ZodObject<{
|
|
288
310
|
oldRecord: z.ZodString;
|
|
@@ -293,9 +315,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
293
315
|
"=": "=";
|
|
294
316
|
"!=": "!=";
|
|
295
317
|
"not in": "not in";
|
|
318
|
+
hasAny: "hasAny";
|
|
319
|
+
"not hasAny": "not hasAny";
|
|
296
320
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
297
321
|
user: z.ZodString;
|
|
298
|
-
}, z.core.$
|
|
322
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
299
323
|
record: z.ZodString;
|
|
300
324
|
}, z.core.$strip>, z.ZodObject<{
|
|
301
325
|
oldRecord: z.ZodString;
|
|
@@ -306,7 +330,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
306
330
|
permit: z.ZodOptional<z.ZodBoolean>;
|
|
307
331
|
}, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
308
332
|
user: z.ZodString;
|
|
309
|
-
}, z.core.$
|
|
333
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
310
334
|
record: z.ZodString;
|
|
311
335
|
}, z.core.$strip>, z.ZodObject<{
|
|
312
336
|
oldRecord: z.ZodString;
|
|
@@ -317,9 +341,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
317
341
|
"=": "=";
|
|
318
342
|
"!=": "!=";
|
|
319
343
|
"not in": "not in";
|
|
344
|
+
hasAny: "hasAny";
|
|
345
|
+
"not hasAny": "not hasAny";
|
|
320
346
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
321
347
|
user: z.ZodString;
|
|
322
|
-
}, z.core.$
|
|
348
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
323
349
|
record: z.ZodString;
|
|
324
350
|
}, z.core.$strip>, z.ZodObject<{
|
|
325
351
|
oldRecord: z.ZodString;
|
|
@@ -327,7 +353,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
327
353
|
newRecord: z.ZodString;
|
|
328
354
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
329
355
|
user: z.ZodString;
|
|
330
|
-
}, z.core.$
|
|
356
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
331
357
|
record: z.ZodString;
|
|
332
358
|
}, z.core.$strip>, z.ZodObject<{
|
|
333
359
|
oldRecord: z.ZodString;
|
|
@@ -338,9 +364,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
338
364
|
"=": "=";
|
|
339
365
|
"!=": "!=";
|
|
340
366
|
"not in": "not in";
|
|
367
|
+
hasAny: "hasAny";
|
|
368
|
+
"not hasAny": "not hasAny";
|
|
341
369
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
342
370
|
user: z.ZodString;
|
|
343
|
-
}, z.core.$
|
|
371
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
344
372
|
record: z.ZodString;
|
|
345
373
|
}, z.core.$strip>, z.ZodObject<{
|
|
346
374
|
oldRecord: z.ZodString;
|
|
@@ -348,7 +376,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
348
376
|
newRecord: z.ZodString;
|
|
349
377
|
}, 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
378
|
user: z.ZodString;
|
|
351
|
-
}, z.core.$
|
|
379
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
352
380
|
record: z.ZodString;
|
|
353
381
|
}, z.core.$strip>, z.ZodObject<{
|
|
354
382
|
oldRecord: z.ZodString;
|
|
@@ -359,9 +387,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
359
387
|
"=": "=";
|
|
360
388
|
"!=": "!=";
|
|
361
389
|
"not in": "not in";
|
|
390
|
+
hasAny: "hasAny";
|
|
391
|
+
"not hasAny": "not hasAny";
|
|
362
392
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
363
393
|
user: z.ZodString;
|
|
364
|
-
}, z.core.$
|
|
394
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
365
395
|
record: z.ZodString;
|
|
366
396
|
}, z.core.$strip>, z.ZodObject<{
|
|
367
397
|
oldRecord: z.ZodString;
|
|
@@ -371,7 +401,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
371
401
|
delete: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
372
402
|
conditions: z.ZodUnion<readonly [z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
373
403
|
user: z.ZodString;
|
|
374
|
-
}, z.core.$
|
|
404
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
375
405
|
record: z.ZodString;
|
|
376
406
|
}, z.core.$strip>, z.ZodObject<{
|
|
377
407
|
oldRecord: z.ZodString;
|
|
@@ -382,9 +412,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
382
412
|
"=": "=";
|
|
383
413
|
"!=": "!=";
|
|
384
414
|
"not in": "not in";
|
|
415
|
+
hasAny: "hasAny";
|
|
416
|
+
"not hasAny": "not hasAny";
|
|
385
417
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
386
418
|
user: z.ZodString;
|
|
387
|
-
}, z.core.$
|
|
419
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
388
420
|
record: z.ZodString;
|
|
389
421
|
}, z.core.$strip>, z.ZodObject<{
|
|
390
422
|
oldRecord: z.ZodString;
|
|
@@ -392,7 +424,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
392
424
|
newRecord: z.ZodString;
|
|
393
425
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
394
426
|
user: z.ZodString;
|
|
395
|
-
}, z.core.$
|
|
427
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
396
428
|
record: z.ZodString;
|
|
397
429
|
}, z.core.$strip>, z.ZodObject<{
|
|
398
430
|
oldRecord: z.ZodString;
|
|
@@ -403,9 +435,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
403
435
|
"=": "=";
|
|
404
436
|
"!=": "!=";
|
|
405
437
|
"not in": "not in";
|
|
438
|
+
hasAny: "hasAny";
|
|
439
|
+
"not hasAny": "not hasAny";
|
|
406
440
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
407
441
|
user: z.ZodString;
|
|
408
|
-
}, z.core.$
|
|
442
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
409
443
|
record: z.ZodString;
|
|
410
444
|
}, z.core.$strip>, z.ZodObject<{
|
|
411
445
|
oldRecord: z.ZodString;
|
|
@@ -416,7 +450,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
416
450
|
permit: z.ZodOptional<z.ZodBoolean>;
|
|
417
451
|
}, z.core.$strip>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
418
452
|
user: z.ZodString;
|
|
419
|
-
}, z.core.$
|
|
453
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
420
454
|
record: z.ZodString;
|
|
421
455
|
}, z.core.$strip>, z.ZodObject<{
|
|
422
456
|
oldRecord: z.ZodString;
|
|
@@ -427,9 +461,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
427
461
|
"=": "=";
|
|
428
462
|
"!=": "!=";
|
|
429
463
|
"not in": "not in";
|
|
464
|
+
hasAny: "hasAny";
|
|
465
|
+
"not hasAny": "not hasAny";
|
|
430
466
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
431
467
|
user: z.ZodString;
|
|
432
|
-
}, z.core.$
|
|
468
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
433
469
|
record: z.ZodString;
|
|
434
470
|
}, z.core.$strip>, z.ZodObject<{
|
|
435
471
|
oldRecord: z.ZodString;
|
|
@@ -437,7 +473,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
437
473
|
newRecord: z.ZodString;
|
|
438
474
|
}, z.core.$strip>]>], null>>, z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
439
475
|
user: z.ZodString;
|
|
440
|
-
}, z.core.$
|
|
476
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
441
477
|
record: z.ZodString;
|
|
442
478
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
479
|
oldRecord: z.ZodString;
|
|
@@ -448,9 +484,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
448
484
|
"=": "=";
|
|
449
485
|
"!=": "!=";
|
|
450
486
|
"not in": "not in";
|
|
487
|
+
hasAny: "hasAny";
|
|
488
|
+
"not hasAny": "not hasAny";
|
|
451
489
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
452
490
|
user: z.ZodString;
|
|
453
|
-
}, z.core.$
|
|
491
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
454
492
|
record: z.ZodString;
|
|
455
493
|
}, z.core.$strip>, z.ZodObject<{
|
|
456
494
|
oldRecord: z.ZodString;
|
|
@@ -458,7 +496,7 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
458
496
|
newRecord: z.ZodString;
|
|
459
497
|
}, 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
498
|
user: z.ZodString;
|
|
461
|
-
}, z.core.$
|
|
499
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
462
500
|
record: z.ZodString;
|
|
463
501
|
}, z.core.$strip>, z.ZodObject<{
|
|
464
502
|
oldRecord: z.ZodString;
|
|
@@ -469,9 +507,11 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
469
507
|
"=": "=";
|
|
470
508
|
"!=": "!=";
|
|
471
509
|
"not in": "not in";
|
|
510
|
+
hasAny: "hasAny";
|
|
511
|
+
"not hasAny": "not hasAny";
|
|
472
512
|
}>, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
473
513
|
user: z.ZodString;
|
|
474
|
-
}, z.core.$
|
|
514
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodObject<{
|
|
475
515
|
record: z.ZodString;
|
|
476
516
|
}, z.core.$strip>, z.ZodObject<{
|
|
477
517
|
oldRecord: z.ZodString;
|
|
@@ -482,18 +522,20 @@ declare const RawPermissionsSchema: z.ZodObject<{
|
|
|
482
522
|
gql: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
483
523
|
conditions: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodObject<{
|
|
484
524
|
user: z.ZodString;
|
|
485
|
-
}, z.core.$
|
|
525
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>, z.ZodEnum<{
|
|
486
526
|
in: "in";
|
|
487
527
|
"=": "=";
|
|
488
528
|
"!=": "!=";
|
|
489
529
|
"not in": "not in";
|
|
530
|
+
hasAny: "hasAny";
|
|
531
|
+
"not hasAny": "not hasAny";
|
|
490
532
|
}>, z.ZodUnion<readonly [z.ZodObject<{
|
|
491
533
|
user: z.ZodString;
|
|
492
|
-
}, z.core.$
|
|
534
|
+
}, z.core.$strict>, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodBoolean>]>], null>>>>;
|
|
493
535
|
actions: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
494
536
|
create: "create";
|
|
495
|
-
delete: "delete";
|
|
496
537
|
update: "update";
|
|
538
|
+
delete: "delete";
|
|
497
539
|
aggregate: "aggregate";
|
|
498
540
|
bulkUpsert: "bulkUpsert";
|
|
499
541
|
read: "read";
|
|
@@ -635,11 +677,11 @@ declare const TailorFieldSchema: z.ZodObject<{
|
|
|
635
677
|
type: z.ZodEnum<{
|
|
636
678
|
string: "string";
|
|
637
679
|
boolean: "boolean";
|
|
638
|
-
date: "date";
|
|
639
|
-
enum: "enum";
|
|
640
680
|
uuid: "uuid";
|
|
641
681
|
integer: "integer";
|
|
642
682
|
float: "float";
|
|
683
|
+
enum: "enum";
|
|
684
|
+
date: "date";
|
|
643
685
|
datetime: "datetime";
|
|
644
686
|
time: "time";
|
|
645
687
|
nested: "nested";
|
|
@@ -668,11 +710,11 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
668
710
|
type: z.ZodEnum<{
|
|
669
711
|
string: "string";
|
|
670
712
|
boolean: "boolean";
|
|
671
|
-
date: "date";
|
|
672
|
-
enum: "enum";
|
|
673
713
|
uuid: "uuid";
|
|
674
714
|
integer: "integer";
|
|
675
715
|
float: "float";
|
|
716
|
+
enum: "enum";
|
|
717
|
+
date: "date";
|
|
676
718
|
datetime: "datetime";
|
|
677
719
|
time: "time";
|
|
678
720
|
nested: "nested";
|
|
@@ -698,11 +740,11 @@ declare const ResolverSchema: z.ZodObject<{
|
|
|
698
740
|
type: z.ZodEnum<{
|
|
699
741
|
string: "string";
|
|
700
742
|
boolean: "boolean";
|
|
701
|
-
date: "date";
|
|
702
|
-
enum: "enum";
|
|
703
743
|
uuid: "uuid";
|
|
704
744
|
integer: "integer";
|
|
705
745
|
float: "float";
|
|
746
|
+
enum: "enum";
|
|
747
|
+
date: "date";
|
|
706
748
|
datetime: "datetime";
|
|
707
749
|
time: "time";
|
|
708
750
|
nested: "nested";
|
|
@@ -930,6 +972,7 @@ type GqlPermissionPolicy<User extends object = InferredAttributeMap, Type extend
|
|
|
930
972
|
type GqlPermissionAction$1 = "read" | "create" | "update" | "delete" | "aggregate" | "bulkUpsert";
|
|
931
973
|
type EqualityOperator = "=" | "!=";
|
|
932
974
|
type ContainsOperator = "in" | "not in";
|
|
975
|
+
type HasAnyOperator = "hasAny" | "not hasAny";
|
|
933
976
|
type StringFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string ? K : never }[keyof User];
|
|
934
977
|
type StringArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string[] ? K : never }[keyof User];
|
|
935
978
|
type BooleanFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean ? K : never }[keyof User];
|
|
@@ -959,6 +1002,7 @@ type EqualityCondition<Level extends "record" | "gql" = "record", User extends o
|
|
|
959
1002
|
type StringContainsCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = readonly [string, ContainsOperator, string[]] | readonly [UserStringOperand<User>, ContainsOperator, string[]] | readonly [string, ContainsOperator, UserStringArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand$1<Type, Update>, ContainsOperator, string[] | UserStringArrayOperand<User>] | readonly [string | UserStringOperand<User>, ContainsOperator, RecordOperand$1<Type, Update>] : never);
|
|
960
1003
|
type BooleanContainsCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = (Level extends "gql" ? readonly [string, ContainsOperator, boolean[]] : never) | readonly [boolean, ContainsOperator, boolean[]] | readonly [UserBooleanOperand<User>, ContainsOperator, boolean[]] | readonly [boolean, ContainsOperator, UserBooleanArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand$1<Type, Update>, ContainsOperator, boolean[] | UserBooleanArrayOperand<User>] | readonly [boolean | UserBooleanOperand<User>, ContainsOperator, RecordOperand$1<Type, Update>] : never);
|
|
961
1004
|
type ContainsCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = StringContainsCondition<Level, User, Update, Type> | BooleanContainsCondition<Level, User, Update, Type>;
|
|
1005
|
+
type HasAnyCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = readonly [string[] | UserStringArrayOperand<User>, HasAnyOperator, string[] | UserStringArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand$1<Type, Update>, HasAnyOperator, string[] | UserStringArrayOperand<User>] | readonly [string[] | UserStringArrayOperand<User>, HasAnyOperator, RecordOperand$1<Type, Update>] : never);
|
|
962
1006
|
/**
|
|
963
1007
|
* Type representing a permission condition that combines user attributes, record fields, and literal values using comparison operators.
|
|
964
1008
|
*
|
|
@@ -979,7 +1023,7 @@ type ContainsCondition<Level extends "record" | "gql" = "record", User extends o
|
|
|
979
1023
|
* });
|
|
980
1024
|
* ```
|
|
981
1025
|
*/
|
|
982
|
-
type PermissionCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = EqualityCondition<Level, User, Update, Type> | ContainsCondition<Level, User, Update, Type>;
|
|
1026
|
+
type PermissionCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = EqualityCondition<Level, User, Update, Type> | ContainsCondition<Level, User, Update, Type> | HasAnyCondition<Level, User, Update, Type>;
|
|
983
1027
|
/**
|
|
984
1028
|
* Grants full record-level access without any conditions.
|
|
985
1029
|
*
|
|
@@ -2144,7 +2188,7 @@ interface OperatorFieldConfig {
|
|
|
2144
2188
|
fields?: Record<string, OperatorFieldConfig>;
|
|
2145
2189
|
}
|
|
2146
2190
|
type GqlPermissionAction = "read" | "create" | "update" | "delete" | "aggregate" | "bulkUpsert";
|
|
2147
|
-
type StandardPermissionOperator = "eq" | "ne" | "in" | "nin";
|
|
2191
|
+
type StandardPermissionOperator = "eq" | "ne" | "in" | "nin" | "hasAny" | "nhasAny";
|
|
2148
2192
|
type UserOperand = {
|
|
2149
2193
|
user: string;
|
|
2150
2194
|
};
|
|
@@ -2237,4 +2281,4 @@ interface TailorDBType {
|
|
|
2237
2281
|
}
|
|
2238
2282
|
//#endregion
|
|
2239
2283
|
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-
|
|
2284
|
+
//# sourceMappingURL=types-_sYDzqHG.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-b-ig8nW_.mjs","names":[],"sources":["../src/parser/service/tailordb/types.ts"],"sourcesContent":["import type { RelationType } from \"./relation\";\nimport type {\n DBFieldMetadataSchema,\n RawRelationConfigSchema,\n RawPermissionsSchema,\n TailorDBTypeSchema,\n TailorDBServiceConfig as TailorDBServiceConfigType,\n TailorDBTypeSettingsSchema,\n} from \"./schema\";\nimport type { GqlOperationsConfig } from \"@/configure/services/tailordb\";\nimport type { ValueOperand } from \"@/parser/service/auth/types\";\nimport type { z } from \"zod\";\n\nexport type { RelationType } from \"./relation\";\nexport type { TypeSourceInfo } from \"./type-parser\";\n\n// ========================================\n// Source info type for TailorDB types\n// ========================================\n\n/**\n * Source information for a user-defined TailorDB type.\n */\nexport interface UserDefinedTypeSource {\n /** File path to import from */\n filePath: string;\n /** Export name in the source file */\n exportName: string;\n /** Not present for user-defined types */\n pluginId?: never;\n}\n\n/**\n * Source information for a plugin-generated TailorDB type.\n */\nexport interface PluginGeneratedTypeSource {\n /** Not present for plugin-generated types */\n filePath?: never;\n /** Export name of the generated type */\n exportName: string;\n /** Plugin ID that generated this type */\n pluginId: string;\n /** Plugin import path for code generators */\n pluginImportPath: string;\n /** Original type's file path */\n originalFilePath: string;\n /** Original type's export name */\n originalExportName: string;\n /** Generated type kind for getGeneratedType() API (e.g., \"request\", \"step\") */\n generatedTypeKind?: string;\n /** Plugin config used to generate this type */\n pluginConfig?: unknown;\n /** Namespace where this type was generated */\n namespace?: string;\n}\n\n/**\n * Source information for a TailorDB type.\n * Discriminated union: use `pluginId` to distinguish between user-defined and plugin-generated types.\n */\nexport type TypeSourceInfoEntry = UserDefinedTypeSource | PluginGeneratedTypeSource;\n\n/**\n * Type guard to check if source is plugin-generated\n * @param source - Type source info to check\n * @returns True if source is plugin-generated\n */\nexport function isPluginGeneratedType(\n source: TypeSourceInfoEntry,\n): source is PluginGeneratedTypeSource {\n return source.pluginId !== undefined;\n}\n\nexport type {\n TailorAnyDBField,\n TailorAnyDBType,\n TailorDBField,\n DBFieldMetadata,\n Hook,\n TailorTypePermission,\n TailorTypeGqlPermission,\n GqlOperationsConfig,\n GqlOperations,\n} from \"@/configure/services/tailordb\";\nexport type {\n TailorDBServiceConfigInput,\n TailorDBServiceConfig,\n TailorDBExternalConfig,\n TailorDBServiceInput,\n} from \"./schema\";\n\n/**\n * Parsed and normalized settings for TailorDB type.\n * gqlOperations is normalized from alias to object format.\n * @public\n */\nexport type TailorDBTypeParsedSettings = z.output<typeof TailorDBTypeSettingsSchema>;\n\n/**\n * Migration configuration for TailorDB\n * @public\n */\nexport type TailorDBMigrationConfig = NonNullable<TailorDBServiceConfigType[\"migration\"]>;\n\nexport type TailorDBTypeSchemaOutput = z.output<typeof TailorDBTypeSchema>;\n\nexport type DBFieldMetadataOutput = z.output<typeof DBFieldMetadataSchema>;\nexport type RawRelationConfigOutput = z.output<typeof RawRelationConfigSchema>;\n\nexport type RawPermissions = z.output<typeof RawPermissionsSchema>;\n\nexport type TailorDBFieldOutput = {\n type: string;\n fields?: Record<string, TailorDBFieldOutput>;\n metadata: DBFieldMetadataOutput;\n rawRelation?: RawRelationConfigOutput;\n};\n\nexport interface Script {\n expr: string;\n}\n\nexport interface EnumValue {\n value: string;\n description?: string;\n}\n\ninterface OperatorValidateConfig {\n script: Script;\n errorMessage: string;\n}\n\ninterface OperatorFieldHook {\n create?: Script;\n update?: Script;\n}\n\n/**\n * Raw relation config stored in configure layer, processed in parser layer.\n * This is the serialized form of RelationConfig from schema.ts where\n * the TailorDBType reference is replaced with the type name string.\n */\nexport interface RawRelationConfig {\n type: RelationType;\n toward: {\n type: string;\n as?: string;\n key?: string;\n };\n backward?: string;\n}\n\nexport interface OperatorFieldConfig {\n type: string;\n required?: boolean;\n description?: string;\n allowedValues?: EnumValue[];\n array?: boolean;\n index?: boolean;\n unique?: boolean;\n vector?: boolean;\n foreignKey?: boolean;\n foreignKeyType?: string;\n foreignKeyField?: string;\n rawRelation?: RawRelationConfig;\n validate?: OperatorValidateConfig[];\n hooks?: OperatorFieldHook;\n serial?: {\n start: number;\n maxValue?: number;\n format?: string;\n };\n fields?: Record<string, OperatorFieldConfig>;\n}\n\ntype GqlPermissionAction = \"read\" | \"create\" | \"update\" | \"delete\" | \"aggregate\" | \"bulkUpsert\";\n\ntype StandardPermissionOperator = \"eq\" | \"ne\" | \"in\" | \"nin\";\n\ntype UserOperand = {\n user: string;\n};\n\ntype RecordOperand<Update extends boolean = false> = Update extends true\n ? { oldRecord: string } | { newRecord: string }\n : { record: string };\n\nexport type PermissionOperand<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = UserOperand | ValueOperand | (Level extends \"record\" ? RecordOperand<Update> : never);\n\nexport type StandardPermissionCondition<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = readonly [\n PermissionOperand<Level, Update>,\n StandardPermissionOperator,\n PermissionOperand<Level, Update>,\n];\n\nexport type StandardActionPermission<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = {\n conditions: readonly StandardPermissionCondition<Level, Update>[];\n description?: string;\n permit: \"allow\" | \"deny\";\n};\n\nexport type StandardTailorTypePermission = {\n create: readonly StandardActionPermission<\"record\", false>[];\n read: readonly StandardActionPermission<\"record\", false>[];\n update: readonly StandardActionPermission<\"record\", true>[];\n delete: readonly StandardActionPermission<\"record\", false>[];\n};\n\nexport type StandardGqlPermissionPolicy = {\n conditions: readonly StandardPermissionCondition<\"gql\">[];\n actions: readonly [\"all\"] | readonly GqlPermissionAction[];\n permit: \"allow\" | \"deny\";\n description?: string;\n};\n\nexport type StandardTailorTypeGqlPermission = readonly StandardGqlPermissionPolicy[];\n\nexport interface Permissions {\n record?: StandardTailorTypePermission;\n gql?: StandardTailorTypeGqlPermission;\n}\n\nexport interface TailorDBTypeMetadata {\n name: string;\n description?: string;\n settings?: {\n pluralForm?: string;\n aggregation?: boolean;\n bulkUpsert?: boolean;\n gqlOperations?: GqlOperationsConfig;\n };\n permissions: RawPermissions;\n files: Record<string, string>;\n indexes?: Record<\n string,\n {\n fields: string[];\n unique?: boolean;\n }\n >;\n}\n\n/**\n * Parsed and normalized TailorDB field information\n */\nexport interface ParsedField {\n name: string;\n config: OperatorFieldConfig;\n relation?: {\n targetType: string;\n forwardName: string;\n backwardName: string;\n key: string;\n unique: boolean;\n };\n}\n\n/**\n * Parsed and normalized TailorDB relationship information\n */\nexport interface ParsedRelationship {\n name: string;\n targetType: string;\n targetField: string;\n sourceField: string;\n isArray: boolean;\n description: string;\n}\n\n/**\n * Parsed and normalized TailorDB type information\n */\nexport interface TailorDBType {\n name: string;\n pluralForm: string;\n description?: string;\n fields: Record<string, ParsedField>;\n forwardRelationships: Record<string, ParsedRelationship>;\n backwardRelationships: Record<string, ParsedRelationship>;\n settings: TailorDBTypeParsedSettings;\n permissions: Permissions;\n indexes?: TailorDBTypeMetadata[\"indexes\"];\n files?: TailorDBTypeMetadata[\"files\"];\n}\n"],"mappings":";;;;;;AAmEA,SAAgB,sBACd,QACqC;AACrC,QAAO,OAAO,aAAa"}
|
|
1
|
+
{"version":3,"file":"types-b-ig8nW_.mjs","names":[],"sources":["../src/parser/service/tailordb/types.ts"],"sourcesContent":["import type { RelationType } from \"./relation\";\nimport type {\n DBFieldMetadataSchema,\n RawRelationConfigSchema,\n RawPermissionsSchema,\n TailorDBTypeSchema,\n TailorDBServiceConfig as TailorDBServiceConfigType,\n TailorDBTypeSettingsSchema,\n} from \"./schema\";\nimport type { GqlOperationsConfig } from \"@/configure/services/tailordb\";\nimport type { ValueOperand } from \"@/parser/service/auth/types\";\nimport type { z } from \"zod\";\n\nexport type { RelationType } from \"./relation\";\nexport type { TypeSourceInfo } from \"./type-parser\";\n\n// ========================================\n// Source info type for TailorDB types\n// ========================================\n\n/**\n * Source information for a user-defined TailorDB type.\n */\nexport interface UserDefinedTypeSource {\n /** File path to import from */\n filePath: string;\n /** Export name in the source file */\n exportName: string;\n /** Not present for user-defined types */\n pluginId?: never;\n}\n\n/**\n * Source information for a plugin-generated TailorDB type.\n */\nexport interface PluginGeneratedTypeSource {\n /** Not present for plugin-generated types */\n filePath?: never;\n /** Export name of the generated type */\n exportName: string;\n /** Plugin ID that generated this type */\n pluginId: string;\n /** Plugin import path for code generators */\n pluginImportPath: string;\n /** Original type's file path */\n originalFilePath: string;\n /** Original type's export name */\n originalExportName: string;\n /** Generated type kind for getGeneratedType() API (e.g., \"request\", \"step\") */\n generatedTypeKind?: string;\n /** Plugin config used to generate this type */\n pluginConfig?: unknown;\n /** Namespace where this type was generated */\n namespace?: string;\n}\n\n/**\n * Source information for a TailorDB type.\n * Discriminated union: use `pluginId` to distinguish between user-defined and plugin-generated types.\n */\nexport type TypeSourceInfoEntry = UserDefinedTypeSource | PluginGeneratedTypeSource;\n\n/**\n * Type guard to check if source is plugin-generated\n * @param source - Type source info to check\n * @returns True if source is plugin-generated\n */\nexport function isPluginGeneratedType(\n source: TypeSourceInfoEntry,\n): source is PluginGeneratedTypeSource {\n return source.pluginId !== undefined;\n}\n\nexport type {\n TailorAnyDBField,\n TailorAnyDBType,\n TailorDBField,\n DBFieldMetadata,\n Hook,\n TailorTypePermission,\n TailorTypeGqlPermission,\n GqlOperationsConfig,\n GqlOperations,\n} from \"@/configure/services/tailordb\";\nexport type {\n TailorDBServiceConfigInput,\n TailorDBServiceConfig,\n TailorDBExternalConfig,\n TailorDBServiceInput,\n} from \"./schema\";\n\n/**\n * Parsed and normalized settings for TailorDB type.\n * gqlOperations is normalized from alias to object format.\n * @public\n */\nexport type TailorDBTypeParsedSettings = z.output<typeof TailorDBTypeSettingsSchema>;\n\n/**\n * Migration configuration for TailorDB\n * @public\n */\nexport type TailorDBMigrationConfig = NonNullable<TailorDBServiceConfigType[\"migration\"]>;\n\nexport type TailorDBTypeSchemaOutput = z.output<typeof TailorDBTypeSchema>;\n\nexport type DBFieldMetadataOutput = z.output<typeof DBFieldMetadataSchema>;\nexport type RawRelationConfigOutput = z.output<typeof RawRelationConfigSchema>;\n\nexport type RawPermissions = z.output<typeof RawPermissionsSchema>;\n\nexport type TailorDBFieldOutput = {\n type: string;\n fields?: Record<string, TailorDBFieldOutput>;\n metadata: DBFieldMetadataOutput;\n rawRelation?: RawRelationConfigOutput;\n};\n\nexport interface Script {\n expr: string;\n}\n\nexport interface EnumValue {\n value: string;\n description?: string;\n}\n\ninterface OperatorValidateConfig {\n script: Script;\n errorMessage: string;\n}\n\ninterface OperatorFieldHook {\n create?: Script;\n update?: Script;\n}\n\n/**\n * Raw relation config stored in configure layer, processed in parser layer.\n * This is the serialized form of RelationConfig from schema.ts where\n * the TailorDBType reference is replaced with the type name string.\n */\nexport interface RawRelationConfig {\n type: RelationType;\n toward: {\n type: string;\n as?: string;\n key?: string;\n };\n backward?: string;\n}\n\nexport interface OperatorFieldConfig {\n type: string;\n required?: boolean;\n description?: string;\n allowedValues?: EnumValue[];\n array?: boolean;\n index?: boolean;\n unique?: boolean;\n vector?: boolean;\n foreignKey?: boolean;\n foreignKeyType?: string;\n foreignKeyField?: string;\n rawRelation?: RawRelationConfig;\n validate?: OperatorValidateConfig[];\n hooks?: OperatorFieldHook;\n serial?: {\n start: number;\n maxValue?: number;\n format?: string;\n };\n fields?: Record<string, OperatorFieldConfig>;\n}\n\ntype GqlPermissionAction = \"read\" | \"create\" | \"update\" | \"delete\" | \"aggregate\" | \"bulkUpsert\";\n\ntype StandardPermissionOperator = \"eq\" | \"ne\" | \"in\" | \"nin\" | \"hasAny\" | \"nhasAny\";\n\ntype UserOperand = {\n user: string;\n};\n\ntype RecordOperand<Update extends boolean = false> = Update extends true\n ? { oldRecord: string } | { newRecord: string }\n : { record: string };\n\nexport type PermissionOperand<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = UserOperand | ValueOperand | (Level extends \"record\" ? RecordOperand<Update> : never);\n\nexport type StandardPermissionCondition<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = readonly [\n PermissionOperand<Level, Update>,\n StandardPermissionOperator,\n PermissionOperand<Level, Update>,\n];\n\nexport type StandardActionPermission<\n Level extends \"record\" | \"gql\" = \"record\" | \"gql\",\n Update extends boolean = boolean,\n> = {\n conditions: readonly StandardPermissionCondition<Level, Update>[];\n description?: string;\n permit: \"allow\" | \"deny\";\n};\n\nexport type StandardTailorTypePermission = {\n create: readonly StandardActionPermission<\"record\", false>[];\n read: readonly StandardActionPermission<\"record\", false>[];\n update: readonly StandardActionPermission<\"record\", true>[];\n delete: readonly StandardActionPermission<\"record\", false>[];\n};\n\nexport type StandardGqlPermissionPolicy = {\n conditions: readonly StandardPermissionCondition<\"gql\">[];\n actions: readonly [\"all\"] | readonly GqlPermissionAction[];\n permit: \"allow\" | \"deny\";\n description?: string;\n};\n\nexport type StandardTailorTypeGqlPermission = readonly StandardGqlPermissionPolicy[];\n\nexport interface Permissions {\n record?: StandardTailorTypePermission;\n gql?: StandardTailorTypeGqlPermission;\n}\n\nexport interface TailorDBTypeMetadata {\n name: string;\n description?: string;\n settings?: {\n pluralForm?: string;\n aggregation?: boolean;\n bulkUpsert?: boolean;\n gqlOperations?: GqlOperationsConfig;\n };\n permissions: RawPermissions;\n files: Record<string, string>;\n indexes?: Record<\n string,\n {\n fields: string[];\n unique?: boolean;\n }\n >;\n}\n\n/**\n * Parsed and normalized TailorDB field information\n */\nexport interface ParsedField {\n name: string;\n config: OperatorFieldConfig;\n relation?: {\n targetType: string;\n forwardName: string;\n backwardName: string;\n key: string;\n unique: boolean;\n };\n}\n\n/**\n * Parsed and normalized TailorDB relationship information\n */\nexport interface ParsedRelationship {\n name: string;\n targetType: string;\n targetField: string;\n sourceField: string;\n isArray: boolean;\n description: string;\n}\n\n/**\n * Parsed and normalized TailorDB type information\n */\nexport interface TailorDBType {\n name: string;\n pluralForm: string;\n description?: string;\n fields: Record<string, ParsedField>;\n forwardRelationships: Record<string, ParsedRelationship>;\n backwardRelationships: Record<string, ParsedRelationship>;\n settings: TailorDBTypeParsedSettings;\n permissions: Permissions;\n indexes?: TailorDBTypeMetadata[\"indexes\"];\n files?: TailorDBTypeMetadata[\"files\"];\n}\n"],"mappings":";;;;;;AAmEA,SAAgB,sBACd,QACqC;AACrC,QAAO,OAAO,aAAa"}
|