@adobe/aio-commerce-lib-app 2.1.0-beta-20260930143021 → 2.1.0-beta-20261028171115

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 (84) hide show
  1. package/CHANGELOG.md +47 -10
  2. package/dist/cjs/actions/app-config/index.cjs +12 -16
  3. package/dist/cjs/actions/app-config/index.d.cts +2 -5
  4. package/dist/cjs/actions/association/index.cjs +7 -10
  5. package/dist/cjs/actions/association/index.d.cts +1 -3
  6. package/dist/cjs/actions/config/index.cjs +8 -11
  7. package/dist/cjs/actions/config/index.d.cts +1 -4
  8. package/dist/cjs/actions/installation/index.cjs +1829 -560
  9. package/dist/cjs/actions/installation/index.d.cts +2 -7
  10. package/dist/cjs/actions/scope-tree/index.cjs +10 -12
  11. package/dist/cjs/actions/scope-tree/index.d.cts +1 -3
  12. package/dist/cjs/{app-f9arYxnr.d.cts → app-Ch19CR6g.d.cts} +0 -150
  13. package/dist/cjs/commands/index.cjs +1389 -279
  14. package/dist/cjs/commands/templates/typescript/webpack-config.cjs +2 -2
  15. package/dist/cjs/config/index.browser.cjs +1 -1
  16. package/dist/cjs/config/index.browser.d.cts +1 -1
  17. package/dist/cjs/config/index.node.cjs +4 -4
  18. package/dist/cjs/config/index.node.d.cts +4 -1502
  19. package/dist/{es/logging-CXesop3u.mjs → cjs/constants-CgeVvu6f.cjs} +7 -20
  20. package/dist/cjs/{define-C-Xq1pCa.cjs → define-BKJjE97w.cjs} +2 -3
  21. package/dist/{es/define-BZxGWbyo.d.mts → cjs/define-C12IwNNN.d.cts} +1 -3
  22. package/dist/cjs/{environment-B6533pAY.cjs → environment-CW6M76gS.cjs} +8 -33
  23. package/dist/cjs/{index-CF8b5k54.d.cts → index-CkejDFwj.d.cts} +268 -141
  24. package/dist/cjs/index.cjs +5 -8
  25. package/dist/cjs/index.d.cts +0 -8
  26. package/dist/cjs/{index.node-Blr0OCOE.cjs → index.node-BVp-SSw8.cjs} +25 -27
  27. package/dist/cjs/{logging-Br3xfBNe.cjs → logging-Emi7P923.cjs} +3 -20
  28. package/dist/cjs/management/index.cjs +1 -1
  29. package/dist/cjs/management/index.d.cts +1 -1
  30. package/dist/cjs/{management-CH-HSD9M.cjs → management-Cwm3C9g0.cjs} +2759 -1615
  31. package/dist/cjs/{openapi-XAcseaU9.cjs → openapi-XsGx1PMf.cjs} +574 -428
  32. package/dist/cjs/{repository-CbceYZqc.cjs → repository-C3nn0Mon.cjs} +4 -5
  33. package/dist/cjs/{rolldown-runtime-CDQd2xEI.cjs → rolldown-runtime-CoOt0iuZ.cjs} +2 -3
  34. package/dist/cjs/{router-CxDTb6r1.cjs → router-DpB8wpR2.cjs} +15 -19
  35. package/dist/cjs/{schemas-3e49M8zz.cjs → schemas-B6ITl1bG.cjs} +10 -11
  36. package/dist/cjs/{utils-BKImeScX.cjs → utils-B_Ypb2xF.cjs} +130 -153
  37. package/dist/cjs/utils-DSS0XlXq.cjs +38 -0
  38. package/dist/cjs/{validate-DvewC1jV.cjs → validate-ChXLh7rw.cjs} +18 -44
  39. package/dist/cjs/webhooks-Buu1d7AB.d.cts +1443 -0
  40. package/dist/cjs/{webhooks-zgRbVnDA.cjs → webhooks-TvDm57xt.cjs} +33 -38
  41. package/dist/es/actions/app-config/index.d.mts +2 -5
  42. package/dist/es/actions/app-config/index.mjs +11 -15
  43. package/dist/es/actions/association/index.d.mts +1 -3
  44. package/dist/es/actions/association/index.mjs +6 -9
  45. package/dist/es/actions/config/index.d.mts +1 -4
  46. package/dist/es/actions/config/index.mjs +7 -10
  47. package/dist/es/actions/installation/index.d.mts +2 -7
  48. package/dist/es/actions/installation/index.mjs +1806 -538
  49. package/dist/es/actions/scope-tree/index.d.mts +1 -3
  50. package/dist/es/actions/scope-tree/index.mjs +8 -10
  51. package/dist/es/{app-f9arYxnr.d.mts → app-Ch19CR6g.d.mts} +0 -150
  52. package/dist/es/commands/index.mjs +1367 -257
  53. package/dist/es/commands/templates/typescript/webpack-config.cjs +2 -2
  54. package/dist/es/config/index.browser.d.mts +1 -1
  55. package/dist/es/config/index.browser.mjs +1 -1
  56. package/dist/es/config/index.node.d.mts +4 -1502
  57. package/dist/es/config/index.node.mjs +4 -4
  58. package/dist/es/constants-C-4fesPr.mjs +24 -0
  59. package/dist/es/{define-Z_Glf1-_.mjs → define-BTmPnTba.mjs} +1 -2
  60. package/dist/{cjs/define-DdDM1eYK.d.cts → es/define-C95h_wa0.d.mts} +1 -3
  61. package/dist/es/{environment-C84BPRJZ.mjs → environment-DUhU0_9z.mjs} +4 -21
  62. package/dist/es/{index-FwlXfpWU.d.mts → index-DgbSfJG7.d.mts} +268 -141
  63. package/dist/es/index.d.mts +0 -8
  64. package/dist/es/index.mjs +5 -8
  65. package/dist/es/{index.node-Ba-Fbybm.mjs → index.node-ptUgKLMP.mjs} +4 -6
  66. package/dist/es/{error-_RMwtrUA.mjs → logging-B1xb568A.mjs} +12 -13
  67. package/dist/es/management/index.d.mts +1 -1
  68. package/dist/es/management/index.mjs +1 -1
  69. package/dist/es/{management-CNf5hM8-.mjs → management-DEpo0JN4.mjs} +2670 -1532
  70. package/dist/es/{openapi-C17VT-0m.mjs → openapi-DG5-kOUx.mjs} +566 -420
  71. package/dist/es/{repository-BGmy0YeZ.mjs → repository-BVBp61y9.mjs} +1 -2
  72. package/dist/es/{router-BshIPAR1.mjs → router-C23GIyGQ.mjs} +12 -16
  73. package/dist/es/{schemas-hRovglBF.mjs → schemas-DYMNbFdX.mjs} +4 -5
  74. package/dist/es/utils-G-EDWmew.mjs +31 -0
  75. package/dist/es/{utils-qepS8Mre.mjs → utils-SOtVo2VW.mjs} +89 -98
  76. package/dist/es/{validate-Dtz14mqi.mjs → validate-Dk9U67PF.mjs} +9 -29
  77. package/dist/es/webhooks-C9vMZZDZ.d.mts +1443 -0
  78. package/dist/es/{webhooks-24rGz8lk.mjs → webhooks-CfrYeMy_.mjs} +18 -23
  79. package/package.json +13 -13
  80. package/dist/cjs/common-BnycrLCr.cjs +0 -623
  81. package/dist/cjs/error-D-N0PKSl.cjs +0 -37
  82. package/dist/cjs/installation-D4pP7O8h.d.cts +0 -39
  83. package/dist/es/common-BxivnrmA.mjs +0 -498
  84. package/dist/es/installation-Cl84Rkst.d.mts +0 -39
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @adobe/aio-commerce-lib-app
2
2
 
