@uniformdev/webhooks 19.119.0 → 19.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22,18 +22,32 @@ var src_exports = {};
22
22
  __export(src_exports, {
23
23
  CompositionChangedDefinition: () => CompositionChangedDefinition,
24
24
  CompositionChangedEventName: () => CompositionChangedEventName,
25
+ CompositionDeletePayloadSchema: () => CompositionDeletePayloadSchema,
25
26
  CompositionDeletedDefinition: () => CompositionDeletedDefinition,
26
27
  CompositionDeletedEventName: () => CompositionDeletedEventName,
27
28
  CompositionPayloadSchema: () => CompositionPayloadSchema,
28
29
  CompositionPublishedDefinition: () => CompositionPublishedDefinition,
29
30
  CompositionPublishedEventName: () => CompositionPublishedEventName,
31
+ CompositionReleaseChangedDefinition: () => CompositionReleaseChangedDefinition,
32
+ CompositionReleaseChangedEventName: () => CompositionReleaseChangedEventName,
33
+ CompositionReleaseDeletedDefinition: () => CompositionReleaseDeletedDefinition,
34
+ CompositionReleaseDeletedEventName: () => CompositionReleaseDeletedEventName,
35
+ CompositionReleasePublishedDefinition: () => CompositionReleasePublishedDefinition,
36
+ CompositionReleasePublishedEventName: () => CompositionReleasePublishedEventName,
30
37
  EntryChangedDefinition: () => EntryChangedDefinition,
31
38
  EntryChangedEventName: () => EntryChangedEventName,
39
+ EntryDeletePayloadSchema: () => EntryDeletePayloadSchema,
32
40
  EntryDeletedDefinition: () => EntryDeletedDefinition,
33
41
  EntryDeletedEventName: () => EntryDeletedEventName,
34
42
  EntryPayloadSchema: () => EntryPayloadSchema,
35
43
  EntryPublishedDefinition: () => EntryPublishedDefinition,
36
44
  EntryPublishedEventName: () => EntryPublishedEventName,
45
+ EntryReleaseChangedDefinition: () => EntryReleaseChangedDefinition,
46
+ EntryReleaseChangedEventName: () => EntryReleaseChangedEventName,
47
+ EntryReleaseDeletedDefinition: () => EntryReleaseDeletedDefinition,
48
+ EntryReleaseDeletedEventName: () => EntryReleaseDeletedEventName,
49
+ EntryReleasePublishedDefinition: () => EntryReleasePublishedDefinition,
50
+ EntryReleasePublishedEventName: () => EntryReleasePublishedEventName,
37
51
  ManifestPublishedDefinition: () => ManifestPublishedDefinition,
38
52
  ManifestPublishedEventName: () => ManifestPublishedEventName,
39
53
  ProjectMapDeleteDefinition: () => ProjectMapDeleteDefinition,
@@ -52,6 +66,17 @@ __export(src_exports, {
52
66
  RedirectInsertedEventName: () => RedirectInsertedEventName,
53
67
  RedirectUpdateDefinition: () => RedirectUpdateDefinition,
54
68
  RedirectUpdatedEventName: () => RedirectUpdatedEventName,
69
+ ReleaseChangedDefinition: () => ReleaseChangedDefinition,
70
+ ReleaseChangedEventName: () => ReleaseChangedEventName,
71
+ ReleaseCompositionPayloadSchema: () => ReleaseCompositionPayloadSchema,
72
+ ReleaseDeletedDefinition: () => ReleaseDeletedDefinition,
73
+ ReleaseDeletedEventName: () => ReleaseDeletedEventName,
74
+ ReleaseEntryPayloadSchema: () => ReleaseEntryPayloadSchema,
75
+ ReleaseLaunchStartedDefinition: () => ReleaseLaunchStartedDefinition,
76
+ ReleaseLaunchStartedEventName: () => ReleaseLaunchStartedEventName,
77
+ ReleaseLaunchedDefinition: () => ReleaseLaunchedDefinition,
78
+ ReleaseLaunchedEventName: () => ReleaseLaunchedEventName,
79
+ ReleasePayloadSchema: () => ReleasePayloadSchema,
55
80
  definition: () => definition,
56
81
  isDefinition: () => isDefinition
57
82
  });
@@ -59,19 +84,34 @@ module.exports = __toCommonJS(src_exports);
59
84
 
60
85
  // src/composition/common.ts
61
86
  var import_zod = require("zod");
62
- var CompositionPayloadSchema = import_zod.z.object({
87
+ var CompositionCorePayloadSchema = import_zod.z.object({
63
88
  id: import_zod.z.string(),
64
89
  slug: import_zod.z.string().optional(),
65
- state: import_zod.z.number(),
66
90
  name: import_zod.z.string(),
67
91
  type: import_zod.z.string(),
68
92
  project: import_zod.z.object({
69
93
  id: import_zod.z.string(),
70
94
  url: import_zod.z.string()
71
- }),
72
- edit_url: import_zod.z.string(),
73
- api_url: import_zod.z.string(),
74
- edge_url: import_zod.z.string()
95
+ })
96
+ });
97
+ var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.and(
98
+ import_zod.z.object({
99
+ state: import_zod.z.number().optional()
100
+ })
101
+ );
102
+ var CompositionPayloadSchema = CompositionCorePayloadSchema.and(
103
+ import_zod.z.object({
104
+ state: import_zod.z.number(),
105
+ edit_url: import_zod.z.string(),
106
+ api_url: import_zod.z.string(),
107
+ edge_url: import_zod.z.string()
108
+ })
109
+ );
110
+ var ReleaseCompositionPayloadSchema = import_zod.z.object({
111
+ release: import_zod.z.object({
112
+ id: import_zod.z.string(),
113
+ url: import_zod.z.string()
114
+ })
75
115
  });
76
116
 
77
117
  // src/definition.ts
@@ -112,23 +152,12 @@ var CompositionChangedDefinition = definition(
112
152
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
113
153
 
114
154
  // src/composition/composition.deleted.ts
115
- var import_zod2 = require("zod");
116
155
  var CompositionDeletedDefinition = definition(
117
156
  {
118
157
  event: "composition.deleted",
119
158
  name: "Composition Deleted",
120
159
  description: "Triggers when a composition has been deleted.",
121
- schema: import_zod2.z.object({
122
- id: import_zod2.z.string(),
123
- state: import_zod2.z.number().optional(),
124
- name: import_zod2.z.string(),
125
- type: import_zod2.z.string(),
126
- slug: import_zod2.z.string().optional(),
127
- project: import_zod2.z.object({
128
- id: import_zod2.z.string(),
129
- url: import_zod2.z.string()
130
- })
131
- })
160
+ schema: CompositionDeletePayloadSchema
132
161
  },
133
162
  {
134
163
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
@@ -169,21 +198,120 @@ var CompositionPublishedDefinition = definition(
169
198
  );
170
199
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
171
200
 
201
+ // src/composition/composition.release.changed.ts
202
+ var CompositionReleaseChangedDefinition = definition(
203
+ {
204
+ event: "composition.release.changed",
205
+ name: "Composition Changed on Release",
206
+ description: "Triggers when a composition has been changed or copied to a pre-launch release.",
207
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
208
+ },
209
+ {
210
+ release: {
211
+ id: "48293345-f2d0-1125-afda-7c661abad432",
212
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
213
+ },
214
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
215
+ name: "About Us",
216
+ slug: "/about-us",
217
+ type: "page",
218
+ project: {
219
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
220
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
221
+ },
222
+ state: 64,
223
+ 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`,
224
+ 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`,
225
+ 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`
226
+ }
227
+ );
228
+ var CompositionReleaseChangedEventName = CompositionReleaseChangedDefinition["event"];
229
+
230
+ // src/composition/composition.release.deleted.ts
231
+ var CompositionReleaseDeletedDefinition = definition(
232
+ {
233
+ event: "composition.release.deleted",
234
+ name: "Composition Deleted on Release",
235
+ description: "Triggers when a composition is deleted that is attached to a pre-launch release.",
236
+ schema: CompositionDeletePayloadSchema.and(ReleaseCompositionPayloadSchema)
237
+ },
238
+ {
239
+ release: {
240
+ id: "48293345-f2d0-1125-afda-7c661abad432",
241
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
242
+ },
243
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
244
+ state: 64,
245
+ name: "About Us",
246
+ type: "page",
247
+ slug: "/about-us",
248
+ project: {
249
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
250
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
251
+ }
252
+ }
253
+ );
254
+ var CompositionReleaseDeletedEventName = CompositionReleaseDeletedDefinition["event"];
255
+
256
+ // src/composition/composition.release.published.ts
257
+ var CompositionReleasePublishedDefinition = definition(
258
+ {
259
+ event: "composition.release.published",
260
+ name: "Composition Published on Release",
261
+ description: "Triggers when a composition has been published that is attached to an pre-launch release.",
262
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
263
+ },
264
+ {
265
+ release: {
266
+ id: "48293345-f2d0-1125-afda-7c661abad432",
267
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
268
+ },
269
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
270
+ name: "About Us",
271
+ slug: "/about-us",
272
+ type: "page",
273
+ project: {
274
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
275
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
276
+ },
277
+ state: 64,
278
+ 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`,
279
+ 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`,
280
+ 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`
281
+ }
282
+ );
283
+ var CompositionReleasePublishedEventName = CompositionReleasePublishedDefinition["event"];
284
+
172
285
  // src/entry/common.ts
173
- var import_zod3 = require("zod");
174
- var EntryPayloadSchema = import_zod3.z.object({
175
- id: import_zod3.z.string(),
176
- slug: import_zod3.z.string().optional(),
177
- state: import_zod3.z.number(),
178
- name: import_zod3.z.string(),
179
- type: import_zod3.z.string(),
180
- project: import_zod3.z.object({
181
- id: import_zod3.z.string(),
182
- url: import_zod3.z.string()
183
- }),
184
- edit_url: import_zod3.z.string(),
185
- api_url: import_zod3.z.string(),
186
- edge_url: import_zod3.z.string()
286
+ var import_zod2 = require("zod");
287
+ var EntryCorePayloadSchema = import_zod2.z.object({
288
+ id: import_zod2.z.string(),
289
+ slug: import_zod2.z.string().optional(),
290
+ name: import_zod2.z.string(),
291
+ type: import_zod2.z.string(),
292
+ project: import_zod2.z.object({
293
+ id: import_zod2.z.string(),
294
+ url: import_zod2.z.string()
295
+ })
296
+ });
297
+ var EntryDeletePayloadSchema = EntryCorePayloadSchema.and(
298
+ import_zod2.z.object({
299
+ state: import_zod2.z.number().optional()
300
+ })
301
+ );
302
+ var EntryPayloadSchema = EntryCorePayloadSchema.and(
303
+ import_zod2.z.object({
304
+ state: import_zod2.z.number(),
305
+ edit_url: import_zod2.z.string(),
306
+ api_url: import_zod2.z.string(),
307
+ edge_url: import_zod2.z.string()
308
+ })
309
+ );
310
+ var ReleaseEntryPayloadSchema = import_zod2.z.object({
311
+ release: import_zod2.z.object({
312
+ id: import_zod2.z.string(),
313
+ url: import_zod2.z.string()
314
+ })
187
315
  });
188
316
 
189
317
  // src/entry/entry.changed.ts
@@ -212,23 +340,12 @@ var EntryChangedDefinition = definition(
212
340
  var EntryChangedEventName = EntryChangedDefinition["event"];
213
341
 
214
342
  // src/entry/entry.deleted.ts
215
- var import_zod4 = require("zod");
216
343
  var EntryDeletedDefinition = definition(
217
344
  {
218
345
  event: "entry.deleted",
219
346
  name: "Entry Deleted",
220
347
  description: "Triggers when an entry has been deleted.",
221
- schema: import_zod4.z.object({
222
- id: import_zod4.z.string(),
223
- state: import_zod4.z.number().optional(),
224
- name: import_zod4.z.string(),
225
- type: import_zod4.z.string(),
226
- slug: import_zod4.z.string().optional(),
227
- project: import_zod4.z.object({
228
- id: import_zod4.z.string(),
229
- url: import_zod4.z.string()
230
- })
231
- })
348
+ schema: EntryDeletePayloadSchema
232
349
  },
233
350
  {
234
351
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
@@ -269,18 +386,102 @@ var EntryPublishedDefinition = definition(
269
386
  );
270
387
  var EntryPublishedEventName = EntryPublishedDefinition["event"];
271
388
 
389
+ // src/entry/entry.release.changed.ts
390
+ var EntryReleaseChangedDefinition = definition(
391
+ {
392
+ event: "entry.release.changed",
393
+ name: "Entry Changed on Release",
394
+ description: "Triggers when an entry has been changed that is attached to a pre-launch release.",
395
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
396
+ },
397
+ {
398
+ release: {
399
+ id: "48293345-f2d0-1125-afda-7c661abad432",
400
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
401
+ },
402
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
403
+ name: "About Us",
404
+ slug: "/about-us",
405
+ type: "page",
406
+ project: {
407
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
408
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
409
+ },
410
+ state: 64,
411
+ 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`,
412
+ 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`,
413
+ 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`
414
+ }
415
+ );
416
+ var EntryReleaseChangedEventName = EntryReleaseChangedDefinition["event"];
417
+
418
+ // src/entry/entry.release.deleted.ts
419
+ var EntryReleaseDeletedDefinition = definition(
420
+ {
421
+ event: "entry.release.deleted",
422
+ name: "Entry Deleted on Release",
423
+ description: "Triggers when an entry has been deleted that is attached to a pre-launch release.",
424
+ schema: EntryDeletePayloadSchema.and(ReleaseEntryPayloadSchema)
425
+ },
426
+ {
427
+ release: {
428
+ id: "48293345-f2d0-1125-afda-7c661abad432",
429
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
430
+ },
431
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
432
+ name: "About Us",
433
+ type: "page",
434
+ slug: "/about-us",
435
+ project: {
436
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
437
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
438
+ },
439
+ state: 64
440
+ }
441
+ );
442
+ var EntryReleaseDeletedEventName = EntryReleaseDeletedDefinition["event"];
443
+
444
+ // src/entry/entry.release.published.ts
445
+ var EntryReleasePublishedDefinition = definition(
446
+ {
447
+ event: "entry.release.published",
448
+ name: "Entry Published on Release",
449
+ description: "Triggers when an entry has been published that is attached to a pre-launch release.",
450
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
451
+ },
452
+ {
453
+ release: {
454
+ id: "48293345-f2d0-1125-afda-7c661abad432",
455
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
456
+ },
457
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
458
+ name: "About Us",
459
+ slug: "/about-us",
460
+ type: "page",
461
+ project: {
462
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
463
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
464
+ },
465
+ state: 64,
466
+ 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`,
467
+ 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`,
468
+ 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`
469
+ }
470
+ );
471
+ var EntryReleasePublishedEventName = EntryReleasePublishedDefinition["event"];
472
+
272
473
  // src/manifest/manifest.published.ts
273
- var import_zod5 = require("zod");
474
+ var import_zod3 = require("zod");
274
475
  var ManifestPublishedDefinition = definition(
275
476
  {
276
477
  event: "manifest.published",
277
478
  name: "Manifest Published",
278
479
  description: "Triggers when a manifest has been published.",
279
- schema: import_zod5.z.object({
280
- timestamp: import_zod5.z.number(),
281
- site: import_zod5.z.object({
282
- id: import_zod5.z.string(),
283
- name: import_zod5.z.string()
480
+ schema: import_zod3.z.object({
481
+ timestamp: import_zod3.z.number(),
482
+ site: import_zod3.z.object({
483
+ id: import_zod3.z.string(),
484
+ name: import_zod3.z.string()
284
485
  })
285
486
  })
286
487
  },
@@ -295,16 +496,16 @@ var ManifestPublishedDefinition = definition(
295
496
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
296
497
 
297
498
  // src/project-map/projectMap.delete.ts
298
- var import_zod6 = require("zod");
499
+ var import_zod4 = require("zod");
299
500
  var ProjectMapDeleteDefinition = definition(
300
501
  {
301
502
  event: "projectmap.delete",
302
503
  name: "Project Map Deleted",
303
504
  description: "Triggers when a project map is deleted.",
304
- schema: import_zod6.z.object({
305
- id: import_zod6.z.string(),
306
- base_url: import_zod6.z.string().optional(),
307
- project_id: import_zod6.z.string()
505
+ schema: import_zod4.z.object({
506
+ id: import_zod4.z.string(),
507
+ base_url: import_zod4.z.string().optional(),
508
+ project_id: import_zod4.z.string()
308
509
  })
309
510
  },
310
511
  {
@@ -316,18 +517,18 @@ var ProjectMapDeleteDefinition = definition(
316
517
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
317
518
 
318
519
  // src/project-map/projectMap.node.delete.ts
319
- var import_zod7 = require("zod");
520
+ var import_zod5 = require("zod");
320
521
  var ProjectMapNodeDeleteDefinition = definition(
321
522
  {
322
523
  event: "projectmap.node.delete",
323
524
  name: "Project Map Node Deleted",
324
525
  description: "Triggers when a project map node is deleted.",
325
- schema: import_zod7.z.object({
326
- project_id: import_zod7.z.string(),
327
- project_map_id: import_zod7.z.string(),
328
- id: import_zod7.z.string(),
329
- path: import_zod7.z.string(),
330
- composition_id: import_zod7.z.string().optional()
526
+ schema: import_zod5.z.object({
527
+ project_id: import_zod5.z.string(),
528
+ project_map_id: import_zod5.z.string(),
529
+ id: import_zod5.z.string(),
530
+ path: import_zod5.z.string(),
531
+ composition_id: import_zod5.z.string().optional()
331
532
  })
332
533
  },
333
534
  {
@@ -341,18 +542,18 @@ var ProjectMapNodeDeleteDefinition = definition(
341
542
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
342
543
 
343
544
  // src/project-map/projectMap.node.insert.ts
344
- var import_zod8 = require("zod");
545
+ var import_zod6 = require("zod");
345
546
  var ProjectMapNodeInsertDefinition = definition(
346
547
  {
347
548
  event: "projectmap.node.insert",
348
549
  name: "Project Map Node Inserted",
349
550
  description: "Triggers when a project map node is inserted.",
350
- schema: import_zod8.z.object({
351
- id: import_zod8.z.string(),
352
- project_map_id: import_zod8.z.string(),
353
- project_id: import_zod8.z.string(),
354
- path: import_zod8.z.string(),
355
- composition_id: import_zod8.z.string().optional()
551
+ schema: import_zod6.z.object({
552
+ id: import_zod6.z.string(),
553
+ project_map_id: import_zod6.z.string(),
554
+ project_id: import_zod6.z.string(),
555
+ path: import_zod6.z.string(),
556
+ composition_id: import_zod6.z.string().optional()
356
557
  })
357
558
  },
358
559
  {
@@ -366,19 +567,19 @@ var ProjectMapNodeInsertDefinition = definition(
366
567
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
367
568
 
368
569
  // src/project-map/projectMap.node.update.ts
369
- var import_zod9 = require("zod");
570
+ var import_zod7 = require("zod");
370
571
  var ProjectMapNodeUpdateDefinition = definition(
371
572
  {
372
573
  event: "projectmap.node.update",
373
574
  name: "Project Map Node Updated",
374
575
  description: "Triggers when a project map node is updated.",
375
- schema: import_zod9.z.object({
376
- id: import_zod9.z.string(),
377
- project_map_id: import_zod9.z.string(),
378
- project_id: import_zod9.z.string(),
379
- path: import_zod9.z.string(),
380
- composition_id: import_zod9.z.string().optional(),
381
- previous_path: import_zod9.z.string()
576
+ schema: import_zod7.z.object({
577
+ id: import_zod7.z.string(),
578
+ project_map_id: import_zod7.z.string(),
579
+ project_id: import_zod7.z.string(),
580
+ path: import_zod7.z.string(),
581
+ composition_id: import_zod7.z.string().optional(),
582
+ previous_path: import_zod7.z.string()
382
583
  })
383
584
  },
384
585
  {
@@ -393,16 +594,16 @@ var ProjectMapNodeUpdateDefinition = definition(
393
594
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
394
595
 
395
596
  // src/project-map/projectMap.update.ts
396
- var import_zod10 = require("zod");
597
+ var import_zod8 = require("zod");
397
598
  var ProjectMapUpdateDefinition = definition(
398
599
  {
399
600
  event: "projectmap.update",
400
601
  name: "Project Map Updated",
401
602
  description: "Triggers when a project map is updated or created.",
402
- schema: import_zod10.z.object({
403
- id: import_zod10.z.string(),
404
- base_url: import_zod10.z.string().optional(),
405
- project_id: import_zod10.z.string()
603
+ schema: import_zod8.z.object({
604
+ id: import_zod8.z.string(),
605
+ base_url: import_zod8.z.string().optional(),
606
+ project_id: import_zod8.z.string()
406
607
  })
407
608
  },
408
609
  {
@@ -414,18 +615,18 @@ var ProjectMapUpdateDefinition = definition(
414
615
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
415
616
 
416
617
  // src/redirect/redirect.delete.ts
417
- var import_zod11 = require("zod");
618
+ var import_zod9 = require("zod");
418
619
  var RedirectDeleteDefinition = definition(
419
620
  {
420
621
  event: "redirect.delete",
421
622
  name: "Redirect Deleted",
422
623
  description: "Triggers when a redirect is deleted.",
423
- schema: import_zod11.z.object({
424
- project_id: import_zod11.z.string(),
425
- id: import_zod11.z.string(),
426
- source_url: import_zod11.z.string(),
427
- target_url: import_zod11.z.string(),
428
- target_status_code: import_zod11.z.number()
624
+ schema: import_zod9.z.object({
625
+ project_id: import_zod9.z.string(),
626
+ id: import_zod9.z.string(),
627
+ source_url: import_zod9.z.string(),
628
+ target_url: import_zod9.z.string(),
629
+ target_status_code: import_zod9.z.number()
429
630
  })
430
631
  },
431
632
  {
@@ -439,18 +640,18 @@ var RedirectDeleteDefinition = definition(
439
640
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
440
641
 
441
642
  // src/redirect/redirect.insert.ts
442
- var import_zod12 = require("zod");
643
+ var import_zod10 = require("zod");
443
644
  var RedirectInsertDefinition = definition(
444
645
  {
445
646
  event: "redirect.insert",
446
647
  name: "Redirect Inserted",
447
648
  description: "Triggers when a redirect is inserted.",
448
- schema: import_zod12.z.object({
449
- project_id: import_zod12.z.string(),
450
- id: import_zod12.z.string(),
451
- source_url: import_zod12.z.string(),
452
- target_url: import_zod12.z.string(),
453
- target_status_code: import_zod12.z.number()
649
+ schema: import_zod10.z.object({
650
+ project_id: import_zod10.z.string(),
651
+ id: import_zod10.z.string(),
652
+ source_url: import_zod10.z.string(),
653
+ target_url: import_zod10.z.string(),
654
+ target_status_code: import_zod10.z.number()
454
655
  })
455
656
  },
456
657
  {
@@ -464,18 +665,18 @@ var RedirectInsertDefinition = definition(
464
665
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
465
666
 
466
667
  // src/redirect/redirect.update.ts
467
- var import_zod13 = require("zod");
668
+ var import_zod11 = require("zod");
468
669
  var RedirectUpdateDefinition = definition(
469
670
  {
470
671
  event: "redirect.update",
471
672
  name: "Redirect Updated",
472
673
  description: "Triggers when a redirect is updated.",
473
- schema: import_zod13.z.object({
474
- project_id: import_zod13.z.string(),
475
- id: import_zod13.z.string(),
476
- source_url: import_zod13.z.string(),
477
- target_url: import_zod13.z.string(),
478
- target_status_code: import_zod13.z.number()
674
+ schema: import_zod11.z.object({
675
+ project_id: import_zod11.z.string(),
676
+ id: import_zod11.z.string(),
677
+ source_url: import_zod11.z.string(),
678
+ target_url: import_zod11.z.string(),
679
+ target_status_code: import_zod11.z.number()
479
680
  })
480
681
  },
481
682
  {
@@ -487,22 +688,146 @@ var RedirectUpdateDefinition = definition(
487
688
  }
488
689
  );
489
690
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
691
+
692
+ // src/release/common.ts
693
+ var import_zod12 = require("zod");
694
+ var ReleasePayloadSchema = import_zod12.z.object({
695
+ id: import_zod12.z.string(),
696
+ state: import_zod12.z.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
697
+ name: import_zod12.z.string(),
698
+ project: import_zod12.z.object({
699
+ id: import_zod12.z.string(),
700
+ url: import_zod12.z.string()
701
+ }),
702
+ autoLaunchSchedule: import_zod12.z.number().optional(),
703
+ autoLaunchScheduleTimeZone: import_zod12.z.string().optional(),
704
+ edit_url: import_zod12.z.string(),
705
+ api_url: import_zod12.z.string()
706
+ });
707
+
708
+ // src/release/release.changed.ts
709
+ var ReleaseChangedDefinition = definition(
710
+ {
711
+ event: "release.changed",
712
+ name: "Release Changed",
713
+ description: "Triggers when a release definition has been changed.",
714
+ schema: ReleasePayloadSchema
715
+ },
716
+ {
717
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
718
+ name: "Sample Release",
719
+ project: {
720
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
721
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
722
+ },
723
+ state: "open",
724
+ autoLaunchSchedule: 12312412312,
725
+ autoLaunchScheduleTimeZone: "America/New_York",
726
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
727
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
728
+ }
729
+ );
730
+ var ReleaseChangedEventName = ReleaseChangedDefinition["event"];
731
+
732
+ // src/release/release.deleted.ts
733
+ var ReleaseDeletedDefinition = definition(
734
+ {
735
+ event: "release.deleted",
736
+ name: "Release Deleted",
737
+ description: "Triggers when a release, along with any contents, has been deleted.",
738
+ schema: ReleasePayloadSchema.omit({ api_url: true, edit_url: true })
739
+ },
740
+ {
741
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
742
+ name: "Sample Release",
743
+ project: {
744
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
745
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
746
+ },
747
+ state: "open",
748
+ autoLaunchSchedule: 1212412312,
749
+ autoLaunchScheduleTimeZone: "America/New_York"
750
+ }
751
+ );
752
+ var ReleaseDeletedEventName = ReleaseDeletedDefinition["event"];
753
+
754
+ // src/release/release.launched.ts
755
+ var ReleaseLaunchedDefinition = definition(
756
+ {
757
+ event: "release.launched",
758
+ name: "Release Launched",
759
+ description: "Triggers when a release completes launching.",
760
+ schema: ReleasePayloadSchema
761
+ },
762
+ {
763
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
764
+ name: "Sample Release",
765
+ project: {
766
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
767
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
768
+ },
769
+ state: "open",
770
+ autoLaunchSchedule: 12312412312,
771
+ autoLaunchScheduleTimeZone: "America/New_York",
772
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
773
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
774
+ }
775
+ );
776
+ var ReleaseLaunchedEventName = ReleaseLaunchedDefinition["event"];
777
+
778
+ // src/release/release.launchstarted.ts
779
+ var ReleaseLaunchStartedDefinition = definition(
780
+ {
781
+ event: "release.launchstarted",
782
+ name: "Release Launch Started",
783
+ description: "Triggers when a release starts launching.",
784
+ schema: ReleasePayloadSchema
785
+ },
786
+ {
787
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
788
+ name: "Sample Release",
789
+ project: {
790
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
791
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
792
+ },
793
+ state: "open",
794
+ autoLaunchSchedule: 12312412312,
795
+ autoLaunchScheduleTimeZone: "America/New_York",
796
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
797
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
798
+ }
799
+ );
800
+ var ReleaseLaunchStartedEventName = ReleaseLaunchStartedDefinition["event"];
490
801
  // Annotate the CommonJS export names for ESM import in node:
491
802
  0 && (module.exports = {
492
803
  CompositionChangedDefinition,
493
804
  CompositionChangedEventName,
805
+ CompositionDeletePayloadSchema,
494
806
  CompositionDeletedDefinition,
495
807
  CompositionDeletedEventName,
496
808
  CompositionPayloadSchema,
497
809
  CompositionPublishedDefinition,
498
810
  CompositionPublishedEventName,
811
+ CompositionReleaseChangedDefinition,
812
+ CompositionReleaseChangedEventName,
813
+ CompositionReleaseDeletedDefinition,
814
+ CompositionReleaseDeletedEventName,
815
+ CompositionReleasePublishedDefinition,
816
+ CompositionReleasePublishedEventName,
499
817
  EntryChangedDefinition,
500
818
  EntryChangedEventName,
819
+ EntryDeletePayloadSchema,
501
820
  EntryDeletedDefinition,
502
821
  EntryDeletedEventName,
503
822
  EntryPayloadSchema,
504
823
  EntryPublishedDefinition,
505
824
  EntryPublishedEventName,
825
+ EntryReleaseChangedDefinition,
826
+ EntryReleaseChangedEventName,
827
+ EntryReleaseDeletedDefinition,
828
+ EntryReleaseDeletedEventName,
829
+ EntryReleasePublishedDefinition,
830
+ EntryReleasePublishedEventName,
506
831
  ManifestPublishedDefinition,
507
832
  ManifestPublishedEventName,
508
833
  ProjectMapDeleteDefinition,
@@ -521,6 +846,17 @@ var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
521
846
  RedirectInsertedEventName,
522
847
  RedirectUpdateDefinition,
523
848
  RedirectUpdatedEventName,
849
+ ReleaseChangedDefinition,
850
+ ReleaseChangedEventName,
851
+ ReleaseCompositionPayloadSchema,
852
+ ReleaseDeletedDefinition,
853
+ ReleaseDeletedEventName,
854
+ ReleaseEntryPayloadSchema,
855
+ ReleaseLaunchStartedDefinition,
856
+ ReleaseLaunchStartedEventName,
857
+ ReleaseLaunchedDefinition,
858
+ ReleaseLaunchedEventName,
859
+ ReleasePayloadSchema,
524
860
  definition,
525
861
  isDefinition
526
862
  });