itd-api 0.14.5 → 0.14.6

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 (37) hide show
  1. package/dist/events/index.cjs +2 -2
  2. package/dist/events/index.d.cts +2 -2
  3. package/dist/events/index.d.ts +2 -2
  4. package/dist/events/index.js +2 -2
  5. package/dist/index.cjs +32 -8
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +16 -35
  8. package/dist/index.d.ts +16 -35
  9. package/dist/index.js +32 -8
  10. package/dist/index.js.map +1 -1
  11. package/dist/rest/index.cjs +2 -2
  12. package/dist/rest/index.d.cts +2 -2
  13. package/dist/rest/index.d.ts +2 -2
  14. package/dist/rest/index.js +2 -2
  15. package/dist/shared/{events-CMhrmHei.d.cts → events-BsmLCdog.d.cts} +1 -1
  16. package/dist/shared/{events-Cupq8UXH.d.ts → events-By7baZfE.d.ts} +1 -1
  17. package/dist/shared/{events-C3Wup3mC.cjs → events-DFQSN5H6.cjs} +2 -2
  18. package/dist/shared/{events-C3Wup3mC.cjs.map → events-DFQSN5H6.cjs.map} +1 -1
  19. package/dist/shared/{events-BbpL69OD.js → events-DorlX-Xd.js} +2 -2
  20. package/dist/shared/{events-BbpL69OD.js.map → events-DorlX-Xd.js.map} +1 -1
  21. package/dist/shared/{render-ByW1tXn-.d.cts → render-CZoSZHnh.d.cts} +92 -53
  22. package/dist/shared/{render-BXeYbuuY.cjs → render-CklT-3gT.cjs} +2 -2
  23. package/dist/shared/render-CklT-3gT.cjs.map +1 -0
  24. package/dist/shared/{render-C706i1rL.js → render-DBt-OBbC.js} +2 -2
  25. package/dist/shared/render-DBt-OBbC.js.map +1 -0
  26. package/dist/shared/{render-B3nhAeaQ.d.ts → render-DOxbtUga.d.ts} +92 -53
  27. package/dist/shared/{url-Duzw4X6d.cjs → url-CStw2h1g.cjs} +12 -2
  28. package/dist/shared/url-CStw2h1g.cjs.map +1 -0
  29. package/dist/shared/{url-CZpgaPdI.js → url-DTDqkKpf.js} +12 -2
  30. package/dist/shared/url-DTDqkKpf.js.map +1 -0
  31. package/dist/shared/{url-DHWmfmrE.d.cts → url-Ls6HGxZl.d.cts} +11 -1
  32. package/dist/shared/{url-D4bo3tpX.d.ts → url-U1Q7c-SD.d.ts} +11 -1
  33. package/package.json +1 -1
  34. package/dist/shared/render-BXeYbuuY.cjs.map +0 -1
  35. package/dist/shared/render-C706i1rL.js.map +0 -1
  36. package/dist/shared/url-CZpgaPdI.js.map +0 -1
  37. package/dist/shared/url-Duzw4X6d.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { A as ClientConnection, An as QrLocationPrecision, B as OperationAnnotations, Cn as InteractionType, Dn as Loose, E as UsernameAvailability, G as ClientHooks, H as OperationMetadata, In as ViewReason, It as ItdError, J as PaginationOptions, Ln as ViewSource, Mn as ReportTargetType, Nn as ServiceState, Q as RawRequestOptions, S as PublicProfile, Sn as IncidentKind, T as UserSummary, U as OperationMethod, V as OperationContract, W as RetrySafety, X as RateLimitBucketOverride, _ as MyProfile, _t as BuiltInOperationId, b as PrivacySettings, c as NotificationSettings, dn as Span, f as Author, fn as UserId, g as MessageAllowlistUser, h as MessageAllowlistMembership, hn as AttachmentType, ht as ItdClock, j as AuthIdentity, jn as ReportReason, k as Unsubscribe, lt as ServiceDefinition, mt as Logger, p as FollowResult, pn as UserRef, q as OperationRequestOptions, s as Notification, st as QueryParams, tt as RequestOptions, un as IsoDate, w as UserBase, x as Profile, xn as FeedTab, xt as OperationId, y as PinsResult, yn as CommentSort } from "./url-D4bo3tpX.js";
