@tailor-platform/sdk 1.35.1 → 1.35.2

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.
@@ -1,10 +1,10 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { C as TailorDBType, Et as IncomingWebhookTrigger, Ft as IdProvider, It as OAuth2ClientInput, Ot as ScheduleTriggerInput, _t as Resolver, n as Plugin, r as PluginAttachment, w as TypeSourceInfoEntry, xt as Executor } from "../plugin-CZaJ3_QR.mjs";
3
- import { n as AppConfig } from "../workflow.generated-IZ3kLjC_.mjs";
4
- import { n as kyselyTypePlugin } from "../index-B1Fgxi8D.mjs";
5
- import { n as enumConstantsPlugin } from "../index-BBlE_vQF.mjs";
6
- import { n as fileUtilsPlugin } from "../index-BG7YCyXF.mjs";
7
- import { n as seedPlugin } from "../index-D-tMAFVp.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-D8hKE6rZ.mjs";
3
+ import { n as AppConfig } from "../workflow.generated-DMt8PNVd.mjs";
4
+ import { n as kyselyTypePlugin } from "../index-DTJkkO-t.mjs";
5
+ import { n as enumConstantsPlugin } from "../index-niQ9Qblw.mjs";
6
+ import { n as fileUtilsPlugin } from "../index-D4pBPp65.mjs";
7
+ import { n as seedPlugin } from "../index-qVqjEYnr.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";
@@ -1,6 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { A as BeforeLoginHookArgs, B as TailorAnyDBType, Bt as SCIMAttributeMapping, D as AuthExternalConfig, E as AuthConnectionTokenResult, F as UserAttributeListKey, Ft as IdProvider, G as PermissionCondition, H as TailorDBInstance, Ht as SCIMConfig, I as UserAttributeMap, It as OAuth2ClientInput, J as unsafeAllowAllGqlPermission, K as TailorTypeGqlPermission, L as UsernameFieldKey, Lt as OIDC, M as OAuth2ClientGrantType, N as SCIMAttributeType, Nt as BuiltinIdP, O as AuthOwnConfig, P as UserAttributeKey, Pt as IDToken, R as ValueOperand, Rt as SAML, T as AuthConfig, U as TailorDBType, Ut as SCIMResource, V as TailorDBField, Vt as SCIMAuthorization, W as db, Wt as TenantProvider, Y as unsafeAllowAllTypePermission, _ as GeneratorResult, _t as Resolver, a as PluginExecutorContext, b as TailorDBNamespaceData, c as PluginGeneratedExecutorWithFile, ct as AttributeMap, d as PluginNamespaceProcessContext, dt as TailorUser, f as PluginOutput, ft as unauthenticatedTailorUser, g as ExecutorReadyContext, gt as AuthConnectionOAuth2Config, h as TypePluginOutput, ht as AuthConnectionConfig, i as PluginConfigs, j as DefinedAuth, k as AuthServiceInput, l as PluginGeneratedResolver, m as TailorDBTypeForPlugin, n as Plugin, o as PluginExecutorContextBase, p as PluginProcessContext, q as TailorTypePermission, r as PluginAttachment, rt as TailorField, s as PluginGeneratedExecutor, st as AttributeList, t as NamespacePluginOutput, u as PluginGeneratedType, v as ResolverNamespaceData, x as TailorDBReadyContext, y as ResolverReadyContext, z as TailorAnyDBField, zt as SCIMAttribute } from "../plugin-CZaJ3_QR.mjs";
3
- import { t as Env } from "../env-MSlwZt8l.mjs";
4
- import { _ as IdPEmailConfig, a as ResolverExternalConfig, 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 IdPGqlOperations, y as IdPGqlOperationsInput } from "../workflow.generated-IZ3kLjC_.mjs";
5
- import { $ as createWorkflow, A as ResolverExecutedArgs, B as idpUserUpdatedTrigger, C as IdpUserCreatedArgs, D as RecordCreatedArgs, E as IdpUserUpdatedArgs, F as authAccessTokenRevokedTrigger, G as resolverExecutedTrigger, H as recordDeletedTrigger, I as authAccessTokenTrigger, J as Operation, K as FunctionOperation, L as idpUserCreatedTrigger, M as TailorDBTrigger, N as authAccessTokenIssuedTrigger, O as RecordDeletedArgs, P as authAccessTokenRefreshedTrigger, Q as WorkflowConfig, R as idpUserDeletedTrigger, S as IdpUserArgs, T as IdpUserTrigger, U as recordTrigger, V as recordCreatedTrigger, W as recordUpdatedTrigger, X as WorkflowOperation, Y as WebhookOperation, Z as Workflow, _ as AuthAccessTokenArgs, a as defineGenerators, at as createWorkflowJob, b as AuthAccessTokenRevokedArgs, c as createExecutor, ct as AuthInvoker, d as IncomingWebhookRequest, et as WORKFLOW_TEST_ENV_KEY, f as IncomingWebhookTrigger, g as scheduleTrigger, h as ScheduleTrigger, i as defineConfig, it as WorkflowJobOutput, j as ResolverExecutedTrigger, k as RecordUpdatedArgs, l as Trigger, lt as defineAuth, m as ScheduleArgs, n as output, nt as WorkflowJobContext, o as definePlugins, ot as QueryType, p as incomingWebhookTrigger, q as GqlOperation, r as t, rt as WorkflowJobInput, s as defineIdp, st as createResolver, t as __Infer, tt as WorkflowJob, u as IncomingWebhookArgs, v as AuthAccessTokenIssuedArgs, w as IdpUserDeletedArgs, x as AuthAccessTokenTrigger, y as AuthAccessTokenRefreshedArgs, z as idpUserTrigger } from "../index-wCoQup4y.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, d as PluginNamespaceProcessContext, dt as AttributeMap, 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, 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, st as Env, t as NamespacePluginOutput, u as PluginGeneratedType, ut as AttributeList, v as ResolverNamespaceData, vt as Resolver, x as TailorDBReadyContext, y as ResolverReadyContext, z as TailorAnyDBField, zt as SAML } from "../plugin-D8hKE6rZ.mjs";
3
+ import { _ as IdPEmailConfig, a as ResolverExternalConfig, 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 IdPGqlOperations, y as IdPGqlOperationsInput } from "../workflow.generated-DMt8PNVd.mjs";
4
+ import { $ as createWorkflow, A as ResolverExecutedArgs, B as idpUserUpdatedTrigger, C as IdpUserCreatedArgs, D as RecordCreatedArgs, E as IdpUserUpdatedArgs, F as authAccessTokenRevokedTrigger, G as resolverExecutedTrigger, H as recordDeletedTrigger, I as authAccessTokenTrigger, J as Operation, K as FunctionOperation, L as idpUserCreatedTrigger, M as TailorDBTrigger, N as authAccessTokenIssuedTrigger, O as RecordDeletedArgs, P as authAccessTokenRefreshedTrigger, Q as WorkflowConfig, R as idpUserDeletedTrigger, S as IdpUserArgs, T as IdpUserTrigger, U as recordTrigger, V as recordCreatedTrigger, W as recordUpdatedTrigger, X as WorkflowOperation, Y as WebhookOperation, Z as Workflow, _ as AuthAccessTokenArgs, a as defineGenerators, at as createWorkflowJob, b as AuthAccessTokenRevokedArgs, c as createExecutor, ct as AuthInvoker, d as IncomingWebhookRequest, et as WORKFLOW_TEST_ENV_KEY, f as IncomingWebhookTrigger, g as scheduleTrigger, h as ScheduleTrigger, i as defineConfig, it as WorkflowJobOutput, j as ResolverExecutedTrigger, k as RecordUpdatedArgs, l as Trigger, lt as defineAuth, m as ScheduleArgs, n as output, nt as WorkflowJobContext, o as definePlugins, ot as QueryType, p as incomingWebhookTrigger, q as GqlOperation, r as t, rt as WorkflowJobInput, s as defineIdp, st as createResolver, t as __Infer, tt as WorkflowJob, u as IncomingWebhookArgs, v as AuthAccessTokenIssuedArgs, w as IdpUserDeletedArgs, x as AuthAccessTokenTrigger, y as AuthAccessTokenRefreshedArgs, z as idpUserTrigger } from "../index--9iVDOXn.mjs";
6
5
  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, IdProvider as IdProviderConfig, IdpUserArgs, IdpUserCreatedArgs, IdpUserDeletedArgs, IdpUserTrigger, IdpUserUpdatedArgs, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, 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, unsafeAllowAllTypePermission };
