itd-api 0.13.1 → 0.14.1
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/README.md +1 -0
- package/dist/events/index.cjs +5 -5
- package/dist/events/index.d.cts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +3 -3
- package/dist/index.cjs +201 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -4
- package/dist/index.d.ts +64 -4
- package/dist/index.js +177 -8
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.js +2 -2
- package/dist/rest/index.cjs +25 -8
- package/dist/rest/index.cjs.map +1 -1
- package/dist/rest/index.d.cts +5 -3
- package/dist/rest/index.d.ts +5 -3
- package/dist/rest/index.js +12 -7
- package/dist/rest/index.js.map +1 -1
- package/dist/shared/{redact-BCmucE19.js → cookies-YP0m72v2.js} +125 -124
- package/dist/shared/cookies-YP0m72v2.js.map +1 -0
- package/dist/shared/{redact-BuXRKC1G.cjs → cookies-u2hXCcpR.cjs} +124 -123
- package/dist/shared/cookies-u2hXCcpR.cjs.map +1 -0
- package/dist/shared/{events-Bip3qvCc.d.cts → events-BmYzFrRC.d.cts} +213 -198
- package/dist/shared/{events-DRbBDq9p.js → events-BnL_gckg.js} +567 -530
- package/dist/shared/events-BnL_gckg.js.map +1 -0
- package/dist/shared/{events-DF1elRzZ.d.ts → events-Bw7VaSDs.d.ts} +18 -3
- package/dist/shared/{events-DcxmyPTX.cjs → events-DUFuPzVO.cjs} +582 -545
- package/dist/shared/events-DUFuPzVO.cjs.map +1 -0
- package/dist/shared/{multi-storage-Dp5x6OOl.cjs → multi-storage-BIeeBDV6.cjs} +5 -5
- package/dist/shared/{multi-storage-Dp5x6OOl.cjs.map → multi-storage-BIeeBDV6.cjs.map} +1 -1
- package/dist/shared/{multi-storage-DffEAzdc.js → multi-storage-DmUOaXbC.js} +2 -2
- package/dist/shared/{multi-storage-DffEAzdc.js.map → multi-storage-DmUOaXbC.js.map} +1 -1
- package/dist/shared/{options-Ddyc5qec.js → options-D-8h06B_.js} +2 -2
- package/dist/shared/{options-Ddyc5qec.js.map → options-D-8h06B_.js.map} +1 -1
- package/dist/shared/{options-DsmQRyx4.cjs → options-hZolLxgs.cjs} +5 -5
- package/dist/shared/{options-DsmQRyx4.cjs.map → options-hZolLxgs.cjs.map} +1 -1
- package/dist/shared/{render-DJKZqv9O.js → render-CgSQp84V.js} +2990 -1692
- package/dist/shared/render-CgSQp84V.js.map +1 -0
- package/dist/shared/{render-Bvv1V5Tp.d.ts → render-DPXlBr5L.d.ts} +1394 -441
- package/dist/shared/{render-D83t9ckd.d.cts → render-DcIXTSuo.d.cts} +1311 -369
- package/dist/shared/{render-C1lmsu1i.cjs → render-dKMV-872.cjs} +3071 -1695
- package/dist/shared/render-dKMV-872.cjs.map +1 -0
- package/dist/shared/{url-V4bCae35.d.ts → url-B_TELARK.d.ts} +372 -168
- package/dist/shared/{url-CXRaoR_w.cjs → url-CQbNqbJX.cjs} +3472 -3257
- package/dist/shared/url-CQbNqbJX.cjs.map +1 -0
- package/dist/shared/{url-n_h2pvHA.d.cts → url-D7U9qjXD.d.cts} +1809 -1594
- package/dist/shared/{url-aw_NZdVY.js → url-DYGRJqxh.js} +3463 -3254
- package/dist/shared/url-DYGRJqxh.js.map +1 -0
- package/package.json +5 -2
- package/dist/shared/events-DRbBDq9p.js.map +0 -1
- package/dist/shared/events-DcxmyPTX.cjs.map +0 -1
- package/dist/shared/redact-BCmucE19.js.map +0 -1
- package/dist/shared/redact-BuXRKC1G.cjs.map +0 -1
- package/dist/shared/render-C1lmsu1i.cjs.map +0 -1
- package/dist/shared/render-DJKZqv9O.js.map +0 -1
- package/dist/shared/url-CXRaoR_w.cjs.map +0 -1
- package/dist/shared/url-aw_NZdVY.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,175 @@
|
|
|
1
|
-
import { $ as OperationMethod, A as ReportTargetType, B as isBuiltInOperationId, C as ItdErrorCode, D as NotificationType, E as MessageAccess, F as ViewSource, G as DEFAULT_RATE_LIMIT_BUCKET, H as operationMethod, I as WallAccess, J as pickArray, K as createClientRuntime, L as ITD_CATALOG, M as SpanType, N as UsernameUnavailableReason, O as QrLocationPrecision, P as ViewReason, Q as pickString, R as OPERATIONS, S as InteractionType, T as LikesVisibility, U as operationRetrySafety, V as operationBucket, W as BUCKET_LIMITS, _ as CaptchaType, _t as systemClock, at as requestAbortError, b as FeedTab, c as normalizeNotification, ct as assertPluginRemovable, d as canonicalNotificationType, et as RetrySafety, f as isKnownNotificationType, ft as STATUS_SERVICE, g as CaptchaField, h as CaptchaChoice, ht as RateLimitPacing, it as createRequestAbortScope, j as ServiceState, k as ReportReason, lt as orderPluginDefinitions, m as AttachmentType, mt as LIBRARY_VERSION, n as formatNotificationText, o as passthroughOperation, p as AccessType, pt as resolveRateLimit, q as createApiError, s as voidOperation, st as RequestQueuePool, t as resolveNotificationUrl, ut as DEFAULT_BASE_URL, v as CommentSort, vt as installAsyncDisposeFallback, w as LastSeenUnit, x as IncidentKind, y as EventChannelStatus, z as defineBuiltInOperation } from "./shared/url-aw_NZdVY.js";
|
|
2
1
|
import { A as isItdForbiddenError, C as ItdValidationError, D as isItdConflictError, E as isItdAuthError, F as isItdStateError, I as isItdValidationError, M as isItdPhoneVerificationError, N as isItdRateLimitError, O as isItdError, P as isItdServerError, S as ItdTimeoutError, T as isItdApiError, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, j as isItdNotFoundError, k as isItdFileError, l as ItdConfigError, m as ItdFileErrorReason, n as isRecord, o as ItdApiError, p as ItdFileError, s as ItdApiErrorKind, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-BQzL_oJ4.js";
|
|
3
|
-
import { A as
|
|
4
|
-
import { _ as Emitter, a as
|
|
5
|
-
import {
|
|
2
|
+
import { $ as ChatReactionType, A as AccountLifecycleResource, B as AUDIO_MIME_TYPES, C as poll, D as LegalDocumentScope, E as LegalDocumentBlockType, F as BaseResource, G as autoSpans, H as VIDEO_MIME_TYPES, I as PaginationMode, J as normalizeChatUpdate, K as markup, L as Paginator, M as createFeatureHost, N as ExtensibleOperationCatalog, O as comment, P as ChatsResource, Q as ChatMediaCategory, R as mapPage, S as post, T as parseMarkdown, U as message, V as IMAGE_MIME_TYPES, W as messageMarkup, X as utcStampToIso, Y as toDate, Z as ChatActionType, _ as PaymentMethodType, a as createShopOrderAccessStorage, b as SubscriptionPaymentProvider, c as ShopOrderStatus, d as isMyProfile, et as ChatUpdateType, f as BannerDrawingTool, g as InternationalSubscriptionCheckoutMode, h as createResources, i as MemoryShopOrderAccessStorage, j as NotificationsResource, k as createStatusFeature, l as ShopProductCategory, m as fromUrl, n as renderSpans, o as statusDays, p as fromStream, q as isBuilder, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as SubscriptionCheckoutKind, w as parseHtml, x as report, y as SubscriptionCheckoutStatus, z as ALLOWED_MIME_TYPES } from "./shared/render-CgSQp84V.js";
|
|
3
|
+
import { _ as Emitter, a as EVENT_OPERATIONS, c as resolveNotificationEventsOptions, d as NotificationUpdateType, f as createParser, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as setNotificationEventsConnectGuard, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin, v as reportListenerError } from "./shared/events-BnL_gckg.js";
|
|
4
|
+
import { $ as CommentSort, A as passthroughOperation, B as OperationMethod, C as RateLimitPacing, F as operationBucket, G as createRequestAbortScope, I as operationMethod, J as AccessType, K as requestAbortError, L as operationRetrySafety, M as OPERATIONS, N as defineBuiltInOperation, P as isBuiltInOperationId, Q as CaptchaType, R as BUCKET_LIMITS, S as LIBRARY_VERSION, T as pickArray, V as RetrySafety, X as CaptchaChoice, Y as AttachmentType, Z as CaptchaField, _ as orderPluginDefinitions, _t as WallAccess, at as LastSeenUnit, b as STATUS_SERVICE, ct as NotificationType, d as ITD_CATALOG, dt as ReportTargetType, et as EventChannelStatus, f as createClientRuntime, ft as ServiceState, g as assertPluginRemovable, gt as ViewSource, h as RequestQueuePool, ht as ViewReason, it as ItdErrorCode, j as voidOperation, k as pickString, l as canonicalNotificationType, lt as QrLocationPrecision, mt as UsernameUnavailableReason, n as formatNotificationText, nt as IncidentKind, o as normalizeNotification, ot as LikesVisibility, p as createApiError, pt as SpanType, rt as InteractionType, st as MessageAccess, t as resolveNotificationUrl, tt as FeedTab, u as isKnownNotificationType, ut as ReportReason, v as DEFAULT_BASE_URL, w as installAsyncDisposeFallback, x as resolveRateLimit, yt as systemClock, z as DEFAULT_RATE_LIMIT_BUCKET } from "./shared/url-DYGRJqxh.js";
|
|
5
|
+
import { D as fallbackLogger, E as LogLevel, a as isSerializedCookieEntry, i as REFRESH_COOKIE_PATH, k as resolveLogger, n as CookieJar, r as REFRESH_COOKIE, s as encodePathSegment, u as joinUrl, v as RuntimeMode, y as createDeviceId } from "./shared/cookies-YP0m72v2.js";
|
|
6
6
|
import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-Bc4lWtSj.js";
|
|
7
|
-
import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-
|
|
8
|
-
import { c as FileTransferMode } from "./shared/options-
|
|
7
|
+
import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-DmUOaXbC.js";
|
|
8
|
+
import { c as FileTransferMode } from "./shared/options-D-8h06B_.js";
|
|
9
9
|
import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-BwXlaoD4.js";
|
|
10
|
+
// src/events/chats.ts
|
|
11
|
+
/** Канал событий чатов. Доступен как `itd.chats.events` в полном клиенте. */
|
|
12
|
+
var ChatEvents = class {
|
|
13
|
+
#channel;
|
|
14
|
+
#updates;
|
|
15
|
+
#position;
|
|
16
|
+
/** @internal */
|
|
17
|
+
constructor(deps, options = {}) {
|
|
18
|
+
this.#updates = deps.updates;
|
|
19
|
+
this.#channel = new EventChannel({
|
|
20
|
+
...deps,
|
|
21
|
+
transport: new WebSocketTransport({
|
|
22
|
+
path: "/api/v1/messenger/ws",
|
|
23
|
+
query: { capabilities: "chat_settings_v2" },
|
|
24
|
+
auth: { subprotocol: "itd.messenger.v1" },
|
|
25
|
+
unauthorizedCloseCodes: [4001, 4003],
|
|
26
|
+
webSocketImpl: options.webSocketImpl,
|
|
27
|
+
clock: deps.clock
|
|
28
|
+
}),
|
|
29
|
+
streamOrigin: "stream",
|
|
30
|
+
openBeforeInitialize: true,
|
|
31
|
+
initializationRequired: true,
|
|
32
|
+
initialize: (_reason, { signal }) => this.#sync(signal),
|
|
33
|
+
readUpdate: ({ data }) => {
|
|
34
|
+
if (typeof data !== "object" || data === null || !("type" in data) || typeof data.type !== "string") return;
|
|
35
|
+
return normalizeChatUpdate(data);
|
|
36
|
+
},
|
|
37
|
+
createContext: (update, raw, origin) => ({
|
|
38
|
+
update,
|
|
39
|
+
raw,
|
|
40
|
+
origin,
|
|
41
|
+
stream: this
|
|
42
|
+
}),
|
|
43
|
+
deliver: (update) => this.#channel.emit("update", update)
|
|
44
|
+
}, options);
|
|
45
|
+
this.#channel.use(async ({ update }, next) => {
|
|
46
|
+
if (this.#acceptLiveUpdate(update)) await next();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Текущее состояние соединения. */
|
|
50
|
+
get status() {
|
|
51
|
+
return this.#channel.status;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Подписывается на обновления или события подключения.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const unsubscribe = itd.chats.events.on('update', (event) => console.log(event.type));
|
|
59
|
+
* await itd.chats.events.connect();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
on(event, listener) {
|
|
63
|
+
return this.#channel.on(event, listener);
|
|
64
|
+
}
|
|
65
|
+
/** Добавляет обработчик обновлений WebSocket и возвращает функцию его удаления. */
|
|
66
|
+
use(middleware) {
|
|
67
|
+
return this.#channel.use(middleware);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Подключается к WebSocket и догружает пропущенные события.
|
|
71
|
+
*
|
|
72
|
+
* @param since номер последнего события. Возьмите `eventSeq` из списка чатов или события.
|
|
73
|
+
*/
|
|
74
|
+
async connect(since) {
|
|
75
|
+
if (since !== void 0 && !isSequence(since)) throw new ItdConfigError("Номер события должен быть целым неотрицательным числом");
|
|
76
|
+
if (!this.#channel.active && since !== void 0) this.#position = since;
|
|
77
|
+
return this.#channel.connect();
|
|
78
|
+
}
|
|
79
|
+
/** Закрывает сокет и отменяет запланированное переподключение. */
|
|
80
|
+
disconnect() {
|
|
81
|
+
this.#position = void 0;
|
|
82
|
+
this.#channel.disconnect();
|
|
83
|
+
}
|
|
84
|
+
/** Ждёт завершения работы остановленного соединения. */
|
|
85
|
+
drain() {
|
|
86
|
+
return this.#channel.drain();
|
|
87
|
+
}
|
|
88
|
+
/** Загружает пропущенные события, пока новые события WebSocket ждут обработки. */
|
|
89
|
+
async #sync(signal) {
|
|
90
|
+
while (this.#position !== void 0 && !signal.aborted) {
|
|
91
|
+
const since = this.#position;
|
|
92
|
+
const page = await this.#updates(since, signal);
|
|
93
|
+
if (signal.aborted) return;
|
|
94
|
+
if (page.resetRequired) {
|
|
95
|
+
this.disconnect();
|
|
96
|
+
this.#channel.emit("resetRequired", void 0);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const next = page.nextEventSeq;
|
|
100
|
+
if (!isSequence(next) || next < since) throw new Error("Сервер вернул некорректный номер следующего события");
|
|
101
|
+
for (const update of page.events) {
|
|
102
|
+
if (signal.aborted) return;
|
|
103
|
+
if (this.#advance(update)) this.#channel.emit("update", update);
|
|
104
|
+
}
|
|
105
|
+
if (signal.aborted) return;
|
|
106
|
+
this.#position = Math.max(this.#position ?? since, next);
|
|
107
|
+
if (this.#position > since) this.#channel.confirmRecovery();
|
|
108
|
+
if (page.chats?.length) this.#channel.emit("chatSummaries", page.chats);
|
|
109
|
+
if (!page.events.length || next === since) return;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
/** Учитывает кадр до пользовательских обработчиков и запускает догрузку при пропуске. */
|
|
113
|
+
#acceptLiveUpdate(update) {
|
|
114
|
+
const sequence = update.eventSeq;
|
|
115
|
+
if (isSequence(sequence) && this.#position !== void 0 && sequence > this.#position) {
|
|
116
|
+
const count = isSequence(update.eventSeqCount) ? Math.max(1, update.eventSeqCount) : 1;
|
|
117
|
+
if (sequence - this.#position !== count) {
|
|
118
|
+
this.#channel.recover(/* @__PURE__ */ new Error("Пропущены события чата"));
|
|
119
|
+
return false;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return this.#advance(update);
|
|
123
|
+
}
|
|
124
|
+
/** Пропускает повторные события из REST и буфера WebSocket. */
|
|
125
|
+
#advance(update) {
|
|
126
|
+
const sequence = update.eventSeq;
|
|
127
|
+
if (isSequence(sequence)) {
|
|
128
|
+
if (this.#position !== void 0 && sequence <= this.#position) return false;
|
|
129
|
+
this.#position = sequence;
|
|
130
|
+
this.#channel.confirmRecovery();
|
|
131
|
+
}
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
function isSequence(value) {
|
|
136
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
137
|
+
}
|
|
138
|
+
// src/chats-api.ts
|
|
139
|
+
/** Создаёт ресурс с ленивым каналом событий. @internal */
|
|
140
|
+
var ClientChats = class extends ChatsResource {
|
|
141
|
+
#runtime;
|
|
142
|
+
#host;
|
|
143
|
+
#options;
|
|
144
|
+
#connectGuard;
|
|
145
|
+
#events;
|
|
146
|
+
constructor(runtime, host, options, connectGuard) {
|
|
147
|
+
super(runtime.http, host);
|
|
148
|
+
this.#runtime = runtime;
|
|
149
|
+
this.#host = host;
|
|
150
|
+
this.#options = options;
|
|
151
|
+
this.#connectGuard = connectGuard;
|
|
152
|
+
}
|
|
153
|
+
/** Канал обновлений для текущей сессии клиента. */
|
|
154
|
+
get events() {
|
|
155
|
+
if (this.#events) return this.#events;
|
|
156
|
+
const { clock, logger } = this.#runtime.config;
|
|
157
|
+
const events = new ChatEvents({
|
|
158
|
+
connection: this.#runtime.connection(),
|
|
159
|
+
clock,
|
|
160
|
+
logger,
|
|
161
|
+
connectGuard: this.#connectGuard,
|
|
162
|
+
updates: (since, signal) => this.updates(since, void 0, { signal })
|
|
163
|
+
}, this.#options);
|
|
164
|
+
this.#host.manage({
|
|
165
|
+
kind: "chats:ws",
|
|
166
|
+
stop: () => events.disconnect(),
|
|
167
|
+
drain: () => events.drain()
|
|
168
|
+
});
|
|
169
|
+
this.#events = events;
|
|
170
|
+
return events;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
10
173
|
// src/notifications-api.ts
|
|
11
174
|
var ClientNotifications = class extends NotificationsResource {
|
|
12
175
|
#createEvents;
|
|
@@ -2335,6 +2498,10 @@ var ItdClient = class ItdClient {
|
|
|
2335
2498
|
get notifications() {
|
|
2336
2499
|
return this.#resources.notifications;
|
|
2337
2500
|
}
|
|
2501
|
+
/** Чаты и сообщения текущего пользователя. */
|
|
2502
|
+
get chats() {
|
|
2503
|
+
return this.#resources.chats;
|
|
2504
|
+
}
|
|
2338
2505
|
/** Хэштеги и посты по ним. */
|
|
2339
2506
|
get hashtags() {
|
|
2340
2507
|
return this.#resources.hashtags;
|
|
@@ -2390,10 +2557,12 @@ var ItdClient = class ItdClient {
|
|
|
2390
2557
|
assertActive: (action) => assertClientActive(this, action)
|
|
2391
2558
|
});
|
|
2392
2559
|
const status = this.#features.install(createStatusFeature());
|
|
2560
|
+
const chatEventsOptions = { ...options.events?.chats };
|
|
2393
2561
|
this.#resources = createResources({
|
|
2394
2562
|
http: this.#runtime.http,
|
|
2395
|
-
|
|
2563
|
+
host: this.#features,
|
|
2396
2564
|
status,
|
|
2565
|
+
createChats: () => new ClientChats(this.#runtime, this.#features, chatEventsOptions, () => assertClientActive(this, "подключить канал событий чатов")),
|
|
2397
2566
|
createNotifications: (http) => createNotificationsApi(http, (notifications) => {
|
|
2398
2567
|
let events;
|
|
2399
2568
|
let lifecycleGeneration = 0;
|
|
@@ -3243,6 +3412,6 @@ const ContactKind = Object.freeze({
|
|
|
3243
3412
|
Email: "email",
|
|
3244
3413
|
Phone: "phone"
|
|
3245
3414
|
});
|
|
3246
|
-
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, BannerDrawingTool, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, CommentSort, ContactKind, ContactProofMethod, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LastSeenUnit, LegalDocumentBlockType, LegalDocumentScope, LikesVisibility, LogLevel, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, OperationMethod, PaginationMode, Paginator, PhoneDeliveryChannel, PhoneLoginStep, PhoneReverseState, PhoneVerificationMethod, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitPacing, RateLimitScope, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, TURNSTILE_SITE_KEY, TimeoutBudget, UnauthorizedStreamError, UsernameUnavailableReason, VIDEO_MIME_TYPES, ViewReason, ViewSource, WallAccess, WebSocketTransport, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
3415
|
+
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, BannerDrawingTool, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, ChatActionType, ChatEvents, ChatMediaCategory, ChatReactionType, ChatUpdateType, ChatsResource, CommentSort, ContactKind, ContactProofMethod, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, InternationalSubscriptionCheckoutMode, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LastSeenUnit, LegalDocumentBlockType, LegalDocumentScope, LikesVisibility, LogLevel, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, OperationMethod, PaginationMode, Paginator, PaymentMethodType, PhoneDeliveryChannel, PhoneLoginStep, PhoneReverseState, PhoneVerificationMethod, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitPacing, RateLimitScope, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, SubscriptionCheckoutKind, SubscriptionCheckoutStatus, SubscriptionPaymentProvider, TURNSTILE_SITE_KEY, TimeoutBudget, UnauthorizedStreamError, UsernameUnavailableReason, VIDEO_MIME_TYPES, ViewReason, ViewSource, WallAccess, WebSocketTransport, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
3247
3416
|
|
|
3248
3417
|
//# sourceMappingURL=index.js.map
|