@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
@@ -17,7 +17,7 @@ var openapi = "3.1.0";
17
17
  var info = {
18
18
  "title": "App Management API",
19
19
  "description": "REST API for managing Adobe Commerce App Builder apps: resolving app configuration, managing configuration values, running the installation, upgrade, and uninstallation lifecycle, and managing the scope tree.",
20
- "version": "4.2.0",
20
+ "version": "4.3.0",
21
21
  "contact": {},
22
22
  "license": {
23
23
  "identifier": "Apache-2.0",
@@ -130,7 +130,8 @@ var paths = {
130
130
  "default": {
131
131
  "type": "string",
132
132
  "minLength": 1
133
- }
133
+ },
134
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
134
135
  },
135
136
  "required": [
136
137
  "name",
@@ -175,7 +176,8 @@ var paths = {
175
176
  "type": "string",
176
177
  "minLength": 1
177
178
  }
178
- }
179
+ },
180
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
179
181
  },
180
182
  "required": [
181
183
  "name",
@@ -203,7 +205,8 @@ var paths = {
203
205
  "minItems": 1
204
206
  },
205
207
  "type": { "const": "text" },
206
- "default": { "type": "string" }
208
+ "default": { "type": "string" },
209
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
207
210
  },
208
211
  "required": [
209
212
  "name",
@@ -229,7 +232,8 @@ var paths = {
229
232
  "minItems": 1
230
233
  },
231
234
  "type": { "const": "password" },
232
- "default": { "const": "" }
235
+ "default": { "const": "" },
236
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
233
237
  },
234
238
  "required": [
235
239
  "name",
@@ -258,7 +262,8 @@ var paths = {
258
262
  "default": { "anyOf": [{ "const": "" }, {
259
263
  "type": "string",
260
264
  "format": "email"
261
- }] }
265
+ }] },
266
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
262
267
  },
263
268
  "required": [
264
269
  "name",
@@ -287,7 +292,8 @@ var paths = {
287
292
  "default": { "anyOf": [{ "const": "" }, {
288
293
  "type": "string",
289
294
  "format": "uri"
290
- }] }
295
+ }] },
296
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
291
297
  },
292
298
  "required": [
293
299
  "name",
@@ -316,7 +322,8 @@ var paths = {
316
322
  "default": { "anyOf": [{ "const": "" }, {
317
323
  "type": "string",
318
324
  "pattern": "^\\+?[0-9\\s\\-()]+$"
319
- }] }
325
+ }] },
326
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
320
327
  },
321
328
  "required": [
322
329
  "name",
@@ -342,7 +349,8 @@ var paths = {
342
349
  "minItems": 1
343
350
  },
344
351
  "type": { "const": "boolean" },
345
- "default": { "type": "boolean" }
352
+ "default": { "type": "boolean" },
353
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
346
354
  },
