@teever/ez-hook-effect 0.5.0 → 0.5.19
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/errors/WebhookError.d.ts +295 -0
- package/dist/errors/WebhookError.js +322 -0
- package/dist/errors/WebhookError.js.map +1 -0
- package/dist/errors/index.d.ts +1 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.js +17 -965
- package/dist/index.js.map +5 -13
- package/dist/layers/Config.d.ts +48 -0
- package/dist/layers/Config.js +166 -0
- package/dist/layers/Config.js.map +1 -0
- package/dist/layers/Default.d.ts +6 -0
- package/dist/layers/Default.js +9 -0
- package/dist/layers/Default.js.map +1 -0
- package/dist/layers/HttpClient.d.ts +84 -0
- package/dist/layers/HttpClient.js +209 -0
- package/dist/layers/HttpClient.js.map +1 -0
- package/dist/layers/index.d.ts +2 -0
- package/dist/layers/index.js +3 -0
- package/dist/layers/index.js.map +1 -0
- package/dist/pipes/Embed.d.ts +51 -0
- package/dist/pipes/Embed.js +198 -0
- package/dist/pipes/Embed.js.map +1 -0
- package/dist/pipes/Webhook.d.ts +38 -0
- package/dist/pipes/Webhook.js +46 -0
- package/dist/pipes/Webhook.js.map +1 -0
- package/dist/pipes/index.d.ts +2 -0
- package/dist/pipes/index.js +3 -0
- package/dist/pipes/index.js.map +1 -0
- package/dist/schemas/Common.d.ts +10 -0
- package/dist/schemas/Common.js +30 -0
- package/dist/schemas/Common.js.map +1 -0
- package/dist/schemas/Discord.d.ts +16 -0
- package/dist/schemas/Discord.js +19 -0
- package/dist/schemas/Discord.js.map +1 -0
- package/dist/schemas/Embed.d.ts +143 -0
- package/dist/schemas/Embed.js +139 -0
- package/dist/schemas/Embed.js.map +1 -0
- package/dist/schemas/Field.d.ts +24 -0
- package/dist/schemas/Field.js +25 -0
- package/dist/schemas/Field.js.map +1 -0
- package/dist/schemas/Webhook.d.ts +88 -0
- package/dist/schemas/Webhook.js +87 -0
- package/dist/schemas/Webhook.js.map +1 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +6 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/services/WebhookService.d.ts +94 -0
- package/dist/services/WebhookService.js +116 -0
- package/dist/services/WebhookService.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/utils/normalize.d.ts +1 -0
- package/dist/utils/normalize.js +17 -0
- package/dist/utils/normalize.js.map +1 -0
- package/package.json +56 -55
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* Common schema definitions and constraints
|
|
4
|
+
*/
|
|
5
|
+
// String with max length constraint (use native annotation so Arbitrary can honor it)
|
|
6
|
+
export const maxLength = (max) => Schema.String.check(Schema.isMaxLength(max));
|
|
7
|
+
// Positive integer constraint
|
|
8
|
+
export const positiveInt = Schema.Number.check(Schema.isInt(), Schema.isGreaterThan(0));
|
|
9
|
+
// URL string validation
|
|
10
|
+
export const UrlString = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => {
|
|
11
|
+
try {
|
|
12
|
+
new URL(value);
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
catch {
|
|
16
|
+
return "Invalid URL format";
|
|
17
|
+
}
|
|
18
|
+
})));
|
|
19
|
+
// ISO8601 timestamp validation
|
|
20
|
+
export const ISO8601Timestamp = Schema.String.pipe(Schema.check(Schema.makeFilter((value) => {
|
|
21
|
+
const iso8601Regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$/;
|
|
22
|
+
return iso8601Regex.test(value)
|
|
23
|
+
? true
|
|
24
|
+
: "Invalid ISO8601 timestamp format";
|
|
25
|
+
})));
|
|
26
|
+
// Discord color code (0-16777215)
|
|
27
|
+
export const ColorCode = Schema.Number.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(16777215));
|
|
28
|
+
// Uint8Array schema (used in Webhook file data)
|
|
29
|
+
export const Uint8ArraySchema = Schema.instanceOf(Uint8Array);
|
|
30
|
+
//# sourceMappingURL=Common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Common.js","sourceRoot":"","sources":["../../src/schemas/Common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;GAEG;AAEH,sFAAsF;AACtF,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE,CACxC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAE9C,8BAA8B;AAC9B,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAC7C,MAAM,CAAC,KAAK,EAAE,EACd,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CACvB,CAAC;AAEF,wBAAwB;AACxB,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAC1C,MAAM,CAAC,KAAK,CACX,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE;IAC3B,IAAI,CAAC;QACJ,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QACf,OAAO,IAAI,CAAC;IACb,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,oBAAoB,CAAC;IAC7B,CAAC;AACF,CAAC,CAAC,CACF,CACD,CAAC;AAEF,+BAA+B;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CACjD,MAAM,CAAC,KAAK,CACX,MAAM,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE;IAC3B,MAAM,YAAY,GAAG,mDAAmD,CAAC;IACzE,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC;QAC9B,CAAC,CAAC,IAAI;QACN,CAAC,CAAC,kCAAkC,CAAC;AACvC,CAAC,CAAC,CACF,CACD,CAAC;AAEF,kCAAkC;AAClC,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAC3C,MAAM,CAAC,KAAK,EAAE,EACd,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,EAChC,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CACpC,CAAC;AAEF,gDAAgD;AAChD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* Discord webhook URL regex
|
|
4
|
+
* Matches:
|
|
5
|
+
* - https://discord.com/api/webhooks/ID/TOKEN
|
|
6
|
+
* - Optional canary/ptb subdomains
|
|
7
|
+
* - Optional /v{number} API version segment
|
|
8
|
+
* - Optional trailing slash
|
|
9
|
+
* - Supports legacy discordapp.com domain
|
|
10
|
+
* Exposes named capture groups `id` and `token` for callers that need them.
|
|
11
|
+
*/
|
|
12
|
+
export declare const DISCORD_WEBHOOK_REGEX: RegExp;
|
|
13
|
+
/**
|
|
14
|
+
* Effect Schema for validating Discord webhook URLs.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DiscordWebhookUrl: Schema.String;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
/**
|
|
3
|
+
* Discord webhook URL regex
|
|
4
|
+
* Matches:
|
|
5
|
+
* - https://discord.com/api/webhooks/ID/TOKEN
|
|
6
|
+
* - Optional canary/ptb subdomains
|
|
7
|
+
* - Optional /v{number} API version segment
|
|
8
|
+
* - Optional trailing slash
|
|
9
|
+
* - Supports legacy discordapp.com domain
|
|
10
|
+
* Exposes named capture groups `id` and `token` for callers that need them.
|
|
11
|
+
*/
|
|
12
|
+
export const DISCORD_WEBHOOK_REGEX = /^https:\/\/(?:(?:canary|ptb)\.)?discord(?:app)?\.com\/api(?:\/v\d+)?\/webhooks\/(?<id>\d+)\/(?<token>[\w-]+)\/?$/;
|
|
13
|
+
/**
|
|
14
|
+
* Effect Schema for validating Discord webhook URLs.
|
|
15
|
+
*/
|
|
16
|
+
export const DiscordWebhookUrl = Schema.String.check(Schema.isPattern(DISCORD_WEBHOOK_REGEX, {
|
|
17
|
+
message: "Invalid Discord webhook URL",
|
|
18
|
+
}));
|
|
19
|
+
//# sourceMappingURL=Discord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Discord.js","sourceRoot":"","sources":["../../src/schemas/Discord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,qBAAqB,GACjC,kHAAkH,CAAC;AAEpH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CACnD,MAAM,CAAC,SAAS,CAAC,qBAAqB,EAAE;IACvC,OAAO,EAAE,6BAA6B;CACtC,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
declare const Attachment_base: Schema.Class<Attachment, Schema.Struct<{
|
|
3
|
+
readonly url: Schema.String;
|
|
4
|
+
readonly proxyUrl: Schema.optionalKey<Schema.String>;
|
|
5
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
6
|
+
readonly size: Schema.optionalKey<Schema.Number>;
|
|
7
|
+
readonly height: Schema.optionalKey<Schema.Number>;
|
|
8
|
+
readonly width: Schema.optionalKey<Schema.Number>;
|
|
9
|
+
}>, {}>;
|
|
10
|
+
/**
|
|
11
|
+
* Attachment schema - represents file attachments or URLs
|
|
12
|
+
*/
|
|
13
|
+
export declare class Attachment extends Attachment_base {
|
|
14
|
+
}
|
|
15
|
+
export declare const UrlOrAttachment: Schema.Union<readonly [Schema.String, typeof Attachment]>;
|
|
16
|
+
declare const Author_base: Schema.Class<Author, Schema.Struct<{
|
|
17
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
18
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
19
|
+
readonly icon_url: Schema.optionalKey<Schema.Union<readonly [Schema.String, typeof Attachment]>>;
|
|
20
|
+
readonly proxy_icon_url: Schema.optionalKey<Schema.String>;
|
|
21
|
+
}>, {}>;
|
|
22
|
+
/**
|
|
23
|
+
* Author information schema
|
|
24
|
+
*/
|
|
25
|
+
export declare class Author extends Author_base {
|
|
26
|
+
}
|
|
27
|
+
declare const Footer_base: Schema.Class<Footer, Schema.Struct<{
|
|
28
|
+
readonly text: Schema.String;
|
|
29
|
+
readonly icon_url: Schema.optionalKey<Schema.Union<readonly [Schema.String, typeof Attachment]>>;
|
|
30
|
+
readonly proxy_icon_url: Schema.optionalKey<Schema.String>;
|
|
31
|
+
}>, {}>;
|
|
32
|
+
/**
|
|
33
|
+
* Footer information schema
|
|
34
|
+
*/
|
|
35
|
+
export declare class Footer extends Footer_base {
|
|
36
|
+
}
|
|
37
|
+
declare const Image_base: Schema.Class<Image, Schema.Struct<{
|
|
38
|
+
readonly url: Schema.Union<readonly [Schema.String, typeof Attachment]>;
|
|
39
|
+
readonly proxy_url: Schema.optionalKey<Schema.String>;
|
|
40
|
+
readonly height: Schema.optionalKey<Schema.Number>;
|
|
41
|
+
readonly width: Schema.optionalKey<Schema.Number>;
|
|
42
|
+
}>, {}>;
|
|
43
|
+
/**
|
|
44
|
+
* Image information schema
|
|
45
|
+
*/
|
|
46
|
+
export declare class Image extends Image_base {
|
|
47
|
+
}
|
|
48
|
+
declare const Thumbnail_base: Schema.Class<Thumbnail, Schema.Struct<{
|
|
49
|
+
readonly url: Schema.Union<readonly [Schema.String, typeof Attachment]>;
|
|
50
|
+
readonly proxy_url: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly height: Schema.optionalKey<Schema.Number>;
|
|
52
|
+
readonly width: Schema.optionalKey<Schema.Number>;
|
|
53
|
+
}>, {}>;
|
|
54
|
+
/**
|
|
55
|
+
* Thumbnail information schema
|
|
56
|
+
*/
|
|
57
|
+
export declare class Thumbnail extends Thumbnail_base {
|
|
58
|
+
}
|
|
59
|
+
declare const Video_base: Schema.Class<Video, Schema.Struct<{
|
|
60
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
61
|
+
readonly proxy_url: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly height: Schema.optionalKey<Schema.Number>;
|
|
63
|
+
readonly width: Schema.optionalKey<Schema.Number>;
|
|
64
|
+
}>, {}>;
|
|
65
|
+
/**
|
|
66
|
+
* Video information schema
|
|
67
|
+
*/
|
|
68
|
+
export declare class Video extends Video_base {
|
|
69
|
+
}
|
|
70
|
+
declare const Provider_base: Schema.Class<Provider, Schema.Struct<{
|
|
71
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
73
|
+
}>, {}>;
|
|
74
|
+
/**
|
|
75
|
+
* Provider information schema
|
|
76
|
+
*/
|
|
77
|
+
export declare class Provider extends Provider_base {
|
|
78
|
+
}
|
|
79
|
+
declare const Embed_base: Schema.Class<Embed, Schema.Struct<{
|
|
80
|
+
/**
|
|
81
|
+
* Title of the embed.
|
|
82
|
+
* Up to 256 characters.
|
|
83
|
+
*/
|
|
84
|
+
readonly title: Schema.optionalKey<Schema.String>;
|
|
85
|
+
/**
|
|
86
|
+
* Embed type.
|
|
87
|
+
* (Always "rich" for webhook embeds)
|
|
88
|
+
*/
|
|
89
|
+
readonly type: Schema.optionalKey<Schema.Literal<"rich">>;
|
|
90
|
+
/**
|
|
91
|
+
* URL of embed.
|
|
92
|
+
*/
|
|
93
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
94
|
+
/**
|
|
95
|
+
* Description of the embed.
|
|
96
|
+
* Up to 4096 characters.
|
|
97
|
+
*/
|
|
98
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
99
|
+
/**
|
|
100
|
+
* ISO8601 timestamp of the embed content.
|
|
101
|
+
*/
|
|
102
|
+
readonly timestamp: Schema.optionalKey<Schema.String>;
|
|
103
|
+
/**
|
|
104
|
+
* Color code of the embed.
|
|
105
|
+
*/
|
|
106
|
+
readonly color: Schema.optionalKey<Schema.Number>;
|
|
107
|
+
/**
|
|
108
|
+
* Footer information.
|
|
109
|
+
*/
|
|
110
|
+
readonly footer: Schema.optionalKey<typeof Footer>;
|
|
111
|
+
/**
|
|
112
|
+
* Image information.
|
|
113
|
+
*/
|
|
114
|
+
readonly image: Schema.optionalKey<typeof Image>;
|
|
115
|
+
/**
|
|
116
|
+
* Thumbnail information.
|
|
117
|
+
*/
|
|
118
|
+
readonly thumbnail: Schema.optionalKey<typeof Thumbnail>;
|
|
119
|
+
/**
|
|
120
|
+
* Video information.
|
|
121
|
+
*/
|
|
122
|
+
readonly video: Schema.optionalKey<typeof Video>;
|
|
123
|
+
/**
|
|
124
|
+
* Provider information.
|
|
125
|
+
*/
|
|
126
|
+
readonly provider: Schema.optionalKey<typeof Provider>;
|
|
127
|
+
/**
|
|
128
|
+
* Author information.
|
|
129
|
+
*/
|
|
130
|
+
readonly author: Schema.optionalKey<typeof Author>;
|
|
131
|
+
/**
|
|
132
|
+
* Fields information.
|
|
133
|
+
* Up to 25 fields.
|
|
134
|
+
*/
|
|
135
|
+
readonly fields: Schema.optionalKey<Schema.$Array<typeof import("./Field").Field>>;
|
|
136
|
+
}>, {}>;
|
|
137
|
+
/**
|
|
138
|
+
* Main Embed schema
|
|
139
|
+
*/
|
|
140
|
+
export declare class Embed extends Embed_base {
|
|
141
|
+
}
|
|
142
|
+
export declare const EmbedArray: Schema.$Array<typeof Embed>;
|
|
143
|
+
export {};
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { ColorCode, ISO8601Timestamp, maxLength, positiveInt, UrlString, } from "./Common";
|
|
3
|
+
import { FieldArray } from "./Field";
|
|
4
|
+
/**
|
|
5
|
+
* Attachment schema - represents file attachments or URLs
|
|
6
|
+
*/
|
|
7
|
+
export class Attachment extends Schema.Class("Attachment")({
|
|
8
|
+
url: Schema.String,
|
|
9
|
+
proxyUrl: Schema.optionalKey(Schema.String),
|
|
10
|
+
filename: Schema.optionalKey(Schema.String),
|
|
11
|
+
size: Schema.optionalKey(positiveInt),
|
|
12
|
+
height: Schema.optionalKey(positiveInt),
|
|
13
|
+
width: Schema.optionalKey(positiveInt),
|
|
14
|
+
}) {
|
|
15
|
+
}
|
|
16
|
+
// Union type for URL or Attachment
|
|
17
|
+
export const UrlOrAttachment = Schema.Union([UrlString, Attachment]);
|
|
18
|
+
/**
|
|
19
|
+
* Author information schema
|
|
20
|
+
*/
|
|
21
|
+
export class Author extends Schema.Class("Author")({
|
|
22
|
+
name: Schema.optionalKey(maxLength(256)),
|
|
23
|
+
url: Schema.optionalKey(UrlString),
|
|
24
|
+
icon_url: Schema.optionalKey(UrlOrAttachment),
|
|
25
|
+
proxy_icon_url: Schema.optionalKey(Schema.String),
|
|
26
|
+
}) {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Footer information schema
|
|
30
|
+
*/
|
|
31
|
+
export class Footer extends Schema.Class("Footer")({
|
|
32
|
+
text: maxLength(2048),
|
|
33
|
+
icon_url: Schema.optionalKey(UrlOrAttachment),
|
|
34
|
+
proxy_icon_url: Schema.optionalKey(Schema.String),
|
|
35
|
+
}) {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Image information schema
|
|
39
|
+
*/
|
|
40
|
+
export class Image extends Schema.Class("Image")({
|
|
41
|
+
url: UrlOrAttachment,
|
|
42
|
+
proxy_url: Schema.optionalKey(Schema.String),
|
|
43
|
+
height: Schema.optionalKey(positiveInt),
|
|
44
|
+
width: Schema.optionalKey(positiveInt),
|
|
45
|
+
}) {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Thumbnail information schema
|
|
49
|
+
*/
|
|
50
|
+
export class Thumbnail extends Schema.Class("Thumbnail")({
|
|
51
|
+
url: UrlOrAttachment,
|
|
52
|
+
proxy_url: Schema.optionalKey(Schema.String),
|
|
53
|
+
height: Schema.optionalKey(positiveInt),
|
|
54
|
+
width: Schema.optionalKey(positiveInt),
|
|
55
|
+
}) {
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Video information schema
|
|
59
|
+
*/
|
|
60
|
+
export class Video extends Schema.Class("Video")({
|
|
61
|
+
url: Schema.optionalKey(UrlString),
|
|
62
|
+
proxy_url: Schema.optionalKey(Schema.String),
|
|
63
|
+
height: Schema.optionalKey(positiveInt),
|
|
64
|
+
width: Schema.optionalKey(positiveInt),
|
|
65
|
+
}) {
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Provider information schema
|
|
69
|
+
*/
|
|
70
|
+
export class Provider extends Schema.Class("Provider")({
|
|
71
|
+
name: Schema.optionalKey(Schema.String),
|
|
72
|
+
url: Schema.optionalKey(UrlString),
|
|
73
|
+
}) {
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Main Embed schema
|
|
77
|
+
*/
|
|
78
|
+
export class Embed extends Schema.Class("Embed")({
|
|
79
|
+
/**
|
|
80
|
+
* Title of the embed.
|
|
81
|
+
* Up to 256 characters.
|
|
82
|
+
*/
|
|
83
|
+
title: Schema.optionalKey(maxLength(256)),
|
|
84
|
+
/**
|
|
85
|
+
* Embed type.
|
|
86
|
+
* (Always "rich" for webhook embeds)
|
|
87
|
+
*/
|
|
88
|
+
type: Schema.optionalKey(Schema.Literal("rich")),
|
|
89
|
+
/**
|
|
90
|
+
* URL of embed.
|
|
91
|
+
*/
|
|
92
|
+
url: Schema.optionalKey(UrlString),
|
|
93
|
+
/**
|
|
94
|
+
* Description of the embed.
|
|
95
|
+
* Up to 4096 characters.
|
|
96
|
+
*/
|
|
97
|
+
description: Schema.optionalKey(maxLength(4096)),
|
|
98
|
+
/**
|
|
99
|
+
* ISO8601 timestamp of the embed content.
|
|
100
|
+
*/
|
|
101
|
+
timestamp: Schema.optionalKey(ISO8601Timestamp),
|
|
102
|
+
/**
|
|
103
|
+
* Color code of the embed.
|
|
104
|
+
*/
|
|
105
|
+
color: Schema.optionalKey(ColorCode),
|
|
106
|
+
/**
|
|
107
|
+
* Footer information.
|
|
108
|
+
*/
|
|
109
|
+
footer: Schema.optionalKey(Footer),
|
|
110
|
+
/**
|
|
111
|
+
* Image information.
|
|
112
|
+
*/
|
|
113
|
+
image: Schema.optionalKey(Image),
|
|
114
|
+
/**
|
|
115
|
+
* Thumbnail information.
|
|
116
|
+
*/
|
|
117
|
+
thumbnail: Schema.optionalKey(Thumbnail),
|
|
118
|
+
/**
|
|
119
|
+
* Video information.
|
|
120
|
+
*/
|
|
121
|
+
video: Schema.optionalKey(Video),
|
|
122
|
+
/**
|
|
123
|
+
* Provider information.
|
|
124
|
+
*/
|
|
125
|
+
provider: Schema.optionalKey(Provider),
|
|
126
|
+
/**
|
|
127
|
+
* Author information.
|
|
128
|
+
*/
|
|
129
|
+
author: Schema.optionalKey(Author),
|
|
130
|
+
/**
|
|
131
|
+
* Fields information.
|
|
132
|
+
* Up to 25 fields.
|
|
133
|
+
*/
|
|
134
|
+
fields: Schema.optionalKey(FieldArray),
|
|
135
|
+
}) {
|
|
136
|
+
}
|
|
137
|
+
// Array of embeds with max 10 constraint
|
|
138
|
+
export const EmbedArray = Schema.Array(Embed).pipe(Schema.check(Schema.isMaxLength(10)));
|
|
139
|
+
//# sourceMappingURL=Embed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Embed.js","sourceRoot":"","sources":["../../src/schemas/Embed.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EACN,SAAS,EACT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
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
declare const Field_base: Schema.Class<Field, Schema.Struct<{
|
|
3
|
+
/**
|
|
4
|
+
* Name of the field.
|
|
5
|
+
* Up to 256 characters.
|
|
6
|
+
*/
|
|
7
|
+
readonly name: Schema.String;
|
|
8
|
+
/**
|
|
9
|
+
* Value of the field.
|
|
10
|
+
* Up to 1024 characters.
|
|
11
|
+
*/
|
|
12
|
+
readonly value: Schema.String;
|
|
13
|
+
/**
|
|
14
|
+
* Whether or not this field should be displayed inline.
|
|
15
|
+
*/
|
|
16
|
+
readonly inline: Schema.optionalKey<Schema.Boolean>;
|
|
17
|
+
}>, {}>;
|
|
18
|
+
/**
|
|
19
|
+
* Discord embed field schema
|
|
20
|
+
*/
|
|
21
|
+
export declare class Field extends Field_base {
|
|
22
|
+
}
|
|
23
|
+
export declare const FieldArray: Schema.$Array<typeof Field>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { maxLength } from "./Common";
|
|
3
|
+
/**
|
|
4
|
+
* Discord embed field schema
|
|
5
|
+
*/
|
|
6
|
+
export class Field extends Schema.Class("Field")({
|
|
7
|
+
/**
|
|
8
|
+
* Name of the field.
|
|
9
|
+
* Up to 256 characters.
|
|
10
|
+
*/
|
|
11
|
+
name: maxLength(256),
|
|
12
|
+
/**
|
|
13
|
+
* Value of the field.
|
|
14
|
+
* Up to 1024 characters.
|
|
15
|
+
*/
|
|
16
|
+
value: maxLength(1024),
|
|
17
|
+
/**
|
|
18
|
+
* Whether or not this field should be displayed inline.
|
|
19
|
+
*/
|
|
20
|
+
inline: Schema.optionalKey(Schema.Boolean),
|
|
21
|
+
}) {
|
|
22
|
+
}
|
|
23
|
+
// Array of fields with max 25 constraint
|
|
24
|
+
export const FieldArray = Schema.Array(Field).pipe(Schema.check(Schema.isMaxLength(25)));
|
|
25
|
+
//# sourceMappingURL=Field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../src/schemas/Field.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,MAAM,CAAC,KAAK,CAAQ,OAAO,CAAC,CAAC;IACvD;;;OAGG;IACH,IAAI,EAAE,SAAS,CAAC,GAAG,CAAC;IAEpB;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;CAC1C,CAAC;CAAG;AAEL,yCAAyC;AACzC,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CACjD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,CACpC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { Attachment } from "./Embed";
|
|
3
|
+
/**
|
|
4
|
+
* File attachment for webhooks
|
|
5
|
+
*/
|
|
6
|
+
export declare const WebhookFile: Schema.Union<readonly [Schema.String, typeof Attachment, Schema.Struct<{
|
|
7
|
+
readonly name: Schema.String;
|
|
8
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.instanceOf<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>;
|
|
9
|
+
}>]>;
|
|
10
|
+
declare const Webhook_base: Schema.Class<Webhook, Schema.Struct<{
|
|
11
|
+
/**
|
|
12
|
+
* Webhook username override.
|
|
13
|
+
*/
|
|
14
|
+
readonly username: Schema.optionalKey<Schema.String>;
|
|
15
|
+
/**
|
|
16
|
+
* Webhook avatar URL override.
|
|
17
|
+
*/
|
|
18
|
+
readonly avatar_url: Schema.optionalKey<Schema.String>;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not this notification should be read as text to speech.
|
|
21
|
+
*/
|
|
22
|
+
readonly tts: Schema.optionalKey<Schema.Boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Message contents.
|
|
25
|
+
* Max 2000 characters
|
|
26
|
+
*/
|
|
27
|
+
readonly content: Schema.optionalKey<Schema.String>;
|
|
28
|
+
/**
|
|
29
|
+
* Contents of a file being sent.
|
|
30
|
+
*/
|
|
31
|
+
readonly file: Schema.optionalKey<Schema.Union<readonly [Schema.String, typeof Attachment, Schema.Struct<{
|
|
32
|
+
readonly name: Schema.String;
|
|
33
|
+
readonly data: Schema.Union<readonly [Schema.String, Schema.instanceOf<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>;
|
|
34
|
+
}>]>>;
|
|
35
|
+
/**
|
|
36
|
+
* Embedded "rich" content.
|
|
37
|
+
* Max 10 embeds
|
|
38
|
+
*/
|
|
39
|
+
readonly embeds: Schema.optionalKey<Schema.$Array<typeof import("./Embed").Embed>>;
|
|
40
|
+
}>, {}>;
|
|
41
|
+
/**
|
|
42
|
+
* Main Webhook schema
|
|
43
|
+
*/
|
|
44
|
+
export declare class Webhook extends Webhook_base {
|
|
45
|
+
}
|
|
46
|
+
declare const WebhookParameter_base: Schema.Class<WebhookParameter, Schema.Struct<{
|
|
47
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly avatar: Schema.optionalKey<Schema.String>;
|
|
49
|
+
readonly channel_id: Schema.optionalKey<Schema.String>;
|
|
50
|
+
}>, {}>;
|
|
51
|
+
/**
|
|
52
|
+
* Webhook parameter schema (for modify operations)
|
|
53
|
+
*/
|
|
54
|
+
export declare class WebhookParameter extends WebhookParameter_base {
|
|
55
|
+
}
|
|
56
|
+
declare const WebhookResponse_base: Schema.Class<WebhookResponse, Schema.Struct<{
|
|
57
|
+
readonly id: Schema.String;
|
|
58
|
+
readonly type: Schema.Number;
|
|
59
|
+
readonly guild_id: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly channel_id: Schema.String;
|
|
61
|
+
readonly user: Schema.optionalKey<Schema.Struct<{
|
|
62
|
+
readonly id: Schema.String;
|
|
63
|
+
readonly username: Schema.String;
|
|
64
|
+
readonly avatar: Schema.optionalKey<Schema.String>;
|
|
65
|
+
readonly discriminator: Schema.String;
|
|
66
|
+
readonly public_flags: Schema.optionalKey<Schema.Number>;
|
|
67
|
+
}>>;
|
|
68
|
+
readonly name: Schema.optionalKey<Schema.String>;
|
|
69
|
+
readonly avatar: Schema.optionalKey<Schema.String>;
|
|
70
|
+
readonly token: Schema.optionalKey<Schema.String>;
|
|
71
|
+
readonly application_id: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly source_guild: Schema.optionalKey<Schema.Struct<{
|
|
73
|
+
readonly id: Schema.String;
|
|
74
|
+
readonly name: Schema.String;
|
|
75
|
+
readonly icon: Schema.optionalKey<Schema.String>;
|
|
76
|
+
}>>;
|
|
77
|
+
readonly source_channel: Schema.optionalKey<Schema.Struct<{
|
|
78
|
+
readonly id: Schema.String;
|
|
79
|
+
readonly name: Schema.String;
|
|
80
|
+
}>>;
|
|
81
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
82
|
+
}>, {}>;
|
|
83
|
+
/**
|
|
84
|
+
* Webhook response schema
|
|
85
|
+
*/
|
|
86
|
+
export declare class WebhookResponse extends WebhookResponse_base {
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
import { maxLength, Uint8ArraySchema, UrlString } from "./Common";
|
|
3
|
+
import { Attachment, EmbedArray } from "./Embed";
|
|
4
|
+
/**
|
|
5
|
+
* File attachment for webhooks
|
|
6
|
+
*/
|
|
7
|
+
export const WebhookFile = Schema.Union([
|
|
8
|
+
Schema.String,
|
|
9
|
+
Attachment,
|
|
10
|
+
Schema.Struct({
|
|
11
|
+
name: Schema.String,
|
|
12
|
+
data: Schema.Union([Schema.String, Uint8ArraySchema]),
|
|
13
|
+
}),
|
|
14
|
+
]);
|
|
15
|
+
/**
|
|
16
|
+
* Main Webhook schema
|
|
17
|
+
*/
|
|
18
|
+
export class Webhook extends Schema.Class("Webhook")({
|
|
19
|
+
/**
|
|
20
|
+
* Webhook username override.
|
|
21
|
+
*/
|
|
22
|
+
username: Schema.optionalKey(maxLength(80)),
|
|
23
|
+
/**
|
|
24
|
+
* Webhook avatar URL override.
|
|
25
|
+
*/
|
|
26
|
+
avatar_url: Schema.optionalKey(UrlString),
|
|
27
|
+
/**
|
|
28
|
+
* Whether or not this notification should be read as text to speech.
|
|
29
|
+
*/
|
|
30
|
+
tts: Schema.optionalKey(Schema.Boolean),
|
|
31
|
+
/**
|
|
32
|
+
* Message contents.
|
|
33
|
+
* Max 2000 characters
|
|
34
|
+
*/
|
|
35
|
+
content: Schema.optionalKey(maxLength(2000)),
|
|
36
|
+
/**
|
|
37
|
+
* Contents of a file being sent.
|
|
38
|
+
*/
|
|
39
|
+
file: Schema.optionalKey(WebhookFile),
|
|
40
|
+
/**
|
|
41
|
+
* Embedded "rich" content.
|
|
42
|
+
* Max 10 embeds
|
|
43
|
+
*/
|
|
44
|
+
embeds: Schema.optionalKey(EmbedArray),
|
|
45
|
+
}) {
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Webhook parameter schema (for modify operations)
|
|
49
|
+
*/
|
|
50
|
+
export class WebhookParameter extends Schema.Class("WebhookParameter")({
|
|
51
|
+
name: Schema.optionalKey(maxLength(80)),
|
|
52
|
+
avatar: Schema.optionalKey(UrlString),
|
|
53
|
+
channel_id: Schema.optionalKey(Schema.String),
|
|
54
|
+
}) {
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Webhook response schema
|
|
58
|
+
*/
|
|
59
|
+
export class WebhookResponse extends Schema.Class("WebhookResponse")({
|
|
60
|
+
id: Schema.String,
|
|
61
|
+
type: Schema.Number,
|
|
62
|
+
guild_id: Schema.optionalKey(Schema.String),
|
|
63
|
+
channel_id: Schema.String,
|
|
64
|
+
user: Schema.optionalKey(Schema.Struct({
|
|
65
|
+
id: Schema.String,
|
|
66
|
+
username: Schema.String,
|
|
67
|
+
avatar: Schema.optionalKey(Schema.String),
|
|
68
|
+
discriminator: Schema.String,
|
|
69
|
+
public_flags: Schema.optionalKey(Schema.Number),
|
|
70
|
+
})),
|
|
71
|
+
name: Schema.optionalKey(Schema.String),
|
|
72
|
+
avatar: Schema.optionalKey(Schema.String),
|
|
73
|
+
token: Schema.optionalKey(Schema.String),
|
|
74
|
+
application_id: Schema.optionalKey(Schema.String),
|
|
75
|
+
source_guild: Schema.optionalKey(Schema.Struct({
|
|
76
|
+
id: Schema.String,
|
|
77
|
+
name: Schema.String,
|
|
78
|
+
icon: Schema.optionalKey(Schema.String),
|
|
79
|
+
})),
|
|
80
|
+
source_channel: Schema.optionalKey(Schema.Struct({
|
|
81
|
+
id: Schema.String,
|
|
82
|
+
name: Schema.String,
|
|
83
|
+
})),
|
|
84
|
+
url: Schema.optionalKey(UrlString),
|
|
85
|
+
}) {
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=Webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Webhook.js","sourceRoot":"","sources":["../../src/schemas/Webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;IACvC,MAAM,CAAC,MAAM;IACb,UAAU;IACV,MAAM,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,MAA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