@tailor-platform/sdk 0.24.0 → 1.1.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.
@@ -1,10 +1,10 @@
1
1
  /// <reference path="./user-defined.d.ts" />
2
- import * as zod34 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_core50 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] } & {};
@@ -1303,12 +1303,23 @@ type WorkflowServiceConfig = {
1303
1303
  type WorkflowServiceInput = WorkflowServiceConfig;
1304
1304
  //#endregion
1305
1305
  //#region src/parser/generator-config/index.d.ts
1306
+ declare const DependencyKindSchema: z.ZodEnum<{
1307
+ tailordb: "tailordb";
1308
+ resolver: "resolver";
1309
+ executor: "executor";
1310
+ }>;
1311
+ type DependencyKind = z.infer<typeof DependencyKindSchema>;
1306
1312
  declare const CodeGeneratorSchema: z.ZodObject<{
1307
1313
  id: z.ZodString;
1308
1314
  description: z.ZodString;
1309
- processType: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1310
- processResolver: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1311
- processExecutor: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1315
+ dependencies: z.ZodArray<z.ZodEnum<{
1316
+ tailordb: "tailordb";
1317
+ resolver: "resolver";
1318
+ executor: "executor";
1319
+ }>>;
1320
+ processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1321
+ processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1322
+ processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1312
1323
  processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1313
1324
  processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1314
1325
  aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
@@ -1325,9 +1336,14 @@ declare const BaseGeneratorConfigSchema: z.ZodUnion<readonly [z.ZodTuple<[z.ZodL
1325
1336
  }, z.core.$strip>], null>, z.ZodObject<{
1326
1337
  id: z.ZodString;
1327
1338
  description: z.ZodString;
1328
- processType: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1329
- processResolver: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1330
- processExecutor: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1339
+ dependencies: z.ZodArray<z.ZodEnum<{
1340
+ tailordb: "tailordb";
1341
+ resolver: "resolver";
1342
+ executor: "executor";
1343
+ }>>;
1344
+ processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1345
+ processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1346
+ processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1331
1347
  processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1332
1348
  processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1333
1349
  aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
@@ -1348,22 +1364,18 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
1348
1364
  }, z.core.$strip>], null>, z.ZodObject<{
1349
1365
  id: z.ZodString;
1350
1366
  description: z.ZodString;
1351
- processType: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1352
- processResolver: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1353
- processExecutor: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1367
+ dependencies: z.ZodArray<z.ZodEnum<{
1368
+ tailordb: "tailordb";
1369
+ resolver: "resolver";
1370
+ executor: "executor";
1371
+ }>>;
1372
+ processType: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1373
+ processResolver: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1374
+ processExecutor: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1354
1375
  processTailorDBNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1355
1376
  processResolverNamespace: z.ZodOptional<z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>>;
1356
1377
  aggregate: z.ZodFunction<z.core.$ZodFunctionArgs, z.ZodAny>;
1357
- }, z.core.$strip>]>, z.ZodTransform<{
1358
- id: string;
1359
- description: string;
1360
- processType: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1361
- processResolver: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1362
- processExecutor: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1363
- aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
1364
- processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1365
- processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1366
- }, ["@tailor-platform/kysely-type", {
1378
+ }, z.core.$strip>]>, z.ZodTransform<CodeGeneratorBase, ["@tailor-platform/kysely-type", {
1367
1379
  distPath: string;
1368
1380
  }] | ["@tailor-platform/seed", {
1369
1381
  distPath: string;
@@ -1375,10 +1387,11 @@ declare function createGeneratorConfigSchema(builtinGenerators: Map<string, (opt
1375
1387
  }] | {
1376
1388
  id: string;
1377
1389
  description: string;
1378
- processType: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1379
- processResolver: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1380
- processExecutor: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
1390
+ dependencies: ("tailordb" | "resolver" | "executor")[];
1381
1391
  aggregate: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.ZodAny>;
1392
+ processType?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1393
+ processResolver?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1394
+ processExecutor?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1382
1395
  processTailorDBNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1383
1396
  processResolverNamespace?: z.core.$InferOuterFunctionType<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut> | undefined;
1384
1397
  }>>, "CodeGenerator">;
@@ -1387,7 +1400,9 @@ type Generator = z.output<GeneratorConfigSchemaType>;
1387
1400
  //#endregion
1388
1401
  //#region src/parser/generator-config/types.d.ts
1389
1402
  type GeneratorConfig = z.input<typeof BaseGeneratorConfigSchema>;
1390
- type CodeGeneratorBase = z.output<typeof CodeGeneratorSchema>;
1403
+ type CodeGeneratorBase = Omit<z.output<typeof CodeGeneratorSchema>, "dependencies"> & {
1404
+ dependencies: readonly DependencyKind[];
1405
+ };
1391
1406
  //#endregion
1392
1407
  //#region src/configure/config.d.ts
1393
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>> {
@@ -1417,12 +1432,13 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
1417
1432
  }] | {
1418
1433
  id: string;
1419
1434
  description: string;
1420
- processType: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1421
- processResolver: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1422
- processExecutor: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1423
- aggregate: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod34.ZodAny>;
1424
- processTailorDBNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
1425
- processResolverNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
1435
+ dependencies: ("tailordb" | "resolver" | "executor")[];
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;
1426
1442
  })[];
