@tailor-platform/sdk 1.2.0 → 1.2.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.
@@ -1,10 +1,10 @@
1
1
  /// <reference path="./user-defined.d.ts" />
2
- import * as zod38 from "zod";
2
+ import * as zod0 from "zod";
3
3
  import { z } from "zod";
4
4
  import * as type_fest0 from "type-fest";
5
5
  import { IsAny, NonEmptyObject } from "type-fest";
6
6
  import { StandardSchemaV1 } from "@standard-schema/spec";
7
- import * as zod_v4_core33 from "zod/v4/core";
7
+ import * as zod_v4_core0 from "zod/v4/core";
8
8
 
9
9
  //#region src/configure/types/helpers.d.ts
10
10
  type Prettify<T$1> = { [K in keyof T$1 as string extends K ? never : K]: T$1[K] } & {};
@@ -305,11 +305,6 @@ type TailorUser = {
305
305
  /** Represents an unauthenticated user in the Tailor platform. */
306
306
  declare const unauthenticatedTailorUser: TailorUser;
307
307
  //#endregion
308
- //#region src/configure/types/env.d.ts
309
- interface Env {}
310
- /** Represents environment variables in the Tailor platform. */
311
- type TailorEnv = keyof Env extends never ? Record<string, string> : Env;
312
- //#endregion
313
308
  //#region src/parser/service/auth/schema.d.ts
314
309
  declare const AuthInvokerSchema: z.ZodObject<{
315
310
  namespace: z.ZodString;
@@ -1233,7 +1228,7 @@ declare const IdPSchema: z.core.$ZodBranded<z.ZodObject<{
1233
1228
  passwordMinLength?: number | undefined;
1234
1229
  passwordMaxLength?: number | undefined;
1235
1230
  }>>>;
1236
- }, z.core.$strip>, "IdPConfig">;
1231
+ }, z.core.$strip>, "IdPConfig", "out">;
1237
1232
  //#endregion
1238
1233
  //#region src/parser/service/idp/types.d.ts
1239
1234
  type IdPInput = z.input<typeof IdPSchema>;
@@ -1280,7 +1275,7 @@ declare const StaticWebsiteSchema: z.core.$ZodBranded<z.ZodObject<{
1280
1275
  name: z.ZodString;
1281
1276
  description: z.ZodOptional<z.ZodString>;
1282
1277
  allowedIpAddresses: z.ZodOptional<z.ZodArray<z.ZodString>>;
1283
- }, z.core.$strip>, "StaticWebsiteConfig">;
1278
+ }, z.core.$strip>, "StaticWebsiteConfig", "out">;
1284
1279
  //#endregion
1285
1280
  //#region src/parser/service/staticwebsite/types.d.ts
1286
1281
  type StaticWebsiteInput = z.input<typeof StaticWebsiteSchema>;
@@ -1399,7 +1394,7 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
1399
1394
  processExecutor?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1400
1395
  processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1401
1396
  processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1402
- }>>, "CodeGenerator">;
1397
+ }>>, "CodeGenerator", "out">;
1403
1398
  type GeneratorConfigSchemaType = ReturnType<typeof createGeneratorConfigSchema>;
1404
1399
  type Generator = z.output<GeneratorConfigSchemaType>;
1405
1400
  //#endregion
@@ -1410,9 +1405,9 @@ type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencie
1410
1405
  };
1411
1406
  //#endregion
1412
1407
  //#region src/configure/config.d.ts
1413
- interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], Env$1 extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
1408
+ interface AppConfig<Auth extends AuthConfig = AuthConfig, Idp extends IdPConfig[] = IdPConfig[], StaticWebsites extends StaticWebsiteConfig[] = StaticWebsiteConfig[], Env extends Record<string, string | number | boolean> = Record<string, string | number | boolean>> {
1414
1409
  name: string;
1415
- env?: Env$1;
1410
+ env?: Env;
1416
1411
  cors?: string[];
1417
1412
  allowedIpAddresses?: string[];
1418
1413
  disableIntrospection?: boolean;
@@ -1438,12 +1433,12 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
1438
1433
  id: string;
1439
1434
  description: string;
1440
1435
  dependencies: ("tailordb" | "resolver" | "executor")[];
1441
- aggregate: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod38.ZodAny>;
1442
- processType?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
1443
- processResolver?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
1444
- processExecutor?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
1445
- processTailorDBNamespace?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
1446
- processResolverNamespace?: zod_v4_core33.$InferInnerFunctionType<zod_v4_core33.$ZodFunctionArgs, zod_v4_core33.$ZodFunctionOut> | undefined;
1436
+ aggregate: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod0.ZodAny>;
1437
+ processType?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1438
+ processResolver?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1439
+ processExecutor?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1440
+ processTailorDBNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1441
+ processResolverNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1447
1442
  })[];
1448
1443
  //#endregion
1449
1444
  //#region src/parser/service/executor/schema.d.ts
@@ -1581,5 +1576,5 @@ type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
1581
1576
  type Executor = z.infer<typeof ExecutorSchema>;
1582
1577
  type ExecutorInput = z.input<typeof ExecutorSchema>;
1583
1578
  //#endregion
