@tailor-platform/sdk 1.44.2 → 1.45.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.
- package/CHANGELOG.md +12 -0
- package/dist/{actor-DzCuoMlP.d.mts → actor-CzX_hVOP.d.mts} +2 -2
- package/dist/{application-7wtQzifE.mjs → application-BsSJZRCq.mjs} +3 -2
- package/dist/{application-7wtQzifE.mjs.map → application-BsSJZRCq.mjs.map} +1 -1
- package/dist/application-C0O80PUX.mjs +4 -0
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/lib.d.mts +6 -6
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +16 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-DdsUV-aA.d.mts → index-Bd-0JRjy.d.mts} +2 -2
- package/dist/{index-ZZYEd_0R.d.mts → index-C_f357K2.d.mts} +2 -2
- package/dist/{index-BOfTiouP.d.mts → index-CemBzf4z.d.mts} +41 -8
- package/dist/{index-BEEL1-6Z.d.mts → index-DIz-15Cx.d.mts} +2 -2
- package/dist/{index-0Dk-fDWi.d.mts → index-SnYVi8ww.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{runtime-CEj_sAfP.mjs → runtime-Bmq4L9pj.mjs} +71 -25
- package/dist/runtime-Bmq4L9pj.mjs.map +1 -0
- package/dist/{tailor-db-field-D_z185oq.d.mts → tailor-db-field-CY1D1PtT.d.mts} +5 -2
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/{workflow.generated-B7Mupf5V.d.mts → workflow.generated--YammZcl.d.mts} +2 -2
- package/docs/cli/tailordb.md +35 -415
- package/docs/services/executor.md +15 -1
- package/docs/services/idp.md +2 -2
- package/docs/services/tailordb-migration.md +418 -0
- package/docs/services/tailordb.md +6 -0
- package/package.json +3 -3
- package/dist/application-P55ZFKHG.mjs +0 -4
- package/dist/runtime-CEj_sAfP.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { o as Plugin } from "./tailor-db-field-
|
|
2
|
+
import { o as Plugin } from "./tailor-db-field-CY1D1PtT.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/builtin/kysely-type/index.d.ts
|
|
5
5
|
/** Unique identifier for the Kysely type generator plugin. */
|
|
@@ -16,4 +16,4 @@ type KyselyTypePluginOptions = {
|
|
|
16
16
|
declare function kyselyTypePlugin(options: KyselyTypePluginOptions): Plugin<unknown, KyselyTypePluginOptions>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { kyselyTypePlugin as n, KyselyGeneratorID as t };
|
|
19
|
-
//# sourceMappingURL=index-
|
|
19
|
+
//# sourceMappingURL=index-SnYVi8ww.d.mts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-
|
|
2
|
+
import { n as enumConstantsPlugin, t as EnumConstantsGeneratorID } from "../../../index-C_f357K2.mjs";
|
|
3
3
|
export { EnumConstantsGeneratorID, enumConstantsPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-
|
|
2
|
+
import { n as fileUtilsPlugin, t as FileUtilsGeneratorID } from "../../../index-Bd-0JRjy.mjs";
|
|
3
3
|
export { FileUtilsGeneratorID, fileUtilsPlugin };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-
|
|
2
|
+
import { n as kyselyTypePlugin, t as KyselyGeneratorID } from "../../../index-SnYVi8ww.mjs";
|
|
3
3
|
export { KyselyGeneratorID, kyselyTypePlugin };
|
package/dist/plugin/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { n as TailorAnyDBType } from "../tailor-db-field-
|
|
3
|
-
import { r as TailorEnv, t as TailorActor } from "../actor-
|
|
2
|
+
import { n as TailorAnyDBType } from "../tailor-db-field-CY1D1PtT.mjs";
|
|
3
|
+
import { r as TailorEnv, t as TailorActor } from "../actor-CzX_hVOP.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/plugin/with-context.d.ts
|
|
6
6
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { $ as FilterSchema, A as FunctionExecution_Status, B as AuthOAuth2Client_GrantType, C as TailorDBType_Permission_Operator, D as IdPLang, E as PipelineResolver_OperationType, F as AuthConnection_Type, H as AuthSCIMAttribute_Type, I as AuthHookPoint, J as GetApplicationSchemaHealthResponse_ApplicationSchemaHealthStatus, K as TenantProviderConfig_TenantProviderType, L as AuthIDPConfig_AuthType, M as ExecutorJobStatus, N as ExecutorTargetType, O as IdPPermissionOperator, P as ExecutorTriggerType, Q as Condition_Operator, R as AuthInvokerSchema, S as TailorDBGQLPermission_Permit, T as TailorDBType_PermitAction, U as AuthSCIMAttribute_Uniqueness, V as AuthSCIMAttribute_Mutability, W as AuthSCIMConfig_AuthorizationType, X as Subgraph_ServiceType, Y as ApplicationSchemaUpdateAttemptStatus, Z as ConditionSchema, _ as WorkspacePlatformUserRole, a as fetchMachineUserToken, b as TailorDBGQLPermission_Action, d as initOperatorClient, et as PageDirection, g as OperatorService, h as userAgent, i as fetchAll, k as IdPPermissionPermit, m as resolveStaticWebsiteUrls, o as fetchPaged, p as platformBaseUrl, q as UserProfileProviderConfig_UserProfileProviderType, v as WorkflowExecution_Status, w as TailorDBType_Permission_Permit, x as TailorDBGQLPermission_Operator, y as WorkflowJobExecution_Status, z as AuthOAuth2Client_ClientType } from "./client-DcuQRqSd.mjs";
|
|
3
3
|
import { t as db } from "./schema-DBq6hr6h.mjs";
|
|
4
4
|
import { a as parseBoolean, i as symbols, n as logger, r as styles, t as CIPromptError } from "./logger-DTNAMYGy.mjs";
|
|
5
|
-
import { C as loadWorkspaceId, D as writePlatformConfig, S as loadAccessToken, _ as getDistDir, d as buildResolverOperationHookExpr, f as OAuth2ClientSchema, g as createBundleCache, h as loadFilesWithIgnores, m as stringifyFunction, n as generatePluginFilesIfNeeded, p as TailorDBTypeSchema, r as loadApplication, s as createExecutorService, t as defineApplication, u as buildExecutorArgsExpr, v as hashFile, w as readPlatformConfig, y as loadConfig } from "./application-
|
|
5
|
+
import { C as loadWorkspaceId, D as writePlatformConfig, S as loadAccessToken, _ as getDistDir, d as buildResolverOperationHookExpr, f as OAuth2ClientSchema, g as createBundleCache, h as loadFilesWithIgnores, m as stringifyFunction, n as generatePluginFilesIfNeeded, p as TailorDBTypeSchema, r as loadApplication, s as createExecutorService, t as defineApplication, u as buildExecutorArgsExpr, v as hashFile, w as readPlatformConfig, y as loadConfig } from "./application-BsSJZRCq.mjs";
|
|
6
6
|
import { t as readPackageJson } from "./package-json-CRzw5eUf.mjs";
|
|
7
7
|
import { n as isCLIError, t as createCLIError } from "./errors-_M2TVoWh.mjs";
|
|
8
8
|
import { r as withSpan } from "./telemetry-B6Le9XT-.mjs";
|
|
@@ -787,9 +787,10 @@ function extractAttributesFromConfig(config) {
|
|
|
787
787
|
* @param attributeList - Attribute list configuration
|
|
788
788
|
* @param env - Environment configuration
|
|
789
789
|
* @param machineUserNames - Registered machine user names (used to narrow `authInvoker` strings)
|
|
790
|
+
* @param idpNames - Registered IdP names (used to narrow `idpUser*Trigger({ idp })` strings)
|
|
790
791
|
* @returns Generated type definition source
|
|
791
792
|
*/
|
|
792
|
-
function generateTypeDefinition(attributeMap, attributeList, env, machineUserNames) {
|
|
793
|
+
function generateTypeDefinition(attributeMap, attributeList, env, machineUserNames, idpNames) {
|
|
793
794
|
const mapFields = attributeMap ? Object.entries(attributeMap).map(([key, value]) => ` ${key}: ${value};`).join("\n") : "";
|
|
794
795
|
const mapBody = !attributeMap || Object.keys(attributeMap).length === 0 ? "{}" : `{
|
|
795
796
|
${mapFields}
|
|
@@ -805,6 +806,10 @@ ${envFields}
|
|
|
805
806
|
}`;
|
|
806
807
|
const isValidIdentifier = (s) => /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(s);
|
|
807
808
|
const machineUserFields = machineUserNames?.length ? machineUserNames.map((name) => ` ${isValidIdentifier(name) ? name : JSON.stringify(name)}: true;`).join("\n") : "";
|
|
809
|
+
const machineUserBody = !machineUserNames || machineUserNames.length === 0 ? "{}" : `{
|
|
810
|
+
${machineUserFields}
|
|
811
|
+
}`;
|
|
812
|
+
const idpNameFields = idpNames?.length ? idpNames.map((name) => ` ${isValidIdentifier(name) ? name : JSON.stringify(name)}: true;`).join("\n") : "";
|
|
808
813
|
return ml`
|
|
809
814
|
// This file is auto-generated by @tailor-platform/sdk
|
|
810
815
|
// Do not edit this file manually
|
|
@@ -814,8 +819,9 @@ declare module "@tailor-platform/sdk" {
|
|
|
814
819
|
interface AttributeMap ${mapBody}
|
|
815
820
|
interface AttributeList ${listBody}
|
|
816
821
|
interface Env ${envBody}
|
|
817
|
-
interface MachineUserNameRegistry ${
|
|
818
|
-
${
|
|
822
|
+
interface MachineUserNameRegistry ${machineUserBody}
|
|
823
|
+
interface IdpNameRegistry ${!idpNames || idpNames.length === 0 ? "{}" : `{
|
|
824
|
+
${idpNameFields}
|
|
819
825
|
}`}
|
|
820
826
|
}
|
|
821
827
|
|
|
@@ -824,8 +830,9 @@ export {};
|
|
|
824
830
|
`;
|
|
825
831
|
}
|
|
826
832
|
function collectAttributesFromConfig(config) {
|
|
833
|
+
const idpNames = config.idp?.length ? [...new Set(config.idp.map((idp) => idp.name))] : void 0;
|
|
827
834
|
const auth = config.auth;
|
|
828
|
-
if (!auth || typeof auth !== "object") return {};
|
|
835
|
+
if (!auth || typeof auth !== "object") return idpNames ? { idpNames } : {};
|
|
829
836
|
const machineUsersObj = auth.machineUsers;
|
|
830
837
|
const machineUserNames = machineUsersObj && typeof machineUsersObj === "object" ? Object.keys(machineUsersObj) : void 0;
|
|
831
838
|
const inferAttributeType = (field) => {
|
|
@@ -849,21 +856,29 @@ function collectAttributesFromConfig(config) {
|
|
|
849
856
|
return acc;
|
|
850
857
|
}, {}) : void 0,
|
|
851
858
|
attributeList,
|
|
852
|
-
machineUserNames
|
|
859
|
+
machineUserNames,
|
|
860
|
+
idpNames
|
|
853
861
|
};
|
|
854
862
|
}
|
|
855
863
|
if ("machineUserAttributes" in auth) {
|
|
856
864
|
const machineUserAttributes = auth.machineUserAttributes;
|
|
857
|
-
if (!machineUserAttributes) return {
|
|
865
|
+
if (!machineUserAttributes) return {
|
|
866
|
+
machineUserNames,
|
|
867
|
+
idpNames
|
|
868
|
+
};
|
|
858
869
|
return {
|
|
859
870
|
attributeMap: Object.entries(machineUserAttributes).reduce((acc, [key, field]) => {
|
|
860
871
|
acc[key] = inferAttributeType(field);
|
|
861
872
|
return acc;
|
|
862
873
|
}, {}),
|
|
863
|
-
machineUserNames
|
|
874
|
+
machineUserNames,
|
|
875
|
+
idpNames
|
|
864
876
|
};
|
|
865
877
|
}
|
|
866
|
-
return {
|
|
878
|
+
return {
|
|
879
|
+
machineUserNames,
|
|
880
|
+
idpNames
|
|
881
|
+
};
|
|
867
882
|
}
|
|
868
883
|
/**
|
|
869
884
|
* Resolve the output path for the generated type definition file.
|
|
@@ -887,14 +902,15 @@ function resolveTypeDefinitionPath(configPath) {
|
|
|
887
902
|
async function generateUserTypes(options) {
|
|
888
903
|
const { config, configPath } = options;
|
|
889
904
|
try {
|
|
890
|
-
const { attributeMap, attributeList, machineUserNames } = extractAttributesFromConfig(config);
|
|
905
|
+
const { attributeMap, attributeList, machineUserNames, idpNames } = extractAttributesFromConfig(config);
|
|
891
906
|
if (!attributeMap && !attributeList) logger.info("No attributes found in configuration", { mode: "plain" });
|
|
892
907
|
if (attributeMap) logger.debug(`Extracted AttributeMap: ${JSON.stringify(attributeMap)}`);
|
|
893
908
|
if (attributeList) logger.debug(`Extracted AttributeList: ${JSON.stringify(attributeList)}`);
|
|
894
909
|
if (machineUserNames?.length) logger.debug(`Extracted MachineUserNames: ${JSON.stringify(machineUserNames)}`);
|
|
910
|
+
if (idpNames?.length) logger.debug(`Extracted IdpNames: ${JSON.stringify(idpNames)}`);
|
|
895
911
|
const env = config.env;
|
|
896
912
|
if (env) logger.debug(`Extracted Env: ${JSON.stringify(env)}`);
|
|
897
|
-
const typeDefContent = generateTypeDefinition(attributeMap, attributeList, env, machineUserNames);
|
|
913
|
+
const typeDefContent = generateTypeDefinition(attributeMap, attributeList, env, machineUserNames, idpNames);
|
|
898
914
|
const outputPath = resolveTypeDefinitionPath(configPath);
|
|
899
915
|
fs$1.mkdirSync(path.dirname(outputPath), { recursive: true });
|
|
900
916
|
fs$1.writeFileSync(outputPath, typeDefContent);
|
|
@@ -2558,9 +2574,9 @@ async function applyIdP(client, result, phase = "create-update") {
|
|
|
2558
2574
|
* @returns Planned changes and metadata
|
|
2559
2575
|
*/
|
|
2560
2576
|
async function planIdP(context) {
|
|
2561
|
-
const { client, workspaceId, application, forRemoval, forceApplyAll = false,
|
|
2577
|
+
const { client, workspaceId, application, forRemoval, forceApplyAll = false, idpUserTriggerTargets } = context;
|
|
2562
2578
|
const idps = forRemoval ? [] : application.idpServices;
|
|
2563
|
-
const { changeSet: serviceChangeSet, conflicts, unmanaged, resourceOwners } = await planServices$3(client, workspaceId, application.name, idps,
|
|
2579
|
+
const { changeSet: serviceChangeSet, conflicts, unmanaged, resourceOwners } = await planServices$3(client, workspaceId, application.name, idps, idpUserTriggerTargets ?? /* @__PURE__ */ new Set());
|
|
2564
2580
|
return {
|
|
2565
2581
|
changeSet: {
|
|
2566
2582
|
service: serviceChangeSet,
|
|
@@ -2647,7 +2663,7 @@ function areIdPServicesEqual(existing, desired) {
|
|
|
2647
2663
|
permission: normalizeComparablePermission(existing.permission)
|
|
2648
2664
|
}), desired);
|
|
2649
2665
|
}
|
|
2650
|
-
async function planServices$3(client, workspaceId, appName, idps,
|
|
2666
|
+
async function planServices$3(client, workspaceId, appName, idps, idpUserTriggerTargets) {
|
|
2651
2667
|
const changeSet = createChangeSet("IdP services");
|
|
2652
2668
|
const conflicts = [];
|
|
2653
2669
|
const unmanaged = [];
|
|
@@ -2696,9 +2712,9 @@ async function planServices$3(client, workspaceId, appName, idps, hasIdpUserTrig
|
|
|
2696
2712
|
}
|
|
2697
2713
|
const lang = convertLang(idp.lang);
|
|
2698
2714
|
const userAuthPolicy = idp.userAuthPolicy;
|
|
2699
|
-
const
|
|
2700
|
-
if (
|
|
2701
|
-
|
|
2715
|
+
const isIdpUserTriggerTarget = idpUserTriggerTargets.has(namespaceName);
|
|
2716
|
+
if (isIdpUserTriggerTarget && idp.publishUserEvents === false) throw new Error(`IdP service "${namespaceName}" has "publishUserEvents: false", but executors with idpUser triggers subscribe to it. Either remove "publishUserEvents: false" or remove the matching executor triggers.`);
|
|
2717
|
+
const publishUserEvents = idp.publishUserEvents ?? isIdpUserTriggerTarget;
|
|
2702
2718
|
const emailConfig = idp.emailConfig;
|
|
2703
2719
|
if (!idp.permission) logger.warn(`IdP service "${namespaceName}" has no permission configured.`);
|
|
2704
2720
|
const parsedPermission = parseIdPPermission(idp.permission);
|
|
@@ -4389,9 +4405,20 @@ function resolveResolverNamespace(application, resolverName) {
|
|
|
4389
4405
|
for (const service of application.resolverServices) if (Object.values(service.resolvers).some((r) => r.name === resolverName)) return service.namespace;
|
|
4390
4406
|
throw new Error(`Resolver "${resolverName}" not found in any namespace. Available namespaces: ${application.resolverServices.map((s) => s.namespace).join(", ")}`);
|
|
4391
4407
|
}
|
|
4392
|
-
function resolveIdpNamespace(application) {
|
|
4393
|
-
if (application.idpServices.length === 0) throw new Error("
|
|
4394
|
-
if (
|
|
4408
|
+
function resolveIdpNamespace(application, executorName, idpName) {
|
|
4409
|
+
if (application.idpServices.length === 0) throw new Error(`Executor "${executorName}" uses an idpUser trigger but no IdP is configured.`);
|
|
4410
|
+
if (idpName !== void 0) {
|
|
4411
|
+
const found = application.idpServices.find((idp) => idp.name === idpName);
|
|
4412
|
+
if (!found) {
|
|
4413
|
+
const available = application.idpServices.map((idp) => idp.name).join(", ");
|
|
4414
|
+
throw new Error(`Executor "${executorName}" specifies IdP "${idpName}" in its idpUser trigger, but no IdP with that name is configured. Available IdPs: ${available}`);
|
|
4415
|
+
}
|
|
4416
|
+
return found.name;
|
|
4417
|
+
}
|
|
4418
|
+
if (application.idpServices.length > 1) {
|
|
4419
|
+
const available = application.idpServices.map((idp) => idp.name).join(", ");
|
|
4420
|
+
throw new Error(`Executor "${executorName}" uses an idpUser trigger but the project defines multiple IdPs (${available}). Specify which IdP to subscribe to via the trigger's "idp" option.`);
|
|
4421
|
+
}
|
|
4395
4422
|
return application.idpServices[0].name;
|
|
4396
4423
|
}
|
|
4397
4424
|
function resolveAuthNamespace(application) {
|
|
@@ -4462,7 +4489,7 @@ function protoExecutor(application, executor) {
|
|
|
4462
4489
|
case: "idp",
|
|
4463
4490
|
value: {
|
|
4464
4491
|
eventTypes: trigger.events,
|
|
4465
|
-
namespaceName: resolveIdpNamespace(application)
|
|
4492
|
+
namespaceName: resolveIdpNamespace(application, executor.name, trigger.idp)
|
|
4466
4493
|
}
|
|
4467
4494
|
});
|
|
4468
4495
|
break;
|
|
@@ -8480,6 +8507,25 @@ function tailorDBTrn(workspaceId, name) {
|
|
|
8480
8507
|
function vaultTrn(workspaceId, name) {
|
|
8481
8508
|
return `trn:v1:workspace:${workspaceId}:vault:${name}`;
|
|
8482
8509
|
}
|
|
8510
|
+
/**
|
|
8511
|
+
* Resolve the set of IdP names that have at least one executor subscribed to
|
|
8512
|
+
* their user events. When an executor's idpUser trigger omits the `idp` option
|
|
8513
|
+
* and exactly one IdP is configured, that IdP is implicitly the target.
|
|
8514
|
+
* Executors that omit `idp` while multiple IdPs exist are skipped here; the
|
|
8515
|
+
* apply pipeline throws a clearer error for them later.
|
|
8516
|
+
* @param application - Loaded application
|
|
8517
|
+
* @returns Set of IdP names targeted by idpUser triggers
|
|
8518
|
+
*/
|
|
8519
|
+
function collectIdpUserTriggerTargets(application) {
|
|
8520
|
+
const targets = /* @__PURE__ */ new Set();
|
|
8521
|
+
const idps = application.idpServices;
|
|
8522
|
+
for (const executor of Object.values(application.executorService?.executors ?? {})) {
|
|
8523
|
+
if (executor.trigger.kind !== "idpUser") continue;
|
|
8524
|
+
if (executor.trigger.idp != null) targets.add(executor.trigger.idp);
|
|
8525
|
+
else if (idps.length === 1) targets.add(idps[0].name);
|
|
8526
|
+
}
|
|
8527
|
+
return targets;
|
|
8528
|
+
}
|
|
8483
8529
|
async function shouldForceApplyAll(client, workspaceId, application, functionEntries) {
|
|
8484
8530
|
const desiredLabels = (await buildMetaRequest(applicationTrn(workspaceId, application.name), application.name)).labels;
|
|
8485
8531
|
const candidateTrns = /* @__PURE__ */ new Set();
|
|
@@ -8687,7 +8733,7 @@ async function apply(options) {
|
|
|
8687
8733
|
const yes = options?.yes ?? false;
|
|
8688
8734
|
const forceApplyAll = await withSpan("plan.detectSdkVersionChange", () => shouldForceApplyAll(client, workspaceId, application, functionEntries));
|
|
8689
8735
|
const { functionRegistry, tailorDB, staticWebsite, idp, auth, pipeline, app, executor, workflow, secretManager } = await withSpan("plan", async () => {
|
|
8690
|
-
const
|
|
8736
|
+
const idpUserTriggerTargets = collectIdpUserTriggerTargets(application);
|
|
8691
8737
|
const ctx = {
|
|
8692
8738
|
client,
|
|
8693
8739
|
workspaceId,
|
|
@@ -8696,7 +8742,7 @@ async function apply(options) {
|
|
|
8696
8742
|
config,
|
|
8697
8743
|
noSchemaCheck: options?.noSchemaCheck,
|
|
8698
8744
|
forceApplyAll,
|
|
8699
|
-
|
|
8745
|
+
idpUserTriggerTargets
|
|
8700
8746
|
};
|
|
8701
8747
|
const functionRegistry = await withSpan("plan.functionRegistry", () => planFunctionRegistry(client, workspaceId, application.name, functionEntries));
|
|
8702
8748
|
const unchangedWorkflowJobs = new Set(functionRegistry.changeSet.unchanged.filter((entry) => entry.name.startsWith(WORKFLOW_PREFIX)).map((entry) => entry.name.slice(WORKFLOW_PREFIX.length)));
|
|
@@ -13085,7 +13131,7 @@ async function generate(options) {
|
|
|
13085
13131
|
if (options.init) await handleInitOption(namespacesWithMigrations, options.yes);
|
|
13086
13132
|
let pluginManager;
|
|
13087
13133
|
if (plugins.length > 0) pluginManager = new PluginManager(plugins);
|
|
13088
|
-
const { defineApplication } = await import("./application-
|
|
13134
|
+
const { defineApplication } = await import("./application-C0O80PUX.mjs");
|
|
13089
13135
|
const application = defineApplication({
|
|
13090
13136
|
config,
|
|
13091
13137
|
pluginManager
|
|
@@ -15234,4 +15280,4 @@ function isDeno() {
|
|
|
15234
15280
|
|
|
15235
15281
|
//#endregion
|
|
15236
15282
|
export { deleteCommand$1 as $, getMigrationDirPath as $t, truncate as A, executionsCommand as At, updateOrganization as B, MIGRATION_LABEL_KEY as Bt, listCommand$2 as C, toPageDirection as Cn, jobsCommand as Ct, resumeWorkflow as D, startWorkflow as Dt, resumeCommand as E, startCommand as Et, showCommand as F, getCommand$6 as Ft, getCommand$1 as G, INITIAL_SCHEMA_NUMBER as Gt, treeCommand as H, bundleMigrationScript as Ht, logBetaWarning as I, getExecutor as It, updateFolder as J, compareLocalTypesWithSnapshot as Jt, getOrganization as K, MIGRATE_FILE_NAME as Kt, remove as L, apply as Lt, generate as M, listWorkflowExecutions as Mt, generateCommand as N, functionExecutionStatusToString as Nt, listCommand$3 as O, getCommand$5 as Ot, show as P, formatKeyValueTable as Pt, getFolder as Q, getLatestMigrationNumber as Qt, removeCommand$1 as R, executeScript as Rt, listApps as S, paginationArgs as Sn, getExecutorJob as St, healthCommand as T, watchExecutorJob as Tt, listCommand$4 as U, DB_TYPES_FILE_NAME as Ut, organizationTree as V, parseMigrationLabelNumber as Vt, listOrganizations as W, DIFF_FILE_NAME as Wt, listFolders as X, createSnapshotFromLocalTypes as Xt, listCommand$5 as Y, compareSnapshots as Yt, getCommand$2 as Z, formatMigrationNumber as Zt, getWorkspace as _, commonArgs as _n, webhookCommand as _t, updateUser as a, reconstructSnapshotFromMigrations as an, getCommand$3 as at, createCommand as b, isVerbose as bn, listCommand$9 as bt, listCommand as c, hasChanges as cn, tokenCommand as ct, inviteUser as d, sdkNameLabelKey as dn, generate$1 as dt, getMigrationFilePath as en, deleteFolder as et, restoreCommand as f, trnPrefix as fn, listCommand$8 as ft, getCommand as g, defineAppCommand as gn, listWebhookExecutors as gt, listWorkspaces as h, apiCall as hn, getFunctionRegistry as ht, updateCommand as i, loadDiff as in, listOAuth2Clients as it, truncateCommand as j, getWorkflowExecution as jt, listWorkflows as k, getWorkflow as kt, listUsers as l, getNamespacesWithMigrations as ln, listCommand$7 as lt, listCommand$1 as m, apiCommand as mn, getCommand$4 as mt, query as n, getNextMigrationNumber as nn, createFolder as nt, removeCommand as o, formatDiffSummary as on, getOAuth2Client as ot, restoreWorkspace as p, generateUserTypes as pn, listFunctionRegistries as pt, updateCommand$2 as q, SCHEMA_FILE_NAME as qt, queryCommand as r, isValidMigrationNumber as rn, listCommand$6 as rt, removeUser as s, formatMigrationDiff as sn, getMachineUserToken as st, isNativeTypeScriptRuntime as t, getMigrationFiles as tn, createCommand$1 as tt, inviteCommand as u, prompt as un, listMachineUsers as ut, deleteCommand as v, confirmationArgs as vn, triggerCommand as vt, getAppHealth as w, workspaceArgs as wn, listExecutorJobs as wt, createWorkspace as x, pagedLogArgs as xn, listExecutors as xt, deleteWorkspace as y, deploymentArgs as yn, triggerExecutor as yt, updateCommand$1 as z, waitForExecution$1 as zt };
|
|
15237
|
-
//# sourceMappingURL=runtime-
|
|
15283
|
+
//# sourceMappingURL=runtime-Bmq4L9pj.mjs.map
|