@uniformdev/webhooks 19.119.0 → 19.121.1-alpha.3

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.mjs CHANGED
@@ -1,18 +1,33 @@
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 CompositionDeletePayloadSchema = CompositionCorePayloadSchema.and(
14
+ z.object({
15
+ state: z.number().optional()
16
+ })
17
+ );
18
+ var CompositionPayloadSchema = CompositionCorePayloadSchema.and(
19
+ z.object({
20
+ state: z.number(),
21
+ edit_url: z.string(),
22
+ api_url: z.string(),
23
+ edge_url: z.string()
24
+ })
25
+ );
26
+ var ReleaseCompositionPayloadSchema = z.object({
27
+ release: z.object({
28
+ id: z.string(),
29
+ url: z.string()
30
+ })
16
31
  });
17
32
 
18
33
  // src/definition.ts
@@ -53,23 +68,12 @@ var CompositionChangedDefinition = definition(
53
68
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
54
69
 
55
70
  // src/composition/composition.deleted.ts
56
- import { z as z2 } from "zod";
57
71
  var CompositionDeletedDefinition = definition(
58
72
  {
59
73
  event: "composition.deleted",
60
74
  name: "Composition Deleted",
61
75
  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
- })
76
+ schema: CompositionDeletePayloadSchema
73
77
  },
