@tailor-platform/sdk 1.71.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 +46 -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 +801 -206
- 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 +124 -25
- 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/cli/setup.md +129 -19
- package/docs/cli-reference.md +9 -4
- 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,44 @@
|
|
|
1
|
+
import { Plugin } from "../../plugin/types.mjs";
|
|
2
|
+
import { AppConfig } from "../../configure/config/types.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/shared/config-loader.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Loaded configuration with resolved path
|
|
8
|
+
*/
|
|
9
|
+
type LoadedConfig = AppConfig & {
|
|
10
|
+
path: string;
|
|
11
|
+
};
|
|
12
|
+
interface LoadConfigOptions {
|
|
13
|
+
/** Import cache-busting value for watch-mode reloads. */
|
|
14
|
+
importNonce?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const GeneratorConfigSchema: z.core.$ZodBranded<z.ZodObject<{
|
|
17
|
+
id: z.ZodString;
|
|
18
|
+
description: z.ZodString;
|
|
19
|
+
dependencies: z.ZodArray<z.ZodEnum<{
|
|
20
|
+
executor: "executor";
|
|
21
|
+
tailordb: "tailordb";
|
|
22
|
+
resolver: "resolver";
|
|
23
|
+
}>>;
|
|
24
|
+
processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
25
|
+
processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
26
|
+
processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
27
|
+
processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
28
|
+
processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
|
|
29
|
+
aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
|
|
30
|
+
}, z.core.$strip>, "CodeGenerator", "out">;
|
|
31
|
+
type Generator = z.output<typeof GeneratorConfigSchema>;
|
|
32
|
+
/**
|
|
33
|
+
* Load Tailor configuration file and associated generators and plugins.
|
|
34
|
+
* @param configPath - Optional explicit config path
|
|
35
|
+
* @param options - Optional module import behavior.
|
|
36
|
+
* @returns Loaded config, generators, plugins, and config path
|
|
37
|
+
*/
|
|
38
|
+
declare function loadConfig(configPath?: string, options?: LoadConfigOptions): Promise<{
|
|
39
|
+
config: LoadedConfig;
|
|
40
|
+
generators: Generator[];
|
|
41
|
+
plugins: Plugin[];
|
|
42
|
+
}>;
|
|
43
|
+
//#endregion
|
|
44
|
+
export { Generator, LoadConfigOptions, LoadedConfig, loadConfig };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/shared/context.d.ts
|
|
4
|
+
type LoadWorkspaceIdOptions = {
|
|
5
|
+
workspaceId?: string;
|
|
6
|
+
profile?: string;
|
|
7
|
+
};
|
|
8
|
+
type LoadAccessTokenOptions = {
|
|
9
|
+
profile?: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Load workspace ID from command options, environment variables, or platform config.
|
|
13
|
+
* In CLI context, env fallback is also handled by politty's arg env option.
|
|
14
|
+
* Priority: opts/workspaceId > env/workspaceId > opts/profile > error
|
|
15
|
+
* @param opts - Workspace and profile options
|
|
16
|
+
* @returns Resolved workspace ID
|
|
17
|
+
*/
|
|
18
|
+
declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): Promise<string>;
|
|
19
|
+
/**
|
|
20
|
+
* Load access token from environment variables, command options, or platform config.
|
|
21
|
+
* In CLI context, profile env fallback is also handled by politty's arg env option.
|
|
22
|
+
* Priority: env/TAILOR_PLATFORM_TOKEN > env/TAILOR_TOKEN (deprecated) > opts/profile > env/profile > config/currentUser > error
|
|
23
|
+
* @param opts - Profile options
|
|
24
|
+
* @returns Resolved access token
|
|
25
|
+
*/
|
|
26
|
+
declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { loadAccessToken, loadWorkspaceId };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { AuthInvoker } from "../../tailor-proto/src/tailor/v1/auth_resource_pb.mjs";
|
|
2
|
+
import { FunctionExecution_Status } from "../../tailor-proto/src/tailor/v1/function_resource_pb.mjs";
|
|
3
|
+
import { OperatorClient } from "./client.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/cli/shared/script-executor.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Options for script execution
|
|
8
|
+
*/
|
|
9
|
+
interface ScriptExecutionOptions {
|
|
10
|
+
/** Operator client instance */
|
|
11
|
+
client: OperatorClient;
|
|
12
|
+
/** Workspace ID */
|
|
13
|
+
workspaceId: string;
|
|
14
|
+
/** Script name (for identification) */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Bundled script code to execute */
|
|
17
|
+
code: string;
|
|
18
|
+
/** Optional JSON string argument to pass to the script */
|
|
19
|
+
arg?: string;
|
|
20
|
+
/** Auth invoker for script execution */
|
|
21
|
+
invoker: AuthInvoker;
|
|
22
|
+
/** Polling interval in milliseconds (default: 1000ms) */
|
|
23
|
+
pollInterval?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Result of script execution
|
|
27
|
+
*/
|
|
28
|
+
interface ScriptExecutionResult {
|
|
29
|
+
/** Whether the script executed successfully */
|
|
30
|
+
success: boolean;
|
|
31
|
+
/** Logs output from the script execution */
|
|
32
|
+
logs: string;
|
|
33
|
+
/** Result value from the script execution */
|
|
34
|
+
result: string;
|
|
35
|
+
/** Error message if execution failed */
|
|
36
|
+
error?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Result from waiting for execution completion
|
|
40
|
+
*/
|
|
41
|
+
interface ExecutionWaitResult {
|
|
42
|
+
/** Execution status */
|
|
43
|
+
status: FunctionExecution_Status;
|
|
44
|
+
/** Logs output from the execution */
|
|
45
|
+
logs: string;
|
|
46
|
+
/** Result value from the execution */
|
|
47
|
+
result: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Wait for a function execution to complete
|
|
51
|
+
*
|
|
52
|
+
* Polls the getFunctionExecution API until the execution reaches a terminal state
|
|
53
|
+
* (SUCCESS or FAILED).
|
|
54
|
+
* @param {OperatorClient} client - Operator client instance
|
|
55
|
+
* @param {string} workspaceId - Workspace ID
|
|
56
|
+
* @param {string} executionId - Execution ID to wait for
|
|
57
|
+
* @param {number} [pollInterval] - Polling interval in milliseconds (default: 1000ms)
|
|
58
|
+
* @returns {Promise<ExecutionWaitResult>} Execution result
|
|
59
|
+
* @throws {Error} If execution is not found
|
|
60
|
+
*/
|
|
61
|
+
declare function waitForExecution(client: OperatorClient, workspaceId: string, executionId: string, pollInterval?: number): Promise<ExecutionWaitResult>;
|
|
62
|
+
/**
|
|
63
|
+
* Execute a script via TestExecScript API and wait for completion
|
|
64
|
+
*
|
|
65
|
+
* This function:
|
|
66
|
+
* 1. Calls testExecScript API to start execution
|
|
67
|
+
* 2. Polls getFunctionExecution until completion
|
|
68
|
+
* 3. Returns structured result with success/failure status
|
|
69
|
+
* @param {ScriptExecutionOptions} options - Execution options
|
|
70
|
+
* @returns {Promise<ScriptExecutionResult>} Execution result
|
|
71
|
+
*/
|
|
72
|
+
declare function executeScript(options: ScriptExecutionOptions): Promise<ScriptExecutionResult>;
|
|
73
|
+
//#endregion
|
|
74
|
+
export { ExecutionWaitResult, ScriptExecutionOptions, ScriptExecutionResult, executeScript, waitForExecution };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region src/cli/shared/seed-chunker.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Seed data chunker for splitting large seed data into manageable message sizes.
|
|
4
|
+
*
|
|
5
|
+
* When seed data exceeds the gRPC message size limit, this module splits the data
|
|
6
|
+
* into multiple chunks at type boundaries (or record boundaries for large types).
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Seed data keyed by type name, with an array of records per type.
|
|
10
|
+
*/
|
|
11
|
+
type SeedData = Record<string, Record<string, unknown>[]>;
|
|
12
|
+
/**
|
|
13
|
+
* A single chunk of seed data with metadata for ordered execution.
|
|
14
|
+
*/
|
|
15
|
+
type SeedChunk = {
|
|
16
|
+
data: SeedData;
|
|
17
|
+
order: string[];
|
|
18
|
+
index: number;
|
|
19
|
+
total: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Options for chunking seed data.
|
|
23
|
+
*/
|
|
24
|
+
type ChunkSeedDataOptions = {
|
|
25
|
+
/** Seed data keyed by type name */data: SeedData; /** Ordered list of type names (dependency order) */
|
|
26
|
+
order: string[]; /** Byte size of the bundled seed script code */
|
|
27
|
+
codeByteSize: number; /** Maximum gRPC message size in bytes (default: 3.5MB) */
|
|
28
|
+
maxMessageSize?: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Split seed data into chunks that fit within the gRPC message size limit.
|
|
32
|
+
*
|
|
33
|
+
* Algorithm:
|
|
34
|
+
* 1. Calculate the available budget for the arg field (maxMessageSize - codeByteSize - overhead)
|
|
35
|
+
* 2. If all data fits in one message, return a single chunk
|
|
36
|
+
* 3. Otherwise, iterate through types in dependency order:
|
|
37
|
+
* - If a type fits in the current chunk, add it
|
|
38
|
+
* - If adding a type would exceed the budget, finalize the current chunk and start a new one
|
|
39
|
+
* - If a single type exceeds the budget, split its records across multiple chunks
|
|
40
|
+
* - If a single record exceeds the budget, throw an error
|
|
41
|
+
* @param options - Chunking options
|
|
42
|
+
* @returns Array of seed chunks
|
|
43
|
+
*/
|
|
44
|
+
declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
|
|
45
|
+
//#endregion
|
|
46
|
+
export { ChunkSeedDataOptions, SeedChunk, SeedData, chunkSeedData };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AppConfig } from "../../configure/config/types.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/cli/shared/type-generator.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Options for generating user type definitions
|
|
6
|
+
*/
|
|
7
|
+
interface GenerateUserTypesOptions {
|
|
8
|
+
/** Application config */
|
|
9
|
+
config: AppConfig;
|
|
10
|
+
/** Path to Tailor config file */
|
|
11
|
+
configPath: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Generate user type definitions from the app config and write them to disk.
|
|
15
|
+
* @param options - Generation options
|
|
16
|
+
* @returns Promise that resolves when types are generated
|
|
17
|
+
*/
|
|
18
|
+
declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { generateUserTypes };
|
package/dist/cli/skills.mjs
CHANGED
package/dist/cli/skills.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.mjs","names":[],"sources":["../../src/cli/skills.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { spawn } from \"node:child_process\";\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"pathe\";\nimport { logger } from \"./shared/logger\";\n\nlogger.warn(\n \"`tailor-sdk-skills` is deprecated and will be removed in v2. Use `tailor-sdk skills install` instead.\",\n);\n\nconst here = dirname(fileURLToPath(import.meta.url));\nconst mainCli = resolve(here, \"index.mjs\");\n\nconst child = spawn(process.execPath, [mainCli, \"skills\", \"install\", ...process.argv.slice(2)], {\n stdio: \"inherit\",\n});\n\nchild.on(\"exit\", (code) => {\n process.exit(code ?? 1);\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"skills.mjs","names":[],"sources":["../../src/cli/skills.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { spawn } from \"node:child_process\";\nimport { fileURLToPath } from \"node:url\";\nimport { dirname, resolve } from \"pathe\";\nimport { logger } from \"./shared/logger\";\n\nlogger.warn(\n \"`tailor-sdk-skills` is deprecated and will be removed in v2. Use `tailor-sdk skills install` instead.\",\n);\n\nconst here = dirname(fileURLToPath(import.meta.url));\nconst mainCli = resolve(here, \"index.mjs\");\n\nconst child = spawn(process.execPath, [mainCli, \"skills\", \"install\", ...process.argv.slice(2)], {\n stdio: \"inherit\",\n});\n\nchild.on(\"exit\", (code) => {\n process.exit(code ?? 1);\n});\n"],"mappings":";;;;;;;AAOA,OAAO,KACL,uGACF;AAGA,MAAM,UAAU,QADH,QAAQ,cAAc,OAAO,KAAK,GAAG,CACvB,GAAG,WAAW;AAE3B,MAAM,QAAQ,UAAU;CAAC;CAAS;CAAU;CAAW,GAAG,QAAQ,KAAK,MAAM,CAAC;AAAC,GAAG,EAC9F,OAAO,UACT,CAEI,CAAC,CAAC,GAAG,SAAS,SAAS;CACzB,QAAQ,KAAK,QAAQ,CAAC;AACxB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# politty-completion-version: 1
|
|
2
|
-
# politty-bin-sig:
|
|
2
|
+
# politty-bin-sig: 1782971080
|
|
3
3
|
# politty-bin-path: /home/runner/work/sdk/sdk/node_modules/.bin/tailor-sdk
|
|
4
4
|
# program: tailor-sdk
|
|
5
5
|
# shell: zsh
|
|
@@ -686,12 +686,27 @@ __tailor_sdk_worker_opt_takes_value() {
|
|
|
686
686
|
secret:delete:--profile|secret:delete:-p|secret:delete:--p) return 0 ;;
|
|
687
687
|
secret:delete:--vault-name|secret:delete:--vaultName|secret:delete:-V|secret:delete:--V) return 0 ;;
|
|
688
688
|
secret:delete:--name|secret:delete:-n|secret:delete:--n) return 0 ;;
|
|
689
|
-
setup:--
|
|
690
|
-
setup:--
|
|
691
|
-
setup:--
|
|
692
|
-
setup:--
|
|
693
|
-
setup:--
|
|
694
|
-
setup:--
|
|
689
|
+
setup:branch:--name|setup:branch:-n|setup:branch:--n) return 0 ;;
|
|
690
|
+
setup:branch:--branch) return 0 ;;
|
|
691
|
+
setup:branch:--environment) return 0 ;;
|
|
692
|
+
setup:branch:--dir|setup:branch:-d|setup:branch:--d) return 0 ;;
|
|
693
|
+
setup:tag:--name|setup:tag:-n|setup:tag:--n) return 0 ;;
|
|
694
|
+
setup:tag:--tag-pattern|setup:tag:--tagPattern) return 0 ;;
|
|
695
|
+
setup:tag:--branch) return 0 ;;
|
|
696
|
+
setup:tag:--environment) return 0 ;;
|
|
697
|
+
setup:tag:--dir|setup:tag:-d|setup:tag:--d) return 0 ;;
|
|
698
|
+
setup:preview:--name|setup:preview:-n|setup:preview:--n) return 0 ;;
|
|
699
|
+
setup:preview:--branch) return 0 ;;
|
|
700
|
+
setup:preview:--region) return 0 ;;
|
|
701
|
+
setup:preview:--environment) return 0 ;;
|
|
702
|
+
setup:preview:--dir|setup:preview:-d|setup:preview:--d) return 0 ;;
|
|
703
|
+
setup:action:--name|setup:action:-n|setup:action:--n) return 0 ;;
|
|
704
|
+
setup:action:--dir|setup:action:-d|setup:action:--d) return 0 ;;
|
|
705
|
+
setup:action:--environment) return 0 ;;
|
|
706
|
+
setup:coordinate:--name|setup:coordinate:-n|setup:coordinate:--n) return 0 ;;
|
|
707
|
+
setup:coordinate:--action) return 0 ;;
|
|
708
|
+
setup:coordinate:--branch) return 0 ;;
|
|
709
|
+
setup:coordinate:--environment) return 0 ;;
|
|
695
710
|
show:--workspace-id|show:--workspaceId|show:-w|show:--w) return 0 ;;
|
|
696
711
|
show:--profile|show:-p|show:--p) return 0 ;;
|
|
697
712
|
show:--config|show:-c|show:--c) return 0 ;;
|
|
@@ -912,6 +927,11 @@ __tailor_sdk_worker_is_subcmd() {
|
|
|
912
927
|
secret:list) return 0 ;;
|
|
913
928
|
secret:delete) return 0 ;;
|
|
914
929
|
:secret) return 0 ;;
|
|
930
|
+
setup:branch) return 0 ;;
|
|
931
|
+
setup:tag) return 0 ;;
|
|
932
|
+
setup:preview) return 0 ;;
|
|
933
|
+
setup:action) return 0 ;;
|
|
934
|
+
setup:coordinate) return 0 ;;
|
|
915
935
|
setup:check) return 0 ;;
|
|
916
936
|
:setup) return 0 ;;
|
|
917
937
|
:show) return 0 ;;
|
|
@@ -2524,12 +2544,102 @@ __tailor_sdk_worker_complete_secret() {
|
|
|
2524
2544
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2525
2545
|
}
|
|
2526
2546
|
|
|
2547
|
+
__tailor_sdk_worker_complete_setup_branch() {
|
|
2548
|
+
local -a _vals=()
|
|
2549
|
+
if __tailor_sdk_worker_opt_takes_value "setup:branch" "${words[CURRENT-1]}"; then return 0; fi
|
|
2550
|
+
if (( _after_dd )); then return 0; fi
|
|
2551
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2552
|
+
local -a _opts=()
|
|
2553
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2554
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Deploy trigger branch (defaults to the detected default branch)")
|
|
2555
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2556
|
+
__tailor_sdk_worker_not_used "--erd-preview" "--erdPreview" && _opts+=("--erd-preview:Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces")
|
|
2557
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2558
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2559
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2560
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2561
|
+
return 0
|
|
2562
|
+
fi
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
__tailor_sdk_worker_complete_setup_tag() {
|
|
2566
|
+
local -a _vals=()
|
|
2567
|
+
if __tailor_sdk_worker_opt_takes_value "setup:tag" "${words[CURRENT-1]}"; then return 0; fi
|
|
2568
|
+
if (( _after_dd )); then return 0; fi
|
|
2569
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2570
|
+
local -a _opts=()
|
|
2571
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2572
|
+
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (defaults to v*)")
|
|
2573
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Tag-reachability guard branch (no guard when omitted)")
|
|
2574
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2575
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2576
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2577
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2578
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2579
|
+
return 0
|
|
2580
|
+
fi
|
|
2581
|
+
}
|
|
2582
|
+
|
|
2583
|
+
__tailor_sdk_worker_complete_setup_preview() {
|
|
2584
|
+
local -a _vals=()
|
|
2585
|
+
if __tailor_sdk_worker_opt_takes_value "setup:preview" "${words[CURRENT-1]}"; then return 0; fi
|
|
2586
|
+
if (( _after_dd )); then return 0; fi
|
|
2587
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2588
|
+
local -a _opts=()
|
|
2589
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2590
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch to filter PRs by (defaults to the detected default branch)")
|
|
2591
|
+
__tailor_sdk_worker_not_used "--region" && _opts+=("--region:Workspace region for preview workspace creation (e.g. us-west). Required.")
|
|
2592
|
+
__tailor_sdk_worker_not_used "--require-preview-label" "--requirePreviewLabel" && _opts+=("--require-preview-label:Deploy preview only for PRs labeled \`tailor\:preview\` instead of all PRs.")
|
|
2593
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the preview jobs (defaults to the workspace name)")
|
|
2594
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2595
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2596
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2597
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2598
|
+
return 0
|
|
2599
|
+
fi
|
|
2600
|
+
}
|
|
2601
|
+
|
|
2602
|
+
__tailor_sdk_worker_complete_setup_action() {
|
|
2603
|
+
local -a _vals=()
|
|
2604
|
+
if __tailor_sdk_worker_opt_takes_value "setup:action" "${words[CURRENT-1]}"; then return 0; fi
|
|
2605
|
+
if (( _after_dd )); then return 0; fi
|
|
2606
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2607
|
+
local -a _opts=()
|
|
2608
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Name (defaults to the config 'name')")
|
|
2609
|
+
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory")
|
|
2610
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment (defaults to the workspace name)")
|
|
2611
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits and regenerate")
|
|
2612
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2613
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2614
|
+
return 0
|
|
2615
|
+
fi
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2618
|
+
__tailor_sdk_worker_complete_setup_coordinate() {
|
|
2619
|
+
local -a _vals=()
|
|
2620
|
+
if __tailor_sdk_worker_opt_takes_value "setup:coordinate" "${words[CURRENT-1]}"; then return 0; fi
|
|
2621
|
+
if (( _after_dd )); then return 0; fi
|
|
2622
|
+
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2623
|
+
local -a _opts=()
|
|
2624
|
+
__tailor_sdk_worker_not_used "--name" "-n" "--n" && _opts+=("--name:Coordinator name (used in the generated workflow file name and job names)")
|
|
2625
|
+
_opts+=("--action:Composite action to include (can be specified multiple times). tailor- prefix optional.")
|
|
2626
|
+
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch)")
|
|
2627
|
+
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target coordinator")
|
|
2628
|
+
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs")
|
|
2629
|
+
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits and regenerate")
|
|
2630
|
+
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2631
|
+
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2632
|
+
return 0
|
|
2633
|
+
fi
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2527
2636
|
__tailor_sdk_worker_complete_setup_check() {
|
|
2528
2637
|
local -a _vals=()
|
|
2529
2638
|
if __tailor_sdk_worker_opt_takes_value "setup:check" "${words[CURRENT-1]}"; then return 0; fi
|
|
2530
2639
|
if (( _after_dd )); then return 0; fi
|
|
2531
2640
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2532
2641
|
local -a _opts=()
|
|
2642
|
+
__tailor_sdk_worker_not_used "--ci" && _opts+=("--ci:Run in CI mode\: skip checks that are handled by the runtime (e.g. TAILOR_PLATFORM_WORKSPACE_ID).")
|
|
2533
2643
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2534
2644
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2535
2645
|
return 0
|
|
@@ -2538,31 +2648,15 @@ __tailor_sdk_worker_complete_setup_check() {
|
|
|
2538
2648
|
|
|
2539
2649
|
__tailor_sdk_worker_complete_setup() {
|
|
2540
2650
|
local -a _vals=()
|
|
2541
|
-
case "${words[CURRENT-1]}" in
|
|
2542
|
-
--provider|-p|--p)
|
|
2543
|
-
_vals=("github")
|
|
2544
|
-
__tailor_sdk_worker_cdescribe 'completions' _vals
|
|
2545
|
-
return 0 ;;
|
|
2546
|
-
esac
|
|
2547
2651
|
if __tailor_sdk_worker_opt_takes_value "setup" "${words[CURRENT-1]}"; then return 0; fi
|
|
2548
2652
|
if (( _after_dd )); then return 0; fi
|
|
2549
2653
|
if [[ "${words[CURRENT]}" == -* ]]; then
|
|
2550
2654
|
local -a _opts=()
|
|
2551
|
-
__tailor_sdk_worker_not_used "--provider" "-p" "--p" && _opts+=("--provider:CI provider to generate for (only 'github' is supported)")
|
|
2552
|
-
__tailor_sdk_worker_not_used "--workspace-name" "--workspaceName" "-n" "--n" && _opts+=("--workspace-name:Workspace name (defaults to the config 'name')")
|
|
2553
|
-
__tailor_sdk_worker_not_used "--branch" && _opts+=("--branch:Branch target\: deploy trigger branch (defaults to the detected default branch). Tag target\: tag-reachability guard branch (no guard when omitted)")
|
|
2554
|
-
__tailor_sdk_worker_not_used "--tag" && _opts+=("--tag:Generate a tag target (deploy on tag push)")
|
|
2555
|
-
__tailor_sdk_worker_not_used "--tag-pattern" "--tagPattern" && _opts+=("--tag-pattern:Tag glob to match (requires --tag; defaults to v*)")
|
|
2556
|
-
__tailor_sdk_worker_not_used "--environment" && _opts+=("--environment:GitHub Environment for the plan/deploy jobs (defaults to the workspace name)")
|
|
2557
|
-
__tailor_sdk_worker_not_used "--no-plan" "--noPlan" && _opts+=("--no-plan:Disable the plan job for a branch target (cannot be combined with --tag)")
|
|
2558
|
-
__tailor_sdk_worker_not_used "--erd-preview" "--erdPreview" && _opts+=("--erd-preview:Add PR ERD viewer artifacts with current/diff previews for TailorDB namespaces")
|
|
2559
|
-
__tailor_sdk_worker_not_used "--dir" "-d" "--d" && _opts+=("--dir:App directory (for monorepo setups)")
|
|
2560
|
-
__tailor_sdk_worker_not_used "--force" && _opts+=("--force:Discard hand edits / take over unmanaged files and regenerate")
|
|
2561
2655
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
2562
2656
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
2563
2657
|
return 0
|
|
2564
2658
|
fi
|
|
2565
|
-
local -a _subs=("check:Audit generated workflows for drift against the current config/repo (read-only).")
|
|
2659
|
+
local -a _subs=("branch:Generate a branch-target deploy workflow (push to branch triggers deploy)." "tag:Generate a tag-target deploy workflow (tag push triggers deploy)." "preview:Generate a preview workflow (PR open/sync triggers deploy to a per-PR workspace)." "action:Generate a per-app composite action for use with setup coordinate (monorepo multi-app deploys)." "coordinate:Generate a coordinator workflow that orchestrates multiple --action-generated composite actions." "check:Audit generated workflows for drift against the current config/repo (read-only).")
|
|
2566
2660
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
2567
2661
|
}
|
|
2568
2662
|
|
|
@@ -4097,7 +4191,7 @@ __tailor_sdk_worker_complete_root() {
|
|
|
4097
4191
|
__tailor_sdk_worker_not_used "--help" && _opts+=("--help:Show help")
|
|
4098
4192
|
__tailor_sdk_worker_cdescribe 'options' _opts
|
|
4099
4193
|
else
|
|
4100
|
-
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:Generate
|
|
4194
|
+
local -a _subs=("api:Call Tailor Platform API endpoints directly." "authconnection:Manage auth connections." "crashreport:Manage crash reports." "crash-report:Manage crash reports." "deploy:Deploy your application by applying the Tailor configuration." "apply:Deploy your application by applying the Tailor configuration." "executor:Manage executors" "function:Manage functions" "generate:Generate files using Tailor configuration." "init:Initialize a new project using create-sdk." "login:Login to Tailor Platform." "logout:Logout from Tailor Platform." "machineuser:Manage machine users in your Tailor Platform application." "oauth2client:Manage OAuth2 clients in your Tailor Platform application." "open:Open Tailor Platform Console." "organization:Manage Tailor Platform organizations." "profile:Manage workspace profiles (user + workspace combinations)." "query:Run SQL/GraphQL query." "remove:Remove all resources managed by the application from the workspace." "secret:Manage Secret Manager vaults and secrets." "setup:Generate CI deploy workflows for your project. (beta)" "show:Show information about the deployed application." "skills:Manage Tailor SDK agent skills." "staticwebsite:Manage static websites in your workspace." "tailordb:Manage TailorDB tables and data." "upgrade:Run codemods to upgrade your project to a newer SDK version." "user:Manage Tailor Platform users." "workflow:Manage workflows and workflow executions." "workspace:Manage Tailor Platform workspaces." "completion:Generate shell completion script")
|
|
4101
4195
|
__tailor_sdk_worker_cdescribe 'subcommands' _subs
|
|
4102
4196
|
fi
|
|
4103
4197
|
}
|
|
@@ -4211,6 +4305,11 @@ _tailor_sdk_worker_completions() {
|
|
|
4211
4305
|
secret:list) __tailor_sdk_worker_complete_secret_list ;;
|
|
4212
4306
|
secret:delete) __tailor_sdk_worker_complete_secret_delete ;;
|
|
4213
4307
|
secret) __tailor_sdk_worker_complete_secret ;;
|
|
4308
|
+
setup:branch) __tailor_sdk_worker_complete_setup_branch ;;
|
|
4309
|
+
setup:tag) __tailor_sdk_worker_complete_setup_tag ;;
|
|
4310
|
+
setup:preview) __tailor_sdk_worker_complete_setup_preview ;;
|
|
4311
|
+
setup:action) __tailor_sdk_worker_complete_setup_action ;;
|
|
4312
|
+
setup:coordinate) __tailor_sdk_worker_complete_setup_coordinate ;;
|
|
4214
4313
|
setup:check) __tailor_sdk_worker_complete_setup_check ;;
|
|
4215
4314
|
setup) __tailor_sdk_worker_complete_setup ;;
|
|
4216
4315
|
show) __tailor_sdk_worker_complete_show ;;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseGeneratorConfig } from "../../types/generator-config.generated.mjs";
|
|
2
|
+
import { GeneratorConfig, Plugin } from "../../plugin/types.mjs";
|
|
3
|
+
import { AppConfig } from "./types.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/configure/config/index.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Define a Tailor SDK application configuration with shallow exactness.
|
|
8
|
+
* @template Config
|
|
9
|
+
* @param config - Application configuration
|
|
10
|
+
* @returns The same configuration object
|
|
11
|
+
*/
|
|
12
|
+
declare function defineConfig<const Config extends AppConfig & Record<Exclude<keyof Config, keyof AppConfig>, never>>(config: Config): Config;
|
|
13
|
+
/**
|
|
14
|
+
* Define generators to be used with the Tailor SDK.
|
|
15
|
+
* @deprecated Use definePlugins() with generation hooks (onTypeLoaded, generate, etc.) instead.
|
|
16
|
+
* @param configs - Generator configurations
|
|
17
|
+
* @returns Generator configurations as given
|
|
18
|
+
*/
|
|
19
|
+
declare function defineGenerators(...configs: GeneratorConfig[]): BaseGeneratorConfig[];
|
|
20
|
+
/**
|
|
21
|
+
* Define plugins to be used with the Tailor SDK.
|
|
22
|
+
* Plugins can generate additional types, resolvers, and executors
|
|
23
|
+
* based on existing TailorDB types.
|
|
24
|
+
* @param configs - Plugin configurations
|
|
25
|
+
* @returns Plugin configurations as given
|
|
26
|
+
*/
|
|
27
|
+
declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any>[];
|
|
28
|
+
//#endregion
|
|
29
|
+
export { defineConfig, defineGenerators, definePlugins };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { TailorDBServiceInput } from "../services/tailordb/types.mjs";
|
|
2
|
+
import { AuthConfig } from "../services/auth/types.mjs";
|
|
3
|
+
import { AIGatewayConfig } from "../services/aigateway/types.mjs";
|
|
4
|
+
import { IdPConfig } from "../services/idp/types.mjs";
|
|
5
|
+
import { SecretsConfig } from "../services/secrets/types.mjs";
|
|
6
|
+
import { StaticWebsiteConfig } from "../services/staticwebsite/types.mjs";
|
|
7
|
+
import { LogLevelEnum } from "../../types/app-config.generated.mjs";
|
|
8
|
+
|
|
9
|
+
//#region src/configure/config/types.d.ts
|
|
10
|
+
type LogLevel = LogLevelEnum;
|
|
11
|
+
type LogLevelInput = LogLevel | (string & {});
|
|
12
|
+
type ExecutorServiceConfig = {
|
|
13
|
+
files: string[];
|
|
14
|
+
ignores?: string[];
|
|
15
|
+
};
|
|
16
|
+
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
17
|
+
type HttpAdapterServiceInput = {
|
|
18
|
+
files: string[];
|
|
19
|
+
ignores?: string[];
|
|
20
|
+
};
|
|
21
|
+
type ResolverServiceConfig = {
|
|
22
|
+
files: string[];
|
|
23
|
+
ignores?: string[];
|
|
24
|
+
};
|
|
25
|
+
type ResolverExternalConfig = {
|
|
26
|
+
external: true;
|
|
27
|
+
};
|
|
28
|
+
type ResolverServiceInput = {
|
|
29
|
+
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
30
|
+
};
|
|
31
|
+
type WorkflowServiceConfig = {
|
|
32
|
+
files: string[];
|
|
33
|
+
job_files?: string[];
|
|
34
|
+
ignores?: string[];
|
|
35
|
+
job_ignores?: string[];
|
|
36
|
+
};
|
|
37
|
+
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
38
|
+
/**
|
|
39
|
+
* Application configuration for `defineConfig()`.
|
|
40
|
+
*
|
|
41
|
+
* Key fields:
|
|
42
|
+
* - `name` (required): Application name
|
|
43
|
+
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
44
|
+
* - `auth`: Single auth config object (not an array)
|
|
45
|
+
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
46
|
+
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
47
|
+
* - `aiGateways`: Array of AI Gateway configs, e.g. `[gateway]`
|
|
48
|
+
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
49
|
+
*/
|
|
50
|
+
interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], AIGateways extends AIGatewayConfig[] = AIGatewayConfig[], Env extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
|
|
51
|
+
/** Application name (required). */
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* Stable identifier used to track the application across renames.
|
|
55
|
+
* Managed by the SDK: auto-generated and written into `tailor.config.ts`
|
|
56
|
+
* on first `deploy`. Delete this field if you want the SDK to assign a
|
|
57
|
+
* new id on the next `deploy` — typical case: `tailor.config.ts` was
|
|
58
|
+
* copied from another project and the new application should not share
|
|
59
|
+
* the original's id. Existing resources are re-tagged with the new id;
|
|
60
|
+
* data is preserved.
|
|
61
|
+
*/
|
|
62
|
+
id?: string;
|
|
63
|
+
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
64
|
+
env?: Env;
|
|
65
|
+
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
66
|
+
cors?: string[];
|
|
67
|
+
/** IP addresses allowed to access the application. */
|
|
68
|
+
allowedIpAddresses?: string[];
|
|
69
|
+
/** Disable GraphQL introspection in production. */
|
|
70
|
+
disableIntrospection?: boolean;
|
|
71
|
+
/** TailorDB service configuration with type definition files. */
|
|
72
|
+
db?: TailorDBServiceInput;
|
|
73
|
+
/** Resolver service configuration with resolver files. */
|
|
74
|
+
resolver?: ResolverServiceInput;
|
|
75
|
+
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
76
|
+
idp?: Idp;
|
|
77
|
+
/** Auth configuration (single object, not an array). */
|
|
78
|
+
auth?: Auth;
|
|
79
|
+
/** Executor service configuration with executor files. */
|
|
80
|
+
executor?: ExecutorServiceInput;
|
|
81
|
+
/** Workflow service configuration with workflow files. */
|
|
82
|
+
workflow?: WorkflowServiceInput;
|
|
83
|
+
/** HTTP adapter service configuration with adapter files. */
|
|
84
|
+
httpAdapter?: HttpAdapterServiceInput;
|
|
85
|
+
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
86
|
+
staticWebsites?: StaticWebsites;
|
|
87
|
+
/** AI Gateway configurations. Must be an array, e.g. `[gateway]`. */
|
|
88
|
+
aiGateways?: AIGateways;
|
|
89
|
+
/** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
|
|
90
|
+
secrets?: SecretsConfig;
|
|
91
|
+
/**
|
|
92
|
+
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
93
|
+
* @default true
|
|
94
|
+
*/
|
|
95
|
+
inlineSourcemap?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Controls which `console.*` calls remain in bundled functions.
|
|
98
|
+
* @default "DEBUG"
|
|
99
|
+
*/
|
|
100
|
+
logLevel?: LogLevelInput;
|
|
101
|
+
}
|
|
102
|
+
//#endregion
|
|
103
|
+
export { AppConfig, ExecutorServiceConfig, ExecutorServiceInput, HttpAdapterServiceInput, LogLevel, LogLevelInput, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, WorkflowServiceConfig, WorkflowServiceInput };
|