itd-api 0.9.0 → 0.9.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 (34) hide show
  1. package/README.md +4 -4
  2. package/dist/events/index.cjs +2 -2
  3. package/dist/events/index.d.cts +2 -2
  4. package/dist/events/index.d.ts +2 -2
  5. package/dist/events/index.js +2 -2
  6. package/dist/index.cjs +3 -3
  7. package/dist/index.d.cts +4 -4
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.js +3 -3
  10. package/dist/rest/index.cjs +2 -2
  11. package/dist/rest/index.d.cts +3 -3
  12. package/dist/rest/index.d.ts +3 -3
  13. package/dist/rest/index.js +2 -2
  14. package/dist/shared/{events-CqtkP65d.d.ts → events-BDdJyH2p.d.ts} +2 -2
  15. package/dist/shared/{events-DGAWlCaI.d.cts → events-BQyH5-S0.d.cts} +2 -2
  16. package/dist/shared/{events-FZfnEez0.cjs → events-BqFkwwTw.cjs} +2 -2
  17. package/dist/shared/{events-FZfnEez0.cjs.map → events-BqFkwwTw.cjs.map} +1 -1
  18. package/dist/shared/{events-C5wnTXPT.js → events-D6y0Hxyz.js} +2 -2
  19. package/dist/shared/{events-C5wnTXPT.js.map → events-D6y0Hxyz.js.map} +1 -1
  20. package/dist/shared/{render-DDwy2Ame.d.cts → render-BU1_wex8.d.cts} +33 -12
  21. package/dist/shared/{render-B4qis7Sb.d.ts → render-CZ_-F2Tl.d.ts} +33 -12
  22. package/dist/shared/{render-Dqi8Owqk.cjs → render-DAEeCMk9.cjs} +6 -6
  23. package/dist/shared/render-DAEeCMk9.cjs.map +1 -0
  24. package/dist/shared/{render-hiWFh2s4.js → render-sb1VJhUA.js} +6 -6
  25. package/dist/shared/render-sb1VJhUA.js.map +1 -0
  26. package/dist/shared/{url-XBsMdAcv.d.ts → url-CZZcyPI0.d.cts} +19 -5
  27. package/dist/shared/{url-XBsMdAcv.d.cts → url-CZZcyPI0.d.ts} +19 -5
  28. package/dist/shared/{url-Bsb3xE5U.cjs → url-CzHqE-Fg.cjs} +2 -2
  29. package/dist/shared/{url-Bsb3xE5U.cjs.map → url-CzHqE-Fg.cjs.map} +1 -1
  30. package/dist/shared/{url-DP33mp3s.js → url-Dsr4c5r5.js} +2 -2
  31. package/dist/shared/{url-DP33mp3s.js.map → url-Dsr4c5r5.js.map} +1 -1
  32. package/package.json +1 -1
  33. package/dist/shared/render-Dqi8Owqk.cjs.map +0 -1
  34. package/dist/shared/render-hiWFh2s4.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Bt as ItdClock, Et as RawRequestOptions, Ft as QueryParams, Ht as BuiltInOperationId, Kt as OperationId, Lt as ServiceDefinition, St as PaginationOptions, _ as Profile, _n as ServiceState, _t as RetrySafety, an as AttachmentType, b as UserSummary, bn as ViewSource, bt as Logger, c as NotificationSettings, cn as FeedTab, ct as Unsubscribe, d as Author, en as IsoDate, et as ClientConnection, f as FollowResult, g as PrivacySettings, gn as ReportTargetType, gt as OperationMethod, h as PinsResult, hn as ReportReason, ht as OperationMetadata, kt as RequestOptions, ln as IncidentKind, mt as OperationContract, nn as UserId, on as CommentSort, p as MyProfile, pn as Loose, pt as OperationAnnotations, rn as UserRef, s as Notification, tn as Span, tt as AuthIdentity, un as InteractionType, v as PublicProfile, wt as RateLimitBucketOverride, xt as OperationRequestOptions, yn as ViewReason } from "./url-XBsMdAcv.cjs";
