@adobe/aio-commerce-lib-app 1.4.0 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/cjs/actions/app-config.cjs +17 -4
  3. package/dist/cjs/actions/app-config.d.cts +3 -4
  4. package/dist/cjs/actions/config.cjs +21 -16
  5. package/dist/cjs/actions/config.d.cts +1 -2
  6. package/dist/cjs/actions/installation.cjs +20 -14
  7. package/dist/cjs/actions/installation.d.cts +4 -5
  8. package/dist/cjs/actions/registration.cjs +1 -2
  9. package/dist/cjs/actions/registration.d.cts +2 -3
  10. package/dist/cjs/actions/scope-tree.cjs +5 -5
  11. package/dist/cjs/actions/scope-tree.d.cts +1 -4
  12. package/dist/cjs/{admin-ui-sdk-BiSopnKI.d.cts → admin-ui-sdk-DZZJCrdT.d.cts} +1 -1
  13. package/dist/cjs/{app-C6kImBl7.d.cts → app-CakwxQvs.d.cts} +129 -20
  14. package/dist/cjs/commands/index.cjs +236 -45
  15. package/dist/cjs/commands/templates/app-management/app-config.js.template +2 -2
  16. package/dist/cjs/config/index.cjs +3 -3
  17. package/dist/cjs/config/index.d.cts +354 -391
  18. package/dist/cjs/{config-ct-qMOGj.cjs → config-FNMclIFO.cjs} +4 -6
  19. package/dist/cjs/{error-C5LNOZ4f.cjs → error-D-N0PKSl.cjs} +0 -1
  20. package/dist/cjs/{index-B5WKJ3hJ.d.cts → index-Dw2NvVOY.d.cts} +2 -2
  21. package/dist/cjs/{logging-BTevALnL.cjs → logging-BVz3weoC.cjs} +1 -1
  22. package/dist/cjs/management/index.cjs +1 -1
  23. package/dist/cjs/management/index.d.cts +3 -3
  24. package/dist/cjs/{management-D1QXg4YU.cjs → management-Cvsz4VMf.cjs} +34 -9
  25. package/dist/cjs/{router-CFErodHU.cjs → router-BOR7T6qR.cjs} +1 -1
  26. package/dist/cjs/{schemas-CukVpc19.cjs → schemas-FngDuIeo.cjs} +1 -1
  27. package/dist/{es/step-0eI2x4C9.d.mts → cjs/step-CKVE0aJi.d.cts} +3 -3
  28. package/dist/cjs/{validate-b_bI4mDb.cjs → validate-DydOAZha.cjs} +4 -4
  29. package/dist/cjs/{webhooks-DS1BtgED.cjs → webhooks-tbZy9G3p.cjs} +4 -4
  30. package/dist/es/actions/app-config.d.mts +3 -4
  31. package/dist/es/actions/app-config.mjs +18 -4
  32. package/dist/es/actions/config.d.mts +1 -2
  33. package/dist/es/actions/config.mjs +20 -15
  34. package/dist/es/actions/installation.d.mts +4 -5
  35. package/dist/es/actions/installation.mjs +19 -13
  36. package/dist/es/actions/registration.d.mts +2 -3
  37. package/dist/es/actions/registration.mjs +1 -1
  38. package/dist/es/actions/scope-tree.d.mts +1 -4
  39. package/dist/es/actions/scope-tree.mjs +4 -4
  40. package/dist/es/{admin-ui-sdk-CCo2SWiL.d.mts → admin-ui-sdk-hu6iWr0A.d.mts} +1 -1
  41. package/dist/es/{app-DcY6dJiQ.d.mts → app-CakwxQvs.d.mts} +129 -20
  42. package/dist/es/commands/index.mjs +218 -27
  43. package/dist/es/commands/templates/app-management/app-config.js.template +2 -2
  44. package/dist/es/config/index.d.mts +354 -391
  45. package/dist/es/config/index.mjs +3 -3
  46. package/dist/es/{config-DGPFTk6w.mjs → config-CcE0EBG7.mjs} +4 -5
  47. package/dist/es/{index-CCov0odd.d.mts → index-Bo0tQsVq.d.mts} +2 -2
  48. package/dist/es/management/index.d.mts +3 -3
  49. package/dist/es/management/index.mjs +1 -1
  50. package/dist/es/{management-CCsOfniv.mjs → management-BZ4Y6lVp.mjs} +33 -8
  51. package/dist/{cjs/step-CWYnKbga.d.cts → es/step-D64mMPrt.d.mts} +3 -3
  52. package/dist/es/{validate-Dn3lLTGj.mjs → validate-Du3LhCre.mjs} +3 -3
  53. package/dist/es/{webhooks-Dhrkkip7.mjs → webhooks-B5oq9ULL.mjs} +3 -3
  54. package/package.json +16 -11
  55. /package/dist/cjs/{chunk-DS2yp5vX.cjs → chunk-Cozy-1ZF.cjs} +0 -0
  56. /package/dist/es/{error-DHlYzkbb.mjs → error-_RMwtrUA.mjs} +0 -0
  57. /package/dist/es/{logging-XIUXDK5T.mjs → logging-DbJHXSKh.mjs} +0 -0
  58. /package/dist/es/{router-BxaxEEu3.mjs → router-D58JJHHA.mjs} +0 -0
  59. /package/dist/es/{schemas-DOcnD16x.mjs → schemas-hRovglBF.mjs} +0 -0
