@xube/kit-aws-hooks 0.0.29 → 0.0.30
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/schemas/create.d.ts +15 -15
- package/dist/schemas/create.js +1 -1
- package/dist/schemas/endpoint.d.ts +3 -3
- package/dist/schemas/endpoint.js +1 -1
- package/dist/schemas/webhook.d.ts +14 -14
- package/dist/schemas/webhook.js +1 -1
- package/package.json +5 -5
- package/src/schemas/create.ts +1 -1
- package/src/schemas/endpoint.ts +1 -1
- package/src/schemas/webhook.ts +1 -1
package/dist/schemas/create.d.ts
CHANGED
|
@@ -4,47 +4,47 @@ export declare const CreateWebhookForAccountRequestSchema: z.ZodObject<{
|
|
|
4
4
|
ids: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
endpoints: z.ZodArray<z.ZodObject<{
|
|
6
6
|
url: z.ZodString;
|
|
7
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
7
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
url: string;
|
|
10
|
-
headers
|
|
10
|
+
headers?: Record<string, string> | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
url: string;
|
|
13
|
-
headers
|
|
13
|
+
headers?: Record<string, string> | undefined;
|
|
14
14
|
}>, "many">;
|
|
15
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
15
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
16
16
|
type: z.ZodOptional<z.ZodNativeEnum<{
|
|
17
17
|
readonly data: "data";
|
|
18
18
|
readonly event: "event";
|
|
19
19
|
}>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
headers: Record<string, string>;
|
|
22
21
|
account: string;
|
|
23
22
|
ids: string[];
|
|
24
23
|
endpoints: {
|
|
25
24
|
url: string;
|
|
26
|
-
headers
|
|
25
|
+
headers?: Record<string, string> | undefined;
|
|
27
26
|
}[];
|
|
27
|
+
headers?: Record<string, string> | undefined;
|
|
28
28
|
type?: "data" | "event" | undefined;
|
|
29
29
|
}, {
|
|
30
|
-
headers: Record<string, string>;
|
|
31
30
|
account: string;
|
|
32
31
|
ids: string[];
|
|
33
32
|
endpoints: {
|
|
34
33
|
url: string;
|
|
35
|
-
headers
|
|
34
|
+
headers?: Record<string, string> | undefined;
|
|
36
35
|
}[];
|
|
36
|
+
headers?: Record<string, string> | undefined;
|
|
37
37
|
type?: "data" | "event" | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
export type CreateWebhookForAccountRequest = z.infer<typeof CreateWebhookForAccountRequestSchema>;
|
|
40
40
|
export declare const isCreateWebhookForAccountRequest: (obj: unknown) => obj is {
|
|
41
|
-
headers: Record<string, string>;
|
|
42
41
|
account: string;
|
|
43
42
|
ids: string[];
|
|
44
43
|
endpoints: {
|
|
45
44
|
url: string;
|
|
46
|
-
headers
|
|
45
|
+
headers?: Record<string, string> | undefined;
|
|
47
46
|
}[];
|
|
47
|
+
headers?: Record<string, string> | undefined;
|
|
48
48
|
type?: "data" | "event" | undefined;
|
|
49
49
|
};
|
|
50
50
|
export declare const CreateWebhookForAccountResponseSchema: z.ZodObject<{
|
|
@@ -59,13 +59,13 @@ export declare const CreateWebhookRequestSchema: z.ZodObject<{
|
|
|
59
59
|
ids: z.ZodString;
|
|
60
60
|
endpoints: z.ZodArray<z.ZodObject<{
|
|
61
61
|
url: z.ZodString;
|
|
62
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
62
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
url: string;
|
|
65
|
-
headers
|
|
65
|
+
headers?: Record<string, string> | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
url: string;
|
|
68
|
-
headers
|
|
68
|
+
headers?: Record<string, string> | undefined;
|
|
69
69
|
}>, "many">;
|
|
70
70
|
headers: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,14 +73,14 @@ export declare const CreateWebhookRequestSchema: z.ZodObject<{
|
|
|
73
73
|
ids: string;
|
|
74
74
|
endpoints: {
|
|
75
75
|
url: string;
|
|
76
|
-
headers
|
|
76
|
+
headers?: Record<string, string> | undefined;
|
|
77
77
|
}[];
|
|
78
78
|
}, {
|
|
79
79
|
headers: Record<string, string>[];
|
|
80
80
|
ids: string;
|
|
81
81
|
endpoints: {
|
|
82
82
|
url: string;
|
|
83
|
-
headers
|
|
83
|
+
headers?: Record<string, string> | undefined;
|
|
84
84
|
}[];
|
|
85
85
|
}>;
|
|
86
86
|
export declare const CreateWebhookResponseSchema: z.ZodObject<{
|
package/dist/schemas/create.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.CreateWebhookForAccountRequestSchema = zod_1.z.object({
|
|
|
8
8
|
account: zod_1.z.string(),
|
|
9
9
|
ids: zod_1.z.array(zod_1.z.string()),
|
|
10
10
|
endpoints: zod_1.z.array(endpoint_1.HookEndpointSchema),
|
|
11
|
-
headers: endpoint_1.HookEndpointHeaderSchema,
|
|
11
|
+
headers: endpoint_1.HookEndpointHeaderSchema.optional(),
|
|
12
12
|
type: types_1.WebhookTypesSchema.optional(),
|
|
13
13
|
});
|
|
14
14
|
const isCreateWebhookForAccountRequest = (obj) => {
|
|
@@ -3,12 +3,12 @@ export declare const HookEndpointHeaderSchema: z.ZodRecord<z.ZodString, z.ZodStr
|
|
|
3
3
|
export type HookEndpointHeader = z.infer<typeof HookEndpointHeaderSchema>;
|
|
4
4
|
export declare const HookEndpointSchema: z.ZodObject<{
|
|
5
5
|
url: z.ZodString;
|
|
6
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
6
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
url: string;
|
|
9
|
-
headers
|
|
9
|
+
headers?: Record<string, string> | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
url: string;
|
|
12
|
-
headers
|
|
12
|
+
headers?: Record<string, string> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
export type HookEndpoint = z.infer<typeof HookEndpointSchema>;
|
package/dist/schemas/endpoint.js
CHANGED
|
@@ -5,5 +5,5 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.HookEndpointHeaderSchema = zod_1.z.record(zod_1.z.string());
|
|
6
6
|
exports.HookEndpointSchema = zod_1.z.object({
|
|
7
7
|
url: zod_1.z.string().url(),
|
|
8
|
-
headers: exports.HookEndpointHeaderSchema,
|
|
8
|
+
headers: exports.HookEndpointHeaderSchema.optional(),
|
|
9
9
|
});
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const WebhookEndpointSchema: z.ZodObject<{
|
|
3
3
|
url: z.ZodString;
|
|
4
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
4
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
account: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
url: string;
|
|
9
|
-
headers: Record<string, string>;
|
|
10
|
-
account: string;
|
|
11
9
|
id: string;
|
|
10
|
+
account: string;
|
|
11
|
+
headers?: Record<string, string> | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
url: string;
|
|
14
|
-
headers: Record<string, string>;
|
|
15
|
-
account: string;
|
|
16
14
|
id: string;
|
|
15
|
+
account: string;
|
|
16
|
+
headers?: Record<string, string> | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type WebhookEndpoint = z.infer<typeof WebhookEndpointSchema>;
|
|
19
19
|
export declare const isWebhookEndpoint: (obj: unknown) => obj is {
|
|
20
20
|
url: string;
|
|
21
|
-
headers: Record<string, string>;
|
|
22
|
-
account: string;
|
|
23
21
|
id: string;
|
|
22
|
+
account: string;
|
|
23
|
+
headers?: Record<string, string> | undefined;
|
|
24
24
|
};
|
|
25
25
|
export declare const WebhookEndpointItemSchema: z.ZodObject<{
|
|
26
26
|
url: z.ZodString;
|
|
27
|
-
headers: z.ZodRecord<z.ZodString, z.ZodString
|
|
27
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
28
28
|
account: z.ZodString;
|
|
29
29
|
PK: z.ZodString;
|
|
30
30
|
SK: z.ZodString;
|
|
31
31
|
id: z.ZodString;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
url: string;
|
|
34
|
-
headers: Record<string, string>;
|
|
35
|
-
account: string;
|
|
36
34
|
id: string;
|
|
35
|
+
account: string;
|
|
37
36
|
PK: string;
|
|
38
37
|
SK: string;
|
|
38
|
+
headers?: Record<string, string> | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
url: string;
|
|
41
|
-
headers: Record<string, string>;
|
|
42
|
-
account: string;
|
|
43
41
|
id: string;
|
|
42
|
+
account: string;
|
|
44
43
|
PK: string;
|
|
45
44
|
SK: string;
|
|
45
|
+
headers?: Record<string, string> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
export type WebhookEndpointItem = z.infer<typeof WebhookEndpointItemSchema>;
|
|
48
48
|
export declare const isWebhookEndpointItem: (obj: unknown) => obj is {
|
|
49
49
|
url: string;
|
|
50
|
-
headers: Record<string, string>;
|
|
51
|
-
account: string;
|
|
52
50
|
id: string;
|
|
51
|
+
account: string;
|
|
53
52
|
PK: string;
|
|
54
53
|
SK: string;
|
|
54
|
+
headers?: Record<string, string> | undefined;
|
|
55
55
|
};
|
package/dist/schemas/webhook.js
CHANGED
|
@@ -6,7 +6,7 @@ const zod_1 = require("zod");
|
|
|
6
6
|
const endpoint_1 = require("./endpoint");
|
|
7
7
|
exports.WebhookEndpointSchema = zod_1.z.object({
|
|
8
8
|
url: zod_1.z.string(),
|
|
9
|
-
headers: endpoint_1.HookEndpointHeaderSchema,
|
|
9
|
+
headers: endpoint_1.HookEndpointHeaderSchema.optional(),
|
|
10
10
|
id: zod_1.z.string(),
|
|
11
11
|
account: zod_1.z.string(),
|
|
12
12
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xube/kit-aws-hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/XubeLtd/dev-kit#readme",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@xube/kit-build": "^0.0.
|
|
20
|
+
"@xube/kit-build": "^0.0.30"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@xube/kit-aws": "^0.0.
|
|
24
|
-
"@xube/kit-log": "^0.0.
|
|
25
|
-
"@xube/kit-request": "^0.0.
|
|
23
|
+
"@xube/kit-aws": "^0.0.30",
|
|
24
|
+
"@xube/kit-log": "^0.0.30",
|
|
25
|
+
"@xube/kit-request": "^0.0.30",
|
|
26
26
|
"zod": "^3.22.4"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/src/schemas/create.ts
CHANGED
|
@@ -6,7 +6,7 @@ export const CreateWebhookForAccountRequestSchema = z.object({
|
|
|
6
6
|
account: z.string(),
|
|
7
7
|
ids: z.array(z.string()),
|
|
8
8
|
endpoints: z.array(HookEndpointSchema),
|
|
9
|
-
headers: HookEndpointHeaderSchema,
|
|
9
|
+
headers: HookEndpointHeaderSchema.optional(),
|
|
10
10
|
type: WebhookTypesSchema.optional(),
|
|
11
11
|
});
|
|
12
12
|
export type CreateWebhookForAccountRequest = z.infer<
|
package/src/schemas/endpoint.ts
CHANGED
|
@@ -5,6 +5,6 @@ export type HookEndpointHeader = z.infer<typeof HookEndpointHeaderSchema>;
|
|
|
5
5
|
|
|
6
6
|
export const HookEndpointSchema = z.object({
|
|
7
7
|
url: z.string().url(),
|
|
8
|
-
headers: HookEndpointHeaderSchema,
|
|
8
|
+
headers: HookEndpointHeaderSchema.optional(),
|
|
9
9
|
});
|
|
10
10
|
export type HookEndpoint = z.infer<typeof HookEndpointSchema>;
|
package/src/schemas/webhook.ts
CHANGED