@tailor-platform/sdk 1.70.1 → 1.72.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 +32 -0
- package/dist/{authconnection-BIYzEh2p.d.mts → authconnection-CqfaJfrC.d.mts} +8 -15
- package/dist/{authconnection-Ds2Ahpum.mjs → authconnection-D7lsvsKY.mjs} +2 -2
- package/dist/authconnection-D7lsvsKY.mjs.map +1 -0
- package/dist/cli/index.mjs +781 -185
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +7 -6
- package/dist/cli/lib.mjs +1 -1
- package/dist/completion/zsh-worker.zsh +124 -25
- package/dist/configure/index.d.mts +5 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-C-vsbx27.d.mts → index-BDBU7x-i.d.mts} +2 -2
- package/dist/{index-dKNk8hjo.d.mts → index-BSlv_YrG.d.mts} +2 -2
- package/dist/{index-BAEaAqmz.d.mts → index-BzGqTY5x.d.mts} +16 -4
- package/dist/{index-CKI0eZP6.d.mts → index-D3_Au3wu.d.mts} +2 -2
- package/dist/{index-CrqOgUF2.d.mts → index-DtFRlrww.d.mts} +2 -2
- package/dist/{index-DESLU9kI.d.mts → index-jeE3UvF2.d.mts} +2 -2
- package/dist/mock-wf5qeZLi.mjs.map +1 -1
- 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/runtime/authconnection.d.mts +1 -1
- package/dist/runtime/authconnection.mjs +1 -1
- package/dist/runtime/globals.d.mts +1 -1
- package/dist/runtime/index.d.mts +2 -2
- package/dist/runtime/index.mjs +1 -1
- package/dist/{runtime-BpHVwifd.mjs → runtime-Cd375HD-.mjs} +23 -10
- package/dist/runtime-Cd375HD-.mjs.map +1 -0
- package/dist/{types-Dynq4AJv.d.mts → types-aqnqTCfO.d.mts} +4 -342
- package/dist/types-v_ErzNUF.d.mts +345 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/vitest/index.d.mts +4 -3
- package/dist/{workflow.generated-DJULCuRr.d.mts → workflow.generated-Da1zECDw.d.mts} +3 -2
- package/docs/cli/setup.md +129 -19
- package/docs/cli-reference.md +9 -4
- package/docs/services/auth.md +10 -8
- package/docs/testing.md +1 -1
- package/package.json +1 -1
- package/dist/authconnection-Ds2Ahpum.mjs.map +0 -1
- package/dist/runtime-BpHVwifd.mjs.map +0 -1
package/dist/cli/lib.d.mts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { n as
|
|
6
|
-
import { n as
|
|
7
|
-
import { n as
|
|
2
|
+
import { C as OAuth2Client$1, S as IdProvider } from "../types-v_ErzNUF.mjs";
|
|
3
|
+
import { A as IncomingWebhookTrigger, L as TailorDBType, M as ScheduleTriggerInput, R as TypeSourceInfoEntry, S as Resolver, T as Executor, a as Plugin } from "../types-aqnqTCfO.mjs";
|
|
4
|
+
import { i as AppConfig } from "../workflow.generated-Da1zECDw.mjs";
|
|
5
|
+
import { n as kyselyTypePlugin } from "../index-jeE3UvF2.mjs";
|
|
6
|
+
import { n as enumConstantsPlugin } from "../index-BDBU7x-i.mjs";
|
|
7
|
+
import { n as fileUtilsPlugin } from "../index-DtFRlrww.mjs";
|
|
8
|
+
import { n as seedPlugin } from "../index-D3_Au3wu.mjs";
|
|
8
9
|
import { z } from "zod";
|
|
9
10
|
import { JsonObject, Message } from "@bufbuild/protobuf";
|
|
10
11
|
import { GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { t as assertDefined } from "../assert-CKfwrmCV.mjs";
|
|
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-
|
|
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-Cd375HD-.mjs";
|
|
4
4
|
import { $ as initOperatorClient, A as loadAccessToken, I as loadWorkspaceId, S as getDistDir, T as loadConfig, h as platformBundleDefinePlugin } from "../application-DmjIKQ-a.mjs";
|
|
5
5
|
import { n as enumConstantsPlugin } from "../enum-constants-C7DaWeQo.mjs";
|
|
6
6
|
import { t as multiline } from "../multiline-Cf9ODpr1.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# politty-completion-version: 1
|
|
2
|
-
# politty-bin-sig:
|
|
2
|
+
# politty-bin-sig: 1782914535
|
|
3
3
|
# politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor-sdk
|
|
4
4
|
# program: tailor-sdk
|
|
5
5
|
# shell: zsh
|
|
@@ -686,12 +686,27 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
686
686
|
secret:delete:--profile|secret:delete:-p|secret:delete:--p) return 0 ;;
|
|
687
687
|
secret:delete:--vault-name|secret:delete:--vaultName|secret:delete:-V|secret:delete:--V) return 0 ;;
|
|
688
688
|
secret:delete:--name|secret:delete:-n|secret:delete:--n) return 0 ;;
|
|
689
|
-
setup:--
|
|
690
|
-
setup:--
|
|
691
|
-
setup:--
|
|
692
|
-
setup:--
|
|
693
|
-
setup:--
|
|
694
|
-
setup:--
|
|
689
|
+
setup:branch:--name|setup:branch:-n|setup:branch:--n) return 0 ;;
|
|
690
|
+
setup:branch:--branch) return 0 ;;
|
|
691
|
+
setup:branch:--environment) return 0 ;;
|
|
692
|
+
setup:branch:--dir|setup:branch:-d|setup:branch:--d) return 0 ;;
|
|
693
|
+
setup:tag:--name|setup:tag:-n|setup:tag:--n) return 0 ;;
|
|
694
|
+
setup:tag:--tag-pattern|setup:tag:--tagPattern) return 0 ;;
|
|
695
|
+
setup:tag:--branch) return 0 ;;
|
|
696
|
+
setup:tag:--environment) return 0 ;;
|
|
697
|
+
setup:tag:--dir|setup:tag:-d|setup:tag:--d) return 0 ;;
|
|
698
|
+
setup:preview:--name|setup:preview:-n|setup:preview:--n) return 0 ;;
|
|
699
|
+
setup:preview:--branch) return 0 ;;
|
|
700
|
+
setup:preview:--region) return 0 ;;
|
|
701
|
+
setup:preview:--environment) return 0 ;;
|
|
702
|
+
setup:preview:--dir|setup:preview:-d|setup:preview:--d) return 0 ;;
|
|
703
|
+
setup:action:--name|setup:action:-n|setup:action:--n) return 0 ;;
|
|
704
|
+
setup:action:--dir|setup:action:-d|setup:action:--d) return 0 ;;
|
|
705
|
+
setup:action:--environment) return 0 ;;
|
|
706
|
+
setup:coordinate:--name|setup:coordinate:-n|setup:coordinate:--n) return 0 ;;
|
|
707
|
+
setup:coordinate:--action) return 0 ;;
|
|
708
|
+
setup:coordinate:--branch) return 0 ;;
|
|
709
|
+
setup:coordinate:--environment) return 0 ;;
|
|
695
710
|
show:--workspace-id|show:--workspaceId|show:-w|show:--w) return 0 ;;
|
|
696
711
|
show:--profile|show:-p|show:--p) return 0 ;;
|
|
697
712
|
show:--config|show:-c|show:--c) return 0 ;;
|
|
@@ -912,6 +927,11 @@ __tailor_sdk_worker_is_subcmd() {
|
|
|
912
927
|
secret:list) return 0 ;;
|
|
913
928
|
secret:delete) return 0 ;;
|
|
914
929
|
:secret) return 0 ;;
|
|
930
|
+
setup:branch) return 0 ;;
|
|
931
|
+
setup:tag) return 0 ;;
|
|
932
|
+
setup:preview) return 0 ;;
|
|
933
|
+
setup:action) return 0 ;;
|
|
934
|
+
setup:coordinate) return 0 ;;
|
|
915
935
|
setup:check) return 0 ;;
|
|
916
936
|
:setup) return 0 ;;
|
|
917
937
|
:show) return 0 ;;
|
|
@@ -2524,12 +2544,102 @@ __tailor_sdk_worker_complete_secret() {
|
|
|
2524
2544
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2525
2545
|
}
|
|
2526
2546
|
|
|
2547
|
+
__tailor_sdk_worker_complete_setup_branch() {
|
|
2548
|
+
local -a _vals=()
|
|
2549
|
+
if __tailor_sdk_worker_opt_takes_value "setup:branch" "${words[CURRENT-1]}"; then return 0; fi
|
|
2550
|
+
if (( _after_dd )); then return 0; fi
|
|
2551
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2552
|
+
local -a _opts=()
|
|
2553
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2554
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Deploy trigger branch (defaults to the detected default branch)")
|
|
2555
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2556
|
+
__tailor_sdk_worker_not_used "--erd-preview" "--erdPreview" && _opts+=("--erd-preview:Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces")
|
|
2557
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2558
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2559
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2560
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2561
|
+
return 0
|
|
2562
|
+
fi
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
__tailor_sdk_worker_complete_setup_tag() {
|
|
2566
|
+
local -a _vals=()
|
|
2567
|
+
if __tailor_sdk_worker_opt_takes_value "setup:tag" "${words[CURRENT-1]}"; then return 0; fi
|
|
2568
|
+
if (( _after_dd )); then return 0; fi
|
|
2569
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2570
|
+
local -a _opts=()
|
|
2571
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2572
|
+
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (defaults to v*)")
|
|
2573
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Tag-reachability guard branch (no guard when omitted)")
|
|
2574
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2575
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2576
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2577
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2578
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2579
|
+
return 0
|
|
2580
|
+
fi
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
__tailor_sdk_worker_complete_setup_preview() {
|
|
2584
|
+
local -a _vals=()
|
|
2585
|
+
if __tailor_sdk_worker_opt_takes_value "setup:preview" "${words[CURRENT-1]}"; then return 0; fi
|
|
2586
|
+
if (( _after_dd )); then return 0; fi
|
|
2587
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2588
|
+
local -a _opts=()
|
|
2589
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2590
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch to filter PRs by (defaults to the detected default branch)")
|
|
2591
|
+
__tailor_sdk_worker_not_used "--region" && _opts+=("--region:Workspace region for preview workspace creation (e.g. us-west). Required.")
|
|
2592
|
+
__tailor_sdk_worker_not_used "--require-preview-label" "--requirePreviewLabel" && _opts+=("--require-preview-label:Deploy preview only for PRs labeled \`tailor\:preview\` instead of all PRs.")
|
|
2593
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the preview jobs (defaults to the workspace name)")
|
|
2594
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2595
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2596
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2597
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2598
|
+
return 0
|
|
2599
|
+
fi
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
__tailor_sdk_worker_complete_setup_action() {
|
|
2603
|
+
local -a _vals=()
|
|
2604
|
+
if __tailor_sdk_worker_opt_takes_value "setup:action" "${words[CURRENT-1]}"; then return 0; fi
|
|
2605
|
+
if (( _after_dd )); then return 0; fi
|
|
2606
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2607
|
+
local -a _opts=()
|
|
2608
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2609
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory")
|
|
2610
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment (defaults to the workspace name)")
|
|
2611
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits and regenerate")
|
|
2612
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2613
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2614
|
+
return 0
|
|
2615
|
+
fi
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
__tailor_sdk_worker_complete_setup_coordinate() {
|
|
2619
|
+
local -a _vals=()
|
|
2620
|
+
if __tailor_sdk_worker_opt_takes_value "setup:coordinate" "${words[CURRENT-1]}"; then return 0; fi
|
|
2621
|
+
if (( _after_dd )); then return 0; fi
|
|
2622
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2623
|
+
local -a _opts=()
|
|
2624
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Coordinator name (used in the generated workflow file name and job names)")
|
|
2625
|
+
_opts+=("--action:Composite action to include (can be specified multiple times). tailor- prefix optional.")
|
|
2626
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch)")
|
|
2627
|
+
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target coordinator")
|
|
2628
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs")
|
|
2629
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits and regenerate")
|
|
2630
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2631
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2632
|
+
return 0
|
|
2633
|
+
fi
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2527
2636
|
__tailor_sdk_worker_complete_setup_check() {
|
|
2528
2637
|
local -a _vals=()
|
|
2529
2638
|
if __tailor_sdk_worker_opt_takes_value "setup:check" "${words[CURRENT-1]}"; then return 0; fi
|
|
2530
2639
|
if (( _after_dd )); then return 0; fi
|
|
2531
2640
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2532
2641
|
local -a _opts=()
|
|
2642
|
+
__tailor_sdk_worker_not_used "--ci" && _opts+=("--ci:Run in CI mode\: skip checks that are handled by the runtime (e.g. TAILOR_PLATFORM_WORKSPACE_ID).")
|
|
2533
2643
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2534
2644
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2535
2645
|
return 0
|
|
@@ -2538,31 +2648,15 @@ __tailor_sdk_worker_complete_setup_check() {
|
|
|
2538
2648
|
|
|
2539
2649
|
__tailor_sdk_worker_complete_setup() {
|
|
2540
2650
|
local -a _vals=()
|
|
2541
|
-
case "${words[CURRENT-1]}" in
|
|
2542
|
-
--provider|-p|--p)
|
|
2543
|
-
_vals=("github")
|
|
2544
|
-
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
2545
|
-
return 0 ;;
|
|
2546
|
-
esac
|
|
2547
2651
|
if __tailor_sdk_worker_opt_takes_value "setup" "${words[CURRENT-1]}"; then return 0; fi
|
|
2548
2652
|
if (( _after_dd )); then return 0; fi
|
|
2549
2653
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2550
2654
|
local -a _opts=()
|
|
2551
|
-
__tailor_sdk_worker_not_used "--provider" "-p" "--p" && _opts+=("--provider:CI provider to generate for (only 'github' is supported)")
|
|
2552
|
-
__tailor_sdk_worker_not_used "--workspace-name" "--workspaceName" "-n" "--n" && _opts+=("--workspace-name:Workspace name (defaults to the config 'name')")
|
|
2553
|
-
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch). Tag target\: tag-reachability guard branch (no guard when omitted)")
|
|
2554
|
-
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target (deploy on tag push)")
|
|
2555
|
-
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (requires --tag; defaults to v*)")
|
|
2556
|
-
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2557
|
-
__tailor_sdk_worker_not_used "--no-plan" "--noPlan" && _opts+=("--no-plan:Disable the plan job for a branch target (cannot be combined with --tag)")
|
|
2558
|
-
__tailor_sdk_worker_not_used "--erd-preview" "--erdPreview" && _opts+=("--erd-preview:Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces")
|
|
2559
|
-
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2560
|
-
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2561
2655
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2562
2656
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2563
2657
|
return 0
|
|
2564
2658
|
fi
|
|
2565
|
-
local -a _subs=("check:Audit generated workflows for drift against the current config/repo (read-only).")
|
|
2659
|
+
local -a _subs=("branch:Generate a branch-target deploy workflow (push to branch triggers deploy)." "tag:Generate a tag-target deploy workflow (tag push triggers deploy)." "preview:Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace)." "action:Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys)." "coordinate:Generate a coordinator workflow that orchestrates multiple --action-generated composite actions." "check:Audit generated workflows for drift against the current config/repo (read-only).")
|
|
2566
2660
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2567
2661
|
}
|
|
2568
2662
|
|
|
@@ -4097,7 +4191,7 @@ __tailor_sdk_worker_complete_root() {
|
|
|
4097
4191
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
4098
4192
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
4099
4193
|
else
|
|
4100
|
-
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:Generate
|
|
4194
|
+
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:Generate CI deploy workflows for your project. (beta)" "show:Show information about the deployed application." "skills:Manage Tailor SDK agent skills." "staticwebsite:Manage static websites in your workspace." "tailordb:Manage TailorDB tables and data." "upgrade:Run codemods to upgrade your project to a newer SDK version." "user:Manage Tailor Platform users." "workflow:Manage workflows and workflow executions." "workspace:Manage Tailor Platform workspaces." "completion:Generate shell completion script")
|
|
4101
4195
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
4102
4196
|
fi
|
|
4103
4197
|
}
|
|
@@ -4211,6 +4305,11 @@ _tailor_sdk_worker_completions() {
|
|
|
4211
4305
|
secret:list) __tailor_sdk_worker_complete_secret_list ;;
|
|
4212
4306
|
secret:delete) __tailor_sdk_worker_complete_secret_delete ;;
|
|
4213
4307
|
secret) __tailor_sdk_worker_complete_secret ;;
|
|
4308
|
+
setup:branch) __tailor_sdk_worker_complete_setup_branch ;;
|
|
4309
|
+
setup:tag) __tailor_sdk_worker_complete_setup_tag ;;
|
|
4310
|
+
setup:preview) __tailor_sdk_worker_complete_setup_preview ;;
|
|
4311
|
+
setup:action) __tailor_sdk_worker_complete_setup_action ;;
|
|
4312
|
+
setup:coordinate) __tailor_sdk_worker_complete_setup_coordinate ;;
|
|
4214
4313
|
setup:check) __tailor_sdk_worker_complete_setup_check ;;
|
|
4215
4314
|
setup) __tailor_sdk_worker_complete_setup ;;
|
|
4216
4315
|
show) __tailor_sdk_worker_complete_show ;;
|
|
@@ -1,7 +1,8 @@
|
|
|
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
3
|
import { s as PluginAttachment } from "../types-rj8YJcEe.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
4
|
+
import { A as SCIMConfig, D as SCIMAttribute, E as SAML, M as TenantProvider, N as AuthConnectionConfig, O as SCIMAttributeMapping, P as AuthConnectionOAuth2Config, S as IdProvider, T as OIDC, _ as UsernameFieldKey, a as AuthServiceInput, b as BuiltinIdP, c as DefinedAuth, d as FederatedIdentityProvider, f as OAuth2ClientGrantType, g as UserAttributeMap, h as UserAttributeListKey, i as AuthOwnConfig, j as SCIMResource, k as SCIMAuthorization, l as FederatedIdentity, m as UserAttributeKey, n as AuthConnectionTokenResult, o as BeforeLoginClaims, p as SCIMAttributeType, r as AuthExternalConfig, s as BeforeLoginHookArgs, t as AuthConfig, u as FederatedIdentityClaims, v as ValueOperand, w as OAuth2ClientInput, x as IDToken } from "../types-v_ErzNUF.mjs";
|
|
5
|
+
import { S as Resolver, _ as ResolverReadyContext, a as Plugin, b as TailorDBTypeForPlugin, c as PluginExecutorContextBase, d as PluginGeneratedResolver, f as PluginGeneratedType, g as ResolverNamespaceData, h as PluginProcessContext, i as NamespacePluginOutput, l as PluginGeneratedExecutor, m as PluginOutput, o as PluginConfigs, p as PluginNamespaceProcessContext, r as GeneratorResult, s as PluginExecutorContext, t as ExecutorReadyContext, u as PluginGeneratedExecutorWithFile, v as TailorDBNamespaceData, x as TypePluginOutput, y as TailorDBReadyContext } from "../types-aqnqTCfO.mjs";
|
|
6
|
+
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-Da1zECDw.mjs";
|
|
7
|
+
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 unauthenticatedTailorUser, G as IdpUserArgs, H as AuthAccessTokenRefreshedArgs, I as incomingWebhookTrigger, It as MachineUserName, J as IdpUserTrigger, K as IdpUserCreatedArgs, L as ScheduleArgs, Lt as MachineUserNameRegistry, M as IncomingWebhookResponse, Mt as ConnectionNameRegistry, N as IncomingWebhookResponseConfig, Nt as IdpName, O as createExecutor, Ot as createResolver, P as IncomingWebhookTrigger, Pt as IdpNameRegistry, Q as RecordUpdatedArgs, R as ScheduleTrigger, Rt as TailorField, 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 ConnectionName, 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-BzGqTY5x.mjs";
|
|
8
|
+
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 ConnectionName, type ConnectionNameRegistry, 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 };
|