itd-api 0.0.6 → 0.0.7

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.
@@ -156,22 +156,46 @@ declare const RealtimeStatus: Readonly<{
156
156
  }>;
157
157
  type RealtimeStatus = (typeof RealtimeStatus)[keyof typeof RealtimeStatus];
158
158
  /**
159
- * Кто может писать на стену профиля.
159
+ * Уровень доступа к разделу профиля.
160
160
  *
161
- * Документация перечисляет значения не полностью, поэтому тип открытый: объект ниже —
162
- * справочник известных значений, но сервер может прислать и другое.
161
+ * Общий набор значений для полей `wallAccess` и `likesVisibility` настроек приватности.
162
+ * Тип открытый: сервер может прислать значение вне этого перечня.
163
163
  */
164
+ declare const AccessType: Readonly<{
165
+ /** Никто. */
166
+ readonly Nobody: "nobody";
167
+ /** Только взаимные подписки. */
168
+ readonly Mutual: "mutual";
169
+ /** Подписчики. */
170
+ readonly Followers: "followers";
171
+ /** Все. */
172
+ readonly Everyone: "everyone";
173
+ }>;
174
+ type AccessType = Loose<(typeof AccessType)[keyof typeof AccessType]>;
175
+ /** Кто может писать на стену профиля. Псевдоним {@link AccessType}. */
164
176
  declare const WallAccess: Readonly<{
177
+ /** Никто. */
178
+ readonly Nobody: "nobody";
179
+ /** Только взаимные подписки. */
180
+ readonly Mutual: "mutual";
181
+ /** Подписчики. */
182
+ readonly Followers: "followers";
183
+ /** Все. */
165
184
  readonly Everyone: "everyone";
166
185
  }>;
167
- type WallAccess = Loose<(typeof WallAccess)[keyof typeof WallAccess]>;
168
- /** Кто видит реакции пользователя. Список в документации неполный. */
186
+ type WallAccess = AccessType;
187
+ /** Кто видит реакции пользователя. Псевдоним {@link AccessType}. */
169
188
  declare const LikesVisibility: Readonly<{
170
- readonly Everyone: "everyone";
189
+ /** Никто. */
190
+ readonly Nobody: "nobody";
171
191
  /** Только взаимные подписки. */
172
192
  readonly Mutual: "mutual";
193
+ /** Подписчики. */
194
+ readonly Followers: "followers";
195
+ /** Все. */
196
+ readonly Everyone: "everyone";
173
197
  }>;
174
- type LikesVisibility = Loose<(typeof LikesVisibility)[keyof typeof LikesVisibility]>;
198
+ type LikesVisibility = AccessType;
175
199
  /**
176
200
  * Канонический тип уведомления (новое поколение имён).
177
201
  *
@@ -208,6 +232,55 @@ declare const NotificationType: Readonly<{
208
232
  readonly VerificationRejected: "verification_rejected";
209
233
  }>;
210
234
  type NotificationType = Loose<(typeof NotificationType)[keyof typeof NotificationType]>;
235
+ /**
236
+ * Тип взаимодействия с контентом в телеметрии (`POST /api/v1/x`, поле `t`).
237
+ *
238
+ * Кодируется числом.
239
+ */
240
+ declare const InteractionType: Readonly<{
241
+ /** Открытие фотографии. */
242
+ readonly PhotoOpen: 1;
243
+ /** Прогресс просмотра видео. Несёт поля `pm`/`dm`. */
244
+ readonly VideoProgress: 2;
245
+ }>;
246
+ type InteractionType = (typeof InteractionType)[keyof typeof InteractionType];
247
+ /**
248
+ * Источник показа поста в телеметрии (поле `s`).
249
+ *
250
+ * Кодируется числом. Поле применимо к источникам `PostPage` и `Link`; для лент источник
251
+ * передаётся контекстом `sc`.
252
+ */
253
+ declare const ViewSource: Readonly<{
254
+ readonly FeedGlobal: 1;
255
+ readonly FeedFollowing: 2;
256
+ readonly FeedClan: 3;
257
+ readonly Profile: 4;
258
+ readonly Hashtag: 5;
259
+ readonly PostPage: 6;
260
+ readonly Link: 7;
261
+ readonly Search: 8;
262
+ }>;
263
+ type ViewSource = (typeof ViewSource)[keyof typeof ViewSource];
264
+ /**
265
+ * Причина завершения просмотра поста в телеметрии (`POST /api/v1/i`, поле `r`).
266
+ *
267
+ * Кодируется числом.
268
+ */
269
+ declare const ViewReason: Readonly<{
270
+ /** Пост ушёл из зоны видимости при обычной прокрутке. */
271
+ readonly Normal: 0;
272
+ /** Потеря фокуса окна. */
273
+ readonly Blur: 1;
274
+ /** Вкладка скрыта. */
275
+ readonly Hidden: 2;
276
+ /** Уход со страницы (`pagehide`). */
277
+ readonly PageHide: 3;
278
+ /** Элемент перестал наблюдаться. */
279
+ readonly Unobserve: 4;
280
+ /** Достигнут порог времени просмотра. */
281
+ readonly ThresholdMet: 5;
282
+ }>;
283
+ type ViewReason = (typeof ViewReason)[keyof typeof ViewReason];
211
284
  /**
212
285
  * Строковые коды ошибок из поля `code`.
213
286
  *
@@ -1474,7 +1547,7 @@ declare const DEFAULT_TIMEOUT = 30000;
1474
1547
  /**
1475
1548
  * Версия библиотеки — попадает в `User-Agent`.
1476
1549
  */
1477
- declare const LIBRARY_VERSION = "0.0.6";
1550
+ declare const LIBRARY_VERSION = "0.0.7";
1478
1551
  /**
1479
1552
  * `User-Agent` по умолчанию.
1480
1553
  *
@@ -1485,7 +1558,7 @@ declare const LIBRARY_VERSION = "0.0.6";
1485
1558
  * В браузере заголовок не выставляется — `User-Agent` там запрещён к изменению, и среда
1486
1559
  * молча его игнорирует.
1487
1560
  */
1488
- declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0.6; +https://github.com/KiowDev/itd-api)";
1561
+ declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0.7; +https://github.com/KiowDev/itd-api)";
1489
1562
  /**
1490
1563
  * Настройки повторов со всеми значениями по умолчанию.
1491
1564
  *
@@ -2833,54 +2906,6 @@ declare class PlatformResource extends BaseResource {
2833
2906
  /** Загружает баннер текущего события — виджет «портал». */
