@tailor-platform/sdk 2.0.0-next.10 → 2.0.0-next.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +165 -0
  2. package/dist/{application-miwiXtB4.mjs → application-CM6hKnSK.mjs} +312 -89
  3. package/dist/application-CM6hKnSK.mjs.map +1 -0
  4. package/dist/application-CXNaUNhv.mjs +3 -0
  5. package/dist/cli/commands/deploy/aigateway.d.mts +1 -1
  6. package/dist/cli/commands/deploy/application.d.mts +1 -1
  7. package/dist/cli/commands/deploy/auth.d.mts +1 -1
  8. package/dist/cli/commands/deploy/deploy.d.mts +1 -0
  9. package/dist/cli/commands/deploy/executor.d.mts +1 -1
  10. package/dist/cli/commands/deploy/function-registry.d.mts +1 -2
  11. package/dist/cli/commands/deploy/idp.d.mts +1 -1
  12. package/dist/cli/commands/deploy/label.d.mts +2 -0
  13. package/dist/cli/commands/deploy/resolver.d.mts +1 -1
  14. package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -1
  15. package/dist/cli/commands/deploy/tailordb/index.d.mts +2 -1
  16. package/dist/cli/commands/deploy/types.d.mts +2 -1
  17. package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +1 -2
  18. package/dist/cli/commands/deploy/workflow.d.mts +1 -1
  19. package/dist/cli/commands/executor/get.d.mts +1 -10
  20. package/dist/cli/commands/executor/jobs.d.mts +1 -38
  21. package/dist/cli/commands/executor/trigger.d.mts +1 -11
  22. package/dist/cli/commands/generate/seed/bundler.d.mts +2 -1
  23. package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +5 -0
  24. package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
  25. package/dist/cli/commands/workflow/executions.d.mts +1 -13
  26. package/dist/cli/commands/workflow/get.d.mts +1 -10
  27. package/dist/cli/commands/workflow/start.d.mts +2 -14
  28. package/dist/cli/lib.d.mts +7 -11
  29. package/dist/cli/lib.mjs +99 -42
  30. package/dist/cli/lib.mjs.map +1 -1
  31. package/dist/cli/main.mjs +318 -124
  32. package/dist/cli/main.mjs.map +1 -1
  33. package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
  34. package/dist/cli/services/workflow/bundler.d.mts +2 -1
  35. package/dist/cli/shared/client.d.mts +28 -3
  36. package/dist/cli/shared/config-loader.d.mts +11 -4
  37. package/dist/cli/shared/tsconfig-paths-plugin.d.mts +2 -0
  38. package/dist/cli/shared/type-generator.d.mts +4 -3
  39. package/dist/completion/zsh-worker.zsh +82 -22
  40. package/dist/configure/config/types.d.mts +26 -3
  41. package/dist/configure/index.d.mts +2 -2
  42. package/dist/configure/index.mjs +171 -3
  43. package/dist/configure/index.mjs.map +1 -1
  44. package/dist/configure/services/executor/index.d.mts +2 -2
  45. package/dist/configure/services/executor/trigger/event.d.mts +245 -2
  46. package/dist/configure/services/executor/trigger/index.d.mts +3 -3
  47. package/dist/configure/services/idp/index.d.mts +1 -1
  48. package/dist/configure/services/index.d.mts +2 -2
  49. package/dist/configure/services/tailordb/index.d.mts +0 -1
  50. package/dist/configure/services/workflow/execution-policy.d.mts +1 -1
  51. package/dist/configure/services/workflow/execution-policy.types.d.mts +1 -1
  52. package/dist/configure/services/workflow/job.d.mts +11 -2
  53. package/dist/configure/services/workflow/workflow.d.mts +10 -0
  54. package/dist/{globals-DQotNuwK.mjs → globals-TfAVItuK.mjs} +1 -2
  55. package/dist/globals-TfAVItuK.mjs.map +1 -0
  56. package/dist/node-builtins-CmaL2Cbq.mjs +36 -0
  57. package/dist/node-builtins-CmaL2Cbq.mjs.map +1 -0
  58. package/dist/plugin/builtin/enum-constants/index.mjs +115 -2
  59. package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -0
  60. package/dist/plugin/builtin/file-utils/index.mjs +149 -2
  61. package/dist/plugin/builtin/file-utils/index.mjs.map +1 -0
  62. package/dist/plugin/builtin/kysely-type/index.mjs +274 -2
  63. package/dist/plugin/builtin/kysely-type/index.mjs.map +1 -0
  64. package/dist/plugin/builtin/seed/index.mjs +1 -1
  65. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +2 -0
  66. package/dist/{register-ts-hook-BAHMwxfG.mjs → register-ts-hook-LYV7zH-e.mjs} +2252 -797
  67. package/dist/register-ts-hook-LYV7zH-e.mjs.map +1 -0
  68. package/dist/registry-BIGVUrMB.mjs.map +1 -1
  69. package/dist/runtime/index.mjs +1 -1
  70. package/dist/runtime/workflow.d.mts +2 -20
  71. package/dist/runtime/workflow.mjs +1 -1
  72. package/dist/{seed-LUVr7jHL.mjs → seed-B-yckgQY.mjs} +42 -3
  73. package/dist/seed-B-yckgQY.mjs.map +1 -0
  74. package/dist/service-M7OYziQP.mjs +3 -0
  75. package/dist/{service-BNtPsK9Q.mjs → service-k1xy_A5G.mjs} +29 -2
  76. package/dist/{service-BNtPsK9Q.mjs.map → service-k1xy_A5G.mjs.map} +1 -1
  77. package/dist/{service_pb-BwZRiNug.mjs → service_pb-D5--My_M.mjs} +5 -5
  78. package/dist/service_pb-D5--My_M.mjs.map +1 -0
  79. package/dist/{service_pb-wRkxUta6.mjs → service_pb-i8CmnQP4.mjs} +1 -1
  80. package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +106 -1
  81. package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +24 -1
  82. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +49 -1
  83. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +89 -6
  84. package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +26 -1
  85. package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +101 -1
  86. package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +22 -1
  87. package/dist/types/executor.generated.d.mts +23 -3
  88. package/dist/types/idp.generated.d.mts +1 -1
  89. package/dist/utils/test/index.d.mts +1 -2
  90. package/dist/utils/test/index.mjs +1 -173
  91. package/dist/utils/test/index.mjs.map +1 -1
  92. package/dist/vitest/environment.mjs +1 -1
  93. package/dist/vitest/index.d.mts +2 -2
  94. package/dist/vitest/index.mjs +10 -52
  95. package/dist/vitest/index.mjs.map +1 -1
  96. package/dist/vitest/mocks/workflow.d.mts +0 -9
  97. package/dist/vitest/setup.mjs +1 -1
  98. package/dist/{workflow-CsaQ9qK-.mjs → workflow-Bamae_Yc.mjs} +1 -9
  99. package/dist/workflow-Bamae_Yc.mjs.map +1 -0
  100. package/dist/{workspace_resource_pb-UGK1SSn_.mjs → workspace_resource_pb-DXnO2AT-.mjs} +7 -7
  101. package/dist/workspace_resource_pb-DXnO2AT-.mjs.map +1 -0
  102. package/docs/cli/tailordb.md +39 -7
  103. package/docs/cli-reference.md +11 -10
  104. package/docs/configuration.md +50 -0
  105. package/docs/migration/v2.md +306 -9
  106. package/docs/runtime.md +1 -1
  107. package/docs/services/executor.md +83 -3
  108. package/docs/services/idp.md +8 -6
  109. package/docs/services/resolver.md +6 -4
  110. package/docs/services/tailordb-migration.md +17 -6
  111. package/docs/services/tailordb.md +6 -4
  112. package/docs/services/workflow.md +33 -3
  113. package/package.json +19 -17
  114. package/dist/application-DArFTTJ9.mjs +0 -3
  115. package/dist/application-miwiXtB4.mjs.map +0 -1
  116. package/dist/enum-constants-j9QBF0cB.mjs +0 -116
  117. package/dist/enum-constants-j9QBF0cB.mjs.map +0 -1
  118. package/dist/file-utils-yEiIS4nJ.mjs +0 -150
  119. package/dist/file-utils-yEiIS4nJ.mjs.map +0 -1
  120. package/dist/globals-DQotNuwK.mjs.map +0 -1
  121. package/dist/kysely-type-DqIRgDYR.mjs +0 -275
  122. package/dist/kysely-type-DqIRgDYR.mjs.map +0 -1
  123. package/dist/register-ts-hook-BAHMwxfG.mjs.map +0 -1
  124. package/dist/seed-LUVr7jHL.mjs.map +0 -1
  125. package/dist/service-D5jn05ZI.mjs +0 -3
  126. package/dist/service_pb-BwZRiNug.mjs.map +0 -1
  127. package/dist/utils/test/mock.d.mts +0 -86
  128. package/dist/workflow-CsaQ9qK-.mjs.map +0 -1
  129. package/dist/workspace_resource_pb-UGK1SSn_.mjs.map +0 -1
