@adobe/aio-commerce-lib-app 2.2.0 → 2.3.0-beta-20261202103723

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +32 -1
  2. package/dist/cjs/actions/app-config/index.cjs +8 -8
  3. package/dist/cjs/actions/app-config/index.d.cts +2 -2
  4. package/dist/cjs/actions/association/index.cjs +4 -4
  5. package/dist/cjs/actions/config/index.cjs +19 -8
  6. package/dist/cjs/actions/config/index.d.cts +1 -1
  7. package/dist/cjs/actions/installation/index.cjs +39 -15
  8. package/dist/cjs/actions/installation/index.d.cts +3 -3
  9. package/dist/cjs/actions/scope-tree/index.cjs +6 -6
  10. package/dist/cjs/{app-B3bAEor-.d.cts → app-CLDvfJXp.d.cts} +634 -44
  11. package/dist/cjs/commands/index.cjs +174 -33
  12. package/dist/cjs/config/index.browser.d.cts +1 -1
  13. package/dist/cjs/config/index.node.cjs +3 -3
  14. package/dist/cjs/config/index.node.d.cts +50 -14
  15. package/dist/cjs/{define-eBMdGAq6.d.cts → define-BGpnO45V.d.cts} +1 -1
  16. package/dist/cjs/{environment-CW6M76gS.cjs → environment-CaV1hi2-.cjs} +1 -1
  17. package/dist/cjs/{index-BEeludy0.d.cts → index-p0duTbHE.d.cts} +2 -2
  18. package/dist/cjs/index.cjs +3 -3
  19. package/dist/cjs/index.d.cts +1 -1
  20. package/dist/cjs/{index.node-9bfp79rs.cjs → index.node-ECg3DGc8.cjs} +7 -6
  21. package/dist/cjs/{logging-Emi7P923.cjs → logging-r-r2bUWO.cjs} +1 -1
  22. package/dist/cjs/management/index.cjs +1 -1
  23. package/dist/cjs/management/index.d.cts +1 -1
  24. package/dist/cjs/{management-5Et1mEUp.cjs → management-CFQ4hjs6.cjs} +123 -108
  25. package/dist/cjs/{openapi-DghfuM8S.cjs → openapi-BaKoO7GY.cjs} +177 -26
  26. package/dist/cjs/{rolldown-runtime-CoOt0iuZ.cjs → rolldown-runtime-BKfnhsn2.cjs} +4 -4
  27. package/dist/cjs/{schemas-B6ITl1bG.cjs → schemas-B-jCi6Oz.cjs} +1 -1
  28. package/dist/cjs/{utils-CoR_PBHz.cjs → utils-CuzJBLgo.cjs} +2 -2
  29. package/dist/cjs/{utils-DSS0XlXq.cjs → utils-bwFwJcPW.cjs} +1 -1
  30. package/dist/cjs/{validate-BC3rnRLc.cjs → validate-DKMq3KNV.cjs} +13 -5
  31. package/dist/cjs/{version-5MonNzl5.cjs → version-BYcHBNng.cjs} +3 -3
  32. package/dist/{es/webhooks-DgaLfP36.d.mts → cjs/webhooks-BCYX3JqY.d.cts} +382 -43
  33. package/dist/cjs/{webhooks-ZPh2gVb3.cjs → webhooks-Bp1Roq8a.cjs} +70 -23
  34. package/dist/es/actions/app-config/index.d.mts +2 -2
  35. package/dist/es/actions/app-config/index.mjs +6 -6
  36. package/dist/es/actions/association/index.mjs +3 -3
  37. package/dist/es/actions/config/index.d.mts +2 -2
  38. package/dist/es/actions/config/index.mjs +19 -8
  39. package/dist/es/actions/installation/index.d.mts +4 -4
  40. package/dist/es/actions/installation/index.mjs +38 -14
  41. package/dist/es/actions/scope-tree/index.mjs +5 -5
  42. package/dist/es/{app-B3bAEor-.d.mts → app-CLDvfJXp.d.mts} +634 -44
  43. package/dist/es/commands/index.mjs +170 -29
  44. package/dist/es/config/index.browser.d.mts +1 -1
  45. package/dist/es/config/index.node.d.mts +51 -15
  46. package/dist/es/config/index.node.mjs +3 -3
  47. package/dist/es/{define-BdXyLAwb.d.mts → define-C-0hOMO3.d.mts} +1 -1
  48. package/dist/es/{environment-DUhU0_9z.mjs → environment-B1JJFHZw.mjs} +1 -1
  49. package/dist/es/{index-DE2KVXfH.d.mts → index-DYHaYwvJ.d.mts} +4 -4
  50. package/dist/es/{index-DUJtT78x.d.mts → index-U7CXicoW.d.mts} +1 -1
  51. package/dist/es/index.d.mts +2 -2
  52. package/dist/es/index.mjs +3 -3
  53. package/dist/es/{index.node-CURztkP5.mjs → index.node-ChWOTWnF.mjs} +5 -4
  54. package/dist/es/management/index.d.mts +1 -1
  55. package/dist/es/management/index.mjs +1 -1
  56. package/dist/es/{management-BAQ64OyR.mjs → management-CNMT6azj.mjs} +128 -113
  57. package/dist/es/{openapi-BvPVTUMt.mjs → openapi-ChihLuvm.mjs} +177 -26
  58. package/dist/es/{utils-DB8HaSj0.mjs → utils-Bg_LIAGV.mjs} +2 -2
  59. package/dist/es/{validate-xS9Dc-4m.mjs → validate-DeAMC-HS.mjs} +7 -5
  60. package/dist/es/{version-BWgrh_QM.mjs → version-Cj7a9rey.mjs} +1 -1
  61. package/dist/es/{webhooks-HBe_DEKA.mjs → webhooks-CyiUfRNG.mjs} +67 -20
  62. package/dist/{cjs/webhooks-DNLuuv9_.d.cts → es/webhooks-DyMAQMnm.d.mts} +382 -43
  63. package/package.json +14 -15
