itd-api 0.14.3 → 0.14.5

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 (69) hide show
  1. package/dist/events/index.cjs +4 -4
  2. package/dist/events/index.d.cts +2 -2
  3. package/dist/events/index.d.ts +2 -2
  4. package/dist/events/index.js +4 -4
  5. package/dist/index.cjs +38 -53
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +6 -4
  8. package/dist/index.d.ts +6 -4
  9. package/dist/index.js +37 -53
  10. package/dist/index.js.map +1 -1
  11. package/dist/node/index.cjs +5 -5
  12. package/dist/node/index.js +5 -5
  13. package/dist/rest/index.cjs +5 -5
  14. package/dist/rest/index.d.cts +2 -2
  15. package/dist/rest/index.d.ts +2 -2
  16. package/dist/rest/index.js +5 -5
  17. package/dist/shared/{cookies-D68xbO4E.cjs → cookies-Dv5LQp55.cjs} +7 -9
  18. package/dist/shared/cookies-Dv5LQp55.cjs.map +1 -0
  19. package/dist/shared/{cookies-BdntFeQ5.js → cookies-mDZE19_j.js} +6 -8
  20. package/dist/shared/cookies-mDZE19_j.js.map +1 -0
  21. package/dist/shared/{events-BdiOYajm.js → events-BbpL69OD.js} +4 -4
  22. package/dist/shared/{events-BdiOYajm.js.map → events-BbpL69OD.js.map} +1 -1
  23. package/dist/shared/{events-BeEkp9jA.cjs → events-C3Wup3mC.cjs} +4 -4
  24. package/dist/shared/{events-BeEkp9jA.cjs.map → events-C3Wup3mC.cjs.map} +1 -1
  25. package/dist/shared/{events-CWQN0YE4.d.cts → events-CMhrmHei.d.cts} +1 -1
  26. package/dist/shared/{events-rSRPzpN3.d.ts → events-Cupq8UXH.d.ts} +1 -1
  27. package/dist/shared/{key-value-store-BJdmlzkM.js → key-value-store-BDvrZ-GQ.js} +2 -2
  28. package/dist/shared/{key-value-store-BJdmlzkM.js.map → key-value-store-BDvrZ-GQ.js.map} +1 -1
  29. package/dist/shared/{key-value-store-Bxt33ZF3.cjs → key-value-store-CeiDXFAC.cjs} +2 -2
  30. package/dist/shared/{key-value-store-Bxt33ZF3.cjs.map → key-value-store-CeiDXFAC.cjs.map} +1 -1
  31. package/dist/shared/{multi-storage-hYW_Whkx.js → multi-storage-CLPyg8_T.js} +5 -5
  32. package/dist/shared/{multi-storage-hYW_Whkx.js.map → multi-storage-CLPyg8_T.js.map} +1 -1
  33. package/dist/shared/{multi-storage-BNiP6Mbq.cjs → multi-storage-DXBY9ceK.cjs} +5 -5
  34. package/dist/shared/{multi-storage-BNiP6Mbq.cjs.map → multi-storage-DXBY9ceK.cjs.map} +1 -1
  35. package/dist/shared/{options-BqQVtTmm.js → options-Dana2yeL.js} +3 -3
  36. package/dist/shared/{options-BqQVtTmm.js.map → options-Dana2yeL.js.map} +1 -1
  37. package/dist/shared/{options-C2WubUA6.cjs → options-eaq9yK8b.cjs} +3 -3
  38. package/dist/shared/{options-C2WubUA6.cjs.map → options-eaq9yK8b.cjs.map} +1 -1
  39. package/dist/shared/{render-djloH2Vb.d.ts → render-B3nhAeaQ.d.ts} +42 -17
  40. package/dist/shared/{render-kuaH5fPv.cjs → render-BXeYbuuY.cjs} +34 -16
  41. package/dist/shared/render-BXeYbuuY.cjs.map +1 -0
  42. package/dist/shared/{render-BJHqSS2F.d.cts → render-ByW1tXn-.d.cts} +15 -16
  43. package/dist/shared/{render-DhoQdYkn.js → render-C706i1rL.js} +34 -16
  44. package/dist/shared/render-C706i1rL.js.map +1 -0
  45. package/dist/shared/{storage-xximVWs_.cjs → storage-Bj7GKkEQ.cjs} +3 -3
  46. package/dist/shared/{storage-xximVWs_.cjs.map → storage-Bj7GKkEQ.cjs.map} +1 -1
  47. package/dist/shared/{storage-8oAVzQmF.js → storage-ChR4KC8V.js} +3 -3
  48. package/dist/shared/{storage-8oAVzQmF.js.map → storage-ChR4KC8V.js.map} +1 -1
  49. package/dist/shared/{url-DH4We-ip.js → url-CZpgaPdI.js} +940 -519
  50. package/dist/shared/url-CZpgaPdI.js.map +1 -0
  51. package/dist/shared/{url-wVgUPR6Q.d.ts → url-D4bo3tpX.d.ts} +497 -450
  52. package/dist/shared/{url-eD0nHl_4.d.cts → url-DHWmfmrE.d.cts} +874 -801
  53. package/dist/shared/{url-C8u7GIqz.cjs → url-Duzw4X6d.cjs} +952 -519
  54. package/dist/shared/url-Duzw4X6d.cjs.map +1 -0
  55. package/dist/shared/{validate-oLSGiGwQ.js → validate-CCgIq5u0.js} +5 -4
  56. package/dist/shared/validate-CCgIq5u0.js.map +1 -0
  57. package/dist/shared/{validate-CbM3k811.cjs → validate-DQrtiCtV.cjs} +5 -4
  58. package/dist/shared/validate-DQrtiCtV.cjs.map +1 -0
  59. package/dist/web/index.cjs +3 -3
  60. package/dist/web/index.js +3 -3
  61. package/package.json +1 -1
  62. package/dist/shared/cookies-BdntFeQ5.js.map +0 -1
  63. package/dist/shared/cookies-D68xbO4E.cjs.map +0 -1
  64. package/dist/shared/render-DhoQdYkn.js.map +0 -1
  65. package/dist/shared/render-kuaH5fPv.cjs.map +0 -1
  66. package/dist/shared/url-C8u7GIqz.cjs.map +0 -1
  67. package/dist/shared/url-DH4We-ip.js.map +0 -1
  68. package/dist/shared/validate-CbM3k811.cjs.map +0 -1
  69. package/dist/shared/validate-oLSGiGwQ.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { $ as ItdPhoneVerificationError, $t as systemClock, A as ClientConnection, An as MessageAccess, At as ErrorContextHook, B as ItdApiErrorInit, Bn as WallAccess, Bt as ResponseContext, C as SubscriptionState, Cn as FeedTab, Ct as FeatureOperationId, D as Emitter, Dn as LastSeenUnit, Dt as OperationMethod, E as UsernameAvailability, En as ItdErrorCode, Et as OperationMetadata, Fn as ServiceState, Ft as RateLimitOptions, G as ItdError, Gt as QueryParams, H as ItdAuthError, Ht as RetryDecisionContext, I as HttpClient, In as SpanType, It as RawRequestOptions, J as ItdFileError, Jt as RateLimitPacing, K as ItdErrorKind, Kt as QueryValue, Ln as UsernameUnavailableReason, Lt as RequestContext, M as AuthProvider, Mn as QrLocationPrecision, Mt as PaginationOptions, Nn as ReportReason, Nt as RateLimitBucketContext, O as Listener, On as LikesVisibility, Ot as RetrySafety, Pn as ReportTargetType, Pt as RateLimitBucketOverride, Q as ItdNotFoundError, Qt as ItdClock, R as ItdAbortError, Rn as ViewReason, Rt as RequestExtensions, S as PublicProfile, Sn as EventChannelStatus, St as LIBRARY_VERSION, T as UserSummary, Tn as InteractionType, U as ItdConfigError, Ut as RetryOptions, V as ItdApiErrorKind, Vt as RetryContext, W as ItdConflictError, Wt as RuntimeOptions, X as ItdForbiddenError, Xt as LogLevel, Y as ItdFileErrorReason, Yt as RuntimeMode, Z as ItdNetworkError, Zt as Logger, _ as MyProfile, _n as AttachmentType, _t as isItdStateError, a as NotificationEvent, an as isBuiltInOperationId, at as RateLimitErrorScope, b as PrivacySettings, bn as CaptchaType, bt as DEFAULT_BASE_URL, c as NotificationSettings, cn as operationRetrySafety, ct as isItdAuthError, d as AuthUser, dn as RateLimitBucket, dt as isItdFileError, en as BuiltInOperationId, et as ItdRateLimitError, f as Author, fn as IsoDate, ft as isItdForbiddenError, g as MessageAllowlistUser, gn as AccessType, gt as isItdServerError, h as MessageAllowlistMembership, hn as UserRef, ht as isItdRateLimitError, i as formatNotificationText, in as OperationId, it as ItdValidationError, j as AuthIdentity, jn as NotificationType, jt as OperationRequestOptions, k as Unsubscribe, kn as Loose, kt as ClientHooks, l as Actor, ln as BUCKET_LIMITS, lt as isItdConflictError, m as LastSeen, mn as UserId, mt as isItdPhoneVerificationError, n as canonicalNotificationType, nn as ItdOperationDefinition, nt as ItdStateError, o as normalizeNotification, on as operationBucket, ot as TimeoutBudget, p as FollowResult, pn as Span, pt as isItdNotFoundError, q as ItdFieldErrors, qt as ServiceDefinition, r as isKnownNotificationType, rn as OPERATIONS, rt as ItdTimeoutError, s as Notification, sn as operationMethod, st as isItdApiError, t as resolveNotificationUrl, tn as CustomOperationId, tt as ItdServerError, u as AuthState, un as DEFAULT_RATE_LIMIT_BUCKET, ut as isItdError, v as Pin, vn as CaptchaChoice, vt as isItdValidationError, w as UserBase, wn as IncidentKind, wt as OperationAnnotations, x as Profile, xn as CommentSort, xt as STATUS_SERVICE, y as PinsResult, yn as CaptchaField, yt as CookieJar, z as ItdApiError, zn as ViewSource, zt as RequestOptions } from "./shared/url-eD0nHl_4.cjs";