2834
2907
  portal(options?: RequestOptions): Promise<Portal>;
2835
2908
  }
2836
- /** Запись о времени просмотра поста. */
2837
- interface DwellEntry {
2838
- /** Идентификатор поста. */
2839
- postId: string;
2840
- /** Сколько миллисекунд пост был виден. */
2841
- duration: number;
2842
- /** Служебная метка показа из поля `vs` объекта поста. */
2843
- vs?: string;
2844
- }
2845
- /** Запись о взаимодействии с контентом. */
2846
- interface InteractionEntry {
2847
- /** Тип взаимодействия: `photo_open`, `video_progress` и подобные. */
2848
- type: string;
2849
- /** Значение, смысл которого зависит от типа: доля просмотра, номер кадра. */
2850
- value?: number;
2851
- /** Идентификатор поста. */
2852
- postId?: string;
2853
- /** Идентификатор вложения. */
2854
- attachmentId?: string;
2855
- /** Служебная метка показа. */
2856
- vs?: string;
2857
- }
2858
- /**
2859
- * Телеметрия просмотров.
2860
- *
2861
- * @experimental Эндпоинты `/api/v1/i` и `/api/v1/x` нигде не описаны, а схема их полей
2862
- * не проверена на реальных запросах и может измениться без предупреждения.
2863
- *
2864
- * **Библиотека никогда не отправляет телеметрию сама.** Эти методы нужны только тем,
2865
- * кто пишет собственный клиент платформы; всем остальным их вызывать не требуется.
2866
- *
2867
- * Доступна как `itd.telemetry`.
2868
- */
2869
- declare class TelemetryResource extends BaseResource {
2870
- /**
2871
- * Отправляет время просмотра постов.
2872
- *
2873
- * @experimental Имена полей на проводе сжаты (`ai`, `v`, `s`), и их соответствие
2874
- * смыслу **не проверено** на реальных запросах. Может измениться без предупреждения.
2875
- */
2876
- dwell(entries: DwellEntry[], options?: RequestOptions): Promise<unknown>;
2877
- /**
2878
- * Отправляет события взаимодействия с контентом.
2879
- *
2880
- * @experimental См. предупреждение у {@link TelemetryResource}.
2881
- */
2882
- interaction(entries: InteractionEntry[], options?: RequestOptions): Promise<unknown>;
2883
- }
2884
2909
 
2885
2910
  /** Параметры запроса списка уведомлений. */