74
78
  {
75
79
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
@@ -110,21 +114,120 @@ var CompositionPublishedDefinition = definition(
110
114
  );
111
115
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
112
116
 
117
+ // src/composition/composition.release.changed.ts
118
+ var CompositionReleaseChangedDefinition = definition(
119
+ {
120
+ event: "composition.release.changed",
121
+ name: "Composition Changed on Release",
122
+ description: "Triggers when a composition has been changed or copied to a pre-launch release.",
123
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
124
+ },
125
+ {
126
+ release: {
127
+ id: "48293345-f2d0-1125-afda-7c661abad432",
128
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
129
+ },
130
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
131
+ name: "About Us",
132
+ slug: "/about-us",
133
+ type: "page",
134
+ project: {
135
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
136
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
137
+ },
138
+ state: 64,
139
+ 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`,
140
+ 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`,
141
+ 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`
142
+ }
143
+ );
144
+ var CompositionReleaseChangedEventName = CompositionReleaseChangedDefinition["event"];
145
+
146
+ // src/composition/composition.release.deleted.ts
147
+ var CompositionReleaseDeletedDefinition = definition(
148
+ {
149
+ event: "composition.release.deleted",
150
+ name: "Composition Deleted on Release",
151
+ description: "Triggers when a composition is deleted that is attached to a pre-launch release.",
152
+ schema: CompositionDeletePayloadSchema.and(ReleaseCompositionPayloadSchema)
153
+ },
154
+ {
155
+ release: {
156
+ id: "48293345-f2d0-1125-afda-7c661abad432",
157
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
158
+ },
159
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
160
+ state: 64,
161
+ name: "About Us",
162
+ type: "page",
163
+ slug: "/about-us",
164
+ project: {
165
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
166
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
167
+ }
168
+ }
169
+ );
170
+ var CompositionReleaseDeletedEventName = CompositionReleaseDeletedDefinition["event"];
171
+
172
+ // src/composition/composition.release.published.ts
173
+ var CompositionReleasePublishedDefinition = definition(
174
+ {
175
+ event: "composition.release.published",
176
+ name: "Composition Published on Release",
177
+ description: "Triggers when a composition has been published that is attached to an pre-launch release.",
178
+ schema: CompositionPayloadSchema.and(ReleaseCompositionPayloadSchema)
179
+ },
180
+ {
181
+ release: {
182
+ id: "48293345-f2d0-1125-afda-7c661abad432",
183
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
184
+ },
185
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
186
+ name: "About Us",
187
+ slug: "/about-us",
188
+ type: "page",
189
+ project: {
190
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
191
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
192
+ },
193
+ state: 64,
194
+ 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`,
195
+ 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`,
196
+ 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`
197
+ }
198
+ );
199
+ var CompositionReleasePublishedEventName = CompositionReleasePublishedDefinition["event"];
200
+
113
201
  // 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()
202
+ import { z as z2 } from "zod";
203
+ var EntryCorePayloadSchema = z2.object({
204
+ id: z2.string(),
205
+ slug: z2.string().optional(),
206
+ name: z2.string(),
207
+ type: z2.string(),
208
+ project: z2.object({
209
+ id: z2.string(),
210
+ url: z2.string()
211
+ })
212
+ });
213
+ var EntryDeletePayloadSchema = EntryCorePayloadSchema.and(
214
+ z2.object({
215
+ state: z2.number().optional()
216
+ })
217
+ );
218
+ var EntryPayloadSchema = EntryCorePayloadSchema.and(
219
+ z2.object({
220
+ state: z2.number(),
221
+ edit_url: z2.string(),
222
+ api_url: z2.string(),
223
+ edge_url: z2.string()
224
+ })
225
+ );
226
+ var ReleaseEntryPayloadSchema = z2.object({
227
+ release: z2.object({
228
+ id: z2.string(),
229
+ url: z2.string()
230
+ })
128
231
  });
129
232
 
130
233
  // src/entry/entry.changed.ts
@@ -153,23 +256,12 @@ var EntryChangedDefinition = definition(
153
256
  var EntryChangedEventName = EntryChangedDefinition["event"];
154
257
 
155
258
  // src/entry/entry.deleted.ts
156
- import { z as z4 } from "zod";
157
259
  var EntryDeletedDefinition = definition(
158
260
  {
159
261
  event: "entry.deleted",
160
262
  name: "Entry Deleted",
161
263
  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
- })
264
+ schema: EntryDeletePayloadSchema
173
265
  },
174
266
  {
175
267
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
@@ -210,18 +302,102 @@ var EntryPublishedDefinition = definition(
210
302
  );
211
303
  var EntryPublishedEventName = EntryPublishedDefinition["event"];
212
304
 
305
+ // src/entry/entry.release.changed.ts
306
+ var EntryReleaseChangedDefinition = definition(
307
+ {
308
+ event: "entry.release.changed",
309
+ name: "Entry Changed on Release",
310
+ description: "Triggers when an entry has been changed that is attached to a pre-launch release.",
311
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
312
+ },
313
+ {
314
+ release: {
315
+ id: "48293345-f2d0-1125-afda-7c661abad432",
316
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
317
+ },
318
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
319
+ name: "About Us",
320
+ slug: "/about-us",
321
+ type: "page",
322
+ project: {
323
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
324
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
325
+ },
326
+ state: 64,
327
+ 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`,
328
+ 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`,
329
+ 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`
330
+ }
331
+ );
332
+ var EntryReleaseChangedEventName = EntryReleaseChangedDefinition["event"];
333
+
334
+ // src/entry/entry.release.deleted.ts
335
+ var EntryReleaseDeletedDefinition = definition(
336
+ {
337
+ event: "entry.release.deleted",
338
+ name: "Entry Deleted on Release",
339
+ description: "Triggers when an entry has been deleted that is attached to a pre-launch release.",
340
+ schema: EntryDeletePayloadSchema.and(ReleaseEntryPayloadSchema)
341
+ },
342
+ {
343
+ release: {
344
+ id: "48293345-f2d0-1125-afda-7c661abad432",
345
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
346
+ },
347
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
348
+ name: "About Us",
349
+ type: "page",
350
+ slug: "/about-us",
351
+ project: {
352
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
353
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
354
+ },
355
+ state: 64
356
+ }
357
+ );
358
+ var EntryReleaseDeletedEventName = EntryReleaseDeletedDefinition["event"];
359
+
360
+ // src/entry/entry.release.published.ts
361
+ var EntryReleasePublishedDefinition = definition(
362
+ {
363
+ event: "entry.release.published",
364
+ name: "Entry Published on Release",
365
+ description: "Triggers when an entry has been published that is attached to a pre-launch release.",
366
+ schema: EntryPayloadSchema.and(ReleaseEntryPayloadSchema)
367
+ },
368
+ {
369
+ release: {
370
+ id: "48293345-f2d0-1125-afda-7c661abad432",
371
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
372
+ },
373
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
374
+ name: "About Us",
375
+ slug: "/about-us",
376
+ type: "page",
377
+ project: {
378
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
379
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
380
+ },
381
+ state: 64,
382
+ 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`,
383
+ 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`,
384
+ 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`
385
+ }
386
+ );
387
+ var EntryReleasePublishedEventName = EntryReleasePublishedDefinition["event"];
388
+
213
389
  // src/manifest/manifest.published.ts
214
- import { z as z5 } from "zod";
390
+ import { z as z3 } from "zod";
215
391
  var ManifestPublishedDefinition = definition(
216
392
  {
217
393
  event: "manifest.published",
218
394
  name: "Manifest Published",
219
395
  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()
396
+ schema: z3.object({
397
+ timestamp: z3.number(),
398
+ site: z3.object({
399
+ id: z3.string(),
400
+ name: z3.string()
225
401
  })
226
402
  })
227
403
  },
@@ -236,16 +412,16 @@ var ManifestPublishedDefinition = definition(
236
412
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
237
413
 
238
414
  // src/project-map/projectMap.delete.ts
239
- import { z as z6 } from "zod";
415
+ import { z as z4 } from "zod";
240
416
  var ProjectMapDeleteDefinition = definition(
241
417
  {
242
418
  event: "projectmap.delete",
243
419
  name: "Project Map Deleted",
244
420
  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()
421
+ schema: z4.object({
422
+ id: z4.string(),
423
+ base_url: z4.string().optional(),
424
+ project_id: z4.string()
249
425
  })
250
426
  },
251
427
  {
@@ -257,18 +433,18 @@ var ProjectMapDeleteDefinition = definition(
257
433
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
258
434
 
259
435
  // src/project-map/projectMap.node.delete.ts
260
- import { z as z7 } from "zod";
436
+ import { z as z5 } from "zod";
261
437
  var ProjectMapNodeDeleteDefinition = definition(
262
438
  {
263
439
  event: "projectmap.node.delete",
264
440
  name: "Project Map Node Deleted",
265
441
  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()
442
+ schema: z5.object({
443
+ project_id: z5.string(),
444
+ project_map_id: z5.string(),
445
+ id: z5.string(),
446
+ path: z5.string(),
447
+ composition_id: z5.string().optional()
272
448
  })
273
449
  },
274
450
  {
@@ -282,18 +458,18 @@ var ProjectMapNodeDeleteDefinition = definition(
282
458
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
283
459
 
284
460
  // src/project-map/projectMap.node.insert.ts
285
- import { z as z8 } from "zod";
461
+ import { z as z6 } from "zod";
286
462
  var ProjectMapNodeInsertDefinition = definition(
287
463
  {
288
464
  event: "projectmap.node.insert",
289
465
  name: "Project Map Node Inserted",
290
466
  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()
467
+ schema: z6.object({
468
+ id: z6.string(),
469
+ project_map_id: z6.string(),
470
+ project_id: z6.string(),
471
+ path: z6.string(),
472
+ composition_id: z6.string().optional()
297
473
  })
298
474
  },
299
475
  {
@@ -307,19 +483,19 @@ var ProjectMapNodeInsertDefinition = definition(
307
483
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
308
484
 
309
485
  // src/project-map/projectMap.node.update.ts
310
- import { z as z9 } from "zod";
486
+ import { z as z7 } from "zod";
311
487
  var ProjectMapNodeUpdateDefinition = definition(
312
488
  {
313
489
  event: "projectmap.node.update",
314
490
  name: "Project Map Node Updated",
315
491
  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()
492
+ schema: z7.object({
493
+ id: z7.string(),
494
+ project_map_id: z7.string(),
495
+ project_id: z7.string(),
496
+ path: z7.string(),
497
+ composition_id: z7.string().optional(),
498
+ previous_path: z7.string()
323
499
  })
324
500
  },
325
501
  {
@@ -334,16 +510,16 @@ var ProjectMapNodeUpdateDefinition = definition(
334
510
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
335
511
 
336
512
  // src/project-map/projectMap.update.ts
337
- import { z as z10 } from "zod";
513
+ import { z as z8 } from "zod";
338
514
  var ProjectMapUpdateDefinition = definition(
339
515
  {
340
516
  event: "projectmap.update",
341
517
  name: "Project Map Updated",
342
518
  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()
519
+ schema: z8.object({
520
+ id: z8.string(),
521
+ base_url: z8.string().optional(),
522
+ project_id: z8.string()
347
523
  })
348
524
  },
349
525
  {
@@ -355,18 +531,18 @@ var ProjectMapUpdateDefinition = definition(
355
531
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
356
532
 
357
533
  // src/redirect/redirect.delete.ts
358
- import { z as z11 } from "zod";
534
+ import { z as z9 } from "zod";
359
535
  var RedirectDeleteDefinition = definition(
360
536
  {
361
537
  event: "redirect.delete",
362
538
  name: "Redirect Deleted",
363
539
  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()
540
+ schema: z9.object({
541
+ project_id: z9.string(),
542
+ id: z9.string(),
543
+ source_url: z9.string(),
544
+ target_url: z9.string(),
545
+ target_status_code: z9.number()
370
546
  })
371
547
  },
372
548
  {
@@ -380,18 +556,18 @@ var RedirectDeleteDefinition = definition(
380
556
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
381
557
 
382
558
  // src/redirect/redirect.insert.ts
383
- import { z as z12 } from "zod";
559
+ import { z as z10 } from "zod";
384
560
  var RedirectInsertDefinition = definition(
385
561
  {
386
562
  event: "redirect.insert",
387
563
  name: "Redirect Inserted",
388
564
  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()
565
+ schema: z10.object({
566
+ project_id: z10.string(),
567
+ id: z10.string(),
568
+ source_url: z10.string(),
569
+ target_url: z10.string(),
570
+ target_status_code: z10.number()
395
571
  })
396
572
  },
397
573
  {
@@ -405,18 +581,18 @@ var RedirectInsertDefinition = definition(
405
581
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
406
582
 
407
583
  // src/redirect/redirect.update.ts
408
- import { z as z13 } from "zod";
584
+ import { z as z11 } from "zod";
409
585
  var RedirectUpdateDefinition = definition(
410
586
  {
411
587
  event: "redirect.update",
412
588
  name: "Redirect Updated",
413
589
  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()
590
+ schema: z11.object({
591
+ project_id: z11.string(),
592
+ id: z11.string(),
593
+ source_url: z11.string(),
594
+ target_url: z11.string(),
595
+ target_status_code: z11.number()
420
596
  })
421
597
  },
422
598
  {
@@ -428,21 +604,145 @@ var RedirectUpdateDefinition = definition(
428
604
  }
429
605
  );
430
606
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
607
+
608
+ // src/release/common.ts
609
+ import { z as z12 } from "zod";
610
+ var ReleasePayloadSchema = z12.object({
611
+ id: z12.string(),
612
+ state: z12.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
613
+ name: z12.string(),
614
+ project: z12.object({
615
+ id: z12.string(),
616
+ url: z12.string()
617
+ }),
618
+ autoLaunchSchedule: z12.number().optional(),
619
+ autoLaunchScheduleTimeZone: z12.string().optional(),
620
+ edit_url: z12.string(),
621
+ api_url: z12.string()
622
+ });
623
+
624
+ // src/release/release.changed.ts
625
+ var ReleaseChangedDefinition = definition(
626
+ {
627
+ event: "release.changed",
628
+ name: "Release Changed",
629
+ description: "Triggers when a release definition has been changed.",
630
+ schema: ReleasePayloadSchema
631
+ },
632
+ {
633
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
634
+ name: "Sample Release",
635
+ project: {
636
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
637
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
638
+ },
639
+ state: "open",
640
+ autoLaunchSchedule: 12312412312,
641
+ autoLaunchScheduleTimeZone: "America/New_York",
642
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
643
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
644
+ }
645
+ );
646
+ var ReleaseChangedEventName = ReleaseChangedDefinition["event"];
647
+
648
+ // src/release/release.deleted.ts
649
+ var ReleaseDeletedDefinition = definition(
650
+ {
651
+ event: "release.deleted",
652
+ name: "Release Deleted",
653
+ description: "Triggers when a release, along with any contents, has been deleted.",
654
+ schema: ReleasePayloadSchema.omit({ api_url: true, edit_url: true })
655
+ },
656
+ {
657
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
658
+ name: "Sample Release",
659
+ project: {
660
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
661
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
662
+ },
663
+ state: "open",
664
+ autoLaunchSchedule: 1212412312,
665
+ autoLaunchScheduleTimeZone: "America/New_York"
666
+ }
667
+ );
668
+ var ReleaseDeletedEventName = ReleaseDeletedDefinition["event"];
669
+
670
+ // src/release/release.launched.ts
671
+ var ReleaseLaunchedDefinition = definition(
672
+ {
673
+ event: "release.launched",
674
+ name: "Release Launched",
675
+ description: "Triggers when a release completes launching.",
676
+ schema: ReleasePayloadSchema
677
+ },
678
+ {
679
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
680
+ name: "Sample Release",
681
+ project: {
682
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
683
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
684
+ },
685
+ state: "open",
686
+ autoLaunchSchedule: 12312412312,
687
+ autoLaunchScheduleTimeZone: "America/New_York",
688
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
689
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
690
+ }
691
+ );
692
+ var ReleaseLaunchedEventName = ReleaseLaunchedDefinition["event"];
693
+
694
+ // src/release/release.launchstarted.ts
695
+ var ReleaseLaunchStartedDefinition = definition(
696
+ {
697
+ event: "release.launchstarted",
698
+ name: "Release Launch Started",
699
+ description: "Triggers when a release starts launching.",
700
+ schema: ReleasePayloadSchema
701
+ },
702
+ {
703
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
704
+ name: "Sample Release",
705
+ project: {
706
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
707
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
708
+ },
709
+ state: "open",
710
+ autoLaunchSchedule: 12312412312,
711
+ autoLaunchScheduleTimeZone: "America/New_York",
712
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
713
+ api_url: `https://uniform.app/api/v1/releases?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&releaseIDs=0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
714
+ }
715
+ );
716
+ var ReleaseLaunchStartedEventName = ReleaseLaunchStartedDefinition["event"];
431
717
  export {
432
718
  CompositionChangedDefinition,
433
719
  CompositionChangedEventName,
720
+ CompositionDeletePayloadSchema,
434
721
  CompositionDeletedDefinition,
435
722
  CompositionDeletedEventName,
436
723
  CompositionPayloadSchema,
437
724
  CompositionPublishedDefinition,
438
725
  CompositionPublishedEventName,
726
+ CompositionReleaseChangedDefinition,
727
+ CompositionReleaseChangedEventName,
728
+ CompositionReleaseDeletedDefinition,
729
+ CompositionReleaseDeletedEventName,
730
+ CompositionReleasePublishedDefinition,
731
+ CompositionReleasePublishedEventName,
439
732
  EntryChangedDefinition,
440
733
  EntryChangedEventName,
734
+ EntryDeletePayloadSchema,
441
735
  EntryDeletedDefinition,
442
736
  EntryDeletedEventName,
443
737
  EntryPayloadSchema,
444
738
  EntryPublishedDefinition,
445
739
  EntryPublishedEventName,
740
+ EntryReleaseChangedDefinition,
741
+ EntryReleaseChangedEventName,
742
+ EntryReleaseDeletedDefinition,
743
+ EntryReleaseDeletedEventName,
744
+ EntryReleasePublishedDefinition,
745
+ EntryReleasePublishedEventName,
446
746
  ManifestPublishedDefinition,
447
747
  ManifestPublishedEventName,
448
748
  ProjectMapDeleteDefinition,
@@ -461,6 +761,17 @@ export {
461
761
  RedirectInsertedEventName,
462
762
  RedirectUpdateDefinition,
463
763
  RedirectUpdatedEventName,
764
+ ReleaseChangedDefinition,
765
+ ReleaseChangedEventName,
766
+ ReleaseCompositionPayloadSchema,
767
+ ReleaseDeletedDefinition,
768
+ ReleaseDeletedEventName,
769
+ ReleaseEntryPayloadSchema,
770
+ ReleaseLaunchStartedDefinition,
771
+ ReleaseLaunchStartedEventName,
772
+ ReleaseLaunchedDefinition,
773
+ ReleaseLaunchedEventName,
774
+ ReleasePayloadSchema,
464
775
  definition,
465
776
  isDefinition
466
777
  };