itd-api 0.7.2 → 0.9.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 +72 -27
- 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 +234 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -64
- package/dist/index.d.ts +70 -64
- package/dist/index.js +202 -179
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +6 -5
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +2 -2
- package/dist/node/index.d.ts +2 -2
- package/dist/node/index.js +5 -4
- package/dist/node/index.js.map +1 -1
- package/dist/rest/index.cjs +32 -26
- package/dist/rest/index.cjs.map +1 -1
- package/dist/rest/index.d.cts +9 -7
- package/dist/rest/index.d.ts +9 -7
- package/dist/rest/index.js +19 -21
- 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/{websocket-BLR8eVJV.js → events-C5wnTXPT.js} +770 -490
- package/dist/shared/events-C5wnTXPT.js.map +1 -0
- package/dist/shared/events-CqtkP65d.d.ts +698 -0
- package/dist/shared/events-DGAWlCaI.d.cts +698 -0
- package/dist/shared/{websocket-C_eI4H2o.cjs → events-FZfnEez0.cjs} +834 -518
- package/dist/shared/events-FZfnEez0.cjs.map +1 -0
- package/dist/shared/{storage-BPJR_k4-.cjs → key-value-store-B5GYVEYZ.cjs} +2 -86
- package/dist/shared/key-value-store-B5GYVEYZ.cjs.map +1 -0
- package/dist/shared/{storage-D86edNCB.js → key-value-store-Bt2PSMxY.js} +3 -69
- package/dist/shared/key-value-store-Bt2PSMxY.js.map +1 -0
- package/dist/shared/key-value-store-COZaNHZS.d.cts +69 -0
- package/dist/shared/key-value-store-COZaNHZS.d.ts +69 -0
- package/dist/shared/{multi-storage-DccjD7Ww.d.ts → multi-storage-BEL7tcKn.d.cts} +3 -2
- package/dist/shared/{multi-storage--yTEqiod.cjs → multi-storage-CDKLa956.cjs} +11 -10
- package/dist/shared/{multi-storage--yTEqiod.cjs.map → multi-storage-CDKLa956.cjs.map} +1 -1
- package/dist/shared/{multi-storage-CjAPB5Kq.d.cts → multi-storage-LkljOSzA.d.ts} +3 -2
- package/dist/shared/{multi-storage-CkvTUC5m.js → multi-storage-SoW05uzO.js} +5 -4
- package/dist/shared/{multi-storage-CkvTUC5m.js.map → multi-storage-SoW05uzO.js.map} +1 -1
- package/dist/shared/{options-Dg5N3r1V.cjs → options-DOJYtoti.cjs} +8 -6
- package/dist/shared/options-DOJYtoti.cjs.map +1 -0
- package/dist/shared/{options-DtATYdLr.js → options-DhgGg7Ms.js} +8 -6
- package/dist/shared/options-DhgGg7Ms.js.map +1 -0
- package/dist/shared/{cookies-DZwFq6kr.cjs → redact-BP00URmQ.cjs} +312 -2
- package/dist/shared/redact-BP00URmQ.cjs.map +1 -0
- package/dist/shared/{cookies-tX2sNwxb.js → redact-Ba5iSVYZ.js} +235 -3
- package/dist/shared/redact-Ba5iSVYZ.js.map +1 -0
- package/dist/shared/{render-CgwKdOzu.d.ts → render-B4qis7Sb.d.ts} +775 -313
- package/dist/shared/{render-DO0F5YSm.d.cts → render-DDwy2Ame.d.cts} +775 -313
- package/dist/shared/{render-mcuELiYi.cjs → render-Dqi8Owqk.cjs} +1464 -662
- package/dist/shared/render-Dqi8Owqk.cjs.map +1 -0
- package/dist/shared/{render-C6HRPs10.js → render-hiWFh2s4.js} +1366 -618
- package/dist/shared/render-hiWFh2s4.js.map +1 -0
- package/dist/shared/storage-BQrtKon9.d.cts +86 -0
- package/dist/shared/storage-CTRGT5wF.d.ts +86 -0
- package/dist/shared/storage-CfHKzVHf.js +71 -0
- package/dist/shared/storage-CfHKzVHf.js.map +1 -0
- package/dist/shared/storage-QNVxzpDB.cjs +88 -0
- package/dist/shared/storage-QNVxzpDB.cjs.map +1 -0
- package/dist/shared/{url-BaMCQpYH.cjs → url-Bsb3xE5U.cjs} +577 -466
- package/dist/shared/url-Bsb3xE5U.cjs.map +1 -0
- package/dist/shared/{url-IU0xN9wX.js → url-DP33mp3s.js} +508 -409
- package/dist/shared/url-DP33mp3s.js.map +1 -0
- package/dist/shared/{url-DTfZ2toq.d.ts → url-XBsMdAcv.d.cts} +1313 -1200
- package/dist/shared/{url-DTfZ2toq.d.cts → url-XBsMdAcv.d.ts} +1313 -1200
- package/dist/web/index.cjs +5 -4
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +1 -1
- package/dist/web/index.d.ts +1 -1
- package/dist/web/index.js +3 -2
- package/dist/web/index.js.map +1 -1
- 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/storage-BPJR_k4-.cjs.map +0 -1
- package/dist/shared/storage-C_eICCep.d.cts +0 -152
- package/dist/shared/storage-C_eICCep.d.ts +0 -152
- package/dist/shared/storage-D86edNCB.js.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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</picture>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
#
|
|
9
|
+
# SDK для работы с API ITD
|
|
10
10
|
|
|
11
11
|
[](https://www.npmjs.com/package/itd-api)
|
|
12
12
|
[](https://www.npmjs.com/package/itd-api)
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
[](https://www.npmjs.com/package/itd-api)
|
|
15
15
|
[](./tsconfig.json)
|
|
16
16
|
[](./LICENSE)
|
|
17
|
-
[](https://deepwiki.com/KiowDev/itd-api)
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
JavaScript/TypeScript SDK для социальной сети **итд.com**: авторизация, работа с
|
|
19
|
+
пользователями и публикациями, события, пагинация и расширения через плагины.
|
|
20
|
+
Проект не является официальным и не аффилирован с итд.com.
|
|
21
21
|
|
|
22
22
|
[Документация](https://kiowdev.github.io/itd-api/) ·
|
|
23
23
|
[Быстрый старт](https://kiowdev.github.io/itd-api/quickstart/) ·
|
|
@@ -27,38 +27,68 @@
|
|
|
27
27
|
[Сеть и доверие](#сеть-и-доверие) ·
|
|
28
28
|
[Пакеты проекта](#пакеты-проекта)
|
|
29
29
|
|
|
30
|
+
## Требования
|
|
31
|
+
|
|
32
|
+
Для Node.js требуется версия 18+. Поддерживаются JavaScript, TypeScript 5.0+,
|
|
33
|
+
ESM и CommonJS; остальные среды перечислены в разделе [«Совместимость»](#совместимость).
|
|
34
|
+
|
|
30
35
|
## Установка
|
|
31
36
|
|
|
32
37
|
```bash
|
|
33
38
|
npm install itd-api
|
|
34
39
|
```
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
## Быстрый старт
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
Получите access token по [руководству по авторизации](https://kiowdev.github.io/itd-api/authentication/)
|
|
44
|
+
и сохраните его в переменной окружения `ITD_ACCESS_TOKEN`.
|
|
45
|
+
|
|
46
|
+
> [!WARNING]
|
|
47
|
+
> Не храните access token в исходном коде и не публикуйте его в репозитории.
|
|
40
48
|
|
|
41
|
-
|
|
42
|
-
const page = await itd.posts.byUser('nowkie', { limit: 10 });
|
|
49
|
+
Создайте файл `index.js` и запросите посты со стены пользователя:
|
|
43
50
|
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
```js
|
|
52
|
+
const { ItdClient } = require('itd-api');
|
|
53
|
+
|
|
54
|
+
async function main() {
|
|
55
|
+
const accessToken = process.env.ITD_ACCESS_TOKEN;
|
|
56
|
+
if (!accessToken) {
|
|
57
|
+
throw new Error('Переменная окружения ITD_ACCESS_TOKEN не задана');
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const itd = new ItdClient({ auth: accessToken });
|
|
61
|
+
const page = await itd.posts.byUser('nowkie', { limit: 10 });
|
|
62
|
+
|
|
63
|
+
for (const post of page.items) {
|
|
64
|
+
console.log(post.author.username, post.content);
|
|
65
|
+
}
|
|
46
66
|
}
|
|
67
|
+
|
|
68
|
+
main().catch(console.error);
|
|
47
69
|
```
|
|
48
70
|
|
|
49
|
-
|
|
50
|
-
|
|
71
|
+
Запустите его командой `node index.js`.
|
|
72
|
+
|
|
73
|
+
В TypeScript или JavaScript с ES modules используйте ESM-импорт:
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
import { ItdClient } from 'itd-api';
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Для долгоживущего приложения восстановите сохранённую сессию или настройте вход
|
|
80
|
+
по руководству по авторизации.
|
|
51
81
|
|
|
52
82
|
## Возможности
|
|
53
83
|
|
|
54
84
|
| Область | Что поддерживается |
|
|
55
85
|
|---|---|
|
|
56
|
-
| REST API | пользователи, посты, комментарии, файлы, уведомления, поиск, жалобы,
|
|
86
|
+
| REST API | пользователи, посты, комментарии, файлы, уведомления, поиск, жалобы, верификация, подписка и магазин |
|
|
57
87
|
| Авторизация | access/refresh token, автоматическое обновление, OTP, хранение сессии и несколько аккаунтов |
|
|
58
|
-
|
|
|
88
|
+
| События | SSE и резервный опрос, промежуточные обработчики, типизированные фильтры и маршрутизация |
|
|
59
89
|
| Пагинация | разные серверные схемы через единый `for await` |
|
|
60
90
|
| Публикация | билдеры постов, комментариев, опросов, разметки текста и загрузки файлов |
|
|
61
|
-
| Надёжность | таймауты, отмена, очередь,
|
|
91
|
+
| Надёжность | таймауты, отмена, очередь, ограничения частоты, безопасные повторы, хуки и типизированные ошибки |
|
|
62
92
|
| Расширение | плагины, собственный `fetch`, сервисы и произвольные запросы |
|
|
63
93
|
| Платформа | версии приложений, changelog, анонсы, портал и состояние сервисов |
|
|
64
94
|
|
|
@@ -71,9 +101,9 @@ for (const post of page.items) {
|
|
|
71
101
|
|
|
72
102
|
| Пакет | Назначение | Среда | npm | Документация |
|
|
73
103
|
|---|---|---|---|---|
|
|
74
|
-
| `itd-api` |
|
|
104
|
+
| `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
105
|
| `@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
|
|
106
|
+
| `@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
107
|
| `@itd-api/cache` | TTL/LRU-кэш и дедупликация запросов | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/cache) | [документация](https://kiowdev.github.io/itd-api/packages/cache) |
|
|
78
108
|
| `@itd-api/hydrate` | методы действий на моделях API | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/hydrate) | [документация](https://kiowdev.github.io/itd-api/packages/hydrate) |
|
|
79
109
|
| `@itd-api/crypto` | скрытые сообщения в постах, комментариях и профилях | среды основного клиента | [npm](https://www.npmjs.com/package/@itd-api/crypto) | [документация](https://kiowdev.github.io/itd-api/packages/crypto) |
|
|
@@ -88,7 +118,7 @@ for (const post of page.items) {
|
|
|
88
118
|
| [Конфигурация](https://kiowdev.github.io/itd-api/configuration/) | таймауты, повторы, очереди, сервисы, хуки и жизненный цикл |
|
|
89
119
|
| [Несколько аккаунтов](https://kiowdev.github.io/itd-api/multi-accounts/) | `ItdAccounts`, общее хранилище и отдельные сессии |
|
|
90
120
|
| [Разметка текста](https://kiowdev.github.io/itd-api/text-markup/) | spans, автоматическая разметка и отображение |
|
|
91
|
-
| [
|
|
121
|
+
| [События](https://kiowdev.github.io/itd-api/events/) | обновления, обработчики, фильтры, маршрутизация и переподключение |
|
|
92
122
|
| [Интеграции](https://kiowdev.github.io/itd-api/integrations/) | browser proxy и Turnstile |
|
|
93
123
|
| [Плагины](https://kiowdev.github.io/itd-api/plugins/) | cache, crypto и создание плагина |
|
|
94
124
|
| [Справочник API](https://kiowdev.github.io/itd-api/reference/) | ресурсы, методы, типы, ошибки и билдеры |
|
|
@@ -107,11 +137,17 @@ TypeScript 5.0+. Пакет проверяется в Node.js 18, 20, 22, 24 и
|
|
|
107
137
|
|
|
108
138
|
## Сеть и доверие
|
|
109
139
|
|
|
110
|
-
По умолчанию
|
|
140
|
+
По умолчанию SDK соединяется только с API итд.com и публичным сервисом статуса.
|
|
141
|
+
Bearer-токен автоматически передаётся только основному API.
|
|
142
|
+
|
|
143
|
+
<details>
|
|
144
|
+
<summary>Подробности о сетевых подключениях и передаче токена</summary>
|
|
145
|
+
|
|
146
|
+
Основной пакет обращается к двум хостам:
|
|
111
147
|
|
|
112
148
|
| Хост | Назначение | Автоматическая передача Bearer-токена |
|
|
113
149
|
|---|---|---|
|
|
114
|
-
| `https://xn--d1ah4a.com` (`итд.com`) | REST API, авторизация и
|
|
150
|
+
| `https://xn--d1ah4a.com` (`итд.com`) | REST API, авторизация и события | да, для защищённых REST-методов и событий |
|
|
115
151
|
| `https://xn--80a7abcbg.xn--d1ah4a.com` (`статус.итд.com`) | публичное состояние сервисов | нет |
|
|
116
152
|
|
|
117
153
|
Опциональный `@itd-api/turnstile` дополнительно загружает виджет с
|
|
@@ -123,30 +159,39 @@ TypeScript 5.0+. Пакет проверяется в Node.js 18, 20, 22, 24 и
|
|
|
123
159
|
|
|
124
160
|
| Настройка | Последствие |
|
|
125
161
|
|---|---|
|
|
126
|
-
| `baseUrl` | становится основным API-хостом; на него идут авторизация, сессия, защищённые запросы и
|
|
127
|
-
| `fetch` | получает URL, заголовки и
|
|
162
|
+
| `baseUrl` | становится основным API-хостом; на него идут авторизация, сессия, защищённые запросы и события |
|
|
163
|
+
| `fetch` | получает URL, заголовки и тело всех запросов клиента; передавайте только доверенную реализацию |
|
|
128
164
|
| `proxyFetch(...)` | направляет запросы через указанный вами proxy, которому будут доступны соединения с API |
|
|
129
165
|
| `defineService({ auth: true })` | явно разрешает отправлять Bearer-токен на хост этого сервиса |
|
|
130
166
|
| `request({ baseUrl })` | внешний хост не получает Bearer автоматически; `skipAuth: false` явно разрешает его передачу |
|
|
131
167
|
|
|
168
|
+
</details>
|
|
169
|
+
|
|
132
170
|
Уязвимости следует отправлять приватно по
|
|
133
171
|
[политике безопасности](./.github/SECURITY.md).
|
|
134
172
|
|
|
135
173
|
## Известные ограничения платформы
|
|
136
174
|
|
|
175
|
+
Ограничения зависят от маршрута и среды выполнения. Полная матрица известных
|
|
176
|
+
маршрутов, протоколов и статуса поддержки находится в
|
|
177
|
+
[справочнике методов API](https://kiowdev.github.io/itd-api/reference/endpoints).
|
|
178
|
+
|
|
179
|
+
<details>
|
|
180
|
+
<summary>Показать известные ограничения</summary>
|
|
181
|
+
|
|
137
182
|
| Ограничение | Что учитывать |
|
|
138
183
|
|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
139
184
|
| CORS основного API | браузерному приложению нужен собственный серверный proxy; [подробнее](https://kiowdev.github.io/itd-api/integrations/#браузер-и-cors) |
|
|
140
185
|
| Подписчики, подписки и блокировки | сервер возвращает только первые 20 записей; [подробнее](https://kiowdev.github.io/itd-api/reference/users) |
|
|
141
186
|
| Посты пользователя | `posts.byUser()` возвращает стену, включая чужие публикации на ней; [подробнее](https://kiowdev.github.io/itd-api/reference/posts) |
|
|
142
|
-
|
|
|
187
|
+
| Ограничения частоты | маршруты разбиты на бакеты, у каждого свой лимит запросов в минуту, считается по IP; [таблица бакетов](https://kiowdev.github.io/itd-api/reference/rate-limits) |
|
|
143
188
|
|
|
144
|
-
|
|
145
|
-
[справочнике endpoint](https://kiowdev.github.io/itd-api/reference/endpoints).
|
|
189
|
+
</details>
|
|
146
190
|
|
|
147
191
|
## Проект
|
|
148
192
|
|
|
149
|
-
|
|
193
|
+
[](https://deepwiki.com/KiowDev/itd-api)
|
|
194
|
+
|
|
150
195
|
- [CI](https://github.com/KiowDev/itd-api/actions/workflows/ci.yml)
|
|
151
196
|
- [История релизов](https://github.com/KiowDev/itd-api/releases)
|
|
152
197
|
- [Как внести вклад](./.github/CONTRIBUTING.md)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_url = require("../shared/url-Bsb3xE5U.cjs");
|
|
3
|
+
const require_errors = require("../shared/errors-BmP3TKoW.cjs");
|
|
4
|
+
const require_redact = require("../shared/redact-BP00URmQ.cjs");
|
|
5
|
+
const require_events = require("../shared/events-FZfnEez0.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-XBsMdAcv.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-DGAWlCaI.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-XBsMdAcv.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-CqtkP65d.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 { S as NotificationType, a as tokenProvider, c as normalizeNotification, d as canonicalNotificationType, et as DEFAULT_BASE_URL, f as isKnownNotificationType, g as EventChannelStatus, i as bearerToken, it as LIBRARY_VERSION, lt as systemClock, n as formatNotificationText, r as anonymousAuth, t as resolveNotificationUrl } from "../shared/url-DP33mp3s.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-Ba5iSVYZ.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-C5wnTXPT.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 };
|