@uniformdev/webhooks 19.79.1-alpha.13 → 19.79.1-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.esm.js CHANGED
@@ -1,18 +1,39 @@
1
1
  // src/composition/common.ts
2
2
  import { z } from "zod";
3
- var CompositionPayloadSchema = z.object({
3
+ var CompositionCorePayloadSchema = z.object({
4
4
  id: z.string(),
5
5
  slug: z.string().optional(),
6
- state: z.number(),
7
6
  name: z.string(),
8
7
  type: z.string(),
9
8
  project: z.object({
10
9
  id: z.string(),
11
10
  url: z.string()
12
- }),
13
- edit_url: z.string(),
14
- api_url: z.string(),
15
- edge_url: z.string()
11
+ })
12
+ });
13
+ var CompositionTriggerPayloadSchema = z.object({
14
+ trigger: z.object({
15
+ type: z.enum(["release"]),
16
+ id: z.string()
17
+ }).optional()
18
+ });
19
+ var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.and(
20
+ z.object({
21
+ state: z.number().optional()
22
+ })
23
+ );
24
+ var CompositionPayloadSchema = CompositionCorePayloadSchema.and(
25
+ z.object({
26
+ state: z.number(),
27
+ edit_url: z.string(),
28
+ api_url: z.string(),
29
+ edge_url: z.string()
30
+ })
31
+ );
32
+ var ReleaseCompositionPayloadSchema = z.object({
33
+ release: z.object({
34
+ id: z.string(),
35
+ url: z.string()
36
+ })
16
37
  });
17
38
 
18
39
  // src/definition.ts
@@ -33,7 +54,7 @@ var CompositionChangedDefinition = definition(
33
54
  event: "composition.changed",
34
55
  name: "Composition Changed",
35
56
  description: "Triggers when a composition has been changed.",
36
- schema: CompositionPayloadSchema
57
+ schema: CompositionPayloadSchema.and(CompositionTriggerPayloadSchema)
37
58
  },
38
59
  {
39
60
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
@@ -47,29 +68,22 @@ var CompositionChangedDefinition = definition(
47
68
  state: 64,
48
69
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
49
70
  api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
50
- edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
71
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
72
+ trigger: {
73
+ type: "release",
74
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
75
+ }
51
76
  }
52
77
  );
53
78
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
54
79
 
55
80
  // src/composition/composition.deleted.ts
