@dhaneshpurohit/mockstar 0.2.2 → 0.4.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 (49) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/cli.js +786 -178
  3. package/dist/core/config/schema.d.ts +486 -320
  4. package/dist/core/config/schema.d.ts.map +1 -1
  5. package/dist/core/http/body-cap.d.ts +37 -0
  6. package/dist/core/http/body-cap.d.ts.map +1 -0
  7. package/dist/core/http/rate-limit.d.ts +55 -0
  8. package/dist/core/http/rate-limit.d.ts.map +1 -0
  9. package/dist/core/matching/discriminators.d.ts +25 -0
  10. package/dist/core/matching/discriminators.d.ts.map +1 -1
  11. package/dist/core/matching/index.d.ts +3 -1
  12. package/dist/core/matching/index.d.ts.map +1 -1
  13. package/dist/features/openapi/converter.d.ts.map +1 -1
  14. package/dist/features/pass-through.d.ts +7 -0
  15. package/dist/features/pass-through.d.ts.map +1 -1
  16. package/dist/features/proxy/cli.d.ts +11 -0
  17. package/dist/features/proxy/cli.d.ts.map +1 -1
  18. package/dist/features/proxy/dns.d.ts +21 -3
  19. package/dist/features/proxy/dns.d.ts.map +1 -1
  20. package/dist/features/proxy/index.d.ts +1 -1
  21. package/dist/features/proxy/index.d.ts.map +1 -1
  22. package/dist/features/proxy/port-bind.d.ts +18 -1
  23. package/dist/features/proxy/port-bind.d.ts.map +1 -1
  24. package/dist/features/proxy/sni-gate.d.ts +4 -3
  25. package/dist/features/proxy/sni-gate.d.ts.map +1 -1
  26. package/dist/features/url-validator.d.ts +48 -0
  27. package/dist/features/url-validator.d.ts.map +1 -1
  28. package/dist/features/webhooks/dispatcher.d.ts.map +1 -1
  29. package/dist/features/webhooks/event-registry.d.ts +7 -0
  30. package/dist/features/webhooks/event-registry.d.ts.map +1 -1
  31. package/dist/features/webhooks/index.d.ts +3 -1
  32. package/dist/features/webhooks/index.d.ts.map +1 -1
  33. package/dist/features/webhooks/journal.d.ts +23 -0
  34. package/dist/features/webhooks/journal.d.ts.map +1 -1
  35. package/dist/features/webhooks/queue.d.ts +18 -0
  36. package/dist/features/webhooks/queue.d.ts.map +1 -1
  37. package/dist/features/webhooks/scheme.d.ts +46 -0
  38. package/dist/features/webhooks/scheme.d.ts.map +1 -0
  39. package/dist/features/webhooks/signing.d.ts +24 -13
  40. package/dist/features/webhooks/signing.d.ts.map +1 -1
  41. package/dist/features/webhooks/types.d.ts +32 -5
  42. package/dist/features/webhooks/types.d.ts.map +1 -1
  43. package/dist/index.d.ts +2 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +628 -133
  46. package/dist/server.d.ts +17 -0
  47. package/dist/server.d.ts.map +1 -1
  48. package/dist/version.d.ts +1 -1
  49. package/package.json +2 -1
