@adobe/aio-commerce-lib-app 1.7.0 → 1.8.0-alpha-20260722091448

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 (93) hide show
  1. package/CHANGELOG.md +92 -0
  2. package/dist/cjs/actions/app-config/index.cjs +41 -38
  3. package/dist/cjs/actions/app-config/index.d.cts +1 -1
  4. package/dist/cjs/actions/association/index.cjs +85 -0
  5. package/dist/cjs/actions/{registration → association}/index.d.cts +9 -13
  6. package/dist/cjs/actions/config/index.cjs +21 -32
  7. package/dist/cjs/actions/installation/index.cjs +72 -51
  8. package/dist/cjs/actions/installation/index.d.cts +2 -2
  9. package/dist/cjs/actions/scope-tree/index.cjs +18 -17
  10. package/dist/{es/app-DrYHK-z1.d.mts → cjs/app-BwehWeu1.d.cts} +1237 -1031
  11. package/dist/cjs/commands/index.cjs +523 -301
  12. package/dist/cjs/commands/templates/admin-ui/tsconfig.json +14 -0
  13. package/dist/cjs/commands/templates/admin-ui/web-src/index.css +5 -0
  14. package/dist/cjs/commands/templates/admin-ui/web-src/index.html +17 -0
  15. package/dist/cjs/commands/templates/admin-ui/web-src/src/app.jsx +12 -0
  16. package/dist/cjs/commands/templates/admin-ui/web-src/src/components/welcome.jsx +16 -0
  17. package/dist/cjs/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  18. package/dist/cjs/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  19. package/dist/cjs/commands/templates/app-management/app-config.js.template +1 -14
  20. package/dist/cjs/commands/templates/app-management/association.js.template +6 -0
  21. package/dist/cjs/commands/templates/app-management/installation.js.template +1 -13
  22. package/dist/cjs/commands/templates/business-configuration/config.js.template +2 -15
  23. package/dist/cjs/commands/templates/business-configuration/scope-tree.js.template +0 -12
  24. package/dist/cjs/config/index.browser.cjs +18 -0
  25. package/dist/cjs/config/index.browser.d.cts +16 -0
  26. package/dist/cjs/config/{index.cjs → index.node.cjs} +9 -8
  27. package/dist/{es/config/index.d.mts → cjs/config/index.node.d.cts} +1065 -394
  28. package/dist/cjs/define-DOqVyexT.d.cts +34 -0
  29. package/dist/cjs/define-hlcQw7Cv.cjs +41 -0
  30. package/dist/cjs/environment-B7EnozSg.cjs +135 -0
  31. package/dist/cjs/{index-B5gJ-q4U.d.cts → index-B3ISkC54.d.cts} +17 -12
  32. package/dist/cjs/index.cjs +268 -0
  33. package/dist/cjs/index.d.cts +230 -0
  34. package/dist/cjs/{config-D-s0GSep.cjs → index.node-BWZuZLgs.cjs} +144 -44
  35. package/dist/cjs/{logging-BVz3weoC.cjs → logging-udPuAJPt.cjs} +2 -2
  36. package/dist/cjs/management/index.cjs +1 -1
  37. package/dist/cjs/management/index.d.cts +1 -1
  38. package/dist/cjs/{management-Dehz9qSJ.cjs → management-DEsRVP2L.cjs} +385 -582
  39. package/dist/cjs/{openapi-Cux6K4ZD.cjs → openapi-CwytYdWl.cjs} +476 -600
  40. package/dist/cjs/repository-CbceYZqc.cjs +69 -0
  41. package/dist/cjs/{router-BOR7T6qR.cjs → router-hA_Y9gZ1.cjs} +42 -44
  42. package/dist/cjs/{schemas-FngDuIeo.cjs → schemas-mLxMh_ko.cjs} +2 -2
  43. package/dist/cjs/utils-DSCmZ_iJ.cjs +408 -0
  44. package/dist/cjs/{validate-oAOpyFyb.cjs → validate-C_eCKp21.cjs} +21 -21
  45. package/dist/cjs/{webhooks-tbZy9G3p.cjs → webhooks-L4DWHSOl.cjs} +159 -151
  46. package/dist/es/actions/app-config/index.d.mts +1 -1
  47. package/dist/es/actions/app-config/index.mjs +39 -36
  48. package/dist/es/actions/{registration → association}/index.d.mts +9 -13
  49. package/dist/es/actions/association/index.mjs +82 -0
  50. package/dist/es/actions/config/index.mjs +17 -28
  51. package/dist/es/actions/installation/index.d.mts +2 -2
  52. package/dist/es/actions/installation/index.mjs +69 -48
  53. package/dist/es/actions/scope-tree/index.mjs +14 -13
  54. package/dist/{cjs/app-DrYHK-z1.d.cts → es/app-BwehWeu1.d.mts} +1237 -1031
  55. package/dist/es/commands/index.mjs +556 -332
  56. package/dist/es/commands/templates/admin-ui/tsconfig.json +14 -0
  57. package/dist/es/commands/templates/admin-ui/web-src/index.css +5 -0
  58. package/dist/es/commands/templates/admin-ui/web-src/index.html +17 -0
  59. package/dist/es/commands/templates/admin-ui/web-src/src/app.jsx +12 -0
  60. package/dist/es/commands/templates/admin-ui/web-src/src/components/welcome.jsx +16 -0
  61. package/dist/es/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
  62. package/dist/es/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
  63. package/dist/es/commands/templates/app-management/app-config.js.template +1 -14
  64. package/dist/es/commands/templates/app-management/association.js.template +6 -0
  65. package/dist/es/commands/templates/app-management/installation.js.template +1 -13
  66. package/dist/es/commands/templates/business-configuration/config.js.template +2 -15
  67. package/dist/es/commands/templates/business-configuration/scope-tree.js.template +0 -12
  68. package/dist/es/config/index.browser.d.mts +16 -0
  69. package/dist/es/config/index.browser.mjs +17 -0
  70. package/dist/{cjs/config/index.d.cts → es/config/index.node.d.mts} +1066 -393
  71. package/dist/es/config/{index.mjs → index.node.mjs} +5 -4
  72. package/dist/es/define-DxH1BFia.d.mts +34 -0
  73. package/dist/es/define-Z_Glf1-_.mjs +35 -0
  74. package/dist/es/environment-C84BPRJZ.mjs +104 -0
  75. package/dist/es/{index-DLMbTtKS.d.mts → index-DSk-RmwM.d.mts} +17 -12
  76. package/dist/es/index.d.mts +230 -0
  77. package/dist/es/index.mjs +259 -0
  78. package/dist/es/{config-3I4eLyyR.mjs → index.node-DuvW9Sha.mjs} +113 -39
  79. package/dist/es/management/index.d.mts +1 -1
  80. package/dist/es/management/index.mjs +1 -1
  81. package/dist/es/{management-BUX-w2Ji.mjs → management-D5pmBBec.mjs} +353 -550
  82. package/dist/es/{openapi-B6uP0SRn.mjs → openapi-CXonvevE.mjs} +476 -600
  83. package/dist/es/repository-BGmy0YeZ.mjs +52 -0
  84. package/dist/es/{router-D58JJHHA.mjs → router-B_h0cvjc.mjs} +40 -42
  85. package/dist/es/utils-_gj8L6eN.mjs +289 -0
  86. package/dist/es/{validate-Dfajrp99.mjs → validate-t0T0F2MF.mjs} +18 -18
  87. package/dist/es/{webhooks-B5oq9ULL.mjs → webhooks-D7DExIDM.mjs} +150 -142
  88. package/package.json +40 -17
  89. package/dist/cjs/actions/registration/index.cjs +0 -50
  90. package/dist/cjs/admin-ui-sdk-EU915zlR.d.cts +0 -664
  91. package/dist/es/actions/registration/index.mjs +0 -49
  92. package/dist/es/admin-ui-sdk-BwnD0xjK.d.mts +0 -664
  93. /package/dist/cjs/{chunk-Cozy-1ZF.cjs → rolldown-runtime-Cozy-1ZF.cjs} +0 -0
