itd-api 0.10.4 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +2 -1
  2. package/dist/events/index.cjs +27 -25
  3. package/dist/events/index.d.cts +3 -3
  4. package/dist/events/index.d.ts +3 -3
  5. package/dist/events/index.js +5 -5
  6. package/dist/index.cjs +136 -116
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.cts +18 -7
  9. package/dist/index.d.ts +18 -7
  10. package/dist/index.js +46 -30
  11. package/dist/index.js.map +1 -1
  12. package/dist/node/index.cjs +13 -13
  13. package/dist/node/index.cjs.map +1 -1
  14. package/dist/node/index.js +5 -5
  15. package/dist/rest/index.cjs +43 -40
  16. package/dist/rest/index.cjs.map +1 -1
  17. package/dist/rest/index.d.cts +3 -3
  18. package/dist/rest/index.d.ts +3 -3
  19. package/dist/rest/index.js +6 -6
  20. package/dist/shared/{events-B8cjz_Ed.cjs → events-C6tmj8aW.cjs} +63 -59
  21. package/dist/shared/events-C6tmj8aW.cjs.map +1 -0
  22. package/dist/shared/{events-DGdU8q1X.d.ts → events-CAb9G7Sf.d.ts} +2 -2
  23. package/dist/shared/{events-D2n7Yu1P.js → events-MWNcnfrq.js} +19 -15
  24. package/dist/shared/events-MWNcnfrq.js.map +1 -0
  25. package/dist/shared/{events-CK3zHntT.d.cts → events-Sc75x6rT.d.cts} +2 -2
  26. package/dist/shared/{key-value-store-B5GYVEYZ.cjs → key-value-store-DYSPsqwq.cjs} +11 -14
  27. package/dist/shared/key-value-store-DYSPsqwq.cjs.map +1 -0
  28. package/dist/shared/{key-value-store-Bt2PSMxY.js → key-value-store-w1Dn5Pjb.js} +5 -8
  29. package/dist/shared/key-value-store-w1Dn5Pjb.js.map +1 -0
  30. package/dist/shared/{multi-storage-C3Ngtop1.js → multi-storage-BLBrGN9Q.js} +6 -6
  31. package/dist/shared/multi-storage-BLBrGN9Q.js.map +1 -0
  32. package/dist/shared/{multi-storage-s-fPtjoy.cjs → multi-storage-C7-Gz6Z7.cjs} +8 -8
  33. package/dist/shared/multi-storage-C7-Gz6Z7.cjs.map +1 -0
  34. package/dist/shared/{options-DjEtbVaf.cjs → options-5tywTYId.cjs} +13 -13
  35. package/dist/shared/{options-DjEtbVaf.cjs.map → options-5tywTYId.cjs.map} +1 -1
  36. package/dist/shared/{options-i4LrKfqx.js → options-BerKicCs.js} +3 -3
  37. package/dist/shared/{options-i4LrKfqx.js.map → options-BerKicCs.js.map} +1 -1
  38. package/dist/shared/{redact-DJV0XM3n.js → redact-C5oxIvcc.js} +79 -18
  39. package/dist/shared/redact-C5oxIvcc.js.map +1 -0
  40. package/dist/shared/{redact-lAmck1Z6.cjs → redact-DoC7lSsp.cjs} +109 -24
  41. package/dist/shared/redact-DoC7lSsp.cjs.map +1 -0
  42. package/dist/shared/{render-UsOGMRzS.d.ts → render-CBroJPcV.d.ts} +178 -252
  43. package/dist/shared/{render-9F_kR6sq.d.cts → render-DM7AhTZW.d.cts} +178 -252
  44. package/dist/shared/{render-C6CJ343E.js → render-DRh5_aRe.js} +128 -135
  45. package/dist/shared/render-DRh5_aRe.js.map +1 -0
  46. package/dist/shared/{render-BrrZOSV5.cjs → render-Dnc84B4M.cjs} +234 -241
  47. package/dist/shared/render-Dnc84B4M.cjs.map +1 -0
  48. package/dist/shared/{storage-DiDe0PZM.js → storage-86wiHeXD.js} +3 -3
  49. package/dist/shared/{storage-DiDe0PZM.js.map → storage-86wiHeXD.js.map} +1 -1
  50. package/dist/shared/{storage-CZJZoaz9.cjs → storage-CIjejZDt.cjs} +4 -4
  51. package/dist/shared/{storage-CZJZoaz9.cjs.map → storage-CIjejZDt.cjs.map} +1 -1
  52. package/dist/shared/{url-yB6T_H_-.d.ts → url-BOi-_mJT.d.cts} +143 -79
  53. package/dist/shared/{url-yB6T_H_-.d.cts → url-BOi-_mJT.d.ts} +143 -79
  54. package/dist/shared/{url-Dc7wLikf.js → url-Bg61sk_Y.js} +723 -590
  55. package/dist/shared/url-Bg61sk_Y.js.map +1 -0
  56. package/dist/shared/{url-BNTKqBMB.cjs → url-DTgkCWv5.cjs} +830 -709
  57. package/dist/shared/url-DTgkCWv5.cjs.map +1 -0
  58. package/dist/shared/{errors-BmP3TKoW.cjs → validate-CFx2dISs.cjs} +84 -5
  59. package/dist/shared/validate-CFx2dISs.cjs.map +1 -0
  60. package/dist/shared/{errors-GI10kZxk.js → validate-D7_kq3g5.js} +55 -6
  61. package/dist/shared/validate-D7_kq3g5.js.map +1 -0
  62. package/dist/web/index.cjs +4 -4
  63. package/dist/web/index.cjs.map +1 -1
  64. package/dist/web/index.js +3 -3
  65. package/package.json +1 -1
  66. package/dist/shared/errors-BmP3TKoW.cjs.map +0 -1
  67. package/dist/shared/errors-GI10kZxk.js.map +0 -1
  68. package/dist/shared/events-B8cjz_Ed.cjs.map +0 -1
  69. package/dist/shared/events-D2n7Yu1P.js.map +0 -1
  70. package/dist/shared/key-value-store-B5GYVEYZ.cjs.map +0 -1
  71. package/dist/shared/key-value-store-Bt2PSMxY.js.map +0 -1
  72. package/dist/shared/multi-storage-C3Ngtop1.js.map +0 -1
  73. package/dist/shared/multi-storage-s-fPtjoy.cjs.map +0 -1
  74. package/dist/shared/redact-DJV0XM3n.js.map +0 -1
  75. package/dist/shared/redact-lAmck1Z6.cjs.map +0 -1
  76. package/dist/shared/render-BrrZOSV5.cjs.map +0 -1
  77. package/dist/shared/render-C6CJ343E.js.map +0 -1
  78. package/dist/shared/url-BNTKqBMB.cjs.map +0 -1
  79. package/dist/shared/url-Dc7wLikf.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as SpanType, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, En as WallAccess, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as ServiceState, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as ViewSource, Tt as RateLimitBucketOverride, U as isItdApiError, Ut as BuiltInOperationId, V as ItdTimeoutError, Vt as ItdClock, W as isItdAuthError, Wt as CustomOperationId, X as isItdPhoneVerificationError, Xt as operationMethod, Y as isItdNotFoundError, Yt as operationBucket, Z as isItdRateLimitError, Zt as operationRetrySafety, _ as PrivacySettings, _n as Loose, _t as OperationMethod, a as NotificationEvent, an as AccessType, b as SubscriptionState, bn as ReportReason, bt as ErrorContextHook, c as NotificationSettings, cn as CaptchaField, ct as Listener, d as AuthUser, dn as EventChannelStatus, dt as STATUS_SERVICE, en as RateLimitBucket, et as isItdValidationError, f as Author, fn as FeedTab, ft as LIBRARY_VERSION, g as PinsResult, gn as LikesVisibility, gt as OperationMetadata, h as Pin, hn as ItdErrorCode, i as formatNotificationText, in as UserRef, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaType, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, n as canonicalNotificationType, nn as Span, nt as AuthIdentity, o as normalizeNotification, on as AttachmentType, p as FollowResult, pn as IncidentKind, pt as FeatureOperationId, q as isItdFileError, qt as OperationId, r as isKnownNotificationType, rn as UserId, rt as AuthProvider, s as Notification, sn as CaptchaChoice, st as Emitter, t as resolveNotificationUrl, tn as IsoDate, tt as ClientConnection, u as AuthState, un as CommentSort, ut as DEFAULT_BASE_URL, v as Profile, vn as NotificationType, vt as RetrySafety, w as ItdApiErrorInit, wn as ViewReason, wt as RateLimitBucketContext, x as UserSummary, xn as ReportTargetType, xt as Logger, y as PublicProfile, yn as QrLocationPrecision, yt as ClientHooks, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-yB6T_H_-.cjs";
