@uniformdev/webhooks 19.196.1 → 19.197.1-alpha.1

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.js CHANGED
@@ -87,72 +87,82 @@ __export(src_exports, {
87
87
  ReleaseLaunchedEventName: () => ReleaseLaunchedEventName,
88
88
  ReleasePayloadSchema: () => ReleasePayloadSchema,
89
89
  WorkflowEntitySchema: () => WorkflowEntitySchema,
90
- WorkflowIdentitySchema: () => WorkflowIdentitySchema,
91
90
  WorkflowReferenceSchema: () => WorkflowReferenceSchema,
92
91
  WorkflowTransitionDefinition: () => WorkflowTransitionDefinition,
93
92
  WorkflowTransitionEventName: () => WorkflowTransitionEventName,
94
93
  WorkflowTransitionPayloadSchema: () => WorkflowTransitionPayloadSchema,
95
94
  definition: () => definition,
96
- isDefinition: () => isDefinition
95
+ isDefinition: () => isDefinition,
96
+ webhookInitiatorSchema: () => webhookInitiatorSchema
97
97
  });
98
98
  module.exports = __toCommonJS(src_exports);
99
99
 
100
100
  // src/composition/common.ts
101
+ var import_zod2 = require("zod");
102
+
103
+ // src/definition.ts
101
104
  var import_zod = require("zod");