@@ -1,7 +1,6 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { $ as FieldOptions, At as WebhookOperation$1, Ct as FunctionOperation$1, Dt as ResolverExecutedTrigger$1, Et as IncomingWebhookTrigger$1, F as UserAttributeListKey, H as TailorDBInstance, I as UserAttributeMap, Mt as AuthInvoker$1, Ot as ScheduleTriggerInput, Q as FieldMetadata, St as ExecutorInput, Tt as IdpUserTrigger$1, U as TailorDBType, X as ArrayFieldOutput, Z as DefinedFieldMetadata, _t as Resolver, at as JsonCompatible, bt as AuthAccessTokenTrigger$1, dt as TailorUser, et as FieldOutput, it as InferFieldsOutput, j as DefinedAuth, jt as WorkflowOperation$1, k as AuthServiceInput, kt as TailorDBTrigger$1, mt as AllowedValuesOutput, n as Plugin, nt as TailorAnyField, ot as output$1, pt as AllowedValues, rt as TailorField, tt as TailorFieldType, vt as ResolverInput, wt as GqlOperation$1, yt as GeneratorConfig } from "./plugin-CZaJ3_QR.mjs";
3
- import { n as TailorEnv, r as TailorActor } from "./env-MSlwZt8l.mjs";
4
- import { b as IdPInput, g as IdpDefinitionBrand, n as AppConfig, t as RetryPolicy } from "./workflow.generated-IZ3kLjC_.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, ct as TailorEnv, 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, lt as TailorActor, mt as AllowedValues, n as Plugin, nt as TailorAnyField, ot as output$1, rt as TailorField, tt as TailorFieldType, vt as Resolver, wt as FunctionOperation$1, xt as AuthAccessTokenTrigger$1, yt as ResolverInput } from "./plugin-D8hKE6rZ.mjs";
3
+ import { b as IdPInput, g as IdpDefinitionBrand, n as AppConfig, t as RetryPolicy } from "./workflow.generated-DMt8PNVd.mjs";
5
4
  import * as _$zod from "zod";
