itd-api 0.7.2 → 0.8.0
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 +12 -12
- package/dist/events/index.cjs +53 -0
- package/dist/events/index.d.cts +3 -0
- package/dist/events/index.d.ts +3 -0
- package/dist/events/index.js +5 -0
- package/dist/index.cjs +215 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -63
- package/dist/index.d.ts +66 -63
- package/dist/index.js +197 -179
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +4 -4
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +4 -4
- package/dist/rest/index.cjs +20 -26
- package/dist/rest/index.cjs.map +1 -1
- package/dist/rest/index.d.cts +7 -7
- package/dist/rest/index.d.ts +7 -7
- package/dist/rest/index.js +14 -20
- package/dist/rest/index.js.map +1 -1
- package/dist/shared/{errors-DfU8M5eS.cjs → errors-BmP3TKoW.cjs} +3 -3
- package/dist/shared/{errors-DfU8M5eS.cjs.map → errors-BmP3TKoW.cjs.map} +1 -1
- package/dist/shared/{errors-Bhrd2fJd.js → errors-GI10kZxk.js} +3 -3
- package/dist/shared/{errors-Bhrd2fJd.js.map → errors-GI10kZxk.js.map} +1 -1
- package/dist/shared/events-Br2r7coi.d.cts +698 -0
- package/dist/shared/events-QyhQZrnC.d.ts +698 -0
- package/dist/shared/{websocket-BLR8eVJV.js → events-TfhKh26b.js} +770 -490
- package/dist/shared/events-TfhKh26b.js.map +1 -0
- package/dist/shared/{websocket-C_eI4H2o.cjs → events-iTteVsd_.cjs} +834 -518
- package/dist/shared/events-iTteVsd_.cjs.map +1 -0
- package/dist/shared/{multi-storage-CkvTUC5m.js → multi-storage-1AEZTczk.js} +4 -4
- package/dist/shared/{multi-storage-CkvTUC5m.js.map → multi-storage-1AEZTczk.js.map} +1 -1
- package/dist/shared/{multi-storage--yTEqiod.cjs → multi-storage-CCUgkqvI.cjs} +6 -6
- package/dist/shared/{multi-storage--yTEqiod.cjs.map → multi-storage-CCUgkqvI.cjs.map} +1 -1
- package/dist/shared/{options-DtATYdLr.js → options-BNP633A5.js} +8 -6
- package/dist/shared/options-BNP633A5.js.map +1 -0
- package/dist/shared/{options-Dg5N3r1V.cjs → options-BUfoHE9G.cjs} +8 -6
- package/dist/shared/options-BUfoHE9G.cjs.map +1 -0
- package/dist/shared/{cookies-DZwFq6kr.cjs → redact-DB9EMGJx.cjs} +301 -2
- package/dist/shared/redact-DB9EMGJx.cjs.map +1 -0
- package/dist/shared/{cookies-tX2sNwxb.js → redact-FNK29Fv-.js} +224 -3
- package/dist/shared/redact-FNK29Fv-.js.map +1 -0
- package/dist/shared/{render-DO0F5YSm.d.cts → render-BszcKF7S.d.cts} +430 -313
- package/dist/shared/{render-C6HRPs10.js → render-CiL1VS0b.js} +925 -582
- package/dist/shared/render-CiL1VS0b.js.map +1 -0
- package/dist/shared/{render-mcuELiYi.cjs → render-DNTESBSl.cjs} +967 -618
- package/dist/shared/render-DNTESBSl.cjs.map +1 -0
- package/dist/shared/{render-CgwKdOzu.d.ts → render-DVB7T8pm.d.ts} +430 -313
- package/dist/shared/{storage-BPJR_k4-.cjs → storage-BLmXmzKF.cjs} +2 -2
- package/dist/shared/{storage-BPJR_k4-.cjs.map → storage-BLmXmzKF.cjs.map} +1 -1
- package/dist/shared/{storage-D86edNCB.js → storage-CCxn0Kkv.js} +2 -2
- package/dist/shared/{storage-D86edNCB.js.map → storage-CCxn0Kkv.js.map} +1 -1
- package/dist/shared/{url-IU0xN9wX.js → url-B3ocFlHj.js} +434 -408
- package/dist/shared/url-B3ocFlHj.js.map +1 -0
- package/dist/shared/{url-DTfZ2toq.d.cts → url-Be9jlWRv.d.cts} +1228 -1188
- package/dist/shared/{url-DTfZ2toq.d.ts → url-Be9jlWRv.d.ts} +1228 -1188
- package/dist/shared/{url-BaMCQpYH.cjs → url-CFN1sT9S.cjs} +497 -465
- package/dist/shared/url-CFN1sT9S.cjs.map +1 -0
- package/dist/web/index.cjs +2 -2
- package/dist/web/index.js +2 -2
- package/package.json +16 -15
- package/dist/realtime/index.cjs +0 -165
- package/dist/realtime/index.cjs.map +0 -1
- package/dist/realtime/index.d.cts +0 -51
- package/dist/realtime/index.d.ts +0 -51
- package/dist/realtime/index.js +0 -120
- package/dist/realtime/index.js.map +0 -1
- package/dist/shared/auth-provider-CG8oCQ9F.cjs +0 -108
- package/dist/shared/auth-provider-CG8oCQ9F.cjs.map +0 -1
- package/dist/shared/auth-provider-mYqxsSVa.js +0 -91
- package/dist/shared/auth-provider-mYqxsSVa.js.map +0 -1
- package/dist/shared/cookies-DZwFq6kr.cjs.map +0 -1
- package/dist/shared/cookies-tX2sNwxb.js.map +0 -1
- package/dist/shared/options-Dg5N3r1V.cjs.map +0 -1
- package/dist/shared/options-DtATYdLr.js.map +0 -1
- package/dist/shared/render-C6HRPs10.js.map +0 -1
- package/dist/shared/render-mcuELiYi.cjs.map +0 -1
- package/dist/shared/url-BaMCQpYH.cjs.map +0 -1
- package/dist/shared/url-IU0xN9wX.js.map +0 -1
- package/dist/shared/websocket-BLR8eVJV.js.map +0 -1
- package/dist/shared/websocket-C_eI4H2o.cjs.map +0 -1
- package/dist/shared/websocket-DF7XIMiX.d.cts +0 -562
- package/dist/shared/websocket-DYKBr8HF.d.ts +0 -562
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
[](./LICENSE)
|
|
17
17
|
[](https://deepwiki.com/KiowDev/itd-api)
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Полнофункциональный TypeScript SDK для социальной сети **итд.com**.
|
|
20
20
|
Проект не является официальным SDK и не аффилирован с итд.com.
|
|
21
21
|
|
|
22
22
|
[Документация](https://kiowdev.github.io/itd-api/) ·
|
|
@@ -55,10 +55,10 @@ for (const post of page.items) {
|
|
|
55
55
|
|---|---|
|
|
56
56
|
| REST API | пользователи, посты, комментарии, файлы, уведомления, поиск, жалобы, верификация и подписка |
|
|
57
57
|
| Авторизация | access/refresh token, автоматическое обновление, OTP, хранение сессии и несколько аккаунтов |
|
|
58
|
-
|
|
|
58
|
+
| События | SSE и резервный опрос, промежуточные обработчики, типизированные фильтры и маршрутизация |
|
|
59
59
|
| Пагинация | разные серверные схемы через единый `for await` |
|
|
60
60
|
| Публикация | билдеры постов, комментариев, опросов, разметки текста и загрузки файлов |
|
|
61
|
-
| Надёжность | таймауты, отмена, очередь,
|
|
61
|
+
| Надёжность | таймауты, отмена, очередь, ограничения частоты, безопасные повторы, хуки и типизированные ошибки |
|
|
62
62
|
| Расширение | плагины, собственный `fetch`, сервисы и произвольные запросы |
|
|
63
63
|
| Платформа | версии приложений, changelog, анонсы, портал и состояние сервисов |
|
|
64
64
|
|
|
@@ -71,9 +71,9 @@ for (const post of page.items) {
|
|
|
71
71
|
|
|
72
72
|
| Пакет | Назначение | Среда | npm | Документация |
|
|
73
73
|
|---|---|---|---|---|
|
|
74
|
-
| `itd-api` |
|
|
74
|
+
| `itd-api` | полный SDK для итд.com | Node.js 18+, браузер, Bun, Deno, React Native | [npm](https://www.npmjs.com/package/itd-api) | [быстрый старт](https://kiowdev.github.io/itd-api/quickstart/) |
|
|
75
75
|
| `@itd-api/turnstile` | получение Turnstile-токена в локальном браузере | Node.js 18+, Bun, Deno + драйвер браузера | [npm](https://www.npmjs.com/package/@itd-api/turnstile) | [документация](https://kiowdev.github.io/itd-api/packages/turnstile) |
|
|
76
|
-
| `@itd-api/proxy` | HTTP
|
|
76
|
+
| `@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) |
|
|
77
77
|
| `@itd-api/cache` | TTL/LRU-кэш и дедупликация запросов | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/cache) | [документация](https://kiowdev.github.io/itd-api/packages/cache) |
|
|
78
78
|
| `@itd-api/hydrate` | методы действий на моделях API | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/hydrate) | [документация](https://kiowdev.github.io/itd-api/packages/hydrate) |
|
|
79
79
|
| `@itd-api/crypto` | скрытые сообщения в постах, комментариях и профилях | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/crypto) | [документация](https://kiowdev.github.io/itd-api/packages/crypto) |
|
|
@@ -88,7 +88,7 @@ for (const post of page.items) {
|
|
|
88
88
|
| [Конфигурация](https://kiowdev.github.io/itd-api/configuration/) | таймауты, повторы, очереди, сервисы, хуки и жизненный цикл |
|
|
89
89
|
| [Несколько аккаунтов](https://kiowdev.github.io/itd-api/multi-accounts/) | `ItdAccounts`, общее хранилище и отдельные сессии |
|
|
90
90
|
| [Разметка текста](https://kiowdev.github.io/itd-api/text-markup/) | spans, автоматическая разметка и отображение |
|
|
91
|
-
| [
|
|
91
|
+
| [События](https://kiowdev.github.io/itd-api/events/) | обновления, обработчики, фильтры, маршрутизация и переподключение |
|
|
92
92
|
| [Интеграции](https://kiowdev.github.io/itd-api/integrations/) | browser proxy и Turnstile |
|
|
93
93
|
| [Плагины](https://kiowdev.github.io/itd-api/plugins/) | cache, crypto и создание плагина |
|
|
94
94
|
| [Справочник API](https://kiowdev.github.io/itd-api/reference/) | ресурсы, методы, типы, ошибки и билдеры |
|
|
@@ -111,7 +111,7 @@ TypeScript 5.0+. Пакет проверяется в Node.js 18, 20, 22, 24 и
|
|
|
111
111
|
|
|
112
112
|
| Хост | Назначение | Автоматическая передача Bearer-токена |
|
|
113
113
|
|---|---|---|
|
|
114
|
-
| `https://xn--d1ah4a.com` (`итд.com`) | REST API, авторизация и
|
|
114
|
+
| `https://xn--d1ah4a.com` (`итд.com`) | REST API, авторизация и события | да, для защищённых REST-методов и событий |
|
|
115
115
|
| `https://xn--80a7abcbg.xn--d1ah4a.com` (`статус.итд.com`) | публичное состояние сервисов | нет |
|
|
116
116
|
|
|
117
117
|
Опциональный `@itd-api/turnstile` дополнительно загружает виджет с
|
|
@@ -123,8 +123,8 @@ TypeScript 5.0+. Пакет проверяется в Node.js 18, 20, 22, 24 и
|
|
|
123
123
|
|
|
124
124
|
| Настройка | Последствие |
|
|
125
125
|
|---|---|
|
|
126
|
-
| `baseUrl` | становится основным API-хостом; на него идут авторизация, сессия, защищённые запросы и
|
|
127
|
-
| `fetch` | получает URL, заголовки и
|
|
126
|
+
| `baseUrl` | становится основным API-хостом; на него идут авторизация, сессия, защищённые запросы и события |
|
|
127
|
+
| `fetch` | получает URL, заголовки и тело всех запросов клиента; передавайте только доверенную реализацию |
|
|
128
128
|
| `proxyFetch(...)` | направляет запросы через указанный вами proxy, которому будут доступны соединения с API |
|
|
129
129
|
| `defineService({ auth: true })` | явно разрешает отправлять Bearer-токен на хост этого сервиса |
|
|
130
130
|
| `request({ baseUrl })` | внешний хост не получает Bearer автоматически; `skipAuth: false` явно разрешает его передачу |
|
|
@@ -139,10 +139,10 @@ TypeScript 5.0+. Пакет проверяется в Node.js 18, 20, 22, 24 и
|
|
|
139
139
|
| CORS основного API | браузерному приложению нужен собственный серверный proxy; [подробнее](https://kiowdev.github.io/itd-api/integrations/#браузер-и-cors) |
|
|
140
140
|
| Подписчики, подписки и блокировки | сервер возвращает только первые 20 записей; [подробнее](https://kiowdev.github.io/itd-api/reference/users) |
|
|
141
141
|
| Посты пользователя | `posts.byUser()` возвращает стену, включая чужие публикации на ней; [подробнее](https://kiowdev.github.io/itd-api/reference/posts) |
|
|
142
|
-
|
|
|
142
|
+
| Ограничения частоты | маршруты разбиты на бакеты, у каждого свой лимит запросов в минуту, считается по IP; [таблица бакетов](https://kiowdev.github.io/itd-api/reference/rate-limits) |
|
|
143
143
|
|
|
144
|
-
Матрица известных маршрутов,
|
|
145
|
-
[справочнике
|
|
144
|
+
Матрица известных маршрутов, протоколов и статуса поддержки находится в
|
|
145
|
+
[справочнике методов API](https://kiowdev.github.io/itd-api/reference/endpoints).
|
|
146
146
|
|
|
147
147
|
## Проект
|
|
148
148
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_url = require("../shared/url-CFN1sT9S.cjs");
|
|
3
|
+
const require_errors = require("../shared/errors-BmP3TKoW.cjs");
|
|
4
|
+
const require_redact = require("../shared/redact-DB9EMGJx.cjs");
|
|
5
|
+
const require_events = require("../shared/events-iTteVsd_.cjs");
|
|
6
|
+
exports.DEFAULT_BASE_URL = require_url.DEFAULT_BASE_URL;
|
|
7
|
+
exports.EventChannel = require_events.EventChannel;
|
|
8
|
+
exports.EventChannelStatus = require_url.EventChannelStatus;
|
|
9
|
+
exports.EventComposer = require_events.EventComposer;
|
|
10
|
+
exports.EventRouter = require_events.EventRouter;
|
|
11
|
+
exports.ItdAbortError = require_errors.ItdAbortError;
|
|
12
|
+
exports.ItdApiError = require_errors.ItdApiError;
|
|
13
|
+
exports.ItdApiErrorKind = require_errors.ItdApiErrorKind;
|
|
14
|
+
exports.ItdAuthError = require_errors.ItdAuthError;
|
|
15
|
+
exports.ItdConfigError = require_errors.ItdConfigError;
|
|
16
|
+
exports.ItdError = require_errors.ItdError;
|
|
17
|
+
exports.ItdErrorKind = require_errors.ItdErrorKind;
|
|
18
|
+
exports.ItdForbiddenError = require_errors.ItdForbiddenError;
|
|
19
|
+
exports.ItdNetworkError = require_errors.ItdNetworkError;
|
|
20
|
+
exports.ItdNotFoundError = require_errors.ItdNotFoundError;
|
|
21
|
+
exports.ItdRateLimitError = require_errors.ItdRateLimitError;
|
|
22
|
+
exports.ItdServerError = require_errors.ItdServerError;
|
|
23
|
+
exports.ItdStateError = require_errors.ItdStateError;
|
|
24
|
+
exports.ItdTimeoutError = require_errors.ItdTimeoutError;
|
|
25
|
+
exports.ItdValidationError = require_errors.ItdValidationError;
|
|
26
|
+
exports.LIBRARY_VERSION = require_url.LIBRARY_VERSION;
|
|
27
|
+
exports.NotificationEvents = require_events.NotificationEvents;
|
|
28
|
+
exports.NotificationEventsClient = require_events.NotificationEventsClient;
|
|
29
|
+
exports.NotificationEventsTransport = require_events.NotificationEventsTransport;
|
|
30
|
+
exports.NotificationType = require_url.NotificationType;
|
|
31
|
+
exports.NotificationUpdateOrigin = require_events.NotificationUpdateOrigin;
|
|
32
|
+
exports.NotificationUpdateType = require_events.NotificationUpdateType;
|
|
33
|
+
exports.RuntimeMode = require_redact.RuntimeMode;
|
|
34
|
+
exports.UnauthorizedStreamError = require_events.UnauthorizedStreamError;
|
|
35
|
+
exports.WebSocketTransport = require_events.WebSocketTransport;
|
|
36
|
+
exports.anonymousAuth = require_url.anonymousAuth;
|
|
37
|
+
exports.bearerToken = require_url.bearerToken;
|
|
38
|
+
exports.canonicalNotificationType = require_url.canonicalNotificationType;
|
|
39
|
+
exports.createNotificationEventsClient = require_events.createNotificationEventsClient;
|
|
40
|
+
exports.formatNotificationText = require_url.formatNotificationText;
|
|
41
|
+
exports.isItdApiError = require_errors.isItdApiError;
|
|
42
|
+
exports.isItdAuthError = require_errors.isItdAuthError;
|
|
43
|
+
exports.isItdError = require_errors.isItdError;
|
|
44
|
+
exports.isItdRateLimitError = require_errors.isItdRateLimitError;
|
|
45
|
+
exports.isItdStateError = require_errors.isItdStateError;
|
|
46
|
+
exports.isItdValidationError = require_errors.isItdValidationError;
|
|
47
|
+
exports.isKnownNotificationType = require_url.isKnownNotificationType;
|
|
48
|
+
exports.normalizeNotification = require_url.normalizeNotification;
|
|
49
|
+
exports.resolveEventChannelOptions = require_events.resolveEventChannelOptions;
|
|
50
|
+
exports.resolveNotificationUrl = require_url.resolveNotificationUrl;
|
|
51
|
+
exports.runEventMiddleware = require_events.runEventMiddleware;
|
|
52
|
+
exports.systemClock = require_url.systemClock;
|
|
53
|
+
exports.tokenProvider = require_url.tokenProvider;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as isItdValidationError, B as ItdTimeoutError, Bt as ItdClock, E as ItdConfigError, F as ItdNotFoundError, G as isItdError, H as isItdApiError, L as ItdRateLimitError, N as ItdForbiddenError, O as ItdError, P as ItdNetworkError, Pt as RuntimeOptions, Q as isItdStateError, R as ItdServerError, S as ItdApiError, T as ItdAuthError, U as isItdAuthError, V as ItdValidationError, Vt as systemClock, X as isItdRateLimitError, a as NotificationEvent, at as tokenProvider, bt as Logger, c as NotificationSettings, ct as Unsubscribe, dt as LIBRARY_VERSION, et as ClientConnection, i as formatNotificationText, it as bearerToken, k as ItdErrorKind, lt as DEFAULT_BASE_URL, mn as NotificationType, n as canonicalNotificationType, nt as AuthProvider, o as normalizeNotification, pn as Loose, r as isKnownNotificationType, rt as anonymousAuth, s as Notification, sn as EventChannelStatus, st as Listener, t as resolveNotificationUrl, tt as AuthIdentity, vt as ClientHooks, w as ItdApiErrorKind, x as ItdAbortError, z as ItdStateError, zt as RuntimeMode } from "../shared/url-Be9jlWRv.cjs";
|
|
2
|
+
import { $ as EventTransport, A as ReconnectOptions, B as NotificationContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventPredicate, G as NotificationEventsUpdate, H as NotificationEventFilter, I as EventSequentializer, J as NotificationUpdateOfType, K as NotificationOfType, L as EventTypeGuard, M as EventMiddleware, N as EventMiddlewareObject, O as EventSyncReason, P as EventNext, Q as UnreadCountUpdate, R as runEventMiddleware, S as EventChannel, T as EventChannelOptions, U as NotificationEventOfType, V as NotificationEventContext, W as NotificationEventSelector, X as NotificationUpdateType, Y as NotificationUpdateOrigin, Z as UnknownNotificationUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportContext, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventHandler, k as resolveEventChannelOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, nt as UnauthorizedStreamError, o as EventComposer, p as EventRouteSelector, q as NotificationUpdate, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as EventTransportFrame, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as EventContext } from "../shared/events-Br2r7coi.cjs";
|
|
3
|
+
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, 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, 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, resolveEventChannelOptions, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { $ as isItdValidationError, B as ItdTimeoutError, Bt as ItdClock, E as ItdConfigError, F as ItdNotFoundError, G as isItdError, H as isItdApiError, L as ItdRateLimitError, N as ItdForbiddenError, O as ItdError, P as ItdNetworkError, Pt as RuntimeOptions, Q as isItdStateError, R as ItdServerError, S as ItdApiError, T as ItdAuthError, U as isItdAuthError, V as ItdValidationError, Vt as systemClock, X as isItdRateLimitError, a as NotificationEvent, at as tokenProvider, bt as Logger, c as NotificationSettings, ct as Unsubscribe, dt as LIBRARY_VERSION, et as ClientConnection, i as formatNotificationText, it as bearerToken, k as ItdErrorKind, lt as DEFAULT_BASE_URL, mn as NotificationType, n as canonicalNotificationType, nt as AuthProvider, o as normalizeNotification, pn as Loose, r as isKnownNotificationType, rt as anonymousAuth, s as Notification, sn as EventChannelStatus, st as Listener, t as resolveNotificationUrl, tt as AuthIdentity, vt as ClientHooks, w as ItdApiErrorKind, x as ItdAbortError, z as ItdStateError, zt as RuntimeMode } from "../shared/url-Be9jlWRv.js";
|
|
2
|
+
import { $ as EventTransport, A as ReconnectOptions, B as NotificationContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventPredicate, G as NotificationEventsUpdate, H as NotificationEventFilter, I as EventSequentializer, J as NotificationUpdateOfType, K as NotificationOfType, L as EventTypeGuard, M as EventMiddleware, N as EventMiddlewareObject, O as EventSyncReason, P as EventNext, Q as UnreadCountUpdate, R as runEventMiddleware, S as EventChannel, T as EventChannelOptions, U as NotificationEventOfType, V as NotificationEventContext, W as NotificationEventSelector, X as NotificationUpdateType, Y as NotificationUpdateOrigin, Z as UnknownNotificationUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportContext, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventHandler, k as resolveEventChannelOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, nt as UnauthorizedStreamError, o as EventComposer, p as EventRouteSelector, q as NotificationUpdate, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as EventTransportFrame, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as EventContext } from "../shared/events-QyhQZrnC.js";
|
|
3
|
+
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, 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, 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, resolveEventChannelOptions, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { $ as DEFAULT_BASE_URL, S as NotificationType, a as tokenProvider, c as normalizeNotification, ct as systemClock, d as canonicalNotificationType, f as isKnownNotificationType, g as EventChannelStatus, i as bearerToken, n as formatNotificationText, r as anonymousAuth, rt as LIBRARY_VERSION, t as resolveNotificationUrl } from "../shared/url-B3ocFlHj.js";
|
|
2
|
+
import { A as isItdStateError, C as isItdError, O as isItdRateLimitError, _ as ItdStateError, a as ItdConfigError, b as isItdApiError, c as ItdErrorKind, d as ItdForbiddenError, f as ItdNetworkError, g as ItdServerError, h as ItdRateLimitError, i as ItdAuthError, j as isItdValidationError, n as ItdApiError, p as ItdNotFoundError, r as ItdApiErrorKind, s as ItdError, t as ItdAbortError, v as ItdTimeoutError, x as isItdAuthError, y as ItdValidationError } from "../shared/errors-GI10kZxk.js";
|
|
3
|
+
import { _ as RuntimeMode } from "../shared/redact-FNK29Fv-.js";
|
|
4
|
+
import { a as WebSocketTransport, c as NotificationEventsTransport, d as NotificationUpdateOrigin, f as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, m as resolveEventChannelOptions, n as EventRouter, p as EventChannel, r as NotificationEventsClient, s as NotificationEvents, t as EventComposer } from "../shared/events-TfhKh26b.js";
|
|
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, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, RuntimeMode, UnauthorizedStreamError, WebSocketTransport, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveEventChannelOptions, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
|