7
- import { $ as InternationalSubscriptionCheckoutMode, $i as AttemptContext, $n as CommentReplyTo, $r as CreateReportInput, $t as ReportsResource, A as UsersResource, Ai as ChatSentMessage, An as Report, Ar as Paginator, At as ShopDeliveryDestination, B as ViewTracker, Bi as FeatureBucketDefinition, Bn as HashtagsResource, Br as messageMarkup, Bt as ShopOrderSummary, C as fromStream, Ci as ChatReaction, Cn as StatusDay, Cr as ChatsResource, Ct as ShopConsent, D as UpdatePrivacyInput, Di as ChatReadCursor, Dn as ChangelogEntry, Dr as Page, Dt as ShopDeliveryCalculation, E as MessageAllowlistParams, Ei as ChatReactionType, En as AnnouncementButton, Er as BaseResource, Et as ShopCreatedOrder, F as TelemetryBatchOptions, Fi as ChatUpdateType, Fn as LegalDocumentBlockType, Fr as message, Ft as ShopOrderBase, G as SubscriptionCheckoutReleaseInput, Gi as ManagedClientResource, Gn as BannerDrawingOperation, Gr as MarkupSpan, Gt as ShopProductColor, H as ViewTrackerOptions, Hi as FeatureInstallation, Hn as UploadOptions, Hr as MarkupBuilder, Ht as ShopPayment, I as TelemetryClock, Ii as ChatUpdatesPage, In as LegalDocumentScope, Ir as MessageMarkup, It as ShopOrderDelivery, J as SubscriptionPayOptions, Ji as PreparedFileSource, Jn as UploadedBannerDrawing, Jr as markup, Jt as ShopRecipient, K as SubscriptionCheckoutTerms, Ki as FileResolver, Kn as BannerDrawingPoint, Kr as TextMarkup, Kt as ShopProductSpec, L as TelemetryOptions, Li as ChatUploadOptions, Ln as LegalDocumentSummary, Lr as MessageMarkupBuilder, Lt as ShopOrderItem, M as InteractionEntry, Mi as ChatTextEntity, Mn as LegalResource, Mr as mapPage, Mt as ShopOrder, N as PhotoOpenInput, Ni as ChatUnreadState, Nn as LegalDocument, Nr as MessageBuilder, Nt as ShopOrderAccessSession, O as UpdateProfileInput, Oi as ChatReadResult, On as Clan, Or as PageState, Ot as ShopDeliveryCity, P as TelemetryBatch, Pi as ChatUpdate, Pn as LegalDocumentBlock, Pr as MessageInput, Pt as ShopOrderAccessVerification, Q as InternationalSubscriptionCheckout, Qi as RateLimitBucketState, Qn as Comment, Qr as CreatePostData, Qt as SearchResult, R as TelemetryResource, Ri as ChatUploadedFile, Rn as LegalDocumentVersion, Rr as MessageMarkupContent, Rt as ShopOrderItemInput, S as VideoMimeType, Si as ChatPreview, Sn as ServiceStatus, Sr as ChatListParams, St as CreateShopOrderInput, T as VerificationResource, Ti as ChatReactionCount, Tn as Announcement, Tr as SetChatReactionsInput, Tt as ShopConsentKind, U as SubscriptionBindCardOptions, Ui as FeatureOperationDefinition, Un as UploadedFile, Ur as MarkupContent, Ut as ShopProduct, V as ViewTrackerInput, Vi as FeatureContext, Vn as FilesResource, Vr as AutoSpansOptions, Vt as ShopOrderSupport, W as SubscriptionCheckoutInput, Wi as FeatureRequestOptions, Wn as BannerDrawing, Wr as MarkupInput, Wt as ShopProductCategory, X as SubscriptionResource, Xi as ResolveFileContext, Xn as RepliesParams, Xr as CreateCommentInput, Xt as ShopSizeChartRow, Y as SubscriptionPaymentInput, Yi as PreparedStreamSource, Yn as CommentsResource, Yr as ChatMessageContent, Yt as ShopSizeChart, Z as InternationalSubscriptionCapability, Zi as ResolveFileOptions, Zn as Attachment, Zr as CreatePollInput, Zt as SearchResource, _ as AllowedMimeType, _i as ChatMediaItem, _n as parseMarkdown, _r as QrLoginTarget, _t as ShopDeliveryResource, a as ShopFeatureOptions, aa as OperationTransformContext, ai as ChatActionType, an as PostsResource, ar as Poll, at as SubscriptionCheckoutState, b as ImageMimeType, bi as ChatMessageReactions, bn as PlatformVersions, br as NotificationsResource, bt as ShopProductsResource, c as ShopOrderAccessStorage, ca as PluginTeardown, ci as ChatDeletedMessages, cn as PostBuilder, cr as PostBase, ct as SubscriptionGift, d as statusDays, di as ChatFileLink, dn as post, dr as PostUpdateResult, dt as SubscriptionPaymentProvider, ea as AttemptExtensions, ei as SendChatMessageInput, en as ReportBuilder, er as CommentUpdateResult, et as InternationalSubscriptionOffer, f as isMyProfile, fi as ChatFirstMessage, fn as PollBuilder, fr as UpdateResultBase, ft as SubscriptionQuote, g as AUDIO_MIME_TYPES, gi as ChatMediaCategory, gn as parseHtml, gr as AccountLifecycleResource, gt as ShopConsentsResource, h as ALLOWED_MIME_TYPES, hi as ChatListPage, hn as ParseMarkupOptions, hr as comment, ht as PayShopOrderOptions, i as ShopFeatureApi, ia as OperationExtensions, ii as isBuilder, in as FeedParams, ir as PinPostResult, it as SubscriptionCheckoutKind, j as DwellEntry, ji as ChatSummary, jn as VerificationStatus, jr as PaginatorOptions, jt as ShopDeliveryPoint, k as UserListParams, ki as ChatReply, kn as Portal, kr as PaginationMode, kt as ShopDeliveryCountry, l as ShopOrderAccessStorageAdapterOptions, li as ChatDirectResult, ln as PostInput, lr as PostCounters, lt as SubscriptionOffer, m as utcStampToIso, mi as ChatHistoryPage, mn as poll, mr as CommentInput, mt as CreateShopOrderOptions, n as SpanRenderFormat, na as AttemptNext, ni as BuilderInput, nn as report, nr as LikeResult, nt as PaymentMethodType, o as createShopFeature, oa as OperationTransformer, oi as ChatAttachment, on as UserPostsParams, or as PollOption, ot as SubscriptionCheckoutStatus, p as toDate, pi as ChatForwardedMessages, pn as PollInput, pr as CommentBuilder, pt as SubscriptionRenewalAgreement, q as SubscriptionGiftInput, qi as PreparedBufferSource, qn as BannerDrawingTool, qr as autoSpans, qt as ShopProductStatus, r as renderSpans, ra as ClientPlugin, ri as ItdBuilder, rn as CommentsParams, rr as OriginalPost, rt as Subscription, s as MemoryShopOrderAccessStorage, sa as PluginApi, si as ChatChange, sn as CreatePostInput, sr as Post, st as SubscriptionCheckoutSubject, t as RenderSpansOptions, ta as AttemptInterceptor, ti as UpdatePostInput, tn as ReportInput, tr as Hashtag, tt as PaymentMethod, u as createShopOrderAccessStorage, ui as ChatEditedMessage, un as PostUpdateInput, ur as PostStats, ut as SubscriptionPayment, v as AudioMimeType, vi as ChatMediaPage, vn as PlatformClientVersion, vr as Session, vt as ShopOrderRequestOptions, w as fromUrl, wi as ChatReactionCatalog, wn as StatusIncidentLine, wr as ForwardChatMessagesInput, wt as ShopConsentContext, x as VIDEO_MIME_TYPES, xi as ChatPresence, xn as PlatformStatus, xr as UpdateNotificationSettingsInput, xt as ShopResource, y as IMAGE_MIME_TYPES, yi as ChatMessage, yn as PlatformResource, yr as NotificationListParams, yt as ShopOrdersResource, z as VideoProgressInput, zi as ClientFeature, zn as HashtagPostsParams, zr as MessageMarkupInput, zt as ShopOrderStatus } from "./shared/render-BJHqSS2F.cjs";
8
- import { $ as EventTransportFrame, A as EventSequentializer, B as NotificationOfType, C as EventSession, D as EventMiddlewareObject, E as EventMiddleware, F as NotificationEventContext, G as UnknownNotificationUpdate, H as NotificationUpdateOfType, I as NotificationEventFilter, J as NotificationEventsMap, K as UnreadCountUpdate, L as NotificationEventOfType, M as runEventMiddleware, N as EventContext, O as EventNext, P as NotificationContext, Q as EventTransportContext, R as NotificationEventSelector, S as EventEnqueueOptions, T as EventHandler, U as NotificationUpdateOrigin, V as NotificationUpdate, W as NotificationUpdateType, X as NotificationEventsTransport, Y as NotificationEventsOptions, Z as EventTransport, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as EventChannelEvents, c as EventRouteSelector, d as NotificationEventsClientOptions, et as UnauthorizedStreamError, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventTypeGuard, k as EventPredicate, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationEvents, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as ReconnectOptions, u as NotificationEventsClient, v as EventChannel, w as EventSyncReason, x as EventChannelOptions, y as EventChannelDeps, z as NotificationEventsUpdate } from "./shared/events-CWQN0YE4.cjs";
6
+ import { $ as RateLimitBucketContext, $t as ItdValidationError, A as ClientConnection, An as LikesVisibility, At as BUCKET_LIMITS, B as DEFAULT_BASE_URL, Bn as ViewReason, Bt as ItdError, C as SubscriptionState, Cn as CommentSort, Ct as ItdOperationDefinition, D as Emitter, Dn as InteractionType, Dt as operationBucket, E as UsernameAvailability, En as IncidentKind, Et as isBuiltInOperationId, Fn as ReportReason, Ft as ItdApiErrorInit, Gt as ItdForbiddenError, H as LIBRARY_VERSION, Hn as WallAccess, Ht as ItdFieldErrors, I as HttpClient, In as ReportTargetType, It as ItdApiErrorKind, J as RetrySafety, Jt as ItdPhoneVerificationError, K as OperationMetadata, Kt as ItdNetworkError, Ln as ServiceState, Lt as ItdAuthError, M as AuthProvider, Mn as MessageAccess, Mt as RateLimitBucket, Nn as NotificationType, Nt as ItdAbortError, O as Listener, On as ItdErrorCode, Ot as operationMethod, Pn as QrLocationPrecision, Pt as ItdApiError, Q as PaginationOptions, Qt as ItdTimeoutError, R as RateLimitBucketState, Rn as SpanType, Rt as ItdConfigError, S as PublicProfile, Sn as CaptchaType, St as CustomOperationId, T as UserSummary, Tn as FeedTab, Tt as OperationId, U as FeatureOperationId, Ut as ItdFileError, V as STATUS_SERVICE, Vn as ViewSource, Vt as ItdErrorKind, W as OperationAnnotations, Wt as ItdFileErrorReason, X as ErrorContextHook, Xt as ItdServerError, Y as ClientHooks, Yt as ItdRateLimitError, Z as OperationRequestOptions, Zt as ItdStateError, _ as MyProfile, _n as UserRef, _t as LogLevel, a as NotificationEvent, an as isItdError, at as RequestOptions, b as PrivacySettings, bn as CaptchaChoice, bt as systemClock, c as NotificationSettings, cn as isItdNotFoundError, ct as RetryDecisionContext, d as AuthUser, dn as isItdServerError, dt as QueryParams, en as RateLimitErrorScope, et as RateLimitBucketOverride, f as Author, fn as isItdStateError, ft as QueryValue, g as MessageAllowlistUser, gn as UserId, gt as createUuidV4, h as MessageAllowlistMembership, hn as Span, ht as RuntimeMode, i as formatNotificationText, in as isItdConflictError, it as RequestExtensions, j as AuthIdentity, jn as Loose, jt as DEFAULT_RATE_LIMIT_BUCKET, k as Unsubscribe, kn as LastSeenUnit, kt as operationRetrySafety, l as Actor, ln as isItdPhoneVerificationError, lt as RetryOptions, m as LastSeen, mn as IsoDate, mt as RateLimitPacing, n as canonicalNotificationType, nn as isItdApiError, nt as RawRequestOptions, o as normalizeNotification, on as isItdFileError, ot as ResponseContext, p as FollowResult, pn as isItdValidationError, pt as ServiceDefinition, q as OperationMethod, qt as ItdNotFoundError, r as isKnownNotificationType, rn as isItdAuthError, rt as RequestContext, s as Notification, sn as isItdForbiddenError, st as RetryContext, t as resolveNotificationUrl, tn as TimeoutBudget, tt as RateLimitOptions, u as AuthState, un as isItdRateLimitError, ut as RuntimeOptions, v as Pin, vn as AccessType, vt as Logger, w as UserBase, wn as EventChannelStatus, wt as OPERATIONS, x as Profile, xn as CaptchaField, xt as BuiltInOperationId, y as PinsResult, yn as AttachmentType, yt as ItdClock, z as CookieJar, zn as UsernameUnavailableReason, zt as ItdConflictError } from "./shared/url-DHWmfmrE.cjs";
7
+ import { $ as InternationalSubscriptionCheckoutMode, $i as AttemptExtensions, $n as CommentReplyTo, $r as CreateReportInput, $t as ReportsResource, A as UsersResource, Ai as ChatSentMessage, An as Report, Ar as Paginator, At as ShopDeliveryDestination, B as ViewTracker, Bi as FeatureBucketDefinition, Bn as HashtagsResource, Br as messageMarkup, Bt as ShopOrderSummary, C as fromStream, Ci as ChatReaction, Cn as StatusDay, Cr as ChatsResource, Ct as ShopConsent, D as UpdatePrivacyInput, Di as ChatReadCursor, Dn as ChangelogEntry, Dr as Page, Dt as ShopDeliveryCalculation, E as MessageAllowlistParams, Ei as ChatReactionType, En as AnnouncementButton, Er as BaseResource, Et as ShopCreatedOrder, F as TelemetryBatchOptions, Fi as ChatUpdateType, Fn as LegalDocumentBlockType, Fr as message, Ft as ShopOrderBase, G as SubscriptionCheckoutReleaseInput, Gi as ManagedClientResource, Gn as BannerDrawingOperation, Gr as MarkupSpan, Gt as ShopProductColor, H as ViewTrackerOptions, Hi as FeatureInstallation, Hn as UploadOptions, Hr as MarkupBuilder, Ht as ShopPayment, I as TelemetryClock, Ii as ChatUpdatesPage, In as LegalDocumentScope, Ir as MessageMarkup, It as ShopOrderDelivery, J as SubscriptionPayOptions, Ji as PreparedFileSource, Jn as UploadedBannerDrawing, Jr as markup, Jt as ShopRecipient, K as SubscriptionCheckoutTerms, Ki as FileResolver, Kn as BannerDrawingPoint, Kr as TextMarkup, Kt as ShopProductSpec, L as TelemetryOptions, Li as ChatUploadOptions, Ln as LegalDocumentSummary, Lr as MessageMarkupBuilder, Lt as ShopOrderItem, M as InteractionEntry, Mi as ChatTextEntity, Mn as LegalResource, Mr as mapPage, Mt as ShopOrder, N as PhotoOpenInput, Ni as ChatUnreadState, Nn as LegalDocument, Nr as MessageBuilder, Nt as ShopOrderAccessSession, O as UpdateProfileInput, Oi as ChatReadResult, On as Clan, Or as PageState, Ot as ShopDeliveryCity, P as TelemetryBatch, Pi as ChatUpdate, Pn as LegalDocumentBlock, Pr as MessageInput, Pt as ShopOrderAccessVerification, Q as InternationalSubscriptionCheckout, Qi as AttemptContext, Qn as Comment, Qr as CreatePostData, Qt as SearchResult, R as TelemetryResource, Ri as ChatUploadedFile, Rn as LegalDocumentVersion, Rr as MessageMarkupContent, Rt as ShopOrderItemInput, S as VideoMimeType, Si as ChatPreview, Sn as ServiceStatus, Sr as ChatListParams, St as CreateShopOrderInput, T as VerificationResource, Ti as ChatReactionCount, Tn as Announcement, Tr as SetChatReactionsInput, Tt as ShopConsentKind, U as SubscriptionBindCardOptions, Ui as FeatureOperationDefinition, Un as UploadedFile, Ur as MarkupContent, Ut as ShopProduct, V as ViewTrackerInput, Vi as FeatureContext, Vn as FilesResource, Vr as AutoSpansOptions, Vt as ShopOrderSupport, W as SubscriptionCheckoutInput, Wi as FeatureRequestOptions, Wn as BannerDrawing, Wr as MarkupInput, Wt as ShopProductCategory, X as SubscriptionResource, Xi as ResolveFileContext, Xn as RepliesParams, Xr as CreateCommentInput, Xt as ShopSizeChartRow, Y as SubscriptionPaymentInput, Yi as PreparedStreamSource, Yn as CommentsResource, Yr as ChatMessageContent, Yt as ShopSizeChart, Z as InternationalSubscriptionCapability, Zi as ResolveFileOptions, Zn as Attachment, Zr as CreatePollInput, Zt as SearchResource, _ as AllowedMimeType, _i as ChatMediaItem, _n as parseMarkdown, _r as QrLoginTarget, _t as ShopDeliveryResource, a as ShopFeatureOptions, aa as OperationTransformer, ai as ChatActionType, an as PostsResource, ar as Poll, at as SubscriptionCheckoutState, b as ImageMimeType, bi as ChatMessageReactions, bn as PlatformVersions, br as NotificationsResource, bt as ShopProductsResource, c as ShopOrderAccessStorage, ci as ChatDeletedMessages, cn as PostBuilder, cr as PostBase, ct as SubscriptionGift, d as statusDays, di as ChatFileLink, dn as post, dr as PostUpdateResult, dt as SubscriptionPaymentProvider, ea as AttemptInterceptor, ei as SendChatMessageInput, en as ReportBuilder, er as CommentUpdateResult, et as InternationalSubscriptionOffer, f as isMyProfile, fi as ChatFirstMessage, fn as PollBuilder, fr as UpdateResultBase, ft as SubscriptionQuote, g as AUDIO_MIME_TYPES, gi as ChatMediaCategory, gn as parseHtml, gr as AccountLifecycleResource, gt as ShopConsentsResource, h as ALLOWED_MIME_TYPES, hi as ChatListPage, hn as ParseMarkupOptions, hr as comment, ht as PayShopOrderOptions, i as ShopFeatureApi, ia as OperationTransformContext, ii as isBuilder, in as FeedParams, ir as PinPostResult, it as SubscriptionCheckoutKind, j as DwellEntry, ji as ChatSummary, jn as VerificationStatus, jr as PaginatorOptions, jt as ShopDeliveryPoint, k as UserListParams, ki as ChatReply, kn as Portal, kr as PaginationMode, kt as ShopDeliveryCountry, l as ShopOrderAccessStorageAdapterOptions, li as ChatDirectResult, ln as PostInput, lr as PostCounters, lt as SubscriptionOffer, m as utcStampToIso, mi as ChatHistoryPage, mn as poll, mr as CommentInput, mt as CreateShopOrderOptions, n as SpanRenderFormat, na as ClientPlugin, ni as BuilderInput, nn as report, nr as LikeResult, nt as PaymentMethodType, o as createShopFeature, oa as PluginApi, oi as ChatAttachment, on as UserPostsParams, or as PollOption, ot as SubscriptionCheckoutStatus, p as toDate, pi as ChatForwardedMessages, pn as PollInput, pr as CommentBuilder, pt as SubscriptionRenewalAgreement, q as SubscriptionGiftInput, qi as PreparedBufferSource, qn as BannerDrawingTool, qr as autoSpans, qt as ShopProductStatus, r as renderSpans, ra as OperationExtensions, ri as ItdBuilder, rn as CommentsParams, rr as OriginalPost, rt as Subscription, s as MemoryShopOrderAccessStorage, sa as PluginTeardown, si as ChatChange, sn as CreatePostInput, sr as Post, st as SubscriptionCheckoutSubject, t as RenderSpansOptions, ta as AttemptNext, ti as UpdatePostInput, tn as ReportInput, tr as Hashtag, tt as PaymentMethod, u as createShopOrderAccessStorage, ui as ChatEditedMessage, un as PostUpdateInput, ur as PostStats, ut as SubscriptionPayment, v as AudioMimeType, vi as ChatMediaPage, vn as PlatformClientVersion, vr as Session, vt as ShopOrderRequestOptions, w as fromUrl, wi as ChatReactionCatalog, wn as StatusIncidentLine, wr as ForwardChatMessagesInput, wt as ShopConsentContext, x as VIDEO_MIME_TYPES, xi as ChatPresence, xn as PlatformStatus, xr as UpdateNotificationSettingsInput, xt as ShopResource, y as IMAGE_MIME_TYPES, yi as ChatMessage, yn as PlatformResource, yr as NotificationListParams, yt as ShopOrdersResource, z as VideoProgressInput, zi as ClientFeature, zn as HashtagPostsParams, zr as MessageMarkupInput, zt as ShopOrderStatus } from "./shared/render-ByW1tXn-.cjs";
8
+ import { $ as EventTransportFrame, A as EventSequentializer, B as NotificationOfType, C as EventSession, D as EventMiddlewareObject, E as EventMiddleware, F as NotificationEventContext, G as UnknownNotificationUpdate, H as NotificationUpdateOfType, I as NotificationEventFilter, J as NotificationEventsMap, K as UnreadCountUpdate, L as NotificationEventOfType, M as runEventMiddleware, N as EventContext, O as EventNext, P as NotificationContext, Q as EventTransportContext, R as NotificationEventSelector, S as EventEnqueueOptions, T as EventHandler, U as NotificationUpdateOrigin, V as NotificationUpdate, W as NotificationUpdateType, X as NotificationEventsTransport, Y as NotificationEventsOptions, Z as EventTransport, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as EventChannelEvents, c as EventRouteSelector, d as NotificationEventsClientOptions, et as UnauthorizedStreamError, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventTypeGuard, k as EventPredicate, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationEvents, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as ReconnectOptions, u as NotificationEventsClient, v as EventChannel, w as EventSyncReason, x as EventChannelOptions, y as EventChannelDeps, z as NotificationEventsUpdate } from "./shared/events-CMhrmHei.cjs";
9
9
  import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-FtS4NIC7.cjs";