2886
2911
  interface NotificationListParams extends RequestOptions {
@@ -3121,6 +3146,96 @@ declare class PostsResource extends BaseResource {
3121
3146
  voiceComment(postId: string, audio: FileInput, options?: RequestOptions): Promise<Comment>;
3122
3147
  }
3123
3148
 
3149
+ /**
3150
+ * Общие опции запроса телеметрии.
3151
+ *
3152
+ * Помимо {@link RequestOptions} позволяет задать `sid` — идентификатор сессии телеметрии.
3153
+ * По умолчанию он заводится один на объект {@link TelemetryResource}.
3154
+ */
3155
+ interface TelemetryOptions extends RequestOptions {
3156
+ /** Переопределяет идентификатор сессии телеметрии (`sid`) для этого запроса. */
3157
+ sid?: string;
3158
+ }
3159
+ /**
3160
+ * Событие просмотра поста для {@link TelemetryResource.dwell}.
3161
+ *
3162
+ * Пост определяется меткой показа `vs` и, при наличии, контекстом источника `sc`; поля
3163
+ * `postId` эндпоинт `/api/v1/i` не принимает.
3164
+ */
3165
+ interface DwellEntry {
3166
+ /** Метка показа — поле `vs` объекта поста. Уходит в поле `v`. */
3167
+ vs: string;
3168
+ /** Время появления поста в зоне видимости, epoch-мс. Поле `et`. */
3169
+ enterAt: number;
3170
+ /** Время ухода из зоны видимости, epoch-мс. Поле `xt`. */
3171
+ exitAt: number;
3172
+ /** Причина завершения просмотра. Поле `r`. */
3173
+ reason: ViewReason;
3174
+ /**
3175
+ * Длительность просмотра в мс. Поле `md`.
3176
+ *
3177
+ * Если не задано, вычисляется как `exitAt − enterAt`.
3178
+ */
3179
+ durationMs?: number;
3180
+ /** Контекст источника показа. Поле `sc`. */
3181
+ sourceContext?: string;
3182
+ /** Источник показа. Применим к `PostPage`/`Link`. Поле `s`. */
3183
+ source?: ViewSource;
3184
+ /** Повторный просмотр: пост уже встречался в этой сессии. Уходит как `b: 1`. */
3185
+ repeat?: boolean;
3186
+ }
3187
+ /** Событие взаимодействия с контентом для {@link TelemetryResource.interaction}. */
3188
+ interface InteractionEntry {
3189
+ /** Тип взаимодействия. Поле `t`. */
3190
+ type: InteractionType;
3191
+ /** Метка показа — поле `vs` объекта поста. Поле `v`. */
3192
+ vs: string;
3193
+ /** Идентификатор поста. Поле `ai`. */
3194
+ postId: string;
3195
+ /** Индекс вложения (с нуля) — для {@link InteractionType.PhotoOpen}. Поле `mi`. */
3196
+ mediaIndex?: number;
3197
+ /** Источник показа. Поле `s`. */
3198
+ source?: ViewSource;
3199
+ /** Просмотрено мс — для {@link InteractionType.VideoProgress}. Поле `pm`. */
3200
+ positionMs?: number;
3201
+ /** Длительность видео в мс — для {@link InteractionType.VideoProgress}. Поле `dm`. */
3202
+ durationMs?: number;
3203
+ }
3204
+ /**
3205
+ * Телеметрия просмотров.
3206
+ *
3207
+ * @experimental Недокументированные эндпоинты `/api/v1/i` (просмотры) и `/api/v1/x`
3208
+ * (взаимодействия); формат полей может измениться без предупреждения.
3209
+ *
3210
+ * Методы не вызываются автоматически — телеметрия отправляется только явным вызовом.
3211
+ *
3212
+ * Оба эндпоинта принимают конверт `{ sid, e }`, где `sid` — идентификатор сессии
3213
+ * телеметрии: по умолчанию один на объект, переопределяется опцией `sid`.
3214
+ *
3215
+ * Доступна как `itd.telemetry`.
3216
+ */
3217
+ declare class TelemetryResource extends BaseResource {
3218
+ #private;
3219
+ /**
3220
+ * Идентификатор сессии телеметрии (`sid`).
3221
+ *
3222
+ * Создаётся лениво при первом обращении и далее неизменен.
3223
+ */
3224
+ get sessionId(): string;
3225
+ /**
3226
+ * Отправляет события просмотра постов (`POST /api/v1/i`).
3227
+ *
3228
+ * @experimental См. предупреждение у {@link TelemetryResource}.
3229
+ */
3230
+ dwell(entries: DwellEntry[], options?: TelemetryOptions): Promise<unknown>;
3231
+ /**
3232
+ * Отправляет события взаимодействия с контентом (`POST /api/v1/x`).
3233
+ *
3234
+ * @experimental См. предупреждение у {@link TelemetryResource}.
3235
+ */
3236
+ interaction(entries: InteractionEntry[], options?: TelemetryOptions): Promise<unknown>;
3237
+ }
3238
+
3124
3239
  /**
3125
3240
  * Параметры списков пользователей.
3126
3241
  *
@@ -3782,4 +3897,4 @@ interface SseTransportOptions {
3782
3897
  idleTimeout?: number;
3783
3898
  }
3784
3899
 
3785
- export { IMAGE_MIME_TYPES as $, ALLOWED_MIME_TYPES as A, type BuilderInput as B, type CaptchaCredentials as C, type CreatePollInput as D, type CreatePostInput as E, type FileReader as F, type CreateReportInput as G, type Credentials as H, type ItdSession as I, type CredentialsAuth as J, DEFAULT_BASE_URL as K, DEFAULT_TIMEOUT as L, DEFAULT_USER_AGENT as M, DEVICE_ID_HEADER as N, DetectedRuntime as O, type DwellEntry as P, type ErrorContextHook as Q, type FeedParams as R, FeedTab as S, type TokenStorage as T, type FileInput as U, FilesResource as V, type FollowResult as W, type ForgotPasswordInput as X, type Hashtag as Y, type HashtagPostsParams as Z, HashtagsResource as _, ItdClient as a, PostsResource as a$, type ImageMimeType as a0, type InteractionEntry as a1, type IsoDate as a2, ItdAbortError as a3, ItdApiError as a4, type ItdApiErrorInit as a5, ItdApiErrorKind as a6, ItdAuthError as a7, type ItdBuilder as a8, ItdConfigError as a9, type Notification as aA, type NotificationEvent as aB, type NotificationListParams as aC, type NotificationSettings as aD, NotificationType as aE, NotificationsResource as aF, OAuthProvider as aG, type Page as aH, type PageState as aI, PaginationMode as aJ, Paginator as aK, type PaymentMethod as aL, type Pin as aM, type PinPostResult as aN, type PinsResult as aO, PlatformResource as aP, type PluginContext as aQ, type Poll as aR, PollBuilder as aS, type PollInput as aT, type PollOption as aU, type PollTransportOptions as aV, type Portal as aW, type Post as aX, PostBuilder as aY, type PostInput as aZ, type PostStats as a_, ItdConflictError as aa, ItdError as ab, ItdErrorCode as ac, ItdErrorKind as ad, type ItdFieldErrors as ae, ItdForbiddenError as af, ItdNetworkError as ag, ItdNotFoundError as ah, ItdPhoneVerificationError as ai, type ItdPlugin as aj, ItdRateLimitError as ak, ItdRealtime as al, ItdServerError as am, ItdTimeoutError as an, ItdValidationError as ao, LIBRARY_VERSION as ap, type LikeResult as aq, LikesVisibility as ar, type Listener as as, LocalStorageTokenStorage as at, type Logger as au, type Loose as av, MAX_RECONNECT_ATTEMPTS as aw, MemoryTokenStorage as ax, type MyProfile as ay, NOTIFICATION_TYPE_ALIASES as az, type ItdClientOptions as b, WallAccess as b$, type PrivacySettings as b0, type Profile as b1, type PublicProfile as b2, RECONNECT_BACKOFF as b3, RECONNECT_JITTER as b4, REFRESH_COOKIE as b5, REFRESH_COOKIE_PATH as b6, type RateLimitOptions as b7, type RawRequestOptions as b8, type RealtimeEvents as b9, SpanType as bA, type SseTransportOptions as bB, type Subscription as bC, SubscriptionResource as bD, type SubscriptionState as bE, TURNSTILE_SITE_KEY as bF, TelemetryResource as bG, type Transformer as bH, type TransportContext as bI, type TransportEvent as bJ, UnauthorizedStreamError as bK, type Unsubscribe as bL, type UpdateNotificationSettingsInput as bM, type UpdatePrivacyInput as bN, type UpdateProfileInput as bO, type UploadOptions as bP, type UploadedFile as bQ, type UserId as bR, type UserListParams as bS, type UserPostsParams as bT, type UserRef as bU, type UserSummary as bV, UsersResource as bW, VIDEO_MIME_TYPES as bX, VerificationResource as bY, type VerificationStatus as bZ, type VideoMimeType as b_, type RealtimeOptions as ba, RealtimeStatus as bb, type RealtimeTransport as bc, RealtimeTransportKind as bd, type ReconnectOptions as be, type RepliesParams as bf, type Report as bg, ReportBuilder as bh, type ReportInput as bi, ReportReason as bj, ReportTargetType as bk, ReportsResource as bl, type RequestContext as bm, type RequestOptions as bn, type ResetPasswordInput as bo, type ResponseContext as bp, type RetryContext as bq, type RetryOptions as br, RuntimeMode as bs, STREAM_PATH as bt, SearchResource as bu, type SearchResult as bv, type Session as bw, type SignInResult as bx, SignInStatus as by, type Span as bz, AUDIO_MIME_TYPES as c, canonicalNotificationType as c0, comment as c1, createTokenStorage as c2, formatNotificationText as c3, isBuilder as c4, isItdApiError as c5, isItdAuthError as c6, isItdConflictError as c7, isItdError as c8, isItdForbiddenError as c9, isItdNotFoundError as ca, isItdPhoneVerificationError as cb, isItdRateLimitError as cc, isItdServerError as cd, isItdValidationError as ce, isKnownNotificationType as cf, isMyProfile as cg, normalizeNotification as ch, poll as ci, post as cj, readNotificationEvent as ck, readUnreadCountEvent as cl, report as cm, resolveNotificationUrl as cn, toDate as co, createClient as cp, AUTH_FLAG_COOKIE as d, AUTH_PATHS as e, type Actor as f, type AllowedMimeType as g, type Announcement as h, type AnnouncementButton as i, type Attachment as j, AttachmentType as k, type AudioMimeType as l, type AuthInput as m, AuthResource as n, type Author as o, type ChangelogEntry as p, type Clan as q, type ClientHooks as r, type Comment as s, CommentBuilder as t, type CommentInput as u, type CommentReplyTo as v, CommentSort as w, type CommentsParams as x, CommentsResource as y, type CreateCommentInput as z };
3900
+ export { HashtagsResource as $, ALLOWED_MIME_TYPES as A, type BuilderInput as B, type CaptchaCredentials as C, type CreateCommentInput as D, type CreatePollInput as E, type FileReader as F, type CreatePostInput as G, type CreateReportInput as H, type ItdSession as I, type Credentials as J, type CredentialsAuth as K, DEFAULT_BASE_URL as L, DEFAULT_TIMEOUT as M, DEFAULT_USER_AGENT as N, DEVICE_ID_HEADER as O, DetectedRuntime as P, type DwellEntry as Q, type ErrorContextHook as R, type FeedParams as S, type TokenStorage as T, FeedTab as U, type FileInput as V, FilesResource as W, type FollowResult as X, type ForgotPasswordInput as Y, type Hashtag as Z, type HashtagPostsParams as _, ItdClient as a, type PostInput as a$, IMAGE_MIME_TYPES as a0, type ImageMimeType as a1, type InteractionEntry as a2, InteractionType as a3, type IsoDate as a4, ItdAbortError as a5, ItdApiError as a6, type ItdApiErrorInit as a7, ItdApiErrorKind as a8, ItdAuthError as a9, type MyProfile as aA, NOTIFICATION_TYPE_ALIASES as aB, type Notification as aC, type NotificationEvent as aD, type NotificationListParams as aE, type NotificationSettings as aF, NotificationType as aG, NotificationsResource as aH, OAuthProvider as aI, type Page as aJ, type PageState as aK, PaginationMode as aL, Paginator as aM, type PaymentMethod as aN, type Pin as aO, type PinPostResult as aP, type PinsResult as aQ, PlatformResource as aR, type PluginContext as aS, type Poll as aT, PollBuilder as aU, type PollInput as aV, type PollOption as aW, type PollTransportOptions as aX, type Portal as aY, type Post as aZ, PostBuilder as a_, type ItdBuilder as aa, ItdConfigError as ab, ItdConflictError as ac, ItdError as ad, ItdErrorCode as ae, ItdErrorKind as af, type ItdFieldErrors as ag, ItdForbiddenError as ah, ItdNetworkError as ai, ItdNotFoundError as aj, ItdPhoneVerificationError as ak, type ItdPlugin as al, ItdRateLimitError as am, ItdRealtime as an, ItdServerError as ao, ItdTimeoutError as ap, ItdValidationError as aq, LIBRARY_VERSION as ar, type LikeResult as as, LikesVisibility as at, type Listener as au, LocalStorageTokenStorage as av, type Logger as aw, type Loose as ax, MAX_RECONNECT_ATTEMPTS as ay, MemoryTokenStorage as az, type ItdClientOptions as b, VerificationResource as b$, type PostStats as b0, PostsResource as b1, type PrivacySettings as b2, type Profile as b3, type PublicProfile as b4, RECONNECT_BACKOFF as b5, RECONNECT_JITTER as b6, REFRESH_COOKIE as b7, REFRESH_COOKIE_PATH as b8, type RateLimitOptions as b9, SignInStatus as bA, type Span as bB, SpanType as bC, type SseTransportOptions as bD, type Subscription as bE, SubscriptionResource as bF, type SubscriptionState as bG, TURNSTILE_SITE_KEY as bH, type TelemetryOptions as bI, TelemetryResource as bJ, type Transformer as bK, type TransportContext as bL, type TransportEvent as bM, UnauthorizedStreamError as bN, type Unsubscribe as bO, type UpdateNotificationSettingsInput as bP, type UpdatePrivacyInput as bQ, type UpdateProfileInput as bR, type UploadOptions as bS, type UploadedFile as bT, type UserId as bU, type UserListParams as bV, type UserPostsParams as bW, type UserRef as bX, type UserSummary as bY, UsersResource as bZ, VIDEO_MIME_TYPES as b_, type RawRequestOptions as ba, type RealtimeEvents as bb, type RealtimeOptions as bc, RealtimeStatus as bd, type RealtimeTransport as be, RealtimeTransportKind as bf, type ReconnectOptions as bg, type RepliesParams as bh, type Report as bi, ReportBuilder as bj, type ReportInput as bk, ReportReason as bl, ReportTargetType as bm, ReportsResource as bn, type RequestContext as bo, type RequestOptions as bp, type ResetPasswordInput as bq, type ResponseContext as br, type RetryContext as bs, type RetryOptions as bt, RuntimeMode as bu, STREAM_PATH as bv, SearchResource as bw, type SearchResult as bx, type Session as by, type SignInResult as bz, AUDIO_MIME_TYPES as c, type VerificationStatus as c0, type VideoMimeType as c1, ViewReason as c2, ViewSource as c3, WallAccess as c4, canonicalNotificationType as c5, comment as c6, createTokenStorage as c7, formatNotificationText as c8, isBuilder as c9, isItdApiError as ca, isItdAuthError as cb, isItdConflictError as cc, isItdError as cd, isItdForbiddenError as ce, isItdNotFoundError as cf, isItdPhoneVerificationError as cg, isItdRateLimitError as ch, isItdServerError as ci, isItdValidationError as cj, isKnownNotificationType as ck, isMyProfile as cl, normalizeNotification as cm, poll as cn, post as co, readNotificationEvent as cp, readUnreadCountEvent as cq, report as cr, resolveNotificationUrl as cs, toDate as ct, createClient as cu, AUTH_FLAG_COOKIE as d, AUTH_PATHS as e, AccessType as f, type Actor as g, type AllowedMimeType as h, type Announcement as i, type AnnouncementButton as j, type Attachment as k, AttachmentType as l, type AudioMimeType as m, type AuthInput as n, AuthResource as o, type Author as p, type ChangelogEntry as q, type Clan as r, type ClientHooks as s, type Comment as t, CommentBuilder as u, type CommentInput as v, type CommentReplyTo as w, CommentSort as x, type CommentsParams as y, CommentsResource as z };
@@ -156,22 +156,46 @@ declare const RealtimeStatus: Readonly<{
156
156
  }>;
157
157
  type RealtimeStatus = (typeof RealtimeStatus)[keyof typeof RealtimeStatus];
158
158
  /**
159
- * Кто может писать на стену профиля.
159
+ * Уровень доступа к разделу профиля.
160
160
  *
161
- * Документация перечисляет значения не полностью, поэтому тип открытый: объект ниже —
162
- * справочник известных значений, но сервер может прислать и другое.
161
+ * Общий набор значений для полей `wallAccess` и `likesVisibility` настроек приватности.
162
+ * Тип открытый: сервер может прислать значение вне этого перечня.
163
163
  */
164
+ declare const AccessType: Readonly<{
165
+ /** Никто. */
166
+ readonly Nobody: "nobody";
167
+ /** Только взаимные подписки. */
168
+ readonly Mutual: "mutual";
169
+ /** Подписчики. */
170
+ readonly Followers: "followers";
171
+ /** Все. */
172
+ readonly Everyone: "everyone";
173
+ }>;
174
+ type AccessType = Loose<(typeof AccessType)[keyof typeof AccessType]>;
175
+ /** Кто может писать на стену профиля. Псевдоним {@link AccessType}. */
164
176
  declare const WallAccess: Readonly<{
177
+ /** Никто. */
178
+ readonly Nobody: "nobody";
179
+ /** Только взаимные подписки. */
180
+ readonly Mutual: "mutual";
181
+ /** Подписчики. */
182
+ readonly Followers: "followers";
183
+ /** Все. */
165
184
  readonly Everyone: "everyone";
166
185
  }>;
167
- type WallAccess = Loose<(typeof WallAccess)[keyof typeof WallAccess]>;
168
- /** Кто видит реакции пользователя. Список в документации неполный. */
186
+ type WallAccess = AccessType;
187
+ /** Кто видит реакции пользователя. Псевдоним {@link AccessType}. */
169
188
  declare const LikesVisibility: Readonly<{
170
- readonly Everyone: "everyone";
189
+ /** Никто. */
190
+ readonly Nobody: "nobody";
171
191
  /** Только взаимные подписки. */
172
192
  readonly Mutual: "mutual";
193
+ /** Подписчики. */
194
+ readonly Followers: "followers";
195
+ /** Все. */
196
+ readonly Everyone: "everyone";
173
197
  }>;
174
- type LikesVisibility = Loose<(typeof LikesVisibility)[keyof typeof LikesVisibility]>;
198
+ type LikesVisibility = AccessType;
175
199
  /**
176
200
  * Канонический тип уведомления (новое поколение имён).
177
201
  *
@@ -208,6 +232,55 @@ declare const NotificationType: Readonly<{
208
232
  readonly VerificationRejected: "verification_rejected";
209
233
  }>;
210
234
  type NotificationType = Loose<(typeof NotificationType)[keyof typeof NotificationType]>;
235
+ /**
236
+ * Тип взаимодействия с контентом в телеметрии (`POST /api/v1/x`, поле `t`).
237
+ *
238
+ * Кодируется числом.
239
+ */
240
+ declare const InteractionType: Readonly<{
241
+ /** Открытие фотографии. */
242
+ readonly PhotoOpen: 1;
243
+ /** Прогресс просмотра видео. Несёт поля `pm`/`dm`. */
244
+ readonly VideoProgress: 2;
245
+ }>;
246
+ type InteractionType = (typeof InteractionType)[keyof typeof InteractionType];
247
+ /**
248
+ * Источник показа поста в телеметрии (поле `s`).
249
+ *
250
+ * Кодируется числом. Поле применимо к источникам `PostPage` и `Link`; для лент источник
251
+ * передаётся контекстом `sc`.
252
+ */
253
+ declare const ViewSource: Readonly<{
254
+ readonly FeedGlobal: 1;
255
+ readonly FeedFollowing: 2;
256
+ readonly FeedClan: 3;
257
+ readonly Profile: 4;
258
+ readonly Hashtag: 5;
259
+ readonly PostPage: 6;
260
+ readonly Link: 7;
261
+ readonly Search: 8;
262
+ }>;
263
+ type ViewSource = (typeof ViewSource)[keyof typeof ViewSource];
264
+ /**
265
+ * Причина завершения просмотра поста в телеметрии (`POST /api/v1/i`, поле `r`).
266
+ *
267
+ * Кодируется числом.
268
+ */
269
+ declare const ViewReason: Readonly<{
270
+ /** Пост ушёл из зоны видимости при обычной прокрутке. */
271
+ readonly Normal: 0;
272
+ /** Потеря фокуса окна. */
273
+ readonly Blur: 1;
274
+ /** Вкладка скрыта. */
275
+ readonly Hidden: 2;
276
+ /** Уход со страницы (`pagehide`). */
277
+ readonly PageHide: 3;
278
+ /** Элемент перестал наблюдаться. */
279
+ readonly Unobserve: 4;
280
+ /** Достигнут порог времени просмотра. */
281
+ readonly ThresholdMet: 5;
282
+ }>;
283
+ type ViewReason = (typeof ViewReason)[keyof typeof ViewReason];
211
284
  /**
212
285
  * Строковые коды ошибок из поля `code`.
213
286
  *
@@ -1474,7 +1547,7 @@ declare const DEFAULT_TIMEOUT = 30000;
1474
1547
  /**
1475
1548
  * Версия библиотеки — попадает в `User-Agent`.
1476
1549
  */
1477
- declare const LIBRARY_VERSION = "0.0.6";
1550
+ declare const LIBRARY_VERSION = "0.0.7";
1478
1551
  /**
1479
1552
  * `User-Agent` по умолчанию.
1480
1553
  *
@@ -1485,7 +1558,7 @@ declare const LIBRARY_VERSION = "0.0.6";
1485
1558
  * В браузере заголовок не выставляется — `User-Agent` там запрещён к изменению, и среда
1486
1559
  * молча его игнорирует.
1487
1560
  */
1488
- declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0.6; +https://github.com/KiowDev/itd-api)";
1561
+ declare const DEFAULT_USER_AGENT = "Mozilla/5.0 (compatible; itd-api/0.0.7; +https://github.com/KiowDev/itd-api)";
1489
1562
  /**
1490
1563
  * Настройки повторов со всеми значениями по умолчанию.
1491
1564
  *
@@ -2833,54 +2906,6 @@ declare class PlatformResource extends BaseResource {
2833
2906
  /** Загружает баннер текущего события — виджет «портал». */
2834
2907
  portal(options?: RequestOptions): Promise<Portal>;
2835
2908
  }
