@uniformdev/webhooks 20.34.2-alpha.67 → 20.35.1-alpha.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import * as zod from 'zod';
2
- import { z, ZodObject, ZodRawShape } from 'zod';
1
+ import * as z from 'zod';
3
2
 
4
3
  declare const CompositionTriggerPayloadSchema: z.ZodObject<{
5
4
  trigger: z.ZodOptional<z.ZodObject<{
@@ -264,7 +263,7 @@ declare const ReleaseCompositionPayloadSchema: z.ZodObject<{
264
263
  type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
265
264
  type ReleaseCompositionPayload = z.infer<typeof ReleaseCompositionPayloadSchema>;
266
265
 
267
- declare const addEventTypeToSchema: <T extends ZodObject<ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
266
+ declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
268
267
  eventType: z.ZodLiteral<EventType>;
269
268
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T["shape"] & {
270
269
  eventType: z.ZodLiteral<EventType>;
@@ -275,14 +274,14 @@ declare const addEventTypeToSchema: <T extends ZodObject<ZodRawShape>, EventType
275
274
  }>]: z.baseObjectInputType<T["shape"] & {
276
275
  eventType: z.ZodLiteral<EventType>;
277
276
  }>[k_1]; }>;
278
- type DefinitionOptions<TSchema extends ZodObject<ZodRawShape>, EventType extends string> = {
277
+ type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
279
278
  event: EventType;
280
279
  name: string;
281
280
  description: string;
282
281
  schema: TSchema;
283
282
  archived?: boolean;
284
283
  };
285
- type Definition<TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
284
+ type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
286
285
  schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
287
286
  _definition: true;
288
287
  example: z.TypeOf<TSchema> & {
@@ -290,7 +289,7 @@ type Definition<TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>,
290
289
  };
291
290
  };
292
291
  declare const isDefinition: (obj: any) => obj is Definition;