347
355
  "required": [
348
356
  "name",
@@ -386,7 +394,7 @@ var paths = {
386
394
  "items": {
387
395
  "type": "string",
388
396
  "minLength": 1,
389
- "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9-]+$"
397
+ "pattern": "^\\w(?:[\\w@ .-]*[\\w@.-])?\\/\\w(?:[\\w@ .-]*[\\w@.-])?$"
390
398
  }
391
399
  },
392
400
  "name": {
@@ -453,7 +461,7 @@ var paths = {
453
461
  "items": {
454
462
  "type": "string",
455
463
  "minLength": 1,
456
- "pattern": "^[a-zA-Z0-9-]+\\/[a-zA-Z0-9-]+$"
464
+ "pattern": "^\\w(?:[\\w@ .-]*[\\w@.-])?\\/\\w(?:[\\w@ .-]*[\\w@.-])?$"
457
465
  }
458
466
  },
459
467
  "name": {
@@ -598,7 +606,7 @@ var paths = {
598
606
  ],
599
607
  "responses": {
600
608
  "200": {
601
- "description": "The configuration schema and the stored configuration values for the requested scope. Password fields are masked in the response.",
609
+ "description": "The configuration schema and the stored configuration values for the requested scope. Non-empty password values are masked in the response; empty password values are returned as empty strings.",
602
610
  "headers": { "x-ac-sdk-lib-versions": { "$ref": "#/components/headers/SdkLibVersions" } },
603
611
  "content": { "application/json": { "schema": {
604
612
  "description": "Current configuration values for the given scope",
@@ -640,7 +648,8 @@ var paths = {
640
648
  "default": {
641
649
  "type": "string",
642
650
  "minLength": 1
643
- }
651
+ },
652
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
644
653
  },
645
654
  "required": [
646
655
  "name",
@@ -685,7 +694,8 @@ var paths = {
685
694
  "type": "string",
686
695
  "minLength": 1
687
696
  }
688
- }
697
+ },
698
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
689
699
  },
690
700
  "required": [
691
701
  "name",
@@ -713,7 +723,8 @@ var paths = {
713
723
  "minItems": 1
714
724
  },
715
725
  "type": { "const": "text" },
716
- "default": { "type": "string" }
726
+ "default": { "type": "string" },
727
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
717
728
  },
718
729
  "required": [
719
730
  "name",
@@ -739,7 +750,8 @@ var paths = {
739
750
  "minItems": 1
740
751
  },
741
752
  "type": { "const": "password" },
742
- "default": { "const": "" }
753
+ "default": { "const": "" },
754
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
743
755
  },
744
756
  "required": [
745
757
  "name",
@@ -768,7 +780,8 @@ var paths = {
768
780
  "default": { "anyOf": [{ "const": "" }, {
769
781
  "type": "string",
770
782
  "format": "email"
771
- }] }
783
+ }] },
784
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
772
785
  },
773
786
  "required": [
774
787
  "name",
@@ -797,7 +810,8 @@ var paths = {
797
810
  "default": { "anyOf": [{ "const": "" }, {
798
811
  "type": "string",
799
812
  "format": "uri"
800
- }] }
813
+ }] },
814
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
801
815
  },
802
816
  "required": [
803
817
  "name",
@@ -826,7 +840,8 @@ var paths = {
826
840
  "default": { "anyOf": [{ "const": "" }, {
827
841
  "type": "string",
828
842
  "pattern": "^\\+?[0-9\\s\\-()]+$"
829
- }] }
843
+ }] },
844
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
830
845
  },
831
846
  "required": [
832
847
  "name",
@@ -852,7 +867,8 @@ var paths = {
852
867
  "minItems": 1
853
868
  },
854
869
  "type": { "const": "boolean" },
855
- "default": { "type": "boolean" }
870
+ "default": { "type": "boolean" },
871
+ "requiredFor": { "$ref": "#/components/schemas/RequiredFor" }
856
872
  },