1427
1443
  //#endregion
1428
1444
  //#region src/parser/service/executor/schema.d.ts
@@ -1560,5 +1576,5 @@ type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
1560
1576
  type Executor = z.infer<typeof ExecutorSchema>;
1561
1577
  type ExecutorInput = z.input<typeof ExecutorSchema>;
1562
1578
  //#endregion
1563
- export { SCIMAttribute as $, TailorDBType as A, AuthConfig as B, ResolverExternalConfig as C, InferFieldsOutput as Ct, ExecutorServiceInput as D, ExecutorServiceConfig as E, PermissionCondition as F, AuthServiceInput as G, AuthInvoker as H, TailorTypeGqlPermission as I, IdProviderConfig as J, BuiltinIdP as K, TailorTypePermission as L, AllowedValues as M, AllowedValuesOutput as N, TailorDBField as O, ParsedTailorDBType as P, SAML as Q, unsafeAllowAllGqlPermission as R, defineIdp as S, FieldOutput$1 as St, ResolverServiceInput as T, output as Tt, AuthOwnConfig as U, AuthExternalConfig as V, defineAuth as W, OAuth2ClientInput as X, OAuth2ClientGrantType as Y, OIDC as Z, WorkflowServiceInput as _, Resolver as _t, IncomingWebhookTrigger as a, TenantProviderConfig as at, IdPConfig as b, FieldMetadata as bt, ScheduleTriggerInput as c, UserAttributeMap as ct, AppConfig as d, AttributeList as dt, SCIMAttributeMapping as et, defineConfig as f, AttributeMap as ft, WorkflowServiceConfig as g, QueryType as gt, Generator as h, TailorField as ht, GqlOperation as i, SCIMResource as it, db as j, TailorDBInstance as k, WebhookOperation as l, UsernameFieldKey as lt, CodeGeneratorBase as m, unauthenticatedTailorUser as mt, ExecutorInput as n, SCIMAuthorization as nt, RecordTrigger as o, UserAttributeKey as ot, defineGenerators as p, TailorUser as pt, IDToken as q, FunctionOperation as r, SCIMConfig as rt, ResolverExecutedTrigger as s, UserAttributeListKey as st, Executor as t, SCIMAttributeType as tt, WorkflowOperation as u, ValueOperand as ut, StaticWebsiteConfig as v, ResolverInput as vt, ResolverServiceConfig as w, JsonCompatible as wt, IdPExternalConfig as x, FieldOptions as xt, defineStaticWebSite as y, ArrayFieldOutput as yt, unsafeAllowAllTypePermission as z };
1564
- //# sourceMappingURL=types-CbL5qnOl.d.mts.map
1579
+ export { SCIMAttributeMapping as $, db as A, AuthExternalConfig as B, ResolverServiceConfig as C, JsonCompatible 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, InferFieldsOutput as St, ExecutorServiceConfig as T, 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, output as wt, defineIdp as x, FieldOutput$1 as xt, IdPConfig as y, FieldMetadata as yt, AuthConfig as z };
1580
+ //# sourceMappingURL=types-UefR8mZn.d.mts.map
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./../../user-defined.d.ts" />
2
- import { A as TailorDBType, ht as TailorField } from "../../types-CbL5qnOl.mjs";
3
- import { n as output } from "../../index-D_6mOKf-.mjs";
2
+ import { k as TailorDBType, mt as TailorField } from "../../types-UefR8mZn.mjs";
3
+ import { n as output } from "../../index-2JVUi0to.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": "0.24.0",
3
+ "version": "1.1.0",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/configure/index.mjs",
@@ -62,7 +62,7 @@
62
62
  "oxc-parser": "0.104.0",
63
63
  "p-limit": "7.2.0",
64
64
  "pkg-types": "2.3.0",
65
- "rolldown": "1.0.0-beta.55",
65
+ "rolldown": "1.0.0-beta.56",
66
66
  "table": "6.9.0",
67
67
  "ts-cron-validator": "1.1.5",
68
68
  "tsx": "4.21.0",
@@ -98,6 +98,7 @@
98
98
  "lint:fix": "eslint --cache . --fix",
99
99
  "typecheck": "tsc --noEmit",
100
100
  "perf:typecheck": "bash scripts/perf/exec.sh",
101
+ "perf:runtime": "bash scripts/perf/runtime-perf.sh",
101
102
  "prepublish": "pnpm run build",
102
103
  "postinstall": "node postinstall.mjs",
103
104
  "measure:bundle": "node ../../scripts/measure-bundle-size-sonda.js"