3
- ## 2.1.0-beta-20260930143021
3
+ ## 2.1.0-beta-20261028171115
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -8,26 +8,63 @@
8
8
 
9
9
  - [#702](https://github.com/adobe/aio-commerce-sdk/pull/702) [`e6604ab`](https://github.com/adobe/aio-commerce-sdk/commit/e6604ab023e5f929e6e0279a36e06ec4c17f0906) Thanks [@oshmyheliuk](https://github.com/oshmyheliuk)! - The association action now returns the app's IMS client ID in its response.
10
10
 
11
- - [#699](https://github.com/adobe/aio-commerce-sdk/pull/699) [`53f1f8b`](https://github.com/adobe/aio-commerce-sdk/commit/53f1f8be4428862015294f1edc2816972e501a9e) Thanks [@mariam21arauj](https://github.com/mariam21arauj)! - Add a `newsletter` entity to the v2 `adminUi` config so apps can declare Newsletter Subscriber grid columns and mass actions on `commerce/backend-ui/2`.
11
+ - [#712](https://github.com/adobe/aio-commerce-sdk/pull/712) [`d78221e`](https://github.com/adobe/aio-commerce-sdk/commit/d78221e01894d2209b7864aca6a5fbfab93c7192) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Generated `association` and `installation` actions now receive OAuth Server-to-Server credentials through the `include-ims-credentials` annotation instead of `AIO_COMMERCE_AUTH_IMS_*` inputs. Re-run `generate actions` to add the annotation and drop the legacy inputs from existing projects. The `AIO_COMMERCE_AUTH_IMS_*` fields of `LifecycleContext["params"]` are deprecated; custom installation scripts should use `resolveImsAuthParams(context.params)` from `@adobe/aio-commerce-lib-auth` instead.
12
+
13
+ - [#699](https://github.com/adobe/aio-commerce-sdk/pull/699) [`53f1f8b`](https://github.com/adobe/aio-commerce-sdk/commit/53f1f8be4428862015294f1edc2816972e501a9e) Thanks [@mariam21arauj](https://github.com/mariam21arauj)! - Add a `newsletter` entity to the v2 `adminUi` config so apps can declare Newsletter Subscriber grid columns on `commerce/backend-ui/2`.
14
+
15
+ - [#744](https://github.com/adobe/aio-commerce-sdk/pull/744) [`8f28544`](https://github.com/adobe/aio-commerce-sdk/commit/8f2854444cba44b3a41e6572b2f388487f2872c5) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Trace failed lifecycle operations. `GET /installation?history=true` returns every earlier attempt and the plans each one ran or replaced, with an optional `limit`. `attemptId` reads one attempt, and `operation` (`install`, `upgrade` or `uninstall`) reads only the attempts of that operation, with `204` when none ran it. Attempt statuses now include the OpenWhisk activations that started and executed them and, once an attempt succeeds, the snapshot and app version it left installed. Steps record when they started and completed, the default logs show each lifecycle transition with its ids, and the `post-app-deploy` hook prints the run id and the execution activation id when an automatic upgrade fails.
16
+
17
+ - [#777](https://github.com/adobe/aio-commerce-sdk/pull/777) [`130e26b`](https://github.com/adobe/aio-commerce-sdk/commit/130e26b521b32a168a5a73ac8390cafb8d39d36a) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Plans and attempt statuses now list the configuration changes of each domain in a `changes` array, which is empty when there are none. It names the items the new configuration adds, updates or removes compared with the installed one. It does not depend on the live state, so an item that is already live still appears. The step of an attempt now shows a domain whose items are already in place as succeeded.
18
+
19
+ - [#716](https://github.com/adobe/aio-commerce-sdk/pull/716) [`a643c80`](https://github.com/adobe/aio-commerce-sdk/commit/a643c80fc480483918dc17d4b718225ffbdae24b) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Start a reviewed upgrade plan by sending its `planId` to the installation endpoint. The upgrade runs a fresh plan and reports how it differs from the reviewed one in `review`.
20
+
21
+ - [#744](https://github.com/adobe/aio-commerce-sdk/pull/744) [`8f28544`](https://github.com/adobe/aio-commerce-sdk/commit/8f2854444cba44b3a41e6572b2f388487f2872c5) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - The `post-app-deploy` hook now plans and starts the upgrade through the Commerce App Management Service, and keeps following it in the background if you interrupt the hook. The new `upgrade status [run-id]` command checks an upgrade run later.
12
22
 
13
23
  ### Patch Changes
14
24
 
15
- - [#705](https://github.com/adobe/aio-commerce-sdk/pull/705) [`3c46f97`](https://github.com/adobe/aio-commerce-sdk/commit/3c46f971abda249c560bf148360abbdae49f74e1) Thanks [@jcuerdo](https://github.com/jcuerdo)! - Fix auto-upgrade leaving event subscriptions orphaned when a prior upgrade attempt fails partway through. A failed upgrade's baseline now reflects what it actually created, so the next upgrade correctly removes anything no longer in the config.
25
+ - [#725](https://github.com/adobe/aio-commerce-sdk/pull/725) [`897e45b`](https://github.com/adobe/aio-commerce-sdk/commit/897e45b86a69422e9cb814f6e732e53be9f582da) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Upgrades now fix event providers, event metadata, registrations and Commerce subscriptions that a failed upgrade or a manual edit left missing, different or no longer declared. Provider and event label or description changes are now applied too. Commerce events keep their configured label and description in Adobe I/O Events after they are subscribed. An upgrade now stops with an issue instead of taking over a Commerce subscription that belongs to another provider.
26
+
27
+ - [#716](https://github.com/adobe/aio-commerce-sdk/pull/716) [`a643c80`](https://github.com/adobe/aio-commerce-sdk/commit/a643c80fc480483918dc17d4b718225ffbdae24b) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Retrying a failed upgrade now plans again from the current state instead of resuming from where the failed attempt stopped. Each planned operation now has a `reason`: `change` when the new configuration causes it, `drift` when only the deployed state differs from the configuration.
28
+
29
+ - [#763](https://github.com/adobe/aio-commerce-sdk/pull/763) [`b5bb479`](https://github.com/adobe/aio-commerce-sdk/commit/b5bb4797d7361e1e64b1c5daf1c674b076f3b22c) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Keep the extension points in `app.config.yaml` in a fixed order (backend UI, configuration, then extensibility) so an upgrade works reliably. `init` and the `postinstall` hook write and reorder the file. If it is still out of order, the `pre-app-build` hook reorders it and logs a one-off warning. Also stop `init` from adding a blank line before the `extensions` key in `app.config.yaml` and `install.yaml`.
30
+
31
+ - [#716](https://github.com/adobe/aio-commerce-sdk/pull/716) [`a643c80`](https://github.com/adobe/aio-commerce-sdk/commit/a643c80fc480483918dc17d4b718225ffbdae24b) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Upgrades now use the Adobe I/O Events URL and IMS environment from the request, like installs and uninstalls do.
32
+
33
+ - [#744](https://github.com/adobe/aio-commerce-sdk/pull/744) [`8f28544`](https://github.com/adobe/aio-commerce-sdk/commit/8f2854444cba44b3a41e6572b2f388487f2872c5) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Each custom installation step now runs as its own step, with its own progress during installs, upgrades and uninstalls. Retrying a failed operation no longer runs again the custom installation steps that already succeeded. An upgrade that removes a custom installation step now warns that its uninstall can't run, since its script is no longer deployed.
34
+
35
+ - [#717](https://github.com/adobe/aio-commerce-sdk/pull/717) [`fe9135b`](https://github.com/adobe/aio-commerce-sdk/commit/fe9135b4d1a88f65cee94fe03f8bbe167bb0e1bc) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Upgrades now fix webhooks that a failed upgrade or a manual edit left missing, different or no longer declared.
36
+
37
+ - [#724](https://github.com/adobe/aio-commerce-sdk/pull/724) [`36cd90a`](https://github.com/adobe/aio-commerce-sdk/commit/36cd90acde5e8713a289ad2d9470525a708cdb8d) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Several issues fixed:
38
+
39
+ - An upgrade request that runs into another one in progress, or whose plan another request replaced, now gets a `409` with code `in-progress` or `stale-plan` instead of a `500`.
40
+
41
+ - An upgrade that cannot start, for example because the app was deployed again after planning, is recorded as failed right away instead of blocking new upgrades until its deadline.
42
+
43
+ - A request whose stored upgrade state cannot be read now gets a `409` with code `unreadable-state` instead of installing the app again.
44
+
45
+ - When saving installation or upgrade state fails, the cached copy no longer keeps the unsaved value.
46
+
47
+ - [#744](https://github.com/adobe/aio-commerce-sdk/pull/744) [`8f28544`](https://github.com/adobe/aio-commerce-sdk/commit/8f2854444cba44b3a41e6572b2f388487f2872c5) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Install, upgrade and uninstall now plan the operation and validate the plan before anything changes. Uninstalling removes what the app installed and what it can prove it owns, even without an installation record, and runs the uninstall of every custom installation step that ran and is still configured. Every lifecycle operation uses the Commerce instance stored at association.
16
48
 
17
49
  - [#700](https://github.com/adobe/aio-commerce-sdk/pull/700) [`6d23ffe`](https://github.com/adobe/aio-commerce-sdk/commit/6d23ffeef28b41d4c62801af5618a165a9349359) Thanks [@asalloum5](https://github.com/asalloum5)! - Fix the generated `association` and `installation` runtime actions declaring `LOG_LEVEL` twice, once at the package level and once at the action level.
18
50
 
19
51
  - [#700](https://github.com/adobe/aio-commerce-sdk/pull/700) [`6d23ffe`](https://github.com/adobe/aio-commerce-sdk/commit/6d23ffeef28b41d4c62801af5618a165a9349359) Thanks [@asalloum5](https://github.com/asalloum5)! - Declare `LOG_LEVEL` once at the app-management and commerce-configuration runtime package levels instead of repeating it on generated actions.
20
52
 
53
+ - [#706](https://github.com/adobe/aio-commerce-sdk/pull/706) [`89cf9ab`](https://github.com/adobe/aio-commerce-sdk/commit/89cf9ab935e8715a48397e5b81484d6e9041bb71) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Deprecates the pre-lifecycle installation engine (`runInstallation`, `runUninstallation`, `runValidation` and their helpers) ahead of its removal in the next major. Drive installs and uninstalls through the installation runtime action instead. An installed app's lifecycle baseline is now migrated once from the legacy installation record rather than re-read on every request, so a lifecycle snapshot keeps resolving after that record is gone.
54
+
55
+ - [#744](https://github.com/adobe/aio-commerce-sdk/pull/744) [`8f28544`](https://github.com/adobe/aio-commerce-sdk/commit/8f2854444cba44b3a41e6572b2f388487f2872c5) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Upgrades now create each missing event provider, event metadata, registration and Commerce subscription on its own, and stop at the first one that fails instead of reusing whatever already exists.
56
+
21
57
  - [#688](https://github.com/adobe/aio-commerce-sdk/pull/688) [`b27c143`](https://github.com/adobe/aio-commerce-sdk/commit/b27c143b3d4c62de5a43a7184c55942b50e34618) Thanks [@gpl-php](https://github.com/gpl-php)! - Create Commerce event subscriptions sequentially to prevent concurrent configuration writes from dropping events during App Management installation.
22
58
 
23
59
  - [#689](https://github.com/adobe/aio-commerce-sdk/pull/689) [`194db8d`](https://github.com/adobe/aio-commerce-sdk/commit/194db8d382edf49f7976ea9aeffad54acb8e3da1) Thanks [@obarcelonap](https://github.com/obarcelonap)! - Commerce Eventing setup now provides a default technical account when your app authenticates with OAuth Server-to-Server credentials that don't have one, such as those provided via the `include-ims-credentials` annotation, so Commerce can still consume the workspace configuration. The pre-build hook also warns that manually wired `AIO_COMMERCE_AUTH_IMS_*` credentials are deprecated.
24
- - Updated dependencies [[`264539a`](https://github.com/adobe/aio-commerce-sdk/commit/264539a13371b11b637eb01fd1c0aa185f4349cc), [`cda4f20`](https://github.com/adobe/aio-commerce-sdk/commit/cda4f206c9cd1877046f5a2196fa60478d35dfb9), [`194db8d`](https://github.com/adobe/aio-commerce-sdk/commit/194db8d382edf49f7976ea9aeffad54acb8e3da1), [`53f1f8b`](https://github.com/adobe/aio-commerce-sdk/commit/53f1f8be4428862015294f1edc2816972e501a9e)]:
25
- - @adobe/aio-commerce-lib-admin-ui@1.2.0-beta-20260930143021
26
- - @adobe/aio-commerce-lib-config@1.8.1-beta-20260930143021
27
- - @adobe/aio-commerce-lib-auth@1.2.0-beta-20260930143021
28
- - @adobe/aio-commerce-lib-api@1.4.1-beta-20260930143021
29
- - @adobe/aio-commerce-lib-events@1.4.1-beta-20260930143021
30
- - @adobe/aio-commerce-lib-webhooks@1.2.3-beta-20260930143021
60
+ - Updated dependencies [[`264539a`](https://github.com/adobe/aio-commerce-sdk/commit/264539a13371b11b637eb01fd1c0aa185f4349cc), [`cda4f20`](https://github.com/adobe/aio-commerce-sdk/commit/cda4f206c9cd1877046f5a2196fa60478d35dfb9), [`d78221e`](https://github.com/adobe/aio-commerce-sdk/commit/d78221e01894d2209b7864aca6a5fbfab93c7192), [`f513024`](https://github.com/adobe/aio-commerce-sdk/commit/f5130248fb5033cb019ad561358a9d436be7c0f7), [`194db8d`](https://github.com/adobe/aio-commerce-sdk/commit/194db8d382edf49f7976ea9aeffad54acb8e3da1), [`53f1f8b`](https://github.com/adobe/aio-commerce-sdk/commit/53f1f8be4428862015294f1edc2816972e501a9e), [`395eb22`](https://github.com/adobe/aio-commerce-sdk/commit/395eb22da7646944d5e5f02e1517dc23cc3ebfe6), [`9145e82`](https://github.com/adobe/aio-commerce-sdk/commit/9145e822b17b99465bfee649fae69d61c11bc0ab)]:
61
+ - @adobe/aio-commerce-lib-admin-ui@1.2.0-beta-20261028171115
62
+ - @adobe/aio-commerce-lib-config@1.8.1-beta-20261028171115
63
+ - @adobe/aio-commerce-lib-api@1.4.1-beta-20261028171115
64
+ - @adobe/aio-commerce-lib-events@1.5.0-beta-20261028171115
65
+ - @adobe/aio-commerce-lib-auth@1.2.0-beta-20261028171115
66
+ - @adobe/aio-commerce-lib-core@1.3.0-beta-20261028171115
67
+ - @adobe/aio-commerce-lib-webhooks@1.2.3-beta-20261028171115
31
68
 
32
69
  ## 2.0.0
33
70
 
@@ -13,25 +13,25 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_rolldown_runtime = require('../../rolldown-runtime-CDQd2xEI.cjs');
17
- const require_environment = require('../../environment-B6533pAY.cjs');
18
- const require_validate = require('../../validate-DvewC1jV.cjs');
19
- const require_router = require('../../router-CxDTb6r1.cjs');
16
+ const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
17
+ const require_environment = require("../../environment-CW6M76gS.cjs");
18
+ const require_validate = require("../../validate-ChXLh7rw.cjs");
19
+ const require_router = require("../../router-DpB8wpR2.cjs");
20
20
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
21
+ let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
21
22
  let valibot = require("valibot");
22
23
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
23
- let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
24
24
  let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
25
25
  let crypto = require("crypto");
26
26
 
27
- //#region source/actions/app-config/openapi.ts
27
+ // source/actions/app-config/openapi.ts
28
28
  /**
29
29
  * Loads the committed OpenAPI spec via dynamic import so it
30
30
  * lands in its own chunk and is not parsed on every cold start.
31
31
  */
32
- const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-XAcseaU9.cjs"));
32
+ const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-XsGx1PMf.cjs"));
33
33
  /** Matches component schema `$ref` strings, capturing the schema name. */
34
- const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(\w+)"/g;
34
+ const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(?<schema>\w+)"/gu;
35
35
  /**
36
36
  * Collects the names of every component schema referenced via `$ref` in a value
37
37
  * Scans the serialized JSON, so it catches refs at any depth.
@@ -80,7 +80,7 @@ function pruneUnusedTags(spec) {
80
80
  * @param domains - The active config domains.
81
81
  */
82
82
  function getOpenApiCacheKey(domains) {
83
- const input = `2.1.0-beta-20260930143021:${[...domains].sort().join(",")}:3.1.0`;
83
+ const input = `2.1.0-beta-20261028171115:${[...domains].sort().join(",")}:4.0.0`;
84
84
  return (0, crypto.createHash)("sha256").update(input).digest("hex").slice(0, 8);
85
85
  }
86
86
  /** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
@@ -116,8 +116,7 @@ async function buildOpenApiSpec(domains, logger) {
116
116
  if (!require_validate.requiresInstallationFromDomains(domains)) {
117
117
  logger.debug("Application doesn't require installation, stripping references...");
118
118
  stripPath("/installation");
119
- stripPath("/installation/validation");
120
- stripPath("/installation/uninstallation");
119
+ stripPath("/installation/plan");
121
120
  }
122
121
  pruneUnusedSchemas(spec);
123
122
  pruneUnusedTags(spec);
@@ -125,8 +124,7 @@ async function buildOpenApiSpec(domains, logger) {
125
124
  return spec;
126
125
  }
127
126
 
128
- //#endregion
129
- //#region source/actions/app-config/router.ts
127
+ // source/actions/app-config/router.ts
130
128
  /**
131
129
  * App Config action router.
132
130
  *
@@ -186,8 +184,7 @@ router.get("/openapi.json", {
186
184
  query: valibot.object({ ck: valibot.optional(valibot.string()) })
187
185
  });
188
186
 
189
- //#endregion
190
- //#region source/actions/app-config/index.ts
187
+ // source/actions/app-config/index.ts
191
188
  /**
192
189
  * Factory to create the route handler for the `app-config` action.
193
190
  * @param args - The arguments required to create the runtime action.
@@ -201,5 +198,4 @@ const appConfigRuntimeAction = (args) => async (params) => {
201
198
  });
202
199
  };
203
200
 
204
- //#endregion
205
201
  exports.appConfigRuntimeAction = appConfigRuntimeAction;
@@ -13,18 +13,15 @@
13
13
  */
14
14
 
15
15
  import "../../index-DWEigxhy.cjs";
16
- import { n as CommerceAppConfig } from "../../app-f9arYxnr.cjs";
16
+ import { n as CommerceAppConfig } from "../../app-Ch19CR6g.cjs";
17
17
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
18
- //#region source/actions/app-config/router.d.ts
19
18
  /** The arguments required to create the runtime action for the app-config action. */
20
19
  type RuntimeActionFactoryArgs = {
21
20
  appConfig: CommerceAppConfig;
22
21
  };
23
- //#endregion
24
- //#region source/actions/app-config/index.d.ts
25
22
  /**
26
23
  * Factory to create the route handler for the `app-config` action.
27
24
  * @param args - The arguments required to create the runtime action.
28
25
  */
29
26
  export declare const appConfigRuntimeAction: (args: RuntimeActionFactoryArgs) => (params: RuntimeActionParams) => Promise<import("@adobe/aio-commerce-lib-core/responses").ActionResponse>;
30
- //#endregion
27
+ export {};
@@ -13,24 +13,23 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_rolldown_runtime = require('../../rolldown-runtime-CDQd2xEI.cjs');
17
- const require_repository = require('../../repository-CbceYZqc.cjs');
18
- const require_router = require('../../router-CxDTb6r1.cjs');
16
+ const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
17
+ const require_repository = require("../../repository-C3nn0Mon.cjs");
18
+ const require_router = require("../../router-DpB8wpR2.cjs");
19
19
  let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
20
+ let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
20
21
  let valibot = require("valibot");
21
22
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
22
- let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
23
23
  let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
24
24
 
25
- //#region source/actions/association/schema.ts
25
+ // source/actions/association/schema.ts
26
26
  /** Request body for POST / — store association data. */
27
27
  const AssociationRequestBodySchema = valibot.object({
28
28
  commerceBaseUrl: valibot.pipe(valibot.string(), valibot.url("The 'commerceBaseUrl' field must be a valid absolute URL (e.g., 'https://my-store.example.com')")),
29
29
  commerceEnv: _adobe_aio_commerce_lib_core_commerce.CommerceEnvSchema
30
30
  });
31
31
 
32
- //#endregion
33
- //#region source/actions/association/router.ts
32
+ // source/actions/association/router.ts
34
33
  /**
35
34
  * Association action router.
36
35
  *
@@ -64,8 +63,7 @@ router.delete("/", { handler: async (_req, { logger }) => {
64
63
  return (0, _adobe_aio_commerce_lib_core_responses.noContent)();
65
64
  } });
66
65
 
67
- //#endregion
68
- //#region source/actions/association/index.ts
66
+ // source/actions/association/index.ts
69
67
  /**
70
68
  * Factory to create the route handler for the `association` action.
71
69
  *
@@ -78,5 +76,4 @@ const associationRuntimeAction = () => async (params) => {
78
76
  return await router.handler()({ ...params });
79
77
  };
80
78
 
81
- //#endregion
82
79
  exports.associationRuntimeAction = associationRuntimeAction;
@@ -13,7 +13,6 @@
13
13
  */
14
14
 
15
15
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
16
- //#region source/actions/association/index.d.ts
17
16
  /**
18
17
  * Factory to create the route handler for the `association` action.
19
18
  *
@@ -22,5 +21,4 @@ import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
22
21
  * and `DELETE /` clears it on unassociation. Runtime actions consume the data
23
22
  * via `getCommerceInstance` / `getCommerceClient` from the root entrypoint.
24
23
  */
25
- export declare const associationRuntimeAction: () => (params: RuntimeActionParams) => Promise<import("@adobe/aio-commerce-lib-core/responses").ActionResponse>;
26
- //#endregion
24
+ export declare const associationRuntimeAction: () => (params: RuntimeActionParams) => Promise<import("@adobe/aio-commerce-lib-core/responses").ActionResponse>;
@@ -13,17 +13,17 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_rolldown_runtime = require('../../rolldown-runtime-CDQd2xEI.cjs');
17
- const require_schemas = require('../../schemas-3e49M8zz.cjs');
18
- const require_environment = require('../../environment-B6533pAY.cjs');
19
- const require_router = require('../../router-CxDTb6r1.cjs');
16
+ const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
17
+ const require_schemas = require("../../schemas-B6ITl1bG.cjs");
18
+ const require_environment = require("../../environment-CW6M76gS.cjs");
19
+ const require_router = require("../../router-DpB8wpR2.cjs");
20
20
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
21
+ let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
21
22
  let valibot = require("valibot");
22
23
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
23
- let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
24
24
  let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
25
25
 
26
- //#region source/actions/config/schema.ts
26
+ // source/actions/config/schema.ts
27
27
  const AcceptedConfigurationValuesSchema = valibot.union([
28
28
  valibot.boolean(),
29
29
  valibot.string(),
@@ -43,8 +43,7 @@ const PatchConfigBodySchema = valibot.object({
43
43
  scopeId: require_schemas.nonEmptyStringValueSchema("scopeId")
44
44
  });
45
45
 
46
- //#endregion
47
- //#region source/actions/config/router.ts
46
+ // source/actions/config/router.ts
48
47
  const MASKED_PASSWORD_VALUE = "*****";
49
48
  /**
50
49
  * Filters password fields from the configuration values.
@@ -113,8 +112,7 @@ router.patch("/", {
113
112
  }
114
113
  });
115
114
 
116
- //#endregion
117
- //#region source/actions/config/index.ts
115
+ // source/actions/config/index.ts
118
116
  /**
119
117
  * Factory to create the route handler for the `config` action.
120
118
  * @param args - The arguments required to create the runtime action.
@@ -128,5 +126,4 @@ const configRuntimeAction = (args) => async (params) => {
128
126
  });
129
127
  };
130
128
 
131
- //#endregion
132
129
  exports.configRuntimeAction = configRuntimeAction;
@@ -15,16 +15,13 @@
15
15
  import "../../index-DWEigxhy.cjs";
16
16
  import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
17
17
  import { BusinessConfigSchema } from "@adobe/aio-commerce-lib-config";
18
- //#region source/actions/config/router.d.ts
19
18
  /** The arguments required to create the runtime action for the config action. */
20
19
  type ConfigActionFactoryArgs = {
21
20
  configSchema: BusinessConfigSchema;
22
21
  };
23
- //#endregion
24
- //#region source/actions/config/index.d.ts
25
22
  /**
26
23
  * Factory to create the route handler for the `config` action.
27
24
  * @param args - The arguments required to create the runtime action.
28
25
  */
29
26
  export declare const configRuntimeAction: (args: ConfigActionFactoryArgs) => (params: RuntimeActionParams) => Promise<import("@adobe/aio-commerce-lib-core/responses").ActionResponse>;
30
- //#endregion
27
+ export {};