@tailor-platform/sdk 2.0.0-next.2 → 2.0.0-next.3
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 +466 -10
- package/README.md +9 -9
- package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
- package/dist/aigateway-B3oZZE6v.mjs +15 -0
- package/dist/aigateway-B3oZZE6v.mjs.map +1 -0
- package/dist/application-D2hSK1ZL.mjs +3 -0
- package/dist/application-eHp9jXld.mjs +6393 -0
- package/dist/application-eHp9jXld.mjs.map +1 -0
- package/dist/{authconnection-D2MhtTN5.mjs → authconnection-BGQM8FZI.mjs} +2 -2
- package/dist/authconnection-BGQM8FZI.mjs.map +1 -0
- package/dist/cli/cache/bundle-cache.d.mts +1 -0
- package/dist/cli/cache/store.d.mts +1 -0
- package/dist/cli/cache/types.d.mts +1 -0
- package/dist/cli/commands/api/api-call.d.mts +19 -0
- package/dist/cli/commands/api/index.d.mts +3 -0
- package/dist/cli/commands/deploy/aigateway.d.mts +1 -0
- package/dist/cli/commands/deploy/application.d.mts +1 -0
- package/dist/cli/commands/deploy/apply-phases.d.mts +1 -0
- package/dist/cli/commands/deploy/auth.d.mts +1 -0
- package/dist/cli/commands/deploy/deploy.d.mts +24 -0
- package/dist/cli/commands/deploy/executor.d.mts +1 -0
- package/dist/cli/commands/deploy/function-registry-types.d.mts +12 -0
- package/dist/cli/commands/deploy/function-registry.d.mts +2 -0
- package/dist/cli/commands/deploy/idp.d.mts +1 -0
- package/dist/cli/commands/deploy/resolver.d.mts +1 -0
- package/dist/cli/commands/deploy/secret-manager.d.mts +1 -0
- package/dist/cli/commands/deploy/staticwebsite.d.mts +1 -0
- package/dist/cli/commands/deploy/tailordb/index.d.mts +1 -0
- package/dist/cli/commands/deploy/types.d.mts +1 -0
- package/dist/cli/commands/deploy/workflow.d.mts +1 -0
- package/dist/cli/commands/executor/get.d.mts +29 -0
- package/dist/cli/commands/executor/jobs.d.mts +123 -0
- package/dist/cli/commands/executor/list.d.mts +19 -0
- package/dist/cli/commands/executor/transform.d.mts +41 -0
- package/dist/cli/commands/executor/trigger.d.mts +41 -0
- package/dist/cli/commands/executor/webhook.d.mts +22 -0
- package/dist/cli/commands/function/get.d.mts +18 -0
- package/dist/cli/commands/function/list.d.mts +22 -0
- package/dist/cli/commands/function/transform.d.mts +11 -0
- package/dist/cli/commands/generate/options.d.mts +7 -0
- package/dist/cli/commands/generate/seed/bundler.d.mts +26 -0
- package/dist/cli/commands/generate/service.d.mts +11 -0
- package/dist/cli/commands/machineuser/list.d.mts +27 -0
- package/dist/cli/commands/machineuser/token.d.mts +22 -0
- package/dist/cli/commands/oauth2client/get.d.mts +18 -0
- package/dist/cli/commands/oauth2client/list.d.mts +20 -0
- package/dist/cli/commands/oauth2client/transform.d.mts +20 -0
- package/dist/cli/commands/organization/folder/create.d.mts +18 -0
- package/dist/cli/commands/organization/folder/delete.d.mts +16 -0
- package/dist/cli/commands/organization/folder/get.d.mts +17 -0
- package/dist/cli/commands/organization/folder/list.d.mts +22 -0
- package/dist/cli/commands/organization/folder/update.d.mts +18 -0
- package/dist/cli/commands/organization/get.d.mts +16 -0
- package/dist/cli/commands/organization/list.d.mts +15 -0
- package/dist/cli/commands/organization/transform.d.mts +27 -0
- package/dist/cli/commands/organization/tree.d.mts +25 -0
- package/dist/cli/commands/organization/update.d.mts +17 -0
- package/dist/cli/commands/remove.d.mts +16 -0
- package/dist/cli/commands/show.d.mts +34 -0
- package/dist/cli/commands/tailordb/migrate/bundler.d.mts +28 -0
- package/dist/cli/commands/tailordb/migrate/config.d.mts +19 -0
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +223 -0
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +17 -0
- package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +202 -0
- package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +98 -0
- package/dist/cli/commands/tailordb/migrate/types.d.mts +7 -0
- package/dist/cli/commands/tailordb/truncate.d.mts +19 -0
- package/dist/cli/commands/workflow/executions.d.mts +75 -0
- package/dist/cli/commands/workflow/get.d.mts +29 -0
- package/dist/cli/commands/workflow/list.d.mts +19 -0
- package/dist/cli/commands/workflow/resume.d.mts +23 -0
- package/dist/cli/commands/workflow/start.d.mts +61 -0
- package/dist/cli/commands/workflow/status.d.mts +5 -0
- package/dist/cli/commands/workflow/transform.d.mts +33 -0
- package/dist/cli/commands/workflow/wait.d.mts +16 -0
- package/dist/cli/commands/workflow/waiter.d.mts +23 -0
- package/dist/cli/commands/workspace/app/health.d.mts +18 -0
- package/dist/cli/commands/workspace/app/list.d.mts +22 -0
- package/dist/cli/commands/workspace/app/transform.d.mts +18 -0
- package/dist/cli/commands/workspace/create.d.mts +25 -0
- package/dist/cli/commands/workspace/delete.d.mts +15 -0
- package/dist/cli/commands/workspace/get.d.mts +17 -0
- package/dist/cli/commands/workspace/list.d.mts +17 -0
- package/dist/cli/commands/workspace/restore.d.mts +15 -0
- package/dist/cli/commands/workspace/transform.d.mts +16 -0
- package/dist/cli/commands/workspace/user/invite.d.mts +22 -0
- package/dist/cli/commands/workspace/user/list.d.mts +22 -0
- package/dist/cli/commands/workspace/user/remove.d.mts +17 -0
- package/dist/cli/commands/workspace/user/transform.d.mts +8 -0
- package/dist/cli/commands/workspace/user/update.d.mts +22 -0
- package/dist/cli/erd-viewer-assets/app.js +279 -36
- package/dist/cli/erd-viewer-assets/index.html +4 -0
- package/dist/cli/erd-viewer-assets/styles.css +252 -5
- package/dist/cli/index.d.mts +18 -3
- package/dist/cli/index.mjs +2136 -519
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +81 -21107
- package/dist/cli/lib.mjs +6 -9
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +35 -0
- package/dist/cli/services/application.d.mts +1 -0
- package/dist/cli/services/auth/service.d.mts +1 -0
- package/dist/cli/services/executor/service.d.mts +1 -0
- package/dist/cli/services/http-adapter/bundler.d.mts +1 -0
- package/dist/cli/services/http-adapter/service.d.mts +1 -0
- package/dist/cli/services/resolver/service.d.mts +1 -0
- package/dist/cli/services/tailordb/service.d.mts +1 -0
- package/dist/cli/services/workflow/bundler.d.mts +1 -0
- package/dist/cli/services/workflow/service.d.mts +1 -0
- package/dist/cli/shared/args.d.mts +13 -0
- package/dist/cli/shared/client.d.mts +1273 -0
- package/dist/cli/shared/config-loader.d.mts +26 -0
- package/dist/cli/shared/context.d.mts +28 -0
- package/dist/cli/shared/script-executor.d.mts +75 -0
- package/dist/cli/shared/seed-chunker.d.mts +46 -0
- package/dist/cli/shared/trigger-context.d.mts +1 -0
- package/dist/cli/shared/type-generator.d.mts +20 -0
- package/dist/cli/ts-hook.d.mts +4 -0
- package/dist/cli/ts-hook.mjs +303 -0
- package/dist/completion/zsh-worker.zsh +1523 -1123
- package/dist/configure/config/index.d.mts +21 -0
- package/dist/configure/config/types.d.mts +103 -0
- package/dist/configure/index.d.mts +122 -9
- package/dist/configure/index.mjs +24 -21
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/aigateway/index.d.mts +17 -0
- package/dist/configure/services/aigateway/types.d.mts +11 -0
- package/dist/configure/services/auth/index.d.mts +34 -0
- package/dist/configure/services/auth/types.d.mts +172 -0
- package/dist/configure/services/executor/executor.d.mts +81 -0
- package/dist/configure/services/executor/index.d.mts +8 -0
- package/dist/configure/services/executor/operation.d.mts +45 -0
- package/dist/configure/services/executor/trigger/event.d.mts +272 -0
- package/dist/configure/services/executor/trigger/index.d.mts +8 -0
- package/dist/configure/services/executor/trigger/schedule.d.mts +25 -0
- package/dist/configure/services/executor/trigger/webhook.d.mts +44 -0
- package/dist/configure/services/executor/types.d.mts +2 -0
- package/dist/configure/services/http-adapter/http-adapter.d.mts +125 -0
- package/dist/configure/services/http-adapter/index.d.mts +2 -0
- package/dist/configure/services/idp/index.d.mts +64 -0
- package/dist/configure/services/idp/permission.d.mts +80 -0
- package/dist/configure/services/idp/types.d.mts +20 -0
- package/dist/configure/services/index.d.mts +32 -0
- package/dist/configure/services/resolver/index.d.mts +5 -0
- package/dist/configure/services/resolver/resolver.d.mts +75 -0
- package/dist/configure/services/resolver/types.d.mts +6 -0
- package/dist/configure/services/secrets/index.d.mts +38 -0
- package/dist/configure/services/secrets/types.d.mts +11 -0
- package/dist/configure/services/staticwebsite/index.d.mts +19 -0
- package/dist/configure/services/staticwebsite/types.d.mts +11 -0
- package/dist/configure/services/tailordb/index.d.mts +4 -0
- package/dist/configure/services/tailordb/permission.d.mts +119 -0
- package/dist/configure/services/tailordb/schema.d.mts +456 -0
- package/dist/configure/services/tailordb/types.d.mts +149 -0
- package/dist/configure/services/workflow/index.d.mts +6 -0
- package/dist/configure/services/workflow/job.d.mts +79 -0
- package/dist/configure/services/workflow/types.d.mts +2 -0
- package/dist/configure/services/workflow/wait-point.d.mts +73 -0
- package/dist/configure/services/workflow/workflow.d.mts +54 -0
- package/dist/configure/types/aigateway-name.d.mts +12 -0
- package/dist/configure/types/connection-name.d.mts +12 -0
- package/dist/configure/types/field-runtime.d.mts +17 -0
- package/dist/configure/types/field.d.mts +9 -0
- package/dist/configure/types/field.types.d.mts +109 -0
- package/dist/configure/types/idp-name.d.mts +12 -0
- package/dist/configure/types/index.d.mts +4 -0
- package/dist/configure/types/machine-user.d.mts +2 -0
- package/dist/configure/types/type.d.mts +82 -0
- package/dist/context-Bd266-ru.mjs.map +1 -1
- package/dist/{crashreport-DFq-vsU0.mjs → crashreport-Cg-pqRJV.mjs} +6 -6
- package/dist/{crashreport-DFq-vsU0.mjs.map → crashreport-Cg-pqRJV.mjs.map} +1 -1
- package/dist/{crashreport-BMWcxeSE.mjs → crashreport-D3RjuSYb.mjs} +1 -1
- package/dist/enum-constants-j9QBF0cB.mjs.map +1 -1
- package/dist/{errors-Dtf2WPaW.mjs → errors-118wUDRr.mjs} +2 -2
- package/dist/errors-118wUDRr.mjs.map +1 -0
- package/dist/field-runtime-CAnh_oow.mjs +183 -0
- package/dist/field-runtime-CAnh_oow.mjs.map +1 -0
- package/dist/file-utils-CYZnO1pX.mjs.map +1 -1
- package/dist/{globals-Cf0sxIt8.mjs → globals-DhwZj0RB.mjs} +4 -46
- package/dist/globals-DhwZj0RB.mjs.map +1 -0
- package/dist/{idp-BDbK5gjm.mjs → idp-Bx25ZBdN.mjs} +9 -1
- package/dist/idp-Bx25ZBdN.mjs.map +1 -0
- package/dist/{interceptor-D-q1rvRl.mjs → interceptor-e33JtsC-.mjs} +2 -2
- package/dist/interceptor-e33JtsC-.mjs.map +1 -0
- package/dist/kysely/index.d.mts +2 -3
- package/dist/{kysely-type-DR8uzZTA.mjs → kysely-type-5eAChaHO.mjs} +4 -2
- package/dist/kysely-type-5eAChaHO.mjs.map +1 -0
- package/dist/{logger-CxF-Ex5d.mjs → logger-BEiZZ3qT.mjs} +3 -3
- package/dist/{logger-CxF-Ex5d.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
- package/dist/parser/service/auth/index.d.mts +1 -0
- package/dist/parser/service/auth/schema.d.mts +1 -0
- package/dist/parser/service/http-adapter/index.d.mts +1 -0
- package/dist/parser/service/http-adapter/schema.d.mts +1 -0
- package/dist/parser/service/idp/types.d.mts +4 -0
- package/dist/parser/service/tailordb/types.d.mts +126 -0
- package/dist/platform-serialize-RoRtBS0v.mjs +46 -0
- package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +16 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +45 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/get-generated-type.d.mts +17 -0
- package/dist/plugin/index.d.mts +3 -118
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/manager.d.mts +1 -0
- package/dist/plugin/types.d.mts +243 -0
- package/dist/plugin/with-context.d.mts +102 -0
- package/dist/{runtime-CY4JvrDj.mjs → register-ts-hook-ZpBacA07.mjs} +3426 -2041
- package/dist/register-ts-hook-ZpBacA07.mjs.map +1 -0
- package/dist/registry-DH4m7eYo.mjs.map +1 -1
- package/dist/{repl-editor-DmGr9zMw.mjs → repl-editor-BCozyiNq.mjs} +6 -5
- package/dist/{repl-editor-DmGr9zMw.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
- package/dist/runtime/aigateway.d.mts +35 -0
- package/dist/runtime/aigateway.mjs +3 -0
- package/dist/runtime/authconnection.d.mts +31 -2
- package/dist/runtime/authconnection.mjs +1 -1
- package/dist/runtime/context.d.mts +46 -2
- package/dist/runtime/file.d.mts +210 -2
- package/dist/runtime/globals.d.mts +31 -19
- package/dist/runtime/iconv.d.mts +121 -2
- package/dist/runtime/idp.d.mts +186 -2
- package/dist/runtime/idp.mjs +1 -1
- package/dist/runtime/index.d.mts +47 -9
- package/dist/runtime/index.mjs +5 -4
- package/dist/runtime/secretmanager.d.mts +54 -2
- package/dist/{types-BZ7QKVE8.d.mts → runtime/types.d.mts} +4 -5
- package/dist/runtime/workflow.d.mts +112 -2
- package/dist/runtime/workflow.mjs +2 -2
- package/dist/{schema-Dtw9Orye.mjs → schema-89dYxNC2.mjs} +17 -182
- package/dist/schema-89dYxNC2.mjs.map +1 -0
- package/dist/{secret-file-VSVGy1V0.mjs → secret-file-aoNXJmKa.mjs} +3 -3
- package/dist/secret-file-aoNXJmKa.mjs.map +1 -0
- package/dist/secretmanager-Bd45j7an.mjs +98 -0
- package/dist/secretmanager-Bd45j7an.mjs.map +1 -0
- package/dist/seed/index.d.mts +1 -2
- package/dist/{seed-izIEyP3z.mjs → seed-CRSQJI_z.mjs} +14 -3
- package/dist/seed-CRSQJI_z.mjs.map +1 -0
- package/dist/service-CkIwEctX.mjs +3 -0
- package/dist/{service-DU1mVzri2.mjs → service-DeZeYa06.mjs} +3 -3
- package/dist/service-DeZeYa06.mjs.map +1 -0
- package/dist/{service-DjyqbCaJ.mjs → service-ufH7sS8o.mjs} +396 -58
- package/dist/service-ufH7sS8o.mjs.map +1 -0
- package/dist/service_pb-CIrhGwHk.mjs +988 -0
- package/dist/service_pb-CIrhGwHk.mjs.map +1 -0
- package/dist/service_pb-DjwIn4jO.mjs +3 -0
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +204 -0
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +58 -0
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +316 -0
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +161 -0
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +2070 -0
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +861 -0
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +112 -0
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +69 -0
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +439 -0
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +564 -0
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +145 -0
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +451 -0
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +192 -0
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +50 -0
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +407 -0
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +430 -0
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +73 -0
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +17 -0
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +309 -0
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +591 -0
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +330 -0
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +113 -0
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +346 -0
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +54 -0
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +3576 -0
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +187 -0
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +29 -0
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +429 -0
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +90 -0
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +684 -0
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +797 -0
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +330 -0
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +183 -0
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +842 -0
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +276 -0
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +2015 -0
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +483 -0
- package/dist/{telemetry-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
- package/dist/telemetry-BRVdwh14.mjs.map +1 -0
- package/dist/telemetry-CkbkeJxl.mjs +3 -0
- package/dist/types/aigateway.generated.d.mts +9 -0
- package/dist/types/app-config.generated.d.mts +4 -0
- package/dist/types/auth-connection.generated.d.mts +20 -0
- package/dist/types/auth.generated.d.mts +145 -0
- package/dist/types/executor.generated.d.mts +177 -0
- package/dist/types/helpers.d.mts +39 -0
- package/dist/types/http-adapter.generated.d.mts +17 -0
- package/dist/{workflow.generated-ClEjBYhm.d.mts → types/idp.generated.d.mts} +98 -185
- package/dist/types/resolver.generated.d.mts +39 -0
- package/dist/types/secrets.generated.d.mts +14 -0
- package/dist/types/staticwebsite.generated.d.mts +10 -0
- package/dist/{types-CdcQh4Z2.d.mts → types/tailordb.generated.d.mts} +2 -287
- package/dist/types/workflow.generated.d.mts +12 -0
- package/dist/types-C-lQ4se3.mjs +4 -0
- package/dist/types-CXF2OYdR.mjs +199 -0
- package/dist/types-CXF2OYdR.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +5 -89
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/utils/test/mock.d.mts +87 -0
- package/dist/vitest/environment.d.mts +1 -2
- package/dist/vitest/environment.mjs +2 -2
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.d.mts +12 -428
- package/dist/vitest/index.mjs +739 -8
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +62 -0
- package/dist/vitest/mock.d.mts +9 -0
- package/dist/vitest/mocks/aigateway.d.mts +30 -0
- package/dist/vitest/mocks/authconnection.d.mts +28 -0
- package/dist/vitest/mocks/file.d.mts +41 -0
- package/dist/vitest/mocks/iconv.d.mts +27 -0
- package/dist/vitest/mocks/idp.d.mts +44 -0
- package/dist/vitest/mocks/secretmanager.d.mts +33 -0
- package/dist/vitest/mocks/tailordb.d.mts +71 -0
- package/dist/vitest/mocks/workflow.d.mts +115 -0
- package/dist/vitest/setup.d.mts +1 -2
- package/dist/vitest/setup.mjs +2 -2
- package/dist/vitest/workflow-local.d.mts +40 -0
- package/dist/{workflow-BOmaZwwG.mjs → workflow-Bo59B75H.mjs} +9 -2
- package/dist/workflow-Bo59B75H.mjs.map +1 -0
- package/docs/cli/application.md +98 -250
- package/docs/cli/auth.md +48 -292
- package/docs/cli/completion.md +1 -25
- package/docs/cli/crashreport.md +3 -61
- package/docs/cli/executor.md +23 -187
- package/docs/cli/function.md +14 -130
- package/docs/cli/organization.md +11 -221
- package/docs/cli/plugin.md +29 -0
- package/docs/cli/query.md +2 -22
- package/docs/cli/secret.md +71 -251
- package/docs/cli/setup.md +137 -41
- package/docs/cli/skills.md +50 -39
- package/docs/cli/staticwebsite.md +32 -180
- package/docs/cli/tailordb.md +97 -323
- package/docs/cli/upgrade.md +2 -22
- package/docs/cli/user.md +78 -247
- package/docs/cli/workflow.md +44 -203
- package/docs/cli/workspace.md +165 -538
- package/docs/cli-reference.md +167 -67
- package/docs/configuration.md +10 -4
- package/docs/github-actions.md +46 -19
- package/docs/migration/v2.md +286 -26
- package/docs/multi-environment.md +29 -7
- package/docs/plugin/index.md +6 -6
- package/docs/quickstart.md +8 -7
- package/docs/runtime.md +5 -1
- package/docs/services/aigateway.md +18 -2
- package/docs/services/auth.md +32 -40
- package/docs/services/http-adapter.md +16 -1
- package/docs/services/idp.md +55 -2
- package/docs/services/resolver.md +1 -1
- package/docs/services/secret.md +11 -11
- package/docs/services/staticwebsite.md +8 -2
- package/docs/services/tailordb-migration.md +24 -22
- package/docs/services/tailordb.md +25 -2
- package/docs/services/workflow.md +14 -14
- package/docs/testing.md +49 -3
- package/package.json +42 -31
- package/postinstall.mjs +4 -6
- package/dist/application-Dtqap5jM.mjs +0 -3
- package/dist/application-XuMWK4eq.mjs +0 -7257
- package/dist/application-XuMWK4eq.mjs.map +0 -1
- package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
- package/dist/authconnection-DvUQAjQS.d.mts +0 -39
- package/dist/context-C2lEi9uw.d.mts +0 -47
- package/dist/errors-Dtf2WPaW.mjs.map +0 -1
- package/dist/field-DOsJCPFa.mjs +0 -22
- package/dist/field-DOsJCPFa.mjs.map +0 -1
- package/dist/file-Dq3NIt_F.d.mts +0 -211
- package/dist/globals-Cf0sxIt8.mjs.map +0 -1
- package/dist/http-adapter.generated-DFsXDdm5.d.mts +0 -581
- package/dist/iconv-Co-TOPuH.d.mts +0 -122
- package/dist/idp-BDbK5gjm.mjs.map +0 -1
- package/dist/idp-DrhVrLmV.d.mts +0 -160
- package/dist/index-BI-_j9Z3.d.mts +0 -1013
- package/dist/index-C4JirJH8.d.mts +0 -18
- package/dist/index-CZfWhr0a.d.mts +0 -18
- package/dist/index-Cg8VKAdN.d.mts +0 -46
- package/dist/index-DYRjoLXD.d.mts +0 -47
- package/dist/index-lFpcjHPU.d.mts +0 -201
- package/dist/index-nW7hE6oE.d.mts +0 -18
- package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
- package/dist/kysely-type-DR8uzZTA.mjs.map +0 -1
- package/dist/mock-FPxmnt-y.mjs +0 -759
- package/dist/mock-FPxmnt-y.mjs.map +0 -1
- package/dist/runtime-CY4JvrDj.mjs.map +0 -1
- package/dist/schema-Dtw9Orye.mjs.map +0 -1
- package/dist/secret-file-VSVGy1V0.mjs.map +0 -1
- package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
- package/dist/seed-izIEyP3z.mjs.map +0 -1
- package/dist/service-DCqIWibD.mjs +0 -3
- package/dist/service-DU1mVzri2.mjs.map +0 -1
- package/dist/service-DjyqbCaJ.mjs.map +0 -1
- package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
- package/dist/telemetry-ClwW5ohF.mjs +0 -3
- package/dist/types-74etvaxy.mjs +0 -4
- package/dist/types-BDRml5C3.d.mts +0 -574
- package/dist/types-BQijbo4m.mjs +0 -371
- package/dist/types-BQijbo4m.mjs.map +0 -1
- package/dist/types-BX4q6Mo6.d.mts +0 -339
- package/dist/workflow-BOmaZwwG.mjs.map +0 -1
- package/dist/workflow-BVy4XWjS.d.mts +0 -101
package/docs/cli/tailordb.md
CHANGED
|
@@ -2,29 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Commands for managing TailorDB tables, data, and schema migrations.
|
|
4
4
|
|
|
5
|
-
<!-- politty:command:tailordb:heading:start -->
|
|
6
|
-
|
|
7
5
|
## tailordb
|
|
8
6
|
|
|
9
|
-
<!-- politty:command:tailordb:heading:end -->
|
|
10
|
-
|
|
11
|
-
<!-- politty:command:tailordb:description:start -->
|
|
12
|
-
|
|
13
7
|
Manage TailorDB tables and data.
|
|
14
8
|
|
|
15
|
-
<!-- politty:command:tailordb:description:end -->
|
|
16
|
-
|
|
17
|
-
<!-- politty:command:tailordb:usage:start -->
|
|
18
|
-
|
|
19
9
|
**Usage**
|
|
20
10
|
|
|
21
11
|
```
|
|
22
|
-
tailor
|
|
12
|
+
tailor tailordb <command>
|
|
23
13
|
```
|
|
24
14
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<!-- politty:command:tailordb:subcommands:start -->
|
|
15
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
28
16
|
|
|
29
17
|
**Commands**
|
|
30
18
|
|
|
@@ -34,84 +22,52 @@ tailor-sdk tailordb [command]
|
|
|
34
22
|
| [`tailordb migration`](#tailordb-migration) | Manage TailorDB schema migrations. |
|
|
35
23
|
| [`tailordb erd`](#tailordb-erd) | Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta) |
|
|
36
24
|
|
|
37
|
-
<!-- politty:command:tailordb:subcommands:end -->
|
|
38
|
-
|
|
39
|
-
<!-- politty:command:tailordb:global-options-link:start -->
|
|
40
|
-
|
|
41
|
-
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
42
|
-
|
|
43
|
-
<!-- politty:command:tailordb:global-options-link:end -->
|
|
44
|
-
|
|
45
|
-
<!-- politty:command:tailordb truncate:heading:start -->
|
|
46
|
-
|
|
47
25
|
### tailordb truncate
|
|
48
26
|
|
|
49
|
-
<!-- politty:command:tailordb truncate:heading:end -->
|
|
50
|
-
|
|
51
|
-
<!-- politty:command:tailordb truncate:description:start -->
|
|
52
|
-
|
|
53
27
|
Truncate (delete all records from) TailorDB tables.
|
|
54
28
|
|
|
55
|
-
<!-- politty:command:tailordb truncate:description:end -->
|
|
56
|
-
|
|
57
|
-
<!-- politty:command:tailordb truncate:usage:start -->
|
|
58
|
-
|
|
59
29
|
**Usage**
|
|
60
30
|
|
|
61
31
|
```
|
|
62
|
-
tailor
|
|
32
|
+
tailor tailordb truncate [options] [types]
|
|
63
33
|
```
|
|
64
34
|
|
|
65
|
-
<!-- politty:command:tailordb truncate:usage:end -->
|
|
66
|
-
|
|
67
|
-
<!-- politty:command:tailordb truncate:arguments:start -->
|
|
68
|
-
|
|
69
35
|
**Arguments**
|
|
70
36
|
|
|
71
37
|
| Argument | Description | Required |
|
|
72
38
|
| -------- | ---------------------- | -------- |
|
|
73
39
|
| `types` | Type names to truncate | No |
|
|
74
40
|
|
|
75
|
-
<!-- politty:command:tailordb truncate:arguments:end -->
|
|
76
|
-
|
|
77
|
-
<!-- politty:command:tailordb truncate:options:start -->
|
|
78
|
-
|
|
79
41
|
**Options**
|
|
80
42
|
|
|
81
|
-
| Option | Alias | Description | Required | Default | Env
|
|
82
|
-
| ------------------------------- | ----- | -------------------------------------------------------------------------- | -------- | -------------------- |
|
|
83
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
84
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE`
|
|
85
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
86
|
-
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | -
|
|
87
|
-
| `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | -
|
|
88
|
-
| `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | -
|
|
89
|
-
|
|
90
|
-
<!-- politty:command:tailordb truncate:options:end -->
|
|
91
|
-
|
|
92
|
-
<!-- politty:command:tailordb truncate:global-options-link:start -->
|
|
43
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
44
|
+
| ------------------------------- | ----- | -------------------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
|
|
45
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
46
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
47
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
48
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
49
|
+
| `--all` | `-a` | Truncate all tables in all owned namespaces (excludes external namespaces) | No | `false` | - |
|
|
50
|
+
| `--namespace <NAMESPACE>` | `-n` | Truncate all tables in specified namespace | No | - | - |
|
|
93
51
|
|
|
94
52
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
95
53
|
|
|
96
|
-
<!-- politty:command:tailordb truncate:global-options-link:end -->
|
|
97
|
-
|
|
98
54
|
**Usage Examples:**
|
|
99
55
|
|
|
100
56
|
```bash
|
|
101
57
|
# Truncate all tables in all namespaces (requires confirmation)
|
|
102
|
-
tailor
|
|
58
|
+
tailor tailordb truncate --all
|
|
103
59
|
|
|
104
60
|
# Truncate all tables in all namespaces (skip confirmation)
|
|
105
|
-
tailor
|
|
61
|
+
tailor tailordb truncate --all --yes
|
|
106
62
|
|
|
107
63
|
# Truncate all tables in a specific namespace
|
|
108
|
-
tailor
|
|
64
|
+
tailor tailordb truncate --namespace myNamespace
|
|
109
65
|
|
|
110
66
|
# Truncate specific types (namespace is auto-detected)
|
|
111
|
-
tailor
|
|
67
|
+
tailor tailordb truncate User Post Comment
|
|
112
68
|
|
|
113
69
|
# Truncate specific types with confirmation skipped
|
|
114
|
-
tailor
|
|
70
|
+
tailor tailordb truncate User Post --yes
|
|
115
71
|
```
|
|
116
72
|
|
|
117
73
|
**Notes:**
|
|
@@ -125,32 +81,18 @@ tailor-sdk tailordb truncate User Post --yes
|
|
|
125
81
|
- Use `--yes` flag to skip confirmation prompts (useful for scripts and CI/CD)
|
|
126
82
|
- Namespaces declared with `{ external: true }` are skipped by `--all` and rejected with a dedicated error when targeted by `--namespace`. Run truncate from the app that owns the namespace.
|
|
127
83
|
|
|
128
|
-
<!-- politty:command:tailordb migration:heading:start -->
|
|
129
|
-
|
|
130
84
|
### tailordb migration
|
|
131
85
|
|
|
132
|
-
<!-- politty:command:tailordb migration:heading:end -->
|
|
133
|
-
|
|
134
|
-
<!-- politty:command:tailordb migration:description:start -->
|
|
135
|
-
|
|
136
86
|
Manage TailorDB schema migrations.
|
|
137
87
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
Note: Migration scripts are automatically executed during `tailor-sdk deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
|
|
141
|
-
|
|
142
|
-
<!-- politty:command:tailordb migration:usage:start -->
|
|
88
|
+
Note: Migration scripts are automatically executed during `tailor deploy`. See [Automatic Migration Execution](../services/tailordb-migration.md#automatic-migration-execution) for details.
|
|
143
89
|
|
|
144
90
|
**Usage**
|
|
145
91
|
|
|
146
92
|
```
|
|
147
|
-
tailor
|
|
93
|
+
tailor tailordb migration <command>
|
|
148
94
|
```
|
|
149
95
|
|
|
150
|
-
<!-- politty:command:tailordb migration:usage:end -->
|
|
151
|
-
|
|
152
|
-
<!-- politty:command:tailordb migration:subcommands:start -->
|
|
153
|
-
|
|
154
96
|
**Commands**
|
|
155
97
|
|
|
156
98
|
| Command | Description |
|
|
@@ -161,411 +103,243 @@ tailor-sdk tailordb migration [command]
|
|
|
161
103
|
| [`tailordb migration status`](#tailordb-migration-status) | Show the current migration status for TailorDB namespaces, including applied and pending migrations. |
|
|
162
104
|
| [`tailordb migration sync`](#tailordb-migration-sync) | Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift). |
|
|
163
105
|
|
|
164
|
-
<!-- politty:command:tailordb migration:subcommands:end -->
|
|
165
|
-
|
|
166
|
-
<!-- politty:command:tailordb migration:global-options-link:start -->
|
|
167
|
-
|
|
168
106
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
169
107
|
|
|
170
|
-
<!-- politty:command:tailordb migration:global-options-link:end -->
|
|
171
|
-
<!-- politty:command:tailordb migration generate:heading:start -->
|
|
172
|
-
|
|
173
108
|
#### tailordb migration generate
|
|
174
109
|
|
|
175
|
-
<!-- politty:command:tailordb migration generate:heading:end -->
|
|
176
|
-
|
|
177
|
-
<!-- politty:command:tailordb migration generate:description:start -->
|
|
178
|
-
|
|
179
110
|
Generate migration files by detecting schema differences between current local types and the previous migration snapshot.
|
|
180
111
|
|
|
181
|
-
<!-- politty:command:tailordb migration generate:description:end -->
|
|
182
|
-
|
|
183
|
-
<!-- politty:command:tailordb migration generate:usage:start -->
|
|
184
|
-
|
|
185
112
|
**Usage**
|
|
186
113
|
|
|
187
114
|
```
|
|
188
|
-
tailor
|
|
115
|
+
tailor tailordb migration generate [options]
|
|
189
116
|
```
|
|
190
117
|
|
|
191
|
-
<!-- politty:command:tailordb migration generate:usage:end -->
|
|
192
|
-
|
|
193
|
-
<!-- politty:command:tailordb migration generate:options:start -->
|
|
194
|
-
|
|
195
118
|
**Options**
|
|
196
119
|
|
|
197
|
-
| Option | Alias | Description | Required | Default | Env
|
|
198
|
-
| ------------------- | ----- | ------------------------------------------ | -------- | -------------------- |
|
|
199
|
-
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | -
|
|
200
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
201
|
-
| `--name <NAME>` | `-n` | Optional description for the migration | No | - | -
|
|
202
|
-
| `--init` | - | Delete existing migrations and start fresh | No | `false` | -
|
|
203
|
-
|
|
204
|
-
<!-- politty:command:tailordb migration generate:options:end -->
|
|
205
|
-
|
|
206
|
-
<!-- politty:command:tailordb migration generate:global-options-link:start -->
|
|
120
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
121
|
+
| ------------------- | ----- | ------------------------------------------ | -------- | -------------------- | -------------------- |
|
|
122
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
123
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
124
|
+
| `--name <NAME>` | `-n` | Optional description for the migration | No | - | - |
|
|
125
|
+
| `--init` | - | Delete existing migrations and start fresh | No | `false` | - |
|
|
207
126
|
|
|
208
127
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
209
128
|
|
|
210
|
-
<!-- politty:command:tailordb migration generate:global-options-link:end -->
|
|
211
|
-
<!-- politty:command:tailordb migration script:heading:start -->
|
|
212
|
-
|
|
213
129
|
#### tailordb migration script
|
|
214
130
|
|
|
215
|
-
<!-- politty:command:tailordb migration script:heading:end -->
|
|
216
|
-
|
|
217
|
-
<!-- politty:command:tailordb migration script:description:start -->
|
|
218
|
-
|
|
219
131
|
Add a migration script (migrate.ts) template to an existing migration directory.
|
|
220
132
|
|
|
221
|
-
<!-- politty:command:tailordb migration script:description:end -->
|
|
222
|
-
|
|
223
|
-
<!-- politty:command:tailordb migration script:usage:start -->
|
|
224
|
-
|
|
225
133
|
**Usage**
|
|
226
134
|
|
|
227
135
|
```
|
|
228
|
-
tailor
|
|
136
|
+
tailor tailordb migration script [options] <number>
|
|
229
137
|
```
|
|
230
138
|
|
|
231
|
-
<!-- politty:command:tailordb migration script:usage:end -->
|
|
232
|
-
|
|
233
|
-
<!-- politty:command:tailordb migration script:arguments:start -->
|
|
234
|
-
|
|
235
139
|
**Arguments**
|
|
236
140
|
|
|
237
141
|
| Argument | Description | Required |
|
|
238
142
|
| -------- | ----------------------------------------------------- | -------- |
|
|
239
143
|
| `number` | Migration number to add a script to (e.g., 0001 or 1) | Yes |
|
|
240
144
|
|
|
241
|
-
<!-- politty:command:tailordb migration script:arguments:end -->
|
|
242
|
-
|
|
243
|
-
<!-- politty:command:tailordb migration script:options:start -->
|
|
244
|
-
|
|
245
145
|
**Options**
|
|
246
146
|
|
|
247
|
-
| Option | Alias | Description | Required | Default | Env
|
|
248
|
-
| ------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- |
|
|
249
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
250
|
-
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | -
|
|
251
|
-
|
|
252
|
-
<!-- politty:command:tailordb migration script:options:end -->
|
|
253
|
-
|
|
254
|
-
<!-- politty:command:tailordb migration script:global-options-link:start -->
|
|
147
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
148
|
+
| ------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | -------------------- |
|
|
149
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
150
|
+
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
|
|
255
151
|
|
|
256
152
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
257
153
|
|
|
258
|
-
<!-- politty:command:tailordb migration script:global-options-link:end -->
|
|
259
|
-
|
|
260
|
-
<!-- politty:command:tailordb migration set:heading:start -->
|
|
261
|
-
|
|
262
154
|
#### tailordb migration set
|
|
263
155
|
|
|
264
|
-
<!-- politty:command:tailordb migration set:heading:end -->
|
|
265
|
-
|
|
266
|
-
<!-- politty:command:tailordb migration set:description:start -->
|
|
267
|
-
|
|
268
156
|
Set migration checkpoint to a specific number.
|
|
269
157
|
|
|
270
|
-
<!-- politty:command:tailordb migration set:description:end -->
|
|
271
|
-
|
|
272
|
-
<!-- politty:command:tailordb migration set:usage:start -->
|
|
273
|
-
|
|
274
158
|
**Usage**
|
|
275
159
|
|
|
276
160
|
```
|
|
277
|
-
tailor
|
|
161
|
+
tailor tailordb migration set [options] <number>
|
|
278
162
|
```
|
|
279
163
|
|
|
280
|
-
<!-- politty:command:tailordb migration set:usage:end -->
|
|
281
|
-
|
|
282
|
-
<!-- politty:command:tailordb migration set:arguments:start -->
|
|
283
|
-
|
|
284
164
|
**Arguments**
|
|
285
165
|
|
|
286
166
|
| Argument | Description | Required |
|
|
287
167
|
| -------- | ----------------------------------------- | -------- |
|
|
288
168
|
| `number` | Migration number to set (e.g., 0001 or 1) | Yes |
|
|
289
169
|
|
|
290
|
-
<!-- politty:command:tailordb migration set:arguments:end -->
|
|
291
|
-
|
|
292
|
-
<!-- politty:command:tailordb migration set:options:start -->
|
|
293
|
-
|
|
294
170
|
**Options**
|
|
295
171
|
|
|
296
|
-
| Option | Alias | Description | Required | Default | Env
|
|
297
|
-
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- |
|
|
298
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
299
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE`
|
|
300
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
301
|
-
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | -
|
|
302
|
-
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | -
|
|
303
|
-
|
|
304
|
-
<!-- politty:command:tailordb migration set:options:end -->
|
|
305
|
-
|
|
306
|
-
<!-- politty:command:tailordb migration set:global-options-link:start -->
|
|
172
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
173
|
+
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
|
|
174
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
175
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
176
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
177
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
178
|
+
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
|
|
307
179
|
|
|
308
180
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
309
181
|
|
|
310
|
-
<!-- politty:command:tailordb migration set:global-options-link:end -->
|
|
311
|
-
<!-- politty:command:tailordb migration status:heading:start -->
|
|
312
|
-
|
|
313
182
|
#### tailordb migration status
|
|
314
183
|
|
|
315
|
-
<!-- politty:command:tailordb migration status:heading:end -->
|
|
316
|
-
|
|
317
|
-
<!-- politty:command:tailordb migration status:description:start -->
|
|
318
|
-
|
|
319
184
|
Show the current migration status for TailorDB namespaces, including applied and pending migrations.
|
|
320
185
|
|
|
321
|
-
<!-- politty:command:tailordb migration status:description:end -->
|
|
322
|
-
|
|
323
|
-
<!-- politty:command:tailordb migration status:usage:start -->
|
|
324
|
-
|
|
325
186
|
**Usage**
|
|
326
187
|
|
|
327
188
|
```
|
|
328
|
-
tailor
|
|
189
|
+
tailor tailordb migration status [options]
|
|
329
190
|
```
|
|
330
191
|
|
|
331
|
-
<!-- politty:command:tailordb migration status:usage:end -->
|
|
332
|
-
|
|
333
|
-
<!-- politty:command:tailordb migration status:options:start -->
|
|
334
|
-
|
|
335
192
|
**Options**
|
|
336
193
|
|
|
337
|
-
| Option | Alias | Description | Required | Default | Env
|
|
338
|
-
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- |
|
|
339
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
340
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE`
|
|
341
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
342
|
-
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | -
|
|
343
|
-
|
|
344
|
-
<!-- politty:command:tailordb migration status:options:end -->
|
|
345
|
-
|
|
346
|
-
<!-- politty:command:tailordb migration status:global-options-link:start -->
|
|
194
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
195
|
+
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
|
|
196
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
197
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
198
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
199
|
+
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (shows all namespaces if not specified) | No | - | - |
|
|
347
200
|
|
|
348
201
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
349
202
|
|
|
350
|
-
<!-- politty:command:tailordb migration status:global-options-link:end -->
|
|
351
|
-
|
|
352
|
-
<!-- politty:command:tailordb migration sync:heading:start -->
|
|
353
|
-
|
|
354
203
|
#### tailordb migration sync
|
|
355
204
|
|
|
356
|
-
<!-- politty:command:tailordb migration sync:heading:end -->
|
|
357
|
-
|
|
358
|
-
<!-- politty:command:tailordb migration sync:description:start -->
|
|
359
|
-
|
|
360
205
|
Sync remote TailorDB schema to a specific migration snapshot (recovery from --no-schema-check drift).
|
|
361
206
|
|
|
362
|
-
<!-- politty:command:tailordb migration sync:description:end -->
|
|
363
|
-
|
|
364
|
-
<!-- politty:command:tailordb migration sync:usage:start -->
|
|
365
|
-
|
|
366
207
|
**Usage**
|
|
367
208
|
|
|
368
209
|
```
|
|
369
|
-
tailor
|
|
210
|
+
tailor tailordb migration sync [options] <number>
|
|
370
211
|
```
|
|
371
212
|
|
|
372
|
-
<!-- politty:command:tailordb migration sync:usage:end -->
|
|
373
|
-
|
|
374
|
-
<!-- politty:command:tailordb migration sync:arguments:start -->
|
|
375
|
-
|
|
376
213
|
**Arguments**
|
|
377
214
|
|
|
378
215
|
| Argument | Description | Required |
|
|
379
216
|
| -------- | ------------------------------------------------------------------------------ | -------- |
|
|
380
217
|
| `number` | Migration number to sync to (e.g., 0001 or 1; 0 targets the baseline snapshot) | Yes |
|
|
381
218
|
|
|
382
|
-
<!-- politty:command:tailordb migration sync:arguments:end -->
|
|
383
|
-
|
|
384
|
-
<!-- politty:command:tailordb migration sync:options:start -->
|
|
385
|
-
|
|
386
219
|
**Options**
|
|
387
220
|
|
|
388
|
-
| Option | Alias | Description | Required | Default | Env
|
|
389
|
-
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- |
|
|
390
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
391
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE`
|
|
392
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
393
|
-
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | -
|
|
394
|
-
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | -
|
|
395
|
-
|
|
396
|
-
<!-- politty:command:tailordb migration sync:options:end -->
|
|
397
|
-
|
|
398
|
-
<!-- politty:command:tailordb migration sync:global-options-link:start -->
|
|
221
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
222
|
+
| ------------------------------- | ----- | ----------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
|
|
223
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
224
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
225
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
226
|
+
| `--yes` | `-y` | Skip confirmation prompts | No | `false` | - |
|
|
227
|
+
| `--namespace <NAMESPACE>` | `-n` | Target TailorDB namespace (required if multiple namespaces exist) | No | - | - |
|
|
399
228
|
|
|
400
229
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
401
230
|
|
|
402
|
-
<!-- politty:command:tailordb migration sync:global-options-link:end -->
|
|
403
|
-
|
|
404
231
|
**See also:** For migration concepts, configuration, workflow, and troubleshooting, see the [TailorDB Migrations guide](../services/tailordb-migration.md).
|
|
405
232
|
|
|
406
|
-
<!-- politty:command:tailordb erd:heading:start -->
|
|
407
|
-
|
|
408
233
|
### tailordb erd
|
|
409
234
|
|
|
410
|
-
<!-- politty:command:tailordb erd:heading:end -->
|
|
411
|
-
|
|
412
|
-
<!-- politty:command:tailordb erd:description:start -->
|
|
413
|
-
|
|
414
235
|
Generate TailorDB ERD viewer artifacts from local TailorDB schema. (beta)
|
|
415
236
|
|
|
416
|
-
<!-- politty:command:tailordb erd:description:end -->
|
|
417
|
-
|
|
418
|
-
<!-- politty:command:tailordb erd:usage:start -->
|
|
419
|
-
|
|
420
237
|
**Usage**
|
|
421
238
|
|
|
422
239
|
```
|
|
423
|
-
tailor
|
|
240
|
+
tailor tailordb erd <command>
|
|
424
241
|
```
|
|
425
242
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
<!-- politty:command:tailordb erd:subcommands:start -->
|
|
243
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
429
244
|
|
|
430
245
|
**Commands**
|
|
431
246
|
|
|
432
247
|
| Command | Description |
|
|
433
248
|
| --------------------------------------------- | ----------------------------------------------------------------- |
|
|
434
249
|
| [`tailordb erd export`](#tailordb-erd-export) | Export TailorDB ERD static viewer from local TailorDB schema. |
|
|
250
|
+
| [`tailordb erd diff`](#tailordb-erd-diff) | Render TailorDB ERD schema diff HTML from exported ERD viewers. |
|
|
435
251
|
| [`tailordb erd serve`](#tailordb-erd-serve) | Generate and serve TailorDB ERD locally with watch reload. (beta) |
|
|
436
252
|
| [`tailordb erd deploy`](#tailordb-erd-deploy) | Deploy ERD static website for TailorDB namespace(s). |
|
|
437
253
|
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<!-- politty:command:tailordb erd:global-options-link:start -->
|
|
254
|
+
#### tailordb erd export
|
|
441
255
|
|
|
442
|
-
|
|
256
|
+
Export TailorDB ERD static viewer from local TailorDB schema.
|
|
443
257
|
|
|
444
|
-
|
|
445
|
-
<!-- politty:command:tailordb erd export:heading:start -->
|
|
258
|
+
**Usage**
|
|
446
259
|
|
|
447
|
-
|
|
260
|
+
```
|
|
261
|
+
tailor tailordb erd export [options]
|
|
262
|
+
```
|
|
448
263
|
|
|
449
|
-
|
|
264
|
+
**Options**
|
|
450
265
|
|
|
451
|
-
|
|
266
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
267
|
+
| ------------------------- | ----- | ---------------------------------------------------------------------------------------------- | -------- | -------------------- | -------------------- |
|
|
268
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
269
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional if only one namespace is defined in config) | No | - | - |
|
|
270
|
+
| `--output <OUTPUT>` | `-o` | Output directory path for TailorDB ERD viewer files (writes to `<outputDir>/<namespace>/dist`) | No | `".tailor/erd"` | - |
|
|
452
271
|
|
|
453
|
-
|
|
272
|
+
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
454
273
|
|
|
455
|
-
|
|
274
|
+
#### tailordb erd diff
|
|
456
275
|
|
|
457
|
-
|
|
276
|
+
Render TailorDB ERD schema diff HTML from exported ERD viewers.
|
|
458
277
|
|
|
459
278
|
**Usage**
|
|
460
279
|
|
|
461
280
|
```
|
|
462
|
-
tailor
|
|
281
|
+
tailor tailordb erd diff [options]
|
|
463
282
|
```
|
|
464
283
|
|
|
465
|
-
<!-- politty:command:tailordb erd export:usage:end -->
|
|
466
|
-
|
|
467
|
-
<!-- politty:command:tailordb erd export:options:start -->
|
|
468
|
-
|
|
469
284
|
**Options**
|
|
470
285
|
|
|
471
|
-
| Option
|
|
472
|
-
|
|
|
473
|
-
| `--
|
|
474
|
-
| `--
|
|
475
|
-
| `--
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
<!-- politty:command:tailordb erd export:global-options-link:start -->
|
|
286
|
+
| Option | Alias | Description | Required | Default |
|
|
287
|
+
| ----------------------------- | ----- | ----------------------------------------------------------------------- | -------- | ------- |
|
|
288
|
+
| `--base-html <BASE_HTML>` | - | Base ERD viewer HTML file | No | - |
|
|
289
|
+
| `--head-html <HEAD_HTML>` | - | Head ERD viewer HTML file | No | - |
|
|
290
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (defaults to the provided ERD schema namespace) | No | - |
|
|
291
|
+
| `--output <OUTPUT>` | `-o` | Output ERD diff HTML file | Yes | - |
|
|
292
|
+
| `--output-json <OUTPUT_JSON>` | - | Optional output JSON file for the computed diff | No | - |
|
|
480
293
|
|
|
481
294
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
482
295
|
|
|
483
|
-
<!-- politty:command:tailordb erd export:global-options-link:end -->
|
|
484
|
-
<!-- politty:command:tailordb erd serve:heading:start -->
|
|
485
|
-
|
|
486
296
|
#### tailordb erd serve
|
|
487
297
|
|
|
488
|
-
<!-- politty:command:tailordb erd serve:heading:end -->
|
|
489
|
-
|
|
490
|
-
<!-- politty:command:tailordb erd serve:description:start -->
|
|
491
|
-
|
|
492
298
|
Generate and serve TailorDB ERD locally with watch reload. (beta)
|
|
493
299
|
|
|
494
|
-
<!-- politty:command:tailordb erd serve:description:end -->
|
|
495
|
-
|
|
496
|
-
<!-- politty:command:tailordb erd serve:usage:start -->
|
|
497
|
-
|
|
498
300
|
**Usage**
|
|
499
301
|
|
|
500
302
|
```
|
|
501
|
-
tailor
|
|
303
|
+
tailor tailordb erd serve [options]
|
|
502
304
|
```
|
|
503
305
|
|
|
504
|
-
<!-- politty:command:tailordb erd serve:usage:end -->
|
|
505
|
-
|
|
506
|
-
<!-- politty:command:tailordb erd serve:options:start -->
|
|
507
|
-
|
|
508
306
|
**Options**
|
|
509
307
|
|
|
510
|
-
| Option | Alias | Description | Required | Default | Env
|
|
511
|
-
| ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- |
|
|
512
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
513
|
-
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | -
|
|
514
|
-
| `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | -
|
|
515
|
-
| `--open` | - | Open the ERD viewer in the default browser | No | `false` | -
|
|
516
|
-
|
|
517
|
-
<!-- politty:command:tailordb erd serve:options:end -->
|
|
518
|
-
|
|
519
|
-
<!-- politty:command:tailordb erd serve:global-options-link:start -->
|
|
308
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
309
|
+
| ------------------------- | ----- | ------------------------------------------------------------------------- | -------- | -------------------- | -------------------- |
|
|
310
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
311
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (uses first namespace in config if not specified) | No | - | - |
|
|
312
|
+
| `--port <PORT>` | - | Local server port (0 selects a free port) | No | `0` | - |
|
|
313
|
+
| `--open` | - | Open the ERD viewer in the default browser | No | `false` | - |
|
|
520
314
|
|
|
521
315
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
522
316
|
|
|
523
|
-
<!-- politty:command:tailordb erd serve:global-options-link:end -->
|
|
524
|
-
<!-- politty:command:tailordb erd deploy:heading:start -->
|
|
525
|
-
|
|
526
317
|
#### tailordb erd deploy
|
|
527
318
|
|
|
528
|
-
<!-- politty:command:tailordb erd deploy:heading:end -->
|
|
529
|
-
|
|
530
|
-
<!-- politty:command:tailordb erd deploy:description:start -->
|
|
531
|
-
|
|
532
319
|
Deploy ERD static website for TailorDB namespace(s).
|
|
533
320
|
|
|
534
|
-
<!-- politty:command:tailordb erd deploy:description:end -->
|
|
535
|
-
|
|
536
|
-
<!-- politty:command:tailordb erd deploy:usage:start -->
|
|
537
|
-
|
|
538
321
|
**Usage**
|
|
539
322
|
|
|
540
323
|
```
|
|
541
|
-
tailor
|
|
324
|
+
tailor tailordb erd deploy [options]
|
|
542
325
|
```
|
|
543
326
|
|
|
544
|
-
<!-- politty:command:tailordb erd deploy:usage:end -->
|
|
545
|
-
|
|
546
|
-
<!-- politty:command:tailordb erd deploy:options:start -->
|
|
547
|
-
|
|
548
327
|
**Options**
|
|
549
328
|
|
|
550
|
-
| Option | Alias | Description | Required | Default | Env
|
|
551
|
-
| ------------------------------- | ----- | ----------------------------------------------------------------------------------- | -------- | -------------------- |
|
|
552
|
-
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID`
|
|
553
|
-
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE`
|
|
554
|
-
| `--config <CONFIG>` | `-c` | Path to
|
|
555
|
-
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | -
|
|
556
|
-
|
|
557
|
-
<!-- politty:command:tailordb erd deploy:options:end -->
|
|
558
|
-
|
|
559
|
-
<!-- politty:command:tailordb erd deploy:global-options-link:start -->
|
|
329
|
+
| Option | Alias | Description | Required | Default | Env |
|
|
330
|
+
| ------------------------------- | ----- | ----------------------------------------------------------------------------------- | -------- | -------------------- | ------------------------------ |
|
|
331
|
+
| `--workspace-id <WORKSPACE_ID>` | `-w` | Workspace ID | No | - | `TAILOR_PLATFORM_WORKSPACE_ID` |
|
|
332
|
+
| `--profile <PROFILE>` | `-p` | Workspace profile | No | - | `TAILOR_PLATFORM_PROFILE` |
|
|
333
|
+
| `--config <CONFIG>` | `-c` | Path to Tailor config file | No | `"tailor.config.ts"` | `TAILOR_CONFIG_PATH` |
|
|
334
|
+
| `--namespace <NAMESPACE>` | `-n` | TailorDB namespace name (optional - deploys all namespaces with erdSite if omitted) | No | - | - |
|
|
560
335
|
|
|
561
336
|
See [Global Options](../cli-reference.md#global-options) for options available to all commands.
|
|
562
337
|
|
|
563
|
-
<!-- politty:command:tailordb erd deploy:global-options-link:end -->
|
|
564
|
-
|
|
565
338
|
**Notes:**
|
|
566
339
|
|
|
567
340
|
- ERD commands build from the local TailorDB schema, including plugin-generated TailorDB types.
|
|
568
341
|
- `tailordb erd export` writes a self-contained `index.html` viewer to `<output>/<namespace>/dist`.
|
|
342
|
+
- `tailordb erd diff` compares exported self-contained viewer HTML files and writes a visual ERD viewer that can switch between the current schema and the highlighted diff.
|
|
569
343
|
- `tailordb erd serve` watches the config file and TailorDB type files, then reloads the browser viewer when the rebuilt `index.html` reports a new embedded schema revision.
|
|
570
344
|
- `tailordb erd deploy` still requires `erdSite` in `tailor.config.ts` because it uploads the generated viewer to a configured Static Website.
|
|
571
345
|
|
|
@@ -573,13 +347,13 @@ See [Global Options](../cli-reference.md#global-options) for options available t
|
|
|
573
347
|
|
|
574
348
|
```bash
|
|
575
349
|
# Deploy ERD for all namespaces with erdSite configured
|
|
576
|
-
tailor
|
|
350
|
+
tailor tailordb erd deploy
|
|
577
351
|
|
|
578
352
|
# Deploy ERD for a specific namespace
|
|
579
|
-
tailor
|
|
353
|
+
tailor tailordb erd deploy --namespace myNamespace
|
|
580
354
|
|
|
581
355
|
# Deploy ERD with JSON output
|
|
582
|
-
tailor
|
|
356
|
+
tailor tailordb erd deploy --json
|
|
583
357
|
```
|
|
584
358
|
|
|
585
359
|
**Notes:**
|