@tailor-platform/sdk 2.0.0-next.0 → 2.0.0-next.1
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 +105 -0
- package/dist/application-DB2r36Et.mjs +3 -0
- package/dist/{application-76hhIhnJ.mjs → application-DqS1yBg3.mjs} +217 -131
- package/dist/application-DqS1yBg3.mjs.map +1 -0
- package/dist/{assert-CKfwrmCV.mjs → assert-DBxo8jPo.mjs} +1 -2
- package/dist/{assert-CKfwrmCV.mjs.map → assert-DBxo8jPo.mjs.map} +1 -1
- package/dist/{authconnection-D8SJGMpj.mjs → authconnection-D2MhtTN5.mjs} +2 -3
- package/dist/{authconnection-D8SJGMpj.mjs.map → authconnection-D2MhtTN5.mjs.map} +1 -1
- package/dist/{authconnection-BIYzEh2p.d.mts → authconnection-DvUQAjQS.d.mts} +1 -1
- package/dist/{brand-DlnJ375c.mjs → brand-Eo4pLXPJ.mjs} +1 -2
- package/dist/{brand-DlnJ375c.mjs.map → brand-Eo4pLXPJ.mjs.map} +1 -1
- package/dist/cli/index.mjs +78 -131
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +619 -751
- package/dist/cli/lib.mjs +9 -10
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/{client-C68VWo4g.mjs → client-Dbohmtkv.mjs} +1 -2
- package/dist/{client-CobIRHl-.mjs → client-z_oHGVNy.mjs} +10 -7
- package/dist/client-z_oHGVNy.mjs.map +1 -0
- package/dist/completion/zsh-worker.zsh +4029 -0
- package/dist/configure/index.d.mts +8 -7
- package/dist/configure/index.mjs +27 -28
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{context-s0lxhu8_.mjs → context-Bd266-ru.mjs} +2 -3
- package/dist/{context-s0lxhu8_.mjs.map → context-Bd266-ru.mjs.map} +1 -1
- package/dist/{context-CUBwSBq4.d.mts → context-BuuIb8CC.d.mts} +1 -1
- package/dist/{crashreport-BhD0y14F.mjs → crashreport-BsjAkFWw.mjs} +19 -10
- package/dist/{crashreport-BhD0y14F.mjs.map → crashreport-BsjAkFWw.mjs.map} +1 -1
- package/dist/{crashreport-D1wKBJ8N.mjs → crashreport-pr6Rhvza.mjs} +1 -2
- package/dist/{enum-constants-C7DaWeQo.mjs → enum-constants-j9QBF0cB.mjs} +1 -2
- package/dist/enum-constants-j9QBF0cB.mjs.map +1 -0
- package/dist/{errors-EsY4XO6O.mjs → errors-Dtf2WPaW.mjs} +1 -2
- package/dist/{errors-EsY4XO6O.mjs.map → errors-Dtf2WPaW.mjs.map} +1 -1
- package/dist/{field-C4zdJLW5.mjs → field-DOsJCPFa.mjs} +1 -2
- package/dist/field-DOsJCPFa.mjs.map +1 -0
- package/dist/{file-BzK8z3X-.d.mts → file-BB8Vs9O_.d.mts} +1 -1
- package/dist/{file-B58Dm-2P.mjs → file-_oUZo76X.mjs} +2 -3
- package/dist/{file-B58Dm-2P.mjs.map → file-_oUZo76X.mjs.map} +1 -1
- package/dist/{file-utils-BHPxPXmn.mjs → file-utils-DcyIPFQh.mjs} +2 -3
- package/dist/{file-utils-BHPxPXmn.mjs.map → file-utils-DcyIPFQh.mjs.map} +1 -1
- package/dist/{globals-ByrCoDip.mjs → globals-Crz8o65k.mjs} +53 -5
- package/dist/globals-Crz8o65k.mjs.map +1 -0
- package/dist/http-adapter.generated-WgMnb7Sb.d.mts +580 -0
- package/dist/{iconv-kwrmd1U_.d.mts → iconv-Co-TOPuH.d.mts} +1 -1
- package/dist/{iconv-DreIffeM.mjs → iconv-D2vi8G36.mjs} +2 -3
- package/dist/{iconv-DreIffeM.mjs.map → iconv-D2vi8G36.mjs.map} +1 -1
- package/dist/{idp-Ch95ag8h.mjs → idp-BDbK5gjm.mjs} +2 -3
- package/dist/{idp-Ch95ag8h.mjs.map → idp-BDbK5gjm.mjs.map} +1 -1
- package/dist/{idp-BlBPtXJ-.d.mts → idp-DrhVrLmV.d.mts} +1 -1
- package/dist/{index-CQZVJ5SX.d.mts → index-5vPyRu1y.d.mts} +2 -2
- package/dist/{index-CfRFkXIO.d.mts → index-B7AKc18V.d.mts} +2 -2
- package/dist/{index-CLxubakC.d.mts → index-BlpzXncY.d.mts} +38 -247
- package/dist/{index-DRhMpdnA.d.mts → index-CK7u9isy.d.mts} +8 -8
- package/dist/{index-DUupuPhZ.d.mts → index-CNYe5lnW.d.mts} +2 -2
- package/dist/{index-CPRnOjjt.d.mts → index-DjUdWlzf.d.mts} +2 -2
- package/dist/index-ZePLwxw7.d.mts +208 -0
- package/dist/{interceptor-DOqRkCya.mjs → interceptor-D-q1rvRl.mjs} +1 -2
- package/dist/{interceptor-DOqRkCya.mjs.map → interceptor-D-q1rvRl.mjs.map} +1 -1
- package/dist/{job-BpsFXPbi.mjs → job-fuc3j1Ma.mjs} +9 -10
- package/dist/job-fuc3j1Ma.mjs.map +1 -0
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-D1e0Vwkd.mjs → kysely-type-DR8uzZTA.mjs} +2 -3
- package/dist/kysely-type-DR8uzZTA.mjs.map +1 -0
- package/dist/{logger-DpJyJvNz.mjs → logger-CxF-Ex5d.mjs} +1 -2
- package/dist/{logger-DpJyJvNz.mjs.map → logger-CxF-Ex5d.mjs.map} +1 -1
- package/dist/{mock-DMgIygjE.mjs → mock-BjFj5o1I.mjs} +9 -11
- package/dist/mock-BjFj5o1I.mjs.map +1 -0
- package/dist/{multiline-Cf9ODpr1.mjs → multiline-sfHpTZZK.mjs} +1 -2
- package/dist/{multiline-Cf9ODpr1.mjs.map → multiline-sfHpTZZK.mjs.map} +1 -1
- package/dist/{package-json-DcQApfPQ.mjs → package-json-8b0O9TlX.mjs} +1 -2
- package/dist/{package-json-DcQApfPQ.mjs.map → package-json-8b0O9TlX.mjs.map} +1 -1
- package/dist/package-json-Cv2Z-TqQ.mjs +3 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -2
- package/dist/plugin/index.d.mts +1 -3
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/registry-DdsYlL_P.mjs +51 -0
- package/dist/registry-DdsYlL_P.mjs.map +1 -0
- package/dist/{repl-editor-CJG3sz7A.mjs → repl-editor-DmGr9zMw.mjs} +2 -3
- package/dist/{repl-editor-CJG3sz7A.mjs.map → repl-editor-DmGr9zMw.mjs.map} +1 -1
- package/dist/{chunk-BkoGK1jX.mjs → rolldown-runtime-DXywRVcq.mjs} +0 -1
- package/dist/runtime/authconnection.d.mts +1 -1
- package/dist/runtime/authconnection.mjs +1 -2
- package/dist/runtime/context.d.mts +1 -1
- package/dist/runtime/context.mjs +1 -2
- package/dist/runtime/file.d.mts +1 -1
- package/dist/runtime/file.mjs +1 -2
- package/dist/runtime/globals.d.mts +6 -39
- package/dist/runtime/globals.mjs +0 -1
- package/dist/runtime/iconv.d.mts +1 -1
- package/dist/runtime/iconv.mjs +1 -2
- package/dist/runtime/idp.d.mts +1 -1
- package/dist/runtime/idp.mjs +1 -2
- package/dist/runtime/index.d.mts +8 -8
- package/dist/runtime/index.mjs +7 -8
- package/dist/runtime/secretmanager.d.mts +1 -1
- package/dist/runtime/secretmanager.mjs +1 -2
- package/dist/runtime/workflow.d.mts +1 -1
- package/dist/runtime/workflow.mjs +1 -2
- package/dist/{runtime-C7qTBDD2.mjs → runtime-n9NCkjee.mjs} +301 -317
- package/dist/runtime-n9NCkjee.mjs.map +1 -0
- package/dist/{schema-1msIhXwA.mjs → schema-BhkpP5Hw.mjs} +3 -4
- package/dist/schema-BhkpP5Hw.mjs.map +1 -0
- package/dist/{secret-file-CWzF8rry.mjs → secret-file-DBqZhjFQ.mjs} +1 -2
- package/dist/{secret-file-CWzF8rry.mjs.map → secret-file-DBqZhjFQ.mjs.map} +1 -1
- package/dist/{secretmanager-CKLB3wAQ.d.mts → secretmanager-B3n4KHfm.d.mts} +1 -1
- package/dist/{secretmanager-B9h-U_8U.mjs → secretmanager-BVxw3ih_.mjs} +2 -3
- package/dist/{secretmanager-B9h-U_8U.mjs.map → secretmanager-BVxw3ih_.mjs.map} +1 -1
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-BH2FbrPV.mjs → seed-jf3008-h.mjs} +5 -16
- package/dist/seed-jf3008-h.mjs.map +1 -0
- package/dist/{service-wI3Hvrgx.mjs → service-CCL8ruDf.mjs} +3 -4
- package/dist/service-CCL8ruDf.mjs.map +1 -0
- package/dist/service-D6yonf2I.mjs +3 -0
- package/dist/{service-DMohAx8a2.mjs → service-DU1mVzri.mjs} +3 -4
- package/dist/service-DU1mVzri.mjs.map +1 -0
- package/dist/{telemetry-BQbbVo2t.mjs → telemetry-CdqJEzkj.mjs} +2 -3
- package/dist/{telemetry-BQbbVo2t.mjs.map → telemetry-CdqJEzkj.mjs.map} +1 -1
- package/dist/telemetry-ClwW5ohF.mjs +3 -0
- package/dist/test-env-key-D9kM6ETE.mjs +49 -0
- package/dist/test-env-key-D9kM6ETE.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-CmzfQP_m.mjs → types-B2RpYyA_.mjs} +2 -3
- package/dist/types-B2RpYyA_.mjs.map +1 -0
- package/dist/types-ClhIrW_C.mjs +4 -0
- package/dist/{tailordb-BlBGmQK-.d.mts → types-DCUhgpyI.d.mts} +142 -221
- package/dist/{plugin-C_FyVSdl.d.mts → types-DhO_VEZd.d.mts} +119 -179
- package/dist/types-DwDgacni.d.mts +338 -0
- package/dist/utils/test/index.d.mts +4 -3
- package/dist/utils/test/index.mjs +1 -2
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/vitest/environment.mjs +1 -2
- package/dist/vitest/environment.mjs.map +1 -1
- package/dist/vitest/index.d.mts +42 -5
- package/dist/vitest/index.mjs +133 -4
- package/dist/vitest/index.mjs.map +1 -1
- package/dist/vitest/setup.mjs +2 -3
- package/dist/vitest/setup.mjs.map +1 -1
- package/dist/{workflow-CMamswkK.d.mts → workflow-BbKvGLQg.d.mts} +1 -1
- package/dist/{workflow--aPbA8Uq.mjs → workflow-DgemCAz3.mjs} +2 -3
- package/dist/{workflow--aPbA8Uq.mjs.map → workflow-DgemCAz3.mjs.map} +1 -1
- package/dist/workflow.generated-DtQwEo-x.d.mts +671 -0
- package/docs/cli/application.md +0 -2
- package/docs/cli/completion.md +3 -0
- package/docs/cli/crashreport.md +0 -2
- package/docs/cli/function.md +1 -1
- package/docs/cli/user.md +3 -3
- package/docs/cli/workspace.md +3 -3
- package/docs/configuration.md +0 -2
- package/docs/plugin/custom.md +2 -2
- package/docs/plugin/index.md +1 -1
- package/docs/runtime.md +3 -3
- package/docs/services/aigateway.md +97 -0
- package/docs/services/auth.md +19 -2
- package/docs/services/executor.md +0 -2
- package/docs/services/resolver.md +2 -4
- package/docs/services/tailordb.md +1 -1
- package/docs/services/workflow.md +13 -15
- package/docs/testing.md +18 -11
- package/package.json +13 -12
- package/dist/actor-J2gJ0eK5.d.mts +0 -24
- package/dist/application-76hhIhnJ.mjs.map +0 -1
- package/dist/application-av2raLs6.mjs +0 -4
- package/dist/cli/skills.d.mts +0 -1
- package/dist/cli/skills.mjs +0 -22
- package/dist/cli/skills.mjs.map +0 -1
- package/dist/client-CobIRHl-.mjs.map +0 -1
- package/dist/enum-constants-C7DaWeQo.mjs.map +0 -1
- package/dist/env-B-g-qgE4.d.mts +0 -7
- package/dist/field-C4zdJLW5.mjs.map +0 -1
- package/dist/globals-ByrCoDip.mjs.map +0 -1
- package/dist/job-BpsFXPbi.mjs.map +0 -1
- package/dist/kysely-type-D1e0Vwkd.mjs.map +0 -1
- package/dist/mock-DMgIygjE.mjs.map +0 -1
- package/dist/package-json-wzO6nV9O.mjs +0 -4
- package/dist/registry-D0uB0OrK.mjs +0 -178
- package/dist/registry-D0uB0OrK.mjs.map +0 -1
- package/dist/runtime-C7qTBDD2.mjs.map +0 -1
- package/dist/schema-1msIhXwA.mjs.map +0 -1
- package/dist/seed-BH2FbrPV.mjs.map +0 -1
- package/dist/service-BHQIerYh.mjs +0 -4
- package/dist/service-DMohAx8a2.mjs.map +0 -1
- package/dist/service-wI3Hvrgx.mjs.map +0 -1
- package/dist/telemetry-w92bvGdC.mjs +0 -4
- package/dist/types-2Be3wSMc.mjs +0 -5
- package/dist/types-CmzfQP_m.mjs.map +0 -1
- package/dist/workflow.generated-Bf1tWylx.d.mts +0 -1416
- package/docs/generator/builtin.md +0 -257
- package/docs/generator/custom.md +0 -147
- package/docs/generator/index.md +0 -66
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { M as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { H as TailorInvoker, I as AttributeList, L as AttributeMap, R as Env, U as TailorUser, s as PluginAttachment } from "../types-DCUhgpyI.mjs";
|
|
2
|
+
import { A as SCIMAuthorization, C as IdProvider, D as SAML, E as OIDC, F as AuthConnectionOAuth2Config, M as SCIMResource, N as TenantProvider, O as SCIMAttribute, P as AuthConnectionConfig, S as IDToken, T as OAuth2ClientInput, _ as UserAttributeListKey, a as AuthServiceInput, b as ValueOperand, c as DefinedAuth, d as FederatedIdentityProvider, f as MachineUserName, g as UserAttributeKey, h as SCIMAttributeType, i as AuthOwnConfig, j as SCIMConfig, k as SCIMAttributeMapping, l as FederatedIdentity, m as OAuth2ClientGrantType, n as AuthConnectionTokenResult, o as BeforeLoginClaims, p as MachineUserNameRegistry, r as AuthExternalConfig, s as BeforeLoginHookArgs, t as AuthConfig, u as FederatedIdentityClaims, v as UserAttributeMap, x as BuiltinIdP, y as UsernameFieldKey } from "../types-DwDgacni.mjs";
|
|
3
|
+
import { _ as TailorDBNamespaceData, a as PluginConfigs, b as TypePluginOutput, c as PluginGeneratedExecutor, d as PluginGeneratedType, f as PluginNamespaceProcessContext, g as ResolverReadyContext, h as ResolverNamespaceData, i as Plugin, l as PluginGeneratedExecutorWithFile, m as PluginProcessContext, n as GeneratorResult, o as PluginExecutorContext, p as PluginOutput, r as NamespacePluginOutput, s as PluginExecutorContextBase, t as ExecutorReadyContext, u as PluginGeneratedResolver, v as TailorDBReadyContext, x as Resolver, y as TailorDBTypeForPlugin } from "../types-DhO_VEZd.mjs";
|
|
4
|
+
import { a as TailorDBInstance, c as PermissionCondition, d as unsafeAllowAllGqlPermission, f as unsafeAllowAllTypePermission, i as TailorDBField, l as TailorTypeGqlPermission, n as TailorAnyDBField, o as TailorDBType, r as TailorAnyDBType, s as db, u as TailorTypePermission } from "../http-adapter.generated-WgMnb7Sb.mjs";
|
|
5
|
+
import { C as AIGatewayConfig, _ as IdPExternalConfig, a as ExecutorServiceInput, b as IdPGqlOperations, c as ResolverServiceInput, d as StaticWebsiteConfig, g as IdPConfig, i as ExecutorServiceConfig, l as WorkflowServiceConfig, m as SecretsConfig, n as RetryPolicy, o as ResolverExternalConfig, s as ResolverServiceConfig, t as ConcurrencyPolicy, u as WorkflowServiceInput, x as IdPGqlOperationsInput, y as IdPEmailConfig } from "../workflow.generated-DtQwEo-x.mjs";
|
|
6
|
+
import { a as WorkflowConfig, c as WorkflowJobContext, i as Workflow, l as createWorkflowJob, n as defineWaitPoint, o as createWorkflow, r as defineWaitPoints, s as WorkflowJob, t as WaitPointInstance, u as WORKFLOW_TEST_ENV_KEY } from "../index-ZePLwxw7.mjs";
|
|
7
|
+
import { $ as authAccessTokenTrigger, A as incomingWebhookTrigger, B as IdpUserCreatedArgs, C as Trigger, D as IncomingWebhookResponseConfig, E as IncomingWebhookResponse, F as AuthAccessTokenIssuedArgs, G as RecordDeletedArgs, H as IdpUserTrigger, I as AuthAccessTokenRefreshedArgs, J as ResolverExecutedTrigger, K as RecordUpdatedArgs, L as AuthAccessTokenRevokedArgs, M as ScheduleTrigger, N as scheduleTrigger, O as IncomingWebhookTrigger, P as AuthAccessTokenArgs, Q as authAccessTokenRevokedTrigger, R as AuthAccessTokenTrigger, S as createExecutor, T as IncomingWebhookRequest, U as IdpUserUpdatedArgs, V as IdpUserDeletedArgs, W as RecordCreatedArgs, X as authAccessTokenIssuedTrigger, Y as TailorDBTrigger, Z as authAccessTokenRefreshedTrigger, _ as IdPPermission, _t as IdpName, a as definePlugins, at as recordDeletedTrigger, b as defineAIGateway, bt as TailorField, c as HttpAdapterGraphQLResponse, ct as resolverExecutedTrigger, d as HttpAdapterOutputFn, dt as Operation, et as idpUserCreatedTrigger, f as HttpAdapterRequest, ft as WebhookOperation, g as defineIdp, gt as defineAuth, h as defineSecretManager, ht as createResolver, i as defineConfig, it as recordCreatedTrigger, j as ScheduleArgs, k as IncomingWebhookTriggerOptions, l as HttpAdapterInput, lt as FunctionOperation, m as createHttpAdapter, mt as QueryType, n as output, nt as idpUserTrigger, o as HttpAdapter, ot as recordTrigger, p as HttpAdapterResponse, pt as WorkflowOperation, q as ResolverExecutedArgs, r as t, rt as idpUserUpdatedTrigger, s as HttpAdapterGraphQLRequest, st as recordUpdatedTrigger, t as __Infer, tt as idpUserDeletedTrigger, u as HttpAdapterInputFn, ut as GqlOperation, v as IdPPermissionCondition, vt as IdpNameRegistry, w as IncomingWebhookArgs, x as defineStaticWebSite, y as unsafeAllowAllIdPPermission, yt as unauthenticatedTailorUser, z as IdpUserArgs } from "../index-BlpzXncY.mjs";
|
|
8
|
+
export { type AIGatewayConfig, type AttributeList, type AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, type AuthConfig, type AuthConnectionConfig, type AuthConnectionOAuth2Config, type AuthConnectionTokenResult, type AuthExternalConfig, type AuthOwnConfig, type AuthServiceInput, type BeforeLoginClaims, type BeforeLoginHookArgs, type BuiltinIdP, type ConcurrencyPolicy, type DefinedAuth, type Env, type ExecutorReadyContext, type ExecutorServiceConfig, type ExecutorServiceInput, type FederatedIdentity, type FederatedIdentityClaims, type FederatedIdentityProvider, FunctionOperation, type GeneratorResult, GqlOperation, HttpAdapter, HttpAdapterGraphQLRequest, HttpAdapterGraphQLResponse, HttpAdapterInput, HttpAdapterInputFn, HttpAdapterOutputFn, HttpAdapterRequest, HttpAdapterResponse, type IDToken, type IdPConfig, type IdPEmailConfig, type IdPExternalConfig, type IdPGqlOperations, type IdPGqlOperationsInput as IdPGqlOperationsConfig, type IdPPermission, type IdPPermissionCondition, type IdProvider as IdProviderConfig, type IdpName, type IdpNameRegistry, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, type MachineUserName, type MachineUserNameRegistry, type NamespacePluginOutput, type OAuth2ClientInput as OAuth2Client, type OAuth2ClientGrantType, type OIDC, Operation, type PermissionCondition, type Plugin, type PluginAttachment, type PluginConfigs, type PluginExecutorContext, type PluginExecutorContextBase, type PluginGeneratedExecutor, type PluginGeneratedExecutorWithFile, type PluginGeneratedResolver, type PluginGeneratedType, type PluginNamespaceProcessContext, type PluginOutput, type PluginProcessContext, type QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, type Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, type ResolverExternalConfig, type ResolverNamespaceData, type ResolverReadyContext, type ResolverServiceConfig, type ResolverServiceInput, type RetryPolicy, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleArgs, ScheduleTrigger, type SecretsConfig, type StaticWebsiteConfig, type TailorAnyDBField, type TailorAnyDBType, type TailorDBField, type TailorDBInstance, type TailorDBNamespaceData, type TailorDBReadyContext, TailorDBTrigger, type TailorDBType, type TailorDBTypeForPlugin, type TailorField, type TailorInvoker, type TailorTypeGqlPermission, type TailorTypePermission, type TailorUser, type TenantProvider as TenantProviderConfig, Trigger, type TypePluginOutput, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WORKFLOW_TEST_ENV_KEY, WaitPointInstance, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowOperation, type WorkflowServiceConfig, type WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
package/dist/configure/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { t as t$1 } from "../types-B2RpYyA_.mjs";
|
|
2
|
+
import { t as brandValue } from "../brand-Eo4pLXPJ.mjs";
|
|
3
|
+
import { t as db } from "../schema-BhkpP5Hw.mjs";
|
|
4
|
+
import { r as dispatchTriggerWorkflow } from "../registry-DdsYlL_P.mjs";
|
|
5
|
+
import { t as WORKFLOW_TEST_ENV_KEY } from "../test-env-key-D9kM6ETE.mjs";
|
|
6
|
+
import { t as createWorkflowJob } from "../job-fuc3j1Ma.mjs";
|
|
1
7
|
|
|
2
|
-
|
|
3
|
-
import { t as brandValue } from "../brand-DlnJ375c.mjs";
|
|
4
|
-
import { t as db } from "../schema-1msIhXwA.mjs";
|
|
5
|
-
import { r as dispatchTriggerWorkflow, s as registerWorkflow, u as WORKFLOW_TEST_ENV_KEY } from "../registry-D0uB0OrK.mjs";
|
|
6
|
-
import { t as createWorkflowJob } from "../job-BpsFXPbi.mjs";
|
|
7
|
-
|
|
8
|
-
//#region src/types/user.ts
|
|
8
|
+
//#region src/configure/user.ts
|
|
9
9
|
/** Represents an unauthenticated user in the Tailor platform. */
|
|
10
10
|
const unauthenticatedTailorUser = {
|
|
11
11
|
id: "00000000-0000-0000-0000-000000000000",
|
|
@@ -22,12 +22,6 @@ function defineAuth(name, config) {
|
|
|
22
22
|
return {
|
|
23
23
|
...config,
|
|
24
24
|
name,
|
|
25
|
-
invoker(machineUser) {
|
|
26
|
-
return {
|
|
27
|
-
namespace: name,
|
|
28
|
-
machineUserName: machineUser
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
25
|
getConnectionToken(connectionName) {
|
|
32
26
|
return tailor.authconnection.getConnectionToken(connectionName);
|
|
33
27
|
}
|
|
@@ -468,8 +462,8 @@ function defineWaitPoints(builder) {
|
|
|
468
462
|
* export const fetchData = createWorkflowJob({ name: "fetch-data", body: async (input: { id: string }) => ({ id: input.id }) });
|
|
469
463
|
* export const processData = createWorkflowJob({
|
|
470
464
|
* name: "process-data",
|
|
471
|
-
* body:
|
|
472
|
-
* const data =
|
|
465
|
+
* body: (input: { id: string }) => {
|
|
466
|
+
* const data = fetchData.trigger({ id: input.id });
|
|
473
467
|
* return { data };
|
|
474
468
|
* },
|
|
475
469
|
* });
|
|
@@ -481,7 +475,6 @@ function defineWaitPoints(builder) {
|
|
|
481
475
|
* });
|
|
482
476
|
*/
|
|
483
477
|
function createWorkflow(config) {
|
|
484
|
-
if (!process.env.TAILOR_PLATFORM_BUNDLE) registerWorkflow(config.name, config.mainJob.name);
|
|
485
478
|
return brandValue({
|
|
486
479
|
...config,
|
|
487
480
|
trigger: process.env.TAILOR_PLATFORM_BUNDLE ? async () => {
|
|
@@ -509,6 +502,22 @@ function defineStaticWebSite(name, config) {
|
|
|
509
502
|
};
|
|
510
503
|
}
|
|
511
504
|
|
|
505
|
+
//#endregion
|
|
506
|
+
//#region src/configure/services/aigateway/index.ts
|
|
507
|
+
/**
|
|
508
|
+
* Define an AI Gateway configuration for the Tailor SDK.
|
|
509
|
+
* @param name - AI Gateway name
|
|
510
|
+
* @param config - AI Gateway configuration
|
|
511
|
+
* @returns Defined AI Gateway
|
|
512
|
+
*/
|
|
513
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
514
|
+
function defineAIGateway(name, config) {
|
|
515
|
+
return {
|
|
516
|
+
...config,
|
|
517
|
+
name
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
|
|
512
521
|
//#endregion
|
|
513
522
|
//#region src/configure/services/idp/permission.ts
|
|
514
523
|
/**
|
|
@@ -637,7 +646,7 @@ function createHttpAdapter(config) {
|
|
|
637
646
|
}
|
|
638
647
|
|
|
639
648
|
//#endregion
|
|
640
|
-
//#region src/configure/config.ts
|
|
649
|
+
//#region src/configure/config/index.ts
|
|
641
650
|
/**
|
|
642
651
|
* Define a Tailor SDK application configuration with shallow exactness.
|
|
643
652
|
* @template Config
|
|
@@ -649,16 +658,6 @@ function defineConfig(config) {
|
|
|
649
658
|
return config;
|
|
650
659
|
}
|
|
651
660
|
/**
|
|
652
|
-
* Define generators to be used with the Tailor SDK.
|
|
653
|
-
* @deprecated Use definePlugins() with generation hooks (onTypeLoaded, generate, etc.) instead.
|
|
654
|
-
* @param configs - Generator configurations
|
|
655
|
-
* @returns Generator configurations as given
|
|
656
|
-
*/
|
|
657
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
658
|
-
function defineGenerators(...configs) {
|
|
659
|
-
return configs;
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
661
|
* Define plugins to be used with the Tailor SDK.
|
|
663
662
|
* Plugins can generate additional types, resolvers, and executors
|
|
664
663
|
* based on existing TailorDB types.
|
|
@@ -676,5 +675,5 @@ function definePlugins(...configs) {
|
|
|
676
675
|
const t = t$1;
|
|
677
676
|
|
|
678
677
|
//#endregion
|
|
679
|
-
export { WORKFLOW_TEST_ENV_KEY, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAuth, defineConfig,
|
|
678
|
+
export { WORKFLOW_TEST_ENV_KEY, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createHttpAdapter, createResolver, createWorkflow, createWorkflowJob, db, defineAIGateway, defineAuth, defineConfig, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, defineWaitPoint, defineWaitPoints, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
|
|
680
679
|
//# sourceMappingURL=index.mjs.map
|