@tailor-platform/sdk 2.27.0 → 2.29.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 +109 -0
- package/README.md +0 -8
- package/agent-skills/tailor/SKILL.md +4 -2
- package/dist/application-dalGHdrI.mjs +1 -0
- package/dist/application-rWYDAfNU.mjs +200 -0
- package/dist/application-rWYDAfNU.mjs.map +1 -0
- package/dist/cli/cache/bundle-cache.d.mts +1 -0
- package/dist/cli/commands/executor/get.d.mts +2 -1
- package/dist/cli/commands/executor/jobs.d.mts +2 -1
- package/dist/cli/commands/executor/trigger.d.mts +2 -1
- package/dist/cli/commands/function/get.d.mts +2 -1
- package/dist/cli/commands/function/list.d.mts +2 -1
- package/dist/cli/commands/organization/folder/create.d.mts +2 -1
- package/dist/cli/commands/organization/folder/delete.d.mts +2 -1
- package/dist/cli/commands/organization/folder/get.d.mts +2 -1
- package/dist/cli/commands/organization/folder/list.d.mts +2 -1
- package/dist/cli/commands/organization/folder/update.d.mts +2 -1
- package/dist/cli/commands/organization/get.d.mts +2 -1
- package/dist/cli/commands/organization/tree.d.mts +2 -1
- package/dist/cli/commands/organization/update.d.mts +2 -1
- package/dist/cli/commands/show.d.mts +2 -1
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +2 -1
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +3 -1
- package/dist/cli/commands/workflow/executions.d.mts +2 -1
- package/dist/cli/commands/workflow/get.d.mts +2 -1
- package/dist/cli/commands/workflow/start.d.mts +2 -1
- package/dist/cli/commands/workspace/app/health.d.mts +2 -1
- package/dist/cli/commands/workspace/app/list.d.mts +2 -1
- package/dist/cli/commands/workspace/create.d.mts +5 -2
- package/dist/cli/commands/workspace/delete.d.mts +2 -1
- package/dist/cli/commands/workspace/get.d.mts +2 -1
- package/dist/cli/commands/workspace/restore.d.mts +2 -1
- package/dist/cli/commands/workspace/user/invite.d.mts +2 -1
- package/dist/cli/commands/workspace/user/list.d.mts +2 -1
- package/dist/cli/commands/workspace/user/remove.d.mts +2 -1
- package/dist/cli/commands/workspace/user/update.d.mts +2 -1
- package/dist/cli/lib.d.mts +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.d.mts +7 -0
- package/dist/cli/main.mjs +55 -42
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +2 -1
- package/dist/cli/shared/args.d.mts +4 -2
- package/dist/cli/shared/client.d.mts +6 -1
- package/dist/cli/shared/context.d.mts +2 -1
- package/dist/cli/shared/logger.d.mts +5 -2
- package/dist/cli/shared/readonly-guard.d.mts +2 -1
- package/dist/cli/shared/seed-context.d.mts +5 -0
- package/dist/cli/shared/type-generator.d.mts +2 -1
- package/dist/cli/ts-hook.mjs +15 -11
- package/dist/completion/zsh-worker.zsh +275 -19
- package/dist/configure/config/types.d.mts +80 -1
- package/dist/configure/services/aigateway/types.d.mts +2 -1
- package/dist/configure/services/auth/types.d.mts +2 -1
- package/dist/configure/services/executor/executor.d.mts +2 -1
- package/dist/configure/services/executor/operation.d.mts +2 -1
- package/dist/configure/services/executor/trigger/event.d.mts +2 -1
- package/dist/configure/services/executor/trigger/schedule.d.mts +2 -1
- package/dist/configure/services/http-adapter/http-adapter.d.mts +2 -1
- package/dist/configure/services/idp/permission.d.mts +2 -1
- package/dist/configure/services/idp/types.d.mts +2 -1
- package/dist/configure/services/resolver/permission.d.mts +2 -1
- package/dist/configure/services/resolver/resolver.d.mts +2 -1
- package/dist/configure/services/secrets/types.d.mts +2 -1
- package/dist/configure/services/staticwebsite/types.d.mts +2 -1
- package/dist/configure/services/tailordb/permission.d.mts +2 -1
- package/dist/configure/services/tailordb/schema.d.mts +4 -3
- package/dist/configure/services/tailordb/types.d.mts +12 -1
- package/dist/configure/services/workflow/execution-policy.types.d.mts +2 -1
- package/dist/configure/services/workflow/job.d.mts +2 -1
- package/dist/configure/services/workflow/wait-point.d.mts +2 -1
- package/dist/configure/types/field.types.d.mts +2 -1
- package/dist/configure/types/permission-operand.types.d.mts +2 -1
- package/dist/configure/types/type.d.mts +2 -1
- package/dist/{crashreport-DFpRn-LS.mjs → crashreport-BAG8c7hB.mjs} +4 -4
- package/dist/{crashreport-DFpRn-LS.mjs.map → crashreport-BAG8c7hB.mjs.map} +1 -1
- package/dist/crashreport-BcXuocwI.mjs +1 -0
- package/dist/{errors-CpvSChyL.mjs → errors-D3qpNHR6.mjs} +2 -2
- package/dist/{errors-CpvSChyL.mjs.map → errors-D3qpNHR6.mjs.map} +1 -1
- package/dist/kysely-type-BWMfV301.mjs +48 -0
- package/dist/kysely-type-BWMfV301.mjs.map +1 -0
- package/dist/logger-DuaT2zY3.mjs +9 -0
- package/dist/logger-DuaT2zY3.mjs.map +1 -0
- package/dist/package-json-D1BRkjtr.mjs +1 -0
- package/dist/parser/service/tailordb/types.d.mts +3 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +2 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +2 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +2 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +11 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/register-ts-hook-CkfKqhJT.mjs +1014 -0
- package/dist/register-ts-hook-CkfKqhJT.mjs.map +1 -0
- package/dist/runtime/aigateway.mjs +1 -1
- package/dist/runtime/authconnection.mjs +1 -1
- package/dist/runtime/context.d.mts +2 -1
- package/dist/runtime/context.mjs +1 -1
- package/dist/runtime/date.d.mts +2 -1
- package/dist/runtime/field-parse.d.mts +2 -1
- package/dist/runtime/file.d.mts +2 -1
- package/dist/runtime/file.mjs +1 -1
- package/dist/runtime/globals.d.mts +2 -1
- package/dist/runtime/iconv.mjs +1 -1
- package/dist/runtime/idp.mjs +1 -1
- package/dist/runtime/logger.mjs +1 -1
- package/dist/runtime/secretmanager.mjs +1 -1
- package/dist/runtime/types.d.mts +2 -1
- package/dist/runtime/workflow.d.mts +2 -1
- package/dist/runtime/workflow.mjs +1 -1
- package/dist/schema-B6hJQWp6.mjs.map +1 -1
- package/dist/seed/index.d.mts +17 -4
- package/dist/seed/index.mjs +6 -6
- package/dist/seed/index.mjs.map +1 -1
- package/dist/seed-C3P_T_Eh.mjs.map +1 -1
- package/dist/{service-Cc7OY0Oh.mjs → service-CETr0AKY.mjs} +3 -3
- package/dist/service-CETr0AKY.mjs.map +1 -0
- package/dist/service-DREWLYxD.mjs +1 -0
- package/dist/{service-DFmt9UJP.mjs → service-b1g22NN9.mjs} +2 -2
- package/dist/{service-DFmt9UJP.mjs.map → service-b1g22NN9.mjs.map} +1 -1
- package/dist/service_pb-Bbu2QSIr.mjs +2 -0
- package/dist/service_pb-Bbu2QSIr.mjs.map +1 -0
- package/dist/service_pb-urxAIYHT.mjs +1 -0
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +53 -1
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +33 -0
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -8
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +18 -1
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +4 -0
- package/dist/telemetry-DpkFGBmu.mjs +1 -0
- package/dist/{telemetry-Bklv9kQY.mjs → telemetry-Xk7J829P.mjs} +2 -2
- package/dist/{telemetry-Bklv9kQY.mjs.map → telemetry-Xk7J829P.mjs.map} +1 -1
- package/dist/types/tailordb.generated.d.mts +2 -0
- package/dist/vitest/index.mjs +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +2 -1
- package/dist/vitest/mocks/aigateway.d.mts +2 -1
- package/dist/vitest/mocks/authconnection.d.mts +2 -1
- package/dist/vitest/mocks/file.d.mts +2 -1
- package/dist/vitest/mocks/iconv.d.mts +2 -1
- package/dist/vitest/mocks/idp.d.mts +2 -1
- package/dist/vitest/mocks/logger.d.mts +2 -1
- package/dist/vitest/mocks/secretmanager.d.mts +2 -1
- package/dist/vitest/mocks/tailordb-pglite.d.mts +2 -1
- package/dist/vitest/mocks/tailordb.d.mts +2 -1
- package/dist/vitest/mocks/workflow.d.mts +3 -1
- package/dist/vitest/pglite-kysely.d.mts +2 -1
- package/dist/vitest/workflow-local.d.mts +2 -1
- package/dist/{workspace_resource_pb-ChWejcj0.mjs → workspace_resource_pb-CaoM2npP.mjs} +2 -2
- package/dist/{workspace_resource_pb-ChWejcj0.mjs.map → workspace_resource_pb-CaoM2npP.mjs.map} +1 -1
- package/docs/cli/application.md +21 -3
- package/docs/cli/data.md +105 -0
- package/docs/cli/secret.md +6 -6
- package/docs/cli/tailordb.md +52 -16
- package/docs/cli/user.md +37 -7
- package/docs/cli/workspace.md +9 -1
- package/docs/cli-reference.md +36 -3
- package/docs/configuration.md +62 -2
- package/docs/github-actions.md +179 -13
- package/docs/multi-environment.md +24 -0
- package/docs/plugin/custom.md +1 -1
- package/docs/services/idp.md +1 -1
- package/docs/services/resolver.md +1 -58
- package/docs/services/tailordb-migration.md +80 -12
- package/docs/services/tailordb.md +17 -4
- package/docs/services/workflow.md +2 -2
- package/docs/testing.md +3 -2
- package/package.json +22 -22
- package/dist/application-DFeuELRo.mjs +0 -200
- package/dist/application-DFeuELRo.mjs.map +0 -1
- package/dist/application-nT_4a5HO.mjs +0 -1
- package/dist/crashreport-CBaRJl5h.mjs +0 -1
- package/dist/kysely-type-RDX59E1j.mjs +0 -48
- package/dist/kysely-type-RDX59E1j.mjs.map +0 -1
- package/dist/logger-Db-YRTwK.mjs +0 -9
- package/dist/logger-Db-YRTwK.mjs.map +0 -1
- package/dist/package-json-CmqhDJ__.mjs +0 -1
- package/dist/register-ts-hook-D6KXrGrB.mjs +0 -1009
- package/dist/register-ts-hook-D6KXrGrB.mjs.map +0 -1
- package/dist/service-Cc7OY0Oh.mjs.map +0 -1
- package/dist/service-sH2MZ4_W.mjs +0 -1
- package/dist/service_pb-Dw2ilc1O.mjs +0 -2
- package/dist/service_pb-Dw2ilc1O.mjs.map +0 -1
- package/dist/service_pb-GDOqfwb6.mjs +0 -1
- package/dist/telemetry-DXHP3VVi.mjs +0 -1
|
@@ -15,4 +15,5 @@ export type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
15
15
|
* @returns Executor information
|
|
16
16
|
*/
|
|
17
17
|
export declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
|
|
18
|
-
//#endregion
|
|
18
|
+
//#endregion
|
|
19
|
+
export {};
|
|
@@ -82,4 +82,5 @@ export declare function watchExecutorJob<E extends ExecutorLike>(options: WatchE
|
|
|
82
82
|
* @returns Failure message, or undefined when the wait succeeded
|
|
83
83
|
*/
|
|
84
84
|
export declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
|
|
85
|
-
//#endregion
|
|
85
|
+
//#endregion
|
|
86
|
+
export {};
|
|
@@ -26,4 +26,5 @@ export interface TriggerExecutorResult {
|
|
|
26
26
|
* @returns Result containing the job ID if available
|
|
27
27
|
*/
|
|
28
28
|
export declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
|
|
29
|
-
//#endregion
|
|
29
|
+
//#endregion
|
|
30
|
+
export {};
|
|
@@ -13,4 +13,5 @@ export type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptio
|
|
|
13
13
|
* @returns Function registry info
|
|
14
14
|
*/
|
|
15
15
|
export declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
|
|
16
|
-
//#endregion
|
|
16
|
+
//#endregion
|
|
17
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export type ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistrie
|
|
|
17
17
|
* @returns List of function registries
|
|
18
18
|
*/
|
|
19
19
|
export declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
|
|
20
|
-
//#endregion
|
|
20
|
+
//#endregion
|
|
21
|
+
export {};
|
|
@@ -11,4 +11,5 @@ export type DeleteFolderOptions = z.input<typeof deleteFolderOptionsSchema>;
|
|
|
11
11
|
* @returns Promise that resolves when deletion completes
|
|
12
12
|
*/
|
|
13
13
|
export declare function deleteFolder(options: DeleteFolderOptions): Promise<void>;
|
|
14
|
-
//#endregion
|
|
14
|
+
//#endregion
|
|
15
|
+
export {};
|
|
@@ -11,4 +11,5 @@ export type GetOrganizationOptions = z.input<typeof getOrganizationOptionsSchema
|
|
|
11
11
|
* @returns Organization details
|
|
12
12
|
*/
|
|
13
13
|
export declare function getOrganization(options: GetOrganizationOptions): Promise<OrganizationInfo>;
|
|
14
|
-
//#endregion
|
|
14
|
+
//#endregion
|
|
15
|
+
export {};
|
|
@@ -12,4 +12,5 @@ export type UpdateOrganizationOptions = z.input<typeof updateOrganizationOptions
|
|
|
12
12
|
* @returns Updated organization details
|
|
13
13
|
*/
|
|
14
14
|
export declare function updateOrganization(options: UpdateOrganizationOptions): Promise<OrganizationInfo>;
|
|
15
|
-
//#endregion
|
|
15
|
+
//#endregion
|
|
16
|
+
export {};
|
|
@@ -47,4 +47,5 @@ export interface ShowInfo extends ApplicationInfo, WorkspaceInfo {
|
|
|
47
47
|
* @returns Deployed application, workspace, AI Gateway, static website, and OAuth2 client information
|
|
48
48
|
*/
|
|
49
49
|
export declare function show(options?: ShowOptions): Promise<ShowInfo>;
|
|
50
|
-
//#endregion
|
|
50
|
+
//#endregion
|
|
51
|
+
export {};
|
|
@@ -29,6 +29,7 @@ export interface SnapshotSerial {
|
|
|
29
29
|
start: number;
|
|
30
30
|
maxValue?: number;
|
|
31
31
|
format?: string;
|
|
32
|
+
gapless?: boolean;
|
|
32
33
|
}
|
|
33
34
|
/**
|
|
34
35
|
* Enum value with optional description in schema snapshot
|
|
@@ -213,4 +214,5 @@ declare const normalizedSchemaSnapshotBrand: unique symbol;
|
|
|
213
214
|
export type NormalizedSchemaSnapshot = SchemaSnapshot & {
|
|
214
215
|
readonly [normalizedSchemaSnapshotBrand]: true;
|
|
215
216
|
};
|
|
216
|
-
//#endregion
|
|
217
|
+
//#endregion
|
|
218
|
+
export {};
|
|
@@ -60,4 +60,5 @@ export declare function listWorkflowExecutions<W extends WorkflowLike>(options?:
|
|
|
60
60
|
* @returns Workflow execution with optional logs
|
|
61
61
|
*/
|
|
62
62
|
export declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
63
|
-
//#endregion
|
|
63
|
+
//#endregion
|
|
64
|
+
export {};
|
|
@@ -17,4 +17,5 @@ export type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
|
17
17
|
* @returns Workflow information
|
|
18
18
|
*/
|
|
19
19
|
export declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
|
|
20
|
-
//#endregion
|
|
20
|
+
//#endregion
|
|
21
|
+
export {};
|
|
@@ -44,4 +44,5 @@ export interface StartWorkflowResultWithWait {
|
|
|
44
44
|
* @returns Start result with wait helper
|
|
45
45
|
*/
|
|
46
46
|
export declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
47
|
-
//#endregion
|
|
47
|
+
//#endregion
|
|
48
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "../../shared/workspace-name.mjs";
|
|
2
2
|
import "../../shared/client.mjs";
|
|
3
|
+
import "../../shared/context.mjs";
|
|
3
4
|
import { WorkspaceInfo } from "./transform.mjs";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
//#region src/cli/commands/workspace/create.d.ts
|
|
@@ -23,7 +24,8 @@ export type CreatedWorkspaceInfo = WorkspaceInfo & {
|
|
|
23
24
|
ttl?: TtlWriteResult;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
|
-
* Create a new workspace with the given options.
|
|
27
|
+
* Create a new workspace with the given options. When neither location ID is provided,
|
|
28
|
+
* use the selected user's defaults unless an environment token is set.
|
|
27
29
|
* @param options - Workspace creation options
|
|
28
30
|
* @returns Created workspace info
|
|
29
31
|
*/
|
|
@@ -38,4 +40,5 @@ export type TtlWriteResult = {
|
|
|
38
40
|
requested: string;
|
|
39
41
|
message: string;
|
|
40
42
|
};
|
|
41
|
-
//#endregion
|
|
43
|
+
//#endregion
|
|
44
|
+
export {};
|
|
@@ -10,4 +10,5 @@ export type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema
|
|
|
10
10
|
* @returns Promise that resolves when deletion completes
|
|
11
11
|
*/
|
|
12
12
|
export declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
13
|
+
//#endregion
|
|
14
|
+
export {};
|
|
@@ -10,4 +10,5 @@ export type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSche
|
|
|
10
10
|
* @returns Promise that resolves when restoration completes
|
|
11
11
|
*/
|
|
12
12
|
export declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
13
|
+
//#endregion
|
|
14
|
+
export {};
|
package/dist/cli/lib.d.mts
CHANGED
|
@@ -39,6 +39,7 @@ import { assertWritable } from "./shared/readonly-guard.mjs";
|
|
|
39
39
|
import { isPluginGeneratedTable } from "../parser/service/tailordb/type-source.mjs";
|
|
40
40
|
import { AIGatewayInfo, ApplicationInfo, ShowInfo, ShowOAuth2ClientInfo, ShowOptions, ShowStaticWebsiteInfo, show } from "./commands/show.mjs";
|
|
41
41
|
import { RemoveOptions, remove } from "./commands/remove.mjs";
|
|
42
|
+
import { loadAccessToken, loadWorkspaceId } from "./shared/context.mjs";
|
|
42
43
|
import { WorkspaceDetails, WorkspaceInfo } from "./commands/workspace/transform.mjs";
|
|
43
44
|
import { CreateWorkspaceOptions, createWorkspace } from "./commands/workspace/create.mjs";
|
|
44
45
|
import { ListWorkspacesOptions, listWorkspaces } from "./commands/workspace/list.mjs";
|
|
@@ -86,7 +87,6 @@ import { GetFolderOptions, getFolder } from "./commands/organization/folder/get.
|
|
|
86
87
|
import { CreateFolderOptions, createFolder } from "./commands/organization/folder/create.mjs";
|
|
87
88
|
import { UpdateFolderOptions, updateFolder } from "./commands/organization/folder/update.mjs";
|
|
88
89
|
import { DeleteFolderOptions, deleteFolder } from "./commands/organization/folder/delete.mjs";
|
|
89
|
-
import { loadAccessToken, loadWorkspaceId } from "./shared/context.mjs";
|
|
90
90
|
import { ApiCallOptions, ApiCallResult, apiCall } from "./commands/api/api-call.mjs";
|
|
91
91
|
import "./commands/api/index.mjs";
|
|
92
92
|
import { query } from "./query/index.mjs";
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ut as ee}from"../application-rWYDAfNU.mjs";import{a as te,c as e}from"../logger-DuaT2zY3.mjs";import{$ as t,$i as n,A as r,An as i,Ar as a,At as o,B as s,Bt as c,C as l,Ct as u,Dn as d,E as f,En as p,Er as m,Et as h,Fn as g,Fr as _,Ft as v,Gr as y,Gt as b,Hi as x,Hr as S,Ht as C,Ir as w,Ji as T,Jr as E,Jt as D,Ki as O,L as k,Lt as A,Mn as j,Mr as M,Mt as N,N as P,Nn as F,Nr as I,Nt as L,O as R,On as z,Ot as B,Pr as V,Qr as H,Qt as U,R as W,St as G,Tn as K,U as q,Ur as J,Ut as Y,Vr as X,W as Z,Wr as Q,Xt as ne,Y as re,Yi as ie,Yt as ae,Z as oe,Zr as $,Zt as se,_ as ce,_i as le,ai as ue,at as de,bn as fe,bt as pe,d as me,dr as he,gt as ge,h as _e,ht as ve,i as ye,ii as be,j as xe,ji as Se,jn as Ce,jr as we,kn as Te,kr as Ee,kt as De,l as Oe,la as ke,lt as Ae,mi as je,mt as Me,n as Ne,on as Pe,p as Fe,pt as Ie,q as Le,qi as Re,qt as ze,r as Be,ri as Ve,rn as He,rt as Ue,s as We,st as Ge,t as Ke,tt as qe,ut as Je,vi as Ye,vt as Xe,wi as Ze,wn as Qe,x as $e,xn as et,y as tt,yi as nt,yr as rt,zr as it,zt as at}from"../register-ts-hook-CkfKqhJT.mjs";import{t as ot}from"../type-source--ZNcV8RJ.mjs";import{arg as st,defineCommand as ct,runCommand as lt,runMain as ut}from"@politty/zod";await Ke(new URL(`./ts-hook.mjs`,import.meta.url));export{a as DB_PGLITE_SCHEMA_FILE_NAME,we as DB_TYPES_FILE_NAME,M as DIFF_FILE_NAME,I as INITIAL_SCHEMA_NUMBER,V as MIGRATE_FILE_NAME,_ as MIGRATE_PGLITE_TEST_FILE_NAME,w as MIGRATE_TEST_FILE_NAME,E as MIGRATION_LABEL_KEY,it as SCHEMA_FILE_NAME,Qe as TAILOR_LOCK_FILENAME,K as TAILOR_LOCK_VERSION,fe as WORKSPACE_NAME_MAX_LENGTH,Ne as annotateTerminalError,le as apiCall,p as appIdLockKey,U as apply,U as deploy,st as arg,Ye as assertWritable,he as bundleMigrationScript,ne as bundleSeedDumpScript,se as bundleSeedScript,ze as chunkSeedData,$ as compareLocalTypesWithSnapshot,H as compareSnapshots,O as configArg,Re as confirmationArgs,T as createCommonArgs,de as createFolder,m as createSnapshotFromLocalTypes,Pe as createWorkspace,x as defineAppCommand,ct as defineCommand,Ue as deleteFolder,tt as deleteWorkspace,g as deployStaticWebsite,ie as deploymentArgs,j as ensureConfigId,ve as errorToJson,D as executeScript,Xe as extractOwnedNamespaces,d as findAppIdLock,Ve as formatDiffSummary,be as formatMigrationDiff,Me as generate,F as generateUserTypes,l as getAppHealth,C as getExecutor,De as getExecutorJob,o as getExecutorWaitFailureMessage,qe as getFolder,G as getFunctionRegistry,X as getLatestMigrationNumber,Je as getMachineUserToken,S as getMigrationDirPath,J as getMigrationFilePath,Q as getMigrationFiles,rt as getNamespacesWithMigrations,y as getNextMigrationNumber,Ae as getOAuth2Client,re as getOrganization,A as getWorkflow,at as getWorkflowExecution,ce as getWorkspace,ue as hasChanges,ee as initOperatorClient,Fe as inviteUser,ot as isPluginGeneratedTable,$e as listApps,N as listExecutorJobs,B as listExecutors,t as listFolders,pe as listFunctionRegistries,Ie as listMachineUsers,Ge as listOAuth2Clients,Le as listOrganizations,me as listUsers,u as listWebhookExecutors,c as listWorkflowExecutions,r as listWorkflows,He as listWorkspaces,Ze as loadAccessToken,nt as loadConfig,n as loadEnvFiles,Y as loadSeedContext,b as loadTailorDBNamespaces,Se as loadWorkspaceId,k as logBetaWarning,te as logger,P as migrateGenerate,Z as organizationTree,z as parseAppIds,Te as planAppIds,je as prompt,ye as query,Ee as reconstructSnapshotFromMigrations,s as remove,i as removeAdoptedConfigIds,Oe as removeUser,Ce as resolveAppId,_e as restoreWorkspace,R as resumeWorkflow,lt as runCommand,ut as runMain,ge as serializeError,W as show,v as startWorkflow,e as styles,h as triggerExecutor,xe as truncate,oe as updateFolder,q as updateOrganization,We as updateUser,ae as waitForExecution,f as waitWorkflowExecution,L as watchExecutorJob,Be as withSourceLocation,ke as workspaceArgs,et as workspaceNameSchema};
|
|
2
2
|
//# sourceMappingURL=lib.mjs.map
|
package/dist/cli/lib.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.mjs","names":["initOperatorClient","logger","styles","getOrganization","listWorkflows","removeAdoptedConfigIds","INITIAL_SCHEMA_NUMBER","getMigrationFilePath","getAppHealth","createSnapshotFromLocalTypes","loadTailorDBNamespaces","findAppIdLock","DB_PGLITE_SCHEMA_FILE_NAME","waitForExecution","waitWorkflowExecution","appIdLockKey","reconstructSnapshotFromMigrations","executeScript","bundleSeedDumpScript","deployStaticWebsite","triggerExecutor","MIGRATION_LABEL_KEY","show","confirmationArgs","getNextMigrationNumber","watchExecutorJob","bundleSeedScript","SCHEMA_FILE_NAME","organizationTree","compareLocalTypesWithSnapshot","getWorkflowExecution","getWorkflow","generate$1","defineAppCommand","listExecutors","ensureConfigId","MIGRATE_PGLITE_TEST_FILE_NAME","listWebhookExecutors","loadSeedContext","generateUserTypes","MIGRATE_TEST_FILE_NAME","resumeWorkflow","loadWorkspaceId","parseAppIds","DB_TYPES_FILE_NAME","chunkSeedData","deploy","getLatestMigrationNumber","getExecutorJob","TAILOR_LOCK_VERSION","extractOwnedNamespaces","createCommonArgs","logBetaWarning","configArg","getMigrationFiles","listExecutorJobs","remove","deploymentArgs","startWorkflow","compareSnapshots","listWorkflowExecutions","listOrganizations","getExecutor","getWorkspace","listMachineUsers","bundleMigrationScript","getFolder","WORKSPACE_NAME_MAX_LENGTH","serializeError","listUsers","prompt","listOAuth2Clients","formatDiffSummary","loadConfig","getNamespacesWithMigrations","restoreWorkspace","assertWritable","query","truncate","resolveAppId","MIGRATE_FILE_NAME","getFunctionRegistry","planAppIds","DIFF_FILE_NAME","listFunctionRegistries","removeUser","createFolder","apiCall","getMachineUserToken","annotateTerminalError","workspaceArgs","hasChanges","createWorkspace","inviteUser","getOAuth2Client","updateOrganization","loadEnvFiles","withSourceLocation","listWorkspaces","listFolders","updateUser","deleteFolder","registerTsHook","formatMigrationDiff","updateFolder","generate","TAILOR_LOCK_FILENAME","listApps","loadAccessToken","workspaceNameSchema","deleteWorkspace","errorToJson","getMigrationDirPath","getExecutorWaitFailureMessage","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"grCAGA,MAAMsG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
|
|
1
|
+
{"version":3,"file":"lib.mjs","names":["initOperatorClient","logger","styles","listFolders","loadEnvFiles","listWorkflows","removeAdoptedConfigIds","DB_PGLITE_SCHEMA_FILE_NAME","getExecutorWaitFailureMessage","remove","listWorkflowExecutions","getAppHealth","listWebhookExecutors","findAppIdLock","waitWorkflowExecution","appIdLockKey","createSnapshotFromLocalTypes","triggerExecutor","deployStaticWebsite","MIGRATE_PGLITE_TEST_FILE_NAME","startWorkflow","getNextMigrationNumber","loadTailorDBNamespaces","defineAppCommand","getMigrationDirPath","getExecutor","MIGRATE_TEST_FILE_NAME","createCommonArgs","MIGRATION_LABEL_KEY","executeScript","configArg","logBetaWarning","getWorkflow","ensureConfigId","DIFF_FILE_NAME","listExecutorJobs","generate$1","generateUserTypes","INITIAL_SCHEMA_NUMBER","watchExecutorJob","resumeWorkflow","parseAppIds","listExecutors","MIGRATE_FILE_NAME","compareSnapshots","deploy","show","getFunctionRegistry","TAILOR_LOCK_VERSION","updateOrganization","getMigrationFilePath","loadSeedContext","getLatestMigrationNumber","organizationTree","getMigrationFiles","bundleSeedDumpScript","getOrganization","deploymentArgs","waitForExecution","updateFolder","compareLocalTypesWithSnapshot","bundleSeedScript","getWorkspace","apiCall","hasChanges","createFolder","WORKSPACE_NAME_MAX_LENGTH","listFunctionRegistries","listUsers","bundleMigrationScript","serializeError","restoreWorkspace","errorToJson","query","formatMigrationDiff","truncate","loadWorkspaceId","resolveAppId","DB_TYPES_FILE_NAME","planAppIds","reconstructSnapshotFromMigrations","getExecutorJob","removeUser","workspaceArgs","getOAuth2Client","prompt","generate","annotateTerminalError","createWorkspace","inviteUser","listMachineUsers","listOrganizations","confirmationArgs","chunkSeedData","withSourceLocation","formatDiffSummary","listWorkspaces","deleteFolder","updateUser","listOAuth2Clients","registerTsHook","getFolder","getMachineUserToken","assertWritable","extractOwnedNamespaces","loadAccessToken","TAILOR_LOCK_FILENAME","listApps","workspaceNameSchema","deleteWorkspace","loadConfig","getNamespacesWithMigrations","SCHEMA_FILE_NAME","getWorkflowExecution","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"krCAGA,MAAMoG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC"}
|
package/dist/cli/main.d.mts
CHANGED
|
@@ -10,13 +10,20 @@ export declare const mainCommand: {
|
|
|
10
10
|
description?: string | undefined;
|
|
11
11
|
aliases?: string[] | undefined;
|
|
12
12
|
args: undefined;
|
|
13
|
+
requiredPackages?: readonly import("@politty/zod").PackageRequirement<Record<string, never> & {
|
|
14
|
+
$source?: (name: string) => import("@politty/zod").ArgSource;
|
|
15
|
+
$invocation?: import("@politty/zod").RunInvocation;
|
|
16
|
+
$agent?: import("@politty/zod").AgentInfo | undefined;
|
|
17
|
+
}>[] | undefined;
|
|
13
18
|
setup?: ((context: import("@politty/zod").SetupContext<Record<string, never> & {
|
|
14
19
|
$source?: (name: string) => import("@politty/zod").ArgSource;
|
|
15
20
|
$invocation?: import("@politty/zod").RunInvocation;
|
|
21
|
+
$agent?: import("@politty/zod").AgentInfo | undefined;
|
|
16
22
|
}>) => void | Promise<void>) | undefined;
|
|
17
23
|
cleanup?: ((context: import("@politty/zod").CleanupContext<Record<string, never> & {
|
|
18
24
|
$source?: (name: string) => import("@politty/zod").ArgSource;
|
|
19
25
|
$invocation?: import("@politty/zod").RunInvocation;
|
|
26
|
+
$agent?: import("@politty/zod").AgentInfo | undefined;
|
|
20
27
|
}>) => void | Promise<void>) | undefined;
|
|
21
28
|
notes?: string | undefined;
|
|
22
29
|
examples?: import("@politty/zod").Example[] | undefined;
|