1
+ import { A as ClientConnection, An as QrLocationPrecision, B as OperationAnnotations, Cn as InteractionType, Dn as Loose, E as UsernameAvailability, G as ClientHooks, H as OperationMetadata, In as ViewReason, It as ItdError, J as PaginationOptions, Ln as ViewSource, Mn as ReportTargetType, Nn as ServiceState, Q as RawRequestOptions, S as PublicProfile, Sn as IncidentKind, T as UserSummary, U as OperationMethod, V as OperationContract, W as RetrySafety, X as RateLimitBucketOverride, _ as MyProfile, _t as BuiltInOperationId, b as PrivacySettings, c as NotificationSettings, dn as Span, f as Author, fn as UserId, g as MessageAllowlistUser, h as MessageAllowlistMembership, hn as AttachmentType, ht as ItdClock, j as AuthIdentity, jn as ReportReason, k as Unsubscribe, lt as ServiceDefinition, mt as Logger, p as FollowResult, pn as UserRef, q as OperationRequestOptions, s as Notification, st as QueryParams, tt as RequestOptions, un as IsoDate, w as UserBase, x as Profile, xn as FeedTab, xt as OperationId, y as PinsResult, yn as CommentSort } from "./url-U1Q7c-SD.js";
2
2
  import { c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions } from "./contracts-pxnDIsQP.js";
3
3
  import { r as KeyValueStore } from "./key-value-store-WUQBeTAr.js";
4
4
  /**
@@ -1565,6 +1565,96 @@ interface QrLoginTarget {
1565
1565
  /** Насколько точно известны координаты. */
1566
1566
  precision?: QrLocationPrecision | null | undefined;
1567
1567
  }
