@tailor-platform/sdk 1.38.0 → 1.39.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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.39.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1000](https://github.com/tailor-platform/sdk/pull/1000) [`fbfb157`](https://github.com/tailor-platform/sdk/commit/fbfb15780f8c61aeb30994b2e3d675c40ac32baa) Thanks [@toiroakr](https://github.com/toiroakr)! - Support `TAILOR_PLATFORM_SDK_DTS_PATH` environment variable to customize the output path of `tailor.d.ts`
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1002](https://github.com/tailor-platform/sdk/pull/1002) [`e0f6384`](https://github.com/tailor-platform/sdk/commit/e0f6384cad3ea1391119b104f159db8fb43205c8) Thanks [@renovate](https://github.com/apps/renovate)! - chore(deps): update anthropics/claude-code-action action to v1.0.99
12
+
3
13
  ## 1.38.0
4
14
 
5
15
  ### Minor Changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { I as AuthInvokerSchema, U as PATScope, i as fetchAll, k as FunctionExecution_Type, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, s as fetchUserInfo, u as initOperatorClient } from "../client-xzPXtc_e.mjs";
4
4
  import { n as logger, r as styles } from "../logger-5_JMzHmw.mjs";
5
- import { $ as deleteCommand$3, $t as isValidMigrationNumber, At as formatKeyValueTable, C as listCommand$12, E as resumeCommand, Et as executionsCommand, F as showCommand, G as getCommand$4, H as treeCommand, I as logBetaWarning, Lt as parseMigrationLabelNumber, N as generateCommand$1, Nt as apply, O as listCommand$11, Pt as executeScript, R as removeCommand$1, St as startCommand, T as healthCommand, U as listCommand$10, Xt as getMigrationFilePath, Y as listCommand$9, Z as getCommand$3, Zt as getMigrationFiles, _n as workspaceArgs, an as getNamespacesWithMigrations, at as getCommand$2, b as createCommand$4, c as listCommand$13, cn as trnPrefix, ct as tokenCommand, dn as apiCommand, dt as generate, en as loadDiff, f as restoreCommand, fn as defineAppCommand, g as getCommand$6, gn as isVerbose, gt as listCommand$6, hn as deploymentArgs, i as updateCommand$4, j as truncateCommand, jt as getCommand$1, kt as functionExecutionStatusToString, lt as listCommand$7, m as listCommand$14, mn as confirmationArgs, mt as triggerCommand, o as removeCommand, on as prompt, pn as commonArgs, pt as webhookCommand, q as updateCommand$2, qt as formatMigrationNumber, r as queryCommand, rt as listCommand$8, sn as sdkNameLabelKey, t as isNativeTypeScriptRuntime, tt as createCommand$3, u as inviteCommand, v as deleteCommand$4, wt as getCommand$5, yt as jobsCommand, z as updateCommand$3 } from "../runtime-ChpwtPut.mjs";
5
+ import { $ as deleteCommand$3, $t as isValidMigrationNumber, At as formatKeyValueTable, C as listCommand$12, E as resumeCommand, Et as executionsCommand, F as showCommand, G as getCommand$4, H as treeCommand, I as logBetaWarning, Lt as parseMigrationLabelNumber, N as generateCommand$1, Nt as apply, O as listCommand$11, Pt as executeScript, R as removeCommand$1, St as startCommand, T as healthCommand, U as listCommand$10, Xt as getMigrationFilePath, Y as listCommand$9, Z as getCommand$3, Zt as getMigrationFiles, _n as workspaceArgs, an as getNamespacesWithMigrations, at as getCommand$2, b as createCommand$4, c as listCommand$13, cn as trnPrefix, ct as tokenCommand, dn as apiCommand, dt as generate, en as loadDiff, f as restoreCommand, fn as defineAppCommand, g as getCommand$6, gn as isVerbose, gt as listCommand$6, hn as deploymentArgs, i as updateCommand$4, j as truncateCommand, jt as getCommand$1, kt as functionExecutionStatusToString, lt as listCommand$7, m as listCommand$14, mn as confirmationArgs, mt as triggerCommand, o as removeCommand, on as prompt, pn as commonArgs, pt as webhookCommand, q as updateCommand$2, qt as formatMigrationNumber, r as queryCommand, rt as listCommand$8, sn as sdkNameLabelKey, t as isNativeTypeScriptRuntime, tt as createCommand$3, u as inviteCommand, v as deleteCommand$4, wt as getCommand$5, yt as jobsCommand, z as updateCommand$3 } from "../runtime-DtSOnOHh.mjs";
6
6
  import { t as readPackageJson } from "../package-json-BHViVisJ.mjs";
7
7
  import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig, a as loadConfig, b as loadAccessToken, g as getDistDir, i as resolveInlineSourcemap, l as ExecutorSchema, o as WorkflowJobSchema, s as ResolverSchema, v as deleteUserTokens, w as saveUserTokens, x as loadWorkspaceId, y as fetchLatestToken } from "../application-DhQrXEld.mjs";
8
8
  import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-DXhPL8Ue.mjs";
@@ -1,10 +1,10 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { Bt as IdProvider, C as TailorDBType, Et as Executor, Nt as ScheduleTriggerInput, St as Resolver, Vt as OAuth2ClientInput, jt as IncomingWebhookTrigger, n as Plugin, r as PluginAttachment, w as TypeSourceInfoEntry } from "../plugin-D84blivd.mjs";
3
- import { n as AppConfig } from "../workflow.generated-BRdcCWfC.mjs";
4
- import { n as kyselyTypePlugin } from "../index-Cln_TTZn.mjs";
5
- import { n as enumConstantsPlugin } from "../index-CHo73Aat.mjs";
6
- import { n as fileUtilsPlugin } from "../index-D_W9-Lvk.mjs";
7
- import { n as seedPlugin } from "../index-CIIXsk3E.mjs";
2
+ import { C as TailorDBType, Dt as IncomingWebhookTrigger, It as IdProvider, Lt as OAuth2ClientInput, St as Executor, kt as ScheduleTriggerInput, n as Plugin, r as PluginAttachment, vt as Resolver, w as TypeSourceInfoEntry } from "../plugin-_K3ZfP8B.mjs";
3
+ import { n as AppConfig } from "../workflow.generated-BxbnuzAE.mjs";
4
+ import { n as kyselyTypePlugin } from "../index-y5790SX_.mjs";
5
+ import { n as enumConstantsPlugin } from "../index-DeBFa7oc.mjs";
6
+ import { n as fileUtilsPlugin } from "../index-DbzopC7M.mjs";
7
+ import { n as seedPlugin } from "../index-B2tsEXdh.mjs";
8
8
  import { z } from "zod";