@@ -25,91 +25,163 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
25
25
  }, undefined>;
26
26
  readonly businessConfig: v.OptionalSchema<v.ObjectSchema<{
27
27
  readonly schema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.VariantSchema<"selectionMode", [v.ObjectSchema<{
28
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
29
28
  readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
29
+ readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
30
+ readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
30
31
  readonly options: v.ArraySchema<v.ObjectSchema<{
31
32
  readonly label: v.StringSchema<"Expected a string for the option label">;
32
33
  readonly value: v.StringSchema<"Expected a string for the option value">;
33
34
  }, undefined>, "Expected an array of list options">;
34
- readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
35
35
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
36
36
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
37
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
37
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
38
38
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
39
39
  }, undefined>, v.ObjectSchema<{
40
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
41
40
  readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
41
+ readonly default: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for each default value">, v.NonEmptyAction<string, "Each default value must not be empty">]>, "Expected an array of default values">, readonly []>;
42
+ readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
42
43
  readonly options: v.ArraySchema<v.ObjectSchema<{
43
44
  readonly label: v.StringSchema<"Expected a string for the option label">;
44
45
  readonly value: v.StringSchema<"Expected a string for the option value">;
45
46
  }, undefined>, "Expected an array of list options">;
46
- readonly default: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for each default value">, v.NonEmptyAction<string, "Each default value must not be empty">]>, "Expected an array of default values">, readonly []>;
47
47
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
48
48
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
49
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
49
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
50
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
51
+ }, undefined>], undefined>, v.VariantSchema<"selectionMode", [v.ObjectSchema<{
52
+ readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
53
+ readonly default: v.CustomSchema<(resolvedOptions: {
54
+ label: string;
55
+ value: string;
56
+ }[]) => string, v.ErrorMessage<v.CustomIssue> | undefined>;
57
+ readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
58
+ readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
59
+ label: string;
60
+ value: string;
61
+ }[] | Promise<{
62
+ label: string;
63
+ value: string;
64
+ }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
65
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
66
+ readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
67
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
68
+ readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
69
+ }, undefined>, v.ObjectSchema<{
70
+ readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
71
+ readonly default: v.OptionalSchema<v.CustomSchema<(resolvedOptions: {
72
+ label: string;
73
+ value: string;
74
+ }[]) => string[], v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
75
+ readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
76
+ readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
77
+ label: string;
78
+ value: string;
79
+ }[] | Promise<{
80
+ label: string;
81
+ value: string;
82
+ }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
83
+ readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
84
+ readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
85
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
50
86
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
51
87
  }, undefined>], undefined>, v.ObjectSchema<{
52
88
  readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
53
89
  readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
54
90
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
55
91
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
56
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
92
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
57
93
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
58
94
  }, undefined>, v.ObjectSchema<{
59
95
  readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
60
96
  readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
61
97
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
62
98
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
63
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
99
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
64
100
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
65
101
  }, undefined>, v.ObjectSchema<{
66
102
  readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
67
103
  readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default email value">, v.EmailAction<string, "The email must be a valid email address">]>], undefined>, "">;
68
104
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
69
105
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
70
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
106
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
71
107
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
72
108
  }, undefined>, v.ObjectSchema<{
73
109
  readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
74
110
  readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default URL value">, v.UrlAction<string, "The URL must be a valid URL">]>], undefined>, "">;
75
111
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
76
112
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
77
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
113
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
78
114
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
79
115
  }, undefined>, v.ObjectSchema<{
80
116
  readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
81
117
  readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default phone number value">, v.RegexAction<string, "The phone number must contain only numbers and/or country codes">]>], undefined>, "">;
82
118
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
83
119
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
84
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
120
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
85
121
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
86
122
  }, undefined>, v.ObjectSchema<{
87
123
  readonly type: v.LiteralSchema<"boolean", "Expected the type to be 'boolean'">;
88
124
  readonly default: v.OptionalSchema<v.BooleanSchema<"Expected a boolean for the default value">, false>;
89
125
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
90
126
  readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
91
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
127
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field description">, v.CheckAction<string, "Field description contains an invalid markdown URL.">]>, undefined>;
92
128
  readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
93
129
  }, undefined>], undefined>, "Expected an array of configuration fields">, v.MinLengthAction<({
94
- type: "list";
95
130
  selectionMode: "single";
131
+ default: string;
132
+ type: "list";
96
133
  options: {
97
134
  label: string;
98
135
  value: string;
99
136
  }[];
100
- default: string;
101
137
  name: string;
102
138
  label?: string | undefined;
103
139
  description?: string | undefined;
104
140
  env?: ("paas" | "saas")[] | undefined;
105
141
  } | {
106
- type: "list";
107
142
  selectionMode: "multiple";
143
+ default: string[];
144
+ type: "list";
108
145
  options: {
109
146
  label: string;
110
147
  value: string;
111
148
  }[];
112
- default: string[];
149
+ name: string;
150
+ label?: string | undefined;
151
+ description?: string | undefined;
152
+ env?: ("paas" | "saas")[] | undefined;
153
+ } | {
154
+ selectionMode: "single";
155
+ default: (resolvedOptions: {
156
+ label: string;
157
+ value: string;
158
+ }[]) => string;
159
+ type: "dynamicList";
160
+ options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
161
+ label: string;
162
+ value: string;
163
+ }[] | Promise<{
164
+ label: string;
165
+ value: string;
166
+ }[]>;
167
+ name: string;
168
+ label?: string | undefined;
169
+ description?: string | undefined;
170
+ env?: ("paas" | "saas")[] | undefined;
171
+ } | {
172
+ selectionMode: "multiple";
173
+ default?: ((resolvedOptions: {
174
+ label: string;
175
+ value: string;
176
+ }[]) => string[]) | undefined;
177
+ type: "dynamicList";
178
+ options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
179
+ label: string;
180
+ value: string;
181
+ }[] | Promise<{
182
+ label: string;
183
+ value: string;
184
+ }[]>;
113
185
  name: string;