6
5
  import { JsonPrimitive, Jsonifiable, Jsonify } from "type-fest";
7
6
  import { Client } from "@urql/core";
@@ -871,4 +870,4 @@ declare namespace t {
871
870
  }
872
871
  //#endregion
873
872
  export { createWorkflow as $, ResolverExecutedArgs as A, idpUserUpdatedTrigger as B, IdpUserCreatedArgs as C, RecordCreatedArgs as D, IdpUserUpdatedArgs as E, authAccessTokenRevokedTrigger as F, resolverExecutedTrigger as G, recordDeletedTrigger as H, authAccessTokenTrigger as I, Operation as J, FunctionOperation as K, idpUserCreatedTrigger as L, TailorDBTrigger as M, authAccessTokenIssuedTrigger as N, RecordDeletedArgs as O, authAccessTokenRefreshedTrigger as P, WorkflowConfig as Q, idpUserDeletedTrigger as R, IdpUserArgs as S, IdpUserTrigger as T, recordTrigger as U, recordCreatedTrigger as V, recordUpdatedTrigger as W, WorkflowOperation as X, WebhookOperation as Y, Workflow as Z, AuthAccessTokenArgs as _, defineGenerators as a, createWorkflowJob as at, AuthAccessTokenRevokedArgs as b, createExecutor as c, AuthInvoker as ct, IncomingWebhookRequest as d, WORKFLOW_TEST_ENV_KEY as et, IncomingWebhookTrigger as f, scheduleTrigger as g, ScheduleTrigger as h, defineConfig as i, WorkflowJobOutput as it, ResolverExecutedTrigger as j, RecordUpdatedArgs as k, Trigger as l, defineAuth as lt, ScheduleArgs as m, output as n, WorkflowJobContext as nt, definePlugins as o, QueryType as ot, incomingWebhookTrigger as p, GqlOperation as q, t as r, WorkflowJobInput as rt, defineIdp as s, createResolver as st, infer as t, WorkflowJob as tt, IncomingWebhookArgs as u, AuthAccessTokenIssuedArgs as v, IdpUserDeletedArgs as w, AuthAccessTokenTrigger as x, AuthAccessTokenRefreshedArgs as y, idpUserTrigger as z };
