@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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/utils/assert.ts
|
|
3
2
|
function assertDefined(value, message) {
|
|
4
3
|
if (value == null) throw new Error(message);
|
|
@@ -7,4 +6,4 @@ function assertDefined(value, message) {
|
|
|
7
6
|
|
|
8
7
|
//#endregion
|
|
9
8
|
export { assertDefined as t };
|
|
10
|
-
//# sourceMappingURL=assert-
|
|
9
|
+
//# sourceMappingURL=assert-DBxo8jPo.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assert-
|
|
1
|
+
{"version":3,"file":"assert-DBxo8jPo.mjs","names":[],"sources":["../src/utils/assert.ts"],"sourcesContent":["export function assertDefined<T>(value: T, message: string): NonNullable<T> {\n if (value == null) {\n throw new Error(message);\n }\n return value;\n}\n"],"mappings":";AAAA,SAAgB,cAAiB,OAAU,SAAiC;CAC1E,IAAI,SAAS,MACX,MAAM,IAAI,MAAM,OAAO;CAEzB,OAAO;AACT"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { t as __exportAll } from "./rolldown-runtime-BkoGK1jX.mjs";
|
|
1
|
+
import { t as __exportAll } from "./rolldown-runtime-DXywRVcq.mjs";
|
|
3
2
|
|
|
4
3
|
//#region src/runtime/authconnection.ts
|
|
5
4
|
var authconnection_exports = /* @__PURE__ */ __exportAll({ getConnectionToken: () => getConnectionToken });
|
|
@@ -13,4 +12,4 @@ const getConnectionToken = (...args) => api().getConnectionToken(...args);
|
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
15
14
|
export { getConnectionToken as n, authconnection_exports as t };
|
|
16
|
-
//# sourceMappingURL=authconnection-
|
|
15
|
+
//# sourceMappingURL=authconnection-BGQM8FZI.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authconnection-
|
|
1
|
+
{"version":3,"file":"authconnection-BGQM8FZI.mjs","names":[],"sources":["../src/runtime/authconnection.ts"],"sourcesContent":["/**\n * Auth connection utilities.\n *\n * Thin typed wrapper around the platform-provided `tailor.authconnection` runtime API.\n * At runtime this delegates to `globalThis.tailor.authconnection`. Use\n * `mockAuthconnection` from `@tailor-platform/sdk/vitest` to mock in unit tests.\n *\n * `connectionName` is narrowed to the connection names defined in `defineAuth()`'s\n * `connections` once `tailor.d.ts` has been generated (via `tailor-sdk deploy`/`generate`).\n * @example\n * import { authconnection } from \"@tailor-platform/sdk/runtime\";\n *\n * const token = await authconnection.getConnectionToken(\"my-connection\");\n */\n\nimport type { AuthConnectionTokenResult } from \"#/configure/services/auth/types\";\n// Import from the public entry (not `#/configure/types/connection-name`) so this d.ts\n// references `@tailor-platform/sdk` externally instead of inlining the registry — a single\n// generated `declare module \"@tailor-platform/sdk\"` then narrows this entry too.\nimport type { ConnectionName } from \"@tailor-platform/sdk\";\n\n/**\n * Platform API surface for `tailor.authconnection`. Describes the shape the\n * platform runtime injects on `globalThis.tailor.authconnection`.\n *\n * Each method below is also re-exported as a top-level named export from this\n * module so callers can either `import * as authconnection from\n * \"@tailor-platform/sdk/runtime/authconnection\"` or pick individual methods.\n */\nexport interface TailorAuthconnectionAPI {\n /**\n * Returns the access token for the given auth connection.\n * @param connectionName - Auth connection name as defined in tailor.config\n * @returns Token payload\n */\n getConnectionToken(connectionName: ConnectionName): Promise<AuthConnectionTokenResult>;\n}\n\nconst api = (): TailorAuthconnectionAPI =>\n (globalThis as { tailor: { authconnection: TailorAuthconnectionAPI } }).tailor.authconnection;\n\n/**\n * See {@link TailorAuthconnectionAPI.getConnectionToken}.\n * @param args - Forwarded to {@link TailorAuthconnectionAPI.getConnectionToken}\n * @returns Token payload\n */\nexport const getConnectionToken: TailorAuthconnectionAPI[\"getConnectionToken\"] = (...args) =>\n api().getConnectionToken(...args);\n"],"mappings":";;;;AAsCA,MAAM,YACH,WAAuE,OAAO;;;;;;AAOjF,MAAa,sBAAqE,GAAG,SACnF,IAAI,CAAC,CAAC,mBAAmB,GAAG,IAAI"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/utils/brand.ts
|
|
3
2
|
const SDK_BRAND = Symbol.for("tailor-platform/sdk");
|
|
4
3
|
/**
|
|
@@ -34,4 +33,4 @@ function isSdkBranded(value, kind) {
|
|
|
34
33
|
|
|
35
34
|
//#endregion
|
|
36
35
|
export { isSdkBranded as n, brandValue as t };
|
|
37
|
-
//# sourceMappingURL=brand-
|
|
36
|
+
//# sourceMappingURL=brand-Eo4pLXPJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-
|
|
1
|
+
{"version":3,"file":"brand-Eo4pLXPJ.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\nexport type SdkBrandKind =\n | \"tailordb-type\"\n | \"resolver\"\n | \"executor\"\n | \"workflow\"\n | \"workflow-job\"\n | \"wait-point\"\n | \"http-adapter\";\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * The brand stores the kind so service loaders can distinguish between\n * different SDK object types (e.g. a type loader skips executors).\n * @param value - The object to brand\n * @param kind - The kind of SDK object\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T, kind: SdkBrandKind): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: kind,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * When kind is specified, only returns true if the brand matches that kind.\n * Accepts a single kind or an array of kinds for multi-kind matching.\n * @param value - The value to check\n * @param kind - Optional kind or kinds to match against\n * @returns True if the value has the SDK brand symbol (and matches kind if specified)\n */\nexport function isSdkBranded(\n value: unknown,\n kind?: SdkBrandKind | readonly SdkBrandKind[],\n): boolean {\n if (value === null || typeof value !== \"object\" || !(SDK_BRAND in value)) return false;\n const stored = (value as Record<symbol, unknown>)[SDK_BRAND];\n // No kind filter → any brand matches. Legacy `true` brand → matches any kind.\n return (\n kind === undefined ||\n stored === true ||\n (Array.isArray(kind) ? kind.includes(stored as SdkBrandKind) : stored === kind)\n );\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,qBAAqB;;;;;;;;;AAmBxE,SAAgB,WAA6B,OAAU,MAAuB;CAC5E,OAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;CACZ,CAAC;CACD,OAAO;AACT;;;;;;;;;AAUA,SAAgB,aACd,OACA,MACS;CACT,IAAI,UAAU,QAAQ,OAAO,UAAU,YAAY,EAAE,aAAa,QAAQ,OAAO;CACjF,MAAM,SAAU,MAAkC;CAElD,OACE,SAAS,UACT,WAAW,SACV,MAAM,QAAQ,IAAI,IAAI,KAAK,SAAS,MAAsB,IAAI,WAAW;AAE9E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/cli/commands/api/api-call.d.ts
|
|
2
|
+
interface ApiCallOptions {
|
|
3
|
+
profile?: string;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
body?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ApiCallResult {
|
|
8
|
+
status: number;
|
|
9
|
+
data: unknown;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Call Tailor Platform API endpoints directly.
|
|
13
|
+
* If the endpoint doesn't contain "/", it defaults to `tailor.v1.OperatorService/{endpoint}`.
|
|
14
|
+
* @param options - API call options (profile, endpoint, body)
|
|
15
|
+
* @returns Response status and data
|
|
16
|
+
*/
|
|
17
|
+
declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ApiCallOptions, ApiCallResult, apiCall };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BundledScripts } from "./function-registry-types.mjs";
|
|
2
|
+
//#region src/cli/commands/deploy/deploy.d.ts
|
|
3
|
+
interface DeployOptions {
|
|
4
|
+
workspaceId?: string;
|
|
5
|
+
profile?: string;
|
|
6
|
+
configPath?: string;
|
|
7
|
+
dryRun?: boolean;
|
|
8
|
+
yes?: boolean;
|
|
9
|
+
noSchemaCheck?: boolean;
|
|
10
|
+
noValidate?: boolean;
|
|
11
|
+
noCache?: boolean;
|
|
12
|
+
cleanCache?: boolean;
|
|
13
|
+
buildOnly?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Deploy the configured application to the Tailor platform.
|
|
17
|
+
* @param options - Options for deploy execution
|
|
18
|
+
* @returns Promise that resolves to `{ bundledScripts }` when `buildOnly` is true, otherwise void
|
|
19
|
+
*/
|
|
20
|
+
declare function deploy(options?: DeployOptions): Promise<{
|
|
21
|
+
bundledScripts: BundledScripts;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DeployOptions, deploy };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/cli/commands/deploy/function-registry-types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* In-memory bundled scripts organized by kind.
|
|
4
|
+
*/
|
|
5
|
+
type BundledScripts = {
|
|
6
|
+
resolvers: Map<string, string>;
|
|
7
|
+
executors: Map<string, string>;
|
|
8
|
+
workflowJobs: Map<string, string>;
|
|
9
|
+
authHooks: Map<string, string>;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BundledScripts };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ExecutorInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/executor/get.d.ts
|
|
5
|
+
type ExecutorLike = {
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
type GetExecutorTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
9
|
+
executor: E;
|
|
10
|
+
workspaceId?: string;
|
|
11
|
+
profile?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use GetExecutorTypedOptions instead.
|
|
15
|
+
*/
|
|
16
|
+
interface GetExecutorOptions {
|
|
17
|
+
name: string;
|
|
18
|
+
workspaceId?: string;
|
|
19
|
+
profile?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get an executor by name and return CLI-friendly info.
|
|
23
|
+
* @param options - Executor lookup options
|
|
24
|
+
* @returns Executor information
|
|
25
|
+
*/
|
|
26
|
+
declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
|
|
27
|
+
declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { GetExecutorOptions, GetExecutorTypedOptions, getExecutor };
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Order } from "../../shared/args.mjs";
|
|
2
|
+
import { ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo } from "./transform.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/executor/jobs.d.ts
|
|
6
|
+
type ExecutorLike = {
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
type ListExecutorJobsTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
10
|
+
executor: E;
|
|
11
|
+
status?: string;
|
|
12
|
+
order?: Order;
|
|
13
|
+
limit?: number;
|
|
14
|
+
workspaceId?: string;
|
|
15
|
+
profile?: string;
|
|
16
|
+
};
|
|
17
|
+
type GetExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
18
|
+
executor: E;
|
|
19
|
+
jobId: string;
|
|
20
|
+
attempts?: boolean;
|
|
21
|
+
workspaceId?: string;
|
|
22
|
+
profile?: string;
|
|
23
|
+
};
|
|
24
|
+
type WatchExecutorJobTypedOptions<E extends ExecutorLike = ExecutorLike> = {
|
|
25
|
+
executor: E;
|
|
26
|
+
jobId: string;
|
|
27
|
+
workspaceId?: string;
|
|
28
|
+
profile?: string;
|
|
29
|
+
interval?: number;
|
|
30
|
+
timeout?: number;
|
|
31
|
+
logs?: boolean;
|
|
32
|
+
showProgress?: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use ListExecutorJobsTypedOptions instead.
|
|
36
|
+
*/
|
|
37
|
+
interface ListExecutorJobsOptions {
|
|
38
|
+
executorName: string;
|
|
39
|
+
status?: string;
|
|
40
|
+
order?: Order;
|
|
41
|
+
limit?: number;
|
|
42
|
+
workspaceId?: string;
|
|
43
|
+
profile?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Use GetExecutorJobTypedOptions instead.
|
|
47
|
+
*/
|
|
48
|
+
interface GetExecutorJobOptions {
|
|
49
|
+
executorName: string;
|
|
50
|
+
jobId: string;
|
|
51
|
+
attempts?: boolean;
|
|
52
|
+
workspaceId?: string;
|
|
53
|
+
profile?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated Use WatchExecutorJobTypedOptions instead.
|
|
57
|
+
*/
|
|
58
|
+
interface WatchExecutorJobOptions {
|
|
59
|
+
executorName: string;
|
|
60
|
+
jobId: string;
|
|
61
|
+
workspaceId?: string;
|
|
62
|
+
profile?: string;
|
|
63
|
+
interval?: number;
|
|
64
|
+
timeout?: number;
|
|
65
|
+
logs?: boolean;
|
|
66
|
+
showProgress?: boolean;
|
|
67
|
+
}
|
|
68
|
+
interface ExecutorJobDetailInfo extends ExecutorJobInfo {
|
|
69
|
+
attempts?: ExecutorJobAttemptInfo[];
|
|
70
|
+
}
|
|
71
|
+
interface WorkflowJobLog {
|
|
72
|
+
jobName: string;
|
|
73
|
+
logs?: string;
|
|
74
|
+
result?: string;
|
|
75
|
+
}
|
|
76
|
+
interface WatchExecutorJobResult {
|
|
77
|
+
job: ExecutorJobDetailInfo;
|
|
78
|
+
targetType: string;
|
|
79
|
+
elapsedMs: number;
|
|
80
|
+
attempts: number;
|
|
81
|
+
timedOut: boolean;
|
|
82
|
+
lastError: string | null;
|
|
83
|
+
workflowExecutionId?: string;
|
|
84
|
+
workflowStatus?: string;
|
|
85
|
+
workflowJobLogs?: WorkflowJobLog[];
|
|
86
|
+
functionExecutionId?: string;
|
|
87
|
+
functionStatus?: string;
|
|
88
|
+
functionLogs?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* List executor jobs for a given executor.
|
|
92
|
+
*
|
|
93
|
+
* Returns at most `options.limit` items. When `limit` is omitted or 0 the
|
|
94
|
+
* function pages through every job. The CLI caps this at 50 by default
|
|
95
|
+
* via `pagedLogArgs`; programmatic callers that want the same cap should
|
|
96
|
+
* pass `limit: 50` explicitly.
|
|
97
|
+
* @param options - Options for listing executor jobs
|
|
98
|
+
* @returns List of executor job information
|
|
99
|
+
*/
|
|
100
|
+
declare function listExecutorJobs<E extends ExecutorLike>(options: ListExecutorJobsTypedOptions<E>): Promise<ExecutorJobListInfo[]>;
|
|
101
|
+
declare function listExecutorJobs(options: ListExecutorJobsOptions): Promise<ExecutorJobListInfo[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Get details of a specific executor job.
|
|
104
|
+
* @param options - Options for getting executor job details
|
|
105
|
+
* @returns Executor job detail information
|
|
106
|
+
*/
|
|
107
|
+
declare function getExecutorJob<E extends ExecutorLike>(options: GetExecutorJobTypedOptions<E>): Promise<ExecutorJobDetailInfo>;
|
|
108
|
+
declare function getExecutorJob(options: GetExecutorJobOptions): Promise<ExecutorJobDetailInfo>;
|
|
109
|
+
/**
|
|
110
|
+
* Watch an executor job until completion, including downstream executions.
|
|
111
|
+
* @param options - Options for watching executor job
|
|
112
|
+
* @returns Result including job details and downstream execution info
|
|
113
|
+
*/
|
|
114
|
+
declare function watchExecutorJob<E extends ExecutorLike>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
|
|
115
|
+
declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
|
|
116
|
+
/**
|
|
117
|
+
* Build a user-facing failure message for an executor job wait result.
|
|
118
|
+
* @param result - Executor job wait result
|
|
119
|
+
* @returns Failure message, or undefined when the wait succeeded
|
|
120
|
+
*/
|
|
121
|
+
declare function getExecutorWaitFailureMessage(result: WatchExecutorJobResult): string | undefined;
|
|
122
|
+
//#endregion
|
|
123
|
+
export { ExecutorJobDetailInfo, GetExecutorJobOptions, GetExecutorJobTypedOptions, ListExecutorJobsOptions, ListExecutorJobsTypedOptions, WatchExecutorJobOptions, WatchExecutorJobResult, WatchExecutorJobTypedOptions, WorkflowJobLog, getExecutorJob, getExecutorWaitFailureMessage, listExecutorJobs, watchExecutorJob };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Order } from "../../shared/args.mjs";
|
|
2
|
+
import { ExecutorListInfo } from "./transform.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/executor/list.d.ts
|
|
6
|
+
interface ListExecutorsOptions {
|
|
7
|
+
workspaceId?: string;
|
|
8
|
+
profile?: string;
|
|
9
|
+
order?: Order;
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List executors in the workspace and return CLI-friendly info.
|
|
14
|
+
* @param options - Executor listing options
|
|
15
|
+
* @returns List of executors
|
|
16
|
+
*/
|
|
17
|
+
declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ListExecutorsOptions, listExecutors };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/cli/commands/executor/transform.d.ts
|
|
2
|
+
interface ExecutorJobListInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
executorName: string;
|
|
5
|
+
status: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
}
|
|
8
|
+
interface ExecutorJobInfo {
|
|
9
|
+
id: string;
|
|
10
|
+
executorName: string;
|
|
11
|
+
status: string;
|
|
12
|
+
scheduledAt: string;
|
|
13
|
+
createdAt: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
}
|
|
16
|
+
interface ExecutorJobAttemptInfo {
|
|
17
|
+
id: string;
|
|
18
|
+
jobId: string;
|
|
19
|
+
status: string;
|
|
20
|
+
error: string;
|
|
21
|
+
startedAt: string;
|
|
22
|
+
finishedAt: string;
|
|
23
|
+
operationReference: string;
|
|
24
|
+
}
|
|
25
|
+
interface ExecutorListInfo {
|
|
26
|
+
name: string;
|
|
27
|
+
triggerType: string;
|
|
28
|
+
targetType: string;
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface ExecutorInfo {
|
|
32
|
+
name: string;
|
|
33
|
+
description: string;
|
|
34
|
+
triggerType: string;
|
|
35
|
+
targetType: string;
|
|
36
|
+
disabled: boolean;
|
|
37
|
+
triggerConfig: Record<string, unknown>;
|
|
38
|
+
targetConfig: Record<string, unknown>;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ExecutorInfo, ExecutorJobAttemptInfo, ExecutorJobInfo, ExecutorJobListInfo, ExecutorListInfo };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { IncomingWebhookTrigger, ScheduleTriggerInput } from "../../../types/executor.generated.mjs";
|
|
2
|
+
import { JsonObject } from "@bufbuild/protobuf";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/commands/executor/trigger.d.ts
|
|
6
|
+
type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput;
|
|
7
|
+
type ManualTriggerExecutor<T extends ManualTrigger = ManualTrigger> = T extends ManualTrigger ? {
|
|
8
|
+
name: string;
|
|
9
|
+
trigger: T;
|
|
10
|
+
} : never;
|
|
11
|
+
type TriggerExecutorBaseOptions<E extends ManualTriggerExecutor> = {
|
|
12
|
+
executor: E;
|
|
13
|
+
workspaceId?: string;
|
|
14
|
+
profile?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Use TriggerExecutorTypedOptions instead.
|
|
18
|
+
*/
|
|
19
|
+
interface TriggerExecutorOptions {
|
|
20
|
+
executorName: string;
|
|
21
|
+
payload?: JsonObject;
|
|
22
|
+
workspaceId?: string;
|
|
23
|
+
profile?: string;
|
|
24
|
+
}
|
|
25
|
+
type TriggerExecutorTypedOptions<E extends ManualTriggerExecutor = ManualTriggerExecutor> = E extends ManualTriggerExecutor<IncomingWebhookTrigger> ? TriggerExecutorBaseOptions<E> & {
|
|
26
|
+
payload?: JsonObject;
|
|
27
|
+
} : TriggerExecutorBaseOptions<E> & {
|
|
28
|
+
payload?: never;
|
|
29
|
+
};
|
|
30
|
+
interface TriggerExecutorResult {
|
|
31
|
+
jobId?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Trigger an executor and return the job ID.
|
|
35
|
+
* @param options - Options for triggering executor
|
|
36
|
+
* @returns Result containing the job ID if available
|
|
37
|
+
*/
|
|
38
|
+
declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
|
|
39
|
+
declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TriggerExecutorOptions, TriggerExecutorResult, TriggerExecutorTypedOptions, triggerExecutor };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Order } from "../../shared/args.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/commands/executor/webhook.d.ts
|
|
4
|
+
interface WebhookExecutorInfo {
|
|
5
|
+
name: string;
|
|
6
|
+
webhookUrl: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface ListWebhookExecutorsOptions {
|
|
10
|
+
workspaceId?: string;
|
|
11
|
+
profile?: string;
|
|
12
|
+
order?: Order;
|
|
13
|
+
limit?: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* List executors with incoming webhook triggers and return CLI-friendly info.
|
|
17
|
+
* @param options - Listing options
|
|
18
|
+
* @returns List of webhook executors with URLs
|
|
19
|
+
*/
|
|
20
|
+
declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListWebhookExecutorsOptions, WebhookExecutorInfo, listWebhookExecutors };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FunctionRegistryInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/function/get.d.ts
|
|
5
|
+
declare const getFunctionRegistryOptionsSchema: z.ZodObject<{
|
|
6
|
+
workspaceId: z.ZodOptional<z.ZodUUID>;
|
|
7
|
+
profile: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
type GetFunctionRegistryOptions = z.input<typeof getFunctionRegistryOptionsSchema>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a function registry by name.
|
|
13
|
+
* @param options - Function registry get options
|
|
14
|
+
* @returns Function registry info
|
|
15
|
+
*/
|
|
16
|
+
declare function getFunctionRegistry(options: GetFunctionRegistryOptions): Promise<FunctionRegistryInfo>;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { GetFunctionRegistryOptions, getFunctionRegistry };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FunctionRegistryInfo } from "./transform.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/function/list.d.ts
|
|
5
|
+
declare const listFunctionRegistriesOptionsSchema: 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 ListFunctionRegistriesOptions = z.input<typeof listFunctionRegistriesOptionsSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* List function registries in a workspace with optional pagination.
|
|
17
|
+
* @param options - Function registry listing options
|
|
18
|
+
* @returns List of function registries
|
|
19
|
+
*/
|
|
20
|
+
declare function listFunctionRegistries(options: ListFunctionRegistriesOptions): Promise<FunctionRegistryInfo[]>;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ListFunctionRegistriesOptions, listFunctionRegistries };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/cli/commands/function/transform.d.ts
|
|
2
|
+
interface FunctionRegistryInfo {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
sizeBytes: string;
|
|
6
|
+
contentHash: string;
|
|
7
|
+
createdAt: Date | null;
|
|
8
|
+
updatedAt: Date | null;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { FunctionRegistryInfo };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/cli/commands/generate/seed/bundler.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Seed script bundler for TailorDB seed data
|
|
4
|
+
*
|
|
5
|
+
* Bundles seed scripts to be executed via TestExecScript API
|
|
6
|
+
*/
|
|
7
|
+
type SeedBundleResult = {
|
|
8
|
+
namespace: string;
|
|
9
|
+
bundledCode: string;
|
|
10
|
+
typesIncluded: string[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Bundle a seed script for server-side execution
|
|
14
|
+
*
|
|
15
|
+
* Creates an entry that:
|
|
16
|
+
* 1. Defines getDB() function inline
|
|
17
|
+
* 2. Processes data in batches using Kysely
|
|
18
|
+
* 3. Reports progress via console.log
|
|
19
|
+
* 4. Exports as main() for TestExecScript
|
|
20
|
+
* @param namespace - TailorDB namespace
|
|
21
|
+
* @param typeNames - List of type names to include in the seed
|
|
22
|
+
* @returns Bundled seed script result
|
|
23
|
+
*/
|
|
24
|
+
declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { SeedBundleResult, bundleSeedScript };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CodeGenerator } from "./types.mjs";
|
|
2
|
+
import { GenerateOptions } from "./options.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/cli/commands/generate/service.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Run code generation using the Tailor configuration and generators.
|
|
7
|
+
* @param options - Generation options
|
|
8
|
+
* @returns Promise that resolves when generation (and watch, if enabled) completes
|
|
9
|
+
*/
|
|
10
|
+
declare function generate(options?: GenerateOptions): Promise<void>;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { generate };
|