@@ -0,0 +1,3 @@
1
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-CM6hKnSK.mjs";
2
+
3
+ export { defineApplication, generatePluginFilesIfNeeded };
@@ -1,5 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/aigateway_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import "./types.mjs";
5
5
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,7 +1,7 @@
1
1
  import "../../services/http-adapter/bundler.mjs";
2
2
  import "../../../tailor-proto/src/tailor/v1/http_adapter_resource_pb.mjs";
3
3
  import "../../../tailor-proto/src/tailor/v1/application_pb.mjs";
4
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
4
  import "../../shared/client.mjs";
5
+ import "./label.mjs";
6
6
  import "./types.mjs";
7
7
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,5 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/auth_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import "./types.mjs";
5
5
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -2,6 +2,7 @@ import { BundledScripts } from "./function-registry-types.mjs";
2
2
  import "../../shared/config-loader.mjs";
3
3
  import "../../services/application.mjs";
4
4
  import "../../shared/client.mjs";
5
+ import "./label.mjs";
5
6
  import "./types.mjs";
6
7
  import "./apply-phases.mjs";
7
8
  //#region src/cli/commands/deploy/deploy.d.ts
@@ -1,7 +1,7 @@
1
1
  import "../../services/application.mjs";
2
2
  import "../../../tailor-proto/src/tailor/v1/executor_resource_pb.mjs";