@@ -9,12 +9,16 @@ export declare const MatchPredicate: z.ZodObject<{
9
9
  equals: string;
10
10
  }, {
11
11
  equals: string;
12
- }>, z.ZodObject<{
12
+ }>, z.ZodEffects<z.ZodObject<{
13
13
  regex: z.ZodString;
14
14
  }, "strict", z.ZodTypeAny, {
15
15
  regex: string;
16
16
  }, {
17
17
  regex: string;
18
+ }>, {
19
+ regex: string;
20
+ }, {
21
+ regex: string;
18
22
  }>, z.ZodObject<{
19
23
  startsWith: z.ZodString;
20
24
  }, "strict", z.ZodTypeAny, {
@@ -34,12 +38,16 @@ export declare const MatchPredicate: z.ZodObject<{
34
38
  equals: string;
35
39
  }, {
36
40
  equals: string;
37
- }>, z.ZodObject<{
41
+ }>, z.ZodEffects<z.ZodObject<{
38
42
  regex: z.ZodString;
39
43
  }, "strict", z.ZodTypeAny, {
40
44
  regex: string;
41
45
  }, {
42
46
  regex: string;
47
+ }>, {
48
+ regex: string;
49
+ }, {
50
+ regex: string;
43
51
  }>, z.ZodObject<{
44
52
  startsWith: z.ZodString;
45
53
  }, "strict", z.ZodTypeAny, {
@@ -149,8 +157,8 @@ export declare const StaticResponse: z.ZodObject<{
149
157
  }, {
150
158
  kind: "static";
151
159
  body?: unknown;
152
- status?: number | undefined;
153
160
  headers?: Record<string, string> | undefined;
161
+ status?: number | undefined;
154
162
  delay?: number | {
155
163
  min: number;
156
164
  max: number;
@@ -227,8 +235,8 @@ export declare const MockResponse: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<
227
235
  }, {
228
236
  kind: "static";
229
237
  body?: unknown;
230
- status?: number | undefined;
231
238
  headers?: Record<string, string> | undefined;
239
+ status?: number | undefined;
232
240
  delay?: number | {
233
241
  min: number;
234
242
  max: number;
@@ -403,7 +411,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
403
411
  } | {
404
412
  contains: string;
405
413
  }> | undefined;
406
- params?: Record<string, string | {
414
+ headers?: Record<string, string | {
407
415
  equals: string;
408
416
  } | {
409
417
  regex: string;
@@ -412,7 +420,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
412
420
  } | {
413
421
  contains: string;
414
422
  }> | undefined;
415
- headers?: Record<string, string | {
423
+ params?: Record<string, string | {
416
424
  equals: string;
417
425
  } | {
418
426
  regex: string;
@@ -440,7 +448,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
440
448
  } | {
441
449
  contains: string;
442
450
  }> | undefined;
443
- params?: Record<string, string | {
451
+ headers?: Record<string, string | {
444
452
  equals: string;
445
453
  } | {
446
454
  regex: string;
@@ -449,7 +457,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
449
457
  } | {
450
458
  contains: string;
451
459
  }> | undefined;
452
- headers?: Record<string, string | {
460
+ params?: Record<string, string | {
453
461
  equals: string;
454
462
  } | {
455
463
  regex: string;
@@ -477,7 +485,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
477
485
  } | {
478
486
  contains: string;
479
487
  }> | undefined;
480
- params?: Record<string, string | {
488
+ headers?: Record<string, string | {
481
489
  equals: string;
482
490
  } | {
483
491
  regex: string;
@@ -486,7 +494,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
486
494
  } | {
487
495
  contains: string;
488
496
  }> | undefined;
489
- headers?: Record<string, string | {
497
+ params?: Record<string, string | {
490
498
  equals: string;
491
499
  } | {
492
500
  regex: string;
@@ -514,7 +522,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
514
522
  } | {
515
523
  contains: string;
516
524
  }> | undefined;
517
- params?: Record<string, string | {
525
+ headers?: Record<string, string | {
518
526
  equals: string;
519
527
  } | {
520
528
  regex: string;
@@ -523,7 +531,7 @@ export declare const ScenarioPredicate: z.ZodEffects<z.ZodObject<{
523
531
  } | {
524
532
  contains: string;
525
533
  }> | undefined;
526
- headers?: Record<string, string | {
534
+ params?: Record<string, string | {
527
535
  equals: string;
528
536
  } | {
529
537
  regex: string;
@@ -558,32 +566,32 @@ export declare const ScenarioResponse: z.ZodEffects<z.ZodObject<{
558
566
  }>]>>;
559
567
  }, "strict", z.ZodTypeAny, {
560
568
  body?: unknown;
561
- status?: number | undefined;
562
569
  headers?: Record<string, string> | undefined;
570
+ status?: number | undefined;
563
571
  delay?: number | {
564
572
  min: number;
565
573
  max: number;
566
574
  } | undefined;
567
575
  }, {
568
576
  body?: unknown;
569
- status?: number | undefined;
570
577
  headers?: Record<string, string> | undefined;
578
+ status?: number | undefined;
571
579
  delay?: number | {
572
580
  min: number;
573
581
  max: number;
574
582
  } | undefined;
575
583
  }>, {
576
584
  body?: unknown;
577
- status?: number | undefined;
578
585
  headers?: Record<string, string> | undefined;
586
+ status?: number | undefined;
579
587
  delay?: number | {
580
588
  min: number;
581
589
  max: number;
582
590
  } | undefined;
583
591
  }, {
584
592
  body?: unknown;
585
- status?: number | undefined;
586
593
  headers?: Record<string, string> | undefined;
594
+ status?: number | undefined;
587
595
  delay?: number | {
588
596
  min: number;
589
597
  max: number;
@@ -718,7 +726,7 @@ export declare const ScenarioRule: z.ZodObject<{
718
726
  } | {
719
727
  contains: string;
720
728
  }> | undefined;
721
- params?: Record<string, string | {
729
+ headers?: Record<string, string | {
722
730
  equals: string;
723
731
  } | {
724
732
  regex: string;
@@ -727,7 +735,7 @@ export declare const ScenarioRule: z.ZodObject<{
727
735
  } | {
728
736
  contains: string;
729
737
  }> | undefined;
730
- headers?: Record<string, string | {
738
+ params?: Record<string, string | {
731
739
  equals: string;
732
740
  } | {
733
741
  regex: string;
@@ -755,7 +763,7 @@ export declare const ScenarioRule: z.ZodObject<{
755
763
  } | {
756
764
  contains: string;
757
765
  }> | undefined;
758
- params?: Record<string, string | {
766
+ headers?: Record<string, string | {
759
767
  equals: string;
760
768
  } | {
761
769
  regex: string;
@@ -764,7 +772,7 @@ export declare const ScenarioRule: z.ZodObject<{
764
772
  } | {
765
773
  contains: string;
766
774
  }> | undefined;
767
- headers?: Record<string, string | {
775
+ params?: Record<string, string | {
768
776
  equals: string;
769
777
  } | {
770
778
  regex: string;
@@ -792,7 +800,7 @@ export declare const ScenarioRule: z.ZodObject<{
792
800
  } | {
793
801
  contains: string;
794
802
  }> | undefined;
795
- params?: Record<string, string | {
803
+ headers?: Record<string, string | {
796
804
  equals: string;
797
805
  } | {
798
806
  regex: string;
@@ -801,7 +809,7 @@ export declare const ScenarioRule: z.ZodObject<{
801
809
  } | {
802
810
  contains: string;
803
811
  }> | undefined;
804
- headers?: Record<string, string | {
812
+ params?: Record<string, string | {
805
813
  equals: string;
806
814
  } | {
807
815
  regex: string;
@@ -829,7 +837,7 @@ export declare const ScenarioRule: z.ZodObject<{
829
837
  } | {
830
838
  contains: string;
831
839
  }> | undefined;
832
- params?: Record<string, string | {
840
+ headers?: Record<string, string | {
833
841
  equals: string;
834
842
  } | {
835
843
  regex: string;
@@ -838,7 +846,7 @@ export declare const ScenarioRule: z.ZodObject<{
838
846
  } | {
839
847
  contains: string;
840
848
  }> | undefined;
841
- headers?: Record<string, string | {
849
+ params?: Record<string, string | {
842
850
  equals: string;
843
851
  } | {
844
852
  regex: string;
@@ -873,32 +881,32 @@ export declare const ScenarioRule: z.ZodObject<{
873
881
  }>]>>;
874
882
  }, "strict", z.ZodTypeAny, {
875
883
  body?: unknown;
876
- status?: number | undefined;
877
884
  headers?: Record<string, string> | undefined;
885
+ status?: number | undefined;
878
886
  delay?: number | {
879
887
  min: number;
880
888
  max: number;
881
889
  } | undefined;
882
890
  }, {
883
891
  body?: unknown;
884
- status?: number | undefined;
885
892
  headers?: Record<string, string> | undefined;
893
+ status?: number | undefined;
886
894
  delay?: number | {
887
895
  min: number;
888
896
  max: number;
889
897
  } | undefined;
890
898
  }>, {
891
899
  body?: unknown;
892
- status?: number | undefined;
893
900
  headers?: Record<string, string> | undefined;
901
+ status?: number | undefined;
894
902
  delay?: number | {
895
903
  min: number;
896
904
  max: number;
897
905
  } | undefined;
898
906
  }, {
899
907
  body?: unknown;
900
- status?: number | undefined;
901
908
  headers?: Record<string, string> | undefined;
909
+ status?: number | undefined;
902
910
  delay?: number | {
903
911
  min: number;
904
912
  max: number;
@@ -908,8 +916,8 @@ export declare const ScenarioRule: z.ZodObject<{
908
916
  id: string;
909
917
  response: {
910
918
  body?: unknown;
911
- status?: number | undefined;
912
919
  headers?: Record<string, string> | undefined;
920
+ status?: number | undefined;
913
921
  delay?: number | {
914
922
  min: number;
915
923
  max: number;
@@ -925,7 +933,7 @@ export declare const ScenarioRule: z.ZodObject<{
925
933
  } | {
926
934
  contains: string;
927
935
  }> | undefined;
928
- params?: Record<string, string | {
936
+ headers?: Record<string, string | {
929
937
  equals: string;
930
938
  } | {
931
939
  regex: string;
@@ -934,7 +942,7 @@ export declare const ScenarioRule: z.ZodObject<{
934
942
  } | {
935
943
  contains: string;
936
944
  }> | undefined;
937
- headers?: Record<string, string | {
945
+ params?: Record<string, string | {
938
946
  equals: string;
939
947
  } | {
940
948
  regex: string;
@@ -957,8 +965,8 @@ export declare const ScenarioRule: z.ZodObject<{
957
965
  id: string;
958
966
  response: {
959
967
  body?: unknown;
960
- status?: number | undefined;
961
968
  headers?: Record<string, string> | undefined;
969
+ status?: number | undefined;
962
970
  delay?: number | {
963
971
  min: number;
964
972
  max: number;
@@ -974,7 +982,7 @@ export declare const ScenarioRule: z.ZodObject<{
974
982
  } | {
975
983
  contains: string;
976
984
  }> | undefined;
977
- params?: Record<string, string | {
985
+ headers?: Record<string, string | {
978
986
  equals: string;
979
987
  } | {
980
988
  regex: string;
@@ -983,7 +991,7 @@ export declare const ScenarioRule: z.ZodObject<{
983
991
  } | {
984
992
  contains: string;
985
993
  }> | undefined;
986
- headers?: Record<string, string | {
994
+ params?: Record<string, string | {
987
995
  equals: string;
988
996
  } | {
989
997
  regex: string;
@@ -1003,28 +1011,62 @@ export declare const ScenarioRule: z.ZodObject<{
1003
1011
  }> | undefined;
1004
1012
  };
1005
1013
  }>;
1006
- declare const WebhookSigning: z.ZodObject<{
1014
+ declare const WebhookSigning: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1015
+ mode: z.ZodDefault<z.ZodLiteral<"hmac">>;
1007
1016
  enabled: z.ZodDefault<z.ZodBoolean>;
1008
1017
  algorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
1009
1018
  secretRef: z.ZodString;
1019
+ signedPayload: z.ZodDefault<z.ZodString>;
1020
+ signatureTemplate: z.ZodDefault<z.ZodString>;
1021
+ digestEncoding: z.ZodDefault<z.ZodEnum<["hex", "base64"]>>;
1010
1022
  signatureHeader: z.ZodDefault<z.ZodString>;
1011
- timestampHeader: z.ZodDefault<z.ZodString>;
1023
+ timestampHeader: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1012
1024
  replayWindowMs: z.ZodDefault<z.ZodNumber>;
1013
1025
  }, "strict", z.ZodTypeAny, {
1014
- enabled: boolean;
1026
+ mode: "hmac";
1015
1027
  algorithm: "sha256";
1028
+ signedPayload: string;
1029
+ signatureTemplate: string;
1030
+ digestEncoding: "base64" | "hex";
1031
+ enabled: boolean;
1016
1032
  secretRef: string;
1017
1033
  signatureHeader: string;
1018
- timestampHeader: string;
1034
+ timestampHeader: string | null;
1019
1035
  replayWindowMs: number;
1020
1036
  }, {
1021
1037
  secretRef: string;
1022
- enabled?: boolean | undefined;
1038
+ mode?: "hmac" | undefined;
1023
1039
  algorithm?: "sha256" | undefined;
1040
+ signedPayload?: string | undefined;
1041
+ signatureTemplate?: string | undefined;
1042
+ digestEncoding?: "base64" | "hex" | undefined;
1043
+ enabled?: boolean | undefined;
1024
1044
  signatureHeader?: string | undefined;
1025
- timestampHeader?: string | undefined;
1045
+ timestampHeader?: string | null | undefined;
1026
1046
  replayWindowMs?: number | undefined;
1027
- }>;
1047
+ }>]>, {
1048
+ mode: "hmac";
1049
+ algorithm: "sha256";
1050
+ signedPayload: string;
1051
+ signatureTemplate: string;
1052
+ digestEncoding: "base64" | "hex";
1053
+ enabled: boolean;
1054
+ secretRef: string;
1055
+ signatureHeader: string;
1056
+ timestampHeader: string | null;
1057
+ replayWindowMs: number;
1058
+ }, unknown>, {
1059
+ mode: "hmac";
1060
+ algorithm: "sha256";
1061
+ signedPayload: string;
1062
+ signatureTemplate: string;
1063
+ digestEncoding: "base64" | "hex";
1064
+ enabled: boolean;
1065
+ secretRef: string;
1066
+ signatureHeader: string;
1067
+ timestampHeader: string | null;
1068
+ replayWindowMs: number;
1069
+ }, unknown>;
1028
1070
  declare const WebhookRetry: z.ZodEffects<z.ZodObject<{
1029
1071
  attempts: z.ZodDefault<z.ZodNumber>;
1030
1072
  backoff: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
@@ -1093,28 +1135,62 @@ export declare const WebhookSpec: z.ZodObject<{
1093
1135
  backoff?: number[] | undefined;
1094
1136
  jitterRatio?: number | undefined;
1095
1137
  }>>;
1096
- signing: z.ZodOptional<z.ZodObject<{
1138
+ signing: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1139
+ mode: z.ZodDefault<z.ZodLiteral<"hmac">>;
1097
1140
  enabled: z.ZodDefault<z.ZodBoolean>;
1098
1141
  algorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
1099
1142
  secretRef: z.ZodString;
1143
+ signedPayload: z.ZodDefault<z.ZodString>;
1144
+ signatureTemplate: z.ZodDefault<z.ZodString>;
1145
+ digestEncoding: z.ZodDefault<z.ZodEnum<["hex", "base64"]>>;
1100
1146
  signatureHeader: z.ZodDefault<z.ZodString>;
1101
- timestampHeader: z.ZodDefault<z.ZodString>;
1147
+ timestampHeader: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1102
1148
  replayWindowMs: z.ZodDefault<z.ZodNumber>;
1103
1149
  }, "strict", z.ZodTypeAny, {
1104
- enabled: boolean;
1150
+ mode: "hmac";
1105
1151
  algorithm: "sha256";
1152
+ signedPayload: string;
1153
+ signatureTemplate: string;
1154
+ digestEncoding: "base64" | "hex";
1155
+ enabled: boolean;
1106
1156
  secretRef: string;
1107
1157
  signatureHeader: string;
1108
- timestampHeader: string;
1158
+ timestampHeader: string | null;
1109
1159
  replayWindowMs: number;
1110
1160
  }, {
1111
1161
  secretRef: string;
1112
- enabled?: boolean | undefined;
1162
+ mode?: "hmac" | undefined;
1113
1163
  algorithm?: "sha256" | undefined;
1164
+ signedPayload?: string | undefined;
1165
+ signatureTemplate?: string | undefined;
1166
+ digestEncoding?: "base64" | "hex" | undefined;
1167
+ enabled?: boolean | undefined;
1114
1168
  signatureHeader?: string | undefined;
1115
- timestampHeader?: string | undefined;
1169
+ timestampHeader?: string | null | undefined;
1116
1170
  replayWindowMs?: number | undefined;
1117
- }>>;
1171
+ }>]>, {
1172
+ mode: "hmac";
1173
+ algorithm: "sha256";
1174
+ signedPayload: string;
1175
+ signatureTemplate: string;
1176
+ digestEncoding: "base64" | "hex";
1177
+ enabled: boolean;
1178
+ secretRef: string;
1179
+ signatureHeader: string;
1180
+ timestampHeader: string | null;
1181
+ replayWindowMs: number;
1182
+ }, unknown>, {
1183
+ mode: "hmac";
1184
+ algorithm: "sha256";
1185
+ signedPayload: string;
1186
+ signatureTemplate: string;
1187
+ digestEncoding: "base64" | "hex";
1188
+ enabled: boolean;
1189
+ secretRef: string;
1190
+ signatureHeader: string;
1191
+ timestampHeader: string | null;
1192
+ replayWindowMs: number;
1193
+ }, unknown>>;
1118
1194
  circuit: z.ZodDefault<z.ZodObject<{
1119
1195
  failureThreshold: z.ZodDefault<z.ZodNumber>;
1120
1196
  cooldownMs: z.ZodDefault<z.ZodNumber>;
@@ -1142,8 +1218,8 @@ export declare const WebhookSpec: z.ZodObject<{
1142
1218
  }, "strict", z.ZodTypeAny, {
1143
1219
  id: string;
1144
1220
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1145
- url: string;
1146
1221
  headers: Record<string, string>;
1222
+ url: string;
1147
1223
  timeoutMs: number;
1148
1224
  retry: {
1149
1225
  attempts: number;
@@ -1159,11 +1235,15 @@ export declare const WebhookSpec: z.ZodObject<{
1159
1235
  acceptHeaderOverride: boolean;
1160
1236
  body?: unknown;
1161
1237
  signing?: {
1162
- enabled: boolean;
1238
+ mode: "hmac";
1163
1239
  algorithm: "sha256";
1240
+ signedPayload: string;
1241
+ signatureTemplate: string;
1242
+ digestEncoding: "base64" | "hex";
1243
+ enabled: boolean;
1164
1244
  secretRef: string;
1165
1245
  signatureHeader: string;
1166
- timestampHeader: string;
1246
+ timestampHeader: string | null;
1167
1247
  replayWindowMs: number;
1168
1248
  } | undefined;
1169
1249
  expectResponse?: {
@@ -1182,14 +1262,7 @@ export declare const WebhookSpec: z.ZodObject<{
1182
1262
  backoff?: number[] | undefined;
1183
1263
  jitterRatio?: number | undefined;
1184
1264
  } | undefined;
1185
- signing?: {
1186
- secretRef: string;
1187
- enabled?: boolean | undefined;
1188
- algorithm?: "sha256" | undefined;
1189
- signatureHeader?: string | undefined;
1190
- timestampHeader?: string | undefined;
1191
- replayWindowMs?: number | undefined;
1192
- } | undefined;
1265
+ signing?: unknown;
1193
1266
  circuit?: {
1194
1267
  failureThreshold?: number | undefined;
1195
1268
  cooldownMs?: number | undefined;
@@ -1213,12 +1286,16 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1213
1286
  equals: string;
1214
1287
  }, {
1215
1288
  equals: string;
1216
- }>, z.ZodObject<{
1289
+ }>, z.ZodEffects<z.ZodObject<{
1217
1290
  regex: z.ZodString;
1218
1291
  }, "strict", z.ZodTypeAny, {
1219
1292
  regex: string;
1220
1293
  }, {
1221
1294
  regex: string;
1295
+ }>, {
1296
+ regex: string;
1297
+ }, {
1298
+ regex: string;
1222
1299
  }>, z.ZodObject<{
1223
1300
  startsWith: z.ZodString;
1224
1301
  }, "strict", z.ZodTypeAny, {
@@ -1238,12 +1315,16 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1238
1315
  equals: string;
1239
1316
  }, {
1240
1317
  equals: string;
1241
- }>, z.ZodObject<{
1318
+ }>, z.ZodEffects<z.ZodObject<{
1242
1319
  regex: z.ZodString;
1243
1320
  }, "strict", z.ZodTypeAny, {
1244
1321
  regex: string;
1245
1322
  }, {
1246
1323
  regex: string;
1324
+ }>, {
1325
+ regex: string;
1326
+ }, {
1327
+ regex: string;
1247
1328
  }>, z.ZodObject<{
1248
1329
  startsWith: z.ZodString;
1249
1330
  }, "strict", z.ZodTypeAny, {
@@ -1353,8 +1434,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1353
1434
  }, {
1354
1435
  kind: "static";
1355
1436
  body?: unknown;
1356
- status?: number | undefined;
1357
1437
  headers?: Record<string, string> | undefined;
1438
+ status?: number | undefined;
1358
1439
  delay?: number | {
1359
1440
  min: number;
1360
1441
  max: number;
@@ -1531,7 +1612,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1531
1612
  } | {
1532
1613
  contains: string;
1533
1614
  }> | undefined;
1534
- params?: Record<string, string | {
1615
+ headers?: Record<string, string | {
1535
1616
  equals: string;
1536
1617
  } | {
1537
1618
  regex: string;
@@ -1540,7 +1621,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1540
1621
  } | {
1541
1622
  contains: string;
1542
1623
  }> | undefined;
1543
- headers?: Record<string, string | {
1624
+ params?: Record<string, string | {
1544
1625
  equals: string;
1545
1626
  } | {
1546
1627
  regex: string;
@@ -1568,7 +1649,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1568
1649
  } | {
1569
1650
  contains: string;
1570
1651
  }> | undefined;
1571
- params?: Record<string, string | {
1652
+ headers?: Record<string, string | {
1572
1653
  equals: string;
1573
1654
  } | {
1574
1655
  regex: string;
@@ -1577,7 +1658,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1577
1658
  } | {
1578
1659
  contains: string;
1579
1660
  }> | undefined;
1580
- headers?: Record<string, string | {
1661
+ params?: Record<string, string | {
1581
1662
  equals: string;
1582
1663
  } | {
1583
1664
  regex: string;
@@ -1605,7 +1686,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1605
1686
  } | {
1606
1687
  contains: string;
1607
1688
  }> | undefined;
1608
- params?: Record<string, string | {
1689
+ headers?: Record<string, string | {
1609
1690
  equals: string;
1610
1691
  } | {
1611
1692
  regex: string;
@@ -1614,7 +1695,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1614
1695
  } | {
1615
1696
  contains: string;
1616
1697
  }> | undefined;
1617
- headers?: Record<string, string | {
1698
+ params?: Record<string, string | {
1618
1699
  equals: string;
1619
1700
  } | {
1620
1701
  regex: string;
@@ -1642,7 +1723,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1642
1723
  } | {
1643
1724
  contains: string;
1644
1725
  }> | undefined;
1645
- params?: Record<string, string | {
1726
+ headers?: Record<string, string | {
1646
1727
  equals: string;
1647
1728
  } | {
1648
1729
  regex: string;
@@ -1651,7 +1732,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1651
1732
  } | {
1652
1733
  contains: string;
1653
1734
  }> | undefined;
1654
- headers?: Record<string, string | {
1735
+ params?: Record<string, string | {
1655
1736
  equals: string;
1656
1737
  } | {
1657
1738
  regex: string;
@@ -1686,32 +1767,32 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1686
1767
  }>]>>;
1687
1768
  }, "strict", z.ZodTypeAny, {
1688
1769
  body?: unknown;
1689
- status?: number | undefined;
1690
1770
  headers?: Record<string, string> | undefined;
1771
+ status?: number | undefined;
1691
1772
  delay?: number | {
1692
1773
  min: number;
1693
1774
  max: number;
1694
1775
  } | undefined;
1695
1776
  }, {
1696
1777
  body?: unknown;
1697
- status?: number | undefined;
1698
1778
  headers?: Record<string, string> | undefined;
1779
+ status?: number | undefined;
1699
1780
  delay?: number | {
1700
1781
  min: number;
1701
1782
  max: number;
1702
1783
  } | undefined;
1703
1784
  }>, {
1704
1785
  body?: unknown;
1705
- status?: number | undefined;
1706
1786
  headers?: Record<string, string> | undefined;
1787
+ status?: number | undefined;
1707
1788
  delay?: number | {
1708
1789
  min: number;
1709
1790
  max: number;
1710
1791
  } | undefined;
1711
1792
  }, {
1712
1793
  body?: unknown;
1713
- status?: number | undefined;
1714
1794
  headers?: Record<string, string> | undefined;
1795
+ status?: number | undefined;
1715
1796
  delay?: number | {
1716
1797
  min: number;
1717
1798
  max: number;
@@ -1721,8 +1802,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1721
1802
  id: string;
1722
1803
  response: {
1723
1804
  body?: unknown;
1724
- status?: number | undefined;
1725
1805
  headers?: Record<string, string> | undefined;
1806
+ status?: number | undefined;
1726
1807
  delay?: number | {
1727
1808
  min: number;
1728
1809
  max: number;
@@ -1738,7 +1819,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1738
1819
  } | {
1739
1820
  contains: string;
1740
1821
  }> | undefined;
1741
- params?: Record<string, string | {
1822
+ headers?: Record<string, string | {
1742
1823
  equals: string;
1743
1824
  } | {
1744
1825
  regex: string;
@@ -1747,7 +1828,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1747
1828
  } | {
1748
1829
  contains: string;
1749
1830
  }> | undefined;
1750
- headers?: Record<string, string | {
1831
+ params?: Record<string, string | {
1751
1832
  equals: string;
1752
1833
  } | {
1753
1834
  regex: string;
@@ -1770,8 +1851,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1770
1851
  id: string;
1771
1852
  response: {
1772
1853
  body?: unknown;
1773
- status?: number | undefined;
1774
1854
  headers?: Record<string, string> | undefined;
1855
+ status?: number | undefined;
1775
1856
  delay?: number | {
1776
1857
  min: number;
1777
1858
  max: number;
@@ -1787,7 +1868,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1787
1868
  } | {
1788
1869
  contains: string;
1789
1870
  }> | undefined;
1790
- params?: Record<string, string | {
1871
+ headers?: Record<string, string | {
1791
1872
  equals: string;
1792
1873
  } | {
1793
1874
  regex: string;
@@ -1796,7 +1877,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1796
1877
  } | {
1797
1878
  contains: string;
1798
1879
  }> | undefined;
1799
- headers?: Record<string, string | {
1880
+ params?: Record<string, string | {
1800
1881
  equals: string;
1801
1882
  } | {
1802
1883
  regex: string;
@@ -1843,28 +1924,62 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1843
1924
  backoff?: number[] | undefined;
1844
1925
  jitterRatio?: number | undefined;
1845
1926
  }>>;
1846
- signing: z.ZodOptional<z.ZodObject<{
1927
+ signing: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
1928
+ mode: z.ZodDefault<z.ZodLiteral<"hmac">>;
1847
1929
  enabled: z.ZodDefault<z.ZodBoolean>;
1848
1930
  algorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
1849
1931
  secretRef: z.ZodString;
1932
+ signedPayload: z.ZodDefault<z.ZodString>;
1933
+ signatureTemplate: z.ZodDefault<z.ZodString>;
1934
+ digestEncoding: z.ZodDefault<z.ZodEnum<["hex", "base64"]>>;
1850
1935
  signatureHeader: z.ZodDefault<z.ZodString>;
1851
- timestampHeader: z.ZodDefault<z.ZodString>;
1936
+ timestampHeader: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1852
1937
  replayWindowMs: z.ZodDefault<z.ZodNumber>;
1853
1938
  }, "strict", z.ZodTypeAny, {
1854
- enabled: boolean;
1939
+ mode: "hmac";
1855
1940
  algorithm: "sha256";
1941
+ signedPayload: string;
1942
+ signatureTemplate: string;
1943
+ digestEncoding: "base64" | "hex";
1944
+ enabled: boolean;
1856
1945
  secretRef: string;
1857
1946
  signatureHeader: string;
1858
- timestampHeader: string;
1947
+ timestampHeader: string | null;
1859
1948
  replayWindowMs: number;
1860
1949
  }, {
1861
1950
  secretRef: string;
1862
- enabled?: boolean | undefined;
1951
+ mode?: "hmac" | undefined;
1863
1952
  algorithm?: "sha256" | undefined;
1953
+ signedPayload?: string | undefined;
1954
+ signatureTemplate?: string | undefined;
1955
+ digestEncoding?: "base64" | "hex" | undefined;
1956
+ enabled?: boolean | undefined;
1864
1957
  signatureHeader?: string | undefined;
1865
- timestampHeader?: string | undefined;
1958
+ timestampHeader?: string | null | undefined;
1866
1959
  replayWindowMs?: number | undefined;
1867
- }>>;
1960
+ }>]>, {
1961
+ mode: "hmac";
1962
+ algorithm: "sha256";
1963
+ signedPayload: string;
1964
+ signatureTemplate: string;
1965
+ digestEncoding: "base64" | "hex";
1966
+ enabled: boolean;
1967
+ secretRef: string;
1968
+ signatureHeader: string;
1969
+ timestampHeader: string | null;
1970
+ replayWindowMs: number;
1971
+ }, unknown>, {
1972
+ mode: "hmac";
1973
+ algorithm: "sha256";
1974
+ signedPayload: string;
1975
+ signatureTemplate: string;
1976
+ digestEncoding: "base64" | "hex";
1977
+ enabled: boolean;
1978
+ secretRef: string;
1979
+ signatureHeader: string;
1980
+ timestampHeader: string | null;
1981
+ replayWindowMs: number;
1982
+ }, unknown>>;
1868
1983
  circuit: z.ZodDefault<z.ZodObject<{
1869
1984
  failureThreshold: z.ZodDefault<z.ZodNumber>;
1870
1985
  cooldownMs: z.ZodDefault<z.ZodNumber>;
@@ -1892,8 +2007,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1892
2007
  }, "strict", z.ZodTypeAny, {
1893
2008
  id: string;
1894
2009
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1895
- url: string;
1896
2010
  headers: Record<string, string>;
2011
+ url: string;
1897
2012
  timeoutMs: number;
1898
2013
  retry: {
1899
2014
  attempts: number;
@@ -1909,11 +2024,15 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1909
2024
  acceptHeaderOverride: boolean;
1910
2025
  body?: unknown;
1911
2026
  signing?: {
1912
- enabled: boolean;
2027
+ mode: "hmac";
1913
2028
  algorithm: "sha256";
2029
+ signedPayload: string;
2030
+ signatureTemplate: string;
2031
+ digestEncoding: "base64" | "hex";
2032
+ enabled: boolean;
1914
2033
  secretRef: string;
1915
2034
  signatureHeader: string;
1916
- timestampHeader: string;
2035
+ timestampHeader: string | null;
1917
2036
  replayWindowMs: number;
1918
2037
  } | undefined;
1919
2038
  expectResponse?: {
@@ -1932,14 +2051,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
1932
2051
  backoff?: number[] | undefined;
1933
2052
  jitterRatio?: number | undefined;
1934
2053
  } | undefined;
1935
- signing?: {
1936
- secretRef: string;
1937
- enabled?: boolean | undefined;
1938
- algorithm?: "sha256" | undefined;
1939
- signatureHeader?: string | undefined;
1940
- timestampHeader?: string | undefined;
1941
- replayWindowMs?: number | undefined;
1942
- } | undefined;
2054
+ signing?: unknown;
1943
2055
  circuit?: {
1944
2056
  failureThreshold?: number | undefined;
1945
2057
  cooldownMs?: number | undefined;
@@ -2008,8 +2120,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2008
2120
  id: string;
2009
2121
  response: {
2010
2122
  body?: unknown;
2011
- status?: number | undefined;
2012
2123
  headers?: Record<string, string> | undefined;
2124
+ status?: number | undefined;
2013
2125
  delay?: number | {
2014
2126
  min: number;
2015
2127
  max: number;
@@ -2025,7 +2137,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2025
2137
  } | {
2026
2138
  contains: string;
2027
2139
  }> | undefined;
2028
- params?: Record<string, string | {
2140
+ headers?: Record<string, string | {
2029
2141
  equals: string;
2030
2142
  } | {
2031
2143
  regex: string;
@@ -2034,7 +2146,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2034
2146
  } | {
2035
2147
  contains: string;
2036
2148
  }> | undefined;
2037
- headers?: Record<string, string | {
2149
+ params?: Record<string, string | {
2038
2150
  equals: string;
2039
2151
  } | {
2040
2152
  regex: string;
@@ -2057,8 +2169,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2057
2169
  webhooks?: {
2058
2170
  id: string;
2059
2171
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2060
- url: string;
2061
2172
  headers: Record<string, string>;
2173
+ url: string;
2062
2174
  timeoutMs: number;
2063
2175
  retry: {
2064
2176
  attempts: number;
@@ -2074,11 +2186,15 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2074
2186
  acceptHeaderOverride: boolean;
2075
2187
  body?: unknown;
2076
2188
  signing?: {
2077
- enabled: boolean;
2189
+ mode: "hmac";
2078
2190
  algorithm: "sha256";
2191
+ signedPayload: string;
2192
+ signatureTemplate: string;
2193
+ digestEncoding: "base64" | "hex";
2194
+ enabled: boolean;
2079
2195
  secretRef: string;
2080
2196
  signatureHeader: string;
2081
- timestampHeader: string;
2197
+ timestampHeader: string | null;
2082
2198
  replayWindowMs: number;
2083
2199
  } | undefined;
2084
2200
  expectResponse?: {
@@ -2119,8 +2235,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2119
2235
  response: {
2120
2236
  kind: "static";
2121
2237
  body?: unknown;
2122
- status?: number | undefined;
2123
2238
  headers?: Record<string, string> | undefined;
2239
+ status?: number | undefined;
2124
2240
  delay?: number | {
2125
2241
  min: number;
2126
2242
  max: number;
@@ -2142,8 +2258,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2142
2258
  id: string;
2143
2259
  response: {
2144
2260
  body?: unknown;
2145
- status?: number | undefined;
2146
2261
  headers?: Record<string, string> | undefined;
2262
+ status?: number | undefined;
2147
2263
  delay?: number | {
2148
2264
  min: number;
2149
2265
  max: number;
@@ -2159,7 +2275,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2159
2275
  } | {
2160
2276
  contains: string;
2161
2277
  }> | undefined;
2162
- params?: Record<string, string | {
2278
+ headers?: Record<string, string | {
2163
2279
  equals: string;
2164
2280
  } | {
2165
2281
  regex: string;
@@ -2168,7 +2284,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2168
2284
  } | {
2169
2285
  contains: string;
2170
2286
  }> | undefined;
2171
- headers?: Record<string, string | {
2287
+ params?: Record<string, string | {
2172
2288
  equals: string;
2173
2289
  } | {
2174
2290
  regex: string;
@@ -2200,14 +2316,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2200
2316
  backoff?: number[] | undefined;
2201
2317
  jitterRatio?: number | undefined;
2202
2318
  } | undefined;
2203
- signing?: {
2204
- secretRef: string;
2205
- enabled?: boolean | undefined;
2206
- algorithm?: "sha256" | undefined;
2207
- signatureHeader?: string | undefined;
2208
- timestampHeader?: string | undefined;
2209
- replayWindowMs?: number | undefined;
2210
- } | undefined;
2319
+ signing?: unknown;
2211
2320
  circuit?: {
2212
2321
  failureThreshold?: number | undefined;
2213
2322
  cooldownMs?: number | undefined;
@@ -2276,8 +2385,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2276
2385
  id: string;
2277
2386
  response: {
2278
2387
  body?: unknown;
2279
- status?: number | undefined;
2280
2388
  headers?: Record<string, string> | undefined;
2389
+ status?: number | undefined;
2281
2390
  delay?: number | {
2282
2391
  min: number;
2283
2392
  max: number;
@@ -2293,7 +2402,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2293
2402
  } | {
2294
2403
  contains: string;
2295
2404
  }> | undefined;
2296
- params?: Record<string, string | {
2405
+ headers?: Record<string, string | {
2297
2406
  equals: string;
2298
2407
  } | {
2299
2408
  regex: string;
@@ -2302,7 +2411,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2302
2411
  } | {
2303
2412
  contains: string;
2304
2413
  }> | undefined;
2305
- headers?: Record<string, string | {
2414
+ params?: Record<string, string | {
2306
2415
  equals: string;
2307
2416
  } | {
2308
2417
  regex: string;
@@ -2325,8 +2434,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2325
2434
  webhooks?: {
2326
2435
  id: string;
2327
2436
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2328
- url: string;
2329
2437
  headers: Record<string, string>;
2438
+ url: string;
2330
2439
  timeoutMs: number;
2331
2440
  retry: {
2332
2441
  attempts: number;
@@ -2342,11 +2451,15 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2342
2451
  acceptHeaderOverride: boolean;
2343
2452
  body?: unknown;
2344
2453
  signing?: {
2345
- enabled: boolean;
2454
+ mode: "hmac";
2346
2455
  algorithm: "sha256";
2456
+ signedPayload: string;
2457
+ signatureTemplate: string;
2458
+ digestEncoding: "base64" | "hex";
2459
+ enabled: boolean;
2347
2460
  secretRef: string;
2348
2461
  signatureHeader: string;
2349
- timestampHeader: string;
2462
+ timestampHeader: string | null;
2350
2463
  replayWindowMs: number;
2351
2464
  } | undefined;
2352
2465
  expectResponse?: {
@@ -2387,8 +2500,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2387
2500
  response: {
2388
2501
  kind: "static";
2389
2502
  body?: unknown;
2390
- status?: number | undefined;
2391
2503
  headers?: Record<string, string> | undefined;
2504
+ status?: number | undefined;
2392
2505
  delay?: number | {
2393
2506
  min: number;
2394
2507
  max: number;
@@ -2410,8 +2523,8 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2410
2523
  id: string;
2411
2524
  response: {
2412
2525
  body?: unknown;
2413
- status?: number | undefined;
2414
2526
  headers?: Record<string, string> | undefined;
2527
+ status?: number | undefined;
2415
2528
  delay?: number | {
2416
2529
  min: number;
2417
2530
  max: number;
@@ -2427,7 +2540,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2427
2540
  } | {
2428
2541
  contains: string;
2429
2542
  }> | undefined;
2430
- params?: Record<string, string | {
2543
+ headers?: Record<string, string | {
2431
2544
  equals: string;
2432
2545
  } | {
2433
2546
  regex: string;
@@ -2436,7 +2549,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2436
2549
  } | {
2437
2550
  contains: string;
2438
2551
  }> | undefined;
2439
- headers?: Record<string, string | {
2552
+ params?: Record<string, string | {
2440
2553
  equals: string;
2441
2554
  } | {
2442
2555
  regex: string;
@@ -2468,14 +2581,7 @@ export declare const MockEntry: z.ZodEffects<z.ZodObject<{
2468
2581
  backoff?: number[] | undefined;
2469
2582
  jitterRatio?: number | undefined;
2470
2583
  } | undefined;
2471
- signing?: {
2472
- secretRef: string;
2473
- enabled?: boolean | undefined;
2474
- algorithm?: "sha256" | undefined;
2475
- signatureHeader?: string | undefined;
2476
- timestampHeader?: string | undefined;
2477
- replayWindowMs?: number | undefined;
2478
- } | undefined;
2584
+ signing?: unknown;
2479
2585
  circuit?: {
2480
2586
  failureThreshold?: number | undefined;
2481
2587
  cooldownMs?: number | undefined;
@@ -2501,12 +2607,16 @@ export declare const MocksFile: z.ZodObject<{
2501
2607
  equals: string;
2502
2608
  }, {
2503
2609
  equals: string;
2504
- }>, z.ZodObject<{
2610
+ }>, z.ZodEffects<z.ZodObject<{
2505
2611
  regex: z.ZodString;
2506
2612
  }, "strict", z.ZodTypeAny, {
2507
2613
  regex: string;
2508
2614
  }, {
2509
2615
  regex: string;
2616
+ }>, {
2617
+ regex: string;
2618
+ }, {
2619
+ regex: string;
2510
2620
  }>, z.ZodObject<{
2511
2621
  startsWith: z.ZodString;
2512
2622
  }, "strict", z.ZodTypeAny, {
@@ -2526,12 +2636,16 @@ export declare const MocksFile: z.ZodObject<{
2526
2636
  equals: string;
2527
2637
  }, {
2528
2638
  equals: string;
2529
- }>, z.ZodObject<{
2639
+ }>, z.ZodEffects<z.ZodObject<{
2530
2640
  regex: z.ZodString;
2531
2641
  }, "strict", z.ZodTypeAny, {
2532
2642
  regex: string;
2533
2643
  }, {
2534
2644
  regex: string;
2645
+ }>, {
2646
+ regex: string;
2647
+ }, {
2648
+ regex: string;
2535
2649
  }>, z.ZodObject<{
2536
2650
  startsWith: z.ZodString;
2537
2651
  }, "strict", z.ZodTypeAny, {
@@ -2641,8 +2755,8 @@ export declare const MocksFile: z.ZodObject<{
2641
2755
  }, {
2642
2756
  kind: "static";
2643
2757
  body?: unknown;
2644
- status?: number | undefined;
2645
2758
  headers?: Record<string, string> | undefined;
2759
+ status?: number | undefined;
2646
2760
  delay?: number | {
2647
2761
  min: number;
2648
2762
  max: number;
@@ -2819,7 +2933,7 @@ export declare const MocksFile: z.ZodObject<{
2819
2933
  } | {
2820
2934
  contains: string;
2821
2935
  }> | undefined;
2822
- params?: Record<string, string | {
2936
+ headers?: Record<string, string | {
2823
2937
  equals: string;
2824
2938
  } | {
2825
2939
  regex: string;
@@ -2828,7 +2942,7 @@ export declare const MocksFile: z.ZodObject<{
2828
2942
  } | {
2829
2943
  contains: string;
2830
2944
  }> | undefined;
2831
- headers?: Record<string, string | {
2945
+ params?: Record<string, string | {
2832
2946
  equals: string;
2833
2947
  } | {
2834
2948
  regex: string;
@@ -2856,7 +2970,7 @@ export declare const MocksFile: z.ZodObject<{
2856
2970
  } | {
2857
2971
  contains: string;
2858
2972
  }> | undefined;
2859
- params?: Record<string, string | {
2973
+ headers?: Record<string, string | {
2860
2974
  equals: string;
2861
2975
  } | {
2862
2976
  regex: string;
@@ -2865,7 +2979,7 @@ export declare const MocksFile: z.ZodObject<{
2865
2979
  } | {
2866
2980
  contains: string;
2867
2981
  }> | undefined;
2868
- headers?: Record<string, string | {
2982
+ params?: Record<string, string | {
2869
2983
  equals: string;
2870
2984
  } | {
2871
2985
  regex: string;
@@ -2893,7 +3007,7 @@ export declare const MocksFile: z.ZodObject<{
2893
3007
  } | {
2894
3008
  contains: string;
2895
3009
  }> | undefined;
2896
- params?: Record<string, string | {
3010
+ headers?: Record<string, string | {
2897
3011
  equals: string;
2898
3012
  } | {
2899
3013
  regex: string;
@@ -2902,7 +3016,7 @@ export declare const MocksFile: z.ZodObject<{
2902
3016
  } | {
2903
3017
  contains: string;
2904
3018
  }> | undefined;
2905
- headers?: Record<string, string | {
3019
+ params?: Record<string, string | {
2906
3020
  equals: string;
2907
3021
  } | {
2908
3022
  regex: string;
@@ -2930,7 +3044,7 @@ export declare const MocksFile: z.ZodObject<{
2930
3044
  } | {
2931
3045
  contains: string;
2932
3046
  }> | undefined;
2933
- params?: Record<string, string | {
3047
+ headers?: Record<string, string | {
2934
3048
  equals: string;
2935
3049
  } | {
2936
3050
  regex: string;
@@ -2939,7 +3053,7 @@ export declare const MocksFile: z.ZodObject<{
2939
3053
  } | {
2940
3054
  contains: string;
2941
3055
  }> | undefined;
2942
- headers?: Record<string, string | {
3056
+ params?: Record<string, string | {
2943
3057
  equals: string;
2944
3058
  } | {
2945
3059
  regex: string;
@@ -2974,32 +3088,32 @@ export declare const MocksFile: z.ZodObject<{
2974
3088
  }>]>>;
2975
3089
  }, "strict", z.ZodTypeAny, {
2976
3090
  body?: unknown;
2977
- status?: number | undefined;
2978
3091
  headers?: Record<string, string> | undefined;
3092
+ status?: number | undefined;
2979
3093
  delay?: number | {
2980
3094
  min: number;
2981
3095
  max: number;
2982
3096
  } | undefined;
2983
3097
  }, {
2984
3098
  body?: unknown;
2985
- status?: number | undefined;
2986
3099
  headers?: Record<string, string> | undefined;
3100
+ status?: number | undefined;
2987
3101
  delay?: number | {
2988
3102
  min: number;
2989
3103
  max: number;
2990
3104
  } | undefined;
2991
3105
  }>, {
2992
3106
  body?: unknown;
2993
- status?: number | undefined;
2994
3107
  headers?: Record<string, string> | undefined;
3108
+ status?: number | undefined;
2995
3109
  delay?: number | {
2996
3110
  min: number;
2997
3111
  max: number;
2998
3112
  } | undefined;
2999
3113
  }, {
3000
3114
  body?: unknown;
3001
- status?: number | undefined;
3002
3115
  headers?: Record<string, string> | undefined;
3116
+ status?: number | undefined;
3003
3117
  delay?: number | {
3004
3118
  min: number;
3005
3119
  max: number;
@@ -3009,8 +3123,8 @@ export declare const MocksFile: z.ZodObject<{
3009
3123
  id: string;
3010
3124
  response: {
3011
3125
  body?: unknown;
3012
- status?: number | undefined;
3013
3126
  headers?: Record<string, string> | undefined;
3127
+ status?: number | undefined;
3014
3128
  delay?: number | {
3015
3129
  min: number;
3016
3130
  max: number;
@@ -3026,7 +3140,7 @@ export declare const MocksFile: z.ZodObject<{
3026
3140
  } | {
3027
3141
  contains: string;
3028
3142
  }> | undefined;
3029
- params?: Record<string, string | {
3143
+ headers?: Record<string, string | {
3030
3144
  equals: string;
3031
3145
  } | {
3032
3146
  regex: string;
@@ -3035,7 +3149,7 @@ export declare const MocksFile: z.ZodObject<{
3035
3149
  } | {
3036
3150
  contains: string;
3037
3151
  }> | undefined;
3038
- headers?: Record<string, string | {
3152
+ params?: Record<string, string | {
3039
3153
  equals: string;
3040
3154
  } | {
3041
3155
  regex: string;
@@ -3058,8 +3172,8 @@ export declare const MocksFile: z.ZodObject<{
3058
3172
  id: string;
3059
3173
  response: {
3060
3174
  body?: unknown;
3061
- status?: number | undefined;
3062
3175
  headers?: Record<string, string> | undefined;
3176
+ status?: number | undefined;
3063
3177
  delay?: number | {
3064
3178
  min: number;
3065
3179
  max: number;
@@ -3075,7 +3189,7 @@ export declare const MocksFile: z.ZodObject<{
3075
3189
  } | {
3076
3190
  contains: string;
3077
3191
  }> | undefined;
3078
- params?: Record<string, string | {
3192
+ headers?: Record<string, string | {
3079
3193
  equals: string;
3080
3194
  } | {
3081
3195
  regex: string;
@@ -3084,7 +3198,7 @@ export declare const MocksFile: z.ZodObject<{
3084
3198
  } | {
3085
3199
  contains: string;
3086
3200
  }> | undefined;
3087
- headers?: Record<string, string | {
3201
+ params?: Record<string, string | {
3088
3202
  equals: string;
3089
3203
  } | {
3090
3204
  regex: string;
@@ -3131,28 +3245,62 @@ export declare const MocksFile: z.ZodObject<{
3131
3245
  backoff?: number[] | undefined;
3132
3246
  jitterRatio?: number | undefined;
3133
3247
  }>>;
3134
- signing: z.ZodOptional<z.ZodObject<{
3248
+ signing: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3249
+ mode: z.ZodDefault<z.ZodLiteral<"hmac">>;
3135
3250
  enabled: z.ZodDefault<z.ZodBoolean>;
3136
3251
  algorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
3137
3252
  secretRef: z.ZodString;
3253
+ signedPayload: z.ZodDefault<z.ZodString>;
3254
+ signatureTemplate: z.ZodDefault<z.ZodString>;
3255
+ digestEncoding: z.ZodDefault<z.ZodEnum<["hex", "base64"]>>;
3138
3256
  signatureHeader: z.ZodDefault<z.ZodString>;
3139
- timestampHeader: z.ZodDefault<z.ZodString>;
3257
+ timestampHeader: z.ZodDefault<z.ZodNullable<z.ZodString>>;
3140
3258
  replayWindowMs: z.ZodDefault<z.ZodNumber>;
3141
3259
  }, "strict", z.ZodTypeAny, {
3142
- enabled: boolean;
3260
+ mode: "hmac";
3143
3261
  algorithm: "sha256";
3262
+ signedPayload: string;
3263
+ signatureTemplate: string;
3264
+ digestEncoding: "base64" | "hex";
3265
+ enabled: boolean;
3144
3266
  secretRef: string;
3145
3267
  signatureHeader: string;
3146
- timestampHeader: string;
3268
+ timestampHeader: string | null;
3147
3269
  replayWindowMs: number;
3148
3270
  }, {
3149
3271
  secretRef: string;
3150
- enabled?: boolean | undefined;
3272
+ mode?: "hmac" | undefined;
3151
3273
  algorithm?: "sha256" | undefined;
3274
+ signedPayload?: string | undefined;
3275
+ signatureTemplate?: string | undefined;
3276
+ digestEncoding?: "base64" | "hex" | undefined;
3277
+ enabled?: boolean | undefined;
3152
3278
  signatureHeader?: string | undefined;
3153
- timestampHeader?: string | undefined;
3279
+ timestampHeader?: string | null | undefined;
3154
3280
  replayWindowMs?: number | undefined;
3155
- }>>;
3281
+ }>]>, {
3282
+ mode: "hmac";
3283
+ algorithm: "sha256";
3284
+ signedPayload: string;
3285
+ signatureTemplate: string;
3286
+ digestEncoding: "base64" | "hex";
3287
+ enabled: boolean;
3288
+ secretRef: string;
3289
+ signatureHeader: string;
3290
+ timestampHeader: string | null;
3291
+ replayWindowMs: number;
3292
+ }, unknown>, {
3293
+ mode: "hmac";
3294
+ algorithm: "sha256";
3295
+ signedPayload: string;
3296
+ signatureTemplate: string;
3297
+ digestEncoding: "base64" | "hex";
3298
+ enabled: boolean;
3299
+ secretRef: string;
3300
+ signatureHeader: string;
3301
+ timestampHeader: string | null;
3302
+ replayWindowMs: number;
3303
+ }, unknown>>;
3156
3304
  circuit: z.ZodDefault<z.ZodObject<{
3157
3305
  failureThreshold: z.ZodDefault<z.ZodNumber>;
3158
3306
  cooldownMs: z.ZodDefault<z.ZodNumber>;
@@ -3180,8 +3328,8 @@ export declare const MocksFile: z.ZodObject<{
3180
3328
  }, "strict", z.ZodTypeAny, {
3181
3329
  id: string;
3182
3330
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3183
- url: string;
3184
3331
  headers: Record<string, string>;
3332
+ url: string;
3185
3333
  timeoutMs: number;
3186
3334
  retry: {
3187
3335
  attempts: number;
@@ -3197,11 +3345,15 @@ export declare const MocksFile: z.ZodObject<{
3197
3345
  acceptHeaderOverride: boolean;
3198
3346
  body?: unknown;
3199
3347
  signing?: {
3200
- enabled: boolean;
3348
+ mode: "hmac";
3201
3349
  algorithm: "sha256";
3350
+ signedPayload: string;
3351
+ signatureTemplate: string;
3352
+ digestEncoding: "base64" | "hex";
3353
+ enabled: boolean;
3202
3354
  secretRef: string;
3203
3355
  signatureHeader: string;
3204
- timestampHeader: string;
3356
+ timestampHeader: string | null;
3205
3357
  replayWindowMs: number;
3206
3358
  } | undefined;
3207
3359
  expectResponse?: {
@@ -3220,14 +3372,7 @@ export declare const MocksFile: z.ZodObject<{
3220
3372
  backoff?: number[] | undefined;
3221
3373
  jitterRatio?: number | undefined;
3222
3374
  } | undefined;
3223
- signing?: {
3224
- secretRef: string;
3225
- enabled?: boolean | undefined;
3226
- algorithm?: "sha256" | undefined;
3227
- signatureHeader?: string | undefined;
3228
- timestampHeader?: string | undefined;
3229
- replayWindowMs?: number | undefined;
3230
- } | undefined;
3375
+ signing?: unknown;
3231
3376
  circuit?: {
3232
3377
  failureThreshold?: number | undefined;
3233
3378
  cooldownMs?: number | undefined;
@@ -3296,8 +3441,8 @@ export declare const MocksFile: z.ZodObject<{
3296
3441
  id: string;
3297
3442
  response: {
3298
3443
  body?: unknown;
3299
- status?: number | undefined;
3300
3444
  headers?: Record<string, string> | undefined;
3445
+ status?: number | undefined;
3301
3446
  delay?: number | {
3302
3447
  min: number;
3303
3448
  max: number;
@@ -3313,7 +3458,7 @@ export declare const MocksFile: z.ZodObject<{
3313
3458
  } | {
3314
3459
  contains: string;
3315
3460
  }> | undefined;
3316
- params?: Record<string, string | {
3461
+ headers?: Record<string, string | {
3317
3462
  equals: string;
3318
3463
  } | {
3319
3464
  regex: string;
@@ -3322,7 +3467,7 @@ export declare const MocksFile: z.ZodObject<{
3322
3467
  } | {
3323
3468
  contains: string;
3324
3469
  }> | undefined;
3325
- headers?: Record<string, string | {
3470
+ params?: Record<string, string | {
3326
3471
  equals: string;
3327
3472
  } | {
3328
3473
  regex: string;
@@ -3345,8 +3490,8 @@ export declare const MocksFile: z.ZodObject<{
3345
3490
  webhooks?: {
3346
3491
  id: string;
3347
3492
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3348
- url: string;
3349
3493
  headers: Record<string, string>;
3494
+ url: string;
3350
3495
  timeoutMs: number;
3351
3496
  retry: {
3352
3497
  attempts: number;
@@ -3362,11 +3507,15 @@ export declare const MocksFile: z.ZodObject<{
3362
3507
  acceptHeaderOverride: boolean;
3363
3508
  body?: unknown;
3364
3509
  signing?: {
3365
- enabled: boolean;
3510
+ mode: "hmac";
3366
3511
  algorithm: "sha256";
3512
+ signedPayload: string;
3513
+ signatureTemplate: string;
3514
+ digestEncoding: "base64" | "hex";
3515
+ enabled: boolean;
3367
3516
  secretRef: string;
3368
3517
  signatureHeader: string;
3369
- timestampHeader: string;
3518
+ timestampHeader: string | null;
3370
3519
  replayWindowMs: number;
3371
3520
  } | undefined;
3372
3521
  expectResponse?: {
@@ -3407,8 +3556,8 @@ export declare const MocksFile: z.ZodObject<{
3407
3556
  response: {
3408
3557
  kind: "static";
3409
3558
  body?: unknown;
3410
- status?: number | undefined;
3411
3559
  headers?: Record<string, string> | undefined;
3560
+ status?: number | undefined;
3412
3561
  delay?: number | {
3413
3562
  min: number;
3414
3563
  max: number;
@@ -3430,8 +3579,8 @@ export declare const MocksFile: z.ZodObject<{
3430
3579
  id: string;
3431
3580
  response: {
3432
3581
  body?: unknown;
3433
- status?: number | undefined;
3434
3582
  headers?: Record<string, string> | undefined;
3583
+ status?: number | undefined;
3435
3584
  delay?: number | {
3436
3585
  min: number;
3437
3586
  max: number;
@@ -3447,7 +3596,7 @@ export declare const MocksFile: z.ZodObject<{
3447
3596
  } | {
3448
3597
  contains: string;
3449
3598
  }> | undefined;
3450
- params?: Record<string, string | {
3599
+ headers?: Record<string, string | {
3451
3600
  equals: string;
3452
3601
  } | {
3453
3602
  regex: string;
@@ -3456,7 +3605,7 @@ export declare const MocksFile: z.ZodObject<{
3456
3605
  } | {
3457
3606
  contains: string;
3458
3607
  }> | undefined;
3459
- headers?: Record<string, string | {
3608
+ params?: Record<string, string | {
3460
3609
  equals: string;
3461
3610
  } | {
3462
3611
  regex: string;
@@ -3488,14 +3637,7 @@ export declare const MocksFile: z.ZodObject<{
3488
3637
  backoff?: number[] | undefined;
3489
3638
  jitterRatio?: number | undefined;
3490
3639
  } | undefined;
3491
- signing?: {
3492
- secretRef: string;
3493
- enabled?: boolean | undefined;
3494
- algorithm?: "sha256" | undefined;
3495
- signatureHeader?: string | undefined;
3496
- timestampHeader?: string | undefined;
3497
- replayWindowMs?: number | undefined;
3498
- } | undefined;
3640
+ signing?: unknown;
3499
3641
  circuit?: {
3500
3642
  failureThreshold?: number | undefined;
3501
3643
  cooldownMs?: number | undefined;
@@ -3564,8 +3706,8 @@ export declare const MocksFile: z.ZodObject<{
3564
3706
  id: string;
3565
3707
  response: {
3566
3708
  body?: unknown;
3567
- status?: number | undefined;
3568
3709
  headers?: Record<string, string> | undefined;
3710
+ status?: number | undefined;
3569
3711
  delay?: number | {
3570
3712
  min: number;
3571
3713
  max: number;
@@ -3581,7 +3723,7 @@ export declare const MocksFile: z.ZodObject<{
3581
3723
  } | {
3582
3724
  contains: string;
3583
3725
  }> | undefined;
3584
- params?: Record<string, string | {
3726
+ headers?: Record<string, string | {
3585
3727
  equals: string;
3586
3728
  } | {
3587
3729
  regex: string;
@@ -3590,7 +3732,7 @@ export declare const MocksFile: z.ZodObject<{
3590
3732
  } | {
3591
3733
  contains: string;
3592
3734
  }> | undefined;
3593
- headers?: Record<string, string | {
3735
+ params?: Record<string, string | {
3594
3736
  equals: string;
3595
3737
  } | {
3596
3738
  regex: string;
@@ -3613,8 +3755,8 @@ export declare const MocksFile: z.ZodObject<{
3613
3755
  webhooks?: {
3614
3756
  id: string;
3615
3757
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3616
- url: string;
3617
3758
  headers: Record<string, string>;
3759
+ url: string;
3618
3760
  timeoutMs: number;
3619
3761
  retry: {
3620
3762
  attempts: number;
@@ -3630,11 +3772,15 @@ export declare const MocksFile: z.ZodObject<{
3630
3772
  acceptHeaderOverride: boolean;
3631
3773
  body?: unknown;
3632
3774
  signing?: {
3633
- enabled: boolean;
3775
+ mode: "hmac";
3634
3776
  algorithm: "sha256";
3777
+ signedPayload: string;
3778
+ signatureTemplate: string;
3779
+ digestEncoding: "base64" | "hex";
3780
+ enabled: boolean;
3635
3781
  secretRef: string;
3636
3782
  signatureHeader: string;
3637
- timestampHeader: string;
3783
+ timestampHeader: string | null;
3638
3784
  replayWindowMs: number;
3639
3785
  } | undefined;
3640
3786
  expectResponse?: {
@@ -3675,8 +3821,8 @@ export declare const MocksFile: z.ZodObject<{
3675
3821
  response: {
3676
3822
  kind: "static";
3677
3823
  body?: unknown;
3678
- status?: number | undefined;
3679
3824
  headers?: Record<string, string> | undefined;
3825
+ status?: number | undefined;
3680
3826
  delay?: number | {
3681
3827
  min: number;
3682
3828
  max: number;
@@ -3698,8 +3844,8 @@ export declare const MocksFile: z.ZodObject<{
3698
3844
  id: string;
3699
3845
  response: {
3700
3846
  body?: unknown;
3701
- status?: number | undefined;
3702
3847
  headers?: Record<string, string> | undefined;
3848
+ status?: number | undefined;
3703
3849
  delay?: number | {
3704
3850
  min: number;
3705
3851
  max: number;
@@ -3715,7 +3861,7 @@ export declare const MocksFile: z.ZodObject<{
3715
3861
  } | {
3716
3862
  contains: string;
3717
3863
  }> | undefined;
3718
- params?: Record<string, string | {
3864
+ headers?: Record<string, string | {
3719
3865
  equals: string;
3720
3866
  } | {
3721
3867
  regex: string;
@@ -3724,7 +3870,7 @@ export declare const MocksFile: z.ZodObject<{
3724
3870
  } | {
3725
3871
  contains: string;
3726
3872
  }> | undefined;
3727
- headers?: Record<string, string | {
3873
+ params?: Record<string, string | {
3728
3874
  equals: string;
3729
3875
  } | {
3730
3876
  regex: string;
@@ -3756,14 +3902,7 @@ export declare const MocksFile: z.ZodObject<{
3756
3902
  backoff?: number[] | undefined;
3757
3903
  jitterRatio?: number | undefined;
3758
3904
  } | undefined;
3759
- signing?: {
3760
- secretRef: string;
3761
- enabled?: boolean | undefined;
3762
- algorithm?: "sha256" | undefined;
3763
- signatureHeader?: string | undefined;
3764
- timestampHeader?: string | undefined;
3765
- replayWindowMs?: number | undefined;
3766
- } | undefined;
3905
+ signing?: unknown;
3767
3906
  circuit?: {
3768
3907
  failureThreshold?: number | undefined;
3769
3908
  cooldownMs?: number | undefined;
@@ -3834,8 +3973,8 @@ export declare const MocksFile: z.ZodObject<{
3834
3973
  id: string;
3835
3974
  response: {
3836
3975
  body?: unknown;
3837
- status?: number | undefined;
3838
3976
  headers?: Record<string, string> | undefined;
3977
+ status?: number | undefined;
3839
3978
  delay?: number | {
3840
3979
  min: number;
3841
3980
  max: number;
@@ -3851,7 +3990,7 @@ export declare const MocksFile: z.ZodObject<{
3851
3990
  } | {
3852
3991
  contains: string;
3853
3992
  }> | undefined;
3854
- params?: Record<string, string | {
3993
+ headers?: Record<string, string | {
3855
3994
  equals: string;
3856
3995
  } | {
3857
3996
  regex: string;
@@ -3860,7 +3999,7 @@ export declare const MocksFile: z.ZodObject<{
3860
3999
  } | {
3861
4000
  contains: string;
3862
4001
  }> | undefined;
3863
- headers?: Record<string, string | {
4002
+ params?: Record<string, string | {
3864
4003
  equals: string;
3865
4004
  } | {
3866
4005
  regex: string;
@@ -3883,8 +4022,8 @@ export declare const MocksFile: z.ZodObject<{
3883
4022
  webhooks?: {
3884
4023
  id: string;
3885
4024
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
3886
- url: string;
3887
4025
  headers: Record<string, string>;
4026
+ url: string;
3888
4027
  timeoutMs: number;
3889
4028
  retry: {
3890
4029
  attempts: number;
@@ -3900,11 +4039,15 @@ export declare const MocksFile: z.ZodObject<{
3900
4039
  acceptHeaderOverride: boolean;
3901
4040
  body?: unknown;
3902
4041
  signing?: {
3903
- enabled: boolean;
4042
+ mode: "hmac";
3904
4043
  algorithm: "sha256";
4044
+ signedPayload: string;
4045
+ signatureTemplate: string;
4046
+ digestEncoding: "base64" | "hex";
4047
+ enabled: boolean;
3905
4048
  secretRef: string;
3906
4049
  signatureHeader: string;
3907
- timestampHeader: string;
4050
+ timestampHeader: string | null;
3908
4051
  replayWindowMs: number;
3909
4052
  } | undefined;
3910
4053
  expectResponse?: {
@@ -3947,8 +4090,8 @@ export declare const MocksFile: z.ZodObject<{
3947
4090
  response: {
3948
4091
  kind: "static";
3949
4092
  body?: unknown;
3950
- status?: number | undefined;
3951
4093
  headers?: Record<string, string> | undefined;
4094
+ status?: number | undefined;
3952
4095
  delay?: number | {
3953
4096
  min: number;
3954
4097
  max: number;
@@ -3970,8 +4113,8 @@ export declare const MocksFile: z.ZodObject<{
3970
4113
  id: string;
3971
4114
  response: {
3972
4115
  body?: unknown;
3973
- status?: number | undefined;
3974
4116
  headers?: Record<string, string> | undefined;
4117
+ status?: number | undefined;
3975
4118
  delay?: number | {
3976
4119
  min: number;
3977
4120
  max: number;
@@ -3987,7 +4130,7 @@ export declare const MocksFile: z.ZodObject<{
3987
4130
  } | {
3988
4131
  contains: string;
3989
4132
  }> | undefined;
3990
- params?: Record<string, string | {
4133
+ headers?: Record<string, string | {
3991
4134
  equals: string;
3992
4135
  } | {
3993
4136
  regex: string;
@@ -3996,7 +4139,7 @@ export declare const MocksFile: z.ZodObject<{
3996
4139
  } | {
3997
4140
  contains: string;
3998
4141
  }> | undefined;
3999
- headers?: Record<string, string | {
4142
+ params?: Record<string, string | {
4000
4143
  equals: string;
4001
4144
  } | {
4002
4145
  regex: string;
@@ -4028,14 +4171,7 @@ export declare const MocksFile: z.ZodObject<{
4028
4171
  backoff?: number[] | undefined;
4029
4172
  jitterRatio?: number | undefined;
4030
4173
  } | undefined;
4031
- signing?: {
4032
- secretRef: string;
4033
- enabled?: boolean | undefined;
4034
- algorithm?: "sha256" | undefined;
4035
- signatureHeader?: string | undefined;
4036
- timestampHeader?: string | undefined;
4037
- replayWindowMs?: number | undefined;
4038
- } | undefined;
4174
+ signing?: unknown;
4039
4175
  circuit?: {
4040
4176
  failureThreshold?: number | undefined;
4041
4177
  cooldownMs?: number | undefined;
@@ -4097,12 +4233,16 @@ export declare const TenantConfig: z.ZodObject<{
4097
4233
  equals: string;
4098
4234
  }, {
4099
4235
  equals: string;
4100
- }>, z.ZodObject<{
4236
+ }>, z.ZodEffects<z.ZodObject<{
4101
4237
  regex: z.ZodString;
4102
4238
  }, "strict", z.ZodTypeAny, {
4103
4239
  regex: string;
4104
4240
  }, {
4105
4241
  regex: string;
4242
+ }>, {
4243
+ regex: string;
4244
+ }, {
4245
+ regex: string;
4106
4246
  }>, z.ZodObject<{
4107
4247
  startsWith: z.ZodString;
4108
4248
  }, "strict", z.ZodTypeAny, {
@@ -4122,12 +4262,16 @@ export declare const TenantConfig: z.ZodObject<{
4122
4262
  equals: string;
4123
4263
  }, {
4124
4264
  equals: string;
4125
- }>, z.ZodObject<{
4265
+ }>, z.ZodEffects<z.ZodObject<{
4126
4266
  regex: z.ZodString;
4127
4267
  }, "strict", z.ZodTypeAny, {
4128
4268
  regex: string;
4129
4269
  }, {
4130
4270
  regex: string;
4271
+ }>, {
4272
+ regex: string;
4273
+ }, {
4274
+ regex: string;
4131
4275
  }>, z.ZodObject<{
4132
4276
  startsWith: z.ZodString;
4133
4277
  }, "strict", z.ZodTypeAny, {
@@ -4237,8 +4381,8 @@ export declare const TenantConfig: z.ZodObject<{
4237
4381
  }, {
4238
4382
  kind: "static";
4239
4383
  body?: unknown;
4240
- status?: number | undefined;
4241
4384
  headers?: Record<string, string> | undefined;
4385
+ status?: number | undefined;
4242
4386
  delay?: number | {
4243
4387
  min: number;
4244
4388
  max: number;
@@ -4415,7 +4559,7 @@ export declare const TenantConfig: z.ZodObject<{
4415
4559
  } | {
4416
4560
  contains: string;
4417
4561
  }> | undefined;
4418
- params?: Record<string, string | {
4562
+ headers?: Record<string, string | {
4419
4563
  equals: string;
4420
4564
  } | {
4421
4565
  regex: string;
@@ -4424,7 +4568,7 @@ export declare const TenantConfig: z.ZodObject<{
4424
4568
  } | {
4425
4569
  contains: string;
4426
4570
  }> | undefined;
4427
- headers?: Record<string, string | {
4571
+ params?: Record<string, string | {
4428
4572
  equals: string;
4429
4573
  } | {
4430
4574
  regex: string;
@@ -4452,7 +4596,7 @@ export declare const TenantConfig: z.ZodObject<{
4452
4596
  } | {
4453
4597
  contains: string;
4454
4598
  }> | undefined;
4455
- params?: Record<string, string | {
4599
+ headers?: Record<string, string | {
4456
4600
  equals: string;
4457
4601
  } | {
4458
4602
  regex: string;
@@ -4461,7 +4605,7 @@ export declare const TenantConfig: z.ZodObject<{
4461
4605
  } | {
4462
4606
  contains: string;
4463
4607
  }> | undefined;
4464
- headers?: Record<string, string | {
4608
+ params?: Record<string, string | {
4465
4609
  equals: string;
4466
4610
  } | {
4467
4611
  regex: string;
@@ -4489,7 +4633,7 @@ export declare const TenantConfig: z.ZodObject<{
4489
4633
  } | {
4490
4634
  contains: string;
4491
4635
  }> | undefined;
4492
- params?: Record<string, string | {
4636
+ headers?: Record<string, string | {
4493
4637
  equals: string;
4494
4638
  } | {
4495
4639
  regex: string;
@@ -4498,7 +4642,7 @@ export declare const TenantConfig: z.ZodObject<{
4498
4642
  } | {
4499
4643
  contains: string;
4500
4644
  }> | undefined;
4501
- headers?: Record<string, string | {
4645
+ params?: Record<string, string | {
4502
4646
  equals: string;
4503
4647
  } | {
4504
4648
  regex: string;
@@ -4526,7 +4670,7 @@ export declare const TenantConfig: z.ZodObject<{
4526
4670
  } | {
4527
4671
  contains: string;
4528
4672
  }> | undefined;
4529
- params?: Record<string, string | {
4673
+ headers?: Record<string, string | {
4530
4674
  equals: string;
4531
4675
  } | {
4532
4676
  regex: string;
@@ -4535,7 +4679,7 @@ export declare const TenantConfig: z.ZodObject<{
4535
4679
  } | {
4536
4680
  contains: string;
4537
4681
  }> | undefined;
4538
- headers?: Record<string, string | {
4682
+ params?: Record<string, string | {
4539
4683
  equals: string;
4540
4684
  } | {
4541
4685
  regex: string;
@@ -4570,32 +4714,32 @@ export declare const TenantConfig: z.ZodObject<{
4570
4714
  }>]>>;
4571
4715
  }, "strict", z.ZodTypeAny, {
4572
4716
  body?: unknown;
4573
- status?: number | undefined;
4574
4717
  headers?: Record<string, string> | undefined;
4718
+ status?: number | undefined;
4575
4719
  delay?: number | {
4576
4720
  min: number;
4577
4721
  max: number;
4578
4722
  } | undefined;
4579
4723
  }, {
4580
4724
  body?: unknown;
4581
- status?: number | undefined;
4582
4725
  headers?: Record<string, string> | undefined;
4726
+ status?: number | undefined;
4583
4727
  delay?: number | {
4584
4728
  min: number;
4585
4729
  max: number;
4586
4730
  } | undefined;
4587
4731
  }>, {
4588
4732
  body?: unknown;
4589
- status?: number | undefined;
4590
4733
  headers?: Record<string, string> | undefined;
4734
+ status?: number | undefined;
4591
4735
  delay?: number | {
4592
4736
  min: number;
4593
4737
  max: number;
4594
4738
  } | undefined;
4595
4739
  }, {
4596
4740
  body?: unknown;
4597
- status?: number | undefined;
4598
4741
  headers?: Record<string, string> | undefined;
4742
+ status?: number | undefined;
4599
4743
  delay?: number | {
4600
4744
  min: number;
4601
4745
  max: number;
@@ -4605,8 +4749,8 @@ export declare const TenantConfig: z.ZodObject<{
4605
4749
  id: string;
4606
4750
  response: {
4607
4751
  body?: unknown;
4608
- status?: number | undefined;
4609
4752
  headers?: Record<string, string> | undefined;
4753
+ status?: number | undefined;
4610
4754
  delay?: number | {
4611
4755
  min: number;
4612
4756
  max: number;
@@ -4622,7 +4766,7 @@ export declare const TenantConfig: z.ZodObject<{
4622
4766
  } | {
4623
4767
  contains: string;
4624
4768
  }> | undefined;
4625
- params?: Record<string, string | {
4769
+ headers?: Record<string, string | {
4626
4770
  equals: string;
4627
4771
  } | {
4628
4772
  regex: string;
@@ -4631,7 +4775,7 @@ export declare const TenantConfig: z.ZodObject<{
4631
4775
  } | {
4632
4776
  contains: string;
4633
4777
  }> | undefined;
4634
- headers?: Record<string, string | {
4778
+ params?: Record<string, string | {
4635
4779
  equals: string;
4636
4780
  } | {
4637
4781
  regex: string;
@@ -4654,8 +4798,8 @@ export declare const TenantConfig: z.ZodObject<{
4654
4798
  id: string;
4655
4799
  response: {
4656
4800
  body?: unknown;
4657
- status?: number | undefined;
4658
4801
  headers?: Record<string, string> | undefined;
4802
+ status?: number | undefined;
4659
4803
  delay?: number | {
4660
4804
  min: number;
4661
4805
  max: number;
@@ -4671,7 +4815,7 @@ export declare const TenantConfig: z.ZodObject<{
4671
4815
  } | {
4672
4816
  contains: string;
4673
4817
  }> | undefined;
4674
- params?: Record<string, string | {
4818
+ headers?: Record<string, string | {
4675
4819
  equals: string;
4676
4820
  } | {
4677
4821
  regex: string;
@@ -4680,7 +4824,7 @@ export declare const TenantConfig: z.ZodObject<{
4680
4824
  } | {
4681
4825
  contains: string;
4682
4826
  }> | undefined;
4683
- headers?: Record<string, string | {
4827
+ params?: Record<string, string | {
4684
4828
  equals: string;
4685
4829
  } | {
4686
4830
  regex: string;
@@ -4727,28 +4871,62 @@ export declare const TenantConfig: z.ZodObject<{
4727
4871
  backoff?: number[] | undefined;
4728
4872
  jitterRatio?: number | undefined;
4729
4873
  }>>;
4730
- signing: z.ZodOptional<z.ZodObject<{
4874
+ signing: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
4875
+ mode: z.ZodDefault<z.ZodLiteral<"hmac">>;
4731
4876
  enabled: z.ZodDefault<z.ZodBoolean>;
4732
4877
  algorithm: z.ZodDefault<z.ZodLiteral<"sha256">>;
4733
4878
  secretRef: z.ZodString;
4879
+ signedPayload: z.ZodDefault<z.ZodString>;
4880
+ signatureTemplate: z.ZodDefault<z.ZodString>;
4881
+ digestEncoding: z.ZodDefault<z.ZodEnum<["hex", "base64"]>>;
4734
4882
  signatureHeader: z.ZodDefault<z.ZodString>;
4735
- timestampHeader: z.ZodDefault<z.ZodString>;
4883
+ timestampHeader: z.ZodDefault<z.ZodNullable<z.ZodString>>;
4736
4884
  replayWindowMs: z.ZodDefault<z.ZodNumber>;
4737
4885
  }, "strict", z.ZodTypeAny, {
4738
- enabled: boolean;
4886
+ mode: "hmac";
4739
4887
  algorithm: "sha256";
4888
+ signedPayload: string;
4889
+ signatureTemplate: string;
4890
+ digestEncoding: "base64" | "hex";
4891
+ enabled: boolean;
4740
4892
  secretRef: string;
4741
4893
  signatureHeader: string;
4742
- timestampHeader: string;
4894
+ timestampHeader: string | null;
4743
4895
  replayWindowMs: number;
4744
4896
  }, {
4745
4897
  secretRef: string;
4746
- enabled?: boolean | undefined;
4898
+ mode?: "hmac" | undefined;
4747
4899
  algorithm?: "sha256" | undefined;
4900
+ signedPayload?: string | undefined;
4901
+ signatureTemplate?: string | undefined;
4902
+ digestEncoding?: "base64" | "hex" | undefined;
4903
+ enabled?: boolean | undefined;
4748
4904
  signatureHeader?: string | undefined;
4749
- timestampHeader?: string | undefined;
4905
+ timestampHeader?: string | null | undefined;
4750
4906
  replayWindowMs?: number | undefined;
4751
- }>>;
4907
+ }>]>, {
4908
+ mode: "hmac";
4909
+ algorithm: "sha256";
4910
+ signedPayload: string;
4911
+ signatureTemplate: string;
4912
+ digestEncoding: "base64" | "hex";
4913
+ enabled: boolean;
4914
+ secretRef: string;
4915
+ signatureHeader: string;
4916
+ timestampHeader: string | null;
4917
+ replayWindowMs: number;
4918
+ }, unknown>, {
4919
+ mode: "hmac";
4920
+ algorithm: "sha256";
4921
+ signedPayload: string;
4922
+ signatureTemplate: string;
4923
+ digestEncoding: "base64" | "hex";
4924
+ enabled: boolean;
4925
+ secretRef: string;
4926
+ signatureHeader: string;
4927
+ timestampHeader: string | null;
4928
+ replayWindowMs: number;
4929
+ }, unknown>>;
4752
4930
  circuit: z.ZodDefault<z.ZodObject<{
4753
4931
  failureThreshold: z.ZodDefault<z.ZodNumber>;
4754
4932
  cooldownMs: z.ZodDefault<z.ZodNumber>;
@@ -4776,8 +4954,8 @@ export declare const TenantConfig: z.ZodObject<{
4776
4954
  }, "strict", z.ZodTypeAny, {
4777
4955
  id: string;
4778
4956
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4779
- url: string;
4780
4957
  headers: Record<string, string>;
4958
+ url: string;
4781
4959
  timeoutMs: number;
4782
4960
  retry: {
4783
4961
  attempts: number;
@@ -4793,11 +4971,15 @@ export declare const TenantConfig: z.ZodObject<{
4793
4971
  acceptHeaderOverride: boolean;
4794
4972
  body?: unknown;
4795
4973
  signing?: {
4796
- enabled: boolean;
4974
+ mode: "hmac";
4797
4975
  algorithm: "sha256";
4976
+ signedPayload: string;
4977
+ signatureTemplate: string;
4978
+ digestEncoding: "base64" | "hex";
4979
+ enabled: boolean;
4798
4980
  secretRef: string;
4799
4981
  signatureHeader: string;
4800
- timestampHeader: string;
4982
+ timestampHeader: string | null;
4801
4983
  replayWindowMs: number;
4802
4984
  } | undefined;
4803
4985
  expectResponse?: {
@@ -4816,14 +4998,7 @@ export declare const TenantConfig: z.ZodObject<{
4816
4998
  backoff?: number[] | undefined;
4817
4999
  jitterRatio?: number | undefined;
4818
5000
  } | undefined;
4819
- signing?: {
4820
- secretRef: string;
4821
- enabled?: boolean | undefined;
4822
- algorithm?: "sha256" | undefined;
4823
- signatureHeader?: string | undefined;
4824
- timestampHeader?: string | undefined;
4825
- replayWindowMs?: number | undefined;
4826
- } | undefined;
5001
+ signing?: unknown;
4827
5002
  circuit?: {
4828
5003
  failureThreshold?: number | undefined;
4829
5004
  cooldownMs?: number | undefined;
@@ -4892,8 +5067,8 @@ export declare const TenantConfig: z.ZodObject<{
4892
5067
  id: string;
4893
5068
  response: {
4894
5069
  body?: unknown;
4895
- status?: number | undefined;
4896
5070
  headers?: Record<string, string> | undefined;
5071
+ status?: number | undefined;
4897
5072
  delay?: number | {
4898
5073
  min: number;
4899
5074
  max: number;
@@ -4909,7 +5084,7 @@ export declare const TenantConfig: z.ZodObject<{
4909
5084
  } | {
4910
5085
  contains: string;
4911
5086
  }> | undefined;
4912
- params?: Record<string, string | {
5087
+ headers?: Record<string, string | {
4913
5088
  equals: string;
4914
5089
  } | {
4915
5090
  regex: string;
@@ -4918,7 +5093,7 @@ export declare const TenantConfig: z.ZodObject<{
4918
5093
  } | {
4919
5094
  contains: string;
4920
5095
  }> | undefined;
4921
- headers?: Record<string, string | {
5096
+ params?: Record<string, string | {
4922
5097
  equals: string;
4923
5098
  } | {
4924
5099
  regex: string;
@@ -4941,8 +5116,8 @@ export declare const TenantConfig: z.ZodObject<{
4941
5116
  webhooks?: {
4942
5117
  id: string;
4943
5118
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
4944
- url: string;
4945
5119
  headers: Record<string, string>;
5120
+ url: string;
4946
5121
  timeoutMs: number;
4947
5122
  retry: {
4948
5123
  attempts: number;
@@ -4958,11 +5133,15 @@ export declare const TenantConfig: z.ZodObject<{
4958
5133
  acceptHeaderOverride: boolean;
4959
5134
  body?: unknown;
4960
5135
  signing?: {
4961
- enabled: boolean;
5136
+ mode: "hmac";
4962
5137
  algorithm: "sha256";
5138
+ signedPayload: string;
5139
+ signatureTemplate: string;
5140
+ digestEncoding: "base64" | "hex";
5141
+ enabled: boolean;
4963
5142
  secretRef: string;
4964
5143
  signatureHeader: string;
4965
- timestampHeader: string;
5144
+ timestampHeader: string | null;
4966
5145
  replayWindowMs: number;
4967
5146
  } | undefined;
4968
5147
  expectResponse?: {
@@ -5003,8 +5182,8 @@ export declare const TenantConfig: z.ZodObject<{
5003
5182
  response: {
5004
5183
  kind: "static";
5005
5184
  body?: unknown;
5006
- status?: number | undefined;
5007
5185
  headers?: Record<string, string> | undefined;
5186
+ status?: number | undefined;
5008
5187
  delay?: number | {
5009
5188
  min: number;
5010
5189
  max: number;
@@ -5026,8 +5205,8 @@ export declare const TenantConfig: z.ZodObject<{
5026
5205
  id: string;
5027
5206
  response: {
5028
5207
  body?: unknown;
5029
- status?: number | undefined;
5030
5208
  headers?: Record<string, string> | undefined;
5209
+ status?: number | undefined;
5031
5210
  delay?: number | {
5032
5211
  min: number;
5033
5212
  max: number;
@@ -5043,7 +5222,7 @@ export declare const TenantConfig: z.ZodObject<{
5043
5222
  } | {
5044
5223
  contains: string;
5045
5224
  }> | undefined;
5046
- params?: Record<string, string | {
5225
+ headers?: Record<string, string | {
5047
5226
  equals: string;
5048
5227
  } | {
5049
5228
  regex: string;
@@ -5052,7 +5231,7 @@ export declare const TenantConfig: z.ZodObject<{
5052
5231
  } | {
5053
5232
  contains: string;
5054
5233
  }> | undefined;
5055
- headers?: Record<string, string | {
5234
+ params?: Record<string, string | {
5056
5235
  equals: string;
5057
5236
  } | {
5058
5237
  regex: string;
@@ -5084,14 +5263,7 @@ export declare const TenantConfig: z.ZodObject<{
5084
5263
  backoff?: number[] | undefined;
5085
5264
  jitterRatio?: number | undefined;
5086
5265
  } | undefined;
5087
- signing?: {
5088
- secretRef: string;
5089
- enabled?: boolean | undefined;
5090
- algorithm?: "sha256" | undefined;
5091
- signatureHeader?: string | undefined;
5092
- timestampHeader?: string | undefined;
5093
- replayWindowMs?: number | undefined;
5094
- } | undefined;
5266
+ signing?: unknown;
5095
5267
  circuit?: {
5096
5268
  failureThreshold?: number | undefined;
5097
5269
  cooldownMs?: number | undefined;
@@ -5160,8 +5332,8 @@ export declare const TenantConfig: z.ZodObject<{
5160
5332
  id: string;
5161
5333
  response: {
5162
5334
  body?: unknown;
5163
- status?: number | undefined;
5164
5335
  headers?: Record<string, string> | undefined;
5336
+ status?: number | undefined;
5165
5337
  delay?: number | {
5166
5338
  min: number;
5167
5339
  max: number;
@@ -5177,7 +5349,7 @@ export declare const TenantConfig: z.ZodObject<{
5177
5349
  } | {
5178
5350
  contains: string;
5179
5351
  }> | undefined;
5180
- params?: Record<string, string | {
5352
+ headers?: Record<string, string | {
5181
5353
  equals: string;
5182
5354
  } | {
5183
5355
  regex: string;
@@ -5186,7 +5358,7 @@ export declare const TenantConfig: z.ZodObject<{
5186
5358
  } | {
5187
5359
  contains: string;
5188
5360
  }> | undefined;
5189
- headers?: Record<string, string | {
5361
+ params?: Record<string, string | {
5190
5362
  equals: string;
5191
5363
  } | {
5192
5364
  regex: string;
@@ -5209,8 +5381,8 @@ export declare const TenantConfig: z.ZodObject<{
5209
5381
  webhooks?: {
5210
5382
  id: string;
5211
5383
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
5212
- url: string;
5213
5384
  headers: Record<string, string>;
5385
+ url: string;
5214
5386
  timeoutMs: number;
5215
5387
  retry: {
5216
5388
  attempts: number;
@@ -5226,11 +5398,15 @@ export declare const TenantConfig: z.ZodObject<{
5226
5398
  acceptHeaderOverride: boolean;
5227
5399
  body?: unknown;
5228
5400
  signing?: {
5229
- enabled: boolean;
5401
+ mode: "hmac";
5230
5402
  algorithm: "sha256";
5403
+ signedPayload: string;
5404
+ signatureTemplate: string;
5405
+ digestEncoding: "base64" | "hex";
5406
+ enabled: boolean;
5231
5407
  secretRef: string;
5232
5408
  signatureHeader: string;
5233
- timestampHeader: string;
5409
+ timestampHeader: string | null;
5234
5410
  replayWindowMs: number;
5235
5411
  } | undefined;
5236
5412
  expectResponse?: {
@@ -5271,8 +5447,8 @@ export declare const TenantConfig: z.ZodObject<{
5271
5447
  response: {
5272
5448
  kind: "static";
5273
5449
  body?: unknown;
5274
- status?: number | undefined;
5275
5450
  headers?: Record<string, string> | undefined;
5451
+ status?: number | undefined;
5276
5452
  delay?: number | {
5277
5453
  min: number;
5278
5454
  max: number;
@@ -5294,8 +5470,8 @@ export declare const TenantConfig: z.ZodObject<{
5294
5470
  id: string;
5295
5471
  response: {
5296
5472
  body?: unknown;
5297
- status?: number | undefined;
5298
5473
  headers?: Record<string, string> | undefined;
5474
+ status?: number | undefined;
5299
5475
  delay?: number | {
5300
5476
  min: number;
5301
5477
  max: number;
@@ -5311,7 +5487,7 @@ export declare const TenantConfig: z.ZodObject<{
5311
5487
  } | {
5312
5488
  contains: string;
5313
5489
  }> | undefined;
5314
- params?: Record<string, string | {
5490
+ headers?: Record<string, string | {
5315
5491
  equals: string;
5316
5492
  } | {
5317
5493
  regex: string;
@@ -5320,7 +5496,7 @@ export declare const TenantConfig: z.ZodObject<{
5320
5496
  } | {
5321
5497
  contains: string;
5322
5498
  }> | undefined;
5323
- headers?: Record<string, string | {
5499
+ params?: Record<string, string | {
5324
5500
  equals: string;
5325
5501
  } | {
5326
5502
  regex: string;
@@ -5352,14 +5528,7 @@ export declare const TenantConfig: z.ZodObject<{
5352
5528
  backoff?: number[] | undefined;
5353
5529
  jitterRatio?: number | undefined;
5354
5530
  } | undefined;
5355
- signing?: {
5356
- secretRef: string;
5357
- enabled?: boolean | undefined;
5358
- algorithm?: "sha256" | undefined;
5359
- signatureHeader?: string | undefined;
5360
- timestampHeader?: string | undefined;
5361
- replayWindowMs?: number | undefined;
5362
- } | undefined;
5531
+ signing?: unknown;
5363
5532
  circuit?: {
5364
5533
  failureThreshold?: number | undefined;
5365
5534
  cooldownMs?: number | undefined;
@@ -5430,8 +5599,8 @@ export declare const TenantConfig: z.ZodObject<{
5430
5599
  id: string;
5431
5600
  response: {
5432
5601
  body?: unknown;
5433
- status?: number | undefined;
5434
5602
  headers?: Record<string, string> | undefined;
5603
+ status?: number | undefined;
5435
5604
  delay?: number | {
5436
5605
  min: number;
5437
5606
  max: number;
@@ -5447,7 +5616,7 @@ export declare const TenantConfig: z.ZodObject<{
5447
5616
  } | {
5448
5617
  contains: string;
5449
5618
  }> | undefined;
5450
- params?: Record<string, string | {
5619
+ headers?: Record<string, string | {
5451
5620
  equals: string;
5452
5621
  } | {
5453
5622
  regex: string;
@@ -5456,7 +5625,7 @@ export declare const TenantConfig: z.ZodObject<{
5456
5625
  } | {
5457
5626
  contains: string;
5458
5627
  }> | undefined;
5459
- headers?: Record<string, string | {
5628
+ params?: Record<string, string | {
5460
5629
  equals: string;
5461
5630
  } | {
5462
5631
  regex: string;
@@ -5479,8 +5648,8 @@ export declare const TenantConfig: z.ZodObject<{
5479
5648
  webhooks?: {
5480
5649
  id: string;
5481
5650
  method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
5482
- url: string;
5483
5651
  headers: Record<string, string>;
5652
+ url: string;
5484
5653
  timeoutMs: number;
5485
5654
  retry: {
5486
5655
  attempts: number;
@@ -5496,11 +5665,15 @@ export declare const TenantConfig: z.ZodObject<{
5496
5665
  acceptHeaderOverride: boolean;
5497
5666
  body?: unknown;
5498
5667
  signing?: {
5499
- enabled: boolean;
5668
+ mode: "hmac";
5500
5669
  algorithm: "sha256";
5670
+ signedPayload: string;
5671
+ signatureTemplate: string;
5672
+ digestEncoding: "base64" | "hex";
5673
+ enabled: boolean;
5501
5674
  secretRef: string;
5502
5675
  signatureHeader: string;
5503
- timestampHeader: string;
5676
+ timestampHeader: string | null;
5504
5677
  replayWindowMs: number;
5505
5678
  } | undefined;
5506
5679
  expectResponse?: {
@@ -5552,8 +5725,8 @@ export declare const TenantConfig: z.ZodObject<{
5552
5725
  response: {
5553
5726
  kind: "static";
5554
5727
  body?: unknown;
5555
- status?: number | undefined;
5556
5728
  headers?: Record<string, string> | undefined;
5729
+ status?: number | undefined;
5557
5730
  delay?: number | {
5558
5731
  min: number;
5559
5732
  max: number;
@@ -5575,8 +5748,8 @@ export declare const TenantConfig: z.ZodObject<{
5575
5748
  id: string;
5576
5749
  response: {
5577
5750
  body?: unknown;
5578
- status?: number | undefined;
5579
5751
  headers?: Record<string, string> | undefined;
5752
+ status?: number | undefined;
5580
5753
  delay?: number | {
5581
5754
  min: number;
5582
5755
  max: number;
@@ -5592,7 +5765,7 @@ export declare const TenantConfig: z.ZodObject<{
5592
5765
  } | {
5593
5766
  contains: string;
5594
5767
  }> | undefined;
5595
- params?: Record<string, string | {
5768
+ headers?: Record<string, string | {
5596
5769
  equals: string;
5597
5770
  } | {
5598
5771
  regex: string;
@@ -5601,7 +5774,7 @@ export declare const TenantConfig: z.ZodObject<{
5601
5774
  } | {
5602
5775
  contains: string;
5603
5776
  }> | undefined;
5604
- headers?: Record<string, string | {
5777
+ params?: Record<string, string | {
5605
5778
  equals: string;
5606
5779
  } | {
5607
5780
  regex: string;
@@ -5633,14 +5806,7 @@ export declare const TenantConfig: z.ZodObject<{
5633
5806
  backoff?: number[] | undefined;
5634
5807
  jitterRatio?: number | undefined;
5635
5808
  } | undefined;
5636
- signing?: {
5637
- secretRef: string;
5638
- enabled?: boolean | undefined;
5639
- algorithm?: "sha256" | undefined;
5640
- signatureHeader?: string | undefined;
5641
- timestampHeader?: string | undefined;
5642
- replayWindowMs?: number | undefined;
5643
- } | undefined;
5809
+ signing?: unknown;
5644
5810
  circuit?: {
5645
5811
  failureThreshold?: number | undefined;
5646
5812
  cooldownMs?: number | undefined;