@tailor-platform/sdk 1.22.0 → 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/dist/app-config-BNKHurwr.d.mts +174 -0
- package/dist/{application-CTQe2HSB.mjs → application-DThE2HW7.mjs} +200 -215
- package/dist/application-DThE2HW7.mjs.map +1 -0
- package/dist/application-P1by1htu.mjs +8 -0
- package/dist/{brand-DyPrAzpM.mjs → brand-64NrPh_e.mjs} +1 -1
- package/dist/{brand-DyPrAzpM.mjs.map → brand-64NrPh_e.mjs.map} +1 -1
- package/dist/cli/index.d.mts +0 -1
- package/dist/cli/index.mjs +7 -7
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +8 -9
- package/dist/cli/lib.mjs +7 -7
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.d.mts +0 -1
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +3 -3
- package/dist/configure/index.mjs.map +1 -1
- package/dist/enum-constants-B5Nl-yzx.mjs.map +1 -1
- package/dist/env-CHwmMyfF.d.mts +32 -0
- package/dist/file-utils-sEOwAdJ4.mjs.map +1 -1
- package/dist/{index-Cwi86SUR.d.mts → index-BrIZ1rm2.d.mts} +2 -3
- package/dist/{index-BiutQT7m.d.mts → index-Df0aH5zp.d.mts} +55 -5
- package/dist/{index-DPN_P0w3.d.mts → index-DhtKJmgi.d.mts} +2 -3
- package/dist/{index-ClS0NClx.d.mts → index-DkRJwNw2.d.mts} +2 -3
- package/dist/{index-BGPX26_D.d.mts → index-zZUL7_2B.d.mts} +2 -3
- package/dist/{interceptor-DiARwPfw.mjs → interceptor-B-0OmiDZ.mjs} +1 -1
- package/dist/{interceptor-DiARwPfw.mjs.map → interceptor-B-0OmiDZ.mjs.map} +1 -1
- package/dist/{job-CRavYLLk.mjs → job-CnqcfVTI.mjs} +2 -2
- package/dist/{job-CRavYLLk.mjs.map → job-CnqcfVTI.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +0 -1
- package/dist/kysely-type-CSlcwNFH.mjs.map +1 -1
- package/dist/{package-json-iVBhE5Ef.mjs → package-json-4G3gLWMd.mjs} +1 -1
- package/dist/{package-json-iVBhE5Ef.mjs.map → package-json-4G3gLWMd.mjs.map} +1 -1
- package/dist/package-json-BqvUKPBM.mjs +3 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +2 -3
- package/dist/plugin/builtin/file-utils/index.d.mts +2 -3
- package/dist/plugin/builtin/kysely-type/index.d.mts +2 -3
- package/dist/plugin/builtin/seed/index.d.mts +2 -3
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{types-bcuNRo1Y.d.mts → plugin-CE-BZZgX.d.mts} +1069 -1763
- package/dist/{query-Bz2oDGhw.mjs → query-CV5n7DRd.mjs} +496 -115
- package/dist/query-CV5n7DRd.mjs.map +1 -0
- package/dist/{schema-Cjm-OvPF.mjs → schema-0ByCZ2Ym.mjs} +2 -2
- package/dist/schema-0ByCZ2Ym.mjs.map +1 -0
- package/dist/{seed-CXvCW3Xc.mjs → seed-Cl5QXYsL.mjs} +13 -3
- package/dist/seed-Cl5QXYsL.mjs.map +1 -0
- package/dist/{telemetry-C46fds1l.mjs → telemetry-BPviAbME.mjs} +2 -2
- package/dist/{telemetry-C46fds1l.mjs.map → telemetry-BPviAbME.mjs.map} +1 -1
- package/dist/telemetry-Dq5FZUH0.mjs +3 -0
- package/dist/utils/test/index.d.mts +3 -4
- package/dist/utils/test/index.mjs +2 -2
- package/docs/cli/tailordb.md +1 -1
- package/docs/cli-reference.md +8 -8
- package/docs/services/auth.md +2 -2
- package/package.json +27 -25
- package/postinstall.mjs +4 -14
- package/dist/application-CTQe2HSB.mjs.map +0 -1
- package/dist/application-DdSu3baZ.mjs +0 -8
- package/dist/package-json-BI0ng3_5.mjs +0 -3
- package/dist/query-Bz2oDGhw.mjs.map +0 -1
- package/dist/schema-Cjm-OvPF.mjs.map +0 -1
- package/dist/seed-CXvCW3Xc.mjs.map +0 -1
- package/dist/telemetry-BAxP8-PR.mjs +0 -3
- package/dist/types-CBTSg-LK.mjs +0 -13
- package/dist/types-CBTSg-LK.mjs.map +0 -1
- package/dist/types-DVMQNdTs.d.mts +0 -246
- package/dist/user-defined.d.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#701](https://github.com/tailor-platform/sdk/pull/701) [`3ea08c0`](https://github.com/tailor-platform/sdk/commit/3ea08c0e2c7ea49b43e67e6c83ac87d4b7e6be08) Thanks [@r253hmdryou](https://github.com/r253hmdryou)! - Add `--file` input support to `tailor-sdk query`.
|
|
8
|
+
|
|
9
|
+
This allows loading SQL or GraphQL queries from a file instead of passing the
|
|
10
|
+
query text directly via `--query`.
|
|
11
|
+
|
|
12
|
+
- [#708](https://github.com/tailor-platform/sdk/pull/708) [`a67a1e4`](https://github.com/tailor-platform/sdk/commit/a67a1e4f49de8c550db69d744d305e6ab3aaece5) Thanks [@r253hmdryou](https://github.com/r253hmdryou)! - Add `tailor-sdk query --edit` to open a temporary SQL or GraphQL file in your preferred editor before executing it, and honor `VISUAL` as well as `EDITOR` when choosing that editor.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#685](https://github.com/tailor-platform/sdk/pull/685) [`d00cea8`](https://github.com/tailor-platform/sdk/commit/d00cea879a094952b2d02fb3d844ef9157beccbe) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix CI race condition where concurrent PR runs delete each other's e2e workspaces by scoping cleanup to the current GitHub Actions run ID
|
|
17
|
+
|
|
18
|
+
- [#681](https://github.com/tailor-platform/sdk/pull/681) [`c333a70`](https://github.com/tailor-platform/sdk/commit/c333a700e1b409f0fd920c32fe2dd366b9e3df96) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): pin dependencies
|
|
19
|
+
|
|
20
|
+
- [#682](https://github.com/tailor-platform/sdk/pull/682) [`004cc5a`](https://github.com/tailor-platform/sdk/commit/004cc5a2db0b95049d5d3fff1f568018ff7ac268) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update actions/checkout action to v6.0.2
|
|
21
|
+
|
|
22
|
+
- [#683](https://github.com/tailor-platform/sdk/pull/683) [`551f234`](https://github.com/tailor-platform/sdk/commit/551f234c3e594c7b191ff99207a2564182b62908) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.70
|
|
23
|
+
|
|
24
|
+
- [#684](https://github.com/tailor-platform/sdk/pull/684) [`48dda57`](https://github.com/tailor-platform/sdk/commit/48dda572fe70bb6504eac034ba32be5cb37a842e) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @tailor-platform/function-types to v0.8.2
|
|
25
|
+
|
|
26
|
+
- [#686](https://github.com/tailor-platform/sdk/pull/686) [`0ffe758`](https://github.com/tailor-platform/sdk/commit/0ffe7584ba2c58c51ae27f544dafc8d6c0e0f52d) Thanks [@renovate](https://github.com/apps/renovate)! - Update @typescript/native-preview to v7.0.0-dev.20260306.1 and remove deprecated tsconfig options (`esModuleInterop`, `allowSyntheticDefaultImports`) for tsgo 7.x compatibility
|
|
27
|
+
|
|
28
|
+
- [#687](https://github.com/tailor-platform/sdk/pull/687) [`5e756a8`](https://github.com/tailor-platform/sdk/commit/5e756a874820594ebd86565607c4e23902e9c22a) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua to v2.56.7
|
|
29
|
+
|
|
30
|
+
- [#688](https://github.com/tailor-platform/sdk/pull/688) [`b9b0759`](https://github.com/tailor-platform/sdk/commit/b9b0759479b6ec6f48a8b09d353126e511936762) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency pkg-pr-new to v0.0.65
|
|
31
|
+
|
|
32
|
+
- [#689](https://github.com/tailor-platform/sdk/pull/689) [`ccd55f7`](https://github.com/tailor-platform/sdk/commit/ccd55f7814f14ac024f3da434f797d9a4c088007) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency publint to v0.3.18
|
|
33
|
+
|
|
34
|
+
- [#690](https://github.com/tailor-platform/sdk/pull/690) [`dc2111a`](https://github.com/tailor-platform/sdk/commit/dc2111a79c20a4bfcefccaf2fb6b57480bc32542) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency rhysd/actionlint to v1.7.11
|
|
35
|
+
|
|
36
|
+
- [#694](https://github.com/tailor-platform/sdk/pull/694) [`b4a8c52`](https://github.com/tailor-platform/sdk/commit/b4a8c523c6ead4f2bd672336540db0f1182b04a6) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update eslint monorepo to v9.39.4
|
|
37
|
+
|
|
38
|
+
- [#695](https://github.com/tailor-platform/sdk/pull/695) [`e43ab99`](https://github.com/tailor-platform/sdk/commit/e43ab993d181abb837c70a031cb1a5cc95b1b298) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update suzuki-shunsuke/commit-action action to v0.1.1
|
|
39
|
+
|
|
40
|
+
- [#696](https://github.com/tailor-platform/sdk/pull/696) [`3b93367`](https://github.com/tailor-platform/sdk/commit/3b93367c23ebda117e277c5aa12bb8a30443b0ea) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update vitest monorepo to v4.0.18
|
|
41
|
+
|
|
42
|
+
- [#697](https://github.com/tailor-platform/sdk/pull/697) [`6c48ec7`](https://github.com/tailor-platform/sdk/commit/6c48ec745ffd07420ab1591ef9c94e2d41fc5e0f) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency confbox to v0.2.4
|
|
43
|
+
|
|
44
|
+
- [#698](https://github.com/tailor-platform/sdk/pull/698) [`ebeb9a3`](https://github.com/tailor-platform/sdk/commit/ebeb9a31fae493d45f6c010301b83283001d2fba) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency kysely to v0.28.11
|
|
45
|
+
|
|
46
|
+
- [#699](https://github.com/tailor-platform/sdk/pull/699) [`7639610`](https://github.com/tailor-platform/sdk/commit/7639610d234c27b7df64e87144b7400391272610) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency rolldown to v1.0.0-rc.7
|
|
47
|
+
|
|
48
|
+
- [#703](https://github.com/tailor-platform/sdk/pull/703) [`6b19c90`](https://github.com/tailor-platform/sdk/commit/6b19c90acc2d505766c7c1c5c7caae3f18ebfeb7) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency serve to v14.2.6
|
|
49
|
+
|
|
50
|
+
- [#704](https://github.com/tailor-platform/sdk/pull/704) [`a963287`](https://github.com/tailor-platform/sdk/commit/a9632875973c1590b0232ba1bb0fe34feb219bc2) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency type-fest to v5.4.4
|
|
51
|
+
|
|
52
|
+
- [#705](https://github.com/tailor-platform/sdk/pull/705) [`40a654c`](https://github.com/tailor-platform/sdk/commit/40a654c757b69f8484bea44c763394179b926be4) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260307.1
|
|
53
|
+
|
|
54
|
+
- [#706](https://github.com/tailor-platform/sdk/pull/706) [`e6870b0`](https://github.com/tailor-platform/sdk/commit/e6870b06807a419dcff7602a8836ff250c31574e) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency zod to v4.3.6
|
|
55
|
+
|
|
56
|
+
- [#707](https://github.com/tailor-platform/sdk/pull/707) [`08b48d8`](https://github.com/tailor-platform/sdk/commit/08b48d8ba979188388a9135105a7042f9f64e259) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update actions/setup-node action to v6.3.0
|
|
57
|
+
|
|
58
|
+
- [#658](https://github.com/tailor-platform/sdk/pull/658) [`4aadd81`](https://github.com/tailor-platform/sdk/commit/4aadd812e58256b19ca5dcd21a9ac37652910728) Thanks [@toiroakr](https://github.com/toiroakr)! - Generate TypeScript types from Zod schemas using zinfer, replacing manual z.infer/z.input/z.output usage
|
|
59
|
+
|
|
60
|
+
## 1.23.0
|
|
61
|
+
|
|
62
|
+
### Minor Changes
|
|
63
|
+
|
|
64
|
+
- [#661](https://github.com/tailor-platform/sdk/pull/661) [`03f33d9`](https://github.com/tailor-platform/sdk/commit/03f33d9c3d789c738c99600148aa52f2586017ea) Thanks [@r253hmdryou](https://github.com/r253hmdryou)! - Add interactive REPL mode to `tailor-sdk query`.
|
|
65
|
+
|
|
66
|
+
This allows running SQL queries statement-by-statement and GraphQL queries in an
|
|
67
|
+
interactive session by omitting `--query`.
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- [#677](https://github.com/tailor-platform/sdk/pull/677) [`cc6db64`](https://github.com/tailor-platform/sdk/commit/cc6db647361309021268543c291e1f13e9a6cb1c) Thanks [@dqn](https://github.com/dqn)! - Write tailor.d.ts to project root (next to config file) instead of SDK dist directory
|
|
72
|
+
|
|
73
|
+
- [#680](https://github.com/tailor-platform/sdk/pull/680) [`4d421a8`](https://github.com/tailor-platform/sdk/commit/4d421a8b904b939813b50fb68fff4bafccd10541) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): lock file maintenance
|
|
74
|
+
|
|
75
|
+
- [#691](https://github.com/tailor-platform/sdk/pull/691) [`008b2b6`](https://github.com/tailor-platform/sdk/commit/008b2b68d750a0799118087e09418d1f16574bb3) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency suzuki-shunsuke/ghalint to v1.5.5
|
|
76
|
+
|
|
3
77
|
## 1.22.0
|
|
4
78
|
|
|
5
79
|
### Minor Changes
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { S as TailorDBServiceInput, T as AuthConfig, kt as BuiltinIdP } from "./plugin-CE-BZZgX.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/types/idp.generated.d.ts
|
|
4
|
+
|
|
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
|
+
type IdPInput = {
|
|
24
|
+
/** IdP service name */
|
|
25
|
+
name: string;
|
|
26
|
+
/** Authorization mode for IdP API access */
|
|
27
|
+
authorization: "insecure" | "loggedIn" | {
|
|
28
|
+
cel: string;
|
|
29
|
+
};
|
|
30
|
+
/** OAuth2 client names that can use this IdP */
|
|
31
|
+
clients: string[];
|
|
32
|
+
/** UI language for IdP pages */
|
|
33
|
+
lang?: "en" | "ja" | undefined;
|
|
34
|
+
/** User authentication policy configuration */
|
|
35
|
+
userAuthPolicy?: {
|
|
36
|
+
useNonEmailIdentifier?: boolean | undefined;
|
|
37
|
+
allowSelfPasswordReset?: boolean | undefined;
|
|
38
|
+
passwordRequireUppercase?: boolean | undefined;
|
|
39
|
+
passwordRequireLowercase?: boolean | undefined;
|
|
40
|
+
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
41
|
+
passwordRequireNumeric?: boolean | undefined;
|
|
42
|
+
passwordMinLength?: number | undefined;
|
|
43
|
+
passwordMaxLength?: number | undefined;
|
|
44
|
+
allowedEmailDomains?: string[] | undefined;
|
|
45
|
+
allowGoogleOauth?: boolean | undefined;
|
|
46
|
+
allowMicrosoftOauth?: boolean | undefined;
|
|
47
|
+
disablePasswordAuth?: boolean | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
/** Enable publishing user lifecycle events */
|
|
50
|
+
publishUserEvents?: boolean | undefined;
|
|
51
|
+
/** 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;
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/types/idp.d.ts
|
|
62
|
+
declare const idpDefinitionBrand: unique symbol;
|
|
63
|
+
type IdpDefinitionBrand = {
|
|
64
|
+
readonly [idpDefinitionBrand]: true;
|
|
65
|
+
};
|
|
66
|
+
type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
|
|
67
|
+
name: Name;
|
|
68
|
+
provider(providerName: string, clientName: ClientNames): BuiltinIdP;
|
|
69
|
+
} & IdpDefinitionBrand;
|
|
70
|
+
type IdPExternalConfig = {
|
|
71
|
+
name: string;
|
|
72
|
+
external: true;
|
|
73
|
+
};
|
|
74
|
+
type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
|
|
75
|
+
type IdPConfig = IdPOwnConfig | IdPExternalConfig;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/types/staticwebsite.generated.d.ts
|
|
78
|
+
type StaticWebsite = {
|
|
79
|
+
/** Static website name */
|
|
80
|
+
name: string;
|
|
81
|
+
/** Static website description */
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
/** IP addresses allowed to access the website */
|
|
84
|
+
allowedIpAddresses?: string[] | undefined;
|
|
85
|
+
};
|
|
86
|
+
type StaticWebsiteInput = StaticWebsite;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/configure/services/staticwebsite/index.d.ts
|
|
89
|
+
declare const staticWebsiteDefinitionBrand: unique symbol;
|
|
90
|
+
type StaticWebsiteDefinitionBrand = {
|
|
91
|
+
readonly [staticWebsiteDefinitionBrand]: true;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Define a static website configuration for the Tailor SDK.
|
|
95
|
+
* @param name - Static website name
|
|
96
|
+
* @param config - Static website configuration
|
|
97
|
+
* @returns Defined static website
|
|
98
|
+
*/
|
|
99
|
+
declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
|
|
100
|
+
readonly name: string;
|
|
101
|
+
readonly url: `${string}:url`;
|
|
102
|
+
readonly description?: string | undefined;
|
|
103
|
+
readonly allowedIpAddresses?: string[] | undefined;
|
|
104
|
+
} & StaticWebsiteDefinitionBrand;
|
|
105
|
+
type StaticWebsiteConfig = Omit<ReturnType<typeof defineStaticWebSite>, "url">;
|
|
106
|
+
//#endregion
|
|
107
|
+
//#region src/types/app-config.d.ts
|
|
108
|
+
type ExecutorServiceConfig = {
|
|
109
|
+
files: string[];
|
|
110
|
+
ignores?: string[];
|
|
111
|
+
};
|
|
112
|
+
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
113
|
+
type ResolverServiceConfig = {
|
|
114
|
+
files: string[];
|
|
115
|
+
ignores?: string[];
|
|
116
|
+
};
|
|
117
|
+
type ResolverExternalConfig = {
|
|
118
|
+
external: true;
|
|
119
|
+
};
|
|
120
|
+
type ResolverServiceInput = {
|
|
121
|
+
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
122
|
+
};
|
|
123
|
+
type WorkflowServiceConfig = {
|
|
124
|
+
files: string[];
|
|
125
|
+
job_files?: string[];
|
|
126
|
+
ignores?: string[];
|
|
127
|
+
job_ignores?: string[];
|
|
128
|
+
};
|
|
129
|
+
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
130
|
+
/**
|
|
131
|
+
* Application configuration for `defineConfig()`.
|
|
132
|
+
*
|
|
133
|
+
* Key fields:
|
|
134
|
+
* - `name` (required): Application name
|
|
135
|
+
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
136
|
+
* - `auth`: Single auth config object (not an array)
|
|
137
|
+
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
138
|
+
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
139
|
+
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
140
|
+
*/
|
|
141
|
+
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>> {
|
|
142
|
+
/** Application name (required). */
|
|
143
|
+
name: string;
|
|
144
|
+
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
145
|
+
env?: Env;
|
|
146
|
+
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
147
|
+
cors?: string[];
|
|
148
|
+
/** IP addresses allowed to access the application. */
|
|
149
|
+
allowedIpAddresses?: string[];
|
|
150
|
+
/** Disable GraphQL introspection in production. */
|
|
151
|
+
disableIntrospection?: boolean;
|
|
152
|
+
/** TailorDB service configuration with type definition files. */
|
|
153
|
+
db?: TailorDBServiceInput;
|
|
154
|
+
/** Resolver service configuration with resolver files. */
|
|
155
|
+
resolver?: ResolverServiceInput;
|
|
156
|
+
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
157
|
+
idp?: Idp;
|
|
158
|
+
/** Auth configuration (single object, not an array). */
|
|
159
|
+
auth?: Auth;
|
|
160
|
+
/** Executor service configuration with executor files. */
|
|
161
|
+
executor?: ExecutorServiceInput;
|
|
162
|
+
/** Workflow service configuration with workflow files. */
|
|
163
|
+
workflow?: WorkflowServiceInput;
|
|
164
|
+
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
165
|
+
staticWebsites?: StaticWebsites;
|
|
166
|
+
/**
|
|
167
|
+
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
168
|
+
* @default true
|
|
169
|
+
*/
|
|
170
|
+
inlineSourcemap?: boolean;
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
export { ResolverServiceConfig as a, WorkflowServiceInput as c, IdPConfig as d, IdPExternalConfig as f, IdPInput as g, IdPGqlOperationsInput as h, ResolverExternalConfig as i, StaticWebsiteConfig as l, IdPGqlOperations as m, ExecutorServiceConfig as n, ResolverServiceInput as o, IdpDefinitionBrand as p, ExecutorServiceInput as r, WorkflowServiceConfig as s, AppConfig as t, defineStaticWebSite as u };
|
|
174
|
+
//# sourceMappingURL=app-config-BNKHurwr.d.mts.map
|