@@ -12,28 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-DrYHK-z1.mjs";
16
- import { a as CustomerMassAction, c as OrderMassAction, d as hasAdminUiSdk, i as CustomFee, l as OrderViewButton, n as AdminUiSdkRegistration, o as GridColumns, r as BannerNotification, s as MenuItem, t as AdminUiSdkConfiguration, u as ProductMassAction } from "../admin-ui-sdk-BwnD0xjK.mjs";
17
- import * as v from "valibot";
15
+ import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-BwehWeu1.cjs";
16
+ import { t as defineConfig } from "../define-DOqVyexT.cjs";
18
17
  import { Get } from "type-fest";
19
-
20
- //#region source/config/lib/define.d.ts
21
- /**
22
- * Helper to type-safely define the app config.
23
- * @param config - The app config to define.
24
- *
25
- * @example
26
- * ```typescript
27
- * import { defineConfig } from "@adobe/aio-commerce-lib-app";
28
- *
29
- * // In app.commerce.config.js
30
- * export default defineConfig({
31
- * // You get autocompletion and type-safety for the config object.
32
- * businessConfig: { ... }
33
- * });
34
- */
35
- declare function defineConfig<const T extends CommerceAppConfig>(config: T): T;
36
- //#endregion
18
+ import * as v from "valibot";
37
19
  //#region source/config/lib/parser.d.ts
38
20
  /**
39
21
  * Try to find (up to the nearest package.json file) the app config file.
@@ -72,44 +54,238 @@ declare function readCommerceAppConfig(cwd?: string): Promise<unknown>;
72
54
  * @throws {Error} If no config file is found, if the file doesn't export a default export, or if validation fails
73
55
  */
74
56
  declare function parseCommerceAppConfig(cwd?: string): Promise<{
75
- metadata: {
76
- id: string;
77
- displayName: string;
78
- description: string;
79
- version: string;
80
- };
57
+ adminUi?: {
58
+ customer?: {
59
+ gridColumns?: {
60
+ columns: {
61
+ aclProtected?: boolean | undefined;
62
+ align: "left" | "right" | "center";
63
+ id: string;
64
+ label: string;
65
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
66
+ }[];
67
+ description: string;
68
+ label: string;
69
+ runtimeAction: string;
70
+ } | undefined;
71
+ massActions?: ({
72
+ path: string;
73
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
74
+ type: "view";
75
+ aclProtected?: boolean | undefined;
76
+ confirm?: {
77
+ message?: string | undefined;
78
+ title?: string | undefined;
79
+ } | undefined;
80
+ description?: string | undefined;
81
+ id: string;
82
+ label: string;
83
+ notifications?: {
84
+ error?: string | undefined;
85
+ success?: string | undefined;
86
+ } | undefined;
87
+ selectionLimit?: number | undefined;
88
+ title?: string | undefined;
89
+ } | {
90
+ runtimeAction: string;
91
+ timeout?: number | undefined;
92
+ type: "worker";
93
+ aclProtected?: boolean | undefined;
94
+ confirm?: {
95
+ message?: string | undefined;
96
+ title?: string | undefined;
97
+ } | undefined;
98
+ description?: string | undefined;
99
+ id: string;
100
+ label: string;
101
+ notifications?: {
102
+ error?: string | undefined;
103
+ success?: string | undefined;
104
+ } | undefined;
105
+ selectionLimit?: number | undefined;
106
+ title?: string | undefined;
107
+ })[] | undefined;
108
+ } | undefined;
109
+ menu?: {
110
+ aclProtected?: boolean | undefined;
111
+ description: string;
112
+ id: string;
113
+ label: string;
114
+ pageTitle?: string | undefined;
115
+ parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
116
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
117
+ } | undefined;
118
+ order?: {
119
+ gridColumns?: {
120
+ columns: {
121
+ aclProtected?: boolean | undefined;
122
+ align: "left" | "right" | "center";
123
+ id: string;
124
+ label: string;
125
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
126
+ }[];
127
+ description: string;
128
+ label: string;
129
+ runtimeAction: string;
130
+ } | undefined;
131
+ massActions?: ({
132
+ path: string;
133
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
134
+ type: "view";
135
+ aclProtected?: boolean | undefined;
136
+ confirm?: {
137
+ message?: string | undefined;
138
+ title?: string | undefined;
139
+ } | undefined;
140
+ description?: string | undefined;
141
+ id: string;
142
+ label: string;
143
+ notifications?: {
144
+ error?: string | undefined;
145
+ success?: string | undefined;
146
+ } | undefined;
147
+ selectionLimit?: number | undefined;
148
+ title?: string | undefined;
149
+ } | {
150
+ runtimeAction: string;
151
+ timeout?: number | undefined;
152
+ type: "worker";
153
+ aclProtected?: boolean | undefined;
154
+ confirm?: {
155
+ message?: string | undefined;
156
+ title?: string | undefined;
157
+ } | undefined;
158
+ description?: string | undefined;
159
+ id: string;
160
+ label: string;
161
+ notifications?: {
162
+ error?: string | undefined;
163
+ success?: string | undefined;
164
+ } | undefined;
165
+ selectionLimit?: number | undefined;
166
+ title?: string | undefined;
167
+ })[] | undefined;
168
+ viewButtons?: ({
169
+ aclProtected?: boolean | undefined;
170
+ confirm?: {
171
+ message?: string | undefined;
172
+ title?: string | undefined;
173
+ } | undefined;
174
+ description?: string | undefined;
175
+ id: string;
176
+ label: string;
177
+ level?: 0 | 1 | -1 | undefined;
178
+ notifications?: {
179
+ error?: string | undefined;
180
+ success?: string | undefined;
181
+ } | undefined;
182
+ path: string;
183
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
184
+ sortOrder?: number | undefined;
185
+ type: "view";
186
+ } | {
187
+ aclProtected?: boolean | undefined;
188
+ confirm?: {
189
+ message?: string | undefined;
190
+ title?: string | undefined;
191
+ } | undefined;
192
+ description?: string | undefined;
193
+ id: string;
194
+ label: string;
195
+ level?: 0 | 1 | -1 | undefined;
196
+ notifications?: {
197
+ error?: string | undefined;
198
+ success?: string | undefined;
199
+ } | undefined;
200
+ runtimeAction: string;
201
+ sortOrder?: number | undefined;
202
+ timeout?: number | undefined;
203
+ type: "worker";
204
+ })[] | undefined;
205
+ } | undefined;
206
+ product?: {
207
+ gridColumns?: {
208
+ columns: {
209
+ aclProtected?: boolean | undefined;
210
+ align: "left" | "right" | "center";
211
+ id: string;
212
+ label: string;
213
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
214
+ }[];
215
+ description: string;
216
+ label: string;
217
+ runtimeAction: string;
218
+ } | undefined;
219
+ massActions?: ({
220
+ path: string;
221
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
222
+ type: "view";
223
+ aclProtected?: boolean | undefined;
224
+ confirm?: {
225
+ message?: string | undefined;
226
+ title?: string | undefined;
227
+ } | undefined;
228
+ description?: string | undefined;
229
+ id: string;
230
+ label: string;
231
+ notifications?: {
232
+ error?: string | undefined;
233
+ success?: string | undefined;
234
+ } | undefined;
235
+ selectionLimit?: number | undefined;
236
+ title?: string | undefined;
237
+ } | {
238
+ runtimeAction: string;
239
+ timeout?: number | undefined;
240
+ type: "worker";
241
+ aclProtected?: boolean | undefined;
242
+ confirm?: {
243
+ message?: string | undefined;
244
+ title?: string | undefined;
245
+ } | undefined;
246
+ description?: string | undefined;
247
+ id: string;
248
+ label: string;
249
+ notifications?: {
250
+ error?: string | undefined;
251
+ success?: string | undefined;
252
+ } | undefined;
253
+ selectionLimit?: number | undefined;
254
+ title?: string | undefined;
255
+ })[] | undefined;
256
+ } | undefined;
257
+ } | undefined;
81
258
  businessConfig?: {
82
259
  schema: ({
83
- selectionMode: "single";
84
260
  default: string;
85
- type: "list";
261
+ selectionMode: "single";
86
262
  options: {
87
263
  label: string;
88
264
  value: string;
89
265
  }[];
90
- name: string;
91
- label?: string | undefined;
266
+ type: "list";
92
267
  description?: string | undefined;
93
268
  env?: ("paas" | "saas")[] | undefined;
269
+ label?: string | undefined;
270
+ name: string;
94
271
  } | {
95
- selectionMode: "multiple";
96
272
  default: string[];
97
- type: "list";
273
+ selectionMode: "multiple";
98
274
  options: {
99
275
  label: string;
100
276
  value: string;
101
277
  }[];
102
- name: string;
103
- label?: string | undefined;
278
+ type: "list";
104
279
  description?: string | undefined;
105
280
  env?: ("paas" | "saas")[] | undefined;
281
+ label?: string | undefined;
282
+ name: string;
106
283
  } | {
107
- selectionMode: "single";
108
284
  default: (resolvedOptions: {
109
285
  label: string;
110
286
  value: string;
111
287
  }[]) => string;
112
- type: "dynamicList";
288
+ selectionMode: "single";
113
289
  options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
114
290
  label: string;
115
291
  value: string;
@@ -117,17 +293,17 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
117
293
  label: string;
118
294
  value: string;
119
295
  }[]>;
120
- name: string;
121
- label?: string | undefined;
296
+ type: "dynamicList";
122
297
  description?: string | undefined;
123
298
  env?: ("paas" | "saas")[] | undefined;
299
+ label?: string | undefined;
300
+ name: string;
124
301
  } | {
125
- selectionMode: "multiple";
126
302
  default?: ((resolvedOptions: {
127
303
  label: string;
128
304
  value: string;
129
305
  }[]) => string[]) | undefined;
130
- type: "dynamicList";
306
+ selectionMode: "multiple";
131
307
  options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
132
308
  label: string;
133
309
  value: string;
@@ -135,258 +311,183 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
135
311
  label: string;
136
312
  value: string;
137
313
  }[]>;
138
- name: string;
139
- label?: string | undefined;
314
+ type: "dynamicList";
140
315
  description?: string | undefined;
141
316
  env?: ("paas" | "saas")[] | undefined;
317
+ label?: string | undefined;
318
+ name: string;
142
319
  } | {
143
- type: "text";
144
320
  default: string;
145
- name: string;
146
- label?: string | undefined;
321
+ type: "text";
147
322
  description?: string | undefined;
148
323
  env?: ("paas" | "saas")[] | undefined;
324
+ label?: string | undefined;
325
+ name: string;
149
326
  } | {
150
- type: "password";
151
327
  default: "";
152
- name: string;
153
- label?: string | undefined;
328
+ type: "password";
154
329
  description?: string | undefined;
155
330
  env?: ("paas" | "saas")[] | undefined;
331
+ label?: string | undefined;
332
+ name: string;
156
333
  } | {
157
- type: "email";
158
334
  default: string;
159
- name: string;
160
- label?: string | undefined;
335
+ type: "email";
161
336
  description?: string | undefined;
162
337
  env?: ("paas" | "saas")[] | undefined;
338
+ label?: string | undefined;
339
+ name: string;
163
340
  } | {
164
- type: "url";
165
341
  default: string;
166
- name: string;
167
- label?: string | undefined;
342
+ type: "url";
168
343
  description?: string | undefined;
169
344
  env?: ("paas" | "saas")[] | undefined;
345
+ label?: string | undefined;
346
+ name: string;
170
347
  } | {
171
- type: "tel";
172
348
  default: string;
173
- name: string;
174
- label?: string | undefined;
349
+ type: "tel";
175
350
  description?: string | undefined;
176
351
  env?: ("paas" | "saas")[] | undefined;
352
+ label?: string | undefined;
353
+ name: string;
177
354
  } | {
178
- type: "boolean";
179
355
  default: boolean;
180
- name: string;
181
- label?: string | undefined;
356
+ type: "boolean";
182
357
  description?: string | undefined;
183
358
  env?: ("paas" | "saas")[] | undefined;
359
+ label?: string | undefined;
360
+ name: string;
184
361
  })[];
