@adobe/aio-commerce-lib-app 1.6.0 → 1.7.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 (54) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/actions/app-config/index.cjs +202 -0
  3. package/dist/cjs/actions/app-config/index.d.cts +31 -0
  4. package/dist/cjs/actions/{config.cjs → config/index.cjs} +61 -33
  5. package/dist/{es/actions/config.d.mts → cjs/actions/config/index.d.cts} +10 -7
  6. package/dist/cjs/actions/{installation.cjs → installation/index.cjs} +43 -30
  7. package/dist/{es/actions/installation.d.mts → cjs/actions/installation/index.d.cts} +10 -8
  8. package/dist/cjs/actions/{registration.cjs → registration/index.cjs} +16 -6
  9. package/dist/cjs/actions/{registration.d.cts → registration/index.d.cts} +8 -8
  10. package/dist/cjs/actions/{scope-tree.cjs → scope-tree/index.cjs} +51 -14
  11. package/dist/cjs/actions/{scope-tree.d.cts → scope-tree/index.d.cts} +1 -1
  12. package/dist/cjs/{admin-ui-sdk-DZZJCrdT.d.cts → admin-ui-sdk-EU915zlR.d.cts} +7 -8
  13. package/dist/cjs/app-DrYHK-z1.d.cts +1629 -0
  14. package/dist/cjs/commands/index.cjs +12 -18
  15. package/dist/cjs/config/index.cjs +2 -2
  16. package/dist/cjs/config/index.d.cts +36 -976
  17. package/dist/cjs/{config-FNMclIFO.cjs → config-D-s0GSep.cjs} +1 -1
  18. package/dist/cjs/{index-Dw2NvVOY.d.cts → index-B5gJ-q4U.d.cts} +172 -3
  19. package/dist/{es/actions/app-config.d.mts → cjs/index-BXm8UbK7.d.cts} +1 -13
  20. package/dist/cjs/management/index.cjs +1 -1
  21. package/dist/cjs/management/index.d.cts +1 -2
  22. package/dist/cjs/{management-Cvsz4VMf.cjs → management-Dehz9qSJ.cjs} +81 -43
  23. package/dist/cjs/openapi-Cux6K4ZD.cjs +3072 -0
  24. package/dist/cjs/{validate-DydOAZha.cjs → validate-oAOpyFyb.cjs} +46 -14
  25. package/dist/es/actions/app-config/index.d.mts +31 -0
  26. package/dist/es/actions/app-config/index.mjs +199 -0
  27. package/dist/{cjs/actions/config.d.cts → es/actions/config/index.d.mts} +10 -7
  28. package/dist/es/actions/{config.mjs → config/index.mjs} +60 -32
  29. package/dist/{cjs/actions/installation.d.cts → es/actions/installation/index.d.mts} +10 -8
  30. package/dist/es/actions/{installation.mjs → installation/index.mjs} +42 -30
  31. package/dist/es/actions/{registration.d.mts → registration/index.d.mts} +8 -8
  32. package/dist/es/actions/{registration.mjs → registration/index.mjs} +16 -6
  33. package/dist/es/actions/{scope-tree.d.mts → scope-tree/index.d.mts} +1 -1
  34. package/dist/es/actions/{scope-tree.mjs → scope-tree/index.mjs} +50 -13
  35. package/dist/es/{admin-ui-sdk-hu6iWr0A.d.mts → admin-ui-sdk-BwnD0xjK.d.mts} +6 -9
  36. package/dist/es/app-DrYHK-z1.d.mts +1629 -0
  37. package/dist/es/commands/index.mjs +12 -18
  38. package/dist/es/config/index.d.mts +36 -975
  39. package/dist/es/config/index.mjs +2 -2
  40. package/dist/es/{config-CcE0EBG7.mjs → config-3I4eLyyR.mjs} +1 -1
  41. package/dist/{cjs/actions/app-config.d.cts → es/index-B0XqHwY5.d.mts} +2 -14
  42. package/dist/es/{index-Bo0tQsVq.d.mts → index-DLMbTtKS.d.mts} +172 -3
  43. package/dist/es/management/index.d.mts +1 -2
  44. package/dist/es/management/index.mjs +1 -1
  45. package/dist/es/{management-BZ4Y6lVp.mjs → management-BUX-w2Ji.mjs} +81 -44
  46. package/dist/es/openapi-B6uP0SRn.mjs +3024 -0
  47. package/dist/es/{validate-Du3LhCre.mjs → validate-Dfajrp99.mjs} +35 -15
  48. package/package.json +17 -10
  49. package/dist/cjs/actions/app-config.cjs +0 -54
  50. package/dist/cjs/app-CakwxQvs.d.cts +0 -673
  51. package/dist/cjs/step-CKVE0aJi.d.cts +0 -187
  52. package/dist/es/actions/app-config.mjs +0 -53
  53. package/dist/es/app-CakwxQvs.d.mts +0 -673
  54. package/dist/es/step-D64mMPrt.d.mts +0 -187
@@ -12,10 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfigOutputModel, t as CommerceAppConfig } from "../app-CakwxQvs.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-hu6iWr0A.mjs";
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
17
  import * as v from "valibot";
18
- import { Get, SetRequiredDeep } from "type-fest";
18
+ import { Get } from "type-fest";
19
19
 
20
20
  //#region source/config/lib/define.d.ts
