itd-api 0.10.0 → 0.10.1

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.
Files changed (33) hide show
  1. package/dist/events/index.cjs +2 -2
  2. package/dist/events/index.d.cts +2 -2
  3. package/dist/events/index.d.ts +2 -2
  4. package/dist/events/index.js +2 -2
  5. package/dist/index.cjs +105 -58
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +160 -132
  8. package/dist/index.d.ts +160 -132
  9. package/dist/index.js +105 -58
  10. package/dist/index.js.map +1 -1
  11. package/dist/rest/index.cjs +2 -2
  12. package/dist/rest/index.d.cts +2 -2
  13. package/dist/rest/index.d.ts +2 -2
  14. package/dist/rest/index.js +2 -2
  15. package/dist/shared/{events-BNGjJVI3.d.cts → events-CZXU16qU.d.cts} +2 -2
  16. package/dist/shared/{events-B0Wtn4cF.js → events-Cipe-Fm9.js} +2 -2
  17. package/dist/shared/{events-B0Wtn4cF.js.map → events-Cipe-Fm9.js.map} +1 -1
  18. package/dist/shared/{events-CJO6q93Z.d.ts → events-D3CSlpXR.d.ts} +2 -2
  19. package/dist/shared/{events-BB791aPk.cjs → events-MtRNe_TF.cjs} +2 -2
  20. package/dist/shared/{events-BB791aPk.cjs.map → events-MtRNe_TF.cjs.map} +1 -1
  21. package/dist/shared/{render-DC5nvqcP.d.ts → render-Cs6AOXbD.d.ts} +2 -2
  22. package/dist/shared/{render-CkhvH_yh.js → render-CubTTof_.js} +2 -2
  23. package/dist/shared/{render-CkhvH_yh.js.map → render-CubTTof_.js.map} +1 -1
  24. package/dist/shared/{render-C1A57W-5.d.cts → render-bZwOk3CC.d.cts} +2 -2
  25. package/dist/shared/{render-BimHjOhw.cjs → render-dscKp9CC.cjs} +2 -2
  26. package/dist/shared/{render-BimHjOhw.cjs.map → render-dscKp9CC.cjs.map} +1 -1
  27. package/dist/shared/{url-BA5hEwj2.js → url-CntTEAxu.js} +4 -4
  28. package/dist/shared/{url-BA5hEwj2.js.map → url-CntTEAxu.js.map} +1 -1
  29. package/dist/shared/{url-CDVgMIq5.cjs → url-DgTYZN_v.cjs} +4 -4
  30. package/dist/shared/{url-CDVgMIq5.cjs.map → url-DgTYZN_v.cjs.map} +1 -1
  31. package/dist/shared/{url-DkMueFAT.d.cts → url-Dum7r_FT.d.cts} +4 -4
  32. package/dist/shared/{url-DkMueFAT.d.ts → url-Dum7r_FT.d.ts} +4 -4
  33. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as ViewReason, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as SpanType, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as WallAccess, Tt as RateLimitBucketOverride, U as isItdApiError, Ut as BuiltInOperationId, V as ItdTimeoutError, Vt as ItdClock, W as isItdAuthError, Wt as CustomOperationId, X as isItdPhoneVerificationError, Xt as operationMethod, Y as isItdNotFoundError, Yt as operationBucket, Z as isItdRateLimitError, Zt as operationRetrySafety, _ as PrivacySettings, _n as Loose, _t as OperationMethod, a as NotificationEvent, an as AccessType, b as SubscriptionState, bn as ReportTargetType, bt as ErrorContextHook, c as NotificationSettings, cn as CaptchaField, ct as Listener, d as AuthUser, dn as EventChannelStatus, dt as STATUS_SERVICE, en as RateLimitBucket, et as isItdValidationError, f as Author, fn as FeedTab, ft as LIBRARY_VERSION, g as PinsResult, gn as LikesVisibility, gt as OperationMetadata, h as Pin, hn as ItdErrorCode, i as formatNotificationText, in as UserRef, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaType, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, n as canonicalNotificationType, nn as Span, nt as AuthIdentity, o as normalizeNotification, on as AttachmentType, p as FollowResult, pn as IncidentKind, pt as FeatureOperationId, q as isItdFileError, qt as OperationId, r as isKnownNotificationType, rn as UserId, rt as AuthProvider, s as Notification, sn as CaptchaChoice, st as Emitter, t as resolveNotificationUrl, tn as IsoDate, tt as ClientConnection, u as AuthState, un as CommentSort, ut as DEFAULT_BASE_URL, v as Profile, vn as NotificationType, vt as RetrySafety, w as ItdApiErrorInit, wn as ViewSource, wt as RateLimitBucketContext, x as UserSummary, xn as ServiceState, xt as Logger, y as PublicProfile, yn as ReportReason, yt as ClientHooks, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-DkMueFAT.cjs";
