@uniformdev/webhooks 20.72.3-alpha.2 → 20.72.3-alpha.25

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
@@ -73,6 +73,732 @@ declare const AssetDeletePayloadSchema: z.ZodObject<{
73
73
  }, z.core.$strip>;
74
74
  type AssetPayload = z.infer<typeof AssetPayloadSchema>;
75
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
+ /**
104
+ * Canonical catalog of internal webhook events, keyed by event name. Each entry
105
+ * is the event's {@link Definition} (display name, description, and Zod payload
106
+ * schema).
107
+ *
108
+ * This is the single source of truth for webhook event names and their payload
109
+ * shapes across the platform: webhook delivery, the dashboard event picker, and
110
+ * Automations that trigger on these events all derive from it. Archived events
111
+ * are intentionally excluded — they are not selectable as triggers.
112
+ */
113
+ declare const webhookEventCatalog: {
114
+ readonly 'asset.deleted': Definition<z.ZodObject<{
115
+ id: z.ZodString;
116
+ name: z.ZodString;
117
+ type: z.ZodString;
118
+ project: z.ZodObject<{
119
+ id: z.ZodString;
120
+ url: z.ZodString;
121
+ }, z.core.$strip>;
122
+ initiator: z.ZodObject<{
123
+ id: z.ZodString;
124
+ name: z.ZodOptional<z.ZodString>;
125
+ email: z.ZodOptional<z.ZodString>;
126
+ is_api_key: z.ZodBoolean;
127
+ }, z.core.$strict>;
128
+ }, z.core.$strip>, "asset.deleted">;
129
+ readonly 'asset.published': Definition<z.ZodObject<{
130
+ id: z.ZodString;
131
+ name: z.ZodString;
132
+ type: z.ZodString;
133
+ project: z.ZodObject<{
134
+ id: z.ZodString;
135
+ url: z.ZodString;
136
+ }, z.core.$strip>;
137
+ initiator: z.ZodObject<{
138
+ id: z.ZodString;
139
+ name: z.ZodOptional<z.ZodString>;
140
+ email: z.ZodOptional<z.ZodString>;
141
+ is_api_key: z.ZodBoolean;
142
+ }, z.core.$strict>;
143
+ api_url: z.ZodString;
144
+ edit_url: z.ZodString;
145
+ }, z.core.$strip>, "asset.published">;
146
+ readonly 'composition.changed': Definition<z.ZodObject<{
147
+ id: z.ZodString;
148
+ editionId: z.ZodOptional<z.ZodString>;
149
+ slug: z.ZodOptional<z.ZodString>;
150
+ name: z.ZodString;
151
+ type: z.ZodString;
152
+ project: z.ZodObject<{
153
+ id: z.ZodString;
154
+ url: z.ZodString;
155
+ }, z.core.$strip>;
156
+ timestamp: z.ZodOptional<z.ZodString>;
157
+ initiator: z.ZodObject<{
158
+ id: z.ZodString;
159
+ name: z.ZodOptional<z.ZodString>;
160
+ email: z.ZodOptional<z.ZodString>;
161
+ is_api_key: z.ZodBoolean;
162
+ }, z.core.$strict>;
163
+ state: z.ZodNumber;
164
+ edit_url: z.ZodString;
165
+ api_url: z.ZodString;
166
+ edge_url: z.ZodString;
167
+ trigger: z.ZodOptional<z.ZodObject<{
168
+ type: z.ZodEnum<{
169
+ release: "release";
170
+ }>;
171
+ id: z.ZodString;
172
+ }, z.core.$strip>>;
173
+ }, z.core.$strip>, "composition.changed">;
174
+ readonly 'composition.deleted': Definition<z.ZodObject<{
175
+ id: z.ZodString;
176
+ editionId: z.ZodOptional<z.ZodString>;
177
+ slug: z.ZodOptional<z.ZodString>;
178
+ name: z.ZodString;
179
+ type: z.ZodString;
180
+ project: z.ZodObject<{
181
+ id: z.ZodString;
182
+ url: z.ZodString;
183
+ }, z.core.$strip>;
184
+ timestamp: z.ZodOptional<z.ZodString>;
185
+ initiator: z.ZodObject<{
186
+ id: z.ZodString;
187
+ name: z.ZodOptional<z.ZodString>;
188
+ email: z.ZodOptional<z.ZodString>;
189
+ is_api_key: z.ZodBoolean;
190
+ }, z.core.$strict>;
191
+ state: z.ZodOptional<z.ZodNumber>;
192
+ trigger: z.ZodOptional<z.ZodObject<{
193
+ type: z.ZodEnum<{
194
+ release: "release";
195
+ }>;
196
+ id: z.ZodString;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>, "composition.deleted">;
199
+ readonly 'composition.published': Definition<z.ZodObject<{
200
+ id: z.ZodString;
201
+ editionId: z.ZodOptional<z.ZodString>;
202
+ slug: z.ZodOptional<z.ZodString>;
203
+ name: z.ZodString;
204
+ type: z.ZodString;
205
+ project: z.ZodObject<{
206
+ id: z.ZodString;
207
+ url: z.ZodString;
208
+ }, z.core.$strip>;
209
+ timestamp: z.ZodOptional<z.ZodString>;
210
+ initiator: z.ZodObject<{
211
+ id: z.ZodString;
212
+ name: z.ZodOptional<z.ZodString>;
213
+ email: z.ZodOptional<z.ZodString>;
214
+ is_api_key: z.ZodBoolean;
215
+ }, z.core.$strict>;
216
+ state: z.ZodNumber;
217
+ edit_url: z.ZodString;
218
+ api_url: z.ZodString;
219
+ edge_url: z.ZodString;
220
+ trigger: z.ZodOptional<z.ZodObject<{
221
+ type: z.ZodEnum<{
222
+ release: "release";
223
+ }>;
224
+ id: z.ZodString;
225
+ }, z.core.$strip>>;
226
+ }, z.core.$strip>, "composition.published">;
227
+ readonly 'composition.release.changed': Definition<z.ZodObject<{
228
+ id: z.ZodString;
229
+ editionId: z.ZodOptional<z.ZodString>;
230
+ slug: z.ZodOptional<z.ZodString>;
231
+ name: z.ZodString;
232
+ type: z.ZodString;
233
+ project: z.ZodObject<{
234
+ id: z.ZodString;
235
+ url: z.ZodString;
236
+ }, z.core.$strip>;
237
+ timestamp: z.ZodOptional<z.ZodString>;
238
+ initiator: z.ZodObject<{
239
+ id: z.ZodString;
240
+ name: z.ZodOptional<z.ZodString>;
241
+ email: z.ZodOptional<z.ZodString>;
242
+ is_api_key: z.ZodBoolean;
243
+ }, z.core.$strict>;
244
+ state: z.ZodNumber;
245
+ edit_url: z.ZodString;
246
+ api_url: z.ZodString;
247
+ edge_url: z.ZodString;
248
+ release: z.ZodObject<{
249
+ id: z.ZodString;
250
+ url: z.ZodString;
251
+ }, z.core.$strip>;
252
+ }, z.core.$strip>, "composition.release.changed">;
253
+ readonly 'composition.release.deleted': Definition<z.ZodObject<{
254
+ id: z.ZodString;
255
+ editionId: z.ZodOptional<z.ZodString>;
256
+ slug: z.ZodOptional<z.ZodString>;
257
+ name: z.ZodString;
258
+ type: z.ZodString;
259
+ project: z.ZodObject<{
260
+ id: z.ZodString;
261
+ url: z.ZodString;
262
+ }, z.core.$strip>;
263
+ timestamp: z.ZodOptional<z.ZodString>;
264
+ initiator: z.ZodObject<{
265
+ id: z.ZodString;
266
+ name: z.ZodOptional<z.ZodString>;
267
+ email: z.ZodOptional<z.ZodString>;
268
+ is_api_key: z.ZodBoolean;
269
+ }, z.core.$strict>;
270
+ state: z.ZodOptional<z.ZodNumber>;
271
+ release: z.ZodObject<{
272
+ id: z.ZodString;
273
+ url: z.ZodString;
274
+ }, z.core.$strip>;
275
+ }, z.core.$strip>, "composition.release.deleted">;
276
+ readonly 'composition.release.published': Definition<z.ZodObject<{
277
+ id: z.ZodString;
278
+ editionId: z.ZodOptional<z.ZodString>;
279
+ slug: z.ZodOptional<z.ZodString>;
280
+ name: z.ZodString;
281
+ type: z.ZodString;
282
+ project: z.ZodObject<{
283
+ id: z.ZodString;
284
+ url: z.ZodString;
285
+ }, z.core.$strip>;
286
+ timestamp: z.ZodOptional<z.ZodString>;
287
+ initiator: z.ZodObject<{
288
+ id: z.ZodString;
289
+ name: z.ZodOptional<z.ZodString>;
290
+ email: z.ZodOptional<z.ZodString>;
291
+ is_api_key: z.ZodBoolean;
292
+ }, z.core.$strict>;
293
+ state: z.ZodNumber;
294
+ edit_url: z.ZodString;
295
+ api_url: z.ZodString;
296
+ edge_url: z.ZodString;
297
+ release: z.ZodObject<{
298
+ id: z.ZodString;
299
+ url: z.ZodString;
300
+ }, z.core.$strip>;
301
+ }, z.core.$strip>, "composition.release.published">;
302
+ readonly 'composition.release.restored': Definition<z.ZodObject<{
303
+ id: z.ZodString;
304
+ editionId: z.ZodOptional<z.ZodString>;
305
+ slug: z.ZodOptional<z.ZodString>;
306
+ name: z.ZodString;
307
+ type: z.ZodString;
308
+ project: z.ZodObject<{
309
+ id: z.ZodString;
310
+ url: z.ZodString;
311
+ }, z.core.$strip>;
312
+ timestamp: z.ZodOptional<z.ZodString>;
313
+ initiator: z.ZodObject<{
314
+ id: z.ZodString;
315
+ name: z.ZodOptional<z.ZodString>;
316
+ email: z.ZodOptional<z.ZodString>;
317
+ is_api_key: z.ZodBoolean;
318
+ }, z.core.$strict>;
319
+ state: z.ZodNumber;
320
+ release: z.ZodObject<{
321
+ id: z.ZodString;
322
+ url: z.ZodString;
323
+ }, z.core.$strip>;
324
+ }, z.core.$strip>, "composition.release.restored">;
325
+ readonly 'entry.changed': Definition<z.ZodObject<{
326
+ id: z.ZodString;
327
+ editionId: z.ZodOptional<z.ZodString>;
328
+ slug: z.ZodOptional<z.ZodString>;
329
+ name: z.ZodString;
330
+ type: z.ZodString;
331
+ project: z.ZodObject<{
332
+ id: z.ZodString;
333
+ url: z.ZodString;
334
+ }, z.core.$strip>;
335
+ timestamp: z.ZodOptional<z.ZodString>;
336
+ initiator: z.ZodObject<{
337
+ id: z.ZodString;
338
+ name: z.ZodOptional<z.ZodString>;
339
+ email: z.ZodOptional<z.ZodString>;
340
+ is_api_key: z.ZodBoolean;
341
+ }, z.core.$strict>;
342
+ state: z.ZodNumber;
343
+ edit_url: z.ZodString;
344
+ api_url: z.ZodString;
345
+ edge_url: z.ZodString;
346
+ trigger: z.ZodOptional<z.ZodObject<{
347
+ type: z.ZodEnum<{
348
+ release: "release";
349
+ }>;
350
+ id: z.ZodString;
351
+ }, z.core.$strip>>;
352
+ }, z.core.$strip>, "entry.changed">;
353
+ readonly 'entry.deleted': Definition<z.ZodObject<{
354
+ id: z.ZodString;
355
+ editionId: z.ZodOptional<z.ZodString>;
356
+ slug: z.ZodOptional<z.ZodString>;
357
+ name: z.ZodString;
358
+ type: z.ZodString;
359
+ project: z.ZodObject<{
360
+ id: z.ZodString;
361
+ url: z.ZodString;
362
+ }, z.core.$strip>;
363
+ timestamp: z.ZodOptional<z.ZodString>;
364
+ initiator: z.ZodObject<{
365
+ id: z.ZodString;
366
+ name: z.ZodOptional<z.ZodString>;
367
+ email: z.ZodOptional<z.ZodString>;
368
+ is_api_key: z.ZodBoolean;
369
+ }, z.core.$strict>;
370
+ state: z.ZodOptional<z.ZodNumber>;
371
+ trigger: z.ZodOptional<z.ZodObject<{
372
+ type: z.ZodEnum<{
373
+ release: "release";
374
+ }>;
375
+ id: z.ZodString;
376
+ }, z.core.$strip>>;
377
+ }, z.core.$strip>, "entry.deleted">;
378
+ readonly 'entry.published': Definition<z.ZodObject<{
379
+ id: z.ZodString;
380
+ editionId: z.ZodOptional<z.ZodString>;
381
+ slug: z.ZodOptional<z.ZodString>;
382
+ name: z.ZodString;
383
+ type: z.ZodString;
384
+ project: z.ZodObject<{
385
+ id: z.ZodString;
386
+ url: z.ZodString;
387
+ }, z.core.$strip>;
388
+ timestamp: z.ZodOptional<z.ZodString>;
389
+ initiator: z.ZodObject<{
390
+ id: z.ZodString;
391
+ name: z.ZodOptional<z.ZodString>;
392
+ email: z.ZodOptional<z.ZodString>;
393
+ is_api_key: z.ZodBoolean;
394
+ }, z.core.$strict>;
395
+ state: z.ZodNumber;
396
+ edit_url: z.ZodString;
397
+ api_url: z.ZodString;
398
+ edge_url: z.ZodString;
399
+ trigger: z.ZodOptional<z.ZodObject<{
400
+ type: z.ZodEnum<{
401
+ release: "release";
402
+ }>;
403
+ id: z.ZodString;
404
+ }, z.core.$strip>>;
405
+ }, z.core.$strip>, "entry.published">;
406
+ readonly 'entry.release.changed': Definition<z.ZodObject<{
407
+ id: z.ZodString;
408
+ editionId: z.ZodOptional<z.ZodString>;
409
+ slug: z.ZodOptional<z.ZodString>;
410
+ name: z.ZodString;
411
+ type: z.ZodString;
412
+ project: z.ZodObject<{
413
+ id: z.ZodString;
414
+ url: z.ZodString;
415
+ }, z.core.$strip>;
416
+ timestamp: z.ZodOptional<z.ZodString>;
417
+ initiator: z.ZodObject<{
418
+ id: z.ZodString;
419
+ name: z.ZodOptional<z.ZodString>;
420
+ email: z.ZodOptional<z.ZodString>;
421
+ is_api_key: z.ZodBoolean;
422
+ }, z.core.$strict>;
423
+ state: z.ZodNumber;
424
+ edit_url: z.ZodString;
425
+ api_url: z.ZodString;
426
+ edge_url: z.ZodString;
427
+ release: z.ZodObject<{
428
+ id: z.ZodString;
429
+ url: z.ZodString;
430
+ }, z.core.$strip>;
431
+ }, z.core.$strip>, "entry.release.changed">;
432
+ readonly 'entry.release.deleted': Definition<z.ZodObject<{
433
+ id: z.ZodString;
434
+ editionId: z.ZodOptional<z.ZodString>;
435
+ slug: z.ZodOptional<z.ZodString>;
436
+ name: z.ZodString;
437
+ type: z.ZodString;
438
+ project: z.ZodObject<{
439
+ id: z.ZodString;
440
+ url: z.ZodString;
441
+ }, z.core.$strip>;
442
+ timestamp: z.ZodOptional<z.ZodString>;
443
+ initiator: z.ZodObject<{
444
+ id: z.ZodString;
445
+ name: z.ZodOptional<z.ZodString>;
446
+ email: z.ZodOptional<z.ZodString>;
447
+ is_api_key: z.ZodBoolean;
448
+ }, z.core.$strict>;
449
+ state: z.ZodOptional<z.ZodNumber>;
450
+ release: z.ZodObject<{
451
+ id: z.ZodString;
452
+ url: z.ZodString;
453
+ }, z.core.$strip>;
454
+ }, z.core.$strip>, "entry.release.deleted">;
455
+ readonly 'entry.release.published': Definition<z.ZodObject<{
456
+ id: z.ZodString;
457
+ editionId: z.ZodOptional<z.ZodString>;
458
+ slug: z.ZodOptional<z.ZodString>;
459
+ name: z.ZodString;
460
+ type: z.ZodString;
461
+ project: z.ZodObject<{
462
+ id: z.ZodString;
463
+ url: z.ZodString;
464
+ }, z.core.$strip>;
465
+ timestamp: z.ZodOptional<z.ZodString>;
466
+ initiator: z.ZodObject<{
467
+ id: z.ZodString;
468
+ name: z.ZodOptional<z.ZodString>;
469
+ email: z.ZodOptional<z.ZodString>;
470
+ is_api_key: z.ZodBoolean;
471
+ }, z.core.$strict>;
472
+ state: z.ZodNumber;
473
+ edit_url: z.ZodString;
474
+ api_url: z.ZodString;
475
+ edge_url: z.ZodString;
476
+ release: z.ZodObject<{
477
+ id: z.ZodString;
478
+ url: z.ZodString;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>, "entry.release.published">;
481
+ readonly 'entry.release.restored': Definition<z.ZodObject<{
482
+ id: z.ZodString;
483
+ editionId: z.ZodOptional<z.ZodString>;
484
+ slug: z.ZodOptional<z.ZodString>;
485
+ name: z.ZodString;
486
+ type: z.ZodString;
487
+ project: z.ZodObject<{
488
+ id: z.ZodString;
489
+ url: z.ZodString;
490
+ }, z.core.$strip>;
491
+ timestamp: z.ZodOptional<z.ZodString>;
492
+ initiator: z.ZodObject<{
493
+ id: z.ZodString;
494
+ name: z.ZodOptional<z.ZodString>;
495
+ email: z.ZodOptional<z.ZodString>;
496
+ is_api_key: z.ZodBoolean;
497
+ }, z.core.$strict>;
498
+ state: z.ZodNumber;
499
+ release: z.ZodObject<{
500
+ id: z.ZodString;
501
+ url: z.ZodString;
502
+ }, z.core.$strip>;
503
+ }, z.core.$strip>, "entry.release.restored">;
504
+ readonly 'manifest.published': Definition<z.ZodObject<{
505
+ timestamp: z.ZodString;
506
+ site: z.ZodObject<{
507
+ id: z.ZodString;
508
+ name: z.ZodString;
509
+ }, z.core.$strip>;
510
+ }, z.core.$strip>, "manifest.published">;
511
+ readonly 'notification.created': Definition<z.ZodObject<{
512
+ id: z.ZodString;
513
+ type: z.ZodLiteral<"text">;
514
+ summary: z.ZodObject<{
515
+ format: z.ZodLiteral<"markdown">;
516
+ value: z.ZodString;
517
+ }, z.core.$strict>;
518
+ entity: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
519
+ type: z.ZodEnum<{
520
+ entry: "entry";
521
+ composition: "composition";
522
+ }>;
523
+ entityId: z.ZodString;
524
+ releaseId: z.ZodOptional<z.ZodString>;
525
+ editionId: z.ZodOptional<z.ZodString>;
526
+ }, z.core.$strict>, z.ZodObject<{
527
+ type: z.ZodEnum<{
528
+ entryPattern: "entryPattern";
529
+ componentPattern: "componentPattern";
530
+ compositionPattern: "compositionPattern";
531
+ }>;
532
+ entityId: z.ZodString;
533
+ releaseId: z.ZodOptional<z.ZodString>;
534
+ }, z.core.$strict>, z.ZodObject<{
535
+ type: z.ZodEnum<{
536
+ component: "component";
537
+ contentType: "contentType";
538
+ blockType: "blockType";
539
+ asset: "asset";
540
+ audience: "audience";
541
+ intent: "intent";
542
+ enrichment: "enrichment";
543
+ signal: "signal";
544
+ quirk: "quirk";
545
+ test: "test";
546
+ projectMapNode: "projectMapNode";
547
+ }>;
548
+ entityId: z.ZodString;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ type: z.ZodLiteral<"external">;
551
+ url: z.ZodString;
552
+ }, z.core.$strict>], "type">>;
553
+ recipients: z.ZodArray<z.ZodString>;
554
+ timestamp: z.ZodString;
555
+ project: z.ZodObject<{
556
+ id: z.ZodString;
557
+ url: z.ZodString;
558
+ }, z.core.$strict>;
559
+ initiator: z.ZodObject<{
560
+ id: z.ZodString;
561
+ name: z.ZodOptional<z.ZodString>;
562
+ email: z.ZodOptional<z.ZodString>;
563
+ is_api_key: z.ZodBoolean;
564
+ }, z.core.$strict>;
565
+ }, z.core.$strict>, "notification.created">;
566
+ readonly 'projectmap.delete': Definition<z.ZodObject<{
567
+ id: z.ZodString;
568
+ base_url: z.ZodOptional<z.ZodString>;
569
+ project_id: z.ZodString;
570
+ }, z.core.$strip>, "projectmap.delete">;
571
+ readonly 'projectmap.node.delete': Definition<z.ZodObject<{
572
+ project_id: z.ZodString;
573
+ project_map_id: z.ZodString;
574
+ name: z.ZodString;
575
+ id: z.ZodString;
576
+ path: z.ZodString;
577
+ composition_id: z.ZodOptional<z.ZodString>;
578
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
579
+ name: z.ZodString;
580
+ inherited: z.ZodBoolean;
581
+ path: z.ZodString;
582
+ }, z.core.$strip>>>;
583
+ initiator: z.ZodObject<{
584
+ id: z.ZodString;
585
+ name: z.ZodOptional<z.ZodString>;
586
+ email: z.ZodOptional<z.ZodString>;
587
+ is_api_key: z.ZodBoolean;
588
+ }, z.core.$strict>;
589
+ }, z.core.$strip>, "projectmap.node.delete">;
590
+ readonly 'projectmap.node.insert': Definition<z.ZodObject<{
591
+ id: z.ZodString;
592
+ name: z.ZodString;
593
+ project_map_id: z.ZodString;
594
+ project_id: z.ZodString;
595
+ path: z.ZodString;
596
+ composition_id: z.ZodOptional<z.ZodString>;
597
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
598
+ name: z.ZodString;
599
+ inherited: z.ZodBoolean;
600
+ path: z.ZodString;
601
+ }, z.core.$strip>>>;
602
+ initiator: z.ZodObject<{
603
+ id: z.ZodString;
604
+ name: z.ZodOptional<z.ZodString>;
605
+ email: z.ZodOptional<z.ZodString>;
606
+ is_api_key: z.ZodBoolean;
607
+ }, z.core.$strict>;
608
+ }, z.core.$strip>, "projectmap.node.insert">;
609
+ readonly 'projectmap.node.update': Definition<z.ZodObject<{
610
+ id: z.ZodString;
611
+ name: z.ZodString;
612
+ project_map_id: z.ZodString;
613
+ project_id: z.ZodString;
614
+ path: z.ZodString;
615
+ composition_id: z.ZodOptional<z.ZodString>;
616
+ previous_path: z.ZodString;
617
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
618
+ name: z.ZodString;
619
+ inherited: z.ZodBoolean;
620
+ path: z.ZodString;
621
+ previous_path: z.ZodString;
622
+ }, z.core.$strip>>>;
623
+ initiator: z.ZodObject<{
624
+ id: z.ZodString;
625
+ name: z.ZodOptional<z.ZodString>;
626
+ email: z.ZodOptional<z.ZodString>;
627
+ is_api_key: z.ZodBoolean;
628
+ }, z.core.$strict>;
629
+ }, z.core.$strip>, "projectmap.node.update">;
630
+ readonly 'projectmap.update': Definition<z.ZodObject<{
631
+ id: z.ZodString;
632
+ base_url: z.ZodOptional<z.ZodString>;
633
+ project_id: z.ZodString;
634
+ initiator: z.ZodObject<{
635
+ id: z.ZodString;
636
+ name: z.ZodOptional<z.ZodString>;
637
+ email: z.ZodOptional<z.ZodString>;
638
+ is_api_key: z.ZodBoolean;
639
+ }, z.core.$strict>;
640
+ }, z.core.$strip>, "projectmap.update">;
641
+ readonly 'redirect.delete': Definition<z.ZodObject<{
642
+ project_id: z.ZodString;
643
+ id: z.ZodString;
644
+ source_url: z.ZodString;
645
+ target_url: z.ZodString;
646
+ target_status_code: z.ZodNumber;
647
+ initiator: z.ZodObject<{
648
+ id: z.ZodString;
649
+ name: z.ZodOptional<z.ZodString>;
650
+ email: z.ZodOptional<z.ZodString>;
651
+ is_api_key: z.ZodBoolean;
652
+ }, z.core.$strict>;
653
+ }, z.core.$strip>, "redirect.delete">;
654
+ readonly 'redirect.insert': Definition<z.ZodObject<{
655
+ project_id: z.ZodString;
656
+ id: z.ZodString;
657
+ source_url: z.ZodString;
658
+ target_url: z.ZodString;
659
+ target_status_code: z.ZodNumber;
660
+ initiator: z.ZodObject<{
661
+ id: z.ZodString;
662
+ name: z.ZodOptional<z.ZodString>;
663
+ email: z.ZodOptional<z.ZodString>;
664
+ is_api_key: z.ZodBoolean;
665
+ }, z.core.$strict>;
666
+ }, z.core.$strip>, "redirect.insert">;
667
+ readonly 'redirect.update': Definition<z.ZodObject<{
668
+ project_id: z.ZodString;
669
+ id: z.ZodString;
670
+ source_url: z.ZodString;
671
+ target_url: z.ZodString;
672
+ target_status_code: z.ZodNumber;
673
+ initiator: z.ZodObject<{
674
+ id: z.ZodString;
675
+ name: z.ZodOptional<z.ZodString>;
676
+ email: z.ZodOptional<z.ZodString>;
677
+ is_api_key: z.ZodBoolean;
678
+ }, z.core.$strict>;
679
+ }, z.core.$strip>, "redirect.update">;
680
+ readonly 'release.changed': Definition<z.ZodObject<{
681
+ id: z.ZodString;
682
+ state: z.ZodEnum<{
683
+ open: "open";
684
+ locked: "locked";
685
+ queued: "queued";
686
+ launching: "launching";
687
+ launched: "launched";
688
+ deleting: "deleting";
689
+ }>;
690
+ name: z.ZodString;
691
+ project: z.ZodObject<{
692
+ id: z.ZodString;
693
+ url: z.ZodString;
694
+ }, z.core.$strip>;
695
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
696
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
697
+ edit_url: z.ZodString;
698
+ api_url: z.ZodString;
699
+ }, z.core.$strip>, "release.changed">;
700
+ readonly 'release.deleted': Definition<z.ZodObject<{
701
+ name: z.ZodString;
702
+ id: z.ZodString;
703
+ project: z.ZodObject<{
704
+ id: z.ZodString;
705
+ url: z.ZodString;
706
+ }, z.core.$strip>;
707
+ state: z.ZodEnum<{
708
+ open: "open";
709
+ locked: "locked";
710
+ queued: "queued";
711
+ launching: "launching";
712
+ launched: "launched";
713
+ deleting: "deleting";
714
+ }>;
715
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
716
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
717
+ }, z.core.$strip>, "release.deleted">;
718
+ readonly 'release.launch_started': Definition<z.ZodObject<{
719
+ id: z.ZodString;
720
+ state: z.ZodEnum<{
721
+ open: "open";
722
+ locked: "locked";
723
+ queued: "queued";
724
+ launching: "launching";
725
+ launched: "launched";
726
+ deleting: "deleting";
727
+ }>;
728
+ name: z.ZodString;
729
+ project: z.ZodObject<{
730
+ id: z.ZodString;
731
+ url: z.ZodString;
732
+ }, z.core.$strip>;
733
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
734
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
735
+ edit_url: z.ZodString;
736
+ api_url: z.ZodString;
737
+ }, z.core.$strip>, "release.launch_started">;
738
+ readonly 'release.launched': Definition<z.ZodObject<{
739
+ id: z.ZodString;
740
+ state: z.ZodEnum<{
741
+ open: "open";
742
+ locked: "locked";
743
+ queued: "queued";
744
+ launching: "launching";
745
+ launched: "launched";
746
+ deleting: "deleting";
747
+ }>;
748
+ name: z.ZodString;
749
+ project: z.ZodObject<{
750
+ id: z.ZodString;
751
+ url: z.ZodString;
752
+ }, z.core.$strip>;
753
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
754
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
755
+ edit_url: z.ZodString;
756
+ api_url: z.ZodString;
757
+ }, z.core.$strip>, "release.launched">;
758
+ readonly 'workflow.transition': Definition<z.ZodObject<{
759
+ entity: z.ZodObject<{
760
+ type: z.ZodEnum<{
761
+ entry: "entry";
762
+ component: "component";
763
+ }>;
764
+ name: z.ZodString;
765
+ id: z.ZodString;
766
+ editionId: z.ZodOptional<z.ZodString>;
767
+ releaseId: z.ZodOptional<z.ZodString>;
768
+ url: z.ZodString;
769
+ }, z.core.$strict>;
770
+ newStage: z.ZodObject<{
771
+ workflowId: z.ZodString;
772
+ workflowName: z.ZodString;
773
+ stageId: z.ZodString;
774
+ stageName: z.ZodString;
775
+ }, z.core.$strict>;
776
+ previousStage: z.ZodOptional<z.ZodObject<{
777
+ workflowId: z.ZodString;
778
+ workflowName: z.ZodString;
779
+ stageId: z.ZodString;
780
+ stageName: z.ZodString;
781
+ }, z.core.$strict>>;
782
+ initiator: z.ZodObject<{
783
+ id: z.ZodString;
784
+ name: z.ZodOptional<z.ZodString>;
785
+ email: z.ZodOptional<z.ZodString>;
786
+ is_api_key: z.ZodBoolean;
787
+ }, z.core.$strict>;
788
+ timestamp: z.ZodString;
789
+ project: z.ZodObject<{
790
+ id: z.ZodString;
791
+ url: z.ZodString;
792
+ }, z.core.$strip>;
793
+ }, z.core.$strict>, "workflow.transition">;
794
+ };
795
+ /** Any valid internal webhook event name from the {@link webhookEventCatalog}. */
796
+ type WebhookEventName = keyof typeof webhookEventCatalog;
797
+ /** The payload type delivered for a given webhook event name. */
798
+ type WebhookPayloadFor<E extends WebhookEventName> = z.infer<(typeof webhookEventCatalog)[E]['schema']>;
799
+ /** All webhook event names, as a runtime array (catalog key order). */
800
+ declare const webhookEventNames: WebhookEventName[];
801
+
76
802
  declare const CompositionTriggerPayloadSchema: z.ZodObject<{
77
803
  trigger: z.ZodOptional<z.ZodObject<{
78
804
  type: z.ZodEnum<{
@@ -91,6 +817,7 @@ declare const CompositionDeletePayloadSchema: z.ZodObject<{
91
817
  id: z.ZodString;
92
818
  url: z.ZodString;
93
819
  }, z.core.$strip>;
820
+ timestamp: z.ZodOptional<z.ZodString>;
94
821
  initiator: z.ZodObject<{
95
822
  id: z.ZodString;
96
823
  name: z.ZodOptional<z.ZodString>;
@@ -109,6 +836,7 @@ declare const CompositionRestorePayloadSchema: z.ZodObject<{
109
836
  id: z.ZodString;
110
837
  url: z.ZodString;
111
838
  }, z.core.$strip>;
839
+ timestamp: z.ZodOptional<z.ZodString>;
112
840
  initiator: z.ZodObject<{
113
841
  id: z.ZodString;
114
842
  name: z.ZodOptional<z.ZodString>;
@@ -127,6 +855,7 @@ declare const CompositionPayloadSchema: z.ZodObject<{
127
855
  id: z.ZodString;
128
856
  url: z.ZodString;
129
857
  }, z.core.$strip>;
858
+ timestamp: z.ZodOptional<z.ZodString>;
130
859
  initiator: z.ZodObject<{
131
860
  id: z.ZodString;
132
861
  name: z.ZodOptional<z.ZodString>;
@@ -157,6 +886,7 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
157
886
  id: z.ZodString;
158
887
  url: z.ZodString;
159
888
  }, z.core.$strip>;
889
+ timestamp: z.ZodOptional<z.ZodString>;
160
890
  initiator: z.ZodObject<{
161
891
  id: z.ZodString;
162
892
  name: z.ZodOptional<z.ZodString>;
@@ -187,6 +917,7 @@ declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
187
917
  id: z.ZodString;
188
918
  url: z.ZodString;
189
919
  }, z.core.$strip>;
920
+ timestamp: z.ZodOptional<z.ZodString>;
190
921
  initiator: z.ZodObject<{
191
922
  id: z.ZodString;
192
923
  name: z.ZodOptional<z.ZodString>;
@@ -214,6 +945,7 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
214
945
  id: z.ZodString;
215
946
  url: z.ZodString;
216
947
  }, z.core.$strip>;
948
+ timestamp: z.ZodOptional<z.ZodString>;
217
949
  initiator: z.ZodObject<{
218
950
  id: z.ZodString;
219
951
  name: z.ZodOptional<z.ZodString>;
@@ -244,6 +976,7 @@ declare const CompositionReleaseChangedDefinition: Definition<z.ZodObject<{
244
976
  id: z.ZodString;
245
977
  url: z.ZodString;
246
978
  }, z.core.$strip>;
979
+ timestamp: z.ZodOptional<z.ZodString>;
247
980
  initiator: z.ZodObject<{
248
981
  id: z.ZodString;
249
982
  name: z.ZodOptional<z.ZodString>;
@@ -272,6 +1005,7 @@ declare const CompositionReleaseDeletedDefinition: Definition<z.ZodObject<{
272
1005
  id: z.ZodString;
273
1006
  url: z.ZodString;
274
1007
  }, z.core.$strip>;
1008
+ timestamp: z.ZodOptional<z.ZodString>;
275
1009
  initiator: z.ZodObject<{
276
1010
  id: z.ZodString;
277
1011
  name: z.ZodOptional<z.ZodString>;
@@ -297,6 +1031,7 @@ declare const CompositionReleasePublishedDefinition: Definition<z.ZodObject<{
297
1031
  id: z.ZodString;
298
1032
  url: z.ZodString;
299
1033
  }, z.core.$strip>;
1034
+ timestamp: z.ZodOptional<z.ZodString>;
300
1035
  initiator: z.ZodObject<{
301
1036
  id: z.ZodString;
302
1037
  name: z.ZodOptional<z.ZodString>;
@@ -325,6 +1060,7 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
325
1060
  id: z.ZodString;
326
1061
  url: z.ZodString;
327
1062
  }, z.core.$strip>;
1063
+ timestamp: z.ZodOptional<z.ZodString>;
328
1064
  initiator: z.ZodObject<{
329
1065
  id: z.ZodString;
330
1066
  name: z.ZodOptional<z.ZodString>;
@@ -340,33 +1076,6 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
340
1076
  type CompositionReleaseRestoredPayload = z.infer<(typeof CompositionReleaseRestoredDefinition)['schema']>;
341
1077
  declare const CompositionReleaseRestoredEventName: "composition.release.restored";
342
1078
 
343
- declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
344
- eventType: z.ZodLiteral<EventType>;
345
- } extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
346
- type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
347
- event: EventType;
348
- name: string;
349
- description: string;
350
- schema: TSchema;
351
- archived?: boolean;
352
- };
353
- type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
354
- schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
355
- _definition: true;
356
- example: z.TypeOf<TSchema> & {
357
- eventType: EventType;
358
- };
359
- };
360
- declare const isDefinition: (obj: any) => obj is Definition;
361
- 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>;
362
- declare const webhookInitiatorSchema: z.ZodObject<{
363
- id: z.ZodString;
364
- name: z.ZodOptional<z.ZodString>;
365
- email: z.ZodOptional<z.ZodString>;
366
- is_api_key: z.ZodBoolean;
367
- }, z.core.$strict>;
368
- type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
369
-
370
1079
  declare const EntryTriggerPayloadSchema: z.ZodObject<{
371
1080
  trigger: z.ZodOptional<z.ZodObject<{
372
1081
  type: z.ZodEnum<{
@@ -385,6 +1094,7 @@ declare const EntryDeletePayloadSchema: z.ZodObject<{
385
1094
  id: z.ZodString;
386
1095
  url: z.ZodString;
387
1096
  }, z.core.$strip>;
1097
+ timestamp: z.ZodOptional<z.ZodString>;
388
1098
  initiator: z.ZodObject<{
389
1099
  id: z.ZodString;
390
1100
  name: z.ZodOptional<z.ZodString>;
@@ -403,6 +1113,7 @@ declare const EntryRestorePayloadSchema: z.ZodObject<{
403
1113
  id: z.ZodString;
404
1114
  url: z.ZodString;
405
1115
  }, z.core.$strip>;
1116
+ timestamp: z.ZodOptional<z.ZodString>;
406
1117
  initiator: z.ZodObject<{
407
1118
  id: z.ZodString;
408
1119
  name: z.ZodOptional<z.ZodString>;
@@ -421,6 +1132,7 @@ declare const EntryPayloadSchema: z.ZodObject<{
421
1132
  id: z.ZodString;
422
1133
  url: z.ZodString;
423
1134
  }, z.core.$strip>;
1135
+ timestamp: z.ZodOptional<z.ZodString>;
424
1136
  initiator: z.ZodObject<{
425
1137
  id: z.ZodString;
426
1138
  name: z.ZodOptional<z.ZodString>;
@@ -451,6 +1163,7 @@ declare const EntryChangedDefinition: Definition<z.ZodObject<{
451
1163
  id: z.ZodString;
452
1164
  url: z.ZodString;
453
1165
  }, z.core.$strip>;
1166
+ timestamp: z.ZodOptional<z.ZodString>;
454
1167
  initiator: z.ZodObject<{
455
1168
  id: z.ZodString;
456
1169
  name: z.ZodOptional<z.ZodString>;
@@ -481,6 +1194,7 @@ declare const EntryDeletedDefinition: Definition<z.ZodObject<{
481
1194
  id: z.ZodString;
482
1195
  url: z.ZodString;
483
1196
  }, z.core.$strip>;
1197
+ timestamp: z.ZodOptional<z.ZodString>;
484
1198
  initiator: z.ZodObject<{
485
1199
  id: z.ZodString;
486
1200
  name: z.ZodOptional<z.ZodString>;
@@ -508,6 +1222,7 @@ declare const EntryPublishedDefinition: Definition<z.ZodObject<{
508
1222
  id: z.ZodString;
509
1223
  url: z.ZodString;
510
1224
  }, z.core.$strip>;
1225
+ timestamp: z.ZodOptional<z.ZodString>;
511
1226
  initiator: z.ZodObject<{
512
1227
  id: z.ZodString;
513
1228
  name: z.ZodOptional<z.ZodString>;
@@ -538,6 +1253,7 @@ declare const EntryReleaseChangedDefinition: Definition<z.ZodObject<{
538
1253
  id: z.ZodString;
539
1254
  url: z.ZodString;
540
1255
  }, z.core.$strip>;
1256
+ timestamp: z.ZodOptional<z.ZodString>;
541
1257
  initiator: z.ZodObject<{
542
1258
  id: z.ZodString;
543
1259
  name: z.ZodOptional<z.ZodString>;
@@ -566,6 +1282,7 @@ declare const EntryReleaseDeletedDefinition: Definition<z.ZodObject<{
566
1282
  id: z.ZodString;
567
1283
  url: z.ZodString;
568
1284
  }, z.core.$strip>;
1285
+ timestamp: z.ZodOptional<z.ZodString>;
569
1286
  initiator: z.ZodObject<{
570
1287
  id: z.ZodString;
571
1288
  name: z.ZodOptional<z.ZodString>;
@@ -591,6 +1308,7 @@ declare const EntryReleasePublishedDefinition: Definition<z.ZodObject<{
591
1308
  id: z.ZodString;
592
1309
  url: z.ZodString;
593
1310
  }, z.core.$strip>;
1311
+ timestamp: z.ZodOptional<z.ZodString>;
594
1312
  initiator: z.ZodObject<{
595
1313
  id: z.ZodString;
596
1314
  name: z.ZodOptional<z.ZodString>;
@@ -619,6 +1337,7 @@ declare const EntryReleaseRestoredDefinition: Definition<z.ZodObject<{
619
1337
  id: z.ZodString;
620
1338
  url: z.ZodString;
621
1339
  }, z.core.$strip>;
1340
+ timestamp: z.ZodOptional<z.ZodString>;
622
1341
  initiator: z.ZodObject<{
623
1342
  id: z.ZodString;
624
1343
  name: z.ZodOptional<z.ZodString>;
@@ -644,6 +1363,160 @@ declare const ManifestPublishedDefinition: Definition<z.ZodObject<{
644
1363
  type ManifestPublishedPayload = z.infer<(typeof ManifestPublishedDefinition)['schema']>;
645
1364
  declare const ManifestPublishedEventName: "manifest.published";
646
1365
 
1366
+ declare const NotificationEntitySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1367
+ type: z.ZodEnum<{
1368
+ entry: "entry";
1369
+ composition: "composition";
1370
+ }>;
1371
+ entityId: z.ZodString;
1372
+ releaseId: z.ZodOptional<z.ZodString>;
1373
+ editionId: z.ZodOptional<z.ZodString>;
1374
+ }, z.core.$strict>, z.ZodObject<{
1375
+ type: z.ZodEnum<{
1376
+ entryPattern: "entryPattern";
1377
+ componentPattern: "componentPattern";
1378
+ compositionPattern: "compositionPattern";
1379
+ }>;
1380
+ entityId: z.ZodString;
1381
+ releaseId: z.ZodOptional<z.ZodString>;
1382
+ }, z.core.$strict>, z.ZodObject<{
1383
+ type: z.ZodEnum<{
1384
+ component: "component";
1385
+ contentType: "contentType";
1386
+ blockType: "blockType";
1387
+ asset: "asset";
1388
+ audience: "audience";
1389
+ intent: "intent";
1390
+ enrichment: "enrichment";
1391
+ signal: "signal";
1392
+ quirk: "quirk";
1393
+ test: "test";
1394
+ projectMapNode: "projectMapNode";
1395
+ }>;
1396
+ entityId: z.ZodString;
1397
+ }, z.core.$strict>, z.ZodObject<{
1398
+ type: z.ZodLiteral<"external">;
1399
+ url: z.ZodString;
1400
+ }, z.core.$strict>], "type">;
1401
+ declare const NotificationSummarySchema: z.ZodObject<{
1402
+ format: z.ZodLiteral<"markdown">;
1403
+ value: z.ZodString;
1404
+ }, z.core.$strict>;
1405
+ declare const NotificationPayloadSchema: z.ZodObject<{
1406
+ id: z.ZodString;
1407
+ type: z.ZodLiteral<"text">;
1408
+ summary: z.ZodObject<{
1409
+ format: z.ZodLiteral<"markdown">;
1410
+ value: z.ZodString;
1411
+ }, z.core.$strict>;
1412
+ entity: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1413
+ type: z.ZodEnum<{
1414
+ entry: "entry";
1415
+ composition: "composition";
1416
+ }>;
1417
+ entityId: z.ZodString;
1418
+ releaseId: z.ZodOptional<z.ZodString>;
1419
+ editionId: z.ZodOptional<z.ZodString>;
1420
+ }, z.core.$strict>, z.ZodObject<{
1421
+ type: z.ZodEnum<{
1422
+ entryPattern: "entryPattern";
1423
+ componentPattern: "componentPattern";
1424
+ compositionPattern: "compositionPattern";
1425
+ }>;
1426
+ entityId: z.ZodString;
1427
+ releaseId: z.ZodOptional<z.ZodString>;
1428
+ }, z.core.$strict>, z.ZodObject<{
1429
+ type: z.ZodEnum<{
1430
+ component: "component";
1431
+ contentType: "contentType";
1432
+ blockType: "blockType";
1433
+ asset: "asset";
1434
+ audience: "audience";
1435
+ intent: "intent";
1436
+ enrichment: "enrichment";
1437
+ signal: "signal";
1438
+ quirk: "quirk";
1439
+ test: "test";
1440
+ projectMapNode: "projectMapNode";
1441
+ }>;
1442
+ entityId: z.ZodString;
1443
+ }, z.core.$strict>, z.ZodObject<{
1444
+ type: z.ZodLiteral<"external">;
1445
+ url: z.ZodString;
1446
+ }, z.core.$strict>], "type">>;
1447
+ recipients: z.ZodArray<z.ZodString>;
1448
+ timestamp: z.ZodString;
1449
+ project: z.ZodObject<{
1450
+ id: z.ZodString;
1451
+ url: z.ZodString;
1452
+ }, z.core.$strict>;
1453
+ initiator: z.ZodObject<{
1454
+ id: z.ZodString;
1455
+ name: z.ZodOptional<z.ZodString>;
1456
+ email: z.ZodOptional<z.ZodString>;
1457
+ is_api_key: z.ZodBoolean;
1458
+ }, z.core.$strict>;
1459
+ }, z.core.$strict>;
1460
+ type NotificationPayload = z.infer<typeof NotificationPayloadSchema>;
1461
+
1462
+ declare const NotificationCreatedDefinition: Definition<z.ZodObject<{
1463
+ id: z.ZodString;
1464
+ type: z.ZodLiteral<"text">;
1465
+ summary: z.ZodObject<{
1466
+ format: z.ZodLiteral<"markdown">;
1467
+ value: z.ZodString;
1468
+ }, z.core.$strict>;
1469
+ entity: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1470
+ type: z.ZodEnum<{
1471
+ entry: "entry";
1472
+ composition: "composition";
1473
+ }>;
1474
+ entityId: z.ZodString;
1475
+ releaseId: z.ZodOptional<z.ZodString>;
1476
+ editionId: z.ZodOptional<z.ZodString>;
1477
+ }, z.core.$strict>, z.ZodObject<{
1478
+ type: z.ZodEnum<{
1479
+ entryPattern: "entryPattern";
1480
+ componentPattern: "componentPattern";
1481
+ compositionPattern: "compositionPattern";
1482
+ }>;
1483
+ entityId: z.ZodString;
1484
+ releaseId: z.ZodOptional<z.ZodString>;
1485
+ }, z.core.$strict>, z.ZodObject<{
1486
+ type: z.ZodEnum<{
1487
+ component: "component";
1488
+ contentType: "contentType";
1489
+ blockType: "blockType";
1490
+ asset: "asset";
1491
+ audience: "audience";
1492
+ intent: "intent";
1493
+ enrichment: "enrichment";
1494
+ signal: "signal";
1495
+ quirk: "quirk";
1496
+ test: "test";
1497
+ projectMapNode: "projectMapNode";
1498
+ }>;
1499
+ entityId: z.ZodString;
1500
+ }, z.core.$strict>, z.ZodObject<{
1501
+ type: z.ZodLiteral<"external">;
1502
+ url: z.ZodString;
1503
+ }, z.core.$strict>], "type">>;
1504
+ recipients: z.ZodArray<z.ZodString>;
1505
+ timestamp: z.ZodString;
1506
+ project: z.ZodObject<{
1507
+ id: z.ZodString;
1508
+ url: z.ZodString;
1509
+ }, z.core.$strict>;
1510
+ initiator: z.ZodObject<{
1511
+ id: z.ZodString;
1512
+ name: z.ZodOptional<z.ZodString>;
1513
+ email: z.ZodOptional<z.ZodString>;
1514
+ is_api_key: z.ZodBoolean;
1515
+ }, z.core.$strict>;
1516
+ }, z.core.$strict>, "notification.created">;
1517
+ type NotificationCreatedPayload = z.infer<(typeof NotificationCreatedDefinition)['schema']>;
1518
+ declare const NotificationCreatedEventName: "notification.created";
1519
+
647
1520
  declare const ProjectMapDeleteDefinition: Definition<z.ZodObject<{
648
1521
  id: z.ZodString;
649
1522
  base_url: z.ZodOptional<z.ZodString>;
@@ -1008,4 +1881,4 @@ declare const WorkflowTransitionDefinition: Definition<z.ZodObject<{
1008
1881
  type WorkflowTransitionPayload = z.infer<(typeof WorkflowTransitionDefinition)['schema']>;
1009
1882
  declare const WorkflowTransitionEventName: "workflow.transition";
1010
1883
 
1011
- export { ArchivedReleaseLaunchStartedDefinition, AssetDeletePayloadSchema, AssetDeletedDefinition, AssetDeletedEventName, type AssetDeletedPayload, type AssetPayload, AssetPayloadSchema, AssetPublishedDefinition, AssetPublishedEventName, type AssetPublishedPayload, CompositionChangedDefinition, CompositionChangedEventName, type CompositionChangedPayload, CompositionDeletePayloadSchema, CompositionDeletedDefinition, CompositionDeletedEventName, type CompositionDeletedPayload, type CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, type CompositionPublishedPayload, CompositionReleaseChangedDefinition, CompositionReleaseChangedEventName, type CompositionReleaseChangedPayload, CompositionReleaseDeletedDefinition, CompositionReleaseDeletedEventName, type CompositionReleaseDeletedPayload, CompositionReleasePublishedDefinition, CompositionReleasePublishedEventName, type CompositionReleasePublishedPayload, CompositionReleaseRestoredDefinition, CompositionReleaseRestoredEventName, type CompositionReleaseRestoredPayload, CompositionRestorePayloadSchema, CompositionTriggerPayloadSchema, type Definition, EntryChangedDefinition, EntryChangedEventName, type EntryChangedPayload, EntryDeletePayloadSchema, EntryDeletedDefinition, EntryDeletedEventName, type EntryDeletedPayload, type EntryPayload, EntryPayloadSchema, EntryPublishedDefinition, EntryPublishedEventName, type EntryPublishedPayload, EntryReleaseChangedDefinition, EntryReleaseChangedEventName, type EntryReleaseChangedPayload, EntryReleaseDeletedDefinition, EntryReleaseDeletedEventName, type EntryReleaseDeletedPayload, EntryReleasePublishedDefinition, EntryReleasePublishedEventName, type EntryReleasePublishedPayload, EntryReleaseRestoredDefinition, EntryReleaseRestoredEventName, type EntryReleaseRestoredPayload, EntryRestorePayloadSchema, EntryTriggerPayloadSchema, ManifestPublishedDefinition, ManifestPublishedEventName, type ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, type ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, type ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, type ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, type ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, type ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, type RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, type RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, type RedirectUpdatedPayload, ReleaseChangedDefinition, ReleaseChangedEventName, type ReleaseChangedPayload, type ReleaseCompositionPayload, ReleaseCompositionPayloadSchema, ReleaseDeletedDefinition, ReleaseDeletedEventName, type ReleaseDeletedPayload, type ReleaseEntryPayload, ReleaseEntryPayloadSchema, ReleaseLaunchStartedDefinition, ReleaseLaunchStartedEventName, type ReleaseLaunchStartedPayload, ReleaseLaunchedDefinition, ReleaseLaunchedEventName, type ReleaseLaunchedPayload, type ReleasePayload, ReleasePayloadSchema, type WebhookInitiator, WorkflowEntitySchema, WorkflowReferenceSchema, WorkflowTransitionDefinition, WorkflowTransitionEventName, type WorkflowTransitionPayload, WorkflowTransitionPayloadSchema, definition, isDefinition, webhookInitiatorSchema };
1884
+ export { ArchivedReleaseLaunchStartedDefinition, AssetDeletePayloadSchema, AssetDeletedDefinition, AssetDeletedEventName, type AssetDeletedPayload, type AssetPayload, AssetPayloadSchema, AssetPublishedDefinition, AssetPublishedEventName, type AssetPublishedPayload, CompositionChangedDefinition, CompositionChangedEventName, type CompositionChangedPayload, CompositionDeletePayloadSchema, CompositionDeletedDefinition, CompositionDeletedEventName, type CompositionDeletedPayload, type CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, type CompositionPublishedPayload, CompositionReleaseChangedDefinition, CompositionReleaseChangedEventName, type CompositionReleaseChangedPayload, CompositionReleaseDeletedDefinition, CompositionReleaseDeletedEventName, type CompositionReleaseDeletedPayload, CompositionReleasePublishedDefinition, CompositionReleasePublishedEventName, type CompositionReleasePublishedPayload, CompositionReleaseRestoredDefinition, CompositionReleaseRestoredEventName, type CompositionReleaseRestoredPayload, CompositionRestorePayloadSchema, CompositionTriggerPayloadSchema, type Definition, EntryChangedDefinition, EntryChangedEventName, type EntryChangedPayload, EntryDeletePayloadSchema, EntryDeletedDefinition, EntryDeletedEventName, type EntryDeletedPayload, type EntryPayload, EntryPayloadSchema, EntryPublishedDefinition, EntryPublishedEventName, type EntryPublishedPayload, EntryReleaseChangedDefinition, EntryReleaseChangedEventName, type EntryReleaseChangedPayload, EntryReleaseDeletedDefinition, EntryReleaseDeletedEventName, type EntryReleaseDeletedPayload, EntryReleasePublishedDefinition, EntryReleasePublishedEventName, type EntryReleasePublishedPayload, EntryReleaseRestoredDefinition, EntryReleaseRestoredEventName, type EntryReleaseRestoredPayload, EntryRestorePayloadSchema, EntryTriggerPayloadSchema, ManifestPublishedDefinition, ManifestPublishedEventName, type ManifestPublishedPayload, NotificationCreatedDefinition, NotificationCreatedEventName, type NotificationCreatedPayload, NotificationEntitySchema, type NotificationPayload, NotificationPayloadSchema, NotificationSummarySchema, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, type ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, type ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, type ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, type ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, type ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, type RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, type RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, type RedirectUpdatedPayload, ReleaseChangedDefinition, ReleaseChangedEventName, type ReleaseChangedPayload, type ReleaseCompositionPayload, ReleaseCompositionPayloadSchema, ReleaseDeletedDefinition, ReleaseDeletedEventName, type ReleaseDeletedPayload, type ReleaseEntryPayload, ReleaseEntryPayloadSchema, ReleaseLaunchStartedDefinition, ReleaseLaunchStartedEventName, type ReleaseLaunchStartedPayload, ReleaseLaunchedDefinition, ReleaseLaunchedEventName, type ReleaseLaunchedPayload, type ReleasePayload, ReleasePayloadSchema, type WebhookEventName, type WebhookInitiator, type WebhookPayloadFor, WorkflowEntitySchema, WorkflowReferenceSchema, WorkflowTransitionDefinition, WorkflowTransitionEventName, type WorkflowTransitionPayload, WorkflowTransitionPayloadSchema, definition, isDefinition, webhookEventCatalog, webhookEventNames, webhookInitiatorSchema };