9
9
  import { OAuth2Client } from "@badgateway/oauth2-client";
10
10
  import { Duration, FieldMask, Timestamp, Value } from "@bufbuild/protobuf/wkt";
package/dist/cli/lib.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { u as initOperatorClient } from "../client-xzPXtc_e.mjs";
3
- import { A as truncate, B as updateOrganization, Bt as DIFF_FILE_NAME, Ct as startWorkflow, D as resumeWorkflow, Dt as getWorkflowExecution, Ft as waitForExecution, Gt as compareSnapshots, Ht as MIGRATE_FILE_NAME, It as MIGRATION_LABEL_KEY, J as updateFolder, Jt as getLatestMigrationNumber, K as getOrganization, Kt as createSnapshotFromLocalTypes, L as remove, M as generate$1, Mt as getExecutor, Nt as apply, Ot as listWorkflowExecutions, P as show, Pt as executeScript, Q as getFolder, Qt as getNextMigrationNumber, Rt as bundleMigrationScript, S as listApps, Tt as getWorkflow, Ut as SCHEMA_FILE_NAME, V as organizationTree, Vt as INITIAL_SCHEMA_NUMBER, W as listOrganizations, Wt as compareLocalTypesWithSnapshot, X as listFolders, Xt as getMigrationFilePath, Yt as getMigrationDirPath, Zt as getMigrationFiles, _ as getWorkspace, _t as listExecutors, a as updateUser, an as getNamespacesWithMigrations, bt as listExecutorJobs, d as inviteUser, dt as generate, et as deleteFolder, ft as listWebhookExecutors, h as listWorkspaces, ht as triggerExecutor, in as hasChanges, it as listOAuth2Clients, k as listWorkflows, l as listUsers, ln as generateUserTypes, n as query, nn as formatDiffSummary, nt as createFolder, ot as getOAuth2Client, p as restoreWorkspace, rn as formatMigrationDiff, s as removeUser, st as getMachineUserToken, t as isNativeTypeScriptRuntime, tn as reconstructSnapshotFromMigrations, un as apiCall, ut as listMachineUsers, vt as getExecutorJob, w as getAppHealth, x as createWorkspace, xt as watchExecutorJob, y as deleteWorkspace, zt as DB_TYPES_FILE_NAME } from "../runtime-ChpwtPut.mjs";
3
+ import { A as truncate, B as updateOrganization, Bt as DIFF_FILE_NAME, Ct as startWorkflow, D as resumeWorkflow, Dt as getWorkflowExecution, Ft as waitForExecution, Gt as compareSnapshots, Ht as MIGRATE_FILE_NAME, It as MIGRATION_LABEL_KEY, J as updateFolder, Jt as getLatestMigrationNumber, K as getOrganization, Kt as createSnapshotFromLocalTypes, L as remove, M as generate$1, Mt as getExecutor, Nt as apply, Ot as listWorkflowExecutions, P as show, Pt as executeScript, Q as getFolder, Qt as getNextMigrationNumber, Rt as bundleMigrationScript, S as listApps, Tt as getWorkflow, Ut as SCHEMA_FILE_NAME, V as organizationTree, Vt as INITIAL_SCHEMA_NUMBER, W as listOrganizations, Wt as compareLocalTypesWithSnapshot, X as listFolders, Xt as getMigrationFilePath, Yt as getMigrationDirPath, Zt as getMigrationFiles, _ as getWorkspace, _t as listExecutors, a as updateUser, an as getNamespacesWithMigrations, bt as listExecutorJobs, d as inviteUser, dt as generate, et as deleteFolder, ft as listWebhookExecutors, h as listWorkspaces, ht as triggerExecutor, in as hasChanges, it as listOAuth2Clients, k as listWorkflows, l as listUsers, ln as generateUserTypes, n as query, nn as formatDiffSummary, nt as createFolder, ot as getOAuth2Client, p as restoreWorkspace, rn as formatMigrationDiff, s as removeUser, st as getMachineUserToken, t as isNativeTypeScriptRuntime, tn as reconstructSnapshotFromMigrations, un as apiCall, ut as listMachineUsers, vt as getExecutorJob, w as getAppHealth, x as createWorkspace, xt as watchExecutorJob, y as deleteWorkspace, zt as DB_TYPES_FILE_NAME } from "../runtime-DtSOnOHh.mjs";
4
4
  import { a as loadConfig, b as loadAccessToken, g as getDistDir, x as loadWorkspaceId } from "../application-DhQrXEld.mjs";
5
5
  import { n as seedPlugin } from "../seed-DrbB1VXd.mjs";
6
6
  import { n as enumConstantsPlugin } from "../enum-constants-Dx82rSjf.mjs";