1584
- export { SCIMAttributeMapping as $, db as A, AuthExternalConfig as B, ResolverServiceConfig as C, FieldOutput$1 as Ct, TailorDBField as D, output as Dt, ExecutorServiceInput as E, JsonCompatible as Et, TailorTypeGqlPermission as F, BuiltinIdP as G, AuthOwnConfig as H, TailorTypePermission as I, OAuth2ClientGrantType as J, IDToken as K, unsafeAllowAllGqlPermission as L, AllowedValuesOutput as M, ParsedTailorDBType as N, TailorDBInstance as O, PermissionCondition as P, SCIMAttribute as Q, unsafeAllowAllTypePermission as R, ResolverExternalConfig as S, FieldOptions as St, ExecutorServiceConfig as T, InferFieldsOutput as Tt, defineAuth as U, AuthInvoker as V, AuthServiceInput as W, OIDC as X, OAuth2ClientInput as Y, SAML as Z, StaticWebsiteConfig as _, QueryType as _t, IncomingWebhookTrigger as a, UserAttributeKey as at, IdPExternalConfig as b, ArrayFieldOutput as bt, ScheduleTriggerInput as c, UsernameFieldKey as ct, AppConfig as d, TailorEnv as dt, SCIMAttributeType as et, defineConfig as f, AttributeList as ft, WorkflowServiceInput as g, TailorField as gt, WorkflowServiceConfig as h, unauthenticatedTailorUser as ht, GqlOperation as i, TenantProviderConfig as it, AllowedValues as j, TailorDBType as k, WebhookOperation as l, ValueOperand as lt, Generator as m, TailorUser as mt, ExecutorInput as n, SCIMConfig as nt, RecordTrigger as o, UserAttributeListKey as ot, defineGenerators as p, AttributeMap as pt, IdProviderConfig as q, FunctionOperation as r, SCIMResource as rt, ResolverExecutedTrigger as s, UserAttributeMap as st, Executor as t, SCIMAuthorization as tt, WorkflowOperation as u, Env as ut, defineStaticWebSite as v, Resolver as vt, ResolverServiceInput as w, TailorFieldType as wt, defineIdp as x, FieldMetadata as xt, IdPConfig as y, ResolverInput as yt, AuthConfig as z };
1585
- //# sourceMappingURL=types-QjDcgdOy.d.mts.map
1579
+ export { SCIMAttributeMapping as $, db as A, AuthExternalConfig as B, ResolverServiceConfig as C, InferFieldsOutput as Ct, TailorDBField as D, ExecutorServiceInput as E, TailorTypeGqlPermission as F, BuiltinIdP as G, AuthOwnConfig as H, TailorTypePermission as I, OAuth2ClientGrantType as J, IDToken as K, unsafeAllowAllGqlPermission as L, AllowedValuesOutput as M, ParsedTailorDBType as N, TailorDBInstance as O, PermissionCondition as P, SCIMAttribute as Q, unsafeAllowAllTypePermission as R, ResolverExternalConfig as S, TailorFieldType as St, ExecutorServiceConfig as T, output as Tt, defineAuth as U, AuthInvoker as V, AuthServiceInput as W, OIDC as X, OAuth2ClientInput as Y, SAML as Z, StaticWebsiteConfig as _, ResolverInput as _t, IncomingWebhookTrigger as a, UserAttributeKey as at, IdPExternalConfig as b, FieldOptions as bt, ScheduleTriggerInput as c, UsernameFieldKey as ct, AppConfig as d, AttributeMap as dt, SCIMAttributeType as et, defineConfig as f, TailorUser as ft, WorkflowServiceInput as g, Resolver as gt, WorkflowServiceConfig as h, QueryType as ht, GqlOperation as i, TenantProviderConfig as it, AllowedValues as j, TailorDBType as k, WebhookOperation as l, ValueOperand as lt, Generator as m, TailorField as mt, ExecutorInput as n, SCIMConfig as nt, RecordTrigger as o, UserAttributeListKey as ot, defineGenerators as p, unauthenticatedTailorUser as pt, IdProviderConfig as q, FunctionOperation as r, SCIMResource as rt, ResolverExecutedTrigger as s, UserAttributeMap as st, Executor as t, SCIMAuthorization as tt, WorkflowOperation as u, AttributeList as ut, defineStaticWebSite as v, ArrayFieldOutput as vt, ResolverServiceInput as w, JsonCompatible as wt, defineIdp as x, FieldOutput$1 as xt, IdPConfig as y, FieldMetadata as yt, AuthConfig as z };
1580
+ //# sourceMappingURL=types-Du-lo0MV.d.mts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./../../user-defined.d.ts" />
2
- import { gt as TailorField, k as TailorDBType } from "../../types-QjDcgdOy.mjs";
3
- import { n as output } from "../../index-Dz4RseTN.mjs";
2
+ import { k as TailorDBType, mt as TailorField } from "../../types-Du-lo0MV.mjs";
3
+ import { n as output } from "../../index-C4nvv_Ew.mjs";
4
4
  import { StandardSchemaV1 } from "@standard-schema/spec";
5
5
 
6
6
  //#region src/utils/test/index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -69,7 +69,7 @@
69
69
  "type-fest": "5.3.1",
70
70
  "uuid": "13.0.0",
71
71
  "xdg-basedir": "5.1.0",
72
- "zod": "4.2.1"
72
+ "zod": "4.3.4"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@eslint/js": "9.39.2",