@tailor-platform/sdk 1.76.1 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/{application-BUfYmf0O.mjs → application-CUxVA7Fs.mjs} +378 -1679
- package/dist/application-CUxVA7Fs.mjs.map +1 -0
- package/dist/application-Dp_-ioiP.mjs +3 -0
- package/dist/cli/cache/bundle-cache.d.mts +2 -1
- package/dist/cli/cache/store.d.mts +1 -1
- package/dist/cli/commands/api/index.d.mts +1 -0
- package/dist/cli/commands/deploy/aigateway.d.mts +5 -1
- package/dist/cli/commands/deploy/application.d.mts +7 -1
- package/dist/cli/commands/deploy/apply-phases.d.mts +14 -1
- package/dist/cli/commands/deploy/auth.d.mts +5 -1
- package/dist/cli/commands/deploy/deploy.d.mts +13 -3
- package/dist/cli/commands/deploy/executor.d.mts +7 -1
- package/dist/cli/commands/deploy/function-registry.d.mts +5 -0
- package/dist/cli/commands/deploy/idp.d.mts +5 -1
- package/dist/cli/commands/deploy/resolver.d.mts +5 -1
- package/dist/cli/commands/deploy/secret-manager.d.mts +5 -1
- package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -1
- package/dist/cli/commands/deploy/tailordb/index.d.mts +8 -1
- package/dist/cli/commands/deploy/types.d.mts +3 -1
- package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -1
- package/dist/cli/commands/deploy/workflow.d.mts +4 -1
- package/dist/cli/commands/executor/get.d.mts +0 -1
- package/dist/cli/commands/executor/jobs.d.mts +0 -1
- package/dist/cli/commands/executor/list.d.mts +0 -1
- package/dist/cli/commands/executor/transform.d.mts +1 -0
- package/dist/cli/commands/executor/trigger.d.mts +0 -1
- package/dist/cli/commands/executor/webhook.d.mts +0 -1
- package/dist/cli/commands/function/get.d.mts +0 -1
- package/dist/cli/commands/function/list.d.mts +0 -1
- package/dist/cli/commands/function/transform.d.mts +1 -0
- package/dist/cli/commands/generate/service.d.mts +5 -1
- package/dist/cli/commands/generate/types.d.mts +3 -1
- package/dist/cli/commands/machineuser/list.d.mts +0 -1
- package/dist/cli/commands/machineuser/token.d.mts +0 -1
- package/dist/cli/commands/oauth2client/get.d.mts +0 -1
- package/dist/cli/commands/oauth2client/list.d.mts +0 -1
- package/dist/cli/commands/oauth2client/transform.d.mts +1 -0
- package/dist/cli/commands/organization/folder/create.d.mts +0 -1
- package/dist/cli/commands/organization/folder/delete.d.mts +0 -1
- package/dist/cli/commands/organization/folder/get.d.mts +0 -1
- package/dist/cli/commands/organization/folder/list.d.mts +0 -1
- package/dist/cli/commands/organization/folder/update.d.mts +0 -1
- package/dist/cli/commands/organization/get.d.mts +0 -1
- package/dist/cli/commands/organization/list.d.mts +0 -1
- package/dist/cli/commands/organization/transform.d.mts +2 -0
- package/dist/cli/commands/organization/tree.d.mts +0 -1
- package/dist/cli/commands/organization/update.d.mts +0 -1
- package/dist/cli/commands/remove.d.mts +0 -1
- package/dist/cli/commands/show.d.mts +9 -4
- package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
- package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
- package/dist/cli/commands/workflow/executions.d.mts +0 -1
- package/dist/cli/commands/workflow/get.d.mts +2 -1
- package/dist/cli/commands/workflow/list.d.mts +0 -1
- package/dist/cli/commands/workflow/resume.d.mts +0 -1
- package/dist/cli/commands/workflow/start.d.mts +0 -1
- package/dist/cli/commands/workflow/status.d.mts +1 -0
- package/dist/cli/commands/workflow/transform.d.mts +1 -0
- package/dist/cli/commands/workflow/wait.d.mts +0 -1
- package/dist/cli/commands/workflow/waiter.d.mts +1 -1
- package/dist/cli/commands/workspace/app/health.d.mts +0 -1
- package/dist/cli/commands/workspace/app/list.d.mts +0 -1
- package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
- package/dist/cli/commands/workspace/create.d.mts +3 -1
- package/dist/cli/commands/workspace/delete.d.mts +0 -1
- package/dist/cli/commands/workspace/get.d.mts +0 -1
- package/dist/cli/commands/workspace/list.d.mts +1 -1
- package/dist/cli/commands/workspace/restore.d.mts +0 -1
- package/dist/cli/commands/workspace/transform.d.mts +4 -0
- package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
- package/dist/cli/commands/workspace/user/list.d.mts +0 -1
- package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
- package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
- package/dist/cli/commands/workspace/user/update.d.mts +0 -1
- package/dist/cli/index.d.mts +3 -1
- package/dist/cli/index.mjs +660 -56
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +4 -2
- package/dist/cli/lib.mjs +3 -3
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +0 -1
- package/dist/cli/services/application.d.mts +12 -1
- package/dist/cli/services/auth/service.d.mts +2 -0
- package/dist/cli/services/executor/service.d.mts +1 -1
- package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
- package/dist/cli/services/http-adapter/service.d.mts +2 -1
- package/dist/cli/services/resolver/service.d.mts +1 -1
- package/dist/cli/services/tailordb/service.d.mts +3 -1
- package/dist/cli/services/workflow/bundler.d.mts +2 -1
- package/dist/cli/services/workflow/service.d.mts +1 -1
- package/dist/cli/shared/args.d.mts +1 -1
- package/dist/cli/shared/client.d.mts +1 -1
- package/dist/cli/shared/config-loader.d.mts +0 -1
- package/dist/cli/shared/context.d.mts +2 -1
- package/dist/cli/shared/script-executor.d.mts +0 -1
- package/dist/cli/shared/seed-chunker.d.mts +7 -3
- package/dist/cli/shared/type-generator.d.mts +0 -1
- package/dist/cli/shared/workspace-name.d.mts +1 -0
- package/dist/cli/skills.mjs +1 -1
- package/dist/completion/zsh-worker.zsh +18 -1
- package/dist/configure/config/index.d.mts +0 -1
- package/dist/configure/config/types.d.mts +2 -2
- package/dist/configure/index.d.mts +2 -1
- package/dist/configure/index.mjs +248 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/aigateway/index.d.mts +0 -1
- package/dist/configure/services/aigateway/types.d.mts +0 -1
- package/dist/configure/services/auth/index.d.mts +0 -1
- package/dist/configure/services/auth/types.d.mts +14 -13
- package/dist/configure/services/executor/executor.d.mts +0 -1
- package/dist/configure/services/executor/index.d.mts +1 -0
- package/dist/configure/services/executor/operation.d.mts +1 -2
- package/dist/configure/services/executor/trigger/event.d.mts +0 -1
- package/dist/configure/services/executor/trigger/index.d.mts +0 -1
- package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
- package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
- package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
- package/dist/configure/services/idp/index.d.mts +1 -5
- package/dist/configure/services/idp/permission.d.mts +4 -5
- package/dist/configure/services/idp/types.d.mts +0 -1
- package/dist/configure/services/index.d.mts +5 -0
- package/dist/configure/services/resolver/resolver.d.mts +0 -1
- package/dist/configure/services/resolver/types.d.mts +0 -1
- package/dist/configure/services/secrets/index.d.mts +0 -1
- package/dist/configure/services/secrets/types.d.mts +0 -1
- package/dist/configure/services/staticwebsite/index.d.mts +0 -1
- package/dist/configure/services/staticwebsite/types.d.mts +0 -1
- package/dist/configure/services/tailordb/permission.d.mts +4 -5
- package/dist/configure/services/tailordb/schema.d.mts +21 -8
- package/dist/configure/services/tailordb/types.d.mts +4 -5
- package/dist/configure/services/workflow/execution-policy.d.mts +0 -1
- package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -1
- package/dist/configure/services/workflow/index.d.mts +1 -0
- package/dist/configure/services/workflow/job.d.mts +0 -1
- package/dist/configure/services/workflow/wait-point.d.mts +0 -1
- package/dist/configure/services/workflow/workflow.d.mts +0 -1
- package/dist/configure/types/field-runtime.d.mts +1 -1
- package/dist/configure/types/field.d.mts +1 -2
- package/dist/configure/types/field.types.d.mts +1 -2
- package/dist/configure/types/type.d.mts +1 -1
- package/dist/configure/user.d.mts +0 -1
- package/dist/{crashreport-ayWANEZ6.mjs → crashreport-BNWUM6Kf.mjs} +4 -3
- package/dist/{crashreport-ayWANEZ6.mjs.map → crashreport-BNWUM6Kf.mjs.map} +1 -1
- package/dist/{crashreport-Dy4ZzSkd.mjs → crashreport-BafWvjjX.mjs} +1 -1
- package/dist/errors-DVFS0AZk.mjs +100 -0
- package/dist/errors-DVFS0AZk.mjs.map +1 -0
- package/dist/{globals-CcU1ONiK.mjs → globals-CvizbGLY.mjs} +2 -2
- package/dist/{globals-CcU1ONiK.mjs.map → globals-CvizbGLY.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +3 -4
- package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
- package/dist/logger-BwS4ppwO.mjs.map +1 -0
- package/dist/parser/service/auth/index.d.mts +1 -1
- package/dist/parser/service/auth/schema.d.mts +1 -0
- package/dist/parser/service/http-adapter/index.d.mts +1 -1
- package/dist/parser/service/idp/types.d.mts +1 -0
- package/dist/parser/service/tailordb/types.d.mts +0 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
- package/dist/plugin/builtin/seed/index.d.mts +0 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/get-generated-type.d.mts +0 -1
- package/dist/plugin/manager.d.mts +3 -1
- package/dist/plugin/types.d.mts +0 -1
- package/dist/plugin/with-context.d.mts +0 -1
- package/dist/{registry-NfSW0BRo.mjs → registry-CYBRvfaU.mjs} +4 -49
- package/dist/registry-CYBRvfaU.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +0 -2
- package/dist/runtime/authconnection.d.mts +0 -2
- package/dist/runtime/globals.d.mts +0 -1
- package/dist/runtime/index.d.mts +0 -1
- package/dist/runtime/types.d.mts +16 -7
- package/dist/{runtime-_vUgjiqT.mjs → runtime-BD2vYJFT.mjs} +2382 -1167
- package/dist/runtime-BD2vYJFT.mjs.map +1 -0
- package/dist/{schema-DrVyN-LP.mjs → schema-U6DxoZ8D.mjs} +204 -3
- package/dist/schema-U6DxoZ8D.mjs.map +1 -0
- package/dist/{secret-file-VSVGy1V0.mjs → secret-file-DBqZhjFQ.mjs} +2 -27
- package/dist/{secret-file-VSVGy1V0.mjs.map → secret-file-DBqZhjFQ.mjs.map} +1 -1
- package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
- package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
- package/dist/seed/index.d.mts +3 -2
- package/dist/{seed-fm0LeYP2.mjs → seed-DFFigL8V.mjs} +3 -13
- package/dist/seed-DFFigL8V.mjs.map +1 -0
- package/dist/service-CghpdV-9.mjs +3 -0
- package/dist/{service-DBFZQloR.mjs → service-Cp0I7ZFe.mjs} +3 -3
- package/dist/{service-DBFZQloR.mjs.map → service-Cp0I7ZFe.mjs.map} +1 -1
- package/dist/{service-BCRJ-3NV.mjs → service-D12iQGcS.mjs} +2 -2
- package/dist/{service-BCRJ-3NV.mjs.map → service-D12iQGcS.mjs.map} +1 -1
- package/dist/service_pb-BoLM0X4K.mjs +167 -0
- package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
- package/dist/{service_pb-B2FF59sP.mjs → service_pb-r1T7kpJc.mjs} +1 -1
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
- package/dist/test-env-key-DuZycyWM.mjs +49 -0
- package/dist/test-env-key-DuZycyWM.mjs.map +1 -0
- package/dist/type-source-DH_LH20p.mjs +13 -0
- package/dist/type-source-DH_LH20p.mjs.map +1 -0
- package/dist/types/aigateway.generated.d.mts +5 -2
- package/dist/types/auth-connection.generated.d.mts +11 -5
- package/dist/types/auth.generated.d.mts +118 -85
- package/dist/types/executor.generated.d.mts +76 -84
- package/dist/types/helpers.d.mts +5 -5
- package/dist/types/http-adapter.generated.d.mts +11 -5
- package/dist/types/idp.generated.d.mts +536 -524
- package/dist/types/resolver.generated.d.mts +24 -10
- package/dist/types/staticwebsite.generated.d.mts +7 -3
- package/dist/types/tailordb.generated.d.mts +55 -29
- package/dist/types/workflow.generated.d.mts +9 -4
- package/dist/user-agent-DX2Jnw0-.mjs +28 -0
- package/dist/user-agent-DX2Jnw0-.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +0 -1
- package/dist/utils/test/index.mjs +1 -1
- package/dist/utils/test/mock.d.mts +0 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +9 -9
- package/dist/vitest/index.mjs +600 -185
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +0 -1
- package/dist/vitest/mock.d.mts +8 -8
- package/dist/vitest/mocks/aigateway.d.mts +16 -6
- package/dist/vitest/mocks/authconnection.d.mts +16 -6
- package/dist/vitest/mocks/file.d.mts +24 -6
- package/dist/vitest/mocks/iconv.d.mts +28 -4
- package/dist/vitest/mocks/idp.d.mts +26 -10
- package/dist/vitest/mocks/secretmanager.d.mts +16 -5
- package/dist/vitest/mocks/tailordb.d.mts +54 -10
- package/dist/vitest/mocks/workflow.d.mts +48 -11
- package/dist/vitest/setup.mjs +2 -2
- package/dist/{service_pb-B5w9rjPY.mjs → workspace_resource_pb-Db3fv68L.mjs} +57 -165
- package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
- package/docs/cli/application.md +58 -11
- package/docs/cli/setup.md +1 -1
- package/docs/cli/workspace.md +6 -4
- package/docs/cli-reference.md +12 -8
- package/docs/runtime.md +3 -4
- package/docs/services/aigateway.md +2 -0
- package/docs/services/tailordb.md +52 -1
- package/docs/services/workflow.md +1 -1
- package/docs/testing.md +103 -89
- package/package.json +16 -16
- package/dist/application-BUfYmf0O.mjs.map +0 -1
- package/dist/application-DbvD5UUz.mjs +0 -3
- package/dist/cli/shared/trigger-context.d.mts +0 -1
- package/dist/errors-Dtf2WPaW.mjs +0 -42
- package/dist/errors-Dtf2WPaW.mjs.map +0 -1
- package/dist/field-runtime-9bfXBAOK.mjs +0 -183
- package/dist/field-runtime-9bfXBAOK.mjs.map +0 -1
- package/dist/job-D-PbD1P3.mjs +0 -55
- package/dist/job-D-PbD1P3.mjs.map +0 -1
- package/dist/logger-BEiZZ3qT.mjs.map +0 -1
- package/dist/registry-NfSW0BRo.mjs.map +0 -1
- package/dist/resource_pb-BRv7AMXK.mjs +0 -49
- package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
- package/dist/runtime-_vUgjiqT.mjs.map +0 -1
- package/dist/schema-DrVyN-LP.mjs.map +0 -1
- package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
- package/dist/seed-fm0LeYP2.mjs.map +0 -1
- package/dist/service-CPMlIg3X.mjs +0 -3
- package/dist/service_pb-B5w9rjPY.mjs.map +0 -1
- package/dist/types-BwzB2okW.mjs +0 -199
- package/dist/types-BwzB2okW.mjs.map +0 -1
- package/dist/types-KlawuVKa.mjs +0 -4
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
//#region src/types/resolver.generated.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* GraphQL operation type
|
|
4
|
+
*/
|
|
5
|
+
type QueryType = "query" | "mutation";
|
|
2
6
|
type Resolver = {
|
|
3
|
-
/** GraphQL operation type (query or mutation) */
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
/** GraphQL operation type (query or mutation) */
|
|
8
|
+
operation: QueryType;
|
|
9
|
+
/** Resolver name */
|
|
10
|
+
name: string;
|
|
11
|
+
/** Resolver implementation function */
|
|
12
|
+
body: Function;
|
|
13
|
+
/** Output field definition */
|
|
6
14
|
output: {
|
|
7
15
|
type: "string" | "boolean" | "date" | "enum" | "uuid" | "integer" | "float" | "decimal" | "datetime" | "time" | "nested";
|
|
8
16
|
metadata: {
|
|
9
17
|
required?: boolean | undefined;
|
|
10
|
-
array?: boolean | undefined;
|
|
18
|
+
array?: boolean | undefined;
|
|
19
|
+
/** Resolver description */
|
|
11
20
|
description?: string | undefined;
|
|
12
21
|
allowedValues?: {
|
|
13
|
-
value: string;
|
|
22
|
+
value: string;
|
|
23
|
+
/** Resolver description */
|
|
14
24
|
description?: string | undefined;
|
|
15
25
|
}[] | undefined;
|
|
16
26
|
hooks?: {
|
|
@@ -22,12 +32,16 @@ type Resolver = {
|
|
|
22
32
|
fields: {
|
|
23
33
|
[x: string]: any;
|
|
24
34
|
};
|
|
25
|
-
};
|
|
26
|
-
|
|
35
|
+
};
|
|
36
|
+
/** Resolver description */
|
|
37
|
+
description?: string | undefined;
|
|
38
|
+
/** Input field definitions */
|
|
27
39
|
input?: {
|
|
28
40
|
[x: string]: any;
|
|
29
|
-
} | undefined;
|
|
30
|
-
|
|
41
|
+
} | undefined;
|
|
42
|
+
/** Enable publishing events from this resolver */
|
|
43
|
+
publishEvents?: boolean | undefined;
|
|
44
|
+
/** Machine user to execute this resolver as */
|
|
31
45
|
authInvoker?: string | {
|
|
32
46
|
namespace: string;
|
|
33
47
|
machineUserName: string;
|
|
@@ -35,4 +49,4 @@ type Resolver = {
|
|
|
35
49
|
};
|
|
36
50
|
type ResolverInput = Resolver;
|
|
37
51
|
//#endregion
|
|
38
|
-
export { Resolver, ResolverInput };
|
|
52
|
+
export { QueryType, Resolver, ResolverInput };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
//#region src/types/staticwebsite.generated.d.ts
|
|
2
2
|
type StaticWebsite = {
|
|
3
|
-
/** Static website name */
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** Static website name */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Static website description */
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
/** IP addresses allowed to access the website */
|
|
8
|
+
allowedIpAddresses?: string[] | undefined;
|
|
9
|
+
/** Custom domains for the static website */
|
|
6
10
|
customDomains?: string[] | undefined;
|
|
7
11
|
};
|
|
8
12
|
type StaticWebsiteInput = StaticWebsite;
|
|
@@ -9,43 +9,64 @@ type GqlOperationsInput = "query" | {
|
|
|
9
9
|
delete?: boolean | undefined;
|
|
10
10
|
read?: boolean | undefined;
|
|
11
11
|
};
|
|
12
|
+
type GqlOperations = {
|
|
13
|
+
create?: boolean | undefined;
|
|
14
|
+
update?: boolean | undefined;
|
|
15
|
+
delete?: boolean | undefined;
|
|
16
|
+
read?: boolean | undefined;
|
|
17
|
+
};
|
|
12
18
|
type DBFieldMetadata = {
|
|
13
|
-
/** Whether the field is required */
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
/** Whether the field is required */
|
|
20
|
+
required?: boolean | undefined;
|
|
21
|
+
/** Whether the field is an array */
|
|
22
|
+
array?: boolean | undefined;
|
|
23
|
+
/** Field description */
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
/** Type name for nested or enum fields */
|
|
26
|
+
typeName?: string | undefined;
|
|
27
|
+
/** Allowed values for enum fields */
|
|
17
28
|
allowedValues?: {
|
|
18
|
-
value: string;
|
|
29
|
+
value: string;
|
|
30
|
+
/** Field description */
|
|
19
31
|
description?: string | undefined;
|
|
20
|
-
}[] | undefined;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
}[] | undefined;
|
|
33
|
+
/** Whether the field is indexed for faster queries */
|
|
34
|
+
index?: boolean | undefined;
|
|
35
|
+
/** Whether the field value must be unique */
|
|
36
|
+
unique?: boolean | undefined;
|
|
37
|
+
/** Whether the field is a vector field for similarity search */
|
|
38
|
+
vector?: boolean | undefined;
|
|
39
|
+
/** Whether the field is a foreign key */
|
|
40
|
+
foreignKey?: boolean | undefined;
|
|
41
|
+
/** Target type name for foreign key relations */
|
|
42
|
+
foreignKeyType?: string | undefined;
|
|
43
|
+
/** Target field name for foreign key relations */
|
|
44
|
+
foreignKeyField?: string | undefined;
|
|
45
|
+
/** Lifecycle hooks for the field */
|
|
27
46
|
hooks?: {
|
|
28
47
|
create?: Function | undefined;
|
|
29
48
|
update?: Function | undefined;
|
|
30
|
-
} | undefined;
|
|
31
|
-
|
|
49
|
+
} | undefined;
|
|
50
|
+
/** Validation functions for the field */
|
|
51
|
+
validate?: (Function | [Function, string])[] | undefined;
|
|
52
|
+
/** Serial (auto-increment) configuration */
|
|
32
53
|
serial?: {
|
|
33
54
|
start: number;
|
|
34
55
|
maxValue?: number | undefined;
|
|
35
56
|
format?: string | undefined;
|
|
36
|
-
} | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
/** Decimal scale (number of digits after decimal point, 0-12) */
|
|
37
59
|
scale?: number | undefined;
|
|
38
60
|
};
|
|
39
61
|
type TailorDBTypeParsedSettings = {
|
|
40
|
-
/** Custom plural form of the type name for GraphQL */
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} | undefined;
|
|
62
|
+
/** Custom plural form of the type name for GraphQL */
|
|
63
|
+
pluralForm?: string | undefined;
|
|
64
|
+
/** Enable aggregation queries for this type */
|
|
65
|
+
aggregation?: boolean | undefined;
|
|
66
|
+
/** Enable bulk upsert mutation for this type */
|
|
67
|
+
bulkUpsert?: boolean | undefined;
|
|
68
|
+
/** Configure GraphQL operations for this type. Use "query" for read-only mode, or an object for granular control. */
|
|
69
|
+
gqlOperations?: GqlOperations;
|
|
49
70
|
/**
|
|
50
71
|
* Enable publishing events for this type.
|
|
51
72
|
* When enabled, record creation/update/deletion events are published.
|
|
@@ -410,13 +431,18 @@ type RawPermissions = {
|
|
|
410
431
|
}[] | undefined;
|
|
411
432
|
};
|
|
412
433
|
type TailorDBServiceConfigInput = {
|
|
413
|
-
/** Glob patterns for TailorDB type definition files */
|
|
414
|
-
|
|
415
|
-
|
|
434
|
+
/** Glob patterns for TailorDB type definition files */
|
|
435
|
+
files: string[];
|
|
436
|
+
/** Glob patterns to exclude from type discovery */
|
|
437
|
+
ignores?: string[] | undefined;
|
|
438
|
+
/** URL for the ERD (Entity Relationship Diagram) site */
|
|
439
|
+
erdSite?: string | undefined;
|
|
440
|
+
/** Migration configuration */
|
|
416
441
|
migration?: {
|
|
417
442
|
directory: string;
|
|
418
443
|
machineUser?: string | undefined;
|
|
419
|
-
} | undefined;
|
|
444
|
+
} | undefined;
|
|
445
|
+
/** Default GraphQL operations for all types in this service */
|
|
420
446
|
gqlOperations?: "query" | {
|
|
421
447
|
create?: boolean | undefined;
|
|
422
448
|
update?: boolean | undefined;
|
|
@@ -425,4 +451,4 @@ type TailorDBServiceConfigInput = {
|
|
|
425
451
|
} | undefined;
|
|
426
452
|
};
|
|
427
453
|
//#endregion
|
|
428
|
-
export { DBFieldMetadata, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
|
|
454
|
+
export { DBFieldMetadata, GqlOperations, GqlOperationsInput, RawPermissions, TailorDBServiceConfigInput, TailorDBTypeParsedSettings };
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
//#region src/types/workflow.generated.d.ts
|
|
2
2
|
type RetryPolicy = {
|
|
3
|
-
/** Maximum number of retries (1-10) */
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** Maximum number of retries (1-10) */
|
|
4
|
+
maxRetries: number;
|
|
5
|
+
/** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
|
|
6
|
+
initialBackoff: `${number}ms` | `${number}s` | `${number}m`;
|
|
7
|
+
/** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
|
|
8
|
+
maxBackoff: `${number}ms` | `${number}s` | `${number}m`;
|
|
9
|
+
/** Backoff multiplier (>= 1) */
|
|
6
10
|
backoffMultiplier: number;
|
|
7
11
|
};
|
|
8
12
|
type ConcurrencyPolicy = {
|
|
9
|
-
/** Maximum number of concurrent executions (1-1000) */
|
|
13
|
+
/** Maximum number of concurrent executions (1-1000) */
|
|
14
|
+
maxConcurrentExecutions: number;
|
|
10
15
|
};
|
|
11
16
|
//#endregion
|
|
12
17
|
export { ConcurrencyPolicy, RetryPolicy };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { t as readPackageJson } from "./package-json-8b0O9TlX.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/shared/user-agent.ts
|
|
4
|
+
/**
|
|
5
|
+
* Build the User-Agent string from an already-known SDK version, without
|
|
6
|
+
* touching the filesystem. Use this when the caller has resolved the version
|
|
7
|
+
* (e.g. crash reporting already reads `package.json`) to avoid a redundant read.
|
|
8
|
+
* @param version - SDK version string
|
|
9
|
+
* @returns User-Agent header value
|
|
10
|
+
*/
|
|
11
|
+
function userAgentFromVersion(version) {
|
|
12
|
+
return `tailor-sdk/${version}`;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Build the User-Agent string for CLI requests.
|
|
16
|
+
*
|
|
17
|
+
* Lives in its own module (rather than `client.ts`) so callers that only need
|
|
18
|
+
* the UA — e.g. crash reporting — do not pull in the operator client's heavy
|
|
19
|
+
* OAuth2/Connect/Protobuf dependencies, and so importing it never forms a cycle.
|
|
20
|
+
* @returns User-Agent header value
|
|
21
|
+
*/
|
|
22
|
+
async function userAgent() {
|
|
23
|
+
return userAgentFromVersion((await readPackageJson()).version ?? "unknown");
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { userAgentFromVersion as n, userAgent as t };
|
|
28
|
+
//# sourceMappingURL=user-agent-DX2Jnw0-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-agent-DX2Jnw0-.mjs","names":[],"sources":["../src/cli/shared/user-agent.ts"],"sourcesContent":["import { readPackageJson } from \"./package-json\";\n\n/**\n * Build the User-Agent string from an already-known SDK version, without\n * touching the filesystem. Use this when the caller has resolved the version\n * (e.g. crash reporting already reads `package.json`) to avoid a redundant read.\n * @param version - SDK version string\n * @returns User-Agent header value\n */\nexport function userAgentFromVersion(version: string): string {\n return `tailor-sdk/${version}`;\n}\n\n/**\n * Build the User-Agent string for CLI requests.\n *\n * Lives in its own module (rather than `client.ts`) so callers that only need\n * the UA — e.g. crash reporting — do not pull in the operator client's heavy\n * OAuth2/Connect/Protobuf dependencies, and so importing it never forms a cycle.\n * @returns User-Agent header value\n */\nexport async function userAgent() {\n const packageJson = await readPackageJson();\n return userAgentFromVersion(packageJson.version ?? \"unknown\");\n}\n"],"mappings":";;;;;;;;;;AASA,SAAgB,qBAAqB,SAAyB;CAC5D,OAAO,cAAc;AACvB;;;;;;;;;AAUA,eAAsB,YAAY;CAEhC,OAAO,sBAAqB,MADF,gBAAgB,EACH,CAAC,WAAW,SAAS;AAC9D"}
|
|
@@ -4,7 +4,6 @@ import { WORKFLOW_TEST_ENV_KEY } from "../../configure/services/workflow/test-en
|
|
|
4
4
|
import { output } from "../../configure/index.mjs";
|
|
5
5
|
import { createImportMain, setupInvokerMock, setupTailorErrorsMock, setupTailordbMock, setupWaitPointMock, setupWorkflowMock } from "./mock.mjs";
|
|
6
6
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
7
|
-
|
|
8
7
|
//#region src/utils/test/index.d.ts
|
|
9
8
|
/** Represents an unauthenticated user in the Tailor platform. */
|
|
10
9
|
declare const unauthenticatedTailorUser: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-
|
|
1
|
+
import { n as cleanupPlatformGlobals, r as installPlatformGlobals, t as RUNTIME_FLAG_KEY } from "../globals-CvizbGLY.mjs";
|
|
2
2
|
import * as globals from "globals";
|
|
3
3
|
|
|
4
4
|
//#region src/vitest/environment.ts
|
package/dist/vitest/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { mockAigateway } from "./mocks/aigateway.mjs";
|
|
2
|
-
import { mockAuthconnection } from "./mocks/authconnection.mjs";
|
|
3
|
-
import { mockFile } from "./mocks/file.mjs";
|
|
4
|
-
import { mockIconv } from "./mocks/iconv.mjs";
|
|
5
|
-
import { mockIdp } from "./mocks/idp.mjs";
|
|
6
|
-
import { mockSecretmanager } from "./mocks/secretmanager.mjs";
|
|
7
|
-
import { mockTailordb } from "./mocks/tailordb.mjs";
|
|
1
|
+
import { MockAigatewayOptions, mockAigateway } from "./mocks/aigateway.mjs";
|
|
2
|
+
import { MockAuthconnectionOptions, mockAuthconnection } from "./mocks/authconnection.mjs";
|
|
3
|
+
import { MockFileOptions, mockFile } from "./mocks/file.mjs";
|
|
4
|
+
import { MockIconvOptions, mockIconv } from "./mocks/iconv.mjs";
|
|
5
|
+
import { MockIdpOptions, mockIdp } from "./mocks/idp.mjs";
|
|
6
|
+
import { MockSecretmanagerOptions, mockSecretmanager } from "./mocks/secretmanager.mjs";
|
|
7
|
+
import { MockTailordbOptions, QueryBehavior, QueryMatch, QueryMatcher, mockTailordb } from "./mocks/tailordb.mjs";
|
|
8
8
|
import { mockWorkflow } from "./mocks/workflow.mjs";
|
|
9
|
+
import "./mock.mjs";
|
|
9
10
|
import { ExecutedQuery, KyselyMock, createKyselyMock } from "./mock-kysely.mjs";
|
|
10
11
|
import { Plugin } from "vitest/config";
|
|
11
|
-
|
|
12
12
|
//#region src/vitest/index.d.ts
|
|
13
13
|
/**
|
|
14
14
|
* Creates Vitest plugins that emulate the Tailor Platform function runtime environment.
|
|
@@ -68,4 +68,4 @@ declare function tailorRuntime(options?: {
|
|
|
68
68
|
config?: string;
|
|
69
69
|
}): Plugin[];
|
|
70
70
|
//#endregion
|
|
71
|
-
export { type ExecutedQuery, type KyselyMock, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };
|
|
71
|
+
export { type ExecutedQuery, type KyselyMock, type MockAigatewayOptions, type MockAuthconnectionOptions, type MockFileOptions, type MockIconvOptions, type MockIdpOptions, type MockSecretmanagerOptions, type MockTailordbOptions, type QueryBehavior, type QueryMatch, type QueryMatcher, createKyselyMock, mockAigateway, mockAuthconnection, mockFile, mockIconv, mockIdp, mockSecretmanager, mockTailordb, mockWorkflow, tailorRuntime };
|