21
21
  /**
@@ -392,960 +392,6 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
392
392
  [key: string]: unknown;
393
393
  }>;
394
394
  //#endregion
395
- //#region source/config/schema/domains.d.ts
396
- /** The individual validatable domains of the app config. */
397
- declare const CommerceAppConfigSchemas: {
398
- readonly metadata: v.ObjectSchema<{
399
- 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">]>;
400
- 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">]>;
401
- 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">]>;
402
- 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')">]>;
403
- }, undefined>;
404
- readonly businessConfig: v.ObjectSchema<{
405
- readonly schema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.VariantSchema<"selectionMode", [v.ObjectSchema<{
406
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
407
- readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
408
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
409
- readonly options: v.ArraySchema<v.ObjectSchema<{
410
- readonly label: v.StringSchema<"Expected a string for the option label">;
411
- readonly value: v.StringSchema<"Expected a string for the option value">;
412
- }, undefined>, "Expected an array of list options">;
413
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
414
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
415
- 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>;
416
- 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>;
417
- }, undefined>, v.ObjectSchema<{
418
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
419
- 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 []>;
420
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
421
- readonly options: v.ArraySchema<v.ObjectSchema<{
422
- readonly label: v.StringSchema<"Expected a string for the option label">;
423
- readonly value: v.StringSchema<"Expected a string for the option value">;
424
- }, undefined>, "Expected an array of list options">;
425
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
426
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
427
- 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>;
428
- 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>;
429
- }, undefined>], undefined>, v.VariantSchema<"selectionMode", [v.ObjectSchema<{
430
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
431
- readonly default: v.CustomSchema<(resolvedOptions: {
432
- label: string;
433
- value: string;
434
- }[]) => string, v.ErrorMessage<v.CustomIssue> | undefined>;
435
- readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
436
- readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
437
- label: string;
438
- value: string;
439
- }[] | Promise<{
440
- label: string;
441
- value: string;
442
- }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
443
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
444
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
445
- 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>;
446
- 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>;
447
- }, undefined>, v.ObjectSchema<{
448
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
449
- readonly default: v.OptionalSchema<v.CustomSchema<(resolvedOptions: {
450
- label: string;
451
- value: string;
452
- }[]) => string[], v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
453
- readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
454
- readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
455
- label: string;
456
- value: string;
457
- }[] | Promise<{
458
- label: string;
459
- value: string;
460
- }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
461
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
462
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
463
- 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>;
464
- 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>;
465
- }, undefined>], undefined>, v.ObjectSchema<{
466
- readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
467
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
468
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
469
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
470
- 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>;
471
- 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>;
472
- }, undefined>, v.ObjectSchema<{
473
- readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
474
- readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
475
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
476
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
477
- 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>;
478
- 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>;
479
- }, undefined>, v.ObjectSchema<{
480
- readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
481
- 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>, "">;
482
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
483
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
484
- 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>;
485
- 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>;
486
- }, undefined>, v.ObjectSchema<{
487
- readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
488
- 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>, "">;
489
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
490
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
491
- 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>;
492
- 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>;
493
- }, undefined>, v.ObjectSchema<{
494
- readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
495
- 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>, "">;
496
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
497
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
498
- 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>;
499
- 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>;
500
- }, undefined>, v.ObjectSchema<{
501
- readonly type: v.LiteralSchema<"boolean", "Expected the type to be 'boolean'">;
502
- readonly default: v.OptionalSchema<v.BooleanSchema<"Expected a boolean for the default value">, false>;
503
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
504
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
505
- 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>;
506
- 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>;
507
- }, undefined>], undefined>, "Expected an array of configuration fields">, v.MinLengthAction<({
508
- selectionMode: "single";
509
- default: string;
510
- type: "list";
511
- options: {
512
- label: string;
513
- value: string;
514
- }[];
515
- name: string;
516
- label?: string | undefined;
517
- description?: string | undefined;
518
- env?: ("paas" | "saas")[] | undefined;
519
- } | {
520
- selectionMode: "multiple";
521
- default: string[];
522
- type: "list";
523
- options: {
524
- label: string;
525
- value: string;
526
- }[];
527
- name: string;
528
- label?: string | undefined;
529
- description?: string | undefined;
530
- env?: ("paas" | "saas")[] | undefined;
531
- } | {
532
- selectionMode: "single";
533
- default: (resolvedOptions: {
534
- label: string;
535
- value: string;
536
- }[]) => string;
537
- type: "dynamicList";
538
- options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
539
- label: string;
540
- value: string;
541
- }[] | Promise<{
542
- label: string;
543
- value: string;
544
- }[]>;
545
- name: string;
546
- label?: string | undefined;
547
- description?: string | undefined;
548
- env?: ("paas" | "saas")[] | undefined;
549
- } | {
550
- selectionMode: "multiple";
551
- default?: ((resolvedOptions: {
552
- label: string;
553
- value: string;
554
- }[]) => string[]) | undefined;
555
- type: "dynamicList";
556
- options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
557
- label: string;
558
- value: string;
559
- }[] | Promise<{
560
- label: string;
561
- value: string;
562
- }[]>;
563
- name: string;
564
- label?: string | undefined;
565
- description?: string | undefined;
566
- env?: ("paas" | "saas")[] | undefined;
567
- } | {
568
- type: "text";
569
- default: string;
570
- name: string;
571
- label?: string | undefined;
572
- description?: string | undefined;
573
- env?: ("paas" | "saas")[] | undefined;
574
- } | {
575
- type: "password";
576
- default: "";
577
- name: string;
578
- label?: string | undefined;
579
- description?: string | undefined;
580
- env?: ("paas" | "saas")[] | undefined;
581
- } | {
582
- type: "email";
583
- default: string;
584
- name: string;
585
- label?: string | undefined;
586
- description?: string | undefined;
587
- env?: ("paas" | "saas")[] | undefined;
588
- } | {
589
- type: "url";
590
- default: string;
591
- name: string;
592
- label?: string | undefined;
593
- description?: string | undefined;
594
- env?: ("paas" | "saas")[] | undefined;
595
- } | {
596
- type: "tel";
597
- default: string;
598
- name: string;
599
- label?: string | undefined;
600
- description?: string | undefined;
601
- env?: ("paas" | "saas")[] | undefined;
602
- } | {
603
- type: "boolean";
604
- default: boolean;
605
- name: string;
606
- label?: string | undefined;
607
- description?: string | undefined;
608
- env?: ("paas" | "saas")[] | undefined;
609
- })[], 1, "At least one configuration parameter is required">]>, readonly []>;
610
- }, undefined>;
611
- readonly eventing: v.ObjectSchema<{
612
- readonly commerce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
613
- readonly provider: v.ObjectSchema<{
614
- 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">]>;
615
- 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">]>;
616
- 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>;
617
- }, undefined>;
618
- readonly events: v.ArraySchema<v.ObjectSchema<{
619
- 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">]>;
620
- readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
621
- 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 \"*\"">]>;
622
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
623
- }, undefined>, "Expected an array of event field objects with a 'name' property">, v.MinLengthAction<{
624
- name: string;
625
- source?: string | undefined;
626
- }[], 1, "The Commerce event configuration must define at least one field">]>;
627
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
628
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
629
- readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
630
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
631
- }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
632
- 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>;
633
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
634
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
635
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
636
- 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
- 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">]>;
638
- 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>">;
639
- }, undefined>, "Expected an array of Commerce events">;
640
- }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
641
- provider: {
642
- label: string;
643
- description: string;
644
- key?: string | undefined;
645
- };
646
- events: {
647
- name: string;
648
- fields: {
649
- name: string;
650
- source?: string | undefined;
651
- }[];
652
- rules?: {
653
- field: string;
654
- operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
655
- value: string;
656
- }[] | undefined;
657
- destination?: string | undefined;
658
- hipaa_audit_required?: boolean | undefined;
659
- priority?: boolean | undefined;
660
- force?: boolean | undefined;
661
- label: string;
662
- description: string;
663
- runtimeActions: string[];
664
- }[];
665
- }[], "Commerce provider labels must be unique">]>, undefined>;
666
- readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
667
- readonly provider: v.ObjectSchema<{
668
- 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">]>;
669
- 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">]>;
670
- 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>;
671
- }, undefined>;
672
- readonly events: v.ArraySchema<v.ObjectSchema<{
673
- 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">]>;
674
- 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">]>;
675
- 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">]>;
676
- 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>">;
677
- }, undefined>, "Expected an array of external events">;
678
- }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
679
- provider: {
680
- label: string;
681
- description: string;
682
- key?: string | undefined;
683
- };
684
- events: {
685
- name: string;
686
- label: string;
687
- description: string;
688
- runtimeActions: string[];
689
- }[];
690
- }[], "External provider labels must be unique">]>, undefined>;
691
- }, undefined>;
692
- readonly installation: v.ObjectSchema<{
693
- readonly messages: v.OptionalSchema<v.ObjectSchema<{
694
- readonly preInstallation: v.OptionalSchema<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.MaxLengthAction<string, 1000, "The preInstallation message must not be longer than 1000 characters">]>, undefined>;
695
- readonly postInstallation: v.OptionalSchema<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.MaxLengthAction<string, 1000, "The postInstallation message must not be longer than 1000 characters">]>, undefined>;
696
- }, undefined>, undefined>;
697
- readonly customInstallationSteps: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
698
- readonly script: 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, "Script path must end with .js (e.g., \"./setup.js\", \"./scripts/setup.js\", or \"../../scripts/setup.js\")">]>;
699
- 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.MaxLengthAction<string, 255, "The step name must not be longer than 255 characters">]>;
700
- 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.MaxLengthAction<string, 255, "The step description must not be longer than 255 characters">]>;
701
- }, undefined>, "Expected an array of custom installation steps">, undefined>, v.CheckAction<{
702
- script: string;
703
- name: string;
704
- description: string;
705
- }[] | undefined, "Duplicate step names detected in custom installation steps. Each step must have a unique name.">]>;
706
- }, undefined>;
707
- readonly webhooks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
708
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
709
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
710
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
711
- readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
712
- readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
713
- readonly webhook: v.ObjectSchema<{
714
- 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`>]>;
715
- 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`>]>;
716
- 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">]>;
717
- 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>;
718
- 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">]>;
719
- 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>;
720
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
721
- 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>;
722
- 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>;
723
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
724
- readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
725
- 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>;
726
- readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
727
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
728
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
729
- }, undefined>, "Expected an array of webhook field objects">, undefined>;
730
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
731
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
732
- readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
733
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
734
- }, undefined>, "Expected an array of webhook rule objects">, undefined>;
735
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
736
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
737
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
738
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
739
- }, undefined>;
740
- }, undefined>, v.ObjectSchema<{
741
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
742
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
743
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
744
- readonly webhook: v.ObjectSchema<{
745
- 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')">]>;
746
- 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`>]>;
747
- 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`>]>;
748
- 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">]>;
749
- 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>;
750
- 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">]>;
751
- 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>;
752
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
753
- 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>;
754
- 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>;
755
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
756
- readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
757
- 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>;
758
- readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
759
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
760
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
761
- }, undefined>, "Expected an array of webhook field objects">, undefined>;
762
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
763
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
764
- readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
765
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
766
- }, undefined>, "Expected an array of webhook rule objects">, undefined>;
767
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
768
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
769
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
770
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
771
- }, undefined>;
772
- }, 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<({
773
- label: string;
774
- description: string;
775
- category?: "validation" | "append" | "modification" | undefined;
776
- runtimeAction: string;
777
- requireAdobeAuth?: boolean | undefined;
778
- webhook: {
779
- webhook_method: string;
780
- webhook_type: string;
781
- batch_name: string;
782
- batch_order?: number | undefined;
783
- hook_name: string;
784
- priority?: number | undefined;
785
- required?: boolean | undefined;
786
- soft_timeout?: number | undefined;
787
- timeout?: number | undefined;
788
- method: string;
789
- fallback_error_message?: string | undefined;
790
- ttl?: number | undefined;
791
- fields?: {
792
- name: string;
793
- source?: string | undefined;
794
- }[] | undefined;
795
- rules?: {
796
- field: string;
797
- operator: string;
798
- value: string;
799
- }[] | undefined;
800
- headers?: {
801
- name: string;
802
- value: string;
803
- }[] | undefined;
804
- };
805
- } | {
806
- label: string;
807
- description: string;
808
- category?: "validation" | "append" | "modification" | undefined;
809
- webhook: {
810
- url: string;
811
- webhook_method: string;
812
- webhook_type: string;
813
- batch_name: string;
814
- batch_order?: number | undefined;
815
- hook_name: string;
816
- priority?: number | undefined;
817
- required?: boolean | undefined;
818
- soft_timeout?: number | undefined;
819
- timeout?: number | undefined;
820
- method: string;
821
- fallback_error_message?: string | undefined;
822
- ttl?: number | undefined;
823
- fields?: {
824
- name: string;
825
- source?: string | undefined;
826
- }[] | undefined;
827
- rules?: {
828
- field: string;
829
- operator: string;
830
- value: string;
831
- }[] | undefined;
832
- headers?: {
833
- name: string;
834
- value: string;
835
- }[] | undefined;
836
- };
837
- })[], 1, "webhooks array must contain at least one webhook when present">]>, undefined>;
838
- readonly "businessConfig.schema": v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.VariantSchema<"selectionMode", [v.ObjectSchema<{
839
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
840
- readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
841
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
842
- readonly options: v.ArraySchema<v.ObjectSchema<{
843
- readonly label: v.StringSchema<"Expected a string for the option label">;
844
- readonly value: v.StringSchema<"Expected a string for the option value">;
845
- }, undefined>, "Expected an array of list options">;
846
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
847
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
848
- 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>;
849
- 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>;
850
- }, undefined>, v.ObjectSchema<{
851
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
852
- 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 []>;
853
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
854
- readonly options: v.ArraySchema<v.ObjectSchema<{
855
- readonly label: v.StringSchema<"Expected a string for the option label">;
856
- readonly value: v.StringSchema<"Expected a string for the option value">;
857
- }, undefined>, "Expected an array of list options">;
858
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
859
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
860
- 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>;
861
- 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>;
862
- }, undefined>], undefined>, v.VariantSchema<"selectionMode", [v.ObjectSchema<{
863
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
864
- readonly default: v.CustomSchema<(resolvedOptions: {
865
- label: string;
866
- value: string;
867
- }[]) => string, v.ErrorMessage<v.CustomIssue> | undefined>;
868
- readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
869
- readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
870
- label: string;
871
- value: string;
872
- }[] | Promise<{
873
- label: string;
874
- value: string;
875
- }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
876
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
877
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
878
- 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>;
879
- 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>;
880
- }, undefined>, v.ObjectSchema<{
881
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
882
- readonly default: v.OptionalSchema<v.CustomSchema<(resolvedOptions: {
883
- label: string;
884
- value: string;
885
- }[]) => string[], v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
886
- readonly type: v.LiteralSchema<"dynamicList", "Expected the type to be 'dynamicList'">;
887
- readonly options: v.CustomSchema<(params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
888
- label: string;
889
- value: string;
890
- }[] | Promise<{
891
- label: string;
892
- value: string;
893
- }[]>, v.ErrorMessage<v.CustomIssue> | undefined>;
894
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
895
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
896
- 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>;
897
- 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>;
898
- }, undefined>], undefined>, v.ObjectSchema<{
899
- readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
900
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
901
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
902
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
903
- 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>;
904
- 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>;
905
- }, undefined>, v.ObjectSchema<{
906
- readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
907
- readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
908
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
909
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
910
- 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>;
911
- 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>;
912
- }, undefined>, v.ObjectSchema<{
913
- readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
914
- 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>, "">;
915
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
916
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
917
- 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>;
918
- 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>;
919
- }, undefined>, v.ObjectSchema<{
920
- readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
921
- 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>, "">;
922
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
923
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
924
- 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>;
925
- 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>;
926
- }, undefined>, v.ObjectSchema<{
927
- readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
928
- 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>, "">;
929
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
930
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
931
- 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>;
932
- 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>;
933
- }, undefined>, v.ObjectSchema<{
934
- readonly type: v.LiteralSchema<"boolean", "Expected the type to be 'boolean'">;
935
- readonly default: v.OptionalSchema<v.BooleanSchema<"Expected a boolean for the default value">, false>;
936
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
937
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
938
- 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>;
939
- 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>;
940
- }, undefined>], undefined>, "Expected an array of configuration fields">, v.MinLengthAction<({
941
- selectionMode: "single";
942
- default: string;
943
- type: "list";
944
- options: {
945
- label: string;
946
- value: string;
947
- }[];
948
- name: string;
949
- label?: string | undefined;
950
- description?: string | undefined;
951
- env?: ("paas" | "saas")[] | undefined;
952
- } | {
953
- selectionMode: "multiple";
954
- default: string[];
955
- type: "list";
956
- options: {
957
- label: string;
958
- value: string;
959
- }[];
960
- name: string;
961
- label?: string | undefined;
962
- description?: string | undefined;
963
- env?: ("paas" | "saas")[] | undefined;
964
- } | {
965
- selectionMode: "single";
966
- default: (resolvedOptions: {
967
- label: string;
968
- value: string;
969
- }[]) => string;
970
- type: "dynamicList";
971
- options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
972
- label: string;
973
- value: string;
974
- }[] | Promise<{
975
- label: string;
976
- value: string;
977
- }[]>;
978
- name: string;
979
- label?: string | undefined;
980
- description?: string | undefined;
981
- env?: ("paas" | "saas")[] | undefined;
982
- } | {
983
- selectionMode: "multiple";
984
- default?: ((resolvedOptions: {
985
- label: string;
986
- value: string;
987
- }[]) => string[]) | undefined;
988
- type: "dynamicList";
989
- options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
990
- label: string;
991
- value: string;
992
- }[] | Promise<{
993
- label: string;
994
- value: string;
995
- }[]>;
996
- name: string;
997
- label?: string | undefined;
998
- description?: string | undefined;
999
- env?: ("paas" | "saas")[] | undefined;
1000
- } | {
1001
- type: "text";
1002
- default: string;
1003
- name: string;
1004
- label?: string | undefined;
1005
- description?: string | undefined;
1006
- env?: ("paas" | "saas")[] | undefined;
1007
- } | {
1008
- type: "password";
1009
- default: "";
1010
- name: string;
1011
- label?: string | undefined;
1012
- description?: string | undefined;
1013
- env?: ("paas" | "saas")[] | undefined;
1014
- } | {
1015
- type: "email";
1016
- default: string;
1017
- name: string;
1018
- label?: string | undefined;
1019
- description?: string | undefined;
1020
- env?: ("paas" | "saas")[] | undefined;
1021
- } | {
1022
- type: "url";
1023
- default: string;
1024
- name: string;
1025
- label?: string | undefined;
1026
- description?: string | undefined;
1027
- env?: ("paas" | "saas")[] | undefined;
1028
- } | {
1029
- type: "tel";
1030
- default: string;
1031
- name: string;
1032
- label?: string | undefined;
1033
- description?: string | undefined;
1034
- env?: ("paas" | "saas")[] | undefined;
1035
- } | {
1036
- type: "boolean";
1037
- default: boolean;
1038
- name: string;
1039
- label?: string | undefined;
1040
- description?: string | undefined;
1041
- env?: ("paas" | "saas")[] | undefined;
1042
- })[], 1, "At least one configuration parameter is required">]>;
1043
- readonly "eventing.commerce": v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1044
- readonly provider: v.ObjectSchema<{
1045
- 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">]>;
1046
- 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">]>;
1047
- 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>;
1048
- }, undefined>;
1049
- readonly events: v.ArraySchema<v.ObjectSchema<{
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, "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">]>;
1051
- readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1052
- 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 \"*\"">]>;
1053
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
1054
- }, undefined>, "Expected an array of event field objects with a 'name' property">, v.MinLengthAction<{
1055
- name: string;
1056
- source?: string | undefined;
1057
- }[], 1, "The Commerce event configuration must define at least one field">]>;
1058
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1059
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1060
- readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
1061
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1062
- }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
1063
- 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>;
1064
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1065
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1066
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, 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">]>;
1068
- 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">]>;
1069
- 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>">;
1070
- }, undefined>, "Expected an array of Commerce events">;
1071
- }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
1072
- provider: {
1073
- label: string;
1074
- description: string;
1075
- key?: string | undefined;
1076
- };
1077
- events: {
1078
- name: string;
1079
- fields: {
1080
- name: string;
1081
- source?: string | undefined;
1082
- }[];
1083
- rules?: {
1084
- field: string;
1085
- operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
1086
- value: string;
1087
- }[] | undefined;
1088
- destination?: string | undefined;
1089
- hipaa_audit_required?: boolean | undefined;
1090
- priority?: boolean | undefined;
1091
- force?: boolean | undefined;
1092
- label: string;
1093
- description: string;
1094
- runtimeActions: string[];
1095
- }[];
1096
- }[], "Commerce provider labels must be unique">]>;
1097
- readonly "eventing.external": v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1098
- readonly provider: v.ObjectSchema<{
1099
- 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">]>;
1100
- 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">]>;
1101
- 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>;
1102
- }, undefined>;
1103
- readonly events: v.ArraySchema<v.ObjectSchema<{
1104
- 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">]>;
1105
- 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">]>;
1106
- 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">]>;
1107
- 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>">;
1108
- }, undefined>, "Expected an array of external events">;
1109
- }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
1110
- provider: {
1111
- label: string;
1112
- description: string;
1113
- key?: string | undefined;
1114
- };
1115
- events: {
1116
- name: string;
1117
- label: string;
1118
- description: string;
1119
- runtimeActions: string[];
1120
- }[];
1121
- }[], "External provider labels must be unique">]>;
1122
- readonly "installation.customInstallationSteps": v.ArraySchema<v.ObjectSchema<{
1123
- readonly script: 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, "Script path must end with .js (e.g., \"./setup.js\", \"./scripts/setup.js\", or \"../../scripts/setup.js\")">]>;
1124
- 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.MaxLengthAction<string, 255, "The step name must not be longer than 255 characters">]>;
1125
- 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.MaxLengthAction<string, 255, "The step description must not be longer than 255 characters">]>;
1126
- }, undefined>, "Expected an array of custom installation steps">;
1127
- readonly adminUiSdk: v.ObjectSchema<{
1128
- readonly registration: v.ObjectSchema<{
1129
- readonly menuItems: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1130
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1131
- 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>;
1132
- readonly parent: 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>;
1133
- readonly sortOrder: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1134
- readonly isSection: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1135
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1136
- }, undefined>, undefined>, undefined>;
1137
- readonly order: v.OptionalSchema<v.ObjectSchema<{
1138
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1139
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1140
- 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>;
1141
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1142
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1143
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1144
- 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>;
1145
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1146
- 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>;
1147
- 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>;
1148
- }, undefined>, undefined>;
1149
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1150
- } & {
1151
- 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>;
1152
- }, undefined>, v.PipeItem<{
1153
- displayIframe?: boolean | undefined;
1154
- timeout?: number | undefined;
1155
- sandbox?: string | undefined;
1156
- actionId: string;
1157
- label: string;
1158
- title?: string | undefined;
1159
- confirm?: {
1160
- title?: string | undefined;
1161
- message?: string | undefined;
1162
- } | undefined;
1163
- path: string;
1164
- selectionLimit?: number | undefined;
1165
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1166
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1167
- readonly data: v.ObjectSchema<{
1168
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1169
- }, undefined>;
1170
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1171
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1172
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1173
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1174
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1175
- }, undefined>, undefined>, v.MinLengthAction<{
1176
- label: string;
1177
- columnId: string;
1178
- type: "string" | "boolean" | "date" | "float" | "integer";
1179
- align: "left" | "right" | "center";
1180
- }[], 1, "At least one grid column property is required">]>;
1181
- }, undefined>, undefined>;
1182
- readonly viewButtons: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1183
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1184
- 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>;
1185
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1186
- readonly buttonId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1187
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1188
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1189
- 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>;
1190
- }, undefined>, undefined>;
1191
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1192
- readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1193
- 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>;
1194
- }, undefined>, v.PipeItem<{
1195
- displayIframe?: boolean | undefined;
1196
- timeout?: number | undefined;
1197
- sandbox?: string | undefined;
1198
- buttonId: string;
1199
- label: string;
1200
- confirm?: {
1201
- message?: string | undefined;
1202
- } | undefined;
1203
- path: string;
1204
- level?: 0 | 1 | -1 | undefined;
1205
- sortOrder?: number | undefined;
1206
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1207
- readonly customFees: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1208
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1209
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1210
- readonly value: v.NumberSchema<"Custom fee value must be a number">;
1211
- readonly orderMinimumAmount: v.OptionalSchema<v.NumberSchema<"orderMinimumAmount must be a number">, undefined>;
1212
- readonly applyFeeOnLastInvoice: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1213
- readonly applyFeeOnLastCreditMemo: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1214
- }, undefined>, undefined>, undefined>;
1215
- }, undefined>, undefined>;
1216
- readonly product: v.OptionalSchema<v.ObjectSchema<{
1217
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1218
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1219
- 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>;
1220
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1221
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1222
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1223
- 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>;
1224
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1225
- 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>;
1226
- 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>;
1227
- }, undefined>, undefined>;
1228
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1229
- } & {
1230
- productSelectLimit: 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>;
1231
- }, undefined>, v.PipeItem<{
1232
- displayIframe?: boolean | undefined;
1233
- timeout?: number | undefined;
1234
- sandbox?: string | undefined;
1235
- actionId: string;
1236
- label: string;
1237
- title?: string | undefined;
1238
- confirm?: {
1239
- title?: string | undefined;
1240
- message?: string | undefined;
1241
- } | undefined;
1242
- path: string;
1243
- productSelectLimit?: number | undefined;
1244
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1245
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1246
- readonly data: v.ObjectSchema<{
1247
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1248
- }, undefined>;
1249
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1250
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1251
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1252
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1253
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1254
- }, undefined>, undefined>, v.MinLengthAction<{
1255
- label: string;
1256
- columnId: string;
1257
- type: "string" | "boolean" | "date" | "float" | "integer";
1258
- align: "left" | "right" | "center";
1259
- }[], 1, "At least one grid column property is required">]>;
1260
- }, undefined>, undefined>;
1261
- }, undefined>, undefined>;
1262
- readonly customer: v.OptionalSchema<v.ObjectSchema<{
1263
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1264
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1265
- 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>;
1266
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1267
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1268
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1269
- 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>;
1270
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1271
- 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>;
1272
- 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>;
1273
- }, undefined>, undefined>;
1274
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1275
- } & {
1276
- customerSelectLimit: 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>;
1277
- }, undefined>, v.PipeItem<{
1278
- displayIframe?: boolean | undefined;
1279
- timeout?: number | undefined;
1280
- sandbox?: string | undefined;
1281
- actionId: string;
1282
- label: string;
1283
- title?: string | undefined;
1284
- confirm?: {
1285
- title?: string | undefined;
1286
- message?: string | undefined;
1287
- } | undefined;
1288
- path: string;
1289
- customerSelectLimit?: number | undefined;
1290
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1291
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1292
- readonly data: v.ObjectSchema<{
1293
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1294
- }, undefined>;
1295
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1296
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1297
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1298
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1299
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1300
- }, undefined>, undefined>, v.MinLengthAction<{
1301
- label: string;
1302
- columnId: string;
1303
- type: "string" | "boolean" | "date" | "float" | "integer";
1304
- align: "left" | "right" | "center";
1305
- }[], 1, "At least one grid column property is required">]>;
1306
- }, undefined>, undefined>;
1307
- }, undefined>, undefined>;
1308
- readonly bannerNotification: v.OptionalSchema<v.ObjectSchema<{
1309
- readonly massActions: v.OptionalSchema<v.ObjectSchema<{
1310
- readonly order: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1311
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1312
- readonly successMessage: 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>;
1313
- readonly errorMessage: 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>;
1314
- }, undefined>, undefined>, undefined>;
1315
- readonly product: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1316
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1317
- readonly successMessage: 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>;
1318
- readonly errorMessage: 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>;
1319
- }, undefined>, undefined>, undefined>;
1320
- readonly customer: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1321
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1322
- readonly successMessage: 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>;
1323
- readonly errorMessage: 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>;
1324
- }, undefined>, undefined>, undefined>;
1325
- }, undefined>, undefined>;
1326
- readonly orderViewButtons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1327
- readonly buttonId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1328
- readonly successMessage: 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>;
1329
- readonly errorMessage: 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>;
1330
- }, undefined>, undefined>, undefined>;
1331
- }, undefined>, undefined>;
1332
- }, undefined>;
1333
- }, undefined>;
1334
- };
1335
- /** Individual validatable domains of the commerce app config. */
1336
- type CommerceAppConfigDomain = keyof typeof CommerceAppConfigSchemas;
1337
- /**
1338
- * Get the config domains that are present in the config.
1339
- * @param config - The configuration to check.
1340
- */
1341
- declare function getConfigDomains(config: CommerceAppConfigOutputModel): Set<CommerceAppConfigDomain>;
1342
- /**
1343
- * Check if the config has a specific domain.
1344
- * @param config - The configuration to check.
1345
- * @param domain - The domain to check.
1346
- */
1347
- declare function hasConfigDomain(config: CommerceAppConfigOutputModel, domain: CommerceAppConfigDomain): boolean;
1348
- //#endregion
1349
395
  //#region source/config/lib/validate.d.ts