1568
+ /** Редакция документа, включённая в контекст согласия. */
1569
+ interface ConsentDocument {
1570
+ scope: string;
1571
+ slug: string;
1572
+ version: string;
1573
+ contentSha256: string;
1574
+ url: string;
1575
+ }
1576
+ /** Текст, редакции документов и подписанный контекст согласия. */
1577
+ interface ConsentContext<Flow extends string> {
1578
+ protocolVersion: number;
1579
+ contextToken: string;
1580
+ id: string;
1581
+ /** Время выдачи контекста, Unix-время в миллисекундах. */
1582
+ issuedAt: number;
1583
+ /** Срок действия контекста, Unix-время в миллисекундах. */
1584
+ expiresAt: number;
1585
+ bundle: {
1586
+ id: string;
1587
+ flow: Flow;
1588
+ documents: ConsentDocument[];
1589
+ actions: Record<string, string>;
1590
+ actionVersion: string;
1591
+ submitLabel: string;
1592
+ text: {
1593
+ text: string;
1594
+ document?: string;
1595
+ }[];
1596
+ };
1597
+ }
1598
+ /** Редакция условий и необходимость согласия для текущего аккаунта. */
1599
+ type TermsAcceptance = {
1600
+ version: string;
1601
+ required: false;
1602
+ } | {
1603
+ version: string;
1604
+ required: true;
1605
+ consent: ConsentContext<'account_terms'>;
1606
+ };
1607
+ /** Область действия документа. */
1608
+ declare const LegalDocumentScope: Readonly<{
1609
+ readonly Social: "social";
1610
+ }>;
1611
+ type LegalDocumentScope = Loose<(typeof LegalDocumentScope)[keyof typeof LegalDocumentScope]>;
1612
+ /** Сведения о редакции документа в списке документов и истории редакций. */
1613
+ interface LegalDocumentSummary {
1614
+ scope: LegalDocumentScope;
1615
+ /** Идентификатор документа в пределах области действия. */
1616
+ slug: string;
1617
+ title: string;
1618
+ shortTitle: string;
1619
+ summary: string;
1620
+ /** Идентификатор редакции. Передавайте его в `legal.version()` как строку. */
1621
+ version: string;
1622
+ /** Дата вступления редакции в силу. */
1623
+ effectiveAt: string;
1624
+ /** Контрольная сумма текста, которую возвращает сервер. */
1625
+ contentSha256: string;
1626
+ /** Дата, указанная в документе. */
1627
+ documentDate: string;
1628
+ /** Дата публикации или `null`, если она не указана. */
1629
+ publishedAt: string | null;
1630
+ }
1631
+ /** Запись истории редакций. */
1632
+ interface LegalDocumentVersion extends LegalDocumentSummary {
1633
+ /** Действует ли эта редакция сейчас. */
1634
+ current: boolean;
1635
+ }
1636
+ /** Виды блоков текста документа. */
1637
+ declare const LegalDocumentBlockType: Readonly<{
1638
+ readonly Heading: "heading";
1639
+ readonly List: "list";
1640
+ readonly Lines: "lines";
1641
+ }>;
1642
+ type LegalDocumentBlockType = Loose<(typeof LegalDocumentBlockType)[keyof typeof LegalDocumentBlockType]>;
1643
+ /** Блок текста. Поля зависят от его вида. */
1644
+ interface LegalDocumentBlock {
1645
+ type: LegalDocumentBlockType;
1646
+ /** Уровень заголовка. */
1647
+ level?: number;
1648
+ /** Текст заголовка или абзаца. */
1649
+ text?: string;
1650
+ /** Пункты списка или строки многострочного блока. */
1651
+ items?: string[];
1652
+ }
1653
+ /** Редакция документа с полным текстом. */
1654
+ interface LegalDocument extends LegalDocumentSummary {
1655
+ /** Блоки в порядке чтения. */
1656
+ blocks: LegalDocumentBlock[];
1657
+ }
1568
1658
  /** Деактивация и восстановление текущего аккаунта. */
