@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
|
@@ -1,1348 +0,0 @@
|
|
|
1
|
-
import { c as TailorUser, i as InferredAttributeMap } from "./types-DTcZ2Yax.mjs";
|
|
2
|
-
import { A as Validators, E as FieldValidateInput, F as output, O as TailorFieldType, P as TypeLevelError, S as EnumValue, T as FieldOutput, a as Hooks, g as TailorDBType$1, h as TailorDBServiceInput, i as Hook, j as InferFieldsOutput, k as TailorToTs, l as RelationType, n as DefinedDBFieldMetadata, o as IndexDef, p as TailorDBField$1, r as ExcludeNestedDBFields, t as DBFieldMetadata, u as SerialConfig, v as TypeFeatures, w as FieldOptions } from "./types-rj8YJcEe.mjs";
|
|
3
|
-
import { b as BuiltinIdP, t as AuthConfig } from "./types-v_ErzNUF.mjs";
|
|
4
|
-
import { o as PluginConfigs } from "./types-aqnqTCfO.mjs";
|
|
5
|
-
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
|
-
|
|
7
|
-
//#region src/configure/types/field.d.ts
|
|
8
|
-
type AllowedValues = readonly [string | EnumValue, ...(string | EnumValue)[]];
|
|
9
|
-
type AllowedValuesOutput<V extends AllowedValues> = V[number] extends infer T ? T extends string ? T : T extends {
|
|
10
|
-
value: infer K;
|
|
11
|
-
} ? K : never : never;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/configure/services/tailordb/permission.d.ts
|
|
14
|
-
/**
|
|
15
|
-
* Record-level permission configuration for a TailorDB type.
|
|
16
|
-
* Defines create, read, update, and delete permissions.
|
|
17
|
-
*
|
|
18
|
-
* Prefer object format with explicit `conditions` and `permit` for readability.
|
|
19
|
-
* Shorthand array format is supported for compatibility, but less readable.
|
|
20
|
-
*
|
|
21
|
-
* For update operations, use `newRecord`/`oldRecord` operands instead of `record`.
|
|
22
|
-
* @example
|
|
23
|
-
* const permission: TailorTypePermission = {
|
|
24
|
-
* create: [{ conditions: [[{ user: "_loggedIn" }, "=", true]], permit: true }],
|
|
25
|
-
* read: [{ conditions: [[{ record: "isPublic" }, "=", true]], permit: true }],
|
|
26
|
-
* update: [{ conditions: [[{ newRecord: "ownerId" }, "=", { user: "id" }]], permit: true }],
|
|
27
|
-
* delete: [{ conditions: [[{ record: "ownerId" }, "=", { user: "id" }]], permit: true }],
|
|
28
|
-
* };
|
|
29
|
-
*/
|
|
30
|
-
type TailorTypePermission<User extends object = InferredAttributeMap, Type extends object = object> = {
|
|
31
|
-
create: readonly ActionPermission<"record", User, Type, false>[];
|
|
32
|
-
read: readonly ActionPermission<"record", User, Type, false>[];
|
|
33
|
-
update: readonly ActionPermission<"record", User, Type, true>[];
|
|
34
|
-
delete: readonly ActionPermission<"record", User, Type, false>[];
|
|
35
|
-
};
|
|
36
|
-
type ActionPermission<Level extends "record" | "gql" = "record" | "gql", User extends object = InferredAttributeMap, Type extends object = object, Update extends boolean = boolean> = {
|
|
37
|
-
conditions: PermissionCondition<Level, User, Update, Type> | readonly PermissionCondition<Level, User, Update, Type>[];
|
|
38
|
-
description?: string | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* Whether matching records are granted (`true`) or denied (`false`).
|
|
41
|
-
* Omitting `permit` in this object form defaults to `deny` and emits a
|
|
42
|
-
* warning; set it explicitly. (The array shorthand defaults to `allow`.)
|
|
43
|
-
*/
|
|
44
|
-
permit?: boolean;
|
|
45
|
-
} | readonly [...PermissionCondition<Level, User, Update, Type>, ...([] | [boolean])] | readonly [...PermissionCondition<Level, User, Update, Type>[], ...([] | [boolean])];
|
|
46
|
-
type TailorTypeGqlPermission<User extends object = InferredAttributeMap, Type extends object = object> = readonly GqlPermissionPolicy<User, Type>[];
|
|
47
|
-
type GqlPermissionPolicy<User extends object = InferredAttributeMap, Type extends object = object> = {
|
|
48
|
-
conditions: readonly PermissionCondition<"gql", User, boolean, Type>[];
|
|
49
|
-
actions: "all" | readonly GqlPermissionAction[];
|
|
50
|
-
/**
|
|
51
|
-
* Whether matching requests are granted (`true`) or denied (`false`).
|
|
52
|
-
* Omitting `permit` defaults to `deny` and emits a warning; set it explicitly.
|
|
53
|
-
*/
|
|
54
|
-
permit?: boolean;
|
|
55
|
-
description?: string;
|
|
56
|
-
};
|
|
57
|
-
type GqlPermissionAction = "read" | "create" | "update" | "delete" | "aggregate" | "bulkUpsert";
|
|
58
|
-
type EqualityOperator = "=" | "!=";
|
|
59
|
-
type ContainsOperator = "in" | "not in";
|
|
60
|
-
type HasAnyOperator = "hasAny" | "not hasAny";
|
|
61
|
-
type StringFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string ? K : never }[keyof User];
|
|
62
|
-
type StringArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends string[] ? K : never }[keyof User];
|
|
63
|
-
type BooleanFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean ? K : never }[keyof User];
|
|
64
|
-
type BooleanArrayFieldKeys<User extends object> = { [K in keyof User]: User[K] extends boolean[] ? K : never }[keyof User];
|
|
65
|
-
type UserStringOperand<User extends object = InferredAttributeMap> = {
|
|
66
|
-
user: StringFieldKeys<User> | "id";
|
|
67
|
-
};
|
|
68
|
-
type UserStringArrayOperand<User extends object = InferredAttributeMap> = {
|
|
69
|
-
user: StringArrayFieldKeys<User>;
|
|
70
|
-
};
|
|
71
|
-
type UserBooleanOperand<User extends object = InferredAttributeMap> = {
|
|
72
|
-
user: BooleanFieldKeys<User> | "_loggedIn";
|
|
73
|
-
};
|
|
74
|
-
type UserBooleanArrayOperand<User extends object = InferredAttributeMap> = {
|
|
75
|
-
user: BooleanArrayFieldKeys<User>;
|
|
76
|
-
};
|
|
77
|
-
type RecordOperand<Type extends object, Update extends boolean = false> = Update extends true ? {
|
|
78
|
-
oldRecord: (keyof Type & string) | "id";
|
|
79
|
-
} | {
|
|
80
|
-
newRecord: (keyof Type & string) | "id";
|
|
81
|
-
} : {
|
|
82
|
-
record: (keyof Type & string) | "id";
|
|
83
|
-
};
|
|
84
|
-
type StringEqualityCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = (Level extends "gql" ? readonly [string, EqualityOperator, boolean] : never) | readonly [string, EqualityOperator, string] | readonly [UserStringOperand<User>, EqualityOperator, string] | readonly [string, EqualityOperator, UserStringOperand<User>] | (Level extends "record" ? readonly [RecordOperand<Type, Update>, EqualityOperator, string | UserStringOperand<User>] | readonly [string | UserStringOperand<User>, EqualityOperator, RecordOperand<Type, Update>] : never);
|
|
85
|
-
type BooleanEqualityCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = readonly [boolean, EqualityOperator, boolean] | readonly [UserBooleanOperand<User>, EqualityOperator, boolean] | readonly [boolean, EqualityOperator, UserBooleanOperand<User>] | (Level extends "record" ? readonly [RecordOperand<Type, Update>, EqualityOperator, boolean | UserBooleanOperand<User>] | readonly [boolean | UserBooleanOperand<User>, EqualityOperator, RecordOperand<Type, Update>] : never);
|
|
86
|
-
type EqualityCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = StringEqualityCondition<Level, User, Update, Type> | BooleanEqualityCondition<Level, User, Update, Type>;
|
|
87
|
-
type StringContainsCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = readonly [string, ContainsOperator, string[]] | readonly [UserStringOperand<User>, ContainsOperator, string[]] | readonly [string, ContainsOperator, UserStringArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand<Type, Update>, ContainsOperator, string[] | UserStringArrayOperand<User>] | readonly [string | UserStringOperand<User>, ContainsOperator, RecordOperand<Type, Update>] : never);
|
|
88
|
-
type BooleanContainsCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = (Level extends "gql" ? readonly [string, ContainsOperator, boolean[]] : never) | readonly [boolean, ContainsOperator, boolean[]] | readonly [UserBooleanOperand<User>, ContainsOperator, boolean[]] | readonly [boolean, ContainsOperator, UserBooleanArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand<Type, Update>, ContainsOperator, boolean[] | UserBooleanArrayOperand<User>] | readonly [boolean | UserBooleanOperand<User>, ContainsOperator, RecordOperand<Type, Update>] : never);
|
|
89
|
-
type ContainsCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = StringContainsCondition<Level, User, Update, Type> | BooleanContainsCondition<Level, User, Update, Type>;
|
|
90
|
-
type HasAnyCondition<Level extends "record" | "gql", User extends object, Update extends boolean, Type extends object> = readonly [string[] | UserStringArrayOperand<User>, HasAnyOperator, string[] | UserStringArrayOperand<User>] | (Level extends "record" ? readonly [RecordOperand<Type, Update>, HasAnyOperator, string[] | UserStringArrayOperand<User>] | readonly [string[] | UserStringArrayOperand<User>, HasAnyOperator, RecordOperand<Type, Update>] : never);
|
|
91
|
-
/**
|
|
92
|
-
* Type representing a permission condition that combines user attributes, record fields, and literal values using comparison operators.
|
|
93
|
-
*
|
|
94
|
-
* The User type is extended by `tailor.d.ts`, which is automatically generated when running `tailor-sdk generate`.
|
|
95
|
-
* Attributes enabled in the config file's `auth.userProfile.attributes` (or
|
|
96
|
-
* `auth.machineUserAttributes` when userProfile is omitted) become available as types.
|
|
97
|
-
* @example
|
|
98
|
-
* ```ts
|
|
99
|
-
* // tailor.config.ts
|
|
100
|
-
* export const auth = defineAuth("my-auth", {
|
|
101
|
-
* userProfile: {
|
|
102
|
-
* type: user,
|
|
103
|
-
* attributes: {
|
|
104
|
-
* isAdmin: true,
|
|
105
|
-
* roles: true,
|
|
106
|
-
* }
|
|
107
|
-
* }
|
|
108
|
-
* });
|
|
109
|
-
* ```
|
|
110
|
-
*/
|
|
111
|
-
type PermissionCondition<Level extends "record" | "gql" = "record", User extends object = InferredAttributeMap, Update extends boolean = boolean, Type extends object = object> = EqualityCondition<Level, User, Update, Type> | ContainsCondition<Level, User, Update, Type> | HasAnyCondition<Level, User, Update, Type>;
|
|
112
|
-
/**
|
|
113
|
-
* Grants full record-level access without any conditions.
|
|
114
|
-
*
|
|
115
|
-
* Unsafe and intended only for local development, prototyping, or tests.
|
|
116
|
-
* Do not use this in production environments, as it effectively disables
|
|
117
|
-
* authorization checks.
|
|
118
|
-
*/
|
|
119
|
-
declare const unsafeAllowAllTypePermission: TailorTypePermission;
|
|
120
|
-
/**
|
|
121
|
-
* Grants full GraphQL access (all actions) without any conditions.
|
|
122
|
-
*
|
|
123
|
-
* Unsafe and intended only for local development, prototyping, or tests.
|
|
124
|
-
* Do not use this in production environments, as it effectively disables
|
|
125
|
-
* authorization checks.
|
|
126
|
-
*/
|
|
127
|
-
declare const unsafeAllowAllGqlPermission: TailorTypeGqlPermission;
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/configure/services/tailordb/schema.d.ts
|
|
130
|
-
type AnyBuilderMethod = any;
|
|
131
|
-
type TailorAnyDBField = Omit<TailorDBField$1<AnyBuilderMethod, AnyBuilderMethod>, "fields"> & {
|
|
132
|
-
readonly fields: Record<string, AnyBuilderMethod>;
|
|
133
|
-
_metadata: DBFieldMetadata;
|
|
134
|
-
parse: AnyBuilderMethod;
|
|
135
|
-
_parseInternal: AnyBuilderMethod;
|
|
136
|
-
readonly typeName: TypeLevelError<string>;
|
|
137
|
-
description: AnyBuilderMethod;
|
|
138
|
-
relation: AnyBuilderMethod;
|
|
139
|
-
index: AnyBuilderMethod;
|
|
140
|
-
unique: AnyBuilderMethod;
|
|
141
|
-
vector: AnyBuilderMethod;
|
|
142
|
-
hooks: AnyBuilderMethod;
|
|
143
|
-
validate: AnyBuilderMethod;
|
|
144
|
-
serial: AnyBuilderMethod;
|
|
145
|
-
clone: AnyBuilderMethod;
|
|
146
|
-
};
|
|
147
|
-
type TailorAnyDBType = TailorDBType<any, any>;
|
|
148
|
-
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
149
|
-
type DBFieldTypeNameMethod<Defined extends DefinedDBFieldMetadata> = IsAny<Defined> extends true ? TypeLevelError<string> : TypeLevelError<"typeName cannot be used on TailorDB fields">;
|
|
150
|
-
type WithDBFieldDescription<Defined> = Defined & {
|
|
151
|
-
description: true;
|
|
152
|
-
};
|
|
153
|
-
type WithDBFieldRelation<Defined, S extends RelationType | RelationSelfConfig> = S extends "oneToOne" | "1-1" ? Defined & {
|
|
154
|
-
unique: true;
|
|
155
|
-
index: true;
|
|
156
|
-
relation: true;
|
|
157
|
-
} : S extends {
|
|
158
|
-
type: "oneToOne" | "1-1";
|
|
159
|
-
} ? Defined & {
|
|
160
|
-
unique: true;
|
|
161
|
-
index: true;
|
|
162
|
-
relation: true;
|
|
163
|
-
} : Defined & {
|
|
164
|
-
index: true;
|
|
165
|
-
relation: true;
|
|
166
|
-
};
|
|
167
|
-
type WithDBFieldIndex<Defined> = Defined & {
|
|
168
|
-
index: true;
|
|
169
|
-
};
|
|
170
|
-
type WithDBFieldUnique<Defined> = Defined & {
|
|
171
|
-
unique: true;
|
|
172
|
-
index: true;
|
|
173
|
-
};
|
|
174
|
-
type WithDBFieldVector<Defined> = Defined & {
|
|
175
|
-
vector: true;
|
|
176
|
-
};
|
|
177
|
-
type WithDBFieldHooks<Defined, H> = Defined & {
|
|
178
|
-
hooks: {
|
|
179
|
-
create: H extends {
|
|
180
|
-
create: unknown;
|
|
181
|
-
} ? true : false;
|
|
182
|
-
update: H extends {
|
|
183
|
-
update: unknown;
|
|
184
|
-
} ? true : false;
|
|
185
|
-
};
|
|
186
|
-
serial: false;
|
|
187
|
-
};
|
|
188
|
-
type WithDBFieldValidate<Defined> = Defined & {
|
|
189
|
-
validate: true;
|
|
190
|
-
};
|
|
191
|
-
type WithDBFieldSerial<Defined> = Defined & {
|
|
192
|
-
serial: true;
|
|
193
|
-
hooks: {
|
|
194
|
-
create: false;
|
|
195
|
-
update: false;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
type WithDBFieldCloneOptions<Defined extends DefinedDBFieldMetadata, NewOpt extends FieldOptions> = Omit<Defined, "array"> & {
|
|
199
|
-
array: NewOpt extends {
|
|
200
|
-
array: true;
|
|
201
|
-
} ? true : Defined["array"];
|
|
202
|
-
};
|
|
203
|
-
type FileKeyConflictError<Fields extends Record<string, TailorAnyDBField>, User extends object> = Partial<Record<keyof output<TailorDBType<Fields, User>> & string, TypeLevelError<"file keys cannot use existing field names">>>;
|
|
204
|
-
type DBFieldDescriptionFn<Defined extends DefinedDBFieldMetadata, Output> = (description: string) => TailorDBField<WithDBFieldDescription<Defined>, Output>;
|
|
205
|
-
type DBFieldRelationFn<Defined extends DefinedDBFieldMetadata, Output> = {
|
|
206
|
-
<S extends RelationType, T extends TailorAnyDBType>(config: RelationConfig<S, T>): TailorDBField<WithDBFieldRelation<Defined, S>, Output>;
|
|
207
|
-
<S extends RelationSelfConfig>(config: S): TailorDBField<WithDBFieldRelation<Defined, S>, Output>;
|
|
208
|
-
};
|
|
209
|
-
type DBFieldIndexFn<Defined extends DefinedDBFieldMetadata, Output> = () => TailorDBField<WithDBFieldIndex<Defined>, Output>;
|
|
210
|
-
type DBFieldUniqueFn<Defined extends DefinedDBFieldMetadata, Output> = () => TailorDBField<WithDBFieldUnique<Defined>, Output>;
|
|
211
|
-
type DBFieldVectorFn<Defined extends DefinedDBFieldMetadata, Output> = () => TailorDBField<WithDBFieldVector<Defined>, Output>;
|
|
212
|
-
type DBFieldHooksFn<Defined extends DefinedDBFieldMetadata, Output> = <const H extends Hook<unknown, Output>>(hooks: H) => TailorDBField<WithDBFieldHooks<Defined, H>, Output>;
|
|
213
|
-
type DBFieldValidateFn<Defined extends DefinedDBFieldMetadata, Output> = (...validate: FieldValidateInput<Output>[]) => TailorDBField<WithDBFieldValidate<Defined>, Output>;
|
|
214
|
-
type DBFieldSerialFn<Defined extends DefinedDBFieldMetadata, Output> = (config: SerialConfig<Defined["type"] & ("integer" | "string")>) => TailorDBField<WithDBFieldSerial<Defined>, Output>;
|
|
215
|
-
type DBFieldDescriptionMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldDescriptionFn<Defined, Output> : Defined extends {
|
|
216
|
-
description: unknown;
|
|
217
|
-
} ? TypeLevelError<".description() has already been set"> : DBFieldDescriptionFn<Defined, Output>;
|
|
218
|
-
type DBFieldRelationMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldRelationFn<Defined, Output> : Defined extends {
|
|
219
|
-
relation: unknown;
|
|
220
|
-
} ? TypeLevelError<".relation() has already been set"> : DBFieldRelationFn<Defined, Output>;
|
|
221
|
-
type DBFieldIndexMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldIndexFn<Defined, Output> : Defined extends {
|
|
222
|
-
index: unknown;
|
|
223
|
-
} ? TypeLevelError<".index() has already been set"> : Defined extends {
|
|
224
|
-
array: true;
|
|
225
|
-
} ? TypeLevelError<"index cannot be set on array fields"> : DBFieldIndexFn<Defined, Output>;
|
|
226
|
-
type DBFieldUniqueMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldUniqueFn<Defined, Output> : Defined extends {
|
|
227
|
-
unique: unknown;
|
|
228
|
-
} ? TypeLevelError<".unique() has already been set"> : Defined extends {
|
|
229
|
-
array: true;
|
|
230
|
-
} ? TypeLevelError<"unique cannot be set on array fields"> : DBFieldUniqueFn<Defined, Output>;
|
|
231
|
-
type DBFieldVectorMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldVectorFn<Defined, Output> : Defined extends {
|
|
232
|
-
vector: unknown;
|
|
233
|
-
} ? TypeLevelError<".vector() has already been set"> : Defined extends {
|
|
234
|
-
type: "string";
|
|
235
|
-
array: false;
|
|
236
|
-
} ? DBFieldVectorFn<Defined, Output> : TypeLevelError<"vector can only be set on non-array string fields">;
|
|
237
|
-
type DBFieldHooksMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldHooksFn<Defined, Output> : Defined extends {
|
|
238
|
-
serial: true;
|
|
239
|
-
hooks: {
|
|
240
|
-
create: false;
|
|
241
|
-
update: false;
|
|
242
|
-
};
|
|
243
|
-
} ? TypeLevelError<"hooks cannot be set after serial"> : Defined extends {
|
|
244
|
-
hooks: unknown;
|
|
245
|
-
} ? TypeLevelError<".hooks() has already been set"> : Defined extends {
|
|
246
|
-
type: "nested";
|
|
247
|
-
} ? TypeLevelError<"hooks cannot be set on nested type fields"> : DBFieldHooksFn<Defined, Output>;
|
|
248
|
-
type DBFieldValidateMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldValidateFn<Defined, Output> : Defined extends {
|
|
249
|
-
validate: unknown;
|
|
250
|
-
} ? TypeLevelError<".validate() has already been set"> : DBFieldValidateFn<Defined, Output>;
|
|
251
|
-
type DBFieldSerialMethod<Defined extends DefinedDBFieldMetadata, Output> = IsAny<Defined> extends true ? DBFieldSerialFn<Defined, Output> : Defined extends {
|
|
252
|
-
serial: true;
|
|
253
|
-
} ? TypeLevelError<".serial() has already been set"> : Defined extends {
|
|
254
|
-
serial: false;
|
|
255
|
-
} ? TypeLevelError<"serial cannot be set after hooks"> : IsAny<Output> extends true ? Defined extends {
|
|
256
|
-
type: "integer" | "string";
|
|
257
|
-
array: false;
|
|
258
|
-
} ? DBFieldSerialFn<Defined, Output> : TypeLevelError<"serial can only be set on non-array integer or string fields"> : null extends Output ? TypeLevelError<"serial can only be set on non-array integer or string fields"> : Defined extends {
|
|
259
|
-
type: "integer" | "string";
|
|
260
|
-
array: false;
|
|
261
|
-
} ? DBFieldSerialFn<Defined, Output> : TypeLevelError<"serial can only be set on non-array integer or string fields">;
|
|
262
|
-
/**
|
|
263
|
-
* Full TailorDBField interface with builder methods.
|
|
264
|
-
* Extends the minimal structural interface from types/ with fluent API methods.
|
|
265
|
-
*/
|
|
266
|
-
interface TailorDBField<Defined extends DefinedDBFieldMetadata = DefinedDBFieldMetadata, Output = any> extends Omit<TailorDBField$1<Defined, Output>, "fields"> {
|
|
267
|
-
readonly fields: Record<string, TailorAnyDBField>;
|
|
268
|
-
_metadata: DBFieldMetadata;
|
|
269
|
-
/**
|
|
270
|
-
* Parse and validate a value against this field's validation rules
|
|
271
|
-
*/
|
|
272
|
-
parse(args: FieldParseArgs): StandardSchemaV1.Result<Output>;
|
|
273
|
-
/**
|
|
274
|
-
* Internal parse method that tracks field path for nested validation
|
|
275
|
-
* @private
|
|
276
|
-
*/
|
|
277
|
-
_parseInternal(args: FieldParseInternalArgs): StandardSchemaV1.Result<Output>;
|
|
278
|
-
/**
|
|
279
|
-
* typeName is not available on TailorDB fields.
|
|
280
|
-
* Use typeName on pipeline fields (t.enum / t.object) instead.
|
|
281
|
-
*/
|
|
282
|
-
typeName: DBFieldTypeNameMethod<Defined>;
|
|
283
|
-
/**
|
|
284
|
-
* Set a description for the field
|
|
285
|
-
*/
|
|
286
|
-
description: DBFieldDescriptionMethod<Defined, Output>;
|
|
287
|
-
/**
|
|
288
|
-
* Define a relation to another type.
|
|
289
|
-
*/
|
|
290
|
-
relation: DBFieldRelationMethod<Defined, Output>;
|
|
291
|
-
/**
|
|
292
|
-
* Add an index to the field
|
|
293
|
-
*/
|
|
294
|
-
index: DBFieldIndexMethod<Defined, Output>;
|
|
295
|
-
/**
|
|
296
|
-
* Make the field unique (also adds an index)
|
|
297
|
-
*/
|
|
298
|
-
unique: DBFieldUniqueMethod<Defined, Output>;
|
|
299
|
-
/**
|
|
300
|
-
* Enable vector search on the field (string type only)
|
|
301
|
-
*/
|
|
302
|
-
vector: DBFieldVectorMethod<Defined, Output>;
|
|
303
|
-
/**
|
|
304
|
-
* Add hooks for create/update operations on this field.
|
|
305
|
-
*/
|
|
306
|
-
hooks: DBFieldHooksMethod<Defined, Output>;
|
|
307
|
-
/**
|
|
308
|
-
* Add validation functions to the field.
|
|
309
|
-
*/
|
|
310
|
-
validate: DBFieldValidateMethod<Defined, Output>;
|
|
311
|
-
/**
|
|
312
|
-
* Configure serial/auto-increment behavior
|
|
313
|
-
*/
|
|
314
|
-
serial: DBFieldSerialMethod<Defined, Output>;
|
|
315
|
-
/**
|
|
316
|
-
* Clone the field with optional overrides for field options
|
|
317
|
-
*/
|
|
318
|
-
clone<const NewOpt extends FieldOptions>(options?: NewOpt): TailorDBField<WithDBFieldCloneOptions<Defined, NewOpt>, FieldOutput<TailorToTs[Defined["type"]], NewOpt>>;
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Full TailorDBType interface with builder methods.
|
|
322
|
-
* Extends the minimal structural interface from types/ with fluent API methods.
|
|
323
|
-
*/
|
|
324
|
-
interface TailorDBType<Fields extends Record<string, TailorAnyDBField> = any, User extends object = InferredAttributeMap> extends TailorDBType$1<Fields, User> {
|
|
325
|
-
_description?: string;
|
|
326
|
-
hooks(hooks: Hooks<Fields>): TailorDBType<Fields, User>;
|
|
327
|
-
validate(validators: Validators<Fields>): TailorDBType<Fields, User>;
|
|
328
|
-
features(features: Omit<TypeFeatures, "pluralForm">): TailorDBType<Fields, User>;
|
|
329
|
-
indexes(...indexes: IndexDef<TailorDBType<Fields, User>>[]): TailorDBType<Fields, User>;
|
|
330
|
-
files<const F extends string>(files: Record<F, string> & FileKeyConflictError<Fields, User>): TailorDBType<Fields, User>;
|
|
331
|
-
permission<U extends object = User, P extends TailorTypePermission<U, output<TailorDBType<Fields, User>>> = TailorTypePermission<U, output<TailorDBType<Fields, User>>>>(permission: P): TailorDBType<Fields, U>;
|
|
332
|
-
gqlPermission<U extends object = User, P extends TailorTypeGqlPermission<U> = TailorTypeGqlPermission<U>>(permission: P): TailorDBType<Fields, U>;
|
|
333
|
-
description(description: string): TailorDBType<Fields, User>;
|
|
334
|
-
pickFields<K extends keyof Fields>(keys: K[]): Pick<Fields, K>;
|
|
335
|
-
pickFields<K extends keyof Fields, const Opt extends FieldOptions>(keys: K[], options: Opt): { [P in K]: Fields[P] extends TailorDBField<infer D, infer _O> ? TailorDBField<Omit<D, "array"> & {
|
|
336
|
-
array: Opt extends {
|
|
337
|
-
array: true;
|
|
338
|
-
} ? true : D["array"];
|
|
339
|
-
}, FieldOutput<TailorToTs[D["type"]], Opt>> : never };
|
|
340
|
-
omitFields<K extends keyof Fields>(keys: K[]): Omit<Fields, K>;
|
|
341
|
-
plugin<P extends keyof PluginConfigs<keyof Fields & string>>(config: { [K in P]: PluginConfigs<keyof Fields & string>[K] }): TailorDBType<Fields, User>;
|
|
342
|
-
}
|
|
343
|
-
type TailorDBInstance<Fields extends Record<string, TailorAnyDBField> = any, User extends object = InferredAttributeMap> = TailorDBType<Fields, User>;
|
|
344
|
-
interface RelationConfig<S extends RelationType, T extends TailorDBType> {
|
|
345
|
-
type: S;
|
|
346
|
-
toward: {
|
|
347
|
-
type: T;
|
|
348
|
-
as?: string;
|
|
349
|
-
key?: keyof T["fields"] & string;
|
|
350
|
-
};
|
|
351
|
-
backward?: string;
|
|
352
|
-
}
|
|
353
|
-
type RelationSelfConfig = {
|
|
354
|
-
type: RelationType;
|
|
355
|
-
toward: {
|
|
356
|
-
type: "self";
|
|
357
|
-
as?: string;
|
|
358
|
-
key?: string;
|
|
359
|
-
};
|
|
360
|
-
backward?: string;
|
|
361
|
-
};
|
|
362
|
-
type FieldParseArgs = {
|
|
363
|
-
value: unknown;
|
|
364
|
-
data: unknown;
|
|
365
|
-
user: TailorUser;
|
|
366
|
-
};
|
|
367
|
-
type FieldParseInternalArgs = {
|
|
368
|
-
value: any;
|
|
369
|
-
data: unknown;
|
|
370
|
-
user: TailorUser;
|
|
371
|
-
pathArray: string[];
|
|
372
|
-
};
|
|
373
|
-
type DBFieldDefined<T extends TailorFieldType, Opt extends FieldOptions> = {
|
|
374
|
-
type: T;
|
|
375
|
-
array: Opt extends {
|
|
376
|
-
array: true;
|
|
377
|
-
} ? true : false;
|
|
378
|
-
};
|
|
379
|
-
type DBFieldOutput<T extends TailorFieldType, Opt extends FieldOptions, OutputBase = TailorToTs[T]> = FieldOutput<OutputBase, Opt>;
|
|
380
|
-
type TailorDBFieldInstance<T extends TailorFieldType, Opt extends FieldOptions, OutputBase = TailorToTs[T]> = TailorDBField<DBFieldDefined<T, Opt>, DBFieldOutput<T, Opt, OutputBase>>;
|
|
381
|
-
/**
|
|
382
|
-
* Create a UUID field.
|
|
383
|
-
* @param options - Field configuration options
|
|
384
|
-
* @returns A UUID field
|
|
385
|
-
* @example db.uuid()
|
|
386
|
-
* @example db.uuid({ optional: true })
|
|
387
|
-
*/
|
|
388
|
-
declare function uuid<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"uuid", Opt, string>;
|
|
389
|
-
/**
|
|
390
|
-
* Create a string field.
|
|
391
|
-
* @param options - Field configuration options
|
|
392
|
-
* @returns A string field
|
|
393
|
-
* @example db.string()
|
|
394
|
-
* @example db.string({ optional: true })
|
|
395
|
-
*/
|
|
396
|
-
declare function string<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"string", Opt, string>;
|
|
397
|
-
/**
|
|
398
|
-
* Create a boolean field.
|
|
399
|
-
* Note: The method name is `bool` but creates a `boolean` type field.
|
|
400
|
-
* @param options - Field configuration options
|
|
401
|
-
* @returns A boolean field
|
|
402
|
-
* @example db.bool()
|
|
403
|
-
* @example db.bool({ optional: true })
|
|
404
|
-
*/
|
|
405
|
-
declare function bool<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"boolean", Opt, boolean>;
|
|
406
|
-
/**
|
|
407
|
-
* Create an integer field.
|
|
408
|
-
* @param options - Field configuration options
|
|
409
|
-
* @returns An integer field
|
|
410
|
-
* @example db.int()
|
|
411
|
-
* @example db.int({ optional: true })
|
|
412
|
-
*/
|
|
413
|
-
declare function int<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"integer", Opt, number>;
|
|
414
|
-
/**
|
|
415
|
-
* Create a float (decimal number) field.
|
|
416
|
-
* @param options - Field configuration options
|
|
417
|
-
* @returns A float field
|
|
418
|
-
* @example db.float()
|
|
419
|
-
* @example db.float({ optional: true })
|
|
420
|
-
*/
|
|
421
|
-
declare function float<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"float", Opt, number>;
|
|
422
|
-
interface DecimalFieldOptions extends FieldOptions {
|
|
423
|
-
scale?: number;
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* Create a decimal field (stored as string for precision).
|
|
427
|
-
* @param options - Field configuration options including optional scale (0-12)
|
|
428
|
-
* @returns A decimal field
|
|
429
|
-
* @example db.decimal()
|
|
430
|
-
* @example db.decimal({ scale: 2 })
|
|
431
|
-
* @example db.decimal({ scale: 2, optional: true })
|
|
432
|
-
*/
|
|
433
|
-
declare function decimal<const Opt extends DecimalFieldOptions>(options?: Opt): TailorDBFieldInstance<"decimal", Opt, string>;
|
|
434
|
-
/**
|
|
435
|
-
* Create a date field (date only, no time component).
|
|
436
|
-
* Format: "yyyy-MM-dd"
|
|
437
|
-
* @param options - Field configuration options
|
|
438
|
-
* @returns A date field
|
|
439
|
-
* @example db.date()
|
|
440
|
-
*/
|
|
441
|
-
declare function date<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"date", Opt, string>;
|
|
442
|
-
/**
|
|
443
|
-
* Create a datetime field (date and time).
|
|
444
|
-
* Format: ISO 8601 "yyyy-MM-ddTHH:mm:ssZ"
|
|
445
|
-
* @param options - Field configuration options
|
|
446
|
-
* @returns A datetime field
|
|
447
|
-
* @example db.datetime()
|
|
448
|
-
*/
|
|
449
|
-
declare function datetime<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"datetime", Opt, string | Date>;
|
|
450
|
-
/**
|
|
451
|
-
* Create a time field (time only, no date component).
|
|
452
|
-
* Format: "HH:mm"
|
|
453
|
-
* @param options - Field configuration options
|
|
454
|
-
* @returns A time field
|
|
455
|
-
* @example db.time()
|
|
456
|
-
*/
|
|
457
|
-
declare function time<const Opt extends FieldOptions>(options?: Opt): TailorDBFieldInstance<"time", Opt, string>;
|
|
458
|
-
/**
|
|
459
|
-
* Create an enum field with a fixed set of allowed string values.
|
|
460
|
-
* @param values - Array of allowed string values, or array of `{ value, description }` objects
|
|
461
|
-
* @param options - Field configuration options
|
|
462
|
-
* @returns An enum field
|
|
463
|
-
* @example db.enum(["active", "inactive", "suspended"])
|
|
464
|
-
* @example db.enum(["small", "medium", "large"], { optional: true })
|
|
465
|
-
*/
|
|
466
|
-
declare function _enum<const V extends AllowedValues, const Opt extends FieldOptions>(values: V, options?: Opt): TailorDBField<{
|
|
467
|
-
type: "enum";
|
|
468
|
-
array: Opt extends {
|
|
469
|
-
array: true;
|
|
470
|
-
} ? true : false;
|
|
471
|
-
}, FieldOutput<AllowedValuesOutput<V>, Opt>>;
|
|
472
|
-
/**
|
|
473
|
-
* Create a nested object field with sub-fields.
|
|
474
|
-
* @param fields - Record of nested field definitions
|
|
475
|
-
* @param options - Field configuration options
|
|
476
|
-
* @returns A nested object field
|
|
477
|
-
* @example db.object({ street: db.string(), city: db.string(), zip: db.string() })
|
|
478
|
-
* @example db.object({ name: db.string() }, { optional: true })
|
|
479
|
-
*/
|
|
480
|
-
declare function object<const F extends Record<string, TailorAnyDBField> & ExcludeNestedDBFields<F>, const Opt extends FieldOptions>(fields: F, options?: Opt): TailorDBField<{
|
|
481
|
-
type: "nested";
|
|
482
|
-
array: Opt extends {
|
|
483
|
-
array: true;
|
|
484
|
-
} ? true : false;
|
|
485
|
-
}, FieldOutput<InferFieldsOutput<F>, Opt>>;
|
|
486
|
-
declare const idField: TailorDBFieldInstance<"uuid", FieldOptions, string>;
|
|
487
|
-
type idField = typeof idField;
|
|
488
|
-
type DBType<F extends {
|
|
489
|
-
id?: never;
|
|
490
|
-
} & Record<string, TailorAnyDBField>> = TailorDBInstance<{
|
|
491
|
-
id: idField;
|
|
492
|
-
} & F>;
|
|
493
|
-
/**
|
|
494
|
-
* Creates a new database type with the specified fields.
|
|
495
|
-
* An `id` field (UUID) is automatically added to every type.
|
|
496
|
-
* @param name - The name of the type, or a tuple of [name, pluralForm]
|
|
497
|
-
* @param fields - The field definitions for the type
|
|
498
|
-
* @returns A new TailorDBType instance
|
|
499
|
-
* @example
|
|
500
|
-
* export const user = db.type("User", {
|
|
501
|
-
* name: db.string(),
|
|
502
|
-
* email: db.string(),
|
|
503
|
-
* age: db.int({ optional: true }),
|
|
504
|
-
* role: db.enum(["admin", "member"]),
|
|
505
|
-
* ...db.fields.timestamps(),
|
|
506
|
-
* });
|
|
507
|
-
* // Always export both the value and type:
|
|
508
|
-
* export type user = typeof user;
|
|
509
|
-
*/
|
|
510
|
-
declare function dbType<const F extends {
|
|
511
|
-
id?: never;
|
|
512
|
-
} & Record<string, TailorAnyDBField>>(name: string | [string, string], fields: F): DBType<F>;
|
|
513
|
-
/**
|
|
514
|
-
* Creates a new database type with the specified fields and description.
|
|
515
|
-
* An `id` field (UUID) is automatically added to every type.
|
|
516
|
-
* @param name - The name of the type, or a tuple of [name, pluralForm]
|
|
517
|
-
* @param description - A description of the type
|
|
518
|
-
* @param fields - The field definitions for the type
|
|
519
|
-
* @returns A new TailorDBType instance
|
|
520
|
-
*/
|
|
521
|
-
declare function dbType<const F extends {
|
|
522
|
-
id?: never;
|
|
523
|
-
} & Record<string, TailorAnyDBField>>(name: string | [string, string], description: string, fields: F): DBType<F>;
|
|
524
|
-
/** TailorDB schema builder utilities for defining types and fields. */
|
|
525
|
-
declare const db: {
|
|
526
|
-
type: typeof dbType;
|
|
527
|
-
uuid: typeof uuid;
|
|
528
|
-
string: typeof string;
|
|
529
|
-
bool: typeof bool;
|
|
530
|
-
int: typeof int;
|
|
531
|
-
float: typeof float;
|
|
532
|
-
decimal: typeof decimal;
|
|
533
|
-
date: typeof date;
|
|
534
|
-
datetime: typeof datetime;
|
|
535
|
-
time: typeof time;
|
|
536
|
-
enum: typeof _enum;
|
|
537
|
-
object: typeof object;
|
|
538
|
-
fields: {
|
|
539
|
-
/**
|
|
540
|
-
* Creates standard timestamp fields (createdAt, updatedAt) with auto-hooks.
|
|
541
|
-
* createdAt is set on create, updatedAt is set on update.
|
|
542
|
-
* A user-specified createdAt is respected when provided (e.g. seeding historical
|
|
543
|
-
* records); the current time is used only when the value is omitted.
|
|
544
|
-
* @returns An object with createdAt and updatedAt fields
|
|
545
|
-
* @example
|
|
546
|
-
* const model = db.type("Model", {
|
|
547
|
-
* name: db.string(),
|
|
548
|
-
* ...db.fields.timestamps(),
|
|
549
|
-
* });
|
|
550
|
-
*/
|
|
551
|
-
timestamps: () => {
|
|
552
|
-
createdAt: TailorDBField<WithDBFieldDescription<WithDBFieldHooks<DBFieldDefined<"datetime", FieldOptions>, {
|
|
553
|
-
readonly create: ({
|
|
554
|
-
value
|
|
555
|
-
}: {
|
|
556
|
-
value: string | Date | null;
|
|
557
|
-
data: unknown;
|
|
558
|
-
user: TailorUser;
|
|
559
|
-
}) => string | Date;
|
|
560
|
-
}>>, string | Date>;
|
|
561
|
-
updatedAt: TailorDBField<WithDBFieldDescription<WithDBFieldHooks<DBFieldDefined<"datetime", {
|
|
562
|
-
readonly optional: true;
|
|
563
|
-
}>, {
|
|
564
|
-
readonly update: () => Date;
|
|
565
|
-
}>>, string | Date | null>;
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
};
|
|
569
|
-
//#endregion
|
|
570
|
-
//#region src/types/aigateway.generated.d.ts
|
|
571
|
-
type AIGateway = {
|
|
572
|
-
/** AI Gateway name */name: string; /** Auth namespace used to resolve request tokens against the workspace's auth */
|
|
573
|
-
authNamespace: string; /** Allowed CORS origins for browser-based clients. Each entry is `*`, `http(s)://*`, `http(s)://*.example.com`, or `http(s)://app.example.com`, optionally with `:port`. Empty list disables cross-origin access. */
|
|
574
|
-
cors?: string[] | undefined;
|
|
575
|
-
};
|
|
576
|
-
type AIGatewayInput = AIGateway;
|
|
577
|
-
//#endregion
|
|
578
|
-
//#region src/configure/services/aigateway/types.d.ts
|
|
579
|
-
declare const aiGatewayDefinitionBrand: unique symbol;
|
|
580
|
-
type AIGatewayDefinitionBrand = {
|
|
581
|
-
readonly [aiGatewayDefinitionBrand]: true;
|
|
582
|
-
};
|
|
583
|
-
/** Type accepted by `AppConfig.aiGateways`. Only values returned by `defineAIGateway()` satisfy this. */
|
|
584
|
-
type AIGatewayConfig = AIGatewayInput & AIGatewayDefinitionBrand;
|
|
585
|
-
//#endregion
|
|
586
|
-
//#region src/types/idp.generated.d.ts
|
|
587
|
-
/**
|
|
588
|
-
* Configuration for GraphQL operations on IdP users.
|
|
589
|
-
* All operations are enabled by default (undefined or true = enabled, false = disabled).
|
|
590
|
-
*/
|
|
591
|
-
type IdPGqlOperationsInput = "query" | {
|
|
592
|
-
create?: boolean | undefined;
|
|
593
|
-
update?: boolean | undefined;
|
|
594
|
-
delete?: boolean | undefined;
|
|
595
|
-
read?: boolean | undefined;
|
|
596
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
597
|
-
requestMfaSettingsUrl?: boolean | undefined;
|
|
598
|
-
unenrollMfa?: boolean | undefined;
|
|
599
|
-
};
|
|
600
|
-
type IdPGqlOperations = {
|
|
601
|
-
create?: boolean | undefined;
|
|
602
|
-
update?: boolean | undefined;
|
|
603
|
-
delete?: boolean | undefined;
|
|
604
|
-
read?: boolean | undefined;
|
|
605
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
606
|
-
requestMfaSettingsUrl?: boolean | undefined;
|
|
607
|
-
unenrollMfa?: boolean | undefined;
|
|
608
|
-
};
|
|
609
|
-
/**
|
|
610
|
-
* Namespace-level email configuration defaults
|
|
611
|
-
*/
|
|
612
|
-
type IdPEmailConfig = {
|
|
613
|
-
/** Default sender display name for emails */fromName?: string | undefined; /** Default subject for password reset emails */
|
|
614
|
-
passwordResetSubject?: string | undefined;
|
|
615
|
-
};
|
|
616
|
-
type IdPInput = {
|
|
617
|
-
/** IdP service name */name: string; /** OAuth2 client names that can use this IdP */
|
|
618
|
-
clients: string[]; /** Authorization mode for IdP API access */
|
|
619
|
-
authorization?: "insecure" | "loggedIn" | {
|
|
620
|
-
cel: string;
|
|
621
|
-
} | undefined; /** UI language for IdP pages */
|
|
622
|
-
lang?: "en" | "ja" | undefined; /** User authentication policy configuration */
|
|
623
|
-
userAuthPolicy?: {
|
|
624
|
-
useNonEmailIdentifier?: boolean | undefined;
|
|
625
|
-
allowSelfPasswordReset?: boolean | undefined;
|
|
626
|
-
passwordRequireUppercase?: boolean | undefined;
|
|
627
|
-
passwordRequireLowercase?: boolean | undefined;
|
|
628
|
-
passwordRequireNonAlphanumeric?: boolean | undefined;
|
|
629
|
-
passwordRequireNumeric?: boolean | undefined;
|
|
630
|
-
passwordMinLength?: number | undefined;
|
|
631
|
-
passwordMaxLength?: number | undefined;
|
|
632
|
-
allowedEmailDomains?: string[] | undefined;
|
|
633
|
-
allowGoogleOauth?: boolean | undefined;
|
|
634
|
-
allowMicrosoftOauth?: boolean | undefined;
|
|
635
|
-
disablePasswordAuth?: boolean | undefined;
|
|
636
|
-
enableMfa?: boolean | undefined;
|
|
637
|
-
requireMfa?: boolean | undefined;
|
|
638
|
-
allowedReturnOrigins?: string[] | undefined;
|
|
639
|
-
mfaIssuer?: string | undefined;
|
|
640
|
-
} | undefined; /** Enable publishing user lifecycle events */
|
|
641
|
-
publishUserEvents?: boolean | undefined; /** Configure which GraphQL operations are enabled */
|
|
642
|
-
gqlOperations?: "query" | {
|
|
643
|
-
create?: boolean | undefined;
|
|
644
|
-
update?: boolean | undefined;
|
|
645
|
-
delete?: boolean | undefined;
|
|
646
|
-
read?: boolean | undefined;
|
|
647
|
-
sendPasswordResetEmail?: boolean | undefined;
|
|
648
|
-
requestMfaSettingsUrl?: boolean | undefined;
|
|
649
|
-
unenrollMfa?: boolean | undefined;
|
|
650
|
-
} | undefined; /** Namespace-level email configuration defaults */
|
|
651
|
-
emailConfig?: {
|
|
652
|
-
fromName?: string | undefined;
|
|
653
|
-
passwordResetSubject?: string | undefined;
|
|
654
|
-
} | undefined; /** Per-operation permission policies for IdP users */
|
|
655
|
-
permission?: {
|
|
656
|
-
create: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
657
|
-
user: string;
|
|
658
|
-
} | {
|
|
659
|
-
idpUser: "name" | "id" | "disabled";
|
|
660
|
-
} | {
|
|
661
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
662
|
-
} | {
|
|
663
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
664
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
665
|
-
user: string;
|
|
666
|
-
} | {
|
|
667
|
-
idpUser: "name" | "id" | "disabled";
|
|
668
|
-
} | {
|
|
669
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
670
|
-
} | {
|
|
671
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
672
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
673
|
-
user: string;
|
|
674
|
-
} | {
|
|
675
|
-
idpUser: "name" | "id" | "disabled";
|
|
676
|
-
} | {
|
|
677
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
678
|
-
} | {
|
|
679
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
680
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
681
|
-
user: string;
|
|
682
|
-
} | {
|
|
683
|
-
idpUser: "name" | "id" | "disabled";
|
|
684
|
-
} | {
|
|
685
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
686
|
-
} | {
|
|
687
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
688
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
689
|
-
user: string;
|
|
690
|
-
} | {
|
|
691
|
-
idpUser: "name" | "id" | "disabled";
|
|
692
|
-
} | {
|
|
693
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
694
|
-
} | {
|
|
695
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
696
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
697
|
-
user: string;
|
|
698
|
-
} | {
|
|
699
|
-
idpUser: "name" | "id" | "disabled";
|
|
700
|
-
} | {
|
|
701
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
702
|
-
} | {
|
|
703
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
704
|
-
})])[] | {
|
|
705
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
706
|
-
user: string;
|
|
707
|
-
} | {
|
|
708
|
-
idpUser: "name" | "id" | "disabled";
|
|
709
|
-
} | {
|
|
710
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
711
|
-
} | {
|
|
712
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
713
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
714
|
-
user: string;
|
|
715
|
-
} | {
|
|
716
|
-
idpUser: "name" | "id" | "disabled";
|
|
717
|
-
} | {
|
|
718
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
719
|
-
} | {
|
|
720
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
721
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
722
|
-
user: string;
|
|
723
|
-
} | {
|
|
724
|
-
idpUser: "name" | "id" | "disabled";
|
|
725
|
-
} | {
|
|
726
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
727
|
-
} | {
|
|
728
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
729
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
730
|
-
user: string;
|
|
731
|
-
} | {
|
|
732
|
-
idpUser: "name" | "id" | "disabled";
|
|
733
|
-
} | {
|
|
734
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
735
|
-
} | {
|
|
736
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
737
|
-
})])[];
|
|
738
|
-
description?: string | undefined;
|
|
739
|
-
permit?: boolean | undefined;
|
|
740
|
-
})[];
|
|
741
|
-
read: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
742
|
-
user: string;
|
|
743
|
-
} | {
|
|
744
|
-
idpUser: "name" | "id" | "disabled";
|
|
745
|
-
} | {
|
|
746
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
747
|
-
} | {
|
|
748
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
749
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
750
|
-
user: string;
|
|
751
|
-
} | {
|
|
752
|
-
idpUser: "name" | "id" | "disabled";
|
|
753
|
-
} | {
|
|
754
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
755
|
-
} | {
|
|
756
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
757
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
758
|
-
user: string;
|
|
759
|
-
} | {
|
|
760
|
-
idpUser: "name" | "id" | "disabled";
|
|
761
|
-
} | {
|
|
762
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
763
|
-
} | {
|
|
764
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
765
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
766
|
-
user: string;
|
|
767
|
-
} | {
|
|
768
|
-
idpUser: "name" | "id" | "disabled";
|
|
769
|
-
} | {
|
|
770
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
771
|
-
} | {
|
|
772
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
773
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
774
|
-
user: string;
|
|
775
|
-
} | {
|
|
776
|
-
idpUser: "name" | "id" | "disabled";
|
|
777
|
-
} | {
|
|
778
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
779
|
-
} | {
|
|
780
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
781
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
782
|
-
user: string;
|
|
783
|
-
} | {
|
|
784
|
-
idpUser: "name" | "id" | "disabled";
|
|
785
|
-
} | {
|
|
786
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
787
|
-
} | {
|
|
788
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
789
|
-
})])[] | {
|
|
790
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
791
|
-
user: string;
|
|
792
|
-
} | {
|
|
793
|
-
idpUser: "name" | "id" | "disabled";
|
|
794
|
-
} | {
|
|
795
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
796
|
-
} | {
|
|
797
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
798
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
799
|
-
user: string;
|
|
800
|
-
} | {
|
|
801
|
-
idpUser: "name" | "id" | "disabled";
|
|
802
|
-
} | {
|
|
803
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
804
|
-
} | {
|
|
805
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
806
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
807
|
-
user: string;
|
|
808
|
-
} | {
|
|
809
|
-
idpUser: "name" | "id" | "disabled";
|
|
810
|
-
} | {
|
|
811
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
812
|
-
} | {
|
|
813
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
814
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
815
|
-
user: string;
|
|
816
|
-
} | {
|
|
817
|
-
idpUser: "name" | "id" | "disabled";
|
|
818
|
-
} | {
|
|
819
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
820
|
-
} | {
|
|
821
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
822
|
-
})])[];
|
|
823
|
-
description?: string | undefined;
|
|
824
|
-
permit?: boolean | undefined;
|
|
825
|
-
})[];
|
|
826
|
-
update: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
827
|
-
user: string;
|
|
828
|
-
} | {
|
|
829
|
-
idpUser: "name" | "id" | "disabled";
|
|
830
|
-
} | {
|
|
831
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
832
|
-
} | {
|
|
833
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
834
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
835
|
-
user: string;
|
|
836
|
-
} | {
|
|
837
|
-
idpUser: "name" | "id" | "disabled";
|
|
838
|
-
} | {
|
|
839
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
840
|
-
} | {
|
|
841
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
842
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
843
|
-
user: string;
|
|
844
|
-
} | {
|
|
845
|
-
idpUser: "name" | "id" | "disabled";
|
|
846
|
-
} | {
|
|
847
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
848
|
-
} | {
|
|
849
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
850
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
851
|
-
user: string;
|
|
852
|
-
} | {
|
|
853
|
-
idpUser: "name" | "id" | "disabled";
|
|
854
|
-
} | {
|
|
855
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
856
|
-
} | {
|
|
857
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
858
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
859
|
-
user: string;
|
|
860
|
-
} | {
|
|
861
|
-
idpUser: "name" | "id" | "disabled";
|
|
862
|
-
} | {
|
|
863
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
864
|
-
} | {
|
|
865
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
866
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
867
|
-
user: string;
|
|
868
|
-
} | {
|
|
869
|
-
idpUser: "name" | "id" | "disabled";
|
|
870
|
-
} | {
|
|
871
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
872
|
-
} | {
|
|
873
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
874
|
-
})])[] | {
|
|
875
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
876
|
-
user: string;
|
|
877
|
-
} | {
|
|
878
|
-
idpUser: "name" | "id" | "disabled";
|
|
879
|
-
} | {
|
|
880
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
881
|
-
} | {
|
|
882
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
883
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
884
|
-
user: string;
|
|
885
|
-
} | {
|
|
886
|
-
idpUser: "name" | "id" | "disabled";
|
|
887
|
-
} | {
|
|
888
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
889
|
-
} | {
|
|
890
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
891
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
892
|
-
user: string;
|
|
893
|
-
} | {
|
|
894
|
-
idpUser: "name" | "id" | "disabled";
|
|
895
|
-
} | {
|
|
896
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
897
|
-
} | {
|
|
898
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
899
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
900
|
-
user: string;
|
|
901
|
-
} | {
|
|
902
|
-
idpUser: "name" | "id" | "disabled";
|
|
903
|
-
} | {
|
|
904
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
905
|
-
} | {
|
|
906
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
907
|
-
})])[];
|
|
908
|
-
description?: string | undefined;
|
|
909
|
-
permit?: boolean | undefined;
|
|
910
|
-
})[];
|
|
911
|
-
delete: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
912
|
-
user: string;
|
|
913
|
-
} | {
|
|
914
|
-
idpUser: "name" | "id" | "disabled";
|
|
915
|
-
} | {
|
|
916
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
917
|
-
} | {
|
|
918
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
919
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
920
|
-
user: string;
|
|
921
|
-
} | {
|
|
922
|
-
idpUser: "name" | "id" | "disabled";
|
|
923
|
-
} | {
|
|
924
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
925
|
-
} | {
|
|
926
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
927
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
928
|
-
user: string;
|
|
929
|
-
} | {
|
|
930
|
-
idpUser: "name" | "id" | "disabled";
|
|
931
|
-
} | {
|
|
932
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
933
|
-
} | {
|
|
934
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
935
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
936
|
-
user: string;
|
|
937
|
-
} | {
|
|
938
|
-
idpUser: "name" | "id" | "disabled";
|
|
939
|
-
} | {
|
|
940
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
941
|
-
} | {
|
|
942
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
943
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
944
|
-
user: string;
|
|
945
|
-
} | {
|
|
946
|
-
idpUser: "name" | "id" | "disabled";
|
|
947
|
-
} | {
|
|
948
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
949
|
-
} | {
|
|
950
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
951
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
952
|
-
user: string;
|
|
953
|
-
} | {
|
|
954
|
-
idpUser: "name" | "id" | "disabled";
|
|
955
|
-
} | {
|
|
956
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
957
|
-
} | {
|
|
958
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
959
|
-
})])[] | {
|
|
960
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
961
|
-
user: string;
|
|
962
|
-
} | {
|
|
963
|
-
idpUser: "name" | "id" | "disabled";
|
|
964
|
-
} | {
|
|
965
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
966
|
-
} | {
|
|
967
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
968
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
969
|
-
user: string;
|
|
970
|
-
} | {
|
|
971
|
-
idpUser: "name" | "id" | "disabled";
|
|
972
|
-
} | {
|
|
973
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
974
|
-
} | {
|
|
975
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
976
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
977
|
-
user: string;
|
|
978
|
-
} | {
|
|
979
|
-
idpUser: "name" | "id" | "disabled";
|
|
980
|
-
} | {
|
|
981
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
982
|
-
} | {
|
|
983
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
984
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
985
|
-
user: string;
|
|
986
|
-
} | {
|
|
987
|
-
idpUser: "name" | "id" | "disabled";
|
|
988
|
-
} | {
|
|
989
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
990
|
-
} | {
|
|
991
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
992
|
-
})])[];
|
|
993
|
-
description?: string | undefined;
|
|
994
|
-
permit?: boolean | undefined;
|
|
995
|
-
})[];
|
|
996
|
-
sendPasswordResetEmail?: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
997
|
-
user: string;
|
|
998
|
-
} | {
|
|
999
|
-
idpUser: "name" | "id" | "disabled";
|
|
1000
|
-
} | {
|
|
1001
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1002
|
-
} | {
|
|
1003
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1004
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1005
|
-
user: string;
|
|
1006
|
-
} | {
|
|
1007
|
-
idpUser: "name" | "id" | "disabled";
|
|
1008
|
-
} | {
|
|
1009
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1010
|
-
} | {
|
|
1011
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1012
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1013
|
-
user: string;
|
|
1014
|
-
} | {
|
|
1015
|
-
idpUser: "name" | "id" | "disabled";
|
|
1016
|
-
} | {
|
|
1017
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1018
|
-
} | {
|
|
1019
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1020
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1021
|
-
user: string;
|
|
1022
|
-
} | {
|
|
1023
|
-
idpUser: "name" | "id" | "disabled";
|
|
1024
|
-
} | {
|
|
1025
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1026
|
-
} | {
|
|
1027
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1028
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1029
|
-
user: string;
|
|
1030
|
-
} | {
|
|
1031
|
-
idpUser: "name" | "id" | "disabled";
|
|
1032
|
-
} | {
|
|
1033
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1034
|
-
} | {
|
|
1035
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1036
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1037
|
-
user: string;
|
|
1038
|
-
} | {
|
|
1039
|
-
idpUser: "name" | "id" | "disabled";
|
|
1040
|
-
} | {
|
|
1041
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1042
|
-
} | {
|
|
1043
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1044
|
-
})])[] | {
|
|
1045
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1046
|
-
user: string;
|
|
1047
|
-
} | {
|
|
1048
|
-
idpUser: "name" | "id" | "disabled";
|
|
1049
|
-
} | {
|
|
1050
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1051
|
-
} | {
|
|
1052
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1053
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1054
|
-
user: string;
|
|
1055
|
-
} | {
|
|
1056
|
-
idpUser: "name" | "id" | "disabled";
|
|
1057
|
-
} | {
|
|
1058
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1059
|
-
} | {
|
|
1060
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1061
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1062
|
-
user: string;
|
|
1063
|
-
} | {
|
|
1064
|
-
idpUser: "name" | "id" | "disabled";
|
|
1065
|
-
} | {
|
|
1066
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1067
|
-
} | {
|
|
1068
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1069
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1070
|
-
user: string;
|
|
1071
|
-
} | {
|
|
1072
|
-
idpUser: "name" | "id" | "disabled";
|
|
1073
|
-
} | {
|
|
1074
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1075
|
-
} | {
|
|
1076
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1077
|
-
})])[];
|
|
1078
|
-
description?: string | undefined;
|
|
1079
|
-
permit?: boolean | undefined;
|
|
1080
|
-
})[] | undefined;
|
|
1081
|
-
unenrollMfa?: readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1082
|
-
user: string;
|
|
1083
|
-
} | {
|
|
1084
|
-
idpUser: "name" | "id" | "disabled";
|
|
1085
|
-
} | {
|
|
1086
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1087
|
-
} | {
|
|
1088
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1089
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1090
|
-
user: string;
|
|
1091
|
-
} | {
|
|
1092
|
-
idpUser: "name" | "id" | "disabled";
|
|
1093
|
-
} | {
|
|
1094
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1095
|
-
} | {
|
|
1096
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1097
|
-
})] | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1098
|
-
user: string;
|
|
1099
|
-
} | {
|
|
1100
|
-
idpUser: "name" | "id" | "disabled";
|
|
1101
|
-
} | {
|
|
1102
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1103
|
-
} | {
|
|
1104
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1105
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1106
|
-
user: string;
|
|
1107
|
-
} | {
|
|
1108
|
-
idpUser: "name" | "id" | "disabled";
|
|
1109
|
-
} | {
|
|
1110
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1111
|
-
} | {
|
|
1112
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1113
|
-
}), boolean] | readonly (boolean | readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1114
|
-
user: string;
|
|
1115
|
-
} | {
|
|
1116
|
-
idpUser: "name" | "id" | "disabled";
|
|
1117
|
-
} | {
|
|
1118
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1119
|
-
} | {
|
|
1120
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1121
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1122
|
-
user: string;
|
|
1123
|
-
} | {
|
|
1124
|
-
idpUser: "name" | "id" | "disabled";
|
|
1125
|
-
} | {
|
|
1126
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1127
|
-
} | {
|
|
1128
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1129
|
-
})])[] | {
|
|
1130
|
-
conditions: readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1131
|
-
user: string;
|
|
1132
|
-
} | {
|
|
1133
|
-
idpUser: "name" | "id" | "disabled";
|
|
1134
|
-
} | {
|
|
1135
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1136
|
-
} | {
|
|
1137
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1138
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1139
|
-
user: string;
|
|
1140
|
-
} | {
|
|
1141
|
-
idpUser: "name" | "id" | "disabled";
|
|
1142
|
-
} | {
|
|
1143
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1144
|
-
} | {
|
|
1145
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1146
|
-
})] | readonly (readonly [(string | boolean | readonly string[] | readonly boolean[] | {
|
|
1147
|
-
user: string;
|
|
1148
|
-
} | {
|
|
1149
|
-
idpUser: "name" | "id" | "disabled";
|
|
1150
|
-
} | {
|
|
1151
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1152
|
-
} | {
|
|
1153
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1154
|
-
}), "in" | "=" | "!=" | "not in", (string | boolean | readonly string[] | readonly boolean[] | {
|
|
1155
|
-
user: string;
|
|
1156
|
-
} | {
|
|
1157
|
-
idpUser: "name" | "id" | "disabled";
|
|
1158
|
-
} | {
|
|
1159
|
-
oldIdpUser: "name" | "id" | "disabled";
|
|
1160
|
-
} | {
|
|
1161
|
-
newIdpUser: "name" | "id" | "disabled";
|
|
1162
|
-
})])[];
|
|
1163
|
-
description?: string | undefined;
|
|
1164
|
-
permit?: boolean | undefined;
|
|
1165
|
-
})[] | undefined;
|
|
1166
|
-
} | undefined;
|
|
1167
|
-
};
|
|
1168
|
-
//#endregion
|
|
1169
|
-
//#region src/configure/services/idp/types.d.ts
|
|
1170
|
-
declare const idpDefinitionBrand: unique symbol;
|
|
1171
|
-
type IdpDefinitionBrand = {
|
|
1172
|
-
readonly [idpDefinitionBrand]: true;
|
|
1173
|
-
};
|
|
1174
|
-
type DefinedIdp<Name extends string, Config, ClientNames extends string> = Config & {
|
|
1175
|
-
name: Name;
|
|
1176
|
-
provider(providerName: string, clientName: ClientNames): BuiltinIdP;
|
|
1177
|
-
} & IdpDefinitionBrand;
|
|
1178
|
-
type IdPExternalConfig = {
|
|
1179
|
-
name: string;
|
|
1180
|
-
external: true;
|
|
1181
|
-
};
|
|
1182
|
-
type IdPOwnConfig = Omit<DefinedIdp<string, IdPInput, string>, "provider">;
|
|
1183
|
-
type IdPConfig = IdPOwnConfig | IdPExternalConfig;
|
|
1184
|
-
//#endregion
|
|
1185
|
-
//#region src/types/secrets.generated.d.ts
|
|
1186
|
-
type Secrets = {
|
|
1187
|
-
vaults: {
|
|
1188
|
-
[x: string]: {
|
|
1189
|
-
[x: string]: string | null | undefined;
|
|
1190
|
-
};
|
|
1191
|
-
};
|
|
1192
|
-
options: {
|
|
1193
|
-
ignoreNullishValues: boolean;
|
|
1194
|
-
};
|
|
1195
|
-
};
|
|
1196
|
-
type SecretsInput = Secrets;
|
|
1197
|
-
//#endregion
|
|
1198
|
-
//#region src/configure/services/secrets/types.d.ts
|
|
1199
|
-
declare const secretsDefinitionBrand: unique symbol;
|
|
1200
|
-
type SecretsDefinitionBrand = {
|
|
1201
|
-
readonly [secretsDefinitionBrand]: true;
|
|
1202
|
-
};
|
|
1203
|
-
/** Type accepted by `AppConfig.secrets`. Only values returned by `defineSecretManager()` satisfy this. */
|
|
1204
|
-
type SecretsConfig = SecretsInput & SecretsDefinitionBrand;
|
|
1205
|
-
//#endregion
|
|
1206
|
-
//#region src/types/staticwebsite.generated.d.ts
|
|
1207
|
-
type StaticWebsite = {
|
|
1208
|
-
/** Static website name */name: string; /** Static website description */
|
|
1209
|
-
description?: string | undefined; /** IP addresses allowed to access the website */
|
|
1210
|
-
allowedIpAddresses?: string[] | undefined; /** Custom domains for the static website */
|
|
1211
|
-
customDomains?: string[] | undefined;
|
|
1212
|
-
};
|
|
1213
|
-
type StaticWebsiteInput = StaticWebsite;
|
|
1214
|
-
//#endregion
|
|
1215
|
-
//#region src/configure/services/staticwebsite/types.d.ts
|
|
1216
|
-
declare const staticWebsiteDefinitionBrand: unique symbol;
|
|
1217
|
-
type StaticWebsiteDefinitionBrand = {
|
|
1218
|
-
readonly [staticWebsiteDefinitionBrand]: true;
|
|
1219
|
-
};
|
|
1220
|
-
/** Type accepted by `AppConfig.staticWebsites`. Only values returned by `defineStaticWebSite()` satisfy this. */
|
|
1221
|
-
type StaticWebsiteConfig = StaticWebsiteInput & StaticWebsiteDefinitionBrand;
|
|
1222
|
-
//#endregion
|
|
1223
|
-
//#region src/types/app-config.generated.d.ts
|
|
1224
|
-
type LogLevelEnum = "DEBUG" | "INFO" | "WARN" | "ERROR" | "SILENT";
|
|
1225
|
-
//#endregion
|
|
1226
|
-
//#region src/configure/config/types.d.ts
|
|
1227
|
-
type LogLevel = LogLevelEnum;
|
|
1228
|
-
type LogLevelInput = LogLevel | (string & {});
|
|
1229
|
-
type ExecutorServiceConfig = {
|
|
1230
|
-
files: string[];
|
|
1231
|
-
ignores?: string[];
|
|
1232
|
-
};
|
|
1233
|
-
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
1234
|
-
type HttpAdapterServiceInput = {
|
|
1235
|
-
files: string[];
|
|
1236
|
-
ignores?: string[];
|
|
1237
|
-
};
|
|
1238
|
-
type ResolverServiceConfig = {
|
|
1239
|
-
files: string[];
|
|
1240
|
-
ignores?: string[];
|
|
1241
|
-
};
|
|
1242
|
-
type ResolverExternalConfig = {
|
|
1243
|
-
external: true;
|
|
1244
|
-
};
|
|
1245
|
-
type ResolverServiceInput = {
|
|
1246
|
-
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
1247
|
-
};
|
|
1248
|
-
type WorkflowServiceConfig = {
|
|
1249
|
-
files: string[];
|
|
1250
|
-
job_files?: string[];
|
|
1251
|
-
ignores?: string[];
|
|
1252
|
-
job_ignores?: string[];
|
|
1253
|
-
};
|
|
1254
|
-
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
1255
|
-
/**
|
|
1256
|
-
* Application configuration for `defineConfig()`.
|
|
1257
|
-
*
|
|
1258
|
-
* Key fields:
|
|
1259
|
-
* - `name` (required): Application name
|
|
1260
|
-
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
1261
|
-
* - `auth`: Single auth config object (not an array)
|
|
1262
|
-
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
1263
|
-
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
1264
|
-
* - `aiGateways`: Array of AI Gateway configs, e.g. `[gateway]`
|
|
1265
|
-
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
1266
|
-
*/
|
|
1267
|
-
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>> {
|
|
1268
|
-
/** Application name (required). */
|
|
1269
|
-
name: string;
|
|
1270
|
-
/**
|
|
1271
|
-
* Stable identifier used to track the application across renames.
|
|
1272
|
-
* Managed by the SDK: auto-generated and written into `tailor.config.ts`
|
|
1273
|
-
* on first `deploy`. Delete this field if you want the SDK to assign a
|
|
1274
|
-
* new id on the next `deploy` — typical case: `tailor.config.ts` was
|
|
1275
|
-
* copied from another project and the new application should not share
|
|
1276
|
-
* the original's id. Existing resources are re-tagged with the new id;
|
|
1277
|
-
* data is preserved.
|
|
1278
|
-
*/
|
|
1279
|
-
id?: string;
|
|
1280
|
-
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
1281
|
-
env?: Env;
|
|
1282
|
-
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
1283
|
-
cors?: string[];
|
|
1284
|
-
/** IP addresses allowed to access the application. */
|
|
1285
|
-
allowedIpAddresses?: string[];
|
|
1286
|
-
/** Disable GraphQL introspection in production. */
|
|
1287
|
-
disableIntrospection?: boolean;
|
|
1288
|
-
/** TailorDB service configuration with type definition files. */
|
|
1289
|
-
db?: TailorDBServiceInput;
|
|
1290
|
-
/** Resolver service configuration with resolver files. */
|
|
1291
|
-
resolver?: ResolverServiceInput;
|
|
1292
|
-
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
1293
|
-
idp?: Idp;
|
|
1294
|
-
/** Auth configuration (single object, not an array). */
|
|
1295
|
-
auth?: Auth;
|
|
1296
|
-
/** Executor service configuration with executor files. */
|
|
1297
|
-
executor?: ExecutorServiceInput;
|
|
1298
|
-
/** Workflow service configuration with workflow files. */
|
|
1299
|
-
workflow?: WorkflowServiceInput;
|
|
1300
|
-
/** HTTP adapter service configuration with adapter files. */
|
|
1301
|
-
httpAdapter?: HttpAdapterServiceInput;
|
|
1302
|
-
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
1303
|
-
staticWebsites?: StaticWebsites;
|
|
1304
|
-
/** AI Gateway configurations. Must be an array, e.g. `[gateway]`. */
|
|
1305
|
-
aiGateways?: AIGateways;
|
|
1306
|
-
/** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
|
|
1307
|
-
secrets?: SecretsConfig;
|
|
1308
|
-
/**
|
|
1309
|
-
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
1310
|
-
* @default true
|
|
1311
|
-
*/
|
|
1312
|
-
inlineSourcemap?: boolean;
|
|
1313
|
-
/**
|
|
1314
|
-
* Controls which `console.*` calls remain in bundled functions.
|
|
1315
|
-
* @default "DEBUG"
|
|
1316
|
-
*/
|
|
1317
|
-
logLevel?: LogLevelInput;
|
|
1318
|
-
}
|
|
1319
|
-
//#endregion
|
|
1320
|
-
//#region src/types/http-adapter.generated.d.ts
|
|
1321
|
-
type HttpAdapterConfigInput = {
|
|
1322
|
-
/** Unique adapter name within the domain */name: string; /** Path pattern with segment wildcards (trailing or single-segment) */
|
|
1323
|
-
pathPattern: string; /** Per-method functions that transform HTTP requests to GraphQL requests */
|
|
1324
|
-
input: {
|
|
1325
|
-
get?: Function | undefined;
|
|
1326
|
-
post?: Function | undefined;
|
|
1327
|
-
put?: Function | undefined;
|
|
1328
|
-
patch?: Function | undefined;
|
|
1329
|
-
delete?: Function | undefined;
|
|
1330
|
-
}; /** Whether the adapter is active */
|
|
1331
|
-
enabled?: boolean | undefined; /** Matching priority; the lowest value wins when multiple adapters match */
|
|
1332
|
-
priority?: number | undefined; /** Function that transforms GraphQL response to HTTP response */
|
|
1333
|
-
output?: Function | undefined;
|
|
1334
|
-
};
|
|
1335
|
-
//#endregion
|
|
1336
|
-
//#region src/types/workflow.generated.d.ts
|
|
1337
|
-
type RetryPolicy = {
|
|
1338
|
-
/** Maximum number of retries (1-10) */maxRetries: number; /** Initial backoff duration (e.g., '1s', '500ms', '1m', max 1h) */
|
|
1339
|
-
initialBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Maximum backoff duration (e.g., '30s', '5m', max 24h) */
|
|
1340
|
-
maxBackoff: `${number}ms` | `${number}s` | `${number}m`; /** Backoff multiplier (>= 1) */
|
|
1341
|
-
backoffMultiplier: number;
|
|
1342
|
-
};
|
|
1343
|
-
type ConcurrencyPolicy = {
|
|
1344
|
-
/** Maximum number of concurrent executions (1-1000) */maxConcurrentExecutions: number;
|
|
1345
|
-
};
|
|
1346
|
-
//#endregion
|
|
1347
|
-
export { TailorDBInstance as A, IdPInput as C, TailorAnyDBField as D, AIGatewayInput as E, TailorTypePermission as F, unsafeAllowAllGqlPermission as I, unsafeAllowAllTypePermission as L, db as M, PermissionCondition as N, TailorAnyDBType as O, TailorTypeGqlPermission as P, AllowedValues as R, IdPGqlOperationsInput as S, AIGatewayDefinitionBrand as T, IdPConfig as _, ExecutorServiceConfig as a, IdPEmailConfig as b, ResolverServiceConfig as c, WorkflowServiceInput as d, StaticWebsiteConfig as f, SecretsDefinitionBrand as g, SecretsConfig as h, AppConfig as i, TailorDBType as j, TailorDBField as k, ResolverServiceInput as l, StaticWebsiteInput as m, RetryPolicy as n, ExecutorServiceInput as o, StaticWebsiteDefinitionBrand as p, HttpAdapterConfigInput as r, ResolverExternalConfig as s, ConcurrencyPolicy as t, WorkflowServiceConfig as u, IdPExternalConfig as v, AIGatewayConfig as w, IdPGqlOperations as x, IdpDefinitionBrand as y, AllowedValuesOutput as z };
|
|
1348
|
-
//# sourceMappingURL=workflow.generated-Da1zECDw.d.mts.map
|