2836
- /** Запись о времени просмотра поста. */
2837
- interface DwellEntry {
2838
- /** Идентификатор поста. */
2839
- postId: string;
2840
- /** Сколько миллисекунд пост был виден. */
2841
- duration: number;
2842
- /** Служебная метка показа из поля `vs` объекта поста. */
2843
- vs?: string;
2844
- }
2845
- /** Запись о взаимодействии с контентом. */
2846
- interface InteractionEntry {
2847
- /** Тип взаимодействия: `photo_open`, `video_progress` и подобные. */
2848
- type: string;
2849
- /** Значение, смысл которого зависит от типа: доля просмотра, номер кадра. */
2850
- value?: number;
2851
- /** Идентификатор поста. */
2852
- postId?: string;
2853
- /** Идентификатор вложения. */
2854
- attachmentId?: string;
2855
- /** Служебная метка показа. */
2856
- vs?: string;
2857
- }
2858
- /**
2859
- * Телеметрия просмотров.
2860
- *
2861
- * @experimental Эндпоинты `/api/v1/i` и `/api/v1/x` нигде не описаны, а схема их полей
2862
- * не проверена на реальных запросах и может измениться без предупреждения.
2863
- *
2864
- * **Библиотека никогда не отправляет телеметрию сама.** Эти методы нужны только тем,
2865
- * кто пишет собственный клиент платформы; всем остальным их вызывать не требуется.
2866
- *
2867
- * Доступна как `itd.telemetry`.
2868
- */
2869
- declare class TelemetryResource extends BaseResource {
2870
- /**
2871
- * Отправляет время просмотра постов.
2872
- *
2873
- * @experimental Имена полей на проводе сжаты (`ai`, `v`, `s`), и их соответствие
2874
- * смыслу **не проверено** на реальных запросах. Может измениться без предупреждения.
2875
- */
2876
- dwell(entries: DwellEntry[], options?: RequestOptions): Promise<unknown>;
2877
- /**
2878
- * Отправляет события взаимодействия с контентом.
2879
- *
2880
- * @experimental См. предупреждение у {@link TelemetryResource}.
2881
- */
2882
- interaction(entries: InteractionEntry[], options?: RequestOptions): Promise<unknown>;
2883
- }
2884
2909
 
