itd-api 0.12.1 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/events/index.cjs +4 -4
  2. package/dist/events/index.d.cts +7 -2
  3. package/dist/events/index.d.ts +7 -2
  4. package/dist/events/index.js +4 -4
  5. package/dist/index.cjs +715 -90
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +515 -46
  8. package/dist/index.d.ts +515 -46
  9. package/dist/index.js +707 -91
  10. package/dist/index.js.map +1 -1
  11. package/dist/node/index.cjs +6 -7
  12. package/dist/node/index.cjs.map +1 -1
  13. package/dist/node/index.d.cts +24 -7
  14. package/dist/node/index.d.ts +24 -7
  15. package/dist/node/index.js +6 -7
  16. package/dist/node/index.js.map +1 -1
  17. package/dist/rest/index.cjs +19 -7
  18. package/dist/rest/index.cjs.map +1 -1
  19. package/dist/rest/index.d.cts +28 -7
  20. package/dist/rest/index.d.ts +28 -7
  21. package/dist/rest/index.js +17 -8
  22. package/dist/rest/index.js.map +1 -1
  23. package/dist/shared/{contracts-BoT7msmq.d.ts → contracts-DEbkC0cB.d.cts} +1 -4
  24. package/dist/shared/{contracts-BoT7msmq.d.cts → contracts-pxnDIsQP.d.ts} +1 -4
  25. package/dist/shared/{events-FaXfdle0.d.cts → events-Bip3qvCc.d.cts} +42 -63
  26. package/dist/shared/{events-9215JDDd.d.ts → events-DF1elRzZ.d.ts} +2 -23
  27. package/dist/shared/{events-_iYo8EP5.js → events-DRbBDq9p.js} +30 -40
  28. package/dist/shared/events-DRbBDq9p.js.map +1 -0
  29. package/dist/shared/{events-BKyxZQNw.cjs → events-DcxmyPTX.cjs} +30 -40
  30. package/dist/shared/events-DcxmyPTX.cjs.map +1 -0
  31. package/dist/shared/{key-value-store-COZaNHZS.d.ts → key-value-store-BGoSgLze.d.cts} +1 -4
  32. package/dist/shared/{key-value-store-w1Dn5Pjb.js → key-value-store-BwXlaoD4.js} +3 -4
  33. package/dist/shared/{key-value-store-w1Dn5Pjb.js.map → key-value-store-BwXlaoD4.js.map} +1 -1
  34. package/dist/shared/{key-value-store-DYSPsqwq.cjs → key-value-store-CmnIjuE4.cjs} +3 -4
  35. package/dist/shared/{key-value-store-DYSPsqwq.cjs.map → key-value-store-CmnIjuE4.cjs.map} +1 -1
  36. package/dist/shared/{key-value-store-COZaNHZS.d.cts → key-value-store-WUQBeTAr.d.ts} +1 -4
  37. package/dist/shared/{multi-storage-LkljOSzA.d.ts → multi-storage-DQiERirK.d.ts} +3 -6
  38. package/dist/shared/{multi-storage-DiBSx64p.js → multi-storage-DffEAzdc.js} +6 -7
  39. package/dist/shared/{multi-storage-DiBSx64p.js.map → multi-storage-DffEAzdc.js.map} +1 -1
  40. package/dist/shared/{multi-storage-7Y3KCseI.cjs → multi-storage-Dp5x6OOl.cjs} +6 -7
  41. package/dist/shared/multi-storage-Dp5x6OOl.cjs.map +1 -0
  42. package/dist/shared/{multi-storage-BEL7tcKn.d.cts → multi-storage-OGWNMK3x.d.cts} +3 -6
  43. package/dist/shared/{options-DLlaETn_.js → options-Ddyc5qec.js} +8 -12
  44. package/dist/shared/{options-DLlaETn_.js.map → options-Ddyc5qec.js.map} +1 -1
  45. package/dist/shared/{options-D5ttspWk.cjs → options-DsmQRyx4.cjs} +8 -12
  46. package/dist/shared/{options-D5ttspWk.cjs.map → options-DsmQRyx4.cjs.map} +1 -1
  47. package/dist/shared/{redact-DSfdmeY7.js → redact-BCmucE19.js} +16 -16
  48. package/dist/shared/redact-BCmucE19.js.map +1 -0
  49. package/dist/shared/{redact-BbhtA9o-.cjs → redact-BuXRKC1G.cjs} +16 -16
  50. package/dist/shared/redact-BuXRKC1G.cjs.map +1 -0
  51. package/dist/shared/{render-BS09ygcy.d.ts → render-Bvv1V5Tp.d.ts} +154 -102
  52. package/dist/shared/{render-BQvC5UxF.cjs → render-C1lmsu1i.cjs} +204 -109
  53. package/dist/shared/render-C1lmsu1i.cjs.map +1 -0
  54. package/dist/shared/{render-X2JCo1JS.d.cts → render-D83t9ckd.d.cts} +152 -251
  55. package/dist/shared/{render-CFoF2WaH.js → render-DJKZqv9O.js} +181 -110
  56. package/dist/shared/render-DJKZqv9O.js.map +1 -0
  57. package/dist/shared/{storage-86wiHeXD.js → storage-Bc4lWtSj.js} +4 -5
  58. package/dist/shared/{storage-86wiHeXD.js.map → storage-Bc4lWtSj.js.map} +1 -1
  59. package/dist/shared/{storage-CTRGT5wF.d.ts → storage-C_ZujAZt.d.ts} +2 -5
  60. package/dist/shared/{storage-BQrtKon9.d.cts → storage-FtS4NIC7.d.cts} +2 -5
  61. package/dist/shared/{storage-CIjejZDt.cjs → storage-e2xYL6ro.cjs} +4 -5
  62. package/dist/shared/{storage-CIjejZDt.cjs.map → storage-e2xYL6ro.cjs.map} +1 -1
  63. package/dist/shared/{url-ioIaywDi.cjs → url-CXRaoR_w.cjs} +263 -91
  64. package/dist/shared/url-CXRaoR_w.cjs.map +1 -0
  65. package/dist/shared/{url-_R0oJ7gE.d.cts → url-V4bCae35.d.ts} +222 -78
  66. package/dist/shared/{url-CdT4lMxQ.js → url-aw_NZdVY.js} +263 -91
  67. package/dist/shared/url-aw_NZdVY.js.map +1 -0
  68. package/dist/shared/{url-_R0oJ7gE.d.ts → url-n_h2pvHA.d.cts} +1915 -1620
  69. package/dist/shared/{validate-CFx2dISs.cjs → validate-BHKy_YMv.cjs} +8 -7
  70. package/dist/shared/validate-BHKy_YMv.cjs.map +1 -0
  71. package/dist/shared/{validate-D7_kq3g5.js → validate-BQzL_oJ4.js} +8 -7
  72. package/dist/shared/validate-BQzL_oJ4.js.map +1 -0
  73. package/dist/web/index.cjs +4 -5
  74. package/dist/web/index.cjs.map +1 -1
  75. package/dist/web/index.d.cts +22 -5
  76. package/dist/web/index.d.ts +22 -5
  77. package/dist/web/index.js +4 -5
  78. package/dist/web/index.js.map +1 -1
  79. package/package.json +6 -6
  80. package/dist/shared/events-BKyxZQNw.cjs.map +0 -1
  81. package/dist/shared/events-_iYo8EP5.js.map +0 -1
  82. package/dist/shared/multi-storage-7Y3KCseI.cjs.map +0 -1
  83. package/dist/shared/redact-BbhtA9o-.cjs.map +0 -1
  84. package/dist/shared/redact-DSfdmeY7.js.map +0 -1
  85. package/dist/shared/render-BQvC5UxF.cjs.map +0 -1
  86. package/dist/shared/render-CFoF2WaH.js.map +0 -1
  87. package/dist/shared/url-CdT4lMxQ.js.map +0 -1
  88. package/dist/shared/url-ioIaywDi.cjs.map +0 -1
  89. package/dist/shared/validate-CFx2dISs.cjs.map +0 -1
  90. package/dist/shared/validate-D7_kq3g5.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,18 +1,20 @@
