@uniformdev/webhooks 20.50.2-alpha.149 → 20.50.2-alpha.167

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/index.d.mts CHANGED
@@ -1,33 +1,6 @@
1
1
  import * as z from 'zod';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
 
4
- declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
5
- eventType: z.ZodLiteral<EventType>;
6
- } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
7
- type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
8
- event: EventType;
9
- name: string;
10
- description: string;
11
- schema: TSchema;
12
- archived?: boolean;
13
- };
14
- type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
15
- schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
16
- _definition: true;
17
- example: z.TypeOf<TSchema> & {
18
- eventType: EventType;
19
- };
20
- };
21
- declare const isDefinition: (obj: any) => obj is Definition;
22
- declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
23
- declare const webhookInitiatorSchema: z.ZodObject<{
24
- id: z.ZodString;
25
- name: z.ZodOptional<z.ZodString>;
26
- email: z.ZodOptional<z.ZodString>;
27
- is_api_key: z.ZodBoolean;
28
- }, z.core.$strict>;
29
- type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
30
-
31
4
  declare const AssetDeletedDefinition: Definition<z.ZodObject<{
32
5
  id: z.ZodString;
33
6
  name: z.ZodString;
@@ -100,6 +73,33 @@ declare const AssetDeletePayloadSchema: z.ZodObject<{
100
73
  }, z.core.$strip>;
101
74
  type AssetPayload = z.infer<typeof AssetPayloadSchema>;
102
75
 
76
+ declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
77
+ eventType: z.ZodLiteral<EventType>;
78
+ } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
79
+ type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
80
+ event: EventType;
81
+ name: string;
82
+ description: string;
83
+ schema: TSchema;
84
+ archived?: boolean;
85
+ };
86
+ type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
87
+ schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
88
+ _definition: true;
89
+ example: z.TypeOf<TSchema> & {
90
+ eventType: EventType;
91
+ };
92
+ };
93
+ declare const isDefinition: (obj: any) => obj is Definition;
94
+ declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
95
+ declare const webhookInitiatorSchema: z.ZodObject<{
96
+ id: z.ZodString;
97
+ name: z.ZodOptional<z.ZodString>;
98
+ email: z.ZodOptional<z.ZodString>;
99
+ is_api_key: z.ZodBoolean;
100
+ }, z.core.$strict>;
101
+ type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
102
+
103
103
  /**
104
104
  * Canonical catalog of internal webhook events, keyed by event name. Each entry
105
105
  * is the event's {@link Definition} (display name, description, and Zod payload
@@ -153,6 +153,7 @@ declare const webhookEventCatalog: {
153
153
  id: z.ZodString;
154
154
  url: z.ZodString;
155
155
  }, z.core.$strip>;
156
+ timestamp: z.ZodOptional<z.ZodString>;
156
157
  initiator: z.ZodObject<{
157
158
  id: z.ZodString;
158
159
  name: z.ZodOptional<z.ZodString>;
@@ -180,6 +181,7 @@ declare const webhookEventCatalog: {
180
181
  id: z.ZodString;
181
182
  url: z.ZodString;
182
183
  }, z.core.$strip>;
184
+ timestamp: z.ZodOptional<z.ZodString>;
183
185
  initiator: z.ZodObject<{
184
186
  id: z.ZodString;
185
187
  name: z.ZodOptional<z.ZodString>;
@@ -204,6 +206,7 @@ declare const webhookEventCatalog: {
204
206
  id: z.ZodString;
205
207
  url: z.ZodString;
206
208
  }, z.core.$strip>;
209
+ timestamp: z.ZodOptional<z.ZodString>;
207
210
  initiator: z.ZodObject<{
208
211
  id: z.ZodString;
209
212
  name: z.ZodOptional<z.ZodString>;
@@ -231,6 +234,7 @@ declare const webhookEventCatalog: {
231
234
  id: z.ZodString;
232
235
  url: z.ZodString;
233
236
  }, z.core.$strip>;
237
+ timestamp: z.ZodOptional<z.ZodString>;
234
238
  initiator: z.ZodObject<{
235
239
  id: z.ZodString;
236
240
  name: z.ZodOptional<z.ZodString>;
@@ -256,6 +260,7 @@ declare const webhookEventCatalog: {
256
260
  id: z.ZodString;
257
261
  url: z.ZodString;
258
262
  }, z.core.$strip>;
263
+ timestamp: z.ZodOptional<z.ZodString>;
259
264
  initiator: z.ZodObject<{
260
265
  id: z.ZodString;
261
266
  name: z.ZodOptional<z.ZodString>;
@@ -278,6 +283,7 @@ declare const webhookEventCatalog: {
278
283
  id: z.ZodString;
279
284
  url: z.ZodString;
280
285
  }, z.core.$strip>;
286
+ timestamp: z.ZodOptional<z.ZodString>;
281
287
  initiator: z.ZodObject<{
282
288
  id: z.ZodString;
283
289
  name: z.ZodOptional<z.ZodString>;
@@ -303,6 +309,7 @@ declare const webhookEventCatalog: {
303
309
  id: z.ZodString;
304
310
  url: z.ZodString;
305
311
  }, z.core.$strip>;
312
+ timestamp: z.ZodOptional<z.ZodString>;
306
313
  initiator: z.ZodObject<{
307
314
  id: z.ZodString;
308
315
  name: z.ZodOptional<z.ZodString>;
@@ -325,6 +332,7 @@ declare const webhookEventCatalog: {
325
332
  id: z.ZodString;
326
333
  url: z.ZodString;
327
334
  }, z.core.$strip>;
335
+ timestamp: z.ZodOptional<z.ZodString>;
328
336
  initiator: z.ZodObject<{
329
337
  id: z.ZodString;
330
338
  name: z.ZodOptional<z.ZodString>;
@@ -352,6 +360,7 @@ declare const webhookEventCatalog: {
352
360
  id: z.ZodString;
353
361
  url: z.ZodString;
354
362
  }, z.core.$strip>;
363
+ timestamp: z.ZodOptional<z.ZodString>;
355
364
  initiator: z.ZodObject<{
356
365
  id: z.ZodString;
357
366
  name: z.ZodOptional<z.ZodString>;
@@ -376,6 +385,7 @@ declare const webhookEventCatalog: {
376
385
  id: z.ZodString;
377
386
  url: z.ZodString;
378
387
  }, z.core.$strip>;
388
+ timestamp: z.ZodOptional<z.ZodString>;
379
389
  initiator: z.ZodObject<{
380
390
  id: z.ZodString;
381
391
  name: z.ZodOptional<z.ZodString>;
@@ -403,6 +413,7 @@ declare const webhookEventCatalog: {
403
413
  id: z.ZodString;
404
414
  url: z.ZodString;
405
415
  }, z.core.$strip>;
416
+ timestamp: z.ZodOptional<z.ZodString>;
406
417
  initiator: z.ZodObject<{
407
418
  id: z.ZodString;
408
419
  name: z.ZodOptional<z.ZodString>;
@@ -428,6 +439,7 @@ declare const webhookEventCatalog: {
428
439
  id: z.ZodString;
429
440
  url: z.ZodString;
430
441
  }, z.core.$strip>;
442
+ timestamp: z.ZodOptional<z.ZodString>;
431
443
  initiator: z.ZodObject<{
432
444
  id: z.ZodString;
433
445
  name: z.ZodOptional<z.ZodString>;
@@ -450,6 +462,7 @@ declare const webhookEventCatalog: {
450
462
  id: z.ZodString;
451
463
  url: z.ZodString;
452
464
  }, z.core.$strip>;
465
+ timestamp: z.ZodOptional<z.ZodString>;
453
466
  initiator: z.ZodObject<{
454
467
  id: z.ZodString;
455
468
  name: z.ZodOptional<z.ZodString>;
@@ -475,6 +488,7 @@ declare const webhookEventCatalog: {
475
488
  id: z.ZodString;
476
489
  url: z.ZodString;
477
490
  }, z.core.$strip>;
491
+ timestamp: z.ZodOptional<z.ZodString>;
478
492
  initiator: z.ZodObject<{
479
493
  id: z.ZodString;
480
494
  name: z.ZodOptional<z.ZodString>;
@@ -748,6 +762,7 @@ declare const CompositionDeletePayloadSchema: z.ZodObject<{
748
762
  id: z.ZodString;
749
763
  url: z.ZodString;
750
764
  }, z.core.$strip>;
765
+ timestamp: z.ZodOptional<z.ZodString>;
751
766
  initiator: z.ZodObject<{
752
767
  id: z.ZodString;
753
768
  name: z.ZodOptional<z.ZodString>;
@@ -766,6 +781,7 @@ declare const CompositionRestorePayloadSchema: z.ZodObject<{
766
781
  id: z.ZodString;
767
782
  url: z.ZodString;
768
783
  }, z.core.$strip>;
784
+ timestamp: z.ZodOptional<z.ZodString>;
769
785
  initiator: z.ZodObject<{
770
786
  id: z.ZodString;
771
787
  name: z.ZodOptional<z.ZodString>;
@@ -784,6 +800,7 @@ declare const CompositionPayloadSchema: z.ZodObject<{
784
800
  id: z.ZodString;
785
801
  url: z.ZodString;
786
802
  }, z.core.$strip>;
803
+ timestamp: z.ZodOptional<z.ZodString>;
787
804
  initiator: z.ZodObject<{
788
805
  id: z.ZodString;
789
806
  name: z.ZodOptional<z.ZodString>;
@@ -814,6 +831,7 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
814
831
  id: z.ZodString;
815
832
  url: z.ZodString;
816
833
  }, z.core.$strip>;
834
+ timestamp: z.ZodOptional<z.ZodString>;
817
835
  initiator: z.ZodObject<{
818
836
  id: z.ZodString;
819
837
  name: z.ZodOptional<z.ZodString>;
@@ -844,6 +862,7 @@ declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
844
862
  id: z.ZodString;
845
863
  url: z.ZodString;
846
864
  }, z.core.$strip>;
865
+ timestamp: z.ZodOptional<z.ZodString>;
847
866
  initiator: z.ZodObject<{
848
867
  id: z.ZodString;
849
868
  name: z.ZodOptional<z.ZodString>;
@@ -871,6 +890,7 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
871
890
  id: z.ZodString;
872
891
  url: z.ZodString;
873
892
  }, z.core.$strip>;
893
+ timestamp: z.ZodOptional<z.ZodString>;
874
894
  initiator: z.ZodObject<{
875
895
  id: z.ZodString;
876
896
  name: z.ZodOptional<z.ZodString>;
@@ -901,6 +921,7 @@ declare const CompositionReleaseChangedDefinition: Definition<z.ZodObject<{
901
921
  id: z.ZodString;
902
922
  url: z.ZodString;
903
923
  }, z.core.$strip>;
924
+ timestamp: z.ZodOptional<z.ZodString>;
904
925
  initiator: z.ZodObject<{
905
926
  id: z.ZodString;
906
927
  name: z.ZodOptional<z.ZodString>;
@@ -929,6 +950,7 @@ declare const CompositionReleaseDeletedDefinition: Definition<z.ZodObject<{
929
950
  id: z.ZodString;
930
951
  url: z.ZodString;
931
952
  }, z.core.$strip>;
953
+ timestamp: z.ZodOptional<z.ZodString>;
932
954
  initiator: z.ZodObject<{
933
955
  id: z.ZodString;
934
956
  name: z.ZodOptional<z.ZodString>;
@@ -954,6 +976,7 @@ declare const CompositionReleasePublishedDefinition: Definition<z.ZodObject<{
954
976
  id: z.ZodString;
955
977
  url: z.ZodString;
956
978
  }, z.core.$strip>;
979
+ timestamp: z.ZodOptional<z.ZodString>;
957
980
  initiator: z.ZodObject<{
958
981
  id: z.ZodString;
959
982
  name: z.ZodOptional<z.ZodString>;
@@ -982,6 +1005,7 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
982
1005
  id: z.ZodString;
983
1006
  url: z.ZodString;
984
1007
  }, z.core.$strip>;
1008
+ timestamp: z.ZodOptional<z.ZodString>;
985
1009
  initiator: z.ZodObject<{
986
1010
  id: z.ZodString;
987
1011
  name: z.ZodOptional<z.ZodString>;
@@ -1015,6 +1039,7 @@ declare const EntryDeletePayloadSchema: z.ZodObject<{
1015
1039
  id: z.ZodString;
1016
1040
  url: z.ZodString;
1017
1041
  }, z.core.$strip>;
1042
+ timestamp: z.ZodOptional<z.ZodString>;
1018
1043
  initiator: z.ZodObject<{
1019
1044
  id: z.ZodString;
1020
1045
  name: z.ZodOptional<z.ZodString>;
@@ -1033,6 +1058,7 @@ declare const EntryRestorePayloadSchema: z.ZodObject<{
1033
1058
  id: z.ZodString;
1034
1059
  url: z.ZodString;
1035
1060
  }, z.core.$strip>;
1061
+ timestamp: z.ZodOptional<z.ZodString>;
1036
1062
  initiator: z.ZodObject<{
1037
1063
  id: z.ZodString;
1038
1064
  name: z.ZodOptional<z.ZodString>;
@@ -1051,6 +1077,7 @@ declare const EntryPayloadSchema: z.ZodObject<{
1051
1077
  id: z.ZodString;
1052
1078
  url: z.ZodString;
1053
1079
  }, z.core.$strip>;
1080
+ timestamp: z.ZodOptional<z.ZodString>;
1054
1081
  initiator: z.ZodObject<{
1055
1082
  id: z.ZodString;
1056
1083
  name: z.ZodOptional<z.ZodString>;
@@ -1081,6 +1108,7 @@ declare const EntryChangedDefinition: Definition<z.ZodObject<{
1081
1108
  id: z.ZodString;
1082
1109
  url: z.ZodString;
1083
1110
  }, z.core.$strip>;
1111
+ timestamp: z.ZodOptional<z.ZodString>;
1084
1112
  initiator: z.ZodObject<{
1085
1113
  id: z.ZodString;
1086
1114
  name: z.ZodOptional<z.ZodString>;
@@ -1111,6 +1139,7 @@ declare const EntryDeletedDefinition: Definition<z.ZodObject<{
1111
1139
  id: z.ZodString;
1112
1140
  url: z.ZodString;
1113
1141
  }, z.core.$strip>;
1142
+ timestamp: z.ZodOptional<z.ZodString>;
1114
1143
  initiator: z.ZodObject<{
1115
1144
  id: z.ZodString;
1116
1145
  name: z.ZodOptional<z.ZodString>;
@@ -1138,6 +1167,7 @@ declare const EntryPublishedDefinition: Definition<z.ZodObject<{
1138
1167
  id: z.ZodString;
1139
1168
  url: z.ZodString;
1140
1169
  }, z.core.$strip>;
1170
+ timestamp: z.ZodOptional<z.ZodString>;
1141
1171
  initiator: z.ZodObject<{
1142
1172
  id: z.ZodString;
1143
1173
  name: z.ZodOptional<z.ZodString>;
@@ -1168,6 +1198,7 @@ declare const EntryReleaseChangedDefinition: Definition<z.ZodObject<{
1168
1198
  id: z.ZodString;
1169
1199
  url: z.ZodString;
1170
1200
  }, z.core.$strip>;
1201
+ timestamp: z.ZodOptional<z.ZodString>;
1171
1202
  initiator: z.ZodObject<{
1172
1203
  id: z.ZodString;
1173
1204
  name: z.ZodOptional<z.ZodString>;
@@ -1196,6 +1227,7 @@ declare const EntryReleaseDeletedDefinition: Definition<z.ZodObject<{
1196
1227
  id: z.ZodString;
1197
1228
  url: z.ZodString;
1198
1229
  }, z.core.$strip>;
1230
+ timestamp: z.ZodOptional<z.ZodString>;
1199
1231
  initiator: z.ZodObject<{
1200
1232
  id: z.ZodString;
1201
1233
  name: z.ZodOptional<z.ZodString>;
@@ -1221,6 +1253,7 @@ declare const EntryReleasePublishedDefinition: Definition<z.ZodObject<{
1221
1253
  id: z.ZodString;
1222
1254
  url: z.ZodString;
1223
1255
  }, z.core.$strip>;
1256
+ timestamp: z.ZodOptional<z.ZodString>;
1224
1257
  initiator: z.ZodObject<{
1225
1258
  id: z.ZodString;
1226
1259
  name: z.ZodOptional<z.ZodString>;
@@ -1249,6 +1282,7 @@ declare const EntryReleaseRestoredDefinition: Definition<z.ZodObject<{
1249
1282
  id: z.ZodString;
1250
1283
  url: z.ZodString;
1251
1284
  }, z.core.$strip>;
1285
+ timestamp: z.ZodOptional<z.ZodString>;
1252
1286
  initiator: z.ZodObject<{
1253
1287
  id: z.ZodString;
1254
1288
  name: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -1,33 +1,6 @@
1
1
  import * as z from 'zod';
2
2
  import * as zod_v4_core from 'zod/v4/core';
3
3
 
4
- declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
5
- eventType: z.ZodLiteral<EventType>;
6
- } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
7
- type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
8
- event: EventType;
9
- name: string;
10
- description: string;
11
- schema: TSchema;
12
- archived?: boolean;
13
- };
14
- type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
15
- schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
16
- _definition: true;
17
- example: z.TypeOf<TSchema> & {
18
- eventType: EventType;
19
- };
20
- };
21
- declare const isDefinition: (obj: any) => obj is Definition;
22
- declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
23
- declare const webhookInitiatorSchema: z.ZodObject<{
24
- id: z.ZodString;
25
- name: z.ZodOptional<z.ZodString>;
26
- email: z.ZodOptional<z.ZodString>;
27
- is_api_key: z.ZodBoolean;
28
- }, z.core.$strict>;
29
- type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
30
-
31
4
  declare const AssetDeletedDefinition: Definition<z.ZodObject<{
32
5
  id: z.ZodString;
33
6
  name: z.ZodString;
@@ -100,6 +73,33 @@ declare const AssetDeletePayloadSchema: z.ZodObject<{
100
73
  }, z.core.$strip>;
101
74
  type AssetPayload = z.infer<typeof AssetPayloadSchema>;
102
75
 
76
+ declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
77
+ eventType: z.ZodLiteral<EventType>;
78
+ } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
79
+ type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
80
+ event: EventType;
81
+ name: string;
82
+ description: string;
83
+ schema: TSchema;
84
+ archived?: boolean;
85
+ };
86
+ type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
87
+ schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
88
+ _definition: true;
89
+ example: z.TypeOf<TSchema> & {
90
+ eventType: EventType;
91
+ };
92
+ };
93
+ declare const isDefinition: (obj: any) => obj is Definition;
94
+ declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
95
+ declare const webhookInitiatorSchema: z.ZodObject<{
96
+ id: z.ZodString;
97
+ name: z.ZodOptional<z.ZodString>;
98
+ email: z.ZodOptional<z.ZodString>;
99
+ is_api_key: z.ZodBoolean;
100
+ }, z.core.$strict>;
101
+ type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
102
+
103
103
  /**
104
104
  * Canonical catalog of internal webhook events, keyed by event name. Each entry
105
105
  * is the event's {@link Definition} (display name, description, and Zod payload
@@ -153,6 +153,7 @@ declare const webhookEventCatalog: {
153
153
  id: z.ZodString;
154
154
  url: z.ZodString;
155
155
  }, z.core.$strip>;
156
+ timestamp: z.ZodOptional<z.ZodString>;
156
157
  initiator: z.ZodObject<{
157
158
  id: z.ZodString;
158
159
  name: z.ZodOptional<z.ZodString>;
@@ -180,6 +181,7 @@ declare const webhookEventCatalog: {
180
181
  id: z.ZodString;
181
182
  url: z.ZodString;
182
183
  }, z.core.$strip>;
184
+ timestamp: z.ZodOptional<z.ZodString>;
183
185
  initiator: z.ZodObject<{
184
186
  id: z.ZodString;
185
187
  name: z.ZodOptional<z.ZodString>;
@@ -204,6 +206,7 @@ declare const webhookEventCatalog: {
204
206
  id: z.ZodString;
205
207
  url: z.ZodString;
206
208
  }, z.core.$strip>;
209
+ timestamp: z.ZodOptional<z.ZodString>;
207
210
  initiator: z.ZodObject<{
208
211
  id: z.ZodString;
209
212
  name: z.ZodOptional<z.ZodString>;
@@ -231,6 +234,7 @@ declare const webhookEventCatalog: {
231
234
  id: z.ZodString;
232
235
  url: z.ZodString;
233
236
  }, z.core.$strip>;
237
+ timestamp: z.ZodOptional<z.ZodString>;
234
238
  initiator: z.ZodObject<{
235
239
  id: z.ZodString;
236
240
  name: z.ZodOptional<z.ZodString>;
@@ -256,6 +260,7 @@ declare const webhookEventCatalog: {
256
260
  id: z.ZodString;
257
261
  url: z.ZodString;
258
262
  }, z.core.$strip>;
263
+ timestamp: z.ZodOptional<z.ZodString>;
259
264
  initiator: z.ZodObject<{
260
265
  id: z.ZodString;
261
266
  name: z.ZodOptional<z.ZodString>;
@@ -278,6 +283,7 @@ declare const webhookEventCatalog: {
278
283
  id: z.ZodString;
279
284
  url: z.ZodString;
280
285
  }, z.core.$strip>;
286
+ timestamp: z.ZodOptional<z.ZodString>;
281
287
  initiator: z.ZodObject<{
282
288
  id: z.ZodString;
283
289
  name: z.ZodOptional<z.ZodString>;
@@ -303,6 +309,7 @@ declare const webhookEventCatalog: {
303
309
  id: z.ZodString;
304
310
  url: z.ZodString;
305
311
  }, z.core.$strip>;
312
+ timestamp: z.ZodOptional<z.ZodString>;
306
313
  initiator: z.ZodObject<{
307
314
  id: z.ZodString;
308
315
  name: z.ZodOptional<z.ZodString>;
@@ -325,6 +332,7 @@ declare const webhookEventCatalog: {
325
332
  id: z.ZodString;
326
333
  url: z.ZodString;
327
334
  }, z.core.$strip>;
335
+ timestamp: z.ZodOptional<z.ZodString>;
328
336
  initiator: z.ZodObject<{
329
337
  id: z.ZodString;
330
338
  name: z.ZodOptional<z.ZodString>;
@@ -352,6 +360,7 @@ declare const webhookEventCatalog: {
352
360
  id: z.ZodString;
353
361
  url: z.ZodString;
354
362
  }, z.core.$strip>;
363
+ timestamp: z.ZodOptional<z.ZodString>;
355
364
  initiator: z.ZodObject<{
356
365
  id: z.ZodString;
357
366
  name: z.ZodOptional<z.ZodString>;
@@ -376,6 +385,7 @@ declare const webhookEventCatalog: {
376
385
  id: z.ZodString;
377
386
  url: z.ZodString;
378
387
  }, z.core.$strip>;
388
+ timestamp: z.ZodOptional<z.ZodString>;
379
389
  initiator: z.ZodObject<{
380
390
  id: z.ZodString;
381
391
  name: z.ZodOptional<z.ZodString>;
@@ -403,6 +413,7 @@ declare const webhookEventCatalog: {
403
413
  id: z.ZodString;
404
414
  url: z.ZodString;
405
415
  }, z.core.$strip>;
416
+ timestamp: z.ZodOptional<z.ZodString>;
406
417
  initiator: z.ZodObject<{
407
418
  id: z.ZodString;
408
419
  name: z.ZodOptional<z.ZodString>;
@@ -428,6 +439,7 @@ declare const webhookEventCatalog: {
428
439
  id: z.ZodString;
429
440
  url: z.ZodString;
430
441
  }, z.core.$strip>;
442
+ timestamp: z.ZodOptional<z.ZodString>;
431
443
  initiator: z.ZodObject<{
432
444
  id: z.ZodString;
433
445
  name: z.ZodOptional<z.ZodString>;
@@ -450,6 +462,7 @@ declare const webhookEventCatalog: {
450
462
  id: z.ZodString;
451
463
  url: z.ZodString;
452
464
  }, z.core.$strip>;
465
+ timestamp: z.ZodOptional<z.ZodString>;
453
466
  initiator: z.ZodObject<{
454
467
  id: z.ZodString;
455
468
  name: z.ZodOptional<z.ZodString>;
@@ -475,6 +488,7 @@ declare const webhookEventCatalog: {
475
488
  id: z.ZodString;
476
489
  url: z.ZodString;
477
490
  }, z.core.$strip>;
491
+ timestamp: z.ZodOptional<z.ZodString>;
478
492
  initiator: z.ZodObject<{
479
493
  id: z.ZodString;
480
494
  name: z.ZodOptional<z.ZodString>;
@@ -748,6 +762,7 @@ declare const CompositionDeletePayloadSchema: z.ZodObject<{
748
762
  id: z.ZodString;
749
763
  url: z.ZodString;
750
764
  }, z.core.$strip>;
765
+ timestamp: z.ZodOptional<z.ZodString>;
751
766
  initiator: z.ZodObject<{
752
767
  id: z.ZodString;
753
768
  name: z.ZodOptional<z.ZodString>;
@@ -766,6 +781,7 @@ declare const CompositionRestorePayloadSchema: z.ZodObject<{
766
781
  id: z.ZodString;
767
782
  url: z.ZodString;
768
783
  }, z.core.$strip>;
784
+ timestamp: z.ZodOptional<z.ZodString>;
769
785
  initiator: z.ZodObject<{
770
786
  id: z.ZodString;
771
787
  name: z.ZodOptional<z.ZodString>;
@@ -784,6 +800,7 @@ declare const CompositionPayloadSchema: z.ZodObject<{
784
800
  id: z.ZodString;
785
801
  url: z.ZodString;
786
802
  }, z.core.$strip>;
803
+ timestamp: z.ZodOptional<z.ZodString>;
787
804
  initiator: z.ZodObject<{
788
805
  id: z.ZodString;
789
806
  name: z.ZodOptional<z.ZodString>;
@@ -814,6 +831,7 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
814
831
  id: z.ZodString;
815
832
  url: z.ZodString;
816
833
  }, z.core.$strip>;
834
+ timestamp: z.ZodOptional<z.ZodString>;
817
835
  initiator: z.ZodObject<{
818
836
  id: z.ZodString;
819
837
  name: z.ZodOptional<z.ZodString>;
@@ -844,6 +862,7 @@ declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
844
862
  id: z.ZodString;
845
863
  url: z.ZodString;
846
864
  }, z.core.$strip>;
865
+ timestamp: z.ZodOptional<z.ZodString>;
847
866
  initiator: z.ZodObject<{
848
867
  id: z.ZodString;
849
868
  name: z.ZodOptional<z.ZodString>;
@@ -871,6 +890,7 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
871
890
  id: z.ZodString;
872
891
  url: z.ZodString;
873
892
  }, z.core.$strip>;
893
+ timestamp: z.ZodOptional<z.ZodString>;
874
894
  initiator: z.ZodObject<{
875
895
  id: z.ZodString;
876
896
  name: z.ZodOptional<z.ZodString>;
@@ -901,6 +921,7 @@ declare const CompositionReleaseChangedDefinition: Definition<z.ZodObject<{
901
921
  id: z.ZodString;
902
922
  url: z.ZodString;
903
923
  }, z.core.$strip>;
924
+ timestamp: z.ZodOptional<z.ZodString>;
904
925
  initiator: z.ZodObject<{
905
926
  id: z.ZodString;
906
927
  name: z.ZodOptional<z.ZodString>;
@@ -929,6 +950,7 @@ declare const CompositionReleaseDeletedDefinition: Definition<z.ZodObject<{
929
950
  id: z.ZodString;
930
951
  url: z.ZodString;
931
952
  }, z.core.$strip>;
953
+ timestamp: z.ZodOptional<z.ZodString>;
932
954
  initiator: z.ZodObject<{
933
955
  id: z.ZodString;
934
956
  name: z.ZodOptional<z.ZodString>;
@@ -954,6 +976,7 @@ declare const CompositionReleasePublishedDefinition: Definition<z.ZodObject<{
954
976
  id: z.ZodString;
955
977
  url: z.ZodString;
956
978
  }, z.core.$strip>;
979
+ timestamp: z.ZodOptional<z.ZodString>;
957
980
  initiator: z.ZodObject<{
958
981
  id: z.ZodString;
959
982
  name: z.ZodOptional<z.ZodString>;
@@ -982,6 +1005,7 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
982
1005
  id: z.ZodString;
983
1006
  url: z.ZodString;
984
1007
  }, z.core.$strip>;
1008
+ timestamp: z.ZodOptional<z.ZodString>;
985
1009
  initiator: z.ZodObject<{
986
1010
  id: z.ZodString;
987
1011
  name: z.ZodOptional<z.ZodString>;
@@ -1015,6 +1039,7 @@ declare const EntryDeletePayloadSchema: z.ZodObject<{
1015
1039
  id: z.ZodString;
1016
1040
  url: z.ZodString;
1017
1041
  }, z.core.$strip>;
1042
+ timestamp: z.ZodOptional<z.ZodString>;
1018
1043
  initiator: z.ZodObject<{
1019
1044
  id: z.ZodString;
1020
1045
  name: z.ZodOptional<z.ZodString>;
@@ -1033,6 +1058,7 @@ declare const EntryRestorePayloadSchema: z.ZodObject<{
1033
1058
  id: z.ZodString;
1034
1059
  url: z.ZodString;
1035
1060
  }, z.core.$strip>;
1061
+ timestamp: z.ZodOptional<z.ZodString>;
1036
1062
  initiator: z.ZodObject<{
1037
1063
  id: z.ZodString;
1038
1064
  name: z.ZodOptional<z.ZodString>;
@@ -1051,6 +1077,7 @@ declare const EntryPayloadSchema: z.ZodObject<{
1051
1077
  id: z.ZodString;
1052
1078
  url: z.ZodString;
1053
1079
  }, z.core.$strip>;
1080
+ timestamp: z.ZodOptional<z.ZodString>;
1054
1081
  initiator: z.ZodObject<{
1055
1082
  id: z.ZodString;
1056
1083
  name: z.ZodOptional<z.ZodString>;
@@ -1081,6 +1108,7 @@ declare const EntryChangedDefinition: Definition<z.ZodObject<{
1081
1108
  id: z.ZodString;
1082
1109
  url: z.ZodString;
1083
1110
  }, z.core.$strip>;
1111
+ timestamp: z.ZodOptional<z.ZodString>;
1084
1112
  initiator: z.ZodObject<{
1085
1113
  id: z.ZodString;
1086
1114
  name: z.ZodOptional<z.ZodString>;
@@ -1111,6 +1139,7 @@ declare const EntryDeletedDefinition: Definition<z.ZodObject<{
1111
1139
  id: z.ZodString;
1112
1140
  url: z.ZodString;
1113
1141
  }, z.core.$strip>;
1142
+ timestamp: z.ZodOptional<z.ZodString>;
1114
1143
  initiator: z.ZodObject<{
1115
1144
  id: z.ZodString;
1116
1145
  name: z.ZodOptional<z.ZodString>;
@@ -1138,6 +1167,7 @@ declare const EntryPublishedDefinition: Definition<z.ZodObject<{
1138
1167
  id: z.ZodString;
1139
1168
  url: z.ZodString;
1140
1169
  }, z.core.$strip>;
1170
+ timestamp: z.ZodOptional<z.ZodString>;
1141
1171
  initiator: z.ZodObject<{
1142
1172
  id: z.ZodString;
1143
1173
  name: z.ZodOptional<z.ZodString>;
@@ -1168,6 +1198,7 @@ declare const EntryReleaseChangedDefinition: Definition<z.ZodObject<{
1168
1198
  id: z.ZodString;
1169
1199
  url: z.ZodString;
1170
1200
  }, z.core.$strip>;
1201
+ timestamp: z.ZodOptional<z.ZodString>;
1171
1202
  initiator: z.ZodObject<{
1172
1203
  id: z.ZodString;
1173
1204
  name: z.ZodOptional<z.ZodString>;
@@ -1196,6 +1227,7 @@ declare const EntryReleaseDeletedDefinition: Definition<z.ZodObject<{
1196
1227
  id: z.ZodString;
1197
1228
  url: z.ZodString;
1198
1229
  }, z.core.$strip>;
1230
+ timestamp: z.ZodOptional<z.ZodString>;
1199
1231
  initiator: z.ZodObject<{
1200
1232
  id: z.ZodString;
1201
1233
  name: z.ZodOptional<z.ZodString>;
@@ -1221,6 +1253,7 @@ declare const EntryReleasePublishedDefinition: Definition<z.ZodObject<{
1221
1253
  id: z.ZodString;
1222
1254
  url: z.ZodString;
1223
1255
  }, z.core.$strip>;
1256
+ timestamp: z.ZodOptional<z.ZodString>;
1224
1257
  initiator: z.ZodObject<{
1225
1258
  id: z.ZodString;
1226
1259
  name: z.ZodOptional<z.ZodString>;
@@ -1249,6 +1282,7 @@ declare const EntryReleaseRestoredDefinition: Definition<z.ZodObject<{
1249
1282
  id: z.ZodString;
1250
1283
  url: z.ZodString;
1251
1284
  }, z.core.$strip>;
1285
+ timestamp: z.ZodOptional<z.ZodString>;
1252
1286
  initiator: z.ZodObject<{
1253
1287
  id: z.ZodString;
1254
1288
  name: z.ZodOptional<z.ZodString>;
package/dist/index.esm.js CHANGED
@@ -109,6 +109,10 @@ var CompositionCorePayloadSchema = z3.object({
109
109
  id: z3.string(),
110
110
  url: z3.string()
111
111
  }),
112
+ /**
113
+ * The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
114
+ */
115
+ timestamp: z3.string().optional(),
112
116
  initiator: webhookInitiatorSchema