@@ -1,5 +1,6 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { A as BeforeLoginHookArgs, B as TailorAnyDBType, Bt as IdProvider, D as AuthExternalConfig, E as AuthConnectionTokenResult, F as UserAttributeListKey, G as PermissionCondition, Gt as SCIMAttributeMapping, H as TailorDBInstance, Ht as OIDC, I as UserAttributeMap, J as unsafeAllowAllGqlPermission, Jt as SCIMResource, K as TailorTypeGqlPermission, Kt as SCIMAuthorization, L as UsernameFieldKey, M as OAuth2ClientGrantType, N as SCIMAttributeType, O as AuthOwnConfig, P as UserAttributeKey, R as ValueOperand, Rt as BuiltinIdP, St as Resolver, T as AuthConfig, U as TailorDBType, Ut as SAML, V as TailorDBField, Vt as OAuth2ClientInput, W as db, Wt as SCIMAttribute, Y as unsafeAllowAllTypePermission, Yt as TenantProvider, _ as GeneratorResult, _t as unauthenticatedTailorUser, a as PluginExecutorContext, b as TailorDBNamespaceData, bt as AuthConnectionConfig, c as PluginGeneratedExecutorWithFile, ct as MachineUserName, d as PluginNamespaceProcessContext, f as PluginOutput, g as ExecutorReadyContext, gt as TailorUser, h as TypePluginOutput, i as PluginConfigs, j as DefinedAuth, k as AuthServiceInput, l as PluginGeneratedResolver, lt as MachineUserNameRegistry, m as TailorDBTypeForPlugin, mt as AttributeMap, n as Plugin, o as PluginExecutorContextBase, p as PluginProcessContext, pt as AttributeList, q as TailorTypePermission, qt as SCIMConfig, r as PluginAttachment, rt as TailorField, s as PluginGeneratedExecutor, t as NamespacePluginOutput, u as PluginGeneratedType, ut as Env, v as ResolverNamespaceData, x as TailorDBReadyContext, xt as AuthConnectionOAuth2Config, y as ResolverReadyContext, z as TailorAnyDBField, zt as IDToken } from "../plugin-D84blivd.mjs";
3
- import { a as ResolverExternalConfig, b as IdPGqlOperationsInput, c as WorkflowServiceConfig, d as defineStaticWebSite, f as SecretsConfig, h as IdPExternalConfig, i as ExecutorServiceInput, l as WorkflowServiceInput, m as IdPConfig, o as ResolverServiceConfig, p as defineSecretManager, r as ExecutorServiceConfig, s as ResolverServiceInput, t as RetryPolicy, u as StaticWebsiteConfig, v as IdPEmailConfig, y as IdPGqlOperations } from "../workflow.generated-BRdcCWfC.mjs";
4
- import { $ as GqlOperation, A as IdpUserDeletedArgs, B as authAccessTokenRefreshedTrigger, C as AuthAccessTokenArgs, D as AuthAccessTokenTrigger, E as AuthAccessTokenRevokedArgs, F as RecordUpdatedArgs, G as idpUserTrigger, H as authAccessTokenTrigger, I as ResolverExecutedArgs, J as recordDeletedTrigger, K as idpUserUpdatedTrigger, L as ResolverExecutedTrigger, M as IdpUserUpdatedArgs, N as RecordCreatedArgs, O as IdpUserArgs, P as RecordDeletedArgs, Q as FunctionOperation, R as TailorDBTrigger, S as scheduleTrigger, T as AuthAccessTokenRefreshedArgs, U as idpUserCreatedTrigger, V as authAccessTokenRevokedTrigger, W as idpUserDeletedTrigger, X as recordUpdatedTrigger, Y as recordTrigger, Z as resolverExecutedTrigger, _ as IncomingWebhookTrigger, a as defineGenerators, at as createWorkflow, b as ScheduleArgs, c as IdPPermission, ct as WorkflowJobContext, d as createExecutor, dt as createWorkflowJob, et as Operation, f as Trigger, ft as QueryType, g as IncomingWebhookResponseConfig, h as IncomingWebhookResponse, ht as defineAuth, i as defineConfig, it as WorkflowConfig, j as IdpUserTrigger, k as IdpUserCreatedArgs, l as IdPPermissionCondition, lt as WorkflowJobInput, m as IncomingWebhookRequest, mt as AuthInvoker, n as output, nt as WorkflowOperation, o as definePlugins, ot as WORKFLOW_TEST_ENV_KEY, p as IncomingWebhookArgs, pt as createResolver, q as recordCreatedTrigger, r as t, rt as Workflow, s as defineIdp, st as WorkflowJob, t as __Infer, tt as WebhookOperation, u as unsafeAllowAllIdPPermission, ut as WorkflowJobOutput, v as IncomingWebhookTriggerOptions, w as AuthAccessTokenIssuedArgs, x as ScheduleTrigger, y as incomingWebhookTrigger, z as authAccessTokenIssuedTrigger } from "../index-Cs3fwmLu.mjs";
2
+ import { A as BeforeLoginHookArgs, B as TailorAnyDBType, Bt as SCIMAttribute, D as AuthExternalConfig, E as AuthConnectionTokenResult, F as UserAttributeListKey, Ft as IDToken, G as PermissionCondition, Gt as TenantProvider, H as TailorDBInstance, Ht as SCIMAuthorization, I as UserAttributeMap, It as IdProvider, J as unsafeAllowAllGqlPermission, K as TailorTypeGqlPermission, L as UsernameFieldKey, Lt as OAuth2ClientInput, M as OAuth2ClientGrantType, N as SCIMAttributeType, O as AuthOwnConfig, P as UserAttributeKey, Pt as BuiltinIdP, R as ValueOperand, Rt as OIDC, T as AuthConfig, U as TailorDBType, Ut as SCIMConfig, V as TailorDBField, Vt as SCIMAttributeMapping, W as db, Wt as SCIMResource, Y as unsafeAllowAllTypePermission, _ as GeneratorResult, _t as AuthConnectionOAuth2Config, a as PluginExecutorContext, b as TailorDBNamespaceData, c as PluginGeneratedExecutorWithFile, ct as AttributeList, d as PluginNamespaceProcessContext, f as PluginOutput, ft as TailorUser, g as ExecutorReadyContext, gt as AuthConnectionConfig, h as TypePluginOutput, i as PluginConfigs, j as DefinedAuth, k as AuthServiceInput, l as PluginGeneratedResolver, lt as AttributeMap, m as TailorDBTypeForPlugin, n as Plugin, o as PluginExecutorContextBase, p as PluginProcessContext, pt as unauthenticatedTailorUser, q as TailorTypePermission, r as PluginAttachment, rt as TailorField, s as PluginGeneratedExecutor, t as NamespacePluginOutput, u as PluginGeneratedType, v as ResolverNamespaceData, vt as Resolver, x as TailorDBReadyContext, y as ResolverReadyContext, z as TailorAnyDBField, zt as SAML } from "../plugin-_K3ZfP8B.mjs";
3
+ import { t as Env } from "../env-CgI46oPS.mjs";
4
+ import { $ as GqlOperation, A as IdpUserDeletedArgs, B as authAccessTokenRefreshedTrigger, C as AuthAccessTokenArgs, D as AuthAccessTokenTrigger, E as AuthAccessTokenRevokedArgs, F as RecordUpdatedArgs, G as idpUserTrigger, H as authAccessTokenTrigger, I as ResolverExecutedArgs, J as recordDeletedTrigger, K as idpUserUpdatedTrigger, L as ResolverExecutedTrigger, M as IdpUserUpdatedArgs, N as RecordCreatedArgs, O as IdpUserArgs, P as RecordDeletedArgs, Q as FunctionOperation, R as TailorDBTrigger, S as scheduleTrigger, T as AuthAccessTokenRefreshedArgs, U as idpUserCreatedTrigger, V as authAccessTokenRevokedTrigger, W as idpUserDeletedTrigger, X as recordUpdatedTrigger, Y as recordTrigger, Z as resolverExecutedTrigger, _ as IncomingWebhookTrigger, _t as MachineUserNameRegistry, a as defineGenerators, at as createWorkflow, b as ScheduleArgs, c as IdPPermission, ct as WorkflowJobContext, d as createExecutor, dt as createWorkflowJob, et as Operation, f as Trigger, ft as QueryType, g as IncomingWebhookResponseConfig, gt as MachineUserName, h as IncomingWebhookResponse, ht as defineAuth, i as defineConfig, it as WorkflowConfig, j as IdpUserTrigger, k as IdpUserCreatedArgs, l as IdPPermissionCondition, lt as WorkflowJobInput, m as IncomingWebhookRequest, mt as AuthInvoker, n as output, nt as WorkflowOperation, o as definePlugins, ot as WORKFLOW_TEST_ENV_KEY, p as IncomingWebhookArgs, pt as createResolver, q as recordCreatedTrigger, r as t, rt as Workflow, s as defineIdp, st as WorkflowJob, t as __Infer, tt as WebhookOperation, u as unsafeAllowAllIdPPermission, ut as WorkflowJobOutput, v as IncomingWebhookTriggerOptions, w as AuthAccessTokenIssuedArgs, x as ScheduleTrigger, y as incomingWebhookTrigger, z as authAccessTokenIssuedTrigger } from "../index-31hm0Fq7.mjs";
5
+ import { a as ResolverExternalConfig, b as IdPGqlOperationsInput, c as WorkflowServiceConfig, d as defineStaticWebSite, f as SecretsConfig, h as IdPExternalConfig, i as ExecutorServiceInput, l as WorkflowServiceInput, m as IdPConfig, o as ResolverServiceConfig, p as defineSecretManager, r as ExecutorServiceConfig, s as ResolverServiceInput, t as RetryPolicy, u as StaticWebsiteConfig, v as IdPEmailConfig, y as IdPGqlOperations } from "../workflow.generated-BxbnuzAE.mjs";
5
6
  export { AttributeList, AttributeMap, AuthAccessTokenArgs, AuthAccessTokenIssuedArgs, AuthAccessTokenRefreshedArgs, AuthAccessTokenRevokedArgs, AuthAccessTokenTrigger, AuthConfig, AuthConnectionConfig, AuthConnectionOAuth2Config, AuthConnectionTokenResult, AuthExternalConfig, AuthInvoker, AuthOwnConfig, AuthServiceInput, BeforeLoginHookArgs, BuiltinIdP, DefinedAuth, Env, ExecutorReadyContext, ExecutorServiceConfig, ExecutorServiceInput, FunctionOperation, GeneratorResult, GqlOperation, IDToken, IdPConfig, IdPEmailConfig, IdPExternalConfig, IdPGqlOperations, IdPGqlOperationsInput as IdPGqlOperationsConfig, IdPPermission, IdPPermissionCondition, IdProvider as IdProviderConfig, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookResponse, IncomingWebhookResponseConfig, IncomingWebhookTrigger, IncomingWebhookTriggerOptions, MachineUserName, MachineUserNameRegistry, NamespacePluginOutput, OAuth2ClientInput as OAuth2Client, OAuth2ClientGrantType, OIDC, Operation, PermissionCondition, Plugin, PluginAttachment, PluginConfigs, PluginExecutorContext, PluginExecutorContextBase, PluginGeneratedExecutor, PluginGeneratedExecutorWithFile, PluginGeneratedResolver, PluginGeneratedType, PluginNamespaceProcessContext, PluginOutput, PluginProcessContext, QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordUpdatedArgs, Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, ResolverExternalConfig, ResolverNamespaceData, ResolverReadyContext, ResolverServiceConfig, ResolverServiceInput, RetryPolicy, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, ScheduleArgs, ScheduleTrigger, SecretsConfig, StaticWebsiteConfig, TailorAnyDBField, TailorAnyDBType, TailorDBField, TailorDBInstance, TailorDBNamespaceData, TailorDBReadyContext, TailorDBTrigger, TailorDBType, TailorDBTypeForPlugin, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProvider as TenantProviderConfig, Trigger, TypePluginOutput, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, WORKFLOW_TEST_ENV_KEY, WebhookOperation, Workflow, WorkflowConfig, WorkflowJob, WorkflowJobContext, WorkflowJobInput, WorkflowJobOutput, WorkflowOperation, WorkflowServiceConfig, WorkflowServiceInput, authAccessTokenIssuedTrigger, authAccessTokenRefreshedTrigger, authAccessTokenRevokedTrigger, authAccessTokenTrigger, createExecutor, createResolver, createWorkflow, createWorkflowJob, db, defineAuth, defineConfig, defineGenerators, defineIdp, definePlugins, defineSecretManager, defineStaticWebSite, idpUserCreatedTrigger, idpUserDeletedTrigger, idpUserTrigger, idpUserUpdatedTrigger, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllIdPPermission, unsafeAllowAllTypePermission };