3
3
  import "../../../tailor-proto/src/tailor/v1/executor_pb.mjs";
4
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
4
  import "../../shared/client.mjs";
5
+ import "./label.mjs";
6
6
  import "./types.mjs";
7
7
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,7 +1,6 @@
1
1
  import { BundledScripts } from "./function-registry-types.mjs";
2
2
  import "../../services/workflow/service.mjs";
3
3
  import "../../services/application.mjs";
4
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
4
  import "../../shared/client.mjs";
6
- import { MessageInitShape } from "@bufbuild/protobuf";
5
+ import "./label.mjs";
7
6
  export type { BundledScripts };
@@ -1,5 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/idp_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import "./types.mjs";
5
5
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -0,0 +1,2 @@
1
+ import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
2
+ import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,5 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/pipeline_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import "./types.mjs";
5
5
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,5 +1,5 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/staticwebsite_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import "./types.mjs";
5
5
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,9 +1,10 @@
1
1
  import "../../../shared/config-loader.mjs";
2
2
  import "../../../services/application.mjs";
3
3
  import "../../../../tailor-proto/src/tailor/v1/tailordb_pb.mjs";
4
- import "../../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
5
4
  import "../../../shared/client.mjs";
5
+ import "../label.mjs";
6
6
  import "../types.mjs";
7
7
  import "../../tailordb/migrate/config.mjs";
8
8
  import "../../tailordb/migrate/snapshot.mjs";
9
+ import "../../tailordb/migrate/schema-checks.mjs";
9
10
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -1,3 +1,4 @@
1
1
  import "../../shared/config-loader.mjs";
2
2
  import "../../services/application.mjs";
3
- import "../../shared/client.mjs";
3
+ import "../../shared/client.mjs";
4
+ import "./label.mjs";
@@ -1,3 +1,2 @@
1
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
2
1
  import "../../shared/client.mjs";
3
- import { MessageInitShape } from "@bufbuild/protobuf";
2
+ import "./label.mjs";
@@ -1,4 +1,4 @@
1
1
  import "../../../tailor-proto/src/tailor/v1/workflow_pb.mjs";
2
- import "../../../tailor-proto/src/tailor/v1/metadata_pb.mjs";
3
2
  import "../../shared/client.mjs";
3
+ import "./label.mjs";
4
4
  import { MessageInitShape } from "@bufbuild/protobuf";
@@ -9,20 +9,11 @@ type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
9
9
  workspaceId?: string;
10
10
  profile?: string;
11
11
  };
12
- /**
13
- * @deprecated Use GetExecutorTypedOptions instead.
14
- */
15
- interface GetExecutorOptions {
16
- name: string;
17
- workspaceId?: string;
18
- profile?: string;
19
- }
20
12
  /**
21
13
  * Get an executor by name and return CLI-friendly info.
22
14
  * @param options - Executor lookup options
23
15
  * @returns Executor information
24
16
  */
25
17
  declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
26
- declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
27
18
  //#endregion
28
- export { GetExecutorOptions, GetExecutorTypedOptions, getExecutor };
19
+ export { GetExecutorTypedOptions, getExecutor };
@@ -30,40 +30,6 @@ type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
30
30
  logs?: boolean;
31
31
  showProgress?: boolean;
32
32
  };
33
- /**
34
- * @deprecated Use ListExecutorJobsTypedOptions instead.
35
- */
36
- interface ListExecutorJobsOptions {
37
- executorName: string;
38
- status?: string;
39
- order?: Order;
40
- limit?: number;
41
- workspaceId?: string;
42
- profile?: string;
43
- }
44
- /**
45
- * @deprecated Use GetExecutorJobTypedOptions instead.
46
- */
47
- interface GetExecutorJobOptions {
48
- executorName: string;
49
- jobId: string;
50
- attempts?: boolean;
51
- workspaceId?: string;
52
- profile?: string;
53
- }
54
- /**
55
- * @deprecated Use WatchExecutorJobTypedOptions instead.
56
- */
57
- interface WatchExecutorJobOptions {
58
- executorName: string;
59
- jobId: string;
60
- workspaceId?: string;
61
- profile?: string;
62
- interval?: number;
63
- timeout?: number;
64
- logs?: boolean;
65
- showProgress?: boolean;
66
- }
67
33
  interface ExecutorJobDetailInfo extends ExecutorJobInfo {
68
34
  attempts?: ExecutorJobAttemptInfo[];
69
35
  }
