@trigger.dev/core 4.7.4 → 4.8.0-webhooks.20261020092920
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.
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/commonjs/v3/apiClient/core.d.ts +2 -0
- package/dist/commonjs/v3/apiClient/core.js +2 -0
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/errors.d.ts +3 -1
- package/dist/commonjs/v3/apiClient/errors.js +17 -13
- package/dist/commonjs/v3/apiClient/errors.js.map +1 -1
- package/dist/commonjs/v3/apiClient/getBranch.js +2 -2
- package/dist/commonjs/v3/apiClient/getBranch.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +366 -1
- package/dist/commonjs/v3/apiClient/index.js +65 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.js +35 -19
- package/dist/commonjs/v3/apiClient/runStream.js.map +1 -1
- package/dist/commonjs/v3/apiClient/stream.js +7 -1
- package/dist/commonjs/v3/apiClient/stream.js.map +1 -1
- package/dist/commonjs/v3/config.d.ts +44 -1
- package/dist/commonjs/v3/errors.d.ts +25 -2
- package/dist/commonjs/v3/errors.js +51 -12
- package/dist/commonjs/v3/errors.js.map +1 -1
- package/dist/commonjs/v3/otel/tracingSDK.d.ts +2 -0
- package/dist/commonjs/v3/otel/tracingSDK.js +2 -1
- package/dist/commonjs/v3/otel/tracingSDK.js.map +1 -1
- package/dist/commonjs/v3/otel/userSpanProcessor.d.ts +20 -0
- package/dist/commonjs/v3/otel/userSpanProcessor.js +94 -0
- package/dist/commonjs/v3/otel/userSpanProcessor.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/continueRetry.d.ts +28 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/continueRetry.js +54 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/continueRetry.js.map +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.d.ts +7 -16
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js +21 -16
- package/dist/commonjs/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.d.ts +1 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js +2 -0
- package/dist/commonjs/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/commonjs/v3/runEngineWorker/workload/schemas.d.ts +1 -0
- package/dist/commonjs/v3/schemas/api.d.ts +28 -0
- package/dist/commonjs/v3/schemas/api.js +4 -1
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +80 -24
- package/dist/commonjs/v3/schemas/index.d.ts +1 -0
- package/dist/commonjs/v3/schemas/messages.d.ts +49 -20
- package/dist/commonjs/v3/schemas/messages.js +2 -0
- package/dist/commonjs/v3/schemas/messages.js.map +1 -1
- package/dist/commonjs/v3/schemas/query.d.ts +854 -0
- package/dist/commonjs/v3/schemas/query.js +156 -1
- package/dist/commonjs/v3/schemas/query.js.map +1 -1
- package/dist/commonjs/v3/schemas/resources.d.ts +80 -24
- package/dist/commonjs/v3/schemas/schemas.d.ts +56 -0
- package/dist/commonjs/v3/schemas/webhookConfig.d.ts +64 -0
- package/dist/commonjs/v3/schemas/webhookConfig.js +40 -5
- package/dist/commonjs/v3/schemas/webhookConfig.js.map +1 -1
- package/dist/commonjs/v3/schemas/webhookFilter.d.ts +70 -17
- package/dist/commonjs/v3/streams/asyncIterableStream.d.ts +1 -1
- package/dist/commonjs/v3/streams/asyncIterableStream.js +46 -12
- package/dist/commonjs/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/commonjs/v3/types/chatEvents.d.ts +26 -4
- package/dist/commonjs/v3/types/webhooks.d.ts +27 -0
- package/dist/commonjs/v3/utils/structuredLogger.d.ts +6 -6
- package/dist/commonjs/v3/utils/structuredLogger.js.map +1 -1
- package/dist/commonjs/v3/webhooks/index.d.ts +613 -8
- package/dist/commonjs/v3/webhooks/index.js +246 -16
- package/dist/commonjs/v3/webhooks/index.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/v3/apiClient/core.d.ts +2 -0
- package/dist/esm/v3/apiClient/core.js +2 -0
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/errors.d.ts +3 -1
- package/dist/esm/v3/apiClient/errors.js +17 -13
- package/dist/esm/v3/apiClient/errors.js.map +1 -1
- package/dist/esm/v3/apiClient/getBranch.js +2 -2
- package/dist/esm/v3/apiClient/getBranch.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +366 -1
- package/dist/esm/v3/apiClient/index.js +66 -1
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.js +35 -19
- package/dist/esm/v3/apiClient/runStream.js.map +1 -1
- package/dist/esm/v3/apiClient/stream.js +7 -1
- package/dist/esm/v3/apiClient/stream.js.map +1 -1
- package/dist/esm/v3/config.d.ts +44 -1
- package/dist/esm/v3/errors.d.ts +25 -2
- package/dist/esm/v3/errors.js +45 -10
- package/dist/esm/v3/errors.js.map +1 -1
- package/dist/esm/v3/otel/tracingSDK.d.ts +2 -0
- package/dist/esm/v3/otel/tracingSDK.js +2 -1
- package/dist/esm/v3/otel/tracingSDK.js.map +1 -1
- package/dist/esm/v3/otel/userSpanProcessor.d.ts +20 -0
- package/dist/esm/v3/otel/userSpanProcessor.js +90 -0
- package/dist/esm/v3/otel/userSpanProcessor.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/continueRetry.d.ts +28 -0
- package/dist/esm/v3/runEngineWorker/supervisor/continueRetry.js +51 -0
- package/dist/esm/v3/runEngineWorker/supervisor/continueRetry.js.map +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/http.d.ts +7 -16
- package/dist/esm/v3/runEngineWorker/supervisor/http.js +21 -16
- package/dist/esm/v3/runEngineWorker/supervisor/http.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.d.ts +1 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js +2 -0
- package/dist/esm/v3/runEngineWorker/supervisor/schemas.js.map +1 -1
- package/dist/esm/v3/runEngineWorker/workload/schemas.d.ts +1 -0
- package/dist/esm/v3/schemas/api.d.ts +28 -0
- package/dist/esm/v3/schemas/api.js +4 -1
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +80 -24
- package/dist/esm/v3/schemas/index.d.ts +1 -0
- package/dist/esm/v3/schemas/messages.d.ts +49 -20
- package/dist/esm/v3/schemas/messages.js +2 -0
- package/dist/esm/v3/schemas/messages.js.map +1 -1
- package/dist/esm/v3/schemas/query.d.ts +854 -0
- package/dist/esm/v3/schemas/query.js +155 -0
- package/dist/esm/v3/schemas/query.js.map +1 -1
- package/dist/esm/v3/schemas/resources.d.ts +80 -24
- package/dist/esm/v3/schemas/schemas.d.ts +56 -0
- package/dist/esm/v3/schemas/webhookConfig.d.ts +64 -0
- package/dist/esm/v3/schemas/webhookConfig.js +40 -5
- package/dist/esm/v3/schemas/webhookConfig.js.map +1 -1
- package/dist/esm/v3/schemas/webhookFilter.d.ts +70 -17
- package/dist/esm/v3/streams/asyncIterableStream.d.ts +1 -1
- package/dist/esm/v3/streams/asyncIterableStream.js +46 -12
- package/dist/esm/v3/streams/asyncIterableStream.js.map +1 -1
- package/dist/esm/v3/types/chatEvents.d.ts +26 -4
- package/dist/esm/v3/types/webhooks.d.ts +27 -0
- package/dist/esm/v3/utils/structuredLogger.d.ts +6 -6
- package/dist/esm/v3/utils/structuredLogger.js.map +1 -1
- package/dist/esm/v3/webhooks/index.d.ts +613 -8
- package/dist/esm/v3/webhooks/index.js +246 -16
- package/dist/esm/v3/webhooks/index.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -748,6 +748,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
748
748
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
749
749
|
from: z.ZodLiteral<"header">;
|
|
750
750
|
name: z.ZodString;
|
|
751
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
751
752
|
}, z.core.$strip>, z.ZodObject<{
|
|
752
753
|
from: z.ZodLiteral<"signatureField">;
|
|
753
754
|
field: z.ZodString;
|
|
@@ -764,6 +765,11 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
764
765
|
milliseconds: "milliseconds";
|
|
765
766
|
seconds: "seconds";
|
|
766
767
|
}>>;
|
|
768
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
769
|
+
"http-date": "http-date";
|
|
770
|
+
iso8601: "iso8601";
|
|
771
|
+
unix: "unix";
|
|
772
|
+
}>>;
|
|
767
773
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
768
774
|
}, z.core.$strip>>;
|
|
769
775
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -771,6 +777,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
771
777
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
772
778
|
from: z.ZodLiteral<"header">;
|
|
773
779
|
name: z.ZodString;
|
|
780
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
774
781
|
}, z.core.$strip>, z.ZodObject<{
|
|
775
782
|
from: z.ZodLiteral<"signatureField">;
|
|
776
783
|
field: z.ZodString;
|
|
@@ -853,6 +860,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
853
860
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
854
861
|
from: z.ZodLiteral<"header">;
|
|
855
862
|
name: z.ZodString;
|
|
863
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
856
864
|
}, z.core.$strip>, z.ZodObject<{
|
|
857
865
|
from: z.ZodLiteral<"signatureField">;
|
|
858
866
|
field: z.ZodString;
|
|
@@ -869,6 +877,11 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
869
877
|
milliseconds: "milliseconds";
|
|
870
878
|
seconds: "seconds";
|
|
871
879
|
}>>;
|
|
880
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
881
|
+
"http-date": "http-date";
|
|
882
|
+
iso8601: "iso8601";
|
|
883
|
+
unix: "unix";
|
|
884
|
+
}>>;
|
|
872
885
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
873
886
|
}, z.core.$strip>>;
|
|
874
887
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -876,6 +889,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
876
889
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
877
890
|
from: z.ZodLiteral<"header">;
|
|
878
891
|
name: z.ZodString;
|
|
892
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
879
893
|
}, z.core.$strip>, z.ZodObject<{
|
|
880
894
|
from: z.ZodLiteral<"signatureField">;
|
|
881
895
|
field: z.ZodString;
|
|
@@ -947,6 +961,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
947
961
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
948
962
|
from: z.ZodLiteral<"header">;
|
|
949
963
|
name: z.ZodString;
|
|
964
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
950
965
|
}, z.core.$strip>, z.ZodObject<{
|
|
951
966
|
from: z.ZodLiteral<"signatureField">;
|
|
952
967
|
field: z.ZodString;
|
|
@@ -963,6 +978,11 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
963
978
|
milliseconds: "milliseconds";
|
|
964
979
|
seconds: "seconds";
|
|
965
980
|
}>>;
|
|
981
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
982
|
+
"http-date": "http-date";
|
|
983
|
+
iso8601: "iso8601";
|
|
984
|
+
unix: "unix";
|
|
985
|
+
}>>;
|
|
966
986
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
967
987
|
}, z.core.$strip>>;
|
|
968
988
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -970,6 +990,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
970
990
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
971
991
|
from: z.ZodLiteral<"header">;
|
|
972
992
|
name: z.ZodString;
|
|
993
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
973
994
|
}, z.core.$strip>, z.ZodObject<{
|
|
974
995
|
from: z.ZodLiteral<"signatureField">;
|
|
975
996
|
field: z.ZodString;
|
|
@@ -1052,6 +1073,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
1052
1073
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1053
1074
|
from: z.ZodLiteral<"header">;
|
|
1054
1075
|
name: z.ZodString;
|
|
1076
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1055
1077
|
}, z.core.$strip>, z.ZodObject<{
|
|
1056
1078
|
from: z.ZodLiteral<"signatureField">;
|
|
1057
1079
|
field: z.ZodString;
|
|
@@ -1068,6 +1090,11 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
1068
1090
|
milliseconds: "milliseconds";
|
|
1069
1091
|
seconds: "seconds";
|
|
1070
1092
|
}>>;
|
|
1093
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1094
|
+
"http-date": "http-date";
|
|
1095
|
+
iso8601: "iso8601";
|
|
1096
|
+
unix: "unix";
|
|
1097
|
+
}>>;
|
|
1071
1098
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1072
1099
|
}, z.core.$strip>>;
|
|
1073
1100
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -1075,6 +1102,7 @@ export declare const WebhookEndpointMetadata: z.ZodObject<{
|
|
|
1075
1102
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1076
1103
|
from: z.ZodLiteral<"header">;
|
|
1077
1104
|
name: z.ZodString;
|
|
1105
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1078
1106
|
}, z.core.$strip>, z.ZodObject<{
|
|
1079
1107
|
from: z.ZodLiteral<"signatureField">;
|
|
1080
1108
|
field: z.ZodString;
|
|
@@ -1166,6 +1194,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1166
1194
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1167
1195
|
from: z.ZodLiteral<"header">;
|
|
1168
1196
|
name: z.ZodString;
|
|
1197
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1169
1198
|
}, z.core.$strip>, z.ZodObject<{
|
|
1170
1199
|
from: z.ZodLiteral<"signatureField">;
|
|
1171
1200
|
field: z.ZodString;
|
|
@@ -1182,6 +1211,11 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1182
1211
|
milliseconds: "milliseconds";
|
|
1183
1212
|
seconds: "seconds";
|
|
1184
1213
|
}>>;
|
|
1214
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1215
|
+
"http-date": "http-date";
|
|
1216
|
+
iso8601: "iso8601";
|
|
1217
|
+
unix: "unix";
|
|
1218
|
+
}>>;
|
|
1185
1219
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1186
1220
|
}, z.core.$strip>>;
|
|
1187
1221
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -1189,6 +1223,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1189
1223
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1190
1224
|
from: z.ZodLiteral<"header">;
|
|
1191
1225
|
name: z.ZodString;
|
|
1226
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1192
1227
|
}, z.core.$strip>, z.ZodObject<{
|
|
1193
1228
|
from: z.ZodLiteral<"signatureField">;
|
|
1194
1229
|
field: z.ZodString;
|
|
@@ -1271,6 +1306,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1271
1306
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1272
1307
|
from: z.ZodLiteral<"header">;
|
|
1273
1308
|
name: z.ZodString;
|
|
1309
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1274
1310
|
}, z.core.$strip>, z.ZodObject<{
|
|
1275
1311
|
from: z.ZodLiteral<"signatureField">;
|
|
1276
1312
|
field: z.ZodString;
|
|
@@ -1287,6 +1323,11 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1287
1323
|
milliseconds: "milliseconds";
|
|
1288
1324
|
seconds: "seconds";
|
|
1289
1325
|
}>>;
|
|
1326
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1327
|
+
"http-date": "http-date";
|
|
1328
|
+
iso8601: "iso8601";
|
|
1329
|
+
unix: "unix";
|
|
1330
|
+
}>>;
|
|
1290
1331
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1291
1332
|
}, z.core.$strip>>;
|
|
1292
1333
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -1294,6 +1335,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1294
1335
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1295
1336
|
from: z.ZodLiteral<"header">;
|
|
1296
1337
|
name: z.ZodString;
|
|
1338
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1297
1339
|
}, z.core.$strip>, z.ZodObject<{
|
|
1298
1340
|
from: z.ZodLiteral<"signatureField">;
|
|
1299
1341
|
field: z.ZodString;
|
|
@@ -1365,6 +1407,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1365
1407
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1366
1408
|
from: z.ZodLiteral<"header">;
|
|
1367
1409
|
name: z.ZodString;
|
|
1410
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1368
1411
|
}, z.core.$strip>, z.ZodObject<{
|
|
1369
1412
|
from: z.ZodLiteral<"signatureField">;
|
|
1370
1413
|
field: z.ZodString;
|
|
@@ -1381,6 +1424,11 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1381
1424
|
milliseconds: "milliseconds";
|
|
1382
1425
|
seconds: "seconds";
|
|
1383
1426
|
}>>;
|
|
1427
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1428
|
+
"http-date": "http-date";
|
|
1429
|
+
iso8601: "iso8601";
|
|
1430
|
+
unix: "unix";
|
|
1431
|
+
}>>;
|
|
1384
1432
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1385
1433
|
}, z.core.$strip>>;
|
|
1386
1434
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -1388,6 +1436,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1388
1436
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1389
1437
|
from: z.ZodLiteral<"header">;
|
|
1390
1438
|
name: z.ZodString;
|
|
1439
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1391
1440
|
}, z.core.$strip>, z.ZodObject<{
|
|
1392
1441
|
from: z.ZodLiteral<"signatureField">;
|
|
1393
1442
|
field: z.ZodString;
|
|
@@ -1470,6 +1519,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1470
1519
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1471
1520
|
from: z.ZodLiteral<"header">;
|
|
1472
1521
|
name: z.ZodString;
|
|
1522
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1473
1523
|
}, z.core.$strip>, z.ZodObject<{
|
|
1474
1524
|
from: z.ZodLiteral<"signatureField">;
|
|
1475
1525
|
field: z.ZodString;
|
|
@@ -1486,6 +1536,11 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1486
1536
|
milliseconds: "milliseconds";
|
|
1487
1537
|
seconds: "seconds";
|
|
1488
1538
|
}>>;
|
|
1539
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1540
|
+
"http-date": "http-date";
|
|
1541
|
+
iso8601: "iso8601";
|
|
1542
|
+
unix: "unix";
|
|
1543
|
+
}>>;
|
|
1489
1544
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1490
1545
|
}, z.core.$strip>>;
|
|
1491
1546
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -1493,6 +1548,7 @@ export declare const WebhookEndpointManifest: z.ZodObject<{
|
|
|
1493
1548
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
1494
1549
|
from: z.ZodLiteral<"header">;
|
|
1495
1550
|
name: z.ZodString;
|
|
1551
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1496
1552
|
}, z.core.$strip>, z.ZodObject<{
|
|
1497
1553
|
from: z.ZodLiteral<"signatureField">;
|
|
1498
1554
|
field: z.ZodString;
|
|
@@ -17,6 +17,7 @@ export type WebhookIdempotencyField = z.infer<typeof WebhookIdempotencyField>;
|
|
|
17
17
|
export declare const WebhookValueSource: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
18
18
|
from: z.ZodLiteral<"header">;
|
|
19
19
|
name: z.ZodString;
|
|
20
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
20
21
|
}, z.core.$strip>, z.ZodObject<{
|
|
21
22
|
from: z.ZodLiteral<"signatureField">;
|
|
22
23
|
field: z.ZodString;
|
|
@@ -41,6 +42,7 @@ export declare const WebhookTimestampConfig: z.ZodObject<{
|
|
|
41
42
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
42
43
|
from: z.ZodLiteral<"header">;
|
|
43
44
|
name: z.ZodString;
|
|
45
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
44
46
|
}, z.core.$strip>, z.ZodObject<{
|
|
45
47
|
from: z.ZodLiteral<"signatureField">;
|
|
46
48
|
field: z.ZodString;
|
|
@@ -57,6 +59,11 @@ export declare const WebhookTimestampConfig: z.ZodObject<{
|
|
|
57
59
|
milliseconds: "milliseconds";
|
|
58
60
|
seconds: "seconds";
|
|
59
61
|
}>>;
|
|
62
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
63
|
+
"http-date": "http-date";
|
|
64
|
+
iso8601: "iso8601";
|
|
65
|
+
unix: "unix";
|
|
66
|
+
}>>;
|
|
60
67
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
61
68
|
}, z.core.$strip>;
|
|
62
69
|
export type WebhookTimestampConfig = z.infer<typeof WebhookTimestampConfig>;
|
|
@@ -73,6 +80,7 @@ export declare const WebhookSigningString: z.ZodUnion<readonly [z.ZodLiteral<"ra
|
|
|
73
80
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
74
81
|
from: z.ZodLiteral<"header">;
|
|
75
82
|
name: z.ZodString;
|
|
83
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
76
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
77
85
|
from: z.ZodLiteral<"signatureField">;
|
|
78
86
|
field: z.ZodString;
|
|
@@ -118,6 +126,7 @@ export declare const WebhookHmacConfig: z.ZodObject<{
|
|
|
118
126
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
119
127
|
from: z.ZodLiteral<"header">;
|
|
120
128
|
name: z.ZodString;
|
|
129
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
121
130
|
}, z.core.$strip>, z.ZodObject<{
|
|
122
131
|
from: z.ZodLiteral<"signatureField">;
|
|
123
132
|
field: z.ZodString;
|
|
@@ -134,6 +143,11 @@ export declare const WebhookHmacConfig: z.ZodObject<{
|
|
|
134
143
|
milliseconds: "milliseconds";
|
|
135
144
|
seconds: "seconds";
|
|
136
145
|
}>>;
|
|
146
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
147
|
+
"http-date": "http-date";
|
|
148
|
+
iso8601: "iso8601";
|
|
149
|
+
unix: "unix";
|
|
150
|
+
}>>;
|
|
137
151
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
138
152
|
}, z.core.$strip>>;
|
|
139
153
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -141,6 +155,7 @@ export declare const WebhookHmacConfig: z.ZodObject<{
|
|
|
141
155
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
142
156
|
from: z.ZodLiteral<"header">;
|
|
143
157
|
name: z.ZodString;
|
|
158
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
144
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
145
160
|
from: z.ZodLiteral<"signatureField">;
|
|
146
161
|
field: z.ZodString;
|
|
@@ -195,6 +210,7 @@ export declare const WebhookAsymmetricConfig: z.ZodObject<{
|
|
|
195
210
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
196
211
|
from: z.ZodLiteral<"header">;
|
|
197
212
|
name: z.ZodString;
|
|
213
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
214
|
}, z.core.$strip>, z.ZodObject<{
|
|
199
215
|
from: z.ZodLiteral<"signatureField">;
|
|
200
216
|
field: z.ZodString;
|
|
@@ -211,6 +227,11 @@ export declare const WebhookAsymmetricConfig: z.ZodObject<{
|
|
|
211
227
|
milliseconds: "milliseconds";
|
|
212
228
|
seconds: "seconds";
|
|
213
229
|
}>>;
|
|
230
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
231
|
+
"http-date": "http-date";
|
|
232
|
+
iso8601: "iso8601";
|
|
233
|
+
unix: "unix";
|
|
234
|
+
}>>;
|
|
214
235
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
215
236
|
}, z.core.$strip>>;
|
|
216
237
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -218,6 +239,7 @@ export declare const WebhookAsymmetricConfig: z.ZodObject<{
|
|
|
218
239
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
219
240
|
from: z.ZodLiteral<"header">;
|
|
220
241
|
name: z.ZodString;
|
|
242
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
221
243
|
}, z.core.$strip>, z.ZodObject<{
|
|
222
244
|
from: z.ZodLiteral<"signatureField">;
|
|
223
245
|
field: z.ZodString;
|
|
@@ -301,6 +323,7 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
301
323
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
302
324
|
from: z.ZodLiteral<"header">;
|
|
303
325
|
name: z.ZodString;
|
|
326
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
304
327
|
}, z.core.$strip>, z.ZodObject<{
|
|
305
328
|
from: z.ZodLiteral<"signatureField">;
|
|
306
329
|
field: z.ZodString;
|
|
@@ -317,6 +340,11 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
317
340
|
milliseconds: "milliseconds";
|
|
318
341
|
seconds: "seconds";
|
|
319
342
|
}>>;
|
|
343
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
344
|
+
"http-date": "http-date";
|
|
345
|
+
iso8601: "iso8601";
|
|
346
|
+
unix: "unix";
|
|
347
|
+
}>>;
|
|
320
348
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
321
349
|
}, z.core.$strip>>;
|
|
322
350
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -324,6 +352,7 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
324
352
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
325
353
|
from: z.ZodLiteral<"header">;
|
|
326
354
|
name: z.ZodString;
|
|
355
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
356
|
}, z.core.$strip>, z.ZodObject<{
|
|
328
357
|
from: z.ZodLiteral<"signatureField">;
|
|
329
358
|
field: z.ZodString;
|
|
@@ -406,6 +435,7 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
406
435
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
407
436
|
from: z.ZodLiteral<"header">;
|
|
408
437
|
name: z.ZodString;
|
|
438
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
409
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
410
440
|
from: z.ZodLiteral<"signatureField">;
|
|
411
441
|
field: z.ZodString;
|
|
@@ -422,6 +452,11 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
422
452
|
milliseconds: "milliseconds";
|
|
423
453
|
seconds: "seconds";
|
|
424
454
|
}>>;
|
|
455
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
456
|
+
"http-date": "http-date";
|
|
457
|
+
iso8601: "iso8601";
|
|
458
|
+
unix: "unix";
|
|
459
|
+
}>>;
|
|
425
460
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
426
461
|
}, z.core.$strip>>;
|
|
427
462
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -429,6 +464,7 @@ export declare const WebhookVerifierConfig: import("../utils/zod.js").Compatible
|
|
|
429
464
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
430
465
|
from: z.ZodLiteral<"header">;
|
|
431
466
|
name: z.ZodString;
|
|
467
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
432
468
|
}, z.core.$strip>, z.ZodObject<{
|
|
433
469
|
from: z.ZodLiteral<"signatureField">;
|
|
434
470
|
field: z.ZodString;
|
|
@@ -513,6 +549,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
513
549
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
514
550
|
from: z.ZodLiteral<"header">;
|
|
515
551
|
name: z.ZodString;
|
|
552
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
516
553
|
}, z.core.$strip>, z.ZodObject<{
|
|
517
554
|
from: z.ZodLiteral<"signatureField">;
|
|
518
555
|
field: z.ZodString;
|
|
@@ -529,6 +566,11 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
529
566
|
milliseconds: "milliseconds";
|
|
530
567
|
seconds: "seconds";
|
|
531
568
|
}>>;
|
|
569
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
570
|
+
"http-date": "http-date";
|
|
571
|
+
iso8601: "iso8601";
|
|
572
|
+
unix: "unix";
|
|
573
|
+
}>>;
|
|
532
574
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
533
575
|
}, z.core.$strip>>;
|
|
534
576
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -536,6 +578,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
536
578
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
537
579
|
from: z.ZodLiteral<"header">;
|
|
538
580
|
name: z.ZodString;
|
|
581
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
539
582
|
}, z.core.$strip>, z.ZodObject<{
|
|
540
583
|
from: z.ZodLiteral<"signatureField">;
|
|
541
584
|
field: z.ZodString;
|
|
@@ -618,6 +661,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
618
661
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
619
662
|
from: z.ZodLiteral<"header">;
|
|
620
663
|
name: z.ZodString;
|
|
664
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
621
665
|
}, z.core.$strip>, z.ZodObject<{
|
|
622
666
|
from: z.ZodLiteral<"signatureField">;
|
|
623
667
|
field: z.ZodString;
|
|
@@ -634,6 +678,11 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
634
678
|
milliseconds: "milliseconds";
|
|
635
679
|
seconds: "seconds";
|
|
636
680
|
}>>;
|
|
681
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
682
|
+
"http-date": "http-date";
|
|
683
|
+
iso8601: "iso8601";
|
|
684
|
+
unix: "unix";
|
|
685
|
+
}>>;
|
|
637
686
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
638
687
|
}, z.core.$strip>>;
|
|
639
688
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -641,6 +690,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
641
690
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
642
691
|
from: z.ZodLiteral<"header">;
|
|
643
692
|
name: z.ZodString;
|
|
693
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
644
694
|
}, z.core.$strip>, z.ZodObject<{
|
|
645
695
|
from: z.ZodLiteral<"signatureField">;
|
|
646
696
|
field: z.ZodString;
|
|
@@ -712,6 +762,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
712
762
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
713
763
|
from: z.ZodLiteral<"header">;
|
|
714
764
|
name: z.ZodString;
|
|
765
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
715
766
|
}, z.core.$strip>, z.ZodObject<{
|
|
716
767
|
from: z.ZodLiteral<"signatureField">;
|
|
717
768
|
field: z.ZodString;
|
|
@@ -728,6 +779,11 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
728
779
|
milliseconds: "milliseconds";
|
|
729
780
|
seconds: "seconds";
|
|
730
781
|
}>>;
|
|
782
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
783
|
+
"http-date": "http-date";
|
|
784
|
+
iso8601: "iso8601";
|
|
785
|
+
unix: "unix";
|
|
786
|
+
}>>;
|
|
731
787
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
732
788
|
}, z.core.$strip>>;
|
|
733
789
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -735,6 +791,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
735
791
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
736
792
|
from: z.ZodLiteral<"header">;
|
|
737
793
|
name: z.ZodString;
|
|
794
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
738
795
|
}, z.core.$strip>, z.ZodObject<{
|
|
739
796
|
from: z.ZodLiteral<"signatureField">;
|
|
740
797
|
field: z.ZodString;
|
|
@@ -817,6 +874,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
817
874
|
source: import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
818
875
|
from: z.ZodLiteral<"header">;
|
|
819
876
|
name: z.ZodString;
|
|
877
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
820
878
|
}, z.core.$strip>, z.ZodObject<{
|
|
821
879
|
from: z.ZodLiteral<"signatureField">;
|
|
822
880
|
field: z.ZodString;
|
|
@@ -833,6 +891,11 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
833
891
|
milliseconds: "milliseconds";
|
|
834
892
|
seconds: "seconds";
|
|
835
893
|
}>>;
|
|
894
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
895
|
+
"http-date": "http-date";
|
|
896
|
+
iso8601: "iso8601";
|
|
897
|
+
unix: "unix";
|
|
898
|
+
}>>;
|
|
836
899
|
toleranceSeconds: z.ZodOptional<z.ZodNumber>;
|
|
837
900
|
}, z.core.$strip>>;
|
|
838
901
|
signingString: z.ZodUnion<readonly [z.ZodLiteral<"raw">, z.ZodObject<{
|
|
@@ -840,6 +903,7 @@ export declare const WebhookVerifierArtifact: import("../utils/zod.js").Compatib
|
|
|
840
903
|
vars: z.ZodOptional<z.ZodRecord<z.ZodString, import("../utils/zod.js").CompatibleZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
841
904
|
from: z.ZodLiteral<"header">;
|
|
842
905
|
name: z.ZodString;
|
|
906
|
+
fallback: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
843
907
|
}, z.core.$strip>, z.ZodObject<{
|
|
844
908
|
from: z.ZodLiteral<"signatureField">;
|
|
845
909
|
field: z.ZodString;
|
|
@@ -35,7 +35,15 @@ const WebhookBodyPath = v4_1.z
|
|
|
35
35
|
message: "body path segments must be non-empty and must not name __proto__, constructor or prototype",
|
|
36
36
|
});
|
|
37
37
|
exports.WebhookValueSource = (0, zod_js_1.discriminatedUnion)("from", [
|
|
38
|
-
v4_1.z.object({
|
|
38
|
+
v4_1.z.object({
|
|
39
|
+
from: v4_1.z.literal("header"),
|
|
40
|
+
name: v4_1.z.string(),
|
|
41
|
+
/**
|
|
42
|
+
* Headers to read, in order, when `name` is missing or empty, e.g. Metronome's `X-Metronome-Date`
|
|
43
|
+
* falling back to `Date`. A signer still writes the value under `name`.
|
|
44
|
+
*/
|
|
45
|
+
fallback: v4_1.z.array(v4_1.z.string()).optional(),
|
|
46
|
+
}),
|
|
39
47
|
v4_1.z.object({ from: v4_1.z.literal("signatureField"), field: v4_1.z.string() }),
|
|
40
48
|
v4_1.z.object({ from: v4_1.z.literal("body"), path: WebhookBodyPath }),
|
|
41
49
|
v4_1.z.object({ from: v4_1.z.literal("url") }),
|
|
@@ -56,6 +64,12 @@ exports.WebhookSignatureExtraction = v4_1.z.object({
|
|
|
56
64
|
exports.WebhookTimestampConfig = v4_1.z.object({
|
|
57
65
|
source: exports.WebhookValueSource,
|
|
58
66
|
unit: v4_1.z.enum(["seconds", "milliseconds"]).optional(),
|
|
67
|
+
/**
|
|
68
|
+
* How the value is written. `unix` (the default) is a number in `unit`; `iso8601` is an ISO 8601
|
|
69
|
+
* date-time (Plain's `webhookDeliveryAttemptTimestamp`); `http-date` is an RFC 1123 date
|
|
70
|
+
* (Metronome's `X-Metronome-Date`). `unit` only applies to `unix`.
|
|
71
|
+
*/
|
|
72
|
+
format: v4_1.z.enum(["unix", "iso8601", "http-date"]).optional(),
|
|
59
73
|
toleranceSeconds: v4_1.z.number().optional(),
|
|
60
74
|
});
|
|
61
75
|
// The stored credential transform. Most providers use the secret as-is (utf8). Svix-family
|
|
@@ -82,7 +96,25 @@ exports.WebhookSigningString = v4_1.z.union([
|
|
|
82
96
|
exports.WebhookFormPayload = v4_1.z.object({
|
|
83
97
|
field: v4_1.z.string(),
|
|
84
98
|
});
|
|
85
|
-
|
|
99
|
+
/**
|
|
100
|
+
* An HTTP date (`Thu, 15 Oct 2026 12:00:00 GMT`) holds letters, digits, commas, spaces and colons, so
|
|
101
|
+
* an item separator made only of those characters can split one apart. Refuse that pairing for a
|
|
102
|
+
* timestamp read from a signature header field; any other separator (`;`) reads the date intact.
|
|
103
|
+
*/
|
|
104
|
+
function httpDateFitsSignatureHeader(config) {
|
|
105
|
+
const separator = config.signature?.itemSeparator;
|
|
106
|
+
if (config.timestamp?.format !== "http-date")
|
|
107
|
+
return true;
|
|
108
|
+
if (config.timestamp.source.from !== "signatureField" || !separator)
|
|
109
|
+
return true;
|
|
110
|
+
return !/^[A-Za-z0-9, :]+$/.test(separator);
|
|
111
|
+
}
|
|
112
|
+
const HTTP_DATE_SEPARATOR_ERROR = {
|
|
113
|
+
message: "an http-date timestamp in a signature header field needs an item separator that can't appear in a date (for example ';')",
|
|
114
|
+
path: ["timestamp", "format"],
|
|
115
|
+
};
|
|
116
|
+
exports.WebhookHmacConfig = v4_1.z
|
|
117
|
+
.object({
|
|
86
118
|
scheme: v4_1.z.literal("hmac"),
|
|
87
119
|
algorithm: v4_1.z.enum(["sha256", "sha1"]),
|
|
88
120
|
encoding: v4_1.z.enum(["hex", "base64"]), // explicit, no auto-detect (design decision 3)
|
|
@@ -93,12 +125,14 @@ exports.WebhookHmacConfig = v4_1.z.object({
|
|
|
93
125
|
secret: exports.WebhookSecretTransform.optional(), // omit = utf8, no prefix strip
|
|
94
126
|
idempotencyField: exports.WebhookIdempotencyField.optional(),
|
|
95
127
|
formPayload: exports.WebhookFormPayload.optional(),
|
|
96
|
-
})
|
|
128
|
+
})
|
|
129
|
+
.refine(httpDateFitsSignatureHeader, HTTP_DATE_SEPARATOR_ERROR);
|
|
97
130
|
// Asymmetric (public-key) signatures: the provider signs with a private key, we verify with
|
|
98
131
|
// their public key. Same parsing/template primitives as HMAC; only the final verify differs.
|
|
99
132
|
// Covers Discord (ed25519), SendGrid (ecdsa-p256), RSA providers. Dynamic key fetch (PayPal
|
|
100
133
|
// cert URL / JWKS) is out of scope → the custom-bundle escape hatch.
|
|
101
|
-
exports.WebhookAsymmetricConfig = v4_1.z
|
|
134
|
+
exports.WebhookAsymmetricConfig = v4_1.z
|
|
135
|
+
.object({
|
|
102
136
|
scheme: v4_1.z.literal("asymmetric"),
|
|
103
137
|
algorithm: v4_1.z.enum(["ed25519", "ecdsa-p256", "rsa-sha256"]),
|
|
104
138
|
encoding: v4_1.z.enum(["hex", "base64"]), // how the signature value is encoded
|
|
@@ -110,7 +144,8 @@ exports.WebhookAsymmetricConfig = v4_1.z.object({
|
|
|
110
144
|
// or raw key bytes (ed25519 raw, Discord). Defaults to "pem".
|
|
111
145
|
publicKeyEncoding: v4_1.z.enum(["pem", "spki-der-base64", "raw-hex", "raw-base64"]).optional(),
|
|
112
146
|
idempotencyField: exports.WebhookIdempotencyField.optional(),
|
|
113
|
-
})
|
|
147
|
+
})
|
|
148
|
+
.refine(httpDateFitsSignatureHeader, HTTP_DATE_SEPARATOR_ERROR);
|
|
114
149
|
exports.WebhookSharedSecretConfig = v4_1.z.object({
|
|
115
150
|
scheme: v4_1.z.literal("shared-secret"),
|
|
116
151
|
placement: v4_1.z.enum(["header", "bearer", "basic", "body"]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookConfig.js","sourceRoot":"","sources":["../../../../src/v3/schemas/webhookConfig.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAC3B,4CAAqD;AAGrD,mFAAmF;AACnF,yHAAyH;AACzH,oFAAoF;AACpF,2FAA2F;AAE3F,+FAA+F;AAC/F,+FAA+F;AAC/F,mGAAmG;AACnG,6EAA6E;AAChE,QAAA,yBAAyB,GAAG,MAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;AAGtF,wGAAwG;AAC3F,QAAA,uBAAuB,GAAG,MAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAGH,yEAAyE;AAEzE,gGAAgG;AAChG,uFAAuF;AACvF,+FAA+F;AAC/F;;;;GAIG;AACH,MAAM,eAAe,GAAG,MAAC;KACtB,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,MAAM,CACL,CAAC,IAAI,EAAE,EAAE,CACP,IAAI;KACD,KAAK,CAAC,GAAG,CAAC;KACV,KAAK,CACJ,CAAC,OAAO,EAAE,EAAE,CACV,OAAO,KAAK,EAAE,IAAI,CAAC,CAAC,WAAW,EAA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