@@ -0,0 +1,30 @@
1
+ /// <reference types="@tailor-platform/function-types" />
2
+ import { dt as InferredAttributeMap, ut as InferredAttributeList } from "./plugin-_K3ZfP8B.mjs";
3
+
4
+ //#region src/configure/types/actor.d.ts
5
+ /** User type enum values from the Tailor Platform server. */
6
+ type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
7
+ /** Represents an actor in event triggers. */
8
+ type TailorActor = {
9
+ /** The ID of the workspace the user belongs to. */workspaceId: string; /** The ID of the user. */
10
+ userId: string;
11
+ /**
12
+ * A map of the user's attributes.
13
+ * Maps from server's `attributeMap` field.
14
+ */
15
+ attributes: InferredAttributeMap | null;
16
+ /**
17
+ * A list of the user's attributes.
18
+ * Maps from server's `attributes` field.
19
+ */
20
+ attributeList: InferredAttributeList; /** The type of the user. */
21
+ userType: TailorActorType;
22
+ };
23
+ //#endregion
24
+ //#region src/configure/types/env.d.ts
25
+ interface Env {}
26
+ /** Represents environment variables in the Tailor platform. */
27
+ type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
28
+ //#endregion
29
+ export { TailorEnv as n, TailorActor as r, Env as t };
30
+ //# sourceMappingURL=env-CgI46oPS.d.mts.map
@@ -1,12 +1,24 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { $ as FieldOptions, At as IdpUserTrigger$1, Ct as ResolverInput, Dt as ExecutorInput, F as UserAttributeListKey, Ft as WebhookOperation$1, H as TailorDBInstance, I as UserAttributeMap, It as WorkflowOperation$1, Lt as AuthInvoker$1, Mt as ResolverExecutedTrigger$1, Nt as ScheduleTriggerInput, Ot as FunctionOperation$1, Pt as TailorDBTrigger$1, Q as FieldMetadata, St as Resolver, Tt as AuthAccessTokenTrigger$1, U as TailorDBType, X as ArrayFieldOutput, Z as DefinedFieldMetadata, at as JsonCompatible, ct as MachineUserName, dt as TailorEnv, et as FieldOutput, ft as TailorActor, gt as TailorUser, ht as InferredAttributeMap, it as InferFieldsOutput, j as DefinedAuth, jt as IncomingWebhookTrigger$1, k as AuthServiceInput, kt as GqlOperation$1, n as Plugin, nt as TailorAnyField, ot as JsonValue, rt as TailorField, st as output$1, tt as TailorFieldType, vt as AllowedValues, wt as GeneratorConfig, yt as AllowedValuesOutput } from "./plugin-D84blivd.mjs";
3
- import { _ as IdpDefinitionBrand, g as IdPUserField, n as AppConfig, t as RetryPolicy, x as IdPInput } from "./workflow.generated-BRdcCWfC.mjs";
2
+ import { $ as FieldOptions, At as TailorDBTrigger$1, Ct as ExecutorInput, Dt as IncomingWebhookTrigger$1, Et as IdpUserTrigger$1, F as UserAttributeListKey, H as TailorDBInstance, I as UserAttributeMap, Mt as WorkflowOperation$1, Nt as AuthInvoker$1, Ot as ResolverExecutedTrigger$1, Q as FieldMetadata, Tt as GqlOperation$1, U as TailorDBType, X as ArrayFieldOutput, Z as DefinedFieldMetadata, at as JsonCompatible, bt as GeneratorConfig, dt as InferredAttributeMap, et as FieldOutput, ft as TailorUser, ht as AllowedValuesOutput, it as InferFieldsOutput, j as DefinedAuth, jt as WebhookOperation$1, k as AuthServiceInput, kt as ScheduleTriggerInput, mt as AllowedValues, n as Plugin, nt as TailorAnyField, ot as JsonValue, rt as TailorField, st as output$1, tt as TailorFieldType, vt as Resolver, wt as FunctionOperation$1, xt as AuthAccessTokenTrigger$1, yt as ResolverInput } from "./plugin-_K3ZfP8B.mjs";
3
+ import { n as TailorEnv, r as TailorActor } from "./env-CgI46oPS.mjs";
4
+ import { _ as IdpDefinitionBrand, g as IdPUserField, n as AppConfig, t as RetryPolicy, x as IdPInput } from "./workflow.generated-BxbnuzAE.mjs";
4
5
  import * as _$zod from "zod";
