@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
|
@@ -1,39 +1,67 @@
|
|
|
1
1
|
//#region src/types/executor.generated.d.ts
|
|
2
2
|
type TailorDBTrigger = {
|
|
3
|
-
/** TailorDB record event trigger */
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/** TailorDB record event trigger */
|
|
4
|
+
kind: "tailordb";
|
|
5
|
+
/** TailorDB event types to trigger on */
|
|
6
|
+
events: ("tailordb.type_record.created" | "tailordb.type_record.updated" | "tailordb.type_record.deleted")[];
|
|
7
|
+
/** TailorDB type name to watch for events */
|
|
8
|
+
typeName: string;
|
|
9
|
+
/** Condition function to filter events */
|
|
6
10
|
condition?: Function | undefined;
|
|
7
11
|
};
|
|
8
12
|
type ResolverExecutedTrigger = {
|
|
9
|
-
kind: "resolverExecuted";
|
|
10
|
-
|
|
13
|
+
kind: "resolverExecuted";
|
|
14
|
+
/** Name of the resolver to trigger on */
|
|
15
|
+
resolverName: string;
|
|
16
|
+
/** Condition function to filter events */
|
|
11
17
|
condition?: Function | undefined;
|
|
12
18
|
};
|
|
13
19
|
type ScheduleTriggerInput = {
|
|
14
|
-
kind: "schedule";
|
|
15
|
-
|
|
20
|
+
kind: "schedule";
|
|
21
|
+
/** CRON expression for the schedule */
|
|
22
|
+
cron: string;
|
|
23
|
+
/** Timezone for the CRON schedule (default: UTC) */
|
|
16
24
|
timezone?: string | undefined;
|
|
17
25
|
};
|
|
26
|
+
type ScheduleTrigger = {
|
|
27
|
+
kind: "schedule";
|
|
28
|
+
/** CRON expression for the schedule */
|
|
29
|
+
cron: string;
|
|
30
|
+
/** Timezone for the CRON schedule (default: UTC) */
|
|
31
|
+
timezone: string;
|
|
32
|
+
};
|
|
33
|
+
type IncomingWebhookTriggerResponse = {
|
|
34
|
+
/** Function returning the response body */
|
|
35
|
+
body?: Function | undefined;
|
|
36
|
+
/** HTTP status code for the response */
|
|
37
|
+
statusCode?: number | undefined;
|
|
38
|
+
};
|
|
18
39
|
type IncomingWebhookTrigger = {
|
|
19
|
-
kind: "incomingWebhook";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
statusCode?: number | undefined;
|
|
23
|
-
} | undefined;
|
|
40
|
+
kind: "incomingWebhook";
|
|
41
|
+
/** Response configuration */
|
|
42
|
+
response?: IncomingWebhookTriggerResponse;
|
|
24
43
|
};
|
|
25
44
|
type IdpUserTrigger = {
|
|
26
|
-
/** IdP user event trigger */
|
|
27
|
-
|
|
45
|
+
/** IdP user event trigger */
|
|
46
|
+
kind: "idpUser";
|
|
47
|
+
/** IdP user event types to trigger on */
|
|
48
|
+
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
|
|
49
|
+
/** IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist. */
|
|
28
50
|
idp?: string | undefined;
|
|
29
51
|
};
|
|
30
52
|
type AuthAccessTokenTrigger = {
|
|
31
|
-
/** Auth access token event trigger */
|
|
53
|
+
/** Auth access token event trigger */
|
|
54
|
+
kind: "authAccessToken";
|
|
55
|
+
/** Auth access token event types to trigger on */
|
|
32
56
|
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
33
57
|
};
|
|
58
|
+
type TriggerInput = TailorDBTrigger | ResolverExecutedTrigger | ScheduleTriggerInput | IncomingWebhookTrigger | IdpUserTrigger | AuthAccessTokenTrigger;
|
|
59
|
+
type Trigger = TailorDBTrigger | ResolverExecutedTrigger | ScheduleTrigger | IncomingWebhookTrigger | IdpUserTrigger | AuthAccessTokenTrigger;
|
|
34
60
|
type FunctionOperation = {
|
|
35
|
-
kind: "function" | "jobFunction";
|
|
36
|
-
|
|
61
|
+
kind: "function" | "jobFunction";
|
|
62
|
+
/** Function implementation */
|
|
63
|
+
body: Function;
|
|
64
|
+
/** Auth invoker for the function execution */
|
|
37
65
|
authInvoker?: string | {
|
|
38
66
|
namespace: string;
|
|
39
67
|
machineUserName: string;
|
|
@@ -41,18 +69,24 @@ type FunctionOperation = {
|
|
|
41
69
|
};
|
|
42
70
|
type GqlOperation = {
|
|
43
71
|
kind: "graphql";
|
|
44
|
-
query: string;
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
query: string;
|
|
73
|
+
/** Target application name for the GraphQL query */
|
|
74
|
+
appName?: string | undefined;
|
|
75
|
+
/** Function to compute GraphQL variables */
|
|
76
|
+
variables?: Function | undefined;
|
|
77
|
+
/** Auth invoker for the GraphQL execution */
|
|
47
78
|
authInvoker?: string | {
|
|
48
79
|
namespace: string;
|
|
49
80
|
machineUserName: string;
|
|
50
81
|
} | undefined;
|
|
51
82
|
};
|
|
52
83
|
type WebhookOperation = {
|
|
53
|
-
kind: "webhook";
|
|
54
|
-
|
|
55
|
-
|
|
84
|
+
kind: "webhook";
|
|
85
|
+
/** Function returning the webhook URL */
|
|
86
|
+
url: Function;
|
|
87
|
+
/** Function to compute the request body */
|
|
88
|
+
requestBody?: Function | undefined;
|
|
89
|
+
/** HTTP headers for the webhook request */
|
|
56
90
|
headers?: {
|
|
57
91
|
[x: string]: string | {
|
|
58
92
|
vault: string;
|
|
@@ -72,68 +106,25 @@ type WorkflowOperation = {
|
|
|
72
106
|
} | undefined;
|
|
73
107
|
};
|
|
74
108
|
type ExecutorInput = {
|
|
75
|
-
/** Executor name */
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
condition?: Function | undefined;
|
|
85
|
-
} | {
|
|
86
|
-
kind: "schedule";
|
|
87
|
-
cron: string;
|
|
88
|
-
timezone?: string | undefined;
|
|
89
|
-
} | {
|
|
90
|
-
kind: "incomingWebhook";
|
|
91
|
-
response?: {
|
|
92
|
-
body?: Function | undefined;
|
|
93
|
-
statusCode?: number | undefined;
|
|
94
|
-
} | undefined;
|
|
95
|
-
} | {
|
|
96
|
-
kind: "idpUser";
|
|
97
|
-
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
|
|
98
|
-
idp?: string | undefined;
|
|
99
|
-
} | {
|
|
100
|
-
kind: "authAccessToken";
|
|
101
|
-
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
102
|
-
}; /** Operation to execute when triggered */
|
|
103
|
-
operation: unknown; /** Executor description */
|
|
104
|
-
description?: string | undefined; /** Whether the executor is disabled */
|
|
109
|
+
/** Executor name */
|
|
110
|
+
name: string;
|
|
111
|
+
/** Event trigger configuration */
|
|
112
|
+
trigger: TriggerInput;
|
|
113
|
+
/** Operation to execute when triggered */
|
|
114
|
+
operation: unknown;
|
|
115
|
+
/** Executor description */
|
|
116
|
+
description?: string | undefined;
|
|
117
|
+
/** Whether the executor is disabled */
|
|
105
118
|
disabled?: boolean | undefined;
|
|
106
119
|
};
|
|
107
120
|
type Executor = {
|
|
108
|
-
/** Executor name */
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
} | {
|
|
116
|
-
kind: "resolverExecuted";
|
|
117
|
-
resolverName: string;
|
|
118
|
-
condition?: Function | undefined;
|
|
119
|
-
} | {
|
|
120
|
-
kind: "schedule";
|
|
121
|
-
cron: string;
|
|
122
|
-
timezone: string;
|
|
123
|
-
} | {
|
|
124
|
-
kind: "incomingWebhook";
|
|
125
|
-
response?: {
|
|
126
|
-
body?: Function | undefined;
|
|
127
|
-
statusCode?: number | undefined;
|
|
128
|
-
} | undefined;
|
|
129
|
-
} | {
|
|
130
|
-
kind: "idpUser";
|
|
131
|
-
events: ("idp.user.created" | "idp.user.updated" | "idp.user.deleted")[];
|
|
132
|
-
idp?: string | undefined;
|
|
133
|
-
} | {
|
|
134
|
-
kind: "authAccessToken";
|
|
135
|
-
events: ("auth.access_token.issued" | "auth.access_token.refreshed" | "auth.access_token.revoked")[];
|
|
136
|
-
}; /** Operation to execute when triggered */
|
|
121
|
+
/** Executor name */
|
|
122
|
+
name: string;
|
|
123
|
+
/** Whether the executor is disabled */
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
/** Event trigger configuration */
|
|
126
|
+
trigger: Trigger;
|
|
127
|
+
/** Operation to execute when triggered */
|
|
137
128
|
operation: {
|
|
138
129
|
kind: "workflow";
|
|
139
130
|
workflowName: string;
|
|
@@ -170,8 +161,9 @@ type Executor = {
|
|
|
170
161
|
key: string;
|
|
171
162
|
};
|
|
172
163
|
} | undefined;
|
|
173
|
-
};
|
|
164
|
+
};
|
|
165
|
+
/** Executor description */
|
|
174
166
|
description?: string | undefined;
|
|
175
167
|
};
|
|
176
168
|
//#endregion
|
|
177
|
-
export { AuthAccessTokenTrigger, Executor, ExecutorInput, FunctionOperation, GqlOperation, IdpUserTrigger, IncomingWebhookTrigger, ResolverExecutedTrigger, ScheduleTriggerInput, TailorDBTrigger, WebhookOperation, WorkflowOperation };
|
|
169
|
+
export { AuthAccessTokenTrigger, Executor, ExecutorInput, FunctionOperation, GqlOperation, IdpUserTrigger, IncomingWebhookTrigger, IncomingWebhookTriggerResponse, ResolverExecutedTrigger, ScheduleTrigger, ScheduleTriggerInput, TailorDBTrigger, Trigger, TriggerInput, WebhookOperation, WorkflowOperation };
|
package/dist/types/helpers.d.mts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
//#region src/types/helpers.d.ts
|
|
2
|
-
type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
|
|
2
|
+
type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K]; } & {};
|
|
3
3
|
type TypeLevelError<Message extends string> = {
|
|
4
4
|
readonly $error: Message;
|
|
5
5
|
};
|
|
6
|
-
type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]
|
|
6
|
+
type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]>; } & {} : T;
|
|
7
7
|
type output<T> = T extends {
|
|
8
8
|
_output: infer U;
|
|
9
9
|
} ? DeepWritable<U> : never;
|
|
10
|
-
type NullableToOptional<T> = { [K in keyof T as null extends T[K] ? never : K]: T[K] } & { [K in keyof T as null extends T[K] ? K : never]?: T[K] };
|
|
10
|
+
type NullableToOptional<T> = { [K in keyof T as null extends T[K] ? never : K]: T[K]; } & { [K in keyof T as null extends T[K] ? K : never]?: T[K]; };
|
|
11
11
|
type InferFieldsOutput<F extends Record<string, {
|
|
12
12
|
_output: any;
|
|
13
13
|
[key: string]: any;
|
|
14
|
-
}>> = DeepWritable<Prettify<NullableToOptional<{ [K in keyof F]: output<F[K]
|
|
14
|
+
}>> = DeepWritable<Prettify<NullableToOptional<{ [K in keyof F]: output<F[K]>; }>>>;
|
|
15
15
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
16
16
|
[key: string]: JsonValue;
|
|
17
17
|
};
|
|
@@ -34,6 +34,6 @@ type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
|
34
34
|
*/
|
|
35
35
|
type JsonCompatible<T> = T extends string | number | boolean | null | undefined ? T : T extends readonly (infer U)[] ? JsonCompatible<U>[] : T extends Function ? never : T extends object ? T extends {
|
|
36
36
|
toJSON: () => unknown;
|
|
37
|
-
} ? never : { [K in keyof T]: JsonCompatible<T[K]
|
|
37
|
+
} ? never : { [K in keyof T]: JsonCompatible<T[K]>; } : never;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { DeepWritable, InferFieldsOutput, JsonCompatible, JsonValue, NullableToOptional, Prettify, TypeLevelError, output };
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
//#region src/types/http-adapter.generated.d.ts
|
|
2
2
|
type HttpAdapterConfigInput = {
|
|
3
|
-
/** Unique adapter name within the domain */
|
|
4
|
-
|
|
3
|
+
/** Unique adapter name within the domain */
|
|
4
|
+
name: string;
|
|
5
|
+
/** Path pattern with segment wildcards (trailing or single-segment) */
|
|
6
|
+
pathPattern: string;
|
|
7
|
+
/** Per-method functions that transform HTTP requests to GraphQL requests */
|
|
5
8
|
input: {
|
|
6
9
|
get?: Function | undefined;
|
|
7
10
|
post?: Function | undefined;
|
|
8
11
|
put?: Function | undefined;
|
|
9
12
|
patch?: Function | undefined;
|
|
10
13
|
delete?: Function | undefined;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
};
|
|
15
|
+
/** Whether the adapter is active */
|
|
16
|
+
enabled?: boolean | undefined;
|
|
17
|
+
/** Matching priority; the lowest value wins when multiple adapters match */
|
|
18
|
+
priority?: number | undefined;
|
|
19
|
+
/** Function that transforms GraphQL response to HTTP response */
|
|
14
20
|
output?: Function | undefined;
|
|
15
21
|
};
|
|
16
22
|
//#endregion
|