1
+ import { At as RequestOptions, Ct as PaginationOptions, Dt as RawRequestOptions, It as QueryParams, Rt as ServiceDefinition, St as OperationRequestOptions, Tt as RateLimitBucketOverride, Ut as BuiltInOperationId, Vt as ItdClock, _ as PrivacySettings, _n as ReportTargetType, _t as OperationMethod, bn as ViewReason, c as NotificationSettings, dn as InteractionType, f as Author, g as PinsResult, gn as ReportReason, gt as OperationMetadata, ht as OperationContract, in as UserRef, ln as FeedTab, lt as Unsubscribe, m as MyProfile, mn as Loose, mt as OperationAnnotations, nn as Span, nt as AuthIdentity, on as AttachmentType, p as FollowResult, qt as OperationId, rn as UserId, s as Notification, sn as CommentSort, tn as IsoDate, tt as ClientConnection, un as IncidentKind, v as Profile, vn as ServiceState, vt as RetrySafety, x as UserSummary, xn as ViewSource, xt as Logger, y as PublicProfile } from "./url-CZZcyPI0.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-BoT7msmq.cjs";
3
3
  import { r as KeyValueStore } from "./key-value-store-COZaNHZS.cjs";
4
4
  //#region src/core/plugins/contracts.d.ts
@@ -949,7 +949,8 @@ interface Attachment {
949
949
  width?: number;
950
950
  /** Высота изображения или видео в пикселях. */
951
951
  height?: number;
952
- mimeType: string;
952
+ /** MIME-тип. Может отсутствовать в `GET /api/posts/{id}`. */
953
+ mimeType?: string;
953
954
  /** Исходное имя файла. Приходит не всегда. */
954
955
  filename?: string;
955
956
  /** Размер в байтах. Приходит не всегда. */
@@ -1005,7 +1006,7 @@ interface Post {
1005
1006
  /** Делали ли вы репост. */
1006
1007
  isReposted: boolean;
1007
1008
  /** Засчитан ли просмотр. */
1008
- isViewed: boolean;
1009
+ isViewed?: boolean;
1009
1010
  /** Ваш ли это пост. */
1010
1011
  isOwner: boolean;
1011
1012
  /** Исходный пост, если это репост. */
@@ -1014,7 +1015,7 @@ interface Post {
1014
1015
  /** Преобладающая реакция — эмодзи либо `null`. */
1015
1016
  dominantEmoji?: string | null;
1016
1017
  /** Когда пост отредактировали. `null`, если не редактировали. */
1017
- editedAt: IsoDate | null;
1018
+ editedAt?: IsoDate | null;
1018
1019
  createdAt: IsoDate;
1019
1020
  /**
1020
1021
  * Служебная метка показа для телеметрии.
@@ -1050,7 +1051,8 @@ interface Comment {
1050
1051
  spans?: Span[];
1051
1052
  author: Author;
1052
1053
  likesCount: number;
1053
- repliesCount: number;
1054
+ /** Может отсутствовать у ответа, созданного через `comments.reply()`. */
1055
+ repliesCount?: number;
1054
1056
  isLiked: boolean;
1055
1057
  createdAt: IsoDate;
1056
1058
  /** Вложения. У голосового — одно аудио с `mimeType: 'audio/ogg'`. */
@@ -1058,7 +1060,20 @@ interface Comment {
1058
1060
  /** Вложенные ответы. В списках приходит превью, полный список — через `itd.comments.replies()`. */
1059
1061
  replies?: Comment[];
1060
1062
  /** Заполнено только у ответов. */
1061
- replyTo?: CommentReplyTo;
1063
+ replyTo?: CommentReplyTo | null;
1064
+ }
1065
+ /** Компактный ответ редактирования поста. */
1066
+ interface PostUpdateResult {
1067
+ id: string;
1068
+ content: string;
1069
+ spans: Span[];
1070
+ updatedAt: IsoDate;
1071
+ }
1072
+ /** Компактный ответ редактирования комментария. */
1073
+ interface CommentUpdateResult {
1074
+ id: string;
1075
+ content: string;
1076
+ editedAt: IsoDate;
1062
1077
  }
1063
1078
  /** Хэштег. */
1064
1079
  interface Hashtag {
@@ -1125,11 +1140,11 @@ declare class CommentsResource extends BaseResource {
1125
1140
  */
1126
1141
  reply(commentId: string, input: CommentInput | string, options?: RequestOptions): Promise<Comment>;
1127
1142
  /** Редактирует текст комментария. */
1128
- update(commentId: string, content: string, options?: RequestOptions): Promise<Comment>;
1143
+ update(commentId: string, content: string, options?: RequestOptions): Promise<CommentUpdateResult>;
1129
1144
  /** Удаляет комментарий. Восстановить его можно через {@link restore}. */
1130
1145
  remove(commentId: string, options?: RequestOptions): Promise<void>;
1131
1146
  /** Восстанавливает удалённый комментарий. */
1132
- restore(commentId: string, options?: RequestOptions): Promise<Comment>;
1147
+ restore(commentId: string, options?: RequestOptions): Promise<void>;
1133
1148
  /** Ставит реакцию на комментарий. */
1134
1149
  like(commentId: string, options?: RequestOptions): Promise<LikeResult>;
1135
1150
  /** Убирает реакцию с комментария. */
@@ -1143,6 +1158,12 @@ interface UploadedFile {
1143
1158
  id: string;
1144
1159
  /** Адрес файла на CDN. */
1145
1160
  url: string;
1161
+ /** Исходное имя файла, если сервер его вернул. */
1162
+ filename?: string;
1163
+ /** Определённый сервером MIME-тип. */
1164
+ mimeType?: string;
1165
+ /** Размер файла в байтах. */
1166
+ size?: number;
1146
1167
  }
1147
1168
  /** Настройки загрузки. */
1148
1169
  interface UploadOptions {
@@ -1777,11 +1798,11 @@ declare class PostsResource extends BaseResource {
1777
1798
  * функцию-настройщик. Поля создания поста, которые update endpoint не поддерживает
1778
1799
  * (вложения, опрос и стена), отвергаются до запроса.
1779
1800
  */
1780
- update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<Post>;
1801
+ update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<PostUpdateResult>;
1781
1802
  /** Удаляет пост. Восстановить его можно через {@link restore}. */
1782
1803
  remove(postId: string, options?: RequestOptions): Promise<void>;
1783
1804
  /** Восстанавливает удалённый пост. */
1784
- restore(postId: string, options?: RequestOptions): Promise<Post>;
1805
+ restore(postId: string, options?: RequestOptions): Promise<void>;
1785
1806
  /** Ставит реакцию на пост. */
1786
1807
  like(postId: string, options?: RequestOptions): Promise<LikeResult>;
1787
1808
  /** Убирает реакцию с поста. */
@@ -2769,5 +2790,5 @@ interface RenderSpansOptions {
2769
2790
  */
2770
2791
  declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
2771
2792
  //#endregion
2772
- export { ShopConsent as $, Paginator as $n, autoSpans as $t, UsersResource as A, Post as An, ReportInput as At, ViewTracker as B, CreatePostData as Bn, post as Bt, VideoMimeType as C, Comment as Cn, OperationTransformer as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, PinPostResult as Dn, SearchResult as Dt, VerificationResource as E, LikeResult as En, SearchResource as Et, TelemetryBatchOptions as F, BuilderInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, Subscription as Gn, parseHtml as Gt, ViewTrackerOptions as H, UpdatePostInput as Hn, PollInput as Ht, TelemetryClock as I, ItdBuilder as In, CreatePostInput as It, ShopOrderRequestOptions as J, UpdateNotificationSettingsInput as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, NotificationListParams as Kn, parseMarkdown as Kt, TelemetryOptions as L, isBuilder as Ln, PostBuilder as Lt, InteractionEntry as M, CommentBuilder as Mn, CommentsParams as Mt, PhotoOpenInput as N, CommentInput as Nn, FeedParams as Nt, UpdateProfileInput as O, Poll as On, ReportsResource as Ot, TelemetryBatch as P, comment as Pn, PostsResource as Pt, CreateShopOrderInput as Q, PaginationMode as Qn, TextMarkup as Qt, TelemetryResource as R, CreateCommentInput as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, OperationExtensions as Sr, ShopProductStatus as St, fromUrl as T, Hashtag as Tn, PluginTeardown as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, PaymentMethod as Un, poll as Ut, ViewTrackerInput as V, CreateReportInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, Session as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, Page as Xn, MarkupInput as Xt, ShopOrdersResource as Y, BaseResource as Yn, MarkupContent as Yt, ShopResource as Z, PageState as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, AttemptContext as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, FeatureContext as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptNext as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureRequestOptions as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, PreparedBufferSource as dr, ShopOrderDelivery as dt, markup as en, PaginatorOptions as er, ShopConsentContext as et, statusDays as f, Portal as fn, PreparedFileSource as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, HttpClient as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, ResolveFileOptions as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, FeatureBucketDefinition as ir, ShopDeliveryCity as it, DwellEntry as j, PostStats as jn, report as jt, UserListParams as k, PollOption as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, ManagedClientResource as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, ResolveFileContext as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, RateLimitBucketState as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureInstallation as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedStreamSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, NotificationsResource as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, ClientFeature as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureOperationDefinition as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, mapPage as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FileResolver as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, AttemptExtensions as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, PluginApi as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, ClientPlugin as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptInterceptor as yr, ShopProductCategory as yt, VideoProgressInput as z, CreatePollInput as zn, PostUpdateInput as zt };
2773
- //# sourceMappingURL=render-DDwy2Ame.d.cts.map
2793
+ export { ShopConsent as $, PageState as $n, autoSpans as $t, UsersResource as A, PollOption as An, ReportInput as At, ViewTracker as B, CreateCommentInput as Bn, post as Bt, VideoMimeType as C, Comment as Cn, ClientPlugin as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, LikeResult as Dn, PluginTeardown as Dr, SearchResult as Dt, VerificationResource as E, Hashtag as En, PluginApi as Er, SearchResource as Et, TelemetryBatchOptions as F, CommentInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, PaymentMethod as Gn, parseHtml as Gt, ViewTrackerOptions as H, CreatePostData as Hn, PollInput as Ht, TelemetryClock as I, comment as In, CreatePostInput as It, ShopOrderRequestOptions as J, NotificationListParams as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, Session as Kn, parseMarkdown as Kt, TelemetryOptions as L, BuilderInput as Ln, PostBuilder as Lt, InteractionEntry as M, PostStats as Mn, CommentsParams as Mt, PhotoOpenInput as N, PostUpdateResult as Nn, FeedParams as Nt, UpdateProfileInput as O, PinPostResult as On, ReportsResource as Ot, TelemetryBatch as P, CommentBuilder as Pn, PostsResource as Pt, CreateShopOrderInput as Q, Page as Qn, TextMarkup as Qt, TelemetryResource as R, ItdBuilder as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, AttemptNext as Sr, ShopProductStatus as St, fromUrl as T, CommentUpdateResult as Tn, OperationTransformer as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, CreateReportInput as Un, poll as Ut, ViewTrackerInput as V, CreatePollInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, UpdatePostInput as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, UpdateNotificationSettingsInput as Xn, MarkupInput as Xt, ShopOrdersResource as Y, NotificationsResource as Yn, MarkupContent as Yt, ShopResource as Z, BaseResource as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, ResolveFileOptions as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, ClientFeature as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptExtensions as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureInstallation as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, ManagedClientResource as dr, ShopOrderDelivery as dt, markup as en, PaginationMode as er, ShopConsentContext as et, statusDays as f, Portal as fn, FileResolver as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, ResolveFileContext as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, PreparedStreamSource as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, RateLimitBucketState as ir, ShopDeliveryCity as it, DwellEntry as j, Post as jn, report as jt, UserListParams as k, Poll as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, FeatureOperationDefinition as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, PreparedFileSource as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, PaginatorOptions as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureBucketDefinition as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedBufferSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, Subscription as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, mapPage as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureContext as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, Paginator as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FeatureRequestOptions as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, HttpClient as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, OperationExtensions as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, AttemptInterceptor as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptContext as yr, ShopProductCategory as yt, VideoProgressInput as z, isBuilder as zn, PostUpdateInput as zt };
2794
+ //# sourceMappingURL=render-BU1_wex8.d.cts.map
@@ -1,4 +1,4 @@
1
- import { Bt as ItdClock, Et as RawRequestOptions, Ft as QueryParams, Ht as BuiltInOperationId, Kt as OperationId, Lt as ServiceDefinition, St as PaginationOptions, _ as Profile, _n as ServiceState, _t as RetrySafety, an as AttachmentType, b as UserSummary, bn as ViewSource, bt as Logger, c as NotificationSettings, cn as FeedTab, ct as Unsubscribe, d as Author, en as IsoDate, et as ClientConnection, f as FollowResult, g as PrivacySettings, gn as ReportTargetType, gt as OperationMethod, h as PinsResult, hn as ReportReason, ht as OperationMetadata, kt as RequestOptions, ln as IncidentKind, mt as OperationContract, nn as UserId, on as CommentSort, p as MyProfile, pn as Loose, pt as OperationAnnotations, rn as UserRef, s as Notification, tn as Span, tt as AuthIdentity, un as InteractionType, v as PublicProfile, wt as RateLimitBucketOverride, xt as OperationRequestOptions, yn as ViewReason } from "./url-XBsMdAcv.js";
1
+ import { At as RequestOptions, Ct as PaginationOptions, Dt as RawRequestOptions, It as QueryParams, Rt as ServiceDefinition, St as OperationRequestOptions, Tt as RateLimitBucketOverride, Ut as BuiltInOperationId, Vt as ItdClock, _ as PrivacySettings, _n as ReportTargetType, _t as OperationMethod, bn as ViewReason, c as NotificationSettings, dn as InteractionType, f as Author, g as PinsResult, gn as ReportReason, gt as OperationMetadata, ht as OperationContract, in as UserRef, ln as FeedTab, lt as Unsubscribe, m as MyProfile, mn as Loose, mt as OperationAnnotations, nn as Span, nt as AuthIdentity, on as AttachmentType, p as FollowResult, qt as OperationId, rn as UserId, s as Notification, sn as CommentSort, tn as IsoDate, tt as ClientConnection, un as IncidentKind, v as Profile, vn as ServiceState, vt as RetrySafety, x as UserSummary, xn as ViewSource, xt as Logger, y as PublicProfile } from "./url-CZZcyPI0.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-BoT7msmq.js";
3
3
  import { r as KeyValueStore } from "./key-value-store-COZaNHZS.js";
4
4
  //#region src/core/plugins/contracts.d.ts
@@ -949,7 +949,8 @@ interface Attachment {
949
949
  width?: number;
950
950
  /** Высота изображения или видео в пикселях. */
951
951
  height?: number;
952
- mimeType: string;
952
+ /** MIME-тип. Может отсутствовать в `GET /api/posts/{id}`. */
953
+ mimeType?: string;
953
954
  /** Исходное имя файла. Приходит не всегда. */
954
955
  filename?: string;
955
956
  /** Размер в байтах. Приходит не всегда. */
@@ -1005,7 +1006,7 @@ interface Post {
1005
1006
  /** Делали ли вы репост. */
1006
1007
  isReposted: boolean;
1007
1008
  /** Засчитан ли просмотр. */
1008
- isViewed: boolean;
1009
+ isViewed?: boolean;
1009
1010
  /** Ваш ли это пост. */
1010
1011
  isOwner: boolean;
1011
1012
  /** Исходный пост, если это репост. */
@@ -1014,7 +1015,7 @@ interface Post {
1014
1015
  /** Преобладающая реакция — эмодзи либо `null`. */
1015
1016
  dominantEmoji?: string | null;
1016
1017
  /** Когда пост отредактировали. `null`, если не редактировали. */
1017
- editedAt: IsoDate | null;
1018
+ editedAt?: IsoDate | null;
1018
1019
  createdAt: IsoDate;
1019
1020
  /**
1020
1021
  * Служебная метка показа для телеметрии.
@@ -1050,7 +1051,8 @@ interface Comment {
1050
1051
  spans?: Span[];
1051
1052
  author: Author;
1052
1053
  likesCount: number;
1053
- repliesCount: number;
1054
+ /** Может отсутствовать у ответа, созданного через `comments.reply()`. */
1055
+ repliesCount?: number;
1054
1056
  isLiked: boolean;
1055
1057
  createdAt: IsoDate;
1056
1058
  /** Вложения. У голосового — одно аудио с `mimeType: 'audio/ogg'`. */
@@ -1058,7 +1060,20 @@ interface Comment {
1058
1060
  /** Вложенные ответы. В списках приходит превью, полный список — через `itd.comments.replies()`. */
1059
1061
  replies?: Comment[];
1060
1062
  /** Заполнено только у ответов. */
1061
- replyTo?: CommentReplyTo;
1063
+ replyTo?: CommentReplyTo | null;
1064
+ }
1065
+ /** Компактный ответ редактирования поста. */
1066
+ interface PostUpdateResult {
1067
+ id: string;
1068
+ content: string;
1069
+ spans: Span[];
1070
+ updatedAt: IsoDate;
1071
+ }
1072
+ /** Компактный ответ редактирования комментария. */
1073
+ interface CommentUpdateResult {
1074
+ id: string;
1075
+ content: string;
1076
+ editedAt: IsoDate;
1062
1077
  }
1063
1078
  /** Хэштег. */
1064
1079
  interface Hashtag {
@@ -1125,11 +1140,11 @@ declare class CommentsResource extends BaseResource {
1125
1140
  */
1126
1141
  reply(commentId: string, input: CommentInput | string, options?: RequestOptions): Promise<Comment>;
1127
1142
  /** Редактирует текст комментария. */
1128
- update(commentId: string, content: string, options?: RequestOptions): Promise<Comment>;
1143
+ update(commentId: string, content: string, options?: RequestOptions): Promise<CommentUpdateResult>;
1129
1144
  /** Удаляет комментарий. Восстановить его можно через {@link restore}. */
1130
1145
  remove(commentId: string, options?: RequestOptions): Promise<void>;
1131
1146
  /** Восстанавливает удалённый комментарий. */
1132
- restore(commentId: string, options?: RequestOptions): Promise<Comment>;
1147
+ restore(commentId: string, options?: RequestOptions): Promise<void>;
1133
1148
  /** Ставит реакцию на комментарий. */
1134
1149
  like(commentId: string, options?: RequestOptions): Promise<LikeResult>;
1135
1150
  /** Убирает реакцию с комментария. */
@@ -1143,6 +1158,12 @@ interface UploadedFile {
1143
1158
  id: string;
1144
1159
  /** Адрес файла на CDN. */
1145
1160
  url: string;
1161
+ /** Исходное имя файла, если сервер его вернул. */
1162
+ filename?: string;
1163
+ /** Определённый сервером MIME-тип. */
1164
+ mimeType?: string;
1165
+ /** Размер файла в байтах. */
1166
+ size?: number;
1146
1167
  }
1147
1168
  /** Настройки загрузки. */
1148
1169
  interface UploadOptions {
@@ -1777,11 +1798,11 @@ declare class PostsResource extends BaseResource {
1777
1798
  * функцию-настройщик. Поля создания поста, которые update endpoint не поддерживает
1778
1799
  * (вложения, опрос и стена), отвергаются до запроса.
1779
1800
  */
1780
- update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<Post>;
1801
+ update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<PostUpdateResult>;
1781
1802
  /** Удаляет пост. Восстановить его можно через {@link restore}. */
1782
1803
  remove(postId: string, options?: RequestOptions): Promise<void>;
1783
1804
  /** Восстанавливает удалённый пост. */
1784
- restore(postId: string, options?: RequestOptions): Promise<Post>;
1805
+ restore(postId: string, options?: RequestOptions): Promise<void>;
1785
1806
  /** Ставит реакцию на пост. */
1786
1807
  like(postId: string, options?: RequestOptions): Promise<LikeResult>;
1787
1808
  /** Убирает реакцию с поста. */
@@ -2769,5 +2790,5 @@ interface RenderSpansOptions {
2769
2790
  */
2770
2791
  declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
2771
2792
  //#endregion
2772
- export { ShopConsent as $, Paginator as $n, autoSpans as $t, UsersResource as A, Post as An, ReportInput as At, ViewTracker as B, CreatePostData as Bn, post as Bt, VideoMimeType as C, Comment as Cn, OperationTransformer as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, PinPostResult as Dn, SearchResult as Dt, VerificationResource as E, LikeResult as En, SearchResource as Et, TelemetryBatchOptions as F, BuilderInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, Subscription as Gn, parseHtml as Gt, ViewTrackerOptions as H, UpdatePostInput as Hn, PollInput as Ht, TelemetryClock as I, ItdBuilder as In, CreatePostInput as It, ShopOrderRequestOptions as J, UpdateNotificationSettingsInput as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, NotificationListParams as Kn, parseMarkdown as Kt, TelemetryOptions as L, isBuilder as Ln, PostBuilder as Lt, InteractionEntry as M, CommentBuilder as Mn, CommentsParams as Mt, PhotoOpenInput as N, CommentInput as Nn, FeedParams as Nt, UpdateProfileInput as O, Poll as On, ReportsResource as Ot, TelemetryBatch as P, comment as Pn, PostsResource as Pt, CreateShopOrderInput as Q, PaginationMode as Qn, TextMarkup as Qt, TelemetryResource as R, CreateCommentInput as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, OperationExtensions as Sr, ShopProductStatus as St, fromUrl as T, Hashtag as Tn, PluginTeardown as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, PaymentMethod as Un, poll as Ut, ViewTrackerInput as V, CreateReportInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, Session as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, Page as Xn, MarkupInput as Xt, ShopOrdersResource as Y, BaseResource as Yn, MarkupContent as Yt, ShopResource as Z, PageState as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, AttemptContext as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, FeatureContext as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptNext as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureRequestOptions as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, PreparedBufferSource as dr, ShopOrderDelivery as dt, markup as en, PaginatorOptions as er, ShopConsentContext as et, statusDays as f, Portal as fn, PreparedFileSource as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, HttpClient as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, ResolveFileOptions as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, FeatureBucketDefinition as ir, ShopDeliveryCity as it, DwellEntry as j, PostStats as jn, report as jt, UserListParams as k, PollOption as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, ManagedClientResource as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, ResolveFileContext as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, RateLimitBucketState as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureInstallation as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedStreamSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, NotificationsResource as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, ClientFeature as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureOperationDefinition as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, mapPage as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FileResolver as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, AttemptExtensions as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, PluginApi as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, ClientPlugin as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptInterceptor as yr, ShopProductCategory as yt, VideoProgressInput as z, CreatePollInput as zn, PostUpdateInput as zt };
2773
- //# sourceMappingURL=render-B4qis7Sb.d.ts.map
2793
+ export { ShopConsent as $, PageState as $n, autoSpans as $t, UsersResource as A, PollOption as An, ReportInput as At, ViewTracker as B, CreateCommentInput as Bn, post as Bt, VideoMimeType as C, Comment as Cn, ClientPlugin as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, LikeResult as Dn, PluginTeardown as Dr, SearchResult as Dt, VerificationResource as E, Hashtag as En, PluginApi as Er, SearchResource as Et, TelemetryBatchOptions as F, CommentInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, PaymentMethod as Gn, parseHtml as Gt, ViewTrackerOptions as H, CreatePostData as Hn, PollInput as Ht, TelemetryClock as I, comment as In, CreatePostInput as It, ShopOrderRequestOptions as J, NotificationListParams as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, Session as Kn, parseMarkdown as Kt, TelemetryOptions as L, BuilderInput as Ln, PostBuilder as Lt, InteractionEntry as M, PostStats as Mn, CommentsParams as Mt, PhotoOpenInput as N, PostUpdateResult as Nn, FeedParams as Nt, UpdateProfileInput as O, PinPostResult as On, ReportsResource as Ot, TelemetryBatch as P, CommentBuilder as Pn, PostsResource as Pt, CreateShopOrderInput as Q, Page as Qn, TextMarkup as Qt, TelemetryResource as R, ItdBuilder as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, AttemptNext as Sr, ShopProductStatus as St, fromUrl as T, CommentUpdateResult as Tn, OperationTransformer as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, CreateReportInput as Un, poll as Ut, ViewTrackerInput as V, CreatePollInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, UpdatePostInput as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, UpdateNotificationSettingsInput as Xn, MarkupInput as Xt, ShopOrdersResource as Y, NotificationsResource as Yn, MarkupContent as Yt, ShopResource as Z, BaseResource as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, ResolveFileOptions as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, ClientFeature as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptExtensions as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureInstallation as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, ManagedClientResource as dr, ShopOrderDelivery as dt, markup as en, PaginationMode as er, ShopConsentContext as et, statusDays as f, Portal as fn, FileResolver as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, ResolveFileContext as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, PreparedStreamSource as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, RateLimitBucketState as ir, ShopDeliveryCity as it, DwellEntry as j, Post as jn, report as jt, UserListParams as k, Poll as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, FeatureOperationDefinition as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, PreparedFileSource as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, PaginatorOptions as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureBucketDefinition as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedBufferSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, Subscription as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, mapPage as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureContext as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, Paginator as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FeatureRequestOptions as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, HttpClient as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, OperationExtensions as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, AttemptInterceptor as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptContext as yr, ShopProductCategory as yt, VideoProgressInput as z, isBuilder as zn, PostUpdateInput as zt };
2794
+ //# sourceMappingURL=render-CZ_-F2Tl.d.ts.map
@@ -1,4 +1,4 @@
1
- const require_url = require("./url-Bsb3xE5U.cjs");
1
+ const require_url = require("./url-CzHqE-Fg.cjs");
2
2
  const require_errors = require("./errors-BmP3TKoW.cjs");
3
3
  const require_redact = require("./redact-BP00URmQ.cjs");
4
4
  const require_options = require("./options-DOJYtoti.cjs");
@@ -1461,7 +1461,7 @@ function resolveComment(input, allowReplyTo = false) {
1461
1461
  const COMMENTS_REPLIES = pageOperation("comments.replies", (body) => readPagedPage(body, "replies"));
1462
1462
  const COMMENTS_REPLY = require_url.passthroughOperation("comments.reply");
1463
1463
  const COMMENTS_UPDATE = require_url.passthroughOperation("comments.update");
1464
- const COMMENTS_RESTORE = require_url.passthroughOperation("comments.restore");
1464
+ const COMMENTS_RESTORE = require_url.voidOperation("comments.restore");
1465
1465
  const COMMENTS_LIKE = require_url.passthroughOperation("comments.like");
1466
1466
  const COMMENTS_UNLIKE = require_url.passthroughOperation("comments.unlike");
1467
1467
  const COMMENTS_REMOVE = require_url.voidOperation("comments.remove");
@@ -1544,7 +1544,7 @@ var CommentsResource = class extends BaseResource {
1544
1544
  }
1545
1545
  /** Восстанавливает удалённый комментарий. */
1546
1546
  restore(commentId, options = {}) {
1547
- return this.http.execute(COMMENTS_RESTORE, {
1547
+ return this.voidOperation(COMMENTS_RESTORE, {
1548
1548
  path: `/api/comments/${require_redact.encodePathSegment(commentId, "commentId")}/restore`,
1549
1549
  ...options
1550
1550
  });
@@ -3056,7 +3056,7 @@ const POSTS_STATS = require_url.defineBuiltInOperation("posts.stats", (body) =>
3056
3056
  const POSTS_CREATE = require_url.passthroughOperation("posts.create");
3057
3057
  const POSTS_GET = require_url.passthroughOperation("posts.get");
3058
3058
  const POSTS_UPDATE = require_url.passthroughOperation("posts.update");
3059
- const POSTS_RESTORE = require_url.passthroughOperation("posts.restore");
3059
+ const POSTS_RESTORE = require_url.voidOperation("posts.restore");
3060
3060
  const POSTS_LIKE = require_url.passthroughOperation("posts.like");
3061
3061
  const POSTS_UNLIKE = require_url.passthroughOperation("posts.unlike");
3062
3062
  const POSTS_REPOST = require_url.passthroughOperation("posts.repost");
@@ -3213,7 +3213,7 @@ var PostsResource = class extends BaseResource {
3213
3213
  }
3214
3214
  /** Восстанавливает удалённый пост. */
3215
3215
  restore(postId, options = {}) {
3216
- return this.http.execute(POSTS_RESTORE, {
3216
+ return this.voidOperation(POSTS_RESTORE, {
3217
3217
  path: `/api/posts/${require_redact.encodePathSegment(postId, "postId")}/restore`,
3218
3218
  ...options
3219
3219
  });
@@ -5261,4 +5261,4 @@ Object.defineProperty(exports, "utcStampToIso", {
5261
5261
  }
5262
5262
  });
5263
5263
 
5264
- //# sourceMappingURL=render-Dqi8Owqk.cjs.map
5264
+ //# sourceMappingURL=render-DAEeCMk9.cjs.map