@tailor-platform/sdk 0.16.2 → 0.16.3

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.
@@ -1156,6 +1156,16 @@ declare const IdPSchema: z.core.$ZodBranded<z.ZodObject<{
1156
1156
  en: "en";
1157
1157
  ja: "ja";
1158
1158
  }>>;
1159
+ userAuthPolicy: z.ZodOptional<z.ZodPipe<z.ZodObject<{
1160
+ useNonEmailIdentifier: z.ZodDefault<z.ZodBoolean>;
1161
+ allowSelfPasswordReset: z.ZodDefault<z.ZodBoolean>;
1162
+ }, z.core.$strip>, z.ZodTransform<{
1163
+ useNonEmailIdentifier: boolean;
1164
+ allowSelfPasswordReset: boolean;
1165
+ }, {
1166
+ useNonEmailIdentifier: boolean;
1167
+ allowSelfPasswordReset: boolean;
1168
+ }>>>;
1159
1169
  }, z.core.$strip>, "IdPConfig">;
1160
1170
  //#endregion
1161
1171
  //#region src/parser/service/idp/types.d.ts
@@ -1180,6 +1190,10 @@ declare function defineIdp<const TClients extends string[]>(name: string, config
1180
1190
  cel: string;
1181
1191
  };
1182
1192
  readonly lang?: "en" | "ja" | undefined;
1193
+ readonly userAuthPolicy?: {
1194
+ useNonEmailIdentifier?: boolean | undefined;
1195
+ allowSelfPasswordReset?: boolean | undefined;
1196
+ } | undefined;
1183
1197
  readonly clients: TClients;
1184
1198
  } & IdpDefinitionBrand;
1185
1199
  type IdPExternalConfig = {
@@ -1479,4 +1493,4 @@ type Executor = z.infer<typeof ExecutorSchema>;
1479
1493
  type ExecutorInput = z.input<typeof ExecutorSchema>;
1480
1494
  //#endregion
1481
1495
  export { AllowedValues, AllowedValuesOutput, AppConfig, ArrayFieldOutput, AttributeList$1 as AttributeList, AttributeMap$1 as AttributeMap, AuthConfig, AuthExternalConfig, AuthInvoker$1 as AuthInvoker, AuthOwnConfig, type AuthServiceInput, type BuiltinIdP, CodeGeneratorBase, Executor, ExecutorInput, ExecutorServiceConfig, ExecutorServiceInput, FieldMetadata, FieldOptions, FieldOutput, FunctionOperation, Generator, GqlOperation, type IDToken, IdPConfig, IdPExternalConfig, type IdProviderConfig, IncomingWebhookTrigger, InferFieldsOutput, JsonCompatible, 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, TailorDBField, TailorDBInstance, TailorDBType, TailorDBTypeConfig, TailorField, TailorTypeGqlPermission, TailorTypePermission, TailorUser, type TenantProviderConfig, type UserAttributeKey, type UserAttributeListKey, type UserAttributeMap, type UsernameFieldKey, type ValueOperand, WebhookOperation, WorkflowOperation, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission };
1482
- //# sourceMappingURL=types-DUYX8rv-.d.mts.map
1496
+ //# sourceMappingURL=types-Da_WnvA0.d.mts.map
@@ -1,7 +1,7 @@
1
1
  /// <reference path="./../../user-defined.d.ts" />
2
2
 
3
- import { TailorDBType, TailorField, TailorUser } from "../../types-DUYX8rv-.mjs";
4
- import { output } from "../../index-DOA9RfBq.mjs";
3
+ import { TailorDBType, TailorField, TailorUser } from "../../types-Da_WnvA0.mjs";
4
+ import { output } from "../../index-Bin7-j3v.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.16.2",
3
+ "version": "0.16.3",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/configure/index.mjs",
package/postinstall.mjs CHANGED
@@ -48,6 +48,7 @@ async function install() {
48
48
  );
49
49
  const { config } = await loadConfig(configPath);
50
50
  await generateUserTypes(config, configPath);
51
+ return;
51
52
  } catch (error) {
52
53
  console.warn("⚠️ Failed to generate types from config:", error.message);
53
54
  // Fall through to create empty type definition