itd-api 0.0.11 → 0.1.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 +8 -4
- package/dist/{chunk-TB7HW3VX.js → chunk-6FB4HTKH.js} +660 -174
- package/dist/chunk-6FB4HTKH.js.map +1 -0
- package/dist/{chunk-QD4UHJFF.cjs → chunk-73CISRBG.cjs} +660 -174
- package/dist/chunk-73CISRBG.cjs.map +1 -0
- package/dist/{index-CrlTO7sR.d.cts → index-BZF4K90s.d.cts} +125 -22
- package/dist/{index-CrlTO7sR.d.ts → index-BZF4K90s.d.ts} +125 -22
- package/dist/index.cjs +109 -109
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/node.cjs +112 -112
- package/dist/node.d.cts +2 -2
- package/dist/node.d.ts +2 -2
- package/dist/node.js +2 -2
- package/guides/README.md +2 -0
- package/guides/multi-accounts/README.md +2 -1
- package/guides/plugins/README.md +93 -2
- package/guides/reference/README.md +67 -0
- package/guides/reference/accounts.md +101 -0
- package/guides/reference/auth.md +141 -0
- package/guides/reference/builders.md +135 -0
- package/guides/reference/client.md +184 -0
- package/guides/reference/comments.md +58 -0
- package/guides/reference/discovery.md +81 -0
- package/guides/reference/enums.md +103 -0
- package/guides/reference/errors.md +107 -0
- package/guides/reference/files.md +73 -0
- package/guides/reference/models.md +448 -0
- package/guides/reference/notifications.md +77 -0
- package/guides/reference/pagination.md +82 -0
- package/guides/reference/platform.md +47 -0
- package/guides/reference/posts.md +157 -0
- package/guides/reference/realtime.md +78 -0
- package/guides/reference/reports.md +28 -0
- package/guides/reference/subscription.md +41 -0
- package/guides/reference/users.md +146 -0
- package/guides/reference/verification.md +24 -0
- package/package.json +1 -1
- package/dist/chunk-QD4UHJFF.cjs.map +0 -1
- package/dist/chunk-TB7HW3VX.js.map +0 -1
|
@@ -1398,7 +1398,7 @@ interface RawRequestOptions extends RequestOptions {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
1400
|
/** Версия библиотеки. Попадает в `User-Agent`. */
|
|
1401
|
-
declare const LIBRARY_VERSION = "0.0
|
|
1401
|
+
declare const LIBRARY_VERSION = "0.1.0";
|
|
1402
1402
|
|
|
1403
1403
|
/** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
|
|
1404
1404
|
declare const DEFAULT_BASE_URL = "https://xn--d1ah4a.com";
|
|
@@ -1421,7 +1421,7 @@ declare const DEFAULT_TIMEOUT = 30000;
|
|
|
1421
1421
|
* В браузере заголовок не выставляется — `User-Agent` там запрещён к изменению, и среда
|
|
1422
1422
|
* молча его игнорирует.
|
|
1423
1423
|
*/
|
|
1424
|
-
declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0
|
|
1424
|
+
declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.1.0; +https://github.com/KiowDev/itd-api)";
|
|
1425
1425
|
/** Настройки очереди со всеми значениями по умолчанию. */
|
|
1426
1426
|
interface ResolvedRateLimitOptions {
|
|
1427
1427
|
concurrency: number;
|
|
@@ -1753,6 +1753,8 @@ declare class AuthManager {
|
|
|
1753
1753
|
* ```
|
|
1754
1754
|
*/
|
|
1755
1755
|
type Transformer = (request: RawRequestOptions, next: (request: RawRequestOptions) => Promise<unknown>) => Promise<unknown>;
|
|
1756
|
+
/** Освобождение ресурсов, заведённых плагином при установке. */
|
|
1757
|
+
type PluginTeardown = () => void | Promise<void>;
|
|
1756
1758
|
/** Что плагин получает при подключении. */
|
|
1757
1759
|
interface PluginContext {
|
|
1758
1760
|
/** Базовый URL клиента — например чтобы разобрать абсолютные ссылки из ответа. */
|
|
@@ -1775,6 +1777,13 @@ interface PluginContext {
|
|
|
1775
1777
|
getAuthIdentity?: (() => Promise<AuthIdentity>) | undefined;
|
|
1776
1778
|
/** Добавляет обёртку запроса. Подключённые раньше оказываются снаружи. */
|
|
1777
1779
|
use(transformer: Transformer): void;
|
|
1780
|
+
/**
|
|
1781
|
+
* Добавляет перехватчики отдельных сетевых попыток.
|
|
1782
|
+
*
|
|
1783
|
+
* В отличие от {@link use}, они видят каждый retry и сырой `Response` до чтения тела.
|
|
1784
|
+
* Несколько наборов хуков одного плагина вызываются в порядке регистрации.
|
|
1785
|
+
*/
|
|
1786
|
+
useHooks(hooks: ClientHooks): void;
|
|
1778
1787
|
}
|
|
1779
1788
|
/**
|
|
1780
1789
|
* Плагин клиента.
|
|
@@ -1819,8 +1828,21 @@ interface ItdPlugin {
|
|
|
1819
1828
|
* ```
|
|
1820
1829
|
*/
|
|
1821
1830
|
optionKeys?: readonly string[];
|
|
1822
|
-
/**
|
|
1823
|
-
|
|
1831
|
+
/** Плагины, которые обязаны быть подключены раньше этого. */
|
|
1832
|
+
requires?: readonly string[];
|
|
1833
|
+
/** Несовместимые плагины. Достаточно объявить конфликт с одной стороны. */
|
|
1834
|
+
conflicts?: readonly string[];
|
|
1835
|
+
/** Имена плагинов, снаружи которых должна стоять эта обёртка. */
|
|
1836
|
+
before?: readonly string[];
|
|
1837
|
+
/** Имена плагинов, внутри которых должна стоять эта обёртка. */
|
|
1838
|
+
after?: readonly string[];
|
|
1839
|
+
/**
|
|
1840
|
+
* Устанавливает плагин.
|
|
1841
|
+
*
|
|
1842
|
+
* Может вернуть функцию освобождения ресурсов. Она вызывается при `unuse()` или
|
|
1843
|
+
* окончательном `dispose()` клиента и может быть асинхронной.
|
|
1844
|
+
*/
|
|
1845
|
+
install(context: PluginContext): unknown;
|
|
1824
1846
|
}
|
|
1825
1847
|
/**
|
|
1826
1848
|
* Список подключённых плагинов и собранная из них цепочка обёрток.
|
|
@@ -1830,22 +1852,52 @@ interface ItdPlugin {
|
|
|
1830
1852
|
*/
|
|
1831
1853
|
declare class PluginRegistry {
|
|
1832
1854
|
#private;
|
|
1833
|
-
/** Сколько
|
|
1855
|
+
/** Сколько плагинов подключено. */
|
|
1834
1856
|
get size(): number;
|
|
1835
|
-
/** Имена опций
|
|
1857
|
+
/** Имена опций активных плагинов. */
|
|
1836
1858
|
get optionKeys(): ReadonlySet<string>;
|
|
1859
|
+
/** Имена плагинов в фактическом порядке выполнения. */
|
|
1860
|
+
names(): string[];
|
|
1861
|
+
/** Подключён ли плагин с таким именем. */
|
|
1862
|
+
has(name: string): boolean;
|
|
1863
|
+
/** Проверяет добавление без вызова `install()`. @internal */
|
|
1864
|
+
assertCanAdd(plugin: ItdPlugin): void;
|
|
1865
|
+
/** Проверяет удаление без изменения реестра. @internal */
|
|
1866
|
+
assertCanRemove(name: string): void;
|
|
1837
1867
|
/**
|
|
1838
1868
|
* Подключает плагин.
|
|
1839
1869
|
*
|
|
1840
|
-
* @throws {ItdConfigError} если плагин задан неверно, уже
|
|
1841
|
-
* имя опции
|
|
1870
|
+
* @throws {ItdConfigError} если плагин задан неверно, уже подключён, нарушает зависимости
|
|
1871
|
+
* или заявил занятое имя опции
|
|
1842
1872
|
*/
|
|
1843
|
-
add(plugin: ItdPlugin, context: Omit<PluginContext, 'use'>): void;
|
|
1873
|
+
add(plugin: ItdPlugin, context: Omit<PluginContext, 'use' | 'useHooks'>): void;
|
|
1874
|
+
/**
|
|
1875
|
+
* Отключает плагин и вызывает его функцию очистки.
|
|
1876
|
+
*
|
|
1877
|
+
* Новые запросы перестают видеть плагин сразу. Если его обёртка уже выполняется,
|
|
1878
|
+
* очистка дождётся завершения этого логического запроса.
|
|
1879
|
+
*
|
|
1880
|
+
* @returns `false`, если такого плагина не было
|
|
1881
|
+
*/
|
|
1882
|
+
remove(name: string): Promise<boolean>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Отключает все плагины окончательно.
|
|
1885
|
+
*
|
|
1886
|
+
* Очистка идёт изнутри наружу — в порядке, обратном выполнению обёрток.
|
|
1887
|
+
*/
|
|
1888
|
+
dispose(): Promise<void>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Объединяет конструкторские хуки с хуками подключаемых плагинов.
|
|
1891
|
+
*
|
|
1892
|
+
* Возвращённый объект динамический: подключение и отключение плагина начинает действовать
|
|
1893
|
+
* со следующего логического запроса без пересоздания транспорта.
|
|
1894
|
+
*/
|
|
1895
|
+
hooks(base: ClientHooks): ClientHooks;
|
|
1844
1896
|
/**
|
|
1845
1897
|
* Прогоняет запрос через цепочку обёрток.
|
|
1846
1898
|
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1899
|
+
* Снимок цепочки берётся в начале: `unuse()` влияет на новые запросы, но не обрывает
|
|
1900
|
+
* уже выполняющийся посередине.
|
|
1849
1901
|
*
|
|
1850
1902
|
* @param execute настоящий запрос, вызывается самой внутренней обёрткой
|
|
1851
1903
|
*/
|
|
@@ -2105,6 +2157,12 @@ interface RealtimeOptions extends ReconnectOptions {
|
|
|
2105
2157
|
* может незаметно «зависнуть».
|
|
2106
2158
|
*/
|
|
2107
2159
|
idleTimeout?: number;
|
|
2160
|
+
/**
|
|
2161
|
+
* Сколько ждать ответа на запрос потока, прежде чем оборвать попытку, мс. По умолчанию
|
|
2162
|
+
* 20 000. Защищает от зависания на установке соединения, когда {@link idleTimeout} ещё
|
|
2163
|
+
* не действует. `0` отключает проверку. Только для потокового транспорта.
|
|
2164
|
+
*/
|
|
2165
|
+
handshakeTimeout?: number;
|
|
2108
2166
|
/** Как часто опрашивать сервер, если используется запасной транспорт. */
|
|
2109
2167
|
pollInterval?: number;
|
|
2110
2168
|
/**
|
|
@@ -3699,8 +3757,7 @@ interface InteractionEntry {
|
|
|
3699
3757
|
/**
|
|
3700
3758
|
* Телеметрия просмотров.
|
|
3701
3759
|
*
|
|
3702
|
-
* @experimental
|
|
3703
|
-
* (взаимодействия); формат полей может измениться без предупреждения.
|
|
3760
|
+
* @experimental
|
|
3704
3761
|
*
|
|
3705
3762
|
* Методы не вызываются автоматически — телеметрия отправляется только явным вызовом.
|
|
3706
3763
|
*
|
|
@@ -3957,11 +4014,7 @@ declare class ItdClient {
|
|
|
3957
4014
|
readonly subscription: SubscriptionResource;
|
|
3958
4015
|
/** Сведения о платформе: изменения, анонсы, баннер события. */
|
|
3959
4016
|
readonly platform: PlatformResource;
|
|
3960
|
-
/**
|
|
3961
|
-
* Телеметрия просмотров.
|
|
3962
|
-
*
|
|
3963
|
-
* @experimental Недокументированные эндпоинты. Библиотека никогда не отправляет их сама.
|
|
3964
|
-
*/
|
|
4017
|
+
/** Телеметрия просмотров. */
|
|
3965
4018
|
readonly telemetry: TelemetryResource;
|
|
3966
4019
|
constructor(options?: ItdClientOptions, internals?: ItdClientInternals);
|
|
3967
4020
|
/** Базовый URL, к которому обращается клиент. */
|
|
@@ -3996,6 +4049,20 @@ declare class ItdClient {
|
|
|
3996
4049
|
* ```
|
|
3997
4050
|
*/
|
|
3998
4051
|
use(plugin: ItdPlugin): this;
|
|
4052
|
+
/** Имена подключённых плагинов в фактическом порядке выполнения обёрток. */
|
|
4053
|
+
pluginNames(): string[];
|
|
4054
|
+
/** Подключён ли плагин с таким именем. */
|
|
4055
|
+
hasPlugin(name: string): boolean;
|
|
4056
|
+
/**
|
|
4057
|
+
* Отключает плагин и освобождает заведённые им ресурсы.
|
|
4058
|
+
*
|
|
4059
|
+
* Новые запросы перестают видеть плагин сразу. Очистка дождётся логического запроса,
|
|
4060
|
+
* который уже проходил через его обёртку.
|
|
4061
|
+
*
|
|
4062
|
+
* @returns `false`, если такого плагина не было
|
|
4063
|
+
* @throws {ItdConfigError} если от плагина зависит другой подключённый плагин
|
|
4064
|
+
*/
|
|
4065
|
+
unuse(name: string): Promise<boolean>;
|
|
3999
4066
|
/**
|
|
4000
4067
|
* Регистрирует сервис платформы — домен, отличный от основного.
|
|
4001
4068
|
*
|
|
@@ -4075,10 +4142,18 @@ declare class ItdClient {
|
|
|
4075
4142
|
* ```ts
|
|
4076
4143
|
* await using itd = new ItdClient({ auth: token });
|
|
4077
4144
|
* // …работа…
|
|
4078
|
-
* //
|
|
4145
|
+
* // dispose() вызовется сам на выходе из блока
|
|
4079
4146
|
* ```
|
|
4080
4147
|
*/
|
|
4081
4148
|
close(): Promise<void>;
|
|
4149
|
+
/**
|
|
4150
|
+
* Окончательно освобождает клиент: выполняет {@link close} и отключает все плагины.
|
|
4151
|
+
*
|
|
4152
|
+
* В отличие от `close()`, после `dispose()` плагины не восстанавливаются автоматически.
|
|
4153
|
+
* Сам клиент остаётся пригоден для обычных запросов; при необходимости плагины можно
|
|
4154
|
+
* подключить заново через {@link use}.
|
|
4155
|
+
*/
|
|
4156
|
+
dispose(): Promise<void>;
|
|
4082
4157
|
/** Позволяет использовать клиент с `await using`. */
|
|
4083
4158
|
[Symbol.asyncDispose](): Promise<void>;
|
|
4084
4159
|
/** Текущая сессия целиком — чтобы сохранить её самостоятельно. */
|
|
@@ -4399,6 +4474,17 @@ declare class ItdAccounts {
|
|
|
4399
4474
|
* ```
|
|
4400
4475
|
*/
|
|
4401
4476
|
use(plugin: ItdPlugin): this;
|
|
4477
|
+
/** Имена общих плагинов в фактическом порядке выполнения обёрток. */
|
|
4478
|
+
pluginNames(): string[];
|
|
4479
|
+
/** Подключён ли общий плагин с таким именем. */
|
|
4480
|
+
hasPlugin(name: string): boolean;
|
|
4481
|
+
/**
|
|
4482
|
+
* Отключает общий плагин у существующих клиентов и не применяет его к будущим.
|
|
4483
|
+
*
|
|
4484
|
+
* @returns `false`, если такого плагина не было
|
|
4485
|
+
* @throws {ItdConfigError} если от плагина зависит другой общий плагин
|
|
4486
|
+
*/
|
|
4487
|
+
unuse(name: string): Promise<boolean>;
|
|
4402
4488
|
/**
|
|
4403
4489
|
* Подписывается на события авторизации всех аккаунтов сразу.
|
|
4404
4490
|
*
|
|
@@ -4432,10 +4518,17 @@ declare class ItdAccounts {
|
|
|
4432
4518
|
* ```ts
|
|
4433
4519
|
* await using accounts = new ItdAccounts({ storage });
|
|
4434
4520
|
* // …работа…
|
|
4435
|
-
* //
|
|
4521
|
+
* // dispose() вызовется сам на выходе из блока
|
|
4436
4522
|
* ```
|
|
4437
4523
|
*/
|
|
4438
4524
|
close(): Promise<void>;
|
|
4525
|
+
/**
|
|
4526
|
+
* Окончательно освобождает контейнер и отключает общие плагины у всех аккаунтов.
|
|
4527
|
+
*
|
|
4528
|
+
* Для временной остановки потоков и очереди без отключения плагинов используйте
|
|
4529
|
+
* {@link close}.
|
|
4530
|
+
*/
|
|
4531
|
+
dispose(): Promise<void>;
|
|
4439
4532
|
/** Позволяет использовать контейнер с `await using`. */
|
|
4440
4533
|
[Symbol.asyncDispose](): Promise<void>;
|
|
4441
4534
|
}
|
|
@@ -4688,7 +4781,9 @@ declare class ItdTimeoutError extends ItdError {
|
|
|
4688
4781
|
}
|
|
4689
4782
|
/** Запрос отменён через переданный `AbortSignal`. */
|
|
4690
4783
|
declare class ItdAbortError extends ItdError {
|
|
4691
|
-
constructor(message?: string
|
|
4784
|
+
constructor(message?: string, options?: {
|
|
4785
|
+
cause?: unknown;
|
|
4786
|
+
});
|
|
4692
4787
|
}
|
|
4693
4788
|
/**
|
|
4694
4789
|
* Некорректная конфигурация или аргументы — обнаружено до обращения к сети.
|
|
@@ -4828,6 +4923,14 @@ interface SseTransportOptions {
|
|
|
4828
4923
|
* По умолчанию 90 000. `0` отключает проверку.
|
|
4829
4924
|
*/
|
|
4830
4925
|
idleTimeout?: number;
|
|
4926
|
+
/**
|
|
4927
|
+
* Сколько миллисекунд ждать ответа на запрос потока, прежде чем оборвать попытку.
|
|
4928
|
+
*
|
|
4929
|
+
* Проверка молчания ({@link idleTimeout}) начинается только после получения тела ответа.
|
|
4930
|
+
* Если `fetch` завис на установке соединения, без этого таймаута переподключение не
|
|
4931
|
+
* запустится до системного сетевого таймаута. По умолчанию 20 000. `0` отключает проверку.
|
|
4932
|
+
*/
|
|
4933
|
+
handshakeTimeout?: number;
|
|
4831
4934
|
}
|
|
4832
4935
|
|
|
4833
4936
|
/** Формат результата {@link renderSpans}. */
|
|
@@ -4855,4 +4958,4 @@ interface RenderSpansOptions {
|
|
|
4855
4958
|
*/
|
|
4856
4959
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
4857
4960
|
|
|
4858
|
-
export { DEVICE_ID_HEADER as $, ALLOWED_MIME_TYPES as A, BUILT_IN_SERVICES as B, type CaptchaCredentials as C, type Clan as D, type ClientHooks as E, type FileReader as F, type Comment as G, CommentBuilder as H, type ItdSession as I, type CommentInput as J, type CommentReplyTo as K, CommentSort as L, type MultiTokenStorage as M, type CommentsParams as N, CommentsResource as O, type CreateCommentInput as P, type CreatePollInput as Q, type CreatePostInput as R, type CreateReportInput as S, type TokenStorage as T, type Credentials as U, type CredentialsAuth as V, DEFAULT_BASE_URL as W, DEFAULT_STATUS_BASE_URL as X, DEFAULT_TIMEOUT as Y, DEFAULT_UPLOAD_TIMEOUT as Z, DEFAULT_USER_AGENT as _, ItdAccounts as a, type Page as a$, DetectedRuntime as a0, type DwellEntry as a1, type ErrorContextHook as a2, type FeedParams as a3, FeedTab as a4, type FileInput as a5, FilesResource as a6, type FollowResult as a7, type ForgotPasswordInput as a8, type Hashtag as a9, ItdRealtime as aA, ItdServerError as aB, ItdTimeoutError as aC, ItdValidationError as aD, LIBRARY_VERSION as aE, type LikeResult as aF, LikesVisibility as aG, type Listener as aH, LocalStorageTokenStorage as aI, type Logger as aJ, type Loose as aK, MAX_RECONNECT_ATTEMPTS as aL, MarkupBuilder as aM, type MarkupContent as aN, type MarkupInput as aO, type MarkupSpan as aP, MemoryMultiTokenStorage as aQ, MemoryTokenStorage as aR, type MyProfile as aS, NOTIFICATION_TYPE_ALIASES as aT, type Notification as aU, type NotificationEvent as aV, type NotificationListParams as aW, type NotificationSettings as aX, NotificationType as aY, NotificationsResource as aZ, OAuthProvider as a_, type HashtagPostsParams as aa, HashtagsResource as ab, IMAGE_MIME_TYPES as ac, type ImageMimeType as ad, IncidentKind as ae, type InteractionEntry as af, InteractionType as ag, type IsoDate as ah, ItdAbortError as ai, ItdApiError as aj, type ItdApiErrorInit as ak, ItdApiErrorKind as al, ItdAuthError as am, type ItdBuilder as an, ItdConfigError as ao, ItdConflictError as ap, ItdError as aq, ItdErrorCode as ar, ItdErrorKind as as, type ItdFieldErrors as at, ItdForbiddenError as au, ItdNetworkError as av, ItdNotFoundError as aw, ItdPhoneVerificationError as ax, type ItdPlugin as ay, ItdRateLimitError as az, type ItdAccountsOptions as b,
|
|
4961
|
+
export { DEVICE_ID_HEADER as $, ALLOWED_MIME_TYPES as A, BUILT_IN_SERVICES as B, type CaptchaCredentials as C, type Clan as D, type ClientHooks as E, type FileReader as F, type Comment as G, CommentBuilder as H, type ItdSession as I, type CommentInput as J, type CommentReplyTo as K, CommentSort as L, type MultiTokenStorage as M, type CommentsParams as N, CommentsResource as O, type CreateCommentInput as P, type CreatePollInput as Q, type CreatePostInput as R, type CreateReportInput as S, type TokenStorage as T, type Credentials as U, type CredentialsAuth as V, DEFAULT_BASE_URL as W, DEFAULT_STATUS_BASE_URL as X, DEFAULT_TIMEOUT as Y, DEFAULT_UPLOAD_TIMEOUT as Z, DEFAULT_USER_AGENT as _, ItdAccounts as a, type Page as a$, DetectedRuntime as a0, type DwellEntry as a1, type ErrorContextHook as a2, type FeedParams as a3, FeedTab as a4, type FileInput as a5, FilesResource as a6, type FollowResult as a7, type ForgotPasswordInput as a8, type Hashtag as a9, ItdRealtime as aA, ItdServerError as aB, ItdTimeoutError as aC, ItdValidationError as aD, LIBRARY_VERSION as aE, type LikeResult as aF, LikesVisibility as aG, type Listener as aH, LocalStorageTokenStorage as aI, type Logger as aJ, type Loose as aK, MAX_RECONNECT_ATTEMPTS as aL, MarkupBuilder as aM, type MarkupContent as aN, type MarkupInput as aO, type MarkupSpan as aP, MemoryMultiTokenStorage as aQ, MemoryTokenStorage as aR, type MyProfile as aS, NOTIFICATION_TYPE_ALIASES as aT, type Notification as aU, type NotificationEvent as aV, type NotificationListParams as aW, type NotificationSettings as aX, NotificationType as aY, NotificationsResource as aZ, OAuthProvider as a_, type HashtagPostsParams as aa, HashtagsResource as ab, IMAGE_MIME_TYPES as ac, type ImageMimeType as ad, IncidentKind as ae, type InteractionEntry as af, InteractionType as ag, type IsoDate as ah, ItdAbortError as ai, ItdApiError as aj, type ItdApiErrorInit as ak, ItdApiErrorKind as al, ItdAuthError as am, type ItdBuilder as an, ItdConfigError as ao, ItdConflictError as ap, ItdError as aq, ItdErrorCode as ar, ItdErrorKind as as, type ItdFieldErrors as at, ItdForbiddenError as au, ItdNetworkError as av, ItdNotFoundError as aw, ItdPhoneVerificationError as ax, type ItdPlugin as ay, ItdRateLimitError as az, type ItdAccountsOptions as b, SearchResource as b$, type PageState as b0, PaginationMode as b1, Paginator as b2, type PaginatorOptions as b3, type PaymentMethod as b4, type Pin as b5, type PinPostResult as b6, type PinsResult as b7, PlatformResource as b8, type PlatformStatus as b9, type RawRequestOptions as bA, type RealtimeDeps as bB, type RealtimeEvents as bC, type RealtimeOptions as bD, RealtimeStatus as bE, type RealtimeTransport as bF, RealtimeTransportKind as bG, type ReconnectOptions as bH, type RecordStorageSource as bI, type RemoveAccountOptions as bJ, type RenderSpansOptions as bK, type RepliesParams as bL, type Report as bM, ReportBuilder as bN, type ReportInput as bO, ReportReason as bP, ReportTargetType as bQ, ReportsResource as bR, type RequestContext as bS, type RequestOptions as bT, type ResetPasswordInput as bU, type ResponseContext as bV, type RetryContext as bW, type RetryOptions as bX, RuntimeMode as bY, STATUS_SERVICE as bZ, STREAM_PATH as b_, type PluginContext as ba, type PluginTeardown as bb, type Poll as bc, PollBuilder as bd, type PollInput as be, type PollOption as bf, type PollTransportOptions as bg, type Portal as bh, type Post as bi, PostBuilder as bj, type PostInput as bk, type PostStats as bl, type PostUpdateInput as bm, PostsResource as bn, type PrivacySettings as bo, type Profile as bp, type PublicProfile as bq, type QueryParams as br, type QueryValue as bs, RECONNECT_BACKOFF as bt, RECONNECT_JITTER as bu, REFRESH_COOKIE as bv, REFRESH_COOKIE_PATH as bw, REQUEST_OPTION_KEYS as bx, type RateLimitOptions as by, type RateLimitScope as bz, ItdClient as c, isKnownNotificationType as c$, type SearchResult as c0, type ServiceDefinition as c1, ServiceRegistry as c2, ServiceState as c3, type ServiceStatus as c4, type Session as c5, type SignInResult as c6, SignInStatus as c7, type Span as c8, type SpanRenderFormat as c9, type UserSummary as cA, UsersResource as cB, VIDEO_MIME_TYPES as cC, VerificationResource as cD, type VerificationStatus as cE, type VideoMimeType as cF, ViewReason as cG, ViewSource as cH, WallAccess as cI, autoSpans as cJ, canonicalNotificationType as cK, comment as cL, createMultiTokenStorage as cM, createRecordMultiStorage as cN, createTokenStorage as cO, formatNotificationText as cP, isBuilder as cQ, isItdApiError as cR, isItdAuthError as cS, isItdConflictError as cT, isItdError as cU, isItdForbiddenError as cV, isItdNotFoundError as cW, isItdPhoneVerificationError as cX, isItdRateLimitError as cY, isItdServerError as cZ, isItdValidationError as c_, SpanType as ca, type SseTransportOptions as cb, type StatusDay as cc, type StatusIncidentLine as cd, type Subscription as ce, SubscriptionResource as cf, type SubscriptionState as cg, TURNSTILE_SITE_KEY as ch, type TelemetryOptions as ci, TelemetryResource as cj, type TextMarkup as ck, type Transformer as cl, type TransportContext as cm, type TransportEvent as cn, UnauthorizedStreamError as co, type Unsubscribe as cp, type UpdateNotificationSettingsInput as cq, type UpdatePostInput as cr, type UpdatePrivacyInput as cs, type UpdateProfileInput as ct, type UploadOptions as cu, type UploadedFile as cv, type UserId as cw, type UserListParams as cx, type UserPostsParams as cy, type UserRef as cz, type ItdClientOptions as d, isMyProfile as d0, mapPage as d1, markup as d2, normalizeNotification as d3, poll as d4, post as d5, readNotificationEvent as d6, readUnreadCountEvent as d7, renderSpans as d8, report as d9, resolveNotificationUrl as da, scopedTokenStorage as db, statusDays as dc, toDate as dd, utcStampToIso as de, createAccounts as df, createClient as dg, type ItdClientInternals as e, AUDIO_MIME_TYPES as f, AUTH_FLAG_COOKIE as g, AUTH_PATHS as h, AccessType as i, type AccountEvents as j, type Actor as k, type AddAccountOptions as l, type AllowedMimeType as m, type Announcement as n, type AnnouncementButton as o, type Attachment as p, AttachmentType as q, type AudioMimeType as r, type AuthEvents as s, type AuthIdentity as t, type AuthInput as u, AuthResource as v, type Author as w, type AutoSpansOptions as x, type BuilderInput as y, type ChangelogEntry as z };
|
|
@@ -1398,7 +1398,7 @@ interface RawRequestOptions extends RequestOptions {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
|
|
1400
1400
|
/** Версия библиотеки. Попадает в `User-Agent`. */
|
|
1401
|
-
declare const LIBRARY_VERSION = "0.0
|
|
1401
|
+
declare const LIBRARY_VERSION = "0.1.0";
|
|
1402
1402
|
|
|
1403
1403
|
/** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
|
|
1404
1404
|
declare const DEFAULT_BASE_URL = "https://xn--d1ah4a.com";
|
|
@@ -1421,7 +1421,7 @@ declare const DEFAULT_TIMEOUT = 30000;
|
|
|
1421
1421
|
* В браузере заголовок не выставляется — `User-Agent` там запрещён к изменению, и среда
|
|
1422
1422
|
* молча его игнорирует.
|
|
1423
1423
|
*/
|
|
1424
|
-
declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0
|
|
1424
|
+
declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.1.0; +https://github.com/KiowDev/itd-api)";
|
|
1425
1425
|
/** Настройки очереди со всеми значениями по умолчанию. */
|
|
1426
1426
|
interface ResolvedRateLimitOptions {
|
|
1427
1427
|
concurrency: number;
|
|
@@ -1753,6 +1753,8 @@ declare class AuthManager {
|
|
|
1753
1753
|
* ```
|
|
1754
1754
|
*/
|
|
1755
1755
|
type Transformer = (request: RawRequestOptions, next: (request: RawRequestOptions) => Promise<unknown>) => Promise<unknown>;
|
|
1756
|
+
/** Освобождение ресурсов, заведённых плагином при установке. */
|
|
1757
|
+
type PluginTeardown = () => void | Promise<void>;
|
|
1756
1758
|
/** Что плагин получает при подключении. */
|
|
1757
1759
|
interface PluginContext {
|
|
1758
1760
|
/** Базовый URL клиента — например чтобы разобрать абсолютные ссылки из ответа. */
|
|
@@ -1775,6 +1777,13 @@ interface PluginContext {
|
|
|
1775
1777
|
getAuthIdentity?: (() => Promise<AuthIdentity>) | undefined;
|
|
1776
1778
|
/** Добавляет обёртку запроса. Подключённые раньше оказываются снаружи. */
|
|
1777
1779
|
use(transformer: Transformer): void;
|
|
1780
|
+
/**
|
|
1781
|
+
* Добавляет перехватчики отдельных сетевых попыток.
|
|
1782
|
+
*
|
|
1783
|
+
* В отличие от {@link use}, они видят каждый retry и сырой `Response` до чтения тела.
|
|
1784
|
+
* Несколько наборов хуков одного плагина вызываются в порядке регистрации.
|
|
1785
|
+
*/
|
|
1786
|
+
useHooks(hooks: ClientHooks): void;
|
|
1778
1787
|
}
|
|
1779
1788
|
/**
|
|
1780
1789
|
* Плагин клиента.
|
|
@@ -1819,8 +1828,21 @@ interface ItdPlugin {
|
|
|
1819
1828
|
* ```
|
|
1820
1829
|
*/
|
|
1821
1830
|
optionKeys?: readonly string[];
|
|
1822
|
-
/**
|
|
1823
|
-
|
|
1831
|
+
/** Плагины, которые обязаны быть подключены раньше этого. */
|
|
1832
|
+
requires?: readonly string[];
|
|
1833
|
+
/** Несовместимые плагины. Достаточно объявить конфликт с одной стороны. */
|
|
1834
|
+
conflicts?: readonly string[];
|
|
1835
|
+
/** Имена плагинов, снаружи которых должна стоять эта обёртка. */
|
|
1836
|
+
before?: readonly string[];
|
|
1837
|
+
/** Имена плагинов, внутри которых должна стоять эта обёртка. */
|
|
1838
|
+
after?: readonly string[];
|
|
1839
|
+
/**
|
|
1840
|
+
* Устанавливает плагин.
|
|
1841
|
+
*
|
|
1842
|
+
* Может вернуть функцию освобождения ресурсов. Она вызывается при `unuse()` или
|
|
1843
|
+
* окончательном `dispose()` клиента и может быть асинхронной.
|
|
1844
|
+
*/
|
|
1845
|
+
install(context: PluginContext): unknown;
|
|
1824
1846
|
}
|
|
1825
1847
|
/**
|
|
1826
1848
|
* Список подключённых плагинов и собранная из них цепочка обёрток.
|
|
@@ -1830,22 +1852,52 @@ interface ItdPlugin {
|
|
|
1830
1852
|
*/
|
|
1831
1853
|
declare class PluginRegistry {
|
|
1832
1854
|
#private;
|
|
1833
|
-
/** Сколько
|
|
1855
|
+
/** Сколько плагинов подключено. */
|
|
1834
1856
|
get size(): number;
|
|
1835
|
-
/** Имена опций
|
|
1857
|
+
/** Имена опций активных плагинов. */
|
|
1836
1858
|
get optionKeys(): ReadonlySet<string>;
|
|
1859
|
+
/** Имена плагинов в фактическом порядке выполнения. */
|
|
1860
|
+
names(): string[];
|
|
1861
|
+
/** Подключён ли плагин с таким именем. */
|
|
1862
|
+
has(name: string): boolean;
|
|
1863
|
+
/** Проверяет добавление без вызова `install()`. @internal */
|
|
1864
|
+
assertCanAdd(plugin: ItdPlugin): void;
|
|
1865
|
+
/** Проверяет удаление без изменения реестра. @internal */
|
|
1866
|
+
assertCanRemove(name: string): void;
|
|
1837
1867
|
/**
|
|
1838
1868
|
* Подключает плагин.
|
|
1839
1869
|
*
|
|
1840
|
-
* @throws {ItdConfigError} если плагин задан неверно, уже
|
|
1841
|
-
* имя опции
|
|
1870
|
+
* @throws {ItdConfigError} если плагин задан неверно, уже подключён, нарушает зависимости
|
|
1871
|
+
* или заявил занятое имя опции
|
|
1842
1872
|
*/
|
|
1843
|
-
add(plugin: ItdPlugin, context: Omit<PluginContext, 'use'>): void;
|
|
1873
|
+
add(plugin: ItdPlugin, context: Omit<PluginContext, 'use' | 'useHooks'>): void;
|
|
1874
|
+
/**
|
|
1875
|
+
* Отключает плагин и вызывает его функцию очистки.
|
|
1876
|
+
*
|
|
1877
|
+
* Новые запросы перестают видеть плагин сразу. Если его обёртка уже выполняется,
|
|
1878
|
+
* очистка дождётся завершения этого логического запроса.
|
|
1879
|
+
*
|
|
1880
|
+
* @returns `false`, если такого плагина не было
|
|
1881
|
+
*/
|
|
1882
|
+
remove(name: string): Promise<boolean>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Отключает все плагины окончательно.
|
|
1885
|
+
*
|
|
1886
|
+
* Очистка идёт изнутри наружу — в порядке, обратном выполнению обёрток.
|
|
1887
|
+
*/
|
|
1888
|
+
dispose(): Promise<void>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Объединяет конструкторские хуки с хуками подключаемых плагинов.
|
|
1891
|
+
*
|
|
1892
|
+
* Возвращённый объект динамический: подключение и отключение плагина начинает действовать
|
|
1893
|
+
* со следующего логического запроса без пересоздания транспорта.
|
|
1894
|
+
*/
|
|
1895
|
+
hooks(base: ClientHooks): ClientHooks;
|
|
1844
1896
|
/**
|
|
1845
1897
|
* Прогоняет запрос через цепочку обёрток.
|
|
1846
1898
|
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1899
|
+
* Снимок цепочки берётся в начале: `unuse()` влияет на новые запросы, но не обрывает
|
|
1900
|
+
* уже выполняющийся посередине.
|
|
1849
1901
|
*
|
|
1850
1902
|
* @param execute настоящий запрос, вызывается самой внутренней обёрткой
|
|
1851
1903
|
*/
|
|
@@ -2105,6 +2157,12 @@ interface RealtimeOptions extends ReconnectOptions {
|
|
|
2105
2157
|
* может незаметно «зависнуть».
|
|
2106
2158
|
*/
|
|
2107
2159
|
idleTimeout?: number;
|
|
2160
|
+
/**
|
|
2161
|
+
* Сколько ждать ответа на запрос потока, прежде чем оборвать попытку, мс. По умолчанию
|
|
2162
|
+
* 20 000. Защищает от зависания на установке соединения, когда {@link idleTimeout} ещё
|
|
2163
|
+
* не действует. `0` отключает проверку. Только для потокового транспорта.
|
|
2164
|
+
*/
|
|
2165
|
+
handshakeTimeout?: number;
|
|
2108
2166
|
/** Как часто опрашивать сервер, если используется запасной транспорт. */
|
|
2109
2167
|
pollInterval?: number;
|
|
2110
2168
|
/**
|
|
@@ -3699,8 +3757,7 @@ interface InteractionEntry {
|
|
|
3699
3757
|
/**
|
|
3700
3758
|
* Телеметрия просмотров.
|
|
3701
3759
|
*
|
|
3702
|
-
* @experimental
|
|
3703
|
-
* (взаимодействия); формат полей может измениться без предупреждения.
|
|
3760
|
+
* @experimental
|
|
3704
3761
|
*
|
|
3705
3762
|
* Методы не вызываются автоматически — телеметрия отправляется только явным вызовом.
|
|
3706
3763
|
*
|
|
@@ -3957,11 +4014,7 @@ declare class ItdClient {
|
|
|
3957
4014
|
readonly subscription: SubscriptionResource;
|
|
3958
4015
|
/** Сведения о платформе: изменения, анонсы, баннер события. */
|
|
3959
4016
|
readonly platform: PlatformResource;
|
|
3960
|
-
/**
|
|
3961
|
-
* Телеметрия просмотров.
|
|
3962
|
-
*
|
|
3963
|
-
* @experimental Недокументированные эндпоинты. Библиотека никогда не отправляет их сама.
|
|
3964
|
-
*/
|
|
4017
|
+
/** Телеметрия просмотров. */
|
|
3965
4018
|
readonly telemetry: TelemetryResource;
|
|
3966
4019
|
constructor(options?: ItdClientOptions, internals?: ItdClientInternals);
|
|
3967
4020
|
/** Базовый URL, к которому обращается клиент. */
|
|
@@ -3996,6 +4049,20 @@ declare class ItdClient {
|
|
|
3996
4049
|
* ```
|
|
3997
4050
|
*/
|
|
3998
4051
|
use(plugin: ItdPlugin): this;
|
|
4052
|
+
/** Имена подключённых плагинов в фактическом порядке выполнения обёрток. */
|
|
4053
|
+
pluginNames(): string[];
|
|
4054
|
+
/** Подключён ли плагин с таким именем. */
|
|
4055
|
+
hasPlugin(name: string): boolean;
|
|
4056
|
+
/**
|
|
4057
|
+
* Отключает плагин и освобождает заведённые им ресурсы.
|
|
4058
|
+
*
|
|
4059
|
+
* Новые запросы перестают видеть плагин сразу. Очистка дождётся логического запроса,
|
|
4060
|
+
* который уже проходил через его обёртку.
|
|
4061
|
+
*
|
|
4062
|
+
* @returns `false`, если такого плагина не было
|
|
4063
|
+
* @throws {ItdConfigError} если от плагина зависит другой подключённый плагин
|
|
4064
|
+
*/
|
|
4065
|
+
unuse(name: string): Promise<boolean>;
|
|
3999
4066
|
/**
|
|
4000
4067
|
* Регистрирует сервис платформы — домен, отличный от основного.
|
|
4001
4068
|
*
|
|
@@ -4075,10 +4142,18 @@ declare class ItdClient {
|
|
|
4075
4142
|
* ```ts
|
|
4076
4143
|
* await using itd = new ItdClient({ auth: token });
|
|
4077
4144
|
* // …работа…
|
|
4078
|
-
* //
|
|
4145
|
+
* // dispose() вызовется сам на выходе из блока
|
|
4079
4146
|
* ```
|
|
4080
4147
|
*/
|
|
4081
4148
|
close(): Promise<void>;
|
|
4149
|
+
/**
|
|
4150
|
+
* Окончательно освобождает клиент: выполняет {@link close} и отключает все плагины.
|
|
4151
|
+
*
|
|
4152
|
+
* В отличие от `close()`, после `dispose()` плагины не восстанавливаются автоматически.
|
|
4153
|
+
* Сам клиент остаётся пригоден для обычных запросов; при необходимости плагины можно
|
|
4154
|
+
* подключить заново через {@link use}.
|
|
4155
|
+
*/
|
|
4156
|
+
dispose(): Promise<void>;
|
|
4082
4157
|
/** Позволяет использовать клиент с `await using`. */
|
|
4083
4158
|
[Symbol.asyncDispose](): Promise<void>;
|
|
4084
4159
|
/** Текущая сессия целиком — чтобы сохранить её самостоятельно. */
|
|
@@ -4399,6 +4474,17 @@ declare class ItdAccounts {
|
|
|
4399
4474
|
* ```
|
|
4400
4475
|
*/
|
|
4401
4476
|
use(plugin: ItdPlugin): this;
|
|
4477
|
+
/** Имена общих плагинов в фактическом порядке выполнения обёрток. */
|
|
4478
|
+
pluginNames(): string[];
|
|
4479
|
+
/** Подключён ли общий плагин с таким именем. */
|
|
4480
|
+
hasPlugin(name: string): boolean;
|
|
4481
|
+
/**
|
|
4482
|
+
* Отключает общий плагин у существующих клиентов и не применяет его к будущим.
|
|
4483
|
+
*
|
|
4484
|
+
* @returns `false`, если такого плагина не было
|
|
4485
|
+
* @throws {ItdConfigError} если от плагина зависит другой общий плагин
|
|
4486
|
+
*/
|
|
4487
|
+
unuse(name: string): Promise<boolean>;
|
|
4402
4488
|
/**
|
|
4403
4489
|
* Подписывается на события авторизации всех аккаунтов сразу.
|
|
4404
4490
|
*
|
|
@@ -4432,10 +4518,17 @@ declare class ItdAccounts {
|
|
|
4432
4518
|
* ```ts
|
|
4433
4519
|
* await using accounts = new ItdAccounts({ storage });
|
|
4434
4520
|
* // …работа…
|
|
4435
|
-
* //
|
|
4521
|
+
* // dispose() вызовется сам на выходе из блока
|
|
4436
4522
|
* ```
|
|
4437
4523
|
*/
|
|
4438
4524
|
close(): Promise<void>;
|
|
4525
|
+
/**
|
|
4526
|
+
* Окончательно освобождает контейнер и отключает общие плагины у всех аккаунтов.
|
|
4527
|
+
*
|
|
4528
|
+
* Для временной остановки потоков и очереди без отключения плагинов используйте
|
|
4529
|
+
* {@link close}.
|
|
4530
|
+
*/
|
|
4531
|
+
dispose(): Promise<void>;
|
|
4439
4532
|
/** Позволяет использовать контейнер с `await using`. */
|
|
4440
4533
|
[Symbol.asyncDispose](): Promise<void>;
|
|
4441
4534
|
}
|
|
@@ -4688,7 +4781,9 @@ declare class ItdTimeoutError extends ItdError {
|
|
|
4688
4781
|
}
|
|
4689
4782
|
/** Запрос отменён через переданный `AbortSignal`. */
|
|
4690
4783
|
declare class ItdAbortError extends ItdError {
|
|
4691
|
-
constructor(message?: string
|
|
4784
|
+
constructor(message?: string, options?: {
|
|
4785
|
+
cause?: unknown;
|
|
4786
|
+
});
|
|
4692
4787
|
}
|
|
4693
4788
|
/**
|
|
4694
4789
|
* Некорректная конфигурация или аргументы — обнаружено до обращения к сети.
|
|
@@ -4828,6 +4923,14 @@ interface SseTransportOptions {
|
|
|
4828
4923
|
* По умолчанию 90 000. `0` отключает проверку.
|
|
4829
4924
|
*/
|
|
4830
4925
|
idleTimeout?: number;
|
|
4926
|
+
/**
|
|
4927
|
+
* Сколько миллисекунд ждать ответа на запрос потока, прежде чем оборвать попытку.
|
|
4928
|
+
*
|
|
4929
|
+
* Проверка молчания ({@link idleTimeout}) начинается только после получения тела ответа.
|
|
4930
|
+
* Если `fetch` завис на установке соединения, без этого таймаута переподключение не
|
|
4931
|
+
* запустится до системного сетевого таймаута. По умолчанию 20 000. `0` отключает проверку.
|
|
4932
|
+
*/
|
|
4933
|
+
handshakeTimeout?: number;
|
|
4831
4934
|
}
|
|
4832
4935
|
|
|
4833
4936
|
/** Формат результата {@link renderSpans}. */
|
|
@@ -4855,4 +4958,4 @@ interface RenderSpansOptions {
|
|
|
4855
4958
|
*/
|
|
4856
4959
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
4857
4960
|
|
|
4858
|
-
export { DEVICE_ID_HEADER as $, ALLOWED_MIME_TYPES as A, BUILT_IN_SERVICES as B, type CaptchaCredentials as C, type Clan as D, type ClientHooks as E, type FileReader as F, type Comment as G, CommentBuilder as H, type ItdSession as I, type CommentInput as J, type CommentReplyTo as K, CommentSort as L, type MultiTokenStorage as M, type CommentsParams as N, CommentsResource as O, type CreateCommentInput as P, type CreatePollInput as Q, type CreatePostInput as R, type CreateReportInput as S, type TokenStorage as T, type Credentials as U, type CredentialsAuth as V, DEFAULT_BASE_URL as W, DEFAULT_STATUS_BASE_URL as X, DEFAULT_TIMEOUT as Y, DEFAULT_UPLOAD_TIMEOUT as Z, DEFAULT_USER_AGENT as _, ItdAccounts as a, type Page as a$, DetectedRuntime as a0, type DwellEntry as a1, type ErrorContextHook as a2, type FeedParams as a3, FeedTab as a4, type FileInput as a5, FilesResource as a6, type FollowResult as a7, type ForgotPasswordInput as a8, type Hashtag as a9, ItdRealtime as aA, ItdServerError as aB, ItdTimeoutError as aC, ItdValidationError as aD, LIBRARY_VERSION as aE, type LikeResult as aF, LikesVisibility as aG, type Listener as aH, LocalStorageTokenStorage as aI, type Logger as aJ, type Loose as aK, MAX_RECONNECT_ATTEMPTS as aL, MarkupBuilder as aM, type MarkupContent as aN, type MarkupInput as aO, type MarkupSpan as aP, MemoryMultiTokenStorage as aQ, MemoryTokenStorage as aR, type MyProfile as aS, NOTIFICATION_TYPE_ALIASES as aT, type Notification as aU, type NotificationEvent as aV, type NotificationListParams as aW, type NotificationSettings as aX, NotificationType as aY, NotificationsResource as aZ, OAuthProvider as a_, type HashtagPostsParams as aa, HashtagsResource as ab, IMAGE_MIME_TYPES as ac, type ImageMimeType as ad, IncidentKind as ae, type InteractionEntry as af, InteractionType as ag, type IsoDate as ah, ItdAbortError as ai, ItdApiError as aj, type ItdApiErrorInit as ak, ItdApiErrorKind as al, ItdAuthError as am, type ItdBuilder as an, ItdConfigError as ao, ItdConflictError as ap, ItdError as aq, ItdErrorCode as ar, ItdErrorKind as as, type ItdFieldErrors as at, ItdForbiddenError as au, ItdNetworkError as av, ItdNotFoundError as aw, ItdPhoneVerificationError as ax, type ItdPlugin as ay, ItdRateLimitError as az, type ItdAccountsOptions as b,
|
|
4961
|
+
export { DEVICE_ID_HEADER as $, ALLOWED_MIME_TYPES as A, BUILT_IN_SERVICES as B, type CaptchaCredentials as C, type Clan as D, type ClientHooks as E, type FileReader as F, type Comment as G, CommentBuilder as H, type ItdSession as I, type CommentInput as J, type CommentReplyTo as K, CommentSort as L, type MultiTokenStorage as M, type CommentsParams as N, CommentsResource as O, type CreateCommentInput as P, type CreatePollInput as Q, type CreatePostInput as R, type CreateReportInput as S, type TokenStorage as T, type Credentials as U, type CredentialsAuth as V, DEFAULT_BASE_URL as W, DEFAULT_STATUS_BASE_URL as X, DEFAULT_TIMEOUT as Y, DEFAULT_UPLOAD_TIMEOUT as Z, DEFAULT_USER_AGENT as _, ItdAccounts as a, type Page as a$, DetectedRuntime as a0, type DwellEntry as a1, type ErrorContextHook as a2, type FeedParams as a3, FeedTab as a4, type FileInput as a5, FilesResource as a6, type FollowResult as a7, type ForgotPasswordInput as a8, type Hashtag as a9, ItdRealtime as aA, ItdServerError as aB, ItdTimeoutError as aC, ItdValidationError as aD, LIBRARY_VERSION as aE, type LikeResult as aF, LikesVisibility as aG, type Listener as aH, LocalStorageTokenStorage as aI, type Logger as aJ, type Loose as aK, MAX_RECONNECT_ATTEMPTS as aL, MarkupBuilder as aM, type MarkupContent as aN, type MarkupInput as aO, type MarkupSpan as aP, MemoryMultiTokenStorage as aQ, MemoryTokenStorage as aR, type MyProfile as aS, NOTIFICATION_TYPE_ALIASES as aT, type Notification as aU, type NotificationEvent as aV, type NotificationListParams as aW, type NotificationSettings as aX, NotificationType as aY, NotificationsResource as aZ, OAuthProvider as a_, type HashtagPostsParams as aa, HashtagsResource as ab, IMAGE_MIME_TYPES as ac, type ImageMimeType as ad, IncidentKind as ae, type InteractionEntry as af, InteractionType as ag, type IsoDate as ah, ItdAbortError as ai, ItdApiError as aj, type ItdApiErrorInit as ak, ItdApiErrorKind as al, ItdAuthError as am, type ItdBuilder as an, ItdConfigError as ao, ItdConflictError as ap, ItdError as aq, ItdErrorCode as ar, ItdErrorKind as as, type ItdFieldErrors as at, ItdForbiddenError as au, ItdNetworkError as av, ItdNotFoundError as aw, ItdPhoneVerificationError as ax, type ItdPlugin as ay, ItdRateLimitError as az, type ItdAccountsOptions as b, SearchResource as b$, type PageState as b0, PaginationMode as b1, Paginator as b2, type PaginatorOptions as b3, type PaymentMethod as b4, type Pin as b5, type PinPostResult as b6, type PinsResult as b7, PlatformResource as b8, type PlatformStatus as b9, type RawRequestOptions as bA, type RealtimeDeps as bB, type RealtimeEvents as bC, type RealtimeOptions as bD, RealtimeStatus as bE, type RealtimeTransport as bF, RealtimeTransportKind as bG, type ReconnectOptions as bH, type RecordStorageSource as bI, type RemoveAccountOptions as bJ, type RenderSpansOptions as bK, type RepliesParams as bL, type Report as bM, ReportBuilder as bN, type ReportInput as bO, ReportReason as bP, ReportTargetType as bQ, ReportsResource as bR, type RequestContext as bS, type RequestOptions as bT, type ResetPasswordInput as bU, type ResponseContext as bV, type RetryContext as bW, type RetryOptions as bX, RuntimeMode as bY, STATUS_SERVICE as bZ, STREAM_PATH as b_, type PluginContext as ba, type PluginTeardown as bb, type Poll as bc, PollBuilder as bd, type PollInput as be, type PollOption as bf, type PollTransportOptions as bg, type Portal as bh, type Post as bi, PostBuilder as bj, type PostInput as bk, type PostStats as bl, type PostUpdateInput as bm, PostsResource as bn, type PrivacySettings as bo, type Profile as bp, type PublicProfile as bq, type QueryParams as br, type QueryValue as bs, RECONNECT_BACKOFF as bt, RECONNECT_JITTER as bu, REFRESH_COOKIE as bv, REFRESH_COOKIE_PATH as bw, REQUEST_OPTION_KEYS as bx, type RateLimitOptions as by, type RateLimitScope as bz, ItdClient as c, isKnownNotificationType as c$, type SearchResult as c0, type ServiceDefinition as c1, ServiceRegistry as c2, ServiceState as c3, type ServiceStatus as c4, type Session as c5, type SignInResult as c6, SignInStatus as c7, type Span as c8, type SpanRenderFormat as c9, type UserSummary as cA, UsersResource as cB, VIDEO_MIME_TYPES as cC, VerificationResource as cD, type VerificationStatus as cE, type VideoMimeType as cF, ViewReason as cG, ViewSource as cH, WallAccess as cI, autoSpans as cJ, canonicalNotificationType as cK, comment as cL, createMultiTokenStorage as cM, createRecordMultiStorage as cN, createTokenStorage as cO, formatNotificationText as cP, isBuilder as cQ, isItdApiError as cR, isItdAuthError as cS, isItdConflictError as cT, isItdError as cU, isItdForbiddenError as cV, isItdNotFoundError as cW, isItdPhoneVerificationError as cX, isItdRateLimitError as cY, isItdServerError as cZ, isItdValidationError as c_, SpanType as ca, type SseTransportOptions as cb, type StatusDay as cc, type StatusIncidentLine as cd, type Subscription as ce, SubscriptionResource as cf, type SubscriptionState as cg, TURNSTILE_SITE_KEY as ch, type TelemetryOptions as ci, TelemetryResource as cj, type TextMarkup as ck, type Transformer as cl, type TransportContext as cm, type TransportEvent as cn, UnauthorizedStreamError as co, type Unsubscribe as cp, type UpdateNotificationSettingsInput as cq, type UpdatePostInput as cr, type UpdatePrivacyInput as cs, type UpdateProfileInput as ct, type UploadOptions as cu, type UploadedFile as cv, type UserId as cw, type UserListParams as cx, type UserPostsParams as cy, type UserRef as cz, type ItdClientOptions as d, isMyProfile as d0, mapPage as d1, markup as d2, normalizeNotification as d3, poll as d4, post as d5, readNotificationEvent as d6, readUnreadCountEvent as d7, renderSpans as d8, report as d9, resolveNotificationUrl as da, scopedTokenStorage as db, statusDays as dc, toDate as dd, utcStampToIso as de, createAccounts as df, createClient as dg, type ItdClientInternals as e, AUDIO_MIME_TYPES as f, AUTH_FLAG_COOKIE as g, AUTH_PATHS as h, AccessType as i, type AccountEvents as j, type Actor as k, type AddAccountOptions as l, type AllowedMimeType as m, type Announcement as n, type AnnouncementButton as o, type Attachment as p, AttachmentType as q, type AudioMimeType as r, type AuthEvents as s, type AuthIdentity as t, type AuthInput as u, AuthResource as v, type Author as w, type AutoSpansOptions as x, type BuilderInput as y, type ChangelogEntry as z };
|