1
- import { $ as isItdNotFoundError, $t as isBuiltInOperationId, A as ItdConfigError, An as SpanType, At as RawRequestOptions, B as ItdPhoneVerificationError, Bt as QueryValue, C as UserSummary, Cn as Loose, Ct as ClientHooks, D as ItdApiErrorInit, Dn as ReportReason, Dt as RateLimitBucketContext, E as ItdApiError, En as QrLocationPrecision, Et as PaginationOptions, F as ItdFileError, Ft as RetryContext, G as ItdValidationError, Gt as Logger, H as ItdServerError, Ht as RateLimitPacing, I as ItdFileErrorReason, It as RetryDecisionContext, J as isItdAuthError, Jt as BuiltInOperationId, K as TimeoutBudget, Kt as ItdClock, L as ItdForbiddenError, Lt as RetryOptions, M as ItdError, Mn as ViewReason, Mt as RequestExtensions, N as ItdErrorKind, Nn as ViewSource, Nt as RequestOptions, O as ItdApiErrorKind, On as ReportTargetType, Ot as RateLimitBucketOverride, P as ItdFieldErrors, Pn as WallAccess, Pt as ResponseContext, Q as isItdForbiddenError, Qt as OperationId, R as ItdNetworkError, Rt as RuntimeOptions, S as UserBase, Sn as LikesVisibility, St as RetrySafety, T as ItdAbortError, Tn as NotificationType, Tt as OperationRequestOptions, U as ItdStateError, Ut as RuntimeMode, V as ItdRateLimitError, Vt as ServiceDefinition, W as ItdTimeoutError, Wt as LogLevel, X as isItdError, Xt as ItdOperationDefinition, Y as isItdConflictError, Yt as CustomOperationId, Z as isItdFileError, Zt as OPERATIONS, _ as PinsResult, _n as FeedTab, _t as FeatureOperationId, a as NotificationEvent, an as RateLimitBucket, at as Emitter, b as PublicProfile, bn as ItdErrorCode, bt as OperationMetadata, c as NotificationSettings, cn as UserId, ct as ClientConnection, d as AuthUser, dn as AttachmentType, en as operationBucket, et as isItdPhoneVerificationError, f as Author, fn as CaptchaChoice, g as Pin, gn as EventChannelStatus, gt as LIBRARY_VERSION, h as MyProfile, hn as CommentSort, ht as STATUS_SERVICE, i as formatNotificationText, in as DEFAULT_RATE_LIMIT_BUCKET, it as isItdValidationError, j as ItdConflictError, jn as UsernameUnavailableReason, jt as RequestContext, k as ItdAuthError, kn as ServiceState, kt as RateLimitOptions, l as Actor, ln as UserRef, lt as AuthIdentity, m as LastSeen, mn as CaptchaType, mt as DEFAULT_BASE_URL, n as canonicalNotificationType, nn as operationRetrySafety, nt as isItdServerError, o as normalizeNotification, on as IsoDate, ot as Listener, p as FollowResult, pn as CaptchaField, q as isItdApiError, qt as systemClock, r as isKnownNotificationType, rn as BUCKET_LIMITS, rt as isItdStateError, s as Notification, sn as Span, st as Unsubscribe, t as resolveNotificationUrl, tn as operationMethod, tt as isItdRateLimitError, u as AuthState, un as AccessType, ut as AuthProvider, v as PrivacySettings, vn as IncidentKind, vt as OperationAnnotations, w as UsernameAvailability, wn as MessageAccess, wt as ErrorContextHook, x as SubscriptionState, xn as LastSeenUnit, xt as OperationMethod, y as Profile, yn as InteractionType, z as ItdNotFoundError, zt as QueryParams } from "./shared/url-_R0oJ7gE.cjs";
2
- import { $ as ShopConsentContext, $n as NotificationListParams, $t as autoSpans, A as DwellEntry, An as Poll, Ar as PreparedStreamSource, At as ReportInput, B as ViewTrackerInput, Bn as comment, Bt as post, C as fromStream, Cn as Comment, Cr as FeatureInstallation, Ct as ShopRecipient, D as UpdateProfileInput, Dn as LikeResult, Dr as FileResolver, Dt as SearchResult, E as UpdatePrivacyInput, En as Hashtag, Er as ManagedClientResource, Et as SearchResource, F as TelemetryClock, Fn as PostStats, Ft as UserPostsParams, G as ShopConsentsResource, Gn as CreatePollInput, Gt as parseHtml, H as SubscriptionResource, Hn as ItdBuilder, Ht as PollInput, I as TelemetryOptions, In as PostUpdateResult, It as CreatePostInput, J as ShopOrdersResource, Jn as UpdatePostInput, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as CreatePostData, Kt as parseMarkdown, L as TelemetryResource, Ln as UpdateResultBase, Lt as PostBuilder, M as PhotoOpenInput, Mn as Post, Mr as ResolveFileOptions, Mt as CommentsParams, N as TelemetryBatch, Nn as PostBase, Nr as HttpClient, Nt as FeedParams, O as UserListParams, On as OriginalPost, Or as PreparedBufferSource, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as PostCounters, Pr as CookieJar, Pt as PostsResource, Q as ShopConsent, Qn as Subscription, Qt as TextMarkup, R as VideoProgressInput, Rn as CommentBuilder, Rt as PostInput, S as VideoMimeType, Sn as Attachment, Sr as FeatureContext, St as ShopProductStatus, T as VerificationResource, Tn as CommentUpdateResult, Tr as FeatureRequestOptions, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as isBuilder, Ut as poll, V as ViewTrackerOptions, Vn as BuilderInput, Vt as PollBuilder, W as PayShopOrderOptions, Wn as CreateCommentInput, Wt as ParseMarkupOptions, X as ShopResource, Xn as QrLoginTarget, Xt as MarkupInput, Y as ShopProductsResource, Yn as PaymentMethod, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as Session, Zt as MarkupSpan, _ as AllowedMimeType, _n as FilesResource, _r as OperationTransformer, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as PaginationMode, at as ShopDeliveryDestination, b as ImageMimeType, bn as CommentsResource, br as ClientFeature, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as mapPage, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as AttemptExtensions, dt as ShopOrderDelivery, en as markup, er as NotificationsResource, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as AttemptInterceptor, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as HashtagsResource, gr as OperationTransformContext, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as HashtagPostsParams, hr as OperationExtensions, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as PageState, it as ShopDeliveryCountry, j as InteractionEntry, jn as PollOption, jr as ResolveFileContext, jt as report, k as UsersResource, kn as PinPostResult, kr as PreparedFileSource, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as RateLimitBucketState, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as ClientPlugin, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as BaseResource, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as Paginator, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as AttemptNext, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as CreateReportInput, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as Page, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as PaginatorOptions, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as UpdateNotificationSettingsInput, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as AttemptContext, ut as ShopOrderBase, v as AudioMimeType, vn as UploadOptions, vr as PluginApi, vt as ShopProduct, w as fromUrl, wn as CommentReplyTo, wr as FeatureOperationDefinition, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as RepliesParams, xr as FeatureBucketDefinition, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as UploadedFile, yr as PluginTeardown, yt as ShopProductCategory, z as ViewTracker, zn as CommentInput, zt as PostUpdateInput } from "./shared/render-X2JCo1JS.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-FaXfdle0.cjs";
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
- 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
- import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-BQrtKon9.cjs";
7
- import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-BEL7tcKn.cjs";
8
- //#region src/notifications-api.d.ts
1
+ /**
2
+ * `itd-api` — клиент REST API и событий социальной сети итд.com.
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ import { $ as Profile, $t as operationRetrySafety, A as isItdError, An as ClientConnection, At as Loose, B as normalizeNotification, Bt as ViewSource, C as ItdStateError, Cn as RetryOptions, Ct as EventChannelStatus, D as isItdApiError, Dn as ServiceDefinition, Dt as ItdErrorCode, E as TimeoutBudget, En as QueryValue, Et as InteractionType, F as isItdRateLimitError, Fn as Unsubscribe, Ft as ReportTargetType, G as AuthUser, Gt as BuiltInOperationId, H as NotificationSettings, Ht as HttpClient, I as isItdServerError, In as LogLevel, It as ServiceState, J as LastSeen, Jt as OPERATIONS, K as Author, Kt as CustomOperationId, L as isItdStateError, Ln as Logger, Lt as SpanType, M as isItdForbiddenError, Mn as systemClock, Mt as NotificationType, N as isItdNotFoundError, Nn as Emitter, Nt as QrLocationPrecision, O as isItdAuthError, On as RateLimitPacing, Ot as LastSeenUnit, P as isItdPhoneVerificationError, Pn as Listener, Pt as ReportReason, Q as PrivacySettings, Qt as operationMethod, R as isItdValidationError, Rt as UsernameUnavailableReason, S as ItdServerError, Sn as RetryDecisionContext, St as CommentSort, T as ItdValidationError, Tn as QueryParams, Tt as IncidentKind, U as Actor, V as Notification, Vt as WallAccess, W as AuthState, Wt as CookieJar, X as Pin, Xt as isBuiltInOperationId, Y as MyProfile, Yt as OperationId, Z as PinsResult, Zt as operationBucket, _ as ItdForbiddenError, _n as RequestContext, _t as AccessType, a as ItdAbortError, at as AuthIdentity, b as ItdPhoneVerificationError, bn as ResponseContext, bt as CaptchaField, c as ItdApiErrorKind, cn as RetrySafety, d as ItdConflictError, dn as OperationRequestOptions, dt as STATUS_SERVICE, en as BUCKET_LIMITS, et as PublicProfile, f as ItdError, fn as PaginationOptions, ft as LIBRARY_VERSION, g as ItdFileErrorReason, gn as RawRequestOptions, gt as UserRef, h as ItdFileError, hn as RateLimitOptions, ht as UserId, i as formatNotificationText, in as OperationAnnotations, it as UsernameAvailability, j as isItdFileError, jn as ItdClock, jt as MessageAccess, k as isItdConflictError, kn as RuntimeMode, kt as LikesVisibility, l as ItdAuthError, ln as ClientHooks, m as ItdFieldErrors, mn as RateLimitBucketOverride, mt as Span, n as canonicalNotificationType, nn as RateLimitBucket, nt as UserBase, o as ItdApiError, on as OperationMetadata, ot as AuthProvider, p as ItdErrorKind, pn as RateLimitBucketContext, pt as IsoDate, q as FollowResult, qt as ItdOperationDefinition, r as isKnownNotificationType, rn as FeatureOperationId, rt as UserSummary, s as ItdApiErrorInit, sn as OperationMethod, t as resolveNotificationUrl, tn as DEFAULT_RATE_LIMIT_BUCKET, tt as SubscriptionState, u as ItdConfigError, un as ErrorContextHook, ut as DEFAULT_BASE_URL, v as ItdNetworkError, vn as RequestExtensions, vt as AttachmentType, w as ItdTimeoutError, wn as RuntimeOptions, wt as FeedTab, x as ItdRateLimitError, xn as RetryContext, xt as CaptchaType, y as ItdNotFoundError, yn as RequestOptions, yt as CaptchaChoice, z as NotificationEvent, zt as ViewReason } from "./shared/url-n_h2pvHA.cjs";
7
+ import { $ as ShopConsentContext, $n as BuilderInput, $t as autoSpans, A as DwellEntry, An as BannerDrawingTool, Ar as OperationTransformer, At as ReportInput, B as ViewTrackerInput, Bn as OriginalPost, Br as FileResolver, Bt as post, C as fromStream, Cn as HashtagsResource, Cr as AttemptContext, Ct as ShopRecipient, D as UpdateProfileInput, Dn as BannerDrawing, Dr as ClientPlugin, Dt as SearchResult, E as UpdatePrivacyInput, En as UploadedFile, Er as AttemptNext, Et as SearchResource, F as TelemetryClock, Fn as Comment, Fr as FeatureContext, Ft as UserPostsParams, G as ShopConsentsResource, Gn as PostBase, Gr as ResolveFileOptions, Gt as parseHtml, H as SubscriptionResource, Hn as Poll, Hr as PreparedFileSource, Ht as PollInput, I as TelemetryOptions, In as CommentReplyTo, Ir as FeatureInstallation, It as CreatePostInput, J as ShopOrdersResource, Jn as PostUpdateResult, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as PostCounters, Kt as parseMarkdown, L as TelemetryResource, Ln as CommentUpdateResult, Lr as FeatureOperationDefinition, Lt as PostBuilder, M as PhotoOpenInput, Mn as CommentsResource, Mr as PluginTeardown, Mt as CommentsParams, N as TelemetryBatch, Nn as RepliesParams, Nr as ClientFeature, Nt as FeedParams, O as UserListParams, On as BannerDrawingOperation, Or as OperationExtensions, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as Attachment, Pr as FeatureBucketDefinition, Pt as PostsResource, Q as ShopConsent, Qn as comment, Qt as TextMarkup, R as VideoProgressInput, Rn as Hashtag, Rr as FeatureRequestOptions, Rt as PostInput, S as VideoMimeType, Sn as HashtagPostsParams, Sr as RateLimitBucketState, St as ShopProductStatus, T as VerificationResource, Tn as UploadOptions, Tr as AttemptInterceptor, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as PollOption, Ur as PreparedStreamSource, Ut as poll, V as ViewTrackerOptions, Vn as PinPostResult, Vr as PreparedBufferSource, Vt as PollBuilder, W as PayShopOrderOptions, Wn as Post, Wr as ResolveFileContext, Wt as ParseMarkupOptions, X as ShopResource, Xn as CommentBuilder, Xt as MarkupInput, Y as ShopProductsResource, Yn as UpdateResultBase, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as CommentInput, Zt as MarkupSpan, _ as AllowedMimeType, _n as LegalDocumentBlock, _r as PageState, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as CreateReportInput, at as ShopDeliveryDestination, b as ImageMimeType, bn as LegalDocumentSummary, br as PaginatorOptions, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as PaymentMethod, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as Subscription, dt as ShopOrderDelivery, en as markup, er as ItdBuilder, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as NotificationListParams, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as LegalDocument, gr as Page, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as LegalResource, hr as BaseResource, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as CreatePostData, it as ShopDeliveryCountry, j as InteractionEntry, jn as UploadedBannerDrawing, jr as PluginApi, jt as report, k as UsersResource, kn as BannerDrawingPoint, kr as OperationTransformContext, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as QrLoginTarget, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as UpdateNotificationSettingsInput, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as CreateCommentInput, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as UpdatePostInput, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as NotificationsResource, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as PostStats, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as CreatePollInput, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as AccountLifecycleResource, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as isBuilder, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as Session, ut as ShopOrderBase, v as AudioMimeType, vn as LegalDocumentBlockType, vr as PaginationMode, vt as ShopProduct, w as fromUrl, wn as FilesResource, wr as AttemptExtensions, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as LegalDocumentVersion, xr as mapPage, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as LegalDocumentScope, yr as Paginator, yt as ShopProductCategory, z as ViewTracker, zn as LikeResult, zr as ManagedClientResource, zt as PostUpdateInput } from "./shared/render-D83t9ckd.cjs";
8
+ import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as NotificationEventsOptions, c as EventRouteSelector, d as NotificationEventsClientOptions, et as EventTransportFrame, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventMiddleware, k as ReconnectOptions, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationUpdateOfType, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as UnauthorizedStreamError, u as NotificationEventsClient, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-Bip3qvCc.cjs";
9
+ import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-FtS4NIC7.cjs";
10
+ import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-OGWNMK3x.cjs";
11
+ import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-DEbkC0cB.cjs";
12
+ 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-BGoSgLze.cjs";
9
13
  /** Уведомления полного клиента: REST-методы и стабильный канал событий. */