185
362
  } | undefined;
186
363
  eventing?: {
187
364
  commerce?: {
188
- provider: {
189
- label: string;
190
- description: string;
191
- key?: string | undefined;
192
- };
193
365
  events: {
194
- name: string;
366
+ destination?: string | undefined;
195
367
  fields: {
196
368
  name: string;
197
369
  source?: string | undefined;
198
370
  }[];
371
+ force?: boolean | undefined;
372
+ hipaa_audit_required?: boolean | undefined;
373
+ name: string;
374
+ priority?: boolean | undefined;
199
375
  rules?: {
200
376
  field: string;
201
377
  operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
202
378
  value: string;
203
379
  }[] | undefined;
204
- destination?: string | undefined;
205
- hipaa_audit_required?: boolean | undefined;
206
- priority?: boolean | undefined;
207
- force?: boolean | undefined;
208
- label: string;
209
380
  description: string;
381
+ env?: ("paas" | "saas")[] | undefined;
382
+ label: string;
210
383
  runtimeActions: string[];
211
384
  }[];
212
- }[] | undefined;
213
- external?: {
214
385
  provider: {
215
- label: string;
216
386
  description: string;
217
387
  key?: string | undefined;
388
+ label: string;
218
389
  };
390
+ }[] | undefined;
391
+ external?: {
219
392
  events: {
393
+ hipaa_audit_required?: boolean | undefined;
220
394
  name: string;
221
- label: string;
222
395
  description: string;
396
+ env?: ("paas" | "saas")[] | undefined;
397
+ label: string;
223
398
  runtimeActions: string[];
224
399
  }[];
400
+ provider: {
401
+ description: string;
402
+ key?: string | undefined;
403
+ label: string;
404
+ };
225
405
  }[] | undefined;
226
406
  } | undefined;
227
- adminUiSdk?: {
228
- registration: {
229
- menuItems?: {
230
- id: string;
231
- title?: string | undefined;
232
- parent?: string | undefined;
233
- sortOrder?: number | undefined;
234
- isSection?: boolean | undefined;
235
- sandbox?: string | undefined;
236
- }[] | undefined;
237
- order?: {
238
- massActions?: unknown[] | undefined;
239
- gridColumns?: {
240
- data: {
241
- meshId: string;
242
- };
243
- properties: {
244
- label: string;
245
- columnId: string;
246
- type: "string" | "boolean" | "date" | "float" | "integer";
247
- align: "left" | "right" | "center";
248
- }[];
249
- } | undefined;
250
- viewButtons?: unknown[] | undefined;
251
- customFees?: {
252
- id: string;
253
- label: string;
254
- value: number;
255
- orderMinimumAmount?: number | undefined;
256
- applyFeeOnLastInvoice?: boolean | undefined;
257
- applyFeeOnLastCreditMemo?: boolean | undefined;
258
- }[] | undefined;
259
- } | undefined;
260
- product?: {
261
- massActions?: unknown[] | undefined;
262
- gridColumns?: {
263
- data: {
264
- meshId: string;
265
- };
266
- properties: {
267
- label: string;
268
- columnId: string;
269
- type: "string" | "boolean" | "date" | "float" | "integer";
270
- align: "left" | "right" | "center";
271
- }[];
272
- } | undefined;
273
- } | undefined;
274
- customer?: {
275
- massActions?: unknown[] | undefined;
276
- gridColumns?: {
277
- data: {
278
- meshId: string;
279
- };
280
- properties: {
281
- label: string;
282
- columnId: string;
283
- type: "string" | "boolean" | "date" | "float" | "integer";
284
- align: "left" | "right" | "center";
285
- }[];
286
- } | undefined;
287
- } | undefined;
288
- bannerNotification?: {
289
- massActions?: {
290
- order?: {
291
- actionId: string;
292
- successMessage?: string | undefined;
293
- errorMessage?: string | undefined;
294
- }[] | undefined;
295
- product?: {
296
- actionId: string;
297
- successMessage?: string | undefined;
298
- errorMessage?: string | undefined;
299
- }[] | undefined;
300
- customer?: {
301
- actionId: string;
302
- successMessage?: string | undefined;
303
- errorMessage?: string | undefined;
304
- }[] | undefined;
305
- } | undefined;
306
- orderViewButtons?: {
307
- buttonId: string;
308
- successMessage?: string | undefined;
309
- errorMessage?: string | undefined;
310
- }[] | undefined;
311
- } | undefined;
312
- };
313
- } | undefined;
314
407
  installation?: {
315
- messages?: {
316
- preInstallation?: string | undefined;
317
- postInstallation?: string | undefined;
318
- } | undefined;
319
408
  customInstallationSteps?: {
320
- script: string;
321
- name: string;
322
409
  description: string;
410
+ name: string;
411
+ script: string;
323
412
  }[] | undefined;
413
+ messages?: {
414
+ postInstallation?: string | undefined;
415
+ preInstallation?: string | undefined;
416
+ } | undefined;
324
417
  } | undefined;
325
- webhooks?: ({
326
- label: string;
418
+ metadata: {
327
419
  description: string;
328
- category?: "validation" | "append" | "modification" | undefined;
329
- runtimeAction: string;
420
+ displayName: string;
421
+ id: string;
422
+ version: string;
423
+ };
424
+ webhooks?: ({
330
425
  requireAdobeAuth?: boolean | undefined;
426
+ runtimeAction: string;
331
427
  webhook: {
332
- webhook_method: string;
333
- webhook_type: string;
334
428
  batch_name: string;
335
429
  batch_order?: number | undefined;
336
- hook_name: string;
337
- priority?: number | undefined;
338
- required?: boolean | undefined;
339
- soft_timeout?: number | undefined;
340
- timeout?: number | undefined;
341
- method: string;
342
430
  fallback_error_message?: string | undefined;
343
- ttl?: number | undefined;
344
431
  fields?: {
345
432
  name: string;
346
433
  source?: string | undefined;
347
434
  }[] | undefined;
435
+ headers?: {
436
+ name: string;
437
+ value: string;
438
+ }[] | undefined;
439
+ hook_name: string;
440
+ method: string;
441
+ priority?: number | undefined;
442
+ required?: boolean | undefined;
348
443
  rules?: {
349
444
  field: string;
350
445
  operator: string;
351
446
  value: string;
352
447
  }[] | undefined;
353
- headers?: {
354
- name: string;
355
- value: string;
356
- }[] | undefined;
448
+ soft_timeout?: number | undefined;
449
+ timeout?: number | undefined;
450
+ ttl?: number | undefined;
451
+ webhook_method: string;
452
+ webhook_type: string;
357
453
  };
358
- } | {
359
- label: string;
360
- description: string;
361
454
  category?: "validation" | "append" | "modification" | undefined;
455
+ description: string;
456
+ env?: ("paas" | "saas")[] | undefined;
457
+ label: string;
458
+ } | {
362
459
  webhook: {
363
460
  url: string;
364
- webhook_method: string;
365
- webhook_type: string;
366
461
  batch_name: string;
367
462
  batch_order?: number | undefined;
368
- hook_name: string;
369
- priority?: number | undefined;
370
- required?: boolean | undefined;
371
- soft_timeout?: number | undefined;
372
- timeout?: number | undefined;
373
- method: string;
374
463
  fallback_error_message?: string | undefined;
375
- ttl?: number | undefined;
376
464
  fields?: {
377
465
  name: string;
378
466
  source?: string | undefined;
379
467
  }[] | undefined;
380
- rules?: {
381
- field: string;
382
- operator: string;
383
- value: string;
384
- }[] | undefined;
385
468
  headers?: {
386
469
  name: string;
387
470
  value: string;
388
471
  }[] | undefined;
472
+ hook_name: string;
473
+ method: string;
474
+ priority?: number | undefined;
475
+ required?: boolean | undefined;
476
+ rules?: {
477
+ field: string;
478
+ operator: string;
479
+ value: string;
480
+ }[] | undefined;
481
+ soft_timeout?: number | undefined;
482
+ timeout?: number | undefined;
483
+ ttl?: number | undefined;
484
+ webhook_method: string;
485
+ webhook_type: string;
389
486
  };
487
+ category?: "validation" | "append" | "modification" | undefined;
488
+ description: string;
489
+ env?: ("paas" | "saas")[] | undefined;
490
+ label: string;
390
491
  })[] | undefined;
391
492
  } & {
392
493
  [key: string]: unknown;
@@ -465,6 +566,454 @@ declare function validateCommerceAppConfig(config: unknown): CommerceAppConfigOu
465
566
  */
466
567
  declare function validateCommerceAppConfigDomain<T extends CommerceAppConfigDomain>(config: unknown, domain: T): NonNullable<Get<CommerceAppConfigOutputModel, T>>;
467
568
  //#endregion
569
+ //#region source/config/schema/admin-ui.d.ts
570
+ declare const NotificationsSchema: v.ObjectSchema<{
571
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
572
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
573
+ }, undefined>;
574
+ declare const GridColumnSchema: v.StrictObjectSchema<{
575
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
576
+ readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
577
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
578
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
579
+ readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
580
+ }, undefined>;
581
+ declare const GridColumnsSchema: v.ObjectSchema<{
582
+ readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
583
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
584
+ readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
585
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
586
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
587
+ readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
588
+ }, undefined>, undefined>, v.MinLengthAction<{
589
+ aclProtected?: boolean | undefined;
590
+ align: "left" | "right" | "center";
591
+ id: string;
592
+ label: string;
593
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
594
+ }[], 1, "At least one grid column is required">]>;
595
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
596
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
597
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
598
+ }, undefined>;
599
+ /** `type: "view"` mass action — renders an iframe at `path`. */
600
+ declare const ViewMassActionSchema: v.StrictObjectSchema<{
601
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
602
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
603
+ readonly type: v.LiteralSchema<"view", undefined>;
604
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
605
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
606
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
607
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
608
+ }, undefined>, undefined>;
609
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
610
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
611
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
612
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
613
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
614
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
615
+ }, undefined>, undefined>;
616
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
617
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
618
+ }, undefined>;
619
+ /** `type: "worker"` mass action — invokes a workerProcess runtime action. */
620
+ declare const WorkerMassActionSchema: v.StrictObjectSchema<{
621
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
622
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
623
+ readonly type: v.LiteralSchema<"worker", undefined>;
624
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
625
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
626
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
627
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
628
+ }, undefined>, undefined>;
629
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
630
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
631
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
632
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
633
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
634
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
635
+ }, undefined>, undefined>;
636
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
637
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
638
+ }, undefined>;
639
+ /**
640
+ * A mass action entry discriminated by `type`: `"view"` renders an iframe;
641
+ * `"worker"` invokes a runtime action.
642
+ */
643
+ declare const MassActionSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
644
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
645
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
646
+ readonly type: v.LiteralSchema<"view", undefined>;
647
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
648
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
649
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
650
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
651
+ }, undefined>, undefined>;
652
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
653
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
654
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
655
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
656
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
657
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
658
+ }, undefined>, undefined>;
659
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
660
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
661
+ }, undefined>, v.StrictObjectSchema<{
662
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
663
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
664
+ readonly type: v.LiteralSchema<"worker", undefined>;
665
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
666
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
667
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
668
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
669
+ }, undefined>, undefined>;
670
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
671
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
672
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
673
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
674
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
675
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
676
+ }, undefined>, undefined>;
677
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
678
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
679
+ }, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">;
680
+ declare const OrderViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
681
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
682
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
683
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
684
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
685
+ }, undefined>, undefined>;
686
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
687
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
688
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
689
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
690
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
691
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
692
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
693
+ }, undefined>, undefined>;
694
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
695
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
696
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
697
+ readonly type: v.LiteralSchema<"view", undefined>;
698
+ }, undefined>, v.StrictObjectSchema<{
699
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
700
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
701
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
702
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
703
+ }, undefined>, undefined>;
704
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
705
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
706
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
707
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
708
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
709
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
710
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
711
+ }, undefined>, undefined>;
712
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
713
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
714
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
715
+ readonly type: v.LiteralSchema<"worker", undefined>;
716
+ }, undefined>], undefined>;
717
+ declare const MenuSchema: v.ObjectSchema<{
718
+ /**
719
+ * When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
720
+ * and injects it into the Adobe Commerce User Roles permission tree, allowing role-based
721
+ * access control per app menu.
722
+ */
723
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
724
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
725
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Menu ID may contain only letters, digits, \"/\", \":\", and \"_\"">]>;
726
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
727
+ readonly pageTitle: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
728
+ readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
729
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
730
+ }, undefined>;
731
+ /**
732
+ * Schema for the `adminUi` config section.
733
+ * Supports grid column extensions, mass actions, order view buttons, and menu on `commerce/backend-ui/2`.
734
+ * @experimental
735
+ */
736
+ declare const AdminUiSchema: v.ObjectSchema<{
737
+ readonly customer: v.OptionalSchema<v.ObjectSchema<{
738
+ readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
739
+ readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
740
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
741
+ readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
742
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
743
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
744
+ readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
745
+ }, undefined>, undefined>, v.MinLengthAction<{
746
+ aclProtected?: boolean | undefined;
747
+ align: "left" | "right" | "center";
748
+ id: string;
749
+ label: string;
750
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
751
+ }[], 1, "At least one grid column is required">]>;
752
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
753
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
754
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
755
+ }, undefined>, undefined>;
756
+ readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
757
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
758
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
759
+ readonly type: v.LiteralSchema<"view", undefined>;
760
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
761
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
762
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
763
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
764
+ }, undefined>, undefined>;
765
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
766
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
767
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
768
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
769
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
770
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
771
+ }, undefined>, undefined>;
772
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
773
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
774
+ }, undefined>, v.StrictObjectSchema<{
775
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
776
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
777
+ readonly type: v.LiteralSchema<"worker", undefined>;
778
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
779
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
780
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
781
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
782
+ }, undefined>, undefined>;
783
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
784
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
785
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
786
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
787
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
788
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
789
+ }, undefined>, undefined>;
790
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
791
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
792
+ }, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
793
+ }, undefined>, undefined>;
794
+ readonly menu: v.OptionalSchema<v.ObjectSchema<{
795
+ /**
796
+ * When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
797
+ * and injects it into the Adobe Commerce User Roles permission tree, allowing role-based
798
+ * access control per app menu.
799
+ */
800
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
801
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
802
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Menu ID may contain only letters, digits, \"/\", \":\", and \"_\"">]>;
803
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
804
+ readonly pageTitle: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
805
+ readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
806
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
807
+ }, undefined>, undefined>;
808
+ readonly order: v.OptionalSchema<v.ObjectSchema<{
809
+ readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
810
+ readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
811
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
812
+ readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
813
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
814
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
815
+ readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
816
+ }, undefined>, undefined>, v.MinLengthAction<{
817
+ aclProtected?: boolean | undefined;
818
+ align: "left" | "right" | "center";
819
+ id: string;
820
+ label: string;
821
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
822
+ }[], 1, "At least one grid column is required">]>;
823
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
824
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
825
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
826
+ }, undefined>, undefined>;
827
+ readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
828
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
829
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
830
+ readonly type: v.LiteralSchema<"view", undefined>;
831
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
832
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
833
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
834
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
835
+ }, undefined>, undefined>;
836
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
837
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
838
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
839
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
840
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
841
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
842
+ }, undefined>, undefined>;
843
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
844
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
845
+ }, undefined>, v.StrictObjectSchema<{
846
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
847
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
848
+ readonly type: v.LiteralSchema<"worker", undefined>;
849
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
850
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
851
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
852
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
853
+ }, undefined>, undefined>;
854
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
855
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
856
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
857
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
858
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
859
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
860
+ }, undefined>, undefined>;
861
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
862
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
863
+ }, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
864
+ readonly viewButtons: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
865
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
866
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
867
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
868
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
869
+ }, undefined>, undefined>;
870
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
871
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
872
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
873
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
874
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
875
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
876
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
877
+ }, undefined>, undefined>;
878
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
879
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
880
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
881
+ readonly type: v.LiteralSchema<"view", undefined>;
882
+ }, undefined>, v.StrictObjectSchema<{
883
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
884
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
885
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
886
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
887
+ }, undefined>, undefined>;
888
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
889
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
890
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
891
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
892
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
893
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
894
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
895
+ }, undefined>, undefined>;
896
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
897
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
898
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
899
+ readonly type: v.LiteralSchema<"worker", undefined>;
900
+ }, undefined>], undefined>, undefined>, undefined>;
901
+ }, undefined>, undefined>;
902
+ readonly product: v.OptionalSchema<v.ObjectSchema<{
903
+ readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
904
+ readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
905
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
906
+ readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
907
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
908
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
909
+ readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
910
+ }, undefined>, undefined>, v.MinLengthAction<{
911
+ aclProtected?: boolean | undefined;
912
+ align: "left" | "right" | "center";
913
+ id: string;
914
+ label: string;
915
+ type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
916
+ }[], 1, "At least one grid column is required">]>;
917
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
918
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
919
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
920
+ }, undefined>, undefined>;
921
+ readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
922
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
923
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
924
+ readonly type: v.LiteralSchema<"view", undefined>;
925
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
926
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
927
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
928
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
929
+ }, undefined>, undefined>;
930
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
931
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
932
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
933
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
934
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
935
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
936
+ }, undefined>, undefined>;
937
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
938
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
939
+ }, undefined>, v.StrictObjectSchema<{
940
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
941
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
942
+ readonly type: v.LiteralSchema<"worker", undefined>;
943
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
944
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
945
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
946
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
947
+ }, undefined>, undefined>;
948
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
949
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
950
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
951
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
952
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
953
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
954
+ }, undefined>, undefined>;
955
+ readonly selectionLimit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
956
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
957
+ }, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
958
+ }, undefined>, undefined>;
959
+ }, undefined>;
960
+ /**
961
+ * The Admin UI configuration for an Adobe Commerce application.
962
+ * @experimental
963
+ */
964
+ type AdminUiConfiguration = v.InferInput<typeof AdminUiSchema>;
965
+ /**
966
+ * Grid columns registration configuration.
967
+ * @experimental
968
+ */
969
+ type GridColumns = v.InferInput<typeof GridColumnsSchema>;
970
+ /**
971
+ * A single grid column definition.
972
+ * @experimental
973
+ */
974
+ type GridColumn = v.InferInput<typeof GridColumnSchema>;
975
+ /**
976
+ * A mass action registration entry (view or worker variant).
977
+ * @experimental
978
+ */
979
+ type MassAction = v.InferInput<typeof MassActionSchema>;
980
+ /**
981
+ * A view-type mass action.
982
+ * @experimental
983
+ */
984
+ type ViewMassAction = v.InferInput<typeof ViewMassActionSchema>;
985
+ /**
986
+ * A worker-type mass action.
987
+ * @experimental
988
+ */
989
+ type WorkerMassAction = v.InferInput<typeof WorkerMassActionSchema>;
990
+ /**
991
+ * An order view button registration entry (v2, `adminUi`).
992
+ * @experimental
993
+ */
994
+ type OrderViewButton = v.InferInput<typeof OrderViewButtonSchema>;
995
+ /**
996
+ * Inlined notification strings on an `adminUi` registration entry.
997
+ * @experimental
998
+ */
999
+ type Notifications = v.InferInput<typeof NotificationsSchema>;
1000
+ /**
1001
+ * Admin UI menu registration configuration.
1002
+ * Includes the optional `aclProtected` flag — when `true`, Commerce auto-generates
1003
+ * a per-app ACL resource from `metadata.id` for role-based menu access control.
1004
+ * @experimental
1005
+ */
1006
+ type Menu = v.InferInput<typeof MenuSchema>;
1007
+ /** Config type when `adminUi` configuration is present. */
1008
+ type AdminUiConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
1009
+ adminUi: NonNullable<T["adminUi"]>;
1010
+ };
1011
+ /**
1012
+ * Check if config has Admin UI configuration.
1013
+ * @experimental
1014
+ */
1015
+ declare function hasAdminUi<T extends AnyCommerceAppConfig>(config: T): config is AdminUiConfig<T>;
1016
+ //#endregion
468
1017
  //#region source/config/schema/business-configuration.d.ts
469
1018
  /** Config type when business config is present. */
470
1019
  type AppConfigWithBusinessConfig<T extends AnyCommerceAppConfig> = T & {
@@ -490,13 +1039,13 @@ declare function hasBusinessConfigSchema<T extends AnyCommerceAppConfig>(config:
490
1039
  //#region source/config/schema/eventing.d.ts
491
1040
  /** Schema for event provider configuration */
492
1041
  declare const ProviderSchema: v.ObjectSchema<{
493
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
494
1042
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
495
1043
  readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
1044
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
496
1045
  }, undefined>;
497
1046
  /** Schema for Commerce event configuration */
498
1047
  declare const CommerceEventSchema: v.ObjectSchema<{
499
- readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1048
+ readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
500
1049
  readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
501
1050
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
502
1051
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
@@ -504,35 +1053,33 @@ declare const CommerceEventSchema: v.ObjectSchema<{
504
1053
  name: string;
505
1054
  source?: string | undefined;
506
1055
  }[], 1, "The Commerce event configuration must define at least one field">]>;
1056
+ readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1057
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1058
+ readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1059
+ readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
507
1060
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
508
1061
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
509
1062
  readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
510
1063
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
511
1064
  }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
512
- readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
513
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
514
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
515
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
516
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
517
1065
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1066
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1067
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
518
1068
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
519
1069
  }, undefined>;
520
1070
  /** Schema for external event configuration */
521
1071
  declare const ExternalEventSchema: v.ObjectSchema<{
1072
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
522
1073
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
523
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
524
1074
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1075
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1076
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
525
1077
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
526
1078
  }, undefined>;
527
1079
  /** Schema for Commerce event source configuration */
528
1080
  declare const CommerceEventSourceSchema: v.ObjectSchema<{
529
- readonly provider: v.ObjectSchema<{
530
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
531
- readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
532
- readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
533
- }, undefined>;
534
- readonly events: v.ArraySchema<v.ObjectSchema<{
535
- readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1081
+ readonly events: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1082
+ readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
536
1083
  readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
537
1084
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
538
1085
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
@@ -540,44 +1087,99 @@ declare const CommerceEventSourceSchema: v.ObjectSchema<{
540
1087
  name: string;
541
1088
  source?: string | undefined;
542
1089
  }[], 1, "The Commerce event configuration must define at least one field">]>;
1090
+ readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1091
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1092
+ readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1093
+ readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
543
1094
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
544
1095
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
545
1096
  readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
546
1097
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
547
1098
  }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
548
- readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
549
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
550
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
551
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
552
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
553
1099
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1100
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1101
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
554
1102
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
555
- }, undefined>, "Expected an array of Commerce events">;
556
- }, undefined>;
557
- /** Schema for external event source configuration */
558
- declare const ExternalEventSourceSchema: v.ObjectSchema<{
1103
+ }, undefined>, "Expected an array of Commerce events">, v.MinLengthAction<{
1104
+ destination?: string | undefined;
1105
+ fields: {
1106
+ name: string;
1107
+ source?: string | undefined;
1108
+ }[];
1109
+ force?: boolean | undefined;
1110
+ hipaa_audit_required?: boolean | undefined;
1111
+ name: string;
1112
+ priority?: boolean | undefined;
1113
+ rules?: {
1114
+ field: string;
1115
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
1116
+ value: string;
1117
+ }[] | undefined;
1118
+ description: string;
1119
+ env?: ("paas" | "saas")[] | undefined;
1120
+ label: string;
1121
+ runtimeActions: string[];
1122
+ }[], 1, "The Commerce event source configuration must define at least one event">, v.CheckAction<{
1123
+ destination?: string | undefined;
1124
+ fields: {
1125
+ name: string;
1126
+ source?: string | undefined;
1127
+ }[];
1128
+ force?: boolean | undefined;
1129
+ hipaa_audit_required?: boolean | undefined;
1130
+ name: string;
1131
+ priority?: boolean | undefined;
1132
+ rules?: {
1133
+ field: string;
1134
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
1135
+ value: string;
1136
+ }[] | undefined;
1137
+ description: string;
1138
+ env?: ("paas" | "saas")[] | undefined;
1139
+ label: string;
1140
+ runtimeActions: string[];
1141
+ }[], "Commerce event names must be unique. There must not be two events with the same name under the same provider.">]>;
559
1142
  readonly provider: v.ObjectSchema<{
560
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
561
1143
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
562
1144
  readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
1145
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
563
1146
  }, undefined>;
564
- readonly events: v.ArraySchema<v.ObjectSchema<{
1147
+ }, undefined>;
1148
+ /** Schema for external event source configuration */
1149
+ declare const ExternalEventSourceSchema: v.ObjectSchema<{
1150
+ readonly events: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1151
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
565
1152
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
566
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
567
1153
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1154
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1155
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
568
1156
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
569
- }, undefined>, "Expected an array of external events">;
1157
+ }, undefined>, "Expected an array of external events">, v.MinLengthAction<{
1158
+ hipaa_audit_required?: boolean | undefined;
1159
+ name: string;
1160
+ description: string;
1161
+ env?: ("paas" | "saas")[] | undefined;
1162
+ label: string;
1163
+ runtimeActions: string[];
1164
+ }[], 1, "The external event source configuration must define at least one event">, v.CheckAction<{
1165
+ hipaa_audit_required?: boolean | undefined;
1166
+ name: string;
1167
+ description: string;
1168
+ env?: ("paas" | "saas")[] | undefined;
1169
+ label: string;
1170
+ runtimeActions: string[];
1171
+ }[], "External event names must be unique. There must not be two events with the same name under the same provider.">]>;
1172
+ readonly provider: v.ObjectSchema<{
1173
+ readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
1174
+ readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
1175
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
1176
+ }, undefined>;
570
1177
  }, undefined>;
571
1178
  /** Schema for eventing configuration with separate commerce and external arrays */
572
1179
  declare const EventingSchema: v.ObjectSchema<{
573
1180
  readonly commerce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
574
- readonly provider: v.ObjectSchema<{
575
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
576
- readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
577
- readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
578
- }, undefined>;
579
- readonly events: v.ArraySchema<v.ObjectSchema<{
580
- readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1181
+ readonly events: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1182
+ readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
581
1183
  readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
582
1184
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
583
1185
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
@@ -585,69 +1187,132 @@ declare const EventingSchema: v.ObjectSchema<{
585
1187
  name: string;
586
1188
  source?: string | undefined;
587
1189
  }[], 1, "The Commerce event configuration must define at least one field">]>;
1190
+ readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1191
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1192
+ readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
1193
+ readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
588
1194
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
589
1195
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
590
1196
  readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
591
1197
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
592
1198
  }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
593
- readonly destination: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
594
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
595
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
596
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
597
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
598
1199
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1200
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1201
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
599
1202
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
600
- }, undefined>, "Expected an array of Commerce events">;
601
- }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
602
- provider: {
603
- label: string;
604
- description: string;
605
- key?: string | undefined;
606
- };
607
- events: {
608
- name: string;
1203
+ }, undefined>, "Expected an array of Commerce events">, v.MinLengthAction<{
1204
+ destination?: string | undefined;
609
1205
  fields: {
610
1206
  name: string;
611
1207
  source?: string | undefined;
612
1208
  }[];
1209
+ force?: boolean | undefined;
1210
+ hipaa_audit_required?: boolean | undefined;
1211
+ name: string;
1212
+ priority?: boolean | undefined;
613
1213
  rules?: {
614
1214
  field: string;
615
1215
  operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
616
1216
  value: string;
617
1217
  }[] | undefined;
1218
+ description: string;
1219
+ env?: ("paas" | "saas")[] | undefined;
1220
+ label: string;
1221
+ runtimeActions: string[];
1222
+ }[], 1, "The Commerce event source configuration must define at least one event">, v.CheckAction<{
618
1223
  destination?: string | undefined;
1224
+ fields: {
1225
+ name: string;
1226
+ source?: string | undefined;
1227
+ }[];
1228
+ force?: boolean | undefined;
619
1229
  hipaa_audit_required?: boolean | undefined;
1230
+ name: string;
620
1231
  priority?: boolean | undefined;
621
- force?: boolean | undefined;
622
- label: string;
1232
+ rules?: {
1233
+ field: string;
1234
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
1235
+ value: string;
1236
+ }[] | undefined;
623
1237
  description: string;
1238
+ env?: ("paas" | "saas")[] | undefined;
1239
+ label: string;
624
1240
  runtimeActions: string[];
625
- }[];
626
- }[], "Commerce provider labels must be unique">]>, undefined>;
627
- readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1241
+ }[], "Commerce event names must be unique. There must not be two events with the same name under the same provider.">]>;
628
1242
  readonly provider: v.ObjectSchema<{
629
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
630
1243
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
631
1244
  readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
1245
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
632
1246
  }, undefined>;
633
- readonly events: v.ArraySchema<v.ObjectSchema<{
1247
+ }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
1248
+ events: {
1249
+ destination?: string | undefined;
1250
+ fields: {
1251
+ name: string;
1252
+ source?: string | undefined;
1253
+ }[];
1254
+ force?: boolean | undefined;
1255
+ hipaa_audit_required?: boolean | undefined;
1256
+ name: string;
1257
+ priority?: boolean | undefined;
1258
+ rules?: {
1259
+ field: string;
1260
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
1261
+ value: string;
1262
+ }[] | undefined;
1263
+ description: string;
1264
+ env?: ("paas" | "saas")[] | undefined;
1265
+ label: string;
1266
+ runtimeActions: string[];
1267
+ }[];
1268
+ provider: {
1269
+ description: string;
1270
+ key?: string | undefined;
1271
+ label: string;
1272
+ };
1273
+ }[], "Commerce provider labels must be unique">]>, undefined>;
1274
+ readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1275
+ readonly events: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1276
+ readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
634
1277
  readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
635
- readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
636
1278
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
1279
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1280
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
637
1281
  readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
638
- }, undefined>, "Expected an array of external events">;
639
- }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
640
- provider: {
1282
+ }, undefined>, "Expected an array of external events">, v.MinLengthAction<{
1283
+ hipaa_audit_required?: boolean | undefined;
1284
+ name: string;
1285
+ description: string;
1286
+ env?: ("paas" | "saas")[] | undefined;
641
1287
  label: string;
1288
+ runtimeActions: string[];
1289
+ }[], 1, "The external event source configuration must define at least one event">, v.CheckAction<{
1290
+ hipaa_audit_required?: boolean | undefined;
1291
+ name: string;
642
1292
  description: string;
643
- key?: string | undefined;
644
- };
1293
+ env?: ("paas" | "saas")[] | undefined;
1294
+ label: string;
1295
+ runtimeActions: string[];
1296
+ }[], "External event names must be unique. There must not be two events with the same name under the same provider.">]>;
1297
+ readonly provider: v.ObjectSchema<{
1298
+ readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
1299
+ readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
1300
+ readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
1301
+ }, undefined>;
1302
+ }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
645
1303
  events: {
1304
+ hipaa_audit_required?: boolean | undefined;
646
1305
  name: string;
647
- label: string;
648
1306
  description: string;
1307
+ env?: ("paas" | "saas")[] | undefined;
1308
+ label: string;
649
1309
  runtimeActions: string[];
650
1310
  }[];
1311
+ provider: {
1312
+ description: string;
1313
+ key?: string | undefined;
1314
+ label: string;
1315
+ };
651
1316
  }[], "External provider labels must be unique">]>, undefined>;
652
1317
  }, undefined>;
653
1318
  /** The eventing configuration for an Adobe Commerce application */
@@ -721,9 +1386,9 @@ declare function hasCustomInstallationSteps<T extends AnyCommerceAppConfig>(conf
721
1386
  //#region source/config/schema/metadata.d.ts
722
1387
  /** The schema for the metadata of the application. */
723
1388
  declare const MetadataSchema: v.ObjectSchema<{
724
- readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 100, "The application id must not be longer than 100 characters">]>;
725
- readonly displayName: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 50, "The application display name must not be longer than 50 characters">]>;
726
1389
  readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 255, "The metadata description must not be longer than 255 characters">]>;
1390
+ readonly displayName: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 50, "The application display name must not be longer than 50 characters">]>;
1391
+ readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 100, "The application id must not be longer than 100 characters">]>;
727
1392
  readonly version: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.RegexAction<string, "The version must follow semantic versioning (semver) format: Major.Minor.Patch (e.g., '1.0.0', '2.3.1')">]>;
728
1393
  }, undefined>;
729
1394
  /** The metadata associated to an Adobe Commerce application. */
@@ -757,259 +1422,265 @@ declare const WebhookHeaderSchema: v.ObjectSchema<{
757
1422
  }, undefined>;
758
1423
  /** Schema for the nested webhook payload without url — used when runtimeAction resolves the URL at runtime. */
759
1424
  declare const WebhookDefinitionBaseSchema: v.ObjectSchema<{
760
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
761
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
762
1425
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
763
1426
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
764
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
765
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
766
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
767
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
768
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
769
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
770
1427
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
771
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
772
1428
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
773
1429
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
774
1430
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
775
1431
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1432
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1433
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1434
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1435
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1436
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1437
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1438
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1439
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
776
1440
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
777
1441
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
778
1442
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
779
1443
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
780
1444
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
781
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
782
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
783
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
784
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1445
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1446
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1447
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1448
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1449
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
785
1450
  }, undefined>;
786
1451
  /** Schema for the nested webhook payload with a required url. */
787
1452
  declare const WebhookDefinitionWithUrlSchema: v.ObjectSchema<{
788
1453
  readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
789
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
790
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
791
1454
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
792
1455
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
793
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
794
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
795
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
796
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
797
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
798
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
799
1456
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
800
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
801
1457
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
802
1458
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
803
1459
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
804
1460
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1461
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1462
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1463
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1464
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1465
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1466
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1467
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1468
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
805
1469
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
806
1470
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
807
1471
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
808
1472
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
809
1473
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
810
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
811
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
812
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
813
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1474
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1475
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1476
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1477
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1478
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
814
1479
  }, undefined>;
815
1480
  /** Schema for a single webhook entry — either runtimeAction (no url) or explicit url (no runtimeAction). */
