@tailor-platform/sdk 1.14.1 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +19 -0
- package/dist/application-BznueWxG.mjs +4 -0
- package/dist/{application-DnWZVbDO.mjs → application-DhwHYQ3H.mjs} +95 -44
- package/dist/application-DhwHYQ3H.mjs.map +1 -0
- package/dist/cli/index.mjs +4 -4
- package/dist/cli/lib.d.mts +12 -49
- package/dist/cli/lib.mjs +4 -4
- 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 -2
- package/dist/configure/index.mjs.map +1 -1
- package/dist/index-YzESrtj0.d.mts +396 -0
- package/dist/{index-BlUBAAvu.d.mts → index-q3n7wQOs.d.mts} +5 -4
- 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-DbvONSS-.d.mts} +570 -454
- 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-Dm8ERWHJ.mjs} +79 -90
- package/dist/update-Dm8ERWHJ.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 +105 -49
- 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
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
/// <reference path="./user-defined.d.ts" />
|
|
2
|
+
import { Tt as TailorDBServiceInput, c as BuiltinIdP, ft as ResolverServiceInput, r as AuthConfig } from "./types-DbvONSS-.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/parser/service/executor/schema.d.ts
|
|
6
|
+
declare const RecordTriggerSchema: z.ZodObject<{
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
|
+
recordCreated: "recordCreated";
|
|
9
|
+
recordUpdated: "recordUpdated";
|
|
10
|
+
recordDeleted: "recordDeleted";
|
|
11
|
+
}>;
|
|
12
|
+
typeName: z.ZodString;
|
|
13
|
+
condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const ResolverExecutedTriggerSchema: z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"resolverExecuted">;
|
|
17
|
+
resolverName: z.ZodString;
|
|
18
|
+
condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const ScheduleTriggerSchema: z.ZodObject<{
|
|
21
|
+
kind: z.ZodLiteral<"schedule">;
|
|
22
|
+
cron: z.ZodString;
|
|
23
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const IncomingWebhookTriggerSchema: z.ZodObject<{
|
|
26
|
+
kind: z.ZodLiteral<"incomingWebhook">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const IdpUserTriggerSchema: z.ZodObject<{
|
|
29
|
+
kind: z.ZodEnum<{
|
|
30
|
+
idpUserCreated: "idpUserCreated";
|
|
31
|
+
idpUserUpdated: "idpUserUpdated";
|
|
32
|
+
idpUserDeleted: "idpUserDeleted";
|
|
33
|
+
}>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
declare const AuthAccessTokenTriggerSchema: z.ZodObject<{
|
|
36
|
+
kind: z.ZodEnum<{
|
|
37
|
+
authAccessTokenIssued: "authAccessTokenIssued";
|
|
38
|
+
authAccessTokenRefreshed: "authAccessTokenRefreshed";
|
|
39
|
+
authAccessTokenRevoked: "authAccessTokenRevoked";
|
|
40
|
+
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const FunctionOperationSchema: z.ZodObject<{
|
|
43
|
+
kind: z.ZodEnum<{
|
|
44
|
+
function: "function";
|
|
45
|
+
jobFunction: "jobFunction";
|
|
46
|
+
}>;
|
|
47
|
+
body: z.ZodCustom<Function, Function>;
|
|
48
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
namespace: z.ZodString;
|
|
50
|
+
machineUserName: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
declare const GqlOperationSchema: z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"graphql">;
|
|
55
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
56
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
57
|
+
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
58
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
namespace: z.ZodString;
|
|
60
|
+
machineUserName: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
declare const WebhookOperationSchema: z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"webhook">;
|
|
65
|
+
url: z.ZodCustom<Function, Function>;
|
|
66
|
+
requestBody: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
67
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
68
|
+
vault: z.ZodString;
|
|
69
|
+
key: z.ZodString;
|
|
70
|
+
}, z.core.$strip>]>>>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
declare const WorkflowOperationSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
73
|
+
kind: z.ZodLiteral<"workflow">;
|
|
74
|
+
workflowName: z.ZodString;
|
|
75
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
|
|
76
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
namespace: z.ZodString;
|
|
78
|
+
machineUserName: z.ZodString;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
declare const ExecutorSchema: z.ZodObject<{
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
description: z.ZodOptional<z.ZodString>;
|
|
84
|
+
disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
|
+
trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
86
|
+
kind: z.ZodEnum<{
|
|
87
|
+
recordCreated: "recordCreated";
|
|
88
|
+
recordUpdated: "recordUpdated";
|
|
89
|
+
recordDeleted: "recordDeleted";
|
|
90
|
+
}>;
|
|
91
|
+
typeName: z.ZodString;
|
|
92
|
+
condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
kind: z.ZodLiteral<"resolverExecuted">;
|
|
95
|
+
resolverName: z.ZodString;
|
|
96
|
+
condition: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
97
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"schedule">;
|
|
99
|
+
cron: z.ZodString;
|
|
100
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
101
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"incomingWebhook">;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
kind: z.ZodEnum<{
|
|
105
|
+
idpUserCreated: "idpUserCreated";
|
|
106
|
+
idpUserUpdated: "idpUserUpdated";
|
|
107
|
+
idpUserDeleted: "idpUserDeleted";
|
|
108
|
+
}>;
|
|
109
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
+
kind: z.ZodEnum<{
|
|
111
|
+
authAccessTokenIssued: "authAccessTokenIssued";
|
|
112
|
+
authAccessTokenRefreshed: "authAccessTokenRefreshed";
|
|
113
|
+
authAccessTokenRevoked: "authAccessTokenRevoked";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>], "kind">;
|
|
116
|
+
operation: z.ZodUnion<readonly [z.ZodObject<{
|
|
117
|
+
kind: z.ZodEnum<{
|
|
118
|
+
function: "function";
|
|
119
|
+
jobFunction: "jobFunction";
|
|
120
|
+
}>;
|
|
121
|
+
body: z.ZodCustom<Function, Function>;
|
|
122
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
123
|
+
namespace: z.ZodString;
|
|
124
|
+
machineUserName: z.ZodString;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
127
|
+
kind: z.ZodLiteral<"graphql">;
|
|
128
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
129
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
130
|
+
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
131
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
132
|
+
namespace: z.ZodString;
|
|
133
|
+
machineUserName: z.ZodString;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
+
kind: z.ZodLiteral<"webhook">;
|
|
137
|
+
url: z.ZodCustom<Function, Function>;
|
|
138
|
+
requestBody: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
139
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
140
|
+
vault: z.ZodString;
|
|
141
|
+
key: z.ZodString;
|
|
142
|
+
}, z.core.$strip>]>>>;
|
|
143
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
144
|
+
kind: z.ZodLiteral<"workflow">;
|
|
145
|
+
workflowName: z.ZodString;
|
|
146
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
|
|
147
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
namespace: z.ZodString;
|
|
149
|
+
machineUserName: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>;
|
|
151
|
+
}, z.core.$strip>>]>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/parser/service/executor/types.d.ts
|
|
155
|
+
type RecordTrigger = z.infer<typeof RecordTriggerSchema>;
|
|
156
|
+
type ResolverExecutedTrigger = z.infer<typeof ResolverExecutedTriggerSchema>;
|
|
157
|
+
type ScheduleTriggerInput = z.input<typeof ScheduleTriggerSchema>;
|
|
158
|
+
type IncomingWebhookTrigger = z.infer<typeof IncomingWebhookTriggerSchema>;
|
|
159
|
+
type IdpUserTrigger = z.infer<typeof IdpUserTriggerSchema>;
|
|
160
|
+
type AuthAccessTokenTrigger = z.infer<typeof AuthAccessTokenTriggerSchema>;
|
|
161
|
+
type FunctionOperation = z.infer<typeof FunctionOperationSchema>;
|
|
162
|
+
type GqlOperation = z.infer<typeof GqlOperationSchema>;
|
|
163
|
+
type WebhookOperation = z.infer<typeof WebhookOperationSchema>;
|
|
164
|
+
type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
|
|
165
|
+
type Executor = z.infer<typeof ExecutorSchema>;
|
|
166
|
+
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
167
|
+
type ExecutorServiceConfig = {
|
|
168
|
+
files: string[];
|
|
169
|
+
ignores?: string[];
|
|
170
|
+
};
|
|
171
|
+
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/parser/service/staticwebsite/schema.d.ts
|
|
174
|
+
declare const StaticWebsiteSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
allowedIpAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
178
|
+
}, z.core.$strip>, "StaticWebsiteConfig", "out">;
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/parser/service/staticwebsite/types.d.ts
|
|
181
|
+
type StaticWebsiteInput = z.input<typeof StaticWebsiteSchema>;
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/configure/services/staticwebsite/index.d.ts
|
|
184
|
+
declare const staticWebsiteDefinitionBrand: unique symbol;
|
|
185
|
+
type StaticWebsiteDefinitionBrand = {
|
|
186
|
+
readonly [staticWebsiteDefinitionBrand]: true;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Define a static website configuration for the Tailor SDK.
|
|
190
|
+
* @param name - Static website name
|
|
191
|
+
* @param config - Static website configuration
|
|
192
|
+
* @returns Defined static website
|
|
193
|
+
*/
|
|
194
|
+
declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
|
|
195
|
+
readonly name: string;
|
|
196
|
+
readonly url: `${string}:url`;
|
|
197
|
+
readonly description?: string | undefined;
|
|
198
|
+
readonly allowedIpAddresses?: string[] | undefined;
|
|
199
|
+
} & StaticWebsiteDefinitionBrand;
|
|
200
|
+
type StaticWebsiteConfig = Omit<ReturnType<typeof defineStaticWebSite>, "url">;
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/parser/service/workflow/types.d.ts
|
|
203
|
+
type WorkflowServiceConfig = {
|
|
204
|
+
files: string[];
|
|
205
|
+
job_files?: string[];
|
|
206
|
+
ignores?: string[];
|
|
207
|
+
job_ignores?: string[];
|
|
208
|
+
};
|
|
209
|
+
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/parser/service/idp/schema.d.ts
|
|
212
|
+
declare const IdPSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
authorization: z.ZodUnion<readonly [z.ZodLiteral<"insecure">, z.ZodLiteral<"loggedIn">, z.ZodObject<{
|
|
215
|
+
cel: z.ZodString;
|
|
216
|
+
}, z.core.$strip>]>;
|
|
217
|
+
clients: z.ZodArray<z.ZodString>;
|
|
218
|
+
lang: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
en: "en";
|
|
220
|
+
ja: "ja";
|
|
221
|
+
}>>;
|
|
222
|
+
userAuthPolicy: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
223
|
+
useNonEmailIdentifier: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
allowSelfPasswordReset: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
+
passwordRequireUppercase: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
passwordRequireLowercase: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
passwordRequireNonAlphanumeric: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
passwordRequireNumeric: z.ZodOptional<z.ZodBoolean>;
|
|
229
|
+
passwordMinLength: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
passwordMaxLength: z.ZodOptional<z.ZodNumber>;
|
|
231
|
+
allowedEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
|
+
allowGoogleOauth: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
234
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
235
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
236
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
237
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
238
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
239
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
240
|
+
passwordMinLength?: number | undefined;
|
|
241
|
+
passwordMaxLength?: number | undefined;
|
|
242
|
+
allowedEmailDomains?: string[] | undefined;
|
|
243
|
+
allowGoogleOauth?: boolean | undefined;
|
|
244
|
+
}, {
|
|
245
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
246
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
247
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
248
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
249
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
250
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
251
|
+
passwordMinLength?: number | undefined;
|
|
252
|
+
passwordMaxLength?: number | undefined;
|
|
253
|
+
allowedEmailDomains?: string[] | undefined;
|
|
254
|
+
allowGoogleOauth?: boolean | undefined;
|
|
255
|
+
}>>>;
|
|
256
|
+
publishUserEvents: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
}, z.core.$strip>, "IdPConfig", "out">;
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region src/parser/service/idp/types.d.ts
|
|
260
|
+
type IdPInput = z.input<typeof IdPSchema>;
|
|
261
|
+
declare const idpDefinitionBrand: unique symbol;
|
|
262
|
+
type IdpDefinitionBrand = {
|
|
263
|
+
readonly [idpDefinitionBrand]: true;
|
|
264
|
+
};
|
|
265
|
+
type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
|
|
266
|
+
name: Name;
|
|
267
|
+
provider(providerName: string, clientName: ClientNames): BuiltinIdP;
|
|
268
|
+
} & IdpDefinitionBrand;
|
|
269
|
+
type IdPExternalConfig = {
|
|
270
|
+
name: string;
|
|
271
|
+
external: true;
|
|
272
|
+
};
|
|
273
|
+
type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
|
|
274
|
+
type IdPConfig = IdPOwnConfig | IdPExternalConfig;
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region src/parser/app-config/types.d.ts
|
|
277
|
+
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>> {
|
|
278
|
+
name: string;
|
|
279
|
+
env?: Env;
|
|
280
|
+
cors?: string[];
|
|
281
|
+
allowedIpAddresses?: string[];
|
|
282
|
+
disableIntrospection?: boolean;
|
|
283
|
+
db?: TailorDBServiceInput;
|
|
284
|
+
resolver?: ResolverServiceInput;
|
|
285
|
+
idp?: Idp;
|
|
286
|
+
auth?: Auth;
|
|
287
|
+
executor?: ExecutorServiceInput;
|
|
288
|
+
workflow?: WorkflowServiceInput;
|
|
289
|
+
staticWebsites?: StaticWebsites;
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/parser/generator-config/types.d.ts
|
|
293
|
+
type GeneratorConfig = z.input<typeof BaseGeneratorConfigSchema>;
|
|
294
|
+
type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencies"> & {
|
|
295
|
+
dependencies: readonly DependencyKind[];
|
|
296
|
+
};
|
|
297
|
+
//#endregion
|
|
298
|
+
//#region src/parser/generator-config/index.d.ts
|
|
299
|
+
declare const DependencyKindSchema: z.ZodEnum<{
|
|
300
|
+
executor: "executor";
|
|
301
|
+
tailordb: "tailordb";
|
|
302
|
+
resolver: "resolver";
|
|
303
|
+
}>;
|
|
304
|
+
type DependencyKind = z.infer<typeof DependencyKindSchema>;
|
|
305
|
+
declare const CodeGeneratorSchema: z.ZodObject<{
|
|
306
|
+
id: z.ZodString;
|
|
307
|
+
description: z.ZodString;
|
|
308
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
309
|
+
executor: "executor";
|
|
310
|
+
tailordb: "tailordb";
|
|
311
|
+
resolver: "resolver";
|
|
312
|
+
}>>;
|
|
313
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
314
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
315
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
316
|
+
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
317
|
+
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
318
|
+
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
319
|
+
}, z.core.$strip>;
|
|
320
|
+
declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodLiteral<"@tailor-platform/kysely-type">, z.ZodObject<{
|
|
321
|
+
distPath: z.ZodString;
|
|
322
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/seed">, z.ZodObject<{
|
|
323
|
+
distPath: z.ZodString;
|
|
324
|
+
machineUserName: z.ZodOptional<z.ZodString>;
|
|
325
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/enum-constants">, z.ZodObject<{
|
|
326
|
+
distPath: z.ZodString;
|
|
327
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/file-utils">, z.ZodObject<{
|
|
328
|
+
distPath: z.ZodString;
|
|
329
|
+
}, z.core.$strip>], null>, z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
description: z.ZodString;
|
|
332
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
333
|
+
executor: "executor";
|
|
334
|
+
tailordb: "tailordb";
|
|
335
|
+
resolver: "resolver";
|
|
336
|
+
}>>;
|
|
337
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
338
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
339
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
340
|
+
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
341
|
+
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
342
|
+
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
343
|
+
}, z.core.$strip>]>;
|
|
344
|
+
/**
|
|
345
|
+
* Creates a GeneratorConfigSchema with built-in generator support
|
|
346
|
+
* @param builtinGenerators - Map of generator IDs to their constructor functions
|
|
347
|
+
* @returns Generator config schema
|
|
348
|
+
*/
|
|
349
|
+
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<{
|
|
350
|
+
distPath: z.ZodString;
|
|
351
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/seed">, z.ZodObject<{
|
|
352
|
+
distPath: z.ZodString;
|
|
353
|
+
machineUserName: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/enum-constants">, z.ZodObject<{
|
|
355
|
+
distPath: z.ZodString;
|
|
356
|
+
}, z.core.$strip>], null>, z.ZodTuple<[z.ZodLiteral<"@tailor-platform/file-utils">, z.ZodObject<{
|
|
357
|
+
distPath: z.ZodString;
|
|
358
|
+
}, z.core.$strip>], null>, z.ZodObject<{
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
description: z.ZodString;
|
|
361
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
362
|
+
executor: "executor";
|
|
363
|
+
tailordb: "tailordb";
|
|
364
|
+
resolver: "resolver";
|
|
365
|
+
}>>;
|
|
366
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
367
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
368
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
369
|
+
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
370
|
+
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
371
|
+
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
372
|
+
}, z.core.$strip>]>, z.ZodTransform<CodeGeneratorBase, ["@tailor-platform/kysely-type", {
|
|
373
|
+
distPath: string;
|
|
374
|
+
}] | ["@tailor-platform/seed", {
|
|
375
|
+
distPath: string;
|
|
376
|
+
machineUserName?: string | undefined;
|
|
377
|
+
}] | ["@tailor-platform/enum-constants", {
|
|
378
|
+
distPath: string;
|
|
379
|
+
}] | ["@tailor-platform/file-utils", {
|
|
380
|
+
distPath: string;
|
|
381
|
+
}] | {
|
|
382
|
+
id: string;
|
|
383
|
+
description: string;
|
|
384
|
+
dependencies: ("executor" | "tailordb" | "resolver")[];
|
|
385
|
+
aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
386
|
+
processType?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
387
|
+
processResolver?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
388
|
+
processExecutor?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
389
|
+
processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
390
|
+
processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
|
|
391
|
+
}>>, "CodeGenerator", "out">;
|
|
392
|
+
type GeneratorConfigSchemaType = ReturnType<typeof createGeneratorConfigSchema>;
|
|
393
|
+
type Generator = z.output<GeneratorConfigSchemaType>;
|
|
394
|
+
//#endregion
|
|
395
|
+
export { ScheduleTriggerInput as C, ResolverExecutedTrigger as S, WorkflowOperation as T, FunctionOperation as _, IdPExternalConfig as a, IncomingWebhookTrigger as b, WorkflowServiceConfig as c, defineStaticWebSite as d, AuthAccessTokenTrigger as f, ExecutorServiceInput as g, ExecutorServiceConfig as h, IdPConfig as i, WorkflowServiceInput as l, ExecutorInput as m, GeneratorConfig as n, IdPInput as o, Executor as p, AppConfig as r, IdpDefinitionBrand as s, Generator as t, StaticWebsiteConfig as u, GqlOperation as v, WebhookOperation as w, RecordTrigger as x, IdpUserTrigger as y };
|
|
396
|
+
//# sourceMappingURL=index-YzESrtj0.d.mts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./user-defined.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
import { n as
|
|
2
|
+
import { $ as ArrayFieldOutput, Ct as AllowedValues, F as Plugin, M as TailorDBType, T as UserAttributeMap, _t as TailorEnv, a as AuthInvoker$1, at as TailorAnyField, et as DefinedFieldMetadata, ht as output$1, it as TailorFieldType, j as TailorDBInstance, l as DefinedAuth, mt as JsonCompatible, nt as FieldOptions, ot as TailorField, pt as InferFieldsOutput, rt as FieldOutput, s as AuthServiceInput, tt as FieldMetadata, ut as ResolverInput, vt as TailorActor, w as UserAttributeListKey, wt as AllowedValuesOutput, xt as TailorUser } from "./types-DbvONSS-.mjs";
|
|
3
|
+
import { C as ScheduleTriggerInput, S as ResolverExecutedTrigger$1, T as WorkflowOperation$1, _ as FunctionOperation$1, b as IncomingWebhookTrigger$1, f as AuthAccessTokenTrigger$1, m as ExecutorInput, n as GeneratorConfig, o as IdPInput, r as AppConfig, s as IdpDefinitionBrand, v as GqlOperation$1, w as WebhookOperation$1, x as RecordTrigger$1, y as IdpUserTrigger$1 } from "./index-YzESrtj0.mjs";
|
|
4
4
|
import * as zod0 from "zod";
|
|
5
5
|
import { JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
|
|
6
6
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
@@ -469,6 +469,7 @@ declare function defineIdp<const TClients extends string[]>(name: string, config
|
|
|
469
469
|
passwordMinLength?: number | undefined;
|
|
470
470
|
passwordMaxLength?: number | undefined;
|
|
471
471
|
allowedEmailDomains?: string[] | undefined;
|
|
472
|
+
allowGoogleOauth?: boolean | undefined;
|
|
472
473
|
} | undefined;
|
|
473
474
|
readonly publishUserEvents?: boolean | undefined;
|
|
474
475
|
readonly clients: TClients;
|
|
@@ -514,7 +515,7 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
|
|
|
514
515
|
* @param configs - Plugin configurations
|
|
515
516
|
* @returns Plugin configurations as given
|
|
516
517
|
*/
|
|
517
|
-
declare function definePlugins(...configs:
|
|
518
|
+
declare function definePlugins(...configs: Plugin[]): Plugin[];
|
|
518
519
|
//#endregion
|
|
519
520
|
//#region src/configure/index.d.ts
|
|
520
521
|
type TailorOutput<T> = output$1<T>;
|
|
@@ -588,4 +589,4 @@ declare namespace t {
|
|
|
588
589
|
}
|
|
589
590
|
//#endregion
|
|
590
591
|
export { defineAuth as $, idpUserCreatedTrigger as A, WebhookOperation as B, RecordTrigger as C, authAccessTokenIssuedTrigger as D, ResolverExecutedTrigger as E, recordUpdatedTrigger as F, WORKFLOW_TEST_ENV_KEY as G, Workflow as H, resolverExecutedTrigger as I, WorkflowJobInput as J, WorkflowJob as K, FunctionOperation as L, idpUserUpdatedTrigger as M, recordCreatedTrigger as N, authAccessTokenRefreshedTrigger as O, recordDeletedTrigger as P, AuthInvoker as Q, GqlOperation as R, RecordDeletedArgs as S, ResolverExecutedArgs as T, WorkflowConfig as U, WorkflowOperation as V, createWorkflow as W, createWorkflowJob as X, WorkflowJobOutput as Y, createResolver as Z, AuthAccessTokenArgs as _, defineGenerators as a, IdpUserTrigger as b, createExecutor as c, IncomingWebhookRequest as d, IncomingWebhookTrigger as f, scheduleTrigger as g, ScheduleTrigger as h, defineConfig as i, idpUserDeletedTrigger as j, authAccessTokenRevokedTrigger as k, Trigger as l, ScheduleArgs as m, output as n, definePlugins as o, incomingWebhookTrigger as p, WorkflowJobContext as q, t as r, defineIdp as s, infer as t, IncomingWebhookArgs as u, AuthAccessTokenTrigger as v, RecordUpdatedArgs as w, RecordCreatedArgs as x, IdpUserArgs as y, Operation as z };
|
|
591
|
-
//# sourceMappingURL=index-
|
|
592
|
+
//# sourceMappingURL=index-q3n7wQOs.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./chunk-
|
|
1
|
+
import { i as __require, n as __esmMin, o as __toESM, t as __commonJSMin } from "./chunk-GMkBE123.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
|
|
4
4
|
//#region ../../node_modules/jiti/dist/jiti.cjs
|
|
@@ -4479,4 +4479,4 @@ var init_jiti = __esmMin((() => {
|
|
|
4479
4479
|
//#endregion
|
|
4480
4480
|
init_jiti();
|
|
4481
4481
|
export { createJiti };
|
|
4482
|
-
//# sourceMappingURL=jiti-
|
|
4482
|
+
//# sourceMappingURL=jiti-BrELlEYT.mjs.map
|