874
- //# sourceMappingURL=index-wCoQup4y.d.mts.map
873
+ //# sourceMappingURL=index--9iVDOXn.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-CZaJ3_QR.mjs";
2
+ import { n as Plugin } from "./plugin-D8hKE6rZ.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-BG7YCyXF.d.mts.map
19
+ //# sourceMappingURL=index-D4pBPp65.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-CZaJ3_QR.mjs";
2
+ import { n as Plugin } from "./plugin-D8hKE6rZ.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-B1Fgxi8D.d.mts.map
19
+ //# sourceMappingURL=index-DTJkkO-t.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-CZaJ3_QR.mjs";
2
+ import { n as Plugin } from "./plugin-D8hKE6rZ.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-BBlE_vQF.d.mts.map
19
+ //# sourceMappingURL=index-niQ9Qblw.d.mts.map
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { n as Plugin } from "./plugin-CZaJ3_QR.mjs";
2
+ import { n as Plugin } from "./plugin-D8hKE6rZ.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-D-tMAFVp.d.mts.map
21
+ //# sourceMappingURL=index-qVqjEYnr.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-BBlE_vQF.mjs";
2
+ import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-niQ9Qblw.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-BG7YCyXF.mjs";
2
+ import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-D4pBPp65.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-B1Fgxi8D.mjs";
2
+ import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-DTJkkO-t.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-D-tMAFVp.mjs";
2
+ import { n as seedPlugin, t as SeedGeneratorID } from "../../../index-qVqjEYnr.mjs";
3
3
  export { SeedGeneratorID, seedPlugin };
@@ -1,6 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { B as TailorAnyDBType } from "../plugin-CZaJ3_QR.mjs";
3
- import { n as TailorEnv, r as TailorActor } from "../env-MSlwZt8l.mjs";
2
+ import { B as TailorAnyDBType, ct as TailorEnv, lt as TailorActor } from "../plugin-D8hKE6rZ.mjs";
4
3
 
5
4
  //#region src/plugin/with-context.d.ts
6
5
  /**
@@ -437,6 +437,31 @@ type TailorUser = {
437
437
  /** Represents an unauthenticated user in the Tailor platform. */
438
438
  declare const unauthenticatedTailorUser: TailorUser;
439
439
  //#endregion
440
+ //#region src/configure/types/actor.d.ts
441
+ /** User type enum values from the Tailor Platform server. */
442
+ type TailorActorType = "USER_TYPE_USER" | "USER_TYPE_MACHINE_USER" | "USER_TYPE_UNSPECIFIED";
443
+ /** Represents an actor in event triggers. */
444
+ type TailorActor = {
445
+ /** The ID of the workspace the user belongs to. */workspaceId: string; /** The ID of the user. */
446
+ userId: string;
447
+ /**
448
+ * A map of the user's attributes.
449
+ * Maps from server's `attributeMap` field.
450
+ */
451
+ attributes: InferredAttributeMap | null;
452
+ /**
453
+ * A list of the user's attributes.
454
+ * Maps from server's `attributes` field.
455
+ */
456
+ attributeList: InferredAttributeList; /** The type of the user. */
457
+ userType: TailorActorType;
458
+ };
459
+ //#endregion
460
+ //#region src/configure/types/env.d.ts
461
+ interface Env {}
462
+ /** Represents environment variables in the Tailor platform. */
463
+ type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
464
+ //#endregion
440
465
  //#region src/configure/types/helpers.d.ts
441
466
  type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
442
467
  type DeepWritable<T> = T extends Date | RegExp | Function ? T : T extends object ? { -readonly [P in keyof T]: DeepWritable<T[P]> } & {} : T;
