@tailor-platform/sdk 1.76.1 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/dist/{application-BUfYmf0O.mjs → application-CUxVA7Fs.mjs} +378 -1679
- package/dist/application-CUxVA7Fs.mjs.map +1 -0
- package/dist/application-Dp_-ioiP.mjs +3 -0
- package/dist/cli/cache/bundle-cache.d.mts +2 -1
- package/dist/cli/cache/store.d.mts +1 -1
- package/dist/cli/commands/api/index.d.mts +1 -0
- package/dist/cli/commands/deploy/aigateway.d.mts +5 -1
- package/dist/cli/commands/deploy/application.d.mts +7 -1
- package/dist/cli/commands/deploy/apply-phases.d.mts +14 -1
- package/dist/cli/commands/deploy/auth.d.mts +5 -1
- package/dist/cli/commands/deploy/deploy.d.mts +13 -3
- package/dist/cli/commands/deploy/executor.d.mts +7 -1
- package/dist/cli/commands/deploy/function-registry.d.mts +5 -0
- package/dist/cli/commands/deploy/idp.d.mts +5 -1
- package/dist/cli/commands/deploy/resolver.d.mts +5 -1
- package/dist/cli/commands/deploy/secret-manager.d.mts +5 -1
- package/dist/cli/commands/deploy/staticwebsite.d.mts +5 -1
- package/dist/cli/commands/deploy/tailordb/index.d.mts +8 -1
- package/dist/cli/commands/deploy/types.d.mts +3 -1
- package/dist/cli/commands/deploy/workflow-execution-policy.d.mts +3 -1
- package/dist/cli/commands/deploy/workflow.d.mts +4 -1
- package/dist/cli/commands/executor/get.d.mts +0 -1
- package/dist/cli/commands/executor/jobs.d.mts +0 -1
- package/dist/cli/commands/executor/list.d.mts +0 -1
- package/dist/cli/commands/executor/transform.d.mts +1 -0
- package/dist/cli/commands/executor/trigger.d.mts +0 -1
- package/dist/cli/commands/executor/webhook.d.mts +0 -1
- package/dist/cli/commands/function/get.d.mts +0 -1
- package/dist/cli/commands/function/list.d.mts +0 -1
- package/dist/cli/commands/function/transform.d.mts +1 -0
- package/dist/cli/commands/generate/service.d.mts +5 -1
- package/dist/cli/commands/generate/types.d.mts +3 -1
- package/dist/cli/commands/machineuser/list.d.mts +0 -1
- package/dist/cli/commands/machineuser/token.d.mts +0 -1
- package/dist/cli/commands/oauth2client/get.d.mts +0 -1
- package/dist/cli/commands/oauth2client/list.d.mts +0 -1
- package/dist/cli/commands/oauth2client/transform.d.mts +1 -0
- package/dist/cli/commands/organization/folder/create.d.mts +0 -1
- package/dist/cli/commands/organization/folder/delete.d.mts +0 -1
- package/dist/cli/commands/organization/folder/get.d.mts +0 -1
- package/dist/cli/commands/organization/folder/list.d.mts +0 -1
- package/dist/cli/commands/organization/folder/update.d.mts +0 -1
- package/dist/cli/commands/organization/get.d.mts +0 -1
- package/dist/cli/commands/organization/list.d.mts +0 -1
- package/dist/cli/commands/organization/transform.d.mts +2 -0
- package/dist/cli/commands/organization/tree.d.mts +0 -1
- package/dist/cli/commands/organization/update.d.mts +0 -1
- package/dist/cli/commands/remove.d.mts +0 -1
- package/dist/cli/commands/show.d.mts +9 -4
- package/dist/cli/commands/tailordb/migrate/config.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/generate.d.mts +0 -1
- package/dist/cli/commands/tailordb/migrate/snapshot.d.mts +1 -1
- package/dist/cli/commands/tailordb/truncate.d.mts +0 -1
- package/dist/cli/commands/workflow/executions.d.mts +0 -1
- package/dist/cli/commands/workflow/get.d.mts +2 -1
- package/dist/cli/commands/workflow/list.d.mts +0 -1
- package/dist/cli/commands/workflow/resume.d.mts +0 -1
- package/dist/cli/commands/workflow/start.d.mts +0 -1
- package/dist/cli/commands/workflow/status.d.mts +1 -0
- package/dist/cli/commands/workflow/transform.d.mts +1 -0
- package/dist/cli/commands/workflow/wait.d.mts +0 -1
- package/dist/cli/commands/workflow/waiter.d.mts +1 -1
- package/dist/cli/commands/workspace/app/health.d.mts +0 -1
- package/dist/cli/commands/workspace/app/list.d.mts +0 -1
- package/dist/cli/commands/workspace/app/transform.d.mts +2 -0
- package/dist/cli/commands/workspace/create.d.mts +3 -1
- package/dist/cli/commands/workspace/delete.d.mts +0 -1
- package/dist/cli/commands/workspace/get.d.mts +0 -1
- package/dist/cli/commands/workspace/list.d.mts +1 -1
- package/dist/cli/commands/workspace/restore.d.mts +0 -1
- package/dist/cli/commands/workspace/transform.d.mts +4 -0
- package/dist/cli/commands/workspace/user/invite.d.mts +0 -1
- package/dist/cli/commands/workspace/user/list.d.mts +0 -1
- package/dist/cli/commands/workspace/user/remove.d.mts +0 -1
- package/dist/cli/commands/workspace/user/transform.d.mts +1 -0
- package/dist/cli/commands/workspace/user/update.d.mts +0 -1
- package/dist/cli/index.d.mts +3 -1
- package/dist/cli/index.mjs +660 -56
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +4 -2
- package/dist/cli/lib.mjs +3 -3
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/query/index.d.mts +0 -1
- package/dist/cli/services/application.d.mts +12 -1
- package/dist/cli/services/auth/service.d.mts +2 -0
- package/dist/cli/services/executor/service.d.mts +1 -1
- package/dist/cli/services/http-adapter/bundler.d.mts +3 -1
- package/dist/cli/services/http-adapter/service.d.mts +2 -1
- package/dist/cli/services/resolver/service.d.mts +1 -1
- package/dist/cli/services/tailordb/service.d.mts +3 -1
- package/dist/cli/services/workflow/bundler.d.mts +2 -1
- package/dist/cli/services/workflow/service.d.mts +1 -1
- package/dist/cli/shared/args.d.mts +1 -1
- package/dist/cli/shared/client.d.mts +1 -1
- package/dist/cli/shared/config-loader.d.mts +0 -1
- package/dist/cli/shared/context.d.mts +2 -1
- package/dist/cli/shared/script-executor.d.mts +0 -1
- package/dist/cli/shared/seed-chunker.d.mts +7 -3
- package/dist/cli/shared/type-generator.d.mts +0 -1
- package/dist/cli/shared/workspace-name.d.mts +1 -0
- package/dist/cli/skills.mjs +1 -1
- package/dist/completion/zsh-worker.zsh +18 -1
- package/dist/configure/config/index.d.mts +0 -1
- package/dist/configure/config/types.d.mts +2 -2
- package/dist/configure/index.d.mts +2 -1
- package/dist/configure/index.mjs +248 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/services/aigateway/index.d.mts +0 -1
- package/dist/configure/services/aigateway/types.d.mts +0 -1
- package/dist/configure/services/auth/index.d.mts +0 -1
- package/dist/configure/services/auth/types.d.mts +14 -13
- package/dist/configure/services/executor/executor.d.mts +0 -1
- package/dist/configure/services/executor/index.d.mts +1 -0
- package/dist/configure/services/executor/operation.d.mts +1 -2
- package/dist/configure/services/executor/trigger/event.d.mts +0 -1
- package/dist/configure/services/executor/trigger/index.d.mts +0 -1
- package/dist/configure/services/executor/trigger/schedule.d.mts +0 -1
- package/dist/configure/services/executor/trigger/webhook.d.mts +0 -1
- package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -2
- package/dist/configure/services/idp/index.d.mts +1 -5
- package/dist/configure/services/idp/permission.d.mts +4 -5
- package/dist/configure/services/idp/types.d.mts +0 -1
- package/dist/configure/services/index.d.mts +5 -0
- package/dist/configure/services/resolver/resolver.d.mts +0 -1
- package/dist/configure/services/resolver/types.d.mts +0 -1
- package/dist/configure/services/secrets/index.d.mts +0 -1
- package/dist/configure/services/secrets/types.d.mts +0 -1
- package/dist/configure/services/staticwebsite/index.d.mts +0 -1
- package/dist/configure/services/staticwebsite/types.d.mts +0 -1
- package/dist/configure/services/tailordb/permission.d.mts +4 -5
- package/dist/configure/services/tailordb/schema.d.mts +21 -8
- package/dist/configure/services/tailordb/types.d.mts +4 -5
- package/dist/configure/services/workflow/execution-policy.d.mts +0 -1
- package/dist/configure/services/workflow/execution-policy.types.d.mts +0 -1
- package/dist/configure/services/workflow/index.d.mts +1 -0
- package/dist/configure/services/workflow/job.d.mts +0 -1
- package/dist/configure/services/workflow/wait-point.d.mts +0 -1
- package/dist/configure/services/workflow/workflow.d.mts +0 -1
- package/dist/configure/types/field-runtime.d.mts +1 -1
- package/dist/configure/types/field.d.mts +1 -2
- package/dist/configure/types/field.types.d.mts +1 -2
- package/dist/configure/types/type.d.mts +1 -1
- package/dist/configure/user.d.mts +0 -1
- package/dist/{crashreport-ayWANEZ6.mjs → crashreport-BNWUM6Kf.mjs} +4 -3
- package/dist/{crashreport-ayWANEZ6.mjs.map → crashreport-BNWUM6Kf.mjs.map} +1 -1
- package/dist/{crashreport-Dy4ZzSkd.mjs → crashreport-BafWvjjX.mjs} +1 -1
- package/dist/errors-DVFS0AZk.mjs +100 -0
- package/dist/errors-DVFS0AZk.mjs.map +1 -0
- package/dist/{globals-CcU1ONiK.mjs → globals-CvizbGLY.mjs} +2 -2
- package/dist/{globals-CcU1ONiK.mjs.map → globals-CvizbGLY.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +3 -4
- package/dist/{logger-BEiZZ3qT.mjs → logger-BwS4ppwO.mjs} +3 -3
- package/dist/logger-BwS4ppwO.mjs.map +1 -0
- package/dist/parser/service/auth/index.d.mts +1 -1
- package/dist/parser/service/auth/schema.d.mts +1 -0
- package/dist/parser/service/http-adapter/index.d.mts +1 -1
- package/dist/parser/service/idp/types.d.mts +1 -0
- package/dist/parser/service/tailordb/types.d.mts +0 -1
- package/dist/plugin/builtin/enum-constants/index.d.mts +0 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +0 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +0 -1
- package/dist/plugin/builtin/seed/index.d.mts +0 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -1
- package/dist/plugin/get-generated-type.d.mts +0 -1
- package/dist/plugin/manager.d.mts +3 -1
- package/dist/plugin/types.d.mts +0 -1
- package/dist/plugin/with-context.d.mts +0 -1
- package/dist/{registry-NfSW0BRo.mjs → registry-CYBRvfaU.mjs} +4 -49
- package/dist/registry-CYBRvfaU.mjs.map +1 -0
- package/dist/runtime/aigateway.d.mts +0 -2
- package/dist/runtime/authconnection.d.mts +0 -2
- package/dist/runtime/globals.d.mts +0 -1
- package/dist/runtime/index.d.mts +0 -1
- package/dist/runtime/types.d.mts +16 -7
- package/dist/{runtime-_vUgjiqT.mjs → runtime-BD2vYJFT.mjs} +2382 -1167
- package/dist/runtime-BD2vYJFT.mjs.map +1 -0
- package/dist/{schema-DrVyN-LP.mjs → schema-U6DxoZ8D.mjs} +204 -3
- package/dist/schema-U6DxoZ8D.mjs.map +1 -0
- package/dist/{secret-file-VSVGy1V0.mjs → secret-file-DBqZhjFQ.mjs} +2 -27
- package/dist/{secret-file-VSVGy1V0.mjs.map → secret-file-DBqZhjFQ.mjs.map} +1 -1
- package/dist/{secretmanager-Bd45j7an.mjs → secretmanager-IY4UvinW.mjs} +42 -9
- package/dist/secretmanager-IY4UvinW.mjs.map +1 -0
- package/dist/seed/index.d.mts +3 -2
- package/dist/{seed-fm0LeYP2.mjs → seed-DFFigL8V.mjs} +3 -13
- package/dist/seed-DFFigL8V.mjs.map +1 -0
- package/dist/service-CghpdV-9.mjs +3 -0
- package/dist/{service-DBFZQloR.mjs → service-Cp0I7ZFe.mjs} +3 -3
- package/dist/{service-DBFZQloR.mjs.map → service-Cp0I7ZFe.mjs.map} +1 -1
- package/dist/{service-BCRJ-3NV.mjs → service-D12iQGcS.mjs} +2 -2
- package/dist/{service-BCRJ-3NV.mjs.map → service-D12iQGcS.mjs.map} +1 -1
- package/dist/service_pb-BoLM0X4K.mjs +167 -0
- package/dist/service_pb-BoLM0X4K.mjs.map +1 -0
- package/dist/{service_pb-B2FF59sP.mjs → service_pb-r1T7kpJc.mjs} +1 -1
- package/dist/tailor-proto/src/tailor/v1/aigateway_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/aigateway_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/application_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/application_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/auth_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/auth_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/events_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/events_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/executor_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/executor_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_registry_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/http_adapter_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/idp_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/idp_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/metadata_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/metadata_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/meter_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/pipeline_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/pipeline_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/secret_manager_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/secret_manager_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/stateflow_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/stateflow_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/staticwebsite_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/tailordb_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/tailordb_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workflow_resource_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workspace_pb.d.mts +0 -1
- package/dist/tailor-proto/src/tailor/v1/workspace_resource_pb.d.mts +0 -1
- package/dist/test-env-key-DuZycyWM.mjs +49 -0
- package/dist/test-env-key-DuZycyWM.mjs.map +1 -0
- package/dist/type-source-DH_LH20p.mjs +13 -0
- package/dist/type-source-DH_LH20p.mjs.map +1 -0
- package/dist/types/aigateway.generated.d.mts +5 -2
- package/dist/types/auth-connection.generated.d.mts +11 -5
- package/dist/types/auth.generated.d.mts +118 -85
- package/dist/types/executor.generated.d.mts +76 -84
- package/dist/types/helpers.d.mts +5 -5
- package/dist/types/http-adapter.generated.d.mts +11 -5
- package/dist/types/idp.generated.d.mts +536 -524
- package/dist/types/resolver.generated.d.mts +24 -10
- package/dist/types/staticwebsite.generated.d.mts +7 -3
- package/dist/types/tailordb.generated.d.mts +55 -29
- package/dist/types/workflow.generated.d.mts +9 -4
- package/dist/user-agent-DX2Jnw0-.mjs +28 -0
- package/dist/user-agent-DX2Jnw0-.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +0 -1
- package/dist/utils/test/index.mjs +1 -1
- package/dist/utils/test/mock.d.mts +0 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/index.d.mts +9 -9
- package/dist/vitest/index.mjs +600 -185
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/mock-kysely.d.mts +0 -1
- package/dist/vitest/mock.d.mts +8 -8
- package/dist/vitest/mocks/aigateway.d.mts +16 -6
- package/dist/vitest/mocks/authconnection.d.mts +16 -6
- package/dist/vitest/mocks/file.d.mts +24 -6
- package/dist/vitest/mocks/iconv.d.mts +28 -4
- package/dist/vitest/mocks/idp.d.mts +26 -10
- package/dist/vitest/mocks/secretmanager.d.mts +16 -5
- package/dist/vitest/mocks/tailordb.d.mts +54 -10
- package/dist/vitest/mocks/workflow.d.mts +48 -11
- package/dist/vitest/setup.mjs +2 -2
- package/dist/{service_pb-B5w9rjPY.mjs → workspace_resource_pb-Db3fv68L.mjs} +57 -165
- package/dist/workspace_resource_pb-Db3fv68L.mjs.map +1 -0
- package/docs/cli/application.md +58 -11
- package/docs/cli/setup.md +1 -1
- package/docs/cli/workspace.md +6 -4
- package/docs/cli-reference.md +12 -8
- package/docs/runtime.md +3 -4
- package/docs/services/aigateway.md +2 -0
- package/docs/services/tailordb.md +52 -1
- package/docs/services/workflow.md +1 -1
- package/docs/testing.md +103 -89
- package/package.json +16 -16
- package/dist/application-BUfYmf0O.mjs.map +0 -1
- package/dist/application-DbvD5UUz.mjs +0 -3
- package/dist/cli/shared/trigger-context.d.mts +0 -1
- package/dist/errors-Dtf2WPaW.mjs +0 -42
- package/dist/errors-Dtf2WPaW.mjs.map +0 -1
- package/dist/field-runtime-9bfXBAOK.mjs +0 -183
- package/dist/field-runtime-9bfXBAOK.mjs.map +0 -1
- package/dist/job-D-PbD1P3.mjs +0 -55
- package/dist/job-D-PbD1P3.mjs.map +0 -1
- package/dist/logger-BEiZZ3qT.mjs.map +0 -1
- package/dist/registry-NfSW0BRo.mjs.map +0 -1
- package/dist/resource_pb-BRv7AMXK.mjs +0 -49
- package/dist/resource_pb-BRv7AMXK.mjs.map +0 -1
- package/dist/runtime-_vUgjiqT.mjs.map +0 -1
- package/dist/schema-DrVyN-LP.mjs.map +0 -1
- package/dist/secretmanager-Bd45j7an.mjs.map +0 -1
- package/dist/seed-fm0LeYP2.mjs.map +0 -1
- package/dist/service-CPMlIg3X.mjs +0 -3
- package/dist/service_pb-B5w9rjPY.mjs.map +0 -1
- package/dist/types-BwzB2okW.mjs +0 -199
- package/dist/types-BwzB2okW.mjs.map +0 -1
- package/dist/types-KlawuVKa.mjs +0 -4
|
@@ -3,7 +3,6 @@ import { TailorDBGQLPermission, TailorDBService, TailorDBType } from "./tailordb
|
|
|
3
3
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
4
4
|
import { Message } from "@bufbuild/protobuf";
|
|
5
5
|
import { FieldMask } from "@bufbuild/protobuf/wkt";
|
|
6
|
-
|
|
7
6
|
//#region ../tailor-proto/src/tailor/v1/tailordb_pb.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* @generated from message tailor.v1.ComposeTailorDBSDLRequest
|
|
@@ -2,7 +2,6 @@ import { Namespace, Script } from "./resource_pb.mjs";
|
|
|
2
2
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { Message } from "@bufbuild/protobuf";
|
|
4
4
|
import { Value } from "@bufbuild/protobuf/wkt";
|
|
5
|
-
|
|
6
5
|
//#region ../tailor-proto/src/tailor/v1/tailordb_resource_pb.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* @generated from message tailor.v1.TailorDBService
|
|
@@ -2,7 +2,6 @@ import { PageDirection } from "./resource_pb.mjs";
|
|
|
2
2
|
import { OTLPExporter, ResourceAttributesConfig } from "./telemetryrouter_resource_pb.mjs";
|
|
3
3
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
4
4
|
import { Message } from "@bufbuild/protobuf";
|
|
5
|
-
|
|
6
5
|
//#region ../tailor-proto/src/tailor/v1/telemetryrouter_pb.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* @generated from message tailor.v1.CreateOTLPExporterRequest
|
|
@@ -2,7 +2,6 @@ import { SecretValue } from "./secret_manager_resource_pb.mjs";
|
|
|
2
2
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
3
3
|
import { Message } from "@bufbuild/protobuf";
|
|
4
4
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
-
|
|
6
5
|
//#region ../tailor-proto/src/tailor/v1/telemetryrouter_resource_pb.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* @generated from message tailor.v1.OTLPExporter
|
|
@@ -3,7 +3,6 @@ import { AuthInvoker } from "./auth_resource_pb.mjs";
|
|
|
3
3
|
import { ConcurrencyPolicy, RetryPolicy, Workflow, WorkflowExecution, WorkflowJobFunction, WorkflowJobFunctionExecutionPolicy, WorkflowJobFunctionSummary } from "./workflow_resource_pb.mjs";
|
|
4
4
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
import { Message } from "@bufbuild/protobuf";
|
|
6
|
-
|
|
7
6
|
//#region ../tailor-proto/src/tailor/v1/workflow_pb.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* @generated from message tailor.v1.CreateWorkflowRequest
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import { Message } from "@bufbuild/protobuf";
|
|
3
3
|
import { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
|
|
5
4
|
//#region ../tailor-proto/src/tailor/v1/workflow_resource_pb.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* @generated from message tailor.v1.WorkflowJobFunction
|
|
@@ -3,7 +3,6 @@ import { PageDirection } from "./resource_pb.mjs";
|
|
|
3
3
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
4
4
|
import { Message } from "@bufbuild/protobuf";
|
|
5
5
|
import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
6
|
-
|
|
7
6
|
//#region ../tailor-proto/src/tailor/v1/workspace_pb.d.ts
|
|
8
7
|
/**
|
|
9
8
|
* @generated from message tailor.v1.ListAvailableWorkspaceRegionsRequest
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { GenMessage } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import { Message } from "@bufbuild/protobuf";
|
|
3
3
|
import { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
-
|
|
5
4
|
//#region ../tailor-proto/src/tailor/v1/workspace_resource_pb.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* @generated from message tailor.v1.Organization
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region src/configure/services/workflow/test-env-key.ts
|
|
2
|
+
const SLOT_KEY = "__tailorWorkflowTestEnv";
|
|
3
|
+
/**
|
|
4
|
+
* Read the test-time env slot.
|
|
5
|
+
* @returns Current env, or `undefined` when unset.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
function readWorkflowTestEnv() {
|
|
9
|
+
return globalThis[SLOT_KEY];
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Write the test-time env slot.
|
|
13
|
+
* @param env - Env value to expose to `.trigger()` bodies.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
function writeWorkflowTestEnv(env) {
|
|
17
|
+
globalThis[SLOT_KEY] = env;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Clear the test-time env slot.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
function clearWorkflowTestEnv() {
|
|
24
|
+
delete globalThis[SLOT_KEY];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Env-var fallback read by `.trigger()` when `mockWorkflow().setEnv()` is unset.
|
|
28
|
+
* @deprecated Use `mockWorkflow().setEnv()` from `@tailor-platform/sdk/vitest`.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
const WORKFLOW_TEST_ENV_KEY = "TAILOR_TEST_WORKFLOW_ENV";
|
|
32
|
+
function buildJobContext() {
|
|
33
|
+
const fromGlobal = readWorkflowTestEnv();
|
|
34
|
+
if (fromGlobal !== void 0) return { env: { ...fromGlobal } };
|
|
35
|
+
const raw = process.env[WORKFLOW_TEST_ENV_KEY];
|
|
36
|
+
if (!raw) return { env: {} };
|
|
37
|
+
let parsed;
|
|
38
|
+
try {
|
|
39
|
+
parsed = JSON.parse(raw);
|
|
40
|
+
} catch (cause) {
|
|
41
|
+
throw new Error(`Invalid JSON in ${WORKFLOW_TEST_ENV_KEY}; provide valid JSON or use mockWorkflow().setEnv().`, { cause });
|
|
42
|
+
}
|
|
43
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error(`${WORKFLOW_TEST_ENV_KEY} must be a JSON object; provide a record or use mockWorkflow().setEnv().`);
|
|
44
|
+
return { env: { ...parsed } };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { writeWorkflowTestEnv as a, readWorkflowTestEnv as i, buildJobContext as n, clearWorkflowTestEnv as r, WORKFLOW_TEST_ENV_KEY as t };
|
|
49
|
+
//# sourceMappingURL=test-env-key-DuZycyWM.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-env-key-DuZycyWM.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 * `createWorkflowJob().trigger()` 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 type { TailorEnv, TailorInvoker } from \"../../../runtime/types\";\n\nconst SLOT_KEY = \"__tailorWorkflowTestEnv\";\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 `.trigger()` 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\n/**\n * Env-var fallback read by `.trigger()` when `mockWorkflow().setEnv()` is unset.\n * @deprecated Use `mockWorkflow().setEnv()` from `@tailor-platform/sdk/vitest`.\n * @internal\n */\nexport const WORKFLOW_TEST_ENV_KEY = \"TAILOR_TEST_WORKFLOW_ENV\";\n\n// env from `mockWorkflow().setEnv()`, else the deprecated env-var. Shallow-copied\n// to isolate against cross-trigger mutation.\nexport function buildJobContext(): { env: TailorEnv; invoker?: TailorInvoker } {\n const fromGlobal = readWorkflowTestEnv();\n if (fromGlobal !== undefined) return { env: { ...fromGlobal } };\n const raw = process.env[WORKFLOW_TEST_ENV_KEY];\n if (!raw) return { env: {} as TailorEnv };\n let parsed: unknown;\n try {\n parsed = JSON.parse(raw);\n } catch (cause) {\n throw new Error(\n `Invalid JSON in ${WORKFLOW_TEST_ENV_KEY}; provide valid JSON or use mockWorkflow().setEnv().`,\n { cause },\n );\n }\n if (parsed === null || typeof parsed !== \"object\" || Array.isArray(parsed)) {\n throw new Error(\n `${WORKFLOW_TEST_ENV_KEY} must be a JSON object; provide a record or use mockWorkflow().setEnv().`,\n );\n }\n return { env: { ...(parsed as TailorEnv) } };\n}\n"],"mappings":";AAaA,MAAM,WAAW;;;;;;AAOjB,SAAgB,sBAA6C;CAC3D,OAAQ,WAAgE;AAC1E;;;;;;AAOA,SAAgB,qBAAqB,KAAsB;CACzD,AAAC,WAAoD,YAAY;AACnE;;;;;AAMA,SAAgB,uBAA6B;CAC3C,OAAQ,WAAkD;AAC5D;;;;;;AAOA,MAAa,wBAAwB;AAIrC,SAAgB,kBAA+D;CAC7E,MAAM,aAAa,oBAAoB;CACvC,IAAI,eAAe,QAAW,OAAO,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE;CAC9D,MAAM,MAAM,QAAQ,IAAI;CACxB,IAAI,CAAC,KAAK,OAAO,EAAE,KAAK,CAAC,EAAe;CACxC,IAAI;CACJ,IAAI;EACF,SAAS,KAAK,MAAM,GAAG;CACzB,SAAS,OAAO;EACd,MAAM,IAAI,MACR,mBAAmB,sBAAsB,uDACzC,EAAE,MAAM,CACV;CACF;CACA,IAAI,WAAW,QAAQ,OAAO,WAAW,YAAY,MAAM,QAAQ,MAAM,GACvE,MAAM,IAAI,MACR,GAAG,sBAAsB,yEAC3B;CAEF,OAAO,EAAE,KAAK,EAAE,GAAI,OAAqB,EAAE;AAC7C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/parser/service/tailordb/type-source.ts
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a type source is generated by a plugin.
|
|
4
|
+
* @param source - The type source entry to check.
|
|
5
|
+
* @returns True if the source was generated by a plugin.
|
|
6
|
+
*/
|
|
7
|
+
function isPluginGeneratedType(source) {
|
|
8
|
+
return source.pluginId !== void 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { isPluginGeneratedType as t };
|
|
13
|
+
//# sourceMappingURL=type-source-DH_LH20p.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-source-DH_LH20p.mjs","names":[],"sources":["../src/parser/service/tailordb/type-source.ts"],"sourcesContent":["import type { PluginGeneratedTypeSource, TypeSourceInfoEntry } from \"./types\";\n\n/**\n * Checks if a type source is generated by a plugin.\n * @param source - The type source entry to check.\n * @returns True if the source was generated by a plugin.\n */\nexport function isPluginGeneratedType(\n source: TypeSourceInfoEntry,\n): source is PluginGeneratedTypeSource {\n return source.pluginId !== undefined;\n}\n"],"mappings":";;;;;;AAOA,SAAgB,sBACd,QACqC;CACrC,OAAO,OAAO,aAAa;AAC7B"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
//#region src/types/aigateway.generated.d.ts
|
|
2
2
|
type AIGateway = {
|
|
3
|
-
/** AI Gateway name */
|
|
4
|
-
|
|
3
|
+
/** AI Gateway name */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Auth namespace used to resolve request tokens against the workspace's auth */
|
|
6
|
+
authNamespace: string;
|
|
7
|
+
/** 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
8
|
cors?: string[] | undefined;
|
|
6
9
|
};
|
|
7
10
|
type AIGatewayInput = AIGateway;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
//#region src/types/auth-connection.generated.d.ts
|
|
2
2
|
type AuthConnectionOAuth2Config = {
|
|
3
|
-
/** OAuth2 provider URL */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
/** OAuth2 provider URL */
|
|
4
|
+
providerUrl: string;
|
|
5
|
+
/** OAuth2 issuer URL */
|
|
6
|
+
issuerUrl: string;
|
|
7
|
+
/** OAuth2 client ID */
|
|
8
|
+
clientId: string;
|
|
9
|
+
/** OAuth2 client secret */
|
|
10
|
+
clientSecret: string;
|
|
11
|
+
/** OAuth2 authorization endpoint override */
|
|
12
|
+
authUrl?: string | undefined;
|
|
13
|
+
/** OAuth2 token endpoint override */
|
|
8
14
|
tokenUrl?: string | undefined;
|
|
9
15
|
};
|
|
10
16
|
type AuthConnectionConfig = {
|
|
@@ -1,98 +1,155 @@
|
|
|
1
1
|
//#region src/types/auth.generated.d.ts
|
|
2
2
|
type AuthInvokerObject = {
|
|
3
|
-
/** Auth namespace */
|
|
3
|
+
/** Auth namespace */
|
|
4
|
+
namespace: string;
|
|
5
|
+
/** Machine user name for authentication */
|
|
4
6
|
machineUserName: string;
|
|
5
7
|
};
|
|
6
8
|
type AuthInvoker = AuthInvokerObject;
|
|
7
9
|
type OIDC = {
|
|
8
|
-
/** Identity provider name */
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
/** Identity provider name */
|
|
11
|
+
name: string;
|
|
12
|
+
kind: "OIDC";
|
|
13
|
+
/** OAuth2 client ID */
|
|
14
|
+
clientID: string;
|
|
15
|
+
/** OAuth2 client secret */
|
|
11
16
|
clientSecret: {
|
|
12
17
|
vaultName: string;
|
|
13
18
|
secretKey: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
};
|
|
20
|
+
/** OIDC provider URL */
|
|
21
|
+
providerURL: string;
|
|
22
|
+
/** OIDC issuer URL (defaults to providerURL) */
|
|
23
|
+
issuerURL?: string | undefined;
|
|
24
|
+
/** JWT claim to use as username */
|
|
17
25
|
usernameClaim?: string | undefined;
|
|
18
26
|
};
|
|
19
27
|
type SAML = {
|
|
20
|
-
/** Identity provider name */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
/** Identity provider name */
|
|
29
|
+
name: string;
|
|
30
|
+
kind: "SAML";
|
|
31
|
+
/** Enable signing of SAML requests */
|
|
32
|
+
enableSignRequest: boolean;
|
|
33
|
+
/** URL to fetch SAML metadata (mutually exclusive with rawMetadata) */
|
|
34
|
+
metadataURL?: string | undefined;
|
|
35
|
+
/** Raw SAML metadata XML (mutually exclusive with metadataURL) */
|
|
36
|
+
rawMetadata?: string | undefined;
|
|
37
|
+
/** URL to redirect to when SAML ACS receives a response with an empty RelayState. */
|
|
25
38
|
defaultRedirectURL?: string | undefined;
|
|
26
39
|
};
|
|
27
40
|
type IDToken = {
|
|
28
|
-
/** Identity provider name */
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
41
|
+
/** Identity provider name */
|
|
42
|
+
name: string;
|
|
43
|
+
kind: "IDToken";
|
|
44
|
+
/** ID token provider URL */
|
|
45
|
+
providerURL: string;
|
|
46
|
+
/** Client ID for ID token validation */
|
|
47
|
+
clientID: string;
|
|
48
|
+
/** ID token issuer URL */
|
|
49
|
+
issuerURL?: string | undefined;
|
|
50
|
+
/** JWT claim to use as username */
|
|
33
51
|
usernameClaim?: string | undefined;
|
|
34
52
|
};
|
|
35
53
|
type BuiltinIdP = {
|
|
36
|
-
/** Identity provider name */
|
|
37
|
-
|
|
38
|
-
|
|
54
|
+
/** Identity provider name */
|
|
55
|
+
name: string;
|
|
56
|
+
kind: "BuiltInIdP";
|
|
57
|
+
/** IdP namespace */
|
|
58
|
+
namespace: string;
|
|
59
|
+
/** OAuth2 client name in the IdP */
|
|
39
60
|
clientName: string;
|
|
40
61
|
};
|
|
41
62
|
type IdProvider = OIDC | SAML | IDToken | BuiltinIdP;
|
|
42
63
|
type OAuth2ClientInput = {
|
|
43
|
-
/** Allowed redirect URIs */
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
64
|
+
/** Allowed redirect URIs */
|
|
65
|
+
redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
|
|
66
|
+
/** Client description */
|
|
67
|
+
description?: string | undefined;
|
|
68
|
+
/** Allowed OAuth2 grant types */
|
|
69
|
+
grantTypes?: ("authorization_code" | "refresh_token")[] | undefined;
|
|
70
|
+
/** OAuth2 client type */
|
|
71
|
+
clientType?: "confidential" | "public" | "browser" | undefined;
|
|
72
|
+
/** Access token lifetime in seconds (60-86400) */
|
|
73
|
+
accessTokenLifetimeSeconds?: number | undefined;
|
|
74
|
+
/** Refresh token lifetime in seconds (60-604800) */
|
|
75
|
+
refreshTokenLifetimeSeconds?: number | undefined;
|
|
76
|
+
/** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
|
|
49
77
|
requireDpop?: boolean | undefined;
|
|
50
78
|
};
|
|
51
79
|
type OAuth2Client = {
|
|
52
|
-
/** Allowed OAuth2 grant types */
|
|
53
|
-
|
|
80
|
+
/** Allowed OAuth2 grant types */
|
|
81
|
+
grantTypes: ("authorization_code" | "refresh_token")[];
|
|
82
|
+
/** Allowed redirect URIs */
|
|
83
|
+
redirectURIs: (`https://${string}` | `http://${string}` | `${string}:url` | `${string}:url/${string}`)[];
|
|
84
|
+
/** Access token lifetime in seconds (60-86400) */
|
|
54
85
|
accessTokenLifetimeSeconds: {
|
|
55
86
|
seconds: bigint;
|
|
56
87
|
nanos: number;
|
|
57
|
-
} | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
/** Refresh token lifetime in seconds (60-604800) */
|
|
58
90
|
refreshTokenLifetimeSeconds: {
|
|
59
91
|
seconds: bigint;
|
|
60
92
|
nanos: number;
|
|
61
|
-
} | undefined;
|
|
62
|
-
|
|
63
|
-
|
|
93
|
+
} | undefined;
|
|
94
|
+
/** Client description */
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
/** OAuth2 client type */
|
|
97
|
+
clientType?: "confidential" | "public" | "browser" | undefined;
|
|
98
|
+
/** Require DPoP (Demonstrating Proof-of-Possession) for token requests */
|
|
64
99
|
requireDpop?: boolean | undefined;
|
|
65
100
|
};
|
|
66
101
|
type SCIMAuthorization = {
|
|
67
|
-
/** SCIM authorization type */
|
|
102
|
+
/** SCIM authorization type */
|
|
103
|
+
type: "oauth2" | "bearer";
|
|
104
|
+
/** Bearer token secret (required for bearer type) */
|
|
68
105
|
bearerSecret?: {
|
|
69
106
|
vaultName: string;
|
|
70
107
|
secretKey: string;
|
|
71
108
|
} | undefined;
|
|
72
109
|
};
|
|
110
|
+
/**
|
|
111
|
+
* SCIM attribute data type
|
|
112
|
+
*/
|
|
113
|
+
type SCIMAttributeType = "string" | "number" | "boolean" | "datetime" | "complex";
|
|
73
114
|
type SCIMAttribute = {
|
|
74
|
-
/** Attribute data type */
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
115
|
+
/** Attribute data type */
|
|
116
|
+
type: SCIMAttributeType;
|
|
117
|
+
/** Attribute name */
|
|
118
|
+
name: string;
|
|
119
|
+
/** Attribute description */
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
/** Attribute mutability */
|
|
122
|
+
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
|
|
123
|
+
/** Whether the attribute is required */
|
|
124
|
+
required?: boolean | undefined;
|
|
125
|
+
/** Whether the attribute can have multiple values */
|
|
126
|
+
multiValued?: boolean | undefined;
|
|
127
|
+
/** Uniqueness constraint */
|
|
128
|
+
uniqueness?: "none" | "server" | "global" | undefined;
|
|
129
|
+
/** List of canonical values */
|
|
81
130
|
canonicalValues?: string[] | null | undefined;
|
|
82
131
|
subAttributes?: SCIMAttribute[] | null | undefined;
|
|
83
132
|
};
|
|
84
133
|
type SCIMAttributeMapping = {
|
|
85
|
-
/** TailorDB field name to map to */
|
|
134
|
+
/** TailorDB field name to map to */
|
|
135
|
+
tailorDBField: string;
|
|
136
|
+
/** SCIM attribute path */
|
|
86
137
|
scimPath: string;
|
|
87
138
|
};
|
|
88
139
|
type SCIMResource = {
|
|
89
|
-
/** SCIM resource name */
|
|
90
|
-
|
|
91
|
-
|
|
140
|
+
/** SCIM resource name */
|
|
141
|
+
name: string;
|
|
142
|
+
/** TailorDB namespace for the resource */
|
|
143
|
+
tailorDBNamespace: string;
|
|
144
|
+
/** TailorDB type name for the resource */
|
|
145
|
+
tailorDBType: string;
|
|
146
|
+
/** Core SCIM schema definition */
|
|
92
147
|
coreSchema: {
|
|
93
|
-
/** SCIM resource name */
|
|
148
|
+
/** SCIM resource name */
|
|
149
|
+
name: string;
|
|
94
150
|
attributes: {
|
|
95
|
-
type: "string" | "number" | "boolean" | "datetime" | "complex";
|
|
151
|
+
type: "string" | "number" | "boolean" | "datetime" | "complex";
|
|
152
|
+
/** SCIM resource name */
|
|
96
153
|
name: string;
|
|
97
154
|
description?: string | undefined;
|
|
98
155
|
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
|
|
@@ -102,49 +159,25 @@ type SCIMResource = {
|
|
|
102
159
|
canonicalValues?: string[] | null | undefined;
|
|
103
160
|
subAttributes?: any[] | null | undefined;
|
|
104
161
|
}[];
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
scimPath: string;
|
|
109
|
-
}[];
|
|
162
|
+
};
|
|
163
|
+
/** Attribute mapping configuration */
|
|
164
|
+
attributeMapping: SCIMAttributeMapping[];
|
|
110
165
|
};
|
|
111
166
|
type SCIMConfig = {
|
|
112
|
-
/** Machine user name for SCIM operations */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} | undefined;
|
|
119
|
-
}; /** SCIM resource definitions */
|
|
120
|
-
resources: {
|
|
121
|
-
name: string;
|
|
122
|
-
tailorDBNamespace: string;
|
|
123
|
-
tailorDBType: string;
|
|
124
|
-
coreSchema: {
|
|
125
|
-
name: string;
|
|
126
|
-
attributes: {
|
|
127
|
-
type: "string" | "number" | "boolean" | "datetime" | "complex";
|
|
128
|
-
name: string;
|
|
129
|
-
description?: string | undefined;
|
|
130
|
-
mutability?: "readOnly" | "readWrite" | "writeOnly" | undefined;
|
|
131
|
-
required?: boolean | undefined;
|
|
132
|
-
multiValued?: boolean | undefined;
|
|
133
|
-
uniqueness?: "none" | "server" | "global" | undefined;
|
|
134
|
-
canonicalValues?: string[] | null | undefined;
|
|
135
|
-
subAttributes?: any[] | null | undefined;
|
|
136
|
-
}[];
|
|
137
|
-
};
|
|
138
|
-
attributeMapping: {
|
|
139
|
-
tailorDBField: string;
|
|
140
|
-
scimPath: string;
|
|
141
|
-
}[];
|
|
142
|
-
}[];
|
|
167
|
+
/** Machine user name for SCIM operations */
|
|
168
|
+
machineUserName: string;
|
|
169
|
+
/** SCIM authorization configuration */
|
|
170
|
+
authorization: SCIMAuthorization;
|
|
171
|
+
/** SCIM resource definitions */
|
|
172
|
+
resources: SCIMResource[];
|
|
143
173
|
};
|
|
144
174
|
type TenantProvider = {
|
|
145
|
-
/** TailorDB namespace for the tenant type */
|
|
146
|
-
|
|
175
|
+
/** TailorDB namespace for the tenant type */
|
|
176
|
+
namespace: string;
|
|
177
|
+
/** TailorDB type name for tenants */
|
|
178
|
+
type: string;
|
|
179
|
+
/** Field used as the tenant signature */
|
|
147
180
|
signatureField: string;
|
|
148
181
|
};
|
|
149
182
|
//#endregion
|
|
150
|
-
export { AuthInvoker, AuthInvokerObject, BuiltinIdP, IDToken, IdProvider, OAuth2Client, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider };
|
|
183
|
+
export { AuthInvoker, AuthInvokerObject, BuiltinIdP, IDToken, IdProvider, OAuth2Client, OAuth2ClientInput, OIDC, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, TenantProvider };
|