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.
- package/dist/events/index.cjs +2 -2
- package/dist/events/index.d.cts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +2 -2
- package/dist/index.cjs +32 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -35
- package/dist/index.d.ts +16 -35
- package/dist/index.js +32 -8
- package/dist/index.js.map +1 -1
- package/dist/rest/index.cjs +2 -2
- package/dist/rest/index.d.cts +2 -2
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +2 -2
- package/dist/shared/{events-CMhrmHei.d.cts → events-BsmLCdog.d.cts} +1 -1
- package/dist/shared/{events-Cupq8UXH.d.ts → events-By7baZfE.d.ts} +1 -1
- package/dist/shared/{events-C3Wup3mC.cjs → events-DFQSN5H6.cjs} +2 -2
- package/dist/shared/{events-C3Wup3mC.cjs.map → events-DFQSN5H6.cjs.map} +1 -1
- package/dist/shared/{events-BbpL69OD.js → events-DorlX-Xd.js} +2 -2
- package/dist/shared/{events-BbpL69OD.js.map → events-DorlX-Xd.js.map} +1 -1
- package/dist/shared/{render-ByW1tXn-.d.cts → render-CZoSZHnh.d.cts} +92 -53
- package/dist/shared/{render-BXeYbuuY.cjs → render-CklT-3gT.cjs} +2 -2
- package/dist/shared/render-CklT-3gT.cjs.map +1 -0
- package/dist/shared/{render-C706i1rL.js → render-DBt-OBbC.js} +2 -2
- package/dist/shared/render-DBt-OBbC.js.map +1 -0
- package/dist/shared/{render-B3nhAeaQ.d.ts → render-DOxbtUga.d.ts} +92 -53
- package/dist/shared/{url-Duzw4X6d.cjs → url-CStw2h1g.cjs} +12 -2
- package/dist/shared/url-CStw2h1g.cjs.map +1 -0
- package/dist/shared/{url-CZpgaPdI.js → url-DTDqkKpf.js} +12 -2
- package/dist/shared/url-DTDqkKpf.js.map +1 -0
- package/dist/shared/{url-DHWmfmrE.d.cts → url-Ls6HGxZl.d.cts} +11 -1
- package/dist/shared/{url-D4bo3tpX.d.ts → url-U1Q7c-SD.d.ts} +11 -1
- package/package.json +1 -1
- package/dist/shared/render-BXeYbuuY.cjs.map +0 -1
- package/dist/shared/render-C706i1rL.js.map +0 -1
- package/dist/shared/url-CZpgaPdI.js.map +0 -1
- package/dist/shared/url-Duzw4X6d.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ClientConnection, Bn as ViewReason, Cn as CommentSort, Dn as InteractionType, E as UsernameAvailability, En as IncidentKind, Fn as ReportReason, G as OperationContract, I as HttpClient, In as ReportTargetType, J as RetrySafety, K as OperationMetadata, L as HttpOperationOptions, Ln as ServiceState, Pn as QrLocationPrecision, Q as PaginationOptions, S as PublicProfile, T as UserSummary, Tn as FeedTab, Tt as OperationId, Vn as ViewSource, W as OperationAnnotations, Z as OperationRequestOptions, _ as MyProfile, _n as UserRef, at as RequestOptions, b as PrivacySettings, c as NotificationSettings, dt as QueryParams, et as RateLimitBucketOverride, f as Author, g as MessageAllowlistUser, gn as UserId, h as MessageAllowlistMembership, hn as Span, j as AuthIdentity, jn as Loose, k as Unsubscribe, mn as IsoDate, nt as RawRequestOptions, p as FollowResult, pt as ServiceDefinition, q as OperationMethod, s as Notification, vt as Logger, w as UserBase, x as Profile, xt as BuiltInOperationId, y as PinsResult, yn as AttachmentType, yt as ItdClock } from "./url-
|
|
1
|
+
import { A as ClientConnection, Bn as ViewReason, Cn as CommentSort, Dn as InteractionType, E as UsernameAvailability, En as IncidentKind, Fn as ReportReason, G as OperationContract, I as HttpClient, In as ReportTargetType, J as RetrySafety, K as OperationMetadata, L as HttpOperationOptions, Ln as ServiceState, Pn as QrLocationPrecision, Q as PaginationOptions, S as PublicProfile, T as UserSummary, Tn as FeedTab, Tt as OperationId, Vn as ViewSource, W as OperationAnnotations, Z as OperationRequestOptions, _ as MyProfile, _n as UserRef, at as RequestOptions, b as PrivacySettings, c as NotificationSettings, dt as QueryParams, et as RateLimitBucketOverride, f as Author, g as MessageAllowlistUser, gn as UserId, h as MessageAllowlistMembership, hn as Span, j as AuthIdentity, jn as Loose, k as Unsubscribe, mn as IsoDate, nt as RawRequestOptions, p as FollowResult, pt as ServiceDefinition, q as OperationMethod, s as Notification, vt as Logger, w as UserBase, x as Profile, xt as BuiltInOperationId, y as PinsResult, yn as AttachmentType, yt as ItdClock } from "./url-Ls6HGxZl.cjs";
|
|
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-DEbkC0cB.cjs";
|
|
3
3
|
import { r as KeyValueStore } from "./key-value-store-BGoSgLze.cjs";
|
|
4
4
|
/**
|
|
@@ -1377,6 +1377,96 @@ interface QrLoginTarget {
|
|
|
1377
1377
|
/** Насколько точно известны координаты. */
|
|
1378
1378
|
precision?: QrLocationPrecision | null | undefined;
|
|
1379
1379
|
}
|
|
1380
|
+
/** Редакция документа, включённая в контекст согласия. */
|
|
1381
|
+
interface ConsentDocument {
|
|
1382
|
+
scope: string;
|
|
1383
|
+
slug: string;
|
|
1384
|
+
version: string;
|
|
1385
|
+
contentSha256: string;
|
|
1386
|
+
url: string;
|
|
1387
|
+
}
|
|
1388
|
+
/** Текст, редакции документов и подписанный контекст согласия. */
|
|
1389
|
+
interface ConsentContext<Flow extends string> {
|
|
1390
|
+
protocolVersion: number;
|
|
1391
|
+
contextToken: string;
|
|
1392
|
+
id: string;
|
|
1393
|
+
/** Время выдачи контекста, Unix-время в миллисекундах. */
|
|
1394
|
+
issuedAt: number;
|
|
1395
|
+
/** Срок действия контекста, Unix-время в миллисекундах. */
|
|
1396
|
+
expiresAt: number;
|
|
1397
|
+
bundle: {
|
|
1398
|
+
id: string;
|
|
1399
|
+
flow: Flow;
|
|
1400
|
+
documents: ConsentDocument[];
|
|
1401
|
+
actions: Record<string, string>;
|
|
1402
|
+
actionVersion: string;
|
|
1403
|
+
submitLabel: string;
|
|
1404
|
+
text: {
|
|
1405
|
+
text: string;
|
|
1406
|
+
document?: string;
|
|
1407
|
+
}[];
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
/** Редакция условий и необходимость согласия для текущего аккаунта. */
|
|
1411
|
+
type TermsAcceptance = {
|
|
1412
|
+
version: string;
|
|
1413
|
+
required: false;
|
|
1414
|
+
} | {
|
|
1415
|
+
version: string;
|
|
1416
|
+
required: true;
|
|
1417
|
+
consent: ConsentContext<'account_terms'>;
|
|
1418
|
+
};
|
|
1419
|
+
/** Область действия документа. */
|
|
1420
|
+
declare const LegalDocumentScope: Readonly<{
|
|
1421
|
+
readonly Social: "social";
|
|
1422
|
+
}>;
|
|
1423
|
+
type LegalDocumentScope = Loose<(typeof LegalDocumentScope)[keyof typeof LegalDocumentScope]>;
|
|
1424
|
+
/** Сведения о редакции документа в списке документов и истории редакций. */
|
|
1425
|
+
interface LegalDocumentSummary {
|
|
1426
|
+
scope: LegalDocumentScope;
|
|
1427
|
+
/** Идентификатор документа в пределах области действия. */
|
|
1428
|
+
slug: string;
|
|
1429
|
+
title: string;
|
|
1430
|
+
shortTitle: string;
|
|
1431
|
+
summary: string;
|
|
1432
|
+
/** Идентификатор редакции. Передавайте его в `legal.version()` как строку. */
|
|
1433
|
+
version: string;
|
|
1434
|
+
/** Дата вступления редакции в силу. */
|
|
1435
|
+
effectiveAt: string;
|
|
1436
|
+
/** Контрольная сумма текста, которую возвращает сервер. */
|
|
1437
|
+
contentSha256: string;
|
|
1438
|
+
/** Дата, указанная в документе. */
|
|
1439
|
+
documentDate: string;
|
|
1440
|
+
/** Дата публикации или `null`, если она не указана. */
|
|
1441
|
+
publishedAt: string | null;
|
|
1442
|
+
}
|
|
1443
|
+
/** Запись истории редакций. */
|
|
1444
|
+
interface LegalDocumentVersion extends LegalDocumentSummary {
|
|
1445
|
+
/** Действует ли эта редакция сейчас. */
|
|
1446
|
+
current: boolean;
|
|
1447
|
+
}
|
|
1448
|
+
/** Виды блоков текста документа. */
|
|
1449
|
+
declare const LegalDocumentBlockType: Readonly<{
|
|
1450
|
+
readonly Heading: "heading";
|
|
1451
|
+
readonly List: "list";
|
|
1452
|
+
readonly Lines: "lines";
|
|
1453
|
+
}>;
|
|
1454
|
+
type LegalDocumentBlockType = Loose<(typeof LegalDocumentBlockType)[keyof typeof LegalDocumentBlockType]>;
|
|
1455
|
+
/** Блок текста. Поля зависят от его вида. */
|
|
1456
|
+
interface LegalDocumentBlock {
|
|
1457
|
+
type: LegalDocumentBlockType;
|
|
1458
|
+
/** Уровень заголовка. */
|
|
1459
|
+
level?: number;
|
|
1460
|
+
/** Текст заголовка или абзаца. */
|
|
1461
|
+
text?: string;
|
|
1462
|
+
/** Пункты списка или строки многострочного блока. */
|
|
1463
|
+
items?: string[];
|
|
1464
|
+
}
|
|
1465
|
+
/** Редакция документа с полным текстом. */
|
|
1466
|
+
interface LegalDocument extends LegalDocumentSummary {
|
|
1467
|
+
/** Блоки в порядке чтения. */
|
|
1468
|
+
blocks: LegalDocumentBlock[];
|
|
1469
|
+
}
|
|
1380
1470
|
/** Деактивация и восстановление текущего аккаунта. */
|
|
1381
1471
|
declare class AccountLifecycleResource extends BaseResource {
|
|
1382
1472
|
/** Деактивирует аккаунт. Вернуть его можно через {@link restore}. */
|
|
@@ -1779,57 +1869,6 @@ declare class HashtagsResource extends BaseResource {
|
|
|
1779
1869
|
/** Перебирает посты по хэштегу. */
|
|
1780
1870
|
iteratePosts(tag: string, params?: HashtagPostsParams, options?: PaginationOptions): Paginator<Post>;
|
|
1781
1871
|
}
|
|
1782
|
-
/** Область действия документа. */
|
|
1783
|
-
declare const LegalDocumentScope: Readonly<{
|
|
1784
|
-
readonly Social: "social";
|
|
1785
|
-
}>;
|
|
1786
|
-
type LegalDocumentScope = Loose<(typeof LegalDocumentScope)[keyof typeof LegalDocumentScope]>;
|
|
1787
|
-
/** Сведения о редакции документа в списке документов и истории редакций. */
|
|
1788
|
-
interface LegalDocumentSummary {
|
|
1789
|
-
scope: LegalDocumentScope;
|
|
1790
|
-
/** Идентификатор документа в пределах области действия. */
|
|
1791
|
-
slug: string;
|
|
1792
|
-
title: string;
|
|
1793
|
-
shortTitle: string;
|
|
1794
|
-
summary: string;
|
|
1795
|
-
/** Идентификатор редакции. Передавайте его в `legal.version()` как строку. */
|
|
1796
|
-
version: string;
|
|
1797
|
-
/** Дата вступления редакции в силу. */
|
|
1798
|
-
effectiveAt: string;
|
|
1799
|
-
/** Контрольная сумма текста, которую возвращает сервер. */
|
|
1800
|
-
contentSha256: string;
|
|
1801
|
-
/** Дата, указанная в документе. */
|
|
1802
|
-
documentDate: string;
|
|
1803
|
-
/** Дата публикации или `null`, если она не указана. */
|
|
1804
|
-
publishedAt: string | null;
|
|
1805
|
-
}
|
|
1806
|
-
/** Запись истории редакций. */
|
|
1807
|
-
interface LegalDocumentVersion extends LegalDocumentSummary {
|
|
1808
|
-
/** Действует ли эта редакция сейчас. */
|
|
1809
|
-
current: boolean;
|
|
1810
|
-
}
|
|
1811
|
-
/** Виды блоков текста документа. */
|
|
1812
|
-
declare const LegalDocumentBlockType: Readonly<{
|
|
1813
|
-
readonly Heading: "heading";
|
|
1814
|
-
readonly List: "list";
|
|
1815
|
-
readonly Lines: "lines";
|
|
1816
|
-
}>;
|
|
1817
|
-
type LegalDocumentBlockType = Loose<(typeof LegalDocumentBlockType)[keyof typeof LegalDocumentBlockType]>;
|
|
1818
|
-
/** Блок текста. Поля зависят от его вида. */
|
|
1819
|
-
interface LegalDocumentBlock {
|
|
1820
|
-
type: LegalDocumentBlockType;
|
|
1821
|
-
/** Уровень заголовка. */
|
|
1822
|
-
level?: number;
|
|
1823
|
-
/** Текст заголовка или абзаца. */
|
|
1824
|
-
text?: string;
|
|
1825
|
-
/** Пункты списка или строки многострочного блока. */
|
|
1826
|
-
items?: string[];
|
|
1827
|
-
}
|
|
1828
|
-
/** Редакция документа с полным текстом. */
|
|
1829
|
-
interface LegalDocument extends LegalDocumentSummary {
|
|
1830
|
-
/** Блоки в порядке чтения. */
|
|
1831
|
-
blocks: LegalDocumentBlock[];
|
|
1832
|
-
}
|
|
1833
1872
|
/** Публичные документы ИТД и история их редакций. Доступны через `itd.legal`. */
|
|
1834
1873
|
declare class LegalResource extends BaseResource {
|
|
1835
1874
|
/**
|
|
@@ -3662,4 +3701,4 @@ interface RenderSpansOptions {
|
|
|
3662
3701
|
* Отсутствующий массив считается пустым; формат по умолчанию — HTML.
|
|
3663
3702
|
*/
|
|
3664
3703
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
3665
|
-
export { InternationalSubscriptionCheckoutMode as $,
|
|
3704
|
+
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, 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, 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, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_validate = require("./validate-DQrtiCtV.cjs");
|
|
2
|
-
const require_url = require("./url-
|
|
2
|
+
const require_url = require("./url-CStw2h1g.cjs");
|
|
3
3
|
const require_cookies = require("./cookies-Dv5LQp55.cjs");
|
|
4
4
|
const require_options = require("./options-eaq9yK8b.cjs");
|
|
5
5
|
const require_key_value_store = require("./key-value-store-CeiDXFAC.cjs");
|
|
@@ -6825,4 +6825,4 @@ Object.defineProperty(exports, "utcStampToIso", {
|
|
|
6825
6825
|
}
|
|
6826
6826
|
});
|
|
6827
6827
|
|
|
6828
|
-
//# sourceMappingURL=render-
|
|
6828
|
+
//# sourceMappingURL=render-CklT-3gT.cjs.map
|