@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
package/dist/runtime/idp.d.mts
CHANGED
|
@@ -1,2 +1,186 @@
|
|
|
1
|
-
|
|
2
|
-
export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery };
|
|
1
|
+
declare namespace idp_d_exports {
|
|
2
|
+
export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* IDP (Identity Provider) utilities.
|
|
6
|
+
*
|
|
7
|
+
* Thin typed wrapper around the platform-provided `tailor.idp` runtime API.
|
|
8
|
+
* At runtime this delegates to `globalThis.tailor.idp`. Use `mockIdp` from
|
|
9
|
+
* `@tailor-platform/sdk/vitest` to mock these calls in unit tests.
|
|
10
|
+
* @example
|
|
11
|
+
* import { idp } from "@tailor-platform/sdk/runtime";
|
|
12
|
+
*
|
|
13
|
+
* const client = new idp.Client({ namespace: "my-namespace" });
|
|
14
|
+
* const { users } = await client.users({ first: 10 });
|
|
15
|
+
*/
|
|
16
|
+
/** Configuration object for {@link Client}. */
|
|
17
|
+
interface ClientConfig {
|
|
18
|
+
namespace: string;
|
|
19
|
+
}
|
|
20
|
+
/** User record returned by IDP operations. */
|
|
21
|
+
interface User {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
disabled: boolean;
|
|
25
|
+
createdAt?: string;
|
|
26
|
+
/**
|
|
27
|
+
* True when the user has at least one enrolled MFA second factor. False when
|
|
28
|
+
* the namespace has MFA disabled or the user has not enrolled a factor.
|
|
29
|
+
*/
|
|
30
|
+
mfaEnrolled: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Enrolled MFA second factor IDs. Pass an entry into
|
|
33
|
+
* {@link Client.unenrollMfa} to remove that factor.
|
|
34
|
+
*/
|
|
35
|
+
mfaFactorIds: string[];
|
|
36
|
+
}
|
|
37
|
+
/** Filter options for {@link Client.users}. */
|
|
38
|
+
interface UserQuery {
|
|
39
|
+
/** Filter by user IDs */
|
|
40
|
+
ids?: string[];
|
|
41
|
+
/** Filter by user names */
|
|
42
|
+
names?: string[];
|
|
43
|
+
}
|
|
44
|
+
/** Pagination/filter options for {@link Client.users}. */
|
|
45
|
+
interface ListUsersOptions {
|
|
46
|
+
/** Maximum number of users to return */
|
|
47
|
+
first?: number;
|
|
48
|
+
/** Page token for pagination */
|
|
49
|
+
after?: string;
|
|
50
|
+
/** Query filter for users */
|
|
51
|
+
query?: UserQuery;
|
|
52
|
+
}
|
|
53
|
+
/** Response shape for {@link Client.users}. */
|
|
54
|
+
interface ListUsersResponse {
|
|
55
|
+
users: User[];
|
|
56
|
+
nextPageToken: string | null;
|
|
57
|
+
totalCount: number;
|
|
58
|
+
}
|
|
59
|
+
/** Input for {@link Client.createUser}. */
|
|
60
|
+
interface CreateUserInput {
|
|
61
|
+
/** The user's name (typically email) */
|
|
62
|
+
name: string;
|
|
63
|
+
/** The user's password. If omitted, the user is created without a password (cannot log in with any password). */
|
|
64
|
+
password?: string;
|
|
65
|
+
/** Whether the user is disabled */
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
}
|
|
68
|
+
/** Input for {@link Client.updateUser}. */
|
|
69
|
+
interface UpdateUserInput {
|
|
70
|
+
/** The user's ID */
|
|
71
|
+
id: string;
|
|
72
|
+
/** New name for the user */
|
|
73
|
+
name?: string;
|
|
74
|
+
/** New password for the user. Cannot be used with clearPassword. */
|
|
75
|
+
password?: string;
|
|
76
|
+
/** If true, remove the user's password. Cannot be used with password. */
|
|
77
|
+
clearPassword?: boolean;
|
|
78
|
+
/** New disabled status for the user */
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** Input for {@link Client.sendPasswordResetEmail}. */
|
|
82
|
+
interface SendPasswordResetEmailInput {
|
|
83
|
+
/** The ID of the user */
|
|
84
|
+
userId: string;
|
|
85
|
+
/** The URI to redirect to after password reset */
|
|
86
|
+
redirectUri: string;
|
|
87
|
+
/** The sender display name. Defaults to 'Tailor Platform IdP'. */
|
|
88
|
+
fromName?: string;
|
|
89
|
+
/** The email subject line. Defaults to the localized default subject. */
|
|
90
|
+
subject?: string;
|
|
91
|
+
}
|
|
92
|
+
/** Input for {@link Client.unenrollMfa}. */
|
|
93
|
+
interface UnenrollMfaInput {
|
|
94
|
+
/** The ID of the user whose factor will be unenrolled. */
|
|
95
|
+
userId: string;
|
|
96
|
+
/**
|
|
97
|
+
* The ID of the factor to unenroll. Factor IDs are exposed on the user
|
|
98
|
+
* record (see {@link User.mfaFactorIds}).
|
|
99
|
+
*/
|
|
100
|
+
mfaFactorId: string;
|
|
101
|
+
}
|
|
102
|
+
/** Instance methods exposed by `tailor.idp.Client`. */
|
|
103
|
+
interface IdpClientInstance {
|
|
104
|
+
users(options?: ListUsersOptions): Promise<ListUsersResponse>;
|
|
105
|
+
user(userId: string): Promise<User>;
|
|
106
|
+
userByName(name: string): Promise<User>;
|
|
107
|
+
createUser(input: CreateUserInput): Promise<User>;
|
|
108
|
+
updateUser(input: UpdateUserInput): Promise<User>;
|
|
109
|
+
deleteUser(userId: string): Promise<boolean>;
|
|
110
|
+
sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;
|
|
111
|
+
unenrollMfa(input: UnenrollMfaInput): Promise<boolean>;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Constructor shape for `tailor.idp.Client`.
|
|
115
|
+
* @internal
|
|
116
|
+
*/
|
|
117
|
+
interface IdpClientConstructor {
|
|
118
|
+
new (config: ClientConfig): IdpClientInstance;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Platform API surface for `tailor.idp`. Describes the shape the platform
|
|
122
|
+
* runtime injects on `globalThis.tailor.idp`.
|
|
123
|
+
* @internal
|
|
124
|
+
*/
|
|
125
|
+
interface TailorIdpAPI {
|
|
126
|
+
Client: IdpClientConstructor;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* IDP Client for user management operations.
|
|
130
|
+
*
|
|
131
|
+
* Wraps the platform-provided `tailor.idp.Client` and exposes the same surface.
|
|
132
|
+
*/
|
|
133
|
+
declare class Client {
|
|
134
|
+
#private;
|
|
135
|
+
constructor(config: ClientConfig);
|
|
136
|
+
/**
|
|
137
|
+
* List users in the namespace with optional filtering and pagination.
|
|
138
|
+
* @param options - Pagination and filter options
|
|
139
|
+
* @returns Page of users with `nextPageToken` and `totalCount`
|
|
140
|
+
*/
|
|
141
|
+
users(options?: ListUsersOptions): Promise<ListUsersResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Get a user by ID.
|
|
144
|
+
* @param userId - IDP user ID
|
|
145
|
+
* @returns The matching user
|
|
146
|
+
*/
|
|
147
|
+
user(userId: string): Promise<User>;
|
|
148
|
+
/**
|
|
149
|
+
* Get a user by name.
|
|
150
|
+
* @param name - IDP user name
|
|
151
|
+
* @returns The matching user
|
|
152
|
+
*/
|
|
153
|
+
userByName(name: string): Promise<User>;
|
|
154
|
+
/**
|
|
155
|
+
* Create a new user.
|
|
156
|
+
* @param input - User attributes
|
|
157
|
+
* @returns The newly created user
|
|
158
|
+
*/
|
|
159
|
+
createUser(input: CreateUserInput): Promise<User>;
|
|
160
|
+
/**
|
|
161
|
+
* Update an existing user.
|
|
162
|
+
* @param input - User ID plus attributes to update
|
|
163
|
+
* @returns The updated user
|
|
164
|
+
*/
|
|
165
|
+
updateUser(input: UpdateUserInput): Promise<User>;
|
|
166
|
+
/**
|
|
167
|
+
* Delete a user by ID.
|
|
168
|
+
* @param userId - IDP user ID
|
|
169
|
+
* @returns `true` when the user was deleted
|
|
170
|
+
*/
|
|
171
|
+
deleteUser(userId: string): Promise<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* Send a password reset email to a user.
|
|
174
|
+
* @param input - Target user ID and redirect URI
|
|
175
|
+
* @returns `true` when the email was queued
|
|
176
|
+
*/
|
|
177
|
+
sendPasswordResetEmail(input: SendPasswordResetEmailInput): Promise<boolean>;
|
|
178
|
+
/**
|
|
179
|
+
* Unenroll an MFA factor from a user.
|
|
180
|
+
* @param input - Target user ID and factor ID (see {@link User.mfaFactorIds})
|
|
181
|
+
* @returns `true` when the factor was removed
|
|
182
|
+
*/
|
|
183
|
+
unenrollMfa(input: UnenrollMfaInput): Promise<boolean>;
|
|
184
|
+
}
|
|
185
|
+
//#endregion
|
|
186
|
+
export { Client, ClientConfig, CreateUserInput, IdpClientConstructor, IdpClientInstance, ListUsersOptions, ListUsersResponse, SendPasswordResetEmailInput, TailorIdpAPI, UnenrollMfaInput, UpdateUserInput, User, UserQuery, idp_d_exports };
|
package/dist/runtime/idp.mjs
CHANGED
package/dist/runtime/index.d.mts
CHANGED
|
@@ -1,9 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { TailorAigatewayAPI, aigateway_d_exports } from "./aigateway.mjs";
|
|
2
|
+
import { TailorAuthconnectionAPI, authconnection_d_exports } from "./authconnection.mjs";
|
|
3
|
+
import { TailorContextAPI, context_d_exports } from "./context.mjs";
|
|
4
|
+
import { TailorDBFileAPI, file_d_exports } from "./file.mjs";
|
|
5
|
+
import { TailorIconvAPI, iconv_d_exports } from "./iconv.mjs";
|
|
6
|
+
import { TailorIdpAPI, idp_d_exports } from "./idp.mjs";
|
|
7
|
+
import { TailorSecretmanagerAPI, secretmanager_d_exports } from "./secretmanager.mjs";
|
|
8
|
+
import { TailorWorkflowAPI, workflow_d_exports } from "./workflow.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/runtime/index.d.ts
|
|
11
|
+
/** SQL command type recorded on a {@link TailordbQueryResult}. */
|
|
12
|
+
type TailordbCommandType = "INSERT" | "DELETE" | "UPDATE" | "SELECT" | "MOVE" | "FETCH" | "COPY" | "CREATE";
|
|
13
|
+
/** Result of a single `queryObject` call against the TailorDB driver. */
|
|
14
|
+
interface TailordbQueryResult<T> {
|
|
15
|
+
rows: T[];
|
|
16
|
+
command: TailordbCommandType;
|
|
17
|
+
rowCount: number;
|
|
18
|
+
}
|
|
19
|
+
/** Instance methods exposed by `tailordb.Client`. */
|
|
20
|
+
interface TailordbClientInstance {
|
|
21
|
+
connect(): Promise<void>;
|
|
22
|
+
end(): Promise<void>;
|
|
23
|
+
queryObject<O>(sql: string, args?: readonly unknown[]): Promise<TailordbQueryResult<O>>;
|
|
24
|
+
}
|
|
25
|
+
/** Constructor shape for `tailordb.Client`. */
|
|
26
|
+
interface TailordbClientConstructor {
|
|
27
|
+
new (config: {
|
|
28
|
+
namespace: string;
|
|
29
|
+
}): TailordbClientInstance;
|
|
30
|
+
}
|
|
31
|
+
/** Top-level `tailor` runtime object. */
|
|
32
|
+
interface TailorRuntime {
|
|
33
|
+
secretmanager: TailorSecretmanagerAPI;
|
|
34
|
+
authconnection: TailorAuthconnectionAPI;
|
|
35
|
+
iconv: TailorIconvAPI;
|
|
36
|
+
idp: TailorIdpAPI;
|
|
37
|
+
workflow: TailorWorkflowAPI;
|
|
38
|
+
context: TailorContextAPI;
|
|
39
|
+
aigateway: TailorAigatewayAPI;
|
|
40
|
+
}
|
|
41
|
+
/** Top-level `tailordb` runtime object. */
|
|
42
|
+
interface TailordbRuntime {
|
|
43
|
+
Client: TailordbClientConstructor;
|
|
44
|
+
file: TailorDBFileAPI;
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { TailorRuntime, TailordbClientConstructor, TailordbClientInstance, TailordbCommandType, TailordbQueryResult, TailordbRuntime, aigateway_d_exports as aigateway, authconnection_d_exports as authconnection, context_d_exports as context, file_d_exports as file, iconv_d_exports as iconv, idp_d_exports as idp, secretmanager_d_exports as secretmanager, workflow_d_exports as workflow };
|
package/dist/runtime/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { s as iconv_exports } from "../iconv-D2vi8G36.mjs";
|
|
2
|
+
import { r as secretmanager_exports } from "../secretmanager-BVxw3ih_.mjs";
|
|
3
|
+
import { t as authconnection_exports } from "../authconnection-BGQM8FZI.mjs";
|
|
4
|
+
import { n as idp_exports } from "../idp-Bx25ZBdN.mjs";
|
|
5
|
+
import { o as workflow_exports } from "../workflow-DSwnYPPP.mjs";
|
|
6
|
+
import { t as context_exports } from "../context-Bd266-ru.mjs";
|
|
7
|
+
import { a as file_exports } from "../file-_oUZo76X.mjs";
|
|
8
|
+
import { t as aigateway_exports } from "../aigateway-B3oZZE6v.mjs";
|
|
1
9
|
|
|
2
|
-
|
|
3
|
-
import { r as secretmanager_exports } from "../secretmanager-h3tBJV8f.mjs";
|
|
4
|
-
import { t as authconnection_exports } from "../authconnection-D7lsvsKY.mjs";
|
|
5
|
-
import { n as idp_exports } from "../idp-ynUfzwpz.mjs";
|
|
6
|
-
import { a as workflow_exports } from "../workflow-C8I7shjM.mjs";
|
|
7
|
-
import { t as context_exports } from "../context-CDQqIv4u.mjs";
|
|
8
|
-
import { a as file_exports } from "../file-BkxupbYP.mjs";
|
|
9
|
-
|
|
10
|
-
export { authconnection_exports as authconnection, context_exports as context, file_exports as file, iconv_exports as iconv, idp_exports as idp, secretmanager_exports as secretmanager, workflow_exports as workflow };
|
|
10
|
+
export { aigateway_exports as aigateway, authconnection_exports as authconnection, context_exports as context, file_exports as file, iconv_exports as iconv, idp_exports as idp, secretmanager_exports as secretmanager, workflow_exports as workflow };
|
|
@@ -1,2 +1,54 @@
|
|
|
1
|
-
|
|
2
|
-
export { TailorSecretmanagerAPI, getSecret, getSecrets };
|
|
1
|
+
declare namespace secretmanager_d_exports {
|
|
2
|
+
export { TailorSecretmanagerAPI, getSecret, getSecrets };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Secret manager utilities.
|
|
6
|
+
*
|
|
7
|
+
* Thin typed wrapper around the platform-provided `tailor.secretmanager` runtime API.
|
|
8
|
+
* At runtime this delegates to `globalThis.tailor.secretmanager`. Use
|
|
9
|
+
* `mockSecretmanager` from `@tailor-platform/sdk/vitest` to mock these calls
|
|
10
|
+
* in unit tests.
|
|
11
|
+
* @example
|
|
12
|
+
* import { secretmanager } from "@tailor-platform/sdk/runtime";
|
|
13
|
+
*
|
|
14
|
+
* const apiKey = await secretmanager.getSecret("my-vault", "API_KEY");
|
|
15
|
+
* const all = await secretmanager.getSecrets("my-vault", ["A", "B"] as const);
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Platform API surface for `tailor.secretmanager`. Describes the shape the
|
|
19
|
+
* platform runtime injects on `globalThis.tailor.secretmanager`.
|
|
20
|
+
*
|
|
21
|
+
* Each method below is also re-exported as a top-level named export from this
|
|
22
|
+
* module so callers can either `import * as secretmanager from
|
|
23
|
+
* "@tailor-platform/sdk/runtime/secretmanager"` or pick individual methods.
|
|
24
|
+
*/
|
|
25
|
+
interface TailorSecretmanagerAPI {
|
|
26
|
+
/**
|
|
27
|
+
* Returns multiple secrets from a vault. Missing names are omitted from the result.
|
|
28
|
+
* @param vault - Vault name
|
|
29
|
+
* @param names - Secret names to fetch (use `as const` to narrow the result key)
|
|
30
|
+
* @returns Partial record keyed by the requested names
|
|
31
|
+
*/
|
|
32
|
+
getSecrets<const T extends readonly string[]>(vault: string, names: T): Promise<Partial<Record<T[number], string>>>;
|
|
33
|
+
/**
|
|
34
|
+
* Returns a single secret from a vault, or `undefined` when missing.
|
|
35
|
+
* @param vault - Vault name
|
|
36
|
+
* @param name - Secret name
|
|
37
|
+
* @returns The secret value, or `undefined` if not present
|
|
38
|
+
*/
|
|
39
|
+
getSecret(vault: string, name: string): Promise<string | undefined>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* See {@link TailorSecretmanagerAPI.getSecrets}.
|
|
43
|
+
* @param args - Forwarded to {@link TailorSecretmanagerAPI.getSecrets}
|
|
44
|
+
* @returns Partial record keyed by the requested names
|
|
45
|
+
*/
|
|
46
|
+
declare const getSecrets: TailorSecretmanagerAPI["getSecrets"];
|
|
47
|
+
/**
|
|
48
|
+
* See {@link TailorSecretmanagerAPI.getSecret}.
|
|
49
|
+
* @param args - Forwarded to {@link TailorSecretmanagerAPI.getSecret}
|
|
50
|
+
* @returns The secret value, or `undefined` if not present
|
|
51
|
+
*/
|
|
52
|
+
declare const getSecret: TailorSecretmanagerAPI["getSecret"];
|
|
53
|
+
//#endregion
|
|
54
|
+
export { TailorSecretmanagerAPI, getSecret, getSecrets, secretmanager_d_exports };
|
|
@@ -70,5 +70,4 @@ interface Env {}
|
|
|
70
70
|
/** Represents environment variables in the Tailor platform. */
|
|
71
71
|
type TailorEnv = keyof Env extends never ? Record<string, string | number | boolean> : Env;
|
|
72
72
|
//#endregion
|
|
73
|
-
export {
|
|
74
|
-
//# sourceMappingURL=types-DTcZ2Yax.d.mts.map
|
|
73
|
+
export { AttributeList, AttributeMap, Env, InferredAttributeList, InferredAttributeMap, TailorActor, TailorActorType, TailorEnv, TailorInvoker, TailorUser };
|
|
@@ -1,2 +1,107 @@
|
|
|
1
|
-
|
|
2
|
-
export { AuthInvoker, TailorWorkflowAPI, TriggerWorkflowOptions, resolve, triggerJobFunction, triggerWorkflow, wait };
|
|
1
|
+
declare namespace workflow_d_exports {
|
|
2
|
+
export { AuthInvoker, TailorWorkflowAPI, TriggerWorkflowOptions, resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait };
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Workflow utilities.
|
|
6
|
+
*
|
|
7
|
+
* Thin typed wrapper around the platform-provided `tailor.workflow` runtime API.
|
|
8
|
+
* At runtime this delegates to `globalThis.tailor.workflow`. Use `mockWorkflow`
|
|
9
|
+
* from `@tailor-platform/sdk/vitest` to mock these calls in unit tests.
|
|
10
|
+
* @example
|
|
11
|
+
* import { workflow } from "@tailor-platform/sdk/runtime";
|
|
12
|
+
*
|
|
13
|
+
* const executionId = await workflow.triggerWorkflow("myWorkflow", { data: "value" });
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the machine user that should be used to execute the workflow.
|
|
17
|
+
* This allows workflows to run with specific authentication context.
|
|
18
|
+
*/
|
|
19
|
+
interface AuthInvoker {
|
|
20
|
+
/** The namespace where the machine user is defined */
|
|
21
|
+
namespace: string;
|
|
22
|
+
/** The name of the machine user to use for workflow execution */
|
|
23
|
+
machineUserName: string;
|
|
24
|
+
}
|
|
25
|
+
/** Options for {@link triggerWorkflow}. */
|
|
26
|
+
interface TriggerWorkflowOptions {
|
|
27
|
+
/** Optional authentication invoker to specify which machine user should execute the workflow */
|
|
28
|
+
authInvoker?: AuthInvoker;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Platform API surface for `tailor.workflow`. Describes the shape the platform
|
|
32
|
+
* runtime injects on `globalThis.tailor.workflow`.
|
|
33
|
+
*
|
|
34
|
+
* Each method below is also re-exported as a top-level named export from this
|
|
35
|
+
* module so callers can either `import * as workflow from
|
|
36
|
+
* "@tailor-platform/sdk/runtime/workflow"` or pick individual methods.
|
|
37
|
+
*/
|
|
38
|
+
interface TailorWorkflowAPI {
|
|
39
|
+
/**
|
|
40
|
+
* Triggers a workflow and returns its execution ID.
|
|
41
|
+
* @param workflowName - Workflow name as defined in tailor.config
|
|
42
|
+
* @param args - Arguments forwarded to the workflow's main job
|
|
43
|
+
* @param options - Optional trigger options (e.g. `authInvoker`)
|
|
44
|
+
* @returns The execution ID of the triggered workflow
|
|
45
|
+
*/
|
|
46
|
+
triggerWorkflow(workflowName: string, args?: any, options?: TriggerWorkflowOptions): Promise<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Resumes a failed or pending-retry workflow execution and returns its execution ID.
|
|
49
|
+
* @param executionId - The execution to resume
|
|
50
|
+
* @returns The execution ID of the resumed workflow
|
|
51
|
+
*/
|
|
52
|
+
resumeWorkflow(executionId: string): Promise<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Triggers a job function and returns its result.
|
|
55
|
+
* @param jobName - Job name as defined in the workflow
|
|
56
|
+
* @param args - Arguments forwarded to the job
|
|
57
|
+
* @returns The job's return value
|
|
58
|
+
*/
|
|
59
|
+
triggerJobFunction(jobName: string, args?: any): any;
|
|
60
|
+
/**
|
|
61
|
+
* Suspends the current workflow execution and waits for an external signal to resume.
|
|
62
|
+
* @param key - Wait point key
|
|
63
|
+
* @param payload - Optional payload to record with the wait point
|
|
64
|
+
* @returns The payload supplied by the corresponding `resolve` call
|
|
65
|
+
*/
|
|
66
|
+
wait(key: string, payload?: any): any;
|
|
67
|
+
/**
|
|
68
|
+
* Resolves a waiting workflow execution, causing it to resume.
|
|
69
|
+
* @param executionId - The execution to resume
|
|
70
|
+
* @param key - Wait point key to resolve
|
|
71
|
+
* @param callback - Callback receiving the wait payload; its return value is forwarded to `wait`
|
|
72
|
+
* @returns A promise that resolves once the resolve has been recorded
|
|
73
|
+
*/
|
|
74
|
+
resolve(executionId: string, key: string, callback: (waitPayload: any) => any): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* See {@link TailorWorkflowAPI.triggerWorkflow}.
|
|
78
|
+
* @param args - Forwarded to {@link TailorWorkflowAPI.triggerWorkflow}
|
|
79
|
+
* @returns The execution ID of the triggered workflow
|
|
80
|
+
*/
|
|
81
|
+
declare const triggerWorkflow: TailorWorkflowAPI["triggerWorkflow"];
|
|
82
|
+
/**
|
|
83
|
+
* See {@link TailorWorkflowAPI.resumeWorkflow}.
|
|
84
|
+
* @param args - Forwarded to {@link TailorWorkflowAPI.resumeWorkflow}
|
|
85
|
+
* @returns The execution ID of the resumed workflow
|
|
86
|
+
*/
|
|
87
|
+
declare const resumeWorkflow: TailorWorkflowAPI["resumeWorkflow"];
|
|
88
|
+
/**
|
|
89
|
+
* See {@link TailorWorkflowAPI.triggerJobFunction}.
|
|
90
|
+
* @param args - Forwarded to {@link TailorWorkflowAPI.triggerJobFunction}
|
|
91
|
+
* @returns The job's return value
|
|
92
|
+
*/
|
|
93
|
+
declare const triggerJobFunction: TailorWorkflowAPI["triggerJobFunction"];
|
|
94
|
+
/**
|
|
95
|
+
* See {@link TailorWorkflowAPI.wait}.
|
|
96
|
+
* @param args - Forwarded to {@link TailorWorkflowAPI.wait}
|
|
97
|
+
* @returns The payload supplied by the corresponding `resolve` call
|
|
98
|
+
*/
|
|
99
|
+
declare const wait: TailorWorkflowAPI["wait"];
|
|
100
|
+
/**
|
|
101
|
+
* See {@link TailorWorkflowAPI.resolve}.
|
|
102
|
+
* @param args - Forwarded to {@link TailorWorkflowAPI.resolve}
|
|
103
|
+
* @returns A promise that resolves once the resolve has been recorded
|
|
104
|
+
*/
|
|
105
|
+
declare const resolve: TailorWorkflowAPI["resolve"];
|
|
106
|
+
//#endregion
|
|
107
|
+
export { AuthInvoker, TailorWorkflowAPI, TriggerWorkflowOptions, resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait, workflow_d_exports };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
+
import { a as wait, i as triggerWorkflow, n as resumeWorkflow, r as triggerJobFunction, t as resolve } from "../workflow-DSwnYPPP.mjs";
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export { resolve, triggerJobFunction, triggerWorkflow, wait };
|
|
3
|
+
export { resolve, resumeWorkflow, triggerJobFunction, triggerWorkflow, wait };
|