itd-api 0.14.2 → 0.14.4
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/events/index.cjs +3 -3
- 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 +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +12 -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 +4 -4
- package/dist/rest/index.d.cts +2 -2
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +4 -4
- package/dist/shared/{cookies-D68xbO4E.cjs → cookies-BLmvIZBD.cjs} +6 -8
- package/dist/shared/cookies-BLmvIZBD.cjs.map +1 -0
- package/dist/shared/{cookies-BdntFeQ5.js → cookies-lIXHWhOd.js} +5 -7
- package/dist/shared/cookies-lIXHWhOd.js.map +1 -0
- package/dist/shared/{events-B_97nfiJ.cjs → events-9dRKcUPZ.cjs} +3 -3
- package/dist/shared/{events-B_97nfiJ.cjs.map → events-9dRKcUPZ.cjs.map} +1 -1
- package/dist/shared/{events-BcR4RzSS.d.ts → events-B18vQGEH.d.ts} +1 -1
- package/dist/shared/{events-B2D1rsQf.d.cts → events-BSotWa3Z.d.cts} +1 -1
- package/dist/shared/{events-CzYBo3XI.js → events-C7MJnuJw.js} +3 -3
- package/dist/shared/{events-CzYBo3XI.js.map → events-C7MJnuJw.js.map} +1 -1
- package/dist/shared/{multi-storage-hYW_Whkx.js → multi-storage-CPiHgcXH.js} +2 -2
- package/dist/shared/{multi-storage-hYW_Whkx.js.map → multi-storage-CPiHgcXH.js.map} +1 -1
- package/dist/shared/{multi-storage-BNiP6Mbq.cjs → multi-storage-lwn-cmG6.cjs} +2 -2
- package/dist/shared/{multi-storage-BNiP6Mbq.cjs.map → multi-storage-lwn-cmG6.cjs.map} +1 -1
- package/dist/shared/{options-C2WubUA6.cjs → options-DYeE1hFt.cjs} +2 -2
- package/dist/shared/{options-C2WubUA6.cjs.map → options-DYeE1hFt.cjs.map} +1 -1
- package/dist/shared/{options-BqQVtTmm.js → options-DorH4keX.js} +2 -2
- package/dist/shared/{options-BqQVtTmm.js.map → options-DorH4keX.js.map} +1 -1
- package/dist/shared/{render-4Rp2sa1a.d.ts → render-C5G2o3yL.d.ts} +14 -1
- package/dist/shared/{render-DaHR-AHp.d.cts → render-CWiDhdKI.d.cts} +14 -1
- package/dist/shared/{render-CXxr13yg.js → render-DFhMFt1f.js} +19 -6
- package/dist/shared/render-DFhMFt1f.js.map +1 -0
- package/dist/shared/{render-B67QcLUQ.cjs → render-DOLkOCVs.cjs} +19 -6
- package/dist/shared/render-DOLkOCVs.cjs.map +1 -0
- package/dist/shared/{url-Dey3grvo.d.ts → url-C49-l_KW.d.ts} +8 -3
- package/dist/shared/{url-ww6B39DX.js → url-DcjNue8i.js} +10 -6
- package/dist/shared/{url-ww6B39DX.js.map → url-DcjNue8i.js.map} +1 -1
- package/dist/shared/{url-DVN-pqkV.d.cts → url-ZRjcpC__.d.cts} +8 -3
- package/dist/shared/{url-HVCnoH85.cjs → url-vXQWF--L.cjs} +10 -6
- package/dist/shared/url-vXQWF--L.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/shared/cookies-BdntFeQ5.js.map +0 -1
- package/dist/shared/cookies-D68xbO4E.cjs.map +0 -1
- package/dist/shared/render-B67QcLUQ.cjs.map +0 -1
- package/dist/shared/render-CXxr13yg.js.map +0 -1
- package/dist/shared/url-HVCnoH85.cjs.map +0 -1
package/dist/events/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_validate = require("../shared/validate-CbM3k811.cjs");
|
|
3
|
-
const require_url = require("../shared/url-
|
|
4
|
-
const require_cookies = require("../shared/cookies-
|
|
5
|
-
const require_events = require("../shared/events-
|
|
3
|
+
const require_url = require("../shared/url-vXQWF--L.cjs");
|
|
4
|
+
const require_cookies = require("../shared/cookies-BLmvIZBD.cjs");
|
|
5
|
+
const require_events = require("../shared/events-9dRKcUPZ.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;
|
package/dist/events/index.d.cts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { $t as
|
|
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-
|
|
6
|
+
import { $t as ItdClock, A as ClientConnection, An as Loose, Cn as EventChannelStatus, F as tokenProvider, G as ItdError, H as ItdAuthError, K as ItdErrorKind, M as AuthProvider, Mn as NotificationType, N as anonymousAuth, O as Listener, P as bearerToken, Q as ItdNotFoundError, Qt as Logger, R as ItdAbortError, St as LIBRARY_VERSION, U as ItdConfigError, V as ItdApiErrorKind, Wt as RuntimeOptions, X as ItdForbiddenError, Yt as RuntimeMode, Z as ItdNetworkError, Zt as LogLevel, _t as isItdStateError, a as NotificationEvent, bt as DEFAULT_BASE_URL, c as NotificationSettings, ct as isItdAuthError, en as systemClock, et as ItdRateLimitError, ht as isItdRateLimitError, i as formatNotificationText, it as ItdValidationError, j as AuthIdentity, k as Unsubscribe, kt as ClientHooks, n as canonicalNotificationType, nt as ItdStateError, o as normalizeNotification, ot as TimeoutBudget, r as isKnownNotificationType, rt as ItdTimeoutError, s as Notification, st as isItdApiError, t as resolveNotificationUrl, tt as ItdServerError, ut as isItdError, vt as isItdValidationError, z as ItdApiError } from "../shared/url-ZRjcpC__.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-BSotWa3Z.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 { $ as ItdServerError, A as ClientConnection, B as ItdAuthError,
|
|
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, Dn as Loose, Et as ClientHooks, F as tokenProvider, I as ItdAbortError, J as ItdForbiddenError, Jt as LogLevel, Kt as RuntimeMode, L as ItdApiError, M as AuthProvider, N as anonymousAuth, O as Listener, P as bearerToken, Q as ItdRateLimitError, U as ItdError, V as ItdConfigError, Vt as RuntimeOptions, W as ItdErrorKind, X as ItdNotFoundError, Xt as ItdClock, Y as ItdNetworkError, Yt as Logger, Zt as systemClock, _t as DEFAULT_BASE_URL, a as NotificationEvent, at as isItdApiError, bn as EventChannelStatus, c as NotificationSettings, ct as isItdError, et as ItdStateError, gt as isItdValidationError, ht as isItdStateError, i as formatNotificationText, it as TimeoutBudget, j as AuthIdentity, k as Unsubscribe, kn as NotificationType, n as canonicalNotificationType, nt as ItdValidationError, o as normalizeNotification, ot as isItdAuthError, pt as isItdRateLimitError, r as isKnownNotificationType, s as Notification, t as resolveNotificationUrl, tt as ItdTimeoutError, yt as LIBRARY_VERSION, z as ItdApiErrorKind } from "../shared/url-C49-l_KW.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-B18vQGEH.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
1
|
import { C as ItdValidationError, D as isItdAuthError, E as isItdApiError, I as isItdStateError, L as isItdValidationError, P as isItdRateLimitError, S as ItdTimeoutError, T as TimeoutBudget, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, k as isItdError, l as ItdConfigError, o as ItdApiError, s as ItdApiErrorKind, x as ItdStateError, y as ItdRateLimitError } from "../shared/validate-oLSGiGwQ.js";
|
|
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-
|
|
3
|
-
import { E as LogLevel, v as RuntimeMode } from "../shared/cookies-
|
|
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-
|
|
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-DcjNue8i.js";
|
|
3
|
+
import { E as LogLevel, v as RuntimeMode } from "../shared/cookies-lIXHWhOd.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-C7MJnuJw.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,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_validate = require("./shared/validate-CbM3k811.cjs");
|
|
3
|
-
const require_render = require("./shared/render-
|
|
4
|
-
const require_events = require("./shared/events-
|
|
5
|
-
const require_url = require("./shared/url-
|
|
6
|
-
const require_cookies = require("./shared/cookies-
|
|
3
|
+
const require_render = require("./shared/render-DOLkOCVs.cjs");
|
|
4
|
+
const require_events = require("./shared/events-9dRKcUPZ.cjs");
|
|
5
|
+
const require_url = require("./shared/url-vXQWF--L.cjs");
|
|
6
|
+
const require_cookies = require("./shared/cookies-BLmvIZBD.cjs");
|
|
7
7
|
const require_storage = require("./shared/storage-xximVWs_.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-lwn-cmG6.cjs");
|
|
9
|
+
const require_options = require("./shared/options-DYeE1hFt.cjs");
|
|
10
10
|
const require_key_value_store = require("./shared/key-value-store-Bxt33ZF3.cjs");
|
|
11
11
|
// src/events/chats.ts
|
|
12
12
|
/** Канал событий чатов. Доступен как `itd.chats.events` в полном клиенте. */
|
|
@@ -51,6 +51,10 @@ var ChatEvents = class {
|
|
|
51
51
|
get status() {
|
|
52
52
|
return this.#channel.status;
|
|
53
53
|
}
|
|
54
|
+
/** Канал подключён, подключается или ожидает переподключения. */
|
|
55
|
+
get active() {
|
|
56
|
+
return this.#channel.active;
|
|
57
|
+
}
|
|
54
58
|
/**
|
|
55
59
|
* Подписывается на обновления или события подключения.
|
|
56
60
|
*
|
|
@@ -1224,7 +1228,7 @@ var AuthManager = class {
|
|
|
1224
1228
|
const revision = this.#authEpoch;
|
|
1225
1229
|
const session = await this.#loadSession();
|
|
1226
1230
|
this.#assertActive();
|
|
1227
|
-
const deviceId = this.#config.deviceId ?? session?.deviceId ?? require_cookies.
|
|
1231
|
+
const deviceId = this.#config.deviceId ?? session?.deviceId ?? require_cookies.createUuidV4();
|
|
1228
1232
|
this.#deviceId = deviceId;
|
|
1229
1233
|
if (this.#authEpoch !== revision) return deviceId;
|
|
1230
1234
|
if (session?.deviceId !== deviceId) await this.#saveSession({
|
|
@@ -3535,6 +3539,7 @@ exports.createRecordKeyValueStore = require_key_value_store.createRecordKeyValue
|
|
|
3535
3539
|
exports.createShopFeature = require_render.createShopFeature;
|
|
3536
3540
|
exports.createShopOrderAccessStorage = require_render.createShopOrderAccessStorage;
|
|
3537
3541
|
exports.createTokenStorage = require_storage.createTokenStorage;
|
|
3542
|
+
exports.createUuidV4 = require_cookies.createUuidV4;
|
|
3538
3543
|
exports.formatNotificationText = require_url.formatNotificationText;
|
|
3539
3544
|
exports.fromStream = require_render.fromStream;
|
|
3540
3545
|
exports.fromUrl = require_render.fromUrl;
|