@tailor-platform/sdk 2.33.0 → 2.35.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 +84 -0
- package/dist/ai/index.d.mts +1 -3
- package/dist/{application-Bet1K5C4.mjs → application-Bj2MtL-d.mjs} +1 -1
- package/dist/application-DIsQSnj3.mjs +207 -0
- package/dist/application-DIsQSnj3.mjs.map +1 -0
- package/dist/cli/cache/bundle-cache.d.mts +1 -0
- package/dist/cli/commands/api/api-call.d.mts +1 -3
- package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
- package/dist/cli/commands/deploy/app-id-lock.d.mts +1 -3
- package/dist/cli/commands/deploy/application.d.mts +1 -0
- package/dist/cli/commands/deploy/auth.d.mts +1 -0
- package/dist/cli/commands/deploy/config-id-injector.d.mts +1 -3
- package/dist/cli/commands/deploy/confirm.d.mts +1 -0
- package/dist/cli/commands/deploy/deploy.d.mts +4 -3
- package/dist/cli/commands/deploy/executor.d.mts +1 -0
- package/dist/cli/commands/deploy/function-registry-types.d.mts +1 -3
- package/dist/cli/commands/deploy/function-registry.d.mts +1 -0
- package/dist/cli/commands/deploy/idp.d.mts +1 -0
- package/dist/cli/commands/deploy/owned-resource.d.mts +3 -0
- package/dist/cli/commands/deploy/resolver.d.mts +1 -0
- package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
- package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
- package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +1 -2
- package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -0
- package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +2 -1
- package/dist/cli/commands/deploy/workflow.d.mts +1 -0
- package/dist/cli/commands/executor/get.d.mts +0 -2
- package/dist/cli/commands/executor/jobs.d.mts +0 -2
- package/dist/cli/commands/executor/list.d.mts +1 -3
- package/dist/cli/commands/executor/transform.d.mts +1 -3
- package/dist/cli/commands/executor/trigger.d.mts +0 -2
- package/dist/cli/commands/executor/webhook.d.mts +1 -3
- package/dist/cli/commands/function/get.d.mts +0 -2
- package/dist/cli/commands/function/list.d.mts +0 -2
- package/dist/cli/commands/function/transform.d.mts +1 -3
- package/dist/cli/commands/generate/options.d.mts +1 -3
- package/dist/cli/commands/generate/seed/bundler.d.mts +1 -3
- package/dist/cli/commands/generate/service.d.mts +1 -3
- package/dist/cli/commands/machineuser/list.d.mts +1 -3
- package/dist/cli/commands/machineuser/token.d.mts +1 -3
- package/dist/cli/commands/oauth2client/get.d.mts +1 -3
- package/dist/cli/commands/oauth2client/list.d.mts +1 -3
- package/dist/cli/commands/oauth2client/transform.d.mts +1 -3
- package/dist/cli/commands/organization/folder/create.d.mts +0 -2
- package/dist/cli/commands/organization/folder/delete.d.mts +0 -2
- package/dist/cli/commands/organization/folder/get.d.mts +0 -2
- package/dist/cli/commands/organization/folder/list.d.mts +0 -2
- package/dist/cli/commands/organization/folder/update.d.mts +0 -2
- package/dist/cli/commands/organization/get.d.mts +0 -2
- package/dist/cli/commands/organization/list.d.mts +1 -3
- package/dist/cli/commands/organization/transform.d.mts +1 -3
- package/dist/cli/commands/organization/tree.d.mts +0 -2
- package/dist/cli/commands/organization/update.d.mts +0 -2
- package/dist/cli/commands/remove.d.mts +1 -3
- package/dist/cli/commands/show.d.mts +0 -2
- package/dist/cli/commands/staticwebsite/deploy.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/config.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -2
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +2 -4
- package/dist/cli/commands/tailordb/migrate/rename-detection.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +1 -3
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +0 -2
- package/dist/cli/commands/tailordb/migrate/types.d.mts +1 -3
- package/dist/cli/commands/tailordb/truncate.d.mts +1 -3
- package/dist/cli/commands/workflow/executions.d.mts +0 -2
- package/dist/cli/commands/workflow/get.d.mts +0 -2
- package/dist/cli/commands/workflow/list.d.mts +1 -3
- package/dist/cli/commands/workflow/resume.d.mts +1 -3
- package/dist/cli/commands/workflow/start.d.mts +0 -2
- package/dist/cli/commands/workflow/status.d.mts +1 -3
- package/dist/cli/commands/workflow/transform.d.mts +1 -3
- package/dist/cli/commands/workflow/wait.d.mts +1 -3
- package/dist/cli/commands/workflow/waiter.d.mts +1 -3
- package/dist/cli/commands/workspace/app/health.d.mts +0 -2
- package/dist/cli/commands/workspace/app/list.d.mts +0 -2
- package/dist/cli/commands/workspace/app/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/create.d.mts +0 -2
- package/dist/cli/commands/workspace/delete.d.mts +0 -2
- package/dist/cli/commands/workspace/expiry.d.mts +1 -3
- package/dist/cli/commands/workspace/get.d.mts +0 -2
- package/dist/cli/commands/workspace/list.d.mts +1 -3
- package/dist/cli/commands/workspace/restore.d.mts +0 -2
- package/dist/cli/commands/workspace/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/user/invite.d.mts +0 -2
- package/dist/cli/commands/workspace/user/list.d.mts +0 -2
- package/dist/cli/commands/workspace/user/remove.d.mts +0 -2
- package/dist/cli/commands/workspace/user/transform.d.mts +1 -3
- package/dist/cli/commands/workspace/user/update.d.mts +0 -2
- package/dist/cli/lib.d.mts +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.d.mts +1 -3
- package/dist/cli/main.mjs +55 -51
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +0 -2
- package/dist/cli/services/application.d.mts +6 -4
- package/dist/cli/services/executor/service.d.mts +2 -2
- package/dist/cli/services/function-bundle.d.mts +8 -0
- package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
- package/dist/cli/services/resolver/service.d.mts +2 -2
- package/dist/cli/services/workflow/bundler.d.mts +2 -3
- package/dist/cli/shared/args.d.mts +0 -2
- package/dist/cli/shared/beta.d.mts +1 -3
- package/dist/cli/shared/client.d.mts +4 -3
- package/dist/cli/shared/command.d.mts +2 -4
- package/dist/cli/shared/config-loader.d.mts +2 -4
- package/dist/cli/shared/config.d.mts +1 -3
- package/dist/cli/shared/context.d.mts +0 -2
- package/dist/cli/shared/error-diagnostics.d.mts +1 -3
- package/dist/cli/shared/error-json.d.mts +1 -3
- package/dist/cli/shared/function-execution.d.mts +1 -3
- package/dist/cli/shared/github-actions.d.mts +1 -3
- package/dist/cli/shared/logger.d.mts +7 -4
- package/dist/cli/shared/platform-bundle-plugin.d.mts +1 -0
- package/dist/cli/shared/prompt.d.mts +1 -3
- package/dist/cli/shared/readonly-guard.d.mts +0 -2
- package/dist/cli/shared/script-executor.d.mts +1 -3
- package/dist/cli/shared/sdk-builder-pure-plugin.d.mts +1 -0
- package/dist/cli/shared/seed-chunker.d.mts +1 -3
- package/dist/cli/shared/seed-context.d.mts +0 -2
- package/dist/cli/shared/sourcemap-sources.d.mts +1 -0
- package/dist/cli/shared/tailordb-namespaces.d.mts +1 -3
- package/dist/cli/shared/type-generator.d.mts +0 -2
- package/dist/cli/shared/workspace-name.d.mts +1 -3
- package/dist/completion/zsh-worker.zsh +5 -5
- package/dist/configure/config/index.d.mts +2 -4
- package/dist/configure/config/types.d.mts +27 -4
- package/dist/configure/index.d.mts +7 -9
- package/dist/configure/index.mjs +1 -1
- package/dist/configure/services/aigateway/index.d.mts +0 -2
- package/dist/configure/services/aigateway/types.d.mts +0 -2
- package/dist/configure/services/auth/index.d.mts +0 -2
- package/dist/configure/services/auth/types.d.mts +0 -2
- package/dist/configure/services/executor/executor.d.mts +0 -2
- package/dist/configure/services/executor/operation.d.mts +0 -2
- package/dist/configure/services/executor/trigger/event.d.mts +0 -2
- package/dist/configure/services/executor/trigger/index.d.mts +0 -2
- package/dist/configure/services/executor/trigger/schedule.d.mts +0 -2
- package/dist/configure/services/executor/trigger/webhook.d.mts +1 -3
- package/dist/configure/services/http-adapter/http-adapter.d.mts +0 -2
- package/dist/configure/services/idp/index.d.mts +0 -2
- package/dist/configure/services/idp/permission.d.mts +0 -2
- package/dist/configure/services/idp/types.d.mts +0 -2
- package/dist/configure/services/index.d.mts +5 -5
- package/dist/configure/services/resolver/index.d.mts +1 -1
- package/dist/configure/services/resolver/permission.d.mts +0 -2
- package/dist/configure/services/resolver/resolver.d.mts +1 -3
- package/dist/configure/services/resolver/types.d.mts +1 -3
- package/dist/configure/services/secrets/index.d.mts +0 -2
- package/dist/configure/services/secrets/types.d.mts +0 -2
- package/dist/configure/services/staticwebsite/index.d.mts +0 -2
- package/dist/configure/services/staticwebsite/types.d.mts +0 -2
- package/dist/configure/services/tailordb/permission.d.mts +0 -2
- package/dist/configure/services/tailordb/schema.d.mts +0 -2
- package/dist/configure/services/tailordb/types.d.mts +0 -2
- package/dist/configure/services/workflow/execution-policy.d.mts +0 -2
- package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -2
- package/dist/configure/services/workflow/job.d.mts +0 -2
- package/dist/configure/services/workflow/wait-point.d.mts +0 -2
- package/dist/configure/services/workflow/workflow.d.mts +0 -2
- package/dist/configure/types/aigateway-name.d.mts +1 -3
- package/dist/configure/types/auth-namespace-name.d.mts +1 -3
- package/dist/configure/types/connection-name.d.mts +1 -3
- package/dist/configure/types/field.d.mts +1 -3
- package/dist/configure/types/field.types.d.mts +0 -2
- package/dist/configure/types/idp-name.d.mts +1 -3
- package/dist/configure/types/permission-operand.types.d.mts +0 -2
- package/dist/configure/types/secret-vault-name.d.mts +1 -3
- package/dist/configure/types/type.d.mts +0 -2
- package/dist/{crashreport-BCIy33Cz.mjs → crashreport-DGU6lwiX.mjs} +2 -2
- package/dist/{crashreport-BCIy33Cz.mjs.map → crashreport-DGU6lwiX.mjs.map} +1 -1
- package/dist/crashreport-WsYAWARW.mjs +1 -0
- package/dist/{logger-RgtbhJ83.mjs → errors-BXmGBX-7.mjs} +6 -3
- package/dist/errors-BXmGBX-7.mjs.map +1 -0
- package/dist/field-parse-BQhUAbpM.mjs +2 -0
- package/dist/{field-parse-C41e3UAF.mjs.map → field-parse-BQhUAbpM.mjs.map} +1 -1
- package/dist/guards-CiFVxoXR.mjs +2 -0
- package/dist/guards-CiFVxoXR.mjs.map +1 -0
- package/dist/kysely/index.d.mts +0 -2
- package/dist/{kysely-type-DxyIWXc6.mjs → kysely-type-B0ri1-Xs.mjs} +9 -7
- package/dist/kysely-type-B0ri1-Xs.mjs.map +1 -0
- package/dist/manager-B813m43t.mjs +2 -0
- package/dist/manager-B813m43t.mjs.map +1 -0
- package/dist/parser/service/idp/types.d.mts +1 -3
- package/dist/parser/service/tailordb/type-source.d.mts +1 -3
- package/dist/parser/service/tailordb/types.d.mts +0 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +0 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +0 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +0 -2
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +0 -2
- package/dist/plugin/builtin/seed/seed-type-processor.d.mts +1 -3
- package/dist/plugin/get-generated-table.d.mts +1 -3
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/types.d.mts +0 -2
- package/dist/plugin/with-context.d.mts +1 -3
- package/dist/register-ts-hook-CQ7shKO5.mjs +1055 -0
- package/dist/register-ts-hook-CQ7shKO5.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +1 -3
- package/dist/runtime/authconnection.d.mts +1 -3
- package/dist/runtime/context.d.mts +0 -2
- package/dist/runtime/date.d.mts +0 -2
- package/dist/runtime/field-parse.d.mts +0 -2
- package/dist/runtime/file.d.mts +0 -2
- package/dist/runtime/globals.d.mts +0 -2
- package/dist/runtime/iconv.d.mts +1 -3
- package/dist/runtime/idp.d.mts +1 -3
- package/dist/runtime/index.d.mts +1 -3
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/logger.d.mts +1 -3
- package/dist/runtime/secretmanager.d.mts +1 -3
- package/dist/runtime/temporal.d.mts +0 -2
- package/dist/runtime/types.d.mts +0 -2
- package/dist/runtime/workflow.d.mts +0 -2
- package/dist/{schema-B6hJQWp6.mjs → schema-BU1aIQ63.mjs} +2 -2
- package/dist/{schema-B6hJQWp6.mjs.map → schema-BU1aIQ63.mjs.map} +1 -1
- package/dist/secret-file-BxZ-J_Nz.mjs +2 -0
- package/dist/secret-file-BxZ-J_Nz.mjs.map +1 -0
- package/dist/seed/idp-user-password.d.mts +0 -2
- package/dist/seed/index.d.mts +0 -2
- package/dist/service-CaGmqg0r.mjs +2 -0
- package/dist/{service-9rwi_I4d.mjs.map → service-CaGmqg0r.mjs.map} +1 -1
- package/dist/service-DEq_hdht.mjs +1 -0
- package/dist/{service-9SBPNpK8.mjs → service-eeXdVrDK.mjs} +4 -4
- package/dist/service-eeXdVrDK.mjs.map +1 -0
- package/dist/shared/src/color.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/security_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +1 -3
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +1 -3
- package/dist/types/aigateway.generated.d.mts +1 -3
- package/dist/types/app-config.generated.d.mts +1 -3
- package/dist/types/auth-connection.generated.d.mts +1 -3
- package/dist/types/auth.generated.d.mts +1 -3
- package/dist/types/executor.generated.d.mts +1 -3
- package/dist/types/field.generated.d.mts +1 -3
- package/dist/types/helpers.d.mts +1 -3
- package/dist/types/http-adapter.generated.d.mts +1 -3
- package/dist/types/idp.generated.d.mts +1 -3
- package/dist/types/resolver.generated.d.mts +1 -3
- package/dist/types/secrets.generated.d.mts +1 -3
- package/dist/types/staticwebsite.generated.d.mts +1 -3
- package/dist/types/tailordb.generated.d.mts +1 -3
- package/dist/types/workflow.generated.d.mts +1 -3
- package/dist/utils/test/index.d.mts +1 -3
- package/dist/utils/test/index.mjs +1 -1
- package/dist/vitest/date-representation.d.mts +1 -3
- package/dist/vitest/environment.d.mts +0 -2
- package/dist/vitest/index.d.mts +0 -2
- package/dist/vitest/migration-steps.d.mts +1 -3
- package/dist/vitest/mock-kysely.d.mts +0 -2
- package/dist/vitest/mocks/aigateway.d.mts +0 -2
- package/dist/vitest/mocks/authconnection.d.mts +0 -2
- package/dist/vitest/mocks/file.d.mts +0 -2
- package/dist/vitest/mocks/iconv.d.mts +0 -2
- package/dist/vitest/mocks/idp.d.mts +0 -2
- package/dist/vitest/mocks/logger.d.mts +0 -2
- package/dist/vitest/mocks/secretmanager.d.mts +0 -2
- package/dist/vitest/mocks/tailordb-pglite.d.mts +0 -2
- package/dist/vitest/mocks/tailordb.d.mts +0 -2
- package/dist/vitest/mocks/workflow.d.mts +0 -2
- package/dist/vitest/pglite-kysely.d.mts +0 -2
- package/dist/vitest/pglite-temporal.d.mts +1 -3
- package/dist/vitest/setup.d.mts +0 -2
- package/dist/vitest/workflow-local.d.mts +0 -2
- package/docs/cli/application.md +2 -1
- package/docs/cli/tailordb.md +9 -7
- package/docs/cli/user.md +5 -5
- package/docs/cli/workspace.md +1 -1
- package/docs/cli-reference.md +27 -26
- package/docs/configuration.md +15 -2
- package/docs/github-actions.md +33 -10
- package/docs/services/secret.md +6 -0
- package/docs/services/tailordb/index.md +23 -0
- package/docs/services/tailordb/migration.md +14 -9
- package/docs/testing.md +2 -2
- package/package.json +12 -12
- package/dist/application-B9_NHiUC.mjs +0 -207
- package/dist/application-B9_NHiUC.mjs.map +0 -1
- package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +0 -1
- package/dist/crashreport-IN6H7GX3.mjs +0 -1
- package/dist/errors-BOF68LJ5.mjs +0 -5
- package/dist/errors-BOF68LJ5.mjs.map +0 -1
- package/dist/field-parse-C41e3UAF.mjs +0 -2
- package/dist/guards-yDXyKC9F.mjs +0 -2
- package/dist/guards-yDXyKC9F.mjs.map +0 -1
- package/dist/kysely-type-DxyIWXc6.mjs.map +0 -1
- package/dist/logger-RgtbhJ83.mjs.map +0 -1
- package/dist/manager-DTRhIupk.mjs +0 -2
- package/dist/manager-DTRhIupk.mjs.map +0 -1
- package/dist/register-ts-hook-Dp9reSRG.mjs +0 -1053
- package/dist/register-ts-hook-Dp9reSRG.mjs.map +0 -1
- package/dist/secret-file-C9wp_FCX.mjs +0 -2
- package/dist/secret-file-C9wp_FCX.mjs.map +0 -1
- package/dist/service-9SBPNpK8.mjs.map +0 -1
- package/dist/service-9rwi_I4d.mjs +0 -2
- package/dist/service-Ca1WwyIt.mjs +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/query/index.d.ts
|
|
3
2
|
declare const queryOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodOptional<z.ZodString>;
|
|
5
4
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -34,5 +33,4 @@ type QueryDispatchResult = SQLQueryDispatchResult | GQLQueryDispatchResult;
|
|
|
34
33
|
* @returns Dispatch result
|
|
35
34
|
*/
|
|
36
35
|
export declare function query(options: QueryOptions): Promise<QueryDispatchResult>;
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import "../../plugin/manager.mjs";
|
|
2
|
-
import "./tailordb/service.mjs";
|
|
3
|
-
import "./auth/service.mjs";
|
|
4
1
|
import "../../configure/config/types.mjs";
|
|
5
|
-
import "
|
|
2
|
+
import "../shared/sourcemap-sources.mjs";
|
|
6
3
|
import "../cache/bundle-cache.mjs";
|
|
7
4
|
import "../shared/tsconfig-paths-plugin.mjs";
|
|
8
5
|
import "./http-adapter/bundler.mjs";
|
|
6
|
+
import "../../plugin/manager.mjs";
|
|
7
|
+
import "./tailordb/service.mjs";
|
|
8
|
+
import "./auth/service.mjs";
|
|
9
|
+
import "./executor/service.mjs";
|
|
9
10
|
import "./http-adapter/service.mjs";
|
|
10
11
|
import "./resolver/service.mjs";
|
|
12
|
+
import "../shared/sdk-builder-pure-plugin.mjs";
|
|
11
13
|
import "../shared/start-context.mjs";
|
|
12
14
|
import "./workflow/bundler.mjs";
|
|
13
15
|
import "./workflow/service.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "../../../types
|
|
2
|
-
import "../../../
|
|
1
|
+
import "../../../configure/config/types.mjs";
|
|
2
|
+
import "../../../types/executor.generated.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../configure/config/types.mjs";
|
|
2
|
+
import "../shared/sourcemap-sources.mjs";
|
|
3
|
+
import "../cache/bundle-cache.mjs";
|
|
4
|
+
import "../shared/tsconfig-paths-plugin.mjs";
|
|
5
|
+
import "../shared/platform-bundle-plugin.mjs";
|
|
6
|
+
import "../shared/sdk-builder-pure-plugin.mjs";
|
|
7
|
+
import "../shared/start-context.mjs";
|
|
8
|
+
import "rolldown";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../../../configure/config/types.mjs";
|
|
2
2
|
import "../../cache/bundle-cache.mjs";
|
|
3
3
|
import "../../shared/tsconfig-paths-plugin.mjs";
|
|
4
|
-
import "../../../parser/service/http-adapter/index.mjs";
|
|
4
|
+
import "../../../parser/service/http-adapter/index.mjs";
|
|
5
|
+
export interface HttpAdapterBundleResult {
|
|
6
|
+
/** Adapter name → bundled input JS string. */
|
|
7
|
+
bundledInputs: Map<string, string>;
|
|
8
|
+
/** Adapter name → bundled output JS string. Only populated when the adapter has an output. */
|
|
9
|
+
bundledOutputs: Map<string, string>;
|
|
10
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "../../../
|
|
2
|
-
import "../../../
|
|
1
|
+
import "../../../configure/config/types.mjs";
|
|
2
|
+
import "../../../plugin/manager.mjs";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../tailor-proto/src/tailor/v1/resource_pb.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/cli/shared/args.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Schema for sort order (`asc` or `desc`).
|
|
6
5
|
*/
|
|
@@ -80,5 +79,4 @@ export declare const confirmationArgs: {
|
|
|
80
79
|
yes: z.ZodDefault<z.ZodBoolean>;
|
|
81
80
|
};
|
|
82
81
|
export type CommonArgsType = z.infer<z.ZodObject<typeof commonArgs>>;
|
|
83
|
-
//#endregion
|
|
84
82
|
export {};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
//#region src/cli/shared/beta.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Warn that a feature is in beta.
|
|
4
3
|
* @param {string} featureName - Name of the beta feature (e.g., "tailordb migration")
|
|
5
4
|
*/
|
|
6
|
-
export declare function logBetaWarning(featureName: string): void;
|
|
7
|
-
//#endregion
|
|
5
|
+
export declare function logBetaWarning(featureName: string): void;
|
|
@@ -20,7 +20,6 @@ import { CreateOTLPExporterRequestSchema, CreateOTLPExporterResponseSchema, Crea
|
|
|
20
20
|
import { OperatorService, PingRequestSchema, PingResponseSchema } from "../../tailor-proto/src/tailor/v1/service_pb.mjs";
|
|
21
21
|
import "@badgateway/oauth2-client";
|
|
22
22
|
import { Client } from "@connectrpc/connect";
|
|
23
|
-
//#region src/cli/shared/client.d.ts
|
|
24
23
|
export type PlatformClientConfig = {
|
|
25
24
|
platformUrl?: string;
|
|
26
25
|
oauth2ClientId?: string;
|
|
@@ -29,6 +28,9 @@ export type PlatformClientConfig = {
|
|
|
29
28
|
export type OperatorClient = Client<typeof OperatorService>;
|
|
30
29
|
/**
|
|
31
30
|
* Initialize an Operator client with the given access token.
|
|
31
|
+
* A client created with a token that `loadAccessToken` returned for a browser login
|
|
32
|
+
* (`tailor login`) renews the token while it runs, so it keeps working past the token's
|
|
33
|
+
* lifetime; this can refresh and save the stored login. Other tokens are sent as given.
|
|
32
34
|
* @param accessToken - Access token for authentication
|
|
33
35
|
* @param config - Optional platform connection settings
|
|
34
36
|
* @returns Configured Operator client
|
|
@@ -1374,5 +1376,4 @@ export declare function initOperatorClient(accessToken: string, config?: Platfor
|
|
|
1374
1376
|
input: typeof DeleteResourceAttributesConfigRequestSchema;
|
|
1375
1377
|
output: typeof DeleteResourceAttributesConfigResponseSchema;
|
|
1376
1378
|
};
|
|
1377
|
-
}>>>;
|
|
1378
|
-
//#endregion
|
|
1379
|
+
}>>>;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CommonArgsType } from "./args.mjs";
|
|
2
|
-
import {
|
|
3
|
-
//#region src/cli/shared/command.d.ts
|
|
2
|
+
import { createDefineCommand } from "@politty/zod";
|
|
4
3
|
/**
|
|
5
4
|
* defineCommand with global args type (CommonArgsType).
|
|
6
5
|
* Use this for leaf commands with `run` to get type-safe access to global args.
|
|
7
6
|
* Parent commands with only `subCommands` can use `defineCommand` from politty directly.
|
|
8
7
|
*/
|
|
9
|
-
export declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
10
|
-
//#endregion
|
|
8
|
+
export declare const defineAppCommand: ReturnType<typeof createDefineCommand<CommonArgsType>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "../../plugin/types.mjs";
|
|
2
1
|
import { AppConfig, EnvValue } from "../../configure/config/types.mjs";
|
|
3
|
-
|
|
2
|
+
import { Plugin } from "../../plugin/types.mjs";
|
|
4
3
|
/**
|
|
5
4
|
* App config whose `env` entries have been resolved to the values that get
|
|
6
5
|
* deployed: the `{ value, allowSecretReason }` form accepted in `defineConfig`
|
|
@@ -27,5 +26,4 @@ export interface LoadConfigOptions {
|
|
|
27
26
|
export declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
28
27
|
config: LoadedConfig;
|
|
29
28
|
plugins: Plugin[];
|
|
30
|
-
}>;
|
|
31
|
-
//#endregion
|
|
29
|
+
}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
2
|
-
//#region src/cli/shared/config.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Extracts namespace keys under `config.db` that this app owns
|
|
5
4
|
* (i.e. not declared with `{ external: true }`). Use this for destructive
|
|
@@ -8,5 +7,4 @@ import { LoadedConfig } from "./config-loader.mjs";
|
|
|
8
7
|
* @param config - Loaded application configuration.
|
|
9
8
|
* @returns Owned namespace names in insertion order.
|
|
10
9
|
*/
|
|
11
|
-
export declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
12
|
-
//#endregion
|
|
10
|
+
export declare function extractOwnedNamespaces(config: LoadedConfig): string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./args.mjs";
|
|
2
2
|
import "./client.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/shared/context.d.ts
|
|
5
4
|
type LoadWorkspaceIdOptions = {
|
|
6
5
|
workspaceId?: string;
|
|
7
6
|
profile?: string;
|
|
@@ -25,5 +24,4 @@ export declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<
|
|
|
25
24
|
* @returns Resolved access token
|
|
26
25
|
*/
|
|
27
26
|
export declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
|
|
28
|
-
//#endregion
|
|
29
27
|
export {};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Jsonifiable } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/error-diagnostics.d.ts
|
|
3
2
|
/** Where a failure originated, for tooling that links to source. */
|
|
4
3
|
export interface ErrorSourceLocation {
|
|
5
4
|
/** Absolute path to the file the failure points at. */
|
|
6
5
|
file: string;
|
|
7
6
|
/** 1-based line within `file`. */
|
|
8
7
|
line?: number;
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
8
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Jsonifiable } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/error-json.d.ts
|
|
3
2
|
export interface ErrorToJsonOptions {
|
|
4
3
|
/** Include the original stack trace in the error envelope. */
|
|
5
4
|
includeStack?: boolean;
|
|
@@ -40,5 +39,4 @@ export declare function errorToJson(error: unknown, options?: ErrorToJsonOptions
|
|
|
40
39
|
* @param options - JSON serialization options
|
|
41
40
|
* @returns Serialized JSON error envelope
|
|
42
41
|
*/
|
|
43
|
-
export declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function serializeError(error: unknown, options?: ErrorToJsonOptions): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "../../tailor-proto/src/tailor/v1/function_resource_pb.mjs";
|
|
2
|
-
//#region src/cli/shared/function-execution.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* A structured log line recorded while a function execution ran.
|
|
5
4
|
*/
|
|
@@ -10,5 +9,4 @@ export interface FunctionLogEntryInfo {
|
|
|
10
9
|
severity: string;
|
|
11
10
|
/** When the line was logged, or null when unknown */
|
|
12
11
|
timestamp: Date | null;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
12
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ErrorSourceLocation } from "./error-diagnostics.mjs";
|
|
2
|
-
//#region src/cli/shared/github-actions.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Attach the source location a failure points at.
|
|
5
4
|
*
|
|
@@ -20,5 +19,4 @@ export declare function withSourceLocation<T extends Error>(error: T, location:
|
|
|
20
19
|
export declare function annotateTerminalError(error: unknown, options: {
|
|
21
20
|
jsonMode: boolean;
|
|
22
21
|
suggestion?: string;
|
|
23
|
-
}): void;
|
|
24
|
-
//#endregion
|
|
22
|
+
}): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StyleFn } from "../../shared/src/color.mjs";
|
|
2
|
-
//#region src/cli/shared/logger.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* What selected JSON output: an explicit `--json`, the environment, both, or
|
|
5
4
|
* the AI coding agent running the CLI.
|
|
@@ -62,7 +61,12 @@ export declare const logger: {
|
|
|
62
61
|
* @param source - What turned it on; omit when turning it off
|
|
63
62
|
*/
|
|
64
63
|
setJsonMode(value: boolean, source?: JsonModeSource): void;
|
|
65
|
-
verbose: boolean;
|
|
64
|
+
get verbose(): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Turn verbose output on or off, overriding `DEBUG` and `RUNNER_DEBUG`.
|
|
67
|
+
* @param value - Whether verbose output is on, or undefined to defer to `DEBUG` and `RUNNER_DEBUG`
|
|
68
|
+
*/
|
|
69
|
+
set verbose(value: boolean | undefined);
|
|
66
70
|
info(message: string, opts?: LogOptions): void;
|
|
67
71
|
success(message: string, opts?: LogOptions): void;
|
|
68
72
|
warn(message: string, opts?: LogOptions): void;
|
|
@@ -89,5 +93,4 @@ export declare const logger: {
|
|
|
89
93
|
*/
|
|
90
94
|
registerSecret(value: string): void;
|
|
91
95
|
out(data: string | object | object[], options?: OutOptions): void;
|
|
92
|
-
};
|
|
93
|
-
//#endregion
|
|
96
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "rolldown";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/shared/prompt.d.ts
|
|
2
1
|
/** Options accepted by {@link prompt.confirm}. */
|
|
3
2
|
export interface ConfirmConfig {
|
|
4
3
|
message: string;
|
|
@@ -48,5 +47,4 @@ export declare const prompt: {
|
|
|
48
47
|
text: (config: TextConfig) => Promise<string>;
|
|
49
48
|
password: (config: PasswordConfig) => Promise<string>;
|
|
50
49
|
select: <const Value>(config: SelectConfig<Value>) => Promise<Value>;
|
|
51
|
-
};
|
|
52
|
-
//#endregion
|
|
50
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/shared/readonly-guard.d.ts
|
|
2
1
|
interface AssertWritableOptions {
|
|
3
2
|
/** Explicit profile name from command args. Falls back to TAILOR_PLATFORM_PROFILE. */
|
|
4
3
|
profile?: string;
|
|
@@ -21,5 +20,4 @@ interface AssertWritableOptions {
|
|
|
21
20
|
* @param opts.profile - Optional explicit profile name from command args
|
|
22
21
|
*/
|
|
23
22
|
export declare function assertWritable(opts?: AssertWritableOptions): Promise<void>;
|
|
24
|
-
//#endregion
|
|
25
23
|
export {};
|
|
@@ -3,7 +3,6 @@ import { FunctionExecution_Status } from "../../tailor-proto/src/tailor/v1/funct
|
|
|
3
3
|
import { OperatorClient } from "./client.mjs";
|
|
4
4
|
import { MessageInitShape } from "@bufbuild/protobuf";
|
|
5
5
|
import { Jsonifiable } from "type-fest";
|
|
6
|
-
//#region src/cli/shared/script-executor.d.ts
|
|
7
6
|
/** Authentication context for script execution, provided as a plain object. */
|
|
8
7
|
export type ScriptInvoker = MessageInitShape<typeof AuthInvokerSchema>;
|
|
9
8
|
/**
|
|
@@ -72,5 +71,4 @@ export declare function waitForExecution(client: OperatorClient, workspaceId: st
|
|
|
72
71
|
* @param {ScriptExecutionOptions} options - Execution options
|
|
73
72
|
* @returns {Promise<ScriptExecutionResult>} Execution result
|
|
74
73
|
*/
|
|
75
|
-
export declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
76
|
-
//#endregion
|
|
74
|
+
export declare function executeScript<T extends Jsonifiable = Jsonifiable>(options: ScriptExecutionOptions<T>): Promise<ScriptExecutionResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "rolldown";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JsonObject } from "type-fest";
|
|
2
|
-
//#region src/cli/shared/seed-chunker.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Seed data keyed by table name, with an array of records per table.
|
|
5
4
|
*/
|
|
@@ -40,5 +39,4 @@ export type ChunkSeedDataOptions = {
|
|
|
40
39
|
* @param options - Chunking options
|
|
41
40
|
* @returns Array of seed chunks
|
|
42
41
|
*/
|
|
43
|
-
export declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
44
|
-
//#endregion
|
|
42
|
+
export declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
2
2
|
import { SeedNamespaceConfig } from "../../plugin/builtin/seed/seed-type-processor.mjs";
|
|
3
|
-
//#region src/cli/shared/seed-context.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* IdP `_User` seeding context, present when the config uses the built-in IdP
|
|
6
5
|
* with a user profile type.
|
|
@@ -52,5 +51,4 @@ export interface LoadSeedContextOptions {
|
|
|
52
51
|
* @returns The seed context computed from the local config.
|
|
53
52
|
*/
|
|
54
53
|
export declare function loadSeedContext(options?: LoadSeedContextOptions): Promise<SeedContext>;
|
|
55
|
-
//#endregion
|
|
56
54
|
export type { SeedNamespaceConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../../configure/config/types.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Plugin, TailorDBNamespaceData } from "../../plugin/types.mjs";
|
|
2
2
|
import { LoadedConfig } from "./config-loader.mjs";
|
|
3
3
|
import "../services/application.mjs";
|
|
4
|
-
//#region src/cli/shared/tailordb-namespaces.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Namespace selection for {@link loadTailorDBNamespaces}: explicit namespace
|
|
7
6
|
* names, or a selector deriving them from the loaded config and its plugins.
|
|
@@ -35,5 +34,4 @@ export interface LoadedTailorDBNamespaces {
|
|
|
35
34
|
* @param options - Namespace loading options.
|
|
36
35
|
* @returns The loaded config and TailorDB namespace data.
|
|
37
36
|
*/
|
|
38
|
-
export declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
39
|
-
//#endregion
|
|
37
|
+
export declare function loadTailorDBNamespaces(options?: LoadTailorDBNamespacesOptions): Promise<LoadedTailorDBNamespaces>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../configure/config/types.mjs";
|
|
2
2
|
import { ResolvedEnvAppConfig } from "./config-loader.mjs";
|
|
3
|
-
//#region src/cli/shared/type-generator.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options for generating user type definitions
|
|
6
5
|
*/
|
|
@@ -16,5 +15,4 @@ interface GenerateUserTypesOptions {
|
|
|
16
15
|
* @returns Promise that resolves when types are generated
|
|
17
16
|
*/
|
|
18
17
|
export declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
|
|
19
|
-
//#endregion
|
|
20
18
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/shared/workspace-name.d.ts
|
|
3
2
|
/** Maximum number of characters in a workspace name. */
|
|
4
3
|
export declare const WORKSPACE_NAME_MAX_LENGTH = 63;
|
|
5
4
|
/**
|
|
@@ -7,5 +6,4 @@ export declare const WORKSPACE_NAME_MAX_LENGTH = 63;
|
|
|
7
6
|
* lowercase alphanumeric or hyphen characters, not starting or ending with a
|
|
8
7
|
* hyphen.
|
|
9
8
|
*/
|
|
10
|
-
export declare const workspaceNameSchema: z.ZodString;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare const workspaceNameSchema: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# politty-completion-version: 1
|
|
2
|
-
# politty-bin-sig:
|
|
2
|
+
# politty-bin-sig: 1793059475
|
|
3
3
|
# politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor
|
|
4
4
|
# program: tailor
|
|
5
5
|
# shell: zsh
|
|
@@ -1309,7 +1309,7 @@ __tailor_worker_complete_auth() {
|
|
|
1309
1309
|
__tailor_worker_cdescribe 'options' _opts
|
|
1310
1310
|
return 0
|
|
1311
1311
|
fi
|
|
1312
|
-
local -a _subs=("status:Show the active Tailor Platform authentication status without printing tokens." "token:Print a valid Tailor Platform access token to stdout, refreshing it first if
|
|
1312
|
+
local -a _subs=("status:Show the active Tailor Platform authentication status without printing tokens." "token:Print a valid Tailor Platform access token to stdout, refreshing it first if it expires within five minutes.")
|
|
1313
1313
|
__tailor_worker_cdescribe 'subcommands' _subs
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
@@ -3502,9 +3502,9 @@ __tailor_worker_complete_tailordb_migration_generate() {
|
|
|
3502
3502
|
__tailor_worker_not_used "--yes" "-y" "--y" && _opts+=("--yes:Skip confirmation prompts")
|
|
3503
3503
|
__tailor_worker_not_used "--config" "-c" "--c" && _opts+=("--config:Path to Tailor config file")
|
|
3504
3504
|
__tailor_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Optional description for the migration")
|
|
3505
|
-
__tailor_worker_not_used "--init" && _opts+=("--init:Delete existing migrations and start fresh")
|
|
3505
|
+
__tailor_worker_not_used "--init" && _opts+=("--init:Delete existing migrations and start fresh (all namespaces with migrations configured, or only the one given by --namespace)")
|
|
3506
3506
|
__tailor_worker_not_used "--data-only" "--dataOnly" && _opts+=("--data-only:Create a migration with no schema changes whose migration script runs a standalone data transformation")
|
|
3507
|
-
__tailor_worker_not_used "--namespace" && _opts+=("--namespace:Target TailorDB namespace for --data-only (required if multiple namespaces exist)")
|
|
3507
|
+
__tailor_worker_not_used "--namespace" && _opts+=("--namespace:Target TailorDB namespace for --data-only (required if multiple namespaces exist), or the only namespace --init resets")
|
|
3508
3508
|
_opts+=("--rename:Record a field, table, or nested member rename instead of remove + add (format\: \"Table.oldField\:newField\", \"OldTable\:NewTable\", or \"Table.field.oldMember\:newMember\"; repeatable). Renames require a migration script that copies the data.")
|
|
3509
3509
|
_opts+=("--drop:Confirm that a removed field, table, or nested member is a genuine removal, not a rename (format\: \"Table.field\", \"Table\", or \"Table.field.member\"; repeatable). Required in non-interactive runs for a removal with rename candidates.")
|
|
3510
3510
|
_opts+=("--expand-contract:Convert a field type, or a single value into an array, through a temporary field (format\: \"Table.field\"; repeatable). Generates two migrations.")
|
|
@@ -3994,7 +3994,7 @@ __tailor_worker_complete_tailordb_migration() {
|
|
|
3994
3994
|
__tailor_worker_cdescribe 'options' _opts
|
|
3995
3995
|
return 0
|
|
3996
3996
|
fi
|
|
3997
|
-
local -a _subs=("generate:Generate migration files by detecting schema differences between current local tables and the previous migration snapshot." "rebaseline:Collapse the full migration history into a new 0000 baseline." "resolve:Settle a migration that a failed deploy left partially applied." "script:Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none." "set:Set migration checkpoint to a specific number." "status:Show the current migration status for TailorDB namespaces, including applied and pending migrations." "sync:Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift)." "test:Test pending migrations with seed fixtures or cloned data in a temporary workspace." "validate:Validate the full migration history, unreviewed generated migration scripts, and schema drift (local tables vs. migration snapshot, remote schema vs. migration checkpoint) without deploying. This includes the migration and schema-drift checks used by 'deploy' and exits with a non-zero code when issues are found.")
|
|
3997
|
+
local -a _subs=("generate:Generate migration files by detecting schema differences between current local tables and the previous migration snapshot." "rebaseline:Collapse the full migration history into a new 0000 baseline." "resolve:Settle a migration that a failed deploy left partially applied, or whose run a deploy could not confirm." "script:Add a migration script (migrate.ts) template to an existing migration directory, or record with --no-script that a migration intentionally has none." "set:Set migration checkpoint to a specific number." "status:Show the current migration status for TailorDB namespaces, including applied and pending migrations." "sync:Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift)." "test:Test pending migrations with seed fixtures or cloned data in a temporary workspace." "validate:Validate the full migration history, unreviewed generated migration scripts, and schema drift (local tables vs. migration snapshot, remote schema vs. migration checkpoint) without deploying. This includes the migration and schema-drift checks used by 'deploy' and exits with a non-zero code when issues are found.")
|
|
3998
3998
|
__tailor_worker_cdescribe 'subcommands' _subs
|
|
3999
3999
|
}
|
|
4000
4000
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TailorAnyDBField } from "../services/tailordb/types.mjs";
|
|
2
|
-
import { Plugin } from "../../plugin/types.mjs";
|
|
3
2
|
import { AppConfig } from "./types.mjs";
|
|
4
|
-
|
|
3
|
+
import { Plugin } from "../../plugin/types.mjs";
|
|
5
4
|
/**
|
|
6
5
|
* Define a Tailor SDK application configuration with shallow exactness.
|
|
7
6
|
* @template Config
|
|
@@ -18,5 +17,4 @@ export declare function defineConfig<const Config extends AppConfig & Record<Exc
|
|
|
18
17
|
* @param configs - Plugin configurations
|
|
19
18
|
* @returns Plugin configurations as given
|
|
20
19
|
*/
|
|
21
|
-
export declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any, Record<string, TailorAnyDBField>>[];
|
|
22
|
-
//#endregion
|
|
20
|
+
export declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any, Record<string, TailorAnyDBField>>[];
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
+
import { AIGatewayConfig } from "../services/aigateway/types.mjs";
|
|
1
2
|
import { TailorDBServiceInput } from "../services/tailordb/types.mjs";
|
|
2
3
|
import { AuthConfig } from "../services/auth/types.mjs";
|
|
3
|
-
import { AIGatewayConfig } from "../services/aigateway/types.mjs";
|
|
4
4
|
import { IdPConfig } from "../services/idp/types.mjs";
|
|
5
5
|
import { ResolverPermission } from "../services/resolver/permission.mjs";
|
|
6
6
|
import { SecretsConfig } from "../services/secrets/types.mjs";
|
|
7
7
|
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
|
-
//#region src/configure/config/types.d.ts
|
|
11
10
|
export type LogLevel = LogLevelEnum;
|
|
12
11
|
export type LogLevelInput = LogLevel | (string & {});
|
|
13
12
|
/**
|
|
@@ -55,6 +54,16 @@ export interface TreeshakeOptions {
|
|
|
55
54
|
*/
|
|
56
55
|
propertyReadSideEffects?: boolean;
|
|
57
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Which of your own source files embed their text in the inline sourcemap. Both fields
|
|
59
|
+
* are globs relative to the directory containing the config file, without a leading `./`.
|
|
60
|
+
*/
|
|
61
|
+
export interface InlineSourcemapProjectSources {
|
|
62
|
+
/** Only files matching one of these keep their text. All files when omitted. */
|
|
63
|
+
include?: string[];
|
|
64
|
+
/** Files matching one of these lose their text, even when `include` matches them. */
|
|
65
|
+
exclude?: string[];
|
|
66
|
+
}
|
|
58
67
|
/** Options for how `defineConfig()` bundles functions. */
|
|
59
68
|
export interface BuildOptions {
|
|
60
69
|
/**
|
|
@@ -67,13 +76,28 @@ export interface BuildOptions {
|
|
|
67
76
|
* the inline sourcemap. By default only your own source text is embedded, which
|
|
68
77
|
* makes bundled functions much smaller. Set `true` to embed all installed packages,
|
|
69
78
|
* or list package names (such as `["kysely", "@scope/lib"]`) to embed only those.
|
|
70
|
-
* A listed package's own dependencies are not embedded unless they are listed too.
|
|
79
|
+
* A listed package's own dependencies are not embedded unless they are listed too.
|
|
80
|
+
* Files under `node_modules` that belong to no package, such as `node_modules/.prisma`,
|
|
81
|
+
* are embedded only with `true`. Error positions still resolve to the
|
|
71
82
|
* original files and lines; `tailor function run` shows a code snippet for a frame
|
|
72
83
|
* inside an installed package only when that package's file exists locally.
|
|
73
84
|
* Only applies when `inlineSourcemap` is enabled.
|
|
74
85
|
* @default false
|
|
75
86
|
*/
|
|
76
87
|
inlineSourcemapDependencySources?: boolean | string[];
|
|
88
|
+
/**
|
|
89
|
+
* Choose which of your own source files embed their text in the inline sourcemap.
|
|
90
|
+
* `include` and `exclude` are globs relative to the directory containing the config
|
|
91
|
+
* file, without a leading `./` (such as `["src/**"]` or `["src/generated/**"]`). Only
|
|
92
|
+
* files matching `include` (all files when omitted) and not matching `exclude` keep
|
|
93
|
+
* their text. `**` does not match a dot-directory such as `src/.cache`. Files under
|
|
94
|
+
* `node_modules` are controlled by `inlineSourcemapDependencySources` instead.
|
|
95
|
+
* Error positions still resolve to the original files and lines; `tailor function
|
|
96
|
+
* run` shows no code snippet for a frame in a file whose text is left out.
|
|
97
|
+
* Only applies when `inlineSourcemap` is enabled.
|
|
98
|
+
* @example inlineSourcemapProjectSources: { exclude: ["src/generated/**"] }
|
|
99
|
+
*/
|
|
100
|
+
inlineSourcemapProjectSources?: InlineSourcemapProjectSources;
|
|
77
101
|
/**
|
|
78
102
|
* Controls which `console.*` and `logger.*` (from `@tailor-platform/sdk/runtime`)
|
|
79
103
|
* calls remain in bundled functions. `logger.setAttributes` has no severity and
|
|
@@ -287,5 +311,4 @@ export interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdP
|
|
|
287
311
|
*/
|
|
288
312
|
maintenanceMode?: false | "migration" | "deploy";
|
|
289
313
|
}
|
|
290
|
-
//#endregion
|
|
291
314
|
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { AuthNamespaceName, AuthNamespaceNameRegistry } from "./types/auth-namespace-name.mjs";
|
|
2
|
+
import { AIGatewayConfig } from "./services/aigateway/types.mjs";
|
|
1
3
|
import { DeepWritable, NullableToOptional, output as output$1 } from "../types/helpers.mjs";
|
|
2
4
|
import { DateFieldOptions, DateFieldValue, DateRepresentationRegistry, DateTimeFieldOptions, DateTimeFieldValue, FieldMetadata, FieldOptions, FieldOutput, TailorFieldType, TimeFieldOptions, TimeFieldValue } from "./types/field.types.mjs";
|
|
3
5
|
import { AttributeList, Attributes, Env, TailorPrincipal } from "../runtime/types.mjs";
|
|
@@ -5,13 +7,6 @@ import { IsAutoFilledDBField, IsReadOnlyDBField, PluginAttachment } from "./serv
|
|
|
5
7
|
import { AuthConnectionConfig, AuthConnectionOAuth2Config } from "../types/auth-connection.generated.mjs";
|
|
6
8
|
import { BuiltinIdP, IDToken, IdProvider, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider } from "../types/auth.generated.mjs";
|
|
7
9
|
import { AuthConfig, AuthConnectionTokenResult, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BeforeLoginClaims, BeforeLoginHookArgs, DefinedAuth, FederatedIdentity, FederatedIdentityClaims, FederatedIdentityProvider, MachineUserName, MachineUserNameRegistry, OAuth2ClientGrantType, SCIMAttributeType, UserAttributeKey, UserAttributeListKey, UserAttributes, UsernameFieldKey, ValueOperand } from "./services/auth/types.mjs";
|
|
8
|
-
import { AllowedValues, AllowedValuesOutput } from "./types/field.mjs";
|
|
9
|
-
import { Resolver } from "../types/resolver.generated.mjs";
|
|
10
|
-
import { DeployedApplication, DeployedContext, DeployedHookResult, DeployedOAuth2Client, DeployedStaticWebsite, ExecutorReadyContext, GeneratorResult, NamespacePluginOutput, Plugin, PluginConfigs, PluginExecOptions, PluginExecResult, PluginExecutorContext, PluginExecutorContextBase, PluginFieldExtensions, PluginGeneratedExecutor, PluginGeneratedExecutorWithFile, PluginGeneratedResolver, PluginGeneratedTable, PluginLogger, PluginNamespaceProcessContext, PluginOutput, PluginOutputValue, PluginTableProcessContext, PublishStaticWebsiteResult, PublishableStaticWebsite, ResolverNamespaceData, ResolverReadyContext, TablePluginOutput, TailorDBNamespaceData, TailorDBReadyContext, TailorDBTableForPlugin } from "../plugin/types.mjs";
|
|
11
|
-
import { PermissionCondition, TailorTypeGqlPermission, TailorTypePermission, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission } from "./services/tailordb/permission.mjs";
|
|
12
|
-
import { TailorAnyDBField, TailorAnyDBType, TailorDBField, TailorDBInstance, TailorDBType, db } from "./services/tailordb/schema.mjs";
|
|
13
|
-
import { AuthNamespaceName, AuthNamespaceNameRegistry } from "./types/auth-namespace-name.mjs";
|
|
14
|
-
import { AIGatewayConfig } from "./services/aigateway/types.mjs";
|
|
15
10
|
import { IdPPermission, IdPPermissionCondition, unsafeAllowAllIdPPermission } from "./services/idp/permission.mjs";
|
|
16
11
|
import { IdPEmailConfig, IdPGqlOperations, IdPGqlOperationsInput } from "../types/idp.generated.mjs";
|
|
17
12
|
import { IdPConfig, IdPExternalConfig } from "./services/idp/types.mjs";
|
|
@@ -20,6 +15,11 @@ import { SecretsConfig } from "./services/secrets/types.mjs";
|
|
|
20
15
|
import { StaticWebsiteConfig } from "./services/staticwebsite/types.mjs";
|
|
21
16
|
import { ExecutionPolicyConcurrency, ExecutionPolicyDefInput, ExecutionPolicyExactInstance, ExecutionPolicyGroupOptions, ExecutionPolicyInstance, ExecutionPolicyWildcardInstance, ResolvedExecutionPolicyInstance } from "./services/workflow/execution-policy.types.mjs";
|
|
22
17
|
import { ExecutorServiceConfig, ExecutorServiceInput, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, WorkflowServiceConfig, WorkflowServiceInput } from "./config/types.mjs";
|
|
18
|
+
import { AllowedValues, AllowedValuesOutput } from "./types/field.mjs";
|
|
19
|
+
import { Resolver } from "../types/resolver.generated.mjs";
|
|
20
|
+
import { DeployedApplication, DeployedContext, DeployedHookResult, DeployedOAuth2Client, DeployedStaticWebsite, ExecutorReadyContext, GeneratorResult, NamespacePluginOutput, Plugin, PluginConfigs, PluginExecOptions, PluginExecResult, PluginExecutorContext, PluginExecutorContextBase, PluginFieldExtensions, PluginGeneratedExecutor, PluginGeneratedExecutorWithFile, PluginGeneratedResolver, PluginGeneratedTable, PluginLogger, PluginNamespaceProcessContext, PluginOutput, PluginOutputValue, PluginTableProcessContext, PublishStaticWebsiteResult, PublishableStaticWebsite, ResolverNamespaceData, ResolverReadyContext, TablePluginOutput, TailorDBNamespaceData, TailorDBReadyContext, TailorDBTableForPlugin } from "../plugin/types.mjs";
|
|
21
|
+
import { PermissionCondition, TailorTypeGqlPermission, TailorTypePermission, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission } from "./services/tailordb/permission.mjs";
|
|
22
|
+
import { TailorAnyDBField, TailorAnyDBType, TailorDBField, TailorDBInstance, TailorDBType, db } from "./services/tailordb/schema.mjs";
|
|
23
23
|
import { ConcurrencyPolicy, RetryPolicy } from "../types/workflow.generated.mjs";
|
|
24
24
|
import "./types/machine-user.mjs";
|
|
25
25
|
import { TailorAnyField, TailorField } from "./types/type.mjs";
|
|
@@ -48,7 +48,6 @@ import { defineSecretManager } from "./services/secrets/index.mjs";
|
|
|
48
48
|
import { HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, createHttpAdapter } from "./services/http-adapter/http-adapter.mjs";
|
|
49
49
|
import "./services/index.mjs";
|
|
50
50
|
import { defineConfig, definePlugins } from "./config/index.mjs";
|
|
51
|
-
//#region src/configure/index.d.ts
|
|
52
51
|
type TailorOutput<T> = output$1<T>;
|
|
53
52
|
export type infer<T> = TailorOutput<T>;
|
|
54
53
|
export type output<T> = TailorOutput<T>;
|
|
@@ -169,5 +168,4 @@ export declare namespace t {
|
|
|
169
168
|
type output<T> = TailorOutput<T>;
|
|
170
169
|
type infer<T> = TailorOutput<T>;
|
|
171
170
|
}
|
|
172
|
-
//#endregion
|
|
173
171
|
export { type AIGatewayConfig, type AIGatewayName, type AIGatewayNameRegistry, type AttributeList, type Attributes, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthNamespaceName, type AuthNamespaceNameRegistry, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type ConnectionName, type ConnectionNameRegistry, type DateRepresentationRegistry, type DefinedAuth, type DeployedApplication, type DeployedContext, type DeployedHookResult, type DeployedOAuth2Client, type DeployedStaticWebsite, type Env, type ExecutionPolicyConcurrency, type ExecutionPolicyDefInput, type ExecutionPolicyExactInstance, type ExecutionPolicyGroupOptions, type ExecutionPolicyInstance, type ExecutionPolicyWildcardInstance, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type IsAutoFilledDBField, type IsReadOnlyDBField, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, ParameterizedWaitPointInstance, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecOptions, type PluginExecResult, type PluginExecutorContext, type PluginExecutorContextBase, type PluginFieldExtensions, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedTable, type PluginLogger, type PluginNamespaceProcessContext, type PluginOutput, type PluginOutputValue, type PluginTableProcessContext, type PublishStaticWebsiteResult, type PublishableStaticWebsite, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type ResolvedExecutionPolicyInstance, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverPermission, type ResolverPermissionCondition, type ResolverPermissionPolicy, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretNameFor, type SecretVaultName, type SecretVaultNameRegistry, type SecretsConfig, type StaticWebsiteConfig, type TablePluginOutput, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, type TailorDBTableForPlugin, TailorDBTrigger, type TailorDBType, type TailorField, type TailorPrincipal, type TailorTypeGqlPermission, type TailorTypePermission, type TenantProvider as TenantProviderConfig, Trigger, type UserAttributeKey, type UserAttributeListKey, type UserAttributes, type UsernameFieldKey, type ValueOperand, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowExecutionArgs, WorkflowExecutionCompletedArgs, WorkflowExecutionResumedArgs, WorkflowExecutionRetriedArgs, WorkflowExecutionStartedArgs, WorkflowExecutionTrigger, WorkflowExecutionWaitResolvedArgs, WorkflowExecutionWaitStartedArgs, WorkflowJob, WorkflowJobContext, WorkflowJobExecutionArgs, WorkflowJobExecutionCompletedArgs, WorkflowJobExecutionStartedArgs, WorkflowJobExecutionTrigger, WorkflowJobExecutionWaitResolvedArgs, WorkflowJobExecutionWaitStartedArgs, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWaitPoint, createWaitPoints, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission, workflowExecutionCompletedTrigger, workflowExecutionResumedTrigger, workflowExecutionRetriedTrigger, workflowExecutionStartedTrigger, workflowExecutionTrigger, workflowExecutionWaitResolvedTrigger, workflowExecutionWaitStartedTrigger, workflowJobExecutionCompletedTrigger, workflowJobExecutionStartedTrigger, workflowJobExecutionTrigger, workflowJobExecutionWaitResolvedTrigger, workflowJobExecutionWaitStartedTrigger };
|
package/dist/configure/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e}from"../field-parse-
|
|
1
|
+
import{i as e}from"../field-parse-BQhUAbpM.mjs";import{n as t,t as n}from"../schema-BU1aIQ63.mjs";import{t as r}from"../brand-C8nMKhJC.mjs";import{a as i,n as a,r as o}from"../registry-BijIDRVA.mjs";import{l as s,n as c,r as l,t as u}from"../wait-point-invoker-eiP-IIux.mjs";import{a as d,i as f,o as p,r as m}from"../wait-point-registry-B-ESkTZX.mjs";function createTailorField(n,r,i,a,o){let s=o?{...o,...o.allowedValues&&{allowedValues:o.allowedValues.map(e=>({...e}))},...o.validate&&{validate:o.validate.map(e=>Array.isArray(e)?[...e]:e)}}:{required:!0};o||(r&&(r.optional===!0&&(s.required=!1),r.array===!0&&(s.array=!0)),a&&(s.allowedValues=t(a)));function parseInternal$1(t){return e({...t,field:c})}function cloneWith(e){let t=c.clone();return Object.assign(t._metadata,e),t}let c={type:n,fields:i??{},_defined:void 0,_output:void 0,_metadata:s,get metadata(){return{...this._metadata}},description(e){return cloneWith({description:e})},typeName(e){return cloneWith({typeName:e})},validate(...e){return cloneWith({validate:e})},parse(e){return parseInternal$1({value:e.value,data:e.data,invoker:e.invoker,pathArray:[]})},clone(){let e=i;if(i){let t={};for(let[e,n]of Object.entries(i))t[e]=n.clone();e=t}return createTailorField(n,r,e,a,this._metadata)}};return c}function uuid(e){return createTailorField(`uuid`,e)}function string(e){return createTailorField(`string`,e)}function bool(e){return createTailorField(`boolean`,e)}function int(e){return createTailorField(`integer`,e)}function float(e){return createTailorField(`float`,e)}function decimal(e){return createTailorField(`decimal`,e)}function date(...e){let[t]=e,n=createTailorField(`date`,t);return n._metadata.as=t?.as??`default`,n}function datetime(...e){let[t]=e,n=createTailorField(`datetime`,t);return n._metadata.as=t?.as??`default`,n}function time(...e){let[t]=e,n=createTailorField(`time`,t);return n._metadata.as=t?.as??`default`,n}function _enum(e,t){return createTailorField(`enum`,t,void 0,e)}function object(e,t){return createTailorField(`nested`,t,e)}const h={uuid,string,bool,int,float,decimal,date,datetime,time,enum:_enum,object};/* @__NO_SIDE_EFFECTS__ */
|
|
2
2
|
function defineAuth(e,t){return{...t,name:e}}const g={create:[{conditions:[],permit:!0}],read:[{conditions:[],permit:!0}],update:[{conditions:[],permit:!0}],delete:[{conditions:[],permit:!0}]},_=[{conditions:[],actions:`all`,permit:!0}];/* @__NO_SIDE_EFFECTS__ */
|
|
3
3
|
function createResolver(e){let t=(e=>typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`)(e.output)?e.output:h.object(e.output);return r({...e,output:t},`resolver`)}/* @__NO_SIDE_EFFECTS__ */
|
|
4
4
|
function createExecutor(e){return r(e,`executor`)}const v={created:`tailordb.type_record.created`,updated:`tailordb.type_record.updated`,deleted:`tailordb.type_record.deleted`};function recordCreatedTrigger(e){let{type:t,condition:n}=e;return{kind:`tailordb`,events:[`tailordb.type_record.created`],tableName:t.name,condition:n,__args:{}}}function recordUpdatedTrigger(e){let{type:t,condition:n}=e;return{kind:`tailordb`,events:[`tailordb.type_record.updated`],tableName:t.name,condition:n,__args:{}}}function recordDeletedTrigger(e){let{type:t,condition:n}=e;return{kind:`tailordb`,events:[`tailordb.type_record.deleted`],tableName:t.name,condition:n,__args:{}}}function recordTrigger(e){let{type:t,events:n,condition:r}=e;return{kind:`tailordb`,events:n.map(e=>v[e]),tableName:t.name,condition:r,__args:{}}}function resolverExecutedTrigger(e){let{resolver:t,condition:n}=e;return{kind:`resolverExecuted`,resolverName:t.name,condition:n,__args:{}}}const y={created:`idp.user.created`,updated:`idp.user.updated`,deleted:`idp.user.deleted`};function idpUserCreatedTrigger(e){return{kind:`idpUser`,events:[`idp.user.created`],...e?.idp==null?{}:{idp:e.idp},__args:{}}}function idpUserUpdatedTrigger(e){return{kind:`idpUser`,events:[`idp.user.updated`],...e?.idp==null?{}:{idp:e.idp},__args:{}}}function idpUserDeletedTrigger(e){return{kind:`idpUser`,events:[`idp.user.deleted`],...e?.idp==null?{}:{idp:e.idp},__args:{}}}function idpUserTrigger(e){let{events:t,idp:n}=e;return{kind:`idpUser`,events:t.map(e=>y[e]),...n==null?{}:{idp:n},__args:{}}}const b={issued:`auth.access_token.issued`,refreshed:`auth.access_token.refreshed`,revoked:`auth.access_token.revoked`};function authAccessTokenIssuedTrigger(){return{kind:`authAccessToken`,events:[`auth.access_token.issued`],__args:{}}}function authAccessTokenRefreshedTrigger(){return{kind:`authAccessToken`,events:[`auth.access_token.refreshed`],__args:{}}}function authAccessTokenRevokedTrigger(){return{kind:`authAccessToken`,events:[`auth.access_token.revoked`],__args:{}}}function authAccessTokenTrigger(e){let{events:t}=e;return{kind:`authAccessToken`,events:t.map(e=>b[e]),__args:{}}}const x={started:`workflow.workflow_execution.started`,completed:`workflow.workflow_execution.completed`,retried:`workflow.workflow_execution.retried`,resumed:`workflow.workflow_execution.resumed`,wait_started:`workflow.workflow_execution.wait_started`,wait_resolved:`workflow.workflow_execution.wait_resolved`};function workflowExecutionTriggerConfig(e,t){return{kind:`workflowExecution`,events:e,workflowName:t.workflow.name,condition:t.condition,__args:{}}}function workflowExecutionStartedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.started`],e)}function workflowExecutionCompletedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.completed`],e)}function workflowExecutionRetriedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.retried`],e)}function workflowExecutionResumedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.resumed`],e)}function workflowExecutionWaitStartedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.wait_started`],e)}function workflowExecutionWaitResolvedTrigger(e){return workflowExecutionTriggerConfig([`workflow.workflow_execution.wait_resolved`],e)}function workflowExecutionTrigger(e){let{events:t,workflow:n,condition:r}=e;return workflowExecutionTriggerConfig(t.map(e=>x[e]),{workflow:n,condition:r})}const S={started:`workflow.workflow_execution.job_execution.started`,completed:`workflow.workflow_execution.job_execution.completed`,wait_started:`workflow.workflow_execution.job_execution.wait_started`,wait_resolved:`workflow.workflow_execution.job_execution.wait_resolved`};function workflowJobExecutionTriggerConfig(e,t){return{kind:`workflowJobExecution`,events:e,workflowName:t.workflow.name,condition:t.condition,__args:{}}}function workflowJobExecutionStartedTrigger(e){return workflowJobExecutionTriggerConfig([`workflow.workflow_execution.job_execution.started`],e)}function workflowJobExecutionCompletedTrigger(e){return workflowJobExecutionTriggerConfig([`workflow.workflow_execution.job_execution.completed`],e)}function workflowJobExecutionWaitStartedTrigger(e){return workflowJobExecutionTriggerConfig([`workflow.workflow_execution.job_execution.wait_started`],e)}function workflowJobExecutionWaitResolvedTrigger(e){return workflowJobExecutionTriggerConfig([`workflow.workflow_execution.job_execution.wait_resolved`],e)}function workflowJobExecutionTrigger(e){let{events:t,workflow:n,condition:r}=e;return workflowJobExecutionTriggerConfig(t.map(e=>S[e]),{workflow:n,condition:r})}function scheduleTrigger(e){let{cron:t,timezone:n}=e;return{kind:`schedule`,cron:t,timezone:n,__args:{}}}function incomingWebhookTrigger(e){let t=typeof e?.response==`function`?{body:e.response}:e?.response;return{kind:`incomingWebhook`,...t?{response:t}:{},__args:{}}}const C=/^[a-z0-9][a-z0-9_:.-]{0,62}[a-z0-9]$/;function createExecutionPolicyInstance(e,t,n,i,a,o,s){let c=i===`prefix`,l={name:e,key:t,matchType:i,...n&&{concurrencyPolicy:n},...c&&{keyFor:e=>{let t=`${l.key}${a}${e}`;if(!C.test(t))throw Error(`Invalid execution policy key "${t}" built by keyFor("${e}"): must match [a-z0-9_:.-] (2-64 chars; must start and end with [a-z0-9]).`);return t}}};return{instance:r(l,`execution-policy`),setName:o?e=>{l.name=e}:void 0,setKey:s?e=>{l.key=e}:void 0}}/* @__NO_SIDE_EFFECTS__ */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AIGatewayConfig, AIGatewayDefinitionBrand, AIGatewayServiceInput } from "./types.mjs";
|
|
2
|
-
//#region src/configure/services/aigateway/index.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Define an AI Gateway configuration for the Tailor SDK.
|
|
5
4
|
* @param name - AI Gateway name
|
|
@@ -11,5 +10,4 @@ export declare function defineAIGateway(name: string, config: Omit<AIGatewayServ
|
|
|
11
10
|
readonly cors?: string[] | undefined;
|
|
12
11
|
readonly authNamespace?: import("@tailor-platform/sdk").AuthNamespaceName;
|
|
13
12
|
} & AIGatewayDefinitionBrand;
|
|
14
|
-
//#endregion
|
|
15
13
|
export type { AIGatewayConfig };
|