113
117
  });
114
118
  var CompositionTriggerPayloadSchema = z3.object({
@@ -391,6 +395,10 @@ var EntryCorePayloadSchema = z4.object({
391
395
  id: z4.string(),
392
396
  url: z4.string()
393
397
  }),
398
+ /**
399
+ * The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
400
+ */
401
+ timestamp: z4.string().optional(),
394
402
  initiator: webhookInitiatorSchema
395
403
  });
396
404
  var EntryTriggerPayloadSchema = z4.object({
package/dist/index.js CHANGED
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
30
  // src/index.ts
31
- var src_exports = {};
32
- __export(src_exports, {
31
+ var index_exports = {};
32
+ __export(index_exports, {
33
33
  ArchivedReleaseLaunchStartedDefinition: () => ArchivedReleaseLaunchStartedDefinition,
34
34
  AssetDeletePayloadSchema: () => AssetDeletePayloadSchema,
35
35
  AssetDeletedDefinition: () => AssetDeletedDefinition,
@@ -113,7 +113,7 @@ __export(src_exports, {
113
113
  webhookEventNames: () => webhookEventNames,
114
114
  webhookInitiatorSchema: () => webhookInitiatorSchema
115
115
  });
116
- module.exports = __toCommonJS(src_exports);
116
+ module.exports = __toCommonJS(index_exports);
117
117
 
118
118
  // src/definition.ts
119
119
  var z = __toESM(require("zod"));
@@ -226,6 +226,10 @@ var CompositionCorePayloadSchema = z3.object({
226
226
  id: z3.string(),
227
227
  url: z3.string()
228
228
  }),
229
+ /**
230
+ * The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
231
+ */
232
+ timestamp: z3.string().optional(),
229
233
  initiator: webhookInitiatorSchema
230
234
  });
231
235
  var CompositionTriggerPayloadSchema = z3.object({
@@ -508,6 +512,10 @@ var EntryCorePayloadSchema = z4.object({
508
512
  id: z4.string(),
509
513
  url: z4.string()
510
514
  }),
515
+ /**
516
+ * The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
517
+ */
518
+ timestamp: z4.string().optional(),
511
519
  initiator: webhookInitiatorSchema
512
520
  });
513
521
  var EntryTriggerPayloadSchema = z4.object({
package/dist/index.mjs CHANGED
@@ -109,6 +109,10 @@ var CompositionCorePayloadSchema = z3.object({
109
109
  id: z3.string(),
110
110
  url: z3.string()
111
111
  }),
112
+ /**
113
+ * The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
114
+ */
115
+ timestamp: z3.string().optional(),
112
116
  initiator: webhookInitiatorSchema
113
117
  });
114
118
  var CompositionTriggerPayloadSchema = z3.object({
@@ -391,6 +395,10 @@ var EntryCorePayloadSchema = z4.object({
391
395
  id: z4.string(),
392
396
  url: z4.string()
393
397
  }),
398
+ /**
399
+ * The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
400
+ */
401
+ timestamp: z4.string().optional(),
394
402
  initiator: webhookInitiatorSchema
395
403
  });
396
404
  var EntryTriggerPayloadSchema = z4.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "20.50.2-alpha.149+913f0b7b57",
3
+ "version": "20.50.2-alpha.167+74e60d5bb7",
4
4
  "description": "Uniform Webhooks",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -29,15 +29,15 @@
29
29
  "/dist"
30
30
  ],
31
31
  "dependencies": {
32
- "zod": "4.3.6"
32
+ "zod": "^4.4.3"
33
33
  },
34
34
  "devDependencies": {
35
- "dotenv": "^16.4.7",
36
- "npm-run-all2": "8.0.4",
37
- "svix": "^1.0.0"
35
+ "dotenv": "^17.4.2",
36
+ "npm-run-all2": "9.0.2",
37
+ "svix": "^1.96.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "913f0b7b57295ca79575810663c56a7a5deea9e4"
42
+ "gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
43
43
  }