@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,150 @@
|
|
|
1
|
+
//#region src/types/auth.generated.d.ts
|
|
2
|
+
type AuthInvokerObject = {
|
|
3
|
+
/** Auth namespace */namespace: string; /** Machine user name for authentication */
|
|
4
|
+
machineUserName: string;
|
|
5
|
+
};
|
|
6
|
+
type AuthInvoker = AuthInvokerObject;
|
|
7
|
+
type OIDC = {
|
|
8
|
+
/** Identity provider name */name: string;
|
|
9
|
+
kind: "OIDC"; /** OAuth2 client ID */
|
|
10
|
+
clientID: string; /** OAuth2 client secret */
|
|
11
|
+
clientSecret: {
|
|
12
|
+
vaultName: string;
|
|
13
|
+
secretKey: string;
|
|
14
|
+
}; /** OIDC provider URL */
|
|
15
|
+
providerURL: string; /** OIDC issuer URL (defaults to providerURL) */
|
|
16
|
+
issuerURL?: string | undefined; /** JWT claim to use as username */
|
|
17
|
+
usernameClaim?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
type SAML = {
|
|
20
|
+
/** Identity provider name */name: string;
|
|
21
|
+
kind: "SAML"; /** Enable signing of SAML requests */
|
|
22
|
+
enableSignRequest: boolean; /** URL to fetch SAML metadata (mutually exclusive with rawMetadata) */
|
|
23
|
+
metadataURL?: string | undefined; /** Raw SAML metadata XML (mutually exclusive with metadataURL) */
|
|
24
|
+
rawMetadata?: string | undefined; /** URL to redirect to when SAML ACS receives a response with an empty RelayState. */
|
|
25
|
+
defaultRedirectURL?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
type IDToken = {
|
|
28
|
+
/** Identity provider name */name: string;
|
|
29
|
+
kind: "IDToken"; /** ID token provider URL */
|
|
30
|
+
providerURL: string; /** Client ID for ID token validation */
|
|
31
|
+
clientID: string; /** ID token issuer URL */
|
|
32
|
+
issuerURL?: string | undefined; /** JWT claim to use as username */
|
|
33
|
+
usernameClaim?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
type BuiltinIdP = {
|
|
36
|
+
/** Identity provider name */name: string;
|
|
37
|
+
kind: "BuiltInIdP"; /** IdP namespace */
|
|
38
|
+
namespace: string; /** OAuth2 client name in the IdP */
|
|
39
|
+
clientName: string;
|
|
40
|
+
};
|
|
41
|
+
type IdProvider = OIDC | SAML | IDToken | BuiltinIdP;
|
|
42
|
+
type OAuth2ClientInput = {
|
|
43
|
+
/** Allowed redirect URIs */redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[]; /** Client description */
|
|
44
|
+
description?: string | undefined; /** Allowed OAuth2 grant types */
|
|
45
|
+
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined; /** OAuth2 client type */
|
|
46
|
+
clientType?: "confidential" | "public" | "browser" | undefined; /** Access token lifetime in seconds (60-86400) */
|
|
47
|
+
accessTokenLifetimeSeconds?: number | undefined; /** Refresh token lifetime in seconds (60-604800) */
|
|
48
|
+
refreshTokenLifetimeSeconds?: number | undefined; /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
|
|
49
|
+
requireDpop?: boolean | undefined;
|
|
50
|
+
};
|
|
51
|
+
type OAuth2Client = {
|
|
52
|
+
/** Allowed OAuth2 grant types */grantTypes: ("authorization_code" | "refresh_token")[]; /** Allowed redirect URIs */
|
|
53
|
+
redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[]; /** Access token lifetime in seconds (60-86400) */
|
|
54
|
+
accessTokenLifetimeSeconds: {
|
|
55
|
+
seconds: bigint;
|
|
56
|
+
nanos: number;
|
|
57
|
+
} | undefined; /** Refresh token lifetime in seconds (60-604800) */
|
|
58
|
+
refreshTokenLifetimeSeconds: {
|
|
59
|
+
seconds: bigint;
|
|
60
|
+
nanos: number;
|
|
61
|
+
} | undefined; /** Client description */
|
|
62
|
+
description?: string | undefined; /** OAuth2 client type */
|
|
63
|
+
clientType?: "confidential" | "public" | "browser" | undefined; /** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
|
|
64
|
+
requireDpop?: boolean | undefined;
|
|
65
|
+
};
|
|
66
|
+
type SCIMAuthorization = {
|
|
67
|
+
/** SCIM authorization type */type: "oauth2" | "bearer"; /** Bearer token secret (required for bearer type) */
|
|
68
|
+
bearerSecret?: {
|
|
69
|
+
vaultName: string;
|
|
70
|
+
secretKey: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
};
|
|
73
|
+
type SCIMAttribute = {
|
|
74
|
+
/** Attribute data type */type: "string" | "number" | "boolean" | "datetime" | "complex"; /** Attribute name */
|
|
75
|
+
name: string; /** Attribute description */
|
|
76
|
+
description?: string | undefined; /** Attribute mutability */
|
|
77
|
+
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined; /** Whether the attribute is required */
|
|
78
|
+
required?: boolean | undefined; /** Whether the attribute can have multiple values */
|
|
79
|
+
multiValued?: boolean | undefined; /** Uniqueness constraint */
|
|
80
|
+
uniqueness?: "none" | "server" | "global" | undefined; /** List of canonical values */
|
|
81
|
+
canonicalValues?: string[] | null | undefined;
|
|
82
|
+
subAttributes?: SCIMAttribute[] | null | undefined;
|
|
83
|
+
};
|
|
84
|
+
type SCIMAttributeMapping = {
|
|
85
|
+
/** TailorDB field name to map to */tailorDBField: string; /** SCIM attribute path */
|
|
86
|
+
scimPath: string;
|
|
87
|
+
};
|
|
88
|
+
type SCIMResource = {
|
|
89
|
+
/** SCIM resource name */name: string; /** TailorDB namespace for the resource */
|
|
90
|
+
tailorDBNamespace: string; /** TailorDB type name for the resource */
|
|
91
|
+
tailorDBType: string; /** Core SCIM schema definition */
|
|
92
|
+
coreSchema: {
|
|
93
|
+
/** SCIM resource name */name: string;
|
|
94
|
+
attributes: {
|
|
95
|
+
type: "string" | "number" | "boolean" | "datetime" | "complex"; /** SCIM resource name */
|
|
96
|
+
name: string;
|
|
97
|
+
description?: string | undefined;
|
|
98
|
+
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
|
|
99
|
+
required?: boolean | undefined;
|
|
100
|
+
multiValued?: boolean | undefined;
|
|
101
|
+
uniqueness?: "none" | "server" | "global" | undefined;
|
|
102
|
+
canonicalValues?: string[] | null | undefined;
|
|
103
|
+
subAttributes?: any[] | null | undefined;
|
|
104
|
+
}[];
|
|
105
|
+
}; /** Attribute mapping configuration */
|
|
106
|
+
attributeMapping: {
|
|
107
|
+
tailorDBField: string;
|
|
108
|
+
scimPath: string;
|
|
109
|
+
}[];
|
|
110
|
+
};
|
|
111
|
+
type SCIMConfig = {
|
|
112
|
+
/** Machine user name for SCIM operations */machineUserName: string; /** SCIM authorization configuration */
|
|
113
|
+
authorization: {
|
|
114
|
+
type: "oauth2" | "bearer";
|
|
115
|
+
bearerSecret?: {
|
|
116
|
+
vaultName: string;
|
|
117
|
+
secretKey: string;
|
|
118
|
+
} | undefined;
|
|
119
|
+
}; /** SCIM resource definitions */
|
|
120
|
+
resources: {
|
|
121
|
+
name: string;
|
|
122
|
+
tailorDBNamespace: string;
|
|
123
|
+
tailorDBType: string;
|
|
124
|
+
coreSchema: {
|
|
125
|
+
name: string;
|
|
126
|
+
attributes: {
|
|
127
|
+
type: "string" | "number" | "boolean" | "datetime" | "complex";
|
|
128
|
+
name: string;
|
|
129
|
+
description?: string | undefined;
|
|
130
|
+
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
|
|
131
|
+
required?: boolean | undefined;
|
|
132
|
+
multiValued?: boolean | undefined;
|
|
133
|
+
uniqueness?: "none" | "server" | "global" | undefined;
|
|
134
|
+
canonicalValues?: string[] | null | undefined;
|
|
135
|
+
subAttributes?: any[] | null | undefined;
|
|
136
|
+
}[];
|
|
137
|
+
};
|
|
138
|
+
attributeMapping: {
|
|
139
|
+
tailorDBField: string;
|
|
140
|
+
scimPath: string;
|
|
141
|
+
}[];
|
|
142
|
+
}[];
|
|
143
|
+
};
|
|
144
|
+
type TenantProvider = {
|
|
145
|
+
/** TailorDB namespace for the tenant type */namespace: string; /** TailorDB type name for tenants */
|
|
146
|
+
type: string; /** Field used as the tenant signature */
|
|
147
|
+
signatureField: string;
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
export { AuthInvoker, AuthInvokerObject, BuiltinIdP, IDToken, IdProvider, OAuth2Client, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider };
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
//#region src/types/executor.generated.d.ts
|
|
2
|
+
type TailorDBTrigger = {
|
|
3
|
+
/** TailorDB record event trigger */kind: "tailordb"; /** TailorDB event types to trigger on */
|
|
4
|
+
events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[]; /** TailorDB type name to watch for events */
|
|
5
|
+
typeName: string; /** Condition function to filter events */
|
|
6
|
+
condition?: Function | undefined;
|
|
7
|
+
};
|
|
8
|
+
type ResolverExecutedTrigger = {
|
|
9
|
+
kind: "resolverExecuted"; /** Name of the resolver to trigger on */
|
|
10
|
+
resolverName: string; /** Condition function to filter events */
|
|
11
|
+
condition?: Function | undefined;
|
|
12
|
+
};
|
|
13
|
+
type ScheduleTriggerInput = {
|
|
14
|
+
kind: "schedule"; /** CRON expression for the schedule */
|
|
15
|
+
cron: string; /** Timezone for the CRON schedule (default: UTC) */
|
|
16
|
+
timezone?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
type IncomingWebhookTrigger = {
|
|
19
|
+
kind: "incomingWebhook"; /** Response configuration */
|
|
20
|
+
response?: {
|
|
21
|
+
body?: Function | undefined;
|
|
22
|
+
statusCode?: number | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
};
|
|
25
|
+
type IdpUserTrigger = {
|
|
26
|
+
/** IdP user event trigger */kind: "idpUser"; /** IdP user event types to trigger on */
|
|
27
|
+
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[]; /** IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist. */
|
|
28
|
+
idp?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
type AuthAccessTokenTrigger = {
|
|
31
|
+
/** Auth access token event trigger */kind: "authAccessToken"; /** Auth access token event types to trigger on */
|
|
32
|
+
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
33
|
+
};
|
|
34
|
+
type FunctionOperation = {
|
|
35
|
+
kind: "function" | "jobFunction"; /** Function implementation */
|
|
36
|
+
body: Function; /** Auth invoker for the function execution */
|
|
37
|
+
authInvoker?: string | {
|
|
38
|
+
namespace: string;
|
|
39
|
+
machineUserName: string;
|
|
40
|
+
} | undefined;
|
|
41
|
+
};
|
|
42
|
+
type GqlOperation = {
|
|
43
|
+
kind: "graphql";
|
|
44
|
+
query: string; /** Target application name for the GraphQL query */
|
|
45
|
+
appName?: string | undefined; /** Function to compute GraphQL variables */
|
|
46
|
+
variables?: Function | undefined; /** Auth invoker for the GraphQL execution */
|
|
47
|
+
authInvoker?: string | {
|
|
48
|
+
namespace: string;
|
|
49
|
+
machineUserName: string;
|
|
50
|
+
} | undefined;
|
|
51
|
+
};
|
|
52
|
+
type WebhookOperation = {
|
|
53
|
+
kind: "webhook"; /** Function returning the webhook URL */
|
|
54
|
+
url: Function; /** Function to compute the request body */
|
|
55
|
+
requestBody?: Function | undefined; /** HTTP headers for the webhook request */
|
|
56
|
+
headers?: {
|
|
57
|
+
[x: string]: string | {
|
|
58
|
+
vault: string;
|
|
59
|
+
key: string;
|
|
60
|
+
};
|
|
61
|
+
} | undefined;
|
|
62
|
+
};
|
|
63
|
+
type WorkflowOperation = {
|
|
64
|
+
kind: "workflow";
|
|
65
|
+
workflowName: string;
|
|
66
|
+
args?: Function | {
|
|
67
|
+
[x: string]: unknown;
|
|
68
|
+
} | undefined;
|
|
69
|
+
authInvoker?: string | {
|
|
70
|
+
namespace: string;
|
|
71
|
+
machineUserName: string;
|
|
72
|
+
} | undefined;
|
|
73
|
+
};
|
|
74
|
+
type ExecutorInput = {
|
|
75
|
+
/** Executor name */name: string; /** Event trigger configuration */
|
|
76
|
+
trigger: {
|
|
77
|
+
kind: "tailordb";
|
|
78
|
+
events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
|
|
79
|
+
typeName: string;
|
|
80
|
+
condition?: Function | undefined;
|
|
81
|
+
} | {
|
|
82
|
+
kind: "resolverExecuted";
|
|
83
|
+
resolverName: string;
|
|
84
|
+
condition?: Function | undefined;
|
|
85
|
+
} | {
|
|
86
|
+
kind: "schedule";
|
|
87
|
+
cron: string;
|
|
88
|
+
timezone?: string | undefined;
|
|
89
|
+
} | {
|
|
90
|
+
kind: "incomingWebhook";
|
|
91
|
+
response?: {
|
|
92
|
+
body?: Function | undefined;
|
|
93
|
+
statusCode?: number | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
} | {
|
|
96
|
+
kind: "idpUser";
|
|
97
|
+
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
|
|
98
|
+
idp?: string | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
kind: "authAccessToken";
|
|
101
|
+
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
102
|
+
}; /** Operation to execute when triggered */
|
|
103
|
+
operation: unknown; /** Executor description */
|
|
104
|
+
description?: string | undefined; /** Whether the executor is disabled */
|
|
105
|
+
disabled?: boolean | undefined;
|
|
106
|
+
};
|
|
107
|
+
type Executor = {
|
|
108
|
+
/** Executor name */name: string; /** Whether the executor is disabled */
|
|
109
|
+
disabled: boolean; /** Event trigger configuration */
|
|
110
|
+
trigger: {
|
|
111
|
+
kind: "tailordb";
|
|
112
|
+
events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
|
|
113
|
+
typeName: string;
|
|
114
|
+
condition?: Function | undefined;
|
|
115
|
+
} | {
|
|
116
|
+
kind: "resolverExecuted";
|
|
117
|
+
resolverName: string;
|
|
118
|
+
condition?: Function | undefined;
|
|
119
|
+
} | {
|
|
120
|
+
kind: "schedule";
|
|
121
|
+
cron: string;
|
|
122
|
+
timezone: string;
|
|
123
|
+
} | {
|
|
124
|
+
kind: "incomingWebhook";
|
|
125
|
+
response?: {
|
|
126
|
+
body?: Function | undefined;
|
|
127
|
+
statusCode?: number | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
kind: "idpUser";
|
|
131
|
+
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
|
|
132
|
+
idp?: string | undefined;
|
|
133
|
+
} | {
|
|
134
|
+
kind: "authAccessToken";
|
|
135
|
+
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
136
|
+
}; /** Operation to execute when triggered */
|
|
137
|
+
operation: {
|
|
138
|
+
kind: "workflow";
|
|
139
|
+
workflowName: string;
|
|
140
|
+
args?: Function | {
|
|
141
|
+
[x: string]: unknown;
|
|
142
|
+
} | undefined;
|
|
143
|
+
authInvoker?: string | {
|
|
144
|
+
namespace: string;
|
|
145
|
+
machineUserName: string;
|
|
146
|
+
} | undefined;
|
|
147
|
+
} | {
|
|
148
|
+
kind: "function" | "jobFunction";
|
|
149
|
+
body: Function;
|
|
150
|
+
authInvoker?: string | {
|
|
151
|
+
namespace: string;
|
|
152
|
+
machineUserName: string;
|
|
153
|
+
} | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
kind: "graphql";
|
|
156
|
+
query: string;
|
|
157
|
+
appName?: string | undefined;
|
|
158
|
+
variables?: Function | undefined;
|
|
159
|
+
authInvoker?: string | {
|
|
160
|
+
namespace: string;
|
|
161
|
+
machineUserName: string;
|
|
162
|
+
} | undefined;
|
|
163
|
+
} | {
|
|
164
|
+
kind: "webhook";
|
|
165
|
+
url: Function;
|
|
166
|
+
requestBody?: Function | undefined;
|
|
167
|
+
headers?: {
|
|
168
|
+
[x: string]: string | {
|
|
169
|
+
vault: string;
|
|
170
|
+
key: string;
|
|
171
|
+
};
|
|
172
|
+
} | undefined;
|
|
173
|
+
}; /** Executor description */
|
|
174
|
+
description?: string | undefined;
|
|
175
|
+
};
|
|
176
|
+
//#endregion
|
|
177
|
+
export { AuthAccessTokenTrigger, Executor, ExecutorInput, FunctionOperation, GqlOperation, IdpUserTrigger, IncomingWebhookTrigger, ResolverExecutedTrigger, ScheduleTriggerInput, TailorDBTrigger, WebhookOperation, WorkflowOperation };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//#region src/types/generator-config.generated.d.ts
|
|
2
|
+
type BaseGeneratorConfig = ["@tailor-platform/kysely-type", {
|
|
3
|
+
distPath: string;
|
|
4
|
+
}] | ["@tailor-platform/seed", {
|
|
5
|
+
distPath: string;
|
|
6
|
+
machineUserName?: string | undefined;
|
|
7
|
+
disableIdpUserSync?: {
|
|
8
|
+
userToIdp?: boolean | undefined;
|
|
9
|
+
idpToUser?: boolean | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}] | ["@tailor-platform/enum-constants", {
|
|
12
|
+
distPath: string;
|
|
13
|
+
}] | ["@tailor-platform/file-utils", {
|
|
14
|
+
distPath: string;
|
|
15
|
+
}] | {
|
|
16
|
+
id: string;
|
|
17
|
+
description: string;
|
|
18
|
+
dependencies: ("tailordb" | "resolver" | "executor")[];
|
|
19
|
+
aggregate: Function;
|
|
20
|
+
processType?: Function | undefined;
|
|
21
|
+
processResolver?: Function | undefined;
|
|
22
|
+
processExecutor?: Function | undefined;
|
|
23
|
+
processTailorDBNamespace?: Function | undefined;
|
|
24
|
+
processResolverNamespace?: Function | undefined;
|
|
25
|
+
};
|
|
26
|
+
type BaseGeneratorConfigInput = BaseGeneratorConfig;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { BaseGeneratorConfig, BaseGeneratorConfigInput };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/types/helpers.d.ts
|
|
2
|
+
type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
|
|
3
|
+
type TypeLevelError<Message extends string> = {
|
|
4
|
+
readonly $error: Message;
|
|
5
|
+
};
|
|
6
|
+
type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
|
|
7
|
+
type output<T> = T extends {
|
|
8
|
+
_output: infer U;
|
|
9
|
+
} ? DeepWritable<U> : never;
|
|
10
|
+
type NullableToOptional<T> = { [K in keyof T as null extends T[K] ? never : K]: T[K] } & { [K in keyof T as null extends T[K] ? K : never]?: T[K] };
|
|
11
|
+
type InferFieldsOutput<F extends Record<string, {
|
|
12
|
+
_output: any;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}>> = DeepWritable<Prettify<NullableToOptional<{ [K in keyof F]: output<F[K]> }>>>;
|
|
15
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
16
|
+
[key: string]: JsonValue;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A looser version of JsonValue that accepts interfaces.
|
|
20
|
+
* TypeScript interfaces don't have index signatures by default, so they can't
|
|
21
|
+
* be assigned to JsonValue's `{ [key: string]: JsonValue }`. This type uses a
|
|
22
|
+
* recursive structural check instead.
|
|
23
|
+
*
|
|
24
|
+
* Rejection rules:
|
|
25
|
+
* - Functions are rejected (top-level or as property values).
|
|
26
|
+
* - Objects with a `toJSON` method are rejected (can't faithfully round-trip).
|
|
27
|
+
* - Class instances that expose methods are rejected via the property walk
|
|
28
|
+
* (methods are function-typed properties, which resolve to `never`).
|
|
29
|
+
*
|
|
30
|
+
* Limitation: class instances whose declared type has only data properties
|
|
31
|
+
* (for example `Error`, or user-defined DTO classes) are structurally
|
|
32
|
+
* indistinguishable from plain objects and cannot be rejected here. The
|
|
33
|
+
* platform performs the authoritative check at runtime.
|
|
34
|
+
*/
|
|
35
|
+
type JsonCompatible<T> = T extends string | number | boolean | null | undefined ? T : T extends readonly (infer U)[] ? JsonCompatible<U>[] : T extends Function ? never : T extends object ? T extends {
|
|
36
|
+
toJSON: () => unknown;
|
|
37
|
+
} ? never : { [K in keyof T]: JsonCompatible<T[K]> } : never;
|
|
38
|
+
//#endregion
|
|
39
|
+
export { DeepWritable, InferFieldsOutput, JsonCompatible, JsonValue, NullableToOptional, Prettify, TypeLevelError, output };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/types/http-adapter.generated.d.ts
|
|
2
|
+
type HttpAdapterConfigInput = {
|
|
3
|
+
/** Unique adapter name within the domain */name: string; /** Path pattern with segment wildcards (trailing or single-segment) */
|
|
4
|
+
pathPattern: string; /** Per-method functions that transform HTTP requests to GraphQL requests */
|
|
5
|
+
input: {
|
|
6
|
+
get?: Function | undefined;
|
|
7
|
+
post?: Function | undefined;
|
|
8
|
+
put?: Function | undefined;
|
|
9
|
+
patch?: Function | undefined;
|
|
10
|
+
delete?: Function | undefined;
|
|
11
|
+
}; /** Whether the adapter is active */
|
|
12
|
+
enabled?: boolean | undefined; /** Matching priority; the lowest value wins when multiple adapters match */
|
|
13
|
+
priority?: number | undefined; /** Function that transforms GraphQL response to HTTP response */
|
|
14
|
+
output?: Function | undefined;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { HttpAdapterConfigInput };
|