@tailor-platform/sdk 2.0.0-next.0 → 2.0.0-next.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 +161 -0
- package/dist/application-Dtqap5jM.mjs +3 -0
- package/dist/{client-CobIRHl-.mjs → application-XuMWK4eq.mjs} +5869 -25
- package/dist/application-XuMWK4eq.mjs.map +1 -0
- package/dist/{assert-CKfwrmCV.mjs → assert-DBxo8jPo.mjs} +1 -2
- package/dist/{assert-CKfwrmCV.mjs.map → assert-DBxo8jPo.mjs.map} +1 -1
- package/dist/{authconnection-D8SJGMpj.mjs → authconnection-D2MhtTN5.mjs} +2 -3
- package/dist/{authconnection-D8SJGMpj.mjs.map → authconnection-D2MhtTN5.mjs.map} +1 -1
- package/dist/{authconnection-BIYzEh2p.d.mts → authconnection-DvUQAjQS.d.mts} +1 -1
- package/dist/{brand-DlnJ375c.mjs → brand-Eo4pLXPJ.mjs} +1 -2
- package/dist/{brand-DlnJ375c.mjs.map → brand-Eo4pLXPJ.mjs.map} +1 -1
- package/dist/cli/index.mjs +241 -237
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +547 -620
- package/dist/cli/lib.mjs +9 -11
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/completion/zsh-worker.zsh +4108 -0
- package/dist/configure/index.d.mts +9 -7
- package/dist/configure/index.mjs +76 -40
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{context-s0lxhu8_.mjs → context-Bd266-ru.mjs} +2 -3
- package/dist/context-Bd266-ru.mjs.map +1 -0
- package/dist/{context-CUBwSBq4.d.mts → context-C2lEi9uw.d.mts} +7 -28
- package/dist/{crashreport-D1wKBJ8N.mjs → crashreport-BMWcxeSE.mjs} +1 -2
- package/dist/{crashreport-BhD0y14F.mjs → crashreport-DFq-vsU0.mjs} +21 -14
- package/dist/{crashreport-BhD0y14F.mjs.map → crashreport-DFq-vsU0.mjs.map} +1 -1
- package/dist/{enum-constants-C7DaWeQo.mjs → enum-constants-j9QBF0cB.mjs} +1 -2
- package/dist/enum-constants-j9QBF0cB.mjs.map +1 -0
- package/dist/{errors-EsY4XO6O.mjs → errors-Dtf2WPaW.mjs} +1 -2
- package/dist/{errors-EsY4XO6O.mjs.map → errors-Dtf2WPaW.mjs.map} +1 -1
- package/dist/{field-C4zdJLW5.mjs → field-DOsJCPFa.mjs} +1 -2
- package/dist/field-DOsJCPFa.mjs.map +1 -0
- package/dist/{file-B58Dm-2P.mjs → file-BbdFGdMV.mjs} +3 -12
- package/dist/file-BbdFGdMV.mjs.map +1 -0
- package/dist/{file-BzK8z3X-.d.mts → file-Dq3NIt_F.d.mts} +3 -42
- package/dist/{file-utils-BHPxPXmn.mjs → file-utils-CYZnO1pX.mjs} +6 -7
- package/dist/file-utils-CYZnO1pX.mjs.map +1 -0
- package/dist/{globals-ByrCoDip.mjs → globals-Cf0sxIt8.mjs} +53 -5
- package/dist/globals-Cf0sxIt8.mjs.map +1 -0
- package/dist/http-adapter.generated-DFsXDdm5.d.mts +581 -0
- package/dist/{iconv-kwrmd1U_.d.mts → iconv-Co-TOPuH.d.mts} +1 -1
- package/dist/{iconv-DreIffeM.mjs → iconv-D2vi8G36.mjs} +2 -3
- package/dist/{iconv-DreIffeM.mjs.map → iconv-D2vi8G36.mjs.map} +1 -1
- package/dist/{idp-Ch95ag8h.mjs → idp-BDbK5gjm.mjs} +2 -3
- package/dist/{idp-Ch95ag8h.mjs.map → idp-BDbK5gjm.mjs.map} +1 -1
- package/dist/{idp-BlBPtXJ-.d.mts → idp-DrhVrLmV.d.mts} +1 -1
- package/dist/{index-CLxubakC.d.mts → index-BI-_j9Z3.d.mts} +49 -261
- package/dist/{index-CPRnOjjt.d.mts → index-C4JirJH8.d.mts} +2 -2
- package/dist/{index-CQZVJ5SX.d.mts → index-CZfWhr0a.d.mts} +2 -2
- package/dist/{index-DRhMpdnA.d.mts → index-Cg8VKAdN.d.mts} +8 -8
- package/dist/{index-CfRFkXIO.d.mts → index-DYRjoLXD.d.mts} +2 -2
- package/dist/index-lFpcjHPU.d.mts +201 -0
- package/dist/{index-DUupuPhZ.d.mts → index-nW7hE6oE.d.mts} +2 -2
- package/dist/{interceptor-DOqRkCya.mjs → interceptor-D-q1rvRl.mjs} +1 -2
- package/dist/{interceptor-DOqRkCya.mjs.map → interceptor-D-q1rvRl.mjs.map} +1 -1
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-DR8uzZTA.mjs} +2 -3
- package/dist/kysely-type-DR8uzZTA.mjs.map +1 -0
- package/dist/{logger-DpJyJvNz.mjs → logger-CxF-Ex5d.mjs} +1 -2
- package/dist/{logger-DpJyJvNz.mjs.map → logger-CxF-Ex5d.mjs.map} +1 -1
- package/dist/{mock-DMgIygjE.mjs → mock-FPxmnt-y.mjs} +9 -56
- package/dist/mock-FPxmnt-y.mjs.map +1 -0
- package/dist/{multiline-Cf9ODpr1.mjs → multiline-sfHpTZZK.mjs} +1 -2
- package/dist/{multiline-Cf9ODpr1.mjs.map → multiline-sfHpTZZK.mjs.map} +1 -1
- package/dist/{package-json-DcQApfPQ.mjs → package-json-8b0O9TlX.mjs} +1 -2
- package/dist/{package-json-DcQApfPQ.mjs.map → package-json-8b0O9TlX.mjs.map} +1 -1
- package/dist/package-json-Cv2Z-TqQ.mjs +3 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -2
- package/dist/plugin/index.d.mts +4 -5
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/registry-DH4m7eYo.mjs +53 -0
- package/dist/registry-DH4m7eYo.mjs.map +1 -0
- package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DmGr9zMw.mjs} +2 -3
- package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DmGr9zMw.mjs.map} +1 -1
- package/dist/{chunk-BkoGK1jX.mjs → rolldown-runtime-DXywRVcq.mjs} +0 -1
- package/dist/runtime/authconnection.d.mts +1 -1
- package/dist/runtime/authconnection.mjs +1 -2
- package/dist/runtime/context.d.mts +1 -1
- package/dist/runtime/context.mjs +1 -2
- package/dist/runtime/file.d.mts +2 -2
- package/dist/runtime/file.mjs +2 -3
- package/dist/runtime/globals.d.mts +8 -41
- package/dist/runtime/globals.mjs +0 -1
- package/dist/runtime/iconv.d.mts +1 -1
- package/dist/runtime/iconv.mjs +1 -2
- package/dist/runtime/idp.d.mts +1 -1
- package/dist/runtime/idp.mjs +1 -2
- package/dist/runtime/index.d.mts +8 -8
- package/dist/runtime/index.mjs +7 -8
- package/dist/runtime/secretmanager.d.mts +1 -1
- package/dist/runtime/secretmanager.mjs +1 -2
- package/dist/runtime/workflow.d.mts +2 -2
- package/dist/runtime/workflow.mjs +1 -2
- package/dist/{runtime-C7qTBDD2.mjs → runtime-CY4JvrDj.mjs} +1069 -542
- package/dist/runtime-CY4JvrDj.mjs.map +1 -0
- package/dist/{schema-1msIhXwA.mjs → schema-Dtw9Orye.mjs} +18 -16
- package/dist/schema-Dtw9Orye.mjs.map +1 -0
- package/dist/{secret-file-CWzF8rry.mjs → secret-file-VSVGy1V0.mjs} +27 -3
- package/dist/{secret-file-CWzF8rry.mjs.map → secret-file-VSVGy1V0.mjs.map} +1 -1
- package/dist/{secretmanager-CKLB3wAQ.d.mts → secretmanager-B3n4KHfm.d.mts} +1 -1
- package/dist/{secretmanager-B9h-U_8U.mjs → secretmanager-BVxw3ih_.mjs} +2 -3
- package/dist/{secretmanager-B9h-U_8U.mjs.map → secretmanager-BVxw3ih_.mjs.map} +1 -1
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-BH2FbrPV.mjs → seed-izIEyP3z.mjs} +7 -19
- package/dist/seed-izIEyP3z.mjs.map +1 -0
- package/dist/service-DCqIWibD.mjs +3 -0
- package/dist/{service-DMohAx8a2.mjs → service-DU1mVzri2.mjs} +3 -4
- package/dist/{service-DMohAx8a2.mjs.map → service-DU1mVzri2.mjs.map} +1 -1
- package/dist/{service-wI3Hvrgx.mjs → service-DjyqbCaJ.mjs} +9 -10
- package/dist/service-DjyqbCaJ.mjs.map +1 -0
- package/dist/{telemetry-BQbbVo2t.mjs → telemetry-CdqJEzkj.mjs} +2 -3
- package/dist/{telemetry-BQbbVo2t.mjs.map → telemetry-CdqJEzkj.mjs.map} +1 -1
- package/dist/telemetry-ClwW5ohF.mjs +3 -0
- package/dist/test-env-key-D7UkZp99.mjs +75 -0
- package/dist/test-env-key-D7UkZp99.mjs.map +1 -0
- package/dist/type-source-DH_LH20p.mjs +13 -0
- package/dist/type-source-DH_LH20p.mjs.map +1 -0
- package/dist/types-74etvaxy.mjs +4 -0
- package/dist/{plugin-C_FyVSdl.d.mts → types-BDRml5C3.d.mts} +128 -188
- package/dist/{types-CmzfQP_m.mjs → types-BQijbo4m.mjs} +10 -11
- package/dist/types-BQijbo4m.mjs.map +1 -0
- package/dist/types-BX4q6Mo6.d.mts +339 -0
- package/dist/types-BZ7QKVE8.d.mts +21 -0
- package/dist/{tailordb-BlBGmQK-.d.mts → types-CdcQh4Z2.d.mts} +92 -242
- package/dist/utils/test/index.d.mts +6 -14
- package/dist/utils/test/index.mjs +4 -14
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.mjs +1 -2
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.d.mts +42 -5
- package/dist/vitest/index.mjs +133 -4
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/setup.mjs +2 -3
- package/dist/vitest/setup.mjs.map +1 -1
- package/dist/{workflow--aPbA8Uq.mjs → workflow-BOmaZwwG.mjs} +9 -5
- package/dist/workflow-BOmaZwwG.mjs.map +1 -0
- package/dist/{workflow-CMamswkK.d.mts → workflow-BVy4XWjS.d.mts} +15 -10
- package/dist/workflow.generated-ClEjBYhm.d.mts +671 -0
- package/docs/cli/application.md +0 -2
- package/docs/cli/completion.md +3 -0
- package/docs/cli/crashreport.md +0 -2
- package/docs/cli/executor.md +53 -0
- package/docs/cli/function.md +1 -1
- package/docs/cli/setup.md +35 -33
- package/docs/cli/user.md +3 -3
- package/docs/cli/workflow.md +157 -20
- package/docs/cli/workspace.md +3 -3
- package/docs/cli-reference.md +26 -20
- package/docs/configuration.md +0 -2
- package/docs/github-actions.md +29 -16
- package/docs/migration/v2.md +475 -0
- package/docs/plugin/custom.md +2 -2
- package/docs/plugin/index.md +1 -1
- package/docs/runtime.md +4 -4
- package/docs/services/aigateway.md +97 -0
- package/docs/services/auth.md +31 -14
- package/docs/services/executor.md +3 -5
- package/docs/services/resolver.md +8 -10
- package/docs/services/tailordb.md +15 -13
- package/docs/services/workflow.md +17 -19
- package/docs/testing.md +75 -56
- package/package.json +18 -17
- package/dist/actor-J2gJ0eK5.d.mts +0 -24
- package/dist/application-76hhIhnJ.mjs +0 -5594
- package/dist/application-76hhIhnJ.mjs.map +0 -1
- package/dist/application-av2raLs6.mjs +0 -4
- package/dist/cli/skills.d.mts +0 -1
- package/dist/cli/skills.mjs +0 -22
- package/dist/cli/skills.mjs.map +0 -1
- package/dist/client-C68VWo4g.mjs +0 -4
- package/dist/client-CobIRHl-.mjs.map +0 -1
- package/dist/context-s0lxhu8_.mjs.map +0 -1
- package/dist/enum-constants-C7DaWeQo.mjs.map +0 -1
- package/dist/env-B-g-qgE4.d.mts +0 -7
- package/dist/field-C4zdJLW5.mjs.map +0 -1
- package/dist/file-B58Dm-2P.mjs.map +0 -1
- package/dist/file-utils-BHPxPXmn.mjs.map +0 -1
- package/dist/globals-ByrCoDip.mjs.map +0 -1
- package/dist/job-BpsFXPbi.mjs +0 -54
- package/dist/job-BpsFXPbi.mjs.map +0 -1
- package/dist/kysely-type-D1e0Vwkd.mjs.map +0 -1
- package/dist/mock-DMgIygjE.mjs.map +0 -1
- package/dist/package-json-wzO6nV9O.mjs +0 -4
- package/dist/registry-D0uB0OrK.mjs +0 -178
- package/dist/registry-D0uB0OrK.mjs.map +0 -1
- package/dist/runtime-C7qTBDD2.mjs.map +0 -1
- package/dist/schema-1msIhXwA.mjs.map +0 -1
- package/dist/seed-BH2FbrPV.mjs.map +0 -1
- package/dist/service-BHQIerYh.mjs +0 -4
- package/dist/service-wI3Hvrgx.mjs.map +0 -1
- package/dist/telemetry-w92bvGdC.mjs +0 -4
- package/dist/types-2Be3wSMc.mjs +0 -5
- package/dist/types-CmzfQP_m.mjs.map +0 -1
- package/dist/workflow--aPbA8Uq.mjs.map +0 -1
- package/dist/workflow.generated-Bf1tWylx.d.mts +0 -1416
- package/docs/generator/builtin.md +0 -257
- package/docs/generator/custom.md +0 -147
- package/docs/generator/index.md +0 -66
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
import { h as TailorDBServiceInput } from "./types-CdcQh4Z2.mjs";
|
|
2
|
+
import { t as AuthConfig, x as BuiltinIdP } from "./types-BX4q6Mo6.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/types/aigateway.generated.d.ts
|
|
5
|
+
type AIGateway = {
|
|
6
|
+
/** AI Gateway name */name: string; /** Auth namespace used to resolve request tokens against the workspace's auth */
|
|
7
|
+
authNamespace: string; /** Allowed CORS origins for browser-based clients. Each entry is `*`, `http(s)://*`, `http(s)://*.example.com`, or `http(s)://app.example.com`, optionally with `:port`. Empty list disables cross-origin access. */
|
|
8
|
+
cors?: string[] | undefined;
|
|
9
|
+
};
|
|
10
|
+
type AIGatewayInput = AIGateway;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/configure/services/aigateway/types.d.ts
|
|
13
|
+
declare const aiGatewayDefinitionBrand: unique symbol;
|
|
14
|
+
type AIGatewayDefinitionBrand = {
|
|
15
|
+
readonly [aiGatewayDefinitionBrand]: true;
|
|
16
|
+
};
|
|
17
|
+
/** Type accepted by `AppConfig.aiGateways`. Only values returned by `defineAIGateway()` satisfy this. */
|
|
18
|
+
type AIGatewayConfig = AIGatewayInput & AIGatewayDefinitionBrand;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/types/idp.generated.d.ts
|
|
21
|
+
/**
|
|
22
|
+
* Configuration for GraphQL operations on IdP users.
|
|
23
|
+
* All operations are enabled by default (undefined or true = enabled, false = disabled).
|
|
24
|
+
*/
|
|
25
|
+
type IdPGqlOperationsInput = "query" | {
|
|
26
|
+
create?: boolean | undefined;
|
|
27
|
+
update?: boolean | undefined;
|
|
28
|
+
delete?: boolean | undefined;
|
|
29
|
+
read?: boolean | undefined;
|
|
30
|
+
sendPasswordResetEmail?: boolean | undefined;
|
|
31
|
+
};
|
|
32
|
+
type IdPGqlOperations = {
|
|
33
|
+
create?: boolean | undefined;
|
|
34
|
+
update?: boolean | undefined;
|
|
35
|
+
delete?: boolean | undefined;
|
|
36
|
+
read?: boolean | undefined;
|
|
37
|
+
sendPasswordResetEmail?: boolean | undefined;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Namespace-level email configuration defaults
|
|
41
|
+
*/
|
|
42
|
+
type IdPEmailConfig = {
|
|
43
|
+
/** Default sender display name for emails */fromName?: string | undefined; /** Default subject for password reset emails */
|
|
44
|
+
passwordResetSubject?: string | undefined;
|
|
45
|
+
};
|
|
46
|
+
type IdPInput = {
|
|
47
|
+
/** IdP service name */name: string; /** OAuth2 client names that can use this IdP */
|
|
48
|
+
clients: string[]; /** Authorization mode for IdP API access */
|
|
49
|
+
authorization?: "insecure" | "loggedIn" | {
|
|
50
|
+
cel: string;
|
|
51
|
+
} | undefined; /** UI language for IdP pages */
|
|
52
|
+
lang?: "en" | "ja" | undefined; /** User authentication policy configuration */
|
|
53
|
+
userAuthPolicy?: {
|
|
54
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
55
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
56
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
57
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
58
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
59
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
60
|
+
passwordMinLength?: number | undefined;
|
|
61
|
+
passwordMaxLength?: number | undefined;
|
|
62
|
+
allowedEmailDomains?: string[] | undefined;
|
|
63
|
+
allowGoogleOauth?: boolean | undefined;
|
|
64
|
+
allowMicrosoftOauth?: boolean | undefined;
|
|
65
|
+
disablePasswordAuth?: boolean | undefined;
|
|
66
|
+
} | undefined; /** Enable publishing user lifecycle events */
|
|
67
|
+
publishUserEvents?: boolean | undefined; /** Configure which GraphQL operations are enabled */
|
|
68
|
+
gqlOperations?: "query" | {
|
|
69
|
+
create?: boolean | undefined;
|
|
70
|
+
update?: boolean | undefined;
|
|
71
|
+
delete?: boolean | undefined;
|
|
72
|
+
read?: boolean | undefined;
|
|
73
|
+
sendPasswordResetEmail?: boolean | undefined;
|
|
74
|
+
} | undefined; /** Namespace-level email configuration defaults */
|
|
75
|
+
emailConfig?: {
|
|
76
|
+
fromName?: string | undefined;
|
|
77
|
+
passwordResetSubject?: string | undefined;
|
|
78
|
+
} | undefined; /** Per-operation permission policies for IdP users */
|
|
79
|
+
permission?: {
|
|
80
|
+
create: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
81
|
+
user: string;
|
|
82
|
+
} | {
|
|
83
|
+
idpUser: "name" | "id" | "disabled";
|
|
84
|
+
} | {
|
|
85
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
86
|
+
} | {
|
|
87
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
88
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
89
|
+
user: string;
|
|
90
|
+
} | {
|
|
91
|
+
idpUser: "name" | "id" | "disabled";
|
|
92
|
+
} | {
|
|
93
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
94
|
+
} | {
|
|
95
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
96
|
+
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
97
|
+
user: string;
|
|
98
|
+
} | {
|
|
99
|
+
idpUser: "name" | "id" | "disabled";
|
|
100
|
+
} | {
|
|
101
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
102
|
+
} | {
|
|
103
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
104
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
105
|
+
user: string;
|
|
106
|
+
} | {
|
|
107
|
+
idpUser: "name" | "id" | "disabled";
|
|
108
|
+
} | {
|
|
109
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
110
|
+
} | {
|
|
111
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
112
|
+
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
113
|
+
user: string;
|
|
114
|
+
} | {
|
|
115
|
+
idpUser: "name" | "id" | "disabled";
|
|
116
|
+
} | {
|
|
117
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
118
|
+
} | {
|
|
119
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
120
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
121
|
+
user: string;
|
|
122
|
+
} | {
|
|
123
|
+
idpUser: "name" | "id" | "disabled";
|
|
124
|
+
} | {
|
|
125
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
126
|
+
} | {
|
|
127
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
128
|
+
})])[] | {
|
|
129
|
+
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
130
|
+
user: string;
|
|
131
|
+
} | {
|
|
132
|
+
idpUser: "name" | "id" | "disabled";
|
|
133
|
+
} | {
|
|
134
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
135
|
+
} | {
|
|
136
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
137
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
138
|
+
user: string;
|
|
139
|
+
} | {
|
|
140
|
+
idpUser: "name" | "id" | "disabled";
|
|
141
|
+
} | {
|
|
142
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
143
|
+
} | {
|
|
144
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
145
|
+
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
146
|
+
user: string;
|
|
147
|
+
} | {
|
|
148
|
+
idpUser: "name" | "id" | "disabled";
|
|
149
|
+
} | {
|
|
150
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
151
|
+
} | {
|
|
152
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
153
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
154
|
+
user: string;
|
|
155
|
+
} | {
|
|
156
|
+
idpUser: "name" | "id" | "disabled";
|
|
157
|
+
} | {
|
|
158
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
159
|
+
} | {
|
|
160
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
161
|
+
})])[];
|
|
162
|
+
description?: string | undefined;
|
|
163
|
+
permit?: boolean | undefined;
|
|
164
|
+
})[];
|
|
165
|
+
read: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
166
|
+
user: string;
|
|
167
|
+
} | {
|
|
168
|
+
idpUser: "name" | "id" | "disabled";
|
|
169
|
+
} | {
|
|
170
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
171
|
+
} | {
|
|
172
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
173
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
174
|
+
user: string;
|
|
175
|
+
} | {
|
|
176
|
+
idpUser: "name" | "id" | "disabled";
|
|
177
|
+
} | {
|
|
178
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
179
|
+
} | {
|
|
180
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
181
|
+
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
182
|
+
user: string;
|
|
183
|
+
} | {
|
|
184
|
+
idpUser: "name" | "id" | "disabled";
|
|
185
|
+
} | {
|
|
186
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
187
|
+
} | {
|
|
188
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
189
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
190
|
+
user: string;
|
|
191
|
+
} | {
|
|
192
|
+
idpUser: "name" | "id" | "disabled";
|
|
193
|
+
} | {
|
|
194
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
195
|
+
} | {
|
|
196
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
197
|
+
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
198
|
+
user: string;
|
|
199
|
+
} | {
|
|
200
|
+
idpUser: "name" | "id" | "disabled";
|
|
201
|
+
} | {
|
|
202
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
203
|
+
} | {
|
|
204
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
205
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
206
|
+
user: string;
|
|
207
|
+
} | {
|
|
208
|
+
idpUser: "name" | "id" | "disabled";
|
|
209
|
+
} | {
|
|
210
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
211
|
+
} | {
|
|
212
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
213
|
+
})])[] | {
|
|
214
|
+
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
215
|
+
user: string;
|
|
216
|
+
} | {
|
|
217
|
+
idpUser: "name" | "id" | "disabled";
|
|
218
|
+
} | {
|
|
219
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
220
|
+
} | {
|
|
221
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
222
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
223
|
+
user: string;
|
|
224
|
+
} | {
|
|
225
|
+
idpUser: "name" | "id" | "disabled";
|
|
226
|
+
} | {
|
|
227
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
228
|
+
} | {
|
|
229
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
230
|
+
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
231
|
+
user: string;
|
|
232
|
+
} | {
|
|
233
|
+
idpUser: "name" | "id" | "disabled";
|
|
234
|
+
} | {
|
|
235
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
236
|
+
} | {
|
|
237
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
238
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
239
|
+
user: string;
|
|
240
|
+
} | {
|
|
241
|
+
idpUser: "name" | "id" | "disabled";
|
|
242
|
+
} | {
|
|
243
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
244
|
+
} | {
|
|
245
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
246
|
+
})])[];
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
permit?: boolean | undefined;
|
|
249
|
+
})[];
|
|
250
|
+
update: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
251
|
+
user: string;
|
|
252
|
+
} | {
|
|
253
|
+
idpUser: "name" | "id" | "disabled";
|
|
254
|
+
} | {
|
|
255
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
256
|
+
} | {
|
|
257
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
258
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
259
|
+
user: string;
|
|
260
|
+
} | {
|
|
261
|
+
idpUser: "name" | "id" | "disabled";
|
|
262
|
+
} | {
|
|
263
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
264
|
+
} | {
|
|
265
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
266
|
+
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
267
|
+
user: string;
|
|
268
|
+
} | {
|
|
269
|
+
idpUser: "name" | "id" | "disabled";
|
|
270
|
+
} | {
|
|
271
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
272
|
+
} | {
|
|
273
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
274
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
275
|
+
user: string;
|
|
276
|
+
} | {
|
|
277
|
+
idpUser: "name" | "id" | "disabled";
|
|
278
|
+
} | {
|
|
279
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
280
|
+
} | {
|
|
281
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
282
|
+
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
283
|
+
user: string;
|
|
284
|
+
} | {
|
|
285
|
+
idpUser: "name" | "id" | "disabled";
|
|
286
|
+
} | {
|
|
287
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
288
|
+
} | {
|
|
289
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
290
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
291
|
+
user: string;
|
|
292
|
+
} | {
|
|
293
|
+
idpUser: "name" | "id" | "disabled";
|
|
294
|
+
} | {
|
|
295
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
296
|
+
} | {
|
|
297
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
298
|
+
})])[] | {
|
|
299
|
+
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
300
|
+
user: string;
|
|
301
|
+
} | {
|
|
302
|
+
idpUser: "name" | "id" | "disabled";
|
|
303
|
+
} | {
|
|
304
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
305
|
+
} | {
|
|
306
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
307
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
308
|
+
user: string;
|
|
309
|
+
} | {
|
|
310
|
+
idpUser: "name" | "id" | "disabled";
|
|
311
|
+
} | {
|
|
312
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
313
|
+
} | {
|
|
314
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
315
|
+
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
316
|
+
user: string;
|
|
317
|
+
} | {
|
|
318
|
+
idpUser: "name" | "id" | "disabled";
|
|
319
|
+
} | {
|
|
320
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
321
|
+
} | {
|
|
322
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
323
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
324
|
+
user: string;
|
|
325
|
+
} | {
|
|
326
|
+
idpUser: "name" | "id" | "disabled";
|
|
327
|
+
} | {
|
|
328
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
329
|
+
} | {
|
|
330
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
331
|
+
})])[];
|
|
332
|
+
description?: string | undefined;
|
|
333
|
+
permit?: boolean | undefined;
|
|
334
|
+
})[];
|
|
335
|
+
delete: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
336
|
+
user: string;
|
|
337
|
+
} | {
|
|
338
|
+
idpUser: "name" | "id" | "disabled";
|
|
339
|
+
} | {
|
|
340
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
341
|
+
} | {
|
|
342
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
343
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
344
|
+
user: string;
|
|
345
|
+
} | {
|
|
346
|
+
idpUser: "name" | "id" | "disabled";
|
|
347
|
+
} | {
|
|
348
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
349
|
+
} | {
|
|
350
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
351
|
+
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
352
|
+
user: string;
|
|
353
|
+
} | {
|
|
354
|
+
idpUser: "name" | "id" | "disabled";
|
|
355
|
+
} | {
|
|
356
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
357
|
+
} | {
|
|
358
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
359
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
360
|
+
user: string;
|
|
361
|
+
} | {
|
|
362
|
+
idpUser: "name" | "id" | "disabled";
|
|
363
|
+
} | {
|
|
364
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
365
|
+
} | {
|
|
366
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
367
|
+
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
368
|
+
user: string;
|
|
369
|
+
} | {
|
|
370
|
+
idpUser: "name" | "id" | "disabled";
|
|
371
|
+
} | {
|
|
372
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
373
|
+
} | {
|
|
374
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
375
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
376
|
+
user: string;
|
|
377
|
+
} | {
|
|
378
|
+
idpUser: "name" | "id" | "disabled";
|
|
379
|
+
} | {
|
|
380
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
381
|
+
} | {
|
|
382
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
383
|
+
})])[] | {
|
|
384
|
+
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
385
|
+
user: string;
|
|
386
|
+
} | {
|
|
387
|
+
idpUser: "name" | "id" | "disabled";
|
|
388
|
+
} | {
|
|
389
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
390
|
+
} | {
|
|
391
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
392
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
393
|
+
user: string;
|
|
394
|
+
} | {
|
|
395
|
+
idpUser: "name" | "id" | "disabled";
|
|
396
|
+
} | {
|
|
397
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
398
|
+
} | {
|
|
399
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
400
|
+
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
401
|
+
user: string;
|
|
402
|
+
} | {
|
|
403
|
+
idpUser: "name" | "id" | "disabled";
|
|
404
|
+
} | {
|
|
405
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
406
|
+
} | {
|
|
407
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
408
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
409
|
+
user: string;
|
|
410
|
+
} | {
|
|
411
|
+
idpUser: "name" | "id" | "disabled";
|
|
412
|
+
} | {
|
|
413
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
414
|
+
} | {
|
|
415
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
416
|
+
})])[];
|
|
417
|
+
description?: string | undefined;
|
|
418
|
+
permit?: boolean | undefined;
|
|
419
|
+
})[];
|
|
420
|
+
sendPasswordResetEmail: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
421
|
+
user: string;
|
|
422
|
+
} | {
|
|
423
|
+
idpUser: "name" | "id" | "disabled";
|
|
424
|
+
} | {
|
|
425
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
426
|
+
} | {
|
|
427
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
428
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
429
|
+
user: string;
|
|
430
|
+
} | {
|
|
431
|
+
idpUser: "name" | "id" | "disabled";
|
|
432
|
+
} | {
|
|
433
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
434
|
+
} | {
|
|
435
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
436
|
+
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
437
|
+
user: string;
|
|
438
|
+
} | {
|
|
439
|
+
idpUser: "name" | "id" | "disabled";
|
|
440
|
+
} | {
|
|
441
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
442
|
+
} | {
|
|
443
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
444
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
445
|
+
user: string;
|
|
446
|
+
} | {
|
|
447
|
+
idpUser: "name" | "id" | "disabled";
|
|
448
|
+
} | {
|
|
449
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
450
|
+
} | {
|
|
451
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
452
|
+
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
453
|
+
user: string;
|
|
454
|
+
} | {
|
|
455
|
+
idpUser: "name" | "id" | "disabled";
|
|
456
|
+
} | {
|
|
457
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
458
|
+
} | {
|
|
459
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
460
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
461
|
+
user: string;
|
|
462
|
+
} | {
|
|
463
|
+
idpUser: "name" | "id" | "disabled";
|
|
464
|
+
} | {
|
|
465
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
466
|
+
} | {
|
|
467
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
468
|
+
})])[] | {
|
|
469
|
+
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
470
|
+
user: string;
|
|
471
|
+
} | {
|
|
472
|
+
idpUser: "name" | "id" | "disabled";
|
|
473
|
+
} | {
|
|
474
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
475
|
+
} | {
|
|
476
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
477
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
478
|
+
user: string;
|
|
479
|
+
} | {
|
|
480
|
+
idpUser: "name" | "id" | "disabled";
|
|
481
|
+
} | {
|
|
482
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
483
|
+
} | {
|
|
484
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
485
|
+
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
486
|
+
user: string;
|
|
487
|
+
} | {
|
|
488
|
+
idpUser: "name" | "id" | "disabled";
|
|
489
|
+
} | {
|
|
490
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
491
|
+
} | {
|
|
492
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
493
|
+
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
494
|
+
user: string;
|
|
495
|
+
} | {
|
|
496
|
+
idpUser: "name" | "id" | "disabled";
|
|
497
|
+
} | {
|
|
498
|
+
oldIdpUser: "name" | "id" | "disabled";
|
|
499
|
+
} | {
|
|
500
|
+
newIdpUser: "name" | "id" | "disabled";
|
|
501
|
+
})])[];
|
|
502
|
+
description?: string | undefined;
|
|
503
|
+
permit?: boolean | undefined;
|
|
504
|
+
})[];
|
|
505
|
+
} | undefined;
|
|
506
|
+
};
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region src/configure/services/idp/types.d.ts
|
|
509
|
+
declare const idpDefinitionBrand: unique symbol;
|
|
510
|
+
type IdpDefinitionBrand = {
|
|
511
|
+
readonly [idpDefinitionBrand]: true;
|
|
512
|
+
};
|
|
513
|
+
type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
|
|
514
|
+
name: Name;
|
|
515
|
+
provider(providerName: string, clientName: ClientNames): BuiltinIdP;
|
|
516
|
+
} & IdpDefinitionBrand;
|
|
517
|
+
type IdPExternalConfig = {
|
|
518
|
+
name: string;
|
|
519
|
+
external: true;
|
|
520
|
+
};
|
|
521
|
+
type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
|
|
522
|
+
type IdPConfig = IdPOwnConfig | IdPExternalConfig;
|
|
523
|
+
//#endregion
|
|
524
|
+
//#region src/types/secrets.generated.d.ts
|
|
525
|
+
type Secrets = {
|
|
526
|
+
vaults: {
|
|
527
|
+
[x: string]: {
|
|
528
|
+
[x: string]: string | null | undefined;
|
|
529
|
+
};
|
|
530
|
+
};
|
|
531
|
+
options: {
|
|
532
|
+
ignoreNullishValues: boolean;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
535
|
+
type SecretsInput = Secrets;
|
|
536
|
+
//#endregion
|
|
537
|
+
//#region src/configure/services/secrets/types.d.ts
|
|
538
|
+
declare const secretsDefinitionBrand: unique symbol;
|
|
539
|
+
type SecretsDefinitionBrand = {
|
|
540
|
+
readonly [secretsDefinitionBrand]: true;
|
|
541
|
+
};
|
|
542
|
+
/** Type accepted by `AppConfig.secrets`. Only values returned by `defineSecretManager()` satisfy this. */
|
|
543
|
+
type SecretsConfig = SecretsInput & SecretsDefinitionBrand;
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region src/types/staticwebsite.generated.d.ts
|
|
546
|
+
type StaticWebsite = {
|
|
547
|
+
/** Static website name */name: string; /** Static website description */
|
|
548
|
+
description?: string | undefined; /** IP addresses allowed to access the website */
|
|
549
|
+
allowedIpAddresses?: string[] | undefined; /** Custom domains for the static website */
|
|
550
|
+
customDomains?: string[] | undefined;
|
|
551
|
+
};
|
|
552
|
+
type StaticWebsiteInput = StaticWebsite;
|
|
553
|
+
//#endregion
|
|
554
|
+
//#region src/configure/services/staticwebsite/types.d.ts
|
|
555
|
+
declare const staticWebsiteDefinitionBrand: unique symbol;
|
|
556
|
+
type StaticWebsiteDefinitionBrand = {
|
|
557
|
+
readonly [staticWebsiteDefinitionBrand]: true;
|
|
558
|
+
};
|
|
559
|
+
/** Type accepted by `AppConfig.staticWebsites`. Only values returned by `defineStaticWebSite()` satisfy this. */
|
|
560
|
+
type StaticWebsiteConfig = StaticWebsiteInput & StaticWebsiteDefinitionBrand;
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region src/types/app-config.generated.d.ts
|
|
563
|
+
type LogLevelEnum = "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILENT";
|
|
564
|
+
//#endregion
|
|
565
|
+
//#region src/configure/config/types.d.ts
|
|
566
|
+
type LogLevel = LogLevelEnum;
|
|
567
|
+
type LogLevelInput = LogLevel | (string & {});
|
|
568
|
+
type ExecutorServiceConfig = {
|
|
569
|
+
files: string[];
|
|
570
|
+
ignores?: string[];
|
|
571
|
+
};
|
|
572
|
+
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
573
|
+
type HttpAdapterServiceInput = {
|
|
574
|
+
files: string[];
|
|
575
|
+
ignores?: string[];
|
|
576
|
+
};
|
|
577
|
+
type ResolverServiceConfig = {
|
|
578
|
+
files: string[];
|
|
579
|
+
ignores?: string[];
|
|
580
|
+
};
|
|
581
|
+
type ResolverExternalConfig = {
|
|
582
|
+
external: true;
|
|
583
|
+
};
|
|
584
|
+
type ResolverServiceInput = {
|
|
585
|
+
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
586
|
+
};
|
|
587
|
+
type WorkflowServiceConfig = {
|
|
588
|
+
files: string[];
|
|
589
|
+
job_files?: string[];
|
|
590
|
+
ignores?: string[];
|
|
591
|
+
job_ignores?: string[];
|
|
592
|
+
};
|
|
593
|
+
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
594
|
+
/**
|
|
595
|
+
* Application configuration for `defineConfig()`.
|
|
596
|
+
*
|
|
597
|
+
* Key fields:
|
|
598
|
+
* - `name` (required): Application name
|
|
599
|
+
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
600
|
+
* - `auth`: Single auth config object (not an array)
|
|
601
|
+
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
602
|
+
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
603
|
+
* - `aiGateways`: Array of AI Gateway configs, e.g. `[gateway]`
|
|
604
|
+
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
605
|
+
*/
|
|
606
|
+
interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], AIGateways extends AIGatewayConfig[] = AIGatewayConfig[], Env extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
|
|
607
|
+
/** Application name (required). */
|
|
608
|
+
name: string;
|
|
609
|
+
/**
|
|
610
|
+
* Stable identifier used to track the application across renames.
|
|
611
|
+
* Managed by the SDK: auto-generated and written into `tailor.config.ts`
|
|
612
|
+
* on first `deploy`. Delete this field if you want the SDK to assign a
|
|
613
|
+
* new id on the next `deploy` — typical case: `tailor.config.ts` was
|
|
614
|
+
* copied from another project and the new application should not share
|
|
615
|
+
* the original's id. Existing resources are re-tagged with the new id;
|
|
616
|
+
* data is preserved.
|
|
617
|
+
*/
|
|
618
|
+
id?: string;
|
|
619
|
+
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
620
|
+
env?: Env;
|
|
621
|
+
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
622
|
+
cors?: string[];
|
|
623
|
+
/** IP addresses allowed to access the application. */
|
|
624
|
+
allowedIpAddresses?: string[];
|
|
625
|
+
/** Disable GraphQL introspection in production. */
|
|
626
|
+
disableIntrospection?: boolean;
|
|
627
|
+
/** TailorDB service configuration with type definition files. */
|
|
628
|
+
db?: TailorDBServiceInput;
|
|
629
|
+
/** Resolver service configuration with resolver files. */
|
|
630
|
+
resolver?: ResolverServiceInput;
|
|
631
|
+
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
632
|
+
idp?: Idp;
|
|
633
|
+
/** Auth configuration (single object, not an array). */
|
|
634
|
+
auth?: Auth;
|
|
635
|
+
/** Executor service configuration with executor files. */
|
|
636
|
+
executor?: ExecutorServiceInput;
|
|
637
|
+
/** Workflow service configuration with workflow files. */
|
|
638
|
+
workflow?: WorkflowServiceInput;
|
|
639
|
+
/** HTTP adapter service configuration with adapter files. */
|
|
640
|
+
httpAdapter?: HttpAdapterServiceInput;
|
|
641
|
+
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
642
|
+
staticWebsites?: StaticWebsites;
|
|
643
|
+
/** AI Gateway configurations. Must be an array, e.g. `[gateway]`. */
|
|
644
|
+
aiGateways?: AIGateways;
|
|
645
|
+
/** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
|
|
646
|
+
secrets?: SecretsConfig;
|
|
647
|
+
/**
|
|
648
|
+
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
649
|
+
* @default true
|
|
650
|
+
*/
|
|
651
|
+
inlineSourcemap?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Controls which `console.*` calls remain in bundled functions.
|
|
654
|
+
* @default "DEBUG"
|
|
655
|
+
*/
|
|
656
|
+
logLevel?: LogLevelInput;
|
|
657
|
+
}
|
|
658
|
+
//#endregion
|
|
659
|
+
//#region src/types/workflow.generated.d.ts
|
|
660
|
+
type RetryPolicy = {
|
|
661
|
+
/** Maximum number of retries (1-10) */maxRetries: number; /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
|
|
662
|
+
initialBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
|
|
663
|
+
maxBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Backoff multiplier (>= 1) */
|
|
664
|
+
backoffMultiplier: number;
|
|
665
|
+
};
|
|
666
|
+
type ConcurrencyPolicy = {
|
|
667
|
+
/** Maximum number of concurrent executions (1-1000) */maxConcurrentExecutions: number;
|
|
668
|
+
};
|
|
669
|
+
//#endregion
|
|
670
|
+
export { AIGatewayConfig as C, IdPInput as S, AIGatewayInput as T, IdPExternalConfig as _, ExecutorServiceInput as a, IdPGqlOperations as b, ResolverServiceInput as c, StaticWebsiteConfig as d, StaticWebsiteDefinitionBrand as f, IdPConfig as g, SecretsDefinitionBrand as h, ExecutorServiceConfig as i, WorkflowServiceConfig as l, SecretsConfig as m, RetryPolicy as n, ResolverExternalConfig as o, StaticWebsiteInput as p, AppConfig as r, ResolverServiceConfig as s, ConcurrencyPolicy as t, WorkflowServiceInput as u, IdpDefinitionBrand as v, AIGatewayDefinitionBrand as w, IdPGqlOperationsInput as x, IdPEmailConfig as y };
|
|
671
|
+
//# sourceMappingURL=workflow.generated-ClEjBYhm.d.mts.map
|
package/docs/cli/application.md
CHANGED
|
@@ -99,8 +99,6 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
99
99
|
|
|
100
100
|
Deploy your application by applying the Tailor configuration.
|
|
101
101
|
|
|
102
|
-
**Aliases:** `apply`
|
|
103
|
-
|
|
104
102
|
<!-- politty:command:deploy:description:end -->
|
|
105
103
|
|
|
106
104
|
<!-- politty:command:deploy:usage:start -->
|