2885
2910
  /** Параметры запроса списка уведомлений. */
2886
2911
  interface NotificationListParams extends RequestOptions {
@@ -3121,6 +3146,96 @@ declare class PostsResource extends BaseResource {
3121
3146
  voiceComment(postId: string, audio: FileInput, options?: RequestOptions): Promise<Comment>;
3122
3147
  }
3123
3148
 
3149
+ /**
3150
+ * Общие опции запроса телеметрии.
3151
+ *
3152
+ * Помимо {@link RequestOptions} позволяет задать `sid` — идентификатор сессии телеметрии.
3153
+ * По умолчанию он заводится один на объект {@link TelemetryResource}.
3154
+ */
3155
+ interface TelemetryOptions extends RequestOptions {
3156
+ /** Переопределяет идентификатор сессии телеметрии (`sid`) для этого запроса. */
3157
+ sid?: string;
3158
+ }
3159
+ /**
3160
+ * Событие просмотра поста для {@link TelemetryResource.dwell}.
3161
+ *
3162
+ * Пост определяется меткой показа `vs` и, при наличии, контекстом источника `sc`; поля
3163
+ * `postId` эндпоинт `/api/v1/i` не принимает.
3164
+ */
3165
+ interface DwellEntry {
3166
+ /** Метка показа — поле `vs` объекта поста. Уходит в поле `v`. */
3167
+ vs: string;
3168
+ /** Время появления поста в зоне видимости, epoch-мс. Поле `et`. */
3169
+ enterAt: number;
3170
+ /** Время ухода из зоны видимости, epoch-мс. Поле `xt`. */
3171
+ exitAt: number;
3172
+ /** Причина завершения просмотра. Поле `r`. */
3173
+ reason: ViewReason;
3174
+ /**
3175
+ * Длительность просмотра в мс. Поле `md`.
3176
+ *
3177
+ * Если не задано, вычисляется как `exitAt − enterAt`.
3178
+ */
3179
+ durationMs?: number;
3180
+ /** Контекст источника показа. Поле `sc`. */
3181
+ sourceContext?: string;
3182
+ /** Источник показа. Применим к `PostPage`/`Link`. Поле `s`. */
3183
+ source?: ViewSource;
3184
+ /** Повторный просмотр: пост уже встречался в этой сессии. Уходит как `b: 1`. */
3185
+ repeat?: boolean;
3186
+ }
3187
+ /** Событие взаимодействия с контентом для {@link TelemetryResource.interaction}. */
3188
+ interface InteractionEntry {
3189
+ /** Тип взаимодействия. Поле `t`. */
3190
+ type: InteractionType;
3191
+ /** Метка показа — поле `vs` объекта поста. Поле `v`. */
3192
+ vs: string;
3193
+ /** Идентификатор поста. Поле `ai`. */
3194
+ postId: string;
3195
+ /** Индекс вложения (с нуля) — для {@link InteractionType.PhotoOpen}. Поле `mi`. */
3196
+ mediaIndex?: number;
3197
+ /** Источник показа. Поле `s`. */
3198
+ source?: ViewSource;
3199
+ /** Просмотрено мс — для {@link InteractionType.VideoProgress}. Поле `pm`. */
3200
+ positionMs?: number;
3201
+ /** Длительность видео в мс — для {@link InteractionType.VideoProgress}. Поле `dm`. */
3202
+ durationMs?: number;
3203
+ }
3204
+ /**
3205
+ * Телеметрия просмотров.
3206
+ *
3207
+ * @experimental Недокументированные эндпоинты `/api/v1/i` (просмотры) и `/api/v1/x`
3208
+ * (взаимодействия); формат полей может измениться без предупреждения.
3209
+ *
3210
+ * Методы не вызываются автоматически — телеметрия отправляется только явным вызовом.
3211
+ *
3212
+ * Оба эндпоинта принимают конверт `{ sid, e }`, где `sid` — идентификатор сессии
3213
+ * телеметрии: по умолчанию один на объект, переопределяется опцией `sid`.
3214
+ *
3215
+ * Доступна как `itd.telemetry`.
3216
+ */
3217
+ declare class TelemetryResource extends BaseResource {
3218
+ #private;
3219
+ /**
3220
+ * Идентификатор сессии телеметрии (`sid`).
3221
+ *
3222
+ * Создаётся лениво при первом обращении и далее неизменен.
3223
+ */
3224
+ get sessionId(): string;
3225
+ /**
3226
+ * Отправляет события просмотра постов (`POST /api/v1/i`).
3227
+ *
3228
+ * @experimental См. предупреждение у {@link TelemetryResource}.
3229
+ */
3230
+ dwell(entries: DwellEntry[], options?: TelemetryOptions): Promise<unknown>;
3231
+ /**
3232
+ * Отправляет события взаимодействия с контентом (`POST /api/v1/x`).
3233
+ *
3234
+ * @experimental См. предупреждение у {@link TelemetryResource}.
3235
+ */
3236
+ interaction(entries: InteractionEntry[], options?: TelemetryOptions): Promise<unknown>;
3237
+ }
3238
+
3124
3239
  /**
3125
3240
  * Параметры списков пользователей.
3126
3241
  *
@@ -3782,4 +3897,4 @@ interface SseTransportOptions {
3782
3897
  idleTimeout?: number;
3783
3898
  }
3784
3899
 
3785
- export { IMAGE_MIME_TYPES as $, ALLOWED_MIME_TYPES as A, type BuilderInput as B, type CaptchaCredentials as C, type CreatePollInput as D, type CreatePostInput as E, type FileReader as F, type CreateReportInput as G, type Credentials as H, type ItdSession as I, type CredentialsAuth as J, DEFAULT_BASE_URL as K, DEFAULT_TIMEOUT as L, DEFAULT_USER_AGENT as M, DEVICE_ID_HEADER as N, DetectedRuntime as O, type DwellEntry as P, type ErrorContextHook as Q, type FeedParams as R, FeedTab as S, type TokenStorage as T, type FileInput as U, FilesResource as V, type FollowResult as W, type ForgotPasswordInput as X, type Hashtag as Y, type HashtagPostsParams as Z, HashtagsResource as _, ItdClient as a, PostsResource as a$, type ImageMimeType as a0, type InteractionEntry as a1, type IsoDate as a2, ItdAbortError as a3, ItdApiError as a4, type ItdApiErrorInit as a5, ItdApiErrorKind as a6, ItdAuthError as a7, type ItdBuilder as a8, ItdConfigError as a9, type Notification as aA, type NotificationEvent as aB, type NotificationListParams as aC, type NotificationSettings as aD, NotificationType as aE, NotificationsResource as aF, OAuthProvider as aG, type Page as aH, type PageState as aI, PaginationMode as aJ, Paginator as aK, type PaymentMethod as aL, type Pin as aM, type PinPostResult as aN, type PinsResult as aO, PlatformResource as aP, type PluginContext as aQ, type Poll as aR, PollBuilder as aS, type PollInput as aT, type PollOption as aU, type PollTransportOptions as aV, type Portal as aW, type Post as aX, PostBuilder as aY, type PostInput as aZ, type PostStats as a_, ItdConflictError as aa, ItdError as ab, ItdErrorCode as ac, ItdErrorKind as ad, type ItdFieldErrors as ae, ItdForbiddenError as af, ItdNetworkError as ag, ItdNotFoundError as ah, ItdPhoneVerificationError as ai, type ItdPlugin as aj, ItdRateLimitError as ak, ItdRealtime as al, ItdServerError as am, ItdTimeoutError as an, ItdValidationError as ao, LIBRARY_VERSION as ap, type LikeResult as aq, LikesVisibility as ar, type Listener as as, LocalStorageTokenStorage as at, type Logger as au, type Loose as av, MAX_RECONNECT_ATTEMPTS as aw, MemoryTokenStorage as ax, type MyProfile as ay, NOTIFICATION_TYPE_ALIASES as az, type ItdClientOptions as b, WallAccess as b$, type PrivacySettings as b0, type Profile as b1, type PublicProfile as b2, RECONNECT_BACKOFF as b3, RECONNECT_JITTER as b4, REFRESH_COOKIE as b5, REFRESH_COOKIE_PATH as b6, type RateLimitOptions as b7, type RawRequestOptions as b8, type RealtimeEvents as b9, SpanType as bA, type SseTransportOptions as bB, type Subscription as bC, SubscriptionResource as bD, type SubscriptionState as bE, TURNSTILE_SITE_KEY as bF, TelemetryResource as bG, type Transformer as bH, type TransportContext as bI, type TransportEvent as bJ, UnauthorizedStreamError as bK, type Unsubscribe as bL, type UpdateNotificationSettingsInput as bM, type UpdatePrivacyInput as bN, type UpdateProfileInput as bO, type UploadOptions as bP, type UploadedFile as bQ, type UserId as bR, type UserListParams as bS, type UserPostsParams as bT, type UserRef as bU, type UserSummary as bV, UsersResource as bW, VIDEO_MIME_TYPES as bX, VerificationResource as bY, type VerificationStatus as bZ, type VideoMimeType as b_, type RealtimeOptions as ba, RealtimeStatus as bb, type RealtimeTransport as bc, RealtimeTransportKind as bd, type ReconnectOptions as be, type RepliesParams as bf, type Report as bg, ReportBuilder as bh, type ReportInput as bi, ReportReason as bj, ReportTargetType as bk, ReportsResource as bl, type RequestContext as bm, type RequestOptions as bn, type ResetPasswordInput as bo, type ResponseContext as bp, type RetryContext as bq, type RetryOptions as br, RuntimeMode as bs, STREAM_PATH as bt, SearchResource as bu, type SearchResult as bv, type Session as bw, type SignInResult as bx, SignInStatus as by, type Span as bz, AUDIO_MIME_TYPES as c, canonicalNotificationType as c0, comment as c1, createTokenStorage as c2, formatNotificationText as c3, isBuilder as c4, isItdApiError as c5, isItdAuthError as c6, isItdConflictError as c7, isItdError as c8, isItdForbiddenError as c9, isItdNotFoundError as ca, isItdPhoneVerificationError as cb, isItdRateLimitError as cc, isItdServerError as cd, isItdValidationError as ce, isKnownNotificationType as cf, isMyProfile as cg, normalizeNotification as ch, poll as ci, post as cj, readNotificationEvent as ck, readUnreadCountEvent as cl, report as cm, resolveNotificationUrl as cn, toDate as co, createClient as cp, AUTH_FLAG_COOKIE as d, AUTH_PATHS as e, type Actor as f, type AllowedMimeType as g, type Announcement as h, type AnnouncementButton as i, type Attachment as j, AttachmentType as k, type AudioMimeType as l, type AuthInput as m, AuthResource as n, type Author as o, type ChangelogEntry as p, type Clan as q, type ClientHooks as r, type Comment as s, CommentBuilder as t, type CommentInput as u, type CommentReplyTo as v, CommentSort as w, type CommentsParams as x, CommentsResource as y, type CreateCommentInput as z };
3900
+ export { HashtagsResource as $, ALLOWED_MIME_TYPES as A, type BuilderInput as B, type CaptchaCredentials as C, type CreateCommentInput as D, type CreatePollInput as E, type FileReader as F, type CreatePostInput as G, type CreateReportInput as H, type ItdSession as I, type Credentials as J, type CredentialsAuth as K, DEFAULT_BASE_URL as L, DEFAULT_TIMEOUT as M, DEFAULT_USER_AGENT as N, DEVICE_ID_HEADER as O, DetectedRuntime as P, type DwellEntry as Q, type ErrorContextHook as R, type FeedParams as S, type TokenStorage as T, FeedTab as U, type FileInput as V, FilesResource as W, type FollowResult as X, type ForgotPasswordInput as Y, type Hashtag as Z, type HashtagPostsParams as _, ItdClient as a, type PostInput as a$, IMAGE_MIME_TYPES as a0, type ImageMimeType as a1, type InteractionEntry as a2, InteractionType as a3, type IsoDate as a4, ItdAbortError as a5, ItdApiError as a6, type ItdApiErrorInit as a7, ItdApiErrorKind as a8, ItdAuthError as a9, type MyProfile as aA, NOTIFICATION_TYPE_ALIASES as aB, type Notification as aC, type NotificationEvent as aD, type NotificationListParams as aE, type NotificationSettings as aF, NotificationType as aG, NotificationsResource as aH, OAuthProvider as aI, type Page as aJ, type PageState as aK, PaginationMode as aL, Paginator as aM, type PaymentMethod as aN, type Pin as aO, type PinPostResult as aP, type PinsResult as aQ, PlatformResource as aR, type PluginContext as aS, type Poll as aT, PollBuilder as aU, type PollInput as aV, type PollOption as aW, type PollTransportOptions as aX, type Portal as aY, type Post as aZ, PostBuilder as a_, type ItdBuilder as aa, ItdConfigError as ab, ItdConflictError as ac, ItdError as ad, ItdErrorCode as ae, ItdErrorKind as af, type ItdFieldErrors as ag, ItdForbiddenError as ah, ItdNetworkError as ai, ItdNotFoundError as aj, ItdPhoneVerificationError as ak, type ItdPlugin as al, ItdRateLimitError as am, ItdRealtime as an, ItdServerError as ao, ItdTimeoutError as ap, ItdValidationError as aq, LIBRARY_VERSION as ar, type LikeResult as as, LikesVisibility as at, type Listener as au, LocalStorageTokenStorage as av, type Logger as aw, type Loose as ax, MAX_RECONNECT_ATTEMPTS as ay, MemoryTokenStorage as az, type ItdClientOptions as b, VerificationResource as b$, type PostStats as b0, PostsResource as b1, type PrivacySettings as b2, type Profile as b3, type PublicProfile as b4, RECONNECT_BACKOFF as b5, RECONNECT_JITTER as b6, REFRESH_COOKIE as b7, REFRESH_COOKIE_PATH as b8, type RateLimitOptions as b9, SignInStatus as bA, type Span as bB, SpanType as bC, type SseTransportOptions as bD, type Subscription as bE, SubscriptionResource as bF, type SubscriptionState as bG, TURNSTILE_SITE_KEY as bH, type TelemetryOptions as bI, TelemetryResource as bJ, type Transformer as bK, type TransportContext as bL, type TransportEvent as bM, UnauthorizedStreamError as bN, type Unsubscribe as bO, type UpdateNotificationSettingsInput as bP, type UpdatePrivacyInput as bQ, type UpdateProfileInput as bR, type UploadOptions as bS, type UploadedFile as bT, type UserId as bU, type UserListParams as bV, type UserPostsParams as bW, type UserRef as bX, type UserSummary as bY, UsersResource as bZ, VIDEO_MIME_TYPES as b_, type RawRequestOptions as ba, type RealtimeEvents as bb, type RealtimeOptions as bc, RealtimeStatus as bd, type RealtimeTransport as be, RealtimeTransportKind as bf, type ReconnectOptions as bg, type RepliesParams as bh, type Report as bi, ReportBuilder as bj, type ReportInput as bk, ReportReason as bl, ReportTargetType as bm, ReportsResource as bn, type RequestContext as bo, type RequestOptions as bp, type ResetPasswordInput as bq, type ResponseContext as br, type RetryContext as bs, type RetryOptions as bt, RuntimeMode as bu, STREAM_PATH as bv, SearchResource as bw, type SearchResult as bx, type Session as by, type SignInResult as bz, AUDIO_MIME_TYPES as c, type VerificationStatus as c0, type VideoMimeType as c1, ViewReason as c2, ViewSource as c3, WallAccess as c4, canonicalNotificationType as c5, comment as c6, createTokenStorage as c7, formatNotificationText as c8, isBuilder as c9, isItdApiError as ca, isItdAuthError as cb, isItdConflictError as cc, isItdError as cd, isItdForbiddenError as ce, isItdNotFoundError as cf, isItdPhoneVerificationError as cg, isItdRateLimitError as ch, isItdServerError as ci, isItdValidationError as cj, isKnownNotificationType as ck, isMyProfile as cl, normalizeNotification as cm, poll as cn, post as co, readNotificationEvent as cp, readUnreadCountEvent as cq, report as cr, resolveNotificationUrl as cs, toDate as ct, createClient as cu, AUTH_FLAG_COOKIE as d, AUTH_PATHS as e, AccessType as f, type Actor as g, type AllowedMimeType as h, type Announcement as i, type AnnouncementButton as j, type Attachment as k, AttachmentType as l, type AudioMimeType as m, type AuthInput as n, AuthResource as o, type Author as p, type ChangelogEntry as q, type Clan as r, type ClientHooks as s, type Comment as t, CommentBuilder as u, type CommentInput as v, type CommentReplyTo as w, CommentSort as x, type CommentsParams as y, CommentsResource as z };