@@ -13,33 +13,34 @@
13
13
  * governing permissions and limitations under the License.
14
14
  */
15
15
 
16
- import { _ as makeOutputDirFor, a as resolveCommerceAppConfig, c as getExecCommand, d as getPackageExecutionCommand, f as getProjectInstallCommand, g as loadPackageJson, h as isESM, i as readCommerceAppConfig, l as getInstallCommand, m as getRunScriptCommand, n as isTypeScriptConfig, o as appendCommand, p as getProjectRootDirectory, r as parseCommerceAppConfig, s as detectPackageManager, t as hasNamedCommerceAppConfigExports, u as getPackageDependencyInstallPlan, v as mergePackageJsonDependencies, y as readPackageJson } from "../index.node-CURztkP5.mjs";
17
- import { a as hasCustomInstallationSteps, d as ADMIN_UI_MASS_ACTION_ENTITIES, f as ADMIN_UI_VIEW_BUTTON_ENTITIES, h as hasBackendUiV2Components, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "../webhooks-HBe_DEKA.mjs";
18
- import { o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-xS9Dc-4m.mjs";
19
- import { t as parseOrThrow } from "../utils-G-EDWmew.mjs";
20
- import { r as nonEmptyStringValueSchema } from "../schemas-DYMNbFdX.mjs";
21
- import { t as inspect } from "../logging-B1xb568A.mjs";
22
- import { hasDynamicSchema } from "@adobe/aio-commerce-lib-config";
23
16
  import { CommerceSdkErrorBase, CommerceSdkValidationError, stringifyError } from "@adobe/aio-commerce-lib-core/error";
24
- import * as v from "valibot";
25
17
  import consola$1, { consola } from "consola";
18
+ import { _ as makeOutputDirFor, a as resolveCommerceAppConfig, c as getExecCommand, d as getPackageExecutionCommand, f as getProjectInstallCommand, g as loadPackageJson, h as isESM, i as readCommerceAppConfig, l as getInstallCommand, m as getRunScriptCommand, n as isTypeScriptConfig, o as appendCommand, p as getProjectRootDirectory, r as parseCommerceAppConfig, s as detectPackageManager, t as hasNamedCommerceAppConfigExports, u as getPackageDependencyInstallPlan, v as mergePackageJsonDependencies, y as readPackageJson } from "../index.node-ChWOTWnF.mjs";
26
19
  import { closeSync, constants, existsSync, openSync, readFileSync, writeFileSync } from "fs";
27
20
  import { access, copyFile, mkdir, readFile, readdir, rm, writeFile } from "fs/promises";
28
21
  import path, { basename, dirname, extname, join, relative, resolve, sep } from "path";
29
22
  import { colorize, colors, formatTree } from "consola/utils";
30
23
  import { fileURLToPath } from "url";
31
24
  import { execSync, spawn, spawnSync } from "child_process";
25
+ import { hasDynamicSchema } from "@adobe/aio-commerce-lib-config";
32
26
  import * as prettier from "prettier";
33
- import { Document, YAMLMap, YAMLSeq, isMap, isNode, isPair, isScalar, isSeq, parseDocument } from "yaml";
27
+ import { a as hasCustomInstallationSteps, d as ADMIN_UI_MASS_ACTION_ENTITIES, f as ADMIN_UI_VIEW_BUTTON_ENTITIES, h as hasBackendUiV2Components, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "../webhooks-CyiUfRNG.mjs";
28
+ import { d as hasBusinessConfigSchema, o as getConfigDomains, t as validateCommerceAppConfig } from "../validate-DeAMC-HS.mjs";
29
+ import { Document, YAMLMap, YAMLSeq, isMap, isNode as isNode$1, isPair, isScalar, isSeq, parseDocument } from "yaml";
34
30
  import { stringify as stringify$1 } from "safe-stable-stringify";
35
31
  import { tmpdir } from "os";
36
32
  import net from "net";
37
- import aioIms from "@adobe/aio-lib-ims";
38
33
  import config from "@adobe/aio-lib-core-config";
34
+ import aioIms from "@adobe/aio-lib-ims";
39
35
  import ky, { HTTPError, TimeoutError } from "ky";
36
+ import { t as parseOrThrow } from "../utils-G-EDWmew.mjs";
37
+ import * as v from "valibot";
40
38
  import { HTTP_CONFLICT } from "@adobe/aio-commerce-lib-core/responses";
39
+ import { r as nonEmptyStringValueSchema } from "../schemas-DYMNbFdX.mjs";
41
40
  import { setTimeout as setTimeout$1 } from "timers/promises";
42
41
  import dotenv from "dotenv";
42
+ import { coalesce } from "@adobe/aio-cli-lib-app-config";
43
+ import { t as inspect } from "../logging-B1xb568A.mjs";
43
44
 
44
45
  // source/commands/constants.ts
45
46
  /** The name of the package containing all the generated runtime actions */
@@ -87,7 +88,7 @@ const CONFIG_SCHEMA_FILE_NAME = "configuration-schema.json";
87
88
  /** The name of the project package file */
88
89
  const PACKAGE_JSON_FILE = "package.json";
89
90
  /** The name of the app configuration file */
90
- const APP_CONFIG_FILE = "app.config.yaml";
91
+ const APP_CONFIG_FILE$1 = "app.config.yaml";
91
92
  /** The name of the install configuration file */
92
93
  const INSTALL_YAML_FILE = "install.yaml";
93
94
  /** Get the path to the extension point folder */
@@ -357,7 +358,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
357
358
  const WEB_SOURCE_DEPENDENCIES = [
358
359
  {
359
360
  name: "@adobe/aio-commerce-lib-admin-ui",
360
- version: "^1.3.0"
361
+ version: "^1.3.1-beta-20261202103723"
361
362
  },
362
363
  {
363
364
  name: "react",
@@ -1540,6 +1541,43 @@ function spawnDetached(options) {
1540
1541
  }
1541
1542
  }
1542
1543
 
1544
+ // ../../packages-private/scripting-utils/source/aio/app-config.ts
1545
+ const APP_CONFIG_FILE = "app.config.yaml";
1546
+ /** Values of the `web` action property that expose the action over HTTP. */
1547
+ const WEB_ACTION_VALUES = /* @__PURE__ */ new Set([
1548
+ true,
1549
+ "yes",
1550
+ "raw"
1551
+ ]);
1552
+ function asNode(value) {
1553
+ return typeof value === "object" && value !== null && !Array.isArray(value) ? value : {};
1554
+ }
1555
+ /**
1556
+ * Lists the actions declared in the `runtimeManifest` of an extension, keyed as `<package>/<action>`.
1557
+ * Loads `app.config.yaml` with the same library the `aio` CLI uses, so `$include` directives and
1558
+ * `function` paths resolve exactly as they do at build time.
1559
+ * @param projectRoot - Resolved project root containing `app.config.yaml`.
1560
+ * @param extensionPointId - The extension point ID, e.g. "commerce/extensibility/1".
1561
+ */
1562
+ async function listExtensionRuntimeActions(projectRoot, extensionPointId) {
1563
+ const appConfigPath = join(projectRoot, APP_CONFIG_FILE);
1564
+ const { config, includeIndex } = await coalesce(appConfigPath, { absolutePaths: true });
1565
+ const extensionKey = `extensions.${extensionPointId}`;
1566
+ const manifest = asNode(asNode(asNode(config.extensions)[extensionPointId]).runtimeManifest);
1567
+ const actions = /* @__PURE__ */ new Map();
1568
+ for (const [packageName, pkg] of Object.entries(asNode(manifest.packages))) for (const [actionName, rawAction] of Object.entries(asNode(asNode(pkg).actions))) {
1569
+ const action = asNode(rawAction);
1570
+ const actionKey = `${extensionKey}.runtimeManifest.packages.${packageName}.actions.${actionName}`;
1571
+ const fn = typeof action.function === "string" ? action.function : "";
1572
+ actions.set(`${packageName}/${actionName}`, {
1573
+ function: fn || void 0,
1574
+ isWebAction: WEB_ACTION_VALUES.has(action.web),
1575
+ source: includeIndex[actionKey]?.file ?? appConfigPath
1576
+ });
1577
+ }
1578
+ return actions;
1579
+ }
1580
+
1543
1581
  // ../../packages-private/scripting-utils/source/aio/auth.ts
1544
1582
  const { context: context$1, getToken } = aioIms;
1545
1583
  /** Gets an IMS access token for the current CLI IMS context. */
@@ -1617,13 +1655,16 @@ var CamsClientError = class extends CommerceSdkErrorBase {
1617
1655
  code;
1618
1656
  /** The request that CAMS answered with an error, when CAMS answered. */
1619
1657
  request;
1658
+ /** The kind of Commerce instance the request was made for, when it names one. */
1659
+ commerceEnv;
1620
1660
  constructor(message, options = {}) {
1621
- const { retryable = false, status, code, request, ...rest } = options;
1661
+ const { retryable = false, status, code, request, commerceEnv, ...rest } = options;
1622
1662
  super(message, rest);
1623
1663
  this.retryable = retryable;
1624
1664
  this.status = status;
1625
1665
  this.code = code;
1626
1666
  this.request = request;
1667
+ this.commerceEnv = commerceEnv;
1627
1668
  }
1628
1669
  };
1629
1670
  /** Thrown when CAMS refuses a request with a 409. Its `code` tells why. */
@@ -1662,6 +1703,7 @@ async function toCamsResponseError(error) {
1662
1703
  const options = {
1663
1704
  cause: error,
1664
1705
  code,
1706
+ commerceEnv: error.request.headers.get("x-ac-env") ?? void 0,
1665
1707
  request: {
1666
1708
  method: error.request.method,
1667
1709
  path: new URL(error.request.url).pathname
@@ -2083,6 +2125,17 @@ function describeCamsFailure(error) {
2083
2125
  ].filter(Boolean);
2084
2126
  return facts.length > 0 ? `Details: ${facts.join(", ")}` : void 0;
2085
2127
  }
2128
+ const PROJECT_ACCESS_HINT = "Hint: the credential cannot access the project. Add the I/O Management API to the workspace credential.";
2129
+ const COMMERCE_ACCESS_HINTS = {
2130
+ paas: "Hint: the credential cannot access the Commerce instance. Create its technical account as an admin user in the instance, with the permissions the app needs.",
2131
+ saas: "Hint: the credential cannot access the Commerce instance. Add the Adobe Commerce as a Cloud Service API to the credential and assign it a profile for the instance."
2132
+ };
2133
+ const COMMERCE_ACCESS_HINT = "Hint: the credential cannot access the Commerce instance. On SaaS, add the Adobe Commerce as a Cloud Service API to the credential and assign it a profile for the instance. On PaaS, create its technical account as an admin user in the instance.";
2134
+ /** The hint for the access failures that a credential without the right access causes. */
2135
+ function hintFor(error) {
2136
+ if (error.code === "project-access-denied") return PROJECT_ACCESS_HINT;
2137
+ if (error.code === "commerce-access-denied") return error.commerceEnv && COMMERCE_ACCESS_HINTS[error.commerceEnv] || COMMERCE_ACCESS_HINT;
2138
+ }
2086
2139
  /**
2087
2140
  * Prints a failure. A failure of the service is one block, the message and one line of details
2088
2141
  * without a stack, and the whole chain of causes goes to the debug log, which `DEBUG=1` shows.
@@ -2102,7 +2155,12 @@ function reportFailure(error, message) {
2102
2155
  }
2103
2156
  const details = describeCamsFailure(cams);
2104
2157
  const headline = message ?? (error instanceof Error ? error.message : String(error));
2105
- consola.error(details ? `${headline}\n${details}` : headline);
2158
+ const hint = hintFor(cams);
2159
+ consola.error([
2160
+ headline,
2161
+ details,
2162
+ hint
2163
+ ].filter(Boolean).join("\n"));
2106
2164
  consola.debug(error);
2107
2165
  }
2108
2166
 
@@ -2246,10 +2304,11 @@ const SKIP_MESSAGES = {
2246
2304
  "already-current": "The app is already up to date.",
2247
2305
  "in-progress": "An upgrade is already in progress.",
2248
2306
  "not-associated": "The app is not associated with a Commerce instance. Nothing to upgrade.",
2249
- "not-installed": "The app is not installed on the Commerce instance. Nothing to upgrade."
2307
+ "not-installed": "The app is not installed on the Commerce instance. Nothing to upgrade.",
2308
+ "upgrade-conflict": "Another upgrade of this app is in progress or an automatic upgrade is pending. Try again in a few minutes."
2250
2309
  };
2251
2310
  function isSkipCode(code) {
2252
- return code === "already-current" || code === "not-associated" || code === "not-installed" || code === "in-progress";
2311
+ return typeof code === "string" && Object.hasOwn(SKIP_MESSAGES, code);
2253
2312
  }
2254
2313
  /**
2255
2314
  * Asks the service to plan the upgrade.
@@ -2454,21 +2513,21 @@ function isSorted(extensions) {
2454
2513
  * @returns True if the file was rewritten.
2455
2514
  */
2456
2515
  async function ensureExtensionPointsOrder(projectRoot) {
2457
- const path = join(projectRoot, APP_CONFIG_FILE);
2516
+ const path = join(projectRoot, APP_CONFIG_FILE$1);
2458
2517
  if (!existsSync(path)) return false;
2459
2518
  const doc = await readYamlFile(path);
2460
2519
  const extensions = getExtensionsMap(doc.contents);
2461
2520
  if (extensions === void 0 || isSorted(extensions)) return false;
2462
2521
  const pairs = extensions.items;
2463
2522
  const [first, second] = pairs;
2464
- if (extensions.commentBefore && isNode(first.key)) {
2523
+ if (extensions.commentBefore && isNode$1(first.key)) {
2465
2524
  first.key.commentBefore = extensions.commentBefore;
2466
2525
  extensions.commentBefore = void 0;
2467
2526
  }
2468
2527
  pairs.sort((a, b) => getPairRank(a) - getPairRank(b));
2469
- const spaced = isNode(second?.key) && Boolean(second.key.spaceBefore);
2470
- if (isNode(first.key) && pairs[0] !== first) first.key.spaceBefore = spaced;
2471
- if (isNode(pairs[0].key)) pairs[0].key.spaceBefore = false;
2528
+ const spaced = isNode$1(second?.key) && Boolean(second.key.spaceBefore);
2529
+ if (isNode$1(first.key) && pairs[0] !== first) first.key.spaceBefore = spaced;
2530
+ if (isNode$1(pairs[0].key)) pairs[0].key.spaceBefore = false;
2472
2531
  await writeFile(path, doc.toString(), "utf-8");
2473
2532
  return true;
2474
2533
  }
@@ -2579,6 +2638,74 @@ async function syncImsCredentials(projectRoot) {
2579
2638
  return { ok: true };
2580
2639
  }
2581
2640
 
2641
+ // source/commands/common/runtime-actions.ts
2642
+ /** Sections whose referenced actions must be web actions. */
2643
+ const WEB_ACTION_SECTIONS = /* @__PURE__ */ new Set(["webhooks"]);
2644
+ function isNode(value) {
2645
+ return typeof value === "object" && value !== null && !Array.isArray(value);
2646
+ }
2647
+ /**
2648
+ * Finds every `runtimeAction` and `runtimeActions` value nested in a config value.
2649
+ * @param value - The config value to search.
2650
+ * @param path - Dotted config path of `value`.
2651
+ */
2652
+ function* findReferences(value, path) {
2653
+ if (Array.isArray(value)) {
2654
+ for (const [index, item] of value.entries()) yield* findReferences(item, `${path}.${index}`);
2655
+ return;
2656
+ }
2657
+ if (!isNode(value)) return;
2658
+ for (const [key, child] of Object.entries(value)) {
2659
+ const childPath = `${path}.${key}`;
2660
+ if (key === "runtimeAction" && typeof child === "string") yield {
2661
+ name: child,
2662
+ path: childPath
2663
+ };
2664
+ else if (key === "runtimeActions" && Array.isArray(child)) {
2665
+ for (const [index, name] of child.entries()) if (typeof name === "string") yield {
2666
+ name,
2667
+ path: `${childPath}.${index}`
2668
+ };
2669
+ } else yield* findReferences(child, childPath);
2670
+ }
2671
+ }
2672
+ /**
2673
+ * Returns why a reference does not resolve to a usable declared action, or `undefined` if it does.
2674
+ * @param name - The referenced `<package>/<action>`.
2675
+ * @param declared - Actions the reference may resolve to.
2676
+ * @param location - Project-relative path of the ext.config.yaml they are declared in.
2677
+ * @param requireWebAction - Whether the referenced action must be a web action.
2678
+ * @param projectRoot - Resolved project root, used to report paths relative to it.
2679
+ */
2680
+ function checkReference(name, declared, location, requireWebAction, projectRoot) {
2681
+ const action = declared.get(name);
2682
+ if (!action) return `Runtime action "${name}" is not declared under "runtimeManifest.packages" in ${location}`;
2683
+ const source = relative(projectRoot, action.source);
2684
+ if (!(action.function && existsSync(action.function))) return action.function ? `Runtime action "${name}" points to "${relative(projectRoot, action.function)}" in ${source}, which does not exist` : `Runtime action "${name}" has no "function" in ${source}`;
2685
+ if (requireWebAction && !action.isWebAction) return `Runtime action "${name}" must be a web action (set "web: yes" in ${source})`;
2686
+ }
2687
+ /**
2688
+ * Validates that every `runtimeAction`/`runtimeActions` value in the given config sections is
2689
+ * declared in the extension's runtime manifest and that its `function` exists on disk. Webhook actions must
2690
+ * also be web actions.
2691
+ * @param sections - The config sections whose references are validated.
2692
+ * @param manifest - The extension whose runtime manifest the references must resolve against.
2693
+ * @throws {Error} If any reference does not resolve to a declared action.
2694
+ */
2695
+ async function validateRuntimeActionReferences(sections, manifest) {
2696
+ const references = Object.entries(sections).flatMap(([section, value]) => [...findReferences(value, section)].map((reference) => ({
2697
+ ...reference,
2698
+ section
2699
+ })));
2700
+ if (references.length === 0) return;
2701
+ const declared = await listExtensionRuntimeActions(manifest.projectRoot, manifest.extensionPointId);
2702
+ const errors = references.flatMap(({ name, path, section }) => {
2703
+ const message = checkReference(name, declared, manifest.path, WEB_ACTION_SECTIONS.has(section), manifest.projectRoot);
2704
+ return message ? [`${path}: ${message}`] : [];
2705
+ });
2706
+ if (errors.length > 0) throw new Error(`Invalid runtime action references in ${manifest.path}:\n- ${errors.join("\n- ")}`);
2707
+ }
2708
+
2582
2709
  // source/commands/hooks/pre-app-build.ts
2583
2710
  /**
2584
2711
  * Runs the pre-app-build hook for the given extension.
@@ -2587,13 +2714,22 @@ async function syncImsCredentials(projectRoot) {
2587
2714
  * @param templatesDir - Directory containing action templates.
2588
2715
  */
2589
2716
  async function run$4(extension, projectRoot, templatesDir = TEMPLATES_DIR) {
2590
- if (await ensureExtensionPointsOrder(projectRoot)) consola$1.warn(`The extension points in ${APP_CONFIG_FILE} were reordered (${EXTENSION_POINT_ORDER.join(", ")}) to ensure an upgrade works reliably. This is a one-off change.`);
2717
+ if (await ensureExtensionPointsOrder(projectRoot)) consola$1.warn(`The extension points in ${APP_CONFIG_FILE$1} were reordered (${EXTENSION_POINT_ORDER.join(", ")}) to ensure an upgrade works reliably. This is a one-off change.`);
2591
2718
  const appManifest = await loadAppManifest(projectRoot);
2592
2719
  await run$8(appManifest, projectRoot);
2593
2720
  await prepareRuntimeAppConfigModule(appManifest, projectRoot);
2594
2721
  if (extension === "extensibility/1") {
2595
2722
  const { doc: extensibilityExtConfig } = await readExtConfig(EXTENSIBILITY_EXTENSION_POINT_ID, projectRoot);
2596
- await generateActionFiles(appManifest, getRuntimeActions(extensibilityExtConfig.toJS(), "app-management"), EXTENSIBILITY_EXTENSION_POINT_ID, templatesDir, projectRoot);
2723
+ const extensibilityConfig = extensibilityExtConfig.toJS();
2724
+ await validateRuntimeActionReferences({
2725
+ eventing: appManifest.eventing,
2726
+ webhooks: appManifest.webhooks
2727
+ }, {
2728
+ extensionPointId: EXTENSIBILITY_EXTENSION_POINT_ID,
2729
+ path: getExtConfigPath(EXTENSIBILITY_EXTENSION_POINT_ID),
2730
+ projectRoot
2731
+ });
2732
+ await generateActionFiles(appManifest, getRuntimeActions(extensibilityConfig, "app-management"), EXTENSIBILITY_EXTENSION_POINT_ID, templatesDir, projectRoot);
2597
2733
  consola$1.info("Syncing IMS credentials...");
2598
2734
  consola$1.warn("Deprecated: if your actions use AIO_COMMERCE_AUTH_IMS_* inputs for OAuth Server-to-Server credentials, replace them with the `include-ims-credentials: true` action annotation. This hook still syncs legacy credentials for compatibility; that sync will be removed in a future major release.");
2599
2735
  await syncImsCredentials(projectRoot);
@@ -2607,6 +2743,11 @@ async function run$4(extension, projectRoot, templatesDir = TEMPLATES_DIR) {
2607
2743
  }
2608
2744
  if (extension === "backend-ui/2") {
2609
2745
  if (hasBackendUiV2Components(appManifest)) {
2746
+ await validateRuntimeActionReferences({ adminUi: appManifest.adminUi }, {
2747
+ extensionPointId: BACKEND_UI_V2_EXTENSION_POINT_ID,
2748
+ path: getExtConfigPath(BACKEND_UI_V2_EXTENSION_POINT_ID),
2749
+ projectRoot
2750
+ });
2610
2751
  const extConfig = await updateExtConfig(appManifest, BACKEND_UI_V2_EXTENSION_POINT_ID, projectRoot);
2611
2752
  if (extConfig.operations?.view) {
2612
2753
  await prepareWebSourceImportAlias(extConfig, projectRoot);
@@ -2860,24 +3001,24 @@ async function getDefaultCommerceAppConfig(cwd, { appName, configFormat, domains
2860
3001
  * @param commentBefore - The comment to add before the extension point include pair.
2861
3002
  */
2862
3003
  async function addExtensionPointToAppConfig(extensionPointId, rootDirectory, commentBefore) {
2863
- const appConfigPath = join(rootDirectory, APP_CONFIG_FILE);
3004
+ const appConfigPath = join(rootDirectory, APP_CONFIG_FILE$1);
2864
3005
  let doc;
2865
3006
  const includePath = relative(rootDirectory, join(rootDirectory, getExtConfigPath(extensionPointId)));
2866
3007
  try {
2867
3008
  doc = await readYamlFile(appConfigPath);
2868
3009
  } catch (error) {
2869
3010
  const fallbackContent = `extensions:\n ${extensionPointId}:\n $include: "${includePath}"`;
2870
- throw new Error(`Failed to parse ${APP_CONFIG_FILE}. \nPlease add manually: \n\n${fallbackContent}`, { cause: error });
3011
+ throw new Error(`Failed to parse ${APP_CONFIG_FILE$1}. \nPlease add manually: \n\n${fallbackContent}`, { cause: error });
2871
3012
  }
2872
3013
  if (doc.getIn([
2873
3014
  "extensions",
2874
3015
  extensionPointId,
2875
3016
  "$include"
2876
3017
  ]) === includePath) {
2877
- consola$1.success(`Extension "${extensionPointId}" already configured in ${APP_CONFIG_FILE}`);
3018
+ consola$1.success(`Extension "${extensionPointId}" already configured in ${APP_CONFIG_FILE$1}`);
2878
3019
  return;
2879
3020
  }
2880
- consola$1.info(`Adding extension "${extensionPointId}" to ${APP_CONFIG_FILE}...`);
3021
+ consola$1.info(`Adding extension "${extensionPointId}" to ${APP_CONFIG_FILE$1}...`);
2881
3022
  const extensions = getOrCreateMap(doc, ["extensions"]);
2882
3023
  getOrCreateMap(doc, ["extensions", extensionPointId], { onBeforeCreate: (pair) => {
2883
3024
  pair.key.spaceBefore = extensions.items.length > 0;
@@ -3034,7 +3175,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
3034
3175
  */
3035
3176
  function installDependencies(packageManager, domains, projectRoot) {
3036
3177
  const packages = [];
3037
- if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.9.0`);
3178
+ if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.10.0-beta-20261202103723`);
3038
3179
  if (packages.length === 0) {
3039
3180
  consola.info("No additional domain dependencies to install.");
3040
3181
  return;
@@ -3069,7 +3210,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
3069
3210
  }
3070
3211
 
3071
3212
  // source/commands/init/main.ts
3072
- const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0`];
3213
+ const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.3.0-beta-20261202103723`];
3073
3214
  /**
3074
3215
  * Initializes a Commerce App project.
3075
3216
  * @param flags - Non-interactive initialization answers.
@@ -13,5 +13,5 @@
13
13
  */
14
14
 
15
15
  /** biome-ignore-all lint/performance/noBarrelFile: This is the browser-compatible public API for the config entrypoint */
16
- import { t as defineConfig } from "../define-BdXyLAwb.mjs";
16
+ import { t as defineConfig } from "../define-C-0hOMO3.mjs";
17
17
  export { defineConfig };
@@ -17,12 +17,12 @@
17
17
  * This module exports shared config utilities for the AIO Commerce SDK.
18
18
  * @packageDocumentation
19
19
  */
20
- import { t as defineConfig } from "../define-BdXyLAwb.mjs";
21
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-B3bAEor-.mjs";
22
- import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-DgaLfP36.mjs";
20
+ import { t as defineConfig } from "../define-C-0hOMO3.mjs";
21
+ import { Get } from "type-fest";
22
+ import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-CLDvfJXp.mjs";
23
+ import { A as AdminUiConfig, B as Menu, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as CustomAttributeGridColumns, G as ViewMassAction, H as Notifications, I as GridColumn, J as hasBackendUiV2Components, K as WorkerMassAction, L as GridColumns, M as CreditMemoViewButton, N as CustomAttributeFilter, O as hasExternalEvents, P as CustomAttributeGridColumn, R as InvoiceViewButton, S as ExternalEvent, T as ExternalEventsConfig, U as OrderViewButton, V as NativeUiReplacedPage, W as RmaViewButton, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, q as hasAdminUi, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as MassAction } from "../webhooks-DyMAQMnm.mjs";
23
24
  import "@adobe/aio-commerce-lib-config";
24
25
  import * as v from "valibot";
25
- import { Get } from "type-fest";
26
26
  /**
27
27
  * Check whether a commerce app config path uses a supported TypeScript format.
28
28
  * @param configFilePath The path to the config file.
@@ -75,6 +75,23 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
75
75
  label: string;
76
76
  }[] | undefined;
77
77
  creditMemo?: {
78
+ customAttributeGridColumns?: {
79
+ columns: {
80
+ aclProtected?: boolean | undefined;
81
+ align: "left" | "right" | "center";
82
+ attribute_code: string;
83
+ filter?: {
84
+ type: "boolean";
85
+ } | {
86
+ conditions: ("eq" | "neq" | "contains")[];
87
+ type: "text";
88
+ } | undefined;
89
+ id: string;
90
+ label: string;
91
+ }[];
92
+ description?: string | undefined;
93
+ label?: string | undefined;
94
+ } | undefined;
78
95
  gridColumns?: {
79
96
  columns: {
80
97
  aclProtected?: boolean | undefined;
@@ -103,9 +120,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
103
120
  success?: string | undefined;
104
121
  } | undefined;
105
122
  path: string;
106
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
107
123
  sortOrder?: number | undefined;
108
124
  type: "view";
125
+ allow?: ("autoplay" | "microphone")[] | undefined;
126
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
109
127
  } | {
110
128
  aclProtected?: boolean | undefined;
111
129
  confirm?: {
@@ -141,8 +159,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
141
159
  } | undefined;
142
160
  massActions?: ({
143
161
  path: string;
144
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
145
162
  type: "view";
163
+ allow?: ("autoplay" | "microphone")[] | undefined;
164
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
146
165
  aclProtected?: boolean | undefined;
147
166
  confirm?: {
148
167
  message?: string | undefined;
@@ -206,9 +225,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
206
225
  success?: string | undefined;
207
226
  } | undefined;
208
227
  path: string;
209
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
210
228
  sortOrder?: number | undefined;
211
229
  type: "view";
230
+ allow?: ("autoplay" | "microphone")[] | undefined;
231
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
212
232
  } | {
213
233
  aclProtected?: boolean | undefined;
214
234
  confirm?: {
@@ -236,14 +256,16 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
236
256
  label: string;
237
257
  pageTitle?: string | undefined;
238
258
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
259
+ allow?: ("autoplay" | "microphone")[] | undefined;
239
260
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
240
261
  } | undefined;
241
262
  nativeUi?: {
242
263
  replacedPages: {
243
264
  path: string;
244
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
245
265
  target: "order.create" | "return.create";
246
266
  title: string;
267
+ allow?: ("autoplay" | "microphone")[] | undefined;
268
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
247
269
  }[];
248
270
  } | undefined;
249
271
  newsletter?: {
@@ -275,8 +297,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
275
297
  } | undefined;
276
298
  massActions?: ({
277
299
  path: string;
278
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
279
300
  type: "view";
301
+ allow?: ("autoplay" | "microphone")[] | undefined;
302
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
280
303
  aclProtected?: boolean | undefined;
281
304
  confirm?: {
282
305
  message?: string | undefined;
@@ -325,9 +348,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
325
348
  success?: string | undefined;
326
349
  } | undefined;
327
350
  path: string;
328
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
329
351
  sortOrder?: number | undefined;
330
352
  type: "view";
353
+ allow?: ("autoplay" | "microphone")[] | undefined;
354
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
331
355
  } | {
332
356
  aclProtected?: boolean | undefined;
333
357
  confirm?: {
@@ -363,8 +387,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
363
387
  } | undefined;
364
388
  massActions?: ({
365
389
  path: string;
366
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
367
390
  type: "view";
391
+ allow?: ("autoplay" | "microphone")[] | undefined;
392
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
368
393
  aclProtected?: boolean | undefined;
369
394
  confirm?: {
370
395
  message?: string | undefined;
@@ -416,9 +441,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
416
441
  success?: string | undefined;
417
442
  } | undefined;
418
443
  path: string;
419
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
420
444
  sortOrder?: number | undefined;
421
445
  type: "view";
446
+ allow?: ("autoplay" | "microphone")[] | undefined;
447
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
422
448
  } | {
423
449
  aclProtected?: boolean | undefined;
424
450
  confirm?: {
@@ -467,6 +493,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
467
493
  env?: ("paas" | "saas")[] | undefined;
468
494
  label?: string | undefined;
469
495
  name: string;
496
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
470
497
  } | {
471
498
  default: string[];
472
499
  selectionMode: "multiple";
@@ -479,6 +506,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
479
506
  env?: ("paas" | "saas")[] | undefined;
480
507
  label?: string | undefined;
481
508
  name: string;
509
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
482
510
  } | {
483
511
  default: (resolvedOptions: {
484
512
  label: string;
@@ -497,6 +525,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
497
525
  env?: ("paas" | "saas")[] | undefined;
498
526
  label?: string | undefined;
499
527
  name: string;
528
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
500
529
  } | {
501
530
  default?: ((resolvedOptions: {
502
531
  label: string;
@@ -515,6 +544,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
515
544
  env?: ("paas" | "saas")[] | undefined;
516
545
  label?: string | undefined;
517
546
  name: string;
547
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
518
548
  } | {
519
549
  default: string;
520
550
  type: "text";
@@ -522,6 +552,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
522
552
  env?: ("paas" | "saas")[] | undefined;
523
553
  label?: string | undefined;
524
554
  name: string;
555
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
525
556
  } | {
526
557
  default: "";
527
558
  type: "password";
@@ -529,6 +560,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
529
560
  env?: ("paas" | "saas")[] | undefined;
530
561
  label?: string | undefined;
531
562
  name: string;
563
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
532
564
  } | {
533
565
  default: string;
534
566
  type: "email";
@@ -536,6 +568,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
536
568
  env?: ("paas" | "saas")[] | undefined;
537
569
  label?: string | undefined;
538
570
  name: string;
571
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
539
572
  } | {
540
573
  default: string;
541
574
  type: "url";
@@ -543,6 +576,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
543
576
  env?: ("paas" | "saas")[] | undefined;
544
577
  label?: string | undefined;
545
578
  name: string;
579
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
546
580
  } | {
547
581
  default: string;
548
582
  type: "tel";
@@ -550,6 +584,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
550
584
  env?: ("paas" | "saas")[] | undefined;
551
585
  label?: string | undefined;
552
586
  name: string;
587
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
553
588
  } | {
554
589
  default: boolean;
555
590
  type: "boolean";
@@ -557,6 +592,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
557
592
  env?: ("paas" | "saas")[] | undefined;
558
593
  label?: string | undefined;
559
594
  name: string;
595
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
560
596
  })[];
561
597
  } | undefined;
562
598
  eventing?: {
@@ -637,7 +673,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
637
673
  value: string;
638
674
  }[] | undefined;
639
675
  hook_name: string;
640
- method: "GET" | "POST" | "PUT" | "DELETE";
676
+ method: "POST" | "PUT" | "DELETE" | "GET";
641
677
  priority?: number | undefined;
642
678
  required?: boolean | undefined;
643
679
  rules?: {
@@ -670,7 +706,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
670
706
  value: string;
671
707
  }[] | undefined;
672
708
  hook_name: string;
673
- method: "GET" | "POST" | "PUT" | "DELETE";
709
+ method: "POST" | "PUT" | "DELETE" | "GET";
674
710
  priority?: number | undefined;
675
711
  required?: boolean | undefined;
676
712
  rules?: {
@@ -802,4 +838,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
802
838
  * @param config - The configuration to check.
803
839
  */
804
840
  export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
805
- export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type RmaViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
841
+ export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type CustomAttributeFilter, type CustomAttributeGridColumn, type CustomAttributeGridColumns, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type RmaViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig } from "../index.node-CURztkP5.mjs";
15
+ import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig } from "../index.node-ChWOTWnF.mjs";
16
16
  import { t as defineConfig } from "../define-BTmPnTba.mjs";
17
- import { a as hasCustomInstallationSteps, c as hasEventing, h as hasBackendUiV2Components, i as hasCustomInstallation, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents } from "../webhooks-HBe_DEKA.mjs";
18
- import { a as CommerceAppConfigSchemas, c as hasMetadata, l as hasBusinessConfig, n as validateCommerceAppConfigDomain, o as getConfigDomains, s as hasConfigDomain, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-xS9Dc-4m.mjs";
17
+ import { a as hasCustomInstallationSteps, c as hasEventing, h as hasBackendUiV2Components, i as hasCustomInstallation, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents } from "../webhooks-CyiUfRNG.mjs";
18
+ import { a as CommerceAppConfigSchemas, d as hasBusinessConfigSchema, l as hasMetadata, n as validateCommerceAppConfigDomain, o as getConfigDomains, s as hasConfigDomain, t as validateCommerceAppConfig, u as hasBusinessConfig } from "../validate-DeAMC-HS.mjs";
19
19
 
20
20
  export { CommerceAppConfigSchemas, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, isTypeScriptConfig, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-B3bAEor-.mjs";
15
+ import { n as CommerceAppConfig } from "./app-CLDvfJXp.mjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.
@@ -12,8 +12,8 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as parseOrThrow } from "./utils-G-EDWmew.mjs";
16
15
  import { CommerceEnvSchema } from "@adobe/aio-commerce-lib-core/commerce";
16
+ import { t as parseOrThrow } from "./utils-G-EDWmew.mjs";
17
17
 
18
18
  // source/config/lib/environment.ts
19
19
  /**