1569
1659
  declare class AccountLifecycleResource extends BaseResource {
1570
1660
  /** Деактивирует аккаунт. Вернуть его можно через {@link restore}. */
@@ -1967,57 +2057,6 @@ declare class HashtagsResource extends BaseResource {
1967
2057
  /** Перебирает посты по хэштегу. */
1968
2058
  iteratePosts(tag: string, params?: HashtagPostsParams, options?: PaginationOptions): Paginator<Post>;
1969
2059
  }
1970
- /** Область действия документа. */
1971
- declare const LegalDocumentScope: Readonly<{
1972
- readonly Social: "social";
1973
- }>;
1974
- type LegalDocumentScope = Loose<(typeof LegalDocumentScope)[keyof typeof LegalDocumentScope]>;
1975
- /** Сведения о редакции документа в списке документов и истории редакций. */
1976
- interface LegalDocumentSummary {
1977
- scope: LegalDocumentScope;
1978
- /** Идентификатор документа в пределах области действия. */
1979
- slug: string;
1980
- title: string;
1981
- shortTitle: string;
1982
- summary: string;
1983
- /** Идентификатор редакции. Передавайте его в `legal.version()` как строку. */
1984
- version: string;
1985
- /** Дата вступления редакции в силу. */
1986
- effectiveAt: string;
1987
- /** Контрольная сумма текста, которую возвращает сервер. */
1988
- contentSha256: string;
1989
- /** Дата, указанная в документе. */
1990
- documentDate: string;
1991
- /** Дата публикации или `null`, если она не указана. */
1992
- publishedAt: string | null;
1993
- }
1994
- /** Запись истории редакций. */
1995
- interface LegalDocumentVersion extends LegalDocumentSummary {
1996
- /** Действует ли эта редакция сейчас. */
1997
- current: boolean;
1998
- }
1999
- /** Виды блоков текста документа. */
2000
- declare const LegalDocumentBlockType: Readonly<{
2001
- readonly Heading: "heading";
2002
- readonly List: "list";
2003
- readonly Lines: "lines";
2004
- }>;
2005
- type LegalDocumentBlockType = Loose<(typeof LegalDocumentBlockType)[keyof typeof LegalDocumentBlockType]>;
2006
- /** Блок текста. Поля зависят от его вида. */
2007
- interface LegalDocumentBlock {
2008
- type: LegalDocumentBlockType;
2009
- /** Уровень заголовка. */
2010
- level?: number;
2011
- /** Текст заголовка или абзаца. */
2012
- text?: string;
2013
- /** Пункты списка или строки многострочного блока. */
2014
- items?: string[];
2015
- }
2016
- /** Редакция документа с полным текстом. */
2017
- interface LegalDocument extends LegalDocumentSummary {
2018
- /** Блоки в порядке чтения. */
2019
- blocks: LegalDocumentBlock[];
2020
- }
2021
2060
  /** Публичные документы ИТД и история их редакций. Доступны через `itd.legal`. */
2022
2061
  declare class LegalResource extends BaseResource {
2023
2062
  /**
@@ -3850,4 +3889,4 @@ interface RenderSpansOptions {
3850
3889
  * Отсутствующий массив считается пустым; формат по умолчанию — HTML.
3851
3890
  */
3852
3891
  declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
3853
- export { InternationalSubscriptionCheckoutMode as $, AttemptExtensions as $i, CommentReplyTo as $n, CreateReportInput as $r, ReportsResource as $t, UsersResource as A, ChatSentMessage as Ai, Report as An, Paginator as Ar, ShopDeliveryDestination as At, ViewTracker as B, FeatureBucketDefinition as Bi, HashtagsResource as Bn, messageMarkup as Br, ShopOrderSummary as Bt, fromStream as C, ChatReaction as Ci, StatusDay as Cn, ChatsResource as Cr, ShopConsent as Ct, UpdatePrivacyInput as D, ChatReadCursor as Di, ChangelogEntry as Dn, Page as Dr, ShopDeliveryCalculation as Dt, MessageAllowlistParams as E, ChatReactionType as Ei, AnnouncementButton as En, BaseResource as Er, ShopCreatedOrder as Et, TelemetryBatchOptions as F, ChatUpdateType as Fi, LegalDocumentBlockType as Fn, message as Fr, ShopOrderBase as Ft, SubscriptionCheckoutReleaseInput as G, ManagedClientResource as Gi, BannerDrawingOperation as Gn, MarkupSpan as Gr, ShopProductColor as Gt, ViewTrackerOptions as H, FeatureInstallation as Hi, UploadOptions as Hn, MarkupBuilder as Hr, ShopPayment as Ht, TelemetryClock as I, ChatUpdatesPage as Ii, LegalDocumentScope as In, MessageMarkup as Ir, ShopOrderDelivery as It, SubscriptionPayOptions as J, PreparedFileSource as Ji, UploadedBannerDrawing as Jn, markup as Jr, ShopRecipient as Jt, SubscriptionCheckoutTerms as K, FileResolver as Ki, BannerDrawingPoint as Kn, TextMarkup as Kr, ShopProductSpec as Kt, TelemetryOptions as L, ChatUploadOptions as Li, LegalDocumentSummary as Ln, MessageMarkupBuilder as Lr, ShopOrderItem as Lt, InteractionEntry as M, ChatTextEntity as Mi, LegalResource as Mn, mapPage as Mr, ShopOrder as Mt, PhotoOpenInput as N, ChatUnreadState as Ni, LegalDocument as Nn, MessageBuilder as Nr, ShopOrderAccessSession as Nt, UpdateProfileInput as O, ChatReadResult as Oi, Clan as On, PageState as Or, ShopDeliveryCity as Ot, TelemetryBatch as P, ChatUpdate as Pi, LegalDocumentBlock as Pn, MessageInput as Pr, ShopOrderAccessVerification as Pt, InternationalSubscriptionCheckout as Q, AttemptContext as Qi, Comment as Qn, CreatePostData as Qr, SearchResult as Qt, TelemetryResource as R, ChatUploadedFile as Ri, LegalDocumentVersion as Rn, MessageMarkupContent as Rr, ShopOrderItemInput as Rt, VideoMimeType as S, ChatPreview as Si, ServiceStatus as Sn, ChatListParams as Sr, CreateShopOrderInput as St, VerificationResource as T, ChatReactionCount as Ti, Announcement as Tn, SetChatReactionsInput as Tr, ShopConsentKind as Tt, SubscriptionBindCardOptions as U, FeatureOperationDefinition as Ui, UploadedFile as Un, MarkupContent as Ur, ShopProduct as Ut, ViewTrackerInput as V, FeatureContext as Vi, FilesResource as Vn, AutoSpansOptions as Vr, ShopOrderSupport as Vt, SubscriptionCheckoutInput as W, FeatureRequestOptions as Wi, BannerDrawing as Wn, MarkupInput as Wr, ShopProductCategory as Wt, SubscriptionResource as X, ResolveFileContext as Xi, RepliesParams as Xn, CreateCommentInput as Xr, ShopSizeChartRow as Xt, SubscriptionPaymentInput as Y, PreparedStreamSource as Yi, CommentsResource as Yn, ChatMessageContent as Yr, ShopSizeChart as Yt, InternationalSubscriptionCapability as Z, ResolveFileOptions as Zi, Attachment as Zn, CreatePollInput as Zr, SearchResource as Zt, AllowedMimeType as _, ChatMediaItem as _i, parseMarkdown as _n, QrLoginTarget as _r, ShopDeliveryResource as _t, ShopFeatureOptions as a, OperationTransformer as aa, ChatActionType as ai, PostsResource as an, Poll as ar, SubscriptionCheckoutState as at, ImageMimeType as b, ChatMessageReactions as bi, PlatformVersions as bn, NotificationsResource as br, ShopProductsResource as bt, ShopOrderAccessStorage as c, HttpClient as ca, ChatDeletedMessages as ci, PostBuilder as cn, PostBase as cr, SubscriptionGift as ct, statusDays as d, ChatFileLink as di, post as dn, PostUpdateResult as dr, SubscriptionPaymentProvider as dt, AttemptInterceptor as ea, SendChatMessageInput as ei, ReportBuilder as en, CommentUpdateResult as er, InternationalSubscriptionOffer as et, isMyProfile as f, ChatFirstMessage as fi, PollBuilder as fn, UpdateResultBase as fr, SubscriptionQuote as ft, AUDIO_MIME_TYPES as g, ChatMediaCategory as gi, parseHtml as gn, AccountLifecycleResource as gr, ShopConsentsResource as gt, ALLOWED_MIME_TYPES as h, ChatListPage as hi, ParseMarkupOptions as hn, comment as hr, PayShopOrderOptions as ht, ShopFeatureApi as i, OperationTransformContext as ia, isBuilder as ii, FeedParams as in, PinPostResult as ir, SubscriptionCheckoutKind as it, DwellEntry as j, ChatSummary as ji, VerificationStatus as jn, PaginatorOptions as jr, ShopDeliveryPoint as jt, UserListParams as k, ChatReply as ki, Portal as kn, PaginationMode as kr, ShopDeliveryCountry as kt, ShopOrderAccessStorageAdapterOptions as l, RateLimitBucketState as la, ChatDirectResult as li, PostInput as ln, PostCounters as lr, SubscriptionOffer as lt, utcStampToIso as m, ChatHistoryPage as mi, poll as mn, CommentInput as mr, CreateShopOrderOptions as mt, SpanRenderFormat as n, ClientPlugin as na, BuilderInput as ni, report as nn, LikeResult as nr, PaymentMethodType as nt, createShopFeature as o, PluginApi as oa, ChatAttachment as oi, UserPostsParams as on, PollOption as or, SubscriptionCheckoutStatus as ot, toDate as p, ChatForwardedMessages as pi, PollInput as pn, CommentBuilder as pr, SubscriptionRenewalAgreement as pt, SubscriptionGiftInput as q, PreparedBufferSource as qi, BannerDrawingTool as qn, autoSpans as qr, ShopProductStatus as qt, renderSpans as r, OperationExtensions as ra, ItdBuilder as ri, CommentsParams as rn, OriginalPost as rr, Subscription as rt, MemoryShopOrderAccessStorage as s, PluginTeardown as sa, ChatChange as si, CreatePostInput as sn, Post as sr, SubscriptionCheckoutSubject as st, RenderSpansOptions as t, AttemptNext as ta, UpdatePostInput as ti, ReportInput as tn, Hashtag as tr, PaymentMethod as tt, createShopOrderAccessStorage as u, CookieJar as ua, ChatEditedMessage as ui, PostUpdateInput as un, PostStats as ur, SubscriptionPayment as ut, AudioMimeType as v, ChatMediaPage as vi, PlatformClientVersion as vn, Session as vr, ShopOrderRequestOptions as vt, fromUrl as w, ChatReactionCatalog as wi, StatusIncidentLine as wn, ForwardChatMessagesInput as wr, ShopConsentContext as wt, VIDEO_MIME_TYPES as x, ChatPresence as xi, PlatformStatus as xn, UpdateNotificationSettingsInput as xr, ShopResource as xt, IMAGE_MIME_TYPES as y, ChatMessage as yi, PlatformResource as yn, NotificationListParams as yr, ShopOrdersResource as yt, VideoProgressInput as z, ClientFeature as zi, HashtagPostsParams as zn, MessageMarkupInput as zr, ShopOrderStatus as zt };
3892
+ export { InternationalSubscriptionCheckoutMode as $, ResolveFileContext as $i, Poll as $n, CreateCommentInput as $r, ReportsResource as $t, UsersResource as A, ChatReadCursor as Ai, Report as An, Page as Ar, ShopDeliveryDestination as At, ViewTracker as B, ChatUploadOptions as Bi, BannerDrawingPoint as Bn, MessageMarkupBuilder as Br, ShopOrderSummary as Bt, fromStream as C, ChatMessageReactions as Ci, StatusDay as Cn, NotificationsResource as Cr, ShopConsent as Ct, UpdatePrivacyInput as D, ChatReactionCatalog as Di, ChangelogEntry as Dn, ForwardChatMessagesInput as Dr, ShopDeliveryCalculation as Dt, MessageAllowlistParams as E, ChatReaction as Ei, AnnouncementButton as En, ChatsResource as Er, ShopCreatedOrder as Et, TelemetryBatchOptions as F, ChatTextEntity as Fi, FilesResource as Fn, mapPage as Fr, ShopOrderBase as Ft, SubscriptionCheckoutReleaseInput as G, FeatureInstallation as Gi, Attachment as Gn, MarkupBuilder as Gr, ShopProductColor as Gt, ViewTrackerOptions as H, ClientFeature as Hi, UploadedBannerDrawing as Hn, MessageMarkupInput as Hr, ShopPayment as Ht, TelemetryClock as I, ChatUnreadState as Ii, UploadOptions as In, MessageBuilder as Ir, ShopOrderDelivery as It, SubscriptionPayOptions as J, ManagedClientResource as Ji, CommentUpdateResult as Jn, MarkupSpan as Jr, ShopRecipient as Jt, SubscriptionCheckoutTerms as K, FeatureOperationDefinition as Ki, Comment as Kn, MarkupContent as Kr, ShopProductSpec as Kt, TelemetryOptions as L, ChatUpdate as Li, UploadedFile as Ln, MessageInput as Lr, ShopOrderItem as Lt, InteractionEntry as M, ChatReply as Mi, LegalResource as Mn, PaginationMode as Mr, ShopOrder as Mt, PhotoOpenInput as N, ChatSentMessage as Ni, HashtagPostsParams as Nn, Paginator as Nr, ShopOrderAccessSession as Nt, UpdateProfileInput as O, ChatReactionCount as Oi, Clan as On, SetChatReactionsInput as Or, ShopDeliveryCity as Ot, TelemetryBatch as P, ChatSummary as Pi, HashtagsResource as Pn, PaginatorOptions as Pr, ShopOrderAccessVerification as Pt, InternationalSubscriptionCheckout as Q, PreparedStreamSource as Qi, PinPostResult as Qn, ChatMessageContent as Qr, SearchResult as Qt, TelemetryResource as R, ChatUpdateType as Ri, BannerDrawing as Rn, message as Rr, ShopOrderItemInput as Rt, VideoMimeType as S, ChatMessage as Si, ServiceStatus as Sn, NotificationListParams as Sr, CreateShopOrderInput as St, VerificationResource as T, ChatPreview as Ti, Announcement as Tn, ChatListParams as Tr, ShopConsentKind as Tt, SubscriptionBindCardOptions as U, FeatureBucketDefinition as Ui, CommentsResource as Un, messageMarkup as Ur, ShopProduct as Ut, ViewTrackerInput as V, ChatUploadedFile as Vi, BannerDrawingTool as Vn, MessageMarkupContent as Vr, ShopOrderSupport as Vt, SubscriptionCheckoutInput as W, FeatureContext as Wi, RepliesParams as Wn, AutoSpansOptions as Wr, ShopProductCategory as Wt, SubscriptionResource as X, PreparedBufferSource as Xi, LikeResult as Xn, autoSpans as Xr, ShopSizeChartRow as Xt, SubscriptionPaymentInput as Y, FileResolver as Yi, Hashtag as Yn, TextMarkup as Yr, ShopSizeChart as Yt, InternationalSubscriptionCapability as Z, PreparedFileSource as Zi, OriginalPost as Zn, markup as Zr, SearchResource as Zt, AllowedMimeType as _, ChatHistoryPage as _i, parseMarkdown as _n, LegalDocumentSummary as _r, ShopDeliveryResource as _t, ShopFeatureOptions as a, ClientPlugin as aa, BuilderInput as ai, PostsResource as an, PostUpdateResult as ar, SubscriptionCheckoutState as at, ImageMimeType as b, ChatMediaItem as bi, PlatformVersions as bn, QrLoginTarget as br, ShopProductsResource as bt, ShopOrderAccessStorage as c, OperationTransformer as ca, ChatActionType as ci, PostBuilder as cn, CommentInput as cr, SubscriptionGift as ct, statusDays as d, HttpClient as da, ChatDeletedMessages as di, post as dn, ConsentContext as dr, SubscriptionPaymentProvider as dt, ResolveFileOptions as ea, CreatePollInput as ei, ReportBuilder as en, PollOption as er, InternationalSubscriptionOffer as et, isMyProfile as f, RateLimitBucketState as fa, ChatDirectResult as fi, PollBuilder as fn, ConsentDocument as fr, SubscriptionQuote as ft, AUDIO_MIME_TYPES as g, ChatForwardedMessages as gi, parseHtml as gn, LegalDocumentScope as gr, ShopConsentsResource as gt, ALLOWED_MIME_TYPES as h, ChatFirstMessage as hi, ParseMarkupOptions as hn, LegalDocumentBlockType as hr, PayShopOrderOptions as ht, ShopFeatureApi as i, AttemptNext as ia, UpdatePostInput as ii, FeedParams as in, PostStats as ir, SubscriptionCheckoutKind as it, DwellEntry as j, ChatReadResult as ji, VerificationStatus as jn, PageState as jr, ShopDeliveryPoint as jt, UserListParams as k, ChatReactionType as ki, Portal as kn, BaseResource as kr, ShopDeliveryCountry as kt, ShopOrderAccessStorageAdapterOptions as l, PluginApi as la, ChatAttachment as li, PostInput as ln, comment as lr, SubscriptionOffer as lt, utcStampToIso as m, ChatFileLink as mi, poll as mn, LegalDocumentBlock as mr, CreateShopOrderOptions as mt, SpanRenderFormat as n, AttemptExtensions as na, CreateReportInput as ni, report as nn, PostBase as nr, PaymentMethodType as nt, createShopFeature as o, OperationExtensions as oa, ItdBuilder as oi, UserPostsParams as on, UpdateResultBase as or, SubscriptionCheckoutStatus as ot, toDate as p, CookieJar as pa, ChatEditedMessage as pi, PollInput as pn, LegalDocument as pr, SubscriptionRenewalAgreement as pt, SubscriptionGiftInput as q, FeatureRequestOptions as qi, CommentReplyTo as qn, MarkupInput as qr, ShopProductStatus as qt, renderSpans as r, AttemptInterceptor as ra, SendChatMessageInput as ri, CommentsParams as rn, PostCounters as rr, Subscription as rt, MemoryShopOrderAccessStorage as s, OperationTransformContext as sa, isBuilder as si, CreatePostInput as sn, CommentBuilder as sr, SubscriptionCheckoutSubject as st, RenderSpansOptions as t, AttemptContext as ta, CreatePostData as ti, ReportInput as tn, Post as tr, PaymentMethod as tt, createShopOrderAccessStorage as u, PluginTeardown as ua, ChatChange as ui, PostUpdateInput as un, AccountLifecycleResource as ur, SubscriptionPayment as ut, AudioMimeType as v, ChatListPage as vi, PlatformClientVersion as vn, LegalDocumentVersion as vr, ShopOrderRequestOptions as vt, fromUrl as w, ChatPresence as wi, StatusIncidentLine as wn, UpdateNotificationSettingsInput as wr, ShopConsentContext as wt, VIDEO_MIME_TYPES as x, ChatMediaPage as xi, PlatformStatus as xn, Session as xr, ShopResource as xt, IMAGE_MIME_TYPES as y, ChatMediaCategory as yi, PlatformResource as yn, TermsAcceptance as yr, ShopOrdersResource as yt, VideoProgressInput as z, ChatUpdatesPage as zi, BannerDrawingOperation as zn, MessageMarkup as zr, ShopOrderStatus as zt };
@@ -622,6 +622,16 @@ const OPERATIONS = freezeOperations({
622
622
  retrySafety: RetrySafety.Safe,
623
623
  bucket: "auth"
624
624
  },
625
+ "account.termsAcceptance": {
626
+ method: "GET",
627
+ retrySafety: RetrySafety.Safe,
628
+ bucket: "auth"
629
+ },
630
+ "account.acceptTerms": {
631
+ method: "POST",
632
+ retrySafety: RetrySafety.Unsafe,
633
+ bucket: "auth"
634
+ },
625
635
  "account.password.set": {
626
636
  method: "POST",
627
637
  retrySafety: RetrySafety.Unsafe,
@@ -1830,7 +1840,7 @@ const RateLimitPacing = Object.freeze({
1830
1840
  });
1831
1841
  // src/core/version.ts
1832
1842
  /** Версия библиотеки. Попадает в `User-Agent`. */
1833
- const LIBRARY_VERSION = "0.14.5";
1843
+ const LIBRARY_VERSION = "0.14.6";
1834
1844
  // src/core/config.ts
1835
1845
  /** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
1836
1846
  const DEFAULT_BASE_URL = "https://xn--d1ah4a.com";
@@ -5524,4 +5534,4 @@ Object.defineProperty(exports, "waitForRequest", {
5524
5534
  }
5525
5535
  });
5526
5536
 
5527
- //# sourceMappingURL=url-Duzw4X6d.cjs.map
5537
+ //# sourceMappingURL=url-CStw2h1g.cjs.map