@tailor-platform/sdk 2.14.0 → 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 +22 -0
- package/dist/application-BWOMdL3D.mjs +1 -0
- package/dist/{application-CiN_er9X.mjs → application-CfevPO-k.mjs} +8 -8
- 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 +34 -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/main.d.mts +2 -3
- package/dist/cli/main.mjs +18 -18
- 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 +6 -6
- 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 +7 -8
- 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 +13 -14
- 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/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-DS1zYiCV.mjs → register-ts-hook-DZ1Kpt4s.mjs} +44 -44
- 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 +2 -3
- 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 +7 -7
- 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/seed/index.d.mts +3 -3
- 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 +4 -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/package.json +12 -12
- package/dist/application-CiN_er9X.mjs.map +0 -1
- package/dist/application-_8rjQRx8.mjs +0 -1
- package/dist/register-ts-hook-DS1zYiCV.mjs.map +0 -1
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
/**
|
|
11
11
|
* Hook configuration in schema snapshot
|
|
12
12
|
*/
|
|
13
|
-
interface SnapshotHook {
|
|
13
|
+
export interface SnapshotHook {
|
|
14
14
|
expr: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Validation configuration in schema snapshot
|
|
18
18
|
*/
|
|
19
|
-
interface SnapshotValidation {
|
|
19
|
+
export interface SnapshotValidation {
|
|
20
20
|
script?: {
|
|
21
21
|
expr: string;
|
|
22
22
|
};
|
|
@@ -25,7 +25,7 @@ interface SnapshotValidation {
|
|
|
25
25
|
/**
|
|
26
26
|
* Serial configuration in schema snapshot
|
|
27
27
|
*/
|
|
28
|
-
interface SnapshotSerial {
|
|
28
|
+
export interface SnapshotSerial {
|
|
29
29
|
start: number;
|
|
30
30
|
maxValue?: number;
|
|
31
31
|
format?: string;
|
|
@@ -33,14 +33,14 @@ interface SnapshotSerial {
|
|
|
33
33
|
/**
|
|
34
34
|
* Enum value with optional description in schema snapshot
|
|
35
35
|
*/
|
|
36
|
-
interface SnapshotEnumValue {
|
|
36
|
+
export interface SnapshotEnumValue {
|
|
37
37
|
value: string;
|
|
38
38
|
description?: string;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Field configuration in schema snapshot
|
|
42
42
|
*/
|
|
43
|
-
interface SnapshotFieldConfig {
|
|
43
|
+
export interface SnapshotFieldConfig {
|
|
44
44
|
type: string;
|
|
45
45
|
required: boolean;
|
|
46
46
|
array?: boolean;
|
|
@@ -68,14 +68,14 @@ interface SnapshotFieldConfig {
|
|
|
68
68
|
/**
|
|
69
69
|
* Index configuration in schema snapshot
|
|
70
70
|
*/
|
|
71
|
-
interface SnapshotIndexConfig {
|
|
71
|
+
export interface SnapshotIndexConfig {
|
|
72
72
|
fields: string[];
|
|
73
73
|
unique?: boolean;
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Relationship configuration in schema snapshot
|
|
77
77
|
*/
|
|
78
|
-
interface SnapshotRelationship {
|
|
78
|
+
export interface SnapshotRelationship {
|
|
79
79
|
targetType: string;
|
|
80
80
|
targetField: string;
|
|
81
81
|
sourceField: string;
|
|
@@ -86,7 +86,7 @@ interface SnapshotRelationship {
|
|
|
86
86
|
* Field-reference operand in a permission condition. Always an object with
|
|
87
87
|
* exactly one of `user` / `record` / `newRecord` / `oldRecord` keys.
|
|
88
88
|
*/
|
|
89
|
-
type SnapshotFieldRefOperand = {
|
|
89
|
+
export type SnapshotFieldRefOperand = {
|
|
90
90
|
user: string;
|
|
91
91
|
} | {
|
|
92
92
|
record: string;
|
|
@@ -105,19 +105,19 @@ type SnapshotValueOperand = string | boolean | string[] | boolean[];
|
|
|
105
105
|
/**
|
|
106
106
|
* Permission operand union. Either a field-ref object or a literal value.
|
|
107
107
|
*/
|
|
108
|
-
type SnapshotPermissionOperand = SnapshotFieldRefOperand | SnapshotValueOperand;
|
|
108
|
+
export type SnapshotPermissionOperand = SnapshotFieldRefOperand | SnapshotValueOperand;
|
|
109
109
|
/**
|
|
110
110
|
* Permission operators
|
|
111
111
|
*/
|
|
112
|
-
type SnapshotPermissionOperator = "eq" | "ne" | "in" | "nin" | "hasAny" | "nhasAny";
|
|
112
|
+
export type SnapshotPermissionOperator = "eq" | "ne" | "in" | "nin" | "hasAny" | "nhasAny";
|
|
113
113
|
/**
|
|
114
114
|
* Permission condition tuple
|
|
115
115
|
*/
|
|
116
|
-
type SnapshotPermissionCondition = readonly [SnapshotPermissionOperand, SnapshotPermissionOperator, SnapshotPermissionOperand];
|
|
116
|
+
export type SnapshotPermissionCondition = readonly [SnapshotPermissionOperand, SnapshotPermissionOperator, SnapshotPermissionOperand];
|
|
117
117
|
/**
|
|
118
118
|
* Action permission policy
|
|
119
119
|
*/
|
|
120
|
-
interface SnapshotActionPermission {
|
|
120
|
+
export interface SnapshotActionPermission {
|
|
121
121
|
conditions: readonly SnapshotPermissionCondition[];
|
|
122
122
|
description?: string;
|
|
123
123
|
permit: "allow" | "deny";
|
|
@@ -125,7 +125,7 @@ interface SnapshotActionPermission {
|
|
|
125
125
|
/**
|
|
126
126
|
* Record-level permission configuration
|
|
127
127
|
*/
|
|
128
|
-
interface SnapshotRecordPermission {
|
|
128
|
+
export interface SnapshotRecordPermission {
|
|
129
129
|
create: readonly SnapshotActionPermission[];
|
|
130
130
|
read: readonly SnapshotActionPermission[];
|
|
131
131
|
update: readonly SnapshotActionPermission[];
|
|
@@ -134,11 +134,11 @@ interface SnapshotRecordPermission {
|
|
|
134
134
|
/**
|
|
135
135
|
* GQL permission actions
|
|
136
136
|
*/
|
|
137
|
-
type SnapshotGqlAction = "read" | "create" | "update" | "delete" | "aggregate" | "bulkUpsert" | "all";
|
|
137
|
+
export type SnapshotGqlAction = "read" | "create" | "update" | "delete" | "aggregate" | "bulkUpsert" | "all";
|
|
138
138
|
/**
|
|
139
139
|
* GQL permission policy
|
|
140
140
|
*/
|
|
141
|
-
interface SnapshotGqlPermissionPolicy {
|
|
141
|
+
export interface SnapshotGqlPermissionPolicy {
|
|
142
142
|
conditions: readonly SnapshotPermissionCondition[];
|
|
143
143
|
actions: readonly SnapshotGqlAction[];
|
|
144
144
|
permit: "allow" | "deny";
|
|
@@ -147,14 +147,14 @@ interface SnapshotGqlPermissionPolicy {
|
|
|
147
147
|
/**
|
|
148
148
|
* GQL permission configuration
|
|
149
149
|
*/
|
|
150
|
-
type SnapshotGqlPermission = readonly SnapshotGqlPermissionPolicy[];
|
|
150
|
+
export type SnapshotGqlPermission = readonly SnapshotGqlPermissionPolicy[];
|
|
151
151
|
/**
|
|
152
152
|
* Type definition in schema snapshot.
|
|
153
153
|
* `pluralForm` is always materialized — either set by the SDK user, derived
|
|
154
154
|
* via inflection at snapshot construction, or backfilled when loading legacy
|
|
155
155
|
* snapshots in `loadSnapshot`.
|
|
156
156
|
*/
|
|
157
|
-
interface TailorDBSnapshotType {
|
|
157
|
+
export interface TailorDBSnapshotType {
|
|
158
158
|
name: string;
|
|
159
159
|
pluralForm: string;
|
|
160
160
|
description?: string;
|
|
@@ -185,7 +185,7 @@ interface TailorDBSnapshotType {
|
|
|
185
185
|
typeValidateExpr?: string;
|
|
186
186
|
}
|
|
187
187
|
/** Identifies the history transition created by a full rebaseline. */
|
|
188
|
-
interface RebaselineMarker {
|
|
188
|
+
export interface RebaselineMarker {
|
|
189
189
|
historyId: string;
|
|
190
190
|
replacedHistoryId: string | null;
|
|
191
191
|
replacedLatestMigration: number;
|
|
@@ -195,7 +195,7 @@ interface RebaselineMarker {
|
|
|
195
195
|
* Stored as XXXX/schema.json. Defined here (leaf module) so that
|
|
196
196
|
* snapshot-schema.ts can reference it without importing snapshot.ts.
|
|
197
197
|
*/
|
|
198
|
-
interface SchemaSnapshot {
|
|
198
|
+
export interface SchemaSnapshot {
|
|
199
199
|
/** Format version for future compatibility */
|
|
200
200
|
version: number;
|
|
201
201
|
namespace: string;
|
|
@@ -210,8 +210,7 @@ declare const normalizedSchemaSnapshotBrand: unique symbol;
|
|
|
210
210
|
* Returned by snapshot creation and loading functions so drift detection stays
|
|
211
211
|
* stable when local definitions omit defaults that the platform materializes.
|
|
212
212
|
*/
|
|
213
|
-
type NormalizedSchemaSnapshot = SchemaSnapshot & {
|
|
213
|
+
export type NormalizedSchemaSnapshot = SchemaSnapshot & {
|
|
214
214
|
readonly [normalizedSchemaSnapshotBrand]: true;
|
|
215
215
|
};
|
|
216
|
-
//#endregion
|
|
217
|
-
export { NormalizedSchemaSnapshot, RebaselineMarker, SchemaSnapshot, SnapshotActionPermission, SnapshotEnumValue, SnapshotFieldConfig, SnapshotFieldRefOperand, SnapshotGqlAction, SnapshotGqlPermission, SnapshotGqlPermissionPolicy, SnapshotHook, SnapshotIndexConfig, SnapshotPermissionCondition, SnapshotPermissionOperand, SnapshotPermissionOperator, SnapshotRecordPermission, SnapshotRelationship, SnapshotSerial, SnapshotValidation, TailorDBSnapshotType };
|
|
216
|
+
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/cli/commands/tailordb/truncate.d.ts
|
|
3
|
-
interface TruncateOptions {
|
|
3
|
+
export interface TruncateOptions {
|
|
4
4
|
workspaceId?: string;
|
|
5
5
|
profile?: string;
|
|
6
6
|
configPath?: string;
|
|
@@ -13,6 +13,5 @@ interface TruncateOptions {
|
|
|
13
13
|
* @param options - Truncate options (all, namespace, or tables)
|
|
14
14
|
* @returns Promise that resolves when truncation completes
|
|
15
15
|
*/
|
|
16
|
-
declare function truncate(options?: TruncateOptions): Promise<void>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { TruncateOptions, truncate };
|
|
16
|
+
export declare function truncate(options?: TruncateOptions): Promise<void>;
|
|
17
|
+
//#endregion
|
|
@@ -7,7 +7,7 @@ import { z } from "zod";
|
|
|
7
7
|
type WorkflowLike = {
|
|
8
8
|
name: string;
|
|
9
9
|
};
|
|
10
|
-
type ListWorkflowExecutionsTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
10
|
+
export type ListWorkflowExecutionsTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
11
11
|
workflow?: W;
|
|
12
12
|
status?: string;
|
|
13
13
|
workspaceId?: string;
|
|
@@ -15,7 +15,7 @@ type ListWorkflowExecutionsTypedOptions<W extends WorkflowLike = WorkflowLike> =
|
|
|
15
15
|
order?: Order;
|
|
16
16
|
limit?: number;
|
|
17
17
|
};
|
|
18
|
-
interface GetWorkflowExecutionOptions {
|
|
18
|
+
export interface GetWorkflowExecutionOptions {
|
|
19
19
|
executionId: string;
|
|
20
20
|
workspaceId?: string;
|
|
21
21
|
profile?: string;
|
|
@@ -24,20 +24,20 @@ interface GetWorkflowExecutionOptions {
|
|
|
24
24
|
until?: WorkflowWaitUntil;
|
|
25
25
|
logs?: boolean;
|
|
26
26
|
}
|
|
27
|
-
interface WorkflowExecutionDetailInfo extends WorkflowExecutionInfo {
|
|
27
|
+
export interface WorkflowExecutionDetailInfo extends WorkflowExecutionInfo {
|
|
28
28
|
jobDetails?: (WorkflowJobExecutionInfo & {
|
|
29
29
|
logs?: string;
|
|
30
30
|
result?: string;
|
|
31
31
|
})[];
|
|
32
32
|
}
|
|
33
|
-
interface WorkflowExecutionWaitInfo extends WorkflowExecutionDetailInfo {
|
|
33
|
+
export interface WorkflowExecutionWaitInfo extends WorkflowExecutionDetailInfo {
|
|
34
34
|
statusClass: WorkflowWaitResult["statusClass"];
|
|
35
35
|
elapsedMs: number;
|
|
36
36
|
attempts: number;
|
|
37
37
|
timedOut: boolean;
|
|
38
38
|
lastError: string | null;
|
|
39
39
|
}
|
|
40
|
-
interface GetWorkflowExecutionResult {
|
|
40
|
+
export interface GetWorkflowExecutionResult {
|
|
41
41
|
execution: WorkflowExecutionDetailInfo;
|
|
42
42
|
wait: () => Promise<WorkflowExecutionWaitInfo>;
|
|
43
43
|
}
|
|
@@ -51,12 +51,11 @@ interface GetWorkflowExecutionResult {
|
|
|
51
51
|
* @param options - Workflow execution listing options
|
|
52
52
|
* @returns List of workflow executions
|
|
53
53
|
*/
|
|
54
|
-
declare function listWorkflowExecutions<W extends WorkflowLike>(options?: ListWorkflowExecutionsTypedOptions<W>): Promise<WorkflowExecutionInfo[]>;
|
|
54
|
+
export declare function listWorkflowExecutions<W extends WorkflowLike>(options?: ListWorkflowExecutionsTypedOptions<W>): Promise<WorkflowExecutionInfo[]>;
|
|
55
55
|
/**
|
|
56
56
|
* Get a single workflow execution with optional logs.
|
|
57
57
|
* @param options - Workflow execution lookup options
|
|
58
58
|
* @returns Workflow execution with optional logs
|
|
59
59
|
*/
|
|
60
|
-
declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
61
|
-
//#endregion
|
|
62
|
-
export { GetWorkflowExecutionOptions, GetWorkflowExecutionResult, ListWorkflowExecutionsTypedOptions, WorkflowExecutionDetailInfo, WorkflowExecutionWaitInfo, getWorkflowExecution, listWorkflowExecutions };
|
|
60
|
+
export declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
61
|
+
//#endregion
|
|
@@ -6,7 +6,7 @@ import { z } from "zod";
|
|
|
6
6
|
type WorkflowLike = {
|
|
7
7
|
name: string;
|
|
8
8
|
};
|
|
9
|
-
type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
9
|
+
export type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
10
10
|
workflow: W;
|
|
11
11
|
workspaceId?: string;
|
|
12
12
|
profile?: string;
|
|
@@ -16,6 +16,5 @@ type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
|
16
16
|
* @param options - Workflow lookup options
|
|
17
17
|
* @returns Workflow information
|
|
18
18
|
*/
|
|
19
|
-
declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { GetWorkflowTypedOptions, getWorkflow };
|
|
19
|
+
export declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
|
|
20
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Order } from "../../shared/args.mjs";
|
|
|
2
2
|
import { WorkflowListInfo } from "./transform.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/workflow/list.d.ts
|
|
5
|
-
interface ListWorkflowsOptions {
|
|
5
|
+
export interface ListWorkflowsOptions {
|
|
6
6
|
workspaceId?: string;
|
|
7
7
|
profile?: string;
|
|
8
8
|
order?: Order;
|
|
@@ -13,6 +13,5 @@ interface ListWorkflowsOptions {
|
|
|
13
13
|
* @param options - Workflow listing options
|
|
14
14
|
* @returns List of workflows
|
|
15
15
|
*/
|
|
16
|
-
declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { ListWorkflowsOptions, listWorkflows };
|
|
16
|
+
export declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
17
|
+
//#endregion
|
|
@@ -2,13 +2,13 @@ import { WorkflowWaitResult } from "./waiter.mjs";
|
|
|
2
2
|
import { WaitOptions } from "./start.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/workflow/resume.d.ts
|
|
5
|
-
interface ResumeWorkflowOptions {
|
|
5
|
+
export interface ResumeWorkflowOptions {
|
|
6
6
|
executionId: string;
|
|
7
7
|
workspaceId?: string;
|
|
8
8
|
profile?: string;
|
|
9
9
|
interval?: number;
|
|
10
10
|
}
|
|
11
|
-
interface ResumeWorkflowResultWithWait {
|
|
11
|
+
export interface ResumeWorkflowResultWithWait {
|
|
12
12
|
executionId: string;
|
|
13
13
|
wait: (options?: WaitOptions) => Promise<WorkflowWaitResult>;
|
|
14
14
|
}
|
|
@@ -17,6 +17,5 @@ interface ResumeWorkflowResultWithWait {
|
|
|
17
17
|
* @param options - Resume options
|
|
18
18
|
* @returns Resume result with wait helper
|
|
19
19
|
*/
|
|
20
|
-
declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { ResumeWorkflowOptions, ResumeWorkflowResultWithWait, resumeWorkflow };
|
|
20
|
+
export declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
21
|
+
//#endregion
|
|
@@ -28,13 +28,13 @@ type StartWorkflowTypedBaseOptions<W extends WorkflowLike> = {
|
|
|
28
28
|
configPath?: string;
|
|
29
29
|
interval?: number;
|
|
30
30
|
};
|
|
31
|
-
type StartWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = W extends WorkflowLike ? StartWorkflowTypedBaseOptions<W> & StartWorkflowArgOption<W> : never;
|
|
32
|
-
interface WaitOptions {
|
|
31
|
+
export type StartWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = W extends WorkflowLike ? StartWorkflowTypedBaseOptions<W> & StartWorkflowArgOption<W> : never;
|
|
32
|
+
export interface WaitOptions {
|
|
33
33
|
showProgress?: boolean;
|
|
34
34
|
timeout?: number;
|
|
35
35
|
until?: WorkflowWaitUntil;
|
|
36
36
|
}
|
|
37
|
-
interface StartWorkflowResultWithWait {
|
|
37
|
+
export interface StartWorkflowResultWithWait {
|
|
38
38
|
executionId: string;
|
|
39
39
|
wait: (options?: WaitOptions) => Promise<WorkflowWaitResult>;
|
|
40
40
|
}
|
|
@@ -43,6 +43,5 @@ interface StartWorkflowResultWithWait {
|
|
|
43
43
|
* @param options - Start options
|
|
44
44
|
* @returns Start result with wait helper
|
|
45
45
|
*/
|
|
46
|
-
declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow };
|
|
46
|
+
export declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
47
|
+
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/workflow/status.d.ts
|
|
3
|
-
type WorkflowWaitUntil = "success" | "suspended" | "terminal";
|
|
4
|
-
type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
|
|
5
|
-
//#endregion
|
|
6
|
-
export { WorkflowExecutionStatusClass, WorkflowWaitUntil };
|
|
3
|
+
export type WorkflowWaitUntil = "success" | "suspended" | "terminal";
|
|
4
|
+
export type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
|
|
5
|
+
//#endregion
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/workflow/transform.d.ts
|
|
3
|
-
interface WorkflowListInfo {
|
|
3
|
+
export interface WorkflowListInfo {
|
|
4
4
|
name: string;
|
|
5
5
|
mainJob: string;
|
|
6
6
|
jobFunctions: number;
|
|
7
7
|
updatedAt: Date | null;
|
|
8
8
|
}
|
|
9
|
-
interface WorkflowInfo {
|
|
9
|
+
export interface WorkflowInfo {
|
|
10
10
|
name: string;
|
|
11
11
|
id: string;
|
|
12
12
|
mainJob: string;
|
|
@@ -14,7 +14,7 @@ interface WorkflowInfo {
|
|
|
14
14
|
createdAt: Date | null;
|
|
15
15
|
updatedAt: Date | null;
|
|
16
16
|
}
|
|
17
|
-
interface WorkflowJobExecutionInfo {
|
|
17
|
+
export interface WorkflowJobExecutionInfo {
|
|
18
18
|
id: string;
|
|
19
19
|
stackedJobName: string;
|
|
20
20
|
status: string;
|
|
@@ -22,7 +22,7 @@ interface WorkflowJobExecutionInfo {
|
|
|
22
22
|
startedAt: Date | null;
|
|
23
23
|
finishedAt: Date | null;
|
|
24
24
|
}
|
|
25
|
-
interface WorkflowExecutionInfo {
|
|
25
|
+
export interface WorkflowExecutionInfo {
|
|
26
26
|
id: string;
|
|
27
27
|
workflowName: string;
|
|
28
28
|
status: string;
|
|
@@ -30,5 +30,4 @@ interface WorkflowExecutionInfo {
|
|
|
30
30
|
startedAt: Date | null;
|
|
31
31
|
finishedAt: Date | null;
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { WorkflowExecutionInfo, WorkflowInfo, WorkflowJobExecutionInfo, WorkflowListInfo };
|
|
33
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./waiter.mjs";
|
|
|
2
2
|
import { getWorkflowExecution } from "./executions.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/workflow/wait.d.ts
|
|
5
|
-
interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
5
|
+
export interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
6
6
|
jobDetails?: Awaited<ReturnType<typeof getWorkflowExecution>>["execution"]["jobDetails"];
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
@@ -10,6 +10,5 @@ interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
|
10
10
|
* @param options - Workflow wait options
|
|
11
11
|
* @returns Workflow wait result
|
|
12
12
|
*/
|
|
13
|
-
declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { WorkflowWaitOutput, waitWorkflowExecution };
|
|
13
|
+
export declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
|
|
14
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import "../../shared/client.mjs";
|
|
|
2
2
|
import { WorkflowExecutionInfo } from "./transform.mjs";
|
|
3
3
|
import { WorkflowExecutionStatusClass, WorkflowWaitUntil } from "./status.mjs";
|
|
4
4
|
//#region src/cli/commands/workflow/waiter.d.ts
|
|
5
|
-
interface WaitWorkflowExecutionOptions {
|
|
5
|
+
export interface WaitWorkflowExecutionOptions {
|
|
6
6
|
executionId: string;
|
|
7
7
|
workspaceId?: string;
|
|
8
8
|
profile?: string;
|
|
@@ -12,12 +12,11 @@ interface WaitWorkflowExecutionOptions {
|
|
|
12
12
|
showProgress?: boolean;
|
|
13
13
|
trackJobs?: boolean;
|
|
14
14
|
}
|
|
15
|
-
interface WorkflowWaitResult extends WorkflowExecutionInfo {
|
|
15
|
+
export interface WorkflowWaitResult extends WorkflowExecutionInfo {
|
|
16
16
|
statusClass: WorkflowExecutionStatusClass | "unknown";
|
|
17
17
|
elapsedMs: number;
|
|
18
18
|
attempts: number;
|
|
19
19
|
timedOut: boolean;
|
|
20
20
|
lastError: string | null;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
|
-
export { WaitWorkflowExecutionOptions, WorkflowWaitResult };
|
|
22
|
+
//#endregion
|
|
@@ -6,12 +6,11 @@ declare const healthOptionsSchema: z.ZodObject<{
|
|
|
6
6
|
profile: z.ZodOptional<z.ZodString>;
|
|
7
7
|
name: z.ZodString;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
|
-
type HealthOptions = z.input<typeof healthOptionsSchema>;
|
|
9
|
+
export type HealthOptions = z.input<typeof healthOptionsSchema>;
|
|
10
10
|
/**
|
|
11
11
|
* Get application schema health status.
|
|
12
12
|
* @param options - Health check options
|
|
13
13
|
* @returns Application health information
|
|
14
14
|
*/
|
|
15
|
-
declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { HealthOptions, getAppHealth };
|
|
15
|
+
export declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
|
|
16
|
+
//#endregion
|
|
@@ -10,12 +10,11 @@ declare const listAppsOptionsSchema: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
|
|
13
|
+
export type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* List applications in a workspace with an optional order and limit.
|
|
16
16
|
* @param options - Application listing options
|
|
17
17
|
* @returns List of applications
|
|
18
18
|
*/
|
|
19
|
-
declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ListAppsOptions, listApps };
|
|
19
|
+
export declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
|
|
20
|
+
//#endregion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../../tailor-proto/src/tailor/v1/application_resource_pb.mjs";
|
|
2
2
|
import "../../../../tailor-proto/src/tailor/v1/application_pb.mjs";
|
|
3
3
|
//#region src/cli/commands/workspace/app/transform.d.ts
|
|
4
|
-
interface AppInfo {
|
|
4
|
+
export interface AppInfo {
|
|
5
5
|
name: string;
|
|
6
6
|
domain: string;
|
|
7
7
|
authNamespace: string;
|
|
8
8
|
createdAt: Date | null;
|
|
9
9
|
updatedAt: Date | null;
|
|
10
10
|
}
|
|
11
|
-
interface AppHealthInfo {
|
|
11
|
+
export interface AppHealthInfo {
|
|
12
12
|
name: string;
|
|
13
13
|
status: string;
|
|
14
14
|
currentServingSchemaUpdatedAt: Date | null;
|
|
@@ -16,5 +16,4 @@ interface AppHealthInfo {
|
|
|
16
16
|
lastAttemptAt: Date | null;
|
|
17
17
|
lastAttemptError: string;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { AppHealthInfo, AppInfo };
|
|
19
|
+
//#endregion
|
|
@@ -16,12 +16,11 @@ declare const createWorkspaceOptionsSchema: z.ZodObject<{
|
|
|
16
16
|
folderId: z.ZodOptional<z.ZodUUID>;
|
|
17
17
|
profile: z.ZodOptional<z.ZodString>;
|
|
18
18
|
}, z.core.$strip>;
|
|
19
|
-
type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
|
|
19
|
+
export type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
|
|
20
20
|
/**
|
|
21
21
|
* Create a new workspace with the given options.
|
|
22
22
|
* @param options - Workspace creation options
|
|
23
23
|
* @returns Created workspace info
|
|
24
24
|
*/
|
|
25
|
-
declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
|
|
26
|
-
//#endregion
|
|
27
|
-
export { CreateWorkspaceOptions, createWorkspace };
|
|
25
|
+
export declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
|
|
26
|
+
//#endregion
|
|
@@ -3,12 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
|
|
4
4
|
workspaceId: z.ZodUUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
-
type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
|
|
6
|
+
export type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
|
|
7
7
|
/**
|
|
8
8
|
* Delete a workspace by ID.
|
|
9
9
|
* @param options - Workspace deletion options
|
|
10
10
|
* @returns Promise that resolves when deletion completes
|
|
11
11
|
*/
|
|
12
|
-
declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { DeleteWorkspaceOptions, deleteWorkspace };
|
|
12
|
+
export declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
13
|
+
//#endregion
|
|
@@ -5,12 +5,11 @@ declare const getWorkspaceOptionsSchema: z.ZodObject<{
|
|
|
5
5
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
6
|
profile: z.ZodOptional<z.ZodString>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
type GetWorkspaceOptions = z.input<typeof getWorkspaceOptionsSchema>;
|
|
8
|
+
export type GetWorkspaceOptions = z.input<typeof getWorkspaceOptionsSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* Get detailed information about a workspace.
|
|
11
11
|
* @param options - Workspace get options
|
|
12
12
|
* @returns Workspace details
|
|
13
13
|
*/
|
|
14
|
-
declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetails>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { GetWorkspaceOptions, getWorkspace };
|
|
14
|
+
export declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetails>;
|
|
15
|
+
//#endregion
|
|
@@ -2,7 +2,7 @@ import { Order } from "../../shared/args.mjs";
|
|
|
2
2
|
import { WorkspaceInfo } from "./transform.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/cli/commands/workspace/list.d.ts
|
|
5
|
-
interface ListWorkspacesOptions {
|
|
5
|
+
export interface ListWorkspacesOptions {
|
|
6
6
|
order?: Order;
|
|
7
7
|
limit?: number;
|
|
8
8
|
profile?: string;
|
|
@@ -12,6 +12,5 @@ interface ListWorkspacesOptions {
|
|
|
12
12
|
* @param options - Workspace listing options
|
|
13
13
|
* @returns List of workspaces
|
|
14
14
|
*/
|
|
15
|
-
declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { ListWorkspacesOptions, listWorkspaces };
|
|
15
|
+
export declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
16
|
+
//#endregion
|
|
@@ -3,12 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
|
|
4
4
|
workspaceId: z.ZodUUID;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
|
-
type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSchema>;
|
|
6
|
+
export type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSchema>;
|
|
7
7
|
/**
|
|
8
8
|
* Restore a deleted workspace by ID.
|
|
9
9
|
* @param options - Workspace restore options
|
|
10
10
|
* @returns Promise that resolves when restoration completes
|
|
11
11
|
*/
|
|
12
|
-
declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { RestoreWorkspaceOptions, restoreWorkspace };
|
|
12
|
+
export declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
|
|
13
|
+
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
|
|
2
2
|
import "../../shared/client.mjs";
|
|
3
3
|
//#region src/cli/commands/workspace/transform.d.ts
|
|
4
|
-
interface WorkspaceInfo {
|
|
4
|
+
export interface WorkspaceInfo {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
7
7
|
folderName?: string;
|
|
@@ -11,10 +11,9 @@ interface WorkspaceInfo {
|
|
|
11
11
|
createdAt: Date | null;
|
|
12
12
|
updatedAt: Date | null;
|
|
13
13
|
}
|
|
14
|
-
interface WorkspaceDetails extends WorkspaceInfo {
|
|
14
|
+
export interface WorkspaceDetails extends WorkspaceInfo {
|
|
15
15
|
deleteProtection: boolean;
|
|
16
16
|
organizationId: string;
|
|
17
17
|
folderId: string;
|
|
18
18
|
}
|
|
19
|
-
//#endregion
|
|
20
|
-
export { WorkspaceDetails, WorkspaceInfo };
|
|
19
|
+
//#endregion
|
|
@@ -10,12 +10,11 @@ declare const inviteUserOptionsSchema: z.ZodObject<{
|
|
|
10
10
|
viewer: "viewer";
|
|
11
11
|
}>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
|
|
13
|
+
export type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* Invite a user to a workspace.
|
|
16
16
|
* @param options - User invite options
|
|
17
17
|
* @returns Promise that resolves when invitation is sent
|
|
18
18
|
*/
|
|
19
|
-
declare function inviteUser(options: InviteUserOptions): Promise<void>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { InviteUserOptions, inviteUser };
|
|
19
|
+
export declare function inviteUser(options: InviteUserOptions): Promise<void>;
|
|
20
|
+
//#endregion
|
|
@@ -10,12 +10,11 @@ declare const listUsersOptionsSchema: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
|
|
13
|
+
export type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
|
|
14
14
|
/**
|
|
15
15
|
* List users in a workspace with an optional order and limit.
|
|
16
16
|
* @param options - User listing options
|
|
17
17
|
* @returns List of workspace users
|
|
18
18
|
*/
|
|
19
|
-
declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { ListUsersOptions, listUsers };
|
|
19
|
+
export declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
|
|
20
|
+
//#endregion
|
|
@@ -5,12 +5,11 @@ declare const removeUserOptionsSchema: z.ZodObject<{
|
|
|
5
5
|
profile: z.ZodOptional<z.ZodString>;
|
|
6
6
|
email: z.ZodEmail;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
|
-
type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
|
|
8
|
+
export type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* Remove a user from a workspace.
|
|
11
11
|
* @param options - User remove options
|
|
12
12
|
* @returns Promise that resolves when removal completes
|
|
13
13
|
*/
|
|
14
|
-
declare function removeUser(options: RemoveUserOptions): Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
|
-
export { RemoveUserOptions, removeUser };
|
|
14
|
+
export declare function removeUser(options: RemoveUserOptions): Promise<void>;
|
|
15
|
+
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import "../../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
|
|
2
2
|
//#region src/cli/commands/workspace/user/transform.d.ts
|
|
3
|
-
interface UserInfo {
|
|
3
|
+
export interface UserInfo {
|
|
4
4
|
userId: string;
|
|
5
5
|
email: string;
|
|
6
6
|
role: string;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
|
-
export { UserInfo };
|
|
8
|
+
//#endregion
|