@tailor-platform/sdk 1.39.0 → 1.39.1
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 +12 -0
- package/dist/{env-CgI46oPS.d.mts → actor-Bb4OVq1j.d.mts} +9 -9
- package/dist/{application-DhQrXEld.mjs → application-BHu8YE-g.mjs} +148 -148
- package/dist/application-BHu8YE-g.mjs.map +1 -0
- package/dist/application-C8Lr37AM.mjs +4 -0
- package/dist/{brand-D-d15jx3.mjs → brand-Ll48SMXe.mjs} +1 -1
- package/dist/{brand-D-d15jx3.mjs.map → brand-Ll48SMXe.mjs.map} +1 -1
- package/dist/cli/index.mjs +15 -15
- package/dist/cli/lib.d.mts +9 -9
- package/dist/cli/lib.mjs +4 -4
- package/dist/{client-xzPXtc_e.mjs → client-B2K45RvK.mjs} +77 -47
- package/dist/client-B2K45RvK.mjs.map +1 -0
- package/dist/{client-BWAbbA1C.mjs → client-CEVmv94H.mjs} +1 -1
- package/dist/configure/index.d.mts +4 -4
- package/dist/configure/index.mjs +55 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-DXhPL8Ue.mjs → crash-report-CACiemAr.mjs} +4 -4
- package/dist/{crash-report-DXhPL8Ue.mjs.map → crash-report-CACiemAr.mjs.map} +1 -1
- package/dist/{crash-report-BEAiCSCl.mjs → crash-report-CPUF3T5d.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs → errors-ChWX5ZG8.mjs} +1 -1
- package/dist/{errors-D9f2UJpT.mjs.map → errors-ChWX5ZG8.mjs.map} +1 -1
- package/dist/field-BY2vbJ8f.mjs +23 -0
- package/dist/field-BY2vbJ8f.mjs.map +1 -0
- package/dist/{index-31hm0Fq7.d.mts → index-BYmdVno1.d.mts} +133 -30
- package/dist/{index-y5790SX_.d.mts → index-CeFwhUkX.d.mts} +2 -2
- package/dist/{index-B2tsEXdh.d.mts → index-Ch8Em3nz.d.mts} +2 -2
- package/dist/{index-DbzopC7M.d.mts → index-Cx1RYDbu.d.mts} +2 -2
- package/dist/{index-DeBFa7oc.d.mts → index-DLO_XvLi.d.mts} +2 -2
- package/dist/{interceptor-CzaH2Ur6.mjs → interceptor-B5bKVwgq.mjs} +1 -1
- package/dist/{interceptor-CzaH2Ur6.mjs.map → interceptor-B5bKVwgq.mjs.map} +1 -1
- package/dist/{job-DkAklmE4.mjs → job-p6zf8Qpg.mjs} +2 -2
- package/dist/job-p6zf8Qpg.mjs.map +1 -0
- package/dist/{logger-5_JMzHmw.mjs → logger-DTNAMYGy.mjs} +1 -1
- package/dist/{logger-5_JMzHmw.mjs.map → logger-DTNAMYGy.mjs.map} +1 -1
- package/dist/package-json-CPR7s5hf.mjs +4 -0
- package/dist/{package-json-BHViVisJ.mjs → package-json-CWp8s9dE.mjs} +1 -1
- package/dist/{package-json-BHViVisJ.mjs.map → package-json-CWp8s9dE.mjs.map} +1 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{runtime-DtSOnOHh.mjs → runtime-2xqzvkQv.mjs} +86 -15
- package/dist/runtime-2xqzvkQv.mjs.map +1 -0
- package/dist/{schema-CnwUqPyM.mjs → schema-CEcfEyPN.mjs} +4 -44
- package/dist/schema-CEcfEyPN.mjs.map +1 -0
- package/dist/{seed-DrbB1VXd.mjs → seed-CyYPhvNL.mjs} +12 -12
- package/dist/seed-CyYPhvNL.mjs.map +1 -0
- package/dist/{service-Bcp6JB3w.mjs → service-SrG26B9T.mjs} +3 -3
- package/dist/{service-Bcp6JB3w.mjs.map → service-SrG26B9T.mjs.map} +1 -1
- package/dist/{plugin-_K3ZfP8B.d.mts → tailor-db-field-B99RnR2N.d.mts} +695 -1187
- package/dist/{telemetry-DwHuiNiR.mjs → telemetry-BuDto_2q.mjs} +2 -2
- package/dist/{telemetry-DwHuiNiR.mjs.map → telemetry-BuDto_2q.mjs.map} +1 -1
- package/dist/telemetry-C1hzFaiV.mjs +4 -0
- package/dist/types-BnphjkIJ.mjs +5 -0
- package/dist/{types-B9ZMosul.mjs → types-Duhhsx3R.mjs} +3 -32
- package/dist/types-Duhhsx3R.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +1 -1
- package/dist/workflow.generated-DSwr-k57.d.mts +1207 -0
- package/docs/cli/application.md +21 -5
- package/docs/services/idp.md +4 -4
- package/package.json +2 -2
- package/dist/application-C1ipG5Q6.mjs +0 -4
- package/dist/application-DhQrXEld.mjs.map +0 -1
- package/dist/client-xzPXtc_e.mjs.map +0 -1
- package/dist/job-DkAklmE4.mjs.map +0 -1
- package/dist/package-json--6dmp6-h.mjs +0 -4
- package/dist/runtime-DtSOnOHh.mjs.map +0 -1
- package/dist/schema-CnwUqPyM.mjs.map +0 -1
- package/dist/seed-DrbB1VXd.mjs.map +0 -1
- package/dist/telemetry-4IOPW6wE.mjs +0 -4
- package/dist/types-B9ZMosul.mjs.map +0 -1
- package/dist/types-C45jRrCM.mjs +0 -4
- package/dist/workflow.generated-BxbnuzAE.d.mts +0 -414
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { Pt as BuiltinIdP, S as TailorDBServiceInput, T as AuthConfig } from "./plugin-_K3ZfP8B.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/types/idp.generated.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Configuration for GraphQL operations on IdP users.
|
|
7
|
-
* All operations are enabled by default (undefined or true = enabled, false = disabled).
|
|
8
|
-
*/
|
|
9
|
-
type IdPGqlOperationsInput = "query" | {
|
|
10
|
-
create?: boolean | undefined;
|
|
11
|
-
update?: boolean | undefined;
|
|
12
|
-
delete?: boolean | undefined;
|
|
13
|
-
read?: boolean | undefined;
|
|
14
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
15
|
-
};
|
|
16
|
-
type IdPGqlOperations = {
|
|
17
|
-
create?: boolean | undefined;
|
|
18
|
-
update?: boolean | undefined;
|
|
19
|
-
delete?: boolean | undefined;
|
|
20
|
-
read?: boolean | undefined;
|
|
21
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Namespace-level email configuration defaults
|
|
25
|
-
*/
|
|
26
|
-
type IdPEmailConfig = {
|
|
27
|
-
/** Default sender display name for emails */fromName?: string | undefined; /** Default subject for password reset emails */
|
|
28
|
-
passwordResetSubject?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
type IdPInput = {
|
|
31
|
-
/** IdP service name */name: string; /** Authorization mode for IdP API access */
|
|
32
|
-
authorization: "insecure" | "loggedIn" | {
|
|
33
|
-
cel: string;
|
|
34
|
-
}; /** OAuth2 client names that can use this IdP */
|
|
35
|
-
clients: string[]; /** UI language for IdP pages */
|
|
36
|
-
lang?: "en" | "ja" | undefined; /** User authentication policy configuration */
|
|
37
|
-
userAuthPolicy?: {
|
|
38
|
-
useNonEmailIdentifier?: boolean | undefined;
|
|
39
|
-
allowSelfPasswordReset?: boolean | undefined;
|
|
40
|
-
passwordRequireUppercase?: boolean | undefined;
|
|
41
|
-
passwordRequireLowercase?: boolean | undefined;
|
|
42
|
-
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
43
|
-
passwordRequireNumeric?: boolean | undefined;
|
|
44
|
-
passwordMinLength?: number | undefined;
|
|
45
|
-
passwordMaxLength?: number | undefined;
|
|
46
|
-
allowedEmailDomains?: string[] | undefined;
|
|
47
|
-
allowGoogleOauth?: boolean | undefined;
|
|
48
|
-
allowMicrosoftOauth?: boolean | undefined;
|
|
49
|
-
disablePasswordAuth?: boolean | undefined;
|
|
50
|
-
} | undefined; /** Enable publishing user lifecycle events */
|
|
51
|
-
publishUserEvents?: boolean | undefined; /** Configure which GraphQL operations are enabled */
|
|
52
|
-
gqlOperations?: "query" | {
|
|
53
|
-
create?: boolean | undefined;
|
|
54
|
-
update?: boolean | undefined;
|
|
55
|
-
delete?: boolean | undefined;
|
|
56
|
-
read?: boolean | undefined;
|
|
57
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
58
|
-
} | undefined; /** Namespace-level email configuration defaults */
|
|
59
|
-
emailConfig?: {
|
|
60
|
-
fromName?: string | undefined;
|
|
61
|
-
passwordResetSubject?: string | undefined;
|
|
62
|
-
} | undefined; /** Per-operation permission policies for IdP users */
|
|
63
|
-
permission?: {
|
|
64
|
-
create: readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
65
|
-
user: string;
|
|
66
|
-
} | {
|
|
67
|
-
idpUser: "name" | "id" | "disabled";
|
|
68
|
-
} | {
|
|
69
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
70
|
-
} | {
|
|
71
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
72
|
-
})[] | readonly (boolean | readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
73
|
-
user: string;
|
|
74
|
-
} | {
|
|
75
|
-
idpUser: "name" | "id" | "disabled";
|
|
76
|
-
} | {
|
|
77
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
78
|
-
} | {
|
|
79
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
80
|
-
})[])[] | {
|
|
81
|
-
conditions: readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
82
|
-
user: string;
|
|
83
|
-
} | {
|
|
84
|
-
idpUser: "name" | "id" | "disabled";
|
|
85
|
-
} | {
|
|
86
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
87
|
-
} | {
|
|
88
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
89
|
-
})[] | readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
90
|
-
user: string;
|
|
91
|
-
} | {
|
|
92
|
-
idpUser: "name" | "id" | "disabled";
|
|
93
|
-
} | {
|
|
94
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
95
|
-
} | {
|
|
96
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
97
|
-
})[])[];
|
|
98
|
-
description?: string | undefined;
|
|
99
|
-
permit?: boolean | undefined;
|
|
100
|
-
})[];
|
|
101
|
-
read: readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
102
|
-
user: string;
|
|
103
|
-
} | {
|
|
104
|
-
idpUser: "name" | "id" | "disabled";
|
|
105
|
-
} | {
|
|
106
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
107
|
-
} | {
|
|
108
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
109
|
-
})[] | readonly (boolean | readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
110
|
-
user: string;
|
|
111
|
-
} | {
|
|
112
|
-
idpUser: "name" | "id" | "disabled";
|
|
113
|
-
} | {
|
|
114
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
115
|
-
} | {
|
|
116
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
117
|
-
})[])[] | {
|
|
118
|
-
conditions: readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
119
|
-
user: string;
|
|
120
|
-
} | {
|
|
121
|
-
idpUser: "name" | "id" | "disabled";
|
|
122
|
-
} | {
|
|
123
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
124
|
-
} | {
|
|
125
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
126
|
-
})[] | readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
127
|
-
user: string;
|
|
128
|
-
} | {
|
|
129
|
-
idpUser: "name" | "id" | "disabled";
|
|
130
|
-
} | {
|
|
131
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
132
|
-
} | {
|
|
133
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
134
|
-
})[])[];
|
|
135
|
-
description?: string | undefined;
|
|
136
|
-
permit?: boolean | undefined;
|
|
137
|
-
})[];
|
|
138
|
-
update: readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
139
|
-
user: string;
|
|
140
|
-
} | {
|
|
141
|
-
idpUser: "name" | "id" | "disabled";
|
|
142
|
-
} | {
|
|
143
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
144
|
-
} | {
|
|
145
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
146
|
-
})[] | readonly (boolean | readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
147
|
-
user: string;
|
|
148
|
-
} | {
|
|
149
|
-
idpUser: "name" | "id" | "disabled";
|
|
150
|
-
} | {
|
|
151
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
152
|
-
} | {
|
|
153
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
154
|
-
})[])[] | {
|
|
155
|
-
conditions: readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
156
|
-
user: string;
|
|
157
|
-
} | {
|
|
158
|
-
idpUser: "name" | "id" | "disabled";
|
|
159
|
-
} | {
|
|
160
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
161
|
-
} | {
|
|
162
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
163
|
-
})[] | readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
164
|
-
user: string;
|
|
165
|
-
} | {
|
|
166
|
-
idpUser: "name" | "id" | "disabled";
|
|
167
|
-
} | {
|
|
168
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
169
|
-
} | {
|
|
170
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
171
|
-
})[])[];
|
|
172
|
-
description?: string | undefined;
|
|
173
|
-
permit?: boolean | undefined;
|
|
174
|
-
})[];
|
|
175
|
-
delete: readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
176
|
-
user: string;
|
|
177
|
-
} | {
|
|
178
|
-
idpUser: "name" | "id" | "disabled";
|
|
179
|
-
} | {
|
|
180
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
181
|
-
} | {
|
|
182
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
183
|
-
})[] | readonly (boolean | readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
184
|
-
user: string;
|
|
185
|
-
} | {
|
|
186
|
-
idpUser: "name" | "id" | "disabled";
|
|
187
|
-
} | {
|
|
188
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
189
|
-
} | {
|
|
190
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
191
|
-
})[])[] | {
|
|
192
|
-
conditions: readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
193
|
-
user: string;
|
|
194
|
-
} | {
|
|
195
|
-
idpUser: "name" | "id" | "disabled";
|
|
196
|
-
} | {
|
|
197
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
198
|
-
} | {
|
|
199
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
200
|
-
})[] | readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
201
|
-
user: string;
|
|
202
|
-
} | {
|
|
203
|
-
idpUser: "name" | "id" | "disabled";
|
|
204
|
-
} | {
|
|
205
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
206
|
-
} | {
|
|
207
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
208
|
-
})[])[];
|
|
209
|
-
description?: string | undefined;
|
|
210
|
-
permit?: boolean | undefined;
|
|
211
|
-
})[];
|
|
212
|
-
sendPasswordResetEmail: readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
213
|
-
user: string;
|
|
214
|
-
} | {
|
|
215
|
-
idpUser: "name" | "id" | "disabled";
|
|
216
|
-
} | {
|
|
217
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
218
|
-
} | {
|
|
219
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
220
|
-
})[] | readonly (boolean | readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
221
|
-
user: string;
|
|
222
|
-
} | {
|
|
223
|
-
idpUser: "name" | "id" | "disabled";
|
|
224
|
-
} | {
|
|
225
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
226
|
-
} | {
|
|
227
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
228
|
-
})[])[] | {
|
|
229
|
-
conditions: readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
230
|
-
user: string;
|
|
231
|
-
} | {
|
|
232
|
-
idpUser: "name" | "id" | "disabled";
|
|
233
|
-
} | {
|
|
234
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
235
|
-
} | {
|
|
236
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
237
|
-
})[] | readonly (readonly (string | boolean | readonly string[] | readonly boolean[] | {
|
|
238
|
-
user: string;
|
|
239
|
-
} | {
|
|
240
|
-
idpUser: "name" | "id" | "disabled";
|
|
241
|
-
} | {
|
|
242
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
243
|
-
} | {
|
|
244
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
245
|
-
})[])[];
|
|
246
|
-
description?: string | undefined;
|
|
247
|
-
permit?: boolean | undefined;
|
|
248
|
-
})[];
|
|
249
|
-
} | undefined;
|
|
250
|
-
};
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region src/types/idp.d.ts
|
|
253
|
-
declare const idpDefinitionBrand: unique symbol;
|
|
254
|
-
type IdpDefinitionBrand = {
|
|
255
|
-
readonly [idpDefinitionBrand]: true;
|
|
256
|
-
};
|
|
257
|
-
type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
|
|
258
|
-
name: Name;
|
|
259
|
-
provider(providerName: string, clientName: ClientNames): BuiltinIdP;
|
|
260
|
-
} & IdpDefinitionBrand;
|
|
261
|
-
type IdPExternalConfig = {
|
|
262
|
-
name: string;
|
|
263
|
-
external: true;
|
|
264
|
-
};
|
|
265
|
-
type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
|
|
266
|
-
type IdPConfig = IdPOwnConfig | IdPExternalConfig;
|
|
267
|
-
type IdPUserField = "id" | "name" | "disabled";
|
|
268
|
-
//#endregion
|
|
269
|
-
//#region src/configure/services/secrets/index.d.ts
|
|
270
|
-
declare const secretsDefinitionBrand: unique symbol;
|
|
271
|
-
type SecretsDefinitionBrand = {
|
|
272
|
-
readonly [secretsDefinitionBrand]: true;
|
|
273
|
-
};
|
|
274
|
-
type SecretsVaultInput = Record<string, string>;
|
|
275
|
-
type SecretsVaultInputNullish = Record<string, string | undefined | null>;
|
|
276
|
-
type SecretsInput = Record<string, SecretsVaultInput>;
|
|
277
|
-
type SecretsInputNullish = Record<string, SecretsVaultInputNullish>;
|
|
278
|
-
type SecretsOptions = {
|
|
279
|
-
readonly ignoreNullishValues: boolean;
|
|
280
|
-
};
|
|
281
|
-
type DefinedSecrets<T extends SecretsInputNullish> = {
|
|
282
|
-
readonly vaults: T;
|
|
283
|
-
readonly options: SecretsOptions;
|
|
284
|
-
get<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secret: S): Promise<string | undefined>;
|
|
285
|
-
getAll<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secrets: readonly S[]): Promise<(string | undefined)[]>;
|
|
286
|
-
} & SecretsDefinitionBrand;
|
|
287
|
-
/** Type accepted by `AppConfig.secrets`. Only values returned by `defineSecretManager()` satisfy this. */
|
|
288
|
-
type SecretsConfig = Omit<ReturnType<typeof defineSecretManager>, "get" | "getAll">;
|
|
289
|
-
/**
|
|
290
|
-
* Define secrets configuration for the Tailor SDK.
|
|
291
|
-
* Each key is a vault name, and its value is a record of secret name to secret value.
|
|
292
|
-
* @param config - Secrets configuration mapping vault names to their secrets
|
|
293
|
-
* @returns Defined secrets with typed runtime access methods
|
|
294
|
-
*/
|
|
295
|
-
declare function defineSecretManager<const T extends SecretsInput>(config: T): DefinedSecrets<T>;
|
|
296
|
-
/**
|
|
297
|
-
* Define secrets configuration for the Tailor SDK with ignoreNullishValues option.
|
|
298
|
-
* When `ignoreNullishValues` is true, secrets with nullish values are skipped during deploy
|
|
299
|
-
* instead of causing an error. This is useful for CI environments where not all
|
|
300
|
-
* secret values are available.
|
|
301
|
-
* @param config - Secrets configuration mapping vault names to their secrets
|
|
302
|
-
* @param options - Options for secret management behavior
|
|
303
|
-
* @param options.ignoreNullishValues - When true, secrets with nullish values are skipped during deploy
|
|
304
|
-
* @returns Defined secrets with typed runtime access methods
|
|
305
|
-
*/
|
|
306
|
-
declare function defineSecretManager<const T extends SecretsInputNullish>(config: T, options: {
|
|
307
|
-
ignoreNullishValues: true;
|
|
308
|
-
}): DefinedSecrets<T>;
|
|
309
|
-
//#endregion
|
|
310
|
-
//#region src/types/staticwebsite.generated.d.ts
|
|
311
|
-
type StaticWebsite = {
|
|
312
|
-
/** Static website name */name: string; /** Static website description */
|
|
313
|
-
description?: string | undefined; /** IP addresses allowed to access the website */
|
|
314
|
-
allowedIpAddresses?: string[] | undefined;
|
|
315
|
-
};
|
|
316
|
-
type StaticWebsiteInput = StaticWebsite;
|
|
317
|
-
//#endregion
|
|
318
|
-
//#region src/configure/services/staticwebsite/index.d.ts
|
|
319
|
-
declare const staticWebsiteDefinitionBrand: unique symbol;
|
|
320
|
-
type StaticWebsiteDefinitionBrand = {
|
|
321
|
-
readonly [staticWebsiteDefinitionBrand]: true;
|
|
322
|
-
};
|
|
323
|
-
/**
|
|
324
|
-
* Define a static website configuration for the Tailor SDK.
|
|
325
|
-
* @param name - Static website name
|
|
326
|
-
* @param config - Static website configuration
|
|
327
|
-
* @returns Defined static website
|
|
328
|
-
*/
|
|
329
|
-
declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
|
|
330
|
-
readonly name: string;
|
|
331
|
-
readonly url: `${string}:url`;
|
|
332
|
-
readonly description?: string | undefined;
|
|
333
|
-
readonly allowedIpAddresses?: string[] | undefined;
|
|
334
|
-
} & StaticWebsiteDefinitionBrand;
|
|
335
|
-
type StaticWebsiteConfig = Omit<ReturnType<typeof defineStaticWebSite>, "url">;
|
|
336
|
-
//#endregion
|
|
337
|
-
//#region src/types/app-config.d.ts
|
|
338
|
-
type ExecutorServiceConfig = {
|
|
339
|
-
files: string[];
|
|
340
|
-
ignores?: string[];
|
|
341
|
-
};
|
|
342
|
-
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
343
|
-
type ResolverServiceConfig = {
|
|
344
|
-
files: string[];
|
|
345
|
-
ignores?: string[];
|
|
346
|
-
};
|
|
347
|
-
type ResolverExternalConfig = {
|
|
348
|
-
external: true;
|
|
349
|
-
};
|
|
350
|
-
type ResolverServiceInput = {
|
|
351
|
-
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
352
|
-
};
|
|
353
|
-
type WorkflowServiceConfig = {
|
|
354
|
-
files: string[];
|
|
355
|
-
job_files?: string[];
|
|
356
|
-
ignores?: string[];
|
|
357
|
-
job_ignores?: string[];
|
|
358
|
-
};
|
|
359
|
-
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
360
|
-
/**
|
|
361
|
-
* Application configuration for `defineConfig()`.
|
|
362
|
-
*
|
|
363
|
-
* Key fields:
|
|
364
|
-
* - `name` (required): Application name
|
|
365
|
-
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
366
|
-
* - `auth`: Single auth config object (not an array)
|
|
367
|
-
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
368
|
-
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
369
|
-
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
370
|
-
*/
|
|
371
|
-
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>> {
|
|
372
|
-
/** Application name (required). */
|
|
373
|
-
name: string;
|
|
374
|
-
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
375
|
-
env?: Env;
|
|
376
|
-
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
377
|
-
cors?: string[];
|
|
378
|
-
/** IP addresses allowed to access the application. */
|
|
379
|
-
allowedIpAddresses?: string[];
|
|
380
|
-
/** Disable GraphQL introspection in production. */
|
|
381
|
-
disableIntrospection?: boolean;
|
|
382
|
-
/** TailorDB service configuration with type definition files. */
|
|
383
|
-
db?: TailorDBServiceInput;
|
|
384
|
-
/** Resolver service configuration with resolver files. */
|
|
385
|
-
resolver?: ResolverServiceInput;
|
|
386
|
-
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
387
|
-
idp?: Idp;
|
|
388
|
-
/** Auth configuration (single object, not an array). */
|
|
389
|
-
auth?: Auth;
|
|
390
|
-
/** Executor service configuration with executor files. */
|
|
391
|
-
executor?: ExecutorServiceInput;
|
|
392
|
-
/** Workflow service configuration with workflow files. */
|
|
393
|
-
workflow?: WorkflowServiceInput;
|
|
394
|
-
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
395
|
-
staticWebsites?: StaticWebsites;
|
|
396
|
-
/** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
|
|
397
|
-
secrets?: SecretsConfig;
|
|
398
|
-
/**
|
|
399
|
-
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
400
|
-
* @default true
|
|
401
|
-
*/
|
|
402
|
-
inlineSourcemap?: boolean;
|
|
403
|
-
}
|
|
404
|
-
//#endregion
|
|
405
|
-
//#region src/types/workflow.generated.d.ts
|
|
406
|
-
type RetryPolicy = {
|
|
407
|
-
/** Maximum number of retries (1-10) */maxRetries: number; /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
|
|
408
|
-
initialBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
|
|
409
|
-
maxBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Backoff multiplier (>= 1) */
|
|
410
|
-
backoffMultiplier: number;
|
|
411
|
-
};
|
|
412
|
-
//#endregion
|
|
413
|
-
export { IdpDefinitionBrand as _, ResolverExternalConfig as a, IdPGqlOperationsInput as b, WorkflowServiceConfig as c, defineStaticWebSite as d, SecretsConfig as f, IdPUserField as g, IdPExternalConfig as h, ExecutorServiceInput as i, WorkflowServiceInput as l, IdPConfig as m, AppConfig as n, ResolverServiceConfig as o, defineSecretManager as p, ExecutorServiceConfig as r, ResolverServiceInput as s, RetryPolicy as t, StaticWebsiteConfig as u, IdPEmailConfig as v, IdPInput as x, IdPGqlOperations as y };
|
|
414
|
-
//# sourceMappingURL=workflow.generated-BxbnuzAE.d.mts.map
|