@@ -97,21 +63,18 @@ interface WatchExecutorJobResult {
97
63
  * @returns List of executor job information
98
64
  */
99
65
  declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
100
- declare function listExecutorJobs(options: ListExecutorJobsOptions): Promise<ExecutorJobListInfo[]>;
101
66
  /**
102
67
  * Get details of a specific executor job.
103
68
  * @param options - Options for getting executor job details
104
69
  * @returns Executor job detail information
105
70
  */
106
71
  declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
107
- declare function getExecutorJob(options: GetExecutorJobOptions): Promise<ExecutorJobDetailInfo>;
108
72
  /**
109
73
  * Watch an executor job until completion, including downstream executions.
110
74
  * @param options - Options for watching executor job
111
75
  * @returns Result including job details and downstream execution info
112
76
  */
113
77
  declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
114
- declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
115
78
  /**
116
79
  * Build a user-facing failure message for an executor job wait result.
117
80
  * @param result - Executor job wait result
@@ -119,4 +82,4 @@ declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<Wat
119
82
  */
120
83
  declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
121
84
  //#endregion
122
- export { ExecutorJobDetailInfo, GetExecutorJobOptions, GetExecutorJobTypedOptions, ListExecutorJobsOptions, ListExecutorJobsTypedOptions, WatchExecutorJobOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, WorkflowJobLog, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
85
+ export { ExecutorJobDetailInfo, GetExecutorJobTypedOptions, ListExecutorJobsTypedOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, WorkflowJobLog, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
@@ -12,15 +12,6 @@ type TriggerExecutorBaseOptions<E extends ManualTriggerExecutor> = {
12
12
  workspaceId?: string;
13
13
  profile?: string;
14
14
  };
15
- /**
16
- * @deprecated Use TriggerExecutorTypedOptions instead.
17
- */
18
- interface TriggerExecutorOptions {
19
- executorName: string;
20
- payload?: JsonObject;
21
- workspaceId?: string;
22
- profile?: string;
23
- }
24
15
  type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
25
16
  payload?: JsonObject;
26
17
  } : TriggerExecutorBaseOptions<E> & {
@@ -35,6 +26,5 @@ interface TriggerExecutorResult {
35
26
  * @returns Result containing the job ID if available
36
27
  */
37
28
  declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
38
- declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
39
29
  //#endregion
40
- export { TriggerExecutorOptions, TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
30
+ export { TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
@@ -19,8 +19,9 @@ type SeedBundleResult = {
19
19
  * 4. Exports as main() for TestExecScript
20
20
  * @param namespace - TailorDB namespace
21
21
  * @param typeNames - List of type names to include in the seed
22
+ * @param baseDir - Directory whose dependencies and tsconfig the generated entry uses
22
23
  * @returns Bundled seed script result
23
24
  */
24
- declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
25
+ declare function bundleSeedScript(namespace: string, typeNames: string[], baseDir?: string): Promise<SeedBundleResult>;
25
26
  //#endregion
26
27
  export { SeedBundleResult, bundleSeedScript };
@@ -0,0 +1,5 @@
1
+ import "../../../services/tailordb/service.mjs";
2
+ import "../../../shared/config-loader.mjs";
3
+ import "../../../shared/client.mjs";
4
+ import "./config.mjs";
5
+ import "./snapshot.mjs";
@@ -1,6 +1,6 @@
1
1
  import { TailorDBType } from "../../../../parser/service/tailordb/types.mjs";
2
2
  import "../../../../tailor-proto/src/tailor/v1/tailordb_resource_pb.mjs";
3
- import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig, SnapshotFieldRefOperand, SnapshotGqlAction, SnapshotGqlPermission, SnapshotGqlPermissionPolicy, SnapshotHook, SnapshotIndexConfig, SnapshotPermissionCondition, SnapshotPermissionOperand, SnapshotPermissionOperator, SnapshotRecordPermission, SnapshotRelationship, SnapshotSerial, SnapshotValidation, SnapshotValueOperand, TailorDBSnapshotType } from "./snapshot-types.mjs";
3
+ import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig, SnapshotGqlPermission, SnapshotGqlPermissionPolicy, SnapshotIndexConfig, SnapshotPermissionCondition, SnapshotPermissionOperand, SnapshotRecordPermission, SnapshotRelationship, TailorDBSnapshotType } from "./snapshot-types.mjs";
4
4
  import { MigrationDiff } from "./diff-calculator.mjs";
5
5
  //#region src/cli/commands/tailordb/migrate/snapshot.d.ts
6
6
  /**
@@ -15,17 +15,6 @@ type ListWorkflowExecutionsTypedOptions<W extends WorkflowLike = WorkflowLike> =
15
15
  order?: Order;
16
16
  limit?: number;
17
17
  };
18
- /**
19
- * @deprecated Use ListWorkflowExecutionsTypedOptions instead.
20
- */
21
- interface ListWorkflowExecutionsOptions {
22
- workspaceId?: string;
23
- profile?: string;
24
- workflowName?: string;
25
- status?: string;
26
- order?: Order;
27
- limit?: number;
28
- }
29
18
  interface GetWorkflowExecutionOptions {
30
19
  executionId: string;
31
20
  workspaceId?: string;
@@ -63,7 +52,6 @@ interface GetWorkflowExecutionResult {
63
52
  * @returns List of workflow executions
64
53
  */
65
54
  declare function listWorkflowExecutions<W extends WorkflowLike>(options?: ListWorkflowExecutionsTypedOptions<W>): Promise<WorkflowExecutionInfo[]>;
66
- declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions): Promise<WorkflowExecutionInfo[]>;
67
55
  /**
68
56
  * Get a single workflow execution with optional logs.
69
57
  * @param options - Workflow execution lookup options
@@ -71,4 +59,4 @@ declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions)
71
59
  */
72
60
  declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
73
61
  //#endregion
74
- export { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsOptions, ListWorkflowExecutionsTypedOptions, WorkflowExecutionDetailInfo, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions };
62
+ export { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsTypedOptions, WorkflowExecutionDetailInfo, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions };
@@ -11,20 +11,11 @@ type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
11
11
  workspaceId?: string;
12
12
  profile?: string;
13
13
  };
14
- /**
15
- * @deprecated Use GetWorkflowTypedOptions instead.
16
- */
17
- interface GetWorkflowOptions {
18
- name: string;
19
- workspaceId?: string;
20
- profile?: string;
21
- }
22
14
  /**
23
15
  * Get a workflow by name and return CLI-friendly info.
24
16
  * @param options - Workflow lookup options
25
17
  * @returns Workflow information
26
18
  */
27
19
  declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
28
- declare function getWorkflow(options: GetWorkflowOptions): Promise<WorkflowInfo>;
29
20
  //#endregion
30
- export { GetWorkflowOptions, GetWorkflowTypedOptions, getWorkflow };
21
+ export { GetWorkflowTypedOptions, getWorkflow };
@@ -1,3 +1,4 @@
1
+ import "../../shared/args.mjs";
1
2
  import { WorkflowWaitUntil } from "./status.mjs";
2
3
  import { WorkflowWaitResult } from "./waiter.mjs";
3
4
  import { Jsonifiable } from "type-fest";
@@ -19,18 +20,6 @@ type StartWorkflowArgOptionForSingleWorkflow<W extends WorkflowLike> = WorkflowL
19
20
  arg: WorkflowInput<W>;
20
21
  };
21
22
  type StartWorkflowArgOption<W extends WorkflowLike> = W extends WorkflowLike ? StartWorkflowArgOptionForSingleWorkflow<W> : never;
22
- /**
23
- * @deprecated Use StartWorkflowTypedOptions instead.
24
- */
25
- interface StartWorkflowOptions {
26
- name: string;
27
- machineUser?: string;
28
- arg?: Jsonifiable;
29
- workspaceId?: string;
30
- profile?: string;
31
- configPath?: string;
32
- interval?: number;
33
- }
34
23
  type StartWorkflowTypedBaseOptions<W extends WorkflowLike> = {
35
24
  workflow: W;
36
25
  invoker: MachineUserName;
@@ -55,6 +44,5 @@ interface StartWorkflowResultWithWait {
55
44
  * @returns Start result with wait helper
56
45
  */
57
46
  declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
58
- declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
59
47
  //#endregion
60
- export { StartWorkflowOptions, StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow };
48
+ export { StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow };
@@ -22,10 +22,6 @@ import { LoadTailorDBNamespacesOptions, LoadedTailorDBNamespaces, TailorDBNamesp
22
22
  import { DeployResult, deployStaticWebsite } from "./commands/staticwebsite/deploy.mjs";
23
23
  import { assertWritable } from "./shared/readonly-guard.mjs";
24
24
  import { isPluginGeneratedType } from "../parser/service/tailordb/type-source.mjs";
25
- import { kyselyTypePlugin } from "../plugin/builtin/kysely-type/index.mjs";
26
- import { enumConstantsPlugin } from "../plugin/builtin/enum-constants/index.mjs";
27
- import { fileUtilsPlugin } from "../plugin/builtin/file-utils/index.mjs";
28
- import { seedPlugin } from "../plugin/builtin/seed/index.mjs";
29
25
  import { AIGatewayInfo, ApplicationInfo, ShowInfo, ShowOptions, show } from "./commands/show.mjs";
30
26
  import { RemoveOptions, remove } from "./commands/remove.mjs";
31
27
  import { WorkspaceDetails, WorkspaceInfo } from "./commands/workspace/transform.mjs";
@@ -52,17 +48,17 @@ import { GetOAuth2ClientOptions, getOAuth2Client } from "./commands/oauth2client
52
48
  import { ListOAuth2ClientsOptions, listOAuth2Clients } from "./commands/oauth2client/list.mjs";
53
49
  import { WorkflowExecutionInfo, WorkflowInfo, WorkflowJobExecutionInfo, WorkflowListInfo } from "./commands/workflow/transform.mjs";
54
50
  import { ListWorkflowsOptions, listWorkflows } from "./commands/workflow/list.mjs";
55
- import { GetWorkflowOptions, GetWorkflowTypedOptions, getWorkflow } from "./commands/workflow/get.mjs";
51
+ import { GetWorkflowTypedOptions, getWorkflow } from "./commands/workflow/get.mjs";
56
52
  import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./commands/workflow/waiter.mjs";
57
- import { StartWorkflowOptions, StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow } from "./commands/workflow/start.mjs";
58
- import { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsOptions, ListWorkflowExecutionsTypedOptions, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions } from "./commands/workflow/executions.mjs";
53
+ import { StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow } from "./commands/workflow/start.mjs";
54
+ import { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsTypedOptions, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions } from "./commands/workflow/executions.mjs";
59
55
  import { WorkflowWaitOutput, waitWorkflowExecution } from "./commands/workflow/wait.mjs";
60
56
  import { ResumeWorkflowOptions, ResumeWorkflowResultWithWait, resumeWorkflow } from "./commands/workflow/resume.mjs";
61
- import { TriggerExecutorOptions, TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor } from "./commands/executor/trigger.mjs";
57
+ import { TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor } from "./commands/executor/trigger.mjs";
62
58
  import { ExecutorInfo, ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo, ExecutorListInfo } from "./commands/executor/transform.mjs";
63
- import { ExecutorJobDetailInfo, GetExecutorJobOptions, GetExecutorJobTypedOptions, ListExecutorJobsOptions, ListExecutorJobsTypedOptions, WatchExecutorJobOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob } from "./commands/executor/jobs.mjs";
59
+ import { ExecutorJobDetailInfo, GetExecutorJobTypedOptions, ListExecutorJobsTypedOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob } from "./commands/executor/jobs.mjs";
64
60
  import { ListExecutorsOptions, listExecutors } from "./commands/executor/list.mjs";
65
- import { GetExecutorOptions, GetExecutorTypedOptions, getExecutor } from "./commands/executor/get.mjs";
61
+ import { GetExecutorTypedOptions, getExecutor } from "./commands/executor/get.mjs";
66
62
  import { ListWebhookExecutorsOptions, WebhookExecutorInfo, listWebhookExecutors } from "./commands/executor/webhook.mjs";
67
63
  import { FolderInfo, FolderListInfo, OrganizationInfo, UserOrganizationInfo } from "./commands/organization/transform.mjs";
68
64
  import { ListOrganizationsOptions, listOrganizations } from "./commands/organization/list.mjs";
@@ -87,4 +83,4 @@ import { SeedBundleResult, bundleSeedScript } from "./commands/generate/seed/bun
87
83
  import { MigrationBundleResult, bundleMigrationScript } from "./commands/tailordb/migrate/bundler.mjs";
88
84
  import { ExecutionWaitResult, ScriptExecutionOptions, ScriptExecutionResult, ScriptInvoker, executeScript, waitForExecution } from "./shared/script-executor.mjs";
89
85
  import { MachineUserName } from "@tailor-platform/sdk";
90
- export { type AIGatewayInfo, type ApiCallOptions, type ApiCallResult, type AppHealthInfo, type AppInfo, type ApplicationInfo, type DeployOptions as ApplyOptions, type AuthInvoker, type BreakingChangeInfo, type BundledScripts, type ChunkSeedDataOptions, type CreateFolderOptions, type CreateWorkspaceOptions, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteFolderOptions, type DeleteWorkspaceOptions, type DeployOptions, type ErrorToJsonOptions, type ExecutionWaitResult, type Executor, type ExecutorInfo, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type ExecutorListInfo, type FolderInfo, type FolderListInfo, type FunctionRegistryInfo, type GenerateOptions, type GeneratorResult, type HealthOptions as GetAppHealthOptions, type GetExecutorJobOptions, type GetExecutorJobTypedOptions, type GetExecutorOptions, type GetExecutorTypedOptions, type GetFolderOptions, type GetFunctionRegistryOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetOrganizationOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowOptions, type GetWorkflowTypedOptions, type GetWorkspaceOptions, INITIAL_SCHEMA_NUMBER, type InviteUserOptions, type ListAppsOptions, type ListExecutorJobsOptions, type ListExecutorJobsTypedOptions, type ListExecutorsOptions, type ListFoldersOptions, type ListFunctionRegistriesOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListOrganizationsOptions, type ListUsersOptions, type ListWebhookExecutorsOptions, type ListWorkflowExecutionsOptions, type ListWorkflowExecutionsTypedOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadSeedContextOptions, type LoadTailorDBNamespacesOptions, type LoadedConfig, type LoadedTailorDBNamespaces, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserName, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationBundleResult, type MigrationDiff, type NamespaceWithMigrations, type NormalizedSchemaSnapshot, type OAuth2ClientCredentials, type OAuth2ClientInfo, type OperatorClient, type OperatorFieldConfig, type OrganizationInfo, type OrganizationTreeOptions, type ParsedField, type Plugin, type PluginAttachment, type PluginGeneratedTypeSource, type RemoveOptions, type RemoveUserOptions, type Resolver, type RestoreWorkspaceOptions, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ScriptExecutionOptions, type ScriptExecutionResult, type ScriptInvoker, type SeedBundleResult, type SeedChunk, type SeedContext, type SeedData, type SeedIdpUserContext, type SeedNamespaceConfig, type ShowInfo, type ShowOptions, type SnapshotFieldConfig, type StartWorkflowOptions, type StartWorkflowResultWithWait, type StartWorkflowTypedOptions, type DeployResult as StaticWebsiteDeployResult, type TailorDBNamespaceData, type TailorDBNamespaceSelector, type TailorDBSnapshotType, type TailorDBType, type TriggerExecutorOptions, type TriggerExecutorResult, type TriggerExecutorTypedOptions, type TruncateOptions, type TypeSourceInfoEntry, type UpdateFolderOptions, type UpdateOrganizationOptions, type UpdateUserOptions, type UserInfo, type UserOrganizationInfo, type WaitOptions, type WaitWorkflowExecutionOptions, type WatchExecutorJobOptions, type WatchExecutorJobResult, type WatchExecutorJobTypedOptions, type WebhookExecutorInfo, type WorkflowExecutionInfo, type WorkflowExecutionWaitInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowWaitOutput, type WorkflowWaitResult, type WorkspaceDetails, type WorkspaceInfo, apiCall, deploy as apply, assertWritable, bundleMigrationScript, bundleSeedScript, chunkSeedData, compareLocalTypesWithSnapshot, compareSnapshots, createFolder, createSnapshotFromLocalTypes, createWorkspace, deleteFolder, deleteWorkspace, deploy, deployStaticWebsite, enumConstantsPlugin, errorToJson, executeScript, fileUtilsPlugin, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getAppHealth, getExecutor, getExecutorJob, getExecutorWaitFailureMessage, getFolder, getFunctionRegistry, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getOrganization, getWorkflow, getWorkflowExecution, getWorkspace, hasChanges, initOperatorClient, inviteUser, isPluginGeneratedType, kyselyTypePlugin, listApps, listExecutorJobs, listExecutors, listFolders, listFunctionRegistries, listMachineUsers, listOAuth2Clients, listOrganizations, listUsers, listWebhookExecutors, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadSeedContext, loadTailorDBNamespaces, loadWorkspaceId, generate$1 as migrateGenerate, organizationTree, query, reconstructSnapshotFromMigrations, remove, removeUser, restoreWorkspace, resumeWorkflow, seedPlugin, serializeError, show, startWorkflow, triggerExecutor, truncate, updateFolder, updateOrganization, updateUser, waitForExecution, waitWorkflowExecution, watchExecutorJob };
86
+ export { type AIGatewayInfo, type ApiCallOptions, type ApiCallResult, type AppHealthInfo, type AppInfo, type ApplicationInfo, type DeployOptions as ApplyOptions, type AuthInvoker, type BreakingChangeInfo, type BundledScripts, type ChunkSeedDataOptions, type CreateFolderOptions, type CreateWorkspaceOptions, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, type DeleteFolderOptions, type DeleteWorkspaceOptions, type DeployOptions, type ErrorToJsonOptions, type ExecutionWaitResult, type Executor, type ExecutorInfo, type ExecutorJobAttemptInfo, type ExecutorJobDetailInfo, type ExecutorJobInfo, type ExecutorJobListInfo, type ExecutorListInfo, type FolderInfo, type FolderListInfo, type FunctionRegistryInfo, type GenerateOptions, type GeneratorResult, type HealthOptions as GetAppHealthOptions, type GetExecutorJobTypedOptions, type GetExecutorTypedOptions, type GetFolderOptions, type GetFunctionRegistryOptions, type GetMachineUserTokenOptions, type GetOAuth2ClientOptions, type GetOrganizationOptions, type GetWorkflowExecutionOptions, type GetWorkflowExecutionResult, type GetWorkflowTypedOptions, type GetWorkspaceOptions, INITIAL_SCHEMA_NUMBER, type InviteUserOptions, type ListAppsOptions, type ListExecutorJobsTypedOptions, type ListExecutorsOptions, type ListFoldersOptions, type ListFunctionRegistriesOptions, type ListMachineUsersOptions, type ListOAuth2ClientsOptions, type ListOrganizationsOptions, type ListUsersOptions, type ListWebhookExecutorsOptions, type ListWorkflowExecutionsTypedOptions, type ListWorkflowsOptions, type ListWorkspacesOptions, type LoadSeedContextOptions, type LoadTailorDBNamespacesOptions, type LoadedConfig, type LoadedTailorDBNamespaces, MIGRATE_FILE_NAME, MIGRATION_LABEL_KEY, type MachineUserInfo, type MachineUserName, type MachineUserTokenInfo, type GenerateOptions$1 as MigrateGenerateOptions, type MigrationBundleResult, type MigrationDiff, type NamespaceWithMigrations, type NormalizedSchemaSnapshot, type OAuth2ClientCredentials, type OAuth2ClientInfo, type OperatorClient, type OperatorFieldConfig, type OrganizationInfo, type OrganizationTreeOptions, type ParsedField, type Plugin, type PluginAttachment, type PluginGeneratedTypeSource, type RemoveOptions, type RemoveUserOptions, type Resolver, type RestoreWorkspaceOptions, type ResumeWorkflowOptions, type ResumeWorkflowResultWithWait, SCHEMA_FILE_NAME, type SchemaSnapshot, type ScriptExecutionOptions, type ScriptExecutionResult, type ScriptInvoker, type SeedBundleResult, type SeedChunk, type SeedContext, type SeedData, type SeedIdpUserContext, type SeedNamespaceConfig, type ShowInfo, type ShowOptions, type SnapshotFieldConfig, type StartWorkflowResultWithWait, type StartWorkflowTypedOptions, type DeployResult as StaticWebsiteDeployResult, type TailorDBNamespaceData, type TailorDBNamespaceSelector, type TailorDBSnapshotType, type TailorDBType, type TriggerExecutorResult, type TriggerExecutorTypedOptions, type TruncateOptions, type TypeSourceInfoEntry, type UpdateFolderOptions, type UpdateOrganizationOptions, type UpdateUserOptions, type UserInfo, type UserOrganizationInfo, type WaitOptions, type WaitWorkflowExecutionOptions, type WatchExecutorJobResult, type WatchExecutorJobTypedOptions, type WebhookExecutorInfo, type WorkflowExecutionInfo, type WorkflowExecutionWaitInfo, type WorkflowInfo, type WorkflowJobExecutionInfo, type WorkflowListInfo, type WorkflowWaitOutput, type WorkflowWaitResult, type WorkspaceDetails, type WorkspaceInfo, apiCall, deploy as apply, assertWritable, bundleMigrationScript, bundleSeedScript, chunkSeedData, compareLocalTypesWithSnapshot, compareSnapshots, createFolder, createSnapshotFromLocalTypes, createWorkspace, deleteFolder, deleteWorkspace, deploy, deployStaticWebsite, errorToJson, executeScript, formatDiffSummary, formatMigrationDiff, generate, generateUserTypes, getAppHealth, getExecutor, getExecutorJob, getExecutorWaitFailureMessage, getFolder, getFunctionRegistry, getLatestMigrationNumber, getMachineUserToken, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNamespacesWithMigrations, getNextMigrationNumber, getOAuth2Client, getOrganization, getWorkflow, getWorkflowExecution, getWorkspace, hasChanges, initOperatorClient, inviteUser, isPluginGeneratedType, listApps, listExecutorJobs, listExecutors, listFolders, listFunctionRegistries, listMachineUsers, listOAuth2Clients, listOrganizations, listUsers, listWebhookExecutors, listWorkflowExecutions, listWorkflows, listWorkspaces, loadAccessToken, loadConfig, loadSeedContext, loadTailorDBNamespaces, loadWorkspaceId, generate$1 as migrateGenerate, organizationTree, query, reconstructSnapshotFromMigrations, remove, removeUser, restoreWorkspace, resumeWorkflow, serializeError, show, startWorkflow, triggerExecutor, truncate, updateFolder, updateOrganization, updateUser, waitForExecution, waitWorkflowExecution, watchExecutorJob };