@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
|
@@ -33,6 +33,5 @@ type QueryDispatchResult = SQLQueryDispatchResult | GQLQueryDispatchResult;
|
|
|
33
33
|
* @param options - Query command options
|
|
34
34
|
* @returns Dispatch result
|
|
35
35
|
*/
|
|
36
|
-
declare function query(options: QueryOptions): Promise<QueryDispatchResult>;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { query };
|
|
36
|
+
export declare function query(options: QueryOptions): Promise<QueryDispatchResult>;
|
|
37
|
+
//#endregion
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
/**
|
|
5
5
|
* Schema for sort order (`asc` or `desc`).
|
|
6
6
|
*/
|
|
7
|
-
declare const orderArg: z.ZodEnum<{
|
|
7
|
+
export declare const orderArg: z.ZodEnum<{
|
|
8
8
|
asc: "asc";
|
|
9
9
|
desc: "desc";
|
|
10
10
|
}>;
|
|
11
|
-
type Order = z.infer<typeof orderArg>;
|
|
11
|
+
export type Order = z.infer<typeof orderArg>;
|
|
12
12
|
type EnvFileArg = string | string[] | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Load env files from parsed arguments.
|
|
@@ -20,7 +20,7 @@ type EnvFileArg = string | string[] | undefined;
|
|
|
20
20
|
* @param envFiles - Required env file path(s) that must exist
|
|
21
21
|
* @param envFilesIfExists - Optional env file path(s) that are loaded if they exist
|
|
22
22
|
*/
|
|
23
|
-
declare function loadEnvFiles(envFiles: EnvFileArg, envFilesIfExists: EnvFileArg): void;
|
|
23
|
+
export declare function loadEnvFiles(envFiles: EnvFileArg, envFilesIfExists: EnvFileArg): void;
|
|
24
24
|
interface CommonArgsOptions {
|
|
25
25
|
/** Extra short alias for `--verbose` (e.g. `"v"`), for plugins that need one */
|
|
26
26
|
verboseAlias?: string;
|
|
@@ -36,7 +36,7 @@ interface CommonArgsOptions {
|
|
|
36
36
|
* @param options - Per-plugin adjustments to the shared arguments
|
|
37
37
|
* @returns Argument shape suitable for spreading into a command schema
|
|
38
38
|
*/
|
|
39
|
-
declare function createCommonArgs(options?: CommonArgsOptions): {
|
|
39
|
+
export declare function createCommonArgs(options?: CommonArgsOptions): {
|
|
40
40
|
"env-file": z.ZodOptional<z.ZodString>;
|
|
41
41
|
"env-file-if-exists": z.ZodOptional<z.ZodString>;
|
|
42
42
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -45,7 +45,7 @@ declare function createCommonArgs(options?: CommonArgsOptions): {
|
|
|
45
45
|
/**
|
|
46
46
|
* Common arguments for all CLI commands
|
|
47
47
|
*/
|
|
48
|
-
declare const commonArgs: {
|
|
48
|
+
export declare const commonArgs: {
|
|
49
49
|
"env-file": z.ZodOptional<z.ZodString>;
|
|
50
50
|
"env-file-if-exists": z.ZodOptional<z.ZodString>;
|
|
51
51
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -54,20 +54,20 @@ declare const commonArgs: {
|
|
|
54
54
|
/**
|
|
55
55
|
* Arguments for commands that require workspace context
|
|
56
56
|
*/
|
|
57
|
-
declare const workspaceArgs: {
|
|
57
|
+
export declare const workspaceArgs: {
|
|
58
58
|
"workspace-id": z.ZodOptional<z.ZodString>;
|
|
59
59
|
profile: z.ZodOptional<z.ZodString>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* Shared config arg for commands that accept a config file path
|
|
63
63
|
*/
|
|
64
|
-
declare const configArg: {
|
|
64
|
+
export declare const configArg: {
|
|
65
65
|
config: z.ZodDefault<z.ZodString>;
|
|
66
66
|
};
|
|
67
67
|
/**
|
|
68
68
|
* Arguments for commands that interact with deployed resources (includes config)
|
|
69
69
|
*/
|
|
70
|
-
declare const deploymentArgs: {
|
|
70
|
+
export declare const deploymentArgs: {
|
|
71
71
|
config: z.ZodDefault<z.ZodString>;
|
|
72
72
|
"workspace-id": z.ZodOptional<z.ZodString>;
|
|
73
73
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -75,9 +75,8 @@ declare const deploymentArgs: {
|
|
|
75
75
|
/**
|
|
76
76
|
* Arguments for commands that require confirmation
|
|
77
77
|
*/
|
|
78
|
-
declare const confirmationArgs: {
|
|
78
|
+
export declare const confirmationArgs: {
|
|
79
79
|
yes: z.ZodDefault<z.ZodBoolean>;
|
|
80
80
|
};
|
|
81
|
-
type CommonArgsType = z.infer<z.ZodObject<typeof commonArgs>>;
|
|
82
|
-
//#endregion
|
|
83
|
-
export { CommonArgsType, Order, commonArgs, configArg, confirmationArgs, createCommonArgs, deploymentArgs, loadEnvFiles, orderArg, workspaceArgs };
|
|
81
|
+
export type CommonArgsType = z.infer<z.ZodObject<typeof commonArgs>>;
|
|
82
|
+
//#endregion
|
|
@@ -3,6 +3,5 @@
|
|
|
3
3
|
* Warn that a feature is in beta.
|
|
4
4
|
* @param {string} featureName - Name of the beta feature (e.g., "tailordb migration")
|
|
5
5
|
*/
|
|
6
|
-
declare function logBetaWarning(featureName: string): void;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { logBetaWarning };
|
|
6
|
+
export declare function logBetaWarning(featureName: string): void;
|
|
7
|
+
//#endregion
|
|
@@ -20,19 +20,19 @@ import { OperatorService, PingRequestSchema, PingResponseSchema } from "../../ta
|
|
|
20
20
|
import "@badgateway/oauth2-client";
|
|
21
21
|
import { Client } from "@connectrpc/connect";
|
|
22
22
|
//#region src/cli/shared/client.d.ts
|
|
23
|
-
type PlatformClientConfig = {
|
|
23
|
+
export type PlatformClientConfig = {
|
|
24
24
|
platformUrl?: string;
|
|
25
25
|
oauth2ClientId?: string;
|
|
26
26
|
consoleUrl?: string;
|
|
27
27
|
};
|
|
28
|
-
type OperatorClient = Client<typeof OperatorService>;
|
|
28
|
+
export type OperatorClient = Client<typeof OperatorService>;
|
|
29
29
|
/**
|
|
30
30
|
* Initialize an Operator client with the given access token.
|
|
31
31
|
* @param accessToken - Access token for authentication
|
|
32
32
|
* @param config - Optional platform connection settings
|
|
33
33
|
* @returns Configured Operator client
|
|
34
34
|
*/
|
|
35
|
-
declare function initOperatorClient(accessToken: string, config?: PlatformClientConfig): Promise<Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
35
|
+
export declare function initOperatorClient(accessToken: string, config?: PlatformClientConfig): Promise<Client<import("@bufbuild/protobuf/codegenv2").GenService<{
|
|
36
36
|
ping: {
|
|
37
37
|
methodKind: "unary";
|
|
38
38
|
input: typeof PingRequestSchema;
|
|
@@ -1304,5 +1304,4 @@ declare function initOperatorClient(accessToken: string, config?: PlatformClient
|
|
|
1304
1304
|
output: typeof DeleteResourceAttributesConfigResponseSchema;
|
|
1305
1305
|
};
|
|
1306
1306
|
}>>>;
|
|
1307
|
-
//#endregion
|
|
1308
|
-
export { OperatorClient, PlatformClientConfig, initOperatorClient };
|
|
1307
|
+
//#endregion
|
|
@@ -6,6 +6,5 @@ import { createDefineCommand } from "politty";
|
|
|
6
6
|
* Use this for leaf commands with `run` to get type-safe access to global args.
|
|
7
7
|
* Parent commands with only `subCommands` can use `defineCommand` from politty directly.
|
|
8
8
|
*/
|
|
9
|
-
declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { defineAppCommand };
|
|
9
|
+
export declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
10
|
+
//#endregion
|
|
@@ -7,14 +7,14 @@ import { AppConfig, EnvValue } from "../../configure/config/types.mjs";
|
|
|
7
7
|
* is unwrapped during loading, so nothing downstream can deploy a wrapper
|
|
8
8
|
* object or the reason string alongside the value.
|
|
9
9
|
*/
|
|
10
|
-
type ResolvedEnvAppConfig = Omit<AppConfig, "env"> & {
|
|
10
|
+
export type ResolvedEnvAppConfig = Omit<AppConfig, "env"> & {
|
|
11
11
|
env?: Record<string, EnvValue>;
|
|
12
12
|
};
|
|
13
13
|
/** Loaded configuration with resolved path. */
|
|
14
|
-
type LoadedConfig = ResolvedEnvAppConfig & {
|
|
14
|
+
export type LoadedConfig = ResolvedEnvAppConfig & {
|
|
15
15
|
path: string;
|
|
16
16
|
};
|
|
17
|
-
interface LoadConfigOptions {
|
|
17
|
+
export interface LoadConfigOptions {
|
|
18
18
|
/** Import cache-busting value for callers that reload the config module after a rebuild. */
|
|
19
19
|
importNonce?: string;
|
|
20
20
|
}
|
|
@@ -24,9 +24,8 @@ interface LoadConfigOptions {
|
|
|
24
24
|
* @param options - Optional module import behavior.
|
|
25
25
|
* @returns Loaded config, plugins, and config path
|
|
26
26
|
*/
|
|
27
|
-
declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
27
|
+
export declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
28
28
|
config: LoadedConfig;
|
|
29
29
|
plugins: Plugin[];
|
|
30
30
|
}>;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { LoadConfigOptions, LoadedConfig, ResolvedEnvAppConfig, loadConfig };
|
|
31
|
+
//#endregion
|
|
@@ -8,6 +8,5 @@ import { LoadedConfig } from "./config-loader.mjs";
|
|
|
8
8
|
* @param config - Loaded application configuration.
|
|
9
9
|
* @returns Owned namespace names in insertion order.
|
|
10
10
|
*/
|
|
11
|
-
declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
12
|
-
//#endregion
|
|
13
|
-
export { extractOwnedNamespaces };
|
|
11
|
+
export declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
12
|
+
//#endregion
|
|
@@ -16,7 +16,7 @@ type LoadAccessTokenOptions = {
|
|
|
16
16
|
* @param opts - Workspace and profile options
|
|
17
17
|
* @returns Resolved workspace ID
|
|
18
18
|
*/
|
|
19
|
-
declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<string>;
|
|
19
|
+
export declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<string>;
|
|
20
20
|
/**
|
|
21
21
|
* Load access token from environment variables, command options, or platform config.
|
|
22
22
|
* In CLI context, profile env fallback is also handled by politty's arg env option.
|
|
@@ -24,6 +24,5 @@ declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<string>
|
|
|
24
24
|
* @param opts - Profile options
|
|
25
25
|
* @returns Resolved access token
|
|
26
26
|
*/
|
|
27
|
-
declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { loadAccessToken, loadWorkspaceId };
|
|
27
|
+
export declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
|
|
28
|
+
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/cli/shared/error-json.d.ts
|
|
2
|
-
interface ErrorToJsonOptions {
|
|
2
|
+
export interface ErrorToJsonOptions {
|
|
3
3
|
/** Include the original stack trace in the error envelope. */
|
|
4
4
|
includeStack?: boolean;
|
|
5
5
|
}
|
|
@@ -9,7 +9,7 @@ interface ErrorToJsonOptions {
|
|
|
9
9
|
* @param options - JSON serialization options
|
|
10
10
|
* @returns JSON-compatible error envelope
|
|
11
11
|
*/
|
|
12
|
-
declare function errorToJson(error: unknown, options?: ErrorToJsonOptions): {
|
|
12
|
+
export declare function errorToJson(error: unknown, options?: ErrorToJsonOptions): {
|
|
13
13
|
error: Readonly<Record<string, unknown>>;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
@@ -18,6 +18,5 @@ declare function errorToJson(error: unknown, options?: ErrorToJsonOptions): {
|
|
|
18
18
|
* @param options - JSON serialization options
|
|
19
19
|
* @returns Serialized JSON error envelope
|
|
20
20
|
*/
|
|
21
|
-
declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { ErrorToJsonOptions, errorToJson, serializeError };
|
|
21
|
+
export declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
22
|
+
//#endregion
|
|
@@ -3,7 +3,7 @@ import { StyleFn } from "../../shared/src/color.mjs";
|
|
|
3
3
|
/**
|
|
4
4
|
* Semantic style functions for inline text styling
|
|
5
5
|
*/
|
|
6
|
-
declare const styles: {
|
|
6
|
+
export declare const styles: {
|
|
7
7
|
success: StyleFn;
|
|
8
8
|
error: StyleFn;
|
|
9
9
|
warning: StyleFn;
|
|
@@ -27,16 +27,16 @@ declare const styles: {
|
|
|
27
27
|
/**
|
|
28
28
|
* Log output modes
|
|
29
29
|
*/
|
|
30
|
-
type LogMode = "default" | "stream" | "plain";
|
|
31
|
-
interface LogOptions {
|
|
30
|
+
export type LogMode = "default" | "stream" | "plain";
|
|
31
|
+
export interface LogOptions {
|
|
32
32
|
/** Output mode (default: "default") */
|
|
33
33
|
mode?: LogMode;
|
|
34
34
|
/** Number of spaces to indent the entire line (default: 0) */
|
|
35
35
|
indent?: number;
|
|
36
36
|
}
|
|
37
37
|
/** Field transformer function. null excludes the field from table output. */
|
|
38
|
-
type FieldTransformer = ((value: unknown, item: object) => string) | null;
|
|
39
|
-
interface OutOptions {
|
|
38
|
+
export type FieldTransformer = ((value: unknown, item: object) => string) | null;
|
|
39
|
+
export interface OutOptions {
|
|
40
40
|
/** Table display field transform/exclude settings. Only applied in table mode (not JSON). */
|
|
41
41
|
display?: Record<string, FieldTransformer>;
|
|
42
42
|
/** Show null values in table output (default: false) */
|
|
@@ -48,7 +48,7 @@ interface OutOptions {
|
|
|
48
48
|
* `--verbose` feed the `jsonMode` / `verbose` state, which CLI plugins share
|
|
49
49
|
* with the SDK code paths they call.
|
|
50
50
|
*/
|
|
51
|
-
declare const logger: {
|
|
51
|
+
export declare const logger: {
|
|
52
52
|
jsonMode: boolean;
|
|
53
53
|
verbose: boolean;
|
|
54
54
|
info(message: string, opts?: LogOptions): void;
|
|
@@ -60,5 +60,4 @@ declare const logger: {
|
|
|
60
60
|
debug(message: string): void;
|
|
61
61
|
out(data: string | object | object[], options?: OutOptions): void;
|
|
62
62
|
};
|
|
63
|
-
//#endregion
|
|
64
|
-
export { FieldTransformer, LogMode, LogOptions, OutOptions, logger, styles };
|
|
63
|
+
//#endregion
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
//#region src/cli/shared/prompt.d.ts
|
|
2
2
|
/** Options accepted by {@link prompt.confirm}. */
|
|
3
|
-
interface ConfirmConfig {
|
|
3
|
+
export interface ConfirmConfig {
|
|
4
4
|
message: string;
|
|
5
5
|
default?: boolean;
|
|
6
6
|
}
|
|
7
7
|
/** Options accepted by {@link prompt.text}. */
|
|
8
|
-
interface TextConfig {
|
|
8
|
+
export interface TextConfig {
|
|
9
9
|
message: string;
|
|
10
10
|
default?: string;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
validate?: (value: string) => boolean | string | Promise<boolean | string>;
|
|
13
13
|
}
|
|
14
14
|
/** Options accepted by {@link prompt.password}. */
|
|
15
|
-
interface PasswordConfig {
|
|
15
|
+
export interface PasswordConfig {
|
|
16
16
|
message: string;
|
|
17
17
|
mask?: boolean | string;
|
|
18
18
|
validate?: (value: string) => boolean | string | Promise<boolean | string>;
|
|
19
19
|
}
|
|
20
20
|
/** A selectable entry of {@link SelectConfig.choices}. */
|
|
21
|
-
interface SelectChoice<Value> {
|
|
21
|
+
export interface SelectChoice<Value> {
|
|
22
22
|
value: Value;
|
|
23
23
|
name?: string;
|
|
24
24
|
description?: string;
|
|
@@ -26,7 +26,7 @@ interface SelectChoice<Value> {
|
|
|
26
26
|
disabled?: boolean | string;
|
|
27
27
|
}
|
|
28
28
|
/** Options accepted by {@link prompt.select}. */
|
|
29
|
-
interface SelectConfig<Value> {
|
|
29
|
+
export interface SelectConfig<Value> {
|
|
30
30
|
message: string;
|
|
31
31
|
choices: readonly SelectChoice<Value>[];
|
|
32
32
|
default?: NoInfer<Value>;
|
|
@@ -43,11 +43,10 @@ interface SelectConfig<Value> {
|
|
|
43
43
|
* named portably from the published declarations (TS2883). They cover the
|
|
44
44
|
* options this CLI uses — widen them here when a call site needs more.
|
|
45
45
|
*/
|
|
46
|
-
declare const prompt: {
|
|
46
|
+
export declare const prompt: {
|
|
47
47
|
confirm: (config: ConfirmConfig) => Promise<boolean>;
|
|
48
48
|
text: (config: TextConfig) => Promise<string>;
|
|
49
49
|
password: (config: PasswordConfig) => Promise<string>;
|
|
50
50
|
select: <const Value>(config: SelectConfig<Value>) => Promise<Value>;
|
|
51
51
|
};
|
|
52
|
-
//#endregion
|
|
53
|
-
export { ConfirmConfig, PasswordConfig, SelectChoice, SelectConfig, TextConfig, prompt };
|
|
52
|
+
//#endregion
|
|
@@ -20,6 +20,5 @@ interface AssertWritableOptions {
|
|
|
20
20
|
* @param opts - Options
|
|
21
21
|
* @param opts.profile - Optional explicit profile name from command args
|
|
22
22
|
*/
|
|
23
|
-
declare function assertWritable(opts?: AssertWritableOptions): Promise<void>;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { assertWritable };
|
|
23
|
+
export declare function assertWritable(opts?: AssertWritableOptions): Promise<void>;
|
|
24
|
+
//#endregion
|
|
@@ -5,11 +5,11 @@ import { MessageInitShape } from "@bufbuild/protobuf";
|
|
|
5
5
|
import { Jsonifiable } from "type-fest";
|
|
6
6
|
//#region src/cli/shared/script-executor.d.ts
|
|
7
7
|
/** Authentication context for script execution, provided as a plain object. */
|
|
8
|
-
type ScriptInvoker = MessageInitShape<typeof AuthInvokerSchema>;
|
|
8
|
+
export type ScriptInvoker = MessageInitShape<typeof AuthInvokerSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* Options for script execution
|
|
11
11
|
*/
|
|
12
|
-
interface ScriptExecutionOptions<T extends Jsonifiable = Jsonifiable> {
|
|
12
|
+
export interface ScriptExecutionOptions<T extends Jsonifiable = Jsonifiable> {
|
|
13
13
|
/** Operator client instance */
|
|
14
14
|
client: OperatorClient;
|
|
15
15
|
/** Workspace ID */
|
|
@@ -28,7 +28,7 @@ interface ScriptExecutionOptions<T extends Jsonifiable = Jsonifiable> {
|
|
|
28
28
|
/**
|
|
29
29
|
* Result of script execution
|
|
30
30
|
*/
|
|
31
|
-
interface ScriptExecutionResult {
|
|
31
|
+
export interface ScriptExecutionResult {
|
|
32
32
|
/** Whether the script executed successfully */
|
|
33
33
|
success: boolean;
|
|
34
34
|
/** Logs output from the script execution */
|
|
@@ -41,7 +41,7 @@ interface ScriptExecutionResult {
|
|
|
41
41
|
/**
|
|
42
42
|
* Result from waiting for execution completion
|
|
43
43
|
*/
|
|
44
|
-
interface ExecutionWaitResult {
|
|
44
|
+
export interface ExecutionWaitResult {
|
|
45
45
|
/** Execution status */
|
|
46
46
|
status: FunctionExecution_Status;
|
|
47
47
|
/** Logs output from the execution */
|
|
@@ -61,7 +61,7 @@ interface ExecutionWaitResult {
|
|
|
61
61
|
* @returns {Promise<ExecutionWaitResult>} Execution result
|
|
62
62
|
* @throws {Error} If execution is not found
|
|
63
63
|
*/
|
|
64
|
-
declare function waitForExecution(client: OperatorClient, workspaceId: string, executionId: string, pollInterval?: number): Promise<ExecutionWaitResult>;
|
|
64
|
+
export declare function waitForExecution(client: OperatorClient, workspaceId: string, executionId: string, pollInterval?: number): Promise<ExecutionWaitResult>;
|
|
65
65
|
/**
|
|
66
66
|
* Execute a script and wait for completion
|
|
67
67
|
*
|
|
@@ -72,6 +72,5 @@ declare function waitForExecution(client: OperatorClient, workspaceId: string, e
|
|
|
72
72
|
* @param {ScriptExecutionOptions} options - Execution options
|
|
73
73
|
* @returns {Promise<ScriptExecutionResult>} Execution result
|
|
74
74
|
*/
|
|
75
|
-
declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
76
|
-
//#endregion
|
|
77
|
-
export { ExecutionWaitResult, ScriptExecutionOptions, ScriptExecutionResult, ScriptInvoker, executeScript, waitForExecution };
|
|
75
|
+
export declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
76
|
+
//#endregion
|
|
@@ -3,11 +3,11 @@ import { JsonObject } from "type-fest";
|
|
|
3
3
|
/**
|
|
4
4
|
* Seed data keyed by table name, with an array of records per table.
|
|
5
5
|
*/
|
|
6
|
-
type SeedData = Record<string, JsonObject[]>;
|
|
6
|
+
export type SeedData = Record<string, JsonObject[]>;
|
|
7
7
|
/**
|
|
8
8
|
* A single chunk of seed data with metadata for ordered execution.
|
|
9
9
|
*/
|
|
10
|
-
type SeedChunk = {
|
|
10
|
+
export type SeedChunk = {
|
|
11
11
|
data: SeedData;
|
|
12
12
|
order: string[];
|
|
13
13
|
index: number;
|
|
@@ -16,7 +16,7 @@ type SeedChunk = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Options for chunking seed data.
|
|
18
18
|
*/
|
|
19
|
-
type ChunkSeedDataOptions = {
|
|
19
|
+
export type ChunkSeedDataOptions = {
|
|
20
20
|
/** Seed data keyed by type name */
|
|
21
21
|
data: SeedData;
|
|
22
22
|
/** Ordered list of type names (dependency order) */
|
|
@@ -40,6 +40,5 @@ type ChunkSeedDataOptions = {
|
|
|
40
40
|
* @param options - Chunking options
|
|
41
41
|
* @returns Array of seed chunks
|
|
42
42
|
*/
|
|
43
|
-
declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ChunkSeedDataOptions, SeedChunk, SeedData, chunkSeedData };
|
|
43
|
+
export declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
44
|
+
//#endregion
|
|
@@ -5,7 +5,7 @@ import { SeedNamespaceConfig } from "../../plugin/builtin/seed/seed-type-process
|
|
|
5
5
|
* IdP `_User` seeding context, present when the config uses the built-in IdP
|
|
6
6
|
* with a user profile type.
|
|
7
7
|
*/
|
|
8
|
-
interface SeedIdpUserContext {
|
|
8
|
+
export interface SeedIdpUserContext {
|
|
9
9
|
/** IdP namespace the `_User` records belong to. */
|
|
10
10
|
idpNamespace: string;
|
|
11
11
|
/** Server-side script that creates `_User` records from seed rows. */
|
|
@@ -19,7 +19,7 @@ interface SeedIdpUserContext {
|
|
|
19
19
|
* Everything a seed run needs from the local config: the seed data location,
|
|
20
20
|
* per-namespace seeding order, and IdP user context.
|
|
21
21
|
*/
|
|
22
|
-
interface SeedContext {
|
|
22
|
+
export interface SeedContext {
|
|
23
23
|
/** The loaded Tailor config. */
|
|
24
24
|
config: LoadedConfig;
|
|
25
25
|
/** Absolute path to the seedPlugin output directory. */
|
|
@@ -34,7 +34,7 @@ interface SeedContext {
|
|
|
34
34
|
/**
|
|
35
35
|
* Options for {@link loadSeedContext}.
|
|
36
36
|
*/
|
|
37
|
-
interface LoadSeedContextOptions {
|
|
37
|
+
export interface LoadSeedContextOptions {
|
|
38
38
|
/** Path to tailor.config.ts. Defaults to searching from the current directory. */
|
|
39
39
|
configPath?: string;
|
|
40
40
|
}
|
|
@@ -46,6 +46,6 @@ interface LoadSeedContextOptions {
|
|
|
46
46
|
* @param options - Seed context loading options.
|
|
47
47
|
* @returns The seed context computed from the local config.
|
|
48
48
|
*/
|
|
49
|
-
declare function loadSeedContext(options?: LoadSeedContextOptions): Promise<SeedContext>;
|
|
49
|
+
export declare function loadSeedContext(options?: LoadSeedContextOptions): Promise<SeedContext>;
|
|
50
50
|
//#endregion
|
|
51
|
-
export {
|
|
51
|
+
export type { SeedNamespaceConfig };
|
|
@@ -7,11 +7,11 @@ import "../services/application.mjs";
|
|
|
7
7
|
* names, or a selector deriving them from the loaded config and its plugins.
|
|
8
8
|
* Returning `undefined` (or omitting the option) loads all owned namespaces.
|
|
9
9
|
*/
|
|
10
|
-
type TailorDBNamespaceSelector = string[] | ((config: LoadedConfig, plugins: Plugin[]) => string[] | undefined);
|
|
10
|
+
export type TailorDBNamespaceSelector = string[] | ((config: LoadedConfig, plugins: Plugin[]) => string[] | undefined);
|
|
11
11
|
/**
|
|
12
12
|
* Options for {@link loadTailorDBNamespaces}.
|
|
13
13
|
*/
|
|
14
|
-
interface LoadTailorDBNamespacesOptions {
|
|
14
|
+
export interface LoadTailorDBNamespacesOptions {
|
|
15
15
|
/** Path to tailor.config.ts. Defaults to searching from the current directory. */
|
|
16
16
|
configPath?: string;
|
|
17
17
|
/** Namespaces to load. Omit to load all owned namespaces. */
|
|
@@ -20,7 +20,7 @@ interface LoadTailorDBNamespacesOptions {
|
|
|
20
20
|
/**
|
|
21
21
|
* Result of {@link loadTailorDBNamespaces}.
|
|
22
22
|
*/
|
|
23
|
-
interface LoadedTailorDBNamespaces {
|
|
23
|
+
export interface LoadedTailorDBNamespaces {
|
|
24
24
|
/** The loaded Tailor config. */
|
|
25
25
|
config: LoadedConfig;
|
|
26
26
|
/** Plugins collected from the config module's plugin-array exports (typically `definePlugins()`). */
|
|
@@ -35,6 +35,5 @@ interface LoadedTailorDBNamespaces {
|
|
|
35
35
|
* @param options - Namespace loading options.
|
|
36
36
|
* @returns The loaded config and TailorDB namespace data.
|
|
37
37
|
*/
|
|
38
|
-
declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { LoadTailorDBNamespacesOptions, LoadedTailorDBNamespaces, TailorDBNamespaceSelector, loadTailorDBNamespaces };
|
|
38
|
+
export declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
39
|
+
//#endregion
|
|
@@ -15,6 +15,5 @@ interface GenerateUserTypesOptions {
|
|
|
15
15
|
* @param options - Generation options
|
|
16
16
|
* @returns Promise that resolves when types are generated
|
|
17
17
|
*/
|
|
18
|
-
declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { generateUserTypes };
|
|
18
|
+
export declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
|
|
19
|
+
//#endregion
|
|
@@ -5,6 +5,5 @@ import { z } from "zod";
|
|
|
5
5
|
* lowercase alphanumeric or hyphen characters, not starting or ending with a
|
|
6
6
|
* hyphen.
|
|
7
7
|
*/
|
|
8
|
-
declare const workspaceNameSchema: z.ZodString;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { workspaceNameSchema };
|
|
8
|
+
export declare const workspaceNameSchema: z.ZodString;
|
|
9
|
+
//#endregion
|
|
@@ -8,7 +8,7 @@ import { AppConfig } from "./types.mjs";
|
|
|
8
8
|
* @param config - Application configuration
|
|
9
9
|
* @returns The same configuration object
|
|
10
10
|
*/
|
|
11
|
-
declare function defineConfig<const Config extends AppConfig & Record<Exclude<keyof Config, keyof AppConfig>, never>>(config: Config): Config;
|
|
11
|
+
export declare function defineConfig<const Config extends AppConfig & Record<Exclude<keyof Config, keyof AppConfig>, never>>(config: Config): Config;
|
|
12
12
|
/**
|
|
13
13
|
* Define plugins to be used with the Tailor SDK.
|
|
14
14
|
* Plugins can generate additional tables, resolvers, and executors
|
|
@@ -16,6 +16,5 @@ declare function defineConfig<const Config extends AppConfig & Record<Exclude<ke
|
|
|
16
16
|
* @param configs - Plugin configurations
|
|
17
17
|
* @returns Plugin configurations as given
|
|
18
18
|
*/
|
|
19
|
-
declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any, Record<string, TailorAnyDBField>>[];
|
|
20
|
-
//#endregion
|
|
21
|
-
export { defineConfig, definePlugins };
|
|
19
|
+
export declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any, Record<string, TailorAnyDBField>>[];
|
|
20
|
+
//#endregion
|
|
@@ -8,10 +8,10 @@ import { StaticWebsiteConfig } from "../services/staticwebsite/types.mjs";
|
|
|
8
8
|
import { ExecutionPolicyInstance } from "../services/workflow/execution-policy.types.mjs";
|
|
9
9
|
import { LogLevelEnum } from "../../types/app-config.generated.mjs";
|
|
10
10
|
//#region src/configure/config/types.d.ts
|
|
11
|
-
type LogLevel = LogLevelEnum;
|
|
12
|
-
type LogLevelInput = LogLevel | (string & {});
|
|
11
|
+
export type LogLevel = LogLevelEnum;
|
|
12
|
+
export type LogLevelInput = LogLevel | (string & {});
|
|
13
13
|
/** Value an `env` entry resolves to at runtime. */
|
|
14
|
-
type EnvValue = string | number | boolean;
|
|
14
|
+
export type EnvValue = string | number | boolean;
|
|
15
15
|
/**
|
|
16
16
|
* An `env` value that credential detection flags, allowed through together with
|
|
17
17
|
* the reason it is safe to deploy as plaintext.
|
|
@@ -25,19 +25,19 @@ type AllowedSecretEnvValue = {
|
|
|
25
25
|
allowSecretReason: string;
|
|
26
26
|
};
|
|
27
27
|
/** An entry of `defineConfig({ env })`. */
|
|
28
|
-
type EnvEntry = EnvValue | AllowedSecretEnvValue;
|
|
28
|
+
export type EnvEntry = EnvValue | AllowedSecretEnvValue;
|
|
29
29
|
/** `files`/`ignores` patterns are resolved relative to this config's own directory, not the invocation directory. */
|
|
30
|
-
type ExecutorServiceConfig = {
|
|
30
|
+
export type ExecutorServiceConfig = {
|
|
31
31
|
files: string[];
|
|
32
32
|
ignores?: string[];
|
|
33
33
|
};
|
|
34
|
-
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
34
|
+
export type ExecutorServiceInput = ExecutorServiceConfig;
|
|
35
35
|
/** `files`/`ignores` patterns are resolved relative to this config's own directory, not the invocation directory. */
|
|
36
|
-
type HttpAdapterServiceInput = {
|
|
36
|
+
export type HttpAdapterServiceInput = {
|
|
37
37
|
files: string[];
|
|
38
38
|
ignores?: string[];
|
|
39
39
|
};
|
|
40
|
-
type ResolverServiceConfig = {
|
|
40
|
+
export type ResolverServiceConfig = {
|
|
41
41
|
/** `files`/`ignores` patterns are resolved relative to this config's own directory, not the invocation directory. */
|
|
42
42
|
files: string[];
|
|
43
43
|
ignores?: string[];
|
|
@@ -52,13 +52,13 @@ type ResolverServiceConfig = {
|
|
|
52
52
|
*/
|
|
53
53
|
defaultPermission?: ResolverPermission;
|
|
54
54
|
};
|
|
55
|
-
type ResolverExternalConfig = {
|
|
55
|
+
export type ResolverExternalConfig = {
|
|
56
56
|
external: true;
|
|
57
57
|
};
|
|
58
|
-
type ResolverServiceInput = {
|
|
58
|
+
export type ResolverServiceInput = {
|
|
59
59
|
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
60
60
|
};
|
|
61
|
-
type WorkflowServiceConfig = {
|
|
61
|
+
export type WorkflowServiceConfig = {
|
|
62
62
|
/** Resolved relative to this config's own directory, not the invocation directory. */
|
|
63
63
|
files: string[];
|
|
64
64
|
job_files?: string[];
|
|
@@ -67,7 +67,7 @@ type WorkflowServiceConfig = {
|
|
|
67
67
|
/** Workspace-level execution policies for workflow job functions. */
|
|
68
68
|
executionPolicies?: Record<string, ExecutionPolicyInstance>;
|
|
69
69
|
};
|
|
70
|
-
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
70
|
+
export type WorkflowServiceInput = WorkflowServiceConfig;
|
|
71
71
|
/**
|
|
72
72
|
* Application configuration for `defineConfig()`.
|
|
73
73
|
*
|
|
@@ -80,7 +80,7 @@ type WorkflowServiceInput = WorkflowServiceConfig;
|
|
|
80
80
|
* - `aiGateways`: Array of AI Gateway configs, e.g. `[gateway]`
|
|
81
81
|
* - `db`, `resolver`, `executor`, `workflow`, `httpAdapter`: Service configs with file globs (resolved relative to this config file's own directory, not the invocation directory)
|
|
82
82
|
*/
|
|
83
|
-
interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], AIGateways extends AIGatewayConfig[] = AIGatewayConfig[], Env extends Record<string, EnvEntry> = Record<string, EnvEntry>> {
|
|
83
|
+
export interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], AIGateways extends AIGatewayConfig[] = AIGatewayConfig[], Env extends Record<string, EnvEntry> = Record<string, EnvEntry>> {
|
|
84
84
|
/** Application name (required). */
|
|
85
85
|
name: string;
|
|
86
86
|
/**
|
|
@@ -141,5 +141,4 @@ interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[
|
|
|
141
141
|
*/
|
|
142
142
|
logLevel?: LogLevelInput;
|
|
143
143
|
}
|
|
144
|
-
//#endregion
|
|
145
|
-
export { AppConfig, EnvEntry, EnvValue, ExecutorServiceConfig, ExecutorServiceInput, HttpAdapterServiceInput, LogLevel, LogLevelInput, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, WorkflowServiceConfig, WorkflowServiceInput };
|
|
144
|
+
//#endregion
|