itd-api 0.0.10 → 0.0.11
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/{chunk-BN4AC3DP.cjs → chunk-QD4UHJFF.cjs} +111 -23
- package/dist/chunk-QD4UHJFF.cjs.map +1 -0
- package/dist/{chunk-SMV7TF5P.js → chunk-TB7HW3VX.js} +111 -23
- package/dist/chunk-TB7HW3VX.js.map +1 -0
- package/dist/{index-CSjDNGCE.d.cts → index-CrlTO7sR.d.cts} +47 -10
- package/dist/{index-CSjDNGCE.d.ts → index-CrlTO7sR.d.ts} +47 -10
- package/dist/index.cjs +109 -109
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +112 -112
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-BN4AC3DP.cjs.map +0 -1
- package/dist/chunk-SMV7TF5P.js.map +0 -1
package/dist/node.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQD4UHJFF_cjs = require('./chunk-QD4UHJFF.cjs');
|
|
4
4
|
|
|
5
5
|
// src/node.ts
|
|
6
6
|
function hasErrorCode(error, code) {
|
|
@@ -24,7 +24,7 @@ async function readJsonFile(path, strict = false) {
|
|
|
24
24
|
return JSON.parse(raw);
|
|
25
25
|
} catch {
|
|
26
26
|
if (!strict) return null;
|
|
27
|
-
throw new
|
|
27
|
+
throw new chunkQD4UHJFF_cjs.ItdConfigError(
|
|
28
28
|
`\u0424\u0430\u0439\u043B ${path} \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0451\u043D: \u043E\u0436\u0438\u0434\u0430\u043B\u0441\u044F JSON \u0441 \u0441\u0435\u0441\u0441\u0438\u044F\u043C\u0438 \u0430\u043A\u043A\u0430\u0443\u043D\u0442\u043E\u0432. \u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u0444\u0430\u0439\u043B \u0438\u043B\u0438 \u043F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0435\u0440\u0435\u0434 \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u043C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435\u043C.`
|
|
29
29
|
);
|
|
30
30
|
}
|
|
@@ -63,10 +63,10 @@ var FileTokenStorage = class {
|
|
|
63
63
|
() => void 0
|
|
64
64
|
);
|
|
65
65
|
const parsed = await readJsonFile(this.#path);
|
|
66
|
-
return typeof parsed === "object" && parsed !== null ?
|
|
66
|
+
return typeof parsed === "object" && parsed !== null ? chunkQD4UHJFF_cjs.copySession(parsed) : null;
|
|
67
67
|
}
|
|
68
68
|
set(session) {
|
|
69
|
-
const snapshot =
|
|
69
|
+
const snapshot = chunkQD4UHJFF_cjs.copySession(session);
|
|
70
70
|
return this.#enqueue(() => writeJsonAtomic(this.#path, snapshot));
|
|
71
71
|
}
|
|
72
72
|
clear() {
|
|
@@ -85,7 +85,7 @@ var FileMultiTokenStorage = class {
|
|
|
85
85
|
/** @param path путь к файлу сессий. Добавьте его в `.gitignore`. */
|
|
86
86
|
constructor(path) {
|
|
87
87
|
this.#path = path;
|
|
88
|
-
this.#inner =
|
|
88
|
+
this.#inner = chunkQD4UHJFF_cjs.createRecordMultiStorage({
|
|
89
89
|
read: () => this.#read(),
|
|
90
90
|
write: (accounts) => writeJsonAtomic(path, { version: SESSIONS_FILE_VERSION, accounts }),
|
|
91
91
|
// Последний аккаунт ушёл — файл с пустой картой выглядел бы мусором.
|
|
@@ -110,14 +110,14 @@ var FileMultiTokenStorage = class {
|
|
|
110
110
|
const envelope = typeof parsed === "object" && parsed !== null ? parsed : void 0;
|
|
111
111
|
const accounts = envelope?.accounts;
|
|
112
112
|
if (envelope?.version !== SESSIONS_FILE_VERSION || typeof accounts !== "object" || accounts === null || Array.isArray(accounts)) {
|
|
113
|
-
throw new
|
|
113
|
+
throw new chunkQD4UHJFF_cjs.ItdConfigError(
|
|
114
114
|
`\u0424\u0430\u0439\u043B ${this.#path} \u0438\u043C\u0435\u0435\u0442 \u043D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442: \u043E\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044F { version: ${SESSIONS_FILE_VERSION}, accounts }. \u0412\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u044D\u0442\u043E \u0444\u0430\u0439\u043B \u043E\u0434\u0438\u043D\u043E\u0447\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0444\u0430\u0439\u043B \u0434\u0440\u0443\u0433\u043E\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u2014 \u0432\u043E\u0437\u044C\u043C\u0438\u0442\u0435 \u043E\u0442\u0434\u0435\u043B\u044C\u043D\u044B\u0439 \u043F\u0443\u0442\u044C, \u0447\u0442\u043E\u0431\u044B \u043D\u0435 \u043F\u0435\u0440\u0435\u0437\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0435\u0433\u043E.`
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
return accounts;
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
|
-
var ItdClient2 = class extends
|
|
120
|
+
var ItdClient2 = class extends chunkQD4UHJFF_cjs.ItdClient {
|
|
121
121
|
constructor(options = {}, internals = {}) {
|
|
122
122
|
super(options, { ...internals, fileReader: nodeFileReader });
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ var ItdClient2 = class extends chunkBN4AC3DP_cjs.ItdClient {
|
|
|
125
125
|
function createClient(options = {}) {
|
|
126
126
|
return new ItdClient2(options);
|
|
127
127
|
}
|
|
128
|
-
var ItdAccounts2 = class extends
|
|
128
|
+
var ItdAccounts2 = class extends chunkQD4UHJFF_cjs.ItdAccounts {
|
|
129
129
|
constructor(options = {}) {
|
|
130
130
|
super(options, {
|
|
131
131
|
createClient: (clientOptions, internals) => new ItdClient2(clientOptions, internals)
|
|
@@ -138,419 +138,419 @@ function createAccounts(options = {}) {
|
|
|
138
138
|
|
|
139
139
|
Object.defineProperty(exports, "ALLOWED_MIME_TYPES", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkQD4UHJFF_cjs.ALLOWED_MIME_TYPES; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "AUDIO_MIME_TYPES", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkQD4UHJFF_cjs.AUDIO_MIME_TYPES; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "AUTH_FLAG_COOKIE", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkQD4UHJFF_cjs.AUTH_FLAG_COOKIE; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "AUTH_PATHS", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkQD4UHJFF_cjs.AUTH_PATHS; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "AccessType", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkQD4UHJFF_cjs.AccessType; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "AttachmentType", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkQD4UHJFF_cjs.AttachmentType; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "BUILT_IN_SERVICES", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkQD4UHJFF_cjs.BUILT_IN_SERVICES; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "CommentSort", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkQD4UHJFF_cjs.CommentSort; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "DEFAULT_BASE_URL", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkQD4UHJFF_cjs.DEFAULT_BASE_URL; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "DEFAULT_STATUS_BASE_URL", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkQD4UHJFF_cjs.DEFAULT_STATUS_BASE_URL; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "DEFAULT_TIMEOUT", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkQD4UHJFF_cjs.DEFAULT_TIMEOUT; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "DEFAULT_UPLOAD_TIMEOUT", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkQD4UHJFF_cjs.DEFAULT_UPLOAD_TIMEOUT; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "DEFAULT_USER_AGENT", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkQD4UHJFF_cjs.DEFAULT_USER_AGENT; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "DEVICE_ID_HEADER", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkQD4UHJFF_cjs.DEVICE_ID_HEADER; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "DetectedRuntime", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkQD4UHJFF_cjs.DetectedRuntime; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "FeedTab", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkQD4UHJFF_cjs.FeedTab; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "IMAGE_MIME_TYPES", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkQD4UHJFF_cjs.IMAGE_MIME_TYPES; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "IncidentKind", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkQD4UHJFF_cjs.IncidentKind; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "InteractionType", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkQD4UHJFF_cjs.InteractionType; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "ItdAbortError", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdAbortError; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "ItdApiError", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdApiError; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "ItdApiErrorKind", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdApiErrorKind; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "ItdAuthError", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdAuthError; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "ItdConfigError", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdConfigError; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "ItdConflictError", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdConflictError; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "ItdError", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdError; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "ItdErrorCode", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdErrorCode; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "ItdErrorKind", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdErrorKind; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "ItdForbiddenError", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdForbiddenError; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "ItdNetworkError", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdNetworkError; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "ItdNotFoundError", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdNotFoundError; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "ItdPhoneVerificationError", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdPhoneVerificationError; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "ItdRateLimitError", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdRateLimitError; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "ItdRealtime", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdRealtime; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "ItdServerError", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdServerError; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "ItdTimeoutError", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdTimeoutError; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "ItdValidationError", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkQD4UHJFF_cjs.ItdValidationError; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "LIBRARY_VERSION", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkQD4UHJFF_cjs.LIBRARY_VERSION; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "LikesVisibility", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkQD4UHJFF_cjs.LikesVisibility; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "LocalStorageTokenStorage", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkQD4UHJFF_cjs.LocalStorageTokenStorage; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "MAX_RECONNECT_ATTEMPTS", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkQD4UHJFF_cjs.MAX_RECONNECT_ATTEMPTS; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "MemoryMultiTokenStorage", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkQD4UHJFF_cjs.MemoryMultiTokenStorage; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "MemoryTokenStorage", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkQD4UHJFF_cjs.MemoryTokenStorage; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "NOTIFICATION_TYPE_ALIASES", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkQD4UHJFF_cjs.NOTIFICATION_TYPE_ALIASES; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "NotificationType", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkQD4UHJFF_cjs.NotificationType; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "OAuthProvider", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkQD4UHJFF_cjs.OAuthProvider; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "PaginationMode", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkQD4UHJFF_cjs.PaginationMode; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "Paginator", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkQD4UHJFF_cjs.Paginator; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "RECONNECT_BACKOFF", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkQD4UHJFF_cjs.RECONNECT_BACKOFF; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "RECONNECT_JITTER", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkQD4UHJFF_cjs.RECONNECT_JITTER; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "REFRESH_COOKIE", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkQD4UHJFF_cjs.REFRESH_COOKIE; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "REFRESH_COOKIE_PATH", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkQD4UHJFF_cjs.REFRESH_COOKIE_PATH; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "REQUEST_OPTION_KEYS", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkQD4UHJFF_cjs.REQUEST_OPTION_KEYS; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "RealtimeStatus", {
|
|
352
352
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
353
|
+
get: function () { return chunkQD4UHJFF_cjs.RealtimeStatus; }
|
|
354
354
|
});
|
|
355
355
|
Object.defineProperty(exports, "RealtimeTransportKind", {
|
|
356
356
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
357
|
+
get: function () { return chunkQD4UHJFF_cjs.RealtimeTransportKind; }
|
|
358
358
|
});
|
|
359
359
|
Object.defineProperty(exports, "ReportReason", {
|
|
360
360
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkQD4UHJFF_cjs.ReportReason; }
|
|
362
362
|
});
|
|
363
363
|
Object.defineProperty(exports, "ReportTargetType", {
|
|
364
364
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
365
|
+
get: function () { return chunkQD4UHJFF_cjs.ReportTargetType; }
|
|
366
366
|
});
|
|
367
367
|
Object.defineProperty(exports, "RuntimeMode", {
|
|
368
368
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
369
|
+
get: function () { return chunkQD4UHJFF_cjs.RuntimeMode; }
|
|
370
370
|
});
|
|
371
371
|
Object.defineProperty(exports, "STATUS_SERVICE", {
|
|
372
372
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
373
|
+
get: function () { return chunkQD4UHJFF_cjs.STATUS_SERVICE; }
|
|
374
374
|
});
|
|
375
375
|
Object.defineProperty(exports, "STREAM_PATH", {
|
|
376
376
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
377
|
+
get: function () { return chunkQD4UHJFF_cjs.STREAM_PATH; }
|
|
378
378
|
});
|
|
379
379
|
Object.defineProperty(exports, "ServiceRegistry", {
|
|
380
380
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
381
|
+
get: function () { return chunkQD4UHJFF_cjs.ServiceRegistry; }
|
|
382
382
|
});
|
|
383
383
|
Object.defineProperty(exports, "ServiceState", {
|
|
384
384
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
385
|
+
get: function () { return chunkQD4UHJFF_cjs.ServiceState; }
|
|
386
386
|
});
|
|
387
387
|
Object.defineProperty(exports, "SignInStatus", {
|
|
388
388
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkQD4UHJFF_cjs.SignInStatus; }
|
|
390
390
|
});
|
|
391
391
|
Object.defineProperty(exports, "SpanType", {
|
|
392
392
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkQD4UHJFF_cjs.SpanType; }
|
|
394
394
|
});
|
|
395
395
|
Object.defineProperty(exports, "TURNSTILE_SITE_KEY", {
|
|
396
396
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkQD4UHJFF_cjs.TURNSTILE_SITE_KEY; }
|
|
398
398
|
});
|
|
399
399
|
Object.defineProperty(exports, "UnauthorizedStreamError", {
|
|
400
400
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkQD4UHJFF_cjs.UnauthorizedStreamError; }
|
|
402
402
|
});
|
|
403
403
|
Object.defineProperty(exports, "VIDEO_MIME_TYPES", {
|
|
404
404
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
405
|
+
get: function () { return chunkQD4UHJFF_cjs.VIDEO_MIME_TYPES; }
|
|
406
406
|
});
|
|
407
407
|
Object.defineProperty(exports, "ViewReason", {
|
|
408
408
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
409
|
+
get: function () { return chunkQD4UHJFF_cjs.ViewReason; }
|
|
410
410
|
});
|
|
411
411
|
Object.defineProperty(exports, "ViewSource", {
|
|
412
412
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
413
|
+
get: function () { return chunkQD4UHJFF_cjs.ViewSource; }
|
|
414
414
|
});
|
|
415
415
|
Object.defineProperty(exports, "WallAccess", {
|
|
416
416
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
417
|
+
get: function () { return chunkQD4UHJFF_cjs.WallAccess; }
|
|
418
418
|
});
|
|
419
419
|
Object.defineProperty(exports, "autoSpans", {
|
|
420
420
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
421
|
+
get: function () { return chunkQD4UHJFF_cjs.autoSpans; }
|
|
422
422
|
});
|
|
423
423
|
Object.defineProperty(exports, "canonicalNotificationType", {
|
|
424
424
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
425
|
+
get: function () { return chunkQD4UHJFF_cjs.canonicalNotificationType; }
|
|
426
426
|
});
|
|
427
427
|
Object.defineProperty(exports, "comment", {
|
|
428
428
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
429
|
+
get: function () { return chunkQD4UHJFF_cjs.comment; }
|
|
430
430
|
});
|
|
431
431
|
Object.defineProperty(exports, "createMultiTokenStorage", {
|
|
432
432
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
433
|
+
get: function () { return chunkQD4UHJFF_cjs.createMultiTokenStorage; }
|
|
434
434
|
});
|
|
435
435
|
Object.defineProperty(exports, "createRecordMultiStorage", {
|
|
436
436
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
437
|
+
get: function () { return chunkQD4UHJFF_cjs.createRecordMultiStorage; }
|
|
438
438
|
});
|
|
439
439
|
Object.defineProperty(exports, "createTokenStorage", {
|
|
440
440
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
441
|
+
get: function () { return chunkQD4UHJFF_cjs.createTokenStorage; }
|
|
442
442
|
});
|
|
443
443
|
Object.defineProperty(exports, "formatNotificationText", {
|
|
444
444
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
445
|
+
get: function () { return chunkQD4UHJFF_cjs.formatNotificationText; }
|
|
446
446
|
});
|
|
447
447
|
Object.defineProperty(exports, "isBuilder", {
|
|
448
448
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
449
|
+
get: function () { return chunkQD4UHJFF_cjs.isBuilder; }
|
|
450
450
|
});
|
|
451
451
|
Object.defineProperty(exports, "isItdApiError", {
|
|
452
452
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
453
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdApiError; }
|
|
454
454
|
});
|
|
455
455
|
Object.defineProperty(exports, "isItdAuthError", {
|
|
456
456
|
enumerable: true,
|
|
457
|
-
get: function () { return
|
|
457
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdAuthError; }
|
|
458
458
|
});
|
|
459
459
|
Object.defineProperty(exports, "isItdConflictError", {
|
|
460
460
|
enumerable: true,
|
|
461
|
-
get: function () { return
|
|
461
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdConflictError; }
|
|
462
462
|
});
|
|
463
463
|
Object.defineProperty(exports, "isItdError", {
|
|
464
464
|
enumerable: true,
|
|
465
|
-
get: function () { return
|
|
465
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdError; }
|
|
466
466
|
});
|
|
467
467
|
Object.defineProperty(exports, "isItdForbiddenError", {
|
|
468
468
|
enumerable: true,
|
|
469
|
-
get: function () { return
|
|
469
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdForbiddenError; }
|
|
470
470
|
});
|
|
471
471
|
Object.defineProperty(exports, "isItdNotFoundError", {
|
|
472
472
|
enumerable: true,
|
|
473
|
-
get: function () { return
|
|
473
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdNotFoundError; }
|
|
474
474
|
});
|
|
475
475
|
Object.defineProperty(exports, "isItdPhoneVerificationError", {
|
|
476
476
|
enumerable: true,
|
|
477
|
-
get: function () { return
|
|
477
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdPhoneVerificationError; }
|
|
478
478
|
});
|
|
479
479
|
Object.defineProperty(exports, "isItdRateLimitError", {
|
|
480
480
|
enumerable: true,
|
|
481
|
-
get: function () { return
|
|
481
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdRateLimitError; }
|
|
482
482
|
});
|
|
483
483
|
Object.defineProperty(exports, "isItdServerError", {
|
|
484
484
|
enumerable: true,
|
|
485
|
-
get: function () { return
|
|
485
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdServerError; }
|
|
486
486
|
});
|
|
487
487
|
Object.defineProperty(exports, "isItdValidationError", {
|
|
488
488
|
enumerable: true,
|
|
489
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunkQD4UHJFF_cjs.isItdValidationError; }
|
|
490
490
|
});
|
|
491
491
|
Object.defineProperty(exports, "isKnownNotificationType", {
|
|
492
492
|
enumerable: true,
|
|
493
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunkQD4UHJFF_cjs.isKnownNotificationType; }
|
|
494
494
|
});
|
|
495
495
|
Object.defineProperty(exports, "isMyProfile", {
|
|
496
496
|
enumerable: true,
|
|
497
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunkQD4UHJFF_cjs.isMyProfile; }
|
|
498
498
|
});
|
|
499
499
|
Object.defineProperty(exports, "mapPage", {
|
|
500
500
|
enumerable: true,
|
|
501
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunkQD4UHJFF_cjs.mapPage; }
|
|
502
502
|
});
|
|
503
503
|
Object.defineProperty(exports, "markup", {
|
|
504
504
|
enumerable: true,
|
|
505
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunkQD4UHJFF_cjs.markup; }
|
|
506
506
|
});
|
|
507
507
|
Object.defineProperty(exports, "normalizeNotification", {
|
|
508
508
|
enumerable: true,
|
|
509
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunkQD4UHJFF_cjs.normalizeNotification; }
|
|
510
510
|
});
|
|
511
511
|
Object.defineProperty(exports, "poll", {
|
|
512
512
|
enumerable: true,
|
|
513
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunkQD4UHJFF_cjs.poll; }
|
|
514
514
|
});
|
|
515
515
|
Object.defineProperty(exports, "post", {
|
|
516
516
|
enumerable: true,
|
|
517
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunkQD4UHJFF_cjs.post; }
|
|
518
518
|
});
|
|
519
519
|
Object.defineProperty(exports, "readNotificationEvent", {
|
|
520
520
|
enumerable: true,
|
|
521
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunkQD4UHJFF_cjs.readNotificationEvent; }
|
|
522
522
|
});
|
|
523
523
|
Object.defineProperty(exports, "readUnreadCountEvent", {
|
|
524
524
|
enumerable: true,
|
|
525
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunkQD4UHJFF_cjs.readUnreadCountEvent; }
|
|
526
526
|
});
|
|
527
527
|
Object.defineProperty(exports, "renderSpans", {
|
|
528
528
|
enumerable: true,
|
|
529
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunkQD4UHJFF_cjs.renderSpans; }
|
|
530
530
|
});
|
|
531
531
|
Object.defineProperty(exports, "report", {
|
|
532
532
|
enumerable: true,
|
|
533
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunkQD4UHJFF_cjs.report; }
|
|
534
534
|
});
|
|
535
535
|
Object.defineProperty(exports, "resolveNotificationUrl", {
|
|
536
536
|
enumerable: true,
|
|
537
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunkQD4UHJFF_cjs.resolveNotificationUrl; }
|
|
538
538
|
});
|
|
539
539
|
Object.defineProperty(exports, "scopedTokenStorage", {
|
|
540
540
|
enumerable: true,
|
|
541
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunkQD4UHJFF_cjs.scopedTokenStorage; }
|
|
542
542
|
});
|
|
543
543
|
Object.defineProperty(exports, "statusDays", {
|
|
544
544
|
enumerable: true,
|
|
545
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunkQD4UHJFF_cjs.statusDays; }
|
|
546
546
|
});
|
|
547
547
|
Object.defineProperty(exports, "toDate", {
|
|
548
548
|
enumerable: true,
|
|
549
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunkQD4UHJFF_cjs.toDate; }
|
|
550
550
|
});
|
|
551
551
|
Object.defineProperty(exports, "utcStampToIso", {
|
|
552
552
|
enumerable: true,
|
|
553
|
-
get: function () { return
|
|
553
|
+
get: function () { return chunkQD4UHJFF_cjs.utcStampToIso; }
|
|
554
554
|
});
|
|
555
555
|
exports.FileMultiTokenStorage = FileMultiTokenStorage;
|
|
556
556
|
exports.FileTokenStorage = FileTokenStorage;
|
package/dist/node.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MultiTokenStorage, I as ItdSession, T as TokenStorage, a as ItdAccounts$1, b as ItdAccountsOptions, c as ItdClient$1, d as ItdClientOptions, e as ItdClientInternals, F as FileReader } from './index-
|
|
2
|
-
export { A as ALLOWED_MIME_TYPES, f as AUDIO_MIME_TYPES, g as AUTH_FLAG_COOKIE, h as AUTH_PATHS, i as AccessType, j as AccountEvents, k as Actor, l as AddAccountOptions, m as AllowedMimeType, n as Announcement, o as AnnouncementButton, p as Attachment, q as AttachmentType, r as AudioMimeType, s as AuthEvents, t as
|
|
1
|
+
import { M as MultiTokenStorage, I as ItdSession, T as TokenStorage, a as ItdAccounts$1, b as ItdAccountsOptions, c as ItdClient$1, d as ItdClientOptions, e as ItdClientInternals, F as FileReader } from './index-CrlTO7sR.cjs';
|
|
2
|
+
export { A as ALLOWED_MIME_TYPES, f as AUDIO_MIME_TYPES, g as AUTH_FLAG_COOKIE, h as AUTH_PATHS, i as AccessType, j as AccountEvents, k as Actor, l as AddAccountOptions, m as AllowedMimeType, n as Announcement, o as AnnouncementButton, p as Attachment, q as AttachmentType, r as AudioMimeType, s as AuthEvents, t as AuthIdentity, u as AuthInput, v as AuthResource, w as Author, x as AutoSpansOptions, B as BUILT_IN_SERVICES, y as BuilderInput, C as CaptchaCredentials, z as ChangelogEntry, D as Clan, E as ClientHooks, G as Comment, H as CommentBuilder, J as CommentInput, K as CommentReplyTo, L as CommentSort, N as CommentsParams, O as CommentsResource, P as CreateCommentInput, Q as CreatePollInput, R as CreatePostInput, S as CreateReportInput, U as Credentials, V as CredentialsAuth, W as DEFAULT_BASE_URL, X as DEFAULT_STATUS_BASE_URL, Y as DEFAULT_TIMEOUT, Z as DEFAULT_UPLOAD_TIMEOUT, _ as DEFAULT_USER_AGENT, $ as DEVICE_ID_HEADER, a0 as DetectedRuntime, a1 as DwellEntry, a2 as ErrorContextHook, a3 as FeedParams, a4 as FeedTab, a5 as FileInput, a6 as FilesResource, a7 as FollowResult, a8 as ForgotPasswordInput, a9 as Hashtag, aa as HashtagPostsParams, ab as HashtagsResource, ac as IMAGE_MIME_TYPES, ad as ImageMimeType, ae as IncidentKind, af as InteractionEntry, ag as InteractionType, ah as IsoDate, ai as ItdAbortError, aj as ItdApiError, ak as ItdApiErrorInit, al as ItdApiErrorKind, am as ItdAuthError, an as ItdBuilder, ao as ItdConfigError, ap as ItdConflictError, aq as ItdError, ar as ItdErrorCode, as as ItdErrorKind, at as ItdFieldErrors, au as ItdForbiddenError, av as ItdNetworkError, aw as ItdNotFoundError, ax as ItdPhoneVerificationError, ay as ItdPlugin, az as ItdRateLimitError, aA as ItdRealtime, aB as ItdServerError, aC as ItdTimeoutError, aD as ItdValidationError, aE as LIBRARY_VERSION, aF as LikeResult, aG as LikesVisibility, aH as Listener, aI as LocalStorageTokenStorage, aJ as Logger, aK as Loose, aL as MAX_RECONNECT_ATTEMPTS, aM as MarkupBuilder, aN as MarkupContent, aO as MarkupInput, aP as MarkupSpan, aQ as MemoryMultiTokenStorage, aR as MemoryTokenStorage, aS as MyProfile, aT as NOTIFICATION_TYPE_ALIASES, aU as Notification, aV as NotificationEvent, aW as NotificationListParams, aX as NotificationSettings, aY as NotificationType, aZ as NotificationsResource, a_ as OAuthProvider, a$ as Page, b0 as PageState, b1 as PaginationMode, b2 as Paginator, b3 as PaginatorOptions, b4 as PaymentMethod, b5 as Pin, b6 as PinPostResult, b7 as PinsResult, b8 as PlatformResource, b9 as PlatformStatus, ba as PluginContext, bb as Poll, bc as PollBuilder, bd as PollInput, be as PollOption, bf as PollTransportOptions, bg as Portal, bh as Post, bi as PostBuilder, bj as PostInput, bk as PostStats, bl as PostUpdateInput, bm as PostsResource, bn as PrivacySettings, bo as Profile, bp as PublicProfile, bq as QueryParams, br as QueryValue, bs as RECONNECT_BACKOFF, bt as RECONNECT_JITTER, bu as REFRESH_COOKIE, bv as REFRESH_COOKIE_PATH, bw as REQUEST_OPTION_KEYS, bx as RateLimitOptions, by as RateLimitScope, bz as RawRequestOptions, bA as RealtimeDeps, bB as RealtimeEvents, bC as RealtimeOptions, bD as RealtimeStatus, bE as RealtimeTransport, bF as RealtimeTransportKind, bG as ReconnectOptions, bH as RecordStorageSource, bI as RemoveAccountOptions, bJ as RenderSpansOptions, bK as RepliesParams, bL as Report, bM as ReportBuilder, bN as ReportInput, bO as ReportReason, bP as ReportTargetType, bQ as ReportsResource, bR as RequestContext, bS as RequestOptions, bT as ResetPasswordInput, bU as ResponseContext, bV as RetryContext, bW as RetryOptions, bX as RuntimeMode, bY as STATUS_SERVICE, bZ as STREAM_PATH, b_ as SearchResource, b$ as SearchResult, c0 as ServiceDefinition, c1 as ServiceRegistry, c2 as ServiceState, c3 as ServiceStatus, c4 as Session, c5 as SignInResult, c6 as SignInStatus, c7 as Span, c8 as SpanRenderFormat, c9 as SpanType, ca as SseTransportOptions, cb as StatusDay, cc as StatusIncidentLine, cd as Subscription, ce as SubscriptionResource, cf as SubscriptionState, cg as TURNSTILE_SITE_KEY, ch as TelemetryOptions, ci as TelemetryResource, cj as TextMarkup, ck as Transformer, cl as TransportContext, cm as TransportEvent, cn as UnauthorizedStreamError, co as Unsubscribe, cp as UpdateNotificationSettingsInput, cq as UpdatePostInput, cr as UpdatePrivacyInput, cs as UpdateProfileInput, ct as UploadOptions, cu as UploadedFile, cv as UserId, cw as UserListParams, cx as UserPostsParams, cy as UserRef, cz as UserSummary, cA as UsersResource, cB as VIDEO_MIME_TYPES, cC as VerificationResource, cD as VerificationStatus, cE as VideoMimeType, cF as ViewReason, cG as ViewSource, cH as WallAccess, cI as autoSpans, cJ as canonicalNotificationType, cK as comment, cL as createMultiTokenStorage, cM as createRecordMultiStorage, cN as createTokenStorage, cO as formatNotificationText, cP as isBuilder, cQ as isItdApiError, cR as isItdAuthError, cS as isItdConflictError, cT as isItdError, cU as isItdForbiddenError, cV as isItdNotFoundError, cW as isItdPhoneVerificationError, cX as isItdRateLimitError, cY as isItdServerError, cZ as isItdValidationError, c_ as isKnownNotificationType, c$ as isMyProfile, d0 as mapPage, d1 as markup, d2 as normalizeNotification, d3 as poll, d4 as post, d5 as readNotificationEvent, d6 as readUnreadCountEvent, d7 as renderSpans, d8 as report, d9 as resolveNotificationUrl, da as scopedTokenStorage, db as statusDays, dc as toDate, dd as utcStampToIso } from './index-CrlTO7sR.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `itd-api/node` — то же, что `itd-api`, плюс работа с файловой системой.
|