10
10
  import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-OGWNMK3x.cjs";
11
11
  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-DEbkC0cB.cjs";
@@ -39,6 +39,8 @@ export declare class ChatEvents {
39
39
  }, options?: ChatEventsOptions);
40
40
  /** Текущее состояние соединения. */
41
41
  get status(): EventChannelStatus;
42
+ /** Канал подключён, подключается или ожидает переподключения. */
43
+ get active(): boolean;
42
44
  /**
43
45
  * Подписывается на обновления или события подключения.
44
46
  *
@@ -1815,4 +1817,4 @@ export declare class ItdAccounts {
1815
1817
  * То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
1816
1818
  */
1817
1819
  export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1818
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, ChatActionType, type ChatAttachment, type ChatChange, type ChatDeletedMessages, type ChatDirectResult, type ChatEditedMessage, type ChatEventContext, type ChatEventMap, type ChatEventsOptions, type ChatFileLink, type ChatFirstMessage, type ChatForwardedMessages, type ChatHistoryPage, type ChatListPage, type ChatListParams, ChatMediaCategory, type ChatMediaItem, type ChatMediaPage, type ChatMessage, type ChatMessageContent, type ChatMessageReactions, type ChatPresence, type ChatPreview, type ChatReaction, type ChatReactionCatalog, type ChatReactionCount, ChatReactionType, type ChatReadCursor, type ChatReadResult, type ChatReply, type ChatSentMessage, type ChatSummary, type ChatTextEntity, type ChatUnreadState, type ChatUpdate, ChatUpdateType, type ChatUpdatesPage, type ChatUploadOptions, type ChatUploadedFile, type ChatsApi, ChatsResource, 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 ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, 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 ForwardChatMessagesInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type InternationalSubscriptionCapability, type InternationalSubscriptionCheckout, InternationalSubscriptionCheckoutMode, type InternationalSubscriptionOffer, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, 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 LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MessageAllowlistMembership, type MessageAllowlistParams, type MessageAllowlistUser, type MessageBuilder, type MessageInput, type MessageMarkup, type MessageMarkupBuilder, type MessageMarkupContent, type MessageMarkupInput, 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, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, PaymentMethodType, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, RateLimitErrorScope, type RateLimitOptions, RateLimitPacing, 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 SendChatMessageInput, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type SetChatReactionsInput, 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 ShopOrderBase, 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, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionBindCardOptions, type SubscriptionCheckoutInput, SubscriptionCheckoutKind, type SubscriptionCheckoutReleaseInput, type SubscriptionCheckoutState, SubscriptionCheckoutStatus, type SubscriptionCheckoutSubject, type SubscriptionCheckoutTerms, type SubscriptionGift, type SubscriptionGiftInput, type SubscriptionOffer, type SubscriptionPayOptions, type SubscriptionPayment, type SubscriptionPaymentInput, SubscriptionPaymentProvider, type SubscriptionQuote, type SubscriptionRenewalAgreement, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, 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, 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, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1820
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, ChatActionType, type ChatAttachment, type ChatChange, type ChatDeletedMessages, type ChatDirectResult, type ChatEditedMessage, type ChatEventContext, type ChatEventMap, type ChatEventsOptions, type ChatFileLink, type ChatFirstMessage, type ChatForwardedMessages, type ChatHistoryPage, type ChatListPage, type ChatListParams, ChatMediaCategory, type ChatMediaItem, type ChatMediaPage, type ChatMessage, type ChatMessageContent, type ChatMessageReactions, type ChatPresence, type ChatPreview, type ChatReaction, type ChatReactionCatalog, type ChatReactionCount, ChatReactionType, type ChatReadCursor, type ChatReadResult, type ChatReply, type ChatSentMessage, type ChatSummary, type ChatTextEntity, type ChatUnreadState, type ChatUpdate, ChatUpdateType, type ChatUpdatesPage, type ChatUploadOptions, type ChatUploadedFile, type ChatsApi, ChatsResource, 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 ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, 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 ForwardChatMessagesInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type InternationalSubscriptionCapability, type InternationalSubscriptionCheckout, InternationalSubscriptionCheckoutMode, type InternationalSubscriptionOffer, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, 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 LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MessageAllowlistMembership, type MessageAllowlistParams, type MessageAllowlistUser, type MessageBuilder, type MessageInput, type MessageMarkup, type MessageMarkupBuilder, type MessageMarkupContent, type MessageMarkupInput, 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, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, PaymentMethodType, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, RateLimitErrorScope, type RateLimitOptions, RateLimitPacing, 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 SendChatMessageInput, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type SetChatReactionsInput, 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 ShopOrderBase, 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, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionBindCardOptions, type SubscriptionCheckoutInput, SubscriptionCheckoutKind, type SubscriptionCheckoutReleaseInput, type SubscriptionCheckoutState, SubscriptionCheckoutStatus, type SubscriptionCheckoutSubject, type SubscriptionCheckoutTerms, type SubscriptionGift, type SubscriptionGiftInput, type SubscriptionOffer, type SubscriptionPayOptions, type SubscriptionPayment, type SubscriptionPaymentInput, SubscriptionPaymentProvider, type SubscriptionQuote, type SubscriptionRenewalAgreement, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, 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, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, createUuidV4, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
package/dist/index.d.ts CHANGED
@@ -3,9 +3,9 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { $ as ItdServerError, $t as ItdOperationDefinition, A as ClientConnection, An as ReportReason, At as RateLimitBucketContext, B as ItdAuthError, Bt as RetryOptions, C as SubscriptionState, Cn as ItdErrorCode, Ct as OperationMetadata, D as Emitter, Dn as MessageAccess, Dt as ErrorContextHook, E as UsernameAvailability, En as Loose, Et as ClientHooks, Fn as ViewReason, Ft as RequestExtensions, G as ItdFieldErrors, Gt as RateLimitPacing, H as ItdConflictError, Ht as QueryParams, I as ItdAbortError, In as ViewSource, It as RequestOptions, J as ItdForbiddenError, Jt as Logger, K as ItdFileError, Kt as RuntimeMode, L as ItdApiError, Ln as WallAccess, Lt as ResponseContext, M as AuthProvider, Mn as ServiceState, Mt as RateLimitOptions, Nn as SpanType, Nt as RawRequestOptions, O as Listener, On as NotificationType, Ot as OperationRequestOptions, Pn as UsernameUnavailableReason, Pt as RequestContext, Q as ItdRateLimitError, Qt as CustomOperationId, R as ItdApiErrorInit, Rt as RetryContext, S as PublicProfile, Sn as InteractionType, T as UserSummary, Tn as LikesVisibility, Tt as RetrySafety, U as ItdError, Ut as QueryValue, V as ItdConfigError, Vt as RuntimeOptions, W as ItdErrorKind, Wt as ServiceDefinition, X as ItdNotFoundError, Xt as systemClock, Y as ItdNetworkError, Yt as ItdClock, Z as ItdPhoneVerificationError, Zt as BuiltInOperationId, _ as MyProfile, _n as CaptchaType, _t as DEFAULT_BASE_URL, a as NotificationEvent, an as operationRetrySafety, at as isItdApiError, b as PrivacySettings, bn as FeedTab, bt as FeatureOperationId, c as NotificationSettings, cn as RateLimitBucket, ct as isItdError, d as AuthUser, dn as UserId, dt as isItdNotFoundError, en as OPERATIONS, et as ItdStateError, f as Author, fn as UserRef, ft as isItdPhoneVerificationError, g as MessageAllowlistUser, gn as CaptchaField, gt as isItdValidationError, h as MessageAllowlistMembership, hn as CaptchaChoice, ht as isItdStateError, i as formatNotificationText, in as operationMethod, it as TimeoutBudget, j as AuthIdentity, jn as ReportTargetType, jt as RateLimitBucketOverride, k as Unsubscribe, kn as QrLocationPrecision, kt as PaginationOptions, l as Actor, ln as IsoDate, lt as isItdFileError, m as LastSeen, mn as AttachmentType, mt as isItdServerError, n as canonicalNotificationType, nn as isBuiltInOperationId, nt as ItdValidationError, o as normalizeNotification, on as BUCKET_LIMITS, ot as isItdAuthError, p as FollowResult, pn as AccessType, pt as isItdRateLimitError, q as ItdFileErrorReason, qt as LogLevel, r as isKnownNotificationType, rn as operationBucket, rt as RateLimitErrorScope, s as Notification, sn as DEFAULT_RATE_LIMIT_BUCKET, st as isItdConflictError, t as resolveNotificationUrl, tn as OperationId, tt as ItdTimeoutError, u as AuthState, un as Span, ut as isItdForbiddenError, v as Pin, vn as CommentSort, vt as STATUS_SERVICE, w as UserBase, wn as LastSeenUnit, wt as OperationMethod, x as Profile, xn as IncidentKind, xt as OperationAnnotations, y as PinsResult, yn as EventChannelStatus, yt as LIBRARY_VERSION, z as ItdApiErrorKind, zt as RetryDecisionContext } from "./shared/url-wVgUPR6Q.js";
7
- import { $ as InternationalSubscriptionCheckoutMode, $i as AttemptContext, $n as CommentReplyTo, $r as CreateReportInput, $t as ReportsResource, A as UsersResource, Ai as ChatSentMessage, An as Report, Ar as Paginator, At as ShopDeliveryDestination, B as ViewTracker, Bi as FeatureBucketDefinition, Bn as HashtagsResource, Br as messageMarkup, Bt as ShopOrderSummary, C as fromStream, Ci as ChatReaction, Cn as StatusDay, Cr as ChatsResource, Ct as ShopConsent, D as UpdatePrivacyInput, Di as ChatReadCursor, Dn as ChangelogEntry, Dr as Page, Dt as ShopDeliveryCalculation, E as MessageAllowlistParams, Ei as ChatReactionType, En as AnnouncementButton, Er as BaseResource, Et as ShopCreatedOrder, F as TelemetryBatchOptions, Fi as ChatUpdateType, Fn as LegalDocumentBlockType, Fr as message, Ft as ShopOrderBase, G as SubscriptionCheckoutReleaseInput, Gi as ManagedClientResource, Gn as BannerDrawingOperation, Gr as MarkupSpan, Gt as ShopProductColor, H as ViewTrackerOptions, Hi as FeatureInstallation, Hn as UploadOptions, Hr as MarkupBuilder, Ht as ShopPayment, I as TelemetryClock, Ii as ChatUpdatesPage, In as LegalDocumentScope, Ir as MessageMarkup, It as ShopOrderDelivery, J as SubscriptionPayOptions, Ji as PreparedFileSource, Jn as UploadedBannerDrawing, Jr as markup, Jt as ShopRecipient, K as SubscriptionCheckoutTerms, Ki as FileResolver, Kn as BannerDrawingPoint, Kr as TextMarkup, Kt as ShopProductSpec, L as TelemetryOptions, Li as ChatUploadOptions, Ln as LegalDocumentSummary, Lr as MessageMarkupBuilder, Lt as ShopOrderItem, M as InteractionEntry, Mi as ChatTextEntity, Mn as LegalResource, Mr as mapPage, Mt as ShopOrder, N as PhotoOpenInput, Ni as ChatUnreadState, Nn as LegalDocument, Nr as MessageBuilder, Nt as ShopOrderAccessSession, O as UpdateProfileInput, Oi as ChatReadResult, On as Clan, Or as PageState, Ot as ShopDeliveryCity, P as TelemetryBatch, Pi as ChatUpdate, Pn as LegalDocumentBlock, Pr as MessageInput, Pt as ShopOrderAccessVerification, Q as InternationalSubscriptionCheckout, Qi as RateLimitBucketState, Qn as Comment, Qr as CreatePostData, Qt as SearchResult, R as TelemetryResource, Ri as ChatUploadedFile, Rn as LegalDocumentVersion, Rr as MessageMarkupContent, Rt as ShopOrderItemInput, S as VideoMimeType, Si as ChatPreview, Sn as ServiceStatus, Sr as ChatListParams, St as CreateShopOrderInput, T as VerificationResource, Ti as ChatReactionCount, Tn as Announcement, Tr as SetChatReactionsInput, Tt as ShopConsentKind, U as SubscriptionBindCardOptions, Ui as FeatureOperationDefinition, Un as UploadedFile, Ur as MarkupContent, Ut as ShopProduct, V as ViewTrackerInput, Vi as FeatureContext, Vn as FilesResource, Vr as AutoSpansOptions, Vt as ShopOrderSupport, W as SubscriptionCheckoutInput, Wi as FeatureRequestOptions, Wn as BannerDrawing, Wr as MarkupInput, Wt as ShopProductCategory, X as SubscriptionResource, Xi as ResolveFileContext, Xn as RepliesParams, Xr as CreateCommentInput, Xt as ShopSizeChartRow, Y as SubscriptionPaymentInput, Yi as PreparedStreamSource, Yn as CommentsResource, Yr as ChatMessageContent, Yt as ShopSizeChart, Z as InternationalSubscriptionCapability, Zi as ResolveFileOptions, Zn as Attachment, Zr as CreatePollInput, Zt as SearchResource, _ as AllowedMimeType, _i as ChatMediaItem, _n as parseMarkdown, _r as QrLoginTarget, _t as ShopDeliveryResource, a as ShopFeatureOptions, aa as OperationTransformContext, ai as ChatActionType, an as PostsResource, ar as Poll, at as SubscriptionCheckoutState, b as ImageMimeType, bi as ChatMessageReactions, bn as PlatformVersions, br as NotificationsResource, bt as ShopProductsResource, c as ShopOrderAccessStorage, ca as PluginTeardown, ci as ChatDeletedMessages, cn as PostBuilder, cr as PostBase, ct as SubscriptionGift, d as statusDays, di as ChatFileLink, dn as post, dr as PostUpdateResult, dt as SubscriptionPaymentProvider, ea as AttemptExtensions, ei as SendChatMessageInput, en as ReportBuilder, er as CommentUpdateResult, et as InternationalSubscriptionOffer, f as isMyProfile, fi as ChatFirstMessage, fn as PollBuilder, fr as UpdateResultBase, ft as SubscriptionQuote, g as AUDIO_MIME_TYPES, gi as ChatMediaCategory, gn as parseHtml, gr as AccountLifecycleResource, gt as ShopConsentsResource, h as ALLOWED_MIME_TYPES, hi as ChatListPage, hn as ParseMarkupOptions, hr as comment, ht as PayShopOrderOptions, i as ShopFeatureApi, ia as OperationExtensions, ii as isBuilder, in as FeedParams, ir as PinPostResult, it as SubscriptionCheckoutKind, j as DwellEntry, ji as ChatSummary, jn as VerificationStatus, jr as PaginatorOptions, jt as ShopDeliveryPoint, k as UserListParams, ki as ChatReply, kn as Portal, kr as PaginationMode, kt as ShopDeliveryCountry, l as ShopOrderAccessStorageAdapterOptions, la as HttpClient, li as ChatDirectResult, ln as PostInput, lr as PostCounters, lt as SubscriptionOffer, m as utcStampToIso, mi as ChatHistoryPage, mn as poll, mr as CommentInput, mt as CreateShopOrderOptions, n as SpanRenderFormat, na as AttemptNext, ni as BuilderInput, nn as report, nr as LikeResult, nt as PaymentMethodType, o as createShopFeature, oa as OperationTransformer, oi as ChatAttachment, on as UserPostsParams, or as PollOption, ot as SubscriptionCheckoutStatus, p as toDate, pi as ChatForwardedMessages, pn as PollInput, pr as CommentBuilder, pt as SubscriptionRenewalAgreement, q as SubscriptionGiftInput, qi as PreparedBufferSource, qn as BannerDrawingTool, qr as autoSpans, qt as ShopProductStatus, r as renderSpans, ra as ClientPlugin, ri as ItdBuilder, rn as CommentsParams, rr as OriginalPost, rt as Subscription, s as MemoryShopOrderAccessStorage, sa as PluginApi, si as ChatChange, sn as CreatePostInput, sr as Post, st as SubscriptionCheckoutSubject, t as RenderSpansOptions, ta as AttemptInterceptor, ti as UpdatePostInput, tn as ReportInput, tr as Hashtag, tt as PaymentMethod, u as createShopOrderAccessStorage, ua as CookieJar, ui as ChatEditedMessage, un as PostUpdateInput, ur as PostStats, ut as SubscriptionPayment, v as AudioMimeType, vi as ChatMediaPage, vn as PlatformClientVersion, vr as Session, vt as ShopOrderRequestOptions, w as fromUrl, wi as ChatReactionCatalog, wn as StatusIncidentLine, wr as ForwardChatMessagesInput, wt as ShopConsentContext, x as VIDEO_MIME_TYPES, xi as ChatPresence, xn as PlatformStatus, xr as UpdateNotificationSettingsInput, xt as ShopResource, y as IMAGE_MIME_TYPES, yi as ChatMessage, yn as PlatformResource, yr as NotificationListParams, yt as ShopOrdersResource, z as VideoProgressInput, zi as ClientFeature, zn as HashtagPostsParams, zr as MessageMarkupInput, zt as ShopOrderStatus } from "./shared/render-djloH2Vb.js";
8
- 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-rSRPzpN3.js";
6
+ import { $ as RequestContext, $t as isItdAuthError, A as ClientConnection, An as QrLocationPrecision, At as ItdApiError, B as OperationAnnotations, Bt as ItdFileErrorReason, C as SubscriptionState, Cn as InteractionType, Ct as operationBucket, D as Emitter, Dn as Loose, Dt as DEFAULT_RATE_LIMIT_BUCKET, E as UsernameAvailability, En as LikesVisibility, Et as BUCKET_LIMITS, Fn as UsernameUnavailableReason, Ft as ItdConflictError, G as ClientHooks, Gt as ItdRateLimitError, H as OperationMetadata, Ht as ItdNetworkError, I as DEFAULT_BASE_URL, In as ViewReason, It as ItdError, J as PaginationOptions, Jt as ItdTimeoutError, K as ErrorContextHook, Kt as ItdServerError, L as STATUS_SERVICE, Ln as ViewSource, Lt as ItdErrorKind, M as AuthProvider, Mn as ReportTargetType, Mt as ItdApiErrorKind, Nn as ServiceState, Nt as ItdAuthError, O as Listener, On as MessageAccess, Ot as RateLimitBucket, Pn as SpanType, Pt as ItdConfigError, Q as RawRequestOptions, Qt as isItdApiError, R as LIBRARY_VERSION, Rn as WallAccess, Rt as ItdFieldErrors, S as PublicProfile, Sn as IncidentKind, St as isBuiltInOperationId, T as UserSummary, Tn as LastSeenUnit, Tt as operationRetrySafety, U as OperationMethod, Ut as ItdNotFoundError, Vt as ItdForbiddenError, W as RetrySafety, Wt as ItdPhoneVerificationError, X as RateLimitBucketOverride, Xt as RateLimitErrorScope, Y as RateLimitBucketContext, Yt as ItdValidationError, Z as RateLimitOptions, Zt as TimeoutBudget, _ as MyProfile, _n as CaptchaField, _t as BuiltInOperationId, a as NotificationEvent, an as isItdPhoneVerificationError, at as RetryOptions, b as PrivacySettings, bn as EventChannelStatus, bt as OPERATIONS, c as NotificationSettings, cn as isItdStateError, ct as QueryValue, d as AuthUser, dn as Span, dt as RuntimeMode, en as isItdConflictError, et as RequestExtensions, f as Author, fn as UserId, ft as createUuidV4, g as MessageAllowlistUser, gn as CaptchaChoice, gt as systemClock, h as MessageAllowlistMembership, hn as AttachmentType, ht as ItdClock, i as formatNotificationText, in as isItdNotFoundError, it as RetryDecisionContext, j as AuthIdentity, jn as ReportReason, jt as ItdApiErrorInit, k as Unsubscribe, kn as NotificationType, kt as ItdAbortError, l as Actor, ln as isItdValidationError, lt as ServiceDefinition, m as LastSeen, mn as AccessType, mt as Logger, n as canonicalNotificationType, nn as isItdFileError, nt as ResponseContext, o as normalizeNotification, on as isItdRateLimitError, ot as RuntimeOptions, p as FollowResult, pn as UserRef, pt as LogLevel, q as OperationRequestOptions, qt as ItdStateError, r as isKnownNotificationType, rn as isItdForbiddenError, rt as RetryContext, s as Notification, sn as isItdServerError, st as QueryParams, t as resolveNotificationUrl, tn as isItdError, tt as RequestOptions, u as AuthState, un as IsoDate, ut as RateLimitPacing, v as Pin, vn as CaptchaType, vt as CustomOperationId, w as UserBase, wn as ItdErrorCode, wt as operationMethod, x as Profile, xn as FeedTab, xt as OperationId, y as PinsResult, yn as CommentSort, yt as ItdOperationDefinition, z as FeatureOperationId, zt as ItdFileError } from "./shared/url-D4bo3tpX.js";
7
+ import { $ as InternationalSubscriptionCheckoutMode, $i as AttemptExtensions, $n as CommentReplyTo, $r as CreateReportInput, $t as ReportsResource, A as UsersResource, Ai as ChatSentMessage, An as Report, Ar as Paginator, At as ShopDeliveryDestination, B as ViewTracker, Bi as FeatureBucketDefinition, Bn as HashtagsResource, Br as messageMarkup, Bt as ShopOrderSummary, C as fromStream, Ci as ChatReaction, Cn as StatusDay, Cr as ChatsResource, Ct as ShopConsent, D as UpdatePrivacyInput, Di as ChatReadCursor, Dn as ChangelogEntry, Dr as Page, Dt as ShopDeliveryCalculation, E as MessageAllowlistParams, Ei as ChatReactionType, En as AnnouncementButton, Er as BaseResource, Et as ShopCreatedOrder, F as TelemetryBatchOptions, Fi as ChatUpdateType, Fn as LegalDocumentBlockType, Fr as message, Ft as ShopOrderBase, G as SubscriptionCheckoutReleaseInput, Gi as ManagedClientResource, Gn as BannerDrawingOperation, Gr as MarkupSpan, Gt as ShopProductColor, H as ViewTrackerOptions, Hi as FeatureInstallation, Hn as UploadOptions, Hr as MarkupBuilder, Ht as ShopPayment, I as TelemetryClock, Ii as ChatUpdatesPage, In as LegalDocumentScope, Ir as MessageMarkup, It as ShopOrderDelivery, J as SubscriptionPayOptions, Ji as PreparedFileSource, Jn as UploadedBannerDrawing, Jr as markup, Jt as ShopRecipient, K as SubscriptionCheckoutTerms, Ki as FileResolver, Kn as BannerDrawingPoint, Kr as TextMarkup, Kt as ShopProductSpec, L as TelemetryOptions, Li as ChatUploadOptions, Ln as LegalDocumentSummary, Lr as MessageMarkupBuilder, Lt as ShopOrderItem, M as InteractionEntry, Mi as ChatTextEntity, Mn as LegalResource, Mr as mapPage, Mt as ShopOrder, N as PhotoOpenInput, Ni as ChatUnreadState, Nn as LegalDocument, Nr as MessageBuilder, Nt as ShopOrderAccessSession, O as UpdateProfileInput, Oi as ChatReadResult, On as Clan, Or as PageState, Ot as ShopDeliveryCity, P as TelemetryBatch, Pi as ChatUpdate, Pn as LegalDocumentBlock, Pr as MessageInput, Pt as ShopOrderAccessVerification, Q as InternationalSubscriptionCheckout, Qi as AttemptContext, Qn as Comment, Qr as CreatePostData, Qt as SearchResult, R as TelemetryResource, Ri as ChatUploadedFile, Rn as LegalDocumentVersion, Rr as MessageMarkupContent, Rt as ShopOrderItemInput, S as VideoMimeType, Si as ChatPreview, Sn as ServiceStatus, Sr as ChatListParams, St as CreateShopOrderInput, T as VerificationResource, Ti as ChatReactionCount, Tn as Announcement, Tr as SetChatReactionsInput, Tt as ShopConsentKind, U as SubscriptionBindCardOptions, Ui as FeatureOperationDefinition, Un as UploadedFile, Ur as MarkupContent, Ut as ShopProduct, V as ViewTrackerInput, Vi as FeatureContext, Vn as FilesResource, Vr as AutoSpansOptions, Vt as ShopOrderSupport, W as SubscriptionCheckoutInput, Wi as FeatureRequestOptions, Wn as BannerDrawing, Wr as MarkupInput, Wt as ShopProductCategory, X as SubscriptionResource, Xi as ResolveFileContext, Xn as RepliesParams, Xr as CreateCommentInput, Xt as ShopSizeChartRow, Y as SubscriptionPaymentInput, Yi as PreparedStreamSource, Yn as CommentsResource, Yr as ChatMessageContent, Yt as ShopSizeChart, Z as InternationalSubscriptionCapability, Zi as ResolveFileOptions, Zn as Attachment, Zr as CreatePollInput, Zt as SearchResource, _ as AllowedMimeType, _i as ChatMediaItem, _n as parseMarkdown, _r as QrLoginTarget, _t as ShopDeliveryResource, a as ShopFeatureOptions, aa as OperationTransformer, ai as ChatActionType, an as PostsResource, ar as Poll, at as SubscriptionCheckoutState, b as ImageMimeType, bi as ChatMessageReactions, bn as PlatformVersions, br as NotificationsResource, bt as ShopProductsResource, c as ShopOrderAccessStorage, ca as HttpClient, ci as ChatDeletedMessages, cn as PostBuilder, cr as PostBase, ct as SubscriptionGift, d as statusDays, di as ChatFileLink, dn as post, dr as PostUpdateResult, dt as SubscriptionPaymentProvider, ea as AttemptInterceptor, ei as SendChatMessageInput, en as ReportBuilder, er as CommentUpdateResult, et as InternationalSubscriptionOffer, f as isMyProfile, fi as ChatFirstMessage, fn as PollBuilder, fr as UpdateResultBase, ft as SubscriptionQuote, g as AUDIO_MIME_TYPES, gi as ChatMediaCategory, gn as parseHtml, gr as AccountLifecycleResource, gt as ShopConsentsResource, h as ALLOWED_MIME_TYPES, hi as ChatListPage, hn as ParseMarkupOptions, hr as comment, ht as PayShopOrderOptions, i as ShopFeatureApi, ia as OperationTransformContext, ii as isBuilder, in as FeedParams, ir as PinPostResult, it as SubscriptionCheckoutKind, j as DwellEntry, ji as ChatSummary, jn as VerificationStatus, jr as PaginatorOptions, jt as ShopDeliveryPoint, k as UserListParams, ki as ChatReply, kn as Portal, kr as PaginationMode, kt as ShopDeliveryCountry, l as ShopOrderAccessStorageAdapterOptions, la as RateLimitBucketState, li as ChatDirectResult, ln as PostInput, lr as PostCounters, lt as SubscriptionOffer, m as utcStampToIso, mi as ChatHistoryPage, mn as poll, mr as CommentInput, mt as CreateShopOrderOptions, n as SpanRenderFormat, na as ClientPlugin, ni as BuilderInput, nn as report, nr as LikeResult, nt as PaymentMethodType, o as createShopFeature, oa as PluginApi, oi as ChatAttachment, on as UserPostsParams, or as PollOption, ot as SubscriptionCheckoutStatus, p as toDate, pi as ChatForwardedMessages, pn as PollInput, pr as CommentBuilder, pt as SubscriptionRenewalAgreement, q as SubscriptionGiftInput, qi as PreparedBufferSource, qn as BannerDrawingTool, qr as autoSpans, qt as ShopProductStatus, r as renderSpans, ra as OperationExtensions, ri as ItdBuilder, rn as CommentsParams, rr as OriginalPost, rt as Subscription, s as MemoryShopOrderAccessStorage, sa as PluginTeardown, si as ChatChange, sn as CreatePostInput, sr as Post, st as SubscriptionCheckoutSubject, t as RenderSpansOptions, ta as AttemptNext, ti as UpdatePostInput, tn as ReportInput, tr as Hashtag, tt as PaymentMethod, u as createShopOrderAccessStorage, ua as CookieJar, ui as ChatEditedMessage, un as PostUpdateInput, ur as PostStats, ut as SubscriptionPayment, v as AudioMimeType, vi as ChatMediaPage, vn as PlatformClientVersion, vr as Session, vt as ShopOrderRequestOptions, w as fromUrl, wi as ChatReactionCatalog, wn as StatusIncidentLine, wr as ForwardChatMessagesInput, wt as ShopConsentContext, x as VIDEO_MIME_TYPES, xi as ChatPresence, xn as PlatformStatus, xr as UpdateNotificationSettingsInput, xt as ShopResource, y as IMAGE_MIME_TYPES, yi as ChatMessage, yn as PlatformResource, yr as NotificationListParams, yt as ShopOrdersResource, z as VideoProgressInput, zi as ClientFeature, zn as HashtagPostsParams, zr as MessageMarkupInput, zt as ShopOrderStatus } from "./shared/render-B3nhAeaQ.js";
8
+ 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-Cupq8UXH.js";
9
9
  import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-C_ZujAZt.js";
