@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,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/migration-steps.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Run a multi-step migration script's `steps` in tests the way `tailor deploy`
|
|
4
3
|
* does: in dependency order, each step in its own transaction.
|
|
@@ -41,5 +40,4 @@ export declare class MigrationStepError extends Error {
|
|
|
41
40
|
*/
|
|
42
41
|
export declare function runMigrationSteps<Trx, Context extends {
|
|
43
42
|
env: unknown;
|
|
44
|
-
}>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
|
|
45
|
-
//#endregion
|
|
43
|
+
}>(steps: Readonly<Record<string, RunnableMigrationStep<Trx, Context>>>, options: RunMigrationStepsOptions<Trx, Context>): Promise<string[]>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Kysely, OperationNode, OperationNodeKind, Transaction } from "kysely";
|
|
2
|
-
//#region src/vitest/mock-kysely.d.ts
|
|
3
2
|
/** A single statement executed against the mock, captured in order. */
|
|
4
3
|
export interface ExecutedQuery {
|
|
5
4
|
/** The Kysely operation node kind, e.g. `"SelectQueryNode"`. */
|
|
@@ -57,5 +56,4 @@ export interface KyselyMock<DB> {
|
|
|
57
56
|
* @returns A {@link KyselyMock} with the mock `db`, recorded queries, and result staging.
|
|
58
57
|
*/
|
|
59
58
|
export declare function createKyselyMock<DB = Record<string, never>>(): KyselyMock<DB>;
|
|
60
|
-
//#endregion
|
|
61
59
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AIGatewayName } from "@tailor-platform/sdk";
|
|
2
|
-
//#region src/vitest/mocks/aigateway.d.ts
|
|
3
2
|
interface AigatewayCall {
|
|
4
3
|
name: AIGatewayName;
|
|
5
4
|
}
|
|
@@ -36,5 +35,4 @@ export declare function mockAigateway(options?: MockAigatewayOptions): {
|
|
|
36
35
|
clear(): void;
|
|
37
36
|
reset(): void;
|
|
38
37
|
} & Disposable;
|
|
39
|
-
//#endregion
|
|
40
38
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AuthConnectionTokenResult, ConnectionName } from "@tailor-platform/sdk";
|
|
2
|
-
//#region src/vitest/mocks/authconnection.d.ts
|
|
3
2
|
interface AuthConnectionCall {
|
|
4
3
|
connectionName: ConnectionName;
|
|
5
4
|
}
|
|
@@ -34,5 +33,4 @@ export declare function mockAuthconnection(options?: MockAuthconnectionOptions):
|
|
|
34
33
|
clear(): void;
|
|
35
34
|
reset(): void;
|
|
36
35
|
} & Disposable;
|
|
37
|
-
//#endregion
|
|
38
36
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FileDownloadAsBase64Response, FileDownloadResponse, FileDownloadStreamResponse, FileMetadata, FileUploadBytes, FileUploadOptions, FileUploadResponse, FileUploadStreamOptions } from "../../runtime/file.mjs";
|
|
2
2
|
import { Mock } from "vitest";
|
|
3
|
-
//#region src/vitest/mocks/file.d.ts
|
|
4
3
|
type FileResolver = (method: string, call: FileCall) => unknown;
|
|
5
4
|
interface FileCall {
|
|
6
5
|
method: string;
|
|
@@ -54,5 +53,4 @@ export declare function mockFile(options?: MockFileOptions): {
|
|
|
54
53
|
uploadStream: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, readableStream: ReadableStream<Uint8Array | ArrayBuffer>, options?: FileUploadStreamOptions) => Promise<FileUploadResponse>>;
|
|
55
54
|
upload: Mock<(namespace: string, tableName: string, fieldName: string, recordId: string, data: string | FileUploadBytes, options?: Omit<FileUploadOptions, "encoding">) => Promise<FileUploadResponse>>;
|
|
56
55
|
} & Disposable;
|
|
57
|
-
//#endregion
|
|
58
56
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MockInstance } from "vitest";
|
|
2
|
-
//#region src/vitest/mocks/iconv.d.ts
|
|
3
2
|
type IconvResolver = (method: string, args: unknown[]) => unknown;
|
|
4
3
|
type IconvMethod = "convert" | "convertBuffer" | "decode" | "encode" | "encodings";
|
|
5
4
|
interface IconvCall {
|
|
@@ -47,5 +46,4 @@ export declare function mockIconv(options?: MockIconvOptions): {
|
|
|
47
46
|
clear: () => void;
|
|
48
47
|
reset(): void;
|
|
49
48
|
} & Disposable;
|
|
50
|
-
//#endregion
|
|
51
49
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IdpClientConstructor, IdpClientInstance } from "../../runtime/idp.mjs";
|
|
2
2
|
import { Mock } from "vitest";
|
|
3
|
-
//#region src/vitest/mocks/idp.d.ts
|
|
4
3
|
type IdpMethod = keyof IdpClientInstance;
|
|
5
4
|
type IdpResolver = (method: string, args: unknown[], namespace: string) => unknown;
|
|
6
5
|
interface IdpCall {
|
|
@@ -57,5 +56,4 @@ export declare function mockIdp(options?: MockIdpOptions): {
|
|
|
57
56
|
clear(): void;
|
|
58
57
|
reset(): void;
|
|
59
58
|
} & Disposable;
|
|
60
|
-
//#endregion
|
|
61
59
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LogAttributes } from "../../runtime/logger.mjs";
|
|
2
|
-
//#region src/vitest/mocks/logger.d.ts
|
|
3
2
|
type LogSeverity = "debug" | "info" | "warn" | "error";
|
|
4
3
|
/** A recorded `debug`/`info`/`warn`/`error` call. */
|
|
5
4
|
interface LogCall {
|
|
@@ -41,5 +40,4 @@ export declare function mockLogger(_options?: MockLoggerOptions): {
|
|
|
41
40
|
clear(): void;
|
|
42
41
|
reset(): void;
|
|
43
42
|
} & Disposable;
|
|
44
|
-
//#endregion
|
|
45
43
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/mocks/secretmanager.d.ts
|
|
2
1
|
interface SecretCall {
|
|
3
2
|
method: "getSecret" | "getSecrets";
|
|
4
3
|
vault: string;
|
|
@@ -40,5 +39,4 @@ export declare function mockSecretmanager(options?: MockSecretmanagerOptions): {
|
|
|
40
39
|
clear(): void;
|
|
41
40
|
reset(): void;
|
|
42
41
|
} & Disposable;
|
|
43
|
-
//#endregion
|
|
44
42
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PGliteClient } from "../pglite-kysely.mjs";
|
|
2
|
-
//#region src/vitest/mocks/tailordb-pglite.d.ts
|
|
3
2
|
/** A query executed through the PGlite-backed TailorDB client. */
|
|
4
3
|
export interface ExecutedPGliteQuery {
|
|
5
4
|
/** Namespace of the `getDB` call that issued the query. */
|
|
@@ -86,5 +85,4 @@ export declare function mockTailordbWithPGlite(options: MockTailordbPGliteOption
|
|
|
86
85
|
*/
|
|
87
86
|
reset(): void;
|
|
88
87
|
} & Disposable;
|
|
89
|
-
//#endregion
|
|
90
88
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vitest/mocks/tailordb.d.ts
|
|
2
1
|
type QueryResolver = (query: string, params: unknown[]) => unknown[] | undefined;
|
|
3
2
|
/** Controls how unmatched TailorDB queries are handled. */
|
|
4
3
|
export interface MockTailordbOptions {
|
|
@@ -111,5 +110,4 @@ export declare function mockTailordb(options?: MockTailordbOptions): {
|
|
|
111
110
|
/** Reset query responses and recorded calls (keeps the mock installed). */
|
|
112
111
|
reset(): void;
|
|
113
112
|
} & Disposable;
|
|
114
|
-
//#endregion
|
|
115
113
|
export {};
|
|
@@ -4,7 +4,6 @@ import { WorkflowJob } from "../../configure/services/workflow/job.mjs";
|
|
|
4
4
|
import { Workflow } from "../../configure/services/workflow/workflow.mjs";
|
|
5
5
|
import { ParameterizedWaitPointInstance, WaitPointInstance } from "../../configure/services/workflow/wait-point.mjs";
|
|
6
6
|
import { Mock } from "vitest";
|
|
7
|
-
//#region src/vitest/mocks/workflow.d.ts
|
|
8
7
|
type JobHandler = (jobName: string, args: unknown, options?: ExecJobFunctionOptions) => unknown;
|
|
9
8
|
type StartHandlerFn = (workflowName: string, args: unknown, options?: StartWorkflowOptions) => string;
|
|
10
9
|
type ResumeHandlerFn = (executionId: string) => string;
|
|
@@ -157,5 +156,4 @@ export declare function mockWorkflow(): {
|
|
|
157
156
|
/** Reset all workflow responses and recorded calls (keeps the mock installed). */
|
|
158
157
|
reset(): void;
|
|
159
158
|
} & Disposable;
|
|
160
|
-
//#endregion
|
|
161
159
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PGliteField } from "./pglite-temporal.mjs";
|
|
2
2
|
import { ColumnType, Kysely } from "kysely";
|
|
3
|
-
//#region src/vitest/pglite-kysely.d.ts
|
|
4
3
|
/** Result of a {@link PGliteClient.query} call. */
|
|
5
4
|
export interface PGliteQueryResult {
|
|
6
5
|
/** Rows returned by the statement. */
|
|
@@ -82,5 +81,23 @@ export interface CreateKyselyPGliteOptions {
|
|
|
82
81
|
* ```
|
|
83
82
|
*/
|
|
84
83
|
export declare function createKyselyPGlite<DB = Record<string, never>>(client: PGliteClient, options?: CreateKyselyPGliteOptions): Kysely<DB>;
|
|
85
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Run `prepare` with relations unchecked, so a test can stage rows that predate a relation (for
|
|
86
|
+
* example rows whose parent does not exist, which the migration under test repairs). The setting
|
|
87
|
+
* from before the first call is restored when the last `prepareFixtures` on the client returns or
|
|
88
|
+
* throws, so the script under test still runs against checked relations, and calls that are nested
|
|
89
|
+
* or overlap keep relations unchecked until all of them are done. NOT NULL, UNIQUE, and CHECK
|
|
90
|
+
* constraints stay enforced.
|
|
91
|
+
* @param client - The PGlite instance the rows are written to
|
|
92
|
+
* @param prepare - Writes the rows, for example with the Kysely instance of the same client
|
|
93
|
+
* @returns Whatever `prepare` returns
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* await prepareFixtures(pglite, async () => {
|
|
97
|
+
* await db.insertInto("Order").values([{ ownerID: crypto.randomUUID() }]).execute();
|
|
98
|
+
* });
|
|
99
|
+
* await db.transaction().execute((trx) => main(trx));
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export declare function prepareFixtures<T>(client: PGliteClient, prepare: () => Promise<T>): Promise<T>;
|
|
86
103
|
export {};
|
package/dist/vitest/setup.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { applyDateDefault } from "./date-representation.mjs";
|
|
2
|
-
//#region src/vitest/setup.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Extract a vault store from a secrets-shaped value.
|
|
5
4
|
*
|
|
@@ -22,5 +21,4 @@ export declare function extractVaultStore(secrets: unknown): Record<string, Reco
|
|
|
22
21
|
* @returns Vault store keyed by vault name, or null if unavailable
|
|
23
22
|
*/
|
|
24
23
|
export declare function loadSecretsFromConfig(configPath: string): Promise<Record<string, Record<string, string>> | null>;
|
|
25
|
-
//#endregion
|
|
26
24
|
export { applyDateDefault };
|
|
@@ -2,7 +2,6 @@ import { TailorEnv } from "../runtime/types.mjs";
|
|
|
2
2
|
import { WorkflowJob } from "../configure/services/workflow/job.mjs";
|
|
3
3
|
import { Workflow } from "../configure/services/workflow/workflow.mjs";
|
|
4
4
|
import "../configure/services/workflow/index.mjs";
|
|
5
|
-
//#region src/vitest/workflow-local.d.ts
|
|
6
5
|
type AnyWorkflowJob = WorkflowJob<string, any, any>;
|
|
7
6
|
type AnyWorkflow = Workflow<AnyWorkflowJob>;
|
|
8
7
|
type WorkflowInput<W extends AnyWorkflow> = W["mainJob"] extends WorkflowJob<string, infer I, any> ? I : never;
|
|
@@ -37,5 +36,4 @@ export declare function runWorkflowLocally<W extends Workflow<WorkflowJob<string
|
|
|
37
36
|
* @returns The main job output
|
|
38
37
|
*/
|
|
39
38
|
export declare function runWorkflowLocally<W extends AnyWorkflow>(workflow: W, args: WorkflowInput<W>, options?: RunWorkflowLocallyOptions): Promise<WorkflowOutput<W>>;
|
|
40
|
-
//#endregion
|
|
41
39
|
export {};
|