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/README.md
CHANGED
|
@@ -107,6 +107,7 @@ import { ItdClient } from 'itd-api';
|
|
|
107
107
|
| `@itd-api/proxy` | прокси-транспорт для HTTP и WebSocket | Node.js 18+, Bun, Deno | [npm](https://www.npmjs.com/package/@itd-api/proxy) | [документация](https://kiowdev.github.io/itd-api/packages/proxy) |
|
|
108
108
|
| `@itd-api/cache` | TTL/LRU-кэш и дедупликация запросов | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/cache) | [документация](https://kiowdev.github.io/itd-api/packages/cache) |
|
|
109
109
|
| `@itd-api/hydrate` | методы действий на моделях API | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/hydrate) | [документация](https://kiowdev.github.io/itd-api/packages/hydrate) |
|
|
110
|
+
| `@itd-api/chat-bot` | создание ботов для чатов ИТД | среды с WebSocket | [npm](https://www.npmjs.com/package/@itd-api/chat-bot) | [документация](https://kiowdev.github.io/itd-api/packages/chat-bot) |
|
|
110
111
|
| `@itd-api/crypto` | скрытые сообщения в постах, комментариях и профилях | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/crypto) | [документация](https://kiowdev.github.io/itd-api/packages/crypto) |
|
|
111
112
|
| `@itd-api/testing` | сценарные ответы и сервер API в памяти | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/testing) | [документация](https://kiowdev.github.io/itd-api/packages/testing) |
|
|
112
113
|
|
package/dist/events/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_url = require("../shared/url-CXRaoR_w.cjs");
|
|
3
2
|
const require_validate = require("../shared/validate-BHKy_YMv.cjs");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
3
|
+
const require_url = require("../shared/url-CQbNqbJX.cjs");
|
|
4
|
+
const require_cookies = require("../shared/cookies-u2hXCcpR.cjs");
|
|
5
|
+
const require_events = require("../shared/events-DUFuPzVO.cjs");
|
|
6
6
|
exports.DEFAULT_BASE_URL = require_url.DEFAULT_BASE_URL;
|
|
7
7
|
exports.EventChannel = require_events.EventChannel;
|
|
8
8
|
exports.EventChannelStatus = require_url.EventChannelStatus;
|
|
@@ -24,14 +24,14 @@ exports.ItdStateError = require_validate.ItdStateError;
|
|
|
24
24
|
exports.ItdTimeoutError = require_validate.ItdTimeoutError;
|
|
25
25
|
exports.ItdValidationError = require_validate.ItdValidationError;
|
|
26
26
|
exports.LIBRARY_VERSION = require_url.LIBRARY_VERSION;
|
|
27
|
-
exports.LogLevel =
|
|
27
|
+
exports.LogLevel = require_cookies.LogLevel;
|
|
28
28
|
exports.NotificationEvents = require_events.NotificationEvents;
|
|
29
29
|
exports.NotificationEventsClient = require_events.NotificationEventsClient;
|
|
30
30
|
exports.NotificationEventsTransport = require_events.NotificationEventsTransport;
|
|
31
31
|
exports.NotificationType = require_url.NotificationType;
|
|
32
32
|
exports.NotificationUpdateOrigin = require_events.NotificationUpdateOrigin;
|
|
33
33
|
exports.NotificationUpdateType = require_events.NotificationUpdateType;
|
|
34
|
-
exports.RuntimeMode =
|
|
34
|
+
exports.RuntimeMode = require_cookies.RuntimeMode;
|
|
35
35
|
exports.TimeoutBudget = require_validate.TimeoutBudget;
|
|
36
36
|
exports.UnauthorizedStreamError = require_events.UnauthorizedStreamError;
|
|
37
37
|
exports.WebSocketTransport = require_events.WebSocketTransport;
|
package/dist/events/index.d.cts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { A as
|
|
7
|
-
import { $ as
|
|
6
|
+
import { A as ClientConnection, An as NotificationType, F as tokenProvider, G as ItdError, H as ItdAuthError, Jt as RuntimeMode, K as ItdErrorKind, M as AuthProvider, N as anonymousAuth, O as Listener, On as Loose, Ot as ClientHooks, P as bearerToken, Q as ItdNotFoundError, Qt as systemClock, R as ItdAbortError, U as ItdConfigError, Ut as RuntimeOptions, V as ItdApiErrorKind, X as ItdForbiddenError, Xt as Logger, Yt as LogLevel, Z as ItdNetworkError, Zt as ItdClock, _t as isItdValidationError, a as NotificationEvent, at as TimeoutBudget, c as NotificationSettings, et as ItdRateLimitError, gt as isItdStateError, i as formatNotificationText, it as ItdValidationError, j as AuthIdentity, k as Unsubscribe, lt as isItdError, mt as isItdRateLimitError, n as canonicalNotificationType, nt as ItdStateError, o as normalizeNotification, ot as isItdApiError, r as isKnownNotificationType, rt as ItdTimeoutError, s as Notification, st as isItdAuthError, t as resolveNotificationUrl, tt as ItdServerError, xn as EventChannelStatus, xt as LIBRARY_VERSION, yt as DEFAULT_BASE_URL, z as ItdApiError } from "../shared/url-D7U9qjXD.cjs";
|
|
7
|
+
import { $ as EventTransportFrame, A as EventSequentializer, B as NotificationOfType, C as EventSession, D as EventMiddlewareObject, E as EventMiddleware, F as NotificationEventContext, G as UnknownNotificationUpdate, H as NotificationUpdateOfType, I as NotificationEventFilter, J as NotificationEventsMap, K as UnreadCountUpdate, L as NotificationEventOfType, M as runEventMiddleware, N as EventContext, O as EventNext, P as NotificationContext, Q as EventTransportContext, R as NotificationEventSelector, S as EventEnqueueOptions, T as EventHandler, U as NotificationUpdateOrigin, V as NotificationUpdate, W as NotificationUpdateType, X as NotificationEventsTransport, Y as NotificationEventsOptions, Z as EventTransport, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as EventChannelEvents, c as EventRouteSelector, d as NotificationEventsClientOptions, et as UnauthorizedStreamError, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventTypeGuard, k as EventPredicate, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationEvents, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as ReconnectOptions, u as NotificationEventsClient, v as EventChannel, w as EventSyncReason, x as EventChannelOptions, y as EventChannelDeps, z as NotificationEventsUpdate } from "../shared/events-BmYzFrRC.cjs";
|
|
8
8
|
export { type AuthIdentity, type AuthProvider, type ClientConnection, type ClientHooks, DEFAULT_BASE_URL, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, type ItdClock, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, type Listener, LogLevel, type Logger, type Loose, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type ReconnectOptions, RuntimeMode, type RuntimeOptions, TimeoutBudget, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|
package/dist/events/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { A as
|
|
7
|
-
import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "../shared/events-
|
|
6
|
+
import { $ as ItdServerError, A as ClientConnection, B as ItdAuthError, Bt as RuntimeOptions, Dn as NotificationType, F as tokenProvider, Gt as RuntimeMode, I as ItdAbortError, J as ItdForbiddenError, Jt as ItdClock, Kt as LogLevel, L as ItdApiError, M as AuthProvider, N as anonymousAuth, O as Listener, P as bearerToken, Q as ItdRateLimitError, Tn as Loose, Tt as ClientHooks, U as ItdError, V as ItdConfigError, W as ItdErrorKind, X as ItdNotFoundError, Y as ItdNetworkError, Yt as systemClock, a as NotificationEvent, at as isItdAuthError, c as NotificationSettings, et as ItdStateError, ft as isItdRateLimitError, gt as DEFAULT_BASE_URL, ht as isItdValidationError, i as formatNotificationText, it as isItdApiError, j as AuthIdentity, k as Unsubscribe, mt as isItdStateError, n as canonicalNotificationType, nt as ItdValidationError, o as normalizeNotification, qt as Logger, r as isKnownNotificationType, rt as TimeoutBudget, s as Notification, st as isItdError, t as resolveNotificationUrl, tt as ItdTimeoutError, vn as EventChannelStatus, vt as LIBRARY_VERSION, z as ItdApiErrorKind } from "../shared/url-B_TELARK.js";
|
|
7
|
+
import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "../shared/events-Bw7VaSDs.js";
|
|
8
8
|
export { type AuthIdentity, type AuthProvider, type ClientConnection, type ClientHooks, DEFAULT_BASE_URL, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, type ItdClock, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, type Listener, LogLevel, type Logger, type Loose, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type ReconnectOptions, RuntimeMode, type RuntimeOptions, TimeoutBudget, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|
package/dist/events/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as NotificationType, _t as systemClock, a as tokenProvider, c as normalizeNotification, d as canonicalNotificationType, f as isKnownNotificationType, i as bearerToken, mt as LIBRARY_VERSION, n as formatNotificationText, r as anonymousAuth, t as resolveNotificationUrl, ut as DEFAULT_BASE_URL, y as EventChannelStatus } from "../shared/url-aw_NZdVY.js";
|
|
2
1
|
import { C as ItdValidationError, E as isItdAuthError, F as isItdStateError, I as isItdValidationError, N as isItdRateLimitError, O as isItdError, 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, l as ItdConfigError, o as ItdApiError, s as ItdApiErrorKind, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "../shared/validate-BQzL_oJ4.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { S as LIBRARY_VERSION, a as tokenProvider, ct as NotificationType, et as EventChannelStatus, i as bearerToken, l as canonicalNotificationType, n as formatNotificationText, o as normalizeNotification, r as anonymousAuth, t as resolveNotificationUrl, u as isKnownNotificationType, v as DEFAULT_BASE_URL, yt as systemClock } from "../shared/url-DYGRJqxh.js";
|
|
3
|
+
import { E as LogLevel, v as RuntimeMode } from "../shared/cookies-YP0m72v2.js";
|
|
4
|
+
import { d as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin } from "../shared/events-BnL_gckg.js";
|
|
5
5
|
export { DEFAULT_BASE_URL, EventChannel, EventChannelStatus, EventComposer, EventRouter, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LogLevel, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, RuntimeMode, TimeoutBudget, UnauthorizedStreamError, WebSocketTransport, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,176 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_url = require("./shared/url-CXRaoR_w.cjs");
|
|
3
2
|
const require_validate = require("./shared/validate-BHKy_YMv.cjs");
|
|
4
|
-
const require_render = require("./shared/render-
|
|
5
|
-
const require_events = require("./shared/events-
|
|
6
|
-
const
|
|
3
|
+
const require_render = require("./shared/render-dKMV-872.cjs");
|
|
4
|
+
const require_events = require("./shared/events-DUFuPzVO.cjs");
|
|
5
|
+
const require_url = require("./shared/url-CQbNqbJX.cjs");
|
|
6
|
+
const require_cookies = require("./shared/cookies-u2hXCcpR.cjs");
|
|
7
7
|
const require_storage = require("./shared/storage-e2xYL6ro.cjs");
|
|
8
|
-
const require_multi_storage = require("./shared/multi-storage-
|
|
9
|
-
const require_options = require("./shared/options-
|
|
8
|
+
const require_multi_storage = require("./shared/multi-storage-BIeeBDV6.cjs");
|
|
9
|
+
const require_options = require("./shared/options-hZolLxgs.cjs");
|
|
10
10
|
const require_key_value_store = require("./shared/key-value-store-CmnIjuE4.cjs");
|
|
11
|
+
// src/events/chats.ts
|
|
12
|
+
/** Канал событий чатов. Доступен как `itd.chats.events` в полном клиенте. */
|
|
13
|
+
var ChatEvents = class {
|
|
14
|
+
#channel;
|
|
15
|
+
#updates;
|
|
16
|
+
#position;
|
|
17
|
+
/** @internal */
|
|
18
|
+
constructor(deps, options = {}) {
|
|
19
|
+
this.#updates = deps.updates;
|
|
20
|
+
this.#channel = new require_events.EventChannel({
|
|
21
|
+
...deps,
|
|
22
|
+
transport: new require_events.WebSocketTransport({
|
|
23
|
+
path: "/api/v1/messenger/ws",
|
|
24
|
+
query: { capabilities: "chat_settings_v2" },
|
|
25
|
+
auth: { subprotocol: "itd.messenger.v1" },
|
|
26
|
+
unauthorizedCloseCodes: [4001, 4003],
|
|
27
|
+
webSocketImpl: options.webSocketImpl,
|
|
28
|
+
clock: deps.clock
|
|
29
|
+
}),
|
|
30
|
+
streamOrigin: "stream",
|
|
31
|
+
openBeforeInitialize: true,
|
|
32
|
+
initializationRequired: true,
|
|
33
|
+
initialize: (_reason, { signal }) => this.#sync(signal),
|
|
34
|
+
readUpdate: ({ data }) => {
|
|
35
|
+
if (typeof data !== "object" || data === null || !("type" in data) || typeof data.type !== "string") return;
|
|
36
|
+
return require_render.normalizeChatUpdate(data);
|
|
37
|
+
},
|
|
38
|
+
createContext: (update, raw, origin) => ({
|
|
39
|
+
update,
|
|
40
|
+
raw,
|
|
41
|
+
origin,
|
|
42
|
+
stream: this
|
|
43
|
+
}),
|
|
44
|
+
deliver: (update) => this.#channel.emit("update", update)
|
|
45
|
+
}, options);
|
|
46
|
+
this.#channel.use(async ({ update }, next) => {
|
|
47
|
+
if (this.#acceptLiveUpdate(update)) await next();
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/** Текущее состояние соединения. */
|
|
51
|
+
get status() {
|
|
52
|
+
return this.#channel.status;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Подписывается на обновления или события подключения.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const unsubscribe = itd.chats.events.on('update', (event) => console.log(event.type));
|
|
60
|
+
* await itd.chats.events.connect();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
on(event, listener) {
|
|
64
|
+
return this.#channel.on(event, listener);
|
|
65
|
+
}
|
|
66
|
+
/** Добавляет обработчик обновлений WebSocket и возвращает функцию его удаления. */
|
|
67
|
+
use(middleware) {
|
|
68
|
+
return this.#channel.use(middleware);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Подключается к WebSocket и догружает пропущенные события.
|
|
72
|
+
*
|
|
73
|
+
* @param since номер последнего события. Возьмите `eventSeq` из списка чатов или события.
|
|
74
|
+
*/
|
|
75
|
+
async connect(since) {
|
|
76
|
+
if (since !== void 0 && !isSequence(since)) throw new require_validate.ItdConfigError("Номер события должен быть целым неотрицательным числом");
|
|
77
|
+
if (!this.#channel.active && since !== void 0) this.#position = since;
|
|
78
|
+
return this.#channel.connect();
|
|
79
|
+
}
|
|
80
|
+
/** Закрывает сокет и отменяет запланированное переподключение. */
|
|
81
|
+
disconnect() {
|
|
82
|
+
this.#position = void 0;
|
|
83
|
+
this.#channel.disconnect();
|
|
84
|
+
}
|
|
85
|
+
/** Ждёт завершения работы остановленного соединения. */
|
|
86
|
+
drain() {
|
|
87
|
+
return this.#channel.drain();
|
|
88
|
+
}
|
|
89
|
+
/** Загружает пропущенные события, пока новые события WebSocket ждут обработки. */
|
|
90
|
+
async #sync(signal) {
|
|
91
|
+
while (this.#position !== void 0 && !signal.aborted) {
|
|
92
|
+
const since = this.#position;
|
|
93
|
+
const page = await this.#updates(since, signal);
|
|
94
|
+
if (signal.aborted) return;
|
|
95
|
+
if (page.resetRequired) {
|
|
96
|
+
this.disconnect();
|
|
97
|
+
this.#channel.emit("resetRequired", void 0);
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const next = page.nextEventSeq;
|
|
101
|
+
if (!isSequence(next) || next < since) throw new Error("Сервер вернул некорректный номер следующего события");
|
|
102
|
+
for (const update of page.events) {
|
|
103
|
+
if (signal.aborted) return;
|
|
104
|
+
if (this.#advance(update)) this.#channel.emit("update", update);
|
|
105
|
+
}
|
|
106
|
+
if (signal.aborted) return;
|
|
107
|
+
this.#position = Math.max(this.#position ?? since, next);
|
|
108
|
+
if (this.#position > since) this.#channel.confirmRecovery();
|
|
109
|
+
if (page.chats?.length) this.#channel.emit("chatSummaries", page.chats);
|
|
110
|
+
if (!page.events.length || next === since) return;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/** Учитывает кадр до пользовательских обработчиков и запускает догрузку при пропуске. */
|
|
114
|
+
#acceptLiveUpdate(update) {
|
|
115
|
+
const sequence = update.eventSeq;
|
|
116
|
+
if (isSequence(sequence) && this.#position !== void 0 && sequence > this.#position) {
|
|
117
|
+
const count = isSequence(update.eventSeqCount) ? Math.max(1, update.eventSeqCount) : 1;
|
|
118
|
+
if (sequence - this.#position !== count) {
|
|
119
|
+
this.#channel.recover(/* @__PURE__ */ new Error("Пропущены события чата"));
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return this.#advance(update);
|
|
124
|
+
}
|
|
125
|
+
/** Пропускает повторные события из REST и буфера WebSocket. */
|
|
126
|
+
#advance(update) {
|
|
127
|
+
const sequence = update.eventSeq;
|
|
128
|
+
if (isSequence(sequence)) {
|
|
129
|
+
if (this.#position !== void 0 && sequence <= this.#position) return false;
|
|
130
|
+
this.#position = sequence;
|
|
131
|
+
this.#channel.confirmRecovery();
|
|
132
|
+
}
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
function isSequence(value) {
|
|
137
|
+
return typeof value === "number" && Number.isSafeInteger(value) && value >= 0;
|
|
138
|
+
}
|
|
139
|
+
// src/chats-api.ts
|
|
140
|
+
/** Создаёт ресурс с ленивым каналом событий. @internal */
|
|
141
|
+
var ClientChats = class extends require_render.ChatsResource {
|
|
142
|
+
#runtime;
|
|
143
|
+
#host;
|
|
144
|
+
#options;
|
|
145
|
+
#connectGuard;
|
|
146
|
+
#events;
|
|
147
|
+
constructor(runtime, host, options, connectGuard) {
|
|
148
|
+
super(runtime.http, host);
|
|
149
|
+
this.#runtime = runtime;
|
|
150
|
+
this.#host = host;
|
|
151
|
+
this.#options = options;
|
|
152
|
+
this.#connectGuard = connectGuard;
|
|
153
|
+
}
|
|
154
|
+
/** Канал обновлений для текущей сессии клиента. */
|
|
155
|
+
get events() {
|
|
156
|
+
if (this.#events) return this.#events;
|
|
157
|
+
const { clock, logger } = this.#runtime.config;
|
|
158
|
+
const events = new ChatEvents({
|
|
159
|
+
connection: this.#runtime.connection(),
|
|
160
|
+
clock,
|
|
161
|
+
logger,
|
|
162
|
+
connectGuard: this.#connectGuard,
|
|
163
|
+
updates: (since, signal) => this.updates(since, void 0, { signal })
|
|
164
|
+
}, this.#options);
|
|
165
|
+
this.#host.manage({
|
|
166
|
+
kind: "chats:ws",
|
|
167
|
+
stop: () => events.disconnect(),
|
|
168
|
+
drain: () => events.drain()
|
|
169
|
+
});
|
|
170
|
+
this.#events = events;
|
|
171
|
+
return events;
|
|
172
|
+
}
|
|
173
|
+
};
|
|
11
174
|
// src/notifications-api.ts
|
|
12
175
|
var ClientNotifications = class extends require_render.NotificationsResource {
|
|
13
176
|
#createEvents;
|
|
@@ -83,7 +246,7 @@ var AccountChangesResource = class extends require_render.BaseResource {
|
|
|
83
246
|
* @param requestId идентификатор заявки из {@link pending}
|
|
84
247
|
*/
|
|
85
248
|
cancelPending(requestId, options = {}) {
|
|
86
|
-
return requestAccount(this.http, ACCOUNT_CHANGES_CANCEL_PENDING, `/change/pending/${
|
|
249
|
+
return requestAccount(this.http, ACCOUNT_CHANGES_CANCEL_PENDING, `/change/pending/${require_cookies.encodePathSegment(requestId, "requestId")}`, void 0, options);
|
|
87
250
|
}
|
|
88
251
|
};
|
|
89
252
|
// src/operations/account/email.ts
|
|
@@ -772,7 +935,7 @@ function normalizeSessionValue(value, source, mode = "strict", logger) {
|
|
|
772
935
|
delete normalized.cookies;
|
|
773
936
|
} else throw new require_validate.ItdConfigError(`${source}.cookies должна быть массивом`);
|
|
774
937
|
} else {
|
|
775
|
-
const valid = record.cookies.filter((cookie) => typeof cookie === "string" &&
|
|
938
|
+
const valid = record.cookies.filter((cookie) => typeof cookie === "string" && require_cookies.isSerializedCookieEntry(cookie));
|
|
776
939
|
if (valid.length > 0) normalized.cookies = valid;
|
|
777
940
|
else delete normalized.cookies;
|
|
778
941
|
}
|
|
@@ -913,7 +1076,7 @@ var AuthManager = class {
|
|
|
913
1076
|
/** Создаёт изолированный jar для сетевого auth-flow. @internal */
|
|
914
1077
|
createCookieFlow(inherit = true) {
|
|
915
1078
|
this.#assertActive();
|
|
916
|
-
return inherit ? this.#jar.clone() : new
|
|
1079
|
+
return inherit ? this.#jar.clone() : new require_cookies.CookieJar();
|
|
917
1080
|
}
|
|
918
1081
|
/** Применяет cookies только если владелец сессии не сменился. @internal */
|
|
919
1082
|
commitCookieFlow(cookies, expectedRevision) {
|
|
@@ -1061,7 +1224,7 @@ var AuthManager = class {
|
|
|
1061
1224
|
const revision = this.#authEpoch;
|
|
1062
1225
|
const session = await this.#loadSession();
|
|
1063
1226
|
this.#assertActive();
|
|
1064
|
-
const deviceId = this.#config.deviceId ?? session?.deviceId ??
|
|
1227
|
+
const deviceId = this.#config.deviceId ?? session?.deviceId ?? require_cookies.createDeviceId();
|
|
1065
1228
|
this.#deviceId = deviceId;
|
|
1066
1229
|
if (this.#authEpoch !== revision) return deviceId;
|
|
1067
1230
|
if (session?.deviceId !== deviceId) await this.#saveSession({
|
|
@@ -1248,7 +1411,7 @@ var AuthManager = class {
|
|
|
1248
1411
|
const refreshToken = this.#session?.refreshToken;
|
|
1249
1412
|
if (!refreshToken) return;
|
|
1250
1413
|
if (this.#jar.has("refresh_token", this.#config.baseUrl + "/api/v1/auth")) return;
|
|
1251
|
-
this.#jar.set(this.#config.baseUrl,
|
|
1414
|
+
this.#jar.set(this.#config.baseUrl, require_cookies.REFRESH_COOKIE, refreshToken, require_cookies.REFRESH_COOKIE_PATH);
|
|
1252
1415
|
}
|
|
1253
1416
|
#sessionFromConfig(auth) {
|
|
1254
1417
|
if (!auth) return null;
|
|
@@ -1314,7 +1477,7 @@ var AuthManager = class {
|
|
|
1314
1477
|
});
|
|
1315
1478
|
if (!this.#matchesRefreshExpectation(expectation)) return this.#session?.accessToken ?? null;
|
|
1316
1479
|
this.#jar.replaceWith(flowCookies);
|
|
1317
|
-
const rotated = this.#jar.getValue(
|
|
1480
|
+
const rotated = this.#jar.getValue(require_cookies.REFRESH_COOKIE, this.#config.baseUrl + require_cookies.REFRESH_COOKIE_PATH);
|
|
1318
1481
|
this.#transitionAuth(accessToken, false);
|
|
1319
1482
|
const saved = this.#saveSession({
|
|
1320
1483
|
...this.#session ?? {},
|
|
@@ -1427,7 +1590,7 @@ var AuthManager = class {
|
|
|
1427
1590
|
}
|
|
1428
1591
|
async #performSignIn(credentials, revision) {
|
|
1429
1592
|
const captcha = await this.captchaBody();
|
|
1430
|
-
const flowCookies = new
|
|
1593
|
+
const flowCookies = new require_cookies.CookieJar();
|
|
1431
1594
|
const result = await this.#http.execute(AUTH_SIGN_IN, {
|
|
1432
1595
|
path: AUTH_PATHS.signIn,
|
|
1433
1596
|
body: {
|
|
@@ -1516,7 +1679,7 @@ async function openQrLoginStream(connection, cookies, input, onEvent, signal) {
|
|
|
1516
1679
|
connection.assertActive?.("открыть QR-поток");
|
|
1517
1680
|
const path = AUTH_PATHS.qrStream;
|
|
1518
1681
|
const method = "POST";
|
|
1519
|
-
const url =
|
|
1682
|
+
const url = require_cookies.joinUrl(connection.baseUrl, path);
|
|
1520
1683
|
const abort = require_url.createRequestAbortScope(signal, connection.signal, connection.clock);
|
|
1521
1684
|
try {
|
|
1522
1685
|
const headers = await connection.baseHeaders(url);
|
|
@@ -2336,6 +2499,10 @@ var ItdClient = class ItdClient {
|
|
|
2336
2499
|
get notifications() {
|
|
2337
2500
|
return this.#resources.notifications;
|
|
2338
2501
|
}
|
|
2502
|
+
/** Чаты и сообщения текущего пользователя. */
|
|
2503
|
+
get chats() {
|
|
2504
|
+
return this.#resources.chats;
|
|
2505
|
+
}
|
|
2339
2506
|
/** Хэштеги и посты по ним. */
|
|
2340
2507
|
get hashtags() {
|
|
2341
2508
|
return this.#resources.hashtags;
|
|
@@ -2391,10 +2558,12 @@ var ItdClient = class ItdClient {
|
|
|
2391
2558
|
assertActive: (action) => assertClientActive(this, action)
|
|
2392
2559
|
});
|
|
2393
2560
|
const status = this.#features.install(require_render.createStatusFeature());
|
|
2561
|
+
const chatEventsOptions = { ...options.events?.chats };
|
|
2394
2562
|
this.#resources = require_render.createResources({
|
|
2395
2563
|
http: this.#runtime.http,
|
|
2396
|
-
|
|
2564
|
+
host: this.#features,
|
|
2397
2565
|
status,
|
|
2566
|
+
createChats: () => new ClientChats(this.#runtime, this.#features, chatEventsOptions, () => assertClientActive(this, "подключить канал событий чатов")),
|
|
2398
2567
|
createNotifications: (http) => createNotificationsApi(http, (notifications) => {
|
|
2399
2568
|
let events;
|
|
2400
2569
|
let lifecycleGeneration = 0;
|
|
@@ -2869,7 +3038,7 @@ var ItdAccounts = class ItdAccounts {
|
|
|
2869
3038
|
this.#rateLimitScope = rateLimitScope ?? RateLimitScope.Shared;
|
|
2870
3039
|
const rateLimit = this.#rateLimitScope === RateLimitScope.Shared ? require_url.resolveRateLimit(base.rateLimit, require_url.ITD_CATALOG) : void 0;
|
|
2871
3040
|
this.#queues = rateLimit ? new require_url.RequestQueuePool(rateLimit, base.clock ?? require_url.systemClock) : void 0;
|
|
2872
|
-
const logger =
|
|
3041
|
+
const logger = require_cookies.resolveLogger(base.logger);
|
|
2873
3042
|
this.#logger = logger;
|
|
2874
3043
|
this.#emitter = new require_events.Emitter((error) => require_events.reportListenerError(logger, "аккаунтов", error));
|
|
2875
3044
|
}
|
|
@@ -3203,7 +3372,7 @@ var ItdAccounts = class ItdAccounts {
|
|
|
3203
3372
|
}
|
|
3204
3373
|
/** Не теряет ошибку фонового освобождения ресурсов, которого синхронный API не ждёт. */
|
|
3205
3374
|
#reportCleanup(scope, error) {
|
|
3206
|
-
(this.#logger ??
|
|
3375
|
+
(this.#logger ?? require_cookies.fallbackLogger).error(`Не удалось освободить ресурсы после ${scope}`, error);
|
|
3207
3376
|
}
|
|
3208
3377
|
/** Ретранслирует события клиента наружу, добавляя к ним имя аккаунта. */
|
|
3209
3378
|
#forwardEvents(account, client) {
|
|
@@ -3254,6 +3423,12 @@ exports.CAPTCHA_FIELDS = CAPTCHA_FIELDS;
|
|
|
3254
3423
|
exports.CaptchaChoice = require_url.CaptchaChoice;
|
|
3255
3424
|
exports.CaptchaField = require_url.CaptchaField;
|
|
3256
3425
|
exports.CaptchaType = require_url.CaptchaType;
|
|
3426
|
+
exports.ChatActionType = require_render.ChatActionType;
|
|
3427
|
+
exports.ChatEvents = ChatEvents;
|
|
3428
|
+
exports.ChatMediaCategory = require_render.ChatMediaCategory;
|
|
3429
|
+
exports.ChatReactionType = require_render.ChatReactionType;
|
|
3430
|
+
exports.ChatUpdateType = require_render.ChatUpdateType;
|
|
3431
|
+
exports.ChatsResource = require_render.ChatsResource;
|
|
3257
3432
|
exports.CommentSort = require_url.CommentSort;
|
|
3258
3433
|
exports.ContactKind = ContactKind;
|
|
3259
3434
|
exports.ContactProofMethod = ContactProofMethod;
|
|
@@ -3268,6 +3443,7 @@ exports.FileTransferMode = require_options.FileTransferMode;
|
|
|
3268
3443
|
exports.IMAGE_MIME_TYPES = require_render.IMAGE_MIME_TYPES;
|
|
3269
3444
|
exports.IncidentKind = require_url.IncidentKind;
|
|
3270
3445
|
exports.InteractionType = require_url.InteractionType;
|
|
3446
|
+
exports.InternationalSubscriptionCheckoutMode = require_render.InternationalSubscriptionCheckoutMode;
|
|
3271
3447
|
exports.ItdAbortError = require_validate.ItdAbortError;
|
|
3272
3448
|
exports.ItdAccounts = ItdAccounts;
|
|
3273
3449
|
exports.ItdApiError = require_validate.ItdApiError;
|
|
@@ -3295,7 +3471,7 @@ exports.LastSeenUnit = require_url.LastSeenUnit;
|
|
|
3295
3471
|
exports.LegalDocumentBlockType = require_render.LegalDocumentBlockType;
|
|
3296
3472
|
exports.LegalDocumentScope = require_render.LegalDocumentScope;
|
|
3297
3473
|
exports.LikesVisibility = require_url.LikesVisibility;
|
|
3298
|
-
exports.LogLevel =
|
|
3474
|
+
exports.LogLevel = require_cookies.LogLevel;
|
|
3299
3475
|
exports.MemoryKeyValueStore = require_key_value_store.MemoryKeyValueStore;
|
|
3300
3476
|
exports.MemoryMultiTokenStorage = require_multi_storage.MemoryMultiTokenStorage;
|
|
3301
3477
|
exports.MemoryShopOrderAccessStorage = require_render.MemoryShopOrderAccessStorage;
|
|
@@ -3311,6 +3487,7 @@ exports.OPERATIONS = require_url.OPERATIONS;
|
|
|
3311
3487
|
exports.OperationMethod = require_url.OperationMethod;
|
|
3312
3488
|
exports.PaginationMode = require_render.PaginationMode;
|
|
3313
3489
|
exports.Paginator = require_render.Paginator;
|
|
3490
|
+
exports.PaymentMethodType = require_render.PaymentMethodType;
|
|
3314
3491
|
exports.PhoneDeliveryChannel = PhoneDeliveryChannel;
|
|
3315
3492
|
exports.PhoneLoginStep = PhoneLoginStep;
|
|
3316
3493
|
exports.PhoneReverseState = PhoneReverseState;
|
|
@@ -3323,7 +3500,7 @@ exports.RateLimitScope = RateLimitScope;
|
|
|
3323
3500
|
exports.ReportReason = require_url.ReportReason;
|
|
3324
3501
|
exports.ReportTargetType = require_url.ReportTargetType;
|
|
3325
3502
|
exports.RetrySafety = require_url.RetrySafety;
|
|
3326
|
-
exports.RuntimeMode =
|
|
3503
|
+
exports.RuntimeMode = require_cookies.RuntimeMode;
|
|
3327
3504
|
exports.STATUS_SERVICE = require_url.STATUS_SERVICE;
|
|
3328
3505
|
exports.ServiceState = require_url.ServiceState;
|
|
3329
3506
|
exports.ShopConsentKind = require_render.ShopConsentKind;
|
|
@@ -3333,6 +3510,9 @@ exports.ShopProductStatus = require_render.ShopProductStatus;
|
|
|
3333
3510
|
exports.SignInStatus = SignInStatus;
|
|
3334
3511
|
exports.SpanRenderFormat = require_render.SpanRenderFormat;
|
|
3335
3512
|
exports.SpanType = require_url.SpanType;
|
|
3513
|
+
exports.SubscriptionCheckoutKind = require_render.SubscriptionCheckoutKind;
|
|
3514
|
+
exports.SubscriptionCheckoutStatus = require_render.SubscriptionCheckoutStatus;
|
|
3515
|
+
exports.SubscriptionPaymentProvider = require_render.SubscriptionPaymentProvider;
|
|
3336
3516
|
exports.TURNSTILE_SITE_KEY = TURNSTILE_SITE_KEY;
|
|
3337
3517
|
exports.TimeoutBudget = require_validate.TimeoutBudget;
|
|
3338
3518
|
exports.UnauthorizedStreamError = require_events.UnauthorizedStreamError;
|
|
@@ -3376,6 +3556,8 @@ exports.isKnownNotificationType = require_url.isKnownNotificationType;
|
|
|
3376
3556
|
exports.isMyProfile = require_render.isMyProfile;
|
|
3377
3557
|
exports.mapPage = require_render.mapPage;
|
|
3378
3558
|
exports.markup = require_render.markup;
|
|
3559
|
+
exports.message = require_render.message;
|
|
3560
|
+
exports.messageMarkup = require_render.messageMarkup;
|
|
3379
3561
|
exports.normalizeNotification = require_url.normalizeNotification;
|
|
3380
3562
|
exports.operationBucket = require_url.operationBucket;
|
|
3381
3563
|
exports.operationMethod = require_url.operationMethod;
|