857
873
  "required": [
858
874
  "name",
@@ -901,7 +917,7 @@ var paths = {
901
917
  "patch": {
902
918
  "operationId": "patchConfiguration",
903
919
  "summary": "Patch Configuration Values",
904
- "description": "Partially updates configuration values for a scope. Unsets those values that are sent with a null value.",
920
+ "description": "Partially updates configuration values for a scope. A null value unsets the scope override and restores inheritance. Updated fields marked with requiredFor: [save] must have a non-empty effective value after the update.",
905
921
  "parameters": [{
906
922
  "name": "x-gw-ims-org-id",
907
923
  "in": "header",
@@ -945,7 +961,7 @@ var paths = {
945
961
  },
946
962
  "responses": {
947
963
  "200": {
948
- "description": "The configuration values were successfully updated. Returns the updated configuration with password fields masked.",
964
+ "description": "The configuration values were successfully updated. Returns the updated configuration with non-empty password values masked.",
949
965
  "headers": {
950
966
  "Cache-Control": {
951
967
  "description": "Prevents clients from caching configuration mutation responses.",
@@ -977,7 +993,7 @@ var paths = {
977
993
  } } }
978
994
  },
979
995
  "400": {
980
- "description": "The request is invalid or could not be parsed.",
996
+ "description": "The request is invalid, could not be parsed, or updates a required field without a non-empty effective value.",
981
997
  "headers": { "x-ac-sdk-lib-versions": { "$ref": "#/components/headers/SdkLibVersions" } },
982
998
  "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ValidationErrorResponse" } } }
983
999
  },
@@ -1080,7 +1096,7 @@ var paths = {
1080
1096
  "post": {
1081
1097
  "operationId": "startLifecyclePlan",
1082
1098
  "summary": "Start a Planned Lifecycle Operation",
1083
- "description": "Starts the pending plan named by `planId`, whatever its operation (install, upgrade or uninstall). Get the plan from `POST /installation/plan`. The plan is made again from the current state before it starts, and the attempt records how it differs from the reviewed plan in `review`.",
1099
+ "description": "Starts the pending plan named by `planId`, whatever its operation (install, upgrade or uninstall). Get the plan from `POST /installation/plan`. The plan is made again from the current state before it starts, and the attempt records how it differs from the reviewed plan in `review`. Install and upgrade starts require non-empty effective global values for fields marked for the corresponding operation.",
1084
1100
  "parameters": [{
1085
1101
  "name": "x-gw-ims-org-id",
1086
1102
  "in": "header",
@@ -1122,7 +1138,7 @@ var paths = {
1122
1138
  "headers": { "x-ac-sdk-lib-versions": { "$ref": "#/components/headers/SdkLibVersions" } }
1123
1139
  },
1124
1140
  "409": {
1125
- "description": "The plan cannot start. `code` tells why: `in-progress` (another attempt is running; `attempt` carries its status), `stale-plan` (the `planId` is not the pending plan, or the installed state now calls for another operation; plan again), `not-associated`, `unreadable-state`, `baseline-missing` (the stored state names a baseline snapshot that no longer exists), `installed-without-config`, or `already-current`. Without a `code`, planning is blocked by the `issues`, or the application ID changed.",
1141
+ "description": "The plan cannot start. `code` tells why: `in-progress` (another attempt is running; `attempt` carries its status), `stale-plan` (the `planId` is not the pending plan, or the installed state now calls for another operation; plan again), `not-associated`, `unreadable-state`, `baseline-missing` (the stored state names a baseline snapshot that no longer exists), `installed-without-config`, or `already-current`. Without a `code`, planning is blocked by the `issues`, or the application ID changed. `missing-required-configuration` lists missing global configuration field names in `fields`; provide those values and retry the start.",
1126
1142
  "headers": { "x-ac-sdk-lib-versions": { "$ref": "#/components/headers/SdkLibVersions" } },
1127
1143
  "content": { "application/json": { "schema": {
1128
1144
  "type": "object",
@@ -1133,6 +1149,11 @@ var paths = {
1133
1149
  "issues": {
1134
1150
  "type": "array",
1135
1151
  "items": { "$ref": "#/components/schemas/PlanningIssue" }
1152
+ },
1153
+ "fields": {
1154
+ "description": "Names of missing required global configuration fields.",
1155
+ "type": "array",
1156
+ "items": { "type": "string" }
1136
1157
  }
1137
1158
  },
1138
1159
  "required": ["message"]
@@ -1956,7 +1977,8 @@ var components = {
1956
1977
  },
1957
1978
  "runtimeAction": {
1958
1979
  "type": "string",
1959
- "minLength": 1
1980
+ "minLength": 1,
1981
+ "pattern": "^\\w(?:[\\w@ .-]*[\\w@.-])?\\/\\w(?:[\\w@ .-]*[\\w@.-])?$"
1960
1982
  },
1961
1983
  "requireAdobeAuth": { "type": "boolean" },
1962
1984
  "webhook": { "allOf": [{ "$ref": "#/components/schemas/WebhookDefinition" }, { "not": {
@@ -2160,6 +2182,7 @@ var components = {
2160
2182
  "system"
2161
2183
  ]
2162
2184
  },
2185
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2163
2186
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" }
2164
2187
  },
2165
2188
  "required": [
@@ -2198,6 +2221,7 @@ var components = {
2198
2221
  "type": "number",
2199
2222
  "minimum": 1
2200
2223
  },
2224
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2201
2225
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" }
2202
2226
  },
2203
2227
  "required": [
@@ -2301,6 +2325,7 @@ var components = {
2301
2325
  "creditMemo": {
2302
2326
  "type": "object",
2303
2327
  "properties": {
2328
+ "customAttributeGridColumns": { "$ref": "#/components/schemas/AdminUiCustomAttributeGridColumns" },
2304
2329
  "gridColumns": { "$ref": "#/components/schemas/AdminUiGridColumns" },
2305
2330
  "viewButtons": {
2306
2331
  "type": "array",
@@ -2327,6 +2352,99 @@ var components = {
2327
2352
  "additionalProperties": false,
2328
2353
  "required": []
2329
2354
  },
2355
+ "AdminUiCustomAttributeGridColumns": {
2356
+ "description": "Credit Memo columns read locally by a compatible Commerce provider, without Runtime bindings.",
2357
+ "type": "object",
2358
+ "properties": {
2359
+ "label": {
2360
+ "description": "Optional display label used in App Management lifecycle summaries.",
2361
+ "type": "string",
2362
+ "minLength": 1
2363
+ },
2364
+ "description": {
2365
+ "description": "Optional description used in App Management lifecycle summaries.",
2366
+ "type": "string",
2367
+ "minLength": 1
2368
+ },
2369
+ "columns": {
2370
+ "description": "IDs must be unique after Commerce sanitization, including across sibling Runtime columns.",
2371
+ "type": "array",
2372
+ "items": { "$ref": "#/components/schemas/AdminUiCustomAttributeGridColumn" },
2373
+ "minItems": 1
2374
+ }
2375
+ },
2376
+ "additionalProperties": false,
2377
+ "required": ["columns"]
2378
+ },
2379
+ "AdminUiCustomAttributeGridColumn": {
2380
+ "type": "object",
2381
+ "properties": {
2382
+ "id": {
2383
+ "type": "string",
2384
+ "minLength": 1,
2385
+ "pattern": "\\S"
2386
+ },
2387
+ "label": {
2388
+ "type": "string",
2389
+ "minLength": 1,
2390
+ "pattern": "\\S"
2391
+ },
2392
+ "align": {
2393
+ "type": "string",
2394
+ "enum": [
2395
+ "left",
2396
+ "right",
2397
+ "center"
2398
+ ]
2399
+ },
2400
+ "attribute_code": {
2401
+ "type": "string",
2402
+ "maxLength": 255,
2403
+ "minLength": 1,
2404
+ "pattern": "^[A-Za-z0-9_]+$(?![\\s\\S])"
2405
+ },
2406
+ "aclProtected": { "type": "boolean" },
2407
+ "filter": { "$ref": "#/components/schemas/AdminUiCustomAttributeFilter" }
2408
+ },
2409
+ "additionalProperties": false,
2410
+ "required": [
2411
+ "id",
2412
+ "label",
2413
+ "align",
2414
+ "attribute_code"
2415
+ ]
2416
+ },
2417
+ "AdminUiCustomAttributeFilter": { "oneOf": [{
2418
+ "type": "object",
2419
+ "additionalProperties": false,
2420
+ "properties": { "type": {
2421
+ "type": "string",
2422
+ "const": "boolean"
2423
+ } },
2424
+ "required": ["type"]
2425
+ }, {
2426
+ "type": "object",
2427
+ "additionalProperties": false,
2428
+ "properties": {
2429
+ "type": {
2430
+ "type": "string",
2431
+ "const": "text"
2432
+ },
2433
+ "conditions": {
2434
+ "type": "array",
2435
+ "items": {
2436
+ "type": "string",
2437
+ "enum": [
2438
+ "eq",
2439
+ "neq",
2440
+ "contains"
2441
+ ]
2442
+ },
2443
+ "minItems": 1
2444
+ }
2445
+ },
2446
+ "required": ["type", "conditions"]
2447
+ }] },
2330
2448
  "AdminUiGridColumns": {
2331
2449
  "type": "object",
2332
2450
  "properties": {
@@ -2453,6 +2571,7 @@ var components = {
2453
2571
  "minimum": 0
2454
2572
  },
2455
2573
  "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2574
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2456
2575
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" },
2457
2576
  "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2458
2577
  },
@@ -2566,6 +2685,7 @@ var components = {
2566
2685
  "minimum": 0
2567
2686
  },
2568
2687
  "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2688
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2569
2689
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" },
2570
2690
  "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2571
2691
  },
@@ -2679,6 +2799,7 @@ var components = {
2679
2799
  "minimum": 0
2680
2800
  },
2681
2801
  "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
2802
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2682
2803
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" },
2683
2804
  "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2684
2805
  },
@@ -2767,6 +2888,15 @@ var components = {
2767
2888
  }
2768
2889
  }
2769
2890
  },
2891
+ "AdminUiAllowPermissions": {
2892
+ "type": "array",
2893
+ "items": {
2894
+ "type": "string",
2895
+ "enum": ["autoplay", "microphone"]
2896
+ },
2897
+ "minItems": 1,
2898
+ "uniqueItems": true
2899
+ },
2770
2900
  "AdminUiSandboxPermissions": {
2771
2901
  "type": "array",
2772
2902
  "items": {
@@ -2983,6 +3113,7 @@ var components = {
2983
3113
  "minimum": 1
2984
3114
  },
2985
3115
  "confirm": { "$ref": "#/components/schemas/AdminUiConfirm" },
3116
+ "allow": { "$ref": "#/components/schemas/AdminUiAllowPermissions" },
2986
3117
  "sandboxPermissions": { "$ref": "#/components/schemas/AdminUiSandboxPermissions" },
2987
3118
  "notifications": { "$ref": "#/components/schemas/AdminUiNotifications" }
2988
3119
  },
@@ -3296,6 +3427,13 @@ var components = {
3296
3427
  "description": "The app version the plan ends at, or `null` when the app ends up with nothing installed.",
3297
3428
  "anyOf": [{ "type": "string" }, { "type": "null" }]
3298
3429
  },
3430
+ "upgradeMode": {
3431
+ "description": "The `metadata.upgradeMode` of the target config for an upgrade, or `null` for any other operation.",
3432
+ "anyOf": [{
3433
+ "type": "string",
3434
+ "enum": ["auto", "manual"]
3435
+ }, { "type": "null" }]
3436
+ },
3299
3437
  "domains": {
3300
3438
  "description": "The domains with operations to run or config changes. A domain with neither is left out.",
3301
3439
  "type": "array",
@@ -3364,9 +3502,22 @@ var components = {
3364
3502
  "operation",
3365
3503
  "sourceVersion",
3366
3504
  "targetVersion",
3505
+ "upgradeMode",
3367
3506
  "domains",
3368
3507
  "issues"
3369
3508
  ]
3509
+ },
3510
+ "RequiredFor": {
3511
+ "description": "Operations that require a non-empty effective value when saving or starting.",
3512
+ "type": "array",
3513
+ "items": {
3514
+ "type": "string",
3515
+ "enum": [
3516
+ "save",
3517
+ "installation",
3518
+ "upgrade"
3519
+ ]
3520
+ }
3370
3521
  }
3371
3522
  },
3372
3523
  "headers": { "SdkLibVersions": {
@@ -21,12 +21,12 @@ var __getProtoOf = Object.getPrototypeOf;
21
21
  var __hasOwnProp = Object.prototype.hasOwnProperty;
22
22
  var __copyProps = (to, from, except, desc) => {
23
23
  if (from && typeof from === "object" || typeof from === "function") {
24
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
25
- key = keys[i];
24
+ for (let key of __getOwnPropNames(from)) {
26
25
  if (!__hasOwnProp.call(to, key) && key !== except) {
26
+ desc = __getOwnPropDesc(from, key);
27
27
  __defProp(to, key, {
28
- get: ((k) => from[k]).bind(null, key),
29
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
+ get: desc && desc.get && !desc.configurable ? desc.get : () => from[key],
29
+ enumerable: !desc || desc.enumerable
30
30
  });
31
31
  }
32
32
  }
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
15
+ const require_rolldown_runtime = require("./rolldown-runtime-BKfnhsn2.cjs");
16
16
  let valibot = require("valibot");
17
17
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
18
18
 
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- const require_environment = require("./environment-CW6M76gS.cjs");
16
- let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
17
15
  let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
16
+ let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
17
+ const require_environment = require("./environment-CaV1hi2-.cjs");
18
18
 
19
19
  // source/management/domains/events/utils.ts
20
20
  const COMMERCE_PROVIDER_TYPE = "dx_commerce_events";
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
15
+ const require_rolldown_runtime = require("./rolldown-runtime-BKfnhsn2.cjs");
16
16
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
17
17
  let valibot = require("valibot");
18
18
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
@@ -12,12 +12,12 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
16
- const require_webhooks = require("./webhooks-ZPh2gVb3.cjs");
17
- const require_schemas = require("./schemas-B6ITl1bG.cjs");
18
- let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
15
+ const require_rolldown_runtime = require("./rolldown-runtime-BKfnhsn2.cjs");
19
16
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
20
17
  let valibot = require("valibot");
18
+ const require_webhooks = require("./webhooks-Bp1Roq8a.cjs");
19
+ let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
20
+ const require_schemas = require("./schemas-B-jCi6Oz.cjs");
21
21
  valibot = require_rolldown_runtime.__toESM(valibot, 1);
22
22
 
23
23
  // source/config/schema/business-configuration.ts
@@ -42,6 +42,8 @@ const MAX_DESCRIPTION_LENGTH = 255;
42
42
  const MAX_DISPLAY_NAME_LENGTH = 50;
43
43
  const NUMERIC_IDENTIFIER = "(0|[1-9]\\d*)";
44
44
  const SEMVER_REGEX = new RegExp(`^${NUMERIC_IDENTIFIER}\\.${NUMERIC_IDENTIFIER}\\.${NUMERIC_IDENTIFIER}$`, "u");
45
+ /** The `metadata.upgradeMode` of an app config that does not set one. */
46
+ const DEFAULT_UPGRADE_MODE = "manual";
45
47
  function nonEmptyString(fieldName) {
46
48
  return valibot.pipe(valibot.string(`Expected a string for the ${fieldName}`), valibot.nonEmpty(`The ${fieldName} must not be empty`));
47
49
  }
@@ -50,7 +52,7 @@ const MetadataSchema = valibot.object({
50
52
  description: valibot.pipe(nonEmptyString("metadata description"), valibot.maxLength(MAX_DESCRIPTION_LENGTH, `The metadata description must not be longer than ${MAX_DESCRIPTION_LENGTH} characters`)),
51
53
  displayName: valibot.pipe(nonEmptyString("application display name"), valibot.maxLength(MAX_DISPLAY_NAME_LENGTH, `The application display name must not be longer than ${MAX_DISPLAY_NAME_LENGTH} characters`)),
52
54
  id: valibot.pipe(require_schemas.alphaNumericOrHyphenSchema("application id (metadata.id)"), valibot.maxLength(MAX_ID_LENGTH, `The application id must not be longer than ${MAX_ID_LENGTH} characters`)),
53
- upgradeMode: valibot.optional(valibot.picklist(["auto", "manual"]), "manual"),
55
+ upgradeMode: valibot.optional(valibot.picklist(["auto", "manual"]), DEFAULT_UPGRADE_MODE),
54
56
  version: valibot.pipe(nonEmptyString("version"), valibot.regex(SEMVER_REGEX, "The version must follow semantic versioning (semver) format: Major.Minor.Patch (e.g., '1.0.0', '2.3.1')"))
55
57
  });
56
58
  /**
@@ -239,6 +241,12 @@ Object.defineProperty(exports, "CommerceAppConfigSchemas", {
239
241
  return CommerceAppConfigSchemas;
240
242
  }
241
243
  });
244
+ Object.defineProperty(exports, "DEFAULT_UPGRADE_MODE", {
245
+ enumerable: true,
246
+ get: function () {
247
+ return DEFAULT_UPGRADE_MODE;
248
+ }
249
+ });
242
250
  Object.defineProperty(exports, "getConfigDomains", {
243
251
  enumerable: true,
244
252
  get: function () {
@@ -12,12 +12,12 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
15
+ const require_rolldown_runtime = require("./rolldown-runtime-BKfnhsn2.cjs");
16
16
  let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
17
17
  let _adobe_aio_lib_core_logging = require("@adobe/aio-lib-core-logging");
18
- _adobe_aio_lib_core_logging = require_rolldown_runtime.__toESM(_adobe_aio_lib_core_logging, 1);
19
18
  let regexparam = require("regexparam");
20
19
  let _adobe_aio_commerce_lib_config_package_json = require("@adobe/aio-commerce-lib-config/package.json");
20
+ _adobe_aio_lib_core_logging = require_rolldown_runtime.__toESM(_adobe_aio_lib_core_logging, 1);
21
21
  _adobe_aio_commerce_lib_config_package_json = require_rolldown_runtime.__toESM(_adobe_aio_commerce_lib_config_package_json, 1);
22
22
 
23
23
  // ../../packages-private/common-utils/source/actions/http/middleware/logger.ts
@@ -460,7 +460,7 @@ const UNKNOWN_VERSION = "unknown";
460
460
  * in the `package.json` of the copy of lib-config that lib-app loads, which the app's bundler
461
461
  * resolves when it builds the action.
462
462
  */
463
- const SDK_LIB_VERSIONS = [["lib-app", "2.2.0"], ["lib-config", _adobe_aio_commerce_lib_config_package_json.default.version ?? UNKNOWN_VERSION]].map(([name, version]) => `${name}="${version}"`).join(", ");
463
+ const SDK_LIB_VERSIONS = [["lib-app", "2.3.0-beta-20261202103723"], ["lib-config", _adobe_aio_commerce_lib_config_package_json.default.version ?? UNKNOWN_VERSION]].map(([name, version]) => `${name}="${version}"`).join(", ");
464
464
  /** Headers every app-management router adds to its responses. */
465
465
  const SDK_LIB_VERSIONS_HEADERS = { [SDK_LIB_VERSIONS_HEADER]: SDK_LIB_VERSIONS };
466
466