@@ -2068,5 +2093,5 @@ interface Plugin<TypeConfig = unknown, PluginConfig = unknown> {
2068
2093
  onExecutorReady?(context: ExecutorReadyContext<PluginConfig>): GeneratorResult | Promise<GeneratorResult>;
2069
2094
  }
2070
2095
  //#endregion
2071
- export { FieldOptions as $, BeforeLoginHookArgs as A, WebhookOperation as At, TailorAnyDBType as B, SCIMAttributeMapping as Bt, TailorDBType as C, FunctionOperation as Ct, AuthExternalConfig as D, ResolverExecutedTrigger as Dt, AuthConnectionTokenResult as E, IncomingWebhookTrigger as Et, UserAttributeListKey as F, IdProvider as Ft, PermissionCondition as G, TailorDBInstance as H, SCIMConfig as Ht, UserAttributeMap as I, OAuth2ClientInput as It, unsafeAllowAllGqlPermission as J, TailorTypeGqlPermission as K, UsernameFieldKey as L, OIDC as Lt, OAuth2ClientGrantType as M, AuthInvoker as Mt, SCIMAttributeType as N, BuiltinIdP as Nt, AuthOwnConfig as O, ScheduleTriggerInput as Ot, UserAttributeKey as P, IDToken as Pt, FieldMetadata as Q, ValueOperand as R, SAML as Rt, TailorDBServiceInput as S, ExecutorInput as St, AuthConfig as T, IdpUserTrigger as Tt, TailorDBType$1 as U, SCIMResource as Ut, TailorDBField as V, SCIMAuthorization as Vt, db as W, TenantProvider as Wt, ArrayFieldOutput as X, unsafeAllowAllTypePermission as Y, DefinedFieldMetadata as Z, GeneratorResult as _, Resolver as _t, PluginExecutorContext as a, JsonCompatible as at, TailorDBNamespaceData as b, AuthAccessTokenTrigger as bt, PluginGeneratedExecutorWithFile as c, AttributeMap as ct, PluginNamespaceProcessContext as d, TailorUser as dt, FieldOutput$1 as et, PluginOutput as f, unauthenticatedTailorUser as ft, ExecutorReadyContext as g, AuthConnectionOAuth2Config as gt, TypePluginOutput as h, AuthConnectionConfig as ht, PluginConfigs as i, InferFieldsOutput as it, DefinedAuth as j, WorkflowOperation as jt, AuthServiceInput as k, TailorDBTrigger as kt, PluginGeneratedResolver as l, InferredAttributeList as lt, TailorDBTypeForPlugin as m, AllowedValuesOutput as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, output as ot, PluginProcessContext as p, AllowedValues as pt, TailorTypePermission as q, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, AttributeList as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, InferredAttributeMap as ut, ResolverNamespaceData as v, ResolverInput as vt, TypeSourceInfoEntry as w, GqlOperation as wt, TailorDBReadyContext as x, Executor as xt, ResolverReadyContext as y, GeneratorConfig as yt, TailorAnyDBField as z, SCIMAttribute as zt };
2072
- //# sourceMappingURL=plugin-CZaJ3_QR.d.mts.map
2096
+ 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, TailorEnv as ct, PluginNamespaceProcessContext as d, AttributeMap 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, TailorActor as lt, TailorDBTypeForPlugin as m, AllowedValues as mt, Plugin as n, TailorAnyField as nt, PluginExecutorContextBase as o, output as ot, PluginProcessContext as p, unauthenticatedTailorUser as pt, TailorTypePermission as q, PluginAttachment as r, TailorField as rt, PluginGeneratedExecutor as s, Env as st, NamespacePluginOutput as t, TailorFieldType as tt, PluginGeneratedType as u, AttributeList 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 };
2097
+ //# sourceMappingURL=plugin-D8hKE6rZ.d.mts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { U as TailorDBType, rt as TailorField } from "../../plugin-CZaJ3_QR.mjs";
3
- import { et as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index-wCoQup4y.mjs";
2
+ import { U as TailorDBType, rt as TailorField } from "../../plugin-D8hKE6rZ.mjs";
3
+ import { et as WORKFLOW_TEST_ENV_KEY, n as output } from "../../index--9iVDOXn.mjs";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
5
 
6
6
  //#region src/utils/test/mock.d.ts
@@ -1,5 +1,5 @@
1
1
  /// <reference types="@tailor-platform/function-types" />
2
- import { Nt as BuiltinIdP, S as TailorDBServiceInput, T as AuthConfig } from "./plugin-CZaJ3_QR.mjs";
2
+ import { Pt as BuiltinIdP, S as TailorDBServiceInput, T as AuthConfig } from "./plugin-D8hKE6rZ.mjs";
3
3
 
4
4
  //#region src/types/idp.generated.d.ts
5
5
  /**
@@ -203,4 +203,4 @@ type RetryPolicy = {
203
203
  };
204
204
  //#endregion
205
205
  export { IdPEmailConfig as _, ResolverExternalConfig as a, IdPInput as b, WorkflowServiceConfig as c, defineStaticWebSite as d, SecretsConfig as f, IdpDefinitionBrand as g, IdPExternalConfig as h, ExecutorServiceInput as i, WorkflowServiceInput as l, IdPConfig as m, AppConfig as n, ResolverServiceConfig as o, defineSecretManager as p, ExecutorServiceConfig as r, ResolverServiceInput as s, RetryPolicy as t, StaticWebsiteConfig as u, IdPGqlOperations as v, IdPGqlOperationsInput as y };
206
- //# sourceMappingURL=workflow.generated-IZ3kLjC_.d.mts.map
206
+ //# sourceMappingURL=workflow.generated-DMt8PNVd.d.mts.map
@@ -152,7 +152,7 @@ tailor-sdk function test-run [options] <file>
152
152
  **Run a resolver with input arguments**
153
153
 
154
154
  ```bash
155
- $ tailor-sdk function test-run resolvers/add.ts --arg '{"input":{"a":1,"b":2}}'
155
+ $ tailor-sdk function test-run resolvers/add.ts --arg '{"a":1,"b":2}'
156
156
  ```
157
157
 
158
158
  **Run a specific workflow job by name**
@@ -164,7 +164,7 @@ $ tailor-sdk function test-run workflows/sample.ts --name validate-order
164
164
  **Run a pre-bundled .js file directly**
165
165
 
166
166
  ```bash
167
- $ tailor-sdk function test-run build/resolvers/add.js --arg '{"input":{"a":1,"b":2}}'
167
+ $ tailor-sdk function test-run build/resolvers/add.js --arg '{"a":1,"b":2}'
168
168
  ```
169
169
 
170
170
  <!-- politty:command:function test-run:examples:end -->
@@ -13,7 +13,7 @@ Resolvers provide:
13
13
 
14
14
  ## Comparison with Tailor Platform Pipeline Resolver
15
15
 
16
- The SDK's Resolver is a simplified version of Tailor Platform's [Pipeline Resolver](https://docs.tailor.tech/guides/pipeline).
16
+ The SDK's Resolver is a simplified version of Tailor Platform's [Pipeline Resolver](https://docs.tailor.tech/guides/resolver).
17
17
 
18
18
  | Pipeline Resolver | SDK Resolver |
19
19
  | ---------------------------------------- | --------------------------------- |
@@ -115,6 +115,54 @@ export const mainJob = createWorkflowJob({
115
115
 
116
116
  **Important:** On the Tailor runtime, job triggers are executed synchronously. This means `Promise.all([jobA.trigger(), jobB.trigger()])` will not run jobs in parallel.
117
117
 
118
+ ### Deterministic Execution Requirement
119
+
120
+ Workflow jobs use a **suspend/resume execution model**. When a job calls `.trigger()`, the runtime suspends the current job, executes the triggered job, and then **re-executes the calling job from the beginning** with cached results from previous triggers.
121
+
122
+ This means that **job code must be deterministic** — every re-execution must produce the same sequence of `.trigger()` calls with the same arguments in the same order.
123
+
124
+ Using `.trigger()` inside a loop works correctly, as long as the loop is deterministic:
125
+
126
+ ```typescript
127
+ // ✅ OK: deterministic loop — same calls in the same order on every execution
128
+ const regions = ["us", "eu", "ap"];
129
+ for (const region of regions) {
130
+ const result = await fetchData.trigger({ region });
131
+ results.push(result);
132
+ }
133
+ ```
134
+
135
+ ```typescript
136
+ // ❌ Bad: non-deterministic — argument changes between executions
137
+ await processJob.trigger({ timestamp: Date.now() });
138
+
139
+ // ✅ OK: call Date.now() in separated job
140
+ const timestamp = await timestampJob.trigger();
141
+ await processJob.trigger({ timestamp });
142
+ ```
143
+
144
+ ```typescript
145
+ // ❌ Bad: non-deterministic — external data may change between executions
146
+ const items = await fetch("https://api.example.com/items").then((r) => r.json());
147
+ for (const item of items) {
148
+ await processItem.trigger({ id: item.id });
149
+ }
150
+
151
+ // ✅ OK: call fetch("https://api.example.com/items").then((r) => r.json()); in separated job
152
+ const items = await fetchItemsJob.trigger();
153
+ for (const item of items) {
154
+ await processItem.trigger({ id: item.id });
155
+ }
156
+ ```
157
+
158
+ If the runtime detects that a `.trigger()` call at the same position has different arguments than the previous execution, it will throw an **argument hash mismatch error**.
159
+
160
+ **Guidelines:**
161
+
162
+ - Do not use non-deterministic values (random numbers, timestamps, external API responses) as `.trigger()` arguments.
163
+ - Do not use conditions that may change between executions to decide whether to call `.trigger()`.
164
+ - Any data that varies between executions should be fetched **inside the triggered job**, not passed as an argument from the calling job.
165
+
118
166
  ## Workflow Definition
119
167
 
120
168
  Define a workflow using `createWorkflow` and export it as default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.35.1",
3
+ "version": "1.35.2",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -81,8 +81,8 @@
81
81
  "@bufbuild/protobuf": "2.11.0",
82
82
  "@connectrpc/connect": "2.1.1",
83
83
  "@connectrpc/connect-node": "2.1.1",
84
- "@inquirer/core": "11.1.7",
85
- "@inquirer/prompts": "8.3.2",
84
+ "@inquirer/core": "11.1.8",
85
+ "@inquirer/prompts": "8.4.0",
86
86
  "@liam-hq/cli": "0.7.24",
87
87
  "@napi-rs/keyring": "1.2.0",
88
88
  "@opentelemetry/api": "1.9.1",
@@ -110,7 +110,7 @@
110
110
  "multiline-ts": "4.0.1",
111
111
  "open": "11.0.0",
112
112
  "ora": "9.3.0",
113
- "oxc-parser": "0.121.0",
113
+ "oxc-parser": "0.124.0",
114
114
  "p-limit": "7.3.0",
115
115
  "pathe": "2.0.3",
116
116
  "pgsql-ast-parser": "12.0.2",
@@ -134,12 +134,12 @@
134
134
  "@types/mime-types": "3.0.1",
135
135
  "@types/node": "24.12.2",
136
136
  "@types/semver": "7.7.1",
137
- "@typescript/native-preview": "7.0.0-dev.20260404.1",
137
+ "@typescript/native-preview": "7.0.0-dev.20260406.1",
138
138
  "@vitest/coverage-v8": "4.1.2",
139
139
  "eslint": "10.2.0",
140
140
  "eslint-plugin-jsdoc": "62.9.0",
141
141
  "eslint-plugin-oxlint": "1.58.0",
142
- "oxfmt": "0.42.0",
142
+ "oxfmt": "0.44.0",
143
143
  "oxlint": "1.58.0",
144
144
  "oxlint-tsgolint": "0.20.0",
145
145
  "sonda": "0.11.1",
@@ -1,30 +0,0 @@
1
- /// <reference types="@tailor-platform/function-types" />
2
- import { lt as InferredAttributeList, ut as InferredAttributeMap } from "./plugin-CZaJ3_QR.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-MSlwZt8l.d.mts.map