5
6
  import { JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
6
7
  import { Client } from "@urql/core";
7
8
  import { StandardCRON } from "ts-cron-validator";
8
9
  import * as _$zod_v4_core0 from "zod/v4/core";
9
10
 
11
+ //#region src/configure/types/machine-user.d.ts
12
+ interface MachineUserNameRegistry {}
13
+ /**
14
+ * Machine user name.
15
+ *
16
+ * When `tailor.d.ts` is generated (via `tailor-sdk apply`/`generate`), this is narrowed
17
+ * to the union of defined machine user names. When no machine users are registered yet,
18
+ * falls back to `string` to avoid blocking editing before the first generate run.
19
+ */
20
+ type MachineUserName = keyof MachineUserNameRegistry extends never ? string : keyof MachineUserNameRegistry & string;
21
+ //#endregion
10
22
  //#region src/configure/services/auth/index.d.ts
11
23
  type MachineUserAttributeFields = Record<string, TailorField<DefinedFieldMetadata, unknown, FieldMetadata, TailorFieldType>>;
12
24
  type PlaceholderUser = TailorDBInstance<Record<string, never>, Record<string, never>>;
@@ -960,5 +972,5 @@ declare namespace t {
960
972
  type infer<T> = TailorOutput<T>;
961
973
  }
962
974
  //#endregion
963
- export { GqlOperation as $, IdpUserDeletedArgs as A, authAccessTokenRefreshedTrigger as B, AuthAccessTokenArgs as C, AuthAccessTokenTrigger as D, AuthAccessTokenRevokedArgs as E, RecordUpdatedArgs as F, idpUserTrigger as G, authAccessTokenTrigger as H, ResolverExecutedArgs as I, recordDeletedTrigger as J, idpUserUpdatedTrigger as K, ResolverExecutedTrigger as L, IdpUserUpdatedArgs as M, RecordCreatedArgs as N, IdpUserArgs as O, RecordDeletedArgs as P, FunctionOperation as Q, TailorDBTrigger as R, scheduleTrigger as S, AuthAccessTokenRefreshedArgs as T, idpUserCreatedTrigger as U, authAccessTokenRevokedTrigger as V, idpUserDeletedTrigger as W, recordUpdatedTrigger as X, recordTrigger as Y, resolverExecutedTrigger as Z, IncomingWebhookTrigger as _, defineGenerators as a, createWorkflow as at, ScheduleArgs as b, IdPPermission as c, WorkflowJobContext as ct, createExecutor as d, createWorkflowJob as dt, Operation as et, Trigger as f, QueryType as ft, IncomingWebhookResponseConfig as g, IncomingWebhookResponse as h, defineAuth as ht, defineConfig as i, WorkflowConfig as it, IdpUserTrigger as j, IdpUserCreatedArgs as k, IdPPermissionCondition as l, WorkflowJobInput as lt, IncomingWebhookRequest as m, AuthInvoker as mt, output as n, WorkflowOperation as nt, definePlugins as o, WORKFLOW_TEST_ENV_KEY as ot, IncomingWebhookArgs as p, createResolver as pt, recordCreatedTrigger as q, t as r, Workflow as rt, defineIdp as s, WorkflowJob as st, infer as t, WebhookOperation as tt, unsafeAllowAllIdPPermission as u, WorkflowJobOutput as ut, IncomingWebhookTriggerOptions as v, AuthAccessTokenIssuedArgs as w, ScheduleTrigger as x, incomingWebhookTrigger as y, authAccessTokenIssuedTrigger as z };
964
- //# sourceMappingURL=index-Cs3fwmLu.d.mts.map
975
+ export { GqlOperation as $, IdpUserDeletedArgs as A, authAccessTokenRefreshedTrigger as B, AuthAccessTokenArgs as C, AuthAccessTokenTrigger as D, AuthAccessTokenRevokedArgs as E, RecordUpdatedArgs as F, idpUserTrigger as G, authAccessTokenTrigger as H, ResolverExecutedArgs as I, recordDeletedTrigger as J, idpUserUpdatedTrigger as K, ResolverExecutedTrigger as L, IdpUserUpdatedArgs as M, RecordCreatedArgs as N, IdpUserArgs as O, RecordDeletedArgs as P, FunctionOperation as Q, TailorDBTrigger as R, scheduleTrigger as S, AuthAccessTokenRefreshedArgs as T, idpUserCreatedTrigger as U, authAccessTokenRevokedTrigger as V, idpUserDeletedTrigger as W, recordUpdatedTrigger as X, recordTrigger as Y, resolverExecutedTrigger as Z, IncomingWebhookTrigger as _, MachineUserNameRegistry as _t, defineGenerators as a, createWorkflow as at, ScheduleArgs as b, IdPPermission as c, WorkflowJobContext as ct, createExecutor as d, createWorkflowJob as dt, Operation as et, Trigger as f, QueryType as ft, IncomingWebhookResponseConfig as g, MachineUserName as gt, IncomingWebhookResponse as h, defineAuth as ht, defineConfig as i, WorkflowConfig as it, IdpUserTrigger as j, IdpUserCreatedArgs as k, IdPPermissionCondition as l, WorkflowJobInput as lt, IncomingWebhookRequest as m, AuthInvoker as mt, output as n, WorkflowOperation as nt, definePlugins as o, WORKFLOW_TEST_ENV_KEY as ot, IncomingWebhookArgs as p, createResolver as pt, recordCreatedTrigger as q, t as r, Workflow as rt, defineIdp as s, WorkflowJob as st, infer as t, WebhookOperation as tt, unsafeAllowAllIdPPermission as u, WorkflowJobOutput as ut, IncomingWebhookTriggerOptions as v, AuthAccessTokenIssuedArgs as w, ScheduleTrigger as x, incomingWebhookTrigger as y, authAccessTokenIssuedTrigger as z };
976
+ //# sourceMappingURL=index-31hm0Fq7.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D84blivd.mjs";
2
+ import { n as Plugin } from "./plugin-_K3ZfP8B.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/seed/index.d.ts
5
5
  /** Unique identifier for the seed generator plugin. */
@@ -18,4 +18,4 @@ type SeedPluginOptions = {
18
18
  declare function seedPlugin(options: SeedPluginOptions): Plugin<unknown, SeedPluginOptions>;
19
19
  //#endregion
20
20
  export { seedPlugin as n, SeedGeneratorID as t };
21
- //# sourceMappingURL=index-CIIXsk3E.d.mts.map
21
+ //# sourceMappingURL=index-B2tsEXdh.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D84blivd.mjs";
2
+ import { n as Plugin } from "./plugin-_K3ZfP8B.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/file-utils/index.d.ts
5
5
  /** Unique identifier for the file utilities generator plugin. */
@@ -16,4 +16,4 @@ type FileUtilsPluginOptions = {
16
16
  declare function fileUtilsPlugin(options: FileUtilsPluginOptions): Plugin<unknown, FileUtilsPluginOptions>;
17
17
  //#endregion
18
18
  export { fileUtilsPlugin as n, FileUtilsGeneratorID as t };
19
- //# sourceMappingURL=index-D_W9-Lvk.d.mts.map
19
+ //# sourceMappingURL=index-DbzopC7M.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D84blivd.mjs";
2
+ import { n as Plugin } from "./plugin-_K3ZfP8B.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/enum-constants/index.d.ts
5
5
  /** Unique identifier for the enum constants generator plugin. */
@@ -16,4 +16,4 @@ type EnumConstantsPluginOptions = {
16
16
  declare function enumConstantsPlugin(options: EnumConstantsPluginOptions): Plugin<unknown, EnumConstantsPluginOptions>;
17
17
  //#endregion
18
18
  export { enumConstantsPlugin as n, EnumConstantsGeneratorID as t };
19
- //# sourceMappingURL=index-CHo73Aat.d.mts.map
19
+ //# sourceMappingURL=index-DeBFa7oc.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-D84blivd.mjs";
2
+ import { n as Plugin } from "./plugin-_K3ZfP8B.mjs";
3
3
 
4
4
  //#region src/plugin/builtin/kysely-type/index.d.ts
5
5
  /** Unique identifier for the Kysely type generator plugin. */
@@ -16,4 +16,4 @@ type KyselyTypePluginOptions = {
16
16
  declare function kyselyTypePlugin(options: KyselyTypePluginOptions): Plugin<unknown, KyselyTypePluginOptions>;
17
17
  //#endregion
18
18
  export { kyselyTypePlugin as n, KyselyGeneratorID as t };
19
- //# sourceMappingURL=index-Cln_TTZn.d.mts.map
19
+ //# sourceMappingURL=index-y5790SX_.d.mts.map
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-CHo73Aat.mjs";
2
+ import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-DeBFa7oc.mjs";
3
3
  export { EnumConstantsGeneratorID, enumConstantsPlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-D_W9-Lvk.mjs";
2
+ import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-DbzopC7M.mjs";
3
3
  export { FileUtilsGeneratorID, fileUtilsPlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-Cln_TTZn.mjs";
2
+ import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-y5790SX_.mjs";
3
3
  export { KyselyGeneratorID, kyselyTypePlugin };
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as seedPlugin, t as SeedGeneratorID } from "../../../index-CIIXsk3E.mjs";
2
+ import { n as seedPlugin, t as SeedGeneratorID } from "../../../index-B2tsEXdh.mjs";
3
3
  export { SeedGeneratorID, seedPlugin };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { B as TailorAnyDBType, dt as TailorEnv, ft as TailorActor } from "../plugin-D84blivd.mjs";
2
+ import { B as TailorAnyDBType } from "../plugin-_K3ZfP8B.mjs";
3
+ import { n as TailorEnv, r as TailorActor } from "../env-CgI46oPS.mjs";
3
4
 
4
5
  //#region src/plugin/with-context.d.ts
5
6
  /**
@@ -451,42 +451,6 @@ type TailorUser = {
451
451
  /** Represents an unauthenticated user in the Tailor platform. */
452
452
  declare const unauthenticatedTailorUser: TailorUser;
453
453
  //#endregion
454
- //#region src/configure/types/actor.d.ts
455
- /** User type enum values from the Tailor Platform server. */
456
- type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
457
- /** Represents an actor in event triggers. */
458
- type TailorActor = {
459
- /** The ID of the workspace the user belongs to. */workspaceId: string; /** The ID of the user. */
460
- userId: string;
461
- /**
462
- * A map of the user's attributes.
463
- * Maps from server's `attributeMap` field.
464
- */
465
- attributes: InferredAttributeMap | null;
466
- /**
467
- * A list of the user's attributes.
468
- * Maps from server's `attributes` field.
469
- */
470
- attributeList: InferredAttributeList; /** The type of the user. */
471
- userType: TailorActorType;
472
- };
473
- //#endregion
474
- //#region src/configure/types/env.d.ts
475
- interface Env {}
476
- /** Represents environment variables in the Tailor platform. */
477
- type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
478
- //#endregion
479
- //#region src/configure/types/machine-user.d.ts
480
- interface MachineUserNameRegistry {}
481
- /**
482
- * Machine user name.
483
- *
484
- * When `tailor.d.ts` is generated (via `tailor-sdk apply`/`generate`), this is narrowed
485
- * to the union of defined machine user names. When no machine users are registered yet,
486
- * falls back to `string` to avoid blocking editing before the first generate run.
487
- */
488
- type MachineUserName = keyof MachineUserNameRegistry extends never ? string : keyof MachineUserNameRegistry & string;
489
- //#endregion
490
454
  //#region src/configure/types/helpers.d.ts
491
455
  type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
492
456
  type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
@@ -2125,5 +2089,5 @@ interface Plugin<TypeConfig = unknown, PluginConfig = unknown> {
2125
2089
  onExecutorReady?(context: ExecutorReadyContext<PluginConfig>): GeneratorResult | Promise<GeneratorResult>;
2126
2090
  }
2127
2091
  //#endregion
2128
- export { FieldOptions as $, BeforeLoginHookArgs as A, IdpUserTrigger as At, TailorAnyDBType as B, IdProvider as Bt, TailorDBType as C, ResolverInput as Ct, AuthExternalConfig as D, ExecutorInput as Dt, AuthConnectionTokenResult as E, Executor as Et, UserAttributeListKey as F, WebhookOperation as Ft, PermissionCondition as G, SCIMAttributeMapping as Gt, TailorDBInstance as H, OIDC as Ht, UserAttributeMap as I, WorkflowOperation as It, unsafeAllowAllGqlPermission as J, SCIMResource as Jt, TailorTypeGqlPermission as K, SCIMAuthorization as Kt, UsernameFieldKey as L, AuthInvoker as Lt, OAuth2ClientGrantType as M, ResolverExecutedTrigger as Mt, SCIMAttributeType as N, ScheduleTriggerInput as Nt, AuthOwnConfig as O, FunctionOperation as Ot, UserAttributeKey as P, TailorDBTrigger as Pt, FieldMetadata as Q, ValueOperand as R, BuiltinIdP as Rt, TailorDBServiceInput as S, Resolver as St, AuthConfig as T, AuthAccessTokenTrigger as Tt, TailorDBType$1 as U, SAML as Ut, TailorDBField as V, OAuth2ClientInput as Vt, db as W, SCIMAttribute as Wt, ArrayFieldOutput as X, unsafeAllowAllTypePermission as Y, TenantProvider as Yt, DefinedFieldMetadata as Z, GeneratorResult as _, unauthenticatedTailorUser as _t, PluginExecutorContext as a, JsonCompatible as at, TailorDBNamespaceData as b, AuthConnectionConfig as bt, PluginGeneratedExecutorWithFile as c, MachineUserName as ct, PluginNamespaceProcessContext as d, TailorEnv as dt, FieldOutput$1 as et, PluginOutput as f, TailorActor as ft, ExecutorReadyContext as g, TailorUser as gt, TypePluginOutput as h, InferredAttributeMap as ht, PluginConfigs as i, InferFieldsOutput as it, DefinedAuth as j, IncomingWebhookTrigger as jt, AuthServiceInput as k, GqlOperation as kt, PluginGeneratedResolver as l, MachineUserNameRegistry as lt, TailorDBTypeForPlugin as m, AttributeMap as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, JsonValue as ot, PluginProcessContext as p, AttributeList as pt, TailorTypePermission as q, SCIMConfig as qt, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, output as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, Env as ut, ResolverNamespaceData as v, AllowedValues as vt, TypeSourceInfoEntry as w, GeneratorConfig as wt, TailorDBReadyContext as x, AuthConnectionOAuth2Config as xt, ResolverReadyContext as y, AllowedValuesOutput as yt, TailorAnyDBField as z, IDToken as zt };
2129
- //# sourceMappingURL=plugin-D84blivd.d.mts.map
2092
+ export { FieldOptions as $, BeforeLoginHookArgs as A, TailorDBTrigger as At, TailorAnyDBType as B, SCIMAttribute as Bt, TailorDBType as C, ExecutorInput as Ct, AuthExternalConfig as D, IncomingWebhookTrigger as Dt, AuthConnectionTokenResult as E, IdpUserTrigger as Et, UserAttributeListKey as F, IDToken as Ft, PermissionCondition as G, TenantProvider as Gt, TailorDBInstance as H, SCIMAuthorization as Ht, UserAttributeMap as I, IdProvider as It, unsafeAllowAllGqlPermission as J, TailorTypeGqlPermission as K, UsernameFieldKey as L, OAuth2ClientInput as Lt, OAuth2ClientGrantType as M, WorkflowOperation as Mt, SCIMAttributeType as N, AuthInvoker as Nt, AuthOwnConfig as O, ResolverExecutedTrigger as Ot, UserAttributeKey as P, BuiltinIdP as Pt, FieldMetadata as Q, ValueOperand as R, OIDC as Rt, TailorDBServiceInput as S, Executor as St, AuthConfig as T, GqlOperation as Tt, TailorDBType$1 as U, SCIMConfig as Ut, TailorDBField as V, SCIMAttributeMapping as Vt, db as W, SCIMResource as Wt, ArrayFieldOutput as X, unsafeAllowAllTypePermission as Y, DefinedFieldMetadata as Z, GeneratorResult as _, AuthConnectionOAuth2Config as _t, PluginExecutorContext as a, JsonCompatible as at, TailorDBNamespaceData as b, GeneratorConfig as bt, PluginGeneratedExecutorWithFile as c, AttributeList as ct, PluginNamespaceProcessContext as d, InferredAttributeMap as dt, FieldOutput$1 as et, PluginOutput as f, TailorUser as ft, ExecutorReadyContext as g, AuthConnectionConfig as gt, TypePluginOutput as h, AllowedValuesOutput as ht, PluginConfigs as i, InferFieldsOutput as it, DefinedAuth as j, WebhookOperation as jt, AuthServiceInput as k, ScheduleTriggerInput as kt, PluginGeneratedResolver as l, AttributeMap as lt, TailorDBTypeForPlugin as m, AllowedValues as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, JsonValue as ot, PluginProcessContext as p, unauthenticatedTailorUser as pt, TailorTypePermission as q, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, output as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, InferredAttributeList as ut, ResolverNamespaceData as v, Resolver as vt, TypeSourceInfoEntry as w, FunctionOperation as wt, TailorDBReadyContext as x, AuthAccessTokenTrigger as xt, ResolverReadyContext as y, ResolverInput as yt, TailorAnyDBField as z, SAML as zt };
2093
+ //# sourceMappingURL=plugin-_K3ZfP8B.d.mts.map
@@ -544,10 +544,16 @@ function collectAttributesFromConfig(config) {
544
544
  }
545
545
  /**
546
546
  * Resolve the output path for the generated type definition file.
547
+ *
548
+ * When the `TAILOR_PLATFORM_SDK_DTS_PATH` environment variable is set, the value is
549
+ * used as the output path (resolved relative to cwd when relative).
550
+ * Otherwise, the file is written next to the config file as `tailor.d.ts`.
547
551
  * @param configPath - Path to Tailor config file
548
552
  * @returns Absolute path to the type definition file
549
553
  */
550
554
  function resolveTypeDefinitionPath(configPath) {
555
+ const envPath = process.env.TAILOR_PLATFORM_SDK_DTS_PATH;
556
+ if (envPath) return path.resolve(envPath);
551
557
  return path.join(path.dirname(path.resolve(configPath)), "tailor.d.ts");
552
558
  }
553
559
  /**
@@ -14779,4 +14785,4 @@ function isDeno() {
14779
14785
 
14780
14786
  //#endregion
14781
14787
  export { deleteCommand$1 as $, isValidMigrationNumber as $t, truncate as A, formatKeyValueTable as At, updateOrganization as B, DIFF_FILE_NAME as Bt, listCommand$2 as C, startWorkflow as Ct, resumeWorkflow as D, getWorkflowExecution as Dt, resumeCommand as E, executionsCommand as Et, showCommand as F, waitForExecution$1 as Ft, getCommand$1 as G, compareSnapshots as Gt, treeCommand as H, MIGRATE_FILE_NAME as Ht, logBetaWarning as I, MIGRATION_LABEL_KEY as It, updateFolder as J, getLatestMigrationNumber as Jt, getOrganization as K, createSnapshotFromLocalTypes as Kt, remove as L, parseMigrationLabelNumber as Lt, generate as M, getExecutor as Mt, generateCommand as N, apply as Nt, listCommand$3 as O, listWorkflowExecutions as Ot, show as P, executeScript as Pt, getFolder as Q, getNextMigrationNumber as Qt, removeCommand$1 as R, bundleMigrationScript as Rt, listApps as S, startCommand as St, healthCommand as T, getWorkflow as Tt, listCommand$4 as U, SCHEMA_FILE_NAME as Ut, organizationTree as V, INITIAL_SCHEMA_NUMBER as Vt, listOrganizations as W, compareLocalTypesWithSnapshot as Wt, listFolders as X, getMigrationFilePath as Xt, listCommand$5 as Y, getMigrationDirPath as Yt, getCommand$2 as Z, getMigrationFiles as Zt, getWorkspace as _, workspaceArgs as _n, listExecutors as _t, updateUser as a, getNamespacesWithMigrations as an, getCommand$3 as at, createCommand as b, listExecutorJobs as bt, listCommand as c, trnPrefix as cn, tokenCommand as ct, inviteUser as d, apiCommand as dn, generate$1 as dt, loadDiff as en, deleteFolder as et, restoreCommand as f, defineAppCommand as fn, listWebhookExecutors as ft, getCommand as g, isVerbose as gn, listCommand$8 as gt, listWorkspaces as h, deploymentArgs as hn, triggerExecutor as ht, updateCommand as i, hasChanges as in, listOAuth2Clients as it, truncateCommand as j, getCommand$5 as jt, listWorkflows as k, functionExecutionStatusToString as kt, listUsers as l, generateUserTypes as ln, listCommand$7 as lt, listCommand$1 as m, confirmationArgs as mn, triggerCommand as mt, query as n, formatDiffSummary as nn, createFolder as nt, removeCommand as o, prompt as on, getOAuth2Client as ot, restoreWorkspace as p, commonArgs as pn, webhookCommand as pt, updateCommand$2 as q, formatMigrationNumber as qt, queryCommand as r, formatMigrationDiff as rn, listCommand$6 as rt, removeUser as s, sdkNameLabelKey as sn, getMachineUserToken as st, isNativeTypeScriptRuntime as t, reconstructSnapshotFromMigrations as tn, createCommand$1 as tt, inviteCommand as u, apiCall as un, listMachineUsers as ut, deleteCommand as v, getExecutorJob as vt, getAppHealth as w, getCommand$4 as wt, createWorkspace as x, watchExecutorJob as xt, deleteWorkspace as y, jobsCommand as yt, updateCommand$1 as z, DB_TYPES_FILE_NAME as zt };
14782
- //# sourceMappingURL=runtime-ChpwtPut.mjs.map
14788
+ //# sourceMappingURL=runtime-DtSOnOHh.mjs.map