@tailor-platform/sdk 1.69.0 → 1.70.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 +30 -0
- package/dist/application-BakHtldG.mjs +4 -0
- package/dist/{application-Cr-limKC.mjs → application-Df5_I83n.mjs} +318 -78
- package/dist/application-Df5_I83n.mjs.map +1 -0
- package/dist/cli/erd-viewer-assets/app.js +279 -36
- package/dist/cli/erd-viewer-assets/index.html +4 -0
- package/dist/cli/erd-viewer-assets/styles.css +252 -5
- package/dist/cli/index.mjs +641 -90
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +14 -8
- package/dist/cli/lib.mjs +2 -2
- package/dist/completion/zsh-worker.zsh +153 -2
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +8 -6
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-B7VbJm0_.d.mts → index-BAEaAqmz.d.mts} +90 -40
- package/dist/{index-CklcVeMG.d.mts → index-C-vsbx27.d.mts} +2 -2
- package/dist/{index-hXoO-AOC.d.mts → index-CKI0eZP6.d.mts} +2 -2
- package/dist/{index-DYhnxXYR.d.mts → index-CrqOgUF2.d.mts} +2 -2
- package/dist/{index-DlDRSzFZ.d.mts → index-DESLU9kI.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +1 -1
- package/dist/{runtime-jowoN6qC.mjs → runtime-CSY0eD4_.mjs} +330 -190
- package/dist/runtime-CSY0eD4_.mjs.map +1 -0
- package/dist/{schema-1msIhXwA.mjs → schema-C4fkpWV_.mjs} +9 -15
- package/dist/schema-C4fkpWV_.mjs.map +1 -0
- package/dist/{types-2Be3wSMc.mjs → types-32lUMToj.mjs} +1 -1
- package/dist/{types-CmzfQP_m.mjs → types-D4QMmNWh.mjs} +1 -12
- package/dist/types-D4QMmNWh.mjs.map +1 -0
- package/dist/{types-Bzr0RQME.d.mts → types-Dynq4AJv.d.mts} +2 -2
- package/dist/{types-DZrtN6-H.d.mts → types-rj8YJcEe.d.mts} +5 -2
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-Br9bmLdX.d.mts → workflow.generated-DJULCuRr.d.mts} +177 -172
- package/docs/cli/application.md +37 -2
- package/docs/cli/setup.md +1 -0
- package/docs/cli/tailordb.md +24 -0
- package/docs/cli/user.md +11 -1
- package/docs/cli/workspace.md +13 -7
- package/docs/cli-reference.md +6 -0
- package/docs/github-actions.md +27 -0
- package/docs/multi-environment.md +22 -0
- package/docs/services/aigateway.md +4 -2
- package/docs/services/http-adapter.md +16 -1
- package/package.json +1 -1
- package/dist/application-Br48NXBD.mjs +0 -4
- package/dist/application-Cr-limKC.mjs.map +0 -1
- package/dist/runtime-jowoN6qC.mjs.map +0 -1
- package/dist/schema-1msIhXwA.mjs.map +0 -1
- package/dist/types-CmzfQP_m.mjs.map +0 -1
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as PluginAttachment } from "../types-
|
|
2
|
-
import { A as IncomingWebhookTrigger, L as TailorDBType, M as ScheduleTriggerInput, R as TypeSourceInfoEntry, S as Resolver, T as Executor, a as Plugin, ot as IdProvider, st as OAuth2Client$1 } from "../types-
|
|
3
|
-
import { i as AppConfig } from "../workflow.generated-
|
|
4
|
-
import { n as kyselyTypePlugin } from "../index-
|
|
5
|
-
import { n as enumConstantsPlugin } from "../index-
|
|
6
|
-
import { n as fileUtilsPlugin } from "../index-
|
|
7
|
-
import { n as seedPlugin } from "../index-
|
|
1
|
+
import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
|
|
2
|
+
import { A as IncomingWebhookTrigger, L as TailorDBType, M as ScheduleTriggerInput, R as TypeSourceInfoEntry, S as Resolver, T as Executor, a as Plugin, ot as IdProvider, st as OAuth2Client$1 } from "../types-Dynq4AJv.mjs";
|
|
3
|
+
import { i as AppConfig } from "../workflow.generated-DJULCuRr.mjs";
|
|
4
|
+
import { n as kyselyTypePlugin } from "../index-DESLU9kI.mjs";
|
|
5
|
+
import { n as enumConstantsPlugin } from "../index-C-vsbx27.mjs";
|
|
6
|
+
import { n as fileUtilsPlugin } from "../index-CrqOgUF2.mjs";
|
|
7
|
+
import { n as seedPlugin } from "../index-CKI0eZP6.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { JsonObject, Message } from "@bufbuild/protobuf";
|
|
10
10
|
import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
@@ -18019,13 +18019,19 @@ declare const OperatorService: GenService<{
|
|
|
18019
18019
|
}>;
|
|
18020
18020
|
//#endregion
|
|
18021
18021
|
//#region src/cli/shared/client.d.ts
|
|
18022
|
+
type PlatformClientConfig = {
|
|
18023
|
+
platformUrl?: string;
|
|
18024
|
+
oauth2ClientId?: string;
|
|
18025
|
+
consoleUrl?: string;
|
|
18026
|
+
};
|
|
18022
18027
|
type OperatorClient = Client<typeof OperatorService>;
|
|
18023
18028
|
/**
|
|
18024
18029
|
* Initialize an Operator client with the given access token.
|
|
18025
18030
|
* @param accessToken - Access token for authentication
|
|
18031
|
+
* @param config - Optional platform connection settings
|
|
18026
18032
|
* @returns Configured Operator client
|
|
18027
18033
|
*/
|
|
18028
|
-
declare function initOperatorClient(accessToken: string): Promise<Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
18034
|
+
declare function initOperatorClient(accessToken: string, config?: PlatformClientConfig): Promise<Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
18029
18035
|
ping: {
|
|
18030
18036
|
methodKind: "unary";
|
|
18031
18037
|
input: typeof PingRequestSchema;
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as assertDefined } from "../assert-CKfwrmCV.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { $ as getOrganization, At as getExecutorWaitFailureMessage, B as show, Bt as listWorkflowExecutions, Cn as getNamespacesWithMigrations, Ct as listWebhookExecutors, D as waitWorkflowExecution, Et as triggerExecutor, Ft as startWorkflow, Gt as deploy, J as organizationTree, Jt as bundleMigrationScript, Kt as executeScript, Lt as getWorkflow, M as truncate, Mt as listExecutorJobs, Nt as watchExecutorJob, On as generateUserTypes, Ot as listExecutors, P as generate$1, S as listApps, Sn as hasChanges, St as getFunctionRegistry, W as remove, Wt as getExecutor, Yt as MIGRATION_LABEL_KEY, Z as listOrganizations, _ as getWorkspace, _n as reconstructSnapshotFromMigrations, _t as listMachineUsers, a as updateUser, an as SCHEMA_FILE_NAME, at as getFolder, bn as formatDiffSummary, bt as listFunctionRegistries, cn as compareSnapshots, d as inviteUser, dn as getMigrationDirPath, dt as listOAuth2Clients, fn as getMigrationFilePath, h as listWorkspaces, in as MIGRATE_FILE_NAME, j as listWorkflows, jn as apiCall, k as resumeWorkflow, kt as getExecutorJob, l as listUsers, ln as createSnapshotFromLocalTypes, lt as createFolder, mn as getNextMigrationNumber, mt as getMachineUserToken, n as query, nn as DIFF_FILE_NAME, p as restoreWorkspace, pn as getMigrationFiles, pt as getOAuth2Client, q as updateOrganization, qt as waitForExecution, rn as INITIAL_SCHEMA_NUMBER, rt as listFolders, s as removeUser, sn as compareLocalTypesWithSnapshot, st as deleteFolder, t as isNativeTypeScriptRuntime, tn as DB_TYPES_FILE_NAME, tt as updateFolder, un as getLatestMigrationNumber, vt as generate, w as getAppHealth, x as createWorkspace, xn as formatMigrationDiff, y as deleteWorkspace, zt as getWorkflowExecution } from "../runtime-CSY0eD4_.mjs";
|
|
4
|
+
import { $ as initOperatorClient, A as loadAccessToken, I as loadWorkspaceId, S as getDistDir, T as loadConfig, h as platformBundleDefinePlugin } from "../application-Df5_I83n.mjs";
|
|
5
5
|
import { n as enumConstantsPlugin } from "../enum-constants-C7DaWeQo.mjs";
|
|
6
6
|
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
7
7
|
import { n as fileUtilsPlugin } from "../file-utils-BHPxPXmn.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# politty-completion-version: 1
|
|
2
|
-
# politty-bin-sig:
|
|
2
|
+
# politty-bin-sig: 1782701685
|
|
3
3
|
# politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor-sdk
|
|
4
4
|
# program: tailor-sdk
|
|
5
5
|
# shell: zsh
|
|
@@ -587,9 +587,11 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
587
587
|
function:test-run:--config|function:test-run:-c|function:test-run:--c) return 0 ;;
|
|
588
588
|
generate:--config|generate:-c|generate:--c) return 0 ;;
|
|
589
589
|
init:--template|init:-t|init:--t) return 0 ;;
|
|
590
|
+
login:--profile|login:-p|login:--p) return 0 ;;
|
|
590
591
|
login:--machine-user|login:--machineUser) return 0 ;;
|
|
591
592
|
login:--client-id|login:--clientId) return 0 ;;
|
|
592
593
|
login:--client-secret|login:--clientSecret) return 0 ;;
|
|
594
|
+
logout:--profile|logout:-p|logout:--p) return 0 ;;
|
|
593
595
|
machineuser:list:--workspace-id|machineuser:list:--workspaceId|machineuser:list:-w|machineuser:list:--w) return 0 ;;
|
|
594
596
|
machineuser:list:--profile|machineuser:list:-p|machineuser:list:--p) return 0 ;;
|
|
595
597
|
machineuser:list:--config|machineuser:list:-c|machineuser:list:--c) return 0 ;;
|
|
@@ -634,11 +636,17 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
634
636
|
profile:create:--permission) return 0 ;;
|
|
635
637
|
profile:create:--machine-user|profile:create:--machineUser|profile:create:-m|profile:create:--m) return 0 ;;
|
|
636
638
|
profile:create:--machine-user-override|profile:create:--machineUserOverride) return 0 ;;
|
|
639
|
+
profile:create:--platform-url|profile:create:--platformUrl) return 0 ;;
|
|
640
|
+
profile:create:--oauth2-client-id|profile:create:--oauth2ClientId) return 0 ;;
|
|
641
|
+
profile:create:--console-url|profile:create:--consoleUrl) return 0 ;;
|
|
637
642
|
profile:update:--user|profile:update:-u|profile:update:--u) return 0 ;;
|
|
638
643
|
profile:update:--workspace-id|profile:update:--workspaceId|profile:update:-w|profile:update:--w) return 0 ;;
|
|
639
644
|
profile:update:--permission) return 0 ;;
|
|
640
645
|
profile:update:--machine-user|profile:update:--machineUser|profile:update:-m|profile:update:--m) return 0 ;;
|
|
641
646
|
profile:update:--machine-user-override|profile:update:--machineUserOverride) return 0 ;;
|
|
647
|
+
profile:update:--platform-url|profile:update:--platformUrl) return 0 ;;
|
|
648
|
+
profile:update:--oauth2-client-id|profile:update:--oauth2ClientId) return 0 ;;
|
|
649
|
+
profile:update:--console-url|profile:update:--consoleUrl) return 0 ;;
|
|
642
650
|
query:--workspace-id|query:--workspaceId|query:-w|query:--w) return 0 ;;
|
|
643
651
|
query:--profile|query:-p|query:--p) return 0 ;;
|
|
644
652
|
query:--config|query:-c|query:--c) return 0 ;;
|
|
@@ -723,6 +731,11 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
723
731
|
tailordb:erd:export:--config|tailordb:erd:export:-c|tailordb:erd:export:--c) return 0 ;;
|
|
724
732
|
tailordb:erd:export:--namespace|tailordb:erd:export:-n|tailordb:erd:export:--n) return 0 ;;
|
|
725
733
|
tailordb:erd:export:--output|tailordb:erd:export:-o|tailordb:erd:export:--o) return 0 ;;
|
|
734
|
+
tailordb:erd:diff:--base-html|tailordb:erd:diff:--baseHtml) return 0 ;;
|
|
735
|
+
tailordb:erd:diff:--head-html|tailordb:erd:diff:--headHtml) return 0 ;;
|
|
736
|
+
tailordb:erd:diff:--namespace|tailordb:erd:diff:-n|tailordb:erd:diff:--n) return 0 ;;
|
|
737
|
+
tailordb:erd:diff:--output|tailordb:erd:diff:-o|tailordb:erd:diff:--o) return 0 ;;
|
|
738
|
+
tailordb:erd:diff:--output-json|tailordb:erd:diff:--outputJson) return 0 ;;
|
|
726
739
|
tailordb:erd:serve:--config|tailordb:erd:serve:-c|tailordb:erd:serve:--c) return 0 ;;
|
|
727
740
|
tailordb:erd:serve:--namespace|tailordb:erd:serve:-n|tailordb:erd:serve:--n) return 0 ;;
|
|
728
741
|
tailordb:erd:serve:--port) return 0 ;;
|
|
@@ -917,6 +930,7 @@ __tailor_sdk_worker_is_subcmd() {
|
|
|
917
930
|
tailordb:migration:sync) return 0 ;;
|
|
918
931
|
tailordb:migration) return 0 ;;
|
|
919
932
|
tailordb:erd:export) return 0 ;;
|
|
933
|
+
tailordb:erd:diff) return 0 ;;
|
|
920
934
|
tailordb:erd:serve) return 0 ;;
|
|
921
935
|
tailordb:erd:deploy) return 0 ;;
|
|
922
936
|
tailordb:erd) return 0 ;;
|
|
@@ -1647,6 +1661,7 @@ __tailor_sdk_worker_complete_login() {
|
|
|
1647
1661
|
if (( _after_dd )); then return 0; fi
|
|
1648
1662
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
1649
1663
|
local -a _opts=()
|
|
1664
|
+
__tailor_sdk_worker_not_used "--profile" "-p" "--p" && _opts+=("--profile:Workspace profile whose platform settings should be used for login.")
|
|
1650
1665
|
__tailor_sdk_worker_not_used "--machine-user" "--machineUser" && _opts+=("--machine-user:Login as a platform machine user.")
|
|
1651
1666
|
__tailor_sdk_worker_not_used "--client-id" "--clientId" && _opts+=("--client-id:Client ID")
|
|
1652
1667
|
__tailor_sdk_worker_not_used "--client-secret" "--clientSecret" && _opts+=("--client-secret:Client secret")
|
|
@@ -1662,6 +1677,7 @@ __tailor_sdk_worker_complete_logout() {
|
|
|
1662
1677
|
if (( _after_dd )); then return 0; fi
|
|
1663
1678
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
1664
1679
|
local -a _opts=()
|
|
1680
|
+
__tailor_sdk_worker_not_used "--profile" "-p" "--p" && _opts+=("--profile:Workspace profile whose platform settings should be used for logout.")
|
|
1665
1681
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
1666
1682
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
1667
1683
|
return 0
|
|
@@ -2133,6 +2149,9 @@ __tailor_sdk_worker_complete_profile_create() {
|
|
|
2133
2149
|
__tailor_sdk_worker_not_used "--permission" && _opts+=("--permission:Profile permission. 'read' blocks all write commands while the profile is active.")
|
|
2134
2150
|
__tailor_sdk_worker_not_used "--machine-user" "--machineUser" "-m" "--m" && _opts+=("--machine-user:Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token).")
|
|
2135
2151
|
__tailor_sdk_worker_not_used "--machine-user-override" "--machineUserOverride" && _opts+=("--machine-user-override:Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user.")
|
|
2152
|
+
__tailor_sdk_worker_not_used "--platform-url" "--platformUrl" && _opts+=("--platform-url:Platform API base URL for this profile.")
|
|
2153
|
+
__tailor_sdk_worker_not_used "--oauth2-client-id" "--oauth2ClientId" && _opts+=("--oauth2-client-id:OAuth2 client ID for logging in to this profile's platform.")
|
|
2154
|
+
__tailor_sdk_worker_not_used "--console-url" "--consoleUrl" && _opts+=("--console-url:Console base URL for this profile.")
|
|
2136
2155
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2137
2156
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2138
2157
|
return 0
|
|
@@ -2204,6 +2223,9 @@ __tailor_sdk_worker_complete_profile_update() {
|
|
|
2204
2223
|
__tailor_sdk_worker_not_used "--permission" && _opts+=("--permission:Profile permission. 'read' blocks all write commands; 'write' lifts the restriction.")
|
|
2205
2224
|
__tailor_sdk_worker_not_used "--machine-user" "--machineUser" "-m" "--m" && _opts+=("--machine-user:Default machine user name for application-data commands (query, workflow start, function test-run, machineuser token). Pass an empty string to clear.")
|
|
2206
2225
|
__tailor_sdk_worker_not_used "--machine-user-override" "--machineUserOverride" && _opts+=("--machine-user-override:Whether the command line or TAILOR_PLATFORM_MACHINE_USER_NAME may override the profile's machine user. 'deny' requires --machine-user; 'allow' lifts the restriction.")
|
|
2226
|
+
__tailor_sdk_worker_not_used "--platform-url" "--platformUrl" && _opts+=("--platform-url:Platform API base URL for this profile. Pass an empty string to clear.")
|
|
2227
|
+
__tailor_sdk_worker_not_used "--oauth2-client-id" "--oauth2ClientId" && _opts+=("--oauth2-client-id:OAuth2 client ID for logging in to this profile's platform. Pass an empty string to clear.")
|
|
2228
|
+
__tailor_sdk_worker_not_used "--console-url" "--consoleUrl" && _opts+=("--console-url:Console base URL for this profile. Pass an empty string to clear.")
|
|
2207
2229
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2208
2230
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2209
2231
|
return 0
|
|
@@ -2531,6 +2553,7 @@ __tailor_sdk_worker_complete_setup() {
|
|
|
2531
2553
|
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (requires --tag; defaults to v*)")
|
|
2532
2554
|
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2533
2555
|
__tailor_sdk_worker_not_used "--no-plan" "--noPlan" && _opts+=("--no-plan:Disable the plan job for a branch target (cannot be combined with --tag)")
|
|
2556
|
+
__tailor_sdk_worker_not_used "--erd-preview" "--erdPreview" && _opts+=("--erd-preview:Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces")
|
|
2534
2557
|
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2535
2558
|
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2536
2559
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
@@ -3121,6 +3144,133 @@ __tailor_sdk_worker_complete_tailordb_erd_export() {
|
|
|
3121
3144
|
fi
|
|
3122
3145
|
}
|
|
3123
3146
|
|
|
3147
|
+
__tailor_sdk_worker_complete_tailordb_erd_diff() {
|
|
3148
|
+
local -a _vals=()
|
|
3149
|
+
case "${words[CURRENT-1]}" in
|
|
3150
|
+
--base-html|--baseHtml)
|
|
3151
|
+
setopt local_options null_glob
|
|
3152
|
+
local _cur="${words[CURRENT]:-}" _dir _prefix _f _out
|
|
3153
|
+
local -a _matchers=(".html")
|
|
3154
|
+
if [[ -z "$_cur" || "$_cur" != */* ]]; then
|
|
3155
|
+
_dir="."
|
|
3156
|
+
_prefix="$_cur"
|
|
3157
|
+
elif [[ "$_cur" == */ ]]; then
|
|
3158
|
+
_dir="${_cur%/}"
|
|
3159
|
+
_prefix=""
|
|
3160
|
+
else
|
|
3161
|
+
_dir="${_cur%/*}"
|
|
3162
|
+
_prefix="${_cur##*/}"
|
|
3163
|
+
fi
|
|
3164
|
+
for _f in "$_dir"/"$_prefix"*(N/); do
|
|
3165
|
+
_out="${_f#./}"
|
|
3166
|
+
__tailor_sdk_worker_add_path_candidate "$_out"
|
|
3167
|
+
done
|
|
3168
|
+
local _pat
|
|
3169
|
+
for _pat in "${_matchers[@]}"; do
|
|
3170
|
+
[[ -n "$_pat" ]] || continue
|
|
3171
|
+
for _f in "$_dir"/${~_pat}(N.); do
|
|
3172
|
+
_out="${_f#./}"
|
|
3173
|
+
[[ "$_out" == "$_cur"* ]] && __tailor_sdk_worker_add_path_candidate "$_out"
|
|
3174
|
+
done
|
|
3175
|
+
done
|
|
3176
|
+
return 0 ;;
|
|
3177
|
+
--head-html|--headHtml)
|
|
3178
|
+
setopt local_options null_glob
|
|
3179
|
+
local _cur="${words[CURRENT]:-}" _dir _prefix _f _out
|
|
3180
|
+
local -a _matchers=(".html")
|
|
3181
|
+
if [[ -z "$_cur" || "$_cur" != */* ]]; then
|
|
3182
|
+
_dir="."
|
|
3183
|
+
_prefix="$_cur"
|
|
3184
|
+
elif [[ "$_cur" == */ ]]; then
|
|
3185
|
+
_dir="${_cur%/}"
|
|
3186
|
+
_prefix=""
|
|
3187
|
+
else
|
|
3188
|
+
_dir="${_cur%/*}"
|
|
3189
|
+
_prefix="${_cur##*/}"
|
|
3190
|
+
fi
|
|
3191
|
+
for _f in "$_dir"/"$_prefix"*(N/); do
|
|
3192
|
+
_out="${_f#./}"
|
|
3193
|
+
__tailor_sdk_worker_add_path_candidate "$_out"
|
|
3194
|
+
done
|
|
3195
|
+
local _pat
|
|
3196
|
+
for _pat in "${_matchers[@]}"; do
|
|
3197
|
+
[[ -n "$_pat" ]] || continue
|
|
3198
|
+
for _f in "$_dir"/${~_pat}(N.); do
|
|
3199
|
+
_out="${_f#./}"
|
|
3200
|
+
[[ "$_out" == "$_cur"* ]] && __tailor_sdk_worker_add_path_candidate "$_out"
|
|
3201
|
+
done
|
|
3202
|
+
done
|
|
3203
|
+
return 0 ;;
|
|
3204
|
+
--output|-o|--o)
|
|
3205
|
+
setopt local_options null_glob
|
|
3206
|
+
local _cur="${words[CURRENT]:-}" _dir _prefix _f _out
|
|
3207
|
+
local -a _matchers=(".html")
|
|
3208
|
+
if [[ -z "$_cur" || "$_cur" != */* ]]; then
|
|
3209
|
+
_dir="."
|
|
3210
|
+
_prefix="$_cur"
|
|
3211
|
+
elif [[ "$_cur" == */ ]]; then
|
|
3212
|
+
_dir="${_cur%/}"
|
|
3213
|
+
_prefix=""
|
|
3214
|
+
else
|
|
3215
|
+
_dir="${_cur%/*}"
|
|
3216
|
+
_prefix="${_cur##*/}"
|
|
3217
|
+
fi
|
|
3218
|
+
for _f in "$_dir"/"$_prefix"*(N/); do
|
|
3219
|
+
_out="${_f#./}"
|
|
3220
|
+
__tailor_sdk_worker_add_path_candidate "$_out"
|
|
3221
|
+
done
|
|
3222
|
+
local _pat
|
|
3223
|
+
for _pat in "${_matchers[@]}"; do
|
|
3224
|
+
[[ -n "$_pat" ]] || continue
|
|
3225
|
+
for _f in "$_dir"/${~_pat}(N.); do
|
|
3226
|
+
_out="${_f#./}"
|
|
3227
|
+
[[ "$_out" == "$_cur"* ]] && __tailor_sdk_worker_add_path_candidate "$_out"
|
|
3228
|
+
done
|
|
3229
|
+
done
|
|
3230
|
+
return 0 ;;
|
|
3231
|
+
--output-json|--outputJson)
|
|
3232
|
+
setopt local_options null_glob
|
|
3233
|
+
local _cur="${words[CURRENT]:-}" _dir _prefix _f _out
|
|
3234
|
+
local -a _matchers=(".json")
|
|
3235
|
+
if [[ -z "$_cur" || "$_cur" != */* ]]; then
|
|
3236
|
+
_dir="."
|
|
3237
|
+
_prefix="$_cur"
|
|
3238
|
+
elif [[ "$_cur" == */ ]]; then
|
|
3239
|
+
_dir="${_cur%/}"
|
|
3240
|
+
_prefix=""
|
|
3241
|
+
else
|
|
3242
|
+
_dir="${_cur%/*}"
|
|
3243
|
+
_prefix="${_cur##*/}"
|
|
3244
|
+
fi
|
|
3245
|
+
for _f in "$_dir"/"$_prefix"*(N/); do
|
|
3246
|
+
_out="${_f#./}"
|
|
3247
|
+
__tailor_sdk_worker_add_path_candidate "$_out"
|
|
3248
|
+
done
|
|
3249
|
+
local _pat
|
|
3250
|
+
for _pat in "${_matchers[@]}"; do
|
|
3251
|
+
[[ -n "$_pat" ]] || continue
|
|
3252
|
+
for _f in "$_dir"/${~_pat}(N.); do
|
|
3253
|
+
_out="${_f#./}"
|
|
3254
|
+
[[ "$_out" == "$_cur"* ]] && __tailor_sdk_worker_add_path_candidate "$_out"
|
|
3255
|
+
done
|
|
3256
|
+
done
|
|
3257
|
+
return 0 ;;
|
|
3258
|
+
esac
|
|
3259
|
+
if __tailor_sdk_worker_opt_takes_value "tailordb:erd:diff" "${words[CURRENT-1]}"; then return 0; fi
|
|
3260
|
+
if (( _after_dd )); then return 0; fi
|
|
3261
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
3262
|
+
local -a _opts=()
|
|
3263
|
+
__tailor_sdk_worker_not_used "--base-html" "--baseHtml" && _opts+=("--base-html:Base ERD viewer HTML file")
|
|
3264
|
+
__tailor_sdk_worker_not_used "--head-html" "--headHtml" && _opts+=("--head-html:Head ERD viewer HTML file")
|
|
3265
|
+
__tailor_sdk_worker_not_used "--namespace" "-n" "--n" && _opts+=("--namespace:TailorDB namespace name (defaults to the provided ERD schema namespace)")
|
|
3266
|
+
__tailor_sdk_worker_not_used "--output" "-o" "--o" && _opts+=("--output:Output ERD diff HTML file")
|
|
3267
|
+
__tailor_sdk_worker_not_used "--output-json" "--outputJson" && _opts+=("--output-json:Optional output JSON file for the computed diff")
|
|
3268
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
3269
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3270
|
+
return 0
|
|
3271
|
+
fi
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3124
3274
|
__tailor_sdk_worker_complete_tailordb_erd_serve() {
|
|
3125
3275
|
local -a _vals=()
|
|
3126
3276
|
case "${words[CURRENT-1]}" in
|
|
@@ -3219,7 +3369,7 @@ __tailor_sdk_worker_complete_tailordb_erd() {
|
|
|
3219
3369
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
3220
3370
|
return 0
|
|
3221
3371
|
fi
|
|
3222
|
-
local -a _subs=("export:Export TailorDB ERD static viewer from local TailorDB schema." "serve:Generate and serve TailorDB ERD locally with watch reload. (beta)" "deploy:Deploy ERD static website for TailorDB namespace(s).")
|
|
3372
|
+
local -a _subs=("export:Export TailorDB ERD static viewer from local TailorDB schema." "diff:Render TailorDB ERD schema diff HTML from exported ERD viewers." "serve:Generate and serve TailorDB ERD locally with watch reload. (beta)" "deploy:Deploy ERD static website for TailorDB namespace(s).")
|
|
3223
3373
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
3224
3374
|
}
|
|
3225
3375
|
|
|
@@ -4079,6 +4229,7 @@ _tailor_sdk_worker_completions() {
|
|
|
4079
4229
|
tailordb:migration:sync) __tailor_sdk_worker_complete_tailordb_migration_sync ;;
|
|
4080
4230
|
tailordb:migration) __tailor_sdk_worker_complete_tailordb_migration ;;
|
|
4081
4231
|
tailordb:erd:export) __tailor_sdk_worker_complete_tailordb_erd_export ;;
|
|
4232
|
+
tailordb:erd:diff) __tailor_sdk_worker_complete_tailordb_erd_diff ;;
|
|
4082
4233
|
tailordb:erd:serve) __tailor_sdk_worker_complete_tailordb_erd_serve ;;
|
|
4083
4234
|
tailordb:erd:deploy) __tailor_sdk_worker_complete_tailordb_erd_deploy ;;
|
|
4084
4235
|
tailordb:erd) __tailor_sdk_worker_complete_tailordb_erd ;;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/sdk/runtime/globals" />
|
|
2
2
|
import { c as TailorUser, n as AttributeMap, r as Env, s as TailorInvoker, t as AttributeList } from "../types-DTcZ2Yax.mjs";
|
|
3
|
-
import { s as PluginAttachment } from "../types-
|
|
4
|
-
import { $ as UserAttributeListKey, B as AuthConnectionTokenResult, G as BeforeLoginHookArgs, H as AuthOwnConfig, J as FederatedIdentityClaims, K as DefinedAuth, Q as UserAttributeKey, S as Resolver, U as AuthServiceInput, V as AuthExternalConfig, W as BeforeLoginClaims, X as OAuth2ClientGrantType, Y as FederatedIdentityProvider, Z as SCIMAttributeType, _ as ResolverReadyContext, _t as AuthConnectionConfig, a as Plugin, at as IDToken, b as TailorDBTypeForPlugin, c as PluginExecutorContextBase, ct as OAuth2ClientInput, d as PluginGeneratedResolver, dt as SCIMAttribute, et as UserAttributeMap, f as PluginGeneratedType, ft as SCIMAttributeMapping, g as ResolverNamespaceData, gt as TenantProvider, h as PluginProcessContext, ht as SCIMResource, i as NamespacePluginOutput, it as BuiltinIdP, l as PluginGeneratedExecutor, lt as OIDC, m as PluginOutput, mt as SCIMConfig, nt as ValueOperand, o as PluginConfigs, ot as IdProvider, p as PluginNamespaceProcessContext, pt as SCIMAuthorization, q as FederatedIdentity, r as GeneratorResult, s as PluginExecutorContext, t as ExecutorReadyContext, tt as UsernameFieldKey, u as PluginGeneratedExecutorWithFile, ut as SAML, v as TailorDBNamespaceData, vt as AuthConnectionOAuth2Config, x as TypePluginOutput, y as TailorDBReadyContext, z as AuthConfig } from "../types-
|
|
5
|
-
import { A as TailorDBInstance, D as TailorAnyDBField, F as TailorTypePermission, I as unsafeAllowAllGqlPermission, L as unsafeAllowAllTypePermission, M as db, N as PermissionCondition, O as TailorAnyDBType, P as TailorTypeGqlPermission, S as IdPGqlOperationsInput, _ as IdPConfig, a as ExecutorServiceConfig, b as IdPEmailConfig, c as ResolverServiceConfig, d as WorkflowServiceInput, f as StaticWebsiteConfig, h as SecretsConfig, j as TailorDBType, k as TailorDBField, l as ResolverServiceInput, n as RetryPolicy, o as ExecutorServiceInput, s as ResolverExternalConfig, t as ConcurrencyPolicy, u as WorkflowServiceConfig, v as IdPExternalConfig, w as AIGatewayConfig, x as IdPGqlOperations } from "../workflow.generated-
|
|
6
|
-
import { $ as
|
|
7
|
-
export { type AIGatewayConfig, type AttributeList, type AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, AuthInvoker, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type DefinedAuth, type Env, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorInvoker, type TailorTypeGqlPermission, type TailorTypePermission, type TailorUser, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WORKFLOW_TEST_ENV_KEY, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineGenerators, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
|
3
|
+
import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
|
|
4
|
+
import { $ as UserAttributeListKey, B as AuthConnectionTokenResult, G as BeforeLoginHookArgs, H as AuthOwnConfig, J as FederatedIdentityClaims, K as DefinedAuth, Q as UserAttributeKey, S as Resolver, U as AuthServiceInput, V as AuthExternalConfig, W as BeforeLoginClaims, X as OAuth2ClientGrantType, Y as FederatedIdentityProvider, Z as SCIMAttributeType, _ as ResolverReadyContext, _t as AuthConnectionConfig, a as Plugin, at as IDToken, b as TailorDBTypeForPlugin, c as PluginExecutorContextBase, ct as OAuth2ClientInput, d as PluginGeneratedResolver, dt as SCIMAttribute, et as UserAttributeMap, f as PluginGeneratedType, ft as SCIMAttributeMapping, g as ResolverNamespaceData, gt as TenantProvider, h as PluginProcessContext, ht as SCIMResource, i as NamespacePluginOutput, it as BuiltinIdP, l as PluginGeneratedExecutor, lt as OIDC, m as PluginOutput, mt as SCIMConfig, nt as ValueOperand, o as PluginConfigs, ot as IdProvider, p as PluginNamespaceProcessContext, pt as SCIMAuthorization, q as FederatedIdentity, r as GeneratorResult, s as PluginExecutorContext, t as ExecutorReadyContext, tt as UsernameFieldKey, u as PluginGeneratedExecutorWithFile, ut as SAML, v as TailorDBNamespaceData, vt as AuthConnectionOAuth2Config, x as TypePluginOutput, y as TailorDBReadyContext, z as AuthConfig } from "../types-Dynq4AJv.mjs";
|
|
5
|
+
import { A as TailorDBInstance, D as TailorAnyDBField, F as TailorTypePermission, I as unsafeAllowAllGqlPermission, L as unsafeAllowAllTypePermission, M as db, N as PermissionCondition, O as TailorAnyDBType, P as TailorTypeGqlPermission, S as IdPGqlOperationsInput, _ as IdPConfig, a as ExecutorServiceConfig, b as IdPEmailConfig, c as ResolverServiceConfig, d as WorkflowServiceInput, f as StaticWebsiteConfig, h as SecretsConfig, j as TailorDBType, k as TailorDBField, l as ResolverServiceInput, n as RetryPolicy, o as ExecutorServiceInput, s as ResolverExternalConfig, t as ConcurrencyPolicy, u as WorkflowServiceConfig, v as IdPExternalConfig, w as AIGatewayConfig, x as IdPGqlOperations } from "../workflow.generated-DJULCuRr.mjs";
|
|
6
|
+
import { $ as ResolverExecutedArgs, A as IncomingWebhookArgs, At as defineAuth, B as AuthAccessTokenArgs, C as defineAIGateway, Ct as WorkflowJob, D as defineWaitPoints, Dt as QueryType, E as defineWaitPoint, Et as WORKFLOW_TEST_ENV_KEY, F as IncomingWebhookTriggerOptions, Ft as MachineUserNameRegistry, G as IdpUserArgs, H as AuthAccessTokenRefreshedArgs, I as incomingWebhookTrigger, It as TailorField, J as IdpUserTrigger, K as IdpUserCreatedArgs, L as ScheduleArgs, M as IncomingWebhookResponse, Mt as IdpNameRegistry, N as IncomingWebhookResponseConfig, Nt as unauthenticatedTailorUser, O as createExecutor, Ot as createResolver, P as IncomingWebhookTrigger, Pt as MachineUserName, Q as RecordUpdatedArgs, R as ScheduleTrigger, S as unsafeAllowAllIdPPermission, St as createWorkflow, T as WaitPointInstance, Tt as createWorkflowJob, U as AuthAccessTokenRevokedArgs, V as AuthAccessTokenIssuedArgs, W as AuthAccessTokenTrigger, X as RecordCreatedArgs, Y as IdpUserUpdatedArgs, Z as RecordDeletedArgs, _ as createHttpAdapter, _t as Operation, a as defineGenerators, at as authAccessTokenTrigger, b as IdPPermission, bt as Workflow, c as HttpAdapterGraphQLQuery, ct as idpUserTrigger, d as HttpAdapterInput, dt as recordDeletedTrigger, et as ResolverExecutedTrigger, f as HttpAdapterInputFn, ft as recordTrigger, g as HttpAdapterTypedDocumentNode, gt as GqlOperation, h as HttpAdapterResponse, ht as FunctionOperation, i as defineConfig, it as authAccessTokenRevokedTrigger, j as IncomingWebhookRequest, jt as IdpName, k as Trigger, kt as AuthInvoker, l as HttpAdapterGraphQLRequest, lt as idpUserUpdatedTrigger, m as HttpAdapterRequest, mt as resolverExecutedTrigger, n as output, nt as authAccessTokenIssuedTrigger, o as definePlugins, ot as idpUserCreatedTrigger, p as HttpAdapterOutputFn, pt as recordUpdatedTrigger, q as IdpUserDeletedArgs, r as t, rt as authAccessTokenRefreshedTrigger, s as HttpAdapter, st as idpUserDeletedTrigger, t as __Infer, tt as TailorDBTrigger, u as HttpAdapterGraphQLResponse, ut as recordCreatedTrigger, v as defineSecretManager, vt as WebhookOperation, w as defineStaticWebSite, wt as WorkflowJobContext, x as IdPPermissionCondition, xt as WorkflowConfig, y as defineIdp, yt as WorkflowOperation, z as scheduleTrigger } from "../index-BAEaAqmz.mjs";
|
|
7
|
+
export { type AIGatewayConfig, type AttributeList, type AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, AuthInvoker, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type DefinedAuth, type Env, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorInvoker, type TailorTypeGqlPermission, type TailorTypePermission, type TailorUser, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WORKFLOW_TEST_ENV_KEY, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineGenerators, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
package/dist/configure/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { t as t$1 } from "../types-
|
|
2
|
+
import { t as t$1 } from "../types-D4QMmNWh.mjs";
|
|
3
3
|
import { t as brandValue } from "../brand-DlnJ375c.mjs";
|
|
4
|
-
import { t as db } from "../schema-
|
|
4
|
+
import { t as db } from "../schema-C4fkpWV_.mjs";
|
|
5
5
|
import { r as dispatchTriggerWorkflow, s as registerWorkflow, u as WORKFLOW_TEST_ENV_KEY } from "../registry-D0uB0OrK.mjs";
|
|
6
6
|
import { t as createWorkflowJob } from "../job-BpsFXPbi.mjs";
|
|
7
7
|
|
|
@@ -620,12 +620,14 @@ function defineSecretManager(config, options) {
|
|
|
620
620
|
* Files are discovered via the `httpAdapter.files` glob in `defineConfig()`.
|
|
621
621
|
*
|
|
622
622
|
* `input` is an object keyed by lowercase HTTP method (`get`, `post`, `put`,
|
|
623
|
-
* `patch`, `delete`).
|
|
623
|
+
* `patch`, `delete`). Each handler can return a GraphQL query string or a
|
|
624
|
+
* typed document node. At least one method must be declared; the methods the
|
|
624
625
|
* adapter serves are derived from these keys.
|
|
625
626
|
*
|
|
626
|
-
* `output` is optional and shared across all methods. If
|
|
627
|
-
*
|
|
628
|
-
*
|
|
627
|
+
* `output` is optional and shared across all methods. If `input` returns typed
|
|
628
|
+
* document nodes, `output` receives the corresponding result type as
|
|
629
|
+
* `resp.data`. If you need different response shapes per method, discriminate
|
|
630
|
+
* inside `output` based on the GraphQL response shape.
|
|
629
631
|
*
|
|
630
632
|
* Each handler runs server-side and must be synchronous: Node APIs, `fetch`,
|
|
631
633
|
* `async`/`await`, Promises, and top-level `await` are not available.
|