10
10
  import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-DQiERirK.js";
11
11
  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-pxnDIsQP.js";
@@ -39,6 +39,8 @@ export declare class ChatEvents {
39
39
  }, options?: ChatEventsOptions);
40
40
  /** Текущее состояние соединения. */
41
41
  get status(): EventChannelStatus;
42
+ /** Канал подключён, подключается или ожидает переподключения. */
43
+ get active(): boolean;
42
44
  /**
43
45
  * Подписывается на обновления или события подключения.
44
46
  *
@@ -1815,4 +1817,4 @@ export declare class ItdAccounts {
1815
1817
  * То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
1816
1818
  */
1817
1819
  export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1818
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, ChatActionType, type ChatAttachment, type ChatChange, type ChatDeletedMessages, type ChatDirectResult, type ChatEditedMessage, type ChatEventContext, type ChatEventMap, type ChatEventsOptions, type ChatFileLink, type ChatFirstMessage, type ChatForwardedMessages, type ChatHistoryPage, type ChatListPage, type ChatListParams, ChatMediaCategory, type ChatMediaItem, type ChatMediaPage, type ChatMessage, type ChatMessageContent, type ChatMessageReactions, type ChatPresence, type ChatPreview, type ChatReaction, type ChatReactionCatalog, type ChatReactionCount, ChatReactionType, type ChatReadCursor, type ChatReadResult, type ChatReply, type ChatSentMessage, type ChatSummary, type ChatTextEntity, type ChatUnreadState, type ChatUpdate, ChatUpdateType, type ChatUpdatesPage, type ChatUploadOptions, type ChatUploadedFile, type ChatsApi, ChatsResource, 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 ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, 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 ForwardChatMessagesInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type InternationalSubscriptionCapability, type InternationalSubscriptionCheckout, InternationalSubscriptionCheckoutMode, type InternationalSubscriptionOffer, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, 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 LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MessageAllowlistMembership, type MessageAllowlistParams, type MessageAllowlistUser, type MessageBuilder, type MessageInput, type MessageMarkup, type MessageMarkupBuilder, type MessageMarkupContent, type MessageMarkupInput, 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, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, PaymentMethodType, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, RateLimitErrorScope, type RateLimitOptions, RateLimitPacing, 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 SendChatMessageInput, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type SetChatReactionsInput, 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 ShopOrderBase, 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, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionBindCardOptions, type SubscriptionCheckoutInput, SubscriptionCheckoutKind, type SubscriptionCheckoutReleaseInput, type SubscriptionCheckoutState, SubscriptionCheckoutStatus, type SubscriptionCheckoutSubject, type SubscriptionCheckoutTerms, type SubscriptionGift, type SubscriptionGiftInput, type SubscriptionOffer, type SubscriptionPayOptions, type SubscriptionPayment, type SubscriptionPaymentInput, SubscriptionPaymentProvider, type SubscriptionQuote, type SubscriptionRenewalAgreement, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, 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, 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, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1820
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, ChatActionType, type ChatAttachment, type ChatChange, type ChatDeletedMessages, type ChatDirectResult, type ChatEditedMessage, type ChatEventContext, type ChatEventMap, type ChatEventsOptions, type ChatFileLink, type ChatFirstMessage, type ChatForwardedMessages, type ChatHistoryPage, type ChatListPage, type ChatListParams, ChatMediaCategory, type ChatMediaItem, type ChatMediaPage, type ChatMessage, type ChatMessageContent, type ChatMessageReactions, type ChatPresence, type ChatPreview, type ChatReaction, type ChatReactionCatalog, type ChatReactionCount, ChatReactionType, type ChatReadCursor, type ChatReadResult, type ChatReply, type ChatSentMessage, type ChatSummary, type ChatTextEntity, type ChatUnreadState, type ChatUpdate, ChatUpdateType, type ChatUpdatesPage, type ChatUploadOptions, type ChatUploadedFile, type ChatsApi, ChatsResource, 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 ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, 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 ForwardChatMessagesInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type InternationalSubscriptionCapability, type InternationalSubscriptionCheckout, InternationalSubscriptionCheckoutMode, type InternationalSubscriptionOffer, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, 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 LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MessageAllowlistMembership, type MessageAllowlistParams, type MessageAllowlistUser, type MessageBuilder, type MessageInput, type MessageMarkup, type MessageMarkupBuilder, type MessageMarkupContent, type MessageMarkupInput, 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, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, PaymentMethodType, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, RateLimitErrorScope, type RateLimitOptions, RateLimitPacing, 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 SendChatMessageInput, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type SetChatReactionsInput, 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 ShopOrderBase, 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, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionBindCardOptions, type SubscriptionCheckoutInput, SubscriptionCheckoutKind, type SubscriptionCheckoutReleaseInput, type SubscriptionCheckoutState, SubscriptionCheckoutStatus, type SubscriptionCheckoutSubject, type SubscriptionCheckoutTerms, type SubscriptionGift, type SubscriptionGiftInput, type SubscriptionOffer, type SubscriptionPayOptions, type SubscriptionPayment, type SubscriptionPaymentInput, SubscriptionPaymentProvider, type SubscriptionQuote, type SubscriptionRenewalAgreement, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, 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, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, createUuidV4, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as isItdFileError, C as ItdValidationError, D as isItdAuthError, E as isItdApiError, F as isItdServerError, I as isItdStateError, L as isItdValidationError, M as isItdNotFoundError, N as isItdPhoneVerificationError, O as isItdConflictError, P as isItdRateLimitError, S as ItdTimeoutError, T as TimeoutBudget, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, j as isItdForbiddenError, k as isItdError, l as ItdConfigError, m as ItdFileErrorReason, n as isRecord, o as ItdApiError, p as ItdFileError, s as ItdApiErrorKind, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as RateLimitErrorScope, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-oLSGiGwQ.js";
2
- import { $ as ChatReactionType, A as AccountLifecycleResource, B as AUDIO_MIME_TYPES, C as poll, D as LegalDocumentScope, E as LegalDocumentBlockType, F as BaseResource, G as autoSpans, H as VIDEO_MIME_TYPES, I as PaginationMode, J as normalizeChatUpdate, K as markup, L as Paginator, M as createFeatureHost, N as ExtensibleOperationCatalog, O as comment, P as ChatsResource, Q as ChatMediaCategory, R as mapPage, S as post, T as parseMarkdown, U as message, V as IMAGE_MIME_TYPES, W as messageMarkup, X as utcStampToIso, Y as toDate, Z as ChatActionType, _ as PaymentMethodType, a as createShopOrderAccessStorage, b as SubscriptionPaymentProvider, c as ShopOrderStatus, d as isMyProfile, et as ChatUpdateType, f as BannerDrawingTool, g as InternationalSubscriptionCheckoutMode, h as createResources, i as MemoryShopOrderAccessStorage, j as NotificationsResource, k as createStatusFeature, l as ShopProductCategory, m as fromUrl, n as renderSpans, o as statusDays, p as fromStream, q as isBuilder, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as SubscriptionCheckoutKind, w as parseHtml, x as report, y as SubscriptionCheckoutStatus, z as ALLOWED_MIME_TYPES } from "./shared/render-DhoQdYkn.js";
3
- import { _ as Emitter, a as EVENT_OPERATIONS, c as resolveNotificationEventsOptions, d as NotificationUpdateType, f as createParser, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as setNotificationEventsConnectGuard, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin, v as reportListenerError } from "./shared/events-BdiOYajm.js";
4
- import { $ as CommentSort, A as passthroughOperation, B as OperationMethod, C as RateLimitPacing, F as operationBucket, G as createRequestAbortScope, I as operationMethod, J as AccessType, K as requestAbortError, L as operationRetrySafety, M as OPERATIONS, N as defineBuiltInOperation, P as isBuiltInOperationId, Q as CaptchaType, R as BUCKET_LIMITS, S as LIBRARY_VERSION, T as pickArray, V as RetrySafety, X as CaptchaChoice, Y as AttachmentType, Z as CaptchaField, _ as orderPluginDefinitions, _t as WallAccess, at as LastSeenUnit, b as STATUS_SERVICE, ct as NotificationType, d as ITD_CATALOG, dt as ReportTargetType, et as EventChannelStatus, f as createClientRuntime, ft as ServiceState, g as assertPluginRemovable, gt as ViewSource, h as RequestQueuePool, ht as ViewReason, it as ItdErrorCode, j as voidOperation, k as pickString, l as canonicalNotificationType, lt as QrLocationPrecision, mt as UsernameUnavailableReason, n as formatNotificationText, nt as IncidentKind, o as normalizeNotification, ot as LikesVisibility, p as createApiError, pt as SpanType, rt as InteractionType, st as MessageAccess, t as resolveNotificationUrl, tt as FeedTab, u as isKnownNotificationType, ut as ReportReason, v as DEFAULT_BASE_URL, w as installAsyncDisposeFallback, x as resolveRateLimit, yt as systemClock, z as DEFAULT_RATE_LIMIT_BUCKET } from "./shared/url-DH4We-ip.js";
5
- import { D as fallbackLogger, E as LogLevel, a as isSerializedCookieEntry, i as REFRESH_COOKIE_PATH, k as resolveLogger, n as CookieJar, r as REFRESH_COOKIE, s as encodePathSegment, u as joinUrl, v as RuntimeMode, y as createDeviceId } from "./shared/cookies-BdntFeQ5.js";
6
- import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-8oAVzQmF.js";
7
- import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-hYW_Whkx.js";
8
- import { c as FileTransferMode } from "./shared/options-BqQVtTmm.js";
9
- import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-BJdmlzkM.js";
1
+ import { A as isItdFileError, C as ItdValidationError, D as isItdAuthError, E as isItdApiError, F as isItdServerError, I as isItdStateError, L as isItdValidationError, M as isItdNotFoundError, N as isItdPhoneVerificationError, O as isItdConflictError, P as isItdRateLimitError, S as ItdTimeoutError, T as TimeoutBudget, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, j as isItdForbiddenError, k as isItdError, l as ItdConfigError, m as ItdFileErrorReason, n as isRecord, o as ItdApiError, p as ItdFileError, s as ItdApiErrorKind, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as RateLimitErrorScope, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-CCgIq5u0.js";
2
+ import { $ as ChatReactionType, A as AccountLifecycleResource, B as AUDIO_MIME_TYPES, C as poll, D as LegalDocumentScope, E as LegalDocumentBlockType, F as BaseResource, G as autoSpans, H as VIDEO_MIME_TYPES, I as PaginationMode, J as normalizeChatUpdate, K as markup, L as Paginator, M as createFeatureHost, N as ExtensibleOperationCatalog, O as comment, P as ChatsResource, Q as ChatMediaCategory, R as mapPage, S as post, T as parseMarkdown, U as message, V as IMAGE_MIME_TYPES, W as messageMarkup, X as utcStampToIso, Y as toDate, Z as ChatActionType, _ as PaymentMethodType, a as createShopOrderAccessStorage, b as SubscriptionPaymentProvider, c as ShopOrderStatus, d as isMyProfile, et as ChatUpdateType, f as BannerDrawingTool, g as InternationalSubscriptionCheckoutMode, h as createResources, i as MemoryShopOrderAccessStorage, j as NotificationsResource, k as createStatusFeature, l as ShopProductCategory, m as fromUrl, n as renderSpans, o as statusDays, p as fromStream, q as isBuilder, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as SubscriptionCheckoutKind, w as parseHtml, x as report, y as SubscriptionCheckoutStatus, z as ALLOWED_MIME_TYPES } from "./shared/render-C706i1rL.js";
3
+ import { _ as Emitter, a as EVENT_OPERATIONS, c as resolveNotificationEventsOptions, d as NotificationUpdateType, f as createParser, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as setNotificationEventsConnectGuard, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin, v as reportListenerError } from "./shared/events-BbpL69OD.js";
4
+ import { $ as CaptchaField, B as BUCKET_LIMITS, C as setQueuedAuthPreparation, D as pickArray, E as installAsyncDisposeFallback, F as defineBuiltInOperation, H as OperationMethod, I as isBuiltInOperationId, J as requestAbortError, L as operationBucket, M as passthroughOperation, N as voidOperation, P as OPERATIONS, Q as CaptchaChoice, R as operationMethod, T as readTokenMetadata, U as RetrySafety, V as DEFAULT_RATE_LIMIT_BUCKET, X as AccessType, Z as AttachmentType, _ as STATUS_SERVICE, _t as ViewReason, at as InteractionType, b as RateLimitPacing, c as ITD_CATALOG, ct as LikesVisibility, dt as QrLocationPrecision, et as CaptchaType, f as RequestQueuePool, ft as ReportReason, gt as UsernameUnavailableReason, h as DEFAULT_BASE_URL, ht as SpanType, it as IncidentKind, j as pickString, l as createClientRuntime, lt as MessageAccess, m as orderPluginDefinitions, mt as ServiceState, n as formatNotificationText, nt as EventChannelStatus, o as canonicalNotificationType, ot as ItdErrorCode, p as assertPluginRemovable, pt as ReportTargetType, q as createRequestAbortScope, r as normalizeNotification, rt as FeedTab, s as isKnownNotificationType, st as LastSeenUnit, t as resolveNotificationUrl, tt as CommentSort, u as createApiError, ut as NotificationType, v as resolveRateLimit, vt as ViewSource, xt as systemClock, y as LIBRARY_VERSION, yt as WallAccess, z as operationRetrySafety } from "./shared/url-CZpgaPdI.js";
5
+ import { D as fallbackLogger, E as LogLevel, a as isSerializedCookieEntry, i as REFRESH_COOKIE_PATH, k as resolveLogger, n as CookieJar, r as REFRESH_COOKIE, s as encodePathSegment, u as joinUrl, v as RuntimeMode, y as createUuidV4 } from "./shared/cookies-mDZE19_j.js";
6
+ import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-ChR4KC8V.js";
7
+ import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-CLPyg8_T.js";
8
+ import { c as FileTransferMode } from "./shared/options-Dana2yeL.js";
9
+ import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-BDvrZ-GQ.js";
10
10
  // src/events/chats.ts
11
11
  /** Канал событий чатов. Доступен как `itd.chats.events` в полном клиенте. */
12
12
  var ChatEvents = class {
@@ -50,6 +50,10 @@ var ChatEvents = class {
50
50
  get status() {
51
51
  return this.#channel.status;
52
52
  }
53
+ /** Канал подключён, подключается или ожидает переподключения. */
54
+ get active() {
55
+ return this.#channel.active;
56
+ }
53
57
  /**
54
58
  * Подписывается на обновления или события подключения.
55
59
  *
@@ -722,45 +726,6 @@ async function solveCaptchaToken(solver, askProvider, context) {
722
726
  function captchaBody(captcha) {
723
727
  return { [resolveField(captcha.type, captcha.field)]: captcha.token };
724
728
  }
725
- // src/session/jwt.ts
726
- /**
727
- * Разбирает строку base64url.
728
- *
729
- * `atob` понимает только обычный base64, поэтому алфавит приводится к нему, а недостающее
730
- * выравнивание добивается. Результат декодируется как UTF-8: в полезной нагрузке токена
731
- * может оказаться кириллица, и «бинарная» строка из `atob` сломала бы `JSON.parse`.
732
- */
733
- function decodeBase64Url(segment) {
734
- const base64 = segment.replace(/-/g, "+").replace(/_/g, "/");
735
- const padded = base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
736
- const binary = atob(padded);
737
- const bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));
738
- return new TextDecoder().decode(bytes);
739
- }
740
- /** Читает полезную нагрузку JWT без проверки подписи. */
741
- function readTokenPayload(token) {
742
- try {
743
- const payload = token.split(".")[1];
744
- if (!payload) return void 0;
745
- const parsed = JSON.parse(decodeBase64Url(payload));
746
- if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return void 0;
747
- return parsed;
748
- } catch {
749
- return;
750
- }
751
- }
752
- /** Читает используемые клиентом поля JWT за один раз. */
753
- function readTokenMetadata(token) {
754
- const payload = readTokenPayload(token);
755
- if (!payload) return {};
756
- const { sub, sid, exp } = payload;
757
- const expiresAt = typeof exp === "number" && Number.isFinite(exp) ? exp * 1e3 : void 0;
758
- return {
759
- ...typeof sub === "string" && sub.length > 0 ? { subject: sub } : {},
760
- ...typeof sid === "string" && sid.length > 0 ? { sessionId: sid } : {},
761
- ...expiresAt !== void 0 && Number.isFinite(expiresAt) ? { expiresAt } : {}
762
- };
763
- }
764
729
  // src/session/auth.ts
765
730
  /** Запас до истечения токена на очередь и выполнение запроса. */
766
731
  const ACCESS_TOKEN_REFRESH_LEEWAY_MS = 3e4;
@@ -1009,6 +974,16 @@ var AuthManager = class {
1009
974
  this.#jar = jar;
1010
975
  this.#hooks = hooks;
1011
976
  this.#emitter = new Emitter((error) => reportListenerError(config.logger, "авторизации", error));
977
+ const auth = config.auth;
978
+ if (hooks.onAccountChange && typeof auth === "object" && "getToken" in auth) setQueuedAuthPreparation(this, { prepare: async () => {
979
+ const token = await this.#prepareAccessToken();
980
+ return () => {
981
+ const current = this.#session?.accessToken ?? this.#externalToken ?? null;
982
+ if (token === current) return true;
983
+ const { userId } = this.#identityForToken(token ?? void 0);
984
+ return userId !== void 0 && userId === this.getCurrentAuthIdentity().userId;
985
+ };
986
+ } });
1012
987
  }
1013
988
  /** Подписка на события авторизации. */
1014
989
  get on() {
@@ -1179,10 +1154,16 @@ var AuthManager = class {
1179
1154
  }
1180
1155
  /** Перед каждой попыткой перечитывает внешний источник токена. */
1181
1156
  async prepare() {
1157
+ await this.#prepareAccessToken();
1158
+ }
1159
+ /** Возвращает токен, прочитанный при подготовке этой попытки. */
1160
+ async #prepareAccessToken() {
1182
1161
  this.#assertActive();
1183
- if ((await this.#loadSession())?.accessToken) return;
1162
+ const session = await this.#loadSession();
1163
+ if (session?.accessToken) return session.accessToken;
1184
1164
  const auth = this.#config.auth;
1185
- if (typeof auth === "object" && auth !== null && "getToken" in auth) await this.#readExternalToken(() => auth.getToken());
1165
+ if (typeof auth === "object" && auth !== null && "getToken" in auth) return this.#readExternalToken(() => auth.getToken());
1166
+ return null;
1186
1167
  }
1187
1168
  /**
1188
1169
  * Заголовки уже подготовленной авторизации без чтения storage или вызова внешнего источника.
@@ -1223,7 +1204,7 @@ var AuthManager = class {
1223
1204
  const revision = this.#authEpoch;
1224
1205
  const session = await this.#loadSession();
1225
1206
  this.#assertActive();
1226
- const deviceId = this.#config.deviceId ?? session?.deviceId ?? createDeviceId();
1207
+ const deviceId = this.#config.deviceId ?? session?.deviceId ?? createUuidV4();
1227
1208
  this.#deviceId = deviceId;
1228
1209
  if (this.#authEpoch !== revision) return deviceId;
1229
1210
  if (session?.deviceId !== deviceId) await this.#saveSession({
@@ -2549,7 +2530,10 @@ var ItdClient = class ItdClient {
2549
2530
  assertActive: (action) => assertClientActive(this, action),
2550
2531
  auth: (deps) => createItdAuth(options, {
2551
2532
  ...deps,
2552
- onAccountChange: () => featureHost?.stop()
2533
+ onAccountChange: () => {
2534
+ deps.onAccountChange?.();
2535
+ featureHost?.stop();
2536
+ }
2553
2537
  })
2554
2538
  });
2555
2539
  this.#features = featureHost = createFeatureHost(this.#runtime, {
@@ -3412,6 +3396,6 @@ const ContactKind = Object.freeze({
3412
3396
  Email: "email",
3413
3397
  Phone: "phone"
3414
3398
  });
3415
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, BannerDrawingTool, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, ChatActionType, ChatEvents, ChatMediaCategory, ChatReactionType, ChatUpdateType, ChatsResource, CommentSort, ContactKind, ContactProofMethod, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, InternationalSubscriptionCheckoutMode, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LastSeenUnit, LegalDocumentBlockType, LegalDocumentScope, LikesVisibility, LogLevel, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, OperationMethod, PaginationMode, Paginator, PaymentMethodType, PhoneDeliveryChannel, PhoneLoginStep, PhoneReverseState, PhoneVerificationMethod, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitErrorScope, RateLimitPacing, RateLimitScope, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, SubscriptionCheckoutKind, SubscriptionCheckoutStatus, SubscriptionPaymentProvider, TURNSTILE_SITE_KEY, TimeoutBudget, UnauthorizedStreamError, UsernameUnavailableReason, VIDEO_MIME_TYPES, ViewReason, ViewSource, WallAccess, WebSocketTransport, 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, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
3399
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, BannerDrawingTool, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, ChatActionType, ChatEvents, ChatMediaCategory, ChatReactionType, ChatUpdateType, ChatsResource, CommentSort, ContactKind, ContactProofMethod, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, InternationalSubscriptionCheckoutMode, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LastSeenUnit, LegalDocumentBlockType, LegalDocumentScope, LikesVisibility, LogLevel, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, OperationMethod, PaginationMode, Paginator, PaymentMethodType, PhoneDeliveryChannel, PhoneLoginStep, PhoneReverseState, PhoneVerificationMethod, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitErrorScope, RateLimitPacing, RateLimitScope, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, SubscriptionCheckoutKind, SubscriptionCheckoutStatus, SubscriptionPaymentProvider, TURNSTILE_SITE_KEY, TimeoutBudget, UnauthorizedStreamError, UsernameUnavailableReason, VIDEO_MIME_TYPES, ViewReason, ViewSource, WallAccess, WebSocketTransport, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, createUuidV4, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, message, messageMarkup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
3416
3400
 
3417
3401
  //# sourceMappingURL=index.js.map