1350
396
  /**
1351
397
  * Validates a complete commerce app configuration object against the schema.
@@ -1420,8 +466,6 @@ declare function validateCommerceAppConfig(config: unknown): CommerceAppConfigOu
1420
466
  declare function validateCommerceAppConfigDomain<T extends CommerceAppConfigDomain>(config: unknown, domain: T): NonNullable<Get<CommerceAppConfigOutputModel, T>>;
1421
467
  //#endregion
1422
468
  //#region source/config/schema/business-configuration.d.ts
1423
- /** Any commerce app config — input contract or validated output. */
1424
- type AnyCommerceAppConfig = CommerceAppConfig | CommerceAppConfigOutputModel;
1425
469
  /** Config type when business config is present. */
1426
470
  type AppConfigWithBusinessConfig<T extends AnyCommerceAppConfig> = T & {
1427
471
  businessConfig: NonNullable<T["businessConfig"]>;
@@ -1621,45 +665,58 @@ type AppEvent = CommerceEvent | ExternalEvent;
1621
665
  /** Event provider configuration */
1622
666
  type EventProvider = v.InferInput<typeof ProviderSchema>;
1623
667
  /** Config type when eventing is present. */
1624
- type EventsConfig = CommerceAppConfigOutputModel & {
1625
- eventing: NonNullable<CommerceAppConfigOutputModel["eventing"]>;
668
+ type EventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
669
+ eventing: NonNullable<T["eventing"]>;
1626
670
  };
1627
671
  /** Config type when commerce event sources are present. */
1628
- type CommerceEventsConfig = SetRequiredDeep<EventsConfig, "eventing.commerce">;
672
+ type CommerceEventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = EventsConfig<T> & {
673
+ eventing: EventsConfig<T>["eventing"] & {
674
+ commerce: NonNullable<EventsConfig<T>["eventing"]["commerce"]>;
675
+ };
676
+ };
1629
677
  /** Config type when external event sources are present. */
1630
- type ExternalEventsConfig = SetRequiredDeep<EventsConfig, "eventing.external">;
678
+ type ExternalEventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = EventsConfig<T> & {
679
+ eventing: EventsConfig<T>["eventing"] & {
680
+ external: NonNullable<EventsConfig<T>["eventing"]["external"]>;
681
+ };
682
+ };
1631
683
  /**
1632
684
  * Check if config has commerce event sources.
1633
685
  * @param config - The configuration to check.
1634
686
  */
1635
- declare function hasCommerceEvents(config: CommerceAppConfigOutputModel): config is CommerceEventsConfig;
687
+ declare function hasCommerceEvents<T extends AnyCommerceAppConfig>(config: T): config is T & CommerceEventsConfig<T>;
1636
688
  /**
1637
689
  * Check if config has external event sources.
1638
690
  * @param config - The configuration to check.
1639
691
  */
1640
- declare function hasExternalEvents(config: CommerceAppConfigOutputModel): config is ExternalEventsConfig;
692
+ declare function hasExternalEvents<T extends AnyCommerceAppConfig>(config: T): config is T & ExternalEventsConfig<T>;
1641
693
  /**
1642
694
  * Check if config has any eventing configuration.
1643
695
  * @param config - The configuration to check.
1644
696
  */
1645
- declare function hasEventing(config: CommerceAppConfigOutputModel): config is EventsConfig;
697
+ declare function hasEventing<T extends AnyCommerceAppConfig>(config: T): config is T & EventsConfig<T>;
1646
698
  //#endregion
1647
699
  //#region source/config/schema/installation.d.ts
1648
- type InstallationConfig = CommerceAppConfigOutputModel & {
1649
- installation: NonNullable<CommerceAppConfigOutputModel["installation"]>;
700
+ /** Config type when installation settings are present. */
701
+ type InstallationConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
702
+ installation: NonNullable<T["installation"]>;
1650
703
  };
1651
704
  /** Config type when custom installation steps are present. */
1652
- type ConfigWithInstallationSteps = SetRequiredDeep<InstallationConfig, "installation.customInstallationSteps">;
705
+ type ConfigWithInstallationSteps<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = InstallationConfig<T> & {
706
+ installation: InstallationConfig<T>["installation"] & {
707
+ customInstallationSteps: NonNullable<InstallationConfig<T>["installation"]["customInstallationSteps"]>;
708
+ };
709
+ };
1653
710
  /**
1654
711
  * Check if config has custom installation settings.
1655
712
  * @param config - The configuration to check.
1656
713
  */
1657
- declare function hasCustomInstallation(config: CommerceAppConfigOutputModel): config is InstallationConfig;
714
+ declare function hasCustomInstallation<T extends AnyCommerceAppConfig>(config: T): config is T & InstallationConfig<T>;
1658
715
  /**
1659
716
  * Check if config has custom installation steps.
1660
717
  * @param config - The configuration to check.
1661
718
  */
1662
- declare function hasCustomInstallationSteps(config: CommerceAppConfigOutputModel): config is ConfigWithInstallationSteps;
719
+ declare function hasCustomInstallationSteps<T extends AnyCommerceAppConfig>(config: T): config is T & ConfigWithInstallationSteps<T>;
1663
720
  //#endregion
1664
721
  //#region source/config/schema/metadata.d.ts
1665
722
  /** The schema for the metadata of the application. */
@@ -1671,11 +728,15 @@ declare const MetadataSchema: v.ObjectSchema<{
1671
728
  }, undefined>;
1672
729
  /** The metadata associated to an Adobe Commerce application. */
1673
730
  type ApplicationMetadata = v.InferInput<typeof MetadataSchema>;
731
+ /** Config type when metadata is present. */
732
+ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
733
+ metadata: NonNullable<T["metadata"]>;
734
+ };
1674
735
  /**
1675
736
  * Check if config has metadata.
1676
737
  * @param config - The configuration to check.
1677
738
  */
1678
- declare function hasMetadata(config: CommerceAppConfigOutputModel): boolean;
739
+ declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
1679
740
  //#endregion
1680
741
  //#region source/config/schema/webhooks.d.ts
1681
742
  /** Schema for webhook field configuration (name and optional source). */
@@ -1963,13 +1024,13 @@ type WebhookEntry = v.InferInput<typeof WebhookEntrySchema>;
1963
1024
  /** Webhooks configuration (array of webhook entries). */
1964
1025
  type WebhooksConfiguration = v.InferInput<typeof WebhooksSchema>;
1965
1026
  /** Config type when webhooks are present (non-empty array). */
1966
- type WebhooksConfig = CommerceAppConfigOutputModel & {
1967
- webhooks: NonNullable<CommerceAppConfigOutputModel["webhooks"]>;
1027
+ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
1028
+ webhooks: NonNullable<T["webhooks"]>;
1968
1029
  };
1969
1030
  /**
1970
1031
  * Check if config has webhooks (non-empty array).
1971
1032
  * @param config - The configuration to check.
1972
1033
  */
1973
- declare function hasWebhooks(config: CommerceAppConfigOutputModel): config is WebhooksConfig;
1034
+ declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
1974
1035
  //#endregion
1975
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 };