102
- var CompositionCorePayloadSchema = import_zod.z.object({
105
+ var isDefinition = (obj) => {
106
+ return Object.hasOwn(obj, "_definition") && obj["_definition"];
107
+ };
108
+ var definition = (options, example) => {
109
+ return {
110
+ ...options,
111
+ _definition: true,
112
+ example
113
+ };
114
+ };
115
+ var webhookInitiatorSchema = import_zod.z.strictObject({
103
116
  id: import_zod.z.string(),
104
- editionId: import_zod.z.string().optional(),
105
- slug: import_zod.z.string().optional(),
106
- name: import_zod.z.string(),
107
- type: import_zod.z.string(),
108
- project: import_zod.z.object({
109
- id: import_zod.z.string(),
110
- url: import_zod.z.string()
111
- })
117
+ name: import_zod.z.string().optional(),
118
+ email: import_zod.z.string().optional(),
119
+ is_api_key: import_zod.z.boolean()
120
+ });
121
+
122
+ // src/composition/common.ts
123
+ var CompositionCorePayloadSchema = import_zod2.z.object({
124
+ id: import_zod2.z.string(),
125
+ editionId: import_zod2.z.string().optional(),
126
+ slug: import_zod2.z.string().optional(),
127
+ name: import_zod2.z.string(),
128
+ type: import_zod2.z.string(),
129
+ project: import_zod2.z.object({
130
+ id: import_zod2.z.string(),
131
+ url: import_zod2.z.string()
132
+ }),
133
+ initiator: webhookInitiatorSchema
112
134
  });
113
- var CompositionTriggerPayloadSchema = import_zod.z.object({
114
- trigger: import_zod.z.object({
115
- type: import_zod.z.enum(["release"]),
116
- id: import_zod.z.string()
135
+ var CompositionTriggerPayloadSchema = import_zod2.z.object({
136
+ trigger: import_zod2.z.object({
137
+ type: import_zod2.z.enum(["release"]),
138
+ id: import_zod2.z.string()
117
139
  }).optional()
118
140
  });
119
141
  var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.and(
120
- import_zod.z.object({
121
- state: import_zod.z.number().optional()
142
+ import_zod2.z.object({
143
+ state: import_zod2.z.number().optional()
122
144
  })
123
145
  );
124
146
  var CompositionRestorePayloadSchema = CompositionCorePayloadSchema.and(
125
- import_zod.z.object({
126
- state: import_zod.z.number()
147
+ import_zod2.z.object({
148
+ state: import_zod2.z.number()
127
149
  })
128
150
  );
129
151
  var CompositionPayloadSchema = CompositionCorePayloadSchema.and(
130
- import_zod.z.object({
131
- state: import_zod.z.number(),
132
- edit_url: import_zod.z.string(),
133
- api_url: import_zod.z.string(),
134
- edge_url: import_zod.z.string()
152
+ import_zod2.z.object({
153
+ state: import_zod2.z.number(),
154
+ edit_url: import_zod2.z.string(),
155
+ api_url: import_zod2.z.string(),
156
+ edge_url: import_zod2.z.string()
135
157
  })
136
158
  );
137
- var ReleaseCompositionPayloadSchema = import_zod.z.object({
138
- release: import_zod.z.object({
139
- id: import_zod.z.string(),
140
- url: import_zod.z.string()
159
+ var ReleaseCompositionPayloadSchema = import_zod2.z.object({
160
+ release: import_zod2.z.object({
161
+ id: import_zod2.z.string(),
162
+ url: import_zod2.z.string()
141
163
  })
142
164
  });
143
165
 
144
- // src/definition.ts
145
- var isDefinition = (obj) => {
146
- return Object.hasOwn(obj, "_definition") && obj["_definition"];
147
- };
148
- var definition = (options, example) => {
149
- return {
150
- ...options,
151
- _definition: true,
152
- example
153
- };
154
- };
155
-
156
166
  // src/composition/composition.changed.ts
157
167
  var CompositionChangedDefinition = definition(
158
168
  {
@@ -178,6 +188,12 @@ var CompositionChangedDefinition = definition(
178
188
  trigger: {
179
189
  type: "release",
180
190
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
191
+ },
192
+ initiator: {
193
+ id: "useruniqueid",
194
+ email: "foo@bar.com",
195
+ name: "A User",
196
+ is_api_key: false
181
197
  }
182
198
  }
183
199
  );
@@ -205,6 +221,12 @@ var CompositionDeletedDefinition = definition(
205
221
  trigger: {
206
222
  type: "release",
207
223
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
224
+ },
225
+ initiator: {
226
+ id: "useruniqueid",
227
+ email: "foo@bar.com",
228
+ name: "A User",
229
+ is_api_key: false
208
230
  }
209
231
  }
210
232
  );
@@ -235,6 +257,12 @@ var CompositionPublishedDefinition = definition(
235
257
  trigger: {
236
258
  type: "release",
237
259
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
260
+ },
261
+ initiator: {
262
+ id: "useruniqueid",
263
+ email: "foo@bar.com",
264
+ name: "A User",
265
+ is_api_key: false
238
266
  }
239
267
  }
240
268
  );
@@ -265,7 +293,13 @@ var CompositionReleaseChangedDefinition = definition(
265
293
  state: 64,
266
294
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474?release=48293345-f2d0-1125-afda-7c661abad432`,
267
295
  api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
268
- edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`
296
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
297
+ initiator: {
298
+ id: "useruniqueid",
299
+ email: "foo@bar.com",
300
+ name: "A User",
301
+ is_api_key: false
302
+ }
269
303
  }
270
304
  );
271
305
  var CompositionReleaseChangedEventName = CompositionReleaseChangedDefinition["event"];
@@ -292,6 +326,12 @@ var CompositionReleaseDeletedDefinition = definition(
292
326
  project: {
293
327
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
294
328
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
329
+ },
330
+ initiator: {
331
+ id: "useruniqueid",
332
+ email: "foo@bar.com",
333
+ name: "A User",
334
+ is_api_key: false
295
335
  }
296
336
  }
297
337
  );
@@ -322,7 +362,13 @@ var CompositionReleasePublishedDefinition = definition(
322
362
  state: 64,
323
363
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474?release=48293345-f2d0-1125-afda-7c661abad432`,
324
364
  api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64?releaseId=48293345-f2d0-1125-afda-7c661abad432`,
325
- edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64?releaseId=48293345-f2d0-1125-afda-7c661abad432`
365
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64?releaseId=48293345-f2d0-1125-afda-7c661abad432`,
366
+ initiator: {
367
+ id: "useruniqueid",
368
+ email: "foo@bar.com",
369
+ name: "A User",
370
+ is_api_key: false
371
+ }
326
372
  }
327
373
  );
328
374
  var CompositionReleasePublishedEventName = CompositionReleasePublishedDefinition["event"];
@@ -349,52 +395,59 @@ var CompositionReleaseRestoredDefinition = definition(
349
395
  project: {
350
396
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
351
397
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
398
+ },
399
+ initiator: {
400
+ id: "useruniqueid",
401
+ email: "foo@bar.com",
402
+ name: "A User",
403
+ is_api_key: false
352
404
  }
353
405
  }
354
406
  );
355
407
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
356
408
 
357
409
  // src/entry/common.ts
358
- var import_zod2 = require("zod");
359
- var EntryCorePayloadSchema = import_zod2.z.object({
360
- id: import_zod2.z.string(),
361
- editionId: import_zod2.z.string().optional(),
362
- slug: import_zod2.z.string().optional(),
363
- name: import_zod2.z.string(),
364
- type: import_zod2.z.string(),
365
- project: import_zod2.z.object({
366
- id: import_zod2.z.string(),
367
- url: import_zod2.z.string()
368
- })
410
+ var import_zod3 = require("zod");
411
+ var EntryCorePayloadSchema = import_zod3.z.object({
412
+ id: import_zod3.z.string(),
413
+ editionId: import_zod3.z.string().optional(),
414
+ slug: import_zod3.z.string().optional(),
415
+ name: import_zod3.z.string(),
416
+ type: import_zod3.z.string(),
417
+ project: import_zod3.z.object({
418
+ id: import_zod3.z.string(),
419
+ url: import_zod3.z.string()
420
+ }),
421
+ initiator: webhookInitiatorSchema
369
422
  });
370
- var EntryTriggerPayloadSchema = import_zod2.z.object({
371
- trigger: import_zod2.z.object({
372
- type: import_zod2.z.enum(["release"]),
373
- id: import_zod2.z.string()
423
+ var EntryTriggerPayloadSchema = import_zod3.z.object({
424
+ trigger: import_zod3.z.object({
425
+ type: import_zod3.z.enum(["release"]),
426
+ id: import_zod3.z.string()
374
427
  }).optional()
375
428
  });
376
429
  var EntryDeletePayloadSchema = EntryCorePayloadSchema.and(
377
- import_zod2.z.object({
378
- state: import_zod2.z.number().optional()
430
+ import_zod3.z.object({
431
+ state: import_zod3.z.number().optional()
379
432
  })
380
433
  );
381
434
  var EntryRestorePayloadSchema = EntryCorePayloadSchema.and(
382
- import_zod2.z.object({
383
- state: import_zod2.z.number()
435
+ import_zod3.z.object({
436
+ state: import_zod3.z.number()
384
437
  })
385
438
  );
386
439
  var EntryPayloadSchema = EntryCorePayloadSchema.and(
387
- import_zod2.z.object({
388
- state: import_zod2.z.number(),
389
- edit_url: import_zod2.z.string(),
390
- api_url: import_zod2.z.string(),
391
- edge_url: import_zod2.z.string()
440
+ import_zod3.z.object({
441
+ state: import_zod3.z.number(),
442
+ edit_url: import_zod3.z.string(),
443
+ api_url: import_zod3.z.string(),
444
+ edge_url: import_zod3.z.string()
392
445
  })
393
446
  );
394
- var ReleaseEntryPayloadSchema = import_zod2.z.object({
395
- release: import_zod2.z.object({
396
- id: import_zod2.z.string(),
397
- url: import_zod2.z.string()
447
+ var ReleaseEntryPayloadSchema = import_zod3.z.object({
448
+ release: import_zod3.z.object({
449
+ id: import_zod3.z.string(),
450
+ url: import_zod3.z.string()
398
451
  })
399
452
  });
400
453
 
@@ -423,6 +476,12 @@ var EntryChangedDefinition = definition(
423
476
  trigger: {
424
477
  type: "release",
425
478
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
479
+ },
480
+ initiator: {
481
+ id: "useruniqueid",
482
+ email: "foo@bar.com",
483
+ name: "A User",
484
+ is_api_key: false
426
485
  }
427
486
  }
428
487
  );
@@ -450,6 +509,12 @@ var EntryDeletedDefinition = definition(
450
509
  trigger: {
451
510
  type: "release",
452
511
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
512
+ },
513
+ initiator: {
514
+ id: "useruniqueid",
515
+ email: "foo@bar.com",
516
+ name: "A User",
517
+ is_api_key: false
453
518
  }
454
519
  }
455
520
  );
@@ -480,6 +545,12 @@ var EntryPublishedDefinition = definition(
480
545
  trigger: {
481
546
  type: "release",
482
547
  id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
548
+ },
549
+ initiator: {
550
+ id: "useruniqueid",
551
+ email: "foo@bar.com",
552
+ name: "A User",
553
+ is_api_key: false
483
554
  }
484
555
  }
485
556
  );
@@ -510,7 +581,13 @@ var EntryReleaseChangedDefinition = definition(
510
581
  state: 64,
511
582
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=48293345-f2d0-1125-afda-7c661abad432`,
512
583
  api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
513
- edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`
584
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
585
+ initiator: {
586
+ id: "useruniqueid",
587
+ email: "foo@bar.com",
588
+ name: "A User",
589
+ is_api_key: false
590
+ }
514
591
  }
515
592
  );
516
593
  var EntryReleaseChangedEventName = EntryReleaseChangedDefinition["event"];
@@ -537,7 +614,13 @@ var EntryReleaseDeletedDefinition = definition(
537
614
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
538
615
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
539
616
  },
540
- state: 64
617
+ state: 64,
618
+ initiator: {
619
+ id: "useruniqueid",
620
+ email: "foo@bar.com",
621
+ name: "A User",
622
+ is_api_key: false
623
+ }
541
624
  }
542
625
  );
543
626
  var EntryReleaseDeletedEventName = EntryReleaseDeletedDefinition["event"];
@@ -567,7 +650,13 @@ var EntryReleasePublishedDefinition = definition(
567
650
  state: 64,
568
651
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=48293345-f2d0-1125-afda-7c661abad432`,
569
652
  api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
570
- edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`
653
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64&releaseId=48293345-f2d0-1125-afda-7c661abad432`,
654
+ initiator: {
655
+ id: "useruniqueid",
656
+ email: "foo@bar.com",
657
+ name: "A User",
658
+ is_api_key: false
659
+ }
571
660
  }
572
661
  );
573
662
  var EntryReleasePublishedEventName = EntryReleasePublishedDefinition["event"];
@@ -594,23 +683,29 @@ var EntryReleaseRestoredDefinition = definition(
594
683
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
595
684
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
596
685
  },
597
- state: 64
686
+ state: 64,
687
+ initiator: {
688
+ id: "useruniqueid",
689
+ email: "foo@bar.com",
690
+ name: "A User",
691
+ is_api_key: false
692
+ }
598
693
  }
599
694
  );
600
695
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
601
696
 
602
697
  // src/manifest/manifest.published.ts
603
- var import_zod3 = require("zod");
698
+ var import_zod4 = require("zod");
604
699
  var ManifestPublishedDefinition = definition(
605
700
  {
606
701
  event: "manifest.published",
607
702
  name: "Manifest Published",
608
703
  description: "Triggers when a manifest has been published.",
609
- schema: import_zod3.z.object({
610
- timestamp: import_zod3.z.number(),
611
- site: import_zod3.z.object({
612
- id: import_zod3.z.string(),
613
- name: import_zod3.z.string()
704
+ schema: import_zod4.z.object({
705
+ timestamp: import_zod4.z.number(),
706
+ site: import_zod4.z.object({
707
+ id: import_zod4.z.string(),
708
+ name: import_zod4.z.string()
614
709
  })
615
710
  })
616
711
  },
@@ -625,16 +720,16 @@ var ManifestPublishedDefinition = definition(
625
720
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
626
721
 
627
722
  // src/project-map/projectMap.delete.ts
628
- var import_zod4 = require("zod");
723
+ var import_zod5 = require("zod");
629
724
  var ProjectMapDeleteDefinition = definition(
630
725
  {
631
726
  event: "projectmap.delete",
632
727
  name: "Project Map Deleted",
633
728
  description: "Triggers when a project map is deleted.",
634
- schema: import_zod4.z.object({
635
- id: import_zod4.z.string(),
636
- base_url: import_zod4.z.string().optional(),
637
- project_id: import_zod4.z.string()
729
+ schema: import_zod5.z.object({
730
+ id: import_zod5.z.string(),
731
+ base_url: import_zod5.z.string().optional(),
732
+ project_id: import_zod5.z.string()
638
733
  })
639
734
  },
640
735
  {
@@ -646,26 +741,27 @@ var ProjectMapDeleteDefinition = definition(
646
741
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
647
742
 
648
743
  // src/project-map/projectMap.node.delete.ts
649
- var import_zod5 = require("zod");
744
+ var import_zod6 = require("zod");
650
745
  var ProjectMapNodeDeleteDefinition = definition(
651
746
  {
652
747
  event: "projectmap.node.delete",
653
748
  name: "Project Map Node Deleted",
654
749
  description: "Triggers when a project map node is deleted.",
655
- schema: import_zod5.z.object({
656
- project_id: import_zod5.z.string(),
657
- project_map_id: import_zod5.z.string(),
658
- name: import_zod5.z.string(),
659
- id: import_zod5.z.string(),
660
- path: import_zod5.z.string(),
661
- composition_id: import_zod5.z.string().optional(),
662
- locales: import_zod5.z.record(
663
- import_zod5.z.object({
664
- name: import_zod5.z.string(),
665
- inherited: import_zod5.z.boolean(),
666
- path: import_zod5.z.string()
750
+ schema: import_zod6.z.object({
751
+ project_id: import_zod6.z.string(),
752
+ project_map_id: import_zod6.z.string(),
753
+ name: import_zod6.z.string(),
754
+ id: import_zod6.z.string(),
755
+ path: import_zod6.z.string(),
756
+ composition_id: import_zod6.z.string().optional(),
757
+ locales: import_zod6.z.record(
758
+ import_zod6.z.object({
759
+ name: import_zod6.z.string(),
760
+ inherited: import_zod6.z.boolean(),
761
+ path: import_zod6.z.string()
667
762
  })
668
- ).optional()
763
+ ).optional(),
764
+ initiator: webhookInitiatorSchema
669
765
  })
670
766
  },
671
767
  {
@@ -681,32 +777,39 @@ var ProjectMapNodeDeleteDefinition = definition(
681
777
  inherited: false,
682
778
  path: "/produktdetail"
683
779
  }
780
+ },
781
+ initiator: {
782
+ id: "useruniqueid",
783
+ email: "foo@bar.com",
784
+ name: "A User",
785
+ is_api_key: false
684
786
  }
685
787
  }
686
788
  );
687
789
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
688
790
 
689
791
  // src/project-map/projectMap.node.insert.ts
690
- var import_zod6 = require("zod");
792
+ var import_zod7 = require("zod");
691
793
  var ProjectMapNodeInsertDefinition = definition(
692
794
  {
693
795
  event: "projectmap.node.insert",
694
796
  name: "Project Map Node Inserted",
695
797
  description: "Triggers when a project map node is inserted.",
696
- schema: import_zod6.z.object({
697
- id: import_zod6.z.string(),
698
- name: import_zod6.z.string(),
699
- project_map_id: import_zod6.z.string(),
700
- project_id: import_zod6.z.string(),
701
- path: import_zod6.z.string(),
702
- composition_id: import_zod6.z.string().optional(),
703
- locales: import_zod6.z.record(
704
- import_zod6.z.object({
705
- name: import_zod6.z.string(),
706
- inherited: import_zod6.z.boolean(),
707
- path: import_zod6.z.string()
798
+ schema: import_zod7.z.object({
799
+ id: import_zod7.z.string(),
800
+ name: import_zod7.z.string(),
801
+ project_map_id: import_zod7.z.string(),
802
+ project_id: import_zod7.z.string(),
803
+ path: import_zod7.z.string(),
804
+ composition_id: import_zod7.z.string().optional(),
805
+ locales: import_zod7.z.record(
806
+ import_zod7.z.object({
807
+ name: import_zod7.z.string(),
808
+ inherited: import_zod7.z.boolean(),
809
+ path: import_zod7.z.string()
708
810
  })
709
- ).optional()
811
+ ).optional(),
812
+ initiator: webhookInitiatorSchema
710
813
  })
711
814
  },
712
815
  {
@@ -722,34 +825,41 @@ var ProjectMapNodeInsertDefinition = definition(
722
825
  inherited: false,
723
826
  path: "/produktdetail"
724
827
  }
828
+ },
829
+ initiator: {
830
+ id: "useruniqueid",
831
+ email: "foo@bar.com",
832
+ name: "A User",
833
+ is_api_key: false
725
834
  }
726
835
  }
727
836
  );
728
837
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
729
838
 
730
839
  // src/project-map/projectMap.node.update.ts
731
- var import_zod7 = require("zod");
840
+ var import_zod8 = require("zod");
732
841
  var ProjectMapNodeUpdateDefinition = definition(
733
842
  {
734
843
  event: "projectmap.node.update",
735
844
  name: "Project Map Node Updated",
736
845
  description: "Triggers when a project map node is updated.",
737
- schema: import_zod7.z.object({
738
- id: import_zod7.z.string(),
739
- name: import_zod7.z.string(),
740
- project_map_id: import_zod7.z.string(),
741
- project_id: import_zod7.z.string(),
742
- path: import_zod7.z.string(),
743
- composition_id: import_zod7.z.string().optional(),
744
- previous_path: import_zod7.z.string(),
745
- locales: import_zod7.z.record(
746
- import_zod7.z.object({
747
- name: import_zod7.z.string(),
748
- inherited: import_zod7.z.boolean(),
749
- path: import_zod7.z.string(),
750
- previous_path: import_zod7.z.string()
846
+ schema: import_zod8.z.object({
847
+ id: import_zod8.z.string(),
848
+ name: import_zod8.z.string(),
849
+ project_map_id: import_zod8.z.string(),
850
+ project_id: import_zod8.z.string(),
851
+ path: import_zod8.z.string(),
852
+ composition_id: import_zod8.z.string().optional(),
853
+ previous_path: import_zod8.z.string(),
854
+ locales: import_zod8.z.record(
855
+ import_zod8.z.object({
856
+ name: import_zod8.z.string(),
857
+ inherited: import_zod8.z.boolean(),
858
+ path: import_zod8.z.string(),
859
+ previous_path: import_zod8.z.string()
751
860
  })
752
- ).optional()
861
+ ).optional(),
862
+ initiator: webhookInitiatorSchema
753
863
  })
754
864
  },
755
865
  {
@@ -767,22 +877,28 @@ var ProjectMapNodeUpdateDefinition = definition(
767
877
  path: "/produktdetail",
768
878
  previous_path: "/promo/product-detail"
769
879
  }
880
+ },
881
+ initiator: {
882
+ id: "useruniqueid",
883
+ email: "foo@bar.com",
884
+ name: "A User",
885
+ is_api_key: false
770
886
  }
771
887
  }
772
888
  );
773
889
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
774
890
 
775
891
  // src/project-map/projectMap.update.ts
776
- var import_zod8 = require("zod");
892
+ var import_zod9 = require("zod");
777
893
  var ProjectMapUpdateDefinition = definition(
778
894
  {
779
895
  event: "projectmap.update",
780
896
  name: "Project Map Updated",
781
897
  description: "Triggers when a project map is updated or created.",
782
- schema: import_zod8.z.object({
783
- id: import_zod8.z.string(),
784
- base_url: import_zod8.z.string().optional(),
785
- project_id: import_zod8.z.string()
898
+ schema: import_zod9.z.object({
899
+ id: import_zod9.z.string(),
900
+ base_url: import_zod9.z.string().optional(),
901
+ project_id: import_zod9.z.string()
786
902
  })
787
903
  },
788
904
  {
@@ -794,18 +910,19 @@ var ProjectMapUpdateDefinition = definition(
794
910
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
795
911
 
796
912
  // src/redirect/redirect.delete.ts
797
- var import_zod9 = require("zod");
913
+ var import_zod10 = require("zod");
798
914
  var RedirectDeleteDefinition = definition(
799
915
  {
800
916
  event: "redirect.delete",
801
917
  name: "Redirect Deleted",
802
918
  description: "Triggers when a redirect is deleted.",
803
- schema: import_zod9.z.object({
804
- project_id: import_zod9.z.string(),
805
- id: import_zod9.z.string(),
806
- source_url: import_zod9.z.string(),
807
- target_url: import_zod9.z.string(),
808
- target_status_code: import_zod9.z.number()
919
+ schema: import_zod10.z.object({
920
+ project_id: import_zod10.z.string(),
921
+ id: import_zod10.z.string(),
922
+ source_url: import_zod10.z.string(),
923
+ target_url: import_zod10.z.string(),
924
+ target_status_code: import_zod10.z.number(),
925
+ initiator: webhookInitiatorSchema
809
926
  })
810
927
  },
811
928
  {
@@ -813,24 +930,31 @@ var RedirectDeleteDefinition = definition(
813
930
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
814
931
  source_url: "/product-info",
815
932
  target_url: "/product-details",
816
- target_status_code: 301
933
+ target_status_code: 301,
934
+ initiator: {
935
+ id: "useruniqueid",
936
+ email: "foo@bar.com",
937
+ name: "A User",
938
+ is_api_key: false
939
+ }
817
940
  }
818
941
  );
819
942
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
820
943
 
821
944
  // src/redirect/redirect.insert.ts
822
- var import_zod10 = require("zod");
945
+ var import_zod11 = require("zod");
823
946
  var RedirectInsertDefinition = definition(
824
947
  {
825
948
  event: "redirect.insert",
826
949
  name: "Redirect Inserted",
827
950
  description: "Triggers when a redirect is inserted.",
828
- schema: import_zod10.z.object({
829
- project_id: import_zod10.z.string(),
830
- id: import_zod10.z.string(),
831
- source_url: import_zod10.z.string(),
832
- target_url: import_zod10.z.string(),
833
- target_status_code: import_zod10.z.number()
951
+ schema: import_zod11.z.object({
952
+ project_id: import_zod11.z.string(),
953
+ id: import_zod11.z.string(),
954
+ source_url: import_zod11.z.string(),
955
+ target_url: import_zod11.z.string(),
956
+ target_status_code: import_zod11.z.number(),
957
+ initiator: webhookInitiatorSchema
834
958
  })
835
959
  },
836
960
  {
@@ -838,24 +962,31 @@ var RedirectInsertDefinition = definition(
838
962
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
839
963
  source_url: "/product-info",
840
964
  target_url: "/product-details",
841
- target_status_code: 301
965
+ target_status_code: 301,
966
+ initiator: {
967
+ id: "useruniqueid",
968
+ email: "foo@bar.com",
969
+ name: "A User",
970
+ is_api_key: false
971
+ }
842
972
  }
843
973
  );
844
974
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
845
975
 
846
976
  // src/redirect/redirect.update.ts
847
- var import_zod11 = require("zod");
977
+ var import_zod12 = require("zod");
848
978
  var RedirectUpdateDefinition = definition(
849
979
  {
850
980
  event: "redirect.update",
851
981
  name: "Redirect Updated",
852
982
  description: "Triggers when a redirect is updated.",
853
- schema: import_zod11.z.object({
854
- project_id: import_zod11.z.string(),
855
- id: import_zod11.z.string(),
856
- source_url: import_zod11.z.string(),
857
- target_url: import_zod11.z.string(),
858
- target_status_code: import_zod11.z.number()
983
+ schema: import_zod12.z.object({
984
+ project_id: import_zod12.z.string(),
985
+ id: import_zod12.z.string(),
986
+ source_url: import_zod12.z.string(),
987
+ target_url: import_zod12.z.string(),
988
+ target_status_code: import_zod12.z.number(),
989
+ initiator: webhookInitiatorSchema
859
990
  })
860
991
  },
861
992
  {
@@ -863,25 +994,31 @@ var RedirectUpdateDefinition = definition(
863
994
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
864
995
  source_url: "/product-info",
865
996
  target_url: "/product-details",
866
- target_status_code: 301
997
+ target_status_code: 301,
998
+ initiator: {
999
+ id: "useruniqueid",
1000
+ email: "foo@bar.com",
1001
+ name: "A User",
1002
+ is_api_key: false
1003
+ }
867
1004
  }
868
1005
  );
869
1006
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
870
1007
 
871
1008
  // src/release/common.ts
872
- var import_zod12 = require("zod");
873
- var ReleasePayloadSchema = import_zod12.z.object({
874
- id: import_zod12.z.string(),
875
- state: import_zod12.z.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
876
- name: import_zod12.z.string(),
877
- project: import_zod12.z.object({
878
- id: import_zod12.z.string(),
879
- url: import_zod12.z.string()
1009
+ var import_zod13 = require("zod");
1010
+ var ReleasePayloadSchema = import_zod13.z.object({
1011
+ id: import_zod13.z.string(),
1012
+ state: import_zod13.z.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
1013
+ name: import_zod13.z.string(),
1014
+ project: import_zod13.z.object({
1015
+ id: import_zod13.z.string(),
1016
+ url: import_zod13.z.string()
880
1017
  }),
881
- autoLaunchSchedule: import_zod12.z.number().optional(),
882
- autoLaunchScheduleTimeZone: import_zod12.z.string().optional(),
883
- edit_url: import_zod12.z.string(),
884
- api_url: import_zod12.z.string()
1018
+ autoLaunchSchedule: import_zod13.z.number().optional(),
1019
+ autoLaunchScheduleTimeZone: import_zod13.z.string().optional(),
1020
+ edit_url: import_zod13.z.string(),
1021
+ api_url: import_zod13.z.string()
885
1022
  });
886
1023
 
887
1024
  // src/release/release.changed.ts
@@ -1003,35 +1140,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1003
1140
  );
1004
1141
 
1005
1142
  // src/workflow/common.ts
1006
- var import_zod13 = require("zod");
1007
- var WorkflowReferenceSchema = import_zod13.z.strictObject({
1008
- workflowId: import_zod13.z.string(),
1009
- workflowName: import_zod13.z.string(),
1010
- stageId: import_zod13.z.string(),
1011
- stageName: import_zod13.z.string()
1143
+ var import_zod14 = require("zod");
1144
+ var WorkflowReferenceSchema = import_zod14.z.strictObject({
1145
+ workflowId: import_zod14.z.string(),
1146
+ workflowName: import_zod14.z.string(),
1147
+ stageId: import_zod14.z.string(),
1148
+ stageName: import_zod14.z.string()
1012
1149
  });
1013
- var WorkflowIdentitySchema = import_zod13.z.strictObject({
1014
- id: import_zod13.z.string(),
1015
- name: import_zod13.z.string().optional(),
1016
- email: import_zod13.z.string().optional()
1017
- });
1018
- var WorkflowEntitySchema = import_zod13.z.strictObject({
1019
- type: import_zod13.z.enum(["entry", "component"]),
1020
- name: import_zod13.z.string(),
1021
- id: import_zod13.z.string(),
1022
- editionId: import_zod13.z.string().optional(),
1023
- releaseId: import_zod13.z.string().optional(),
1024
- url: import_zod13.z.string()
1150
+ var WorkflowEntitySchema = import_zod14.z.strictObject({
1151
+ type: import_zod14.z.enum(["entry", "component"]),
1152
+ name: import_zod14.z.string(),
1153
+ id: import_zod14.z.string(),
1154
+ editionId: import_zod14.z.string().optional(),
1155
+ releaseId: import_zod14.z.string().optional(),
1156
+ url: import_zod14.z.string()
1025
1157
  });
1026
- var WorkflowTransitionPayloadSchema = import_zod13.z.strictObject({
1158
+ var WorkflowTransitionPayloadSchema = import_zod14.z.strictObject({
1027
1159
  entity: WorkflowEntitySchema,
1028
1160
  newStage: WorkflowReferenceSchema,
1029
1161
  previousStage: WorkflowReferenceSchema.optional(),
1030
- initiator: WorkflowIdentitySchema,
1031
- timestamp: import_zod13.z.string(),
1032
- project: import_zod13.z.object({
1033
- id: import_zod13.z.string(),
1034
- url: import_zod13.z.string()
1162
+ initiator: webhookInitiatorSchema,
1163
+ timestamp: import_zod14.z.string(),
1164
+ project: import_zod14.z.object({
1165
+ id: import_zod14.z.string(),
1166
+ url: import_zod14.z.string()
1035
1167
  })
1036
1168
  });
1037
1169
 
@@ -1068,7 +1200,8 @@ var WorkflowTransitionDefinition = definition(
1068
1200
  initiator: {
1069
1201
  id: "user-unique-identifier",
1070
1202
  name: "User Name",
1071
- email: "user@company.com"
1203
+ email: "user@company.com",
1204
+ is_api_key: false
1072
1205
  },
1073
1206
  project: {
1074
1207
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
@@ -1146,11 +1279,11 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
1146
1279
  ReleaseLaunchedEventName,
1147
1280
  ReleasePayloadSchema,
1148
1281
  WorkflowEntitySchema,
1149
- WorkflowIdentitySchema,
1150
1282
  WorkflowReferenceSchema,
1151
1283
  WorkflowTransitionDefinition,
1152
1284
  WorkflowTransitionEventName,
1153
1285
  WorkflowTransitionPayloadSchema,
1154
1286
  definition,
1155
- isDefinition
1287
+ isDefinition,
1288
+ webhookInitiatorSchema
1156
1289
  });