@teever/ez-hook 0.3.5
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/LICENSE +21 -0
- package/README.md +147 -0
- package/dist/classes/Embed.d.ts +205 -0
- package/dist/classes/Embed.d.ts.map +1 -0
- package/dist/classes/Embed.js +315 -0
- package/dist/classes/Embed.js.map +1 -0
- package/dist/classes/Errors.d.ts +59 -0
- package/dist/classes/Errors.d.ts.map +1 -0
- package/dist/classes/Errors.js +75 -0
- package/dist/classes/Errors.js.map +1 -0
- package/dist/classes/RequestClient.d.ts +38 -0
- package/dist/classes/RequestClient.d.ts.map +1 -0
- package/dist/classes/RequestClient.js +117 -0
- package/dist/classes/RequestClient.js.map +1 -0
- package/dist/classes/Webhook.d.ts +136 -0
- package/dist/classes/Webhook.d.ts.map +1 -0
- package/dist/classes/Webhook.js +208 -0
- package/dist/classes/Webhook.js.map +1 -0
- package/dist/classes/index.d.ts +5 -0
- package/dist/classes/index.d.ts.map +1 -0
- package/dist/classes/index.js +5 -0
- package/dist/classes/index.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/types/FileAttachment.d.ts +19 -0
- package/dist/types/FileAttachment.d.ts.map +1 -0
- package/dist/types/FileAttachment.js +2 -0
- package/dist/types/FileAttachment.js.map +1 -0
- package/dist/types/IAttachment.d.ts +39 -0
- package/dist/types/IAttachment.d.ts.map +1 -0
- package/dist/types/IAttachment.js +2 -0
- package/dist/types/IAttachment.js.map +1 -0
- package/dist/types/IAuthor.d.ts +21 -0
- package/dist/types/IAuthor.d.ts.map +1 -0
- package/dist/types/IAuthor.js +2 -0
- package/dist/types/IAuthor.js.map +1 -0
- package/dist/types/IEmbed.d.ts +66 -0
- package/dist/types/IEmbed.d.ts.map +1 -0
- package/dist/types/IEmbed.js +2 -0
- package/dist/types/IEmbed.js.map +1 -0
- package/dist/types/IField.d.ts +17 -0
- package/dist/types/IField.d.ts.map +1 -0
- package/dist/types/IField.js +2 -0
- package/dist/types/IField.js.map +1 -0
- package/dist/types/IFooter.d.ts +17 -0
- package/dist/types/IFooter.d.ts.map +1 -0
- package/dist/types/IFooter.js +2 -0
- package/dist/types/IFooter.js.map +1 -0
- package/dist/types/IImage.d.ts +21 -0
- package/dist/types/IImage.d.ts.map +1 -0
- package/dist/types/IImage.js +2 -0
- package/dist/types/IImage.js.map +1 -0
- package/dist/types/IProvider.d.ts +11 -0
- package/dist/types/IProvider.d.ts.map +1 -0
- package/dist/types/IProvider.js +2 -0
- package/dist/types/IProvider.js.map +1 -0
- package/dist/types/IThumbnail.d.ts +21 -0
- package/dist/types/IThumbnail.d.ts.map +1 -0
- package/dist/types/IThumbnail.js +2 -0
- package/dist/types/IThumbnail.js.map +1 -0
- package/dist/types/IUser.d.ts +67 -0
- package/dist/types/IUser.d.ts.map +1 -0
- package/dist/types/IUser.js +2 -0
- package/dist/types/IUser.js.map +1 -0
- package/dist/types/IVideo.d.ts +15 -0
- package/dist/types/IVideo.d.ts.map +1 -0
- package/dist/types/IVideo.js +2 -0
- package/dist/types/IVideo.js.map +1 -0
- package/dist/types/IWebhook.d.ts +30 -0
- package/dist/types/IWebhook.d.ts.map +1 -0
- package/dist/types/IWebhook.js +2 -0
- package/dist/types/IWebhook.js.map +1 -0
- package/dist/types/IWebhookParameter.d.ts +16 -0
- package/dist/types/IWebhookParameter.d.ts.map +1 -0
- package/dist/types/IWebhookParameter.js +2 -0
- package/dist/types/IWebhookParameter.js.map +1 -0
- package/dist/types/IWebhookResponse.d.ts +62 -0
- package/dist/types/IWebhookResponse.d.ts.map +1 -0
- package/dist/types/IWebhookResponse.js +2 -0
- package/dist/types/IWebhookResponse.js.map +1 -0
- package/dist/types/WebhookResponse.d.ts +38 -0
- package/dist/types/WebhookResponse.d.ts.map +1 -0
- package/dist/types/WebhookResponse.js +2 -0
- package/dist/types/WebhookResponse.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/classes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EACN,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple file attachment interface for webhook files
|
|
3
|
+
* This is different from IAttachment which represents Discord's attachment response
|
|
4
|
+
*/
|
|
5
|
+
export interface FileAttachment {
|
|
6
|
+
/** Name of the file */
|
|
7
|
+
filename: string;
|
|
8
|
+
/** File content (base64 encoded or raw data) */
|
|
9
|
+
data: string;
|
|
10
|
+
/** MIME type of the file */
|
|
11
|
+
contentType?: string;
|
|
12
|
+
/** Description of the file */
|
|
13
|
+
description?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Union type for file attachments - can be string content or file object
|
|
17
|
+
*/
|
|
18
|
+
export type WebhookFile = string | FileAttachment;
|
|
19
|
+
//# sourceMappingURL=FileAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachment.d.ts","sourceRoot":"","sources":["../../src/types/FileAttachment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC9B,uBAAuB;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAA;IACZ,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileAttachment.js","sourceRoot":"","sources":["../../src/types/FileAttachment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface IAttachment {
|
|
2
|
+
/**
|
|
3
|
+
* Attachment ID.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the file attached.
|
|
8
|
+
*/
|
|
9
|
+
filename: string;
|
|
10
|
+
/**
|
|
11
|
+
* Size of the file in bytes.
|
|
12
|
+
*/
|
|
13
|
+
size: number;
|
|
14
|
+
/**
|
|
15
|
+
* Source URL of the file.
|
|
16
|
+
*/
|
|
17
|
+
url: string;
|
|
18
|
+
/**
|
|
19
|
+
* A proxied URL of the file.
|
|
20
|
+
*/
|
|
21
|
+
proxy_url: string;
|
|
22
|
+
/**
|
|
23
|
+
* Height of the file. (if image)
|
|
24
|
+
*/
|
|
25
|
+
height?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Width of the file. (if image)
|
|
28
|
+
*/
|
|
29
|
+
width?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Base64 encoded bytearray representing a sampled waveform (currently for voice messages)
|
|
32
|
+
*/
|
|
33
|
+
waveform?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Description for the file (max 1024 characters)
|
|
36
|
+
*/
|
|
37
|
+
description?: string;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=IAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAttachment.d.ts","sourceRoot":"","sources":["../../src/types/IAttachment.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAttachment.js","sourceRoot":"","sources":["../../src/types/IAttachment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IAttachment } from './IAttachment';
|
|
2
|
+
export interface IAuthor {
|
|
3
|
+
/**
|
|
4
|
+
* Name of the author.
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* URL of the author.
|
|
9
|
+
*/
|
|
10
|
+
url?: string;
|
|
11
|
+
/**
|
|
12
|
+
* URL of the author icon.
|
|
13
|
+
* (Only supports HTTP(s) and attachments)
|
|
14
|
+
*/
|
|
15
|
+
icon_url?: string | IAttachment;
|
|
16
|
+
/**
|
|
17
|
+
* Proxied URL of the author icon.
|
|
18
|
+
*/
|
|
19
|
+
proxy_icon_url?: string;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=IAuthor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuthor.d.ts","sourceRoot":"","sources":["../../src/types/IAuthor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,WAAW,OAAO;IACvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuthor.js","sourceRoot":"","sources":["../../src/types/IAuthor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { IAuthor } from './IAuthor';
|
|
2
|
+
import type { IField } from './IField';
|
|
3
|
+
import type { IFooter } from './IFooter';
|
|
4
|
+
import type { IImage } from './IImage';
|
|
5
|
+
import type { IProvider } from './IProvider';
|
|
6
|
+
import type { IThumbnail } from './IThumbnail';
|
|
7
|
+
import type { IVideo } from './IVideo';
|
|
8
|
+
export interface IEmbed {
|
|
9
|
+
/**
|
|
10
|
+
* Title of the embed.
|
|
11
|
+
* Up to 256 characters.
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Embed type.
|
|
16
|
+
* (Always "rich" for webhook embeds)
|
|
17
|
+
*/
|
|
18
|
+
type?: 'rich';
|
|
19
|
+
/**
|
|
20
|
+
* URL of embed.
|
|
21
|
+
*/
|
|
22
|
+
url?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Description of the embed.
|
|
25
|
+
* Up to 2048 characters.
|
|
26
|
+
*/
|
|
27
|
+
description?: string;
|
|
28
|
+
/**
|
|
29
|
+
* ISO8601 timestamp of the embed content.
|
|
30
|
+
*/
|
|
31
|
+
timestamp?: string;
|
|
32
|
+
/**
|
|
33
|
+
* color code of the embed.
|
|
34
|
+
*/
|
|
35
|
+
color?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Footer information.
|
|
38
|
+
*/
|
|
39
|
+
footer?: IFooter;
|
|
40
|
+
/**
|
|
41
|
+
* Image information.
|
|
42
|
+
*/
|
|
43
|
+
image?: IImage;
|
|
44
|
+
/**
|
|
45
|
+
* Thumbnail information.
|
|
46
|
+
*/
|
|
47
|
+
thumbnail?: IThumbnail;
|
|
48
|
+
/**
|
|
49
|
+
* Video information.
|
|
50
|
+
*/
|
|
51
|
+
video?: IVideo;
|
|
52
|
+
/**
|
|
53
|
+
* Provider information.
|
|
54
|
+
*/
|
|
55
|
+
provider?: IProvider;
|
|
56
|
+
/**
|
|
57
|
+
* Author information.
|
|
58
|
+
*/
|
|
59
|
+
author?: IAuthor;
|
|
60
|
+
/**
|
|
61
|
+
* Fields information.
|
|
62
|
+
* Up to 25 fields.
|
|
63
|
+
*/
|
|
64
|
+
fields?: Array<IField>;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=IEmbed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmbed.d.ts","sourceRoot":"","sources":["../../src/types/IEmbed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,MAAM,WAAW,MAAM;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAA;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IEmbed.js","sourceRoot":"","sources":["../../src/types/IEmbed.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IField {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the field.
|
|
4
|
+
* Up to 256 characters.
|
|
5
|
+
*/
|
|
6
|
+
name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Value of the field.
|
|
9
|
+
* Up to 1024 characters.
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not this field should be displayed inline.
|
|
14
|
+
*/
|
|
15
|
+
inline?: boolean;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=IField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IField.d.ts","sourceRoot":"","sources":["../../src/types/IField.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IField.js","sourceRoot":"","sources":["../../src/types/IField.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IAttachment } from './IAttachment';
|
|
2
|
+
export interface IFooter {
|
|
3
|
+
/**
|
|
4
|
+
* Footer text.
|
|
5
|
+
*/
|
|
6
|
+
text: string;
|
|
7
|
+
/**
|
|
8
|
+
* URL of the footer icon.
|
|
9
|
+
* Only supports HTTP(s) and attachments
|
|
10
|
+
*/
|
|
11
|
+
icon_url?: string | IAttachment;
|
|
12
|
+
/**
|
|
13
|
+
* A proxied URL of the footer icon.
|
|
14
|
+
*/
|
|
15
|
+
proxy_icon_url?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=IFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFooter.d.ts","sourceRoot":"","sources":["../../src/types/IFooter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,WAAW,OAAO;IACvB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAE/B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IFooter.js","sourceRoot":"","sources":["../../src/types/IFooter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IAttachment } from './IAttachment';
|
|
2
|
+
export interface IImage {
|
|
3
|
+
/**
|
|
4
|
+
* Source URL of the image.
|
|
5
|
+
* (Only supports http(s) and attachments)
|
|
6
|
+
*/
|
|
7
|
+
url: string | IAttachment;
|
|
8
|
+
/**
|
|
9
|
+
* A proxied URL of the thumbnail.
|
|
10
|
+
*/
|
|
11
|
+
proxy_url?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Height of the thumbnail.
|
|
14
|
+
*/
|
|
15
|
+
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Width of the thumbnail.
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=IImage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IImage.d.ts","sourceRoot":"","sources":["../../src/types/IImage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,WAAW,MAAM;IACtB;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IImage.js","sourceRoot":"","sources":["../../src/types/IImage.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IProvider.d.ts","sourceRoot":"","sources":["../../src/types/IProvider.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IProvider.js","sourceRoot":"","sources":["../../src/types/IProvider.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IAttachment } from './IAttachment';
|
|
2
|
+
export interface IThumbnail {
|
|
3
|
+
/**
|
|
4
|
+
* Source URL of the thumbnail.
|
|
5
|
+
* (Only supports http(s) and attachments)
|
|
6
|
+
*/
|
|
7
|
+
url: string | IAttachment;
|
|
8
|
+
/**
|
|
9
|
+
* A proxied URL of the thumbnail.
|
|
10
|
+
*/
|
|
11
|
+
proxy_url?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Height of the thumbnail.
|
|
14
|
+
*/
|
|
15
|
+
height?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Width of the thumbnail.
|
|
18
|
+
*/
|
|
19
|
+
width?: number;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=IThumbnail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IThumbnail.d.ts","sourceRoot":"","sources":["../../src/types/IThumbnail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,WAAW,UAAU;IAC1B;;;OAGG;IACH,GAAG,EAAE,MAAM,GAAG,WAAW,CAAA;IAEzB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IThumbnail.js","sourceRoot":"","sources":["../../src/types/IThumbnail.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export interface IUser {
|
|
2
|
+
/**
|
|
3
|
+
* User ID
|
|
4
|
+
* Snowflake
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* User's username.
|
|
9
|
+
* Not unique across the platform.
|
|
10
|
+
*/
|
|
11
|
+
username: string;
|
|
12
|
+
/**
|
|
13
|
+
* The user's 4-digit discord-tag
|
|
14
|
+
*/
|
|
15
|
+
discriminator: string;
|
|
16
|
+
/**
|
|
17
|
+
* User's avatar hash.
|
|
18
|
+
*/
|
|
19
|
+
avatar: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not the user belongs to an OAuth2 application.
|
|
22
|
+
*/
|
|
23
|
+
bot?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* whether the user is an Official Discord System user (part of the urgent message system)
|
|
26
|
+
*/
|
|
27
|
+
system?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Whether or not the user has two-factor authentication enabled.
|
|
30
|
+
*/
|
|
31
|
+
mfa_enabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* the user's banner hash
|
|
34
|
+
*/
|
|
35
|
+
banner?: string;
|
|
36
|
+
/**
|
|
37
|
+
* the user's banner color encoded as an integer representation of hexadecimal color code
|
|
38
|
+
*/
|
|
39
|
+
accent_color?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The user's chosen language option.
|
|
42
|
+
*/
|
|
43
|
+
locale?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Whether or not the user has verified their email address.
|
|
46
|
+
*/
|
|
47
|
+
verified?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The user's email address.
|
|
50
|
+
*/
|
|
51
|
+
email?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The flags on the user's account.
|
|
54
|
+
*
|
|
55
|
+
* @link https://discordapp.com/developers/docs/resources/user#user-object-user-flags
|
|
56
|
+
*/
|
|
57
|
+
flags?: number;
|
|
58
|
+
/**
|
|
59
|
+
* User's Nitro subscription type.
|
|
60
|
+
*/
|
|
61
|
+
premium_type: number;
|
|
62
|
+
/**
|
|
63
|
+
* the public flags on a user's account
|
|
64
|
+
*/
|
|
65
|
+
public_flags?: number;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=IUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUser.d.ts","sourceRoot":"","sources":["../../src/types/IUser.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACrB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IUser.js","sourceRoot":"","sources":["../../src/types/IUser.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IVideo.d.ts","sourceRoot":"","sources":["../../src/types/IVideo.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IVideo.js","sourceRoot":"","sources":["../../src/types/IVideo.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IAttachment } from './IAttachment';
|
|
2
|
+
import type { IEmbed } from './IEmbed';
|
|
3
|
+
export interface IWebhook {
|
|
4
|
+
/**
|
|
5
|
+
* Webhook username override.
|
|
6
|
+
*/
|
|
7
|
+
username?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Webhook avatar override.
|
|
10
|
+
*/
|
|
11
|
+
avatar_url?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not this notification should be read as text to speech.
|
|
14
|
+
*/
|
|
15
|
+
tts?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Message contents.
|
|
18
|
+
* Max 2000 characters
|
|
19
|
+
*/
|
|
20
|
+
content?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Contents of a file being sent.
|
|
23
|
+
*/
|
|
24
|
+
file?: IAttachment | string;
|
|
25
|
+
/**
|
|
26
|
+
* Embedded "rich" content.
|
|
27
|
+
*/
|
|
28
|
+
embeds?: Array<IEmbed>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=IWebhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhook.d.ts","sourceRoot":"","sources":["../../src/types/IWebhook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC,MAAM,WAAW,QAAQ;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,MAAM,CAAA;IAE3B;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhook.js","sourceRoot":"","sources":["../../src/types/IWebhook.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface IWebhookParameter {
|
|
2
|
+
/**
|
|
3
|
+
* Update the default name of the webhook.
|
|
4
|
+
*/
|
|
5
|
+
name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Update the default avatar of the webhook.
|
|
8
|
+
*/
|
|
9
|
+
avatar?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Move the webhook to another channel.
|
|
12
|
+
* Snowflake
|
|
13
|
+
*/
|
|
14
|
+
channel_id?: string;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=IWebhookParameter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhookParameter.d.ts","sourceRoot":"","sources":["../../src/types/IWebhookParameter.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhookParameter.js","sourceRoot":"","sources":["../../src/types/IWebhookParameter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { IUser } from './IUser';
|
|
2
|
+
export interface IWebhookResponse {
|
|
3
|
+
/**
|
|
4
|
+
* ID of the current webhook.
|
|
5
|
+
* Snowflake
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* the type of the webhook
|
|
10
|
+
*/
|
|
11
|
+
type: number;
|
|
12
|
+
/**
|
|
13
|
+
* ID of the channel this webhook belongs to.
|
|
14
|
+
* Snowflake
|
|
15
|
+
*/
|
|
16
|
+
channel_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* ID of the guild this webhook belongs to.
|
|
19
|
+
* Snowflake
|
|
20
|
+
*/
|
|
21
|
+
guild_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* User that created this webhook.
|
|
24
|
+
*/
|
|
25
|
+
user?: IUser;
|
|
26
|
+
/**
|
|
27
|
+
* Name of the current webhook.
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Avatar of the current webhook.
|
|
32
|
+
*/
|
|
33
|
+
avatar: string;
|
|
34
|
+
/**
|
|
35
|
+
* Secure token of the current webhook.
|
|
36
|
+
*/
|
|
37
|
+
token: string;
|
|
38
|
+
/**
|
|
39
|
+
* the bot/OAuth2 application that created this webhook
|
|
40
|
+
*/
|
|
41
|
+
application_id: string;
|
|
42
|
+
/**
|
|
43
|
+
* the url used for executing the webhook (returned by the webhooks OAuth2 flow)
|
|
44
|
+
*/
|
|
45
|
+
url?: string;
|
|
46
|
+
/**
|
|
47
|
+
* partial guild object
|
|
48
|
+
*/
|
|
49
|
+
source_guild?: {
|
|
50
|
+
id: number;
|
|
51
|
+
name: string;
|
|
52
|
+
icon?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* partial channel object
|
|
56
|
+
*/
|
|
57
|
+
source_channel?: {
|
|
58
|
+
id: number;
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=IWebhookResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhookResponse.d.ts","sourceRoot":"","sources":["../../src/types/IWebhookResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEpC,MAAM,WAAW,gBAAgB;IAChC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAA;IAEZ;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,cAAc,EAAE,MAAM,CAAA;IAEtB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,YAAY,CAAC,EAAE;QACd,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;IAED;;OAEG;IACH,cAAc,CAAC,EAAE;QAChB,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;KACZ,CAAA;CACD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IWebhookResponse.js","sourceRoot":"","sources":["../../src/types/IWebhookResponse.ts"],"names":[],"mappings":""}
|