114
186
  label?: string | undefined;
115
187
  description?: string | undefined;
@@ -159,7 +231,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
159
231
  })[], 1, "At least one configuration parameter is required">]>, readonly []>;
160
232
  }, undefined>, undefined>;
161
233
  readonly eventing: v.OptionalSchema<v.ObjectSchema<{
162
- readonly commerce: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
234
+ readonly commerce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
163
235
  readonly provider: v.ObjectSchema<{
164
236
  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">]>;
165
237
  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">]>;
@@ -187,8 +259,33 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
187
259
  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">]>;
188
260
  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>">;
189
261
  }, undefined>, "Expected an array of Commerce events">;
190
- }, undefined>, "Expected an array of Commerce event sources">, undefined>;
191
- readonly external: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
262
+ }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
263
+ provider: {
264
+ label: string;
265
+ description: string;
266
+ key?: string | undefined;
267
+ };
268
+ events: {
269
+ name: string;
270
+ fields: {
271
+ name: string;
272
+ source?: string | undefined;
273
+ }[];
274
+ rules?: {
275
+ field: string;
276
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
277
+ value: string;
278
+ }[] | undefined;
279
+ destination?: string | undefined;
280
+ hipaa_audit_required?: boolean | undefined;
281
+ priority?: boolean | undefined;
282
+ force?: boolean | undefined;
283
+ label: string;
284
+ description: string;
285
+ runtimeActions: string[];
286
+ }[];
287
+ }[], "Commerce provider labels must be unique">]>, undefined>;
288
+ readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
192
289
  readonly provider: v.ObjectSchema<{
193
290
  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">]>;
194
291
  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">]>;
@@ -200,7 +297,19 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
200
297
  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">]>;
201
298
  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>">;
202
299
  }, undefined>, "Expected an array of external events">;
203
- }, undefined>, "Expected an array of external event sources">, undefined>;
300
+ }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
301
+ provider: {
302
+ label: string;
303
+ description: string;
304
+ key?: string | undefined;
305
+ };
306
+ events: {
307
+ name: string;
308
+ label: string;
309
+ description: string;
310
+ runtimeActions: string[];
311
+ }[];
312
+ }[], "External provider labels must be unique">]>, undefined>;
204
313
  }, undefined>, undefined>;
205
314
  readonly adminUiSdk: v.OptionalSchema<v.ObjectSchema<{
206
315
  readonly registration: v.ObjectSchema<{