@uniformdev/webhooks 20.34.1 → 20.35.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +18 -19
- package/dist/index.d.ts +18 -19
- package/dist/index.esm.js +14 -14
- package/dist/index.js +174 -164
- package/dist/index.mjs +14 -14
- package/package.json +3 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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<
|
|
2593
|
-
id:
|
|
2594
|
-
state:
|
|
2595
|
-
name:
|
|
2596
|
-
project:
|
|
2597
|
-
id:
|
|
2598
|
-
url:
|
|
2599
|
-
}, "strip",
|
|
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:
|
|
2607
|
-
autoLaunchScheduleTimeZone:
|
|
2608
|
-
edit_url:
|
|
2609
|
-
api_url:
|
|
2610
|
-
}, "strip",
|
|
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
|
|
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<
|
|
2593
|
-
id:
|
|
2594
|
-
state:
|
|
2595
|
-
name:
|
|
2596
|
-
project:
|
|
2597
|
-
id:
|
|
2598
|
-
url:
|
|
2599
|
-
}, "strip",
|
|
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:
|
|
2607
|
-
autoLaunchScheduleTimeZone:
|
|
2608
|
-
edit_url:
|
|
2609
|
-
api_url:
|
|
2610
|
-
}, "strip",
|
|
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
|
|
2
|
+
import * as z2 from "zod";
|
|
3
3
|
|
|
4
4
|
// src/definition.ts
|
|
5
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
111
|
+
var z2 = __toESM(require("zod"));
|
|
102
112
|
|
|
103
113
|
// src/definition.ts
|
|
104
|
-
var
|
|
105
|
-
var addEventTypeToSchema = (schema, eventType) =>
|
|
114
|
+
var z = __toESM(require("zod"));
|
|
115
|
+
var addEventTypeToSchema = (schema, eventType) => z.object({
|
|
106
116
|
...schema.shape,
|
|
107
|
-
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 =
|
|
124
|
-
id:
|
|
125
|
-
name:
|
|
126
|
-
email:
|
|
127
|
-
is_api_key:
|
|
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 =
|
|
132
|
-
id:
|
|
133
|
-
editionId:
|
|
134
|
-
slug:
|
|
135
|
-
name:
|
|
136
|
-
type:
|
|
137
|
-
project:
|
|
138
|
-
id:
|
|
139
|
-
url:
|
|
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 =
|
|
144
|
-
trigger:
|
|
145
|
-
type:
|
|
146
|
-
id:
|
|
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:
|
|
160
|
+
state: z2.number().optional()
|
|
151
161
|
});
|
|
152
162
|
var CompositionRestorePayloadSchema = CompositionCorePayloadSchema.extend({
|
|
153
|
-
state:
|
|
163
|
+
state: z2.number()
|
|
154
164
|
});
|
|
155
165
|
var CompositionPayloadSchema = CompositionCorePayloadSchema.extend({
|
|
156
|
-
state:
|
|
157
|
-
edit_url:
|
|
158
|
-
api_url:
|
|
159
|
-
edge_url:
|
|
166
|
+
state: z2.number(),
|
|
167
|
+
edit_url: z2.string(),
|
|
168
|
+
api_url: z2.string(),
|
|
169
|
+
edge_url: z2.string()
|
|
160
170
|
});
|
|
161
|
-
var ReleaseCompositionPayloadSchema =
|
|
162
|
-
release:
|
|
163
|
-
id:
|
|
164
|
-
url:
|
|
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
|
|
413
|
-
var EntryCorePayloadSchema =
|
|
414
|
-
id:
|
|
415
|
-
editionId:
|
|
416
|
-
slug:
|
|
417
|
-
name:
|
|
418
|
-
type:
|
|
419
|
-
project:
|
|
420
|
-
id:
|
|
421
|
-
url:
|
|
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 =
|
|
426
|
-
trigger:
|
|
427
|
-
type:
|
|
428
|
-
id:
|
|
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:
|
|
442
|
+
state: z3.number().optional()
|
|
433
443
|
});
|
|
434
444
|
var EntryRestorePayloadSchema = EntryCorePayloadSchema.extend({
|
|
435
|
-
state:
|
|
445
|
+
state: z3.number()
|
|
436
446
|
});
|
|
437
447
|
var EntryPayloadSchema = EntryCorePayloadSchema.extend({
|
|
438
|
-
state:
|
|
439
|
-
edit_url:
|
|
440
|
-
api_url:
|
|
441
|
-
edge_url:
|
|
448
|
+
state: z3.number(),
|
|
449
|
+
edit_url: z3.string(),
|
|
450
|
+
api_url: z3.string(),
|
|
451
|
+
edge_url: z3.string()
|
|
442
452
|
});
|
|
443
|
-
var ReleaseEntryPayloadSchema =
|
|
444
|
-
release:
|
|
445
|
-
id:
|
|
446
|
-
url:
|
|
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
|
|
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:
|
|
701
|
-
timestamp:
|
|
702
|
-
site:
|
|
703
|
-
id:
|
|
704
|
-
name:
|
|
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
|
|
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:
|
|
726
|
-
id:
|
|
727
|
-
base_url:
|
|
728
|
-
project_id:
|
|
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
|
|
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:
|
|
747
|
-
project_id:
|
|
748
|
-
project_map_id:
|
|
749
|
-
name:
|
|
750
|
-
id:
|
|
751
|
-
path:
|
|
752
|
-
composition_id:
|
|
753
|
-
locales:
|
|
754
|
-
|
|
755
|
-
name:
|
|
756
|
-
inherited:
|
|
757
|
-
path:
|
|
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
|
|
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:
|
|
795
|
-
id:
|
|
796
|
-
name:
|
|
797
|
-
project_map_id:
|
|
798
|
-
project_id:
|
|
799
|
-
path:
|
|
800
|
-
composition_id:
|
|
801
|
-
locales:
|
|
802
|
-
|
|
803
|
-
name:
|
|
804
|
-
inherited:
|
|
805
|
-
path:
|
|
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
|
|
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:
|
|
843
|
-
id:
|
|
844
|
-
name:
|
|
845
|
-
project_map_id:
|
|
846
|
-
project_id:
|
|
847
|
-
path:
|
|
848
|
-
composition_id:
|
|
849
|
-
previous_path:
|
|
850
|
-
locales:
|
|
851
|
-
|
|
852
|
-
name:
|
|
853
|
-
inherited:
|
|
854
|
-
path:
|
|
855
|
-
previous_path:
|
|
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
|
|
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:
|
|
895
|
-
id:
|
|
896
|
-
base_url:
|
|
897
|
-
project_id:
|
|
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
|
|
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:
|
|
916
|
-
project_id:
|
|
917
|
-
id:
|
|
918
|
-
source_url:
|
|
919
|
-
target_url:
|
|
920
|
-
target_status_code:
|
|
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
|
|
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:
|
|
948
|
-
project_id:
|
|
949
|
-
id:
|
|
950
|
-
source_url:
|
|
951
|
-
target_url:
|
|
952
|
-
target_status_code:
|
|
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
|
|
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:
|
|
980
|
-
project_id:
|
|
981
|
-
id:
|
|
982
|
-
source_url:
|
|
983
|
-
target_url:
|
|
984
|
-
target_status_code:
|
|
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
|
|
1006
|
-
var ReleasePayloadSchema =
|
|
1007
|
-
id:
|
|
1008
|
-
state:
|
|
1009
|
-
name:
|
|
1010
|
-
project:
|
|
1011
|
-
id:
|
|
1012
|
-
url:
|
|
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:
|
|
1015
|
-
autoLaunchScheduleTimeZone:
|
|
1016
|
-
edit_url:
|
|
1017
|
-
api_url:
|
|
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
|
|
1140
|
-
var WorkflowReferenceSchema =
|
|
1141
|
-
workflowId:
|
|
1142
|
-
workflowName:
|
|
1143
|
-
stageId:
|
|
1144
|
-
stageName:
|
|
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 =
|
|
1147
|
-
type:
|
|
1148
|
-
name:
|
|
1149
|
-
id:
|
|
1150
|
-
editionId:
|
|
1151
|
-
releaseId:
|
|
1152
|
-
url:
|
|
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 =
|
|
1164
|
+
var WorkflowTransitionPayloadSchema = z14.strictObject({
|
|
1155
1165
|
entity: WorkflowEntitySchema,
|
|
1156
1166
|
newStage: WorkflowReferenceSchema,
|
|
1157
1167
|
previousStage: WorkflowReferenceSchema.optional(),
|
|
1158
1168
|
initiator: webhookInitiatorSchema,
|
|
1159
|
-
timestamp:
|
|
1160
|
-
project:
|
|
1161
|
-
id:
|
|
1162
|
-
url:
|
|
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
|
|
2
|
+
import * as z2 from "zod";
|
|
3
3
|
|
|
4
4
|
// src/definition.ts
|
|
5
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "20.35.0",
|
|
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": "
|
|
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": "
|
|
43
|
+
"gitHead": "f228361828ef49a596ca3841e5b79768c64418cf"
|
|
45
44
|
}
|