@tailor-platform/sdk 2.0.0-next.2 → 2.0.0-next.4
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 +511 -10
- package/README.md +9 -9
- package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
- package/dist/aigateway-DR4Kwuik.mjs +9 -0
- package/dist/aigateway-DR4Kwuik.mjs.map +1 -0
- package/dist/application-BO4ZF8wP.mjs +3 -0
- package/dist/application-BX13RArL.mjs +6669 -0
- package/dist/application-BX13RArL.mjs.map +1 -0
- package/dist/authconnection-CZvi9ANm.mjs +9 -0
- package/dist/authconnection-CZvi9ANm.mjs.map +1 -0
- package/dist/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/apply-phases.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-execution-policy.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 +11 -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 +223 -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 +98 -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 +61 -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/erd-viewer-assets/app.js +279 -36
- package/dist/cli/erd-viewer-assets/index.html +4 -0
- package/dist/cli/erd-viewer-assets/styles.css +252 -5
- package/dist/cli/index.d.mts +18 -3
- package/dist/cli/index.mjs +2237 -520
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +81 -21107
- package/dist/cli/lib.mjs +7 -10
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +39 -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 +26 -0
- package/dist/cli/shared/context.d.mts +28 -0
- package/dist/cli/shared/script-executor.d.mts +75 -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/ts-hook.d.mts +4 -0
- package/dist/cli/ts-hook.mjs +333 -0
- package/dist/completion/zsh-worker.zsh +1531 -1131
- package/dist/configure/config/index.d.mts +21 -0
- package/dist/configure/config/types.d.mts +105 -0
- package/dist/configure/index.d.mts +124 -9
- package/dist/configure/index.mjs +136 -23
- 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 +34 -0
- package/dist/configure/services/auth/types.d.mts +172 -0
- package/dist/configure/services/executor/executor.d.mts +81 -0
- package/dist/configure/services/executor/index.d.mts +8 -0
- package/dist/configure/services/executor/operation.d.mts +45 -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 +34 -0
- package/dist/configure/services/resolver/index.d.mts +5 -0
- package/dist/configure/services/resolver/resolver.d.mts +75 -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 +456 -0
- package/dist/configure/services/tailordb/types.d.mts +149 -0
- package/dist/configure/services/workflow/execution-policy.d.mts +71 -0
- package/dist/configure/services/workflow/execution-policy.types.d.mts +104 -0
- package/dist/configure/services/workflow/index.d.mts +8 -0
- package/dist/configure/services/workflow/job.d.mts +84 -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 +54 -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-runtime.d.mts +17 -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 +2 -0
- package/dist/configure/types/type.d.mts +82 -0
- package/dist/{context-Bd266-ru.mjs → context-DYQVYWqZ.mjs} +4 -5
- package/dist/context-DYQVYWqZ.mjs.map +1 -0
- package/dist/{crashreport-DFq-vsU0.mjs → crashreport-Cg-pqRJV.mjs} +6 -6
- package/dist/{crashreport-DFq-vsU0.mjs.map → crashreport-Cg-pqRJV.mjs.map} +1 -1
- package/dist/{crashreport-BMWcxeSE.mjs → crashreport-D3RjuSYb.mjs} +1 -1
- package/dist/enum-constants-j9QBF0cB.mjs.map +1 -1
- package/dist/{errors-Dtf2WPaW.mjs → errors-118wUDRr.mjs} +2 -2
- package/dist/errors-118wUDRr.mjs.map +1 -0
- package/dist/field-runtime-CAnh_oow.mjs +183 -0
- package/dist/field-runtime-CAnh_oow.mjs.map +1 -0
- package/dist/{file-BbdFGdMV.mjs → file-BUcmVIH2.mjs} +12 -14
- package/dist/file-BUcmVIH2.mjs.map +1 -0
- package/dist/{file-utils-CYZnO1pX.mjs → file-utils-yEiIS4nJ.mjs} +2 -2
- package/dist/file-utils-yEiIS4nJ.mjs.map +1 -0
- package/dist/{globals-Cf0sxIt8.mjs → globals-BjhJJ2dN.mjs} +5 -47
- package/dist/globals-BjhJJ2dN.mjs.map +1 -0
- package/dist/iconv-QWaZh0TT.mjs +38 -0
- package/dist/iconv-QWaZh0TT.mjs.map +1 -0
- package/dist/{idp-BDbK5gjm.mjs → idp-RA_swu-h.mjs} +12 -5
- package/dist/idp-RA_swu-h.mjs.map +1 -0
- package/dist/{interceptor-D-q1rvRl.mjs → interceptor-e33JtsC-.mjs} +2 -2
- package/dist/interceptor-e33JtsC-.mjs.map +1 -0
- package/dist/kysely/index.d.mts +2 -3
- package/dist/{kysely-type-DR8uzZTA.mjs → kysely-type-D-zflMGf.mjs} +2 -2
- package/dist/{kysely-type-DR8uzZTA.mjs.map → kysely-type-D-zflMGf.mjs.map} +1 -1
- package/dist/{logger-CxF-Ex5d.mjs → logger-BEiZZ3qT.mjs} +3 -3
- package/dist/{logger-CxF-Ex5d.mjs.map → logger-BEiZZ3qT.mjs.map} +1 -1
- 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/platform-serialize-RoRtBS0v.mjs +46 -0
- package/dist/platform-serialize-RoRtBS0v.mjs.map +1 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +16 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +16 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +16 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +45 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/get-generated-type.d.mts +17 -0
- package/dist/plugin/index.d.mts +3 -118
- package/dist/plugin/index.mjs +1 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/plugin/manager.d.mts +1 -0
- package/dist/plugin/types.d.mts +243 -0
- package/dist/plugin/with-context.d.mts +102 -0
- package/dist/{runtime-CY4JvrDj.mjs → register-ts-hook-BM1caLT0.mjs} +4128 -2744
- package/dist/register-ts-hook-BM1caLT0.mjs.map +1 -0
- package/dist/{registry-DH4m7eYo.mjs → registry-BSbq6SPo.mjs} +4 -3
- package/dist/registry-BSbq6SPo.mjs.map +1 -0
- package/dist/{repl-editor-DmGr9zMw.mjs → repl-editor-BCozyiNq.mjs} +6 -5
- package/dist/{repl-editor-DmGr9zMw.mjs.map → repl-editor-BCozyiNq.mjs.map} +1 -1
- package/dist/resource_pb-BRv7AMXK.mjs +49 -0
- package/dist/resource_pb-BRv7AMXK.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +26 -0
- package/dist/runtime/aigateway.mjs +3 -0
- package/dist/runtime/authconnection.d.mts +22 -2
- package/dist/runtime/authconnection.mjs +2 -2
- package/dist/runtime/context.d.mts +55 -2
- package/dist/runtime/context.mjs +2 -2
- package/dist/runtime/file.d.mts +170 -2
- package/dist/runtime/file.mjs +2 -2
- package/dist/runtime/globals.d.mts +31 -19
- package/dist/runtime/iconv.d.mts +73 -2
- package/dist/runtime/iconv.mjs +2 -2
- package/dist/runtime/idp.d.mts +129 -2
- package/dist/runtime/idp.mjs +2 -2
- package/dist/runtime/index.d.mts +47 -9
- package/dist/runtime/index.mjs +9 -8
- package/dist/runtime/secretmanager.d.mts +41 -2
- package/dist/runtime/secretmanager.mjs +2 -2
- package/dist/{types-BZ7QKVE8.d.mts → runtime/types.d.mts} +4 -5
- package/dist/runtime/workflow.d.mts +113 -2
- package/dist/runtime/workflow.mjs +2 -2
- package/dist/{schema-Dtw9Orye.mjs → schema-C4LYbXVG.mjs} +21 -186
- package/dist/schema-C4LYbXVG.mjs.map +1 -0
- package/dist/{secret-file-VSVGy1V0.mjs → secret-file-aoNXJmKa.mjs} +3 -3
- package/dist/secret-file-aoNXJmKa.mjs.map +1 -0
- package/dist/secretmanager-Bd45j7an.mjs +98 -0
- package/dist/secretmanager-Bd45j7an.mjs.map +1 -0
- package/dist/secretmanager-CYlpffsz.mjs +13 -0
- package/dist/secretmanager-CYlpffsz.mjs.map +1 -0
- package/dist/seed/index.d.mts +1 -2
- package/dist/{seed-izIEyP3z.mjs → seed-CRSQJI_z.mjs} +14 -3
- package/dist/seed-CRSQJI_z.mjs.map +1 -0
- package/dist/service-CkIwEctX.mjs +3 -0
- package/dist/{service-DU1mVzri2.mjs → service-DeZeYa06.mjs} +3 -3
- package/dist/service-DeZeYa06.mjs.map +1 -0
- package/dist/{service-DjyqbCaJ.mjs → service-ufH7sS8o.mjs} +396 -58
- package/dist/service-ufH7sS8o.mjs.map +1 -0
- package/dist/service_pb-B2FF59sP.mjs +3 -0
- package/dist/service_pb-B5w9rjPY.mjs +955 -0
- package/dist/service_pb-B5w9rjPY.mjs.map +1 -0
- 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 +862 -0
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +310 -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-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
- package/dist/telemetry-BRVdwh14.mjs.map +1 -0
- package/dist/telemetry-CkbkeJxl.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 +145 -0
- package/dist/types/executor.generated.d.mts +177 -0
- package/dist/types/helpers.d.mts +39 -0
- package/dist/types/http-adapter.generated.d.mts +17 -0
- package/dist/{workflow.generated-ClEjBYhm.d.mts → types/idp.generated.d.mts} +98 -185
- package/dist/types/resolver.generated.d.mts +39 -0
- package/dist/types/secrets.generated.d.mts +14 -0
- package/dist/types/staticwebsite.generated.d.mts +10 -0
- package/dist/{types-CdcQh4Z2.d.mts → types/tailordb.generated.d.mts} +2 -287
- package/dist/types/workflow.generated.d.mts +12 -0
- package/dist/types-C-lQ4se3.mjs +4 -0
- package/dist/types-CXF2OYdR.mjs +199 -0
- package/dist/types-CXF2OYdR.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +5 -89
- 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 +2 -2
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.d.mts +12 -428
- package/dist/vitest/index.mjs +740 -9
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +62 -0
- package/dist/vitest/mock.d.mts +9 -0
- package/dist/vitest/mocks/aigateway.d.mts +30 -0
- package/dist/vitest/mocks/authconnection.d.mts +28 -0
- package/dist/vitest/mocks/file.d.mts +41 -0
- package/dist/vitest/mocks/iconv.d.mts +27 -0
- package/dist/vitest/mocks/idp.d.mts +44 -0
- package/dist/vitest/mocks/secretmanager.d.mts +33 -0
- package/dist/vitest/mocks/tailordb.d.mts +71 -0
- package/dist/vitest/mocks/workflow.d.mts +117 -0
- package/dist/vitest/setup.d.mts +1 -2
- package/dist/vitest/setup.mjs +2 -2
- package/dist/vitest/workflow-local.d.mts +40 -0
- package/dist/workflow-GNuSnsTx.mjs +22 -0
- package/dist/workflow-GNuSnsTx.mjs.map +1 -0
- package/docs/cli/application.md +98 -250
- package/docs/cli/auth.md +51 -295
- package/docs/cli/completion.md +1 -25
- package/docs/cli/crashreport.md +3 -61
- package/docs/cli/executor.md +23 -187
- package/docs/cli/function.md +14 -130
- package/docs/cli/organization.md +11 -221
- package/docs/cli/plugin.md +29 -0
- package/docs/cli/query.md +2 -22
- package/docs/cli/secret.md +71 -251
- package/docs/cli/setup.md +137 -41
- package/docs/cli/skills.md +50 -39
- package/docs/cli/staticwebsite.md +32 -180
- package/docs/cli/tailordb.md +97 -323
- package/docs/cli/upgrade.md +2 -22
- package/docs/cli/user.md +78 -247
- package/docs/cli/workflow.md +44 -203
- package/docs/cli/workspace.md +165 -538
- package/docs/cli-reference.md +167 -67
- package/docs/configuration.md +34 -4
- package/docs/github-actions.md +46 -19
- package/docs/migration/v2.md +397 -26
- package/docs/multi-environment.md +29 -7
- package/docs/plugin/custom.md +4 -4
- package/docs/plugin/index.md +8 -8
- package/docs/quickstart.md +8 -7
- package/docs/runtime.md +9 -3
- package/docs/services/aigateway.md +18 -2
- package/docs/services/auth.md +34 -42
- package/docs/services/http-adapter.md +16 -1
- package/docs/services/idp.md +55 -2
- package/docs/services/resolver.md +2 -2
- package/docs/services/secret.md +11 -11
- package/docs/services/staticwebsite.md +8 -2
- package/docs/services/tailordb-migration.md +25 -23
- package/docs/services/tailordb.md +55 -32
- package/docs/services/workflow.md +92 -14
- package/docs/testing.md +49 -3
- package/package.json +42 -31
- package/postinstall.mjs +4 -6
- package/dist/application-Dtqap5jM.mjs +0 -3
- package/dist/application-XuMWK4eq.mjs +0 -7257
- package/dist/application-XuMWK4eq.mjs.map +0 -1
- package/dist/authconnection-D2MhtTN5.mjs +0 -15
- package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
- package/dist/authconnection-DvUQAjQS.d.mts +0 -39
- package/dist/context-Bd266-ru.mjs.map +0 -1
- package/dist/context-C2lEi9uw.d.mts +0 -47
- package/dist/errors-Dtf2WPaW.mjs.map +0 -1
- package/dist/field-DOsJCPFa.mjs +0 -22
- package/dist/field-DOsJCPFa.mjs.map +0 -1
- package/dist/file-BbdFGdMV.mjs.map +0 -1
- package/dist/file-Dq3NIt_F.d.mts +0 -211
- package/dist/file-utils-CYZnO1pX.mjs.map +0 -1
- package/dist/globals-Cf0sxIt8.mjs.map +0 -1
- package/dist/http-adapter.generated-DFsXDdm5.d.mts +0 -581
- package/dist/iconv-Co-TOPuH.d.mts +0 -122
- package/dist/iconv-D2vi8G36.mjs +0 -63
- package/dist/iconv-D2vi8G36.mjs.map +0 -1
- package/dist/idp-BDbK5gjm.mjs.map +0 -1
- package/dist/idp-DrhVrLmV.d.mts +0 -160
- package/dist/index-BI-_j9Z3.d.mts +0 -1013
- package/dist/index-C4JirJH8.d.mts +0 -18
- package/dist/index-CZfWhr0a.d.mts +0 -18
- package/dist/index-Cg8VKAdN.d.mts +0 -46
- package/dist/index-DYRjoLXD.d.mts +0 -47
- package/dist/index-lFpcjHPU.d.mts +0 -201
- package/dist/index-nW7hE6oE.d.mts +0 -18
- package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
- package/dist/mock-FPxmnt-y.mjs +0 -759
- package/dist/mock-FPxmnt-y.mjs.map +0 -1
- package/dist/registry-DH4m7eYo.mjs.map +0 -1
- package/dist/rolldown-runtime-DXywRVcq.mjs +0 -20
- package/dist/runtime-CY4JvrDj.mjs.map +0 -1
- package/dist/schema-Dtw9Orye.mjs.map +0 -1
- package/dist/secret-file-VSVGy1V0.mjs.map +0 -1
- package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
- package/dist/secretmanager-BVxw3ih_.mjs +0 -24
- package/dist/secretmanager-BVxw3ih_.mjs.map +0 -1
- package/dist/seed-izIEyP3z.mjs.map +0 -1
- package/dist/service-DCqIWibD.mjs +0 -3
- package/dist/service-DU1mVzri2.mjs.map +0 -1
- package/dist/service-DjyqbCaJ.mjs.map +0 -1
- package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
- package/dist/telemetry-ClwW5ohF.mjs +0 -3
- package/dist/types-74etvaxy.mjs +0 -4
- package/dist/types-BDRml5C3.d.mts +0 -574
- package/dist/types-BQijbo4m.mjs +0 -371
- package/dist/types-BQijbo4m.mjs.map +0 -1
- package/dist/types-BX4q6Mo6.d.mts +0 -339
- package/dist/workflow-BOmaZwwG.mjs +0 -43
- package/dist/workflow-BOmaZwwG.mjs.map +0 -1
- package/dist/workflow-BVy4XWjS.d.mts +0 -101
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Plugin } from "../../plugin/types.mjs";
|
|
2
|
+
import { AppConfig } from "./types.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/configure/config/index.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Define a Tailor SDK application configuration with shallow exactness.
|
|
7
|
+
* @template Config
|
|
8
|
+
* @param config - Application configuration
|
|
9
|
+
* @returns The same configuration object
|
|
10
|
+
*/
|
|
11
|
+
declare function defineConfig<const Config extends AppConfig & Record<Exclude<keyof Config, keyof AppConfig>, never>>(config: Config): Config;
|
|
12
|
+
/**
|
|
13
|
+
* Define plugins to be used with the Tailor SDK.
|
|
14
|
+
* Plugins can generate additional types, resolvers, and executors
|
|
15
|
+
* based on existing TailorDB types.
|
|
16
|
+
* @param configs - Plugin configurations
|
|
17
|
+
* @returns Plugin configurations as given
|
|
18
|
+
*/
|
|
19
|
+
declare function definePlugins(...configs: Plugin<any, any>[]): Plugin<any, any>[];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { defineConfig, definePlugins };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { TailorDBServiceInput } from "../services/tailordb/types.mjs";
|
|
2
|
+
import { AuthConfig } from "../services/auth/types.mjs";
|
|
3
|
+
import { AIGatewayConfig } from "../services/aigateway/types.mjs";
|
|
4
|
+
import { IdPConfig } from "../services/idp/types.mjs";
|
|
5
|
+
import { SecretsConfig } from "../services/secrets/types.mjs";
|
|
6
|
+
import { StaticWebsiteConfig } from "../services/staticwebsite/types.mjs";
|
|
7
|
+
import { ExecutionPolicyInstance } from "../services/workflow/execution-policy.types.mjs";
|
|
8
|
+
import { LogLevelEnum } from "../../types/app-config.generated.mjs";
|
|
9
|
+
|
|
10
|
+
//#region src/configure/config/types.d.ts
|
|
11
|
+
type LogLevel = LogLevelEnum;
|
|
12
|
+
type LogLevelInput = LogLevel | (string & {});
|
|
13
|
+
type ExecutorServiceConfig = {
|
|
14
|
+
files: string[];
|
|
15
|
+
ignores?: string[];
|
|
16
|
+
};
|
|
17
|
+
type ExecutorServiceInput = ExecutorServiceConfig;
|
|
18
|
+
type HttpAdapterServiceInput = {
|
|
19
|
+
files: string[];
|
|
20
|
+
ignores?: string[];
|
|
21
|
+
};
|
|
22
|
+
type ResolverServiceConfig = {
|
|
23
|
+
files: string[];
|
|
24
|
+
ignores?: string[];
|
|
25
|
+
};
|
|
26
|
+
type ResolverExternalConfig = {
|
|
27
|
+
external: true;
|
|
28
|
+
};
|
|
29
|
+
type ResolverServiceInput = {
|
|
30
|
+
[namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
|
|
31
|
+
};
|
|
32
|
+
type WorkflowServiceConfig = {
|
|
33
|
+
files: string[];
|
|
34
|
+
job_files?: string[];
|
|
35
|
+
ignores?: string[];
|
|
36
|
+
job_ignores?: string[]; /** Workspace-level execution policies for workflow job functions. */
|
|
37
|
+
executionPolicies?: Record<string, ExecutionPolicyInstance>;
|
|
38
|
+
};
|
|
39
|
+
type WorkflowServiceInput = WorkflowServiceConfig;
|
|
40
|
+
/**
|
|
41
|
+
* Application configuration for `defineConfig()`.
|
|
42
|
+
*
|
|
43
|
+
* Key fields:
|
|
44
|
+
* - `name` (required): Application name
|
|
45
|
+
* - `cors`: Array of allowed origins, e.g. `["https://example.com"]`
|
|
46
|
+
* - `auth`: Single auth config object (not an array)
|
|
47
|
+
* - `idp`: Array of IdP configs, e.g. `[myIdp]`
|
|
48
|
+
* - `staticWebsites`: Array of static website configs, e.g. `[website]`
|
|
49
|
+
* - `aiGateways`: Array of AI Gateway configs, e.g. `[gateway]`
|
|
50
|
+
* - `db`, `resolver`, `executor`, `workflow`: Service configs with file globs
|
|
51
|
+
*/
|
|
52
|
+
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>> {
|
|
53
|
+
/** Application name (required). */
|
|
54
|
+
name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Stable identifier used to track the application across renames.
|
|
57
|
+
* Managed by the SDK: auto-generated and written into `tailor.config.ts`
|
|
58
|
+
* on first `deploy`. Delete this field if you want the SDK to assign a
|
|
59
|
+
* new id on the next `deploy` — typical case: `tailor.config.ts` was
|
|
60
|
+
* copied from another project and the new application should not share
|
|
61
|
+
* the original's id. Existing resources are re-tagged with the new id;
|
|
62
|
+
* data is preserved.
|
|
63
|
+
*/
|
|
64
|
+
id?: string;
|
|
65
|
+
/** Environment variables accessible via `context.env` in resolvers and via the second argument `{ env }` in workflow job bodies. */
|
|
66
|
+
env?: Env;
|
|
67
|
+
/** Allowed CORS origins. Must be an array of strings, e.g. `["https://example.com"]`. */
|
|
68
|
+
cors?: string[];
|
|
69
|
+
/** IP addresses allowed to access the application. */
|
|
70
|
+
allowedIpAddresses?: string[];
|
|
71
|
+
/** Disable GraphQL introspection in production. */
|
|
72
|
+
disableIntrospection?: boolean;
|
|
73
|
+
/** TailorDB service configuration with type definition files. */
|
|
74
|
+
db?: TailorDBServiceInput;
|
|
75
|
+
/** Resolver service configuration with resolver files. */
|
|
76
|
+
resolver?: ResolverServiceInput;
|
|
77
|
+
/** Identity Provider configurations. Must be an array, e.g. `[myIdp]`. */
|
|
78
|
+
idp?: Idp;
|
|
79
|
+
/** Auth configuration (single object, not an array). */
|
|
80
|
+
auth?: Auth;
|
|
81
|
+
/** Executor service configuration with executor files. */
|
|
82
|
+
executor?: ExecutorServiceInput;
|
|
83
|
+
/** Workflow service configuration with workflow files. */
|
|
84
|
+
workflow?: WorkflowServiceInput;
|
|
85
|
+
/** HTTP adapter service configuration with adapter files. */
|
|
86
|
+
httpAdapter?: HttpAdapterServiceInput;
|
|
87
|
+
/** Static website configurations. Must be an array, e.g. `[website]`. */
|
|
88
|
+
staticWebsites?: StaticWebsites;
|
|
89
|
+
/** AI Gateway configurations. Must be an array, e.g. `[gateway]`. */
|
|
90
|
+
aiGateways?: AIGateways;
|
|
91
|
+
/** Secret Manager vault configurations. Keys are vault names, values are records of secret names to values. */
|
|
92
|
+
secrets?: SecretsConfig;
|
|
93
|
+
/**
|
|
94
|
+
* Enable inline sourcemaps in bundled functions for better error stack traces.
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
inlineSourcemap?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Controls which `console.*` calls remain in bundled functions.
|
|
100
|
+
* @default "DEBUG"
|
|
101
|
+
*/
|
|
102
|
+
logLevel?: LogLevelInput;
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { AppConfig, ExecutorServiceConfig, ExecutorServiceInput, HttpAdapterServiceInput, LogLevel, LogLevelInput, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, WorkflowServiceConfig, WorkflowServiceInput };
|
|
@@ -1,9 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { AttributeList, Attributes, Env, TailorPrincipal } from "../runtime/types.mjs";
|
|
2
|
+
import { InferFieldsOutput, output as output$1 } from "../types/helpers.mjs";
|
|
3
|
+
import { ArrayFieldOutput, FieldMetadata, FieldOptions, FieldOutput, TailorFieldType } from "./types/field.types.mjs";
|
|
4
|
+
import { PluginAttachment } from "./services/tailordb/types.mjs";
|
|
5
|
+
import { AuthConnectionConfig, AuthConnectionOAuth2Config } from "../types/auth-connection.generated.mjs";
|
|
6
|
+
import { BuiltinIdP, IDToken, IdProvider, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider } from "../types/auth.generated.mjs";
|
|
7
|
+
import { AuthConfig, AuthConnectionTokenResult, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BeforeLoginClaims, BeforeLoginHookArgs, DefinedAuth, FederatedIdentity, FederatedIdentityClaims, FederatedIdentityProvider, MachineUserName, MachineUserNameRegistry, OAuth2ClientGrantType, SCIMAttributeType, UserAttributeKey, UserAttributeListKey, UserAttributes, UsernameFieldKey, ValueOperand } from "./services/auth/types.mjs";
|
|
8
|
+
import { AllowedValues, AllowedValuesOutput } from "./types/field.mjs";
|
|
9
|
+
import { Resolver } from "../types/resolver.generated.mjs";
|
|
10
|
+
import { ExecutorReadyContext, GeneratorResult, NamespacePluginOutput, Plugin, PluginConfigs, PluginExecutorContext, PluginExecutorContextBase, PluginGeneratedExecutor, PluginGeneratedExecutorWithFile, PluginGeneratedResolver, PluginGeneratedType, PluginNamespaceProcessContext, PluginOutput, PluginProcessContext, ResolverNamespaceData, ResolverReadyContext, TailorDBNamespaceData, TailorDBReadyContext, TailorDBTypeForPlugin, TypePluginOutput } from "../plugin/types.mjs";
|
|
11
|
+
import { PermissionCondition, TailorTypeGqlPermission, TailorTypePermission, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission } from "./services/tailordb/permission.mjs";
|
|
12
|
+
import { TailorAnyDBField, TailorAnyDBType, TailorDBField, TailorDBInstance, TailorDBType, db } from "./services/tailordb/schema.mjs";
|
|
13
|
+
import { AIGatewayConfig } from "./services/aigateway/types.mjs";
|
|
14
|
+
import { IdPEmailConfig, IdPGqlOperations, IdPGqlOperationsInput } from "../types/idp.generated.mjs";
|
|
15
|
+
import { IdPConfig, IdPExternalConfig } from "./services/idp/types.mjs";
|
|
16
|
+
import { SecretsConfig } from "./services/secrets/types.mjs";
|
|
17
|
+
import { StaticWebsiteConfig } from "./services/staticwebsite/types.mjs";
|
|
18
|
+
import { ExecutionPolicyConcurrency, ExecutionPolicyDefInput, ExecutionPolicyExactInstance, ExecutionPolicyGroupOptions, ExecutionPolicyInstance, ExecutionPolicyWildcardInstance, ResolvedExecutionPolicyInstance } from "./services/workflow/execution-policy.types.mjs";
|
|
19
|
+
import { ExecutorServiceConfig, ExecutorServiceInput, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, WorkflowServiceConfig, WorkflowServiceInput } from "./config/types.mjs";
|
|
20
|
+
import { ConcurrencyPolicy, RetryPolicy } from "../types/workflow.generated.mjs";
|
|
21
|
+
import { TailorAnyField, TailorField } from "./types/type.mjs";
|
|
22
|
+
import { IdpName, IdpNameRegistry } from "./types/idp-name.mjs";
|
|
23
|
+
import { ConnectionName, ConnectionNameRegistry } from "./types/connection-name.mjs";
|
|
24
|
+
import { AIGatewayName, AIGatewayNameRegistry } from "./types/aigateway-name.mjs";
|
|
25
|
+
import { defineAuth } from "./services/auth/index.mjs";
|
|
26
|
+
import { createResolver } from "./services/resolver/resolver.mjs";
|
|
27
|
+
import { QueryType } from "./services/resolver/types.mjs";
|
|
28
|
+
import { WorkflowJob, WorkflowJobContext, createWorkflowJob } from "./services/workflow/job.mjs";
|
|
29
|
+
import { Workflow, WorkflowConfig, createWorkflow } from "./services/workflow/workflow.mjs";
|
|
30
|
+
import { FunctionOperation, GqlOperation, Operation, WebhookOperation, WorkflowOperation } from "./services/executor/operation.mjs";
|
|
31
|
+
import { AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, ResolverExecutedArgs, ResolverExecutedTrigger, TailorDBTrigger, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger } from "./services/executor/trigger/event.mjs";
|
|
32
|
+
import { ScheduleArgs, ScheduleTrigger, scheduleTrigger } from "./services/executor/trigger/schedule.mjs";
|
|
33
|
+
import { IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, incomingWebhookTrigger } from "./services/executor/trigger/webhook.mjs";
|
|
34
|
+
import { Trigger } from "./services/executor/trigger/index.mjs";
|
|
35
|
+
import { createExecutor } from "./services/executor/executor.mjs";
|
|
36
|
+
import { defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy } from "./services/workflow/execution-policy.mjs";
|
|
37
|
+
import { WaitPointInstance, createWaitPoint, createWaitPoints } from "./services/workflow/wait-point.mjs";
|
|
38
|
+
import { defineStaticWebSite } from "./services/staticwebsite/index.mjs";
|
|
39
|
+
import { defineAIGateway } from "./services/aigateway/index.mjs";
|
|
40
|
+
import { IdPPermission, IdPPermissionCondition, unsafeAllowAllIdPPermission } from "./services/idp/permission.mjs";
|
|
41
|
+
import { defineIdp } from "./services/idp/index.mjs";
|
|
42
|
+
import { defineSecretManager } from "./services/secrets/index.mjs";
|
|
43
|
+
import { HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, createHttpAdapter } from "./services/http-adapter/http-adapter.mjs";
|
|
44
|
+
import { defineConfig, definePlugins } from "./config/index.mjs";
|
|
45
|
+
|
|
46
|
+
//#region src/configure/index.d.ts
|
|
47
|
+
type TailorOutput<T> = output$1<T>;
|
|
48
|
+
type infer<T> = TailorOutput<T>;
|
|
49
|
+
type output<T> = TailorOutput<T>;
|
|
50
|
+
/** TailorDB field type builders. */
|
|
51
|
+
declare const t: {
|
|
52
|
+
uuid: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
53
|
+
type: "uuid";
|
|
54
|
+
array: Opt extends {
|
|
55
|
+
array: true;
|
|
56
|
+
} ? true : false;
|
|
57
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
|
|
58
|
+
string: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
59
|
+
type: "string";
|
|
60
|
+
array: Opt extends {
|
|
61
|
+
array: true;
|
|
62
|
+
} ? true : false;
|
|
63
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
|
|
64
|
+
bool: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
65
|
+
type: "boolean";
|
|
66
|
+
array: Opt extends {
|
|
67
|
+
array: true;
|
|
68
|
+
} ? true : false;
|
|
69
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<boolean, Opt> | null : ArrayFieldOutput<boolean, Opt>, FieldMetadata, TailorFieldType>;
|
|
70
|
+
int: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
71
|
+
type: "integer";
|
|
72
|
+
array: Opt extends {
|
|
73
|
+
array: true;
|
|
74
|
+
} ? true : false;
|
|
75
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<number, Opt> | null : ArrayFieldOutput<number, Opt>, FieldMetadata, TailorFieldType>;
|
|
76
|
+
float: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
77
|
+
type: "float";
|
|
78
|
+
array: Opt extends {
|
|
79
|
+
array: true;
|
|
80
|
+
} ? true : false;
|
|
81
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<number, Opt> | null : ArrayFieldOutput<number, Opt>, FieldMetadata, TailorFieldType>;
|
|
82
|
+
decimal: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
83
|
+
type: "decimal";
|
|
84
|
+
array: Opt extends {
|
|
85
|
+
array: true;
|
|
86
|
+
} ? true : false;
|
|
87
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
|
|
88
|
+
date: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
89
|
+
type: "date";
|
|
90
|
+
array: Opt extends {
|
|
91
|
+
array: true;
|
|
92
|
+
} ? true : false;
|
|
93
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
|
|
94
|
+
datetime: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
95
|
+
type: "datetime";
|
|
96
|
+
array: Opt extends {
|
|
97
|
+
array: true;
|
|
98
|
+
} ? true : false;
|
|
99
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string | Date, Opt> | null : ArrayFieldOutput<string | Date, Opt>, FieldMetadata, TailorFieldType>;
|
|
100
|
+
time: <const Opt extends FieldOptions>(options?: Opt) => TailorField<{
|
|
101
|
+
type: "time";
|
|
102
|
+
array: Opt extends {
|
|
103
|
+
array: true;
|
|
104
|
+
} ? true : false;
|
|
105
|
+
}, Opt["optional"] extends true ? ArrayFieldOutput<string, Opt> | null : ArrayFieldOutput<string, Opt>, FieldMetadata, TailorFieldType>;
|
|
106
|
+
enum: <const V extends AllowedValues, const Opt extends FieldOptions>(values: V, options?: Opt) => TailorField<{
|
|
107
|
+
type: "enum";
|
|
108
|
+
array: Opt extends {
|
|
109
|
+
array: true;
|
|
110
|
+
} ? true : false;
|
|
111
|
+
}, FieldOutput<AllowedValuesOutput<V>, Opt>>;
|
|
112
|
+
object: <const F extends Record<string, TailorAnyField>, const Opt extends FieldOptions>(fields: F, options?: Opt) => TailorField<{
|
|
113
|
+
type: "nested";
|
|
114
|
+
array: Opt extends {
|
|
115
|
+
array: true;
|
|
116
|
+
} ? true : false;
|
|
117
|
+
}, FieldOutput<InferFieldsOutput<F>, Opt>, FieldMetadata, TailorFieldType>;
|
|
118
|
+
};
|
|
119
|
+
declare namespace t {
|
|
120
|
+
type output<T> = TailorOutput<T>;
|
|
121
|
+
type infer<T> = TailorOutput<T>;
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
export { type AIGatewayConfig, type AIGatewayName, type AIGatewayNameRegistry, type AttributeList, type Attributes, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type ConnectionName, type ConnectionNameRegistry, type DefinedAuth, type Env, type ExecutionPolicyConcurrency, type ExecutionPolicyDefInput, type ExecutionPolicyExactInstance, type ExecutionPolicyGroupOptions, type ExecutionPolicyInstance, type ExecutionPolicyWildcardInstance, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLQuery, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, HttpAdapterTypedDocumentNode, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type ResolvedExecutionPolicyInstance, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorPrincipal, type TailorTypeGqlPermission, type TailorTypePermission, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributes, type UsernameFieldKey, type ValueOperand, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWaitPoint, createWaitPoints, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
package/dist/configure/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as t$1 } from "../types-
|
|
1
|
+
import { t as t$1 } from "../types-CXF2OYdR.mjs";
|
|
2
2
|
import { t as brandValue } from "../brand-Eo4pLXPJ.mjs";
|
|
3
|
-
import { t as db } from "../schema-
|
|
4
|
-
import { a as registerJob, n as dispatchTriggerJob, r as dispatchTriggerWorkflow } from "../registry-
|
|
3
|
+
import { t as db } from "../schema-C4LYbXVG.mjs";
|
|
4
|
+
import { a as registerJob, n as dispatchTriggerJob, r as dispatchTriggerWorkflow } from "../registry-BSbq6SPo.mjs";
|
|
5
5
|
import { i as withWorkflowTestInvoker } from "../test-env-key-D7UkZp99.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/configure/services/auth/index.ts
|
|
@@ -9,10 +9,7 @@ import { i as withWorkflowTestInvoker } from "../test-env-key-D7UkZp99.mjs";
|
|
|
9
9
|
function defineAuth(name, config) {
|
|
10
10
|
return {
|
|
11
11
|
...config,
|
|
12
|
-
name
|
|
13
|
-
getConnectionToken(connectionName) {
|
|
14
|
-
return tailor.authconnection.getConnectionToken(connectionName);
|
|
15
|
-
}
|
|
12
|
+
name
|
|
16
13
|
};
|
|
17
14
|
}
|
|
18
15
|
|
|
@@ -352,6 +349,114 @@ function incomingWebhookTrigger(options) {
|
|
|
352
349
|
};
|
|
353
350
|
}
|
|
354
351
|
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region src/configure/services/workflow/execution-policy.ts
|
|
354
|
+
const EXECUTION_POLICY_EXACT_KEY_REGEX = /^[a-z0-9][a-z0-9_:.-]{0,62}[a-z0-9]$/;
|
|
355
|
+
function createExecutionPolicyInstance(initialName, initialKey, concurrencyPolicy, matchType, separator, allowNameSetter, allowKeySetter) {
|
|
356
|
+
const isPrefix = matchType === "prefix";
|
|
357
|
+
const raw = {
|
|
358
|
+
name: initialName,
|
|
359
|
+
key: initialKey,
|
|
360
|
+
matchType,
|
|
361
|
+
...concurrencyPolicy && { concurrencyPolicy },
|
|
362
|
+
...isPrefix && { keyFor: (suffix) => {
|
|
363
|
+
const key = `${raw.key}${separator}${suffix}`;
|
|
364
|
+
if (!EXECUTION_POLICY_EXACT_KEY_REGEX.test(key)) throw new Error(`Invalid execution policy key "${key}" built by keyFor("${suffix}"): must match [a-z0-9_:.-] (2-64 chars; must start and end with [a-z0-9]).`);
|
|
365
|
+
return key;
|
|
366
|
+
} }
|
|
367
|
+
};
|
|
368
|
+
return {
|
|
369
|
+
instance: brandValue(raw, "execution-policy"),
|
|
370
|
+
setName: allowNameSetter ? (n) => {
|
|
371
|
+
raw.name = n;
|
|
372
|
+
} : void 0,
|
|
373
|
+
setKey: allowKeySetter ? (k) => {
|
|
374
|
+
raw.key = k;
|
|
375
|
+
} : void 0
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Define a single workflow job function execution policy.
|
|
380
|
+
*
|
|
381
|
+
* Use this when declaring a policy outside the
|
|
382
|
+
* {@link defineWorkflowExecutionPolicies} builder — for example, when the
|
|
383
|
+
* runtime key prefix needs to differ from the corresponding workspace-unique
|
|
384
|
+
* name.
|
|
385
|
+
*
|
|
386
|
+
* When `matchType: "prefix"` is set, the returned instance has `keyFor(suffix)`
|
|
387
|
+
* instead of a directly-usable `key` (see {@link ExecutionPolicyWildcardInstance}).
|
|
388
|
+
* @param name - Workspace-unique name. Must match `^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$`.
|
|
389
|
+
* @param def - Optional overrides for `key` (defaults to `name`), `matchType`, `separator` (the `keyFor` join character, defaults to `.`), and concurrency
|
|
390
|
+
* @returns An execution policy instance
|
|
391
|
+
* @example
|
|
392
|
+
* export const perTenant = defineWorkflowExecutionPolicy("tenant-api", {
|
|
393
|
+
* matchType: "prefix",
|
|
394
|
+
* concurrencyPolicy: { maxConcurrentExecutions: 3 },
|
|
395
|
+
* });
|
|
396
|
+
*
|
|
397
|
+
* perTenant.keyFor(tenantId); // "tenant-api.<tenantId>"
|
|
398
|
+
*/
|
|
399
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
400
|
+
function defineWorkflowExecutionPolicy(name, def) {
|
|
401
|
+
return createExecutionPolicyInstance(name, def?.key ?? name, def?.concurrencyPolicy, def?.matchType ?? "exact", def?.separator ?? ".", false, false).instance;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Define a group of workflow job function execution policies. Property names
|
|
405
|
+
* become the workspace-unique `name` and default `key` verbatim, matching the
|
|
406
|
+
* mental model of {@link defineWaitPoints}. Provide `name` / `key` explicitly
|
|
407
|
+
* to override the property-name default (for example, when the property name
|
|
408
|
+
* is not valid for the execution policy grammar or when the runtime key
|
|
409
|
+
* prefix needs to differ).
|
|
410
|
+
*
|
|
411
|
+
* When `matchType: "prefix"` is set, the returned instance has `keyFor(suffix)`
|
|
412
|
+
* instead of a directly-usable `key` (see {@link ExecutionPolicyWildcardInstance}).
|
|
413
|
+
* `matchType` can be combined with an explicit `key`, or left to apply to
|
|
414
|
+
* the property-name-derived prefix.
|
|
415
|
+
*
|
|
416
|
+
* The return type mirrors the builder's return type so JSDoc on each property
|
|
417
|
+
* is preserved in IDE autocompletion.
|
|
418
|
+
* @param builder - Callback that receives a `define` factory and returns a record of policies
|
|
419
|
+
* @param options - Group-wide options; `separator` overrides the `.` `keyFor` uses to join the prefix and suffix for every prefix policy in the group
|
|
420
|
+
* @returns The same object returned by the builder (with `name` / `key` resolved on each instance)
|
|
421
|
+
* @example
|
|
422
|
+
* export const executionPolicies = defineWorkflowExecutionPolicies((define) => ({
|
|
423
|
+
* premium: define({ concurrencyPolicy: { maxConcurrentExecutions: 5 } }),
|
|
424
|
+
* "tenant-api": define({
|
|
425
|
+
* matchType: "prefix",
|
|
426
|
+
* concurrencyPolicy: { maxConcurrentExecutions: 3 },
|
|
427
|
+
* }),
|
|
428
|
+
* }));
|
|
429
|
+
*
|
|
430
|
+
* // In a workflow job function:
|
|
431
|
+
* await tailor.workflow.triggerJobFunction("worker", args, {
|
|
432
|
+
* executionPolicyKey: executionPolicies.premium.key,
|
|
433
|
+
* });
|
|
434
|
+
* await tailor.workflow.triggerJobFunction("worker", args, {
|
|
435
|
+
* executionPolicyKey: executionPolicies["tenant-api"].keyFor(input.tenantId),
|
|
436
|
+
* });
|
|
437
|
+
*/
|
|
438
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
439
|
+
function defineWorkflowExecutionPolicies(builder, options) {
|
|
440
|
+
const separator = options?.separator ?? ".";
|
|
441
|
+
const nameSetters = /* @__PURE__ */ new Map();
|
|
442
|
+
const keySetters = /* @__PURE__ */ new Map();
|
|
443
|
+
const define = (def) => {
|
|
444
|
+
const explicitName = def?.name;
|
|
445
|
+
const explicitKey = def?.key;
|
|
446
|
+
const { instance, setName, setKey } = createExecutionPolicyInstance(explicitName ?? "__pending__", explicitKey ?? explicitName ?? "__pending__", def?.concurrencyPolicy, def?.matchType ?? "exact", separator, explicitName === void 0, explicitKey === void 0 && explicitName === void 0);
|
|
447
|
+
if (setName) nameSetters.set(instance, setName);
|
|
448
|
+
if (setKey) keySetters.set(instance, setKey);
|
|
449
|
+
return instance;
|
|
450
|
+
};
|
|
451
|
+
const result = builder(define);
|
|
452
|
+
for (const propName of Object.keys(result)) {
|
|
453
|
+
const instance = result[propName];
|
|
454
|
+
nameSetters.get(instance)?.(propName);
|
|
455
|
+
keySetters.get(instance)?.(propName);
|
|
456
|
+
}
|
|
457
|
+
return result;
|
|
458
|
+
}
|
|
459
|
+
|
|
355
460
|
//#endregion
|
|
356
461
|
//#region src/configure/services/workflow/job.ts
|
|
357
462
|
/**
|
|
@@ -389,11 +494,13 @@ function incomingWebhookTrigger(options) {
|
|
|
389
494
|
*/
|
|
390
495
|
function createWorkflowJob(config) {
|
|
391
496
|
const userBody = config.body;
|
|
392
|
-
const body = process.env.
|
|
393
|
-
if (!process.env.
|
|
394
|
-
const trigger = process.env.
|
|
497
|
+
const body = process.env.__TAILOR_PLATFORM_BUNDLE ? userBody : (input, context) => withWorkflowTestInvoker(context.invoker, () => userBody(input, context));
|
|
498
|
+
if (!process.env.__TAILOR_PLATFORM_BUNDLE) registerJob(config.name, body);
|
|
499
|
+
const trigger = process.env.__TAILOR_PLATFORM_BUNDLE ? () => {
|
|
395
500
|
throw new Error("This workflow job's .trigger() is rewritten at build time and is unavailable in the bundle");
|
|
396
|
-
} : (args
|
|
501
|
+
} : function trigger(args, options) {
|
|
502
|
+
return arguments.length >= 2 ? dispatchTriggerJob(config.name, args, options) : dispatchTriggerJob(config.name, args);
|
|
503
|
+
};
|
|
397
504
|
return brandValue({
|
|
398
505
|
name: config.name,
|
|
399
506
|
trigger,
|
|
@@ -432,7 +539,7 @@ function createWaitPointInstance(initialKey) {
|
|
|
432
539
|
};
|
|
433
540
|
}
|
|
434
541
|
/**
|
|
435
|
-
*
|
|
542
|
+
* Create a single typed wait point with an explicit key.
|
|
436
543
|
*
|
|
437
544
|
* `Payload` and `Result` must be JsonValue-compatible.
|
|
438
545
|
* Functions and objects with a `toJSON` method are rejected at the type level;
|
|
@@ -440,16 +547,16 @@ function createWaitPointInstance(initialKey) {
|
|
|
440
547
|
* @param key - The wait point key used to match wait and resolve calls
|
|
441
548
|
* @returns A WaitPointInstance with typed `.wait()` and `.resolve()` methods
|
|
442
549
|
* @example
|
|
443
|
-
* export const approval =
|
|
550
|
+
* export const approval = createWaitPoint<{ message: string }, { approved: boolean }>("approval");
|
|
444
551
|
*
|
|
445
552
|
* await approval.wait({ message: "Please approve" });
|
|
446
553
|
*/
|
|
447
554
|
/* @__NO_SIDE_EFFECTS__ */
|
|
448
|
-
function
|
|
555
|
+
function createWaitPoint(key) {
|
|
449
556
|
return createWaitPointInstance(key).instance;
|
|
450
557
|
}
|
|
451
558
|
/**
|
|
452
|
-
*
|
|
559
|
+
* Create a group of typed wait points for human-in-the-loop workflows.
|
|
453
560
|
* Property names become the wait point keys.
|
|
454
561
|
*
|
|
455
562
|
* The return type is the same as the builder's return type, so JSDoc on each
|
|
@@ -461,7 +568,7 @@ function defineWaitPoint(key) {
|
|
|
461
568
|
* @param builder - Callback that receives a `define` factory and returns an object of wait points
|
|
462
569
|
* @returns The same object returned by the builder (with correct keys set on each instance)
|
|
463
570
|
* @example
|
|
464
|
-
* export const waitPoints =
|
|
571
|
+
* export const waitPoints = createWaitPoints(define => ({
|
|
465
572
|
* // Preceding JSDoc on this property is shown in IDE autocompletion
|
|
466
573
|
* approval: define<{ message: string }, { approved: boolean }>(),
|
|
467
574
|
* }));
|
|
@@ -472,7 +579,7 @@ function defineWaitPoint(key) {
|
|
|
472
579
|
* // For 2-level access, use destructured export with JSDoc attached to the export itself.
|
|
473
580
|
*/
|
|
474
581
|
/* @__NO_SIDE_EFFECTS__ */
|
|
475
|
-
function
|
|
582
|
+
function createWaitPoints(builder) {
|
|
476
583
|
const setters = /* @__PURE__ */ new Map();
|
|
477
584
|
const define = (() => {
|
|
478
585
|
const { instance, setKey } = createWaitPointInstance("__pending__");
|
|
@@ -514,7 +621,7 @@ function defineWaitPoints(builder) {
|
|
|
514
621
|
function createWorkflow(config) {
|
|
515
622
|
return brandValue({
|
|
516
623
|
...config,
|
|
517
|
-
trigger: process.env.
|
|
624
|
+
trigger: process.env.__TAILOR_PLATFORM_BUNDLE ? async () => {
|
|
518
625
|
throw new Error("workflow.trigger() is rewritten at build time and unavailable in the bundle");
|
|
519
626
|
} : async (args, options) => await dispatchTriggerWorkflow(config.name, args, options)
|
|
520
627
|
}, "workflow");
|
|
@@ -584,6 +691,10 @@ const unsafeAllowAllIdPPermission = {
|
|
|
584
691
|
sendPasswordResetEmail: [{
|
|
585
692
|
conditions: [],
|
|
586
693
|
permit: true
|
|
694
|
+
}],
|
|
695
|
+
unenrollMfa: [{
|
|
696
|
+
conditions: [],
|
|
697
|
+
permit: true
|
|
587
698
|
}]
|
|
588
699
|
};
|
|
589
700
|
|
|
@@ -646,12 +757,14 @@ function defineSecretManager(config, options) {
|
|
|
646
757
|
* Files are discovered via the `httpAdapter.files` glob in `defineConfig()`.
|
|
647
758
|
*
|
|
648
759
|
* `input` is an object keyed by lowercase HTTP method (`get`, `post`, `put`,
|
|
649
|
-
* `patch`, `delete`).
|
|
760
|
+
* `patch`, `delete`). Each handler can return a GraphQL query string or a
|
|
761
|
+
* typed document node. At least one method must be declared; the methods the
|
|
650
762
|
* adapter serves are derived from these keys.
|
|
651
763
|
*
|
|
652
|
-
* `output` is optional and shared across all methods. If
|
|
653
|
-
*
|
|
654
|
-
*
|
|
764
|
+
* `output` is optional and shared across all methods. If `input` returns typed
|
|
765
|
+
* document nodes, `output` receives the corresponding result type as
|
|
766
|
+
* `resp.data`. If you need different response shapes per method, discriminate
|
|
767
|
+
* inside `output` based on the GraphQL response shape.
|
|
655
768
|
*
|
|
656
769
|
* Each handler runs server-side and must be synchronous: Node APIs, `fetch`,
|
|
657
770
|
* `async`/`await`, Promises, and top-level `await` are not available.
|
|
@@ -712,5 +825,5 @@ function definePlugins(...configs) {
|
|
|
712
825
|
const t = t$1;
|
|
713
826
|
|
|
714
827
|
//#endregion
|
|
715
|
-
export { authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite,
|
|
828
|
+
export { authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWaitPoint, createWaitPoints, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWorkflowExecutionPolicies, defineWorkflowExecutionPolicy, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
|
716
829
|
//# sourceMappingURL=index.mjs.map
|