293
- declare const definition: <TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
292
+ declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
294
293
  declare const webhookInitiatorSchema: z.ZodObject<{
295
294
  id: z.ZodString;
296
295
  name: z.ZodOptional<z.ZodString>;
@@ -2589,25 +2588,25 @@ declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
2589
2588
  type ReleaseLaunchedPayload = z.infer<(typeof ReleaseLaunchedDefinition)['schema']>;
2590
2589
  declare const ReleaseLaunchedEventName: "release.launched";
2591
2590
 
2592
- declare const ArchivedReleaseLaunchStartedDefinition: Definition<zod.ZodObject<{
2593
- id: zod.ZodString;
2594
- state: zod.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
2595
- name: zod.ZodString;
2596
- project: zod.ZodObject<{
2597
- id: zod.ZodString;
2598
- url: zod.ZodString;
2599
- }, "strip", zod.ZodTypeAny, {
2591
+ declare const ArchivedReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
2592
+ id: z.ZodString;
2593
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
2594
+ name: z.ZodString;
2595
+ project: z.ZodObject<{
2596
+ id: z.ZodString;
2597
+ url: z.ZodString;
2598
+ }, "strip", z.ZodTypeAny, {
2600
2599
  id: string;
2601
2600
  url: string;
2602
2601
  }, {
2603
2602
  id: string;
2604
2603
  url: string;
2605
2604
  }>;
2606
- autoLaunchSchedule: zod.ZodOptional<zod.ZodNumber>;
2607
- autoLaunchScheduleTimeZone: zod.ZodOptional<zod.ZodString>;
2608
- edit_url: zod.ZodString;
2609
- api_url: zod.ZodString;
2610
- }, "strip", zod.ZodTypeAny, {
2605
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
2606
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
2607
+ edit_url: z.ZodString;
2608
+ api_url: z.ZodString;
2609
+ }, "strip", z.ZodTypeAny, {
2611
2610
  name: string;
2612
2611
  id: string;
2613
2612
  project: {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import * as zod from 'zod';
2
- import { z, ZodObject, ZodRawShape } from 'zod';
1
+ import * as z from 'zod';
3
2
 
4
3
  declare const CompositionTriggerPayloadSchema: z.ZodObject<{
5
4
  trigger: z.ZodOptional<z.ZodObject<{
@@ -264,7 +263,7 @@ declare const ReleaseCompositionPayloadSchema: z.ZodObject<{
264
263
  type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
265
264
  type ReleaseCompositionPayload = z.infer<typeof ReleaseCompositionPayloadSchema>;
266
265
 
267
- declare const addEventTypeToSchema: <T extends ZodObject<ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
266
+ declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
268
267
  eventType: z.ZodLiteral<EventType>;
269
268
  }, "strip", z.ZodTypeAny, { [k in keyof z.objectUtil.addQuestionMarks<z.baseObjectOutputType<T["shape"] & {
270
269
  eventType: z.ZodLiteral<EventType>;
@@ -275,14 +274,14 @@ declare const addEventTypeToSchema: <T extends ZodObject<ZodRawShape>, EventType
275
274
  }>]: z.baseObjectInputType<T["shape"] & {
276
275
  eventType: z.ZodLiteral<EventType>;
277
276
  }>[k_1]; }>;
278
- type DefinitionOptions<TSchema extends ZodObject<ZodRawShape>, EventType extends string> = {
277
+ type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
279
278
  event: EventType;
280
279
  name: string;
281
280
  description: string;
282
281
  schema: TSchema;
283
282
  archived?: boolean;
284
283
  };
285
- type Definition<TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
284
+ type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
286
285
  schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
287
286
  _definition: true;
288
287
  example: z.TypeOf<TSchema> & {
@@ -290,7 +289,7 @@ type Definition<TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>,
290
289
  };
291
290
  };
292
291
  declare const isDefinition: (obj: any) => obj is Definition;
293
- declare const definition: <TSchema extends ZodObject<ZodRawShape> = ZodObject<ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
292
+ declare const definition: <TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string>(options: DefinitionOptions<TSchema, EventType>, example: z.infer<TSchema>) => Definition<TSchema, EventType>;
294
293
  declare const webhookInitiatorSchema: z.ZodObject<{
295
294
  id: z.ZodString;
296
295
  name: z.ZodOptional<z.ZodString>;
@@ -2589,25 +2588,25 @@ declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
2589
2588
  type ReleaseLaunchedPayload = z.infer<(typeof ReleaseLaunchedDefinition)['schema']>;
2590
2589
  declare const ReleaseLaunchedEventName: "release.launched";
2591
2590
 
2592
- declare const ArchivedReleaseLaunchStartedDefinition: Definition<zod.ZodObject<{
2593
- id: zod.ZodString;
2594
- state: zod.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
2595
- name: zod.ZodString;
2596
- project: zod.ZodObject<{
2597
- id: zod.ZodString;
2598
- url: zod.ZodString;
2599
- }, "strip", zod.ZodTypeAny, {
2591
+ declare const ArchivedReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
2592
+ id: z.ZodString;
2593
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
2594
+ name: z.ZodString;
2595
+ project: z.ZodObject<{
2596
+ id: z.ZodString;
2597
+ url: z.ZodString;
2598
+ }, "strip", z.ZodTypeAny, {
2600
2599
  id: string;
2601
2600
  url: string;
2602
2601
  }, {
2603
2602
  id: string;
2604
2603
  url: string;
2605
2604
  }>;
2606
- autoLaunchSchedule: zod.ZodOptional<zod.ZodNumber>;
2607
- autoLaunchScheduleTimeZone: zod.ZodOptional<zod.ZodString>;
2608
- edit_url: zod.ZodString;
2609
- api_url: zod.ZodString;
2610
- }, "strip", zod.ZodTypeAny, {
2605
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
2606
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
2607
+ edit_url: z.ZodString;
2608
+ api_url: z.ZodString;
2609
+ }, "strip", z.ZodTypeAny, {
2611
2610
  name: string;
2612
2611
  id: string;
2613
2612
  project: {
package/dist/index.esm.js CHANGED
@@ -1,8 +1,8 @@
1
1
  // src/composition/common.ts
2
- import { z as z2 } from "zod";
2
+ import * as z2 from "zod";
3
3
 
4
4
  // src/definition.ts
5
- import { z } from "zod";
5
+ import * as z from "zod";
6
6
  var addEventTypeToSchema = (schema, eventType) => z.object({
7
7
  ...schema.shape,
8
8
  eventType: z.literal(eventType)
@@ -310,7 +310,7 @@ var CompositionReleaseRestoredDefinition = definition(
310
310
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
311
311
 
312
312
  // src/entry/common.ts
313
- import { z as z3 } from "zod";
313
+ import * as z3 from "zod";
314
314
  var EntryCorePayloadSchema = z3.object({
315
315
  id: z3.string(),
316
316
  editionId: z3.string().optional(),
@@ -592,7 +592,7 @@ var EntryReleaseRestoredDefinition = definition(
592
592
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
593
593
 
594
594
  // src/manifest/manifest.published.ts
595
- import { z as z4 } from "zod";
595
+ import * as z4 from "zod";
596
596
  var ManifestPublishedDefinition = definition(
597
597
  {
598
598
  event: "manifest.published",
@@ -617,7 +617,7 @@ var ManifestPublishedDefinition = definition(
617
617
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
618
618
 
619
619
  // src/project-map/projectMap.delete.ts
620
- import { z as z5 } from "zod";
620
+ import * as z5 from "zod";
621
621
  var ProjectMapDeleteDefinition = definition(
622
622
  {
623
623
  event: "projectmap.delete",
@@ -638,7 +638,7 @@ var ProjectMapDeleteDefinition = definition(
638
638
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
639
639
 
640
640
  // src/project-map/projectMap.node.delete.ts
641
- import { z as z6 } from "zod";
641
+ import * as z6 from "zod";
642
642
  var ProjectMapNodeDeleteDefinition = definition(
643
643
  {
644
644
  event: "projectmap.node.delete",
@@ -686,7 +686,7 @@ var ProjectMapNodeDeleteDefinition = definition(
686
686
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
687
687
 
688
688
  // src/project-map/projectMap.node.insert.ts
689
- import { z as z7 } from "zod";
689
+ import * as z7 from "zod";
690
690
  var ProjectMapNodeInsertDefinition = definition(
691
691
  {
692
692
  event: "projectmap.node.insert",
@@ -734,7 +734,7 @@ var ProjectMapNodeInsertDefinition = definition(
734
734
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
735
735
 
736
736
  // src/project-map/projectMap.node.update.ts
737
- import { z as z8 } from "zod";
737
+ import * as z8 from "zod";
738
738
  var ProjectMapNodeUpdateDefinition = definition(
739
739
  {
740
740
  event: "projectmap.node.update",
@@ -786,7 +786,7 @@ var ProjectMapNodeUpdateDefinition = definition(
786
786
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
787
787
 
788
788
  // src/project-map/projectMap.update.ts
789
- import { z as z9 } from "zod";
789
+ import * as z9 from "zod";
790
790
  var ProjectMapUpdateDefinition = definition(
791
791
  {
792
792
  event: "projectmap.update",
@@ -807,7 +807,7 @@ var ProjectMapUpdateDefinition = definition(
807
807
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
808
808
 
809
809
  // src/redirect/redirect.delete.ts
810
- import { z as z10 } from "zod";
810
+ import * as z10 from "zod";
811
811
  var RedirectDeleteDefinition = definition(
812
812
  {
813
813
  event: "redirect.delete",
@@ -839,7 +839,7 @@ var RedirectDeleteDefinition = definition(
839
839
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
840
840
 
841
841
  // src/redirect/redirect.insert.ts
842
- import { z as z11 } from "zod";
842
+ import * as z11 from "zod";
843
843
  var RedirectInsertDefinition = definition(
844
844
  {
845
845
  event: "redirect.insert",
@@ -871,7 +871,7 @@ var RedirectInsertDefinition = definition(
871
871
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
872
872
 
873
873
  // src/redirect/redirect.update.ts
874
- import { z as z12 } from "zod";
874
+ import * as z12 from "zod";
875
875
  var RedirectUpdateDefinition = definition(
876
876
  {
877
877
  event: "redirect.update",
@@ -903,7 +903,7 @@ var RedirectUpdateDefinition = definition(
903
903
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
904
904
 
905
905
  // src/release/common.ts
906
- import { z as z13 } from "zod";
906
+ import * as z13 from "zod";
907
907
  var ReleasePayloadSchema = z13.object({
908
908
  id: z13.string(),
909
909
  state: z13.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
@@ -1037,7 +1037,7 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1037
1037
  );
1038
1038
 
1039
1039
  // src/workflow/common.ts
1040
- import { z as z14 } from "zod";
1040
+ import * as z14 from "zod";
1041
1041
  var WorkflowReferenceSchema = z14.strictObject({
1042
1042
  workflowId: z14.string(),
1043
1043
  workflowName: z14.string(),
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // src/index.ts
@@ -98,13 +108,13 @@ __export(src_exports, {
98
108
  module.exports = __toCommonJS(src_exports);
99
109
 
100
110
  // src/composition/common.ts
101
- var import_zod2 = require("zod");
111
+ var z2 = __toESM(require("zod"));
102
112
 
103
113
  // src/definition.ts
104
- var import_zod = require("zod");
105
- var addEventTypeToSchema = (schema, eventType) => import_zod.z.object({
114
+ var z = __toESM(require("zod"));
115
+ var addEventTypeToSchema = (schema, eventType) => z.object({
106
116
  ...schema.shape,
107
- eventType: import_zod.z.literal(eventType)
117
+ eventType: z.literal(eventType)
108
118
  });
109
119
  var isDefinition = (obj) => {
110
120
  return Object.hasOwn(obj, "_definition") && obj["_definition"];
@@ -120,48 +130,48 @@ var definition = (options, example) => {
120
130
  }
121
131
  };
122
132
  };
123
- var webhookInitiatorSchema = import_zod.z.strictObject({
124
- id: import_zod.z.string(),
125
- name: import_zod.z.string().optional(),
126
- email: import_zod.z.string().optional(),
127
- is_api_key: import_zod.z.boolean()
133
+ var webhookInitiatorSchema = z.strictObject({
134
+ id: z.string(),
135
+ name: z.string().optional(),
136
+ email: z.string().optional(),
137
+ is_api_key: z.boolean()
128
138
  });
129
139
 
130
140
  // src/composition/common.ts
131
- var CompositionCorePayloadSchema = import_zod2.z.object({
132
- id: import_zod2.z.string(),
133
- editionId: import_zod2.z.string().optional(),
134
- slug: import_zod2.z.string().optional(),
135
- name: import_zod2.z.string(),
136
- type: import_zod2.z.string(),
137
- project: import_zod2.z.object({
138
- id: import_zod2.z.string(),
139
- url: import_zod2.z.string()
141
+ var CompositionCorePayloadSchema = z2.object({
142
+ id: z2.string(),
143
+ editionId: z2.string().optional(),
144
+ slug: z2.string().optional(),
145
+ name: z2.string(),
146
+ type: z2.string(),
147
+ project: z2.object({
148
+ id: z2.string(),
149
+ url: z2.string()
140
150
  }),
141
151
  initiator: webhookInitiatorSchema
142
152
  });
143
- var CompositionTriggerPayloadSchema = import_zod2.z.object({
144
- trigger: import_zod2.z.object({
145
- type: import_zod2.z.enum(["release"]),
146
- id: import_zod2.z.string()
153
+ var CompositionTriggerPayloadSchema = z2.object({
154
+ trigger: z2.object({
155
+ type: z2.enum(["release"]),
156
+ id: z2.string()
147
157
  }).optional()
148
158
  });
149
159
  var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.extend({
150
- state: import_zod2.z.number().optional()
160
+ state: z2.number().optional()
151
161
  });
152
162
  var CompositionRestorePayloadSchema = CompositionCorePayloadSchema.extend({
153
- state: import_zod2.z.number()
163
+ state: z2.number()
154
164
  });
155
165
  var CompositionPayloadSchema = CompositionCorePayloadSchema.extend({
156
- state: import_zod2.z.number(),
157
- edit_url: import_zod2.z.string(),
158
- api_url: import_zod2.z.string(),
159
- edge_url: import_zod2.z.string()
166
+ state: z2.number(),
167
+ edit_url: z2.string(),
168
+ api_url: z2.string(),
169
+ edge_url: z2.string()
160
170
  });
161
- var ReleaseCompositionPayloadSchema = import_zod2.z.object({
162
- release: import_zod2.z.object({
163
- id: import_zod2.z.string(),
164
- url: import_zod2.z.string()
171
+ var ReleaseCompositionPayloadSchema = z2.object({
172
+ release: z2.object({
173
+ id: z2.string(),
174
+ url: z2.string()
165
175
  })
166
176
  });
167
177
 
@@ -409,41 +419,41 @@ var CompositionReleaseRestoredDefinition = definition(
409
419
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
410
420
 
411
421
  // src/entry/common.ts
412
- var import_zod3 = require("zod");
413
- var EntryCorePayloadSchema = import_zod3.z.object({
414
- id: import_zod3.z.string(),
415
- editionId: import_zod3.z.string().optional(),
416
- slug: import_zod3.z.string().optional(),
417
- name: import_zod3.z.string(),
418
- type: import_zod3.z.string(),
419
- project: import_zod3.z.object({
420
- id: import_zod3.z.string(),
421
- url: import_zod3.z.string()
422
+ var z3 = __toESM(require("zod"));
423
+ var EntryCorePayloadSchema = z3.object({
424
+ id: z3.string(),
425
+ editionId: z3.string().optional(),
426
+ slug: z3.string().optional(),
427
+ name: z3.string(),
428
+ type: z3.string(),
429
+ project: z3.object({
430
+ id: z3.string(),
431
+ url: z3.string()
422
432
  }),
423
433
  initiator: webhookInitiatorSchema
424
434
  });
425
- var EntryTriggerPayloadSchema = import_zod3.z.object({
426
- trigger: import_zod3.z.object({
427
- type: import_zod3.z.enum(["release"]),
428
- id: import_zod3.z.string()
435
+ var EntryTriggerPayloadSchema = z3.object({
436
+ trigger: z3.object({
437
+ type: z3.enum(["release"]),
438
+ id: z3.string()
429
439
  }).optional()
430
440
  });
431
441
  var EntryDeletePayloadSchema = EntryCorePayloadSchema.extend({
432
- state: import_zod3.z.number().optional()
442
+ state: z3.number().optional()
433
443
  });
434
444
  var EntryRestorePayloadSchema = EntryCorePayloadSchema.extend({
435
- state: import_zod3.z.number()
445
+ state: z3.number()
436
446
  });
437
447
  var EntryPayloadSchema = EntryCorePayloadSchema.extend({
438
- state: import_zod3.z.number(),
439
- edit_url: import_zod3.z.string(),
440
- api_url: import_zod3.z.string(),
441
- edge_url: import_zod3.z.string()
448
+ state: z3.number(),
449
+ edit_url: z3.string(),
450
+ api_url: z3.string(),
451
+ edge_url: z3.string()
442
452
  });
443
- var ReleaseEntryPayloadSchema = import_zod3.z.object({
444
- release: import_zod3.z.object({
445
- id: import_zod3.z.string(),
446
- url: import_zod3.z.string()
453
+ var ReleaseEntryPayloadSchema = z3.object({
454
+ release: z3.object({
455
+ id: z3.string(),
456
+ url: z3.string()
447
457
  })
448
458
  });
449
459
 
@@ -691,17 +701,17 @@ var EntryReleaseRestoredDefinition = definition(
691
701
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
692
702
 
693
703
  // src/manifest/manifest.published.ts
694
- var import_zod4 = require("zod");
704
+ var z4 = __toESM(require("zod"));
695
705
  var ManifestPublishedDefinition = definition(
696
706
  {
697
707
  event: "manifest.published",
698
708
  name: "Manifest Published",
699
709
  description: "Triggers when a manifest has been published.",
700
- schema: import_zod4.z.object({
701
- timestamp: import_zod4.z.string(),
702
- site: import_zod4.z.object({
703
- id: import_zod4.z.string(),
704
- name: import_zod4.z.string()
710
+ schema: z4.object({
711
+ timestamp: z4.string(),
712
+ site: z4.object({
713
+ id: z4.string(),
714
+ name: z4.string()
705
715
  })
706
716
  })
707
717
  },
@@ -716,16 +726,16 @@ var ManifestPublishedDefinition = definition(
716
726
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
717
727
 
718
728
  // src/project-map/projectMap.delete.ts
719
- var import_zod5 = require("zod");
729
+ var z5 = __toESM(require("zod"));
720
730
  var ProjectMapDeleteDefinition = definition(
721
731
  {
722
732
  event: "projectmap.delete",
723
733
  name: "Project Map Deleted",
724
734
  description: "Triggers when a project map is deleted.",
725
- schema: import_zod5.z.object({
726
- id: import_zod5.z.string(),
727
- base_url: import_zod5.z.string().optional(),
728
- project_id: import_zod5.z.string()
735
+ schema: z5.object({
736
+ id: z5.string(),
737
+ base_url: z5.string().optional(),
738
+ project_id: z5.string()
729
739
  })
730
740
  },
731
741
  {
@@ -737,24 +747,24 @@ var ProjectMapDeleteDefinition = definition(
737
747
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
738
748
 
739
749
  // src/project-map/projectMap.node.delete.ts
740
- var import_zod6 = require("zod");
750
+ var z6 = __toESM(require("zod"));
741
751
  var ProjectMapNodeDeleteDefinition = definition(
742
752
  {
743
753
  event: "projectmap.node.delete",
744
754
  name: "Project Map Node Deleted",
745
755
  description: "Triggers when a project map node is deleted.",
746
- schema: import_zod6.z.object({
747
- project_id: import_zod6.z.string(),
748
- project_map_id: import_zod6.z.string(),
749
- name: import_zod6.z.string(),
750
- id: import_zod6.z.string(),
751
- path: import_zod6.z.string(),
752
- composition_id: import_zod6.z.string().optional(),
753
- locales: import_zod6.z.record(
754
- import_zod6.z.object({
755
- name: import_zod6.z.string(),
756
- inherited: import_zod6.z.boolean(),
757
- path: import_zod6.z.string()
756
+ schema: z6.object({
757
+ project_id: z6.string(),
758
+ project_map_id: z6.string(),
759
+ name: z6.string(),
760
+ id: z6.string(),
761
+ path: z6.string(),
762
+ composition_id: z6.string().optional(),
763
+ locales: z6.record(
764
+ z6.object({
765
+ name: z6.string(),
766
+ inherited: z6.boolean(),
767
+ path: z6.string()
758
768
  })
759
769
  ).optional(),
760
770
  initiator: webhookInitiatorSchema
@@ -785,24 +795,24 @@ var ProjectMapNodeDeleteDefinition = definition(
785
795
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
786
796
 
787
797
  // src/project-map/projectMap.node.insert.ts
788
- var import_zod7 = require("zod");
798
+ var z7 = __toESM(require("zod"));
789
799
  var ProjectMapNodeInsertDefinition = definition(
790
800
  {
791
801
  event: "projectmap.node.insert",
792
802
  name: "Project Map Node Inserted",
793
803
  description: "Triggers when a project map node is inserted.",
794
- schema: import_zod7.z.object({
795
- id: import_zod7.z.string(),
796
- name: import_zod7.z.string(),
797
- project_map_id: import_zod7.z.string(),
798
- project_id: import_zod7.z.string(),
799
- path: import_zod7.z.string(),
800
- composition_id: import_zod7.z.string().optional(),
801
- locales: import_zod7.z.record(
802
- import_zod7.z.object({
803
- name: import_zod7.z.string(),
804
- inherited: import_zod7.z.boolean(),
805
- path: import_zod7.z.string()
804
+ schema: z7.object({
805
+ id: z7.string(),
806
+ name: z7.string(),
807
+ project_map_id: z7.string(),
808
+ project_id: z7.string(),
809
+ path: z7.string(),
810
+ composition_id: z7.string().optional(),
811
+ locales: z7.record(
812
+ z7.object({
813
+ name: z7.string(),
814
+ inherited: z7.boolean(),
815
+ path: z7.string()
806
816
  })
807
817
  ).optional(),
808
818
  initiator: webhookInitiatorSchema
@@ -833,26 +843,26 @@ var ProjectMapNodeInsertDefinition = definition(
833
843
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
834
844
 
835
845
  // src/project-map/projectMap.node.update.ts
836
- var import_zod8 = require("zod");
846
+ var z8 = __toESM(require("zod"));
837
847
  var ProjectMapNodeUpdateDefinition = definition(
838
848
  {
839
849
  event: "projectmap.node.update",
840
850
  name: "Project Map Node Updated",
841
851
  description: "Triggers when a project map node is updated.",
842
- schema: import_zod8.z.object({
843
- id: import_zod8.z.string(),
844
- name: import_zod8.z.string(),
845
- project_map_id: import_zod8.z.string(),
846
- project_id: import_zod8.z.string(),
847
- path: import_zod8.z.string(),
848
- composition_id: import_zod8.z.string().optional(),
849
- previous_path: import_zod8.z.string(),
850
- locales: import_zod8.z.record(
851
- import_zod8.z.object({
852
- name: import_zod8.z.string(),
853
- inherited: import_zod8.z.boolean(),
854
- path: import_zod8.z.string(),
855
- previous_path: import_zod8.z.string()
852
+ schema: z8.object({
853
+ id: z8.string(),
854
+ name: z8.string(),
855
+ project_map_id: z8.string(),
856
+ project_id: z8.string(),
857
+ path: z8.string(),
858
+ composition_id: z8.string().optional(),
859
+ previous_path: z8.string(),
860
+ locales: z8.record(
861
+ z8.object({
862
+ name: z8.string(),
863
+ inherited: z8.boolean(),
864
+ path: z8.string(),
865
+ previous_path: z8.string()
856
866
  })
857
867
  ).optional(),
858
868
  initiator: webhookInitiatorSchema
@@ -885,16 +895,16 @@ var ProjectMapNodeUpdateDefinition = definition(
885
895
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
886
896
 
887
897
  // src/project-map/projectMap.update.ts
888
- var import_zod9 = require("zod");
898
+ var z9 = __toESM(require("zod"));
889
899
  var ProjectMapUpdateDefinition = definition(
890
900
  {
891
901
  event: "projectmap.update",
892
902
  name: "Project map Updated",
893
903
  description: "Triggers when a project map is updated or created.",
894
- schema: import_zod9.z.object({
895
- id: import_zod9.z.string(),
896
- base_url: import_zod9.z.string().optional(),
897
- project_id: import_zod9.z.string()
904
+ schema: z9.object({
905
+ id: z9.string(),
906
+ base_url: z9.string().optional(),
907
+ project_id: z9.string()
898
908
  })
899
909
  },
900
910
  {
@@ -906,18 +916,18 @@ var ProjectMapUpdateDefinition = definition(
906
916
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
907
917
 
908
918
  // src/redirect/redirect.delete.ts
909
- var import_zod10 = require("zod");
919
+ var z10 = __toESM(require("zod"));
910
920
  var RedirectDeleteDefinition = definition(
911
921
  {
912
922
  event: "redirect.delete",
913
923
  name: "Redirect Deleted",
914
924
  description: "Triggers when a redirect is deleted.",
915
- schema: import_zod10.z.object({
916
- project_id: import_zod10.z.string(),
917
- id: import_zod10.z.string(),
918
- source_url: import_zod10.z.string(),
919
- target_url: import_zod10.z.string(),
920
- target_status_code: import_zod10.z.number(),
925
+ schema: z10.object({
926
+ project_id: z10.string(),
927
+ id: z10.string(),
928
+ source_url: z10.string(),
929
+ target_url: z10.string(),
930
+ target_status_code: z10.number(),
921
931
  initiator: webhookInitiatorSchema
922
932
  })
923
933
  },
@@ -938,18 +948,18 @@ var RedirectDeleteDefinition = definition(
938
948
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
939
949
 
940
950
  // src/redirect/redirect.insert.ts
941
- var import_zod11 = require("zod");
951
+ var z11 = __toESM(require("zod"));
942
952
  var RedirectInsertDefinition = definition(
943
953
  {
944
954
  event: "redirect.insert",
945
955
  name: "Redirect Inserted",
946
956
  description: "Triggers when a redirect is inserted.",
947
- schema: import_zod11.z.object({
948
- project_id: import_zod11.z.string(),
949
- id: import_zod11.z.string(),
950
- source_url: import_zod11.z.string(),
951
- target_url: import_zod11.z.string(),
952
- target_status_code: import_zod11.z.number(),
957
+ schema: z11.object({
958
+ project_id: z11.string(),
959
+ id: z11.string(),
960
+ source_url: z11.string(),
961
+ target_url: z11.string(),
962
+ target_status_code: z11.number(),
953
963
  initiator: webhookInitiatorSchema
954
964
  })
955
965
  },
@@ -970,18 +980,18 @@ var RedirectInsertDefinition = definition(
970
980
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
971
981
 
972
982
  // src/redirect/redirect.update.ts
973
- var import_zod12 = require("zod");
983
+ var z12 = __toESM(require("zod"));
974
984
  var RedirectUpdateDefinition = definition(
975
985
  {
976
986
  event: "redirect.update",
977
987
  name: "Redirect Updated",
978
988
  description: "Triggers when a redirect is updated.",
979
- schema: import_zod12.z.object({
980
- project_id: import_zod12.z.string(),
981
- id: import_zod12.z.string(),
982
- source_url: import_zod12.z.string(),
983
- target_url: import_zod12.z.string(),
984
- target_status_code: import_zod12.z.number(),
989
+ schema: z12.object({
990
+ project_id: z12.string(),
991
+ id: z12.string(),
992
+ source_url: z12.string(),
993
+ target_url: z12.string(),
994
+ target_status_code: z12.number(),
985
995
  initiator: webhookInitiatorSchema
986
996
  })
987
997
  },
@@ -1002,19 +1012,19 @@ var RedirectUpdateDefinition = definition(
1002
1012
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
1003
1013
 
1004
1014
  // src/release/common.ts
1005
- var import_zod13 = require("zod");
1006
- var ReleasePayloadSchema = import_zod13.z.object({
1007
- id: import_zod13.z.string(),
1008
- state: import_zod13.z.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
1009
- name: import_zod13.z.string(),
1010
- project: import_zod13.z.object({
1011
- id: import_zod13.z.string(),
1012
- url: import_zod13.z.string()
1015
+ var z13 = __toESM(require("zod"));
1016
+ var ReleasePayloadSchema = z13.object({
1017
+ id: z13.string(),
1018
+ state: z13.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
1019
+ name: z13.string(),
1020
+ project: z13.object({
1021
+ id: z13.string(),
1022
+ url: z13.string()
1013
1023
  }),
1014
- autoLaunchSchedule: import_zod13.z.number().optional(),
1015
- autoLaunchScheduleTimeZone: import_zod13.z.string().optional(),
1016
- edit_url: import_zod13.z.string(),
1017
- api_url: import_zod13.z.string()
1024
+ autoLaunchSchedule: z13.number().optional(),
1025
+ autoLaunchScheduleTimeZone: z13.string().optional(),
1026
+ edit_url: z13.string(),
1027
+ api_url: z13.string()
1018
1028
  });
1019
1029
 
1020
1030
  // src/release/release.changed.ts
@@ -1136,30 +1146,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1136
1146
  );
1137
1147
 
1138
1148
  // src/workflow/common.ts
1139
- var import_zod14 = require("zod");
1140
- var WorkflowReferenceSchema = import_zod14.z.strictObject({
1141
- workflowId: import_zod14.z.string(),
1142
- workflowName: import_zod14.z.string(),
1143
- stageId: import_zod14.z.string(),
1144
- stageName: import_zod14.z.string()
1149
+ var z14 = __toESM(require("zod"));
1150
+ var WorkflowReferenceSchema = z14.strictObject({
1151
+ workflowId: z14.string(),
1152
+ workflowName: z14.string(),
1153
+ stageId: z14.string(),
1154
+ stageName: z14.string()
1145
1155
  });
1146
- var WorkflowEntitySchema = import_zod14.z.strictObject({
1147
- type: import_zod14.z.enum(["entry", "component"]),
1148
- name: import_zod14.z.string(),
1149
- id: import_zod14.z.string(),
1150
- editionId: import_zod14.z.string().optional(),
1151
- releaseId: import_zod14.z.string().optional(),
1152
- url: import_zod14.z.string()
1156
+ var WorkflowEntitySchema = z14.strictObject({
1157
+ type: z14.enum(["entry", "component"]),
1158
+ name: z14.string(),
1159
+ id: z14.string(),
1160
+ editionId: z14.string().optional(),
1161
+ releaseId: z14.string().optional(),
1162
+ url: z14.string()
1153
1163
  });
1154
- var WorkflowTransitionPayloadSchema = import_zod14.z.strictObject({
1164
+ var WorkflowTransitionPayloadSchema = z14.strictObject({
1155
1165
  entity: WorkflowEntitySchema,
1156
1166
  newStage: WorkflowReferenceSchema,
1157
1167
  previousStage: WorkflowReferenceSchema.optional(),
1158
1168
  initiator: webhookInitiatorSchema,
1159
- timestamp: import_zod14.z.string(),
1160
- project: import_zod14.z.object({
1161
- id: import_zod14.z.string(),
1162
- url: import_zod14.z.string()
1169
+ timestamp: z14.string(),
1170
+ project: z14.object({
1171
+ id: z14.string(),
1172
+ url: z14.string()
1163
1173
  })
1164
1174
  });
1165
1175
 
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  // src/composition/common.ts
2
- import { z as z2 } from "zod";
2
+ import * as z2 from "zod";
3
3
 
4
4
  // src/definition.ts
5
- import { z } from "zod";
5
+ import * as z from "zod";
6
6
  var addEventTypeToSchema = (schema, eventType) => z.object({
7
7
  ...schema.shape,
8
8
  eventType: z.literal(eventType)
@@ -310,7 +310,7 @@ var CompositionReleaseRestoredDefinition = definition(
310
310
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
311
311
 
312
312
  // src/entry/common.ts
313
- import { z as z3 } from "zod";
313
+ import * as z3 from "zod";
314
314
  var EntryCorePayloadSchema = z3.object({
315
315
  id: z3.string(),
316
316
  editionId: z3.string().optional(),
@@ -592,7 +592,7 @@ var EntryReleaseRestoredDefinition = definition(
592
592
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
593
593
 
594
594
  // src/manifest/manifest.published.ts
595
- import { z as z4 } from "zod";
595
+ import * as z4 from "zod";
596
596
  var ManifestPublishedDefinition = definition(
597
597
  {
598
598
  event: "manifest.published",
@@ -617,7 +617,7 @@ var ManifestPublishedDefinition = definition(
617
617
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
618
618
 
619
619
  // src/project-map/projectMap.delete.ts
620
- import { z as z5 } from "zod";
620
+ import * as z5 from "zod";
621
621
  var ProjectMapDeleteDefinition = definition(
622
622
  {
623
623
  event: "projectmap.delete",
@@ -638,7 +638,7 @@ var ProjectMapDeleteDefinition = definition(
638
638
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
639
639
 
640
640
  // src/project-map/projectMap.node.delete.ts
641
- import { z as z6 } from "zod";
641
+ import * as z6 from "zod";
642
642
  var ProjectMapNodeDeleteDefinition = definition(
643
643
  {
644
644
  event: "projectmap.node.delete",
@@ -686,7 +686,7 @@ var ProjectMapNodeDeleteDefinition = definition(
686
686
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
687
687
 
688
688
  // src/project-map/projectMap.node.insert.ts
689
- import { z as z7 } from "zod";
689
+ import * as z7 from "zod";
690
690
  var ProjectMapNodeInsertDefinition = definition(
691
691
  {
692
692
  event: "projectmap.node.insert",
@@ -734,7 +734,7 @@ var ProjectMapNodeInsertDefinition = definition(
734
734
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
735
735
 
736
736
  // src/project-map/projectMap.node.update.ts
737
- import { z as z8 } from "zod";
737
+ import * as z8 from "zod";
738
738
  var ProjectMapNodeUpdateDefinition = definition(
739
739
  {
740
740
  event: "projectmap.node.update",
@@ -786,7 +786,7 @@ var ProjectMapNodeUpdateDefinition = definition(
786
786
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
787
787
 
788
788
  // src/project-map/projectMap.update.ts
789
- import { z as z9 } from "zod";
789
+ import * as z9 from "zod";
790
790
  var ProjectMapUpdateDefinition = definition(
791
791
  {
792
792
  event: "projectmap.update",
@@ -807,7 +807,7 @@ var ProjectMapUpdateDefinition = definition(
807
807
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
808
808
 
809
809
  // src/redirect/redirect.delete.ts
810
- import { z as z10 } from "zod";
810
+ import * as z10 from "zod";
811
811
  var RedirectDeleteDefinition = definition(
812
812
  {
813
813
  event: "redirect.delete",
@@ -839,7 +839,7 @@ var RedirectDeleteDefinition = definition(
839
839
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
840
840
 
841
841
  // src/redirect/redirect.insert.ts
842
- import { z as z11 } from "zod";
842
+ import * as z11 from "zod";
843
843
  var RedirectInsertDefinition = definition(
844
844
  {
845
845
  event: "redirect.insert",
@@ -871,7 +871,7 @@ var RedirectInsertDefinition = definition(
871
871
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
872
872
 
873
873
  // src/redirect/redirect.update.ts
874
- import { z as z12 } from "zod";
874
+ import * as z12 from "zod";
875
875
  var RedirectUpdateDefinition = definition(
876
876
  {
877
877
  event: "redirect.update",
@@ -903,7 +903,7 @@ var RedirectUpdateDefinition = definition(
903
903
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
904
904
 
905
905
  // src/release/common.ts
906
- import { z as z13 } from "zod";
906
+ import * as z13 from "zod";
907
907
  var ReleasePayloadSchema = z13.object({
908
908
  id: z13.string(),
909
909
  state: z13.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
@@ -1037,7 +1037,7 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1037
1037
  );
1038
1038
 
1039
1039
  // src/workflow/common.ts
1040
- import { z as z14 } from "zod";
1040
+ import * as z14 from "zod";
1041
1041
  var WorkflowReferenceSchema = z14.strictObject({
1042
1042
  workflowId: z14.string(),
1043
1043
  workflowName: z14.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "20.34.2-alpha.67+d830718b43",
3
+ "version": "20.35.1-alpha.87+2cf616f622",
4
4
  "description": "Uniform Webhooks",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,6 @@
19
19
  "build": "tsup",
20
20
  "dev": "tsup --watch",
21
21
  "clean": "rimraf dist",
22
- "test": "jest --maxWorkers=1 --passWithNoTests",
23
22
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
24
23
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
25
24
  "migrate:svix": "tsx ./scripts/sync-svix-schemas.ts",
@@ -34,12 +33,12 @@
34
33
  },
35
34
  "devDependencies": {
36
35
  "dotenv": "^16.4.7",
37
- "npm-run-all2": "7.0.0",
36
+ "npm-run-all2": "8.0.4",
38
37
  "svix": "^1.0.0",
39
38
  "zod-to-json-schema": "3.21.4"
40
39
  },
41
40
  "publishConfig": {
42
41
  "access": "public"
43
42
  },
44
- "gitHead": "d830718b43d1c26a8f6c22434975882eae4cbb3d"
43
+ "gitHead": "2cf616f622322e5322575c106742078b5e3d7992"
45
44
  }