@uniformdev/webhooks 20.70.0 → 20.70.1-alpha.10
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 +27 -27
- package/dist/index.d.ts +27 -27
- package/dist/index.js +3 -3
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
3
|
|
|
4
|
-
declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
|
|
5
|
-
eventType: z.ZodLiteral<EventType>;
|
|
6
|
-
} extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
|
|
7
|
-
type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
|
|
8
|
-
event: EventType;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
schema: TSchema;
|
|
12
|
-
archived?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
|
|
15
|
-
schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
|
|
16
|
-
_definition: true;
|
|
17
|
-
example: z.TypeOf<TSchema> & {
|
|
18
|
-
eventType: EventType;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
declare const isDefinition: (obj: any) => obj is Definition;
|
|
22
|
-
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>;
|
|
23
|
-
declare const webhookInitiatorSchema: z.ZodObject<{
|
|
24
|
-
id: z.ZodString;
|
|
25
|
-
name: z.ZodOptional<z.ZodString>;
|
|
26
|
-
email: z.ZodOptional<z.ZodString>;
|
|
27
|
-
is_api_key: z.ZodBoolean;
|
|
28
|
-
}, z.core.$strict>;
|
|
29
|
-
type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
|
|
30
|
-
|
|
31
4
|
declare const AssetDeletedDefinition: Definition<z.ZodObject<{
|
|
32
5
|
id: z.ZodString;
|
|
33
6
|
name: z.ZodString;
|
|
@@ -367,6 +340,33 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
|
|
|
367
340
|
type CompositionReleaseRestoredPayload = z.infer<(typeof CompositionReleaseRestoredDefinition)['schema']>;
|
|
368
341
|
declare const CompositionReleaseRestoredEventName: "composition.release.restored";
|
|
369
342
|
|
|
343
|
+
declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
|
|
344
|
+
eventType: z.ZodLiteral<EventType>;
|
|
345
|
+
} extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
|
|
346
|
+
type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
|
|
347
|
+
event: EventType;
|
|
348
|
+
name: string;
|
|
349
|
+
description: string;
|
|
350
|
+
schema: TSchema;
|
|
351
|
+
archived?: boolean;
|
|
352
|
+
};
|
|
353
|
+
type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
|
|
354
|
+
schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
|
|
355
|
+
_definition: true;
|
|
356
|
+
example: z.TypeOf<TSchema> & {
|
|
357
|
+
eventType: EventType;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
declare const isDefinition: (obj: any) => obj is Definition;
|
|
361
|
+
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>;
|
|
362
|
+
declare const webhookInitiatorSchema: z.ZodObject<{
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
name: z.ZodOptional<z.ZodString>;
|
|
365
|
+
email: z.ZodOptional<z.ZodString>;
|
|
366
|
+
is_api_key: z.ZodBoolean;
|
|
367
|
+
}, z.core.$strict>;
|
|
368
|
+
type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
|
|
369
|
+
|
|
370
370
|
declare const EntryTriggerPayloadSchema: z.ZodObject<{
|
|
371
371
|
trigger: z.ZodOptional<z.ZodObject<{
|
|
372
372
|
type: z.ZodEnum<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
import * as zod_v4_core from 'zod/v4/core';
|
|
3
3
|
|
|
4
|
-
declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
|
|
5
|
-
eventType: z.ZodLiteral<EventType>;
|
|
6
|
-
} extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
|
|
7
|
-
type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
|
|
8
|
-
event: EventType;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
schema: TSchema;
|
|
12
|
-
archived?: boolean;
|
|
13
|
-
};
|
|
14
|
-
type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
|
|
15
|
-
schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
|
|
16
|
-
_definition: true;
|
|
17
|
-
example: z.TypeOf<TSchema> & {
|
|
18
|
-
eventType: EventType;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
declare const isDefinition: (obj: any) => obj is Definition;
|
|
22
|
-
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>;
|
|
23
|
-
declare const webhookInitiatorSchema: z.ZodObject<{
|
|
24
|
-
id: z.ZodString;
|
|
25
|
-
name: z.ZodOptional<z.ZodString>;
|
|
26
|
-
email: z.ZodOptional<z.ZodString>;
|
|
27
|
-
is_api_key: z.ZodBoolean;
|
|
28
|
-
}, z.core.$strict>;
|
|
29
|
-
type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
|
|
30
|
-
|
|
31
4
|
declare const AssetDeletedDefinition: Definition<z.ZodObject<{
|
|
32
5
|
id: z.ZodString;
|
|
33
6
|
name: z.ZodString;
|
|
@@ -367,6 +340,33 @@ declare const CompositionReleaseRestoredDefinition: Definition<z.ZodObject<{
|
|
|
367
340
|
type CompositionReleaseRestoredPayload = z.infer<(typeof CompositionReleaseRestoredDefinition)['schema']>;
|
|
368
341
|
declare const CompositionReleaseRestoredEventName: "composition.release.restored";
|
|
369
342
|
|
|
343
|
+
declare const addEventTypeToSchema: <T extends z.ZodObject<z.ZodRawShape>, EventType extends string>(schema: T, eventType: EventType) => z.ZodObject<T["shape"] & {
|
|
344
|
+
eventType: z.ZodLiteral<EventType>;
|
|
345
|
+
} extends infer T_1 ? { -readonly [P in keyof T_1]: T_1[P]; } : never, z.core.$strip>;
|
|
346
|
+
type DefinitionOptions<TSchema extends z.ZodObject<z.ZodRawShape>, EventType extends string> = {
|
|
347
|
+
event: EventType;
|
|
348
|
+
name: string;
|
|
349
|
+
description: string;
|
|
350
|
+
schema: TSchema;
|
|
351
|
+
archived?: boolean;
|
|
352
|
+
};
|
|
353
|
+
type Definition<TSchema extends z.ZodObject<z.ZodRawShape> = z.ZodObject<z.ZodRawShape>, EventType extends string = string> = Omit<DefinitionOptions<TSchema, EventType>, 'schema'> & {
|
|
354
|
+
schema: ReturnType<typeof addEventTypeToSchema<TSchema, EventType>>;
|
|
355
|
+
_definition: true;
|
|
356
|
+
example: z.TypeOf<TSchema> & {
|
|
357
|
+
eventType: EventType;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
declare const isDefinition: (obj: any) => obj is Definition;
|
|
361
|
+
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>;
|
|
362
|
+
declare const webhookInitiatorSchema: z.ZodObject<{
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
name: z.ZodOptional<z.ZodString>;
|
|
365
|
+
email: z.ZodOptional<z.ZodString>;
|
|
366
|
+
is_api_key: z.ZodBoolean;
|
|
367
|
+
}, z.core.$strict>;
|
|
368
|
+
type WebhookInitiator = z.infer<typeof webhookInitiatorSchema>;
|
|
369
|
+
|
|
370
370
|
declare const EntryTriggerPayloadSchema: z.ZodObject<{
|
|
371
371
|
trigger: z.ZodOptional<z.ZodObject<{
|
|
372
372
|
type: z.ZodEnum<{
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
ArchivedReleaseLaunchStartedDefinition: () => ArchivedReleaseLaunchStartedDefinition,
|
|
34
34
|
AssetDeletePayloadSchema: () => AssetDeletePayloadSchema,
|
|
35
35
|
AssetDeletedDefinition: () => AssetDeletedDefinition,
|
|
@@ -111,7 +111,7 @@ __export(src_exports, {
|
|
|
111
111
|
isDefinition: () => isDefinition,
|
|
112
112
|
webhookInitiatorSchema: () => webhookInitiatorSchema
|
|
113
113
|
});
|
|
114
|
-
module.exports = __toCommonJS(
|
|
114
|
+
module.exports = __toCommonJS(index_exports);
|
|
115
115
|
|
|
116
116
|
// src/definition.ts
|
|
117
117
|
var z = __toESM(require("zod"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/webhooks",
|
|
3
|
-
"version": "20.70.
|
|
3
|
+
"version": "20.70.1-alpha.10+6e0ecaf156",
|
|
4
4
|
"description": "Uniform Webhooks",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
"/dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"zod": "4.3
|
|
31
|
+
"zod": "^4.4.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"dotenv": "^
|
|
35
|
-
"npm-run-all2": "
|
|
36
|
-
"svix": "^1.
|
|
34
|
+
"dotenv": "^17.4.2",
|
|
35
|
+
"npm-run-all2": "9.0.2",
|
|
36
|
+
"svix": "^1.96.0"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "6e0ecaf15691da45ddab84cc3ca11c4d048bbbdd"
|
|
42
42
|
}
|