@tailor-platform/sdk 2.0.0-next.1 → 2.0.0-next.3
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 +514 -2
- package/README.md +9 -9
- package/agent-skills/{tailor-sdk → tailor}/SKILL.md +3 -1
- package/dist/aigateway-B3oZZE6v.mjs +15 -0
- package/dist/aigateway-B3oZZE6v.mjs.map +1 -0
- package/dist/application-D2hSK1ZL.mjs +3 -0
- package/dist/{application-DqS1yBg3.mjs → application-eHp9jXld.mjs} +1397 -684
- package/dist/application-eHp9jXld.mjs.map +1 -0
- package/dist/{authconnection-D2MhtTN5.mjs → authconnection-BGQM8FZI.mjs} +2 -2
- package/dist/authconnection-BGQM8FZI.mjs.map +1 -0
- 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.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 +2193 -519
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +81 -21048
- package/dist/cli/lib.mjs +8 -12
- 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 +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 +303 -0
- package/dist/completion/zsh-worker.zsh +1577 -1098
- package/dist/configure/config/index.d.mts +21 -0
- package/dist/configure/config/types.d.mts +103 -0
- package/dist/configure/index.d.mts +122 -8
- package/dist/configure/index.mjs +74 -34
- 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 +32 -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/index.d.mts +6 -0
- package/dist/configure/services/workflow/job.d.mts +79 -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.map +1 -1
- package/dist/{crashreport-BsjAkFWw.mjs → crashreport-Cg-pqRJV.mjs} +9 -11
- package/dist/{crashreport-BsjAkFWw.mjs.map → crashreport-Cg-pqRJV.mjs.map} +1 -1
- package/dist/{crashreport-pr6Rhvza.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-_oUZo76X.mjs → file-BbdFGdMV.mjs} +2 -10
- package/dist/file-BbdFGdMV.mjs.map +1 -0
- package/dist/{file-utils-DcyIPFQh.mjs → file-utils-CYZnO1pX.mjs} +5 -5
- package/dist/file-utils-CYZnO1pX.mjs.map +1 -0
- package/dist/{globals-Crz8o65k.mjs → globals-DhwZj0RB.mjs} +5 -47
- package/dist/globals-DhwZj0RB.mjs.map +1 -0
- package/dist/{idp-BDbK5gjm.mjs → idp-Bx25ZBdN.mjs} +9 -1
- package/dist/idp-Bx25ZBdN.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-5eAChaHO.mjs} +4 -2
- package/dist/kysely-type-5eAChaHO.mjs.map +1 -0
- 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 -117
- 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-n9NCkjee.mjs → register-ts-hook-ZpBacA07.mjs} +4374 -2446
- package/dist/register-ts-hook-ZpBacA07.mjs.map +1 -0
- package/dist/{registry-DdsYlL_P.mjs → registry-DH4m7eYo.mjs} +4 -2
- package/dist/registry-DH4m7eYo.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/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 -1
- package/dist/runtime/context.d.mts +46 -2
- package/dist/runtime/file.d.mts +210 -2
- package/dist/runtime/file.mjs +2 -2
- package/dist/runtime/globals.d.mts +31 -19
- package/dist/runtime/iconv.d.mts +121 -2
- package/dist/runtime/idp.d.mts +186 -2
- package/dist/runtime/idp.mjs +1 -1
- package/dist/runtime/index.d.mts +47 -9
- package/dist/runtime/index.mjs +6 -5
- package/dist/runtime/secretmanager.d.mts +54 -2
- package/dist/runtime/types.d.mts +20 -0
- package/dist/runtime/workflow.d.mts +112 -2
- package/dist/runtime/workflow.mjs +2 -2
- package/dist/{schema-BhkpP5Hw.mjs → schema-89dYxNC2.mjs} +25 -187
- package/dist/schema-89dYxNC2.mjs.map +1 -0
- package/dist/{secret-file-DBqZhjFQ.mjs → secret-file-aoNXJmKa.mjs} +28 -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/seed/index.d.mts +1 -2
- package/dist/{seed-jf3008-h.mjs → seed-CRSQJI_z.mjs} +16 -6
- package/dist/seed-CRSQJI_z.mjs.map +1 -0
- package/dist/service-CkIwEctX.mjs +3 -0
- package/dist/{service-DU1mVzri.mjs → service-DeZeYa06.mjs} +3 -3
- package/dist/{service-DU1mVzri.mjs.map → service-DeZeYa06.mjs.map} +1 -1
- package/dist/service-ufH7sS8o.mjs +797 -0
- package/dist/service-ufH7sS8o.mjs.map +1 -0
- package/dist/{client-z_oHGVNy.mjs → service_pb-CIrhGwHk.mjs} +38 -466
- package/dist/service_pb-CIrhGwHk.mjs.map +1 -0
- package/dist/service_pb-DjwIn4jO.mjs +3 -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 +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-CdqJEzkj.mjs → telemetry-BRVdwh14.mjs} +3 -3
- package/dist/telemetry-BRVdwh14.mjs.map +1 -0
- package/dist/telemetry-CkbkeJxl.mjs +3 -0
- package/dist/test-env-key-D7UkZp99.mjs +75 -0
- package/dist/test-env-key-D7UkZp99.mjs.map +1 -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-DtQwEo-x.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/tailordb.generated.d.mts +428 -0
- 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 -98
- package/dist/utils/test/index.mjs +4 -13
- 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 +741 -10
- 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 +115 -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-DgemCAz3.mjs → workflow-Bo59B75H.mjs} +16 -4
- package/dist/workflow-Bo59B75H.mjs.map +1 -0
- package/docs/cli/application.md +98 -250
- package/docs/cli/auth.md +48 -292
- package/docs/cli/completion.md +1 -25
- package/docs/cli/crashreport.md +3 -61
- package/docs/cli/executor.md +72 -183
- 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 +138 -40
- 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 +150 -172
- package/docs/cli/workspace.md +165 -538
- package/docs/cli-reference.md +184 -78
- package/docs/configuration.md +10 -4
- package/docs/github-actions.md +64 -24
- package/docs/migration/v2.md +735 -0
- package/docs/multi-environment.md +29 -7
- package/docs/plugin/index.md +6 -6
- package/docs/quickstart.md +8 -7
- package/docs/runtime.md +6 -2
- package/docs/services/aigateway.md +18 -2
- package/docs/services/auth.md +44 -52
- package/docs/services/executor.md +3 -3
- package/docs/services/http-adapter.md +16 -1
- package/docs/services/idp.md +55 -2
- package/docs/services/resolver.md +7 -7
- package/docs/services/secret.md +11 -11
- package/docs/services/staticwebsite.md +8 -2
- package/docs/services/tailordb-migration.md +24 -22
- package/docs/services/tailordb.md +39 -14
- package/docs/services/workflow.md +18 -18
- package/docs/testing.md +108 -50
- package/package.json +46 -35
- package/postinstall.mjs +4 -6
- package/dist/application-DB2r36Et.mjs +0 -3
- package/dist/application-DqS1yBg3.mjs.map +0 -1
- package/dist/authconnection-D2MhtTN5.mjs.map +0 -1
- package/dist/authconnection-DvUQAjQS.d.mts +0 -39
- package/dist/client-Dbohmtkv.mjs +0 -3
- package/dist/client-z_oHGVNy.mjs.map +0 -1
- package/dist/context-BuuIb8CC.d.mts +0 -68
- 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-BB8Vs9O_.d.mts +0 -250
- package/dist/file-_oUZo76X.mjs.map +0 -1
- package/dist/file-utils-DcyIPFQh.mjs.map +0 -1
- package/dist/globals-Crz8o65k.mjs.map +0 -1
- package/dist/http-adapter.generated-WgMnb7Sb.d.mts +0 -580
- package/dist/iconv-Co-TOPuH.d.mts +0 -122
- package/dist/idp-BDbK5gjm.mjs.map +0 -1
- package/dist/idp-DrhVrLmV.d.mts +0 -160
- package/dist/index-5vPyRu1y.d.mts +0 -18
- package/dist/index-B7AKc18V.d.mts +0 -47
- package/dist/index-BlpzXncY.d.mts +0 -1016
- package/dist/index-CK7u9isy.d.mts +0 -46
- package/dist/index-CNYe5lnW.d.mts +0 -18
- package/dist/index-DjUdWlzf.d.mts +0 -18
- package/dist/index-ZePLwxw7.d.mts +0 -208
- package/dist/interceptor-D-q1rvRl.mjs.map +0 -1
- package/dist/job-fuc3j1Ma.mjs +0 -53
- package/dist/job-fuc3j1Ma.mjs.map +0 -1
- package/dist/kysely-type-DR8uzZTA.mjs.map +0 -1
- package/dist/mock-BjFj5o1I.mjs +0 -804
- package/dist/mock-BjFj5o1I.mjs.map +0 -1
- package/dist/registry-DdsYlL_P.mjs.map +0 -1
- package/dist/runtime-n9NCkjee.mjs.map +0 -1
- package/dist/schema-BhkpP5Hw.mjs.map +0 -1
- package/dist/secret-file-DBqZhjFQ.mjs.map +0 -1
- package/dist/secretmanager-B3n4KHfm.d.mts +0 -55
- package/dist/seed-jf3008-h.mjs.map +0 -1
- package/dist/service-CCL8ruDf.mjs +0 -459
- package/dist/service-CCL8ruDf.mjs.map +0 -1
- package/dist/service-D6yonf2I.mjs +0 -3
- package/dist/telemetry-CdqJEzkj.mjs.map +0 -1
- package/dist/telemetry-ClwW5ohF.mjs +0 -3
- package/dist/test-env-key-D9kM6ETE.mjs +0 -49
- package/dist/test-env-key-D9kM6ETE.mjs.map +0 -1
- package/dist/types-B2RpYyA_.mjs +0 -371
- package/dist/types-B2RpYyA_.mjs.map +0 -1
- package/dist/types-ClhIrW_C.mjs +0 -4
- package/dist/types-DCUhgpyI.d.mts +0 -784
- package/dist/types-DhO_VEZd.d.mts +0 -574
- package/dist/types-DwDgacni.d.mts +0 -338
- package/dist/workflow-BbKvGLQg.d.mts +0 -96
- package/dist/workflow-DgemCAz3.mjs.map +0 -1
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import { Message } from "@bufbuild/protobuf";
|
|
3
|
+
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
|
|
5
|
+
//#region ../tailor-proto/src/tailor/v1/workspace_resource_pb.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* @generated from message tailor.v1.Organization
|
|
8
|
+
*/
|
|
9
|
+
declare type Organization = Message<"tailor.v1.Organization"> & {
|
|
10
|
+
/**
|
|
11
|
+
* @generated from field: string id = 1;
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* @generated from field: string name = 2;
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: google.protobuf.Timestamp create_time = 3;
|
|
20
|
+
*/
|
|
21
|
+
createTime?: Timestamp;
|
|
22
|
+
/**
|
|
23
|
+
* @generated from field: google.protobuf.Timestamp update_time = 4;
|
|
24
|
+
*/
|
|
25
|
+
updateTime?: Timestamp;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @generated from message tailor.v1.OrganizationAccess
|
|
29
|
+
*/
|
|
30
|
+
declare type OrganizationAccess = Message<"tailor.v1.OrganizationAccess"> & {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from field: string organization_id = 1;
|
|
33
|
+
*/
|
|
34
|
+
organizationId: string;
|
|
35
|
+
/**
|
|
36
|
+
* @generated from field: tailor.v1.OrganizationRole role = 2;
|
|
37
|
+
*/
|
|
38
|
+
role: OrganizationRole;
|
|
39
|
+
/**
|
|
40
|
+
* @generated from oneof tailor.v1.OrganizationAccess.member
|
|
41
|
+
*/
|
|
42
|
+
member: {
|
|
43
|
+
/**
|
|
44
|
+
* @generated from field: tailor.v1.OrganizationAccess.Team team = 3;
|
|
45
|
+
*/
|
|
46
|
+
value: OrganizationAccess_Team;
|
|
47
|
+
case: "team";
|
|
48
|
+
} | {
|
|
49
|
+
/**
|
|
50
|
+
* @generated from field: tailor.v1.OrganizationAccess.PlatformUser platform_user = 4;
|
|
51
|
+
*/
|
|
52
|
+
value: OrganizationAccess_PlatformUser;
|
|
53
|
+
case: "platformUser";
|
|
54
|
+
} | {
|
|
55
|
+
/**
|
|
56
|
+
* @generated from field: tailor.v1.OrganizationAccess.MachineUser machine_user = 5;
|
|
57
|
+
*/
|
|
58
|
+
value: OrganizationAccess_MachineUser;
|
|
59
|
+
case: "machineUser";
|
|
60
|
+
} | {
|
|
61
|
+
case: undefined;
|
|
62
|
+
value?: undefined;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @generated from message tailor.v1.OrganizationAccess.PlatformUser
|
|
67
|
+
*/
|
|
68
|
+
declare type OrganizationAccess_PlatformUser = Message<"tailor.v1.OrganizationAccess.PlatformUser"> & {
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string id = 1;
|
|
71
|
+
*/
|
|
72
|
+
id: string;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from field: string email = 2;
|
|
75
|
+
*/
|
|
76
|
+
email: string;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @generated from message tailor.v1.OrganizationAccess.Team
|
|
80
|
+
*/
|
|
81
|
+
declare type OrganizationAccess_Team = Message<"tailor.v1.OrganizationAccess.Team"> & {
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: string id = 1;
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: string name = 2;
|
|
88
|
+
*/
|
|
89
|
+
name: string;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message tailor.v1.OrganizationAccess.MachineUser
|
|
93
|
+
*/
|
|
94
|
+
declare type OrganizationAccess_MachineUser = Message<"tailor.v1.OrganizationAccess.MachineUser"> & {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: string id = 1;
|
|
97
|
+
*/
|
|
98
|
+
id: string;
|
|
99
|
+
/**
|
|
100
|
+
* @generated from field: string name = 2;
|
|
101
|
+
*/
|
|
102
|
+
name: string;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @generated from message tailor.v1.Folder
|
|
106
|
+
*/
|
|
107
|
+
declare type Folder = Message<"tailor.v1.Folder"> & {
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: string id = 1;
|
|
110
|
+
*/
|
|
111
|
+
id: string;
|
|
112
|
+
/**
|
|
113
|
+
* @generated from field: string name = 2;
|
|
114
|
+
*/
|
|
115
|
+
name: string;
|
|
116
|
+
/**
|
|
117
|
+
* @generated from field: string organization_id = 3;
|
|
118
|
+
*/
|
|
119
|
+
organizationId: string;
|
|
120
|
+
/**
|
|
121
|
+
* NOTE: can be empty = top level folder in organization
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: string parent_folder_id = 4;
|
|
124
|
+
*/
|
|
125
|
+
parentFolderId: string;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: bool has_children = 7;
|
|
128
|
+
*/
|
|
129
|
+
hasChildren: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: google.protobuf.Timestamp create_time = 5;
|
|
132
|
+
*/
|
|
133
|
+
createTime?: Timestamp;
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: google.protobuf.Timestamp update_time = 6;
|
|
136
|
+
*/
|
|
137
|
+
updateTime?: Timestamp;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* @generated from message tailor.v1.FolderAccess
|
|
141
|
+
*/
|
|
142
|
+
declare type FolderAccess = Message<"tailor.v1.FolderAccess"> & {
|
|
143
|
+
/**
|
|
144
|
+
* @generated from field: string folder_id = 1;
|
|
145
|
+
*/
|
|
146
|
+
folderId: string;
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: tailor.v1.FolderRole role = 2;
|
|
149
|
+
*/
|
|
150
|
+
role: FolderRole;
|
|
151
|
+
/**
|
|
152
|
+
* @generated from oneof tailor.v1.FolderAccess.member
|
|
153
|
+
*/
|
|
154
|
+
member: {
|
|
155
|
+
/**
|
|
156
|
+
* @generated from field: tailor.v1.FolderAccess.Team team = 3;
|
|
157
|
+
*/
|
|
158
|
+
value: FolderAccess_Team;
|
|
159
|
+
case: "team";
|
|
160
|
+
} | {
|
|
161
|
+
/**
|
|
162
|
+
* @generated from field: tailor.v1.FolderAccess.PlatformUser platform_user = 4;
|
|
163
|
+
*/
|
|
164
|
+
value: FolderAccess_PlatformUser;
|
|
165
|
+
case: "platformUser";
|
|
166
|
+
} | {
|
|
167
|
+
/**
|
|
168
|
+
* @generated from field: tailor.v1.FolderAccess.MachineUser machine_user = 5;
|
|
169
|
+
*/
|
|
170
|
+
value: FolderAccess_MachineUser;
|
|
171
|
+
case: "machineUser";
|
|
172
|
+
} | {
|
|
173
|
+
case: undefined;
|
|
174
|
+
value?: undefined;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* @generated from message tailor.v1.FolderAccess.PlatformUser
|
|
179
|
+
*/
|
|
180
|
+
declare type FolderAccess_PlatformUser = Message<"tailor.v1.FolderAccess.PlatformUser"> & {
|
|
181
|
+
/**
|
|
182
|
+
* @generated from field: string id = 1;
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
185
|
+
/**
|
|
186
|
+
* @generated from field: string email = 2;
|
|
187
|
+
*/
|
|
188
|
+
email: string;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* @generated from message tailor.v1.FolderAccess.Team
|
|
192
|
+
*/
|
|
193
|
+
declare type FolderAccess_Team = Message<"tailor.v1.FolderAccess.Team"> & {
|
|
194
|
+
/**
|
|
195
|
+
* @generated from field: string id = 1;
|
|
196
|
+
*/
|
|
197
|
+
id: string;
|
|
198
|
+
/**
|
|
199
|
+
* @generated from field: string name = 2;
|
|
200
|
+
*/
|
|
201
|
+
name: string;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* @generated from message tailor.v1.FolderAccess.MachineUser
|
|
205
|
+
*/
|
|
206
|
+
declare type FolderAccess_MachineUser = Message<"tailor.v1.FolderAccess.MachineUser"> & {
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string id = 1;
|
|
209
|
+
*/
|
|
210
|
+
id: string;
|
|
211
|
+
/**
|
|
212
|
+
* @generated from field: string name = 2;
|
|
213
|
+
*/
|
|
214
|
+
name: string;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* @generated from message tailor.v1.Team
|
|
218
|
+
*/
|
|
219
|
+
declare type Team = Message<"tailor.v1.Team"> & {
|
|
220
|
+
/**
|
|
221
|
+
* @generated from field: string id = 1;
|
|
222
|
+
*/
|
|
223
|
+
id: string;
|
|
224
|
+
/**
|
|
225
|
+
* @generated from field: string name = 2;
|
|
226
|
+
*/
|
|
227
|
+
name: string;
|
|
228
|
+
/**
|
|
229
|
+
* @generated from field: string organization_id = 3;
|
|
230
|
+
*/
|
|
231
|
+
organizationId: string;
|
|
232
|
+
/**
|
|
233
|
+
* @generated from field: google.protobuf.Timestamp create_time = 4;
|
|
234
|
+
*/
|
|
235
|
+
createTime?: Timestamp;
|
|
236
|
+
/**
|
|
237
|
+
* @generated from field: google.protobuf.Timestamp update_time = 5;
|
|
238
|
+
*/
|
|
239
|
+
updateTime?: Timestamp;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* @generated from message tailor.v1.TeamMember
|
|
243
|
+
*/
|
|
244
|
+
declare type TeamMember = Message<"tailor.v1.TeamMember"> & {
|
|
245
|
+
/**
|
|
246
|
+
* @generated from field: string team_id = 1;
|
|
247
|
+
*/
|
|
248
|
+
teamId: string;
|
|
249
|
+
/**
|
|
250
|
+
* @generated from field: tailor.v1.TeamMember.PlatformUser platform_user = 2;
|
|
251
|
+
*/
|
|
252
|
+
platformUser?: TeamMember_PlatformUser;
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: tailor.v1.TeamRole role = 3;
|
|
255
|
+
*/
|
|
256
|
+
role: TeamRole;
|
|
257
|
+
};
|
|
258
|
+
/**
|
|
259
|
+
* @generated from message tailor.v1.TeamMember.PlatformUser
|
|
260
|
+
*/
|
|
261
|
+
declare type TeamMember_PlatformUser = Message<"tailor.v1.TeamMember.PlatformUser"> & {
|
|
262
|
+
/**
|
|
263
|
+
* @generated from field: string user_id = 1;
|
|
264
|
+
*/
|
|
265
|
+
userId: string;
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: string email = 2;
|
|
268
|
+
*/
|
|
269
|
+
email: string;
|
|
270
|
+
};
|
|
271
|
+
/**
|
|
272
|
+
* @generated from message tailor.v1.Workspace
|
|
273
|
+
*/
|
|
274
|
+
declare type Workspace = Message<"tailor.v1.Workspace"> & {
|
|
275
|
+
/**
|
|
276
|
+
* @generated from field: string id = 1;
|
|
277
|
+
*/
|
|
278
|
+
id: string;
|
|
279
|
+
/**
|
|
280
|
+
* @generated from field: string name = 2;
|
|
281
|
+
*/
|
|
282
|
+
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* @generated from field: string create_user_id = 3;
|
|
285
|
+
*/
|
|
286
|
+
createUserId: string;
|
|
287
|
+
/**
|
|
288
|
+
* @generated from field: string update_user_id = 4;
|
|
289
|
+
*/
|
|
290
|
+
updateUserId: string;
|
|
291
|
+
/**
|
|
292
|
+
* @generated from field: google.protobuf.Timestamp create_time = 5;
|
|
293
|
+
*/
|
|
294
|
+
createTime?: Timestamp;
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: google.protobuf.Timestamp update_time = 6;
|
|
297
|
+
*/
|
|
298
|
+
updateTime?: Timestamp;
|
|
299
|
+
/**
|
|
300
|
+
* @generated from field: string region = 8;
|
|
301
|
+
*/
|
|
302
|
+
region: string;
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: bool delete_protection = 9;
|
|
305
|
+
*/
|
|
306
|
+
deleteProtection: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: string organization_id = 10;
|
|
309
|
+
*/
|
|
310
|
+
organizationId: string;
|
|
311
|
+
/**
|
|
312
|
+
* @generated from field: string folder_id = 11;
|
|
313
|
+
*/
|
|
314
|
+
folderId: string;
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* @generated from message tailor.v1.WorkspacePlatformUser
|
|
318
|
+
*/
|
|
319
|
+
declare type WorkspacePlatformUser = Message<"tailor.v1.WorkspacePlatformUser"> & {
|
|
320
|
+
/**
|
|
321
|
+
* @generated from field: tailor.v1.WorkspacePlatformUserRole role = 1;
|
|
322
|
+
*/
|
|
323
|
+
role: WorkspacePlatformUserRole;
|
|
324
|
+
/**
|
|
325
|
+
* @generated from field: tailor.v1.WorkspacePlatformUser.PlatformUser platform_user = 2;
|
|
326
|
+
*/
|
|
327
|
+
platformUser?: WorkspacePlatformUser_PlatformUser;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @generated from message tailor.v1.WorkspacePlatformUser.PlatformUser
|
|
331
|
+
*/
|
|
332
|
+
declare type WorkspacePlatformUser_PlatformUser = Message<"tailor.v1.WorkspacePlatformUser.PlatformUser"> & {
|
|
333
|
+
/**
|
|
334
|
+
* @generated from field: string user_id = 1;
|
|
335
|
+
*/
|
|
336
|
+
userId: string;
|
|
337
|
+
/**
|
|
338
|
+
* @generated from field: string email = 2;
|
|
339
|
+
*/
|
|
340
|
+
email: string;
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* @generated from message tailor.v1.PlatformAccountPlan
|
|
344
|
+
*/
|
|
345
|
+
declare type PlatformAccountPlan = Message<"tailor.v1.PlatformAccountPlan"> & {
|
|
346
|
+
/**
|
|
347
|
+
* @generated from field: tailor.v1.PlatformAccountPlanType plan_type = 1;
|
|
348
|
+
*/
|
|
349
|
+
planType: PlatformAccountPlanType;
|
|
350
|
+
/**
|
|
351
|
+
* @generated from oneof tailor.v1.PlatformAccountPlan.plan_meta
|
|
352
|
+
*/
|
|
353
|
+
planMeta: {
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: tailor.v1.PlatformAccountPlan.PlatformAccountPlanTrial trial = 2;
|
|
356
|
+
*/
|
|
357
|
+
value: PlatformAccountPlan_PlatformAccountPlanTrial;
|
|
358
|
+
case: "trial";
|
|
359
|
+
} | {
|
|
360
|
+
case: undefined;
|
|
361
|
+
value?: undefined;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* @generated from message tailor.v1.PlatformAccountPlan.PlatformAccountPlanTrial
|
|
366
|
+
*/
|
|
367
|
+
declare type PlatformAccountPlan_PlatformAccountPlanTrial = Message<"tailor.v1.PlatformAccountPlan.PlatformAccountPlanTrial"> & {
|
|
368
|
+
/**
|
|
369
|
+
* @generated from field: google.protobuf.Timestamp start_at = 1;
|
|
370
|
+
*/
|
|
371
|
+
startAt?: Timestamp;
|
|
372
|
+
/**
|
|
373
|
+
* @generated from field: google.protobuf.Timestamp end_at = 2;
|
|
374
|
+
*/
|
|
375
|
+
endAt?: Timestamp;
|
|
376
|
+
/**
|
|
377
|
+
* @generated from field: bool is_expired = 3;
|
|
378
|
+
*/
|
|
379
|
+
isExpired: boolean;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* @generated from enum tailor.v1.OrganizationRole
|
|
383
|
+
*/
|
|
384
|
+
declare enum OrganizationRole {
|
|
385
|
+
/**
|
|
386
|
+
* @generated from enum value: ORGANIZATION_ROLE_UNSPECIFIED = 0;
|
|
387
|
+
*/
|
|
388
|
+
UNSPECIFIED = 0,
|
|
389
|
+
/**
|
|
390
|
+
* @generated from enum value: ORGANIZATION_ROLE_ADMIN = 1;
|
|
391
|
+
*/
|
|
392
|
+
ADMIN = 1,
|
|
393
|
+
/**
|
|
394
|
+
* @generated from enum value: ORGANIZATION_ROLE_EDITOR = 2;
|
|
395
|
+
*/
|
|
396
|
+
EDITOR = 2,
|
|
397
|
+
/**
|
|
398
|
+
* @generated from enum value: ORGANIZATION_ROLE_VIEWER = 3;
|
|
399
|
+
*/
|
|
400
|
+
VIEWER = 3
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @generated from enum tailor.v1.FolderRole
|
|
404
|
+
*/
|
|
405
|
+
declare enum FolderRole {
|
|
406
|
+
/**
|
|
407
|
+
* @generated from enum value: FOLDER_ROLE_UNSPECIFIED = 0;
|
|
408
|
+
*/
|
|
409
|
+
UNSPECIFIED = 0,
|
|
410
|
+
/**
|
|
411
|
+
* @generated from enum value: FOLDER_ROLE_ADMIN = 1;
|
|
412
|
+
*/
|
|
413
|
+
ADMIN = 1,
|
|
414
|
+
/**
|
|
415
|
+
* @generated from enum value: FOLDER_ROLE_EDITOR = 2;
|
|
416
|
+
*/
|
|
417
|
+
EDITOR = 2,
|
|
418
|
+
/**
|
|
419
|
+
* @generated from enum value: FOLDER_ROLE_VIEWER = 3;
|
|
420
|
+
*/
|
|
421
|
+
VIEWER = 3
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @generated from enum tailor.v1.TeamRole
|
|
425
|
+
*/
|
|
426
|
+
declare enum TeamRole {
|
|
427
|
+
/**
|
|
428
|
+
* @generated from enum value: TEAM_ROLE_UNSPECIFIED = 0;
|
|
429
|
+
*/
|
|
430
|
+
UNSPECIFIED = 0,
|
|
431
|
+
/**
|
|
432
|
+
* @generated from enum value: TEAM_ROLE_ADMIN = 1;
|
|
433
|
+
*/
|
|
434
|
+
ADMIN = 1,
|
|
435
|
+
/**
|
|
436
|
+
* @generated from enum value: TEAM_ROLE_MANAGER = 2;
|
|
437
|
+
*/
|
|
438
|
+
MANAGER = 2,
|
|
439
|
+
/**
|
|
440
|
+
* @generated from enum value: TEAM_ROLE_MEMBER = 3;
|
|
441
|
+
*/
|
|
442
|
+
MEMBER = 3
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* @generated from enum tailor.v1.WorkspacePlatformUserRole
|
|
446
|
+
*/
|
|
447
|
+
declare enum WorkspacePlatformUserRole {
|
|
448
|
+
/**
|
|
449
|
+
* @generated from enum value: WORKSPACE_PLATFORM_USER_ROLE_UNSPECIFIED = 0;
|
|
450
|
+
*/
|
|
451
|
+
UNSPECIFIED = 0,
|
|
452
|
+
/**
|
|
453
|
+
* @generated from enum value: WORKSPACE_PLATFORM_USER_ROLE_ADMIN = 1;
|
|
454
|
+
*/
|
|
455
|
+
ADMIN = 1,
|
|
456
|
+
/**
|
|
457
|
+
* @generated from enum value: WORKSPACE_PLATFORM_USER_ROLE_EDITOR = 2;
|
|
458
|
+
*/
|
|
459
|
+
EDITOR = 2,
|
|
460
|
+
/**
|
|
461
|
+
* @generated from enum value: WORKSPACE_PLATFORM_USER_ROLE_VIEWER = 3;
|
|
462
|
+
*/
|
|
463
|
+
VIEWER = 3
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* @generated from enum tailor.v1.PlatformAccountPlanType
|
|
467
|
+
*/
|
|
468
|
+
declare enum PlatformAccountPlanType {
|
|
469
|
+
/**
|
|
470
|
+
* @generated from enum value: PLATFORM_ACCOUNT_PLAN_TYPE_UNSPECIFIED = 0;
|
|
471
|
+
*/
|
|
472
|
+
UNSPECIFIED = 0,
|
|
473
|
+
/**
|
|
474
|
+
* @generated from enum value: PLATFORM_ACCOUNT_PLAN_TYPE_TRIAL = 1;
|
|
475
|
+
*/
|
|
476
|
+
TRIAL = 1,
|
|
477
|
+
/**
|
|
478
|
+
* @generated from enum value: PLATFORM_ACCOUNT_PLAN_TYPE_BASIC = 2;
|
|
479
|
+
*/
|
|
480
|
+
BASIC = 2
|
|
481
|
+
}
|
|
482
|
+
//#endregion
|
|
483
|
+
export { Folder, FolderAccess, FolderAccess_MachineUser, FolderAccess_PlatformUser, FolderAccess_Team, FolderRole, Organization, OrganizationAccess, OrganizationAccess_MachineUser, OrganizationAccess_PlatformUser, OrganizationAccess_Team, OrganizationRole, PlatformAccountPlan, PlatformAccountPlanType, PlatformAccountPlan_PlatformAccountPlanTrial, Team, TeamMember, TeamMember_PlatformUser, TeamRole, Workspace, WorkspacePlatformUser, WorkspacePlatformUserRole, WorkspacePlatformUser_PlatformUser };
|
|
@@ -39,7 +39,7 @@ async function initTelemetry() {
|
|
|
39
39
|
const version = (await readPackageJson()).version ?? "unknown";
|
|
40
40
|
_provider = new NodeTracerProvider({
|
|
41
41
|
resource: resourceFromAttributes({
|
|
42
|
-
[ATTR_SERVICE_NAME]: "tailor
|
|
42
|
+
[ATTR_SERVICE_NAME]: "tailor",
|
|
43
43
|
[ATTR_SERVICE_VERSION]: version
|
|
44
44
|
}),
|
|
45
45
|
spanProcessors: [new BatchSpanProcessor(new OTLPTraceExporter({ url: `${_config.endpoint}/v1/traces` }))]
|
|
@@ -64,7 +64,7 @@ async function shutdownTelemetry() {
|
|
|
64
64
|
* @returns Result of fn
|
|
65
65
|
*/
|
|
66
66
|
async function withSpan(name, fn) {
|
|
67
|
-
return trace.getTracer("tailor
|
|
67
|
+
return trace.getTracer("tailor").startActiveSpan(name, async (span) => {
|
|
68
68
|
try {
|
|
69
69
|
const result = await fn(span);
|
|
70
70
|
span.setStatus({ code: SpanStatusCode.OK });
|
|
@@ -81,4 +81,4 @@ async function withSpan(name, fn) {
|
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
83
|
export { shutdownTelemetry as n, withSpan as r, initTelemetry as t };
|
|
84
|
-
//# sourceMappingURL=telemetry-
|
|
84
|
+
//# sourceMappingURL=telemetry-BRVdwh14.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry-BRVdwh14.mjs","names":[],"sources":["../src/cli/telemetry/config.ts","../src/cli/telemetry/index.ts"],"sourcesContent":["/**\n * Telemetry configuration parsed from standard OpenTelemetry environment variables.\n * Tracing is enabled when OTEL_EXPORTER_OTLP_ENDPOINT is set.\n */\nexport interface TelemetryConfig {\n readonly enabled: boolean;\n readonly endpoint: string;\n}\n\n/**\n * Parse telemetry configuration from standard OpenTelemetry environment variables.\n * Tracing is enabled when OTEL_EXPORTER_OTLP_ENDPOINT is set.\n * @returns Telemetry configuration\n */\nexport function parseTelemetryConfig(): TelemetryConfig {\n const endpoint = process.env.OTEL_EXPORTER_OTLP_ENDPOINT ?? \"\";\n const enabled = endpoint.length > 0;\n\n return {\n enabled,\n endpoint,\n };\n}\n","import { trace, SpanStatusCode, type Span } from \"@opentelemetry/api\";\nimport { parseTelemetryConfig, type TelemetryConfig } from \"./config\";\n\nlet _config: TelemetryConfig | undefined;\nlet _initialized = false;\nlet _provider: { register: () => void; shutdown: () => Promise<void> } | undefined;\n\n/**\n * Check whether telemetry is currently enabled.\n * @returns true if telemetry has been initialized and is enabled\n */\nexport function isTelemetryEnabled(): boolean {\n return _config?.enabled ?? false;\n}\n\n/**\n * Initialize telemetry if OTEL_EXPORTER_OTLP_ENDPOINT is set.\n * When disabled, this is a no-op with zero overhead beyond reading env vars.\n * @returns Promise that resolves when initialization completes\n */\nexport async function initTelemetry(): Promise<void> {\n if (_initialized) return;\n _initialized = true;\n\n _config = parseTelemetryConfig();\n if (!_config.enabled) return;\n\n // Dynamic imports - only loaded when tracing is enabled\n const [\n { NodeTracerProvider, BatchSpanProcessor },\n { OTLPTraceExporter },\n { resourceFromAttributes },\n { ATTR_SERVICE_NAME, ATTR_SERVICE_VERSION },\n { readPackageJson },\n ] = await Promise.all([\n import(\"@opentelemetry/sdk-trace-node\"),\n import(\"@opentelemetry/exporter-trace-otlp-proto\"),\n import(\"@opentelemetry/resources\"),\n import(\"@opentelemetry/semantic-conventions\"),\n import(\"#/cli/shared/package-json\"),\n ]);\n\n const packageJson = await readPackageJson();\n const version = packageJson.version ?? \"unknown\";\n\n const resource = resourceFromAttributes({\n [ATTR_SERVICE_NAME]: \"tailor\",\n [ATTR_SERVICE_VERSION]: version,\n });\n\n const exporter = new OTLPTraceExporter({\n url: `${_config.endpoint}/v1/traces`,\n });\n\n _provider = new NodeTracerProvider({\n resource,\n spanProcessors: [new BatchSpanProcessor(exporter)],\n });\n\n _provider.register();\n}\n\n/**\n * Shutdown the telemetry provider, flushing all pending spans.\n * Must be called before process exit to ensure traces are exported.\n * @returns Promise that resolves when shutdown completes\n */\nexport async function shutdownTelemetry(): Promise<void> {\n if (!_provider) return;\n await _provider.shutdown();\n}\n\n/**\n * Execute a function within a new span. Records exceptions and sets span status.\n * When no TracerProvider is registered, the OTel API automatically provides\n * noop spans with zero overhead.\n * @param name - Span name\n * @param fn - Function to execute within the span\n * @returns Result of fn\n */\nexport async function withSpan<T>(name: string, fn: (span: Span) => Promise<T>): Promise<T> {\n const tracer = trace.getTracer(\"tailor\");\n\n return tracer.startActiveSpan(name, async (span) => {\n try {\n const result = await fn(span);\n span.setStatus({ code: SpanStatusCode.OK });\n return result;\n } catch (error) {\n span.setStatus({ code: SpanStatusCode.ERROR });\n if (error instanceof Error) {\n span.recordException(error);\n }\n throw error;\n } finally {\n span.end();\n }\n });\n}\n"],"mappings":";;;;;;;;AAcA,SAAgB,uBAAwC;CACtD,MAAM,WAAW,QAAQ,IAAI,+BAA+B;CAG5D,OAAO;EACL,SAHc,SAAS,SAAS;EAIhC;CACF;AACF;;;;ACnBA,IAAI;AACJ,IAAI,eAAe;AACnB,IAAI;;;;;;AAeJ,eAAsB,gBAA+B;CACnD,IAAI,cAAc;CAClB,eAAe;CAEf,UAAU,qBAAqB;CAC/B,IAAI,CAAC,QAAQ,SAAS;CAGtB,MAAM,CACJ,EAAE,oBAAoB,sBACtB,EAAE,qBACF,EAAE,0BACF,EAAE,mBAAmB,wBACrB,EAAE,qBACA,MAAM,QAAQ,IAAI;EACpB,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;EACP,OAAO;CACT,CAAC;CAGD,MAAM,WAAU,MADU,gBAAgB,EACf,CAAC,WAAW;CAWvC,YAAY,IAAI,mBAAmB;EACjC,UAVe,uBAAuB;IACrC,oBAAoB;IACpB,uBAAuB;EAC1B,CAOS;EACP,gBAAgB,CAAC,IAAI,mBAAmB,IANrB,kBAAkB,EACrC,KAAK,GAAG,QAAQ,SAAS,YAC3B,CAIiD,CAAC,CAAC;CACnD,CAAC;CAED,UAAU,SAAS;AACrB;;;;;;AAOA,eAAsB,oBAAmC;CACvD,IAAI,CAAC,WAAW;CAChB,MAAM,UAAU,SAAS;AAC3B;;;;;;;;;AAUA,eAAsB,SAAY,MAAc,IAA4C;CAG1F,OAFe,MAAM,UAAU,QAEnB,CAAC,CAAC,gBAAgB,MAAM,OAAO,SAAS;EAClD,IAAI;GACF,MAAM,SAAS,MAAM,GAAG,IAAI;GAC5B,KAAK,UAAU,EAAE,MAAM,eAAe,GAAG,CAAC;GAC1C,OAAO;EACT,SAAS,OAAO;GACd,KAAK,UAAU,EAAE,MAAM,eAAe,MAAM,CAAC;GAC7C,IAAI,iBAAiB,OACnB,KAAK,gBAAgB,KAAK;GAE5B,MAAM;EACR,UAAU;GACR,KAAK,IAAI;EACX;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
|
|
3
|
+
//#region src/configure/services/workflow/test-env-key.ts
|
|
4
|
+
/**
|
|
5
|
+
* Typed accessors for the test-time globalThis slot used to pass `env` from
|
|
6
|
+
* `mockWorkflow().setEnv()` (in `@tailor-platform/sdk/vitest`) to
|
|
7
|
+
* `runWorkflowLocally()` job bodies. The slot key is private to this
|
|
8
|
+
* module; callers go through the get/set/clear functions below so both sides
|
|
9
|
+
* share the same access path.
|
|
10
|
+
*
|
|
11
|
+
* Lives in its own file (with no `@/` imports) so `vitest/mock.ts` can load
|
|
12
|
+
* it from nested Vitest configs that do not resolve `@/` aliases.
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
const SLOT_KEY = "__tailorWorkflowTestEnv";
|
|
16
|
+
let invokerStorage;
|
|
17
|
+
function workflowInvokerStorage() {
|
|
18
|
+
if (!invokerStorage) invokerStorage = new AsyncLocalStorage();
|
|
19
|
+
return invokerStorage;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Read the test-time env slot.
|
|
23
|
+
* @returns Current env, or `undefined` when unset.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
function readWorkflowTestEnv() {
|
|
27
|
+
return globalThis[SLOT_KEY];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Write the test-time env slot.
|
|
31
|
+
* @param env - Env value to expose to `runWorkflowLocally()` job bodies.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
function writeWorkflowTestEnv(env) {
|
|
35
|
+
globalThis[SLOT_KEY] = env;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Clear the test-time env slot.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
function clearWorkflowTestEnv() {
|
|
42
|
+
delete globalThis[SLOT_KEY];
|
|
43
|
+
}
|
|
44
|
+
function withWorkflowTestInvoker(invoker, run) {
|
|
45
|
+
return workflowInvokerStorage().run(invoker, run);
|
|
46
|
+
}
|
|
47
|
+
function readRuntimeInvoker() {
|
|
48
|
+
const runtime = globalThis.tailor?.context?.getInvoker;
|
|
49
|
+
const raw = runtime?.();
|
|
50
|
+
if (!raw) return null;
|
|
51
|
+
return {
|
|
52
|
+
id: raw.id,
|
|
53
|
+
type: raw.type,
|
|
54
|
+
workspaceId: raw.workspaceId,
|
|
55
|
+
attributes: raw.attributeMap ?? (Array.isArray(raw.attributes) ? {} : raw.attributes ?? {}),
|
|
56
|
+
attributeList: raw.attributeList ?? (Array.isArray(raw.attributes) ? raw.attributes : [])
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
function buildJobContext() {
|
|
60
|
+
const storedInvoker = invokerStorage?.getStore();
|
|
61
|
+
const invoker = storedInvoker === void 0 ? readRuntimeInvoker() : storedInvoker;
|
|
62
|
+
const fromGlobal = readWorkflowTestEnv();
|
|
63
|
+
if (fromGlobal !== void 0) return {
|
|
64
|
+
env: { ...fromGlobal },
|
|
65
|
+
invoker
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
env: {},
|
|
69
|
+
invoker
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export { writeWorkflowTestEnv as a, withWorkflowTestInvoker as i, clearWorkflowTestEnv as n, readWorkflowTestEnv as r, buildJobContext as t };
|
|
75
|
+
//# sourceMappingURL=test-env-key-D7UkZp99.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-env-key-D7UkZp99.mjs","names":[],"sources":["../src/configure/services/workflow/test-env-key.ts"],"sourcesContent":["/**\n * Typed accessors for the test-time globalThis slot used to pass `env` from\n * `mockWorkflow().setEnv()` (in `@tailor-platform/sdk/vitest`) to\n * `runWorkflowLocally()` job bodies. The slot key is private to this\n * module; callers go through the get/set/clear functions below so both sides\n * share the same access path.\n *\n * Lives in its own file (with no `@/` imports) so `vitest/mock.ts` can load\n * it from nested Vitest configs that do not resolve `@/` aliases.\n * @internal\n */\nimport { AsyncLocalStorage } from \"node:async_hooks\";\nimport type { TailorEnv, TailorPrincipal } from \"../../../runtime/types\";\n\nconst SLOT_KEY = \"__tailorWorkflowTestEnv\";\n\ntype AsyncLocalStorageLike<T> = {\n getStore(): T | undefined;\n run<R>(store: T, callback: () => R): R;\n};\n\nlet invokerStorage: AsyncLocalStorageLike<TailorPrincipal | null> | undefined;\n\nfunction workflowInvokerStorage(): AsyncLocalStorageLike<TailorPrincipal | null> {\n if (!invokerStorage) {\n invokerStorage = new AsyncLocalStorage<TailorPrincipal | null>();\n }\n return invokerStorage;\n}\n\n/**\n * Read the test-time env slot.\n * @returns Current env, or `undefined` when unset.\n * @internal\n */\nexport function readWorkflowTestEnv(): TailorEnv | undefined {\n return (globalThis as unknown as Record<string, TailorEnv | undefined>)[SLOT_KEY];\n}\n\n/**\n * Write the test-time env slot.\n * @param env - Env value to expose to `runWorkflowLocally()` job bodies.\n * @internal\n */\nexport function writeWorkflowTestEnv(env: TailorEnv): void {\n (globalThis as unknown as Record<string, TailorEnv>)[SLOT_KEY] = env;\n}\n\n/**\n * Clear the test-time env slot.\n * @internal\n */\nexport function clearWorkflowTestEnv(): void {\n delete (globalThis as unknown as Record<string, unknown>)[SLOT_KEY];\n}\n\nexport function withWorkflowTestInvoker<T>(invoker: TailorPrincipal | null, run: () => T): T {\n return workflowInvokerStorage().run(invoker, run);\n}\n\ntype RuntimeInvoker = {\n id: string;\n type: \"user\" | \"machine_user\";\n workspaceId: string;\n attributes?: string[] | TailorPrincipal[\"attributes\"];\n attributeMap?: TailorPrincipal[\"attributes\"];\n attributeList?: TailorPrincipal[\"attributeList\"];\n};\n\nfunction readRuntimeInvoker(): TailorPrincipal | null {\n const runtime = (\n globalThis as unknown as {\n tailor?: { context?: { getInvoker?: () => RuntimeInvoker | null } };\n }\n ).tailor?.context?.getInvoker;\n const raw = runtime?.();\n if (!raw) return null;\n return {\n id: raw.id,\n type: raw.type,\n workspaceId: raw.workspaceId,\n attributes: raw.attributeMap ?? (Array.isArray(raw.attributes) ? {} : (raw.attributes ?? {})),\n attributeList: (raw.attributeList ??\n (Array.isArray(raw.attributes) ? raw.attributes : [])) as TailorPrincipal[\"attributeList\"],\n };\n}\n\n// Shallow-copied to isolate against cross-trigger mutation.\nexport function buildJobContext(): { env: TailorEnv; invoker: TailorPrincipal | null } {\n const storedInvoker = invokerStorage?.getStore();\n const invoker = storedInvoker === undefined ? readRuntimeInvoker() : storedInvoker;\n const fromGlobal = readWorkflowTestEnv();\n if (fromGlobal !== undefined) return { env: { ...fromGlobal }, invoker };\n return { env: {} as TailorEnv, invoker };\n}\n"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,WAAW;AAOjB,IAAI;AAEJ,SAAS,yBAAwE;CAC/E,IAAI,CAAC,gBACH,iBAAiB,IAAI,kBAA0C;CAEjE,OAAO;AACT;;;;;;AAOA,SAAgB,sBAA6C;CAC3D,OAAQ,WAAgE;AAC1E;;;;;;AAOA,SAAgB,qBAAqB,KAAsB;CACzD,AAAC,WAAoD,YAAY;AACnE;;;;;AAMA,SAAgB,uBAA6B;CAC3C,OAAQ,WAAkD;AAC5D;AAEA,SAAgB,wBAA2B,SAAiC,KAAiB;CAC3F,OAAO,uBAAuB,CAAC,CAAC,IAAI,SAAS,GAAG;AAClD;AAWA,SAAS,qBAA6C;CACpD,MAAM,UACJ,WAGA,QAAQ,SAAS;CACnB,MAAM,MAAM,UAAU;CACtB,IAAI,CAAC,KAAK,OAAO;CACjB,OAAO;EACL,IAAI,IAAI;EACR,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,YAAY,IAAI,iBAAiB,MAAM,QAAQ,IAAI,UAAU,IAAI,CAAC,IAAK,IAAI,cAAc,CAAC;EAC1F,eAAgB,IAAI,kBACjB,MAAM,QAAQ,IAAI,UAAU,IAAI,IAAI,aAAa,CAAC;CACvD;AACF;AAGA,SAAgB,kBAAuE;CACrF,MAAM,gBAAgB,gBAAgB,SAAS;CAC/C,MAAM,UAAU,kBAAkB,SAAY,mBAAmB,IAAI;CACrE,MAAM,aAAa,oBAAoB;CACvC,IAAI,eAAe,QAAW,OAAO;EAAE,KAAK,EAAE,GAAG,WAAW;EAAG;CAAQ;CACvE,OAAO;EAAE,KAAK,CAAC;EAAgB;CAAQ;AACzC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/types/aigateway.generated.d.ts
|
|
2
|
+
type AIGateway = {
|
|
3
|
+
/** AI Gateway name */name: string; /** Auth namespace used to resolve request tokens against the workspace's auth */
|
|
4
|
+
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. */
|
|
5
|
+
cors?: string[] | undefined;
|
|
6
|
+
};
|
|
7
|
+
type AIGatewayInput = AIGateway;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { AIGateway, AIGatewayInput };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/types/auth-connection.generated.d.ts
|
|
2
|
+
type AuthConnectionOAuth2Config = {
|
|
3
|
+
/** OAuth2 provider URL */providerUrl: string; /** OAuth2 issuer URL */
|
|
4
|
+
issuerUrl: string; /** OAuth2 client ID */
|
|
5
|
+
clientId: string; /** OAuth2 client secret */
|
|
6
|
+
clientSecret: string; /** OAuth2 authorization endpoint override */
|
|
7
|
+
authUrl?: string | undefined; /** OAuth2 token endpoint override */
|
|
8
|
+
tokenUrl?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
type AuthConnectionConfig = {
|
|
11
|
+
/** OAuth2 provider URL */providerUrl: string; /** OAuth2 issuer URL */
|
|
12
|
+
issuerUrl: string; /** OAuth2 client ID */
|
|
13
|
+
clientId: string; /** OAuth2 client secret */
|
|
14
|
+
clientSecret: string; /** Connection type */
|
|
15
|
+
type: "oauth2"; /** OAuth2 authorization endpoint override */
|
|
16
|
+
authUrl?: string | undefined; /** OAuth2 token endpoint override */
|
|
17
|
+
tokenUrl?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { AuthConnectionConfig, AuthConnectionOAuth2Config };
|