@mtkruto/node 0.1.600 → 0.1.700
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/esm/4_errors.js +2 -4
- package/esm/5_client.d.ts +1 -1
- package/esm/5_client.js +1 -1
- package/esm/client/0_params.d.ts +5 -1
- package/esm/client/0_storage_operations.d.ts +182 -0
- package/esm/client/0_storage_operations.js +611 -0
- package/esm/client/1_composer.d.ts +2 -0
- package/esm/client/1_composer.js +28 -0
- package/{script/client/0_types.d.ts → esm/client/1_types.d.ts} +3 -3
- package/{script/client/1_account_manager.d.ts → esm/client/2_account_manager.d.ts} +1 -1
- package/{script/client/1_bot_info_manager.d.ts → esm/client/2_bot_info_manager.d.ts} +1 -1
- package/esm/client/{1_business_connection_manager.d.ts → 2_business_connection_manager.d.ts} +1 -1
- package/{script/client/1_file_manager.d.ts → esm/client/2_file_manager.d.ts} +1 -1
- package/esm/client/{1_file_manager.js → 2_file_manager.js} +5 -3
- package/esm/client/{1_network_statistics_manager.d.ts → 2_network_statistics_manager.d.ts} +1 -1
- package/{script/client/1_reaction_manager.d.ts → esm/client/2_reaction_manager.d.ts} +1 -1
- package/{script/client/1_update_manager.d.ts → esm/client/2_update_manager.d.ts} +1 -1
- package/{script/client/2_message_manager.d.ts → esm/client/3_message_manager.d.ts} +2 -2
- package/esm/client/{2_video_chat_manager.d.ts → 3_video_chat_manager.d.ts} +2 -2
- package/{script/client/3_callback_query_manager.d.ts → esm/client/4_callback_query_manager.d.ts} +2 -2
- package/{script/client/3_chat_list_manager.d.ts → esm/client/4_chat_list_manager.d.ts} +3 -3
- package/{script/client/3_inline_query_manager.d.ts → esm/client/4_inline_query_manager.d.ts} +2 -2
- package/esm/client/{3_story_manager.d.ts → 4_story_manager.d.ts} +3 -3
- package/{script/client/4_client.d.ts → esm/client/5_client.d.ts} +39 -29
- package/esm/client/{4_client.js → 5_client.js} +83 -73
- package/esm/connection/0_connection.d.ts +6 -15
- package/esm/connection/0_connection.js +1 -38
- package/esm/connection/1_connection_web_socket.d.ts +3 -2
- package/esm/connection/1_connection_web_socket.js +7 -3
- package/esm/mod.d.ts +1 -1
- package/esm/mod.js +1 -1
- package/esm/storage/0_storage.d.ts +9 -159
- package/esm/storage/0_storage.js +1 -563
- package/esm/storage/2_storage_indexed_db.d.ts +3 -2
- package/esm/storage/2_storage_indexed_db.js +9 -8
- package/esm/storage/2_storage_local_storage.d.ts +3 -2
- package/esm/storage/2_storage_local_storage.js +5 -4
- package/esm/storage/2_storage_memory.d.ts +4 -4
- package/esm/storage/2_storage_memory.js +12 -19
- package/esm/storage/2_storage_session_storage.d.ts +2 -1
- package/esm/storage/2_storage_session_storage.js +5 -4
- package/esm/types/0_id.d.ts +1 -1
- package/package.json +1 -1
- package/script/4_errors.js +2 -4
- package/script/5_client.d.ts +1 -1
- package/script/5_client.js +1 -1
- package/script/client/0_params.d.ts +5 -1
- package/script/client/0_storage_operations.d.ts +182 -0
- package/script/client/0_storage_operations.js +615 -0
- package/script/client/1_composer.d.ts +2 -0
- package/script/client/1_composer.js +28 -0
- package/{esm/client/0_types.d.ts → script/client/1_types.d.ts} +3 -3
- package/{esm/client/1_account_manager.d.ts → script/client/2_account_manager.d.ts} +1 -1
- package/{esm/client/1_bot_info_manager.d.ts → script/client/2_bot_info_manager.d.ts} +1 -1
- package/script/client/{1_business_connection_manager.d.ts → 2_business_connection_manager.d.ts} +1 -1
- package/{esm/client/1_file_manager.d.ts → script/client/2_file_manager.d.ts} +1 -1
- package/script/client/{1_file_manager.js → 2_file_manager.js} +4 -2
- package/script/client/{1_network_statistics_manager.d.ts → 2_network_statistics_manager.d.ts} +1 -1
- package/{esm/client/1_reaction_manager.d.ts → script/client/2_reaction_manager.d.ts} +1 -1
- package/{esm/client/1_update_manager.d.ts → script/client/2_update_manager.d.ts} +1 -1
- package/{esm/client/2_message_manager.d.ts → script/client/3_message_manager.d.ts} +2 -2
- package/script/client/{2_video_chat_manager.d.ts → 3_video_chat_manager.d.ts} +2 -2
- package/{esm/client/3_callback_query_manager.d.ts → script/client/4_callback_query_manager.d.ts} +2 -2
- package/{esm/client/3_chat_list_manager.d.ts → script/client/4_chat_list_manager.d.ts} +3 -3
- package/{esm/client/3_inline_query_manager.d.ts → script/client/4_inline_query_manager.d.ts} +2 -2
- package/script/client/{3_story_manager.d.ts → 4_story_manager.d.ts} +3 -3
- package/{esm/client/4_client.d.ts → script/client/5_client.d.ts} +39 -29
- package/script/client/{4_client.js → 5_client.js} +105 -95
- package/script/connection/0_connection.d.ts +6 -15
- package/script/connection/0_connection.js +0 -41
- package/script/connection/1_connection_web_socket.d.ts +3 -2
- package/script/connection/1_connection_web_socket.js +7 -3
- package/script/mod.d.ts +1 -1
- package/script/mod.js +1 -1
- package/script/storage/0_storage.d.ts +9 -159
- package/script/storage/0_storage.js +0 -565
- package/script/storage/2_storage_indexed_db.d.ts +3 -2
- package/script/storage/2_storage_indexed_db.js +9 -8
- package/script/storage/2_storage_local_storage.d.ts +3 -2
- package/script/storage/2_storage_local_storage.js +5 -4
- package/script/storage/2_storage_memory.d.ts +4 -4
- package/script/storage/2_storage_memory.js +12 -19
- package/script/storage/2_storage_session_storage.d.ts +2 -1
- package/script/storage/2_storage_session_storage.js +5 -4
- package/script/types/0_id.d.ts +1 -1
- /package/esm/{3_storage.d.ts → 2_storage.d.ts} +0 -0
- /package/esm/{3_storage.js → 2_storage.js} +0 -0
- /package/esm/client/{0_types.js → 1_types.js} +0 -0
- /package/esm/client/{1_account_manager.js → 2_account_manager.js} +0 -0
- /package/esm/client/{1_bot_info_manager.js → 2_bot_info_manager.js} +0 -0
- /package/esm/client/{1_business_connection_manager.js → 2_business_connection_manager.js} +0 -0
- /package/esm/client/{1_network_statistics_manager.js → 2_network_statistics_manager.js} +0 -0
- /package/esm/client/{1_reaction_manager.js → 2_reaction_manager.js} +0 -0
- /package/esm/client/{1_update_manager.js → 2_update_manager.js} +0 -0
- /package/esm/client/{2_message_manager.js → 3_message_manager.js} +0 -0
- /package/esm/client/{2_video_chat_manager.js → 3_video_chat_manager.js} +0 -0
- /package/esm/client/{3_callback_query_manager.js → 4_callback_query_manager.js} +0 -0
- /package/esm/client/{3_chat_list_manager.js → 4_chat_list_manager.js} +0 -0
- /package/esm/client/{3_inline_query_manager.js → 4_inline_query_manager.js} +0 -0
- /package/esm/client/{3_story_manager.js → 4_story_manager.js} +0 -0
- /package/script/{3_storage.d.ts → 2_storage.d.ts} +0 -0
- /package/script/{3_storage.js → 2_storage.js} +0 -0
- /package/script/client/{0_types.js → 1_types.js} +0 -0
- /package/script/client/{1_account_manager.js → 2_account_manager.js} +0 -0
- /package/script/client/{1_bot_info_manager.js → 2_bot_info_manager.js} +0 -0
- /package/script/client/{1_business_connection_manager.js → 2_business_connection_manager.js} +0 -0
- /package/script/client/{1_network_statistics_manager.js → 2_network_statistics_manager.js} +0 -0
- /package/script/client/{1_reaction_manager.js → 2_reaction_manager.js} +0 -0
- /package/script/client/{1_update_manager.js → 2_update_manager.js} +0 -0
- /package/script/client/{2_message_manager.js → 3_message_manager.js} +0 -0
- /package/script/client/{2_video_chat_manager.js → 3_video_chat_manager.js} +0 -0
- /package/script/client/{3_callback_query_manager.js → 4_callback_query_manager.js} +0 -0
- /package/script/client/{3_chat_list_manager.js → 4_chat_list_manager.js} +0 -0
- /package/script/client/{3_inline_query_manager.js → 4_inline_query_manager.js} +0 -0
- /package/script/client/{3_story_manager.js → 4_story_manager.js} +0 -0
package/esm/4_errors.js
CHANGED
|
@@ -73,10 +73,8 @@ export function upgradeInstance(error, call) {
|
|
|
73
73
|
return new v({ ...error, call });
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return new v({ ...error, call });
|
|
79
|
-
}
|
|
76
|
+
if (error.error_message in map) {
|
|
77
|
+
return new map[error.error_message]({ ...error, call });
|
|
80
78
|
}
|
|
81
79
|
return error;
|
|
82
80
|
}
|
package/esm/5_client.d.ts
CHANGED
package/esm/5_client.js
CHANGED
package/esm/client/0_params.d.ts
CHANGED
|
@@ -29,11 +29,15 @@ export interface AnswerCallbackQueryParams {
|
|
|
29
29
|
/** TTL of answer caches in seconds. */
|
|
30
30
|
cacheTime?: number;
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
32
|
+
export interface SignInParamsUser<S = string> {
|
|
33
33
|
phone: S | (() => MaybePromise<S>);
|
|
34
34
|
code: S | (() => MaybePromise<S>);
|
|
35
35
|
password: S | ((hint: string | null) => MaybePromise<S>);
|
|
36
36
|
}
|
|
37
|
+
export interface SignInParamsBot {
|
|
38
|
+
botToken: string;
|
|
39
|
+
}
|
|
40
|
+
export type SignInParams = SignInParamsUser | SignInParamsBot;
|
|
37
41
|
export interface _BusinessConnectionIdCommon {
|
|
38
42
|
businessConnectionId?: string;
|
|
39
43
|
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MTKruto - Cross-runtime JavaScript library for building Telegram clients
|
|
3
|
+
* Copyright (C) 2023-2024 Roj <https://roj.im/>
|
|
4
|
+
*
|
|
5
|
+
* This file is part of MTKruto.
|
|
6
|
+
*
|
|
7
|
+
* This program is free software: you can redistribute it and/or modify
|
|
8
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
9
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
10
|
+
* (at your option) any later version.
|
|
11
|
+
*
|
|
12
|
+
* This program is distributed in the hope that it will be useful,
|
|
13
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15
|
+
* GNU Lesser General Public License for more details.
|
|
16
|
+
*
|
|
17
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
18
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
19
|
+
*/
|
|
20
|
+
import { MaybePromise } from "../1_utilities.js";
|
|
21
|
+
import { AnyEntity, enums, ReadObject, TLObject, types } from "../2_tl.js";
|
|
22
|
+
import { DC } from "../3_transport.js";
|
|
23
|
+
import { Storage, StorageKeyPart } from "../2_storage.js";
|
|
24
|
+
export declare const K: {
|
|
25
|
+
connection: {
|
|
26
|
+
P: (string: string) => string;
|
|
27
|
+
apiId: () => StorageKeyPart[];
|
|
28
|
+
};
|
|
29
|
+
session: {
|
|
30
|
+
P: (string: string) => string;
|
|
31
|
+
serverSalt: () => StorageKeyPart[];
|
|
32
|
+
};
|
|
33
|
+
auth: {
|
|
34
|
+
P: (string: string) => string;
|
|
35
|
+
dc: () => StorageKeyPart[];
|
|
36
|
+
key: () => StorageKeyPart[];
|
|
37
|
+
accountId: () => StorageKeyPart[];
|
|
38
|
+
accountType: () => StorageKeyPart[];
|
|
39
|
+
};
|
|
40
|
+
updates: {
|
|
41
|
+
P: (string: string) => string;
|
|
42
|
+
state: () => StorageKeyPart[];
|
|
43
|
+
all: () => StorageKeyPart[];
|
|
44
|
+
updates: (boxId: bigint) => StorageKeyPart[];
|
|
45
|
+
update: (boxId: bigint, id: bigint) => StorageKeyPart[];
|
|
46
|
+
channelPts: (channelId: bigint) => StorageKeyPart[];
|
|
47
|
+
};
|
|
48
|
+
cache: {
|
|
49
|
+
P: (string: string) => string;
|
|
50
|
+
usernames: () => StorageKeyPart[];
|
|
51
|
+
username: (v: string) => StorageKeyPart[];
|
|
52
|
+
peers: () => StorageKeyPart[];
|
|
53
|
+
peer: (id: number) => StorageKeyPart[];
|
|
54
|
+
stickerSetNames: () => StorageKeyPart[];
|
|
55
|
+
stickerSetName: (id: bigint, accessHash: bigint) => StorageKeyPart[];
|
|
56
|
+
files: () => StorageKeyPart[];
|
|
57
|
+
file: (fileId: bigint) => StorageKeyPart[];
|
|
58
|
+
fileParts: () => StorageKeyPart[];
|
|
59
|
+
filePart: (fileId: bigint, n: number) => StorageKeyPart[];
|
|
60
|
+
customEmojiDocuments: () => StorageKeyPart[];
|
|
61
|
+
customEmojiDocument: (id: bigint) => StorageKeyPart[];
|
|
62
|
+
businessConnections: () => StorageKeyPart[];
|
|
63
|
+
businessConnection: (id: string) => StorageKeyPart[];
|
|
64
|
+
inlineQueryAnswers: () => StorageKeyPart[];
|
|
65
|
+
inlineQueryAnswer: (userId: number, chatId: number, query: string, offset: string) => StorageKeyPart[];
|
|
66
|
+
callbackQueryAnswers: () => StorageKeyPart[];
|
|
67
|
+
callbackQueryAnswer: (chatId: number, messageId: number, question: string) => StorageKeyPart[];
|
|
68
|
+
fullChats: () => StorageKeyPart[];
|
|
69
|
+
fullChat: (chatId: number) => StorageKeyPart[];
|
|
70
|
+
groupCalls: () => StorageKeyPart[];
|
|
71
|
+
groupCall: (id: bigint) => StorageKeyPart[];
|
|
72
|
+
groupCallAccessHashes: () => StorageKeyPart[];
|
|
73
|
+
groupCallAccessHash: (id: bigint) => StorageKeyPart[];
|
|
74
|
+
};
|
|
75
|
+
messages: {
|
|
76
|
+
P: (string: string) => string;
|
|
77
|
+
messages: (chatId: number) => StorageKeyPart[];
|
|
78
|
+
message: (chatId: number, messageId: number) => StorageKeyPart[];
|
|
79
|
+
allMessageRefs: () => StorageKeyPart[];
|
|
80
|
+
messageRef: (messageId: number) => StorageKeyPart[];
|
|
81
|
+
};
|
|
82
|
+
chatlists: {
|
|
83
|
+
P: (string: string) => string;
|
|
84
|
+
hasAllChats: (listId: number) => StorageKeyPart[];
|
|
85
|
+
chats: (listId: number) => StorageKeyPart[];
|
|
86
|
+
chat: (listId: number, chatId: number) => StorageKeyPart[];
|
|
87
|
+
pinnedChats: (listId: number) => StorageKeyPart[];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
export declare class StorageOperations {
|
|
91
|
+
#private;
|
|
92
|
+
constructor(storage: Storage);
|
|
93
|
+
get provider(): Storage;
|
|
94
|
+
get supportsFiles(): boolean;
|
|
95
|
+
initialize(): Promise<void>;
|
|
96
|
+
set(...args: Parameters<Storage["set"]>): ReturnType<Storage["set"]>;
|
|
97
|
+
incr(...args: Parameters<Storage["incr"]>): ReturnType<Storage["incr"]>;
|
|
98
|
+
get<T>(...args: Parameters<Storage["get"]>): ReturnType<Storage["get"]>;
|
|
99
|
+
getMany<T>(...args: Parameters<Storage["getMany"]>): ReturnType<Storage["getMany"]>;
|
|
100
|
+
setDc(dc: DC | null): Promise<void>;
|
|
101
|
+
getDc(): MaybePromise<DC | null>;
|
|
102
|
+
getAuthKey(): Promise<Uint8Array | null>;
|
|
103
|
+
setAuthKey(authKey: Uint8Array | null): Promise<void>;
|
|
104
|
+
get authKeyId(): bigint | null;
|
|
105
|
+
exportAuthString(apiId_?: number | null): Promise<string>;
|
|
106
|
+
importAuthString(string: string): Promise<void>;
|
|
107
|
+
getChannelAccessHash(id: number): Promise<bigint | null>;
|
|
108
|
+
getUserAccessHash(id: number): Promise<bigint | null>;
|
|
109
|
+
updateUsernames(id: number, usernames: string[]): Promise<void>;
|
|
110
|
+
getUsername(username: string): Promise<[number, Date] | null>;
|
|
111
|
+
setTlObject(key: readonly StorageKeyPart[], value: TLObject | null): Promise<void>;
|
|
112
|
+
getTlObject(keyOrBuffer: TLObject | Uint8Array | readonly StorageKeyPart[]): Promise<ReadObject | null>;
|
|
113
|
+
setState(state: enums.updates.State): Promise<void>;
|
|
114
|
+
getState(): Promise<enums.updates.State | null>;
|
|
115
|
+
setMessage(chatId: number, messageId: number, message: enums.Message | null): Promise<void>;
|
|
116
|
+
deleteMessages(): Promise<void>;
|
|
117
|
+
getMessageChat(messageId: number): MaybePromise<number | null>;
|
|
118
|
+
getMessage(chatId: number, messageId: number): Promise<enums.Message | null>;
|
|
119
|
+
getLastMessage(chatId: number): Promise<enums.Message | null>;
|
|
120
|
+
setChannelPts(channelId: bigint, pts: number): Promise<void>;
|
|
121
|
+
getChannelPts(channelId: bigint): MaybePromise<number | null>;
|
|
122
|
+
setEntity(entity: AnyEntity): Promise<void>;
|
|
123
|
+
getEntity(key: number): Promise<ReadObject | null>;
|
|
124
|
+
setAccountId(accountId: number): Promise<void>;
|
|
125
|
+
getAccountId(): Promise<number | null>;
|
|
126
|
+
setAccountType(type: "user" | "bot"): Promise<void>;
|
|
127
|
+
getAccountType(): Promise<"user" | "bot" | null>;
|
|
128
|
+
updateStickerSetName(id: bigint, accessHash: bigint, name: string): Promise<void>;
|
|
129
|
+
getStickerSetName(id: bigint, accessHash: bigint): MaybePromise<[string, Date] | null>;
|
|
130
|
+
setServerSalt(serverSalt: bigint): Promise<void>;
|
|
131
|
+
getServerSalt(): MaybePromise<bigint | null>;
|
|
132
|
+
setChat(listId: number, chatId: number, pinned: number, topMessageId: number, topMessageDate: Date): Promise<void>;
|
|
133
|
+
getChats(listId: number): Promise<{
|
|
134
|
+
chatId: number;
|
|
135
|
+
pinned: number;
|
|
136
|
+
topMessageId: number;
|
|
137
|
+
topMessageDate: Date;
|
|
138
|
+
}[]>;
|
|
139
|
+
removeChats(listId: number): Promise<void>;
|
|
140
|
+
setHasAllChats(listId: number, hasAllChats: boolean): Promise<void>;
|
|
141
|
+
hasAllChats(listId: number): Promise<boolean>;
|
|
142
|
+
setPinnedChats(listId: number, chatIds: number[] | null): Promise<void>;
|
|
143
|
+
getPinnedChats(listId: number): Promise<number[] | null>;
|
|
144
|
+
getHistory(chatId: number, offsetId: number, limit: number): Promise<enums.Message[]>;
|
|
145
|
+
getFile(id: bigint): Promise<[number, number] | null>;
|
|
146
|
+
iterFileParts(id: bigint, partCount: number, offset: number): AsyncGenerator<Uint8Array>;
|
|
147
|
+
saveFilePart(id: bigint, index: number, bytes: Uint8Array): Promise<void>;
|
|
148
|
+
setFilePartCount(id: bigint, partCount: number, chunkSize: number): Promise<void>;
|
|
149
|
+
setCustomEmojiDocument(id: bigint, document: types.Document): Promise<void>;
|
|
150
|
+
getCustomEmojiDocument(id: bigint): Promise<[types.Document, Date] | null>;
|
|
151
|
+
setBusinessConnection(id: string, connection: types.BotBusinessConnection | null): Promise<void>;
|
|
152
|
+
getBusinessConnection(id: string): Promise<types.BotBusinessConnection | null>;
|
|
153
|
+
setInlineQueryAnswer(userId: number, chatId: number, query: string, offset: string, results: types.messages.BotResults, date: Date): Promise<void>;
|
|
154
|
+
getInlineQueryAnswer(userId: number, chatId: number, query: string, offset: string): Promise<[types.messages.BotResults, Date] | null>;
|
|
155
|
+
setCallbackQueryAnswer(chatId: number, messageId: number, question: string, answer: types.messages.BotCallbackAnswer): Promise<void>;
|
|
156
|
+
getCallbackQueryAnswer(chatId: number, messageId: number, question: string): Promise<[types.messages.BotCallbackAnswer, Date] | null>;
|
|
157
|
+
setFullChat(chatId: number, fullChat: types.UserFull | types.ChannelFull | types.ChatFull | null): Promise<void>;
|
|
158
|
+
getFullChat(chatId: number): Promise<types.UserFull | types.ChannelFull | types.ChatFull | null>;
|
|
159
|
+
setGroupCall(id: bigint, groupCall: types.GroupCall | null): Promise<void>;
|
|
160
|
+
getGroupCall(id: bigint): Promise<types.GroupCall | null>;
|
|
161
|
+
setGroupCallAccessHash(id: bigint, accessHash: bigint | null): Promise<void>;
|
|
162
|
+
getGroupCallAccessHash(id: bigint): Promise<bigint | null>;
|
|
163
|
+
setUpdate(boxId: bigint, update: enums.Update): Promise<void>;
|
|
164
|
+
deleteUpdates(): Promise<void>;
|
|
165
|
+
getFirstUpdate(boxId: bigint): Promise<[readonly StorageKeyPart[], enums.Update] | null>;
|
|
166
|
+
assertUser(source: string): Promise<void>;
|
|
167
|
+
assertBot(source: string): Promise<void>;
|
|
168
|
+
deleteFiles(): Promise<void>;
|
|
169
|
+
deleteCustomEmojiDocuments(): Promise<void>;
|
|
170
|
+
deleteBusinessConnections(): Promise<void>;
|
|
171
|
+
deleteInlineQueryAnswers(): Promise<void>;
|
|
172
|
+
deleteCallbackQueryAnswers(): Promise<void>;
|
|
173
|
+
deleteFullChats(): Promise<void>;
|
|
174
|
+
deleteGroupCalls(): Promise<void>;
|
|
175
|
+
deleteStickerSetNames(): Promise<void>;
|
|
176
|
+
deletePeers(): Promise<void>;
|
|
177
|
+
deleteUsernames(): Promise<void>;
|
|
178
|
+
clear(): Promise<void>;
|
|
179
|
+
setApiId(apiId: number): Promise<void>;
|
|
180
|
+
getApiId(): Promise<number | null>;
|
|
181
|
+
reset(): Promise<void>;
|
|
182
|
+
}
|