nyx-bot-client 0.0.7 → 0.0.9
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/@types/ChatFullInfo.ts +6 -0
- package/@types/ChatOwnerChanged.ts +13 -0
- package/@types/ChatOwnerLeft.ts +13 -0
- package/@types/InlineKeyboardButton.ts +20 -6
- package/@types/KeyboardButton.ts +18 -4
- package/@types/Message.ts +14 -0
- package/@types/UniqueGift.ts +5 -0
- package/@types/UniqueGiftModel.ts +7 -1
- package/@types/User.ts +5 -0
- package/@types/UserProfileAudios.ts +18 -0
- package/@types/Video.ts +6 -1
- package/@types/VideoQuality.ts +39 -0
- package/@types/index.ts +4 -0
- package/biome.json +1 -1
- package/bun.lock +23 -21
- package/index.ts +1 -0
- package/package.json +6 -6
- package/utils/custom-emojis.ts +994 -0
- package/utils/methods.ts +29 -10
package/@types/ChatFullInfo.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
AcceptedGiftTypes,
|
|
3
|
+
Audio,
|
|
3
4
|
Birthdate,
|
|
4
5
|
BusinessIntro,
|
|
5
6
|
BusinessLocation,
|
|
@@ -275,6 +276,11 @@ export type ChatFullInfo = {
|
|
|
275
276
|
*/
|
|
276
277
|
rating?: UserRating;
|
|
277
278
|
|
|
279
|
+
/**
|
|
280
|
+
* Optional. For private chats, the first audio added to the profile of the user
|
|
281
|
+
*/
|
|
282
|
+
first_profile_audio?: Audio;
|
|
283
|
+
|
|
278
284
|
/**
|
|
279
285
|
* Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and
|
|
280
286
|
* link previews
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { User } from "./";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ## ChatOwnerChanged
|
|
5
|
+
* Describes a service message about an ownership change in the chat.
|
|
6
|
+
* @see https://core.telegram.org/bots/api#chatownerchanged
|
|
7
|
+
*/
|
|
8
|
+
export type ChatOwnerChanged = {
|
|
9
|
+
/**
|
|
10
|
+
* The new owner of the chat
|
|
11
|
+
*/
|
|
12
|
+
new_owner: User;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { User } from "./";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ## ChatOwnerLeft
|
|
5
|
+
* Describes a service message about the chat owner leaving the chat.
|
|
6
|
+
* @see https://core.telegram.org/bots/api#chatownerleft
|
|
7
|
+
*/
|
|
8
|
+
export type ChatOwnerLeft = {
|
|
9
|
+
/**
|
|
10
|
+
* Optional. The user which will be the new owner of the chat if the previous owner does not return to the chat
|
|
11
|
+
*/
|
|
12
|
+
new_owner?: User;
|
|
13
|
+
};
|
|
@@ -8,8 +8,8 @@ import type {
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* ## InlineKeyboardButton
|
|
11
|
-
* This object represents one button of an inline keyboard. Exactly one of the
|
|
12
|
-
* type of the button.
|
|
11
|
+
* This object represents one button of an inline keyboard. Exactly one of the fields other than text,
|
|
12
|
+
* icon_custom_emoji_id, and style must be used to specify the type of the button.
|
|
13
13
|
* @see https://core.telegram.org/bots/api#inlinekeyboardbutton
|
|
14
14
|
*/
|
|
15
15
|
export type InlineKeyboardButton = {
|
|
@@ -18,6 +18,19 @@ export type InlineKeyboardButton = {
|
|
|
18
18
|
*/
|
|
19
19
|
text: string;
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Optional. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots
|
|
23
|
+
* that purchased additional usernames on Fragment or in the messages directly sent by the bot to private, group and
|
|
24
|
+
* supergroup chats if the owner of the bot has a Telegram Premium subscription.
|
|
25
|
+
*/
|
|
26
|
+
icon_custom_emoji_id?: string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Optional. Style of the button. Must be one of "danger" (red), "success" (green) or "primary" (blue). If omitted,
|
|
30
|
+
* then an app-specific style is used.
|
|
31
|
+
*/
|
|
32
|
+
style?: string;
|
|
33
|
+
|
|
21
34
|
/**
|
|
22
35
|
* Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to
|
|
23
36
|
* mention a user by their identifier without using a username, if this is allowed by their privacy settings.
|
|
@@ -45,7 +58,8 @@ export type InlineKeyboardButton = {
|
|
|
45
58
|
/**
|
|
46
59
|
* Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert
|
|
47
60
|
* the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's
|
|
48
|
-
* username will be inserted. Not supported for messages sent on behalf of a
|
|
61
|
+
* username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a
|
|
62
|
+
* Telegram Business account.
|
|
49
63
|
*/
|
|
50
64
|
switch_inline_query?: string;
|
|
51
65
|
|
|
@@ -54,15 +68,15 @@ export type InlineKeyboardButton = {
|
|
|
54
68
|
* chat's input field. May be empty, in which case only the bot's username will be inserted.
|
|
55
69
|
*
|
|
56
70
|
* This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting
|
|
57
|
-
* something from multiple options. Not supported in channels and for messages sent
|
|
58
|
-
* account.
|
|
71
|
+
* something from multiple options. Not supported in channels and for messages sent in channel direct messages chats
|
|
72
|
+
* and on behalf of a Telegram Business account.
|
|
59
73
|
*/
|
|
60
74
|
switch_inline_query_current_chat?: string;
|
|
61
75
|
|
|
62
76
|
/**
|
|
63
77
|
* Optional. If set, pressing the button will prompt the user to select one of their chats of the specified type, open
|
|
64
78
|
* that chat and insert the bot's username and the specified inline query in the input field. Not supported for
|
|
65
|
-
* messages sent on behalf of a Telegram Business account.
|
|
79
|
+
* messages sent in channel direct messages chats and on behalf of a Telegram Business account.
|
|
66
80
|
*/
|
|
67
81
|
switch_inline_query_chosen_chat?: SwitchInlineQueryChosenChat;
|
|
68
82
|
|
package/@types/KeyboardButton.ts
CHANGED
|
@@ -8,18 +8,32 @@ import type {
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* ## KeyboardButton
|
|
11
|
-
* This object represents one button of the reply keyboard. At most one of the
|
|
12
|
-
* type of the button. For simple text buttons, String can
|
|
11
|
+
* This object represents one button of the reply keyboard. At most one of the fields other than text,
|
|
12
|
+
* icon_custom_emoji_id, and style must be used to specify the type of the button. For simple text buttons, String can
|
|
13
|
+
* be used instead of this object to specify the button text.
|
|
13
14
|
* @see https://core.telegram.org/bots/api#keyboardbutton
|
|
14
15
|
*/
|
|
15
16
|
export type KeyboardButton =
|
|
16
17
|
| string
|
|
17
18
|
| ({
|
|
18
19
|
/**
|
|
19
|
-
* Text of the button. If none of the
|
|
20
|
-
* pressed
|
|
20
|
+
* Text of the button. If none of the fields other than text, icon_custom_emoji_id, and style are used, it will
|
|
21
|
+
* be sent as a message when the button is pressed
|
|
21
22
|
*/
|
|
22
23
|
text: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Optional. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots
|
|
27
|
+
* that purchased additional usernames on Fragment or in the messages directly sent by the bot to private, group
|
|
28
|
+
* and supergroup chats if the owner of the bot has a Telegram Premium subscription.
|
|
29
|
+
*/
|
|
30
|
+
icon_custom_emoji_id?: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Optional. Style of the button. Must be one of "danger" (red), "success" (green) or "primary" (blue). If
|
|
34
|
+
* omitted, then an app-specific style is used.
|
|
35
|
+
*/
|
|
36
|
+
style?: string;
|
|
23
37
|
} & Partial<
|
|
24
38
|
AtMostOne<{
|
|
25
39
|
/**
|
package/@types/Message.ts
CHANGED
|
@@ -4,6 +4,8 @@ import type {
|
|
|
4
4
|
Chat,
|
|
5
5
|
ChatBackground,
|
|
6
6
|
ChatBoostAdded,
|
|
7
|
+
ChatOwnerChanged,
|
|
8
|
+
ChatOwnerLeft,
|
|
7
9
|
ChatShared,
|
|
8
10
|
Checklist,
|
|
9
11
|
ChecklistTasksAdded,
|
|
@@ -359,6 +361,16 @@ export type Message = {
|
|
|
359
361
|
*/
|
|
360
362
|
left_chat_member?: User;
|
|
361
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Optional. Service message: chat owner has left
|
|
366
|
+
*/
|
|
367
|
+
chat_owner_left?: ChatOwnerLeft;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Optional. Service message: chat owner has changed
|
|
371
|
+
*/
|
|
372
|
+
chat_owner_changed?: ChatOwnerChanged;
|
|
373
|
+
|
|
362
374
|
/**
|
|
363
375
|
* Optional. A chat title was changed to this value
|
|
364
376
|
*/
|
|
@@ -642,6 +654,8 @@ export const messageTypes = [
|
|
|
642
654
|
"location",
|
|
643
655
|
"new_chat_members",
|
|
644
656
|
"left_chat_member",
|
|
657
|
+
"chat_owner_left",
|
|
658
|
+
"chat_owner_changed",
|
|
645
659
|
"new_chat_title",
|
|
646
660
|
"new_chat_photo",
|
|
647
661
|
"delete_chat_photo",
|
package/@types/UniqueGift.ts
CHANGED
|
@@ -52,6 +52,11 @@ export type UniqueGift = {
|
|
|
52
52
|
*/
|
|
53
53
|
is_premium?: true;
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Optional. True, if the gift was used to craft another gift and isn't available anymore
|
|
57
|
+
*/
|
|
58
|
+
is_burned?: true;
|
|
59
|
+
|
|
55
60
|
/**
|
|
56
61
|
* Optional. True, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
|
|
57
62
|
*/
|
|
@@ -17,7 +17,13 @@ export type UniqueGiftModel = {
|
|
|
17
17
|
sticker: Sticker;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The number of unique gifts that receive this model for every 1000 gifts
|
|
20
|
+
* The number of unique gifts that receive this model for every 1000 gift upgrades. Always 0 for crafted gifts.
|
|
21
21
|
*/
|
|
22
22
|
rarity_per_mille: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Optional. Rarity of the model if it is a crafted model. Currently, can be "uncommon", "rare", "epic", or
|
|
26
|
+
* "legendary".
|
|
27
|
+
*/
|
|
28
|
+
rarity?: string;
|
|
23
29
|
};
|
package/@types/User.ts
CHANGED
|
@@ -76,4 +76,9 @@ export type User = {
|
|
|
76
76
|
* Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe.
|
|
77
77
|
*/
|
|
78
78
|
has_topics_enabled?: boolean;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Optional. True, if the bot allows users to create and delete topics in private chats. Returned only in getMe.
|
|
82
|
+
*/
|
|
83
|
+
allows_users_to_create_topics?: boolean;
|
|
79
84
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Audio } from "./";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ## UserProfileAudios
|
|
5
|
+
* This object represents the audios displayed on a user's profile.
|
|
6
|
+
* @see https://core.telegram.org/bots/api#userprofileaudios
|
|
7
|
+
*/
|
|
8
|
+
export type UserProfileAudios = {
|
|
9
|
+
/**
|
|
10
|
+
* Total number of profile audios for the target user
|
|
11
|
+
*/
|
|
12
|
+
total_count: number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Requested profile audios
|
|
16
|
+
*/
|
|
17
|
+
audios: Audio[];
|
|
18
|
+
};
|
package/@types/Video.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PhotoSize } from "./";
|
|
1
|
+
import type { PhotoSize, VideoQuality } from "./";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* ## Video
|
|
@@ -47,6 +47,11 @@ export type Video = {
|
|
|
47
47
|
*/
|
|
48
48
|
start_timestamp?: number;
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* Optional. List of available qualities of the video
|
|
52
|
+
*/
|
|
53
|
+
qualities?: VideoQuality[];
|
|
54
|
+
|
|
50
55
|
/**
|
|
51
56
|
* Optional. Original filename as defined by the sender
|
|
52
57
|
*/
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## VideoQuality
|
|
3
|
+
* This object represents a video file of a specific quality.
|
|
4
|
+
* @see https://core.telegram.org/bots/api#videoquality
|
|
5
|
+
*/
|
|
6
|
+
export type VideoQuality = {
|
|
7
|
+
/**
|
|
8
|
+
* Identifier for this file, which can be used to download or reuse the file
|
|
9
|
+
*/
|
|
10
|
+
file_id: string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used
|
|
14
|
+
* to download or reuse the file.
|
|
15
|
+
*/
|
|
16
|
+
file_unique_id: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Video width
|
|
20
|
+
*/
|
|
21
|
+
width: number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Video height
|
|
25
|
+
*/
|
|
26
|
+
height: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Codec that was used to encode the video, for example, "h264", "h265", or "av01"
|
|
30
|
+
*/
|
|
31
|
+
codec: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent
|
|
35
|
+
* defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or
|
|
36
|
+
* double-precision float type are safe for storing this value.
|
|
37
|
+
*/
|
|
38
|
+
file_size?: number;
|
|
39
|
+
};
|
package/@types/index.ts
CHANGED
|
@@ -56,6 +56,8 @@ export * from "./ChatMemberMember";
|
|
|
56
56
|
export * from "./ChatMemberOwner";
|
|
57
57
|
export * from "./ChatMemberRestricted";
|
|
58
58
|
export * from "./ChatMemberUpdated";
|
|
59
|
+
export * from "./ChatOwnerChanged";
|
|
60
|
+
export * from "./ChatOwnerLeft";
|
|
59
61
|
export * from "./ChatPermissions";
|
|
60
62
|
export * from "./ChatPhoto";
|
|
61
63
|
export * from "./ChatShared";
|
|
@@ -263,6 +265,7 @@ export * from "./UniqueGiftModel";
|
|
|
263
265
|
export * from "./UniqueGiftSymbol";
|
|
264
266
|
export * from "./Update";
|
|
265
267
|
export * from "./User";
|
|
268
|
+
export * from "./UserProfileAudios";
|
|
266
269
|
export * from "./UserProfilePhotos";
|
|
267
270
|
export * from "./UserRating";
|
|
268
271
|
export * from "./UsersShared";
|
|
@@ -273,6 +276,7 @@ export * from "./VideoChatParticipantsInvited";
|
|
|
273
276
|
export * from "./VideoChatScheduled";
|
|
274
277
|
export * from "./VideoChatStarted";
|
|
275
278
|
export * from "./VideoNote";
|
|
279
|
+
export * from "./VideoQuality";
|
|
276
280
|
export * from "./Voice";
|
|
277
281
|
export * from "./WebAppData";
|
|
278
282
|
export * from "./WebAppInfo";
|
package/biome.json
CHANGED
package/bun.lock
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "nyx-bot-client",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@biomejs/biome": "^2.3.
|
|
9
|
-
"@types/node": "^25.
|
|
10
|
-
"dotenv": "^17.2.
|
|
11
|
-
"kysely": "^0.28.
|
|
12
|
-
"mysql2": "^3.
|
|
8
|
+
"@biomejs/biome": "^2.3.15",
|
|
9
|
+
"@types/node": "^25.2.3",
|
|
10
|
+
"dotenv": "^17.2.4",
|
|
11
|
+
"kysely": "^0.28.11",
|
|
12
|
+
"mysql2": "^3.17.0",
|
|
13
13
|
"ts-debounce": "^4.0.0",
|
|
14
14
|
"zod": "^4.3.6",
|
|
15
15
|
},
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
},
|
|
23
23
|
},
|
|
24
24
|
"packages": {
|
|
25
|
-
"@biomejs/biome": ["@biomejs/biome@2.3.
|
|
25
|
+
"@biomejs/biome": ["@biomejs/biome@2.3.15", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.15", "@biomejs/cli-darwin-x64": "2.3.15", "@biomejs/cli-linux-arm64": "2.3.15", "@biomejs/cli-linux-arm64-musl": "2.3.15", "@biomejs/cli-linux-x64": "2.3.15", "@biomejs/cli-linux-x64-musl": "2.3.15", "@biomejs/cli-win32-arm64": "2.3.15", "@biomejs/cli-win32-x64": "2.3.15" }, "bin": { "biome": "bin/biome" } }, "sha512-u+jlPBAU2B45LDkjjNNYpc1PvqrM/co4loNommS9/sl9oSxsAQKsNZejYuUztvToB5oXi1tN/e62iNd6ESiY3g=="],
|
|
26
26
|
|
|
27
|
-
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.
|
|
27
|
+
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.15", "", { "os": "darwin", "cpu": "arm64" }, "sha512-SDCdrJ4COim1r8SNHg19oqT50JfkI/xGZHSyC6mGzMfKrpNe/217Eq6y98XhNTc0vGWDjznSDNXdUc6Kg24jbw=="],
|
|
28
28
|
|
|
29
|
-
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.
|
|
29
|
+
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.15", "", { "os": "darwin", "cpu": "x64" }, "sha512-RkyeSosBtn3C3Un8zQnl9upX0Qbq4E3QmBa0qjpOh1MebRbHhNlRC16jk8HdTe/9ym5zlfnpbb8cKXzW+vlTxw=="],
|
|
30
30
|
|
|
31
|
-
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.
|
|
31
|
+
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.15", "", { "os": "linux", "cpu": "arm64" }, "sha512-FN83KxrdVWANOn5tDmW6UBC0grojchbGmcEz6JkRs2YY6DY63sTZhwkQ56x6YtKhDVV1Unz7FJexy8o7KwuIhg=="],
|
|
32
32
|
|
|
33
|
-
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.
|
|
33
|
+
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.15", "", { "os": "linux", "cpu": "arm64" }, "sha512-SSSIj2yMkFdSkXqASzIBdjySBXOe65RJlhKEDlri7MN19RC4cpez+C0kEwPrhXOTgJbwQR9QH1F4+VnHkC35pg=="],
|
|
34
34
|
|
|
35
|
-
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.
|
|
35
|
+
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.15", "", { "os": "linux", "cpu": "x64" }, "sha512-T8n9p8aiIKOrAD7SwC7opiBM1LYGrE5G3OQRXWgbeo/merBk8m+uxJ1nOXMPzfYyFLfPlKF92QS06KN1UW+Zbg=="],
|
|
36
36
|
|
|
37
|
-
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.
|
|
37
|
+
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.15", "", { "os": "linux", "cpu": "x64" }, "sha512-dbjPzTh+ijmmNwojFYbQNMFp332019ZDioBYAMMJj5Ux9d8MkM+u+J68SBJGVwVeSHMYj+T9504CoxEzQxrdNw=="],
|
|
38
38
|
|
|
39
|
-
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.
|
|
39
|
+
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.15", "", { "os": "win32", "cpu": "arm64" }, "sha512-puMuenu/2brQdgqtQ7geNwQlNVxiABKEZJhMRX6AGWcmrMO8EObMXniFQywy2b81qmC+q+SDvlOpspNwz0WiOA=="],
|
|
40
40
|
|
|
41
|
-
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.
|
|
41
|
+
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.15", "", { "os": "win32", "cpu": "x64" }, "sha512-kDZr/hgg+igo5Emi0LcjlgfkoGZtgIpJKhnvKTRmMBv6FF/3SDyEV4khBwqNebZIyMZTzvpca9sQNSXJ39pI2A=="],
|
|
42
42
|
|
|
43
43
|
"@types/bun": ["@types/bun@1.2.17", "", { "dependencies": { "bun-types": "1.2.17" } }, "sha512-l/BYs/JYt+cXA/0+wUhulYJB6a6p//GTPiJ7nV+QHa8iiId4HZmnu/3J/SowP5g0rTiERY2kfGKXEK5Ehltx4Q=="],
|
|
44
44
|
|
|
45
|
-
"@types/node": ["@types/node@25.
|
|
45
|
+
"@types/node": ["@types/node@25.2.3", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ=="],
|
|
46
46
|
|
|
47
47
|
"aws-ssl-profiles": ["aws-ssl-profiles@1.1.2", "", {}, "sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g=="],
|
|
48
48
|
|
|
@@ -50,21 +50,21 @@
|
|
|
50
50
|
|
|
51
51
|
"denque": ["denque@2.1.0", "", {}, "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw=="],
|
|
52
52
|
|
|
53
|
-
"dotenv": ["dotenv@17.2.
|
|
53
|
+
"dotenv": ["dotenv@17.2.4", "", {}, "sha512-mudtfb4zRB4bVvdj0xRo+e6duH1csJRM8IukBqfTRvHotn9+LBXB8ynAidP9zHqoRC/fsllXgk4kCKlR21fIhw=="],
|
|
54
54
|
|
|
55
55
|
"generate-function": ["generate-function@2.3.1", "", { "dependencies": { "is-property": "^1.0.2" } }, "sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ=="],
|
|
56
56
|
|
|
57
|
-
"iconv-lite": ["iconv-lite@0.7.
|
|
57
|
+
"iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="],
|
|
58
58
|
|
|
59
59
|
"is-property": ["is-property@1.0.2", "", {}, "sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g=="],
|
|
60
60
|
|
|
61
|
-
"kysely": ["kysely@0.28.
|
|
61
|
+
"kysely": ["kysely@0.28.11", "", {}, "sha512-zpGIFg0HuoC893rIjYX1BETkVWdDnzTzF5e0kWXJFg5lE0k1/LfNWBejrcnOFu8Q2Rfq/hTDTU7XLUM8QOrpzg=="],
|
|
62
62
|
|
|
63
63
|
"long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="],
|
|
64
64
|
|
|
65
|
-
"lru.min": ["lru.min@1.1.
|
|
65
|
+
"lru.min": ["lru.min@1.1.4", "", {}, "sha512-DqC6n3QQ77zdFpCMASA1a3Jlb64Hv2N2DciFGkO/4L9+q/IpIAuRlKOvCXabtRW6cQf8usbmM6BE/TOPysCdIA=="],
|
|
66
66
|
|
|
67
|
-
"mysql2": ["mysql2@3.
|
|
67
|
+
"mysql2": ["mysql2@3.17.0", "", { "dependencies": { "aws-ssl-profiles": "^1.1.2", "denque": "^2.1.0", "generate-function": "^2.3.1", "iconv-lite": "^0.7.2", "long": "^5.3.2", "lru.min": "^1.1.3", "named-placeholders": "^1.1.6", "seq-queue": "^0.0.5", "sql-escaper": "^1.3.1" } }, "sha512-qF1KYPuytBGqAnMzaQ5/rW90iIqcjnrnnS7bvcJcdarJzlUTAiD9ZC0T7mwndacECseSQ6LcRbRvryXLp25m+g=="],
|
|
68
68
|
|
|
69
69
|
"named-placeholders": ["named-placeholders@1.1.6", "", { "dependencies": { "lru.min": "^1.1.0" } }, "sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w=="],
|
|
70
70
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
"seq-queue": ["seq-queue@0.0.5", "", {}, "sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q=="],
|
|
74
74
|
|
|
75
|
-
"
|
|
75
|
+
"sql-escaper": ["sql-escaper@1.3.1", "", {}, "sha512-GLMJGWKzrr7BS5E5+8Prix6RGfBd4UokKMxkPSg313X0TvUyjdJU3Xg7FAhhcba4dHnLy81t4YeHETKLGVsDow=="],
|
|
76
76
|
|
|
77
77
|
"ts-debounce": ["ts-debounce@4.0.0", "", {}, "sha512-+1iDGY6NmOGidq7i7xZGA4cm8DAa6fqdYcvO5Z6yBevH++Bdo9Qt/mN0TzHUgcCcKv1gmh9+W5dHqz8pMWbCbg=="],
|
|
78
78
|
|
|
@@ -84,6 +84,8 @@
|
|
|
84
84
|
|
|
85
85
|
"bun-types/@types/node": ["@types/node@24.0.4", "", { "dependencies": { "undici-types": "~7.8.0" } }, "sha512-ulyqAkrhnuNq9pB76DRBTkcS6YsmDALy6Ua63V8OhrOBgbcYt6IOdzpw5P1+dyRIyMerzLkeYWBeOXPpA9GMAA=="],
|
|
86
86
|
|
|
87
|
+
"named-placeholders/lru.min": ["lru.min@1.1.2", "", {}, "sha512-Nv9KddBcQSlQopmBHXSsZVY5xsdlZkdH/Iey0BlcBYggMd4two7cZnKOK9vmy3nY0O5RGH99z1PCeTpPqszUYg=="],
|
|
88
|
+
|
|
87
89
|
"bun-types/@types/node/undici-types": ["undici-types@7.8.0", "", {}, "sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw=="],
|
|
88
90
|
}
|
|
89
91
|
}
|
package/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from "./nyx-client.ts";
|
|
|
3
3
|
export type * from "./types.d.ts";
|
|
4
4
|
export * from "./utils/actions.ts";
|
|
5
5
|
export * from "./utils/api.ts";
|
|
6
|
+
export * from "./utils/custom-emojis.ts";
|
|
6
7
|
export * from "./utils/enum.ts";
|
|
7
8
|
export * from "./utils/helpers.ts";
|
|
8
9
|
export * from "./utils/methods.ts";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nyx-bot-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"typescript": "^5"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@biomejs/biome": "^2.3.
|
|
14
|
-
"@types/node": "^25.
|
|
15
|
-
"dotenv": "^17.2.
|
|
16
|
-
"kysely": "^0.28.
|
|
17
|
-
"mysql2": "^3.
|
|
13
|
+
"@biomejs/biome": "^2.3.15",
|
|
14
|
+
"@types/node": "^25.2.3",
|
|
15
|
+
"dotenv": "^17.2.4",
|
|
16
|
+
"kysely": "^0.28.11",
|
|
17
|
+
"mysql2": "^3.17.0",
|
|
18
18
|
"ts-debounce": "^4.0.0",
|
|
19
19
|
"zod": "^4.3.6"
|
|
20
20
|
}
|