2
- import { $ as ShopConsentContext, $n as PageState, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as ClientPlugin, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginApi, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as OperationTransformer, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as QrLoginTarget, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationListParams, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Session, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as PluginTeardown, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as Page, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as AttemptNext, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformContext, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as UpdateNotificationSettingsInput, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationsResource, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as BaseResource, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as ResolveFileOptions, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as ClientFeature, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptExtensions, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureInstallation, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as ManagedClientResource, dt as ShopOrderItem, en as PlatformClientVersion, er as PaginationMode, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as FileResolver, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileContext, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as PreparedStreamSource, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as RateLimitBucketState, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kr as CookieJar, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureOperationDefinition, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedFileSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as PaginatorOptions, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureBucketDefinition, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedBufferSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Subscription, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as mapPage, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureContext, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as Paginator, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as FeatureRequestOptions, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as HttpClient, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationExtensions, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptInterceptor, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptContext, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-9F_kR6sq.cjs";
3
- import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-CK3zHntT.cjs";
1
+ import { $ as isItdServerError, $t as operationRetrySafety, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as ReportTargetType, Ct as PaginationOptions, D as ItdConfigError, Dn as ViewSource, Dt as RawRequestOptions, E as ItdAuthError, En as ViewReason, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdAuthError, Gt as BuiltInOperationId, H as ItdValidationError, Ht as Logger, I as ItdNotFoundError, It as QueryParams, J as isItdFileError, Jt as OPERATIONS, K as isItdConflictError, Kt as CustomOperationId, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, On as WallAccess, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdRateLimitError, Qt as operationMethod, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as ReportReason, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as SpanType, Tt as RateLimitBucketOverride, U as TimeoutBudget, Ut as ItdClock, V as ItdTimeoutError, Vt as LogLevel, W as isItdApiError, Wt as systemClock, X as isItdNotFoundError, Xt as isBuiltInOperationId, Y as isItdForbiddenError, Yt as OperationId, Z as isItdPhoneVerificationError, Zt as operationBucket, _ as PrivacySettings, _n as ItdErrorCode, _t as OperationMetadata, a as NotificationEvent, an as UserId, at as ClientConnection, b as SubscriptionState, bn as NotificationType, bt as ClientHooks, c as NotificationSettings, cn as AttachmentType, d as AuthUser, dn as CaptchaType, dt as DEFAULT_BASE_URL, en as BUCKET_LIMITS, et as isItdStateError, f as Author, fn as CommentSort, ft as STATUS_SERVICE, g as PinsResult, gn as InteractionType, h as Pin, hn as IncidentKind, ht as OperationAnnotations, i as formatNotificationText, in as Span, it as Unsubscribe, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaChoice, m as MyProfile, mn as FeedTab, mt as FeatureOperationId, n as canonicalNotificationType, nn as RateLimitBucket, nt as Emitter, o as normalizeNotification, on as UserRef, ot as AuthIdentity, p as FollowResult, pn as EventChannelStatus, pt as LIBRARY_VERSION, q as isItdError, qt as ItdOperationDefinition, r as isKnownNotificationType, rn as IsoDate, rt as Listener, s as Notification, sn as AccessType, st as AuthProvider, t as resolveNotificationUrl, tn as DEFAULT_RATE_LIMIT_BUCKET, tt as isItdValidationError, u as AuthState, un as CaptchaField, v as Profile, vn as LikesVisibility, vt as OperationMethod, w as ItdApiErrorInit, wn as ServiceState, wt as RateLimitBucketContext, x as UserSummary, xn as QrLocationPrecision, xt as ErrorContextHook, y as PublicProfile, yn as Loose, yt as RetrySafety, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-BOi-_mJT.cjs";
2
+ import { $ as ShopConsentContext, $n as PageState, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as PreparedBufferSource, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as ResolveFileOptions, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as ResolveFileContext, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as QrLoginTarget, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationListParams, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Session, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as HttpClient, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as Page, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as FileResolver, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as PreparedStreamSource, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as UpdateNotificationSettingsInput, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationsResource, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as BaseResource, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as FeatureContext, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as AttemptContext, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as FeatureRequestOptions, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as AttemptNext, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as OperationTransformContext, dt as ShopOrderItem, en as PlatformClientVersion, er as PaginationMode, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as OperationTransformer, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as FeatureBucketDefinition, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ClientFeature, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as RateLimitBucketState, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kr as CookieJar, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as ClientPlugin, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PluginTeardown, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as PaginatorOptions, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as AttemptExtensions, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PluginApi, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Subscription, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as mapPage, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as AttemptInterceptor, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as Paginator, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as OperationExtensions, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as FeatureInstallation, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as PreparedFileSource, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as ManagedClientResource, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as FeatureOperationDefinition, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-DM7AhTZW.cjs";
3
+ import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-Sc75x6rT.cjs";
4
4
  import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-BoT7msmq.cjs";
5
5
  import { a as KeyValueStoreResult, c as createKeyValueStore, d as withCodec, f as withNamespace, i as KeyValueStoreKeys, l as createRecordKeyValueStore, n as KeyValueCodec, o as MemoryKeyValueStore, r as KeyValueStore, s as RecordKeyValueStoreSource, t as EnumerableKeyValueStore, u as isEnumerableKeyValueStore } from "./shared/key-value-store-COZaNHZS.cjs";
6
6
  import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-BQrtKon9.cjs";
@@ -107,6 +107,11 @@ interface QrLoginStreamEvent {
107
107
  }
108
108
  //#endregion
109
109
  //#region src/session/options.d.ts
110
+ /** Что клиент передаёт источнику токена капчи при каждом обращении. */
111
+ interface CaptchaSolveContext {
112
+ /** Логгер клиента, если он включён. */
113
+ logger: Logger | undefined;
114
+ }
110
115
  /**
111
116
  * Источник токенов капчи.
112
117
  *
@@ -116,7 +121,7 @@ interface QrLoginStreamEvent {
116
121
  */
117
122
  interface CaptchaSolver {
118
123
  /** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
119
- getToken(type: CaptchaType): string | Promise<string>;
124
+ getToken(type: CaptchaType, context: CaptchaSolveContext): string | Promise<string>;
120
125
  /**
121
126
  * Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
122
127
  *
@@ -134,7 +139,7 @@ interface CaptchaSolver {
134
139
  field?: CaptchaField | undefined;
135
140
  }
136
141
  /** Источник токенов капчи: объект с `getToken` либо сама функция. */
137
- type CaptchaSolverInput = CaptchaSolver | ((type: CaptchaType) => string | Promise<string>);
142
+ type CaptchaSolverInput = CaptchaSolver | CaptchaSolver['getToken'];
138
143
  /**
139
144
  * Вход по логину и паролю.
140
145
  *
@@ -1006,7 +1011,13 @@ declare function createClient(options?: ItdClientOptions): ItdClient;
1006
1011
  //#endregion
1007
1012
  //#region src/accounts.d.ts
1008
1013
  /** Как аккаунты делят между собой очередь запросов. */
1009
- type RateLimitScope = 'account' | 'shared';
1014
+ declare const RateLimitScope: Readonly<{
1015
+ /** У каждого аккаунта своя очередь. */
1016
+ readonly Account: "account";
1017
+ /** Одна очередь на всех — умолчание. */
1018
+ readonly Shared: "shared";
1019
+ }>;
1020
+ type RateLimitScope = (typeof RateLimitScope)[keyof typeof RateLimitScope];
1010
1021
  /**
1011
1022
  * Фабрика подключаемого модуля для клиентов {@link ItdAccounts}.
1012
1023
  *
@@ -1270,5 +1281,5 @@ declare class ItdAccounts {
1270
1281
  */
1271
1282
  declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1272
1283
  //#endregion
1273
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, type OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1284
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1274
1285
  //# sourceMappingURL=index.d.cts.map
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as SpanType, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, En as WallAccess, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as ServiceState, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as ViewSource, Tt as RateLimitBucketOverride, U as isItdApiError, Ut as BuiltInOperationId, V as ItdTimeoutError, Vt as ItdClock, W as isItdAuthError, Wt as CustomOperationId, X as isItdPhoneVerificationError, Xt as operationMethod, Y as isItdNotFoundError, Yt as operationBucket, Z as isItdRateLimitError, Zt as operationRetrySafety, _ as PrivacySettings, _n as Loose, _t as OperationMethod, a as NotificationEvent, an as AccessType, b as SubscriptionState, bn as ReportReason, bt as ErrorContextHook, c as NotificationSettings, cn as CaptchaField, ct as Listener, d as AuthUser, dn as EventChannelStatus, dt as STATUS_SERVICE, en as RateLimitBucket, et as isItdValidationError, f as Author, fn as FeedTab, ft as LIBRARY_VERSION, g as PinsResult, gn as LikesVisibility, gt as OperationMetadata, h as Pin, hn as ItdErrorCode, i as formatNotificationText, in as UserRef, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaType, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, n as canonicalNotificationType, nn as Span, nt as AuthIdentity, o as normalizeNotification, on as AttachmentType, p as FollowResult, pn as IncidentKind, pt as FeatureOperationId, q as isItdFileError, qt as OperationId, r as isKnownNotificationType, rn as UserId, rt as AuthProvider, s as Notification, sn as CaptchaChoice, st as Emitter, t as resolveNotificationUrl, tn as IsoDate, tt as ClientConnection, u as AuthState, un as CommentSort, ut as DEFAULT_BASE_URL, v as Profile, vn as NotificationType, vt as RetrySafety, w as ItdApiErrorInit, wn as ViewReason, wt as RateLimitBucketContext, x as UserSummary, xn as ReportTargetType, xt as Logger, y as PublicProfile, yn as QrLocationPrecision, yt as ClientHooks, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-yB6T_H_-.js";
2
- import { $ as ShopConsentContext, $n as PageState, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as ClientPlugin, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginApi, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as OperationTransformer, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as QrLoginTarget, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationListParams, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Session, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as PluginTeardown, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as Page, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as AttemptNext, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformContext, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as UpdateNotificationSettingsInput, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationsResource, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as BaseResource, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as ResolveFileOptions, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as ClientFeature, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptExtensions, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureInstallation, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as ManagedClientResource, dt as ShopOrderItem, en as PlatformClientVersion, er as PaginationMode, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as FileResolver, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileContext, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as PreparedStreamSource, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as RateLimitBucketState, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kr as CookieJar, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureOperationDefinition, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedFileSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as PaginatorOptions, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureBucketDefinition, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedBufferSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Subscription, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as mapPage, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureContext, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as Paginator, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as FeatureRequestOptions, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as HttpClient, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationExtensions, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptInterceptor, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptContext, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-UsOGMRzS.js";
3
- import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-DGdU8q1X.js";
1
+ import { $ as isItdServerError, $t as operationRetrySafety, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as ReportTargetType, Ct as PaginationOptions, D as ItdConfigError, Dn as ViewSource, Dt as RawRequestOptions, E as ItdAuthError, En as ViewReason, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdAuthError, Gt as BuiltInOperationId, H as ItdValidationError, Ht as Logger, I as ItdNotFoundError, It as QueryParams, J as isItdFileError, Jt as OPERATIONS, K as isItdConflictError, Kt as CustomOperationId, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, On as WallAccess, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdRateLimitError, Qt as operationMethod, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as ReportReason, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as SpanType, Tt as RateLimitBucketOverride, U as TimeoutBudget, Ut as ItdClock, V as ItdTimeoutError, Vt as LogLevel, W as isItdApiError, Wt as systemClock, X as isItdNotFoundError, Xt as isBuiltInOperationId, Y as isItdForbiddenError, Yt as OperationId, Z as isItdPhoneVerificationError, Zt as operationBucket, _ as PrivacySettings, _n as ItdErrorCode, _t as OperationMetadata, a as NotificationEvent, an as UserId, at as ClientConnection, b as SubscriptionState, bn as NotificationType, bt as ClientHooks, c as NotificationSettings, cn as AttachmentType, d as AuthUser, dn as CaptchaType, dt as DEFAULT_BASE_URL, en as BUCKET_LIMITS, et as isItdStateError, f as Author, fn as CommentSort, ft as STATUS_SERVICE, g as PinsResult, gn as InteractionType, h as Pin, hn as IncidentKind, ht as OperationAnnotations, i as formatNotificationText, in as Span, it as Unsubscribe, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaChoice, m as MyProfile, mn as FeedTab, mt as FeatureOperationId, n as canonicalNotificationType, nn as RateLimitBucket, nt as Emitter, o as normalizeNotification, on as UserRef, ot as AuthIdentity, p as FollowResult, pn as EventChannelStatus, pt as LIBRARY_VERSION, q as isItdError, qt as ItdOperationDefinition, r as isKnownNotificationType, rn as IsoDate, rt as Listener, s as Notification, sn as AccessType, st as AuthProvider, t as resolveNotificationUrl, tn as DEFAULT_RATE_LIMIT_BUCKET, tt as isItdValidationError, u as AuthState, un as CaptchaField, v as Profile, vn as LikesVisibility, vt as OperationMethod, w as ItdApiErrorInit, wn as ServiceState, wt as RateLimitBucketContext, x as UserSummary, xn as QrLocationPrecision, xt as ErrorContextHook, y as PublicProfile, yn as Loose, yt as RetrySafety, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-BOi-_mJT.js";
2
+ import { $ as ShopConsentContext, $n as PageState, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as PreparedBufferSource, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as ResolveFileOptions, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as ResolveFileContext, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as QrLoginTarget, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationListParams, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Session, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as HttpClient, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as Page, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as FileResolver, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as PreparedStreamSource, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as UpdateNotificationSettingsInput, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationsResource, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as BaseResource, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as FeatureContext, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as AttemptContext, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as FeatureRequestOptions, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as AttemptNext, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as OperationTransformContext, dt as ShopOrderItem, en as PlatformClientVersion, er as PaginationMode, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as OperationTransformer, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as FeatureBucketDefinition, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ClientFeature, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as RateLimitBucketState, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kr as CookieJar, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as ClientPlugin, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PluginTeardown, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as PaginatorOptions, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as AttemptExtensions, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PluginApi, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Subscription, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as mapPage, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as AttemptInterceptor, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as Paginator, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as OperationExtensions, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as FeatureInstallation, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as PreparedFileSource, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as ManagedClientResource, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as FeatureOperationDefinition, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-CBroJPcV.js";
3
+ import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-CAb9G7Sf.js";
4
4
  import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-BoT7msmq.js";
5
5
  import { a as KeyValueStoreResult, c as createKeyValueStore, d as withCodec, f as withNamespace, i as KeyValueStoreKeys, l as createRecordKeyValueStore, n as KeyValueCodec, o as MemoryKeyValueStore, r as KeyValueStore, s as RecordKeyValueStoreSource, t as EnumerableKeyValueStore, u as isEnumerableKeyValueStore } from "./shared/key-value-store-COZaNHZS.js";
6
6
  import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-CTRGT5wF.js";
@@ -107,6 +107,11 @@ interface QrLoginStreamEvent {
107
107
  }
108
108
  //#endregion
109
109
  //#region src/session/options.d.ts
110
+ /** Что клиент передаёт источнику токена капчи при каждом обращении. */
111
+ interface CaptchaSolveContext {
112
+ /** Логгер клиента, если он включён. */
113
+ logger: Logger | undefined;
114
+ }
110
115
  /**
111
116
  * Источник токенов капчи.
112
117
  *
@@ -116,7 +121,7 @@ interface QrLoginStreamEvent {
116
121
  */
117
122
  interface CaptchaSolver {
118
123
  /** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
119
- getToken(type: CaptchaType): string | Promise<string>;
124
+ getToken(type: CaptchaType, context: CaptchaSolveContext): string | Promise<string>;
120
125
  /**
121
126
  * Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
122
127
  *
@@ -134,7 +139,7 @@ interface CaptchaSolver {
134
139
  field?: CaptchaField | undefined;
135
140
  }
136
141
  /** Источник токенов капчи: объект с `getToken` либо сама функция. */
137
- type CaptchaSolverInput = CaptchaSolver | ((type: CaptchaType) => string | Promise<string>);
142
+ type CaptchaSolverInput = CaptchaSolver | CaptchaSolver['getToken'];
138
143
  /**
139
144
  * Вход по логину и паролю.
140
145
  *
@@ -1006,7 +1011,13 @@ declare function createClient(options?: ItdClientOptions): ItdClient;
1006
1011
  //#endregion
1007
1012
  //#region src/accounts.d.ts
1008
1013
  /** Как аккаунты делят между собой очередь запросов. */
1009
- type RateLimitScope = 'account' | 'shared';
1014
+ declare const RateLimitScope: Readonly<{
1015
+ /** У каждого аккаунта своя очередь. */
1016
+ readonly Account: "account";
1017
+ /** Одна очередь на всех — умолчание. */
1018
+ readonly Shared: "shared";
1019
+ }>;
1020
+ type RateLimitScope = (typeof RateLimitScope)[keyof typeof RateLimitScope];
1010
1021
  /**
1011
1022
  * Фабрика подключаемого модуля для клиентов {@link ItdAccounts}.
1012
1023
  *
@@ -1270,5 +1281,5 @@ declare class ItdAccounts {
1270
1281
  */
1271
1282
  declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1272
1283
  //#endregion
1273
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, type OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1284
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LazyFile, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, RateLimitScope, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createAccounts, createClient, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1274
1285
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { A as SpanType, B as operationRetrySafety, C as ItdErrorCode, D as ReportReason, E as QrLocationPrecision, F as OPERATIONS, H as DEFAULT_RATE_LIMIT_BUCKET, I as defineBuiltInOperation, K as pickArray, L as isBuiltInOperationId, M as ViewSource, N as WallAccess, O as ReportTargetType, P as ITD_CATALOG, R as operationBucket, S as InteractionType, T as NotificationType, U as createClientRuntime, V as BUCKET_LIMITS, W as createApiError, X as pickString, Z as RetrySafety, _ as CaptchaType, _t as installAsyncDisposeFallback, at as assertPluginRemovable, b as FeedTab, c as normalizeNotification, d as canonicalNotificationType, dt as LIBRARY_VERSION, f as isKnownNotificationType, ft as isRecord, g as CaptchaField, gt as systemClock, h as CaptchaChoice, it as RequestQueuePool, j as ViewReason, k as ServiceState, lt as STATUS_SERVICE, m as AttachmentType, mt as RateLimitPacing, n as formatNotificationText, nt as requestAbortError, o as passthroughOperation, ot as orderPluginDefinitions, p as AccessType, pt as requireOptionalBoolean, s as voidOperation, st as DEFAULT_BASE_URL, t as resolveNotificationUrl, tt as createRequestAbortScope, ut as resolveRateLimit, v as CommentSort, w as LikesVisibility, x as IncidentKind, y as EventChannelStatus, z as operationMethod } from "./shared/url-Dc7wLikf.js";
2
- import { A as isItdStateError, C as isItdError, D as isItdPhoneVerificationError, E as isItdNotFoundError, O as isItdRateLimitError, S as isItdConflictError, T as isItdForbiddenError, _ as ItdStateError, a as ItdConfigError, b as isItdApiError, c as ItdErrorKind, d as ItdForbiddenError, f as ItdNetworkError, g as ItdServerError, h as ItdRateLimitError, i as ItdAuthError, j as isItdValidationError, k as isItdServerError, l as ItdFileError, m as ItdPhoneVerificationError, n as ItdApiError, o as ItdConflictError, p as ItdNotFoundError, r as ItdApiErrorKind, s as ItdError, t as ItdAbortError, u as ItdFileErrorReason, v as ItdTimeoutError, w as isItdFileError, x as isItdAuthError, y as ItdValidationError } from "./shared/errors-GI10kZxk.js";
3
- import { c as REFRESH_COOKIE, h as joinUrl, l as REFRESH_COOKIE_PATH, s as CookieJar, u as isSerializedCookieEntry, v as RuntimeMode, y as createDeviceId } from "./shared/redact-DJV0XM3n.js";
4
- import { A as utcStampToIso, C as AUDIO_MIME_TYPES, D as isBuilder, E as comment, F as mapPage, I as createFeatureHost, L as ExtensibleOperationCatalog, M as BaseResource, N as PaginationMode, O as createStatusFeature, P as Paginator, S as ALLOWED_MIME_TYPES, T as VIDEO_MIME_TYPES, _ as poll, a as createShopOrderAccessStorage, b as parseHtml, c as ShopOrderStatus, d as isMyProfile, f as fromStream, g as post, h as report, i as MemoryShopOrderAccessStorage, j as NotificationsResource, k as toDate, l as ShopProductCategory, m as createResources, n as renderSpans, o as statusDays, p as fromUrl, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as autoSpans, w as IMAGE_MIME_TYPES, x as parseMarkdown, y as markup } from "./shared/render-C6CJ343E.js";
5
- import { c as FileTransferMode } from "./shared/options-i4LrKfqx.js";
6
- import { _ as Emitter, a as WebSocketTransport, c as NotificationEventsTransport, d as NotificationUpdateOrigin, f as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as resolveNotificationEventsOptions, m as EventChannel, n as EventRouter, o as EVENT_OPERATIONS, p as createParser, r as NotificationEventsClient, s as NotificationEvents, t as EventComposer, u as setNotificationEventsConnectGuard, v as reportListenerError } from "./shared/events-D2n7Yu1P.js";
7
- import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-Bt2PSMxY.js";
8
- import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-DiDe0PZM.js";
9
- import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-C3Ngtop1.js";
1
+ import { A as SpanType, B as operationRetrySafety, C as ItdErrorCode, D as ReportReason, E as QrLocationPrecision, F as OPERATIONS, G as pickArray, H as DEFAULT_RATE_LIMIT_BUCKET, I as defineBuiltInOperation, L as isBuiltInOperationId, M as ViewSource, N as WallAccess, O as ReportTargetType, P as ITD_CATALOG, R as operationBucket, S as InteractionType, T as NotificationType, U as createClientRuntime, V as BUCKET_LIMITS, W as createApiError, X as OperationMethod, Y as pickString, Z as RetrySafety, _ as CaptchaType, at as assertPluginRemovable, b as FeedTab, c as normalizeNotification, d as canonicalNotificationType, dt as LIBRARY_VERSION, f as isKnownNotificationType, ft as RateLimitPacing, g as CaptchaField, h as CaptchaChoice, ht as installAsyncDisposeFallback, it as RequestQueuePool, j as ViewReason, k as ServiceState, lt as STATUS_SERVICE, m as AttachmentType, mt as systemClock, n as formatNotificationText, nt as requestAbortError, o as passthroughOperation, ot as orderPluginDefinitions, p as AccessType, s as voidOperation, st as DEFAULT_BASE_URL, t as resolveNotificationUrl, tt as createRequestAbortScope, ut as resolveRateLimit, v as CommentSort, w as LikesVisibility, x as IncidentKind, y as EventChannelStatus, z as operationMethod } from "./shared/url-Bg61sk_Y.js";
2
+ import { A as isItdForbiddenError, C as ItdValidationError, D as isItdConflictError, E as isItdAuthError, F as isItdStateError, I as isItdValidationError, M as isItdPhoneVerificationError, N as isItdRateLimitError, O as isItdError, P as isItdServerError, S as ItdTimeoutError, T as isItdApiError, _ 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 isItdNotFoundError, k as isItdFileError, 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 TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-D7_kq3g5.js";
3
+ import { D as fallbackLogger, E as LogLevel, c as REFRESH_COOKIE, h as joinUrl, k as resolveLogger, l as REFRESH_COOKIE_PATH, s as CookieJar, u as isSerializedCookieEntry, v as RuntimeMode, y as createDeviceId } from "./shared/redact-C5oxIvcc.js";
4
+ import { A as utcStampToIso, C as AUDIO_MIME_TYPES, D as isBuilder, E as comment, F as mapPage, I as createFeatureHost, L as ExtensibleOperationCatalog, M as BaseResource, N as PaginationMode, O as createStatusFeature, P as Paginator, S as ALLOWED_MIME_TYPES, T as VIDEO_MIME_TYPES, _ as poll, a as createShopOrderAccessStorage, b as parseHtml, c as ShopOrderStatus, d as isMyProfile, f as fromStream, g as post, h as report, i as MemoryShopOrderAccessStorage, j as NotificationsResource, k as toDate, l as ShopProductCategory, m as createResources, n as renderSpans, o as statusDays, p as fromUrl, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as autoSpans, w as IMAGE_MIME_TYPES, x as parseMarkdown, y as markup } from "./shared/render-DRh5_aRe.js";
5
+ import { c as FileTransferMode } from "./shared/options-BerKicCs.js";
6
+ import { _ as Emitter, a as WebSocketTransport, c as NotificationEventsTransport, d as NotificationUpdateOrigin, f as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as resolveNotificationEventsOptions, m as EventChannel, n as EventRouter, o as EVENT_OPERATIONS, p as createParser, r as NotificationEventsClient, s as NotificationEvents, t as EventComposer, u as setNotificationEventsConnectGuard, v as reportListenerError } from "./shared/events-MWNcnfrq.js";
7
+ import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-w1Dn5Pjb.js";
8
+ import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-86wiHeXD.js";
9
+ import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-BLBrGN9Q.js";
10
10
  //#region src/notifications-api.ts
11
11
  var ClientNotifications = class extends NotificationsResource {
12
12
  #createEvents;
@@ -144,8 +144,8 @@ function resolveField(type, configured) {
144
144
  throw new ItdConfigError(`Неизвестно, в каком поле сервер ждёт токен капчи «${type}». Передайте captcha.field либо оставьте captcha.type = ${CaptchaChoice.Auto}, чтобы поле назвал сервер.`);
145
145
  }
146
146
  /** Спрашивает токен у источника и убеждается, что он непустой. */
147
- async function requireSolvedToken(solver, type) {
148
- const token = await solver.getToken(type);
147
+ async function requireSolvedToken(solver, type, context) {
148
+ const token = await solver.getToken(type, context);
149
149
  if (typeof token === "string" && token.trim() !== "") return token;
150
150
  throw new ItdConfigError(`Источник капчи не вернул токен для провайдера «${type}». Проверьте captcha.getToken.`);
151
151
  }
@@ -156,15 +156,16 @@ async function requireSolvedToken(solver, type) {
156
156
  * и имя поля приходят оттуда. Явно названный тип обходится без этого запроса.
157
157
  *
158
158
  * @param askProvider как спросить активного провайдера; вызывается, только если это нужно
159
+ * @param context что источник получает вместе с типом капчи
159
160
  * @throws {ItdConfigError} если токен получить не удалось
160
161
  */
161
- async function solveCaptchaBody(solver, askProvider) {
162
+ async function solveCaptchaBody(solver, askProvider, context) {
162
163
  const choice = solver.type ?? CaptchaChoice.Auto;
163
164
  if (choice === CaptchaChoice.Auto) {
164
165
  const { provider, field } = await askProvider();
165
- return { [field]: await requireSolvedToken(solver, provider) };
166
+ return { [field]: await requireSolvedToken(solver, provider, context) };
166
167
  }
167
- return { [resolveField(choice, solver.field)]: await requireSolvedToken(solver, choice) };
168
+ return { [resolveField(choice, solver.field)]: await requireSolvedToken(solver, choice, context) };
168
169
  }
169
170
  /**
170
171
  * Готовит фрагмент тела из готового токена.
@@ -259,7 +260,7 @@ function validateAuth(auth) {
259
260
  }
260
261
  function resolveStorage(storage) {
261
262
  if (storage === void 0) return new MemoryTokenStorage();
262
- if (!isRecord(storage)) throw new ItdConfigError("storage должен быть объектом TokenStorage");
263
+ if (!isObjectLike(storage)) throw new ItdConfigError("storage должен быть объектом TokenStorage");
263
264
  for (const method of [
264
265
  "get",
265
266
  "set",
@@ -274,7 +275,7 @@ function resolveStorage(storage) {
274
275
  * @throws {ItdConfigError} при некорректных значениях
275
276
  */
276
277
  function resolveSessionConfig(options, runtime) {
277
- if (!isRecord(options)) throw new ItdConfigError("опции клиента должны быть объектом");
278
+ if (!isObjectLike(options)) throw new ItdConfigError("опции клиента должны быть объектом");
278
279
  requireOptionalBoolean(options.autoRefresh, "autoRefresh");
279
280
  requireOptionalBoolean(options.reloginOnRefreshFailure, "reloginOnRefreshFailure");
280
281
  if (options.deviceId !== void 0 && (typeof options.deviceId !== "string" || options.deviceId.trim() === "")) throw new ItdConfigError("deviceId должен быть непустой строкой");
@@ -776,6 +777,7 @@ var AuthManager = class {
776
777
  obtainedAt: this.#config.clock.now()
777
778
  });
778
779
  this.#emitter.emit("tokens", { accessToken });
780
+ this.#config.logger?.info(`${replaceSession ? "вход выполнен" : "принят токен доступа"}${this.#describeUser(accessToken)}`);
779
781
  await saved;
780
782
  return true;
781
783
  }
@@ -827,6 +829,7 @@ var AuthManager = class {
827
829
  const retained = this.#deviceId ? { deviceId: this.#deviceId } : null;
828
830
  this.#session = retained;
829
831
  this.#emitter.emit("signOut", void 0);
832
+ this.#config.logger?.info("сессия очищена");
830
833
  await this.#enqueuePersistence(async () => {
831
834
  await this.#config.storage.clear();
832
835
  if (retained) await this.#config.storage.set(copySession(retained));
@@ -844,6 +847,7 @@ var AuthManager = class {
844
847
  this.#assertActive();
845
848
  const stored = loaded === null ? null : normalizeSessionValue(loaded, "storage.get()", "stored", this.#config.logger);
846
849
  if (stored?.cookies) this.#jar.deserialize(stored.cookies);
850
+ if (stored?.accessToken) this.#config.logger?.info(`сессия восстановлена из хранилища${this.#describeUser(stored.accessToken)}`);
847
851
  const fromConfig = this.#sessionFromConfig(this.#config.auth);
848
852
  this.#session = stored && fromConfig ? {
849
853
  ...stored,
@@ -940,12 +944,14 @@ var AuthManager = class {
940
944
  obtainedAt: this.#config.clock.now()
941
945
  });
942
946
  this.#emitter.emit("tokens", { accessToken });
947
+ this.#config.logger?.info("токен доступа обновлён");
943
948
  await saved;
944
949
  if (this.#authEpoch !== expectation.epoch) return this.#currentAccessToken();
945
950
  return accessToken;
946
951
  } catch (error) {
947
952
  if (this.#authEpoch !== expectation.epoch) return this.#currentAccessToken();
948
953
  if (error instanceof ItdAuthError) {
954
+ this.#config.logger?.warn(`обновить сессию не удалось (${error.message}); сохранённая сессия удалена`);
949
955
  this.#invalidateInFlight();
950
956
  const clearedRevision = this.#authEpoch;
951
957
  this.#transitionAuth(void 0);
@@ -1001,7 +1007,7 @@ var AuthManager = class {
1001
1007
  const configured = this.#takeConfiguredCaptcha();
1002
1008
  if (configured) return captchaBody(configured);
1003
1009
  const solver = this.#config.captcha;
1004
- if (solver) return solveCaptchaBody(solver, () => this.#resolveCaptchaProvider());
1010
+ if (solver) return solveCaptchaBody(solver, () => this.#resolveCaptchaProvider(), { logger: this.#config.logger });
1005
1011
  this.#config.logger?.debug("Запрос уходит без токена капчи: не передан аргумент captcha и не задана опция captcha");
1006
1012
  return {};
1007
1013
  }
@@ -1009,7 +1015,7 @@ var AuthManager = class {
1009
1015
  #takeConfiguredCaptcha() {
1010
1016
  if (this.#configCaptchaSpent) return void 0;
1011
1017
  const auth = this.#config.auth;
1012
- const captcha = isRecord(auth) ? auth.captcha : void 0;
1018
+ const captcha = typeof auth === "object" && auth !== null && "email" in auth ? auth.captcha : void 0;
1013
1019
  if (!captcha) return void 0;
1014
1020
  this.#configCaptchaSpent = true;
1015
1021
  return captcha;
@@ -1060,9 +1066,15 @@ var AuthManager = class {
1060
1066
  });
1061
1067
  this.#emitter.emit("tokens", { accessToken });
1062
1068
  this.#emitter.emit("signIn", { accessToken });
1069
+ this.#config.logger?.info(`вход по email и паролю выполнен${this.#describeUser(accessToken)}`);
1063
1070
  await saved;
1064
1071
  return accessToken;
1065
1072
  }
1073
+ /** Хвост сообщения журнала с идентификатором пользователя, если токен его содержит. */
1074
+ #describeUser(accessToken) {
1075
+ const userId = this.#identityForToken(accessToken).userId;
1076
+ return userId ? `: пользователь ${userId}` : "";
1077
+ }
1066
1078
  };
1067
1079
  //#endregion
1068
1080
  //#region src/session/qr-stream.ts
@@ -1120,7 +1132,7 @@ async function openQrLoginStream(connection, cookies, input, onEvent, signal) {
1120
1132
  const path = AUTH_PATHS.qrStream;
1121
1133
  const method = "POST";
1122
1134
  const url = joinUrl(connection.baseUrl, path);
1123
- const abort = createRequestAbortScope(signal, connection.signal, 0, connection.clock);
1135
+ const abort = createRequestAbortScope(signal, connection.signal, connection.clock);
1124
1136
  try {
1125
1137
  const headers = await connection.baseHeaders(url);
1126
1138
  headers.delete("Authorization");
@@ -1145,7 +1157,6 @@ async function openQrLoginStream(connection, cookies, input, onEvent, signal) {
1145
1157
  cause: error
1146
1158
  });
1147
1159
  throw requestAbortError(abort, {
1148
- timeout: 0,
1149
1160
  method,
1150
1161
  path
1151
1162
  }, failure);
@@ -1175,7 +1186,6 @@ async function openQrLoginStream(connection, cookies, input, onEvent, signal) {
1175
1186
  await consumeQrLoginStream(response.body, onEvent, abort.signal);
1176
1187
  } catch (error) {
1177
1188
  throw requestAbortError(abort, {
1178
- timeout: 0,
1179
1189
  method,
1180
1190
  path
1181
1191
  }, error);
@@ -2171,6 +2181,13 @@ function createClient(options = {}) {
2171
2181
  }
2172
2182
  //#endregion
2173
2183
  //#region src/accounts.ts
2184
+ /** Как аккаунты делят между собой очередь запросов. */
2185
+ const RateLimitScope = Object.freeze({
2186
+ /** У каждого аккаунта своя очередь. */
2187
+ Account: "account",
2188
+ /** Одна очередь на всех — умолчание. */
2189
+ Shared: "shared"
2190
+ });
2174
2191
  /** Проверяет имя до создания клиента или частичного восстановления контейнера. */
2175
2192
  function validateAccountName(name) {
2176
2193
  if (typeof name !== "string" || name.trim() === "") throw new ItdConfigError("имя аккаунта должно быть непустой строкой");
@@ -2260,15 +2277,16 @@ var ItdAccounts = class ItdAccounts {
2260
2277
  #disposePromise;
2261
2278
  constructor(options = {}) {
2262
2279
  const { storage, plugins, features, rateLimitScope, ...base } = options;
2263
- if (rateLimitScope !== void 0 && rateLimitScope !== "account" && rateLimitScope !== "shared") throw new ItdConfigError("rateLimitScope должен быть 'account' или 'shared'");
2280
+ const scopes = Object.values(RateLimitScope);
2281
+ if (rateLimitScope !== void 0 && !scopes.includes(rateLimitScope)) throw new ItdConfigError(`rateLimitScope должен быть одним из ${scopes.join(", ")}`);
2264
2282
  this.#base = base;
2265
2283
  this.#storage = storage ?? new MemoryMultiTokenStorage();
2266
2284
  this.#plugins = orderPluginDefinitions(plugins ?? []);
2267
2285
  this.#features = resolveAccountFeatures(features);
2268
- this.#rateLimitScope = rateLimitScope ?? "shared";
2269
- const rateLimit = this.#rateLimitScope === "shared" ? resolveRateLimit(base.rateLimit, ITD_CATALOG) : void 0;
2286
+ this.#rateLimitScope = rateLimitScope ?? RateLimitScope.Shared;
2287
+ const rateLimit = this.#rateLimitScope === RateLimitScope.Shared ? resolveRateLimit(base.rateLimit, ITD_CATALOG) : void 0;
2270
2288
  this.#queues = rateLimit ? new RequestQueuePool(rateLimit, base.clock ?? systemClock) : void 0;
2271
- const logger = typeof base.logger === "object" ? base.logger : void 0;
2289
+ const logger = resolveLogger(base.logger);
2272
2290
  this.#logger = logger;
2273
2291
  this.#emitter = new Emitter((error) => reportListenerError(logger, "аккаунтов", error));
2274
2292
  }
@@ -2311,7 +2329,7 @@ var ItdAccounts = class ItdAccounts {
2311
2329
  validateAccountName(name);
2312
2330
  if (this.#clients.has(name)) throw new ItdConfigError(`аккаунт «${name}» уже добавлен. Возьмите его через accounts.account('${name}')`);
2313
2331
  if (this.#removing.has(name)) throw new ItdConfigError(`аккаунт «${name}» ещё удаляется. Дождитесь завершения removeAccount() перед повторным добавлением`);
2314
- if (this.#rateLimitScope === "shared" && options.rateLimit !== void 0 && options.rateLimit !== false) throw new ItdConfigError("при rateLimitScope: 'shared' настройки rateLimit задаются контейнеру; аккаунту можно передать только rateLimit: false");
2332
+ if (this.#rateLimitScope === RateLimitScope.Shared && options.rateLimit !== void 0 && options.rateLimit !== false) throw new ItdConfigError("при rateLimitScope: 'shared' настройки rateLimit задаются контейнеру; аккаунту можно передать только rateLimit: false");
2315
2333
  const storageControl = controlledTokenStorage(this.#storage, name);
2316
2334
  let client;
2317
2335
  try {
@@ -2602,9 +2620,7 @@ var ItdAccounts = class ItdAccounts {
2602
2620
  }
2603
2621
  /** Не теряет ошибку фонового освобождения ресурсов, которого синхронный API не ждёт. */
2604
2622
  #reportCleanup(scope, error) {
2605
- const message = `Не удалось освободить ресурсы после ${scope}`;
2606
- if (this.#logger) this.#logger.error(message, error);
2607
- else console.error(`[itd-api] ${message}`, error);
2623
+ (this.#logger ?? fallbackLogger).error(`Не удалось освободить ресурсы после ${scope}`, error);
2608
2624
  }
2609
2625
  /** Ретранслирует события клиента наружу, добавляя к ним имя аккаунта. */
2610
2626
  #forwardEvents(account, client) {
@@ -2634,6 +2650,6 @@ function createAccounts(options = {}) {
2634
2650
  return new ItdAccounts(options);
2635
2651
  }
2636
2652
  //#endregion
2637
- export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, CommentSort, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LikesVisibility, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, PaginationMode, Paginator, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitPacing, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, TURNSTILE_SITE_KEY, UnauthorizedStreamError, 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, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
2653
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, AttachmentType, BUCKET_LIMITS, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, CaptchaType, CommentSort, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, EventChannel, EventChannelStatus, EventComposer, EventRouter, FeedTab, FileTransferMode, IMAGE_MIME_TYPES, IncidentKind, InteractionType, ItdAbortError, ItdAccounts, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdClient, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LikesVisibility, LogLevel, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, OPERATIONS, OperationMethod, PaginationMode, Paginator, QrLocationPrecision, QrLoginStatus, QrLoginStreamStatus, RateLimitPacing, RateLimitScope, ReportReason, ReportTargetType, RetrySafety, RuntimeMode, STATUS_SERVICE, ServiceState, ShopConsentKind, ShopOrderStatus, ShopProductCategory, ShopProductStatus, SignInStatus, SpanRenderFormat, SpanType, TURNSTILE_SITE_KEY, TimeoutBudget, UnauthorizedStreamError, 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, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
2638
2654
 
2639
2655
  //# sourceMappingURL=index.js.map