@tailor-platform/sdk 2.13.1 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/application-BWOMdL3D.mjs +1 -0
- package/dist/{application-D3HlhR3i.mjs → application-CfevPO-k.mjs} +21 -17
- package/dist/application-CfevPO-k.mjs.map +1 -0
- package/dist/cli/commands/api/api-call.d.mts +4 -5
- package/dist/cli/commands/deploy/config-id-injector.d.mts +3 -4
- package/dist/cli/commands/deploy/deploy.d.mts +3 -4
- package/dist/cli/commands/deploy/function-registry-types.d.mts +2 -3
- package/dist/cli/commands/executor/get.d.mts +3 -4
- package/dist/cli/commands/executor/jobs.d.mts +10 -11
- package/dist/cli/commands/executor/list.d.mts +3 -4
- package/dist/cli/commands/executor/transform.d.mts +6 -7
- package/dist/cli/commands/executor/trigger.d.mts +4 -5
- package/dist/cli/commands/executor/webhook.d.mts +4 -5
- package/dist/cli/commands/function/get.d.mts +3 -4
- package/dist/cli/commands/function/list.d.mts +3 -4
- package/dist/cli/commands/function/transform.d.mts +2 -3
- package/dist/cli/commands/generate/options.d.mts +2 -3
- package/dist/cli/commands/generate/seed/bundler.d.mts +3 -4
- package/dist/cli/commands/generate/service.d.mts +2 -3
- package/dist/cli/commands/machineuser/list.d.mts +4 -5
- package/dist/cli/commands/machineuser/token.d.mts +4 -5
- package/dist/cli/commands/oauth2client/get.d.mts +3 -4
- package/dist/cli/commands/oauth2client/list.d.mts +3 -4
- package/dist/cli/commands/oauth2client/transform.d.mts +3 -4
- package/dist/cli/commands/organization/folder/create.d.mts +3 -4
- package/dist/cli/commands/organization/folder/delete.d.mts +3 -4
- package/dist/cli/commands/organization/folder/get.d.mts +3 -4
- package/dist/cli/commands/organization/folder/list.d.mts +3 -4
- package/dist/cli/commands/organization/folder/update.d.mts +3 -4
- package/dist/cli/commands/organization/get.d.mts +3 -4
- package/dist/cli/commands/organization/list.d.mts +3 -4
- package/dist/cli/commands/organization/transform.d.mts +5 -6
- package/dist/cli/commands/organization/tree.d.mts +3 -4
- package/dist/cli/commands/organization/update.d.mts +3 -4
- package/dist/cli/commands/remove.d.mts +3 -4
- package/dist/cli/commands/show.d.mts +6 -7
- package/dist/cli/commands/staticwebsite/deploy.d.mts +3 -4
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -4
- package/dist/cli/commands/tailordb/migrate/config.d.mts +3 -4
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +35 -35
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +3 -4
- package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +3 -4
- package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +4 -5
- package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +13 -14
- package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +2 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +2 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +21 -22
- package/dist/cli/commands/tailordb/migrate/types.d.mts +2 -3
- package/dist/cli/commands/tailordb/truncate.d.mts +3 -4
- package/dist/cli/commands/workflow/executions.d.mts +8 -9
- package/dist/cli/commands/workflow/get.d.mts +3 -4
- package/dist/cli/commands/workflow/list.d.mts +3 -4
- package/dist/cli/commands/workflow/resume.d.mts +4 -5
- package/dist/cli/commands/workflow/start.d.mts +5 -6
- package/dist/cli/commands/workflow/status.d.mts +3 -4
- package/dist/cli/commands/workflow/transform.d.mts +5 -6
- package/dist/cli/commands/workflow/wait.d.mts +3 -4
- package/dist/cli/commands/workflow/waiter.d.mts +3 -4
- package/dist/cli/commands/workspace/app/health.d.mts +3 -4
- package/dist/cli/commands/workspace/app/list.d.mts +3 -4
- package/dist/cli/commands/workspace/app/transform.d.mts +3 -4
- package/dist/cli/commands/workspace/create.d.mts +3 -4
- package/dist/cli/commands/workspace/delete.d.mts +3 -4
- package/dist/cli/commands/workspace/get.d.mts +3 -4
- package/dist/cli/commands/workspace/list.d.mts +3 -4
- package/dist/cli/commands/workspace/restore.d.mts +3 -4
- package/dist/cli/commands/workspace/transform.d.mts +3 -4
- package/dist/cli/commands/workspace/user/invite.d.mts +3 -4
- package/dist/cli/commands/workspace/user/list.d.mts +3 -4
- package/dist/cli/commands/workspace/user/remove.d.mts +3 -4
- package/dist/cli/commands/workspace/user/transform.d.mts +2 -3
- package/dist/cli/commands/workspace/user/update.d.mts +3 -4
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.d.mts +2 -3
- package/dist/cli/main.mjs +43 -41
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +2 -3
- package/dist/cli/shared/args.d.mts +11 -12
- package/dist/cli/shared/beta.d.mts +2 -3
- package/dist/cli/shared/client.d.mts +4 -5
- package/dist/cli/shared/command.d.mts +2 -3
- package/dist/cli/shared/config-loader.d.mts +5 -6
- package/dist/cli/shared/config.d.mts +2 -3
- package/dist/cli/shared/context.d.mts +3 -4
- package/dist/cli/shared/error-json.d.mts +4 -5
- package/dist/cli/shared/logger.d.mts +7 -8
- package/dist/cli/shared/prompt.d.mts +7 -8
- package/dist/cli/shared/readonly-guard.d.mts +2 -3
- package/dist/cli/shared/script-executor.d.mts +7 -8
- package/dist/cli/shared/seed-chunker.d.mts +5 -6
- package/dist/cli/shared/seed-context.d.mts +5 -5
- package/dist/cli/shared/tailordb-namespaces.d.mts +5 -6
- package/dist/cli/shared/type-generator.d.mts +2 -3
- package/dist/cli/shared/workspace-name.d.mts +2 -3
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/config/index.d.mts +3 -4
- package/dist/configure/config/types.d.mts +14 -15
- package/dist/configure/index.d.mts +10 -10
- package/dist/configure/index.mjs +1 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/aigateway/index.d.mts +2 -2
- package/dist/configure/services/aigateway/types.d.mts +4 -5
- package/dist/configure/services/auth/index.d.mts +3 -3
- package/dist/configure/services/auth/types.d.mts +24 -25
- package/dist/configure/services/executor/executor.d.mts +3 -4
- package/dist/configure/services/executor/operation.d.mts +6 -7
- package/dist/configure/services/executor/trigger/event.d.mts +56 -57
- package/dist/configure/services/executor/trigger/index.d.mts +2 -2
- package/dist/configure/services/executor/trigger/schedule.d.mts +4 -5
- package/dist/configure/services/executor/trigger/webhook.d.mts +8 -9
- package/dist/configure/services/http-adapter/http-adapter.d.mts +12 -13
- package/dist/configure/services/idp/index.d.mts +2 -2
- package/dist/configure/services/idp/permission.d.mts +4 -5
- package/dist/configure/services/idp/types.d.mts +5 -6
- package/dist/configure/services/resolver/permission.d.mts +4 -5
- package/dist/configure/services/resolver/resolver.d.mts +3 -4
- package/dist/configure/services/resolver/types.d.mts +2 -3
- package/dist/configure/services/secrets/index.d.mts +3 -3
- package/dist/configure/services/secrets/types.d.mts +3 -4
- package/dist/configure/services/staticwebsite/index.d.mts +2 -2
- package/dist/configure/services/staticwebsite/types.d.mts +3 -4
- package/dist/configure/services/tailordb/permission.d.mts +6 -7
- package/dist/configure/services/tailordb/schema.d.mts +8 -9
- package/dist/configure/services/tailordb/types.d.mts +25 -26
- package/dist/configure/services/workflow/execution-policy.d.mts +3 -3
- package/dist/configure/services/workflow/execution-policy.types.d.mts +8 -9
- package/dist/configure/services/workflow/job.d.mts +4 -5
- package/dist/configure/services/workflow/wait-point.d.mts +5 -6
- package/dist/configure/services/workflow/workflow.d.mts +4 -4
- package/dist/configure/types/aigateway-name.d.mts +3 -4
- package/dist/configure/types/auth-namespace-name.d.mts +3 -4
- package/dist/configure/types/connection-name.d.mts +3 -4
- package/dist/configure/types/field.d.mts +3 -4
- package/dist/configure/types/field.types.d.mts +18 -12
- package/dist/configure/types/idp-name.d.mts +3 -4
- package/dist/configure/types/permission-operand.types.d.mts +7 -8
- package/dist/configure/types/type.d.mts +3 -4
- package/dist/date-DrUO8rOJ.mjs +2 -0
- package/dist/date-DrUO8rOJ.mjs.map +1 -0
- package/dist/kysely/index.d.mts +18 -18
- package/dist/parser/service/idp/types.d.mts +2 -3
- package/dist/parser/service/tailordb/type-source.d.mts +2 -3
- package/dist/parser/service/tailordb/types.d.mts +13 -14
- package/dist/plugin/builtin/enum-constants/index.d.mts +3 -4
- package/dist/plugin/builtin/file-utils/index.d.mts +3 -4
- package/dist/plugin/builtin/kysely-type/index.d.mts +4 -5
- package/dist/plugin/builtin/seed/index.d.mts +4 -5
- package/dist/plugin/builtin/seed/seed-type-processor.d.mts +2 -3
- package/dist/plugin/get-generated-table.d.mts +2 -3
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/types.d.mts +29 -29
- package/dist/plugin/with-context.d.mts +9 -10
- package/dist/register-ts-hook-DZ1Kpt4s.mjs +642 -0
- package/dist/register-ts-hook-DZ1Kpt4s.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +4 -5
- package/dist/runtime/authconnection.d.mts +3 -4
- package/dist/runtime/context.d.mts +6 -7
- package/dist/runtime/date.d.mts +16 -0
- package/dist/runtime/field-parse.d.mts +2 -3
- package/dist/runtime/file.d.mts +14 -15
- package/dist/runtime/globals.d.mts +2 -1
- package/dist/runtime/iconv.d.mts +5 -6
- package/dist/runtime/idp.d.mts +14 -15
- package/dist/runtime/index.d.mts +8 -7
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/logger.d.mts +10 -11
- package/dist/runtime/secretmanager.d.mts +3 -4
- package/dist/runtime/types.d.mts +7 -8
- package/dist/runtime/workflow.d.mts +7 -8
- package/dist/schema-DMlLMsWA.mjs +2 -0
- package/dist/schema-DMlLMsWA.mjs.map +1 -0
- package/dist/seed/index.d.mts +3 -3
- package/dist/service-7SCy2bhm.mjs +7 -0
- package/dist/service-7SCy2bhm.mjs.map +1 -0
- package/dist/service-CWFQ8EVo.mjs +1 -0
- package/dist/shared/src/color.d.mts +2 -3
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +21 -22
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +2 -3
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +35 -36
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +6 -7
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +229 -230
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +40 -41
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +9 -10
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +3 -4
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +45 -46
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +24 -25
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +17 -18
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +29 -30
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +8 -9
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +2 -3
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +37 -38
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +13 -14
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +19 -20
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +2 -3
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +25 -26
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +59 -60
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +10 -11
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +7 -8
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +37 -38
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +4 -5
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +6 -7
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +21 -22
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +3 -4
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +50 -51
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +4 -5
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +74 -75
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +35 -36
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +41 -42
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +11 -12
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +97 -98
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +11 -12
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +209 -210
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +24 -25
- package/dist/types/aigateway.generated.d.mts +3 -4
- package/dist/types/app-config.generated.d.mts +2 -3
- package/dist/types/auth-connection.generated.d.mts +3 -4
- package/dist/types/auth.generated.d.mts +15 -16
- package/dist/types/executor.generated.d.mts +26 -27
- package/dist/types/helpers.d.mts +15 -13
- package/dist/types/http-adapter.generated.d.mts +2 -3
- package/dist/types/idp.generated.d.mts +7 -8
- package/dist/types/resolver.generated.d.mts +6 -5
- package/dist/types/secrets.generated.d.mts +3 -4
- package/dist/types/staticwebsite.generated.d.mts +3 -4
- package/dist/types/tailordb.generated.d.mts +7 -8
- package/dist/types/workflow.generated.d.mts +3 -4
- package/dist/utils/test/index.d.mts +3 -4
- package/dist/vitest/index.d.mts +2 -2
- package/dist/vitest/mock-kysely.d.mts +4 -5
- package/dist/vitest/mocks/aigateway.d.mts +3 -4
- package/dist/vitest/mocks/authconnection.d.mts +3 -4
- package/dist/vitest/mocks/file.d.mts +3 -4
- package/dist/vitest/mocks/iconv.d.mts +3 -4
- package/dist/vitest/mocks/idp.d.mts +3 -4
- package/dist/vitest/mocks/logger.d.mts +3 -4
- package/dist/vitest/mocks/secretmanager.d.mts +3 -4
- package/dist/vitest/mocks/tailordb-pglite.d.mts +4 -5
- package/dist/vitest/mocks/tailordb.d.mts +6 -7
- package/dist/vitest/mocks/workflow.d.mts +2 -3
- package/dist/vitest/pglite-kysely.d.mts +5 -6
- package/dist/vitest/setup.d.mts +6 -7
- package/dist/vitest/workflow-local.d.mts +5 -6
- package/docs/services/idp.md +6 -3
- package/docs/services/resolver.md +21 -0
- package/docs/services/tailordb-migration.md +25 -3
- package/docs/services/tailordb.md +2 -0
- package/package.json +13 -13
- package/dist/application-BFTkaW6X.mjs +0 -1
- package/dist/application-D3HlhR3i.mjs.map +0 -1
- package/dist/register-ts-hook-BJmGCQAA.mjs +0 -642
- package/dist/register-ts-hook-BJmGCQAA.mjs.map +0 -1
- package/dist/schema-6d_OHyZf.mjs +0 -2
- package/dist/schema-6d_OHyZf.mjs.map +0 -1
- package/dist/service-BzsSm2f6.mjs +0 -7
- package/dist/service-BzsSm2f6.mjs.map +0 -1
- package/dist/service-CmwD9bwv.mjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
//#region src/cli/commands/api/api-call.d.ts
|
|
2
|
-
interface ApiCallOptions {
|
|
2
|
+
export interface ApiCallOptions {
|
|
3
3
|
profile?: string;
|
|
4
4
|
endpoint: string;
|
|
5
5
|
body?: string;
|
|
6
6
|
}
|
|
7
|
-
interface ApiCallResult {
|
|
7
|
+
export interface ApiCallResult {
|
|
8
8
|
status: number;
|
|
9
9
|
data: unknown;
|
|
10
10
|
}
|
|
@@ -14,6 +14,5 @@ interface ApiCallResult {
|
|
|
14
14
|
* @param options - API call options (profile, endpoint, body)
|
|
15
15
|
* @returns Response status and data
|
|
16
16
|
*/
|
|
17
|
-
declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { ApiCallOptions, ApiCallResult, apiCall };
|
|
17
|
+
export declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
|
|
18
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/cli/commands/deploy/config-id-injector.d.ts
|
|
2
|
-
interface EnsureConfigIdResult {
|
|
2
|
+
export interface EnsureConfigIdResult {
|
|
3
3
|
id: string;
|
|
4
4
|
injected: boolean;
|
|
5
5
|
}
|
|
@@ -11,6 +11,5 @@ interface EnsureConfigIdResult {
|
|
|
11
11
|
* @param configPath - Absolute path to the config file
|
|
12
12
|
* @returns Resolved id and whether it was newly injected, or null if skipped
|
|
13
13
|
*/
|
|
14
|
-
declare function ensureConfigId(configPath: string): Promise<EnsureConfigIdResult | null>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { EnsureConfigIdResult, ensureConfigId };
|
|
14
|
+
export declare function ensureConfigId(configPath: string): Promise<EnsureConfigIdResult | null>;
|
|
15
|
+
//#endregion
|
|
@@ -6,7 +6,7 @@ import "./apply-phases.mjs";
|
|
|
6
6
|
import "./deployment-target.mjs";
|
|
7
7
|
import "./event-subscriptions.mjs";
|
|
8
8
|
//#region src/cli/commands/deploy/deploy.d.ts
|
|
9
|
-
interface DeployOptions {
|
|
9
|
+
export interface DeployOptions {
|
|
10
10
|
workspaceId?: string;
|
|
11
11
|
profile?: string;
|
|
12
12
|
configPath?: string;
|
|
@@ -28,8 +28,7 @@ interface DeployOptions {
|
|
|
28
28
|
* @param options - Deploy execution options
|
|
29
29
|
* @returns Deploy result
|
|
30
30
|
*/
|
|
31
|
-
declare function deploy(options?: DeployOptions): Promise<{
|
|
31
|
+
export declare function deploy(options?: DeployOptions): Promise<{
|
|
32
32
|
bundledScripts: BundledScripts;
|
|
33
33
|
} | undefined>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DeployOptions, deploy };
|
|
34
|
+
//#endregion
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* In-memory bundled scripts organized by kind.
|
|
4
4
|
*/
|
|
5
|
-
type BundledScripts = {
|
|
5
|
+
export type BundledScripts = {
|
|
6
6
|
resolvers: Map<string, string>;
|
|
7
7
|
executors: Map<string, string>;
|
|
8
8
|
workflowJobs: Map<string, string>;
|
|
9
9
|
authHooks: Map<string, string>;
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
|
-
export { BundledScripts };
|
|
11
|
+
//#endregion
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
type ExecutorLike = {
|
|
5
5
|
name: string;
|
|
6
6
|
};
|
|
7
|
-
type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
7
|
+
export type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
8
8
|
executor: E;
|
|
9
9
|
workspaceId?: string;
|
|
10
10
|
profile?: string;
|
|
@@ -14,6 +14,5 @@ type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
14
14
|
* @param options - Executor lookup options
|
|
15
15
|
* @returns Executor information
|
|
16
16
|
*/
|
|
17
|
-
declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { GetExecutorTypedOptions, getExecutor };
|
|
17
|
+
export declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
|
|
18
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@ import { z } from "zod";
|
|
|
5
5
|
type ExecutorLike = {
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
|
-
type ListExecutorJobsTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
8
|
+
export type ListExecutorJobsTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
9
9
|
executor: E;
|
|
10
10
|
status?: string;
|
|
11
11
|
order?: Order;
|
|
@@ -13,14 +13,14 @@ type ListExecutorJobsTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
13
13
|
workspaceId?: string;
|
|
14
14
|
profile?: string;
|
|
15
15
|
};
|
|
16
|
-
type GetExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
16
|
+
export type GetExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
17
17
|
executor: E;
|
|
18
18
|
jobId: string;
|
|
19
19
|
attempts?: boolean;
|
|
20
20
|
workspaceId?: string;
|
|
21
21
|
profile?: string;
|
|
22
22
|
};
|
|
23
|
-
type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
23
|
+
export type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
24
24
|
executor: E;
|
|
25
25
|
jobId: string;
|
|
26
26
|
workspaceId?: string;
|
|
@@ -30,7 +30,7 @@ type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
|
30
30
|
logs?: boolean;
|
|
31
31
|
showProgress?: boolean;
|
|
32
32
|
};
|
|
33
|
-
interface ExecutorJobDetailInfo extends ExecutorJobInfo {
|
|
33
|
+
export interface ExecutorJobDetailInfo extends ExecutorJobInfo {
|
|
34
34
|
attempts?: ExecutorJobAttemptInfo[];
|
|
35
35
|
}
|
|
36
36
|
interface WorkflowJobLog {
|
|
@@ -38,7 +38,7 @@ interface WorkflowJobLog {
|
|
|
38
38
|
logs?: string;
|
|
39
39
|
result?: string;
|
|
40
40
|
}
|
|
41
|
-
interface WatchExecutorJobResult {
|
|
41
|
+
export interface WatchExecutorJobResult {
|
|
42
42
|
job: ExecutorJobDetailInfo;
|
|
43
43
|
targetType: string;
|
|
44
44
|
elapsedMs: number;
|
|
@@ -62,24 +62,23 @@ interface WatchExecutorJobResult {
|
|
|
62
62
|
* @param options - Options for listing executor jobs
|
|
63
63
|
* @returns List of executor job information
|
|
64
64
|
*/
|
|
65
|
-
declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
|
|
65
|
+
export declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
|
|
66
66
|
/**
|
|
67
67
|
* Get details of a specific executor job.
|
|
68
68
|
* @param options - Options for getting executor job details
|
|
69
69
|
* @returns Executor job detail information
|
|
70
70
|
*/
|
|
71
|
-
declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
|
|
71
|
+
export declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
|
|
72
72
|
/**
|
|
73
73
|
* Watch an executor job until completion, including downstream executions.
|
|
74
74
|
* @param options - Options for watching executor job
|
|
75
75
|
* @returns Result including job details and downstream execution info
|
|
76
76
|
*/
|
|
77
|
-
declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
|
|
77
|
+
export declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
|
|
78
78
|
/**
|
|
79
79
|
* Build a user-facing failure message for an executor job wait result.
|
|
80
80
|
* @param result - Executor job wait result
|
|
81
81
|
* @returns Failure message, or undefined when the wait succeeded
|
|
82
82
|
*/
|
|
83
|
-
declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { ExecutorJobDetailInfo, GetExecutorJobTypedOptions, ListExecutorJobsTypedOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
|
|
83
|
+
export declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
|
|
84
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Order } from "../../shared/args.mjs";
|
|
|
2
2
|
import { ExecutorListInfo } from "./transform.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/executor/list.d.ts
|
|
5
|
-
interface ListExecutorsOptions {
|
|
5
|
+
export interface ListExecutorsOptions {
|
|
6
6
|
workspaceId?: string;
|
|
7
7
|
profile?: string;
|
|
8
8
|
order?: Order;
|
|
@@ -13,6 +13,5 @@ interface ListExecutorsOptions {
|
|
|
13
13
|
* @param options - Executor listing options
|
|
14
14
|
* @returns List of executors
|
|
15
15
|
*/
|
|
16
|
-
declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ListExecutorsOptions, listExecutors };
|
|
16
|
+
export declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
|
|
17
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/executor_resource_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/executor/transform.d.ts
|
|
3
|
-
interface ExecutorJobListInfo {
|
|
3
|
+
export interface ExecutorJobListInfo {
|
|
4
4
|
id: string;
|
|
5
5
|
executorName: string;
|
|
6
6
|
status: string;
|
|
7
7
|
createdAt: string;
|
|
8
8
|
}
|
|
9
|
-
interface ExecutorJobInfo {
|
|
9
|
+
export interface ExecutorJobInfo {
|
|
10
10
|
id: string;
|
|
11
11
|
executorName: string;
|
|
12
12
|
status: string;
|
|
@@ -14,7 +14,7 @@ interface ExecutorJobInfo {
|
|
|
14
14
|
createdAt: string;
|
|
15
15
|
updatedAt: string;
|
|
16
16
|
}
|
|
17
|
-
interface ExecutorJobAttemptInfo {
|
|
17
|
+
export interface ExecutorJobAttemptInfo {
|
|
18
18
|
id: string;
|
|
19
19
|
jobId: string;
|
|
20
20
|
status: string;
|
|
@@ -23,13 +23,13 @@ interface ExecutorJobAttemptInfo {
|
|
|
23
23
|
finishedAt: string;
|
|
24
24
|
operationReference: string;
|
|
25
25
|
}
|
|
26
|
-
interface ExecutorListInfo {
|
|
26
|
+
export interface ExecutorListInfo {
|
|
27
27
|
name: string;
|
|
28
28
|
triggerType: string;
|
|
29
29
|
targetType: string;
|
|
30
30
|
disabled: boolean;
|
|
31
31
|
}
|
|
32
|
-
interface ExecutorInfo {
|
|
32
|
+
export interface ExecutorInfo {
|
|
33
33
|
name: string;
|
|
34
34
|
description: string;
|
|
35
35
|
triggerType: string;
|
|
@@ -38,5 +38,4 @@ interface ExecutorInfo {
|
|
|
38
38
|
triggerConfig: Record<string, unknown>;
|
|
39
39
|
targetConfig: Record<string, unknown>;
|
|
40
40
|
}
|
|
41
|
-
//#endregion
|
|
42
|
-
export { ExecutorInfo, ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo, ExecutorListInfo };
|
|
41
|
+
//#endregion
|
|
@@ -12,12 +12,12 @@ type TriggerExecutorBaseOptions<E extends ManualTriggerExecutor> = {
|
|
|
12
12
|
workspaceId?: string;
|
|
13
13
|
profile?: string;
|
|
14
14
|
};
|
|
15
|
-
type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
|
|
15
|
+
export type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
|
|
16
16
|
payload?: JsonObject;
|
|
17
17
|
} : TriggerExecutorBaseOptions<E> & {
|
|
18
18
|
payload?: never;
|
|
19
19
|
};
|
|
20
|
-
interface TriggerExecutorResult {
|
|
20
|
+
export interface TriggerExecutorResult {
|
|
21
21
|
jobId?: string;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
@@ -25,6 +25,5 @@ interface TriggerExecutorResult {
|
|
|
25
25
|
* @param options - Options for triggering executor
|
|
26
26
|
* @returns Result containing the job ID if available
|
|
27
27
|
*/
|
|
28
|
-
declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
|
|
28
|
+
export declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
|
|
29
|
+
//#endregion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Order } from "../../shared/args.mjs";
|
|
2
2
|
//#region src/cli/commands/executor/webhook.d.ts
|
|
3
|
-
interface WebhookExecutorInfo {
|
|
3
|
+
export interface WebhookExecutorInfo {
|
|
4
4
|
name: string;
|
|
5
5
|
webhookUrl: string;
|
|
6
6
|
disabled: boolean;
|
|
7
7
|
}
|
|
8
|
-
interface ListWebhookExecutorsOptions {
|
|
8
|
+
export interface ListWebhookExecutorsOptions {
|
|
9
9
|
workspaceId?: string;
|
|
10
10
|
profile?: string;
|
|
11
11
|
order?: Order;
|
|
@@ -16,6 +16,5 @@ interface ListWebhookExecutorsOptions {
|
|
|
16
16
|
* @param options - Listing options
|
|
17
17
|
* @returns List of webhook executors with URLs
|
|
18
18
|
*/
|
|
19
|
-
declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ListWebhookExecutorsOptions, WebhookExecutorInfo, listWebhookExecutors };
|
|
19
|
+
export declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
|
|
20
|
+
//#endregion
|
|
@@ -6,12 +6,11 @@ declare const getFunctionRegistryOptionsSchema: z.ZodObject<{
|
|
|
6
6
|
profile: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptionsSchema>;
|
|
9
|
+
export type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptionsSchema>;
|
|
10
10
|
/**
|
|
11
11
|
* Get a function registry by name.
|
|
12
12
|
* @param options - Function registry get options
|
|
13
13
|
* @returns Function registry info
|
|
14
14
|
*/
|
|
15
|
-
declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { GetFunctionRegistryOptions, getFunctionRegistry };
|
|
15
|
+
export declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
|
|
16
|
+
//#endregion
|
|
@@ -10,12 +10,11 @@ declare const listFunctionRegistriesOptionsSchema: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
type ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistriesOptionsSchema>;
|
|
13
|
+
export type ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistriesOptionsSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* List function registries in a workspace with optional pagination.
|
|
16
16
|
* @param options - Function registry listing options
|
|
17
17
|
* @returns List of function registries
|
|
18
18
|
*/
|
|
19
|
-
declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ListFunctionRegistriesOptions, listFunctionRegistries };
|
|
19
|
+
export declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
|
|
20
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/function_registry_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/function/transform.d.ts
|
|
3
|
-
interface FunctionRegistryInfo {
|
|
3
|
+
export interface FunctionRegistryInfo {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
sizeBytes: string;
|
|
@@ -8,5 +8,4 @@ interface FunctionRegistryInfo {
|
|
|
8
8
|
createdAt: Date | null;
|
|
9
9
|
updatedAt: Date | null;
|
|
10
10
|
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { FunctionRegistryInfo };
|
|
11
|
+
//#endregion
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Bundles seed scripts for server-side execution
|
|
6
6
|
*/
|
|
7
|
-
type SeedBundleResult = {
|
|
7
|
+
export type SeedBundleResult = {
|
|
8
8
|
namespace: string;
|
|
9
9
|
bundledCode: string;
|
|
10
10
|
typesIncluded: string[];
|
|
@@ -22,6 +22,5 @@ type SeedBundleResult = {
|
|
|
22
22
|
* @param baseDir - Directory whose dependencies and tsconfig the generated entry uses
|
|
23
23
|
* @returns Bundled seed script result
|
|
24
24
|
*/
|
|
25
|
-
declare function bundleSeedScript(namespace: string, tableNames: string[], baseDir?: string): Promise<SeedBundleResult>;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { SeedBundleResult, bundleSeedScript };
|
|
25
|
+
export declare function bundleSeedScript(namespace: string, tableNames: string[], baseDir?: string): Promise<SeedBundleResult>;
|
|
26
|
+
//#endregion
|
|
@@ -10,6 +10,5 @@ import { GenerateOptions } from "./options.mjs";
|
|
|
10
10
|
* @param options - Generation options
|
|
11
11
|
* @returns Promise that resolves when generation completes
|
|
12
12
|
*/
|
|
13
|
-
declare function generate(options?: GenerateOptions): Promise<void>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { generate };
|
|
13
|
+
export declare function generate(options?: GenerateOptions): Promise<void>;
|
|
14
|
+
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Order } from "../../shared/args.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/cli/commands/machineuser/list.d.ts
|
|
4
|
-
interface ListMachineUsersOptions {
|
|
4
|
+
export interface ListMachineUsersOptions {
|
|
5
5
|
workspaceId?: string;
|
|
6
6
|
profile?: string;
|
|
7
7
|
configPath?: string;
|
|
8
8
|
order?: Order;
|
|
9
9
|
limit?: number;
|
|
10
10
|
}
|
|
11
|
-
interface MachineUserInfo {
|
|
11
|
+
export interface MachineUserInfo {
|
|
12
12
|
name: string;
|
|
13
13
|
clientId: string;
|
|
14
14
|
clientSecret: string;
|
|
@@ -21,6 +21,5 @@ interface MachineUserInfo {
|
|
|
21
21
|
* @param options - Machine user listing options
|
|
22
22
|
* @returns List of machine users
|
|
23
23
|
*/
|
|
24
|
-
declare function listMachineUsers(options?: ListMachineUsersOptions): Promise<MachineUserInfo[]>;
|
|
25
|
-
//#endregion
|
|
26
|
-
export { ListMachineUsersOptions, MachineUserInfo, listMachineUsers };
|
|
24
|
+
export declare function listMachineUsers(options?: ListMachineUsersOptions): Promise<MachineUserInfo[]>;
|
|
25
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/cli/commands/machineuser/token.d.ts
|
|
3
|
-
interface GetMachineUserTokenOptions {
|
|
3
|
+
export interface GetMachineUserTokenOptions {
|
|
4
4
|
name?: string;
|
|
5
5
|
workspaceId?: string;
|
|
6
6
|
profile?: string;
|
|
7
7
|
configPath?: string;
|
|
8
8
|
}
|
|
9
|
-
interface MachineUserTokenInfo {
|
|
9
|
+
export interface MachineUserTokenInfo {
|
|
10
10
|
accessToken: string;
|
|
11
11
|
tokenType: string;
|
|
12
12
|
expiresAt: string;
|
|
@@ -16,6 +16,5 @@ interface MachineUserTokenInfo {
|
|
|
16
16
|
* @param options - Token retrieval options
|
|
17
17
|
* @returns Machine user token info
|
|
18
18
|
*/
|
|
19
|
-
declare function getMachineUserToken(options: GetMachineUserTokenOptions): Promise<MachineUserTokenInfo>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { GetMachineUserTokenOptions, MachineUserTokenInfo, getMachineUserToken };
|
|
19
|
+
export declare function getMachineUserToken(options: GetMachineUserTokenOptions): Promise<MachineUserTokenInfo>;
|
|
20
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OAuth2ClientCredentials } from "./transform.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/cli/commands/oauth2client/get.d.ts
|
|
4
|
-
interface GetOAuth2ClientOptions {
|
|
4
|
+
export interface GetOAuth2ClientOptions {
|
|
5
5
|
name: string;
|
|
6
6
|
workspaceId?: string;
|
|
7
7
|
profile?: string;
|
|
@@ -12,6 +12,5 @@ interface GetOAuth2ClientOptions {
|
|
|
12
12
|
* @param options - OAuth2 client lookup options
|
|
13
13
|
* @returns OAuth2 client credentials
|
|
14
14
|
*/
|
|
15
|
-
declare function getOAuth2Client(options: GetOAuth2ClientOptions): Promise<OAuth2ClientCredentials>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { GetOAuth2ClientOptions, getOAuth2Client };
|
|
15
|
+
export declare function getOAuth2Client(options: GetOAuth2ClientOptions): Promise<OAuth2ClientCredentials>;
|
|
16
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Order } from "../../shared/args.mjs";
|
|
|
2
2
|
import { OAuth2ClientInfo } from "./transform.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/oauth2client/list.d.ts
|
|
5
|
-
interface ListOAuth2ClientsOptions {
|
|
5
|
+
export interface ListOAuth2ClientsOptions {
|
|
6
6
|
workspaceId?: string;
|
|
7
7
|
profile?: string;
|
|
8
8
|
configPath?: string;
|
|
@@ -14,6 +14,5 @@ interface ListOAuth2ClientsOptions {
|
|
|
14
14
|
* @param options - OAuth2 client listing options
|
|
15
15
|
* @returns List of OAuth2 clients
|
|
16
16
|
*/
|
|
17
|
-
declare function listOAuth2Clients(options?: ListOAuth2ClientsOptions): Promise<OAuth2ClientInfo[]>;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { ListOAuth2ClientsOptions, listOAuth2Clients };
|
|
17
|
+
export declare function listOAuth2Clients(options?: ListOAuth2ClientsOptions): Promise<OAuth2ClientInfo[]>;
|
|
18
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/auth_resource_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/oauth2client/transform.d.ts
|
|
3
|
-
interface OAuth2ClientInfo {
|
|
3
|
+
export interface OAuth2ClientInfo {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
6
|
clientId: string;
|
|
@@ -8,7 +8,7 @@ interface OAuth2ClientInfo {
|
|
|
8
8
|
redirectUris: string[];
|
|
9
9
|
createdAt: Date | null;
|
|
10
10
|
}
|
|
11
|
-
interface OAuth2ClientCredentials {
|
|
11
|
+
export interface OAuth2ClientCredentials {
|
|
12
12
|
name: string;
|
|
13
13
|
description: string;
|
|
14
14
|
clientId: string;
|
|
@@ -17,5 +17,4 @@ interface OAuth2ClientCredentials {
|
|
|
17
17
|
redirectUris: string[];
|
|
18
18
|
createdAt: Date | null;
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
|
-
export { OAuth2ClientCredentials, OAuth2ClientInfo };
|
|
20
|
+
//#endregion
|
|
@@ -6,12 +6,11 @@ declare const createFolderOptionsSchema: z.ZodObject<{
|
|
|
6
6
|
parentFolderId: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
type CreateFolderOptions = z.input<typeof createFolderOptionsSchema>;
|
|
9
|
+
export type CreateFolderOptions = z.input<typeof createFolderOptionsSchema>;
|
|
10
10
|
/**
|
|
11
11
|
* Create a new folder in an organization.
|
|
12
12
|
* @param options - Folder creation options
|
|
13
13
|
* @returns Created folder details
|
|
14
14
|
*/
|
|
15
|
-
declare function createFolder(options: CreateFolderOptions): Promise<FolderInfo>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { CreateFolderOptions, createFolder };
|
|
15
|
+
export declare function createFolder(options: CreateFolderOptions): Promise<FolderInfo>;
|
|
16
|
+
//#endregion
|
|
@@ -4,12 +4,11 @@ declare const deleteFolderOptionsSchema: z.ZodObject<{
|
|
|
4
4
|
organizationId: z.ZodUUID;
|
|
5
5
|
folderId: z.ZodUUID;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
type DeleteFolderOptions = z.input<typeof deleteFolderOptionsSchema>;
|
|
7
|
+
export type DeleteFolderOptions = z.input<typeof deleteFolderOptionsSchema>;
|
|
8
8
|
/**
|
|
9
9
|
* Delete a folder from an organization.
|
|
10
10
|
* @param options - Folder deletion options
|
|
11
11
|
* @returns Promise that resolves when deletion completes
|
|
12
12
|
*/
|
|
13
|
-
declare function deleteFolder(options: DeleteFolderOptions): Promise<void>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { DeleteFolderOptions, deleteFolder };
|
|
13
|
+
export declare function deleteFolder(options: DeleteFolderOptions): Promise<void>;
|
|
14
|
+
//#endregion
|
|
@@ -5,12 +5,11 @@ declare const getFolderOptionsSchema: z.ZodObject<{
|
|
|
5
5
|
organizationId: z.ZodUUID;
|
|
6
6
|
folderId: z.ZodUUID;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
type GetFolderOptions = z.input<typeof getFolderOptionsSchema>;
|
|
8
|
+
export type GetFolderOptions = z.input<typeof getFolderOptionsSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* Get detailed information about a folder.
|
|
11
11
|
* @param options - Folder get options
|
|
12
12
|
* @returns Folder details
|
|
13
13
|
*/
|
|
14
|
-
declare function getFolder(options: GetFolderOptions): Promise<FolderInfo>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { GetFolderOptions, getFolder };
|
|
14
|
+
export declare function getFolder(options: GetFolderOptions): Promise<FolderInfo>;
|
|
15
|
+
//#endregion
|
|
@@ -10,12 +10,11 @@ declare const listFoldersOptionsSchema: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
type ListFoldersOptions = z.input<typeof listFoldersOptionsSchema>;
|
|
13
|
+
export type ListFoldersOptions = z.input<typeof listFoldersOptionsSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* List folders in an organization.
|
|
16
16
|
* @param options - Folder listing options
|
|
17
17
|
* @returns List of folders
|
|
18
18
|
*/
|
|
19
|
-
declare function listFolders(options: ListFoldersOptions): Promise<FolderListInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ListFoldersOptions, listFolders };
|
|
19
|
+
export declare function listFolders(options: ListFoldersOptions): Promise<FolderListInfo[]>;
|
|
20
|
+
//#endregion
|
|
@@ -6,12 +6,11 @@ declare const updateFolderOptionsSchema: z.ZodObject<{
|
|
|
6
6
|
folderId: z.ZodUUID;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
type UpdateFolderOptions = z.input<typeof updateFolderOptionsSchema>;
|
|
9
|
+
export type UpdateFolderOptions = z.input<typeof updateFolderOptionsSchema>;
|
|
10
10
|
/**
|
|
11
11
|
* Update a folder's name.
|
|
12
12
|
* @param options - Folder update options
|
|
13
13
|
* @returns Updated folder details
|
|
14
14
|
*/
|
|
15
|
-
declare function updateFolder(options: UpdateFolderOptions): Promise<FolderInfo>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { UpdateFolderOptions, updateFolder };
|
|
15
|
+
export declare function updateFolder(options: UpdateFolderOptions): Promise<FolderInfo>;
|
|
16
|
+
//#endregion
|
|
@@ -4,12 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const getOrganizationOptionsSchema: z.ZodObject<{
|
|
5
5
|
organizationId: z.ZodUUID;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
|
-
type GetOrganizationOptions = z.input<typeof getOrganizationOptionsSchema>;
|
|
7
|
+
export type GetOrganizationOptions = z.input<typeof getOrganizationOptionsSchema>;
|
|
8
8
|
/**
|
|
9
9
|
* Get detailed information about an organization.
|
|
10
10
|
* @param options - Organization get options
|
|
11
11
|
* @returns Organization details
|
|
12
12
|
*/
|
|
13
|
-
declare function getOrganization(options: GetOrganizationOptions): Promise<OrganizationInfo>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { GetOrganizationOptions, getOrganization };
|
|
13
|
+
export declare function getOrganization(options: GetOrganizationOptions): Promise<OrganizationInfo>;
|
|
14
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UserOrganizationInfo } from "./transform.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/cli/commands/organization/list.d.ts
|
|
4
|
-
interface ListOrganizationsOptions {
|
|
4
|
+
export interface ListOrganizationsOptions {
|
|
5
5
|
limit?: number;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -9,6 +9,5 @@ interface ListOrganizationsOptions {
|
|
|
9
9
|
* @param options - Organization listing options
|
|
10
10
|
* @returns List of user organizations
|
|
11
11
|
*/
|
|
12
|
-
declare function listOrganizations(options?: ListOrganizationsOptions): Promise<UserOrganizationInfo[]>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { ListOrganizationsOptions, listOrganizations };
|
|
12
|
+
export declare function listOrganizations(options?: ListOrganizationsOptions): Promise<UserOrganizationInfo[]>;
|
|
13
|
+
//#endregion
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
|
|
2
2
|
import "../../../tailor-proto/src/tailor/v1/workspace_pb.mjs";
|
|
3
3
|
//#region src/cli/commands/organization/transform.d.ts
|
|
4
|
-
interface UserOrganizationInfo {
|
|
4
|
+
export interface UserOrganizationInfo {
|
|
5
5
|
organizationId: string;
|
|
6
6
|
organizationName: string;
|
|
7
7
|
rootFolderId: string;
|
|
8
8
|
rootFolderName: string;
|
|
9
9
|
displayName: string;
|
|
10
10
|
}
|
|
11
|
-
interface OrganizationInfo {
|
|
11
|
+
export interface OrganizationInfo {
|
|
12
12
|
id: string;
|
|
13
13
|
name: string;
|
|
14
14
|
createdAt: Date | null;
|
|
15
15
|
updatedAt: Date | null;
|
|
16
16
|
}
|
|
17
|
-
interface FolderListInfo {
|
|
17
|
+
export interface FolderListInfo {
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
20
|
organizationId: string;
|
|
@@ -22,8 +22,7 @@ interface FolderListInfo {
|
|
|
22
22
|
hasChildren: boolean;
|
|
23
23
|
createdAt: Date | null;
|
|
24
24
|
}
|
|
25
|
-
interface FolderInfo extends FolderListInfo {
|
|
25
|
+
export interface FolderInfo extends FolderListInfo {
|
|
26
26
|
updatedAt: Date | null;
|
|
27
27
|
}
|
|
28
|
-
//#endregion
|
|
29
|
-
export { FolderInfo, FolderListInfo, OrganizationInfo, UserOrganizationInfo };
|
|
28
|
+
//#endregion
|