@tailor-platform/sdk 0.10.0 → 0.10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 0.10.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#45](https://github.com/tailor-platform/sdk/pull/45) [`efba21f`](https://github.com/tailor-platform/sdk/commit/efba21f0991a3ee9068684d13407dbdb0b19c425) Thanks [@remiposo](https://github.com/remiposo)! - Callback to localhost on WSL environments
8
+
9
+ Adjusted the redirect_uri value to fix an issue where login fails on WSL environments.
10
+
11
+ ## 0.10.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#34](https://github.com/tailor-platform/sdk/pull/34) [`ed71900`](https://github.com/tailor-platform/sdk/commit/ed719007420794d50d26eb2a3f1f77c5bb3e60a9) Thanks [@remiposo](https://github.com/remiposo)! - Reference external resources
16
+
17
+ You can now add resources managed by Terraform or other SDK projects to your application's subgraph for shared use.
18
+ In this case, the resources themselves are not deployed.
19
+
20
+ ```typescript
21
+ defineConfig({
22
+ name: "ref-app",
23
+ db: {
24
+ "shared-db": { external: true },
25
+ },
26
+ resolver: { "shared-resolver": { external: true } },
27
+ auth: { name: "shared-auth", external: true },
28
+ idp: [{ name: "shared-idp", external: true }],
29
+ });
30
+ ```
31
+
32
+ - [#36](https://github.com/tailor-platform/sdk/pull/36) [`00701da`](https://github.com/tailor-platform/sdk/commit/00701da46ceb9624b58c123fcf0ff19e4dc513f5) Thanks [@remiposo](https://github.com/remiposo)! - Allow specifying the path where types are generated
33
+
34
+ By default, types are generated inside `node_modules/@tailor-platform/sdk` based on env and attribute settings, but you can now change the path with `TAILOR_PLATFORM_SDK_TYPE_PATH`.
35
+ This is primarily an option for developers, preventing type definitions from being overridden when working with multiple SDK projects simultaneously.
36
+
3
37
  ## 0.10.0
4
38
 
5
39
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./../plugin-generated.d.ts" />
2
2
 
3
- import { AppConfig, CodeGeneratorBase, Executor, Generator, Resolver, TailorDBTypeConfig } from "../types-DcpYyMM2.mjs";
3
+ import { AppConfig, CodeGeneratorBase, Executor, Generator, Resolver, TailorDBTypeConfig } from "../types-Dyhfh5b6.mjs";
4
4
  import "citty";
5
5
  import "zod";
6
6
  import "@bufbuild/protobuf/wkt";
package/dist/cli/api.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { apply, generate, generateUserTypes, loadConfig, machineUserList, machineUserToken, show, workspaceCreate, workspaceDelete, workspaceList } from "../token-BD9c1mlS.mjs";
2
- import "../auth-Di3vQUrT.mjs";
1
+ import "../config-C5UYYrp1.mjs";
2
+ import { apply, generate, generateUserTypes, loadConfig, machineUserList, machineUserToken, show, workspaceCreate, workspaceDelete, workspaceList } from "../token-B-1pOHj2.mjs";
3
3
 
4
4
  export { apply, generate, generateUserTypes, loadConfig, machineUserList, machineUserToken, show, workspaceCreate, workspaceDelete, workspaceList };
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { PATScope, applyCommand, commonArgs, createCommand, deleteCommand, fetchAll, fetchLatestToken, formatArgs, generateCommand, initOperatorClient, listCommand as listCommand$4, listCommand$1 as listCommand, loadAccessToken, loadConfig, loadConfigPath, loadWorkspaceId, parseFormat, printWithFormat, readPackageJson, readPlatformConfig, showCommand, tokenCommand, userAgent, withCommonArgs, writePlatformConfig } from "../token-BD9c1mlS.mjs";
3
- import "../auth-Di3vQUrT.mjs";
2
+ import "../config-C5UYYrp1.mjs";
3
+ import { PATScope, applyCommand, commonArgs, createCommand, deleteCommand, fetchAll, fetchLatestToken, formatArgs, generateCommand, initOperatorClient, listCommand as listCommand$4, listCommand$1 as listCommand, loadAccessToken, loadConfig, loadConfigPath, loadWorkspaceId, parseFormat, printWithFormat, readPackageJson, readPlatformConfig, showCommand, tokenCommand, userAgent, withCommonArgs, writePlatformConfig } from "../token-B-1pOHj2.mjs";
4
4
  import { register } from "node:module";
5
5
  import { defineCommand, runCommand, runMain } from "citty";
6
6
  import { z } from "zod";
@@ -10,6 +10,7 @@ import chalk from "chalk";
10
10
  import { spawnSync } from "node:child_process";
11
11
  import * as crypto from "node:crypto";
12
12
  import * as http from "node:http";
13
+ import isWsl from "is-wsl";
13
14
  import open from "open";
14
15
 
15
16
  //#region src/cli/init.ts
@@ -67,7 +68,7 @@ const initCommand = defineCommand({
67
68
  //#endregion
68
69
  //#region src/cli/login.ts
69
70
  const CALLBACK_PORT = 8085;
70
- const CALLBACK_URL = `http://tailorctl.tailor.tech:${CALLBACK_PORT}/callback`;
71
+ const CALLBACK_URL = isWsl ? `http://localhost:${CALLBACK_PORT}/callback` : `http://tailorctl.tailor.tech:${CALLBACK_PORT}/callback`;
71
72
  const PLATFORM_AUTH_URL = "https://api.tailor.tech/auth/platform";
72
73
  const LOGIN_URL = PLATFORM_AUTH_URL + "/login";
73
74
  const TOKEN_URL = PLATFORM_AUTH_URL + "/token";
@@ -1,5 +1,5 @@
1
1
  /// <reference path="./../plugin-generated.d.ts" />
2
2
 
3
- import { AuthConfig, AuthServiceInput, BuiltinIdP, ExecutorServiceConfig, ExecutorServiceInput, IDToken, IdPConfig, IdProviderConfig, OAuth2Client, OAuth2ClientGrantType, OIDC, PermissionCondition, QueryType, Resolver, ResolverServiceConfig, ResolverServiceInput, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, StaticWebsiteConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, unauthenticatedTailorUser } from "../types-DcpYyMM2.mjs";
4
- import { FunctionOperation, GqlOperation, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, Operation, RecordCreatedArgs, RecordDeletedArgs, RecordTrigger, RecordUpdatedArgs, ResolverExecutedArgs, ResolverExecutedTrigger, ScheduleTrigger, Trigger, WebhookOperation, createExecutor, createResolver, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t } from "../index-DxmBZtRb.mjs";
5
- export { AuthConfig, AuthServiceInput, BuiltinIdP, ExecutorServiceConfig, ExecutorServiceInput, FunctionOperation, GqlOperation, IDToken, IdPConfig, IdProviderConfig, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, OAuth2Client, OAuth2ClientGrantType, OIDC, Operation, PermissionCondition, QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordTrigger, RecordUpdatedArgs, Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, ResolverServiceConfig, ResolverServiceInput, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, ScheduleTrigger, StaticWebsiteConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, Trigger, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, WebhookOperation, createExecutor, createResolver, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser };
3
+ import { AuthConfig, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BuiltinIdP, ExecutorServiceConfig, ExecutorServiceInput, IDToken, IdPConfig, IdPExternalConfig, IdProviderConfig, OAuth2Client, OAuth2ClientGrantType, OIDC, PermissionCondition, QueryType, Resolver, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, StaticWebsiteConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, unauthenticatedTailorUser } from "../types-Dyhfh5b6.mjs";
4
+ import { FunctionOperation, GqlOperation, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, Operation, RecordCreatedArgs, RecordDeletedArgs, RecordTrigger, RecordUpdatedArgs, ResolverExecutedArgs, ResolverExecutedTrigger, ScheduleTrigger, Trigger, WebhookOperation, createExecutor, createResolver, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t } from "../index-DyBFt3bp.mjs";
5
+ export { AuthConfig, AuthExternalConfig, AuthOwnConfig, AuthServiceInput, BuiltinIdP, ExecutorServiceConfig, ExecutorServiceInput, FunctionOperation, GqlOperation, IDToken, IdPConfig, IdPExternalConfig, IdProviderConfig, IncomingWebhookArgs, IncomingWebhookRequest, IncomingWebhookTrigger, OAuth2Client, OAuth2ClientGrantType, OIDC, Operation, PermissionCondition, QueryType, RecordCreatedArgs, RecordDeletedArgs, RecordTrigger, RecordUpdatedArgs, Resolver, ResolverExecutedArgs, ResolverExecutedTrigger, ResolverExternalConfig, ResolverServiceConfig, ResolverServiceInput, SAML, SCIMAttribute, SCIMAttributeMapping, SCIMAttributeType, SCIMAuthorization, SCIMConfig, SCIMResource, ScheduleTrigger, StaticWebsiteConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, TenantProviderConfig, Trigger, UserAttributeKey, UserAttributeListKey, UserAttributeMap, UsernameFieldKey, ValueOperand, WebhookOperation, createExecutor, createResolver, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, incomingWebhookTrigger, infer, output, recordCreatedTrigger, recordDeletedTrigger, recordUpdatedTrigger, resolverExecutedTrigger, scheduleTrigger, t, unauthenticatedTailorUser };
@@ -1,4 +1,4 @@
1
- import { TailorField, db, defineAuth, defineConfig, defineGenerators, t as t$1, unauthenticatedTailorUser } from "../auth-Di3vQUrT.mjs";
1
+ import { TailorField, db, defineAuth, defineConfig, defineGenerators, t as t$1, unauthenticatedTailorUser } from "../config-C5UYYrp1.mjs";
2
2
 
3
3
  //#region src/configure/services/resolver/resolver.ts
4
4
  function createResolver(config) {
@@ -1,6 +1,6 @@
1
1
  /// <reference path="./plugin-generated.d.ts" />
2
2
 
3
- import { AllowedValues, AllowedValuesOutput, ArrayFieldOutput, ExecutorInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, GqlOperation, IncomingWebhookTrigger as IncomingWebhookTrigger$1, InferFieldsOutput, RecordTrigger as RecordTrigger$1, ResolverExecutedTrigger as ResolverExecutedTrigger$1, ResolverInput, ScheduleTriggerInput, TailorDBType, TailorField, TailorUser, WebhookOperation, output as output$1 } from "./types-DcpYyMM2.mjs";
3
+ import { AllowedValues, AllowedValuesOutput, ArrayFieldOutput, ExecutorInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, GqlOperation, IncomingWebhookTrigger as IncomingWebhookTrigger$1, InferFieldsOutput, RecordTrigger as RecordTrigger$1, ResolverExecutedTrigger as ResolverExecutedTrigger$1, ResolverInput, ScheduleTriggerInput, TailorDBType, TailorField, TailorUser, WebhookOperation, output as output$1 } from "./types-Dyhfh5b6.mjs";
4
4
  import { EmptyObject } from "type-fest";
5
5
  import { Client } from "@urql/core";
6
6
  import { StandardCRON } from "ts-cron-validator";
@@ -1,4 +1,4 @@
1
- import { getDistDir, tailorUserMap } from "./auth-Di3vQUrT.mjs";
1
+ import { getDistDir, tailorUserMap } from "./config-C5UYYrp1.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { defineCommand } from "citty";
4
4
  import * as path from "node:path";
@@ -509,34 +509,41 @@ var Application = class {
509
509
  defineTailorDB(config) {
510
510
  if (!config) return;
511
511
  for (const [namespace, serviceConfig] of Object.entries(config)) {
512
- const tailorDB = new TailorDBService(namespace, serviceConfig);
513
- this._tailorDBServices.push(tailorDB);
514
- this.addSubgraph("tailordb", tailorDB.namespace);
512
+ if (!("external" in serviceConfig)) {
513
+ const tailorDB = new TailorDBService(namespace, serviceConfig);
514
+ this._tailorDBServices.push(tailorDB);
515
+ }
516
+ this.addSubgraph("tailordb", namespace);
515
517
  }
516
518
  }
517
519
  defineResolver(config) {
518
520
  if (!config) return;
519
521
  for (const [namespace, serviceConfig] of Object.entries(config)) {
520
- const resolverService = new ResolverService(namespace, serviceConfig);
521
- this._resolverServices.push(resolverService);
522
- this.addSubgraph("pipeline", resolverService.namespace);
522
+ if (!("external" in serviceConfig)) {
523
+ const resolverService = new ResolverService(namespace, serviceConfig);
524
+ this._resolverServices.push(resolverService);
525
+ }
526
+ this.addSubgraph("pipeline", namespace);
523
527
  }
524
528
  }
525
529
  defineIdp(config) {
530
+ if (!config) return;
526
531
  const idpNames = /* @__PURE__ */ new Set();
527
- (config ?? []).forEach((idpConfig) => {
528
- const idp = IdPSchema.parse(idpConfig);
529
- if (idpNames.has(idp.name)) throw new Error(`IdP with name "${idp.name}" already defined.`);
530
- idpNames.add(idp.name);
531
- this._idpServices.push(idp);
532
- this.addSubgraph("idp", idp.name);
532
+ config.forEach((idpConfig) => {
533
+ const name = idpConfig.name;
534
+ if (idpNames.has(name)) throw new Error(`IdP with name "${name}" already defined.`);
535
+ idpNames.add(name);
536
+ if (!("external" in idpConfig)) {
537
+ const idp = IdPSchema.parse(idpConfig);
538
+ this._idpServices.push(idp);
539
+ }
540
+ this.addSubgraph("idp", name);
533
541
  });
534
542
  }
535
543
  defineAuth(config) {
536
544
  if (!config) return;
537
- const authService = new AuthService(config, this.tailorDBServices);
538
- this._authService = authService;
539
- this.addSubgraph("auth", authService.config.name);
545
+ if (!("external" in config)) this._authService = new AuthService(config, this.tailorDBServices);
546
+ this.addSubgraph("auth", config.name);
540
547
  }
541
548
  defineExecutor(config) {
542
549
  if (!config) return;
@@ -1600,6 +1607,7 @@ ${mapFields}
1600
1607
  ${envFields}
1601
1608
  }`;
1602
1609
  return ml`
1610
+ /* eslint-disable @typescript-eslint/no-empty-object-type */
1603
1611
  // This file is auto-generated by @tailor-platform/sdk
1604
1612
  // Do not edit this file manually
1605
1613
  // Regenerated automatically when running 'tailor-sdk apply' or 'tailor-sdk generate'
@@ -1645,6 +1653,8 @@ function collectAttributesFromConfig(config) {
1645
1653
  return {};
1646
1654
  }
1647
1655
  function resolveTypeDefinitionPath(configPath) {
1656
+ const typePath = process.env.TAILOR_PLATFORM_SDK_TYPE_PATH;
1657
+ if (typePath) return path.resolve(process.cwd(), typePath);
1648
1658
  const configDir = path.dirname(path.resolve(configPath));
1649
1659
  const packageDir = resolvePackageDirectory(configDir);
1650
1660
  if (!packageDir) return path.join(configDir, "node_modules", "@tailor-platform", "sdk", "dist", "plugin-generated.d.ts");
@@ -2645,6 +2655,22 @@ async function planApplication({ client, workspaceId, application }) {
2645
2655
  authNamespace = application.authService.config.name;
2646
2656
  const idProvider = application.authService.config.idProvider;
2647
2657
  if (idProvider) authIdpConfigName = idProvider.name;
2658
+ } else if (application.config.auth) {
2659
+ authNamespace = application.config.auth.name;
2660
+ const idpConfigs = await fetchAll(async (pageToken) => {
2661
+ try {
2662
+ const { idpConfigs: idpConfigs$1, nextPageToken } = await client.listAuthIDPConfigs({
2663
+ workspaceId,
2664
+ namespaceName: authNamespace,
2665
+ pageToken
2666
+ });
2667
+ return [idpConfigs$1, nextPageToken];
2668
+ } catch (error) {
2669
+ if (error instanceof ConnectError && error.code === Code.NotFound) return [[], ""];
2670
+ throw error;
2671
+ }
2672
+ });
2673
+ if (idpConfigs.length > 0) authIdpConfigName = idpConfigs[0].name;
2648
2674
  }
2649
2675
  const metaRequest = await buildMetaRequest(trn$6(workspaceId, application.name), application.name);
2650
2676
  if (existingApplications.some((app) => app.name === application.name)) changeSet.updates.push({
@@ -1,11 +1,11 @@
1
1
  /// <reference path="./plugin-generated.d.ts" />
2
2
 
3
- import * as zod34 from "zod";
3
+ import * as zod0 from "zod";
4
4
  import { z } from "zod";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
6
  import * as type_fest0 from "type-fest";
7
7
  import { IsAny, NonEmptyObject } from "type-fest";
8
- import * as zod_v4_core50 from "zod/v4/core";
8
+ import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
10
  //#region src/configure/types/helpers.d.ts
11
11
  type Prettify<T> = { [K in keyof T as string extends K ? never : K]: T[K] } & {};
@@ -617,7 +617,12 @@ declare function defineAuth<const Name extends string, const User extends Tailor
617
617
  readonly scim?: SCIMConfig;
618
618
  readonly tenantProvider?: TenantProviderConfig;
619
619
  } & AuthDefinitionBrand;
620
- type AuthConfig = ReturnType<typeof defineAuth<string, any, any, any, string>>;
620
+ type AuthExternalConfig = {
621
+ name: string;
622
+ external: true;
623
+ };
624
+ type AuthOwnConfig = ReturnType<typeof defineAuth<string, any, any, any, string>>;
625
+ type AuthConfig = AuthOwnConfig | AuthExternalConfig;
621
626
  //#endregion
622
627
  //#region src/configure/services/tailordb/permission.d.ts
623
628
  interface Permissions {
@@ -758,8 +763,11 @@ type TailorDBServiceConfig = {
758
763
  files: string[];
759
764
  ignores?: string[];
760
765
  };
766
+ type TailorDBExternalConfig = {
767
+ external: true;
768
+ };
761
769
  type TailorDBServiceInput = {
762
- [namespace: string]: TailorDBServiceConfig;
770
+ [namespace: string]: TailorDBServiceConfig | TailorDBExternalConfig;
763
771
  };
764
772
  type IndexDef<T extends {
765
773
  fields: Record<PropertyKey, unknown>;
@@ -1103,8 +1111,11 @@ type ResolverServiceConfig = {
1103
1111
  files: string[];
1104
1112
  ignores?: string[];
1105
1113
  };
1114
+ type ResolverExternalConfig = {
1115
+ external: true;
1116
+ };
1106
1117
  type ResolverServiceInput = {
1107
- [namespace: string]: ResolverServiceConfig;
1118
+ [namespace: string]: ResolverServiceConfig | ResolverExternalConfig;
1108
1119
  };
1109
1120
  //#endregion
1110
1121
  //#region src/parser/service/idp/schema.d.ts
@@ -1139,7 +1150,11 @@ declare function defineIdp<const TClients extends string[]>(name: string, config
1139
1150
  };
1140
1151
  readonly clients: TClients;
1141
1152
  } & IdpDefinitionBrand;
1142
- type IdPConfig = Omit<ReturnType<typeof defineIdp>, "provider">;
1153
+ type IdPExternalConfig = {
1154
+ name: string;
1155
+ external: true;
1156
+ };
1157
+ type IdPConfig = Omit<ReturnType<typeof defineIdp>, "provider"> | IdPExternalConfig;
1143
1158
  //#endregion
1144
1159
  //#region src/parser/service/staticwebsite/schema.d.ts
1145
1160
  declare const StaticWebsiteSchema: z.core.$ZodBranded<z.ZodObject<{
@@ -1278,12 +1293,12 @@ declare function defineGenerators(...configs: GeneratorConfig[]): (["@tailor-pla
1278
1293
  }] | {
1279
1294
  id: string;
1280
1295
  description: string;
1281
- processType: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1282
- processResolver: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1283
- processExecutor: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut>;
1284
- aggregate: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod34.ZodAny>;
1285
- processTailorDBNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
1286
- processResolverNamespace?: zod_v4_core50.$InferInnerFunctionType<zod_v4_core50.$ZodFunctionArgs, zod_v4_core50.$ZodFunctionOut> | undefined;
1296
+ processType: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1297
+ processResolver: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1298
+ processExecutor: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut>;
1299
+ aggregate: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod0.ZodAny>;
1300
+ processTailorDBNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1301
+ processResolverNamespace?: zod_v4_core0.$InferInnerFunctionType<zod_v4_core0.$ZodFunctionArgs, zod_v4_core0.$ZodFunctionOut> | undefined;
1287
1302
  })[];
1288
1303
  //#endregion
1289
1304
  //#region src/parser/service/executor/schema.d.ts
@@ -1403,4 +1418,4 @@ type WebhookOperation = z.infer<typeof WebhookOperationSchema>;
1403
1418
  type Executor = z.infer<typeof ExecutorSchema>;
1404
1419
  type ExecutorInput = z.input<typeof ExecutorSchema>;
1405
1420
  //#endregion
1406
- export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AuthConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, type OAuth2Client, type OAuth2ClientGrantType, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser };
1421
+ export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AuthConfig, AuthExternalConfig, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, type OAuth2Client, type OAuth2ClientGrantType, type OIDC, PermissionCondition, QueryType, RecordTrigger, Resolver, ResolverExecutedTrigger, ResolverExternalConfig, ResolverInput, ResolverServiceConfig, ResolverServiceInput, type SAML, type SCIMAttribute, type SCIMAttributeMapping, type SCIMAttributeType, type SCIMAuthorization, type SCIMConfig, type SCIMResource, ScheduleTriggerInput, StaticWebsiteConfig, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser };
@@ -1,7 +1,7 @@
1
1
  /// <reference path="./../../plugin-generated.d.ts" />
2
2
 
3
- import { TailorDBType, TailorField, TailorUser } from "../../types-DcpYyMM2.mjs";
4
- import { output } from "../../index-DxmBZtRb.mjs";
3
+ import { TailorDBType, TailorField, TailorUser } from "../../types-Dyhfh5b6.mjs";
4
+ import { output } from "../../index-DyBFt3bp.mjs";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
6
6
 
7
7
  //#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.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/configure/index.mjs",
@@ -51,6 +51,7 @@
51
51
  "consola": "3.4.2",
52
52
  "es-toolkit": "1.41.0",
53
53
  "inflection": "3.0.2",
54
+ "is-wsl": "3.1.0",
54
55
  "madge": "8.0.0",
55
56
  "multiline-ts": "4.0.1",
56
57
  "open": "10.2.0",
@@ -708,6 +708,21 @@ const db = {
708
708
  }) }
709
709
  };
710
710
 
711
+ //#endregion
712
+ //#region src/configure/services/auth/index.ts
713
+ function defineAuth(name, config) {
714
+ return {
715
+ ...config,
716
+ name,
717
+ invoker(machineUser) {
718
+ return {
719
+ authName: name,
720
+ machineUser
721
+ };
722
+ }
723
+ };
724
+ }
725
+
711
726
  //#endregion
712
727
  //#region src/configure/config.ts
713
728
  let distPath = null;
@@ -724,20 +739,5 @@ function defineGenerators(...configs) {
724
739
  return configs;
725
740
  }
726
741
 
727
- //#endregion
728
- //#region src/configure/services/auth/index.ts
729
- function defineAuth(name, config) {
730
- return {
731
- ...config,
732
- name,
733
- invoker(machineUser) {
734
- return {
735
- authName: name,
736
- machineUser
737
- };
738
- }
739
- };
740
- }
741
-
742
742
  //#endregion
743
743
  export { TailorField, db, defineAuth, defineConfig, defineGenerators, getDistDir, t, tailorUserMap, unauthenticatedTailorUser };