2
- import { $ as ShopConsentContext, $n as PaginationMode, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as OperationExtensions, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginTeardown, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PluginApi, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as Session, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationsResource, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Subscription, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as CookieJar, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as PageState, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ClientPlugin, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformer, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as BaseResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as UpdateNotificationSettingsInput, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as Page, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as HttpClient, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as FeatureBucketDefinition, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptInterceptor, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureOperationDefinition, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as FileResolver, dt as ShopOrderItem, en as PlatformClientVersion, er as Paginator, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as PreparedBufferSource, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileOptions, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ResolveFileContext, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as ClientFeature, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureRequestOptions, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedStreamSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as mapPage, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedFileSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as NotificationListParams, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as RateLimitBucketState, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureInstallation, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginatorOptions, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ManagedClientResource, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as AttemptContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationTransformContext, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptNext, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptExtensions, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-C1A57W-5.cjs";
3
- import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-BNGjJVI3.cjs";
1
+ import { $ as isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as ViewReason, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as SpanType, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as WallAccess, Tt as RateLimitBucketOverride, U as isItdApiError, Ut as BuiltInOperationId, V as ItdTimeoutError, Vt as ItdClock, W as isItdAuthError, Wt as CustomOperationId, X as isItdPhoneVerificationError, Xt as operationMethod, Y as isItdNotFoundError, Yt as operationBucket, Z as isItdRateLimitError, Zt as operationRetrySafety, _ as PrivacySettings, _n as Loose, _t as OperationMethod, a as NotificationEvent, an as AccessType, b as SubscriptionState, bn as ReportTargetType, bt as ErrorContextHook, c as NotificationSettings, cn as CaptchaField, ct as Listener, d as AuthUser, dn as EventChannelStatus, dt as STATUS_SERVICE, en as RateLimitBucket, et as isItdValidationError, f as Author, fn as FeedTab, ft as LIBRARY_VERSION, g as PinsResult, gn as LikesVisibility, gt as OperationMetadata, h as Pin, hn as ItdErrorCode, i as formatNotificationText, in as UserRef, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaType, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, n as canonicalNotificationType, nn as Span, nt as AuthIdentity, o as normalizeNotification, on as AttachmentType, p as FollowResult, pn as IncidentKind, pt as FeatureOperationId, q as isItdFileError, qt as OperationId, r as isKnownNotificationType, rn as UserId, rt as AuthProvider, s as Notification, sn as CaptchaChoice, st as Emitter, t as resolveNotificationUrl, tn as IsoDate, tt as ClientConnection, u as AuthState, un as CommentSort, ut as DEFAULT_BASE_URL, v as Profile, vn as NotificationType, vt as RetrySafety, w as ItdApiErrorInit, wn as ViewSource, wt as RateLimitBucketContext, x as UserSummary, xn as ServiceState, xt as Logger, y as PublicProfile, yn as ReportReason, yt as ClientHooks, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-Dum7r_FT.cjs";
2
+ import { $ as ShopConsentContext, $n as PaginationMode, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as OperationExtensions, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginTeardown, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PluginApi, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as Session, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationsResource, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Subscription, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as CookieJar, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as PageState, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ClientPlugin, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformer, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as BaseResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as UpdateNotificationSettingsInput, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as Page, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as HttpClient, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as FeatureBucketDefinition, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptInterceptor, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureOperationDefinition, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as FileResolver, dt as ShopOrderItem, en as PlatformClientVersion, er as Paginator, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as PreparedBufferSource, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileOptions, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ResolveFileContext, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as ClientFeature, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureRequestOptions, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedStreamSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as mapPage, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedFileSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as NotificationListParams, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as RateLimitBucketState, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureInstallation, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginatorOptions, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ManagedClientResource, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as AttemptContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationTransformContext, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptNext, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptExtensions, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-bZwOk3CC.cjs";
3
+ import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-CZXU16qU.cjs";
4
4
  import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-BoT7msmq.cjs";
5
5
  import { a as KeyValueStoreResult, c as createKeyValueStore, d as withCodec, f as withNamespace, i as KeyValueStoreKeys, l as createRecordKeyValueStore, n as KeyValueCodec, o as MemoryKeyValueStore, r as KeyValueStore, s as RecordKeyValueStoreSource, t as EnumerableKeyValueStore, u as isEnumerableKeyValueStore } from "./shared/key-value-store-COZaNHZS.cjs";
6
6
  import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-BQrtKon9.cjs";
@@ -12,49 +12,135 @@ interface NotificationsApi extends NotificationsResource {
12
12
  readonly events: NotificationEvents;
13
13
  }
14
14
  //#endregion
15
+ //#region src/operations/auth.d.ts
16
+ /** Чем закончился запрос входа. */
17
+ declare const SignInStatus: Readonly<{
18
+ readonly Authenticated: "authenticated";
19
+ readonly OtpRequired: "otp_required";
20
+ }>;
21
+ type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
22
+ /** Результат входа: готовый токен либо продолжение через код подтверждения. */
23
+ type SignInResult = {
24
+ status: 'authenticated';
25
+ accessToken: string;
26
+ } | {
27
+ status: 'otp_required';
28
+ flowToken: string | undefined;
29
+ };
30
+ /**
31
+ * Активный провайдер капчи и поле запроса, в котором сервер ждёт токен.
32
+ *
33
+ * Оба значения открытые: провайдер может появиться новый, а имя поля сервер вправе сменить.
34
+ */
35
+ interface CaptchaProvider {
36
+ provider: CaptchaType;
37
+ field: CaptchaField;
38
+ }
39
+ /**
40
+ * Доказательство прохождения капчи: токен и его провайдер.
41
+ *
42
+ * Имя поля тела запроса SDK подставляет сам — из {@link CaptchaToken.field}, иначе
43
+ * из {@link CAPTCHA_FIELDS}.
44
+ */
45
+ interface CaptchaToken {
46
+ type: CaptchaType;
47
+ token: string;
48
+ /** Поле тела запроса. Нужно, только если сервер переименовал его. */
49
+ field?: CaptchaField | undefined;
50
+ }
51
+ /**
52
+ * Поле тела запроса по умолчанию для известных провайдеров.
53
+ *
54
+ * Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
55
+ */
56
+ declare const CAPTCHA_FIELDS: Readonly<{
57
+ readonly itd: "token";
58
+ readonly cloudflare: "turnstileToken";
59
+ }>;
60
+ /** Данные, из которых клиент строит QR-код входа. */
61
+ interface QrLoginStart {
62
+ qrId: string;
63
+ claimToken: string;
64
+ payload: string;
65
+ expiresIn: number;
66
+ captchaRequired: boolean;
67
+ }
68
+ /** Состояния, которые может вернуть проверка QR-входа. */
69
+ declare const QrLoginStatus: Readonly<{
70
+ readonly Pending: "pending";
71
+ readonly Scanned: "scanned";
72
+ readonly CaptchaRequired: "captcha_required";
73
+ readonly Authorized: "authorized";
74
+ readonly Rejected: "rejected";
75
+ }>;
76
+ type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
77
+ /** Результат проверки QR-входа. */
78
+ type QrLoginClaim = {
79
+ status: 'authorized';
80
+ accessToken: string;
81
+ expiresIn?: number;
82
+ } | {
83
+ status: 'pending' | 'scanned' | 'captcha_required' | 'rejected';
84
+ expiresIn?: number;
85
+ };
86
+ /** Состояния, приходящие из потокового наблюдения за QR-входом. */
87
+ declare const QrLoginStreamStatus: Readonly<{
88
+ readonly Pending: "pending";
89
+ readonly Scanned: "scanned";
90
+ readonly Approved: "approved";
91
+ readonly Rejected: "rejected";
92
+ }>;
93
+ type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
94
+ /** Одно событие `POST /api/v1/auth/qr/stream`. */
95
+ interface QrLoginStreamEvent {
96
+ status: QrLoginStreamStatus;
97
+ expiresIn?: number;
98
+ }
99
+ //#endregion
15
100
  //#region src/session/options.d.ts
16
101
  /**
17
- * Как проходить капчу при входе по логину и паролю.
102
+ * Источник токенов капчи.
18
103
  *
19
104
  * Токен одноразовый и живёт несколько минут, поэтому долгоживущему клиенту нужен не готовый
20
- * токен, а его источник: {@link CaptchaOptions.getToken} спрашивается перед каждым входом.
105
+ * токен, а источник: он спрашивается перед каждым запросом, которому нужна капча.
21
106
  * В Node источником служит `@itd-api/captcha` — `captcha: createCaptchaSolver()`.
22
107
  */
23
- interface CaptchaOptions {
108
+ interface CaptchaSolver {
109
+ /** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
110
+ getToken(type: CaptchaType): string | Promise<string>;
24
111
  /**
25
- * Какую капчу решать. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
112
+ * Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
26
113
  *
27
- * Явно названный провайдер экономит запрос `captcha/provider` перед каждым входом, но
28
- * перестаёт работать, если сервер переключится на другой виджет.
114
+ * Явно названный провайдер экономит запрос `captcha/provider`, но перестаёт работать,
115
+ * если сервер откажется от этого виджета.
29
116
  */
30
117
  type?: CaptchaChoice | undefined;
31
- /** Разовый токен. Для повторного входа после истечения сессии не подойдёт. */
32
- token?: string | undefined;
33
- /**
34
- * Источник свежего токена. Спрашивается перед каждым входом.
35
- *
36
- * Получает имя провайдера, чью капчу нужно решить, и возвращает токен.
37
- */
38
- getToken?: ((type: CaptchaType) => string | Promise<string>) | undefined;
39
118
  /**
40
119
  * Поле тела запроса, в котором сервер ждёт токен.
41
120
  *
42
- * Учитывается только при явно названном {@link CaptchaOptions.type}: при
121
+ * Учитывается только при явно названном {@link CaptchaSolver.type}: при
43
122
  * `CaptchaChoice.Auto` поле называет сам сервер, и его слово точнее. Пригодится,
44
123
  * если сервер переименовал поле, а версия SDK об этом ещё не знает.
45
124
  */
46
125
  field?: CaptchaField | undefined;
47
126
  }
127
+ /** Источник токенов капчи: объект с `getToken` либо сама функция. */
128
+ type CaptchaSolverInput = CaptchaSolver | ((type: CaptchaType) => string | Promise<string>);
48
129
  /**
49
130
  * Вход по логину и паролю.
50
131
  *
51
- * Вход требует токен капчи см. {@link CaptchaOptions}.
132
+ * Капчу, если сервер её потребует, пройдёт {@link SessionOptions.captcha}.
52
133
  */
53
134
  interface CredentialsAuth {
54
135
  email: string;
55
136
  password: string;
56
- /** Как проходить капчу. Без неё вход по паролю не начнётся. */
57
- captcha?: CaptchaOptions | undefined;
137
+ /**
138
+ * Готовый токен капчи на первый вход.
139
+ *
140
+ * Расходуется ровно однажды: повторный вход и восстановление сессии пойдут уже
141
+ * к {@link SessionOptions.captcha}.
142
+ */
143
+ captcha?: CaptchaToken | undefined;
58
144
  }
59
145
  /**
60
146
  * Как клиент получает доступ к API.
@@ -70,7 +156,7 @@ interface CredentialsAuth {
70
156
  * ```ts
71
157
  * new ItdClient({ auth: '<accessToken>' }); // разовый вызов
72
158
  * new ItdClient({ auth: { accessToken, refreshToken } }); // восстановить сессию
73
- * new ItdClient({ auth: { email, password, captcha: createCaptchaSolver() } }); // вход по паролю
159
+ * new ItdClient({ auth: { email, password }, captcha: createCaptchaSolver() }); // вход по паролю
74
160
  * new ItdClient({ auth: { getToken: () => vault.read() } }); // токен из внешнего источника
75
161
  * ```
76
162
  */
@@ -90,6 +176,13 @@ type AuthInput = string | {
90
176
  interface SessionOptions {
91
177
  /** Авторизация. Без неё доступны только публичные эндпоинты. */
92
178
  auth?: AuthInput | undefined;
179
+ /**
180
+ * Откуда брать токен капчи, когда сервер её потребует: при входе по паролю, регистрации,
181
+ * запросе письма для сброса пароля и подтверждении QR-входа.
182
+ *
183
+ * С этой опцией токен можно не передавать в сами методы — клиент получит его сам.
184
+ */
185
+ captcha?: CaptchaSolverInput | undefined;
93
186
  /** Где хранить сессию. По умолчанию {@link MemoryTokenStorage}. */
94
187
  storage?: TokenStorage | undefined;
95
188
  /**
@@ -128,8 +221,9 @@ interface SessionOptions {
128
221
  * @example
129
222
  * ```ts
130
223
  * const itd = new ItdClient({
131
- * auth: { email, password, captcha: createCaptchaSolver() }, // SessionOptions
132
- * rateLimit: { concurrency: 4, rps: 8 }, // RuntimeOptions
224
+ * auth: { email, password }, // SessionOptions
225
+ * captcha: createCaptchaSolver(), // SessionOptions
226
+ * rateLimit: { concurrency: 4, rps: 8 }, // RuntimeOptions
133
227
  * });
134
228
  * ```
135
229
  */
@@ -141,90 +235,10 @@ interface ItdClientOptions extends RuntimeOptions, SessionOptions {
141
235
  } | undefined;
142
236
  }
143
237
  //#endregion
144
- //#region src/operations/auth.d.ts
145
- /** Чем закончился запрос входа. */
146
- declare const SignInStatus: Readonly<{
147
- readonly Authenticated: "authenticated";
148
- readonly OtpRequired: "otp_required";
149
- }>;
150
- type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
151
- /** Результат входа: готовый токен либо продолжение через код подтверждения. */
152
- type SignInResult = {
153
- status: 'authenticated';
154
- accessToken: string;
155
- } | {
156
- status: 'otp_required';
157
- flowToken: string | undefined;
158
- };
159
- /**
160
- * Активный провайдер капчи и поле запроса, в котором сервер ждёт токен.
161
- *
162
- * Оба значения открытые: провайдер может появиться новый, а имя поля сервер вправе сменить.
163
- */
164
- interface CaptchaProvider {
165
- provider: CaptchaType;
166
- field: CaptchaField;
167
- }
168
- /**
169
- * Доказательство прохождения капчи: токен и его провайдер.
170
- *
171
- * Имя поля тела запроса SDK подставляет сам — из {@link CaptchaToken.field}, иначе
172
- * из {@link CAPTCHA_FIELDS}.
173
- */
174
- interface CaptchaToken {
175
- type: CaptchaType;
176
- token: string;
177
- /** Поле тела запроса. Нужно, только если сервер переименовал его. */
178
- field?: CaptchaField | undefined;
179
- }
180
- /**
181
- * Поле тела запроса по умолчанию для известных провайдеров.
182
- *
183
- * Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
184
- */
185
- declare const CAPTCHA_FIELDS: Readonly<{
186
- readonly itd: "token";
187
- readonly cloudflare: "turnstileToken";
188
- }>;
189
- /** Данные, из которых клиент строит QR-код входа. */
190
- interface QrLoginStart {
191
- qrId: string;
192
- claimToken: string;
193
- payload: string;
194
- expiresIn: number;
195
- captchaRequired: boolean;
196
- }
197
- /** Состояния, которые может вернуть проверка QR-входа. */
198
- declare const QrLoginStatus: Readonly<{
199
- readonly Pending: "pending";
200
- readonly Scanned: "scanned";
201
- readonly CaptchaRequired: "captcha_required";
202
- readonly Authorized: "authorized";
203
- readonly Rejected: "rejected";
204
- }>;
205
- type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
206
- /** Результат проверки QR-входа. */
207
- type QrLoginClaim = {
208
- status: 'authorized';
209
- accessToken: string;
210
- expiresIn?: number;
211
- } | {
212
- status: 'pending' | 'scanned' | 'captcha_required' | 'rejected';
213
- expiresIn?: number;
214
- };
215
- /** Состояния, приходящие из потокового наблюдения за QR-входом. */
216
- declare const QrLoginStreamStatus: Readonly<{
217
- readonly Pending: "pending";
218
- readonly Scanned: "scanned";
219
- readonly Approved: "approved";
220
- readonly Rejected: "rejected";
221
- }>;
222
- type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
223
- /** Одно событие `POST /api/v1/auth/qr/stream`. */
224
- interface QrLoginStreamEvent {
225
- status: QrLoginStreamStatus;
226
- expiresIn?: number;
227
- }
238
+ //#region src/session/captcha.d.ts
239
+ /** Капча запросов, которые её требуют: входа, регистрации, сброса пароля и QR-подтверждения. */
240
+ /** Готовый фрагмент тела запроса: имя поля и токен в нём. */
241
+ type CaptchaBody = Record<string, string>;
228
242
  //#endregion
229
243
  //#region src/session/auth.d.ts
230
244
  /**
@@ -239,6 +253,7 @@ interface SessionConfig {
239
253
  useCookieJar: boolean;
240
254
  logger: Logger | undefined;
241
255
  auth: AuthInput | undefined;
256
+ captcha: CaptchaSolver | undefined;
242
257
  storage: TokenStorage;
243
258
  deviceId: string | undefined;
244
259
  autoRefresh: boolean;
@@ -400,6 +415,17 @@ declare class AuthManager implements AuthProvider {
400
415
  * новую запись в списке сессий.
401
416
  */
402
417
  clear(): Promise<void>;
418
+ /**
419
+ * Готовит фрагмент тела с токеном капчи для запроса, который её требует.
420
+ *
421
+ * Источники в порядке убывания приоритета: токен, переданный в сам вызов; разовый токен
422
+ * из `auth.captcha`; опция `captcha`. Когда ни одного нет, фрагмент пустой: нужна ли
423
+ * капча этому запросу, решает сервер.
424
+ *
425
+ * @param explicit готовый токен, переданный в вызов
426
+ * @throws {ItdConfigError} если токен неполный или источник его не вернул
427
+ */
428
+ captchaBody(explicit?: CaptchaToken | undefined): Promise<CaptchaBody>;
403
429
  }
404
430
  //#endregion
405
431
  //#region src/resources/auth.d.ts
@@ -409,10 +435,11 @@ interface Credentials {
409
435
  password: string;
410
436
  }
411
437
  /**
412
- * Учётные данные вместе с доказательством капчи.
438
+ * Учётные данные вместе с токеном капчи.
413
439
  *
414
- * Какой виджет сейчас требует сервер, сообщает {@link AuthResource.captchaProvider};
415
- * в Node токен получает `@itd-api/captcha`. Токен одноразовый и живёт несколько минут.
440
+ * Токен нужен, только когда у клиента не задана опция `captcha`: с ней клиент получает его
441
+ * сам. Какой виджет сейчас требует сервер, сообщает {@link AuthResource.captchaProvider};
442
+ * в Node токен добывает `@itd-api/captcha`. Токен одноразовый и живёт несколько минут.
416
443
  *
417
444
  * @example
418
445
  * ```ts
@@ -422,15 +449,15 @@ interface Credentials {
422
449
  * await itd.auth.signIn({ email, password, captcha: { type: provider, token, field } });
423
450
  * ```
424
451
  */
425
- type CaptchaCredentials = Credentials & {
426
- captcha: CaptchaToken;
452
+ type CredentialsWithCaptcha = Credentials & {
453
+ captcha?: CaptchaToken | undefined;
427
454
  };
428
455
  /** Запрос письма для сброса пароля. Капча обязательна, как и при входе. */
429
456
  interface ForgotPasswordInput {
430
457
  email: string;
431
- captcha: CaptchaToken;
458
+ captcha?: CaptchaToken | undefined;
432
459
  }
433
- /** Секреты QR-сессии и необязательная капча для завершения входа. */
460
+ /** Секреты QR-сессии и капча для завершения входа. */
434
461
  interface QrLoginClaimInput {
435
462
  qrId: string;
436
463
  claimToken: string;
@@ -494,9 +521,9 @@ declare class AuthResource extends BaseResource {
494
521
  /**
495
522
  * Проверяет QR-сессию и завершает вход после подтверждения на другом устройстве.
496
523
  *
497
- * До подтверждения возвращает промежуточный статус. Если сервер потребовал капчу,
498
- * повторите вызов с `captcha` тип берётся из {@link captchaProvider}.
499
- * Полученный `accessToken` автоматически сохраняется в клиенте.
524
+ * До подтверждения возвращает промежуточный статус. Токен капчи добывается, только когда
525
+ * сервер о ней попросил — статусом `captcha_required` на прошлой проверке, либо когда
526
+ * передан в сам вызов. Полученный `accessToken` автоматически сохраняется в клиенте.
500
527
  */
501
528
  claimQrLogin(input: QrLoginClaimInput, options?: RequestOptions): Promise<QrLoginClaim>;
502
529
  /**
@@ -511,7 +538,7 @@ declare class AuthResource extends BaseResource {
511
538
  *
512
539
  * @returns `flowToken`, который нужно передать в {@link verifyOtp}
513
540
  */
514
- signUp(credentials: CaptchaCredentials, options?: RequestOptions): Promise<string>;
541
+ signUp(credentials: CredentialsWithCaptcha, options?: RequestOptions): Promise<string>;
515
542
  /**
516
543
  * Выполняет вход.
517
544
  *
@@ -520,9 +547,9 @@ declare class AuthResource extends BaseResource {
520
547
  *
521
548
  * При успешном входе токен сохраняется в клиенте автоматически.
522
549
  *
523
- * @param credentials email, пароль и обязательный токен капчи — см. {@link CaptchaCredentials}
550
+ * @param credentials email, пароль и токен капчи — см. {@link CredentialsWithCaptcha}
524
551
  */
525
- signIn(credentials: CaptchaCredentials, options?: RequestOptions): Promise<SignInResult>;
552
+ signIn(credentials: CredentialsWithCaptcha, options?: RequestOptions): Promise<SignInResult>;
526
553
  /**
527
554
  * Подтверждает вход кодом из письма.
528
555
  *
@@ -555,7 +582,7 @@ declare class AuthResource extends BaseResource {
555
582
  * });
556
583
  * ```
557
584
  */
558
- signInWithOtp(input: CaptchaCredentials & {
585
+ signInWithOtp(input: CredentialsWithCaptcha & {
559
586
  getOtp: () => string | Promise<string>;
560
587
  }, options?: RequestOptions): Promise<string>;
561
588
  /**
@@ -671,8 +698,9 @@ declare class AuthResource extends BaseResource {
671
698
  * const itd = new ItdClient({
672
699
  * // `auth` не обязателен: когда хранилище уже содержит сессию, токен берётся оттуда,
673
700
  * // а истёкший продлевается сам. Здесь он нужен на первый запуск.
674
- * // Вход по паролю требует токена капчи — см. CaptchaOptions.
675
- * auth: { email, password, captcha: createCaptchaSolver() },
701
+ * auth: { email, password },
702
+ * // Капчу входа решает пакет @itd-api/captcha см. CaptchaSolver.
703
+ * captcha: createCaptchaSolver(),
676
704
  * storage: new FileTokenStorage('./.itd-session.json'),
677
705
  * rateLimit: { concurrency: 4, rps: 8 },
678
706
  * });
@@ -937,7 +965,9 @@ interface AccountFeature<TApi = unknown> {
937
965
  * Опции конструктора {@link ItdAccounts}.
938
966
  *
939
967
  * Всё, что понимает `ItdClient`, кроме `auth` и `deviceId`: они у каждого аккаунта свои
940
- * и задаются в {@link ItdAccounts.addAccount}. Обычный `TokenStorage` клиента здесь заменён
968
+ * и задаются в {@link ItdAccounts.addAccount}. Остальное достаётся каждому клиенту
969
+ * источник токена капчи, заданный здесь, работает для всех аккаунтов. Обычный `TokenStorage`
970
+ * клиента здесь заменён
941
971
  * общей опцией {@link ItdAccountsOptions.storage} типа {@link MultiTokenStorage}; контейнер
942
972
  * сам выдаёт каждому клиенту изолированный срез по имени. Общий `deviceId` особенно вреден —
943
973
  * сервер различает по нему записи в списке сессий, и один на всех сложил бы все аккаунты
@@ -1020,6 +1050,8 @@ interface AccountEvents {
1020
1050
  *
1021
1051
  * await using accounts = new ItdAccounts({
1022
1052
  * storage: new FileMultiTokenStorage('./.itd-sessions.json'),
1053
+ * // Общие опции достаются каждому аккаунту: один источник токена капчи на всех.
1054
+ * captcha: createCaptchaSolver(),
1023
1055
  * rateLimit: { concurrency: 4 },
1024
1056
  * });
1025
1057
  *
@@ -1027,9 +1059,7 @@ interface AccountEvents {
1027
1059
  * await accounts.restore();
1028
1060
  *
1029
1061
  * if (!accounts.has('kiow')) {
1030
- * accounts.addAccount('kiow', {
1031
- * auth: { email, password, captcha: createCaptchaSolver() },
1032
- * });
1062
+ * accounts.addAccount('kiow', { auth: { email, password } });
1033
1063
  * }
1034
1064
  *
1035
1065
  * await accounts.account('kiow').posts.create({ content: 'привет' });
@@ -1063,9 +1093,7 @@ declare class ItdAccounts {
1063
1093
  *
1064
1094
  * @example
1065
1095
  * ```ts
1066
- * accounts.addAccount('bot', {
1067
- * auth: { email, password, captcha: createCaptchaSolver() },
1068
- * });
1096
+ * accounts.addAccount('bot', { auth: { email, password } });
1069
1097
  * accounts.addAccount('reader', { auth: '<accessToken>' });
1070
1098
  * accounts.addAccount('через-прокси', { fetch: proxyFetch('socks5://…') });
1071
1099
  * ```
@@ -1186,5 +1214,5 @@ declare class ItdAccounts {
1186
1214
  */
1187
1215
  declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1188
1216
  //#endregion
1189
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, type CaptchaCredentials, CaptchaField, type CaptchaOptions, type CaptchaProvider, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, 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, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, 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 NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, type OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, type QrLoginClaim, type QrLoginClaimInput, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1217
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaProvider, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, 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, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, 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 NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, type OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, type QrLoginClaim, type QrLoginClaimInput, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1190
1218
  //# sourceMappingURL=index.d.cts.map