@tailor-platform/sdk 1.23.0 → 1.25.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/dist/app-config-QzNOFnEy.d.mts +197 -0
  3. package/dist/{application-CTQe2HSB.mjs → application-CxDvCZts.mjs} +226 -220
  4. package/dist/application-CxDvCZts.mjs.map +1 -0
  5. package/dist/application-EQCsho6Z.mjs +8 -0
  6. package/dist/{brand-DyPrAzpM.mjs → brand-j6C6_sGq.mjs} +1 -1
  7. package/dist/{brand-DyPrAzpM.mjs.map → brand-j6C6_sGq.mjs.map} +1 -1
  8. package/dist/cli/index.mjs +9 -9
  9. package/dist/cli/index.mjs.map +1 -1
  10. package/dist/cli/lib.d.mts +7 -7
  11. package/dist/cli/lib.mjs +10 -10
  12. package/dist/cli/lib.mjs.map +1 -1
  13. package/dist/configure/index.d.mts +5 -4
  14. package/dist/configure/index.mjs +30 -4
  15. package/dist/configure/index.mjs.map +1 -1
  16. package/dist/{enum-constants-B5Nl-yzx.mjs → enum-constants-BxdLbhsW.mjs} +1 -1
  17. package/dist/enum-constants-BxdLbhsW.mjs.map +1 -0
  18. package/dist/env-jndw86T4.d.mts +32 -0
  19. package/dist/{file-utils-sEOwAdJ4.mjs → file-utils-C2r3AVbI.mjs} +1 -1
  20. package/dist/{file-utils-sEOwAdJ4.mjs.map → file-utils-C2r3AVbI.mjs.map} +1 -1
  21. package/dist/{index-CU2kZzKa.d.mts → index-BUnLWUKQ.d.mts} +66 -15
  22. package/dist/{index-BSXclved.d.mts → index-DZRZdh71.d.mts} +2 -2
  23. package/dist/{index-lIALNMi_.d.mts → index-Do7zo7z-.d.mts} +2 -2
  24. package/dist/{index-CO-jsOMb.d.mts → index-DoxGF8-i.d.mts} +2 -2
  25. package/dist/{index-DQlsfhpg.d.mts → index-VZq4IAEK.d.mts} +2 -2
  26. package/dist/{interceptor-DiARwPfw.mjs → interceptor-DVy32eIG.mjs} +1 -1
  27. package/dist/{interceptor-DiARwPfw.mjs.map → interceptor-DVy32eIG.mjs.map} +1 -1
  28. package/dist/{job-CRavYLLk.mjs → job-CnLRQFrk.mjs} +2 -2
  29. package/dist/{job-CRavYLLk.mjs.map → job-CnLRQFrk.mjs.map} +1 -1
  30. package/dist/{kysely-type-CSlcwNFH.mjs → kysely-type-DzLBuVp6.mjs} +1 -1
  31. package/dist/kysely-type-DzLBuVp6.mjs.map +1 -0
  32. package/dist/package-json-BKA36WTo.mjs +3 -0
  33. package/dist/{package-json-iVBhE5Ef.mjs → package-json-DnbGCOkg.mjs} +1 -1
  34. package/dist/{package-json-iVBhE5Ef.mjs.map → package-json-DnbGCOkg.mjs.map} +1 -1
  35. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -2
  36. package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
  37. package/dist/plugin/builtin/file-utils/index.d.mts +2 -2
  38. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  39. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -2
  40. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  41. package/dist/plugin/builtin/seed/index.d.mts +2 -2
  42. package/dist/plugin/builtin/seed/index.mjs +1 -1
  43. package/dist/plugin/index.d.mts +2 -1
  44. package/dist/plugin/index.mjs.map +1 -1
  45. package/dist/{types--G4ilVmx.d.mts → plugin-3sT6Tcq0.d.mts} +1068 -1761
  46. package/dist/{query-BLQBOaAM.mjs → query-c9RCJduH.mjs} +451 -60
  47. package/dist/query-c9RCJduH.mjs.map +1 -0
  48. package/dist/{schema-Cjm-OvPF.mjs → schema-DOx_W_s2.mjs} +2 -2
  49. package/dist/schema-DOx_W_s2.mjs.map +1 -0
  50. package/dist/seed/index.d.mts +29 -0
  51. package/dist/seed/index.mjs +89 -0
  52. package/dist/seed/index.mjs.map +1 -0
  53. package/dist/{seed-CXvCW3Xc.mjs → seed-DkKAheSe.mjs} +76 -9
  54. package/dist/seed-DkKAheSe.mjs.map +1 -0
  55. package/dist/telemetry-J6dpByo2.mjs +3 -0
  56. package/dist/{telemetry-C46fds1l.mjs → telemetry-d_lgTL33.mjs} +2 -2
  57. package/dist/{telemetry-C46fds1l.mjs.map → telemetry-d_lgTL33.mjs.map} +1 -1
  58. package/dist/utils/test/index.d.mts +3 -3
  59. package/dist/utils/test/index.mjs +2 -2
  60. package/docs/cli/tailordb.md +1 -1
  61. package/docs/cli-reference.md +8 -8
  62. package/package.json +31 -24
  63. package/dist/application-CTQe2HSB.mjs.map +0 -1
  64. package/dist/application-DdSu3baZ.mjs +0 -8
  65. package/dist/enum-constants-B5Nl-yzx.mjs.map +0 -1
  66. package/dist/kysely-type-CSlcwNFH.mjs.map +0 -1
  67. package/dist/package-json-BI0ng3_5.mjs +0 -3
  68. package/dist/query-BLQBOaAM.mjs.map +0 -1
  69. package/dist/schema-Cjm-OvPF.mjs.map +0 -1
  70. package/dist/seed-CXvCW3Xc.mjs.map +0 -1
  71. package/dist/telemetry-BAxP8-PR.mjs +0 -3
  72. package/dist/types-CBTSg-LK.mjs +0 -13
  73. package/dist/types-CBTSg-LK.mjs.map +0 -1
  74. package/dist/types-IR-hw0-y.d.mts +0 -245
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.25.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#670](https://github.com/tailor-platform/sdk/pull/670) [`0659515`](https://github.com/tailor-platform/sdk/commit/0659515f2aa2db5fa0e23c2cfe3e3af04dec2b3d) Thanks [@toiroakr](https://github.com/toiroakr)! - Add `validate` subcommand to generated seed `exec.mjs` for validating JSONL data against schema definitions without deploying. Add `@tailor-platform/sdk/seed` export that provides `defineSchema` (re-exported from `@toiroakr/lines-db`) and `validateSeedData` wrapper to avoid phantom dependency issues.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#711](https://github.com/tailor-platform/sdk/pull/711) [`60d4803`](https://github.com/tailor-platform/sdk/commit/60d48038a5faa80846f8e7ce46a45fbe49e0cbdc) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update changesets/action action to v1.7.0
12
+
13
+ - [#713](https://github.com/tailor-platform/sdk/pull/713) [`a20860d`](https://github.com/tailor-platform/sdk/commit/a20860d67cda7a16f009fc11e7f06e488b54189a) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @changesets/changelog-github to v0.6.0
14
+
15
+ - [#715](https://github.com/tailor-platform/sdk/pull/715) [`1ae10fc`](https://github.com/tailor-platform/sdk/commit/1ae10fc99e953f3e44e23a7ad75d9c8c1fe6e8ed) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @changesets/cli to v2.30.0
16
+
17
+ - [#718](https://github.com/tailor-platform/sdk/pull/718) [`1f85c44`](https://github.com/tailor-platform/sdk/commit/1f85c44cb2bf20a932b4c002ffec9d8e83b696b5) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-registry to v4.481.0
18
+
19
+ - [#720](https://github.com/tailor-platform/sdk/pull/720) [`681daa4`](https://github.com/tailor-platform/sdk/commit/681daa473d7bce4cda8e12fa9525175c2d19e4ad) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-renovate-config to v2.11.0
20
+
21
+ - [#721](https://github.com/tailor-platform/sdk/pull/721) [`aa7d7ef`](https://github.com/tailor-platform/sdk/commit/aa7d7ef407cbe8d022f104589fc331db70788336) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency bufbuild/buf to v1.66.1
22
+
23
+ - [#652](https://github.com/tailor-platform/sdk/pull/652) [`988d5af`](https://github.com/tailor-platform/sdk/commit/988d5af6031d6a4373140590710186edef54529f) Thanks [@riku99](https://github.com/riku99)! - Add declarative secret management in tailor.config.ts via defineSecretManager() API
24
+
25
+ ## 1.24.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#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`.
30
+
31
+ This allows loading SQL or GraphQL queries from a file instead of passing the
32
+ query text directly via `--query`.
33
+
34
+ - [#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.
35
+
36
+ ### Patch Changes
37
+
38
+ - [#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
39
+
40
+ - [#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
41
+
42
+ - [#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
43
+
44
+ - [#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
45
+
46
+ - [#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
47
+
48
+ - [#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
49
+
50
+ - [#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
51
+
52
+ - [#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
53
+
54
+ - [#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
55
+
56
+ - [#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
57
+
58
+ - [#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
59
+
60
+ - [#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
61
+
62
+ - [#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
63
+
64
+ - [#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
65
+
66
+ - [#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
67
+
68
+ - [#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
69
+
70
+ - [#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
71
+
72
+ - [#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
73
+
74
+ - [#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
75
+
76
+ - [#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
77
+
78
+ - [#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
79
+
80
+ - [#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
81
+
3
82
  ## 1.23.0
4
83
 
5
84
  ### Minor Changes
@@ -0,0 +1,197 @@
1
+ import { S as TailorDBServiceInput, T as AuthConfig, kt as BuiltinIdP } from "./plugin-3sT6Tcq0.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/configure/services/secrets/index.d.ts
78
+ declare const secretsDefinitionBrand: unique symbol;
79
+ type SecretsDefinitionBrand = {
80
+ readonly [secretsDefinitionBrand]: true;
81
+ };
82
+ type SecretsVaultInput = Record<string, string>;
83
+ type SecretsInput = Record<string, SecretsVaultInput>;
84
+ type DefinedSecrets<T extends SecretsInput> = {
85
+ get<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secret: S): Promise<string | undefined>;
86
+ getAll<V extends Extract<keyof T, string>, S extends Extract<keyof T[V], string>>(vault: V, secrets: readonly S[]): Promise<(string | undefined)[]>;
87
+ } & SecretsDefinitionBrand;
88
+ /** Type accepted by `AppConfig.secrets`. Only values returned by `defineSecretManager()` satisfy this. */
89
+ type SecretsConfig = Omit<ReturnType<typeof defineSecretManager>, "get" | "getAll">;
90
+ /**
91
+ * Define secrets configuration for the Tailor SDK.
92
+ * Each key is a vault name, and its value is a record of secret name to secret value.
93
+ * @param config - Secrets configuration mapping vault names to their secrets
94
+ * @returns Defined secrets with typed runtime access methods
95
+ */
96
+ declare function defineSecretManager<const T extends SecretsInput>(config: T): DefinedSecrets<T>;
97
+ //#endregion
98
+ //#region src/types/staticwebsite.generated.d.ts
99
+ type StaticWebsite = {
100
+ /** Static website name */
101
+ name: string;
102
+ /** Static website description */
103
+ description?: string | undefined;
104
+ /** IP addresses allowed to access the website */
105
+ allowedIpAddresses?: string[] | undefined;
106
+ };
107
+ type StaticWebsiteInput = StaticWebsite;
108
+ //#endregion
109
+ //#region src/configure/services/staticwebsite/index.d.ts
110
+ declare const staticWebsiteDefinitionBrand: unique symbol;
111
+ type StaticWebsiteDefinitionBrand = {
112
+ readonly [staticWebsiteDefinitionBrand]: true;
113
+ };
114
+ /**
115
+ * Define a static website configuration for the Tailor SDK.
116
+ * @param name - Static website name
117
+ * @param config - Static website configuration
118
+ * @returns Defined static website
119
+ */
120
+ declare function defineStaticWebSite(name: string, config: Omit<StaticWebsiteInput, "name">): {
121
+ readonly name: string;
122
+ readonly url: `${string}:url`;
123
+ readonly description?: string | undefined;
124
+ readonly allowedIpAddresses?: string[] | undefined;
125
+ } & StaticWebsiteDefinitionBrand;
126
+ type StaticWebsiteConfig = Omit<ReturnType<typeof defineStaticWebSite>, "url">;
127
+ //#endregion
128
+ //#region src/types/app-config.d.ts
129
+ type ExecutorServiceConfig = {
130
+ files: string[];
131
+ ignores?: string[];
132
+ };
133
+ type ExecutorServiceInput = ExecutorServiceConfig;
134
+ type ResolverServiceConfig = {
135
+ files: string[];
136
+ ignores?: string[];
137
+ };
138
+ type ResolverExternalConfig = {
139
+ external: true;
140
+ };
141
+ type ResolverServiceInput = {
142
+ [namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
143
+ };
144
+ type WorkflowServiceConfig = {
145
+ files: string[];
146
+ job_files?: string[];
147
+ ignores?: string[];
148
+ job_ignores?: string[];
149
+ };
150
+ type WorkflowServiceInput = WorkflowServiceConfig;
151
+ /**
152
+ * Application configuration for `defineConfig()`.
153
+ *
154
+ * Key fields:
155
+ * - `name` (required): Application name
156
+ * - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
157
+ * - `auth`: Single auth config object (not an array)
158
+ * - `idp`: Array of IdP configs, e.g. `[myIdp]`
159
+ * - `staticWebsites`: Array of static website configs, e.g. `[website]`
160
+ * - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
161
+ */
162
+ 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>> {
163
+ /** Application name (required). */
164
+ name: string;
165
+ /** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
166
+ env?: Env;
167
+ /** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
168
+ cors?: string[];
169
+ /** IP addresses allowed to access the application. */
170
+ allowedIpAddresses?: string[];
171
+ /** Disable GraphQL introspection in production. */
172
+ disableIntrospection?: boolean;
173
+ /** TailorDB service configuration with type definition files. */
174
+ db?: TailorDBServiceInput;
175
+ /** Resolver service configuration with resolver files. */
176
+ resolver?: ResolverServiceInput;
177
+ /** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
178
+ idp?: Idp;
179
+ /** Auth configuration (single object, not an array). */
180
+ auth?: Auth;
181
+ /** Executor service configuration with executor files. */
182
+ executor?: ExecutorServiceInput;
183
+ /** Workflow service configuration with workflow files. */
184
+ workflow?: WorkflowServiceInput;
185
+ /** Static website configurations. Must be an array, e.g. `[website]`. */
186
+ staticWebsites?: StaticWebsites;
187
+ /** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
188
+ secrets?: SecretsConfig;
189
+ /**
190
+ * Enable inline sourcemaps in bundled functions for better error stack traces.
191
+ * @default true
192
+ */
193
+ inlineSourcemap?: boolean;
194
+ }
195
+ //#endregion
196
+ export { IdPGqlOperationsInput as _, ResolverServiceConfig as a, WorkflowServiceInput as c, SecretsConfig as d, defineSecretManager as f, IdPGqlOperations as g, IdpDefinitionBrand as h, ResolverExternalConfig as i, StaticWebsiteConfig as l, IdPExternalConfig as m, ExecutorServiceConfig as n, ResolverServiceInput as o, IdPConfig as p, ExecutorServiceInput as r, WorkflowServiceConfig as s, AppConfig as t, defineStaticWebSite as u, IdPInput as v };
197
+ //# sourceMappingURL=app-config-QzNOFnEy.d.mts.map