@tailor-platform/sdk 0.16.1 → 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.
- package/CHANGELOG.md +36 -0
- package/dist/cli/api.d.mts +1 -1
- package/dist/cli/api.mjs +1 -1
- package/dist/cli/index.mjs +1 -1
- package/dist/configure/index.d.mts +3 -3
- package/dist/configure/index.mjs +0 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-BcDejW72.d.mts → index-Bin7-j3v.d.mts} +131 -97
- package/dist/{resume-DvbIclRU.mjs → resume-kyHIaNvK.mjs} +53 -23
- package/dist/{resume-DvbIclRU.mjs.map → resume-kyHIaNvK.mjs.map} +1 -1
- package/dist/{types-DGKSzhtb.d.mts → types-Da_WnvA0.d.mts} +38 -6
- package/dist/utils/test/index.d.mts +2 -2
- package/package.json +1 -1
- package/postinstall.mjs +1 -0
|
@@ -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 = {
|
|
@@ -1380,7 +1394,7 @@ declare const FunctionOperationSchema: z.ZodObject<{
|
|
|
1380
1394
|
declare const GqlOperationSchema: z.ZodObject<{
|
|
1381
1395
|
kind: z.ZodLiteral<"graphql">;
|
|
1382
1396
|
appName: z.ZodOptional<z.ZodString>;
|
|
1383
|
-
query: z.ZodString
|
|
1397
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1384
1398
|
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
1385
1399
|
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1386
1400
|
namespace: z.ZodString;
|
|
@@ -1396,6 +1410,15 @@ declare const WebhookOperationSchema: z.ZodObject<{
|
|
|
1396
1410
|
key: z.ZodString;
|
|
1397
1411
|
}, z.core.$strip>]>>>;
|
|
1398
1412
|
}, z.core.$strip>;
|
|
1413
|
+
declare const WorkflowOperationSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
1414
|
+
kind: z.ZodLiteral<"workflow">;
|
|
1415
|
+
workflowName: z.ZodString;
|
|
1416
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
|
|
1417
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1418
|
+
namespace: z.ZodString;
|
|
1419
|
+
machineUserName: z.ZodString;
|
|
1420
|
+
}, z.core.$strip>>;
|
|
1421
|
+
}, z.core.$strip>>;
|
|
1399
1422
|
declare const ExecutorSchema: z.ZodObject<{
|
|
1400
1423
|
name: z.ZodString;
|
|
1401
1424
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1419,7 +1442,7 @@ declare const ExecutorSchema: z.ZodObject<{
|
|
|
1419
1442
|
}, z.core.$strip>, z.ZodObject<{
|
|
1420
1443
|
kind: z.ZodLiteral<"incomingWebhook">;
|
|
1421
1444
|
}, z.core.$strip>], "kind">;
|
|
1422
|
-
operation: z.
|
|
1445
|
+
operation: z.ZodUnion<readonly [z.ZodObject<{
|
|
1423
1446
|
kind: z.ZodEnum<{
|
|
1424
1447
|
function: "function";
|
|
1425
1448
|
jobFunction: "jobFunction";
|
|
@@ -1432,7 +1455,7 @@ declare const ExecutorSchema: z.ZodObject<{
|
|
|
1432
1455
|
}, z.core.$strip>, z.ZodObject<{
|
|
1433
1456
|
kind: z.ZodLiteral<"graphql">;
|
|
1434
1457
|
appName: z.ZodOptional<z.ZodString>;
|
|
1435
|
-
query: z.ZodString
|
|
1458
|
+
query: z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
1436
1459
|
variables: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
1437
1460
|
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1438
1461
|
namespace: z.ZodString;
|
|
@@ -1446,7 +1469,15 @@ declare const ExecutorSchema: z.ZodObject<{
|
|
|
1446
1469
|
vault: z.ZodString;
|
|
1447
1470
|
key: z.ZodString;
|
|
1448
1471
|
}, z.core.$strip>]>>>;
|
|
1449
|
-
}, z.core.$strip
|
|
1472
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
1473
|
+
kind: z.ZodLiteral<"workflow">;
|
|
1474
|
+
workflowName: z.ZodString;
|
|
1475
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodCustom<Function, Function>]>>;
|
|
1476
|
+
authInvoker: z.ZodOptional<z.ZodObject<{
|
|
1477
|
+
namespace: z.ZodString;
|
|
1478
|
+
machineUserName: z.ZodString;
|
|
1479
|
+
}, z.core.$strip>>;
|
|
1480
|
+
}, z.core.$strip>>]>;
|
|
1450
1481
|
}, z.core.$strip>;
|
|
1451
1482
|
//#endregion
|
|
1452
1483
|
//#region src/parser/service/executor/types.d.ts
|
|
@@ -1457,8 +1488,9 @@ type IncomingWebhookTrigger = z.infer<typeof IncomingWebhookTriggerSchema>;
|
|
|
1457
1488
|
type FunctionOperation = z.infer<typeof FunctionOperationSchema>;
|
|
1458
1489
|
type GqlOperation = z.infer<typeof GqlOperationSchema>;
|
|
1459
1490
|
type WebhookOperation = z.infer<typeof WebhookOperationSchema>;
|
|
1491
|
+
type WorkflowOperation = z.infer<typeof WorkflowOperationSchema>;
|
|
1460
1492
|
type Executor = z.infer<typeof ExecutorSchema>;
|
|
1461
1493
|
type ExecutorInput = z.input<typeof ExecutorSchema>;
|
|
1462
1494
|
//#endregion
|
|
1463
|
-
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, WorkflowServiceConfig, WorkflowServiceInput, db, defineAuth, defineConfig, defineGenerators, defineIdp, defineStaticWebSite, output, unauthenticatedTailorUser, unsafeAllowAllGqlPermission, unsafeAllowAllTypePermission };
|
|
1464
|
-
//# sourceMappingURL=types-
|
|
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 };
|
|
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-
|
|
4
|
-
import { output } from "../../index-
|
|
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
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
|