56
- import { z as z2 } from "zod";
57
81
  var CompositionDeletedDefinition = definition(
58
82
  {
59
83
  event: "composition.deleted",
60
84
  name: "Composition Deleted",
61
85
  description: "Triggers when a composition has been deleted.",
62
- schema: z2.object({
63
- id: z2.string(),
64
- state: z2.number().optional(),
65
- name: z2.string(),
66
- type: z2.string(),
67
- slug: z2.string().optional(),
68
- project: z2.object({
69
- id: z2.string(),
70
- url: z2.string()
71
- })
72
- })
86
+ schema: CompositionDeletePayloadSchema.and(CompositionTriggerPayloadSchema)
73
87
  },
74
88
  {
75
89
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
@@ -80,6 +94,10 @@ var CompositionDeletedDefinition = definition(
80
94
  project: {
81
95
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
82
96
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
97
+ },
98
+ trigger: {
99
+ type: "release",
100
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
83
101
  }
84
102
  }
85
103
  );
@@ -91,7 +109,7 @@ var CompositionPublishedDefinition = definition(
91
109
  event: "composition.published",
92
110
  name: "Composition Published",
93
111
  description: "Triggers when a composition has been published.",
94
- schema: CompositionPayloadSchema
112
+ schema: CompositionPayloadSchema.and(CompositionTriggerPayloadSchema)
95
113
  },
96
114
  {
97
115
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
@@ -105,26 +123,135 @@ var CompositionPublishedDefinition = definition(
105
123
  state: 64,
106
124
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
107
125
  api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
108
- edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
126
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
127
+ trigger: {
128
+ type: "release",
129
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
130
+ }
109
131
  }
110
132
  );
111
133
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
112
134
 
135
+ // src/composition/composition.release.changed.ts
136
+ var CompositionReleaseChangedDefinition = definition(
137
+ {
138
+ event: "composition.release.changed",
139
+ name: "Composition Changed on Release",
140
+ description: "Triggers when a composition has been changed or copied to a pre-launch release.",
141
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
142
+ },
143
+ {
144
+ release: {
145
+ id: "48293345-f2d0-1125-afda-7c661abad432",
146
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
147
+ },
148
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
149
+ name: "About Us",
150
+ slug: "/about-us",
151
+ type: "page",
152
+ project: {
153
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
154
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
155
+ },
156
+ state: 64,
157
+ 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`,
158
+ 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`,
159
+ 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`
160
+ }
161
+ );
162
+ var CompositionReleaseChangedEventName = CompositionReleaseChangedDefinition["event"];
163
+
164
+ // src/composition/composition.release.deleted.ts
165
+ var CompositionReleaseDeletedDefinition = definition(
166
+ {
167
+ event: "composition.release.deleted",
168
+ name: "Composition Deleted on Release",
169
+ description: "Triggers when a composition is deleted that is attached to a pre-launch release.",
170
+ schema: CompositionDeletePayloadSchema.and(ReleaseCompositionPayloadSchema)
171
+ },
172
+ {
173
+ release: {
174
+ id: "48293345-f2d0-1125-afda-7c661abad432",
175
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
176
+ },
177
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
178
+ state: 64,
179
+ name: "About Us",
180
+ type: "page",
181
+ slug: "/about-us",
182
+ project: {
183
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
184
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
185
+ }
186
+ }
187
+ );
188
+ var CompositionReleaseDeletedEventName = CompositionReleaseDeletedDefinition["event"];
189
+
190
+ // src/composition/composition.release.published.ts
191
+ var CompositionReleasePublishedDefinition = definition(
192
+ {
193
+ event: "composition.release.published",
194
+ name: "Composition Published on Release",
195
+ description: "Triggers when a composition has been published that is attached to an pre-launch release.",
196
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
197
+ },
198
+ {
199
+ release: {
200
+ id: "48293345-f2d0-1125-afda-7c661abad432",
201
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
202
+ },
203
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
204
+ name: "About Us",
205
+ slug: "/about-us",
206
+ type: "page",
207
+ project: {
208
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
209
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
210
+ },
211
+ state: 64,
212
+ 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`,
213
+ 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`,
214
+ 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`
215
+ }
216
+ );
217
+ var CompositionReleasePublishedEventName = CompositionReleasePublishedDefinition["event"];
218
+
113
219
  // src/entry/common.ts
114
- import { z as z3 } from "zod";
115
- var EntryPayloadSchema = z3.object({
116
- id: z3.string(),
117
- slug: z3.string().optional(),
118
- state: z3.number(),
119
- name: z3.string(),
120
- type: z3.string(),
121
- project: z3.object({
122
- id: z3.string(),
123
- url: z3.string()
124
- }),
125
- edit_url: z3.string(),
126
- api_url: z3.string(),
127
- edge_url: z3.string()
220
+ import { z as z2 } from "zod";
221
+ var EntryCorePayloadSchema = z2.object({
222
+ id: z2.string(),
223
+ slug: z2.string().optional(),
224
+ name: z2.string(),
225
+ type: z2.string(),
226
+ project: z2.object({
227
+ id: z2.string(),
228
+ url: z2.string()
229
+ })
230
+ });
231
+ var EntryTriggerPayloadSchema = z2.object({
232
+ trigger: z2.object({
233
+ type: z2.enum(["release"]),
234
+ id: z2.string()
235
+ }).optional()
236
+ });
237
+ var EntryDeletePayloadSchema = EntryCorePayloadSchema.and(
238
+ z2.object({
239
+ state: z2.number().optional()
240
+ })
241
+ );
242
+ var EntryPayloadSchema = EntryCorePayloadSchema.and(
243
+ z2.object({
244
+ state: z2.number(),
245
+ edit_url: z2.string(),
246
+ api_url: z2.string(),
247
+ edge_url: z2.string()
248
+ })
249
+ );
250
+ var ReleaseEntryPayloadSchema = z2.object({
251
+ release: z2.object({
252
+ id: z2.string(),
253
+ url: z2.string()
254
+ })
128
255
  });
129
256
 
130
257
  // src/entry/entry.changed.ts
@@ -133,7 +260,7 @@ var EntryChangedDefinition = definition(
133
260
  event: "entry.changed",
134
261
  name: "Entry Changed",
135
262
  description: "Triggers when an entry has been changed.",
136
- schema: EntryPayloadSchema
263
+ schema: EntryPayloadSchema.and(EntryTriggerPayloadSchema)
137
264
  },
138
265
  {
139
266
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
@@ -147,29 +274,22 @@ var EntryChangedDefinition = definition(
147
274
  state: 64,
148
275
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
149
276
  api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
150
- edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
277
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
278
+ trigger: {
279
+ type: "release",
280
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
281
+ }
151
282
  }
152
283
  );
153
284
  var EntryChangedEventName = EntryChangedDefinition["event"];
154
285
 
155
286
  // src/entry/entry.deleted.ts
156
- import { z as z4 } from "zod";
157
287
  var EntryDeletedDefinition = definition(
158
288
  {
159
289
  event: "entry.deleted",
160
290
  name: "Entry Deleted",
161
291
  description: "Triggers when an entry has been deleted.",
162
- schema: z4.object({
163
- id: z4.string(),
164
- state: z4.number().optional(),
165
- name: z4.string(),
166
- type: z4.string(),
167
- slug: z4.string().optional(),
168
- project: z4.object({
169
- id: z4.string(),
170
- url: z4.string()
171
- })
172
- })
292
+ schema: EntryDeletePayloadSchema.and(EntryTriggerPayloadSchema)
173
293
  },
174
294
  {
175
295
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
@@ -180,7 +300,11 @@ var EntryDeletedDefinition = definition(
180
300
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
181
301
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
182
302
  },
183
- state: 64
303
+ state: 64,
304
+ trigger: {
305
+ type: "release",
306
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
307
+ }
184
308
  }
185
309
  );
186
310
  var EntryDeletedEventName = EntryDeletedDefinition["event"];
@@ -191,7 +315,7 @@ var EntryPublishedDefinition = definition(
191
315
  event: "entry.published",
192
316
  name: "Entry Published",
193
317
  description: "Triggers when an entry has been published.",
194
- schema: EntryPayloadSchema
318
+ schema: EntryPayloadSchema.and(EntryTriggerPayloadSchema)
195
319
  },
196
320
  {
197
321
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
@@ -205,23 +329,111 @@ var EntryPublishedDefinition = definition(
205
329
  state: 64,
206
330
  edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
207
331
  api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
208
- edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
332
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
333
+ trigger: {
334
+ type: "release",
335
+ id: "a7bce3da-9727-4ca8-b95b-57f731445c3f"
336
+ }
209
337
  }
210
338
  );
211
339
  var EntryPublishedEventName = EntryPublishedDefinition["event"];
212
340
 
341
+ // src/entry/entry.release.changed.ts
342
+ var EntryReleaseChangedDefinition = definition(
343
+ {
344
+ event: "entry.release.changed",
345
+ name: "Entry Changed on Release",
346
+ description: "Triggers when an entry has been changed that is attached to a pre-launch release.",
347
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
348
+ },
349
+ {
350
+ release: {
351
+ id: "48293345-f2d0-1125-afda-7c661abad432",
352
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
353
+ },
354
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
355
+ name: "About Us",
356
+ slug: "/about-us",
357
+ type: "page",
358
+ project: {
359
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
360
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
361
+ },
362
+ state: 64,
363
+ 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`,
364
+ 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`,
365
+ 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`
366
+ }
367
+ );
368
+ var EntryReleaseChangedEventName = EntryReleaseChangedDefinition["event"];
369
+
370
+ // src/entry/entry.release.deleted.ts
371
+ var EntryReleaseDeletedDefinition = definition(
372
+ {
373
+ event: "entry.release.deleted",
374
+ name: "Entry Deleted on Release",
375
+ description: "Triggers when an entry has been deleted that is attached to a pre-launch release.",
376
+ schema: EntryDeletePayloadSchema.and(ReleaseEntryPayloadSchema)
377
+ },
378
+ {
379
+ release: {
380
+ id: "48293345-f2d0-1125-afda-7c661abad432",
381
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
382
+ },
383
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
384
+ name: "About Us",
385
+ type: "page",
386
+ slug: "/about-us",
387
+ project: {
388
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
389
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
390
+ },
391
+ state: 64
392
+ }
393
+ );
394
+ var EntryReleaseDeletedEventName = EntryReleaseDeletedDefinition["event"];
395
+
396
+ // src/entry/entry.release.published.ts
397
+ var EntryReleasePublishedDefinition = definition(
398
+ {
399
+ event: "entry.release.published",
400
+ name: "Entry Published on Release",
401
+ description: "Triggers when an entry has been published that is attached to a pre-launch release.",
402
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
403
+ },
404
+ {
405
+ release: {
406
+ id: "48293345-f2d0-1125-afda-7c661abad432",
407
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
408
+ },
409
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
410
+ name: "About Us",
411
+ slug: "/about-us",
412
+ type: "page",
413
+ project: {
414
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
415
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
416
+ },
417
+ state: 64,
418
+ 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`,
419
+ 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`,
420
+ 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`
421
+ }
422
+ );
423
+ var EntryReleasePublishedEventName = EntryReleasePublishedDefinition["event"];
424
+
213
425
  // src/manifest/manifest.published.ts
214
- import { z as z5 } from "zod";
426
+ import { z as z3 } from "zod";
215
427
  var ManifestPublishedDefinition = definition(
216
428
  {
217
429
  event: "manifest.published",
218
430
  name: "Manifest Published",
219
431
  description: "Triggers when a manifest has been published.",
220
- schema: z5.object({
221
- timestamp: z5.number(),
222
- site: z5.object({
223
- id: z5.string(),
224
- name: z5.string()
432
+ schema: z3.object({
433
+ timestamp: z3.number(),
434
+ site: z3.object({
435
+ id: z3.string(),
436
+ name: z3.string()
225
437
  })
226
438
  })
227
439
  },
@@ -236,16 +448,16 @@ var ManifestPublishedDefinition = definition(
236
448
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
237
449
 
238
450
  // src/project-map/projectMap.delete.ts
239
- import { z as z6 } from "zod";
451
+ import { z as z4 } from "zod";
240
452
  var ProjectMapDeleteDefinition = definition(
241
453
  {
242
454
  event: "projectmap.delete",
243
455
  name: "Project Map Deleted",
244
456
  description: "Triggers when a project map is deleted.",
245
- schema: z6.object({
246
- id: z6.string(),
247
- base_url: z6.string().optional(),
248
- project_id: z6.string()
457
+ schema: z4.object({
458
+ id: z4.string(),
459
+ base_url: z4.string().optional(),
460
+ project_id: z4.string()
249
461
  })
250
462
  },
251
463
  {
@@ -257,18 +469,18 @@ var ProjectMapDeleteDefinition = definition(
257
469
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
258
470
 
259
471
  // src/project-map/projectMap.node.delete.ts
260
- import { z as z7 } from "zod";
472
+ import { z as z5 } from "zod";
261
473
  var ProjectMapNodeDeleteDefinition = definition(
262
474
  {
263
475
  event: "projectmap.node.delete",
264
476
  name: "Project Map Node Deleted",
265
477
  description: "Triggers when a project map node is deleted.",
266
- schema: z7.object({
267
- project_id: z7.string(),
268
- project_map_id: z7.string(),
269
- id: z7.string(),
270
- path: z7.string(),
271
- composition_id: z7.string().optional()
478
+ schema: z5.object({
479
+ project_id: z5.string(),
480
+ project_map_id: z5.string(),
481
+ id: z5.string(),
482
+ path: z5.string(),
483
+ composition_id: z5.string().optional()
272
484
  })
273
485
  },
274
486
  {
@@ -282,18 +494,18 @@ var ProjectMapNodeDeleteDefinition = definition(
282
494
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
283
495
 
284
496
  // src/project-map/projectMap.node.insert.ts
285
- import { z as z8 } from "zod";
497
+ import { z as z6 } from "zod";
286
498
  var ProjectMapNodeInsertDefinition = definition(
287
499
  {
288
500
  event: "projectmap.node.insert",
289
501
  name: "Project Map Node Inserted",
290
502
  description: "Triggers when a project map node is inserted.",
291
- schema: z8.object({
292
- id: z8.string(),
293
- project_map_id: z8.string(),
294
- project_id: z8.string(),
295
- path: z8.string(),
296
- composition_id: z8.string().optional()
503
+ schema: z6.object({
504
+ id: z6.string(),
505
+ project_map_id: z6.string(),
506
+ project_id: z6.string(),
507
+ path: z6.string(),
508
+ composition_id: z6.string().optional()
297
509
  })
298
510
  },
299
511
  {
@@ -307,19 +519,19 @@ var ProjectMapNodeInsertDefinition = definition(
307
519
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
308
520
 
309
521
  // src/project-map/projectMap.node.update.ts
310
- import { z as z9 } from "zod";
522
+ import { z as z7 } from "zod";
311
523
  var ProjectMapNodeUpdateDefinition = definition(
312
524
  {
313
525
  event: "projectmap.node.update",
314
526
  name: "Project Map Node Updated",
315
527
  description: "Triggers when a project map node is updated.",
316
- schema: z9.object({
317
- id: z9.string(),
318
- project_map_id: z9.string(),
319
- project_id: z9.string(),
320
- path: z9.string(),
321
- composition_id: z9.string().optional(),
322
- previous_path: z9.string()
528
+ schema: z7.object({
529
+ id: z7.string(),
530
+ project_map_id: z7.string(),
531
+ project_id: z7.string(),
532
+ path: z7.string(),
533
+ composition_id: z7.string().optional(),
534
+ previous_path: z7.string()
323
535
  })
324
536
  },
325
537
  {
@@ -334,16 +546,16 @@ var ProjectMapNodeUpdateDefinition = definition(
334
546
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
335
547
 
336
548
  // src/project-map/projectMap.update.ts
337
- import { z as z10 } from "zod";
549
+ import { z as z8 } from "zod";
338
550
  var ProjectMapUpdateDefinition = definition(
339
551
  {
340
552
  event: "projectmap.update",
341
553
  name: "Project Map Updated",
342
554
  description: "Triggers when a project map is updated or created.",
343
- schema: z10.object({
344
- id: z10.string(),
345
- base_url: z10.string().optional(),
346
- project_id: z10.string()
555
+ schema: z8.object({
556
+ id: z8.string(),
557
+ base_url: z8.string().optional(),
558
+ project_id: z8.string()
347
559
  })
348
560
  },
349
561
  {
@@ -355,18 +567,18 @@ var ProjectMapUpdateDefinition = definition(
355
567
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
356
568
 
357
569
  // src/redirect/redirect.delete.ts
358
- import { z as z11 } from "zod";
570
+ import { z as z9 } from "zod";
359
571
  var RedirectDeleteDefinition = definition(
360
572
  {
361
573
  event: "redirect.delete",
362
574
  name: "Redirect Deleted",
363
575
  description: "Triggers when a redirect is deleted.",
364
- schema: z11.object({
365
- project_id: z11.string(),
366
- id: z11.string(),
367
- source_url: z11.string(),
368
- target_url: z11.string(),
369
- target_status_code: z11.number()
576
+ schema: z9.object({
577
+ project_id: z9.string(),
578
+ id: z9.string(),
579
+ source_url: z9.string(),
580
+ target_url: z9.string(),
581
+ target_status_code: z9.number()
370
582
  })
371
583
  },
372
584
  {
@@ -380,18 +592,18 @@ var RedirectDeleteDefinition = definition(
380
592
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
381
593
 
382
594
  // src/redirect/redirect.insert.ts
383
- import { z as z12 } from "zod";
595
+ import { z as z10 } from "zod";
384
596
  var RedirectInsertDefinition = definition(
385
597
  {
386
598
  event: "redirect.insert",
387
599
  name: "Redirect Inserted",
388
600
  description: "Triggers when a redirect is inserted.",
389
- schema: z12.object({
390
- project_id: z12.string(),
391
- id: z12.string(),
392
- source_url: z12.string(),
393
- target_url: z12.string(),
394
- target_status_code: z12.number()
601
+ schema: z10.object({
602
+ project_id: z10.string(),
603
+ id: z10.string(),
604
+ source_url: z10.string(),
605
+ target_url: z10.string(),
606
+ target_status_code: z10.number()
395
607
  })
396
608
  },
397
609
  {
@@ -405,18 +617,18 @@ var RedirectInsertDefinition = definition(
405
617
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
406
618
 
407
619
  // src/redirect/redirect.update.ts
408
- import { z as z13 } from "zod";
620
+ import { z as z11 } from "zod";
409
621
  var RedirectUpdateDefinition = definition(
410
622
  {
411
623
  event: "redirect.update",
412
624
  name: "Redirect Updated",
413
625
  description: "Triggers when a redirect is updated.",
414
- schema: z13.object({
415
- project_id: z13.string(),
416
- id: z13.string(),
417
- source_url: z13.string(),
418
- target_url: z13.string(),
419
- target_status_code: z13.number()
626
+ schema: z11.object({
627
+ project_id: z11.string(),
628
+ id: z11.string(),
629
+ source_url: z11.string(),
630
+ target_url: z11.string(),
631
+ target_status_code: z11.number()
420
632
  })
421
633
  },
422
634
  {
@@ -428,21 +640,172 @@ var RedirectUpdateDefinition = definition(
428
640
  }
429
641
  );
430
642
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
643
+
644
+ // src/release/common.ts
645
+ import { z as z12 } from "zod";
646
+ var ReleasePayloadSchema = z12.object({
647
+ id: z12.string(),
648
+ state: z12.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
649
+ name: z12.string(),
650
+ project: z12.object({
651
+ id: z12.string(),
652
+ url: z12.string()
653
+ }),
654
+ autoLaunchSchedule: z12.number().optional(),
655
+ autoLaunchScheduleTimeZone: z12.string().optional(),
656
+ edit_url: z12.string(),
657
+ api_url: z12.string()
658
+ });
659
+
660
+ // src/release/release.changed.ts
661
+ var ReleaseChangedDefinition = definition(
662
+ {
663
+ event: "release.changed",
664
+ name: "Release Changed",
665
+ description: "Triggers when a release definition has been changed.",
666
+ schema: ReleasePayloadSchema
667
+ },
668
+ {
669
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
670
+ name: "Sample Release",
671
+ project: {
672
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
673
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
674
+ },
675
+ state: "open",
676
+ autoLaunchSchedule: 12312412312,
677
+ autoLaunchScheduleTimeZone: "America/New_York",
678
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
679
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
680
+ }
681
+ );
682
+ var ReleaseChangedEventName = ReleaseChangedDefinition["event"];
683
+
684
+ // src/release/release.deleted.ts
685
+ var ReleaseDeletedDefinition = definition(
686
+ {
687
+ event: "release.deleted",
688
+ name: "Release Deleted",
689
+ description: "Triggers when a release, along with any contents, has been deleted.",
690
+ schema: ReleasePayloadSchema.omit({ api_url: true, edit_url: true })
691
+ },
692
+ {
693
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
694
+ name: "Sample Release",
695
+ project: {
696
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
697
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
698
+ },
699
+ state: "open",
700
+ autoLaunchSchedule: 1212412312,
701
+ autoLaunchScheduleTimeZone: "America/New_York"
702
+ }
703
+ );
704
+ var ReleaseDeletedEventName = ReleaseDeletedDefinition["event"];
705
+
706
+ // src/release/release.launch_started.ts
707
+ var ReleaseLaunchStartedDefinition = definition(
708
+ {
709
+ event: "release.launch_started",
710
+ name: "Release Launch Started",
711
+ description: "Triggers when a release starts launching.",
712
+ schema: ReleasePayloadSchema
713
+ },
714
+ {
715
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
716
+ name: "Sample Release",
717
+ project: {
718
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
719
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
720
+ },
721
+ state: "open",
722
+ autoLaunchSchedule: 12312412312,
723
+ autoLaunchScheduleTimeZone: "America/New_York",
724
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
725
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
726
+ }
727
+ );
728
+ var ReleaseLaunchStartedEventName = ReleaseLaunchStartedDefinition["event"];
729
+
730
+ // src/release/release.launched.ts
731
+ var ReleaseLaunchedDefinition = definition(
732
+ {
733
+ event: "release.launched",
734
+ name: "Release Launched",
735
+ description: "Triggers when a release completes launching.",
736
+ schema: ReleasePayloadSchema
737
+ },
738
+ {
739
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
740
+ name: "Sample Release",
741
+ project: {
742
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
743
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
744
+ },
745
+ state: "open",
746
+ autoLaunchSchedule: 12312412312,
747
+ autoLaunchScheduleTimeZone: "America/New_York",
748
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
749
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
750
+ }
751
+ );
752
+ var ReleaseLaunchedEventName = ReleaseLaunchedDefinition["event"];
753
+
754
+ // src/release/release.launchstarted.ts
755
+ var ArchivedReleaseLaunchStartedDefinition = definition(
756
+ {
757
+ event: "release.launchstarted",
758
+ name: "Release Launch Started",
759
+ description: "Triggers when a release starts launching.",
760
+ schema: ReleasePayloadSchema,
761
+ archived: true
762
+ },
763
+ {
764
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
765
+ name: "Sample Release",
766
+ project: {
767
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
768
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
769
+ },
770
+ state: "open",
771
+ autoLaunchSchedule: 12312412312,
772
+ autoLaunchScheduleTimeZone: "America/New_York",
773
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
774
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
775
+ }
776
+ );
431
777
  export {
778
+ ArchivedReleaseLaunchStartedDefinition,
432
779
  CompositionChangedDefinition,
433
780
  CompositionChangedEventName,
781
+ CompositionDeletePayloadSchema,
434
782
  CompositionDeletedDefinition,
435
783
  CompositionDeletedEventName,
436
784
  CompositionPayloadSchema,
437
785
  CompositionPublishedDefinition,
438
786
  CompositionPublishedEventName,
787
+ CompositionReleaseChangedDefinition,
788
+ CompositionReleaseChangedEventName,
789
+ CompositionReleaseDeletedDefinition,
790
+ CompositionReleaseDeletedEventName,
791
+ CompositionReleasePublishedDefinition,
792
+ CompositionReleasePublishedEventName,
793
+ CompositionTriggerPayloadSchema,
439
794
  EntryChangedDefinition,
440
795
  EntryChangedEventName,
796
+ EntryDeletePayloadSchema,
441
797
  EntryDeletedDefinition,
442
798
  EntryDeletedEventName,
443
799
  EntryPayloadSchema,
444
800
  EntryPublishedDefinition,
445
801
  EntryPublishedEventName,
802
+ EntryReleaseChangedDefinition,
803
+ EntryReleaseChangedEventName,
804
+ EntryReleaseDeletedDefinition,
805
+ EntryReleaseDeletedEventName,
806
+ EntryReleasePublishedDefinition,
807
+ EntryReleasePublishedEventName,
808
+ EntryTriggerPayloadSchema,
446
809
  ManifestPublishedDefinition,
447
810
  ManifestPublishedEventName,
448
811
  ProjectMapDeleteDefinition,
@@ -461,6 +824,17 @@ export {
461
824
  RedirectInsertedEventName,
462
825
  RedirectUpdateDefinition,
463
826
  RedirectUpdatedEventName,
827
+ ReleaseChangedDefinition,
828
+ ReleaseChangedEventName,
829
+ ReleaseCompositionPayloadSchema,
830
+ ReleaseDeletedDefinition,
831
+ ReleaseDeletedEventName,
832
+ ReleaseEntryPayloadSchema,
833
+ ReleaseLaunchStartedDefinition,
834
+ ReleaseLaunchStartedEventName,
835
+ ReleaseLaunchedDefinition,
836
+ ReleaseLaunchedEventName,
837
+ ReleasePayloadSchema,
464
838
  definition,
465
839
  isDefinition
466
840
  };