@tailor-platform/sdk 2.32.0 → 2.34.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 +102 -0
- package/dist/ai/index.d.mts +1 -3
- package/dist/application-CwpOIOTt.mjs +1 -0
- package/dist/application-Nce5z46R.mjs +207 -0
- package/dist/application-Nce5z46R.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 +2 -0
- 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 +1 -3
- 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 +65 -50
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +0 -2
- package/dist/cli/services/application.d.mts +5 -4
- package/dist/cli/services/executor/service.d.mts +2 -2
- package/dist/cli/services/function-bundle.d.mts +7 -0
- package/dist/cli/services/http-adapter/bundler.d.mts +7 -1
- package/dist/cli/services/resolver/service.d.mts +2 -1
- 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 +56 -4
- 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/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/cli/ts-hook.d.mts +0 -2
- package/dist/cli/ts-hook.mjs +0 -113
- package/dist/completion/zsh-worker.zsh +26 -6
- 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 +6 -3
- 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-CBwsdx16.mjs → kysely-type-DxyIWXc6.mjs} +3 -3
- package/dist/kysely-type-DxyIWXc6.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/enum-constants/index.mjs +2 -2
- package/dist/plugin/builtin/enum-constants/index.mjs.map +1 -1
- 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 +3 -2
- package/dist/plugin/with-context.d.mts +1 -3
- package/dist/register-ts-hook-CtWJL3EO.mjs +1054 -0
- package/dist/register-ts-hook-CtWJL3EO.mjs.map +1 -0
- package/dist/repl-editor-DkrCZmmg.mjs +2 -0
- package/dist/repl-editor-DkrCZmmg.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/service_pb-6EkMfdOb.mjs +2 -0
- package/dist/service_pb-6EkMfdOb.mjs.map +1 -0
- package/dist/service_pb-CsJKokDl.mjs +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 +6 -5
- 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 +211 -0
- package/dist/tailor-proto/src/tailor/v1/security_resource_pb.d.mts +299 -0
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +201 -11
- 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 +201 -3
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +88 -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 +10 -4
- 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 +2 -4
- package/dist/vitest/index.mjs +1 -1
- package/dist/vitest/index.mjs.map +1 -1
- 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 +19 -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/dist/{workspace_resource_pb-CaoM2npP.mjs → workspace_resource_pb-C4CkoYww.mjs} +2 -2
- package/dist/workspace_resource_pb-C4CkoYww.mjs.map +1 -0
- package/docs/cli/application.md +2 -1
- package/docs/cli/tailordb.md +1 -1
- package/docs/cli/user.md +5 -5
- package/docs/cli/workspace.md +1 -1
- package/docs/cli-reference.md +26 -25
- package/docs/configuration.md +13 -2
- package/docs/github-actions.md +33 -10
- package/docs/plugin/custom.md +34 -0
- package/docs/plugin/index.md +1 -0
- package/docs/services/secret.md +6 -0
- package/docs/services/staticwebsite.md +31 -1
- package/docs/services/tailordb/index.md +19 -0
- package/docs/services/tailordb/migration.md +35 -12
- package/docs/testing.md +2 -2
- package/package.json +16 -16
- package/dist/application-C2bPmmbh.mjs +0 -1
- package/dist/application-D0xNJbag.mjs +0 -199
- package/dist/application-D0xNJbag.mjs.map +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-CBwsdx16.mjs.map +0 -1
- package/dist/logger-RgtbhJ83.mjs.map +0 -1
- package/dist/manager-Bk-7vkwd.mjs +0 -2
- package/dist/manager-Bk-7vkwd.mjs.map +0 -1
- package/dist/register-ts-hook-_dHIREtU.mjs +0 -1050
- package/dist/register-ts-hook-_dHIREtU.mjs.map +0 -1
- package/dist/repl-editor-DGJBfIt1.mjs +0 -2
- package/dist/repl-editor-DGJBfIt1.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
- package/dist/service_pb-Bbu2QSIr.mjs +0 -2
- package/dist/service_pb-Bbu2QSIr.mjs.map +0 -1
- package/dist/service_pb-urxAIYHT.mjs +0 -1
- package/dist/workspace_resource_pb-CaoM2npP.mjs.map +0 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { SnapshotFieldConfig, SnapshotGqlPermission, SnapshotIndexConfig, SnapshotRecordPermission, SnapshotRelationship, TailorDBSnapshotType } from "./snapshot-types.mjs";
|
|
2
|
-
//#region src/cli/commands/tailordb/migrate/diff-calculator.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Properties shared by all diff change variants
|
|
5
4
|
*/
|
|
@@ -299,5 +298,4 @@ export declare function formatMigrationDiff(diff: MigrationDiff): string;
|
|
|
299
298
|
* @returns {string} Formatted summary string
|
|
300
299
|
*/
|
|
301
300
|
export declare function formatDiffSummary(diff: MigrationDiff): string;
|
|
302
|
-
//#endregion
|
|
303
301
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/tailordb/migrate/generate.d.ts
|
|
3
2
|
export interface GenerateOptions {
|
|
4
3
|
configPath?: string;
|
|
5
4
|
name?: string;
|
|
@@ -24,5 +23,4 @@ export interface GenerateOptions {
|
|
|
24
23
|
* @param {GenerateOptions} options - Generation options
|
|
25
24
|
* @returns {Promise<void>} Promise that resolves when generation is complete
|
|
26
25
|
*/
|
|
27
|
-
export declare function generate(options: GenerateOptions): Promise<void>;
|
|
28
|
-
//#endregion
|
|
26
|
+
export declare function generate(options: GenerateOptions): Promise<void>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/commands/tailordb/migrate/rename-detection.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* A confirmed field rename to record in the migration diff.
|
|
4
3
|
*/
|
|
@@ -30,5 +29,4 @@ export interface TypeRenameSpec {
|
|
|
30
29
|
previousTableName: string;
|
|
31
30
|
/** Type name after the rename. */
|
|
32
31
|
tableName: string;
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
32
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { NormalizedSchemaSnapshot, SchemaSnapshot, TailorDBSnapshotType } from "./snapshot-types.mjs";
|
|
2
2
|
import { MigrationDiff } from "./diff-calculator.mjs";
|
|
3
3
|
import { FieldRenameSpec, NestedMemberRenameSpec, TypeRenameSpec } from "./rename-detection.mjs";
|
|
4
|
-
//#region src/cli/commands/tailordb/migrate/snapshot-comparison.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Options for {@link compareSnapshots}.
|
|
7
6
|
*/
|
|
@@ -44,5 +43,4 @@ export declare function compareSnapshots(previous: NormalizedSchemaSnapshot, cur
|
|
|
44
43
|
* @param {string} namespace - Namespace for comparison
|
|
45
44
|
* @returns {MigrationDiff} Migration diff
|
|
46
45
|
*/
|
|
47
|
-
export declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBSnapshotType>, namespace: string): MigrationDiff;
|
|
48
|
-
//#endregion
|
|
46
|
+
export declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBSnapshotType>, namespace: string): MigrationDiff;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/commands/tailordb/migrate/snapshot-files.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Initial schema migration number (0000)
|
|
4
3
|
*/
|
|
@@ -61,5 +60,4 @@ export declare function getNextMigrationNumber(migrationsDir: string): number;
|
|
|
61
60
|
* @param {string} migrationsDir - Migrations directory path
|
|
62
61
|
* @returns {number} Latest migration number or 0 if no migrations exist
|
|
63
62
|
*/
|
|
64
|
-
export declare function getLatestMigrationNumber(migrationsDir: string): number;
|
|
65
|
-
//#endregion
|
|
63
|
+
export declare function getLatestMigrationNumber(migrationsDir: string): number;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { TailorDBType } from "../../../../parser/service/tailordb/types.mjs";
|
|
2
2
|
import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
|
|
3
|
-
//#region src/cli/commands/tailordb/migrate/snapshot-local.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Create a schema snapshot from local table definitions
|
|
6
5
|
* @param {Record<string, TailorDBType>} types - Local table definitions
|
|
7
6
|
* @param {string} namespace - Namespace for the snapshot
|
|
8
7
|
* @returns {NormalizedSchemaSnapshot} Normalized schema snapshot
|
|
9
8
|
*/
|
|
10
|
-
export declare function createSnapshotFromLocalTypes(types: Record<string, TailorDBType>, namespace: string): NormalizedSchemaSnapshot;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare function createSnapshotFromLocalTypes(types: Record<string, TailorDBType>, namespace: string): NormalizedSchemaSnapshot;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
|
|
2
|
-
//#region src/cli/commands/tailordb/migrate/snapshot-migrations.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Reconstruct the latest schema snapshot from all migration files
|
|
5
4
|
* Returns null if no migrations exist
|
|
@@ -7,5 +6,4 @@ import { NormalizedSchemaSnapshot } from "./snapshot-types.mjs";
|
|
|
7
6
|
* @param {number} [maxVersion] - Optional maximum migration version to apply
|
|
8
7
|
* @returns {NormalizedSchemaSnapshot | null} Reconstructed normalized snapshot or null if no migrations exist
|
|
9
8
|
*/
|
|
10
|
-
export declare function reconstructSnapshotFromMigrations(migrationsDir: string, maxVersion?: number): NormalizedSchemaSnapshot | null;
|
|
11
|
-
//#endregion
|
|
9
|
+
export declare function reconstructSnapshotFromMigrations(migrationsDir: string, maxVersion?: number): NormalizedSchemaSnapshot | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/cli/commands/tailordb/migrate/snapshot-types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Schema snapshot data model for TailorDB migrations.
|
|
4
3
|
*
|
|
@@ -214,5 +213,4 @@ declare const normalizedSchemaSnapshotBrand: unique symbol;
|
|
|
214
213
|
export type NormalizedSchemaSnapshot = SchemaSnapshot & {
|
|
215
214
|
readonly [normalizedSchemaSnapshotBrand]: true;
|
|
216
215
|
};
|
|
217
|
-
//#endregion
|
|
218
216
|
export {};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
//#region src/cli/commands/tailordb/migrate/types.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Label key for storing migration state in TailorDB Service metadata
|
|
4
3
|
*/
|
|
5
|
-
export declare const MIGRATION_LABEL_KEY = "sdk-migration";
|
|
6
|
-
//#endregion
|
|
4
|
+
export declare const MIGRATION_LABEL_KEY = "sdk-migration";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/tailordb/truncate.d.ts
|
|
3
2
|
export interface TruncateOptions {
|
|
4
3
|
workspaceId?: string;
|
|
5
4
|
profile?: string;
|
|
@@ -13,5 +12,4 @@ export interface TruncateOptions {
|
|
|
13
12
|
* @param options - Truncate options (all, namespace, or tables)
|
|
14
13
|
* @returns Promise that resolves when truncation completes
|
|
15
14
|
*/
|
|
16
|
-
export declare function truncate(options?: TruncateOptions): Promise<void>;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare function truncate(options?: TruncateOptions): Promise<void>;
|
|
@@ -4,7 +4,6 @@ import { WorkflowWaitUntil } from "./status.mjs";
|
|
|
4
4
|
import { WorkflowWaitResult } from "./waiter.mjs";
|
|
5
5
|
import { FunctionLogEntryInfo } from "../../shared/function-execution.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
|
-
//#region src/cli/commands/workflow/executions.d.ts
|
|
8
7
|
type WorkflowLike = {
|
|
9
8
|
name: string;
|
|
10
9
|
};
|
|
@@ -60,5 +59,4 @@ export declare function listWorkflowExecutions<W extends WorkflowLike>(options?:
|
|
|
60
59
|
* @returns Workflow execution with optional logs
|
|
61
60
|
*/
|
|
62
61
|
export declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
|
|
63
|
-
//#endregion
|
|
64
62
|
export {};
|
|
@@ -2,7 +2,6 @@ import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
|
|
|
2
2
|
import "../../shared/client.mjs";
|
|
3
3
|
import { WorkflowInfo } from "./transform.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
//#region src/cli/commands/workflow/get.d.ts
|
|
6
5
|
type WorkflowLike = {
|
|
7
6
|
name: string;
|
|
8
7
|
};
|
|
@@ -17,5 +16,4 @@ export type GetWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = {
|
|
|
17
16
|
* @returns Workflow information
|
|
18
17
|
*/
|
|
19
18
|
export declare function getWorkflow<W extends WorkflowLike>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Order } from "../../shared/args.mjs";
|
|
2
2
|
import { WorkflowListInfo } from "./transform.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/commands/workflow/list.d.ts
|
|
5
4
|
export interface ListWorkflowsOptions {
|
|
6
5
|
workspaceId?: string;
|
|
7
6
|
profile?: string;
|
|
@@ -13,5 +12,4 @@ export interface ListWorkflowsOptions {
|
|
|
13
12
|
* @param options - Workflow listing options
|
|
14
13
|
* @returns List of workflows
|
|
15
14
|
*/
|
|
16
|
-
export declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WorkflowWaitResult } from "./waiter.mjs";
|
|
2
2
|
import { WaitOptions } from "./start.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/commands/workflow/resume.d.ts
|
|
5
4
|
export interface ResumeWorkflowOptions {
|
|
6
5
|
executionId: string;
|
|
7
6
|
workspaceId?: string;
|
|
@@ -17,5 +16,4 @@ export interface ResumeWorkflowResultWithWait {
|
|
|
17
16
|
* @param options - Resume options
|
|
18
17
|
* @returns Resume result with wait helper
|
|
19
18
|
*/
|
|
20
|
-
export declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
21
|
-
//#endregion
|
|
19
|
+
export declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
@@ -4,7 +4,6 @@ import { WorkflowWaitResult } from "./waiter.mjs";
|
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { Jsonifiable } from "type-fest";
|
|
6
6
|
import { MachineUserName } from "@tailor-platform/sdk";
|
|
7
|
-
//#region src/cli/commands/workflow/start.d.ts
|
|
8
7
|
type WorkflowLike = {
|
|
9
8
|
name: string;
|
|
10
9
|
mainJob: {
|
|
@@ -44,5 +43,4 @@ export interface StartWorkflowResultWithWait {
|
|
|
44
43
|
* @returns Start result with wait helper
|
|
45
44
|
*/
|
|
46
45
|
export declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
47
|
-
//#endregion
|
|
48
46
|
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
|
|
2
|
-
//#region src/cli/commands/workflow/status.d.ts
|
|
3
2
|
export type WorkflowWaitUntil = "success" | "suspended" | "terminal";
|
|
4
|
-
export type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
|
|
5
|
-
//#endregion
|
|
3
|
+
export type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workflow_resource_pb.mjs";
|
|
2
|
-
//#region src/cli/commands/workflow/transform.d.ts
|
|
3
2
|
export interface WorkflowListInfo {
|
|
4
3
|
name: string;
|
|
5
4
|
mainJob: string;
|
|
@@ -29,5 +28,4 @@ export interface WorkflowExecutionInfo {
|
|
|
29
28
|
jobExecutions: number;
|
|
30
29
|
startedAt: Date | null;
|
|
31
30
|
finishedAt: Date | null;
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
31
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./waiter.mjs";
|
|
2
2
|
import { getWorkflowExecution } from "./executions.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/commands/workflow/wait.d.ts
|
|
5
4
|
export interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
6
5
|
jobDetails?: Awaited<ReturnType<typeof getWorkflowExecution>>["execution"]["jobDetails"];
|
|
7
6
|
}
|
|
@@ -10,5 +9,4 @@ export interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
|
10
9
|
* @param options - Workflow wait options
|
|
11
10
|
* @returns Workflow wait result
|
|
12
11
|
*/
|
|
13
|
-
export declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
|
|
14
|
-
//#endregion
|
|
12
|
+
export declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
|
|
@@ -2,7 +2,6 @@ import "../../shared/client.mjs";
|
|
|
2
2
|
import "../../shared/errors.mjs";
|
|
3
3
|
import { WorkflowExecutionInfo } from "./transform.mjs";
|
|
4
4
|
import { WorkflowExecutionStatusClass, WorkflowWaitUntil } from "./status.mjs";
|
|
5
|
-
//#region src/cli/commands/workflow/waiter.d.ts
|
|
6
5
|
export interface WaitWorkflowExecutionOptions {
|
|
7
6
|
executionId: string;
|
|
8
7
|
workspaceId?: string;
|
|
@@ -19,5 +18,4 @@ export interface WorkflowWaitResult extends WorkflowExecutionInfo {
|
|
|
19
18
|
attempts: number;
|
|
20
19
|
timedOut: boolean;
|
|
21
20
|
lastError: string | null;
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
21
|
+
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AppHealthInfo } from "./transform.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/cli/commands/workspace/app/health.d.ts
|
|
4
3
|
declare const healthOptionsSchema: z.ZodObject<{
|
|
5
4
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
5
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -13,5 +12,4 @@ export type HealthOptions = z.input<typeof healthOptionsSchema>;
|
|
|
13
12
|
* @returns Application health information
|
|
14
13
|
*/
|
|
15
14
|
export declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
|
|
16
|
-
//#endregion
|
|
17
15
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AppInfo } from "./transform.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/cli/commands/workspace/app/list.d.ts
|
|
4
3
|
declare const listAppsOptionsSchema: z.ZodObject<{
|
|
5
4
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
5
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +16,4 @@ export type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
|
|
|
17
16
|
* @returns List of applications
|
|
18
17
|
*/
|
|
19
18
|
export declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../../../tailor-proto/src/tailor/v1/application_resource_pb.mjs";
|
|
2
2
|
import "../../../../tailor-proto/src/tailor/v1/application_pb.mjs";
|
|
3
|
-
//#region src/cli/commands/workspace/app/transform.d.ts
|
|
4
3
|
export interface AppInfo {
|
|
5
4
|
name: string;
|
|
6
5
|
domain: string;
|
|
@@ -15,5 +14,4 @@ export interface AppHealthInfo {
|
|
|
15
14
|
lastAttemptStatus: string;
|
|
16
15
|
lastAttemptAt: Date | null;
|
|
17
16
|
lastAttemptError: string;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
17
|
+
}
|
|
@@ -3,7 +3,6 @@ import "../../shared/client.mjs";
|
|
|
3
3
|
import "../../shared/context.mjs";
|
|
4
4
|
import { WorkspaceInfo } from "./transform.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
//#region src/cli/commands/workspace/create.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* Schema for workspace creation options
|
|
9
8
|
* - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
|
|
@@ -40,5 +39,4 @@ export type TtlWriteResult = {
|
|
|
40
39
|
requested: string;
|
|
41
40
|
message: string;
|
|
42
41
|
};
|
|
43
|
-
//#endregion
|
|
44
42
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/workspace/delete.d.ts
|
|
3
2
|
declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodUUID;
|
|
5
4
|
}, z.core.$strip>;
|
|
@@ -10,5 +9,4 @@ export type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema
|
|
|
10
9
|
* @returns Promise that resolves when deletion completes
|
|
11
10
|
*/
|
|
12
11
|
export declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import "../deploy/label.mjs";
|
|
2
|
-
//#region src/cli/commands/workspace/expiry.d.ts
|
|
3
2
|
/** How a command reports a workspace's recorded expiry. */
|
|
4
|
-
export type ReportedExpiry = string | null | "invalid" | "unavailable";
|
|
5
|
-
//#endregion
|
|
3
|
+
export type ReportedExpiry = string | null | "invalid" | "unavailable";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WorkspaceDetails } from "./transform.mjs";
|
|
2
2
|
import { ReportedExpiry } from "./expiry.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region src/cli/commands/workspace/get.d.ts
|
|
5
4
|
declare const getWorkspaceOptionsSchema: z.ZodObject<{
|
|
6
5
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
6
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +16,4 @@ export type WorkspaceDetailsWithExpiry = WorkspaceDetails & {
|
|
|
17
16
|
* @returns Workspace details
|
|
18
17
|
*/
|
|
19
18
|
export declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetailsWithExpiry>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -2,7 +2,6 @@ import { Order } from "../../shared/args.mjs";
|
|
|
2
2
|
import { WorkspaceInfo } from "./transform.mjs";
|
|
3
3
|
import "./expiry.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
//#region src/cli/commands/workspace/list.d.ts
|
|
6
5
|
export interface ListWorkspacesOptions {
|
|
7
6
|
order?: Order;
|
|
8
7
|
limit?: number;
|
|
@@ -13,5 +12,4 @@ export interface ListWorkspacesOptions {
|
|
|
13
12
|
* @param options - Workspace listing options
|
|
14
13
|
* @returns List of workspaces
|
|
15
14
|
*/
|
|
16
|
-
export declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
17
|
-
//#endregion
|
|
15
|
+
export declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/workspace/restore.d.ts
|
|
3
2
|
declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodUUID;
|
|
5
4
|
}, z.core.$strip>;
|
|
@@ -10,5 +9,4 @@ export type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSche
|
|
|
10
9
|
* @returns Promise that resolves when restoration completes
|
|
11
10
|
*/
|
|
12
11
|
export declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
|
|
13
|
-
//#endregion
|
|
14
12
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import "../../../tailor-proto/src/tailor/v1/workspace_resource_pb.mjs";
|
|
2
2
|
import "../../shared/client.mjs";
|
|
3
|
-
//#region src/cli/commands/workspace/transform.d.ts
|
|
4
3
|
export interface WorkspaceInfo {
|
|
5
4
|
id: string;
|
|
6
5
|
name: string;
|
|
@@ -15,5 +14,4 @@ export interface WorkspaceDetails extends WorkspaceInfo {
|
|
|
15
14
|
deleteProtection: boolean;
|
|
16
15
|
organizationId: string;
|
|
17
16
|
folderId: string;
|
|
18
|
-
}
|
|
19
|
-
//#endregion
|
|
17
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/workspace/user/invite.d.ts
|
|
3
2
|
declare const inviteUserOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
5
4
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +16,4 @@ export type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
|
|
|
17
16
|
* @returns Promise that resolves when invitation is sent
|
|
18
17
|
*/
|
|
19
18
|
export declare function inviteUser(options: InviteUserOptions): Promise<void>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UserInfo } from "./transform.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
//#region src/cli/commands/workspace/user/list.d.ts
|
|
4
3
|
declare const listUsersOptionsSchema: z.ZodObject<{
|
|
5
4
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
5
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +16,4 @@ export type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
|
|
|
17
16
|
* @returns List of workspace users
|
|
18
17
|
*/
|
|
19
18
|
export declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/workspace/user/remove.d.ts
|
|
3
2
|
declare const removeUserOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
5
4
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -12,5 +11,4 @@ export type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
|
|
|
12
11
|
* @returns Promise that resolves when removal completes
|
|
13
12
|
*/
|
|
14
13
|
export declare function removeUser(options: RemoveUserOptions): Promise<void>;
|
|
15
|
-
//#endregion
|
|
16
14
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region src/cli/commands/workspace/user/update.d.ts
|
|
3
2
|
declare const updateUserOptionsSchema: z.ZodObject<{
|
|
4
3
|
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
5
4
|
profile: z.ZodOptional<z.ZodString>;
|
|
@@ -17,5 +16,4 @@ export type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
|
|
|
17
16
|
* @returns Promise that resolves when update completes
|
|
18
17
|
*/
|
|
19
18
|
export declare function updateUser(options: UpdateUserOptions): Promise<void>;
|
|
20
|
-
//#endregion
|
|
21
19
|
export {};
|
package/dist/cli/lib.d.mts
CHANGED
|
@@ -15,11 +15,11 @@ import { OperatorClient, initOperatorClient } from "./shared/client.mjs";
|
|
|
15
15
|
import { LoadedConfig, loadConfig } from "./shared/config-loader.mjs";
|
|
16
16
|
import { NormalizedSchemaSnapshot, SchemaSnapshot, SnapshotFieldConfig, TailorDBSnapshotType } from "./commands/tailordb/migrate/snapshot-types.mjs";
|
|
17
17
|
import { BreakingChangeInfo, MigrationDiff, formatDiffSummary, formatMigrationDiff, hasChanges } from "./commands/tailordb/migrate/diff-calculator.mjs";
|
|
18
|
+
import { MIGRATION_LABEL_KEY } from "./commands/tailordb/migrate/types.mjs";
|
|
18
19
|
import { compareLocalTypesWithSnapshot, compareSnapshots } from "./commands/tailordb/migrate/snapshot-comparison.mjs";
|
|
19
20
|
import { DB_PGLITE_SCHEMA_FILE_NAME, DB_TYPES_FILE_NAME, DIFF_FILE_NAME, INITIAL_SCHEMA_NUMBER, MIGRATE_FILE_NAME, MIGRATE_PGLITE_TEST_FILE_NAME, MIGRATE_TEST_FILE_NAME, SCHEMA_FILE_NAME, getLatestMigrationNumber, getMigrationDirPath, getMigrationFilePath, getMigrationFiles, getNextMigrationNumber } from "./commands/tailordb/migrate/snapshot-files.mjs";
|
|
20
21
|
import { reconstructSnapshotFromMigrations } from "./commands/tailordb/migrate/snapshot-migrations.mjs";
|
|
21
22
|
import { createSnapshotFromLocalTypes } from "./commands/tailordb/migrate/snapshot-local.mjs";
|
|
22
|
-
import { MIGRATION_LABEL_KEY } from "./commands/tailordb/migrate/types.mjs";
|
|
23
23
|
import "./commands/tailordb/migrate/snapshot.mjs";
|
|
24
24
|
import "./commands/deploy/function-registry.mjs";
|
|
25
25
|
import { NamespaceWithMigrations, getNamespacesWithMigrations } from "./commands/tailordb/migrate/config.mjs";
|
package/dist/cli/lib.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as ee,f as te}from"../errors-BXmGBX-7.mjs";import{$ as e,$r as t,$t as n,A as r,An as i,Ar as a,At as o,B as s,Br as c,Bt as l,C as u,Ct as d,Dn as f,Dr as p,E as m,En as h,Et as g,Fr as _,Ft as v,Gr as y,Gt as b,Hr as x,Ht as S,In as C,Ir as w,Ji as T,Jt as E,Kr as D,L as O,Lr as k,Lt as A,Mi as j,Mn as M,Mr as N,Mt as P,N as F,Nn as I,Nr as L,Nt as R,O as z,On as B,Ot as V,Pn as H,Pr as U,Qr as W,Qt as G,R as K,Sn as q,St as J,Ti as Y,Tn as X,U as Z,Ur as Q,Ut as ne,W as re,Wi as ie,Wr as ae,Xi as oe,Xt as $,Y as se,Yi as ce,Yr as le,Yt as ue,Z as de,Zt as fe,_ as pe,ai as me,at as he,bi as ge,br as _e,bt as ve,d as ye,ea as be,fr as xe,gt as Se,h as Ce,hi as we,ht as Te,i as Ee,ii as De,in as Oe,j as ke,jn as Ae,jr as je,kn as Me,kt as Ne,l as Pe,lt as Fe,mt as Ie,n as Le,oi as Re,p as ze,pt as Be,q as Ve,qi as He,r as Ue,rt as We,s as Ge,sn as Ke,st as qe,t as Je,tt as Ye,ua as Xe,ut as Ze,vi as Qe,vt as $e,x as et,xn as tt,y as nt,yi as rt,zt as it}from"../register-ts-hook-CtWJL3EO.mjs";import{ft as at}from"../application-Nce5z46R.mjs";import{t as ot}from"../type-source--ZNcV8RJ.mjs";import{arg as st,defineCommand as ct,runCommand as lt,runMain as ut}from"@politty/zod";await Je(new URL(`./ts-hook.mjs`,import.meta.url));export{je as DB_PGLITE_SCHEMA_FILE_NAME,N as DB_TYPES_FILE_NAME,L as DIFF_FILE_NAME,U as INITIAL_SCHEMA_NUMBER,_ as MIGRATE_FILE_NAME,w as MIGRATE_PGLITE_TEST_FILE_NAME,k as MIGRATE_TEST_FILE_NAME,le as MIGRATION_LABEL_KEY,c as SCHEMA_FILE_NAME,X as TAILOR_LOCK_FILENAME,h as TAILOR_LOCK_VERSION,tt as WORKSPACE_NAME_MAX_LENGTH,Le as annotateTerminalError,Qe as apiCall,f as appIdLockKey,n as apply,n as deploy,st as arg,rt as assertWritable,xe as bundleMigrationScript,fe as bundleSeedDumpScript,G as bundleSeedScript,E as chunkSeedData,W as compareLocalTypesWithSnapshot,t as compareSnapshots,He as configArg,T as confirmationArgs,ce as createCommonArgs,he as createFolder,p as createSnapshotFromLocalTypes,Ke as createWorkspace,ie as defineAppCommand,ct as defineCommand,We as deleteFolder,nt as deleteWorkspace,C as deployStaticWebsite,oe as deploymentArgs,I as ensureConfigId,Te as errorToJson,ue as executeScript,$e as extractOwnedNamespaces,B as findAppIdLock,De as formatDiffSummary,me as formatMigrationDiff,Ie as generate,H as generateUserTypes,u as getAppHealth,S as getExecutor,Ne as getExecutorJob,o as getExecutorWaitFailureMessage,Ye as getFolder,J as getFunctionRegistry,x as getLatestMigrationNumber,Ze as getMachineUserToken,Q as getMigrationDirPath,ae as getMigrationFilePath,y as getMigrationFiles,_e as getNamespacesWithMigrations,D as getNextMigrationNumber,Fe as getOAuth2Client,se as getOrganization,A as getWorkflow,it as getWorkflowExecution,pe as getWorkspace,Re as hasChanges,at as initOperatorClient,ze as inviteUser,ot as isPluginGeneratedTable,et as listApps,P as listExecutorJobs,V as listExecutors,e as listFolders,ve as listFunctionRegistries,Be as listMachineUsers,qe as listOAuth2Clients,Ve as listOrganizations,ye as listUsers,d as listWebhookExecutors,l as listWorkflowExecutions,r as listWorkflows,Oe as listWorkspaces,Y as loadAccessToken,ge as loadConfig,be as loadEnvFiles,ne as loadSeedContext,b as loadTailorDBNamespaces,j as loadWorkspaceId,O as logBetaWarning,te as logger,F as migrateGenerate,re as organizationTree,Me as parseAppIds,i as planAppIds,we as prompt,Ee as query,a as reconstructSnapshotFromMigrations,s as remove,Ae as removeAdoptedConfigIds,Pe as removeUser,M as resolveAppId,Ce as restoreWorkspace,z as resumeWorkflow,lt as runCommand,ut as runMain,Se as serializeError,K as show,v as startWorkflow,ee as styles,g as triggerExecutor,ke as truncate,de as updateFolder,Z as updateOrganization,Ge as updateUser,$ as waitForExecution,m as waitWorkflowExecution,R as watchExecutorJob,Ue as withSourceLocation,Xe as workspaceArgs,q as workspaceNameSchema};
|
|
2
2
|
//# sourceMappingURL=lib.mjs.map
|
package/dist/cli/lib.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.mjs","names":["logger","styles","listFolders","loadEnvFiles","listWorkflows","removeAdoptedConfigIds","DB_PGLITE_SCHEMA_FILE_NAME","getExecutorWaitFailureMessage","remove","listWorkflowExecutions","getAppHealth","listWebhookExecutors","findAppIdLock","waitWorkflowExecution","appIdLockKey","createSnapshotFromLocalTypes","triggerExecutor","deployStaticWebsite","MIGRATE_PGLITE_TEST_FILE_NAME","startWorkflow","getNextMigrationNumber","loadTailorDBNamespaces","defineAppCommand","getMigrationDirPath","getExecutor","MIGRATE_TEST_FILE_NAME","createCommonArgs","MIGRATION_LABEL_KEY","executeScript","configArg","logBetaWarning","getWorkflow","ensureConfigId","DIFF_FILE_NAME","listExecutorJobs","generateUserTypes","INITIAL_SCHEMA_NUMBER","watchExecutorJob","resumeWorkflow","parseAppIds","listExecutors","MIGRATE_FILE_NAME","compareSnapshots","deploy","show","getFunctionRegistry","TAILOR_LOCK_VERSION","updateOrganization","getMigrationFilePath","loadSeedContext","getLatestMigrationNumber","organizationTree","getMigrationFiles","bundleSeedDumpScript","getOrganization","deploymentArgs","waitForExecution","updateFolder","compareLocalTypesWithSnapshot","bundleSeedScript","getWorkspace","apiCall","hasChanges","createFolder","WORKSPACE_NAME_MAX_LENGTH","listFunctionRegistries","listUsers","bundleMigrationScript","serializeError","restoreWorkspace","errorToJson","query","formatMigrationDiff","truncate","loadWorkspaceId","resolveAppId","DB_TYPES_FILE_NAME","planAppIds","reconstructSnapshotFromMigrations","getExecutorJob","removeUser","workspaceArgs","getOAuth2Client","prompt","generate","annotateTerminalError","createWorkspace","inviteUser","listMachineUsers","listOrganizations","confirmationArgs","chunkSeedData","withSourceLocation","formatDiffSummary","listWorkspaces","deleteFolder","updateUser","listOAuth2Clients","registerTsHook","getFolder","getMachineUserToken","assertWritable","extractOwnedNamespaces","loadAccessToken","TAILOR_LOCK_FILENAME","listApps","workspaceNameSchema","deleteWorkspace","loadConfig","getNamespacesWithMigrations","SCHEMA_FILE_NAME","getWorkflowExecution","initOperatorClient","isPluginGeneratedTable","arg","defineCommand","generate$1","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"A,6qCAGA,MAAMkG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC,E"}
|
|
1
|
+
{"version":3,"file":"lib.mjs","names":["styles","logger","listFolders","compareSnapshots","deploy","listWorkflows","planAppIds","reconstructSnapshotFromMigrations","getExecutorWaitFailureMessage","remove","SCHEMA_FILE_NAME","listWorkflowExecutions","getAppHealth","listWebhookExecutors","appIdLockKey","createSnapshotFromLocalTypes","waitWorkflowExecution","TAILOR_LOCK_VERSION","triggerExecutor","MIGRATE_FILE_NAME","startWorkflow","getMigrationFiles","loadTailorDBNamespaces","getLatestMigrationNumber","getExecutor","deployStaticWebsite","MIGRATE_PGLITE_TEST_FILE_NAME","confirmationArgs","chunkSeedData","getNextMigrationNumber","logBetaWarning","MIGRATE_TEST_FILE_NAME","getWorkflow","loadWorkspaceId","resolveAppId","DB_TYPES_FILE_NAME","listExecutorJobs","generate$1","ensureConfigId","DIFF_FILE_NAME","watchExecutorJob","resumeWorkflow","findAppIdLock","listExecutors","generateUserTypes","INITIAL_SCHEMA_NUMBER","compareLocalTypesWithSnapshot","bundleSeedScript","show","workspaceNameSchema","getFunctionRegistry","loadAccessToken","TAILOR_LOCK_FILENAME","updateOrganization","getMigrationDirPath","loadSeedContext","organizationTree","defineAppCommand","getMigrationFilePath","deploymentArgs","waitForExecution","getOrganization","createCommonArgs","MIGRATION_LABEL_KEY","executeScript","updateFolder","bundleSeedDumpScript","getWorkspace","formatMigrationDiff","createFolder","loadConfig","getNamespacesWithMigrations","listFunctionRegistries","listUsers","loadEnvFiles","bundleMigrationScript","serializeError","restoreWorkspace","prompt","errorToJson","query","formatDiffSummary","listWorkspaces","truncate","removeAdoptedConfigIds","DB_PGLITE_SCHEMA_FILE_NAME","parseAppIds","getExecutorJob","removeUser","getOAuth2Client","generate","annotateTerminalError","hasChanges","inviteUser","listMachineUsers","listOrganizations","configArg","withSourceLocation","deleteFolder","updateUser","createWorkspace","listOAuth2Clients","registerTsHook","getFolder","workspaceArgs","getMachineUserToken","apiCall","extractOwnedNamespaces","listApps","WORKSPACE_NAME_MAX_LENGTH","deleteWorkspace","assertWritable","getWorkflowExecution","initOperatorClient","isPluginGeneratedTable","arg","defineCommand","runCommand","runMain"],"sources":["../../src/cli/lib.ts"],"sourcesContent":["// CLI API exports for programmatic usage\nimport { registerTsHook } from \"./shared/register-ts-hook\";\n\nawait registerTsHook(new URL(\"./ts-hook.mjs\", import.meta.url));\n\n// CLI foundation shared with plugins. Plugins resolve this package at runtime,\n// so logger state (--json / --verbose) set through these args reaches the SDK\n// code paths they call into. The @politty/zod surface is re-exported for the\n// same reason: arg metadata (aliases, env bindings, effects) lives in a\n// @politty/zod module-level registry, so registration and parsing must use\n// one @politty/zod copy.\nexport { arg, defineCommand, runCommand, runMain } from \"@politty/zod\";\nexport { logger, styles, type LogMode, type LogOptions, type OutOptions } from \"./shared/logger\";\nexport { defineAppCommand } from \"./shared/command\";\nexport { logBetaWarning } from \"./shared/beta\";\nexport { prompt } from \"./shared/prompt\";\nexport { WORKSPACE_NAME_MAX_LENGTH, workspaceNameSchema } from \"./shared/workspace-name\";\nexport {\n createCommonArgs,\n workspaceArgs,\n configArg,\n confirmationArgs,\n deploymentArgs,\n loadEnvFiles,\n type CommonArgsType,\n} from \"./shared/args\";\nexport { deploy, deploy as apply } from \"./commands/deploy/deploy\";\nexport type { DeployOptions, DeployOptions as ApplyOptions } from \"./commands/deploy/deploy\";\nexport type { BundledScripts } from \"./commands/deploy/function-registry\";\nexport { ensureConfigId } from \"./commands/deploy/config-id-injector\";\nexport {\n TAILOR_LOCK_FILENAME,\n TAILOR_LOCK_VERSION,\n appIdLockKey,\n findAppIdLock,\n parseAppIds,\n planAppIds,\n removeAdoptedConfigIds,\n resolveAppId,\n type AppIdEntry,\n type AppIdEntryInput,\n type AppIdLock,\n type AppIdPlan,\n type AppIdPlanMode,\n type AppIds,\n type PlanAppIdsParams,\n type RemoveAdoptedConfigIdsResult,\n type ResolveAppIdParams,\n} from \"./commands/deploy/app-id-lock\";\nexport { generate } from \"./commands/generate/service\";\nexport type { GenerateOptions } from \"./commands/generate/options\";\nexport { loadConfig, type LoadedConfig } from \"./shared/config-loader\";\nexport { extractOwnedNamespaces } from \"./shared/config\";\nexport { errorToJson, serializeError, type ErrorToJsonOptions } from \"./shared/error-json\";\nexport { annotateTerminalError, withSourceLocation } from \"./shared/github-actions\";\nexport type { ErrorSourceLocation } from \"./shared/error-diagnostics\";\nexport { generateUserTypes } from \"./shared/type-generator\";\nexport {\n loadTailorDBNamespaces,\n type TailorDBNamespaceSelector,\n type LoadTailorDBNamespacesOptions,\n type LoadedTailorDBNamespaces,\n} from \"./shared/tailordb-namespaces\";\nexport {\n deployStaticWebsite,\n type DeployResult as StaticWebsiteDeployResult,\n} from \"./commands/staticwebsite/deploy\";\nexport { assertWritable } from \"./shared/readonly-guard\";\nexport { isPluginGeneratedTable } from \"#/parser/service/tailordb/type-source\";\nexport type {\n GeneratorResult,\n Plugin,\n PluginAttachment,\n TailorDBNamespaceData,\n} from \"#/plugin/types\";\nexport type {\n TailorDBType,\n TypeSourceInfoEntry,\n ParsedField,\n OperatorFieldConfig,\n PluginGeneratedTableSource,\n} from \"#/parser/service/tailordb/types\";\nexport type { Resolver } from \"#/types/resolver.generated\";\nexport type { Executor } from \"#/types/executor.generated\";\n\nexport {\n show,\n type ShowOptions,\n type ApplicationInfo,\n type ShowInfo,\n type AIGatewayInfo,\n type ShowStaticWebsiteInfo,\n type ShowOAuth2ClientInfo,\n} from \"./commands/show\";\nexport { remove, type RemoveOptions } from \"./commands/remove\";\nexport { createWorkspace, type CreateWorkspaceOptions } from \"./commands/workspace/create\";\nexport { listWorkspaces, type ListWorkspacesOptions } from \"./commands/workspace/list\";\nexport { deleteWorkspace, type DeleteWorkspaceOptions } from \"./commands/workspace/delete\";\nexport { getWorkspace, type GetWorkspaceOptions } from \"./commands/workspace/get\";\nexport { restoreWorkspace, type RestoreWorkspaceOptions } from \"./commands/workspace/restore\";\nexport type { WorkspaceInfo, WorkspaceDetails } from \"./commands/workspace/transform\";\nexport { listUsers, type ListUsersOptions } from \"./commands/workspace/user/list\";\nexport { inviteUser, type InviteUserOptions } from \"./commands/workspace/user/invite\";\nexport { updateUser, type UpdateUserOptions } from \"./commands/workspace/user/update\";\nexport { removeUser, type RemoveUserOptions } from \"./commands/workspace/user/remove\";\nexport type { UserInfo } from \"./commands/workspace/user/transform\";\nexport { listApps, type ListAppsOptions } from \"./commands/workspace/app/list\";\nexport {\n getAppHealth,\n type HealthOptions as GetAppHealthOptions,\n} from \"./commands/workspace/app/health\";\nexport type { AppInfo, AppHealthInfo } from \"./commands/workspace/app/transform\";\nexport { getFunctionRegistry, type GetFunctionRegistryOptions } from \"./commands/function/get\";\nexport {\n listFunctionRegistries,\n type ListFunctionRegistriesOptions,\n} from \"./commands/function/list\";\nexport type { FunctionRegistryInfo } from \"./commands/function/transform\";\nexport {\n listMachineUsers,\n type ListMachineUsersOptions,\n type MachineUserInfo,\n} from \"./commands/machineuser/list\";\nexport {\n getMachineUserToken,\n type GetMachineUserTokenOptions,\n type MachineUserTokenInfo,\n} from \"./commands/machineuser/token\";\nexport { getOAuth2Client, type GetOAuth2ClientOptions } from \"./commands/oauth2client/get\";\nexport { listOAuth2Clients, type ListOAuth2ClientsOptions } from \"./commands/oauth2client/list\";\nexport type { OAuth2ClientInfo, OAuth2ClientCredentials } from \"./commands/oauth2client/transform\";\nexport { listWorkflows, type ListWorkflowsOptions } from \"./commands/workflow/list\";\nexport { getWorkflow, type GetWorkflowTypedOptions } from \"./commands/workflow/get\";\nexport type { MachineUserName } from \"@tailor-platform/sdk\";\nexport {\n startWorkflow,\n type StartWorkflowTypedOptions,\n type StartWorkflowResultWithWait,\n type WaitOptions,\n} from \"./commands/workflow/start\";\nexport {\n listWorkflowExecutions,\n getWorkflowExecution,\n type ListWorkflowExecutionsTypedOptions,\n type GetWorkflowExecutionOptions,\n type GetWorkflowExecutionResult,\n type WorkflowExecutionWaitInfo,\n} from \"./commands/workflow/executions\";\nexport { waitWorkflowExecution, type WorkflowWaitOutput } from \"./commands/workflow/wait\";\nexport type { WaitWorkflowExecutionOptions, WorkflowWaitResult } from \"./commands/workflow/waiter\";\nexport {\n resumeWorkflow,\n type ResumeWorkflowOptions,\n type ResumeWorkflowResultWithWait,\n} from \"./commands/workflow/resume\";\nexport type {\n WorkflowListInfo,\n WorkflowInfo,\n WorkflowExecutionInfo,\n WorkflowJobExecutionInfo,\n} from \"./commands/workflow/transform\";\nexport type { FunctionLogEntryInfo } from \"./shared/function-execution\";\nexport {\n triggerExecutor,\n type TriggerExecutorTypedOptions,\n type TriggerExecutorResult,\n} from \"./commands/executor/trigger\";\nexport {\n listExecutorJobs,\n getExecutorJob,\n getExecutorWaitFailureMessage,\n watchExecutorJob,\n type ListExecutorJobsTypedOptions,\n type GetExecutorJobTypedOptions,\n type WatchExecutorJobTypedOptions,\n type ExecutorJobDetailInfo,\n type WatchExecutorJobResult,\n} from \"./commands/executor/jobs\";\nexport { listExecutors, type ListExecutorsOptions } from \"./commands/executor/list\";\nexport { getExecutor, type GetExecutorTypedOptions } from \"./commands/executor/get\";\nexport {\n listWebhookExecutors,\n type ListWebhookExecutorsOptions,\n type WebhookExecutorInfo,\n} from \"./commands/executor/webhook\";\nexport type {\n ExecutorJobListInfo,\n ExecutorJobInfo,\n ExecutorJobAttemptInfo,\n ExecutorListInfo,\n ExecutorInfo,\n} from \"./commands/executor/transform\";\nexport { listOrganizations, type ListOrganizationsOptions } from \"./commands/organization/list\";\nexport { getOrganization, type GetOrganizationOptions } from \"./commands/organization/get\";\nexport { updateOrganization, type UpdateOrganizationOptions } from \"./commands/organization/update\";\nexport { organizationTree, type OrganizationTreeOptions } from \"./commands/organization/tree\";\nexport type {\n UserOrganizationInfo,\n OrganizationInfo,\n FolderListInfo,\n FolderInfo,\n} from \"./commands/organization/transform\";\nexport { listFolders, type ListFoldersOptions } from \"./commands/organization/folder/list\";\nexport { getFolder, type GetFolderOptions } from \"./commands/organization/folder/get\";\nexport { createFolder, type CreateFolderOptions } from \"./commands/organization/folder/create\";\nexport { updateFolder, type UpdateFolderOptions } from \"./commands/organization/folder/update\";\nexport { deleteFolder, type DeleteFolderOptions } from \"./commands/organization/folder/delete\";\nexport { loadAccessToken, loadWorkspaceId } from \"./shared/context\";\nexport { apiCall, type ApiCallOptions, type ApiCallResult } from \"./commands/api\";\nexport { query } from \"./query\";\nexport { truncate, type TruncateOptions } from \"./commands/tailordb/truncate\";\n\n// Migration exports\nexport {\n generate as migrateGenerate,\n type GenerateOptions as MigrateGenerateOptions,\n} from \"./commands/tailordb/migrate/generate\";\nexport {\n createSnapshotFromLocalTypes,\n reconstructSnapshotFromMigrations,\n compareSnapshots,\n getNextMigrationNumber,\n getLatestMigrationNumber,\n getMigrationFiles,\n compareLocalTypesWithSnapshot,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport {\n getNamespacesWithMigrations,\n type NamespaceWithMigrations,\n} from \"./commands/tailordb/migrate/config\";\nexport {\n hasChanges,\n formatMigrationDiff,\n formatDiffSummary,\n type MigrationDiff,\n type BreakingChangeInfo,\n} from \"./commands/tailordb/migrate/diff-calculator\";\nexport {\n SCHEMA_FILE_NAME,\n DIFF_FILE_NAME,\n MIGRATE_FILE_NAME,\n MIGRATE_TEST_FILE_NAME,\n MIGRATE_PGLITE_TEST_FILE_NAME,\n DB_TYPES_FILE_NAME,\n DB_PGLITE_SCHEMA_FILE_NAME,\n INITIAL_SCHEMA_NUMBER,\n getMigrationDirPath,\n getMigrationFilePath,\n type SchemaSnapshot,\n type NormalizedSchemaSnapshot,\n type TailorDBSnapshotType,\n type SnapshotFieldConfig,\n} from \"./commands/tailordb/migrate/snapshot\";\nexport { MIGRATION_LABEL_KEY } from \"./commands/tailordb/migrate/types\";\n\n// Seed exports\nexport {\n loadSeedContext,\n type LoadSeedContextOptions,\n type SeedContext,\n type SeedIdpUserContext,\n type SeedNamespaceConfig,\n} from \"./shared/seed-context\";\nexport {\n chunkSeedData,\n type SeedChunk,\n type ChunkSeedDataOptions,\n type SeedData,\n} from \"./shared/seed-chunker\";\nexport {\n bundleSeedScript,\n bundleSeedDumpScript,\n type SeedBundleResult,\n type SeedDumpBundleResult,\n} from \"./commands/generate/seed/bundler\";\nexport {\n bundleMigrationScript,\n type MigrationBundleResult,\n} from \"./commands/tailordb/migrate/bundler\";\nexport {\n executeScript,\n waitForExecution,\n type ScriptExecutionOptions,\n type ScriptExecutionResult,\n type ScriptInvoker,\n type ExecutionWaitResult,\n} from \"./shared/script-executor\";\nexport { initOperatorClient, type OperatorClient } from \"./shared/client\";\nexport type { AuthInvoker } from \"@tailor-platform/tailor-proto/auth_resource_pb\";\n"],"mappings":"A,krCAGA,MAAMsG,GAAe,IAAI,IAAI,gBAAiB,YAAY,GAAG,CAAC,E"}
|
package/dist/cli/main.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AnyCommand } from "@politty/zod";
|
|
2
|
-
//#region src/cli/main.d.ts
|
|
3
2
|
export declare const mainCommand: {
|
|
4
3
|
subCommands: {
|
|
5
4
|
skills: AnyCommand;
|
|
@@ -28,5 +27,4 @@ export declare const mainCommand: {
|
|
|
28
27
|
notes?: string | undefined;
|
|
29
28
|
examples?: import("@politty/zod").Example[] | undefined;
|
|
30
29
|
runMainHook?: ((argv: readonly string[]) => void) | undefined;
|
|
31
|
-
};
|
|
32
|
-
//#endregion
|
|
30
|
+
};
|