10
14
  interface NotificationsApi extends NotificationsResource {
11
15
  /** Один канал событий уведомлений на всё время жизни клиента. */
12
16
  readonly events: NotificationEvents;
13
17
  }
14
- //#endregion
15
- //#region src/operations/auth.d.ts
16
18
  /** Чем закончился запрос входа. */
17
19
  export declare const SignInStatus: Readonly<{
18
20
  readonly Authenticated: "authenticated";
@@ -105,8 +107,6 @@ interface QrLoginStreamEvent {
105
107
  status: QrLoginStreamStatus;
106
108
  expiresIn?: number;
107
109
  }
108
- //#endregion
109
- //#region src/session/options.d.ts
110
110
  /** Что клиент передаёт источнику токена капчи при каждом обращении. */
111
111
  interface CaptchaSolveContext {
112
112
  /** Логгер клиента, если он включён. */
@@ -222,8 +222,6 @@ interface SessionOptions {
222
222
  */
223
223
  deviceId?: string | undefined;
224
224
  }
225
- //#endregion
226
- //#region src/options.d.ts
227
225
  /**
228
226
  * Опции конструктора `ItdClient`.
229
227
  *
@@ -248,13 +246,195 @@ interface ItdClientOptions extends RuntimeOptions, SessionOptions {
248
246
  notifications?: NotificationEventsOptions | undefined;
249
247
  } | undefined;
250
248
  }
251
- //#endregion
252
- //#region src/session/captcha.d.ts
249
+ /** Назначение контекста согласия телефонного входа. @internal */
250
+ declare const PHONE_CONSENT_FLOW = "phone_entry";
251
+ /** Регион, для которого сервер разрешает телефонный вход. */
252
+ interface PhoneRegion {
253
+ /** Код региона, например RU или TM. */
254
+ region: string;
255
+ /** Телефонный код страны без `+`. */
256
+ callingCode: string;
257
+ /** Пример национальной части номера. */
258
+ example: string;
259
+ /** Способы подтверждения, доступные в регионе. */
260
+ methods: PhoneVerificationMethod[];
261
+ }
262
+ /** Серверный список регионов, доступных для телефонного входа. */
263
+ interface PhoneConfig {
264
+ regions: PhoneRegion[];
265
+ defaultRegion: string;
266
+ }
267
+ /** Редакция документа, включённая в контекст согласия. */
268
+ interface ConsentDocument {
269
+ scope: string;
270
+ slug: string;
271
+ version: string;
272
+ contentSha256: string;
273
+ url: string;
274
+ }
275
+ /** Текст и редакции документов, с которыми пользователь соглашается при входе. */
276
+ interface PhoneConsent {
277
+ /** Версия протокола из consent(); передаётся серверу вместе с contextToken. */
278
+ protocolVersion: number;
279
+ /** Подписанный контекст; в start() передаётся без изменения. */
280
+ contextToken: string;
281
+ id: string;
282
+ /** Время выдачи контекста, Unix-время в миллисекундах. */
283
+ issuedAt: number;
284
+ /** Срок действия контекста, Unix-время в миллисекундах. */
285
+ expiresAt: number;
286
+ bundle: {
287
+ id: string;
288
+ flow: typeof PHONE_CONSENT_FLOW;
289
+ documents: ConsentDocument[];
290
+ actions: Record<string, string>;
291
+ actionVersion: string;
292
+ submitLabel: string;
293
+ text: {
294
+ text: string;
295
+ document?: string;
296
+ }[];
297
+ };
298
+ }
299
+ /** Серверные каналы доставки кода. */
300
+ export declare const PhoneDeliveryChannel: Readonly<{
301
+ readonly MissedCall: "missed_call";
302
+ readonly VoiceCall: "voice_call";
303
+ readonly Sms: "sms";
304
+ readonly Push: "push";
305
+ }>;
306
+ export type PhoneDeliveryChannel = Loose<(typeof PhoneDeliveryChannel)[keyof typeof PhoneDeliveryChannel]>;
307
+ /** Подтверждение входящим кодом либо исходящим звонком пользователя. */
308
+ export declare const PhoneVerificationMethod: Readonly<{
309
+ readonly Direct: "direct";
310
+ readonly Reverse: "reverse";
311
+ }>;
312
+ export type PhoneVerificationMethod = (typeof PhoneVerificationMethod)[keyof typeof PhoneVerificationMethod];
313
+ /** Продолжение телефонного входа, ещё не выдавшее access token. */
314
+ export declare const PhoneLoginStep: Readonly<{
315
+ readonly Password: "password";
316
+ }>;
317
+ export type PhoneLoginStep = (typeof PhoneLoginStep)[keyof typeof PhoneLoginStep];
318
+ /** Как получить код и когда можно повторить запрос. */
319
+ interface PhoneDelivery {
320
+ channel: PhoneDeliveryChannel;
321
+ /** Число цифр кода; может измениться после resend(). */
322
+ codeLength: number;
323
+ /** Пауза до повторной доставки, в секундах. */
324
+ retryIn: number;
325
+ /** Ввод кода недоступен: требуется исходящий звонок. */
326
+ reverseOnly?: boolean;
327
+ /** Канал следующей доставки либо null, если сервер его не указал. */
328
+ nextChannel: PhoneDeliveryChannel | null;
329
+ }
330
+ /** Данные для продолжения проверки номера. */
331
+ interface PhoneFlowInput {
332
+ /** Номер в международном формате с `+`. */
333
+ phone: string;
334
+ /** Значение из ответа на запрос проверки номера. Если после кода нужен пароль, используйте новое значение из ответа. */
335
+ flowToken: string;
336
+ }
337
+ /** Данные для подтверждения номера после запроса кода. */
338
+ interface PhoneFlowStart extends PhoneDelivery {
339
+ /** Значение для следующих вызовов проверки. Передаётся вместе с тем же номером. */
340
+ flowToken: string;
341
+ }
342
+ /** Параметры доставки и срок действия восстановленной проверки номера. */
343
+ interface PhoneFlowResume extends PhoneDelivery {
344
+ /** Оставшееся время проверки в секундах. */
345
+ expiresIn: number;
346
+ }
347
+ /**
348
+ * Подтверждение номера может потребовать облачный пароль.
349
+ * Служебный mode ответа сервера не переносится; результат различается по step/accessToken.
350
+ */
351
+ type PhoneLoginResult = {
352
+ step: PhoneLoginStep;
353
+ flowToken: string;
354
+ } | {
355
+ accessToken: string;
356
+ };
357
+ /** Доступность исходящего звонка для начатой проверки номера. */
358
+ interface PhoneReverseOptions {
359
+ available: boolean;
360
+ /** Время до доступности способа, в секундах. */
361
+ availableIn: number;
362
+ }
363
+ /** Состояния подтверждения номера исходящим звонком. */
364
+ export declare const PhoneReverseState: Readonly<{
365
+ readonly NotStarted: "not_started";
366
+ readonly Preparing: "preparing";
367
+ readonly Waiting: "waiting";
368
+ readonly Confirmed: "confirmed";
369
+ readonly Expired: "expired";
370
+ readonly Failed: "failed";
371
+ }>;
372
+ export type PhoneReverseState = Loose<(typeof PhoneReverseState)[keyof typeof PhoneReverseState]>;
373
+ /** Состояние звонка; само confirmed ещё не завершает вход. */
374
+ interface PhoneReverseStatus {
375
+ state: PhoneReverseState;
376
+ /** Оставшееся время подтверждения, в секундах. */
377
+ expiresIn: number;
378
+ /** Номер для исходящего звонка, если он уже подготовлен. */
379
+ phone: string | null;
380
+ /** Оставшиеся попытки звонка, если сервер поддерживает их счётчик. */
381
+ attemptsLeft?: number;
382
+ }
383
+ /** Привязанные номер и почта и наличие облачного пароля. */
384
+ interface AccountInfo {
385
+ /** Привязанная почта. */
386
+ email: string | null;
387
+ /** Привязанный номер телефона. */
388
+ phone: string | null;
389
+ /** Установлен ли облачный пароль. */
390
+ hasPassword: boolean;
391
+ }
392
+ /** Способ подтверждения смены номера или почты. */
393
+ export declare const ContactProofMethod: Readonly<{
394
+ readonly Password: "password";
395
+ readonly EmailCode: "email_code";
396
+ readonly PhoneCode: "phone_code";
397
+ }>;
398
+ export type ContactProofMethod = Loose<(typeof ContactProofMethod)[keyof typeof ContactProofMethod]>;
399
+ /** Способы завершить смену после проверки нового номера или адреса почты. */
400
+ interface ContactChange {
401
+ /** Передайте это значение в `requestProof()`, `confirm()` или `wait()`. */
402
+ changeToken: string;
403
+ proofs: ContactProofMethod[];
404
+ /** Период ожидания, если его указал сервер. */
405
+ waitDays?: number;
406
+ }
407
+ /** Доставка кода подтверждения на привязанный номер или почту. */
408
+ interface ContactProofDelivery {
409
+ sentTo: string;
410
+ delivery?: {
411
+ type: PhoneDeliveryChannel;
412
+ codeLength: number;
413
+ } | null;
414
+ }
415
+ /** Время, когда сервер применит отложенную смену. */
416
+ interface ContactChangeSchedule {
417
+ appliesAt: string | number;
418
+ }
419
+ /** Что меняет отложенная заявка: номер или почту. */
420
+ export declare const ContactKind: Readonly<{
421
+ readonly Email: "email";
422
+ readonly Phone: "phone";
423
+ }>;
424
+ export type ContactKind = Loose<(typeof ContactKind)[keyof typeof ContactKind]>;
425
+ /** Отложенная заявка, которую ещё можно отменить. */
426
+ interface PendingContactChange extends ContactChangeSchedule {
427
+ id: string;
428
+ kind: ContactKind;
429
+ newIdentifier: string;
430
+ }
431
+ /** Результат привязки номера или почты. Также возвращается после синхронизации номера. */
432
+ interface ContactActionResult {
433
+ success: boolean;
434
+ }
253
435
  /** Капча запросов, которые её требуют: входа, регистрации, сброса пароля и QR-подтверждения. */
254
436
  /** Готовый фрагмент тела запроса: имя поля и токен в нём. */
255
437
  type CaptchaBody = Record<string, string>;
256
- //#endregion
257
- //#region src/session/auth.d.ts
258
438
  /**
259
439
  * Настройки сессии после подстановки умолчаний и проверок.
260
440
  *
@@ -440,9 +620,315 @@ declare class AuthManager implements AuthProvider {
440
620
  * @throws {ItdConfigError} если токен неполный или источник его не вернул
441
621
  */
442
622
  captchaBody(explicit?: CaptchaToken | undefined): Promise<CaptchaBody>;
623
+ /** Доказательство капчи с провайдером для телефонного API. @internal */
624
+ captchaToken(explicit?: CaptchaToken | undefined): Promise<CaptchaToken | undefined>;
625
+ }
626
+ /** Подтверждение смены номера или почты кодом либо облачным паролем. */
627
+ type ContactChangeConfirmation = {
628
+ changeToken: string;
629
+ } & ({
630
+ code: string;
631
+ password?: never;
632
+ } | {
633
+ password: string;
634
+ code?: never;
635
+ });
636
+ /** Завершение смены номера или почты и управление отложенными заявками. */
637
+ declare class AccountChangesResource extends BaseResource {
638
+ /**
639
+ * Запрашивает код на привязанный номер или почту.
640
+ *
641
+ * Возьмите `changeToken` и способ доставки из результата `verifyChange()` или
642
+ * `phone.reverseChangeComplete()`. Полученный код передайте в {@link confirm}.
643
+ */
644
+ requestProof(input: {
645
+ changeToken: string;
646
+ method: ContactProofMethod;
647
+ }, options?: RequestOptions): Promise<ContactProofDelivery>;
648
+ /**
649
+ * Завершает смену номера или почты.
650
+ *
651
+ * Передайте `changeToken` и код из {@link requestProof} либо облачный
652
+ * пароль, если сервер предложил такой способ подтверждения.
653
+ */
654
+ confirm(input: ContactChangeConfirmation, options?: RequestOptions): Promise<void>;
655
+ /**
656
+ * Создаёт отложенную заявку на смену номера или почты.
657
+ *
658
+ * @returns время применения заявки. До этого её можно отменить через {@link cancelPending}
659
+ */
660
+ wait(changeToken: string, options?: RequestOptions): Promise<ContactChangeSchedule>;
661
+ /** Возвращает отложенные заявки текущего аккаунта. */
662
+ pending(options?: RequestOptions): Promise<PendingContactChange[]>;
663
+ /**
664
+ * Отменяет отложенную смену.
665
+ *
666
+ * @param requestId идентификатор заявки из {@link pending}
667
+ */
668
+ cancelPending(requestId: string, options?: RequestOptions): Promise<void>;
669
+ }
670
+ /** Привязка и смена почты текущего аккаунта. */
671
+ declare class AccountEmailResource extends BaseResource {
672
+ /**
673
+ * Отправляет код на почту для привязки.
674
+ *
675
+ * @returns значение `flowToken` для {@link verifyAttach} или {@link resendOtp}
676
+ *
677
+ * @example
678
+ * ```ts
679
+ * const flowToken = await itd.account.email.attach(email);
680
+ * await itd.account.email.verifyAttach({ email, flowToken, otp: await getOtp() });
681
+ * ```
682
+ */
683
+ attach(email: string, options?: RequestOptions): Promise<string>;
684
+ /**
685
+ * Отправляет код на новый адрес почты.
686
+ *
687
+ * @returns значение `flowToken` для {@link verifyChange} или {@link resendOtp}
688
+ */
689
+ startChange(email: string, options?: RequestOptions): Promise<string>;
690
+ /**
691
+ * Завершает привязку почты кодом.
692
+ *
693
+ * Передайте тот же адрес и `flowToken` из {@link attach}.
694
+ */
695
+ verifyAttach(input: {
696
+ email: string;
697
+ otp: string;
698
+ flowToken: string;
699
+ }, options?: RequestOptions): Promise<ContactActionResult>;
700
+ /**
701
+ * Подтверждает код новой почты, запрошенный через {@link startChange}.
702
+ *
703
+ * @returns `changeToken` и способы завершить смену через `itd.account.changes`
704
+ */
705
+ verifyChange(input: {
706
+ email: string;
707
+ otp: string;
708
+ flowToken: string;
709
+ }, options?: RequestOptions): Promise<ContactChange>;
710
+ /** Повторно отправляет код на тот же адрес. Передайте `flowToken` из первого запроса. */
711
+ resendOtp(input: {
712
+ email: string;
713
+ flowToken: string;
714
+ }, options?: RequestOptions): Promise<void>;
715
+ }
716
+ /** Облачный пароль текущего аккаунта. */
717
+ declare class AccountPasswordResource extends BaseResource {
718
+ /**
719
+ * Создаёт облачный пароль для аккаунта без пароля.
720
+ *
721
+ * Наличие пароля можно проверить через `itd.account.getInfo()`.
722
+ */
723
+ set(password: string, options?: RequestOptions): Promise<void>;
724
+ /**
725
+ * Меняет облачный пароль в действующей сессии.
726
+ *
727
+ * При неверном текущем пароле сервер возвращает `ACCOUNT_CURRENT_PASSWORD_INCORRECT`.
728
+ *
729
+ * @example
730
+ * ```ts
731
+ * await itd.account.password.change({ currentPassword, newPassword });
732
+ * ```
733
+ */
734
+ change({ currentPassword, newPassword }: {
735
+ currentPassword: string;
736
+ newPassword: string;
737
+ }, options?: RequestOptions): Promise<void>;
738
+ }
739
+ /** Номер, капча и способ подтверждения для привязки или смены. */
740
+ interface AccountPhoneStartInput {
741
+ /** Номер в международном формате с `+`. */
742
+ phone: string;
743
+ /** Готовый токен; без него используется источник капчи клиента. */
744
+ captcha?: CaptchaToken | undefined;
745
+ /** По умолчанию Direct: код входящего звонка или сообщения. */
746
+ method?: PhoneVerificationMethod | undefined;
747
+ }
748
+ /** Привязка и смена номера текущего аккаунта. */
749
+ declare class AccountPhoneResource extends BaseResource {
750
+ #private;
751
+ constructor(http: HttpClient, auth: AuthManager);
752
+ /**
753
+ * Запрашивает подтверждение номера для привязки.
754
+ *
755
+ * Передайте номер в международном формате с `+`. Если токен капчи не передан
756
+ * в вызов, SDK использует настроенный источник капчи.
757
+ * Для исходящего звонка передайте `method: PhoneVerificationMethod.Reverse`.
758
+ *
759
+ * @returns параметры доставки и `flowToken` для {@link verifyAttach}
760
+ *
761
+ * @example
762
+ * ```ts
763
+ * const { flowToken } = await itd.account.phone.attach({ phone });
764
+ * await itd.account.phone.verifyAttach({ phone, flowToken, otp: await getOtp() });
765
+ * ```
766
+ */
767
+ attach(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
768
+ /**
769
+ * Запрашивает подтверждение нового номера для смены.
770
+ *
771
+ * Формат номера, источник капчи и выбор способа подтверждения такие же, как у {@link attach}.
772
+ *
773
+ * @returns параметры доставки и `flowToken` для {@link verifyChange}
774
+ */
775
+ startChange(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
776
+ /**
777
+ * Завершает привязку номера кодом.
778
+ *
779
+ * Передайте номер и `flowToken` из {@link attach}.
780
+ */
781
+ verifyAttach(input: PhoneFlowInput & {
782
+ otp: string;
783
+ }, options?: RequestOptions): Promise<ContactActionResult>;
784
+ /**
785
+ * Подтверждает код нового номера, запрошенный через {@link startChange}.
786
+ *
787
+ * @returns `changeToken` и способы завершить смену через `itd.account.changes`
788
+ */
789
+ verifyChange(input: PhoneFlowInput & {
790
+ otp: string;
791
+ }, options?: RequestOptions): Promise<ContactChange>;
792
+ /**
793
+ * Повторно запрашивает код для того же номера. Передайте `flowToken` из первого запроса.
794
+ *
795
+ * @returns актуальные канал, длину кода и паузу до повтора в секундах
796
+ */
797
+ resendOtp(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneDelivery>;
798
+ /** Синхронизирует привязанный номер с профилем. */
799
+ sync(options?: RequestOptions): Promise<ContactActionResult>;
800
+ /** Возвращает доступность исходящего звонка для привязки или смены номера. */
801
+ reverseOptions(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseOptions>;
802
+ /**
803
+ * Подготавливает номер, на который должен позвонить пользователь.
804
+ *
805
+ * @returns состояние попытки, номер для звонка и срок действия в секундах
806
+ */
807
+ reverseStart(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseStatus>;
808
+ /**
809
+ * Читает состояние исходящего звонка.
810
+ *
811
+ * После подтверждения вызовите {@link reverseAttachComplete} при привязке
812
+ * или {@link reverseChangeComplete} при смене номера.
813
+ */
814
+ reverseStatus(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseStatus>;
815
+ /** Завершает привязку номера после исходящего звонка. */
816
+ reverseAttachComplete(input: PhoneFlowInput, options?: RequestOptions): Promise<ContactActionResult>;
817
+ /** Подтверждает новый номер звонком и возвращает варианты завершения смены. */
818
+ reverseChangeComplete(input: PhoneFlowInput, options?: RequestOptions): Promise<ContactChange>;
819
+ }
820
+ /**
821
+ * Настройки текущего аккаунта. Доступен как `itd.account`.
822
+ *
823
+ * Здесь можно менять номер, почту и облачный пароль, управлять отложенными
824
+ * заявками, деактивировать и восстановить аккаунт.
825
+ */
826
+ declare class AccountResource extends AccountLifecycleResource {
827
+ /** Привязка и смена номера. */
828
+ readonly phone: AccountPhoneResource;
829
+ /** Привязка и смена почты. */
830
+ readonly email: AccountEmailResource;
831
+ /** Настройка облачного пароля. */
832
+ readonly password: AccountPasswordResource;
833
+ /** Завершение смены номера или почты и отложенные заявки. */
834
+ readonly changes: AccountChangesResource;
835
+ constructor(http: HttpClient, auth: AuthManager);
836
+ /**
837
+ * Получает сведения о доступе к текущему аккаунту.
838
+ *
839
+ * @returns привязанные номер и почту и признак наличия облачного пароля
840
+ *
841
+ * @example
842
+ * ```ts
843
+ * const { email, phone, hasPassword } = await itd.account.getInfo();
844
+ * ```
845
+ */
846
+ getInfo(options?: RequestOptions): Promise<AccountInfo>;
847
+ }
848
+ /** Данные запуска телефонного входа после принятия документов пользователем. */
849
+ interface PhoneLoginInput {
850
+ /** Номер в международном формате с `+`. */
851
+ phone: string;
852
+ /** Получите через consent() и покажите пользователю документы перед отправкой. */
853
+ consent: PhoneConsent;
854
+ /** Готовый токен; без него используется источник captcha клиента. */
855
+ captcha?: CaptchaToken | undefined;
856
+ /** По умолчанию Direct: код входящего звонка или сообщения. */
857
+ method?: PhoneVerificationMethod | undefined;
858
+ }
859
+ /** Телефонный вход и регистрация. Доступен как `itd.auth.phone`. */
860
+ declare class PhoneAuthResource extends BaseResource {
861
+ #private;
862
+ constructor(http: HttpClient, deps: {
863
+ auth: AuthManager;
864
+ });
865
+ /** Разрешённые регионы, примеры номеров и доступные способы подтверждения. */
866
+ config(options?: RequestOptions): Promise<PhoneConfig>;
867
+ /**
868
+ * Загружает контекст phone_entry вместе с текстом и редакциями документов.
869
+ *
870
+ * До start() покажите документы пользователю. Истёкший контекст и новые редакции
871
+ * библиотека не заменяет автоматически.
872
+ */
873
+ consent(options?: RequestOptions): Promise<PhoneConsent>;
874
+ /**
875
+ * Запрашивает подтверждение номера для входа или регистрации.
876
+ *
877
+ * Токен капчи отправляется объектом { provider, token }.
878
+ *
879
+ * @returns `flowToken` для продолжения входа, канал доставки, длина кода и пауза повтора в секундах
880
+ */
881
+ start(input: PhoneLoginInput, options?: RequestOptions): Promise<PhoneFlowStart>;
882
+ /**
883
+ * Возобновляет незавершённую проверку номера.
884
+ *
885
+ * Передайте номер и `flowToken` из {@link start}. Для следующих шагов используйте тот же
886
+ * токен и параметры доставки из ответа.
887
+ */
888
+ resume({ phone, flowToken }: PhoneFlowInput, options?: RequestOptions): Promise<PhoneFlowResume>;
889
+ /**
890
+ * Подтверждает код без email и пароля.
891
+ *
892
+ * При accessToken сохраняет новую сессию; при step: 'password' возвращает секрет
893
+ * для password().
894
+ */
895
+ verify(input: PhoneFlowInput & {
896
+ otp: string;
897
+ }, options?: RequestOptions): Promise<PhoneLoginResult>;
898
+ /**
899
+ * Запрашивает повторную доставку без изменения авторизации.
900
+ *
901
+ * Используйте новый channel/codeLength из результата: способ доставки может измениться.
902
+ * retryIn — секунды до следующего запроса.
903
+ */
904
+ resend(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneDelivery>;
905
+ /**
906
+ * Завершает вход облачным паролем после step: 'password'.
907
+ *
908
+ * Передайте flowToken из этого шага. Полученный access token и cookies сохраняются
909
+ * автоматически, если владелец сессии не сменился во время запроса.
910
+ */
911
+ password(input: PhoneFlowInput & {
912
+ password: string;
913
+ }, options?: RequestOptions): Promise<string>;
914
+ /** Устанавливает новый пароль после подтверждения номера и сохраняет сессию. */
915
+ resetPassword(input: PhoneFlowInput & {
916
+ newPassword: string;
917
+ }, options?: RequestOptions): Promise<string>;
918
+ /** Проверяет, доступен ли исходящий звонок для подтверждения номера. */
919
+ reverseOptions(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseOptions>;
920
+ /**
921
+ * Подготавливает номер, на который пользователь должен позвонить.
922
+ *
923
+ * Может выделить новую попытку; не повторяется после сетевых ошибок и 5xx. Номер и срок
924
+ * его действия возвращаются в phone и expiresIn.
925
+ */
926
+ reverseStart(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseStatus>;
927
+ /** Читает состояние звонка через POST, без завершения входа и смены сессии. */
928
+ reverseStatus(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneReverseStatus>;
929
+ /** Завершает подтверждённый звонок; сервер может потребовать облачный пароль. */
930
+ reverseComplete(input: PhoneFlowInput, options?: RequestOptions): Promise<PhoneLoginResult>;
443
931
  }
444
- //#endregion
445
- //#region src/resources/auth.d.ts
446
932
  /** Учётные данные для входа. */
447
933
  interface Credentials {
448
934
  email: string;
@@ -525,6 +1011,8 @@ interface ResetPasswordInput {
525
1011
  */
526
1012
  declare class AuthResource extends BaseResource {
527
1013
  #private;
1014
+ /** Вход и регистрация по номеру телефона. */
1015
+ readonly phone: PhoneAuthResource;
528
1016
  constructor(http: HttpClient, deps: {
529
1017
  auth: AuthManager;
530
1018
  connection: ClientConnection;
@@ -540,18 +1028,14 @@ declare class AuthResource extends BaseResource {
540
1028
  *
541
1029
  * Сервер может переключить провайдера или переименовать поле без выпуска новой версии SDK.
542
1030
  * Автоматическому входу этот вызов не нужен — клиент делает его сам.
543
- *
544
- * @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile.
545
1031
  */
546
- captchaProvider(_options?: RequestOptions): Promise<CaptchaProvider>;
1032
+ captchaProvider(options?: RequestOptions): Promise<CaptchaProvider>;
547
1033
  /**
548
1034
  * Узнаёт активного провайдера капчи вместе с адресом страницы виджета.
549
1035
  *
550
1036
  * То же, что {@link captchaProvider}, плюс `url` — готовая страница на домене итд.com,
551
1037
  * где ключ виджета действителен. Пригодится встроенному браузеру: открыть её и забрать
552
1038
  * токен, ничего не собирая самому.
553
- *
554
- * @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile на домене итд.com.
555
1039
  */
556
1040
  captchaPage(options?: RequestOptions): Promise<CaptchaPage>;
557
1041
  /** Создаёт короткоживущую сессию QR-входа. */
@@ -602,6 +1086,7 @@ declare class AuthResource extends BaseResource {
602
1086
  * Регистрирует аккаунт и запускает подтверждение по коду.
603
1087
  *
604
1088
  * @returns `flowToken`, который нужно передать в {@link verifyOtp}
1089
+ * @deprecated Регистрация по email отключена. Используйте auth.phone.start().
605
1090
  */
606
1091
  signUp(credentials: CredentialsWithCaptcha, options?: RequestOptions): Promise<string>;
607
1092
  /**
@@ -720,20 +1205,6 @@ declare class AuthResource extends BaseResource {
720
1205
  newPassword: string;
721
1206
  getOtp: () => string | Promise<string>;
722
1207
  }, options?: RequestOptions): Promise<void>;
723
- /**
724
- * Меняет пароль. Требует действующей сессии.
725
- *
726
- * При неверном текущем пароле сервер отвечает `ACCOUNT_CURRENT_PASSWORD_INCORRECT`.
727
- *
728
- * @example
729
- * ```ts
730
- * await itd.auth.changePassword({ currentPassword, newPassword });
731
- * ```
732
- */
733
- changePassword(input: {
734
- currentPassword: string;
735
- newPassword: string;
736
- }, options?: RequestOptions): Promise<void>;
737
1208
  /** Загружает список активных сессий. У текущей поле `isCurrent` равно `true`. */
738
1209
  sessions(options?: RequestOptions): Promise<Session[]>;
739
1210
  /** Завершает указанную сессию. */
@@ -741,8 +1212,6 @@ declare class AuthResource extends BaseResource {
741
1212
  /** Завершает все сессии, кроме текущей. */
742
1213
  revokeOtherSessions(options?: RequestOptions): Promise<void>;
743
1214
  }
744
- //#endregion
745
- //#region src/client.d.ts
746
1215
  /**
747
1216
  * Клиент API итд.com.
748
1217
  *
@@ -779,6 +1248,8 @@ export declare class ItdClient {
779
1248
  #private;
780
1249
  /** Авторизация, сессии и пароли. */
781
1250
  get auth(): AuthResource;
1251
+ /** Настройки текущего аккаунта и управление его состоянием. */
1252
+ get account(): AccountResource;
782
1253
  /** Профили, подписки, блокировки, приватность. */
783
1254
  get users(): UsersResource;
784
1255
  /** Лента, публикация, реакции, репосты, комментарии к постам. */
@@ -799,6 +1270,8 @@ export declare class ItdClient {
799
1270
  get verification(): VerificationResource;
800
1271
  /** Подписка и способы оплаты. */
801
1272
  get subscription(): SubscriptionResource;
1273
+ /** Публичные документы ИТД и история их редакций. */
1274
+ get legal(): LegalResource;
802
1275
  /** Сведения о платформе: версии приложений, изменения, анонсы, баннер события. */
803
1276
  get platform(): PlatformResource;
804
1277
  /** Телеметрия просмотров. */
@@ -1012,8 +1485,6 @@ export declare class ItdClient {
1012
1485
  * ```
1013
1486
  */
1014
1487
  export declare function createClient(options?: ItdClientOptions): ItdClient;
1015
- //#endregion
1016
- //#region src/accounts.d.ts
1017
1488
  /** Как аккаунты делят между собой очередь запросов. */
1018
1489
  export declare const RateLimitScope: Readonly<{
1019
1490
  /** У каждого аккаунта своя очередь. */
@@ -1284,6 +1755,4 @@ export declare class ItdAccounts {
1284
1755
  * То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
1285
1756
  */
1286
1757
  export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
1287
- //#endregion
1288
- 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, 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, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type 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 ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
1289
- //# sourceMappingURL=index.d.cts.map
1758
+ export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type 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 ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };