@tailor-platform/sdk 1.72.0 → 1.73.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 +27 -0
- package/dist/aigateway-B3oZZE6v.mjs +15 -0
- package/dist/aigateway-B3oZZE6v.mjs.map +1 -0
- package/dist/application-BhRnH42h.mjs +3 -0
- package/dist/{application-DmjIKQ-a.mjs → application-Dxhdq_nu.mjs} +21 -19
- package/dist/application-Dxhdq_nu.mjs.map +1 -0
- package/dist/{assert-CKfwrmCV.mjs → assert-DBxo8jPo.mjs} +1 -2
- package/dist/{assert-CKfwrmCV.mjs.map → assert-DBxo8jPo.mjs.map} +1 -1
- package/dist/{authconnection-D7lsvsKY.mjs → authconnection-BGQM8FZI.mjs} +2 -3
- package/dist/{authconnection-D7lsvsKY.mjs.map → authconnection-BGQM8FZI.mjs.map} +1 -1
- package/dist/{brand-DlnJ375c.mjs → brand-Eo4pLXPJ.mjs} +1 -2
- package/dist/{brand-DlnJ375c.mjs.map → brand-Eo4pLXPJ.mjs.map} +1 -1
- 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/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 +12 -0
- package/dist/cli/commands/generate/types.d.mts +126 -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 +211 -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 +113 -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 +63 -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/index.d.mts +1 -2
- package/dist/cli/index.mjs +21 -22
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +80 -21402
- package/dist/cli/lib.mjs +8 -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 +44 -0
- package/dist/cli/shared/context.d.mts +28 -0
- package/dist/cli/shared/script-executor.d.mts +74 -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/skills.mjs +1 -2
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/config/index.d.mts +29 -0
- package/dist/configure/config/types.d.mts +103 -0
- package/dist/configure/index.d.mts +125 -7
- package/dist/configure/index.mjs +5 -6
- 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 +43 -0
- package/dist/{types-v_ErzNUF.d.mts → configure/services/auth/types.d.mts} +7 -172
- package/dist/configure/services/executor/executor.d.mts +82 -0
- package/dist/configure/services/executor/index.d.mts +8 -0
- package/dist/configure/services/executor/operation.d.mts +46 -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 +33 -0
- package/dist/configure/services/resolver/index.d.mts +5 -0
- package/dist/configure/services/resolver/resolver.d.mts +77 -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 +451 -0
- package/dist/configure/services/tailordb/types.d.mts +149 -0
- package/dist/configure/services/workflow/index.d.mts +7 -0
- package/dist/configure/services/workflow/job.d.mts +81 -0
- package/dist/configure/services/workflow/test-env-key.d.mts +9 -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 +55 -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.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 +12 -0
- package/dist/configure/types/type.d.mts +99 -0
- package/dist/configure/user.d.mts +7 -0
- package/dist/{context-CDQqIv4u.mjs → context-Bd266-ru.mjs} +2 -3
- package/dist/{context-CDQqIv4u.mjs.map → context-Bd266-ru.mjs.map} +1 -1
- package/dist/{crashreport-BwF8cHF0.mjs → crashreport-Dy4ZzSkd.mjs} +1 -2
- package/dist/{crashreport-BqyvFk-_.mjs → crashreport-ayWANEZ6.mjs} +4 -5
- package/dist/{crashreport-BqyvFk-_.mjs.map → crashreport-ayWANEZ6.mjs.map} +1 -1
- package/dist/{enum-constants-C7DaWeQo.mjs → enum-constants-j9QBF0cB.mjs} +1 -2
- package/dist/{enum-constants-C7DaWeQo.mjs.map → enum-constants-j9QBF0cB.mjs.map} +1 -1
- package/dist/{errors-EsY4XO6O.mjs → errors-Dtf2WPaW.mjs} +1 -2
- package/dist/{errors-EsY4XO6O.mjs.map → errors-Dtf2WPaW.mjs.map} +1 -1
- package/dist/{field-C4zdJLW5.mjs → field-DOsJCPFa.mjs} +1 -2
- package/dist/{field-C4zdJLW5.mjs.map → field-DOsJCPFa.mjs.map} +1 -1
- package/dist/{file-BkxupbYP.mjs → file-_oUZo76X.mjs} +2 -3
- package/dist/{file-BkxupbYP.mjs.map → file-_oUZo76X.mjs.map} +1 -1
- package/dist/{file-utils-BHPxPXmn.mjs → file-utils-DcyIPFQh.mjs} +2 -3
- package/dist/{file-utils-BHPxPXmn.mjs.map → file-utils-DcyIPFQh.mjs.map} +1 -1
- package/dist/{globals-ByrCoDip.mjs → globals-B8XX5TRB.mjs} +3 -3
- package/dist/globals-B8XX5TRB.mjs.map +1 -0
- package/dist/{iconv-D1zmPjvi.mjs → iconv-D2vi8G36.mjs} +2 -3
- package/dist/{iconv-D1zmPjvi.mjs.map → iconv-D2vi8G36.mjs.map} +1 -1
- package/dist/{idp-ynUfzwpz.mjs → idp-Bx25ZBdN.mjs} +2 -3
- package/dist/{idp-ynUfzwpz.mjs.map → idp-Bx25ZBdN.mjs.map} +1 -1
- package/dist/{interceptor-DOqRkCya.mjs → interceptor-D-q1rvRl.mjs} +1 -2
- package/dist/{interceptor-DOqRkCya.mjs.map → interceptor-D-q1rvRl.mjs.map} +1 -1
- package/dist/{job-BpsFXPbi.mjs → job-CtU73PGa.mjs} +3 -4
- package/dist/{job-BpsFXPbi.mjs.map → job-CtU73PGa.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +2 -3
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-CSoZxVKN.mjs → kysely-type-D-zflMGf.mjs} +2 -3
- package/dist/{kysely-type-CSoZxVKN.mjs.map → kysely-type-D-zflMGf.mjs.map} +1 -1
- package/dist/{logger-DKF-JsAK.mjs → logger-BEiZZ3qT.mjs} +1 -2
- package/dist/{logger-DKF-JsAK.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
- package/dist/{mock-wf5qeZLi.mjs → mock-Ce1GCi4-.mjs} +60 -5
- package/dist/mock-Ce1GCi4-.mjs.map +1 -0
- package/dist/{multiline-Cf9ODpr1.mjs → multiline-sfHpTZZK.mjs} +1 -2
- package/dist/{multiline-Cf9ODpr1.mjs.map → multiline-sfHpTZZK.mjs.map} +1 -1
- package/dist/{package-json-DcQApfPQ.mjs → package-json-8b0O9TlX.mjs} +1 -2
- package/dist/{package-json-DcQApfPQ.mjs.map → package-json-8b0O9TlX.mjs.map} +1 -1
- package/dist/package-json-Cv2Z-TqQ.mjs +3 -0
- package/dist/parser/generator-config/schema.d.mts +1 -0
- 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/plugin/builtin/enum-constants/index.d.mts +16 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
- package/dist/plugin/builtin/seed/index.d.mts +45 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -2
- package/dist/plugin/get-generated-type.d.mts +17 -0
- package/dist/plugin/index.d.mts +3 -118
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/manager.d.mts +1 -0
- package/dist/plugin/types.d.mts +245 -0
- package/dist/plugin/with-context.d.mts +102 -0
- package/dist/{registry-D0uB0OrK.mjs → registry-BozuxbPp.mjs} +1 -2
- package/dist/{registry-D0uB0OrK.mjs.map → registry-BozuxbPp.mjs.map} +1 -1
- package/dist/{repl-editor-DD5YP5mt.mjs → repl-editor-BmQOyZJd.mjs} +2 -3
- package/dist/{repl-editor-DD5YP5mt.mjs.map → repl-editor-BmQOyZJd.mjs.map} +1 -1
- package/dist/{rolldown-runtime-BkoGK1jX.mjs → rolldown-runtime-DXywRVcq.mjs} +0 -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 -2
- package/dist/runtime/context.d.mts +67 -2
- package/dist/runtime/context.mjs +1 -2
- package/dist/runtime/file.d.mts +249 -2
- package/dist/runtime/file.mjs +1 -2
- package/dist/runtime/globals.d.mts +31 -20
- package/dist/runtime/globals.mjs +0 -1
- package/dist/runtime/iconv.d.mts +121 -2
- package/dist/runtime/iconv.mjs +1 -2
- package/dist/runtime/idp.d.mts +186 -2
- package/dist/runtime/idp.mjs +1 -2
- package/dist/runtime/index.d.mts +47 -9
- package/dist/runtime/index.mjs +9 -9
- package/dist/runtime/secretmanager.d.mts +54 -2
- package/dist/runtime/secretmanager.mjs +1 -2
- package/dist/{types-DTcZ2Yax.d.mts → runtime/types.d.mts} +1 -2
- package/dist/runtime/workflow.d.mts +107 -2
- package/dist/runtime/workflow.mjs +2 -3
- package/dist/{runtime-Cd375HD-.mjs → runtime-CEFC05qX.mjs} +81 -130
- package/dist/runtime-CEFC05qX.mjs.map +1 -0
- package/dist/{schema-C4fkpWV_.mjs → schema-DAdZSFOd.mjs} +3 -4
- package/dist/{schema-C4fkpWV_.mjs.map → schema-DAdZSFOd.mjs.map} +1 -1
- package/dist/{secret-file-eB3R3Fil.mjs → secret-file-VSVGy1V0.mjs} +2 -3
- package/dist/{secret-file-eB3R3Fil.mjs.map → secret-file-VSVGy1V0.mjs.map} +1 -1
- package/dist/{secretmanager-h3tBJV8f.mjs → secretmanager-BVxw3ih_.mjs} +2 -3
- package/dist/{secretmanager-h3tBJV8f.mjs.map → secretmanager-BVxw3ih_.mjs.map} +1 -1
- package/dist/seed/index.d.mts +1 -2
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-YAbtMy65.mjs → seed-DoMTMLcm.mjs} +3 -4
- package/dist/{seed-YAbtMy65.mjs.map → seed-DoMTMLcm.mjs.map} +1 -1
- package/dist/service-BXmdFwSH.mjs +3 -0
- package/dist/{service-DDWgZL_L2.mjs → service-DBFZQloR.mjs} +3 -4
- package/dist/service-DBFZQloR.mjs.map +1 -0
- package/dist/{service-B2Jd9CxS.mjs → service-DiEtAsvc.mjs} +3 -4
- package/dist/{service-B2Jd9CxS.mjs.map → service-DiEtAsvc.mjs.map} +1 -1
- package/dist/{service_pb-BsBR6yW5.mjs → service_pb-CIrhGwHk.mjs} +1 -2
- package/dist/{service_pb-BsBR6yW5.mjs.map → service_pb-CIrhGwHk.mjs.map} +1 -1
- package/dist/{service_pb-BJ9GsAnW.mjs → service_pb-DjwIn4jO.mjs} +1 -2
- 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-BQbbVo2t.mjs → telemetry-CdqJEzkj.mjs} +2 -3
- package/dist/{telemetry-BQbbVo2t.mjs.map → telemetry-CdqJEzkj.mjs.map} +1 -1
- package/dist/telemetry-ClwW5ohF.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 +150 -0
- package/dist/types/executor.generated.d.mts +177 -0
- package/dist/types/generator-config.generated.d.mts +28 -0
- package/dist/types/helpers.d.mts +39 -0
- package/dist/types/http-adapter.generated.d.mts +17 -0
- package/dist/types/idp.generated.d.mts +584 -0
- package/dist/types/resolver.generated.d.mts +38 -0
- package/dist/types/secrets.generated.d.mts +14 -0
- package/dist/types/staticwebsite.generated.d.mts +10 -0
- package/dist/{types-rj8YJcEe.d.mts → types/tailordb.generated.d.mts} +2 -290
- package/dist/types/workflow.generated.d.mts +12 -0
- package/dist/types-qhFZ8y9B.mjs +4 -0
- package/dist/{types-D4QMmNWh.mjs → types-ywCGpzDZ.mjs} +2 -3
- package/dist/{types-D4QMmNWh.mjs.map → types-ywCGpzDZ.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +6 -89
- package/dist/utils/test/index.mjs +1 -2
- 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 +1 -2
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.d.mts +4 -392
- package/dist/vitest/index.mjs +4 -5
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +62 -0
- package/dist/vitest/mock.d.mts +364 -0
- package/dist/vitest/setup.d.mts +1 -2
- package/dist/vitest/setup.mjs +2 -3
- package/dist/vitest/setup.mjs.map +1 -1
- package/dist/{workflow-C8I7shjM.mjs → workflow-DSwnYPPP.mjs} +10 -4
- package/dist/workflow-DSwnYPPP.mjs.map +1 -0
- package/docs/runtime.md +5 -1
- package/docs/services/aigateway.md +14 -0
- package/docs/testing.md +48 -2
- package/package.json +6 -1
- package/dist/application-DmjIKQ-a.mjs.map +0 -1
- package/dist/application-a_ApFuPh.mjs +0 -4
- package/dist/authconnection-CqfaJfrC.d.mts +0 -32
- package/dist/context-CUBwSBq4.d.mts +0 -68
- package/dist/file-BzK8z3X-.d.mts +0 -250
- package/dist/globals-ByrCoDip.mjs.map +0 -1
- package/dist/iconv-kwrmd1U_.d.mts +0 -122
- package/dist/idp-BmYwCXnJ.d.mts +0 -187
- package/dist/index-BDBU7x-i.d.mts +0 -18
- package/dist/index-BSlv_YrG.d.mts +0 -46
- package/dist/index-BzGqTY5x.d.mts +0 -1315
- package/dist/index-D3_Au3wu.d.mts +0 -47
- package/dist/index-DtFRlrww.d.mts +0 -18
- package/dist/index-jeE3UvF2.d.mts +0 -18
- package/dist/mock-wf5qeZLi.mjs.map +0 -1
- package/dist/package-json-wzO6nV9O.mjs +0 -4
- package/dist/runtime-Cd375HD-.mjs.map +0 -1
- package/dist/secretmanager-CKLB3wAQ.d.mts +0 -55
- package/dist/service-CRaa4Joe.mjs +0 -4
- package/dist/service-DDWgZL_L2.mjs.map +0 -1
- package/dist/telemetry-w92bvGdC.mjs +0 -4
- package/dist/types-32lUMToj.mjs +0 -5
- package/dist/types-aqnqTCfO.d.mts +0 -602
- package/dist/workflow-C8I7shjM.mjs.map +0 -1
- package/dist/workflow-CMamswkK.d.mts +0 -96
- package/dist/workflow.generated-Da1zECDw.d.mts +0 -1348
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Order } from "../../shared/args.mjs";
|
|
2
|
+
import { WorkflowListInfo } from "./transform.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/workflow/list.d.ts
|
|
6
|
+
interface ListWorkflowsOptions {
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
profile?: string;
|
|
9
|
+
order?: Order;
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List workflows in the workspace and return CLI-friendly info.
|
|
14
|
+
* @param options - Workflow listing options
|
|
15
|
+
* @returns List of workflows
|
|
16
|
+
*/
|
|
17
|
+
declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ListWorkflowsOptions, listWorkflows };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WorkflowWaitResult } from "./waiter.mjs";
|
|
2
|
+
import { WaitOptions } from "./start.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/workflow/resume.d.ts
|
|
6
|
+
interface ResumeWorkflowOptions {
|
|
7
|
+
executionId: string;
|
|
8
|
+
workspaceId?: string;
|
|
9
|
+
profile?: string;
|
|
10
|
+
interval?: number;
|
|
11
|
+
}
|
|
12
|
+
interface ResumeWorkflowResultWithWait {
|
|
13
|
+
executionId: string;
|
|
14
|
+
wait: (options?: WaitOptions) => Promise<WorkflowWaitResult>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Resume a suspended workflow execution and return a handle to wait for completion.
|
|
18
|
+
* @param options - Resume options
|
|
19
|
+
* @returns Resume result with wait helper
|
|
20
|
+
*/
|
|
21
|
+
declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { ResumeWorkflowOptions, ResumeWorkflowResultWithWait, resumeWorkflow };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { WorkflowWaitUntil } from "./status.mjs";
|
|
2
|
+
import { WorkflowWaitResult } from "./waiter.mjs";
|
|
3
|
+
import { Jsonifiable } from "type-fest";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/cli/commands/workflow/start.d.ts
|
|
7
|
+
type WorkflowLike = {
|
|
8
|
+
name: string;
|
|
9
|
+
mainJob: {
|
|
10
|
+
body: unknown;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
type AuthInvoker<M extends string = string> = {
|
|
14
|
+
namespace: string;
|
|
15
|
+
machineUserName: M;
|
|
16
|
+
};
|
|
17
|
+
type WorkflowInput<W extends WorkflowLike> = W extends WorkflowLike ? W["mainJob"]["body"] extends ((...args: infer Args) => unknown) ? Args[0] : never : never;
|
|
18
|
+
type StartWorkflowArgOptionForSingleWorkflow<W extends WorkflowLike> = WorkflowLike extends W ? {
|
|
19
|
+
arg?: Jsonifiable;
|
|
20
|
+
} : undefined extends WorkflowInput<W> ? {
|
|
21
|
+
arg?: WorkflowInput<W>;
|
|
22
|
+
} : {
|
|
23
|
+
arg: WorkflowInput<W>;
|
|
24
|
+
};
|
|
25
|
+
type StartWorkflowArgOption<W extends WorkflowLike> = W extends WorkflowLike ? StartWorkflowArgOptionForSingleWorkflow<W> : never;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use StartWorkflowTypedOptions instead.
|
|
28
|
+
*/
|
|
29
|
+
interface StartWorkflowOptions {
|
|
30
|
+
name: string;
|
|
31
|
+
machineUser?: string;
|
|
32
|
+
arg?: Jsonifiable;
|
|
33
|
+
workspaceId?: string;
|
|
34
|
+
profile?: string;
|
|
35
|
+
configPath?: string;
|
|
36
|
+
interval?: number;
|
|
37
|
+
}
|
|
38
|
+
type StartWorkflowTypedBaseOptions<W extends WorkflowLike> = {
|
|
39
|
+
workflow: W;
|
|
40
|
+
authInvoker: AuthInvoker<string>;
|
|
41
|
+
workspaceId?: string;
|
|
42
|
+
profile?: string;
|
|
43
|
+
interval?: number;
|
|
44
|
+
};
|
|
45
|
+
type StartWorkflowTypedOptions<W extends WorkflowLike = WorkflowLike> = W extends WorkflowLike ? StartWorkflowTypedBaseOptions<W> & StartWorkflowArgOption<W> : never;
|
|
46
|
+
interface WaitOptions {
|
|
47
|
+
showProgress?: boolean;
|
|
48
|
+
timeout?: number;
|
|
49
|
+
until?: WorkflowWaitUntil;
|
|
50
|
+
}
|
|
51
|
+
interface StartWorkflowResultWithWait {
|
|
52
|
+
executionId: string;
|
|
53
|
+
wait: (options?: WaitOptions) => Promise<WorkflowWaitResult>;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Start a workflow and return a handle to wait for completion.
|
|
57
|
+
* @param options - Start options
|
|
58
|
+
* @returns Start result with wait helper
|
|
59
|
+
*/
|
|
60
|
+
declare function startWorkflow<W extends WorkflowLike>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
|
|
61
|
+
declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { StartWorkflowOptions, StartWorkflowResultWithWait, StartWorkflowTypedOptions, WaitOptions, startWorkflow };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/cli/commands/workflow/status.d.ts
|
|
2
|
+
type WorkflowWaitUntil = "success" | "suspended" | "terminal";
|
|
3
|
+
type WorkflowExecutionStatusClass = "success" | "suspended" | "failure" | "transient";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { WorkflowExecutionStatusClass, WorkflowWaitUntil };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/cli/commands/workflow/transform.d.ts
|
|
2
|
+
interface WorkflowListInfo {
|
|
3
|
+
name: string;
|
|
4
|
+
mainJob: string;
|
|
5
|
+
jobFunctions: number;
|
|
6
|
+
updatedAt: Date | null;
|
|
7
|
+
}
|
|
8
|
+
interface WorkflowInfo {
|
|
9
|
+
name: string;
|
|
10
|
+
id: string;
|
|
11
|
+
mainJob: string;
|
|
12
|
+
jobFunctions: Record<string, string>;
|
|
13
|
+
createdAt: Date | null;
|
|
14
|
+
updatedAt: Date | null;
|
|
15
|
+
}
|
|
16
|
+
interface WorkflowJobExecutionInfo {
|
|
17
|
+
id: string;
|
|
18
|
+
stackedJobName: string;
|
|
19
|
+
status: string;
|
|
20
|
+
executionId: string;
|
|
21
|
+
startedAt: Date | null;
|
|
22
|
+
finishedAt: Date | null;
|
|
23
|
+
}
|
|
24
|
+
interface WorkflowExecutionInfo {
|
|
25
|
+
id: string;
|
|
26
|
+
workflowName: string;
|
|
27
|
+
status: string;
|
|
28
|
+
jobExecutions: number;
|
|
29
|
+
startedAt: Date | null;
|
|
30
|
+
finishedAt: Date | null;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { WorkflowExecutionInfo, WorkflowInfo, WorkflowJobExecutionInfo, WorkflowListInfo };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WaitWorkflowExecutionOptions, WorkflowWaitResult } from "./waiter.mjs";
|
|
2
|
+
import { getWorkflowExecution } from "./executions.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/workflow/wait.d.ts
|
|
6
|
+
interface WorkflowWaitOutput extends WorkflowWaitResult {
|
|
7
|
+
jobDetails?: Awaited<ReturnType<typeof getWorkflowExecution>>["execution"]["jobDetails"];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wait for an existing workflow execution by ID.
|
|
11
|
+
* @param options - Workflow wait options
|
|
12
|
+
* @returns Workflow wait result
|
|
13
|
+
*/
|
|
14
|
+
declare function waitWorkflowExecution(options: WaitWorkflowExecutionOptions): Promise<WorkflowWaitResult>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { WorkflowWaitOutput, waitWorkflowExecution };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { WorkflowExecutionInfo } from "./transform.mjs";
|
|
2
|
+
import { WorkflowExecutionStatusClass, WorkflowWaitUntil } from "./status.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workflow/waiter.d.ts
|
|
5
|
+
interface WaitWorkflowExecutionOptions {
|
|
6
|
+
executionId: string;
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
profile?: string;
|
|
9
|
+
interval?: number;
|
|
10
|
+
timeout?: number;
|
|
11
|
+
until?: WorkflowWaitUntil;
|
|
12
|
+
showProgress?: boolean;
|
|
13
|
+
trackJobs?: boolean;
|
|
14
|
+
}
|
|
15
|
+
interface WorkflowWaitResult extends WorkflowExecutionInfo {
|
|
16
|
+
statusClass: WorkflowExecutionStatusClass | "unknown";
|
|
17
|
+
elapsedMs: number;
|
|
18
|
+
attempts: number;
|
|
19
|
+
timedOut: boolean;
|
|
20
|
+
lastError: string | null;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { WaitWorkflowExecutionOptions, WorkflowWaitResult };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AppHealthInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workspace/app/health.d.ts
|
|
5
|
+
declare const healthOptionsSchema: z.ZodObject<{
|
|
6
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type HealthOptions = z.input<typeof healthOptionsSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* Get application schema health status.
|
|
13
|
+
* @param options - Health check options
|
|
14
|
+
* @returns Application health information
|
|
15
|
+
*/
|
|
16
|
+
declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { HealthOptions, getAppHealth };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workspace/app/list.d.ts
|
|
5
|
+
declare const listAppsOptionsSchema: z.ZodObject<{
|
|
6
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
asc: "asc";
|
|
10
|
+
desc: "desc";
|
|
11
|
+
}>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* List applications in a workspace with an optional order and limit.
|
|
17
|
+
* @param options - Application listing options
|
|
18
|
+
* @returns List of applications
|
|
19
|
+
*/
|
|
20
|
+
declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListAppsOptions, listApps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/cli/commands/workspace/app/transform.d.ts
|
|
2
|
+
interface AppInfo {
|
|
3
|
+
name: string;
|
|
4
|
+
domain: string;
|
|
5
|
+
authNamespace: string;
|
|
6
|
+
createdAt: Date | null;
|
|
7
|
+
updatedAt: Date | null;
|
|
8
|
+
}
|
|
9
|
+
interface AppHealthInfo {
|
|
10
|
+
name: string;
|
|
11
|
+
status: string;
|
|
12
|
+
currentServingSchemaUpdatedAt: Date | null;
|
|
13
|
+
lastAttemptStatus: string;
|
|
14
|
+
lastAttemptAt: Date | null;
|
|
15
|
+
lastAttemptError: string;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { AppHealthInfo, AppInfo };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WorkspaceInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workspace/create.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Schema for workspace creation options
|
|
7
|
+
* - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
|
|
8
|
+
* - organizationId, folderId: optional UUIDs
|
|
9
|
+
*/
|
|
10
|
+
declare const createWorkspaceOptionsSchema: z.ZodObject<{
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
region: z.ZodString;
|
|
13
|
+
deleteProtection: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
organizationId: z.ZodOptional<z.ZodUUID>;
|
|
15
|
+
folderId: z.ZodOptional<z.ZodUUID>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
|
|
18
|
+
/**
|
|
19
|
+
* Create a new workspace with the given options.
|
|
20
|
+
* @param options - Workspace creation options
|
|
21
|
+
* @returns Created workspace info
|
|
22
|
+
*/
|
|
23
|
+
declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { CreateWorkspaceOptions, createWorkspace };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/workspace/delete.d.ts
|
|
4
|
+
declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
|
|
5
|
+
workspaceId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
|
|
8
|
+
/**
|
|
9
|
+
* Delete a workspace by ID.
|
|
10
|
+
* @param options - Workspace deletion options
|
|
11
|
+
* @returns Promise that resolves when deletion completes
|
|
12
|
+
*/
|
|
13
|
+
declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { DeleteWorkspaceOptions, deleteWorkspace };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WorkspaceDetails } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workspace/get.d.ts
|
|
5
|
+
declare const getWorkspaceOptionsSchema: z.ZodObject<{
|
|
6
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type GetWorkspaceOptions = z.input<typeof getWorkspaceOptionsSchema>;
|
|
10
|
+
/**
|
|
11
|
+
* Get detailed information about a workspace.
|
|
12
|
+
* @param options - Workspace get options
|
|
13
|
+
* @returns Workspace details
|
|
14
|
+
*/
|
|
15
|
+
declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetails>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { GetWorkspaceOptions, getWorkspace };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { WorkspaceInfo } from "./transform.mjs";
|
|
2
|
+
import { Order } from "../../shared/args.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/workspace/list.d.ts
|
|
6
|
+
interface ListWorkspacesOptions {
|
|
7
|
+
order?: Order;
|
|
8
|
+
limit?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* List workspaces with an optional order and limit.
|
|
12
|
+
* @param options - Workspace listing options
|
|
13
|
+
* @returns List of workspaces
|
|
14
|
+
*/
|
|
15
|
+
declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ListWorkspacesOptions, listWorkspaces };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/workspace/restore.d.ts
|
|
4
|
+
declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
|
|
5
|
+
workspaceId: z.ZodUUID;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSchema>;
|
|
8
|
+
/**
|
|
9
|
+
* Restore a deleted workspace by ID.
|
|
10
|
+
* @param options - Workspace restore options
|
|
11
|
+
* @returns Promise that resolves when restoration completes
|
|
12
|
+
*/
|
|
13
|
+
declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { RestoreWorkspaceOptions, restoreWorkspace };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/cli/commands/workspace/transform.d.ts
|
|
2
|
+
interface WorkspaceInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
folderName?: string;
|
|
6
|
+
region: string;
|
|
7
|
+
createdAt: Date | null;
|
|
8
|
+
updatedAt: Date | null;
|
|
9
|
+
}
|
|
10
|
+
interface WorkspaceDetails extends WorkspaceInfo {
|
|
11
|
+
deleteProtection: boolean;
|
|
12
|
+
organizationId: string;
|
|
13
|
+
folderId: string;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { WorkspaceDetails, WorkspaceInfo };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/workspace/user/invite.d.ts
|
|
4
|
+
declare const inviteUserOptionsSchema: z.ZodObject<{
|
|
5
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodEmail;
|
|
8
|
+
role: z.ZodEnum<{
|
|
9
|
+
admin: "admin";
|
|
10
|
+
editor: "editor";
|
|
11
|
+
viewer: "viewer";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* Invite a user to a workspace.
|
|
17
|
+
* @param options - User invite options
|
|
18
|
+
* @returns Promise that resolves when invitation is sent
|
|
19
|
+
*/
|
|
20
|
+
declare function inviteUser(options: InviteUserOptions): Promise<void>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { InviteUserOptions, inviteUser };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UserInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/workspace/user/list.d.ts
|
|
5
|
+
declare const listUsersOptionsSchema: z.ZodObject<{
|
|
6
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
asc: "asc";
|
|
10
|
+
desc: "desc";
|
|
11
|
+
}>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* List users in a workspace with an optional order and limit.
|
|
17
|
+
* @param options - User listing options
|
|
18
|
+
* @returns List of workspace users
|
|
19
|
+
*/
|
|
20
|
+
declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListUsersOptions, listUsers };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/workspace/user/remove.d.ts
|
|
4
|
+
declare const removeUserOptionsSchema: z.ZodObject<{
|
|
5
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
|
|
10
|
+
/**
|
|
11
|
+
* Remove a user from a workspace.
|
|
12
|
+
* @param options - User remove options
|
|
13
|
+
* @returns Promise that resolves when removal completes
|
|
14
|
+
*/
|
|
15
|
+
declare function removeUser(options: RemoveUserOptions): Promise<void>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { RemoveUserOptions, removeUser };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/workspace/user/update.d.ts
|
|
4
|
+
declare const updateUserOptionsSchema: z.ZodObject<{
|
|
5
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
6
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
role: z.ZodEnum<{
|
|
9
|
+
admin: "admin";
|
|
10
|
+
editor: "editor";
|
|
11
|
+
viewer: "viewer";
|
|
12
|
+
}>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* Update a user's role in a workspace.
|
|
17
|
+
* @param options - User update options
|
|
18
|
+
* @returns Promise that resolves when update completes
|
|
19
|
+
*/
|
|
20
|
+
declare function updateUser(options: UpdateUserOptions): Promise<void>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { UpdateUserOptions, updateUser };
|
package/dist/cli/index.d.mts
CHANGED
package/dist/cli/index.mjs
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { $
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-BqyvFk-_.mjs";
|
|
2
|
+
import { C as CustomDomainStatus, R as FunctionExecution_Type, mt as AuthInvokerSchema, xt as PATScope } from "../service_pb-CIrhGwHk.mjs";
|
|
3
|
+
import { t as assertDefined } from "../assert-DBxo8jPo.mjs";
|
|
4
|
+
import { n as logger, r as styles } from "../logger-BEiZZ3qT.mjs";
|
|
5
|
+
import { $t as generateAllTypeManifestsFromSnapshot, A as listCommand$12, An as apiCommand, Bn as paginationArgs, C as listCommand$13, Cn as getNamespacesWithMigrations, Dn as PluginManager, Dt as listCommand$6, E as waitCommand, En as sdkNameLabelKey, F as generateCommand$1, Fn as configArg, G as removeCommand$1, Gt as deploy, H as extractOwnedNamespaces, Hn as workspaceArgs, Ht as formatKeyValueTable, I as generateMigrationScript, In as confirmationArgs, It as getCommand$6, K as updateCommand$3, Kt as executeScript, L as writeDbTypesFile, Ln as deploymentArgs, Mn as assertWritable, N as truncateCommand, Nn as defineAppCommand, O as resumeCommand, On as generateUserTypes, Pn as commonArgs, Pt as startCommand, Q as getCommand$5, Qt as compareSnapshotWithRemote, R as getConfiguredEditorCommand, Rn as isVerbose, Rt as executionsCommand, Sn as hasChanges, T as healthCommand, Tn as resourceTrn, Tt as triggerCommand, U as logBetaWarning, Ut as getCommand$1, V as showCommand, Vn as toPageDirection, Vt as functionExecutionStatusToString, X as listCommand$11, Xt as handleOptionalToRequiredError, Y as treeCommand, Yt as MIGRATION_LABEL_KEY, Zt as parseMigrationLabelNumber, _n as reconstructSnapshotFromMigrations, b as createCommand$4, c as listCommand$14, ct as createCommand$3, en as protoGqlPermission, et as updateCommand$2, f as restoreCommand, fn as getMigrationFilePath, ft as getCommand$3, g as getCommand$7, gn as loadDiff, gt as listCommand$8, hn as isValidMigrationNumber, ht as tokenCommand, i as updateCommand$4, it as getCommand$4, jt as jobsCommand, kn as prompt, ln as createSnapshotFromLocalTypes, m as listCommand$15, nt as listCommand$10, o as removeCommand, on as assertValidMigrationFiles, ot as deleteCommand$3, pn as getMigrationFiles, r as queryCommand, rn as INITIAL_SCHEMA_NUMBER, sn as compareLocalTypesWithSnapshot, t as isNativeTypeScriptRuntime, u as inviteCommand, un as getLatestMigrationNumber, ut as listCommand$9, v as deleteCommand$4, vn as formatMigrationNumber, vt as generate, wn as ensureConfigId, wt as webhookCommand, xn as formatMigrationDiff, xt as getCommand$2, yn as parseMigrationNumberArg, yt as listCommand$7, z as openInConfiguredEditor, zn as pagedLogArgs } from "../runtime-CEFC05qX.mjs";
|
|
6
|
+
import { $ as initOperatorClient, A as loadAccessToken, B as saveUserTokens, C as hashContent$1, D as fetchLatestToken, E as deleteUserTokens, F as loadStoredUserTokens, H as closeConnectionPool, I as loadWorkspaceId, J as fetchUserInfo, K as fetchPaged, L as platformConfigFromProfile, M as loadConsoleBaseUrl, N as loadMachineUserName, O as hasAnyUserTokenEntry, Q as initOAuth2Client, R as readPlatformConfig, S as getDistDir, T as loadConfig, U as defaultPlatformBaseUrl, V as writePlatformConfig, W as fetchAll, _ as createLogLevelTreeshakeOptions, a as WorkflowJobSchema, c as INVOKER_EXPR, et as isDefaultPlatform, g as composeFunctionTreeshakeOptions, h as platformBundleDefinePlugin, i as resolveInlineSourcemap, k as hasUserTokenEntry, o as ResolverSchema, q as fetchPlatformMachineUserToken, t as defineApplication, v as resolveBundleLogLevel, z as resolveUserTokenKey } from "../application-Dxhdq_nu.mjs";
|
|
7
|
+
import { n as ExecutorSchema } from "../service-DiEtAsvc.mjs";
|
|
8
|
+
import { t as multiline } from "../multiline-sfHpTZZK.mjs";
|
|
9
|
+
import { r as isPluginGeneratedType } from "../seed-DoMTMLcm.mjs";
|
|
10
|
+
import { t as readPackageJson } from "../package-json-8b0O9TlX.mjs";
|
|
11
|
+
import { i as userAgent } from "../secret-file-VSVGy1V0.mjs";
|
|
12
|
+
import { n as isCLIError } from "../errors-Dtf2WPaW.mjs";
|
|
13
|
+
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crashreport-ayWANEZ6.mjs";
|
|
15
14
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
16
15
|
import { withCompletionCommand } from "politty/completion";
|
|
17
16
|
import { z } from "zod";
|
|
@@ -488,7 +487,7 @@ const deployCommand$1 = defineAppCommand({
|
|
|
488
487
|
}).strict(),
|
|
489
488
|
run: async (args) => {
|
|
490
489
|
await assertWritable({ profile: args.profile });
|
|
491
|
-
const { initTelemetry } = await import("../telemetry-
|
|
490
|
+
const { initTelemetry } = await import("../telemetry-ClwW5ohF.mjs");
|
|
492
491
|
await initTelemetry();
|
|
493
492
|
await deploy({
|
|
494
493
|
workspaceId: args["workspace-id"],
|
|
@@ -1288,7 +1287,7 @@ async function detectFunctionType(options) {
|
|
|
1288
1287
|
const rawInput = module.default.input;
|
|
1289
1288
|
let inputSchema;
|
|
1290
1289
|
if (rawInput) {
|
|
1291
|
-
const { t } = await import("../types-
|
|
1290
|
+
const { t } = await import("../types-qhFZ8y9B.mjs");
|
|
1292
1291
|
inputSchema = t.object(rawInput);
|
|
1293
1292
|
}
|
|
1294
1293
|
return {
|
|
@@ -1673,7 +1672,7 @@ const generateCommand = defineAppCommand({
|
|
|
1673
1672
|
})
|
|
1674
1673
|
}).strict(),
|
|
1675
1674
|
run: async (args) => {
|
|
1676
|
-
const { initTelemetry } = await import("../telemetry-
|
|
1675
|
+
const { initTelemetry } = await import("../telemetry-ClwW5ohF.mjs");
|
|
1677
1676
|
await initTelemetry();
|
|
1678
1677
|
await generate({
|
|
1679
1678
|
configPath: args.config,
|
|
@@ -5987,7 +5986,7 @@ async function fetchRemoteTypes(client, workspaceId, namespace) {
|
|
|
5987
5986
|
async function assertMigrationsReproduceLocalTypes(loaded, target) {
|
|
5988
5987
|
const { config, plugins } = loaded;
|
|
5989
5988
|
const pluginManager = plugins.length > 0 ? new PluginManager(plugins) : void 0;
|
|
5990
|
-
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-
|
|
5989
|
+
const { defineApplication, generatePluginFilesIfNeeded } = await import("../application-BhRnH42h.mjs");
|
|
5991
5990
|
const application = defineApplication({
|
|
5992
5991
|
config,
|
|
5993
5992
|
pluginManager
|
|
@@ -5999,7 +5998,7 @@ async function assertMigrationsReproduceLocalTypes(loaded, target) {
|
|
|
5999
5998
|
await service.processNamespacePlugins();
|
|
6000
5999
|
}
|
|
6001
6000
|
const pluginExecutorFiles = generatePluginFilesIfNeeded(pluginManager, application.tailorDBServices, config.path);
|
|
6002
|
-
const executorService = application.executorService ?? (pluginExecutorFiles.length > 0 ? (await import("../service-
|
|
6001
|
+
const executorService = application.executorService ?? (pluginExecutorFiles.length > 0 ? (await import("../service-BXmdFwSH.mjs")).createExecutorService({ config: { files: [] } }) : void 0);
|
|
6003
6002
|
await executorService?.loadExecutors();
|
|
6004
6003
|
if (pluginExecutorFiles.length > 0) await executorService?.loadPluginExecutorFiles([...pluginExecutorFiles]);
|
|
6005
6004
|
const executorUsedTypes = /* @__PURE__ */ new Set();
|
|
@@ -6274,9 +6273,9 @@ const upgradeCommand = defineAppCommand({
|
|
|
6274
6273
|
})
|
|
6275
6274
|
}).strict(),
|
|
6276
6275
|
run: async (args) => {
|
|
6277
|
-
const { initTelemetry } = await import("../telemetry-
|
|
6276
|
+
const { initTelemetry } = await import("../telemetry-ClwW5ohF.mjs");
|
|
6278
6277
|
await initTelemetry();
|
|
6279
|
-
const { upgrade } = await import("../service-
|
|
6278
|
+
const { upgrade } = await import("../service-DBFZQloR.mjs");
|
|
6280
6279
|
await upgrade({
|
|
6281
6280
|
from: args.from,
|
|
6282
6281
|
dryRun: args["dry-run"],
|
|
@@ -6736,11 +6735,11 @@ runMain(mainCommand, {
|
|
|
6736
6735
|
if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
6737
6736
|
} else logger.error(`Unknown error: ${error}`);
|
|
6738
6737
|
if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
|
|
6739
|
-
const { reportCrash } = await import("../crashreport-
|
|
6738
|
+
const { reportCrash } = await import("../crashreport-Dy4ZzSkd.mjs");
|
|
6740
6739
|
await reportCrash(error, "handledError");
|
|
6741
6740
|
}
|
|
6742
6741
|
}
|
|
6743
|
-
const { shutdownTelemetry } = await import("../telemetry-
|
|
6742
|
+
const { shutdownTelemetry } = await import("../telemetry-ClwW5ohF.mjs");
|
|
6744
6743
|
await shutdownTelemetry();
|
|
6745
6744
|
}
|
|
6746
6745
|
});
|