816
1481
  declare const WebhookEntrySchema: v.UnionSchema<[v.ObjectSchema<{
817
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
818
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
819
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
820
- readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
821
1482
  readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1483
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
822
1484
  readonly webhook: v.ObjectSchema<{
823
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
824
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
825
1485
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
826
1486
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
827
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
828
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
829
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
830
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
831
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
832
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
833
1487
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
834
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
835
1488
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
836
1489
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
837
1490
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
838
1491
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1492
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1493
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1494
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1495
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1496
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1497
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1498
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1499
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
839
1500
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
840
1501
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
841
1502
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
842
1503
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
843
1504
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
844
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
845
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
846
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
847
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1505
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1506
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1507
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1508
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1509
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
848
1510
  }, undefined>;
849
- }, undefined>, v.ObjectSchema<{
850
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
851
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
852
1511
  readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
1512
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1513
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1514
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1515
+ }, undefined>, v.ObjectSchema<{
853
1516
  readonly webhook: v.ObjectSchema<{
854
1517
  readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
855
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
856
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
857
1518
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
858
1519
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
859
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
860
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
861
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
862
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
863
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
864
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
865
1520
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
866
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
867
1521
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
868
1522
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
869
1523
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
870
1524
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1525
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1526
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1527
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1528
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1529
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1530
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1531
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1532
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
871
1533
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
872
1534
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
873
1535
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
874
1536
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
875
1537
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
876
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
877
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
878
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
879
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1538
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1539
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1540
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1541
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1542
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
880
1543
  }, undefined>;
1544
+ readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
1545
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1546
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1547
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
881
1548
  }, undefined>], "Each webhook entry must define either a 'runtimeAction' (to resolve the URL from a runtime action) or an explicit 'url' inside the 'webhook' object, but not both">;
882
1549
  /** Schema for the optional webhooks array (when present, must have at least one item). */
883
1550
  declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
884
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
885
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
886
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
887
- readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
888
1551
  readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1552
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
889
1553
  readonly webhook: v.ObjectSchema<{
890
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
891
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
892
1554
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
893
1555
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
894
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
895
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
896
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
897
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
898
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
899
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
900
1556
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
901
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
902
1557
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
903
1558
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
904
1559
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
905
1560
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1561
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1562
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1563
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1564
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1565
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1566
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1567
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1568
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
906
1569
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
907
1570
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
908
1571
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
909
1572
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
910
1573
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
911
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
912
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
913
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
914
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1574
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1575
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1576
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1577
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1578
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
915
1579
  }, undefined>;
916
- }, undefined>, v.ObjectSchema<{
917
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
918
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
919
1580
  readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
1581
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1582
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1583
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1584
+ }, undefined>, v.ObjectSchema<{
920
1585
  readonly webhook: v.ObjectSchema<{
921
1586
  readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
922
- readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
923
- readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
924
1587
  readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
925
1588
  readonly batch_order: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
926
- readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
927
- readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
928
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
929
- readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
930
- readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
931
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
932
1589
  readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
933
- readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
934
1590
  readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
935
1591
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
936
1592
  readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
937
1593
  }, undefined>, "Expected an array of webhook field objects">, undefined>;
1594
+ readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1595
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1596
+ readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1597
+ }, undefined>, "Expected an array of webhook header objects">, undefined>;
1598
+ readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
1599
+ readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1600
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1601
+ readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
938
1602
  readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
939
1603
  readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
940
1604
  readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
941
1605
  readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
942
1606
  }, undefined>, "Expected an array of webhook rule objects">, undefined>;
943
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
944
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
945
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
946
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
1607
+ readonly soft_timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1608
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1609
+ readonly ttl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1610
+ readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1611
+ readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
947
1612
  }, undefined>;
1613
+ readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
1614
+ readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1615
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
1616
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
948
1617
  }, undefined>], "Each webhook entry must define either a 'runtimeAction' (to resolve the URL from a runtime action) or an explicit 'url' inside the 'webhook' object, but not both">, "Expected an array of webhook entries">, v.MinLengthAction<({
949
- label: string;
950
- description: string;
951
- category?: "validation" | "append" | "modification" | undefined;
952
- runtimeAction: string;
953
1618
  requireAdobeAuth?: boolean | undefined;
1619
+ runtimeAction: string;
954
1620
  webhook: {
955
- webhook_method: string;
956
- webhook_type: string;
957
1621
  batch_name: string;
958
1622
  batch_order?: number | undefined;
959
- hook_name: string;
960
- priority?: number | undefined;
961
- required?: boolean | undefined;
962
- soft_timeout?: number | undefined;
963
- timeout?: number | undefined;
964
- method: string;
965
1623
  fallback_error_message?: string | undefined;
966
- ttl?: number | undefined;
967
1624
  fields?: {
968
1625
  name: string;
969
1626
  source?: string | undefined;
970
1627
  }[] | undefined;
1628
+ headers?: {
1629
+ name: string;
1630
+ value: string;
1631
+ }[] | undefined;
1632
+ hook_name: string;
1633
+ method: string;
1634
+ priority?: number | undefined;
1635
+ required?: boolean | undefined;
971
1636
  rules?: {
972
1637
  field: string;
973
1638
  operator: string;
974
1639
  value: string;
975
1640
  }[] | undefined;
976
- headers?: {
977
- name: string;
978
- value: string;
979
- }[] | undefined;
1641
+ soft_timeout?: number | undefined;
1642
+ timeout?: number | undefined;
1643
+ ttl?: number | undefined;
1644
+ webhook_method: string;
1645
+ webhook_type: string;
980
1646
  };
981
- } | {
982
- label: string;
983
- description: string;
984
1647
  category?: "validation" | "append" | "modification" | undefined;
1648
+ description: string;
1649
+ env?: ("paas" | "saas")[] | undefined;
1650
+ label: string;
1651
+ } | {
985
1652
  webhook: {
986
1653
  url: string;
987
- webhook_method: string;
988
- webhook_type: string;
989
1654
  batch_name: string;
990
1655
  batch_order?: number | undefined;
991
- hook_name: string;
992
- priority?: number | undefined;
993
- required?: boolean | undefined;
994
- soft_timeout?: number | undefined;
995
- timeout?: number | undefined;
996
- method: string;
997
1656
  fallback_error_message?: string | undefined;
998
- ttl?: number | undefined;
999
1657
  fields?: {
1000
1658
  name: string;
1001
1659
  source?: string | undefined;
1002
1660
  }[] | undefined;
1661
+ headers?: {
1662
+ name: string;
1663
+ value: string;
1664
+ }[] | undefined;
1665
+ hook_name: string;
1666
+ method: string;
1667
+ priority?: number | undefined;
1668
+ required?: boolean | undefined;
1003
1669
  rules?: {
1004
1670
  field: string;
1005
1671
  operator: string;
1006
1672
  value: string;
1007
1673
  }[] | undefined;
1008
- headers?: {
1009
- name: string;
1010
- value: string;
1011
- }[] | undefined;
1674
+ soft_timeout?: number | undefined;
1675
+ timeout?: number | undefined;
1676
+ ttl?: number | undefined;
1677
+ webhook_method: string;
1678
+ webhook_type: string;
1012
1679
  };
1680
+ category?: "validation" | "append" | "modification" | undefined;
1681
+ description: string;
1682
+ env?: ("paas" | "saas")[] | undefined;
1683
+ label: string;
1013
1684
  })[], 1, "webhooks array must contain at least one webhook when present">]>, undefined>;
1014
1685
  /** Webhook field configuration */
1015
1686
  type WebhookField = v.InferInput<typeof WebhookFieldSchema>;
@@ -1033,4 +1704,4 @@ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputMode
1033
1704
  */
1034
1705
  declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
1035
1706
  //#endregion
1036
- export { type AdminUiSdkConfiguration, type AdminUiSdkRegistration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type BannerNotification, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CustomFee, type CustomerMassAction, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumns, type MenuItem, type OrderMassAction, type OrderViewButton, type ProductMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, defineConfig, getConfigDomains, hasAdminUiSdk, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
1707
+ 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 EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type MassAction, type Menu, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };