@tailor-platform/sdk 1.32.1 → 1.33.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 +95 -0
- package/dist/{application-p2GujXmg.mjs → application-CYPU-WIc.mjs} +58 -43
- package/dist/application-CYPU-WIc.mjs.map +1 -0
- package/dist/application-dnB8CQiT.mjs +4 -0
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +28 -35
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +104 -12
- package/dist/cli/lib.mjs +7 -13
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.mjs +0 -1
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/{client-D5P1myz0.mjs → client-CYGsf3Zl.mjs} +91 -27
- package/dist/client-CYGsf3Zl.mjs.map +1 -0
- package/dist/{client-gpRgZl1b.mjs → client-ea1w8SmG.mjs} +1 -4
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +81 -12
- package/dist/configure/index.mjs.map +1 -1
- package/dist/crash-report-CbueUPaP.mjs +4 -0
- package/dist/{crash-report-DnwITWeV.mjs → crash-report-OXafT1iS.mjs} +3 -3
- package/dist/{crash-report-DnwITWeV.mjs.map → crash-report-OXafT1iS.mjs.map} +1 -1
- package/dist/{enum-constants-CkKARYb7.mjs → enum-constants-DI85-fPE.mjs} +2 -1
- package/dist/{enum-constants-CkKARYb7.mjs.map → enum-constants-DI85-fPE.mjs.map} +1 -1
- package/dist/{env-BZLTIlIo.d.mts → env-BvIWsJxg.d.mts} +2 -2
- package/dist/{file-utils-D2TxR_kj.mjs → file-utils-C4rXlOVt.mjs} +2 -1
- package/dist/{file-utils-D2TxR_kj.mjs.map → file-utils-C4rXlOVt.mjs.map} +1 -1
- package/dist/{index-CgMytw2A.d.mts → index-0H-YH8Ya.d.mts} +3 -2
- package/dist/{index-vVGamLOw.d.mts → index-BM2SqNfO.d.mts} +3 -2
- package/dist/{index-CoReoodF.d.mts → index-BU6fmwJC.d.mts} +3 -2
- package/dist/{index-BYk_9R3S.d.mts → index-DlivLpTN.d.mts} +145 -32
- package/dist/{index-BQKAzTPA.d.mts → index-mAV9kYJA.d.mts} +3 -2
- package/dist/{interceptor-1LL1gBsF.mjs → interceptor-f7slMkCC.mjs} +1 -2
- package/dist/{interceptor-1LL1gBsF.mjs.map → interceptor-f7slMkCC.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +5 -1
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-BK0b4Rqt.mjs → kysely-type-BwMqaL3z.mjs} +18 -7
- package/dist/kysely-type-BwMqaL3z.mjs.map +1 -0
- package/dist/{package-json-VqyFvGiP.mjs → package-json-CfUqjJaQ.mjs} +1 -1
- package/dist/{package-json-VqyFvGiP.mjs.map → package-json-CfUqjJaQ.mjs.map} +1 -1
- package/dist/package-json-D5Km1jjt.mjs +4 -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 +2 -2
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{plugin-IIDZW9GG.d.mts → plugin-DQqzlulP.d.mts} +46 -33
- package/dist/{runtime-7DOyTTxR.mjs → runtime-CDvdBV66.mjs} +1032 -306
- package/dist/runtime-CDvdBV66.mjs.map +1 -0
- package/dist/{schema-BITbkmq3.mjs → schema-D27cW0Ca.mjs} +2 -1
- package/dist/schema-D27cW0Ca.mjs.map +1 -0
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-BXrSEJbv.mjs → seed-BZIFDG27.mjs} +11 -3
- package/dist/seed-BZIFDG27.mjs.map +1 -0
- package/dist/telemetry-C508zIi1.mjs +4 -0
- package/dist/{telemetry-B4sp-dD2.mjs → telemetry-CREcGK8y.mjs} +2 -2
- package/dist/{telemetry-B4sp-dD2.mjs.map → telemetry-CREcGK8y.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +0 -2
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/{workflow.generated-C2A5Ye0m.d.mts → workflow.generated-u9MgzqbM.d.mts} +14 -3
- package/docs/cli/application.md +17 -0
- package/docs/cli/auth.md +1 -1
- package/docs/cli/crash-report.md +1 -1
- package/docs/cli/executor.md +2 -2
- package/docs/cli/secret.md +3 -3
- package/docs/cli/staticwebsite.md +1 -1
- package/docs/cli/tailordb.md +4 -2
- package/docs/cli/user.md +2 -2
- package/docs/cli-reference.md +116 -100
- package/docs/generator/builtin.md +1 -1
- package/docs/services/executor.md +54 -0
- package/docs/services/idp.md +22 -0
- package/package.json +20 -20
- package/dist/application-Cwt_ifTT.mjs +0 -12
- package/dist/application-p2GujXmg.mjs.map +0 -1
- package/dist/chunk-COzJYswC.mjs +0 -9
- package/dist/client-D5P1myz0.mjs.map +0 -1
- package/dist/crash-report-Cm9vFmTN.mjs +0 -7
- package/dist/kysely-type-BK0b4Rqt.mjs.map +0 -1
- package/dist/package-json-88x7bPKC.mjs +0 -5
- package/dist/runtime-7DOyTTxR.mjs.map +0 -1
- package/dist/schema-BITbkmq3.mjs.map +0 -1
- package/dist/seed-BXrSEJbv.mjs.map +0 -1
- package/dist/telemetry-DXIGGa6A.mjs +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,100 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.33.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#838](https://github.com/tailor-platform/sdk/pull/838) [`36d437c`](https://github.com/tailor-platform/sdk/commit/36d437c54adb719aecb6a4d01a779bfd68d68adb) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix Kysely type generation for date/datetime fields inside nested objects (`db.object()`).
|
|
8
|
+
|
|
9
|
+
- Added `ObjectColumnType<T>` helper type that wraps nested objects in `ColumnType`, enabling Kysely's `Insertable`/`Selectable` to correctly expand types for nested fields
|
|
10
|
+
- Nested objects containing date/datetime fields now use `ObjectColumnType<{ field: Timestamp; ... }>`, so `Insertable` accepts `Date | string` and `Selectable` returns `Date`
|
|
11
|
+
- Nullable fields inside nested objects are now optional (`?`) for inserts, required for selects
|
|
12
|
+
|
|
13
|
+
- [#891](https://github.com/tailor-platform/sdk/pull/891) [`ad5644a`](https://github.com/tailor-platform/sdk/commit/ad5644a61005a1484ce321cb4211d190d4ca9168) Thanks [@k1LoW](https://github.com/k1LoW)! - Add `emailConfig` option to `defineIdp()` for namespace-level email defaults.
|
|
14
|
+
|
|
15
|
+
- `fromName`: default sender display name for emails
|
|
16
|
+
- `passwordResetSubject`: default subject for password reset emails
|
|
17
|
+
- Validation: max 200 characters, no newline characters (header injection prevention)
|
|
18
|
+
|
|
19
|
+
- [#850](https://github.com/tailor-platform/sdk/pull/850) [`3ec5e35`](https://github.com/tailor-platform/sdk/commit/3ec5e3574043e062a69e4023579494e545c658eb) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @oxc-project/types to v0.122.0
|
|
20
|
+
|
|
21
|
+
- [#860](https://github.com/tailor-platform/sdk/pull/860) [`20ce9ac`](https://github.com/tailor-platform/sdk/commit/20ce9acfac1348b175ad694ea0f6693663abd196) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): lock file maintenance
|
|
22
|
+
|
|
23
|
+
- [#862](https://github.com/tailor-platform/sdk/pull/862) [`680be1b`](https://github.com/tailor-platform/sdk/commit/680be1b908ef6e50ddc0265cf31c47d1255bcd03) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.82
|
|
24
|
+
|
|
25
|
+
- [#863](https://github.com/tailor-platform/sdk/pull/863) [`fbd1220`](https://github.com/tailor-platform/sdk/commit/fbd1220eceaf773497c338a36d47432ec95e8adf) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency eslint-plugin-jsdoc to v62.8.1
|
|
26
|
+
|
|
27
|
+
- [#865](https://github.com/tailor-platform/sdk/pull/865) [`d5ebb8b`](https://github.com/tailor-platform/sdk/commit/d5ebb8b533a1e4c259412ac46953ea0d08085236) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency graphql to v16.13.2
|
|
28
|
+
|
|
29
|
+
- [#866](https://github.com/tailor-platform/sdk/pull/866) [`e840eca`](https://github.com/tailor-platform/sdk/commit/e840eca55a832107af193f4b29bb7729097745f9) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency oxlint-tsgolint to v0.18.0
|
|
30
|
+
|
|
31
|
+
- [#867](https://github.com/tailor-platform/sdk/pull/867) [`2850dfb`](https://github.com/tailor-platform/sdk/commit/2850dfb935270b5d7c069526703d48bc0b61a221) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency tsdown to v0.21.6
|
|
32
|
+
|
|
33
|
+
- [#868](https://github.com/tailor-platform/sdk/pull/868) [`fcafc10`](https://github.com/tailor-platform/sdk/commit/fcafc103c4fb60abb4ad7990b6a8637b36ad6d1f) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update vitest monorepo to v4.1.2
|
|
34
|
+
|
|
35
|
+
- [#871](https://github.com/tailor-platform/sdk/pull/871) [`a1b8372`](https://github.com/tailor-platform/sdk/commit/a1b837274eb7c15cb246860a090a4d05229c1447) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update opentelemetry-js monorepo
|
|
36
|
+
|
|
37
|
+
- [#872](https://github.com/tailor-platform/sdk/pull/872) [`ea937d9`](https://github.com/tailor-platform/sdk/commit/ea937d957ff526aec1d441dad7b0af4fdf648378) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency rhysd/actionlint to v1.7.12
|
|
38
|
+
|
|
39
|
+
- [#873](https://github.com/tailor-platform/sdk/pull/873) [`5bee342`](https://github.com/tailor-platform/sdk/commit/5bee342221286580cb33468d825808542966206c) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.83
|
|
40
|
+
|
|
41
|
+
- [#874](https://github.com/tailor-platform/sdk/pull/874) [`7ff3617`](https://github.com/tailor-platform/sdk/commit/7ff3617c0cd08518b5e1a2b254c87144ba304bed) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency tsdown to v0.21.7
|
|
42
|
+
|
|
43
|
+
- [#875](https://github.com/tailor-platform/sdk/pull/875) [`112769c`](https://github.com/tailor-platform/sdk/commit/112769c1a91247f8dc5e342eebac6ceb96a76e86) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency turbo to v2.8.21
|
|
44
|
+
|
|
45
|
+
- [#876](https://github.com/tailor-platform/sdk/pull/876) [`0da01f9`](https://github.com/tailor-platform/sdk/commit/0da01f937072d375b363bbd021875d4fcefe41f7) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-registry to v4.491.0
|
|
46
|
+
|
|
47
|
+
- [#877](https://github.com/tailor-platform/sdk/pull/877) [`3fb644d`](https://github.com/tailor-platform/sdk/commit/3fb644d7fddbb8373d88941f542dd1851b4272c5) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260329.1
|
|
48
|
+
|
|
49
|
+
- [#878](https://github.com/tailor-platform/sdk/pull/878) [`5f09037`](https://github.com/tailor-platform/sdk/commit/5f09037b9cfe8e5f8f3e5f9ebde2060b034a0d25) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency aquaproj/aqua-renovate-config to v2.12.0
|
|
50
|
+
|
|
51
|
+
- [#880](https://github.com/tailor-platform/sdk/pull/880) [`5a2ad18`](https://github.com/tailor-platform/sdk/commit/5a2ad18a6c47ba2128c5fe45db3b8cacb364da35) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v6.1.0
|
|
52
|
+
|
|
53
|
+
- [#881](https://github.com/tailor-platform/sdk/pull/881) [`933249a`](https://github.com/tailor-platform/sdk/commit/933249ac9d393491c610516c96bc9d59691bf681) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update oxlint monorepo
|
|
54
|
+
|
|
55
|
+
- [#886](https://github.com/tailor-platform/sdk/pull/886) [`4d6a9d9`](https://github.com/tailor-platform/sdk/commit/4d6a9d95528dcdfeba131c2385fb5a5249f6c5db) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.85
|
|
56
|
+
|
|
57
|
+
- [#889](https://github.com/tailor-platform/sdk/pull/889) [`575fc11`](https://github.com/tailor-platform/sdk/commit/575fc11cc1d3bf5ab11bffe0c8079949c16cb90d) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency bufbuild/buf to v1.67.0
|
|
58
|
+
|
|
59
|
+
- [#892](https://github.com/tailor-platform/sdk/pull/892) [`3ca56ef`](https://github.com/tailor-platform/sdk/commit/3ca56effb336c0232ae6701871e2d3c0f09ad7b6) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update pnpm to v10.33.0
|
|
60
|
+
|
|
61
|
+
## 1.33.0
|
|
62
|
+
|
|
63
|
+
### Minor Changes
|
|
64
|
+
|
|
65
|
+
- [#814](https://github.com/tailor-platform/sdk/pull/814) [`d5b2702`](https://github.com/tailor-platform/sdk/commit/d5b2702162a7344f1c53d373219d8482acac142d) Thanks [@toiroakr](https://github.com/toiroakr)! - Add multi-event executor trigger support with `recordTrigger`, `idpUserTrigger`, and `authAccessTokenTrigger` factory functions that accept an `events` array to handle multiple event types in a single executor. Args include `event` (short name) and `rawEvent` (full event type string) for runtime type narrowing.
|
|
66
|
+
|
|
67
|
+
- [#769](https://github.com/tailor-platform/sdk/pull/769) [`85e3053`](https://github.com/tailor-platform/sdk/commit/85e30538c981bd666680ce52cb2f986d94780593) Thanks [@r253hmdryou](https://github.com/r253hmdryou)! - Improve apply planning by adding stable no-op detection and plan summaries.
|
|
68
|
+
|
|
69
|
+
- Mark resources as `unchanged` when requested configuration already matches remote state, and keep update/create/delete behavior unchanged for drift, ownership mismatch, or missing resources.
|
|
70
|
+
- Add a consolidated plan summary line (create/update/delete/replace/unchanged) to `apply` output and include unchanged counts in plan reporting.
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- [#844](https://github.com/tailor-platform/sdk/pull/844) [`4f62742`](https://github.com/tailor-platform/sdk/commit/4f62742bea1d9de3e181af80a2fc14b78ac6ea21) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: add bidirectional foreign key between IDP user and userProfile type in seed schema
|
|
75
|
+
|
|
76
|
+
When auth.userProfile is configured, the seed plugin now generates a foreign key from the userProfile type back to `_User`, ensuring seed data validation catches mismatches in both directions. Also bumps @toiroakr/lines-db to 0.9.1 which supports circular FK validation.
|
|
77
|
+
|
|
78
|
+
- [#857](https://github.com/tailor-platform/sdk/pull/857) [`8ed7e2a`](https://github.com/tailor-platform/sdk/commit/8ed7e2a2b23112c35f844f915f0f6eca6bef2c72) Thanks [@dqn](https://github.com/dqn)! - Add JSDoc documentation to previously undocumented public API exports for improved IDE intellisense.
|
|
79
|
+
|
|
80
|
+
- [#822](https://github.com/tailor-platform/sdk/pull/822) [`52f72bb`](https://github.com/tailor-platform/sdk/commit/52f72bb8a82f6e32889505d934ad0918391cd52e) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency oxlint-tsgolint to v0.17.2
|
|
81
|
+
|
|
82
|
+
- [#833](https://github.com/tailor-platform/sdk/pull/833) [`dfc7216`](https://github.com/tailor-platform/sdk/commit/dfc7216a7e6d639610d9e68ae422b08f15857bb7) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency @typescript/native-preview to v7.0.0-dev.20260325.1
|
|
83
|
+
|
|
84
|
+
- [#834](https://github.com/tailor-platform/sdk/pull/834) [`fecd40b`](https://github.com/tailor-platform/sdk/commit/fecd40bed724c39d5e4b12a219a3733693b06cd4) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v6.0.3
|
|
85
|
+
|
|
86
|
+
- [#840](https://github.com/tailor-platform/sdk/pull/840) [`3dfb55f`](https://github.com/tailor-platform/sdk/commit/3dfb55f96aab68e355f10ccd993cc21141441724) Thanks [@renovate](https://github.com/apps/renovate)! - Update @clack/prompts to v1, adjusting validate callback signatures for the new API
|
|
87
|
+
|
|
88
|
+
- [#845](https://github.com/tailor-platform/sdk/pull/845) [`7976c0a`](https://github.com/tailor-platform/sdk/commit/7976c0a516cc09b3a4f1f183ab98360eefd449b2) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.81
|
|
89
|
+
|
|
90
|
+
- [#846](https://github.com/tailor-platform/sdk/pull/846) [`ab16815`](https://github.com/tailor-platform/sdk/commit/ab16815674196d50b1f14b37935e1c7ade255d14) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency knip to v6.0.6
|
|
91
|
+
|
|
92
|
+
- [#847](https://github.com/tailor-platform/sdk/pull/847) [`9b60ae2`](https://github.com/tailor-platform/sdk/commit/9b60ae2a3b3ccc10839867ba7a49ef59e649287e) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update dependency typescript-eslint to v8.57.2
|
|
93
|
+
|
|
94
|
+
- [#848](https://github.com/tailor-platform/sdk/pull/848) [`0c8aeac`](https://github.com/tailor-platform/sdk/commit/0c8aeac85680352e9e9f0c560e37c2e22b1ee1cc) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update vitest monorepo to v4.1.1
|
|
95
|
+
|
|
96
|
+
- [#849](https://github.com/tailor-platform/sdk/pull/849) [`b1c9814`](https://github.com/tailor-platform/sdk/commit/b1c981432a4753d3868d482123931921a0e9bf74) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency rolldown to v1.0.0-rc.12
|
|
97
|
+
|
|
3
98
|
## 1.32.1
|
|
4
99
|
|
|
5
100
|
### Patch Changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
import { l as initOAuth2Client } from "./client-CYGsf3Zl.mjs";
|
|
2
3
|
import { n as isSdkBranded } from "./brand-0SscafcY.mjs";
|
|
3
4
|
import { n as logger, r as styles } from "./logger-qz-Y4sBV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { n as
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "./kysely-type-BK0b4Rqt.mjs";
|
|
5
|
+
import { t as readPackageJson } from "./package-json-CfUqjJaQ.mjs";
|
|
6
|
+
import { n as seedPlugin, r as isPluginGeneratedType, t as SeedGeneratorID } from "./seed-BZIFDG27.mjs";
|
|
7
|
+
import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "./enum-constants-DI85-fPE.mjs";
|
|
8
|
+
import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "./file-utils-C4rXlOVt.mjs";
|
|
9
|
+
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "./kysely-type-BwMqaL3z.mjs";
|
|
10
10
|
import { createRequire } from "node:module";
|
|
11
11
|
import { z } from "zod";
|
|
12
12
|
import * as fs$1 from "node:fs";
|
|
@@ -836,10 +836,9 @@ function generateInjectDeclarations(inject) {
|
|
|
836
836
|
*/
|
|
837
837
|
function generateTriggerCode(trigger) {
|
|
838
838
|
switch (trigger.kind) {
|
|
839
|
-
case "
|
|
840
|
-
case "recordUpdated":
|
|
841
|
-
case "recordDeleted": return `{
|
|
839
|
+
case "tailordb": return `{
|
|
842
840
|
kind: ${JSON.stringify(trigger.kind)},
|
|
841
|
+
events: ${JSON.stringify(trigger.events)},
|
|
843
842
|
typeName: ${JSON.stringify(trigger.typeName)},
|
|
844
843
|
}`;
|
|
845
844
|
case "schedule": return `{
|
|
@@ -3129,7 +3128,7 @@ function createTailorDBService(params) {
|
|
|
3129
3128
|
}
|
|
3130
3129
|
|
|
3131
3130
|
//#endregion
|
|
3132
|
-
//#region src/parser/service/
|
|
3131
|
+
//#region src/parser/service/field/schema.ts
|
|
3133
3132
|
const TailorFieldTypeSchema = z.enum([
|
|
3134
3133
|
"uuid",
|
|
3135
3134
|
"string",
|
|
@@ -3143,7 +3142,6 @@ const TailorFieldTypeSchema = z.enum([
|
|
|
3143
3142
|
"time",
|
|
3144
3143
|
"nested"
|
|
3145
3144
|
]);
|
|
3146
|
-
const QueryTypeSchema = z.union([z.literal("query"), z.literal("mutation")]).describe("GraphQL operation type");
|
|
3147
3145
|
const AllowedValueSchema = z.object({
|
|
3148
3146
|
value: z.string().describe("The allowed value"),
|
|
3149
3147
|
description: z.string().optional().describe("Description of the allowed value")
|
|
@@ -3166,18 +3164,6 @@ const TailorFieldSchema = z.object({
|
|
|
3166
3164
|
return z.record(z.string(), TailorFieldSchema);
|
|
3167
3165
|
}
|
|
3168
3166
|
});
|
|
3169
|
-
const ResolverSchema = z.object({
|
|
3170
|
-
operation: QueryTypeSchema.describe("GraphQL operation type (query or mutation)"),
|
|
3171
|
-
name: z.string().describe("Resolver name"),
|
|
3172
|
-
description: z.string().optional().describe("Resolver description"),
|
|
3173
|
-
input: z.record(z.string(), TailorFieldSchema).optional().describe("Input field definitions"),
|
|
3174
|
-
body: functionSchema.describe("Resolver implementation function"),
|
|
3175
|
-
output: TailorFieldSchema.describe("Output field definition"),
|
|
3176
|
-
publishEvents: z.boolean().optional().describe("Enable publishing events from this resolver"),
|
|
3177
|
-
get authInvoker() {
|
|
3178
|
-
return AuthInvokerSchema.optional().describe("Machine user to execute this resolver as");
|
|
3179
|
-
}
|
|
3180
|
-
});
|
|
3181
3167
|
|
|
3182
3168
|
//#endregion
|
|
3183
3169
|
//#region src/parser/service/auth/schema.ts
|
|
@@ -3426,12 +3412,13 @@ function createAuthService(config, tailorDBServices, externalTailorDBNamespaces)
|
|
|
3426
3412
|
|
|
3427
3413
|
//#endregion
|
|
3428
3414
|
//#region src/parser/service/executor/schema.ts
|
|
3429
|
-
const
|
|
3430
|
-
kind: z.
|
|
3431
|
-
|
|
3432
|
-
"
|
|
3433
|
-
"
|
|
3434
|
-
|
|
3415
|
+
const TailorDBTriggerSchema = z.object({
|
|
3416
|
+
kind: z.literal("tailordb").describe("TailorDB record event trigger"),
|
|
3417
|
+
events: z.array(z.enum([
|
|
3418
|
+
"tailordb.type_record.created",
|
|
3419
|
+
"tailordb.type_record.updated",
|
|
3420
|
+
"tailordb.type_record.deleted"
|
|
3421
|
+
])).min(1).transform((arr) => [...new Set(arr)]).describe("TailorDB event types to trigger on"),
|
|
3435
3422
|
typeName: z.string().describe("TailorDB type name to watch for events"),
|
|
3436
3423
|
condition: functionSchema.optional().describe("Condition function to filter events")
|
|
3437
3424
|
});
|
|
@@ -3446,18 +3433,24 @@ const ScheduleTriggerSchema = z.object({
|
|
|
3446
3433
|
timezone: z.string().optional().default("UTC").describe("Timezone for the CRON schedule (default: UTC)")
|
|
3447
3434
|
});
|
|
3448
3435
|
const IncomingWebhookTriggerSchema = z.object({ kind: z.literal("incomingWebhook") });
|
|
3449
|
-
const IdpUserTriggerSchema = z.object({
|
|
3450
|
-
"
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
"
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3436
|
+
const IdpUserTriggerSchema = z.object({
|
|
3437
|
+
kind: z.literal("idpUser").describe("IdP user event trigger"),
|
|
3438
|
+
events: z.array(z.enum([
|
|
3439
|
+
"idp.user.created",
|
|
3440
|
+
"idp.user.updated",
|
|
3441
|
+
"idp.user.deleted"
|
|
3442
|
+
])).min(1).transform((arr) => [...new Set(arr)]).describe("IdP user event types to trigger on")
|
|
3443
|
+
});
|
|
3444
|
+
const AuthAccessTokenTriggerSchema = z.object({
|
|
3445
|
+
kind: z.literal("authAccessToken").describe("Auth access token event trigger"),
|
|
3446
|
+
events: z.array(z.enum([
|
|
3447
|
+
"auth.access_token.issued",
|
|
3448
|
+
"auth.access_token.refreshed",
|
|
3449
|
+
"auth.access_token.revoked"
|
|
3450
|
+
])).min(1).transform((arr) => [...new Set(arr)]).describe("Auth access token event types to trigger on")
|
|
3451
|
+
});
|
|
3459
3452
|
const TriggerSchema = z.discriminatedUnion("kind", [
|
|
3460
|
-
|
|
3453
|
+
TailorDBTriggerSchema,
|
|
3461
3454
|
ResolverExecutedTriggerSchema,
|
|
3462
3455
|
ScheduleTriggerSchema,
|
|
3463
3456
|
IncomingWebhookTriggerSchema,
|
|
@@ -3696,6 +3689,20 @@ function createExecutorService(params) {
|
|
|
3696
3689
|
};
|
|
3697
3690
|
}
|
|
3698
3691
|
|
|
3692
|
+
//#endregion
|
|
3693
|
+
//#region src/parser/service/resolver/schema.ts
|
|
3694
|
+
const QueryTypeSchema = z.union([z.literal("query"), z.literal("mutation")]).describe("GraphQL operation type");
|
|
3695
|
+
const ResolverSchema = z.object({
|
|
3696
|
+
operation: QueryTypeSchema.describe("GraphQL operation type (query or mutation)"),
|
|
3697
|
+
name: z.string().describe("Resolver name"),
|
|
3698
|
+
description: z.string().optional().describe("Resolver description"),
|
|
3699
|
+
input: z.record(z.string(), TailorFieldSchema).optional().describe("Input field definitions"),
|
|
3700
|
+
body: functionSchema.describe("Resolver implementation function"),
|
|
3701
|
+
output: TailorFieldSchema.describe("Output field definition"),
|
|
3702
|
+
publishEvents: z.boolean().optional().describe("Enable publishing events from this resolver"),
|
|
3703
|
+
authInvoker: AuthInvokerSchema.optional().describe("Machine user to execute this resolver as")
|
|
3704
|
+
});
|
|
3705
|
+
|
|
3699
3706
|
//#endregion
|
|
3700
3707
|
//#region src/cli/services/resolver/loader.ts
|
|
3701
3708
|
/**
|
|
@@ -4049,6 +4056,7 @@ async function bundleWorkflowJobs(allJobs, mainJobNames, env = {}, triggerContex
|
|
|
4049
4056
|
logger.warn("No workflow jobs to bundle");
|
|
4050
4057
|
return {
|
|
4051
4058
|
mainJobDeps: {},
|
|
4059
|
+
usedJobNames: [],
|
|
4052
4060
|
bundledCode: /* @__PURE__ */ new Map()
|
|
4053
4061
|
};
|
|
4054
4062
|
}
|
|
@@ -4073,6 +4081,7 @@ async function bundleWorkflowJobs(allJobs, mainJobNames, env = {}, triggerContex
|
|
|
4073
4081
|
logger.log(`${styles.success("Bundled")} ${styles.info("\"workflow-job\"")}`);
|
|
4074
4082
|
return {
|
|
4075
4083
|
mainJobDeps,
|
|
4084
|
+
usedJobNames: usedJobs.map((job) => job.name),
|
|
4076
4085
|
bundledCode
|
|
4077
4086
|
};
|
|
4078
4087
|
}
|
|
@@ -4614,6 +4623,11 @@ const IdPUserAuthPolicySchema = z.object({
|
|
|
4614
4623
|
message: "disablePasswordAuth cannot be used with allowSelfPasswordReset",
|
|
4615
4624
|
path: ["disablePasswordAuth"]
|
|
4616
4625
|
});
|
|
4626
|
+
const emailFieldSchema = z.string().max(200, "must be 200 characters or less").regex(/^[^\r\n]*$/, "must not contain newline characters");
|
|
4627
|
+
const IdPEmailConfigSchema = z.object({
|
|
4628
|
+
fromName: emailFieldSchema.optional().describe("Default sender display name for emails"),
|
|
4629
|
+
passwordResetSubject: emailFieldSchema.optional().describe("Default subject for password reset emails")
|
|
4630
|
+
}).describe("Namespace-level email configuration defaults");
|
|
4617
4631
|
const IdPSchema = z.object({
|
|
4618
4632
|
name: z.string().describe("IdP service name"),
|
|
4619
4633
|
authorization: z.union([
|
|
@@ -4625,7 +4639,8 @@ const IdPSchema = z.object({
|
|
|
4625
4639
|
lang: IdPLangSchema.optional().describe("UI language for IdP pages"),
|
|
4626
4640
|
userAuthPolicy: IdPUserAuthPolicySchema.transform((input) => IdPUserAuthPolicySchema.parse(input ?? {})).optional().describe("User authentication policy configuration"),
|
|
4627
4641
|
publishUserEvents: z.boolean().optional().describe("Enable publishing user lifecycle events"),
|
|
4628
|
-
gqlOperations: IdPGqlOperationsSchema.optional().describe("Configure which GraphQL operations are enabled")
|
|
4642
|
+
gqlOperations: IdPGqlOperationsSchema.optional().describe("Configure which GraphQL operations are enabled"),
|
|
4643
|
+
emailConfig: IdPEmailConfigSchema.optional().describe("Namespace-level email configuration defaults")
|
|
4629
4644
|
}).brand("IdPConfig");
|
|
4630
4645
|
|
|
4631
4646
|
//#endregion
|
|
@@ -4933,5 +4948,5 @@ async function loadApplication(params) {
|
|
|
4933
4948
|
}
|
|
4934
4949
|
|
|
4935
4950
|
//#endregion
|
|
4936
|
-
export { resolveTokens as C, readPlatformConfig as S, writePlatformConfig as T, hashFile as _, loadConfig as a, loadAccessToken as b,
|
|
4937
|
-
//# sourceMappingURL=application-
|
|
4951
|
+
export { resolveTokens as C, readPlatformConfig as S, writePlatformConfig as T, hashFile as _, loadConfig as a, loadAccessToken as b, createExecutorService as c, TailorDBTypeSchema as d, stringifyFunction as f, getDistDir as g, createBundleCache as h, resolveInlineSourcemap as i, ExecutorSchema as l, loadFilesWithIgnores as m, generatePluginFilesIfNeeded as n, WorkflowJobSchema as o, tailorUserMap as p, loadApplication as r, ResolverSchema as s, defineApplication as t, OAuth2ClientSchema as u, deleteUserTokens as v, saveUserTokens as w, loadWorkspaceId as x, fetchLatestToken as y };
|
|
4952
|
+
//# sourceMappingURL=application-CYPU-WIc.mjs.map
|