itd-api 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/index.cjs +4 -4
- package/dist/events/index.d.cts +7 -2
- package/dist/events/index.d.ts +7 -2
- package/dist/events/index.js +4 -4
- package/dist/index.cjs +672 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +497 -46
- package/dist/index.d.ts +497 -46
- package/dist/index.js +664 -91
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +6 -7
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +24 -7
- package/dist/node/index.d.ts +24 -7
- package/dist/node/index.js +6 -7
- package/dist/node/index.js.map +1 -1
- package/dist/rest/index.cjs +19 -7
- package/dist/rest/index.cjs.map +1 -1
- package/dist/rest/index.d.cts +28 -7
- package/dist/rest/index.d.ts +28 -7
- package/dist/rest/index.js +17 -8
- package/dist/rest/index.js.map +1 -1
- package/dist/shared/{contracts-BoT7msmq.d.ts → contracts-DEbkC0cB.d.cts} +1 -4
- package/dist/shared/{contracts-BoT7msmq.d.cts → contracts-pxnDIsQP.d.ts} +1 -4
- package/dist/shared/{events-FaXfdle0.d.cts → events-B6uqXOSs.d.cts} +42 -63
- package/dist/shared/{events-_iYo8EP5.js → events-C_MgYlXR.js} +30 -40
- package/dist/shared/events-C_MgYlXR.js.map +1 -0
- package/dist/shared/{events-BKyxZQNw.cjs → events-DV1i1t6J.cjs} +30 -40
- package/dist/shared/events-DV1i1t6J.cjs.map +1 -0
- package/dist/shared/{events-9215JDDd.d.ts → events-D_aMNrPd.d.ts} +2 -23
- package/dist/shared/{key-value-store-DYSPsqwq.cjs → key-value-store-6DHm_iNW.cjs} +3 -4
- package/dist/shared/{key-value-store-DYSPsqwq.cjs.map → key-value-store-6DHm_iNW.cjs.map} +1 -1
- package/dist/shared/{key-value-store-COZaNHZS.d.ts → key-value-store-BGoSgLze.d.cts} +1 -4
- package/dist/shared/{key-value-store-w1Dn5Pjb.js → key-value-store-PnZE_DFC.js} +3 -4
- package/dist/shared/{key-value-store-w1Dn5Pjb.js.map → key-value-store-PnZE_DFC.js.map} +1 -1
- package/dist/shared/{key-value-store-COZaNHZS.d.cts → key-value-store-WUQBeTAr.d.ts} +1 -4
- package/dist/shared/{multi-storage-DiBSx64p.js → multi-storage-DM0skcSO.js} +6 -7
- package/dist/shared/{multi-storage-DiBSx64p.js.map → multi-storage-DM0skcSO.js.map} +1 -1
- package/dist/shared/{multi-storage-LkljOSzA.d.ts → multi-storage-DQiERirK.d.ts} +3 -6
- package/dist/shared/{multi-storage-7Y3KCseI.cjs → multi-storage-DnonVBfO.cjs} +6 -7
- package/dist/shared/multi-storage-DnonVBfO.cjs.map +1 -0
- package/dist/shared/{multi-storage-BEL7tcKn.d.cts → multi-storage-OGWNMK3x.d.cts} +3 -6
- package/dist/shared/{options-D5ttspWk.cjs → options-SvAWOaqT.cjs} +8 -12
- package/dist/shared/{options-D5ttspWk.cjs.map → options-SvAWOaqT.cjs.map} +1 -1
- package/dist/shared/{options-DLlaETn_.js → options-bS27r_gR.js} +8 -12
- package/dist/shared/{options-DLlaETn_.js.map → options-bS27r_gR.js.map} +1 -1
- package/dist/shared/{redact-DSfdmeY7.js → redact-C4b2NzdB.js} +16 -16
- package/dist/shared/redact-C4b2NzdB.js.map +1 -0
- package/dist/shared/{redact-BbhtA9o-.cjs → redact-DDGkv8KF.cjs} +16 -16
- package/dist/shared/redact-DDGkv8KF.cjs.map +1 -0
- package/dist/shared/{render-BQvC5UxF.cjs → render-0-JJPOwb.cjs} +204 -109
- package/dist/shared/render-0-JJPOwb.cjs.map +1 -0
- package/dist/shared/{render-CFoF2WaH.js → render-CF49aBO8.js} +181 -110
- package/dist/shared/render-CF49aBO8.js.map +1 -0
- package/dist/shared/{render-X2JCo1JS.d.cts → render-CYVOc_IW.d.cts} +152 -251
- package/dist/shared/{render-BS09ygcy.d.ts → render-eOxYgdoA.d.ts} +152 -102
- package/dist/shared/{storage-86wiHeXD.js → storage-B6OkSi38.js} +4 -5
- package/dist/shared/{storage-86wiHeXD.js.map → storage-B6OkSi38.js.map} +1 -1
- package/dist/shared/{storage-CTRGT5wF.d.ts → storage-C_ZujAZt.d.ts} +2 -5
- package/dist/shared/{storage-CIjejZDt.cjs → storage-CezF2Mvz.cjs} +4 -5
- package/dist/shared/{storage-CIjejZDt.cjs.map → storage-CezF2Mvz.cjs.map} +1 -1
- package/dist/shared/{storage-BQrtKon9.d.cts → storage-FtS4NIC7.d.cts} +2 -5
- package/dist/shared/{url-CdT4lMxQ.js → url-CPKhcxf1.js} +250 -91
- package/dist/shared/url-CPKhcxf1.js.map +1 -0
- package/dist/shared/{url-_R0oJ7gE.d.ts → url-DCqxoxGX.d.cts} +1903 -1623
- package/dist/shared/{url-_R0oJ7gE.d.cts → url-DL5Mip4L.d.ts} +209 -78
- package/dist/shared/{url-ioIaywDi.cjs → url-DOfjru6L.cjs} +250 -91
- package/dist/shared/url-DOfjru6L.cjs.map +1 -0
- package/dist/shared/{validate-D7_kq3g5.js → validate-B5l_vLKD.js} +5 -7
- package/dist/shared/validate-B5l_vLKD.js.map +1 -0
- package/dist/shared/{validate-CFx2dISs.cjs → validate-CfxCK1BC.cjs} +5 -7
- package/dist/shared/validate-CfxCK1BC.cjs.map +1 -0
- package/dist/web/index.cjs +4 -5
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +22 -5
- package/dist/web/index.d.ts +22 -5
- package/dist/web/index.js +4 -5
- package/dist/web/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/shared/events-BKyxZQNw.cjs.map +0 -1
- package/dist/shared/events-_iYo8EP5.js.map +0 -1
- package/dist/shared/multi-storage-7Y3KCseI.cjs.map +0 -1
- package/dist/shared/redact-BbhtA9o-.cjs.map +0 -1
- package/dist/shared/redact-DSfdmeY7.js.map +0 -1
- package/dist/shared/render-BQvC5UxF.cjs.map +0 -1
- package/dist/shared/render-CFoF2WaH.js.map +0 -1
- package/dist/shared/url-CdT4lMxQ.js.map +0 -1
- package/dist/shared/url-ioIaywDi.cjs.map +0 -1
- package/dist/shared/validate-CFx2dISs.cjs.map +0 -1
- package/dist/shared/validate-D7_kq3g5.js.map +0 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { At as RawRequestOptions, C as UserSummary, Cn as Loose, Ct as ClientHooks, Dn as ReportReason, En as QrLocationPrecision, Et as PaginationOptions, Gt as Logger, Jt as BuiltInOperationId, Kt as ItdClock, Mn as ViewReason, Nn as ViewSource, Nt as RequestOptions, On as ReportTargetType, Ot as RateLimitBucketOverride, Qt as OperationId, S as UserBase, St as RetrySafety, Tt as OperationRequestOptions, Vt as ServiceDefinition, _ as PinsResult, _n as FeedTab, b as PublicProfile, bt as OperationMetadata, c as NotificationSettings, cn as UserId, ct as ClientConnection, dn as AttachmentType, f as Author, h as MyProfile, hn as CommentSort, kn as ServiceState, ln as UserRef, lt as AuthIdentity, on as IsoDate, p as FollowResult, s as Notification, sn as Span, st as Unsubscribe, v as PrivacySettings, vn as IncidentKind, vt as OperationAnnotations, w as UsernameAvailability, xt as OperationMethod, y as Profile, yn as InteractionType, yt as OperationContract, zt as QueryParams } from "./url-
|
|
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-
|
|
3
|
-
import { r as KeyValueStore } from "./key-value-store-
|
|
4
|
-
//#region src/core/cookies.d.ts
|
|
1
|
+
import { At as RawRequestOptions, C as UserSummary, Cn as Loose, Ct as ClientHooks, Dn as ReportReason, En as QrLocationPrecision, Et as PaginationOptions, Gt as Logger, Jt as BuiltInOperationId, Kt as ItdClock, Mn as ViewReason, Nn as ViewSource, Nt as RequestOptions, On as ReportTargetType, Ot as RateLimitBucketOverride, Qt as OperationId, S as UserBase, St as RetrySafety, Tt as OperationRequestOptions, Vt as ServiceDefinition, _ as PinsResult, _n as FeedTab, b as PublicProfile, bt as OperationMetadata, c as NotificationSettings, cn as UserId, ct as ClientConnection, dn as AttachmentType, f as Author, h as MyProfile, hn as CommentSort, kn as ServiceState, ln as UserRef, lt as AuthIdentity, on as IsoDate, p as FollowResult, s as Notification, sn as Span, st as Unsubscribe, v as PrivacySettings, vn as IncidentKind, vt as OperationAnnotations, w as UsernameAvailability, xt as OperationMethod, y as Profile, yn as InteractionType, yt as OperationContract, zt as QueryParams } from "./url-DL5Mip4L.js";
|
|
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
|
+
import { r as KeyValueStore } from "./key-value-store-WUQBeTAr.js";
|
|
5
4
|
/**
|
|
6
5
|
* Минимальное хранилище cookie для сред без своего.
|
|
7
6
|
*
|
|
@@ -64,8 +63,6 @@ declare class CookieJar {
|
|
|
64
63
|
/** Удаляет все cookie. */
|
|
65
64
|
clear(): void;
|
|
66
65
|
}
|
|
67
|
-
//#endregion
|
|
68
|
-
//#region src/core/execution/pipeline.d.ts
|
|
69
66
|
/** Тело, заново подготовленное для одной транспортной попытки. */
|
|
70
67
|
interface PreparedRequestBody {
|
|
71
68
|
body: BodyInit;
|
|
@@ -114,8 +111,6 @@ type PipelineRequestInput = Omit<PipelineRequest, 'operationId'> & {
|
|
|
114
111
|
};
|
|
115
112
|
/** Обработчик запроса. Самый внутренний в цепочке — транспорт. */
|
|
116
113
|
type RequestHandler = (request: PipelineRequest) => Promise<unknown>;
|
|
117
|
-
//#endregion
|
|
118
|
-
//#region src/core/execution/http.d.ts
|
|
119
114
|
/** Что нужно точке входа в конвейер. */
|
|
120
115
|
interface HttpClientDeps {
|
|
121
116
|
/** Готовый обработчик — вся цепочка стадий поверх транспорта. */
|
|
@@ -155,8 +150,6 @@ declare class HttpClient {
|
|
|
155
150
|
/** Выполняет внутреннюю операцию финализации после начала `ItdClient.dispose()`. @internal */
|
|
156
151
|
cleanupOperation<T, TId extends OperationId>(operation: OperationContract<T, TId>, options: HttpOperationOptions): Promise<T>;
|
|
157
152
|
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/core/attachments/resolver.d.ts
|
|
160
153
|
/** Дополнительные требования потребителя к подготовленному источнику. */
|
|
161
154
|
interface ResolveFileOptions {
|
|
162
155
|
/** Имя, которое имеет приоритет над именем источника. */
|
|
@@ -208,8 +201,6 @@ interface FileResolver {
|
|
|
208
201
|
interface InternalFileResolver extends FileResolver {
|
|
209
202
|
mode(input: FileInput): FileTransferMode;
|
|
210
203
|
}
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region src/core/managed-resources.d.ts
|
|
213
204
|
/** Долгоживущий ресурс клиента. */
|
|
214
205
|
interface ManagedClientResource {
|
|
215
206
|
/** Короткое имя для диагностики зависшей остановки. */
|
|
@@ -219,8 +210,6 @@ interface ManagedClientResource {
|
|
|
219
210
|
/** Завершается после остановки обработчиков и освобождения внешних ресурсов. */
|
|
220
211
|
drain(): Promise<void>;
|
|
221
212
|
}
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/core/features.d.ts
|
|
224
213
|
/** Параметры запроса feature: маршрут задаёт ресурс, transport metadata — manifest. */
|
|
225
214
|
type FeatureRequestOptions = Omit<RawRequestOptions, 'operationId' | 'method' | 'service' | 'baseUrl' | 'retrySafety' | 'rateLimitBucket'>;
|
|
226
215
|
/** Операция одного feature. Локальный ключ используется в {@link FeatureContext.request}. */
|
|
@@ -286,8 +275,6 @@ interface FeatureContext {
|
|
|
286
275
|
/** Проверяет, что создавший модуль клиент ещё работает. */
|
|
287
276
|
assertActive(action: string): void;
|
|
288
277
|
}
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region src/core/plugins/contracts.d.ts
|
|
291
278
|
/**
|
|
292
279
|
* Обёртка одной логической операции.
|
|
293
280
|
*
|
|
@@ -446,8 +433,6 @@ interface ClientPlugin {
|
|
|
446
433
|
*/
|
|
447
434
|
install(api: PluginApi): void | PluginTeardown;
|
|
448
435
|
}
|
|
449
|
-
//#endregion
|
|
450
|
-
//#region src/core/scheduling/rate-limit.d.ts
|
|
451
436
|
/** Снимок одного бакета. */
|
|
452
437
|
interface RateLimitBucketState {
|
|
453
438
|
/** Origin, на котором ведётся счётчик. `undefined` — очередь без известного направления. */
|
|
@@ -462,8 +447,6 @@ interface RateLimitBucketState {
|
|
|
462
447
|
/** Запросов бакета ждёт своей очереди — из-за паузы или предела одновременности. */
|
|
463
448
|
pending: number;
|
|
464
449
|
}
|
|
465
|
-
//#endregion
|
|
466
|
-
//#region src/resources/pagination.d.ts
|
|
467
450
|
/**
|
|
468
451
|
* Страница списка — единая форма для всех трёх схем пагинации API.
|
|
469
452
|
*
|
|
@@ -587,8 +570,6 @@ declare class Paginator<T> implements AsyncIterable<T> {
|
|
|
587
570
|
*/
|
|
588
571
|
collect(max?: number): Promise<T[]>;
|
|
589
572
|
}
|
|
590
|
-
//#endregion
|
|
591
|
-
//#region src/resources/base.d.ts
|
|
592
573
|
/**
|
|
593
574
|
* Описание перебираемого эндпоинта.
|
|
594
575
|
*
|
|
@@ -653,8 +634,6 @@ declare class BaseResource {
|
|
|
653
634
|
*/
|
|
654
635
|
protected paginated<T, P extends object>(spec: ListingSpec<T, P>): Listing<T, P>;
|
|
655
636
|
}
|
|
656
|
-
//#endregion
|
|
657
|
-
//#region src/resources/notifications.d.ts
|
|
658
637
|
/** Параметры запроса списка уведомлений. */
|
|
659
638
|
interface NotificationListParams {
|
|
660
639
|
limit?: number;
|
|
@@ -723,8 +702,6 @@ declare class NotificationsResource extends BaseResource {
|
|
|
723
702
|
*/
|
|
724
703
|
updateSettings(input: UpdateNotificationSettingsInput, options?: RequestOptions): Promise<NotificationSettings>;
|
|
725
704
|
}
|
|
726
|
-
//#endregion
|
|
727
|
-
//#region src/models/account.d.ts
|
|
728
705
|
/** Активная сессия входа. */
|
|
729
706
|
interface Session {
|
|
730
707
|
id: string;
|
|
@@ -791,8 +768,13 @@ interface PaymentMethod {
|
|
|
791
768
|
isDefault?: boolean;
|
|
792
769
|
expiresAt?: IsoDate | null;
|
|
793
770
|
}
|
|
794
|
-
|
|
795
|
-
|
|
771
|
+
/** Деактивация и восстановление текущего аккаунта. */
|
|
772
|
+
declare class AccountLifecycleResource extends BaseResource {
|
|
773
|
+
/** Деактивирует аккаунт. Вернуть его можно через {@link restore}. */
|
|
774
|
+
deactivate(options?: RequestOptions): Promise<void>;
|
|
775
|
+
/** Восстанавливает деактивированный аккаунт. */
|
|
776
|
+
restore(options?: RequestOptions): Promise<void>;
|
|
777
|
+
}
|
|
796
778
|
/** Данные для создания опроса. */
|
|
797
779
|
interface CreatePollInput {
|
|
798
780
|
/** Вопрос. Не может быть пустым. */
|
|
@@ -865,8 +847,6 @@ interface CreateReportInput {
|
|
|
865
847
|
/** Пояснение в свободной форме. */
|
|
866
848
|
description?: string;
|
|
867
849
|
}
|
|
868
|
-
//#endregion
|
|
869
|
-
//#region src/builders/base.d.ts
|
|
870
850
|
/** Метка билдера. Через `Symbol.for` — чтобы распознавание переживало смешивание ESM и CJS. */
|
|
871
851
|
declare const BUILDER: unique symbol;
|
|
872
852
|
/**
|
|
@@ -900,8 +880,6 @@ interface ItdBuilder<T> {
|
|
|
900
880
|
type BuilderInput<T, B extends ItdBuilder<T>> = T | B | ((builder: B) => B | T);
|
|
901
881
|
/** Является ли значение билдером. */
|
|
902
882
|
declare function isBuilder<T>(value: unknown): value is ItdBuilder<T>;
|
|
903
|
-
//#endregion
|
|
904
|
-
//#region src/builders/comment.d.ts
|
|
905
883
|
/** Внутреннее состояние {@link CommentBuilder}. */
|
|
906
884
|
interface CommentState extends CreateCommentInput {
|
|
907
885
|
content: string;
|
|
@@ -966,8 +944,6 @@ declare class CommentBuilder implements ItdBuilder<CreateCommentInput> {
|
|
|
966
944
|
declare function comment(content?: string): CommentBuilder;
|
|
967
945
|
/** Что принимает параметр комментария: объект, билдер или функция-настройщик. */
|
|
968
946
|
type CommentInput = BuilderInput<CreateCommentInput, CommentBuilder>;
|
|
969
|
-
//#endregion
|
|
970
|
-
//#region src/models/content.d.ts
|
|
971
947
|
/** Вложение поста или комментария. */
|
|
972
948
|
interface Attachment {
|
|
973
949
|
id: string;
|
|
@@ -1049,9 +1025,9 @@ interface OriginalPost extends PostBase {
|
|
|
1049
1025
|
}
|
|
1050
1026
|
/** Пост ленты, стены или профиля. */
|
|
1051
1027
|
interface Post extends PostBase {
|
|
1052
|
-
/**
|
|
1053
|
-
wallRecipientId
|
|
1054
|
-
/**
|
|
1028
|
+
/** ID владельца чужой стены. `null` — пост опубликован не на чужой стене. */
|
|
1029
|
+
wallRecipientId?: UserId | null;
|
|
1030
|
+
/** Профиль владельца стены. */
|
|
1055
1031
|
wallRecipient?: Author | null;
|
|
1056
1032
|
/** Поставили ли вы реакцию. */
|
|
1057
1033
|
isLiked: boolean;
|
|
@@ -1138,8 +1114,6 @@ interface PinPostResult {
|
|
|
1138
1114
|
success: boolean;
|
|
1139
1115
|
pinnedPostId: string | null;
|
|
1140
1116
|
}
|
|
1141
|
-
//#endregion
|
|
1142
|
-
//#region src/resources/comments.d.ts
|
|
1143
1117
|
/** Параметры запроса ответов на комментарий. */
|
|
1144
1118
|
interface RepliesParams {
|
|
1145
1119
|
limit?: number;
|
|
@@ -1185,8 +1159,45 @@ declare class CommentsResource extends BaseResource {
|
|
|
1185
1159
|
/** Убирает реакцию с комментария. */
|
|
1186
1160
|
unlike(commentId: string, options?: RequestOptions): Promise<LikeResult>;
|
|
1187
1161
|
}
|
|
1188
|
-
|
|
1189
|
-
|
|
1162
|
+
/** Инструменты редактора баннера в формате версии 1. */
|
|
1163
|
+
declare const BannerDrawingTool: Readonly<{
|
|
1164
|
+
readonly Brush: "brush";
|
|
1165
|
+
readonly Eraser: "eraser";
|
|
1166
|
+
readonly Line: "line";
|
|
1167
|
+
readonly Rectangle: "rectangle";
|
|
1168
|
+
readonly Circle: "circle";
|
|
1169
|
+
}>;
|
|
1170
|
+
type BannerDrawingTool = (typeof BannerDrawingTool)[keyof typeof BannerDrawingTool];
|
|
1171
|
+
/** Координаты точки в пикселях холста. */
|
|
1172
|
+
type BannerDrawingPoint = readonly [x: number, y: number];
|
|
1173
|
+
/** Штрих или фигура, которую нужно нарисовать на холсте. */
|
|
1174
|
+
interface BannerDrawingOperation {
|
|
1175
|
+
tool: BannerDrawingTool;
|
|
1176
|
+
/** Цвет в формате CSS hex, например `#000000`. */
|
|
1177
|
+
color: string;
|
|
1178
|
+
/** Толщина линии в пикселях. */
|
|
1179
|
+
width: number;
|
|
1180
|
+
/** Точки штриха. Для линии, прямоугольника и круга передайте две точки. */
|
|
1181
|
+
points: readonly BannerDrawingPoint[];
|
|
1182
|
+
}
|
|
1183
|
+
/** Описание рисунка для загрузки в качестве баннера. */
|
|
1184
|
+
interface BannerDrawing {
|
|
1185
|
+
version: 1;
|
|
1186
|
+
/** Ширина холста в пикселях. */
|
|
1187
|
+
width: number;
|
|
1188
|
+
/** Высота холста в пикселях. */
|
|
1189
|
+
height: number;
|
|
1190
|
+
/** Операции в порядке рисования. */
|
|
1191
|
+
ops: readonly BannerDrawingOperation[];
|
|
1192
|
+
}
|
|
1193
|
+
/** Изображение, созданное сервером из рисунка. */
|
|
1194
|
+
interface UploadedBannerDrawing {
|
|
1195
|
+
/** Идентификатор для поля `bannerId` при обновлении профиля. */
|
|
1196
|
+
id: string;
|
|
1197
|
+
url: string;
|
|
1198
|
+
width: number;
|
|
1199
|
+
height: number;
|
|
1200
|
+
}
|
|
1190
1201
|
/** Ответ загрузки файла. */
|
|
1191
1202
|
interface UploadedFile {
|
|
1192
1203
|
/** Идентификатор вложения — его передают в `attachmentIds`. */
|
|
@@ -1226,13 +1237,18 @@ declare class FilesResource extends BaseResource {
|
|
|
1226
1237
|
* после успешного чтения переиспользуется.
|
|
1227
1238
|
*/
|
|
1228
1239
|
upload(input: FileInput, uploadOptions?: UploadOptions, requestOptions?: RequestOptions): Promise<UploadedFile>;
|
|
1240
|
+
/**
|
|
1241
|
+
* Отправляет описание рисунка и возвращает созданное сервером изображение.
|
|
1242
|
+
*
|
|
1243
|
+
* Чтобы установить баннер, передайте полученный `id` в
|
|
1244
|
+
* `itd.users.updateMe({ bannerId: id })`.
|
|
1245
|
+
*/
|
|
1246
|
+
uploadBannerDrawing(drawing: BannerDrawing, options?: RequestOptions): Promise<UploadedBannerDrawing>;
|
|
1229
1247
|
/** Загружает несколько файлов последовательно, сохраняя порядок. */
|
|
1230
1248
|
uploadMany(files: FileInput[], uploadOptions?: UploadOptions, requestOptions?: RequestOptions): Promise<string[]>;
|
|
1231
1249
|
/** Удаляет загруженный файл. */
|
|
1232
1250
|
remove(fileId: string, options?: RequestOptions): Promise<void>;
|
|
1233
1251
|
}
|
|
1234
|
-
//#endregion
|
|
1235
|
-
//#region src/resources/hashtags.d.ts
|
|
1236
1252
|
/** Параметры запроса постов по хэштегу. */
|
|
1237
1253
|
interface HashtagPostsParams {
|
|
1238
1254
|
limit?: number;
|
|
@@ -1259,8 +1275,84 @@ declare class HashtagsResource extends BaseResource {
|
|
|
1259
1275
|
/** Перебирает посты по хэштегу. */
|
|
1260
1276
|
iteratePosts(tag: string, params?: HashtagPostsParams, options?: PaginationOptions): Paginator<Post>;
|
|
1261
1277
|
}
|
|
1262
|
-
|
|
1263
|
-
|
|
1278
|
+
/** Область действия документа. */
|
|
1279
|
+
declare const LegalDocumentScope: Readonly<{
|
|
1280
|
+
readonly Social: "social";
|
|
1281
|
+
}>;
|
|
1282
|
+
type LegalDocumentScope = Loose<(typeof LegalDocumentScope)[keyof typeof LegalDocumentScope]>;
|
|
1283
|
+
/** Сведения о редакции документа в списке документов и истории редакций. */
|
|
1284
|
+
interface LegalDocumentSummary {
|
|
1285
|
+
scope: LegalDocumentScope;
|
|
1286
|
+
/** Идентификатор документа в пределах области действия. */
|
|
1287
|
+
slug: string;
|
|
1288
|
+
title: string;
|
|
1289
|
+
shortTitle: string;
|
|
1290
|
+
summary: string;
|
|
1291
|
+
/** Идентификатор редакции. Передавайте его в `legal.version()` как строку. */
|
|
1292
|
+
version: string;
|
|
1293
|
+
/** Дата вступления редакции в силу. */
|
|
1294
|
+
effectiveAt: string;
|
|
1295
|
+
/** Контрольная сумма текста, которую возвращает сервер. */
|
|
1296
|
+
contentSha256: string;
|
|
1297
|
+
/** Дата, указанная в документе. */
|
|
1298
|
+
documentDate: string;
|
|
1299
|
+
/** Дата публикации или `null`, если она не указана. */
|
|
1300
|
+
publishedAt: string | null;
|
|
1301
|
+
}
|
|
1302
|
+
/** Запись истории редакций. */
|
|
1303
|
+
interface LegalDocumentVersion extends LegalDocumentSummary {
|
|
1304
|
+
/** Действует ли эта редакция сейчас. */
|
|
1305
|
+
current: boolean;
|
|
1306
|
+
}
|
|
1307
|
+
/** Виды блоков текста документа. */
|
|
1308
|
+
declare const LegalDocumentBlockType: Readonly<{
|
|
1309
|
+
readonly Heading: "heading";
|
|
1310
|
+
readonly List: "list";
|
|
1311
|
+
readonly Lines: "lines";
|
|
1312
|
+
}>;
|
|
1313
|
+
type LegalDocumentBlockType = Loose<(typeof LegalDocumentBlockType)[keyof typeof LegalDocumentBlockType]>;
|
|
1314
|
+
/** Блок текста. Поля зависят от его вида. */
|
|
1315
|
+
interface LegalDocumentBlock {
|
|
1316
|
+
type: LegalDocumentBlockType;
|
|
1317
|
+
/** Уровень заголовка. */
|
|
1318
|
+
level?: number;
|
|
1319
|
+
/** Текст заголовка или абзаца. */
|
|
1320
|
+
text?: string;
|
|
1321
|
+
/** Пункты списка или строки многострочного блока. */
|
|
1322
|
+
items?: string[];
|
|
1323
|
+
}
|
|
1324
|
+
/** Редакция документа с полным текстом. */
|
|
1325
|
+
interface LegalDocument extends LegalDocumentSummary {
|
|
1326
|
+
/** Блоки в порядке чтения. */
|
|
1327
|
+
blocks: LegalDocumentBlock[];
|
|
1328
|
+
}
|
|
1329
|
+
/** Публичные документы ИТД и история их редакций. Доступны через `itd.legal`. */
|
|
1330
|
+
declare class LegalResource extends BaseResource {
|
|
1331
|
+
/**
|
|
1332
|
+
* Возвращает список документов выбранной области.
|
|
1333
|
+
*
|
|
1334
|
+
* В списке указаны действующие редакции. Полный текст загружается через {@link current}.
|
|
1335
|
+
*/
|
|
1336
|
+
list(scope?: LegalDocumentScope, options?: RequestOptions): Promise<LegalDocumentSummary[]>;
|
|
1337
|
+
/**
|
|
1338
|
+
* Загружает действующую редакцию документа с полным текстом.
|
|
1339
|
+
*
|
|
1340
|
+
* @example
|
|
1341
|
+
* ```ts
|
|
1342
|
+
* const terms = await itd.legal.current(LegalDocumentScope.Social, 'terms');
|
|
1343
|
+
* console.log(terms.version, terms.blocks);
|
|
1344
|
+
* ```
|
|
1345
|
+
*/
|
|
1346
|
+
current(scope: LegalDocumentScope, slug: string, options?: RequestOptions): Promise<LegalDocument>;
|
|
1347
|
+
/** Возвращает историю редакций без текста. Поле `current` отмечает действующую редакцию. */
|
|
1348
|
+
versions(scope: LegalDocumentScope, slug: string, options?: RequestOptions): Promise<LegalDocumentVersion[]>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Загружает конкретную редакцию документа с полным текстом.
|
|
1351
|
+
*
|
|
1352
|
+
* @param version идентификатор редакции из {@link versions}, например `2026-04-03`
|
|
1353
|
+
*/
|
|
1354
|
+
version(scope: LegalDocumentScope, slug: string, version: string, options?: RequestOptions): Promise<LegalDocument>;
|
|
1355
|
+
}
|
|
1264
1356
|
/** Клан в рейтинге. */
|
|
1265
1357
|
interface Clan {
|
|
1266
1358
|
/** Эмодзи клана — оно же `clanAvatar` его участников. */
|
|
@@ -1312,8 +1404,6 @@ interface Report {
|
|
|
1312
1404
|
id: string;
|
|
1313
1405
|
createdAt: IsoDate;
|
|
1314
1406
|
}
|
|
1315
|
-
//#endregion
|
|
1316
|
-
//#region src/models/status.d.ts
|
|
1317
1407
|
/** Происшествие в истории сервиса. */
|
|
1318
1408
|
interface StatusIncidentLine {
|
|
1319
1409
|
/** Вид происшествия. */
|
|
@@ -1353,6 +1443,8 @@ interface ServiceStatus {
|
|
|
1353
1443
|
last_checked: IsoDate;
|
|
1354
1444
|
/** Доступность за 90 суток в процентах. */
|
|
1355
1445
|
uptime_90d: number;
|
|
1446
|
+
/** Считает ли сервер данные последней проверки актуальными. */
|
|
1447
|
+
data_fresh?: boolean;
|
|
1356
1448
|
/**
|
|
1357
1449
|
* История по суткам. Ключ — сколько суток назад, `'0'` — сегодня.
|
|
1358
1450
|
*
|
|
@@ -1367,18 +1459,26 @@ interface PlatformStatus {
|
|
|
1367
1459
|
overall_status: ServiceState;
|
|
1368
1460
|
/** Когда данные последний раз пересчитаны. */
|
|
1369
1461
|
updated_at: IsoDate;
|
|
1462
|
+
/** Когда сформирован ответ. */
|
|
1463
|
+
generated_at?: IsoDate;
|
|
1464
|
+
/** Через сколько миллисекунд сервер считает данные устаревшими. */
|
|
1465
|
+
stale_after_ms?: number;
|
|
1466
|
+
/** Доступность платформы за 90 суток в процентах. */
|
|
1467
|
+
uptime_90d?: number;
|
|
1468
|
+
/** Первая дата периода, `YYYY-MM-DD`. */
|
|
1469
|
+
window_start?: string;
|
|
1470
|
+
/** Последняя дата периода, `YYYY-MM-DD`. */
|
|
1471
|
+
window_end?: string;
|
|
1472
|
+
/** Число суток с данными за период. */
|
|
1473
|
+
sample_days?: number;
|
|
1370
1474
|
services: ServiceStatus[];
|
|
1371
1475
|
}
|
|
1372
|
-
//#endregion
|
|
1373
|
-
//#region src/resources/status.d.ts
|
|
1374
1476
|
/** API встроенного status feature. @internal */
|
|
1375
1477
|
declare class StatusResource {
|
|
1376
1478
|
#private;
|
|
1377
1479
|
constructor(context: FeatureContext);
|
|
1378
1480
|
get(options?: RequestOptions): Promise<PlatformStatus>;
|
|
1379
1481
|
}
|
|
1380
|
-
//#endregion
|
|
1381
|
-
//#region src/resources/platform.d.ts
|
|
1382
1482
|
/** Требования к версии одного приложения платформы. */
|
|
1383
1483
|
interface PlatformClientVersion {
|
|
1384
1484
|
/** Минимальная поддерживаемая версия приложения. */
|
|
@@ -1439,8 +1539,6 @@ declare class PlatformResource extends BaseResource {
|
|
|
1439
1539
|
*/
|
|
1440
1540
|
status(options?: RequestOptions): Promise<PlatformStatus>;
|
|
1441
1541
|
}
|
|
1442
|
-
//#endregion
|
|
1443
|
-
//#region src/builders/markup.d.ts
|
|
1444
1542
|
/** Текст вместе с рассчитанной разметкой. */
|
|
1445
1543
|
interface TextMarkup {
|
|
1446
1544
|
content: string;
|
|
@@ -1527,8 +1625,6 @@ declare function markup(content?: string): MarkupBuilder;
|
|
|
1527
1625
|
* `substring`, DOM Selection и wire-форматом сайта даже при наличии эмодзи.
|
|
1528
1626
|
*/
|
|
1529
1627
|
declare function autoSpans(text: string, options?: AutoSpansOptions): Span[];
|
|
1530
|
-
//#endregion
|
|
1531
|
-
//#region src/spans/parse.d.ts
|
|
1532
1628
|
/** Настройки безопасного импорта разметки. */
|
|
1533
1629
|
interface ParseMarkupOptions {
|
|
1534
1630
|
/**
|
|
@@ -1555,8 +1651,6 @@ declare function parseMarkdown(source: string, options?: ParseMarkupOptions): Te
|
|
|
1555
1651
|
* удаляется. Опасный `href` сохраняет текст ссылки, но не создаёт span.
|
|
1556
1652
|
*/
|
|
1557
1653
|
declare function parseHtml(source: string, options?: ParseMarkupOptions): TextMarkup;
|
|
1558
|
-
//#endregion
|
|
1559
|
-
//#region src/builders/poll.d.ts
|
|
1560
1654
|
/**
|
|
1561
1655
|
* Билдер опроса.
|
|
1562
1656
|
*
|
|
@@ -1606,8 +1700,6 @@ declare class PollBuilder implements ItdBuilder<CreatePollInput> {
|
|
|
1606
1700
|
declare function poll(question?: string): PollBuilder;
|
|
1607
1701
|
/** Что принимает параметр опроса: объект, билдер или функция-настройщик. */
|
|
1608
1702
|
type PollInput = BuilderInput<CreatePollInput, PollBuilder>;
|
|
1609
|
-
//#endregion
|
|
1610
|
-
//#region src/builders/post.d.ts
|
|
1611
1703
|
declare const BUILD_UPDATE: unique symbol;
|
|
1612
1704
|
/** Данные для создания поста, включая поддерживаемые builder-формы вложенного опроса. */
|
|
1613
1705
|
interface CreatePostInput extends Omit<CreatePostData, 'poll'> {
|
|
@@ -1727,8 +1819,6 @@ declare function post(content?: string): PostBuilder;
|
|
|
1727
1819
|
type PostInput = BuilderInput<CreatePostInput, PostBuilder>;
|
|
1728
1820
|
/** Что принимает `posts.update`: объект, билдер поста или функция-настройщик. */
|
|
1729
1821
|
type PostUpdateInput = UpdatePostInput | PostBuilder | ((builder: PostBuilder) => PostBuilder | UpdatePostInput);
|
|
1730
|
-
//#endregion
|
|
1731
|
-
//#region src/resources/posts.d.ts
|
|
1732
1822
|
/** Параметры запроса ленты. */
|
|
1733
1823
|
interface FeedParams {
|
|
1734
1824
|
/** Вкладка ленты. По умолчанию сервер отдаёт популярное. */
|
|
@@ -1900,8 +1990,6 @@ declare class PostsResource extends BaseResource {
|
|
|
1900
1990
|
*/
|
|
1901
1991
|
voiceComment(postId: string, audio: FileInput, options?: RequestOptions): Promise<Comment>;
|
|
1902
1992
|
}
|
|
1903
|
-
//#endregion
|
|
1904
|
-
//#region src/builders/report.d.ts
|
|
1905
1993
|
/**
|
|
1906
1994
|
* Билдер жалобы.
|
|
1907
1995
|
*
|
|
@@ -1945,8 +2033,6 @@ declare const report: Readonly<{
|
|
|
1945
2033
|
}>;
|
|
1946
2034
|
/** Что принимает параметр жалобы: объект, билдер или функция-настройщик. */
|
|
1947
2035
|
type ReportInput = BuilderInput<CreateReportInput, ReportBuilder>;
|
|
1948
|
-
//#endregion
|
|
1949
|
-
//#region src/resources/reports.d.ts
|
|
1950
2036
|
/**
|
|
1951
2037
|
* Жалобы на контент и пользователей.
|
|
1952
2038
|
*
|
|
@@ -1967,8 +2053,6 @@ declare class ReportsResource extends BaseResource {
|
|
|
1967
2053
|
*/
|
|
1968
2054
|
create(input: ReportInput, options?: RequestOptions): Promise<Report>;
|
|
1969
2055
|
}
|
|
1970
|
-
//#endregion
|
|
1971
|
-
//#region src/resources/search.d.ts
|
|
1972
2056
|
/** Результат глобального поиска. */
|
|
1973
2057
|
interface SearchResult {
|
|
1974
2058
|
users: UserSummary[];
|
|
@@ -1990,8 +2074,6 @@ declare class SearchResource extends BaseResource {
|
|
|
1990
2074
|
*/
|
|
1991
2075
|
all(query: string, options?: RequestOptions): Promise<SearchResult>;
|
|
1992
2076
|
}
|
|
1993
|
-
//#endregion
|
|
1994
|
-
//#region src/models/shop.d.ts
|
|
1995
2077
|
/** Категория товара магазина. */
|
|
1996
2078
|
declare const ShopProductCategory: Readonly<{
|
|
1997
2079
|
readonly Apparel: "apparel";
|
|
@@ -2216,8 +2298,6 @@ interface ShopOrderAccessVerification {
|
|
|
2216
2298
|
token: string;
|
|
2217
2299
|
expiresInSec: number;
|
|
2218
2300
|
}
|
|
2219
|
-
//#endregion
|
|
2220
|
-
//#region src/resources/shop.d.ts
|
|
2221
2301
|
/** Параметры запроса, который может использовать токен доступа к заказам. */
|
|
2222
2302
|
interface ShopOrderRequestOptions extends RequestOptions {
|
|
2223
2303
|
/** Временный токен из проверки кода или `pass` созданного заказа. */
|
|
@@ -2284,8 +2364,6 @@ declare class ShopResource {
|
|
|
2284
2364
|
/** @internal */
|
|
2285
2365
|
constructor(http: ConstructorParameters<typeof BaseResource>[0]);
|
|
2286
2366
|
}
|
|
2287
|
-
//#endregion
|
|
2288
|
-
//#region src/resources/subscription.d.ts
|
|
2289
2367
|
/**
|
|
2290
2368
|
* Подписка и способы оплаты.
|
|
2291
2369
|
*
|
|
@@ -2311,8 +2389,6 @@ declare class SubscriptionResource extends BaseResource {
|
|
|
2311
2389
|
/** Удаляет способ оплаты. */
|
|
2312
2390
|
removeMethod(methodId: string, options?: RequestOptions): Promise<void>;
|
|
2313
2391
|
}
|
|
2314
|
-
//#endregion
|
|
2315
|
-
//#region src/resources/telemetry.d.ts
|
|
2316
2392
|
/** Параметры событий телеметрии. */
|
|
2317
2393
|
interface TelemetryOptions {
|
|
2318
2394
|
/** Переопределяет идентификатор сессии телеметрии (`sid`) для этого запроса. */
|
|
@@ -2480,8 +2556,6 @@ declare class TelemetryResource extends BaseResource {
|
|
|
2480
2556
|
/** Закрывает все созданные накопители, отправляя оставшиеся записи. */
|
|
2481
2557
|
close(): Promise<void>;
|
|
2482
2558
|
}
|
|
2483
|
-
//#endregion
|
|
2484
|
-
//#region src/resources/users.d.ts
|
|
2485
2559
|
/**
|
|
2486
2560
|
* Параметры списков пользователей.
|
|
2487
2561
|
*
|
|
@@ -2534,10 +2608,6 @@ declare class UsersResource extends BaseResource {
|
|
|
2534
2608
|
setBanner(file: FileInput, uploadOptions?: UploadOptions, requestOptions?: RequestOptions): Promise<MyProfile>;
|
|
2535
2609
|
/** Удаляет баннер профиля, устанавливая `bannerId` в `null`. */
|
|
2536
2610
|
removeBanner(options?: RequestOptions): Promise<MyProfile>;
|
|
2537
|
-
/** Деактивирует аккаунт. Вернуть его можно через {@link restore}. */
|
|
2538
|
-
deactivate(options?: RequestOptions): Promise<void>;
|
|
2539
|
-
/** Восстанавливает деактивированный аккаунт. */
|
|
2540
|
-
restore(options?: RequestOptions): Promise<void>;
|
|
2541
2611
|
/** Создаёт профиль после регистрации. */
|
|
2542
2612
|
createProfile(input: {
|
|
2543
2613
|
username: string;
|
|
@@ -2637,8 +2707,6 @@ declare class UsersResource extends BaseResource {
|
|
|
2637
2707
|
/** Снимает активный значок. */
|
|
2638
2708
|
removePin(options?: RequestOptions): Promise<void>;
|
|
2639
2709
|
}
|
|
2640
|
-
//#endregion
|
|
2641
|
-
//#region src/resources/verification.d.ts
|
|
2642
2710
|
/**
|
|
2643
2711
|
* Верификация профиля.
|
|
2644
2712
|
*
|
|
@@ -2650,8 +2718,6 @@ declare class VerificationResource extends BaseResource {
|
|
|
2650
2718
|
/** Подаёт заявку на верификацию с видео. */
|
|
2651
2719
|
submit(videoUrl: string, options?: RequestOptions): Promise<unknown>;
|
|
2652
2720
|
}
|
|
2653
|
-
//#endregion
|
|
2654
|
-
//#region src/core/attachments/factories.d.ts
|
|
2655
2721
|
/** Создаёт URL-источник в выбранном режиме. */
|
|
2656
2722
|
declare function fromUrl(url: string, options: UrlFileOptions & {
|
|
2657
2723
|
mode: typeof FileTransferMode.Stream;
|
|
@@ -2666,8 +2732,6 @@ declare function fromUrl(url: string, options: UrlFileOptions): LazyFile | Strea
|
|
|
2666
2732
|
* Фабрика вызывается заново для каждой попытки; возвращать один и тот же поток нельзя.
|
|
2667
2733
|
*/
|
|
2668
2734
|
declare function fromStream(factory: (context: FileContext) => ReadableStream<Uint8Array> | FileStreamContent | Promise<ReadableStream<Uint8Array> | FileStreamContent>, options?: FromStreamOptions): StreamFile;
|
|
2669
|
-
//#endregion
|
|
2670
|
-
//#region src/domain/mime.d.ts
|
|
2671
2735
|
/** Изображения, которые принимает `POST /api/files/upload`. */
|
|
2672
2736
|
declare const IMAGE_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/avif", "image/heic", "image/heif"];
|
|
2673
2737
|
type ImageMimeType = (typeof IMAGE_MIME_TYPES)[number];
|
|
@@ -2680,8 +2744,6 @@ type AudioMimeType = (typeof AUDIO_MIME_TYPES)[number];
|
|
|
2680
2744
|
/** Все типы, которые принимает загрузка. */
|
|
2681
2745
|
declare const ALLOWED_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp", "image/avif", "image/heic", "image/heif", "video/mp4", "video/webm", "video/quicktime", "audio/ogg"];
|
|
2682
2746
|
type AllowedMimeType = (typeof ALLOWED_MIME_TYPES)[number];
|
|
2683
|
-
//#endregion
|
|
2684
|
-
//#region src/domain/time.d.ts
|
|
2685
2747
|
/**
|
|
2686
2748
|
* Приводит отметку времени PostgreSQL к ISO-8601 в UTC.
|
|
2687
2749
|
*
|
|
@@ -2707,8 +2769,6 @@ declare function utcStampToIso(value: string): string;
|
|
|
2707
2769
|
* ```
|
|
2708
2770
|
*/
|
|
2709
2771
|
declare function toDate(value: IsoDate | null | undefined): Date | null;
|
|
2710
|
-
//#endregion
|
|
2711
|
-
//#region src/models/guards.d.ts
|
|
2712
2772
|
/**
|
|
2713
2773
|
* Свой ли это профиль.
|
|
2714
2774
|
*
|
|
@@ -2718,8 +2778,6 @@ declare function toDate(value: IsoDate | null | undefined): Date | null;
|
|
|
2718
2778
|
* ```
|
|
2719
2779
|
*/
|
|
2720
2780
|
declare function isMyProfile(profile: Profile): profile is MyProfile;
|
|
2721
|
-
//#endregion
|
|
2722
|
-
//#region src/models/status-helpers.d.ts
|
|
2723
2781
|
/**
|
|
2724
2782
|
* Разворачивает историю сервиса в массив на 90 суток.
|
|
2725
2783
|
* Сутки без данных становятся `null`.
|
|
@@ -2736,8 +2794,6 @@ declare function isMyProfile(profile: Profile): profile is MyProfile;
|
|
|
2736
2794
|
* ```
|
|
2737
2795
|
*/
|
|
2738
2796
|
declare function statusDays(service: ServiceStatus): (StatusDay | null)[];
|
|
2739
|
-
//#endregion
|
|
2740
|
-
//#region src/shop/order-access.d.ts
|
|
2741
2797
|
/** Хранилище временного доступа к гостевым заказам. */
|
|
2742
2798
|
interface ShopOrderAccessStorage {
|
|
2743
2799
|
get(): ShopOrderAccessSession | null | Promise<ShopOrderAccessSession | null>;
|
|
@@ -2759,8 +2815,6 @@ interface ShopOrderAccessStorageAdapterOptions {
|
|
|
2759
2815
|
}
|
|
2760
2816
|
/** Создаёт хранилище доступа к заказам поверх `KeyValueStore`. */
|
|
2761
2817
|
declare function createShopOrderAccessStorage(store: KeyValueStore<ShopOrderAccessSession>, options?: ShopOrderAccessStorageAdapterOptions): ShopOrderAccessStorage;
|
|
2762
|
-
//#endregion
|
|
2763
|
-
//#region src/shop/feature.d.ts
|
|
2764
2818
|
/** Настройки подключаемого модуля доступа к заказам по коду из письма. */
|
|
2765
2819
|
interface ShopFeatureOptions {
|
|
2766
2820
|
/** Отдельное хранилище токена заказов. По умолчанию используется память процесса. */
|
|
@@ -2787,8 +2841,6 @@ interface ShopFeatureApi {
|
|
|
2787
2841
|
}
|
|
2788
2842
|
/** Создаёт подключаемый модуль для доступа к заказам по коду из письма. */
|
|
2789
2843
|
declare function createShopFeature(options?: ShopFeatureOptions): ClientFeature<ShopFeatureApi>;
|
|
2790
|
-
//#endregion
|
|
2791
|
-
//#region src/spans/render.d.ts
|
|
2792
2844
|
/** Формат результата {@link renderSpans}. */
|
|
2793
2845
|
declare const SpanRenderFormat: Readonly<{
|
|
2794
2846
|
readonly Html: "html";
|
|
@@ -2818,6 +2870,4 @@ interface RenderSpansOptions {
|
|
|
2818
2870
|
* Отсутствующий массив считается пустым; формат по умолчанию — HTML.
|
|
2819
2871
|
*/
|
|
2820
2872
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
2821
|
-
|
|
2822
|
-
export { ShopConsentContext as $, NotificationListParams as $n, autoSpans as $t, DwellEntry as A, Poll as An, PreparedStreamSource as Ar, ReportInput as At, ViewTrackerInput as B, comment as Bn, post as Bt, fromStream as C, Comment as Cn, FeatureInstallation as Cr, ShopRecipient as Ct, UpdateProfileInput as D, LikeResult as Dn, FileResolver as Dr, SearchResult as Dt, UpdatePrivacyInput as E, Hashtag as En, ManagedClientResource as Er, SearchResource as Et, TelemetryClock as F, PostStats as Fn, UserPostsParams as Ft, ShopConsentsResource as G, CreatePollInput as Gn, parseHtml as Gt, SubscriptionResource as H, ItdBuilder as Hn, PollInput as Ht, TelemetryOptions as I, PostUpdateResult as In, CreatePostInput as It, ShopOrdersResource as J, UpdatePostInput as Jn, MarkupBuilder as Jt, ShopDeliveryResource as K, CreatePostData as Kn, parseMarkdown as Kt, TelemetryResource as L, UpdateResultBase as Ln, PostBuilder as Lt, PhotoOpenInput as M, Post as Mn, ResolveFileOptions as Mr, CommentsParams as Mt, TelemetryBatch as N, PostBase as Nn, HttpClient as Nr, FeedParams as Nt, UserListParams as O, OriginalPost as On, PreparedBufferSource as Or, ReportsResource as Ot, TelemetryBatchOptions as P, PostCounters as Pn, CookieJar as Pr, PostsResource as Pt, ShopConsent as Q, Subscription as Qn, TextMarkup as Qt, VideoProgressInput as R, CommentBuilder as Rn, PostInput as Rt, VideoMimeType as S, Attachment as Sn, FeatureContext as Sr, ShopProductStatus as St, VerificationResource as T, CommentUpdateResult as Tn, FeatureRequestOptions as Tr, ShopSizeChartRow as Tt, CreateShopOrderOptions as U, isBuilder as Un, poll as Ut, ViewTrackerOptions as V, BuilderInput as Vn, PollBuilder as Vt, PayShopOrderOptions as W, CreateCommentInput as Wn, ParseMarkupOptions as Wt, ShopResource as X, QrLoginTarget as Xn, MarkupInput as Xt, ShopProductsResource as Y, PaymentMethod as Yn, MarkupContent as Yt, CreateShopOrderInput as Z, Session as Zn, MarkupSpan as Zt, AllowedMimeType as _, FilesResource as _n, OperationTransformer as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, PaginationMode as ar, ShopDeliveryDestination as at, ImageMimeType as b, CommentsResource as bn, ClientFeature as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, mapPage as cr, ShopOrderAccessSession as ct, statusDays as d, Clan as dn, AttemptExtensions as dr, ShopOrderDelivery as dt, markup as en, NotificationsResource as er, ShopConsentKind as et, isMyProfile as f, Portal as fn, AttemptInterceptor as fr, ShopOrderItem as ft, AUDIO_MIME_TYPES as g, HashtagsResource as gn, OperationTransformContext as gr, ShopOrderSupport as gt, ALLOWED_MIME_TYPES as h, HashtagPostsParams as hn, OperationExtensions as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, PageState as ir, ShopDeliveryCountry as it, InteractionEntry as j, PollOption as jn, ResolveFileContext as jr, report as jt, UsersResource as k, PinPostResult as kn, PreparedFileSource as kr, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, RateLimitBucketState as lr, ShopOrderAccessVerification as lt, utcStampToIso as m, VerificationStatus as mn, ClientPlugin as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, BaseResource as nr, ShopDeliveryCalculation as nt, createShopFeature as o, StatusDay as on, Paginator as or, ShopDeliveryPoint as ot, toDate as p, Report as pn, AttemptNext as pr, ShopOrderItemInput as pt, ShopOrderRequestOptions as q, CreateReportInput as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, Page as rr, ShopDeliveryCity as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, PaginatorOptions as sr, ShopOrder as st, RenderSpansOptions as t, PlatformClientVersion as tn, UpdateNotificationSettingsInput as tr, ShopCreatedOrder as tt, createShopOrderAccessStorage as u, ChangelogEntry as un, AttemptContext as ur, ShopOrderBase as ut, AudioMimeType as v, UploadOptions as vn, PluginApi as vr, ShopProduct as vt, fromUrl as w, CommentReplyTo as wn, FeatureOperationDefinition as wr, ShopSizeChart as wt, VIDEO_MIME_TYPES as x, RepliesParams as xn, FeatureBucketDefinition as xr, ShopProductSpec as xt, IMAGE_MIME_TYPES as y, UploadedFile as yn, PluginTeardown as yr, ShopProductCategory as yt, ViewTracker as z, CommentInput as zn, PostUpdateInput as zt };
|
|
2823
|
-
//# sourceMappingURL=render-BS09ygcy.d.ts.map
|
|
2873
|
+
export { ShopConsentContext as $, BuilderInput as $n, autoSpans as $t, DwellEntry as A, BannerDrawingTool as An, OperationTransformer as Ar, ReportInput as At, ViewTrackerInput as B, OriginalPost as Bn, FileResolver as Br, post as Bt, fromStream as C, HashtagsResource as Cn, AttemptContext as Cr, ShopRecipient as Ct, UpdateProfileInput as D, BannerDrawing as Dn, ClientPlugin as Dr, SearchResult as Dt, UpdatePrivacyInput as E, UploadedFile as En, AttemptNext as Er, SearchResource as Et, TelemetryClock as F, Comment as Fn, FeatureContext as Fr, UserPostsParams as Ft, ShopConsentsResource as G, PostBase as Gn, ResolveFileOptions as Gr, parseHtml as Gt, SubscriptionResource as H, Poll as Hn, PreparedFileSource as Hr, PollInput as Ht, TelemetryOptions as I, CommentReplyTo as In, FeatureInstallation as Ir, CreatePostInput as It, ShopOrdersResource as J, PostUpdateResult as Jn, MarkupBuilder as Jt, ShopDeliveryResource as K, PostCounters as Kn, HttpClient as Kr, parseMarkdown as Kt, TelemetryResource as L, CommentUpdateResult as Ln, FeatureOperationDefinition as Lr, PostBuilder as Lt, PhotoOpenInput as M, CommentsResource as Mn, PluginTeardown as Mr, CommentsParams as Mt, TelemetryBatch as N, RepliesParams as Nn, ClientFeature as Nr, FeedParams as Nt, UserListParams as O, BannerDrawingOperation as On, OperationExtensions as Or, ReportsResource as Ot, TelemetryBatchOptions as P, Attachment as Pn, FeatureBucketDefinition as Pr, PostsResource as Pt, ShopConsent as Q, comment as Qn, TextMarkup as Qt, VideoProgressInput as R, Hashtag as Rn, FeatureRequestOptions as Rr, PostInput as Rt, VideoMimeType as S, HashtagPostsParams as Sn, RateLimitBucketState as Sr, ShopProductStatus as St, VerificationResource as T, UploadOptions as Tn, AttemptInterceptor as Tr, ShopSizeChartRow as Tt, CreateShopOrderOptions as U, PollOption as Un, PreparedStreamSource as Ur, poll as Ut, ViewTrackerOptions as V, PinPostResult as Vn, PreparedBufferSource as Vr, PollBuilder as Vt, PayShopOrderOptions as W, Post as Wn, ResolveFileContext as Wr, ParseMarkupOptions as Wt, ShopResource as X, CommentBuilder as Xn, MarkupInput as Xt, ShopProductsResource as Y, UpdateResultBase as Yn, MarkupContent as Yt, CreateShopOrderInput as Z, CommentInput as Zn, MarkupSpan as Zt, AllowedMimeType as _, LegalDocumentBlock as _n, PageState as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, CreateReportInput as ar, ShopDeliveryDestination as at, ImageMimeType as b, LegalDocumentSummary as bn, PaginatorOptions as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, PaymentMethod as cr, ShopOrderAccessSession as ct, statusDays as d, Clan as dn, Subscription as dr, ShopOrderDelivery as dt, markup as en, ItdBuilder as er, ShopConsentKind as et, isMyProfile as f, Portal as fn, NotificationListParams as fr, ShopOrderItem as ft, AUDIO_MIME_TYPES as g, LegalDocument as gn, Page as gr, ShopOrderSupport as gt, ALLOWED_MIME_TYPES as h, LegalResource as hn, BaseResource as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, CreatePostData as ir, ShopDeliveryCountry as it, InteractionEntry as j, UploadedBannerDrawing as jn, PluginApi as jr, report as jt, UsersResource as k, BannerDrawingPoint as kn, OperationTransformContext as kr, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, QrLoginTarget as lr, ShopOrderAccessVerification as lt, utcStampToIso as m, VerificationStatus as mn, UpdateNotificationSettingsInput as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, CreateCommentInput as nr, ShopDeliveryCalculation as nt, createShopFeature as o, StatusDay as on, UpdatePostInput as or, ShopDeliveryPoint as ot, toDate as p, Report as pn, NotificationsResource as pr, ShopOrderItemInput as pt, ShopOrderRequestOptions as q, PostStats as qn, CookieJar as qr, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, CreatePollInput as rr, ShopDeliveryCity as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, AccountLifecycleResource as sr, ShopOrder as st, RenderSpansOptions as t, PlatformClientVersion as tn, isBuilder as tr, ShopCreatedOrder as tt, createShopOrderAccessStorage as u, ChangelogEntry as un, Session as ur, ShopOrderBase as ut, AudioMimeType as v, LegalDocumentBlockType as vn, PaginationMode as vr, ShopProduct as vt, fromUrl as w, FilesResource as wn, AttemptExtensions as wr, ShopSizeChart as wt, VIDEO_MIME_TYPES as x, LegalDocumentVersion as xn, mapPage as xr, ShopProductSpec as xt, IMAGE_MIME_TYPES as y, LegalDocumentScope as yn, Paginator as yr, ShopProductCategory as yt, ViewTracker as z, LikeResult as zn, ManagedClientResource as zr, PostUpdateInput as zt };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as ItdConfigError } from "./validate-
|
|
2
|
-
import { r as createKeyValueStore, t as MemoryKeyValueStore } from "./key-value-store-
|
|
3
|
-
|
|
1
|
+
import { l as ItdConfigError } from "./validate-B5l_vLKD.js";
|
|
2
|
+
import { r as createKeyValueStore, t as MemoryKeyValueStore } from "./key-value-store-PnZE_DFC.js";
|
|
3
|
+
// src/session/storage.ts
|
|
4
4
|
/**
|
|
5
5
|
* Создаёт независимый снимок сессии.
|
|
6
6
|
*
|
|
@@ -67,7 +67,6 @@ function createTokenStorage(store, options = {}) {
|
|
|
67
67
|
clear: () => backend.delete(key)
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
//#endregion
|
|
71
70
|
export { copySession as n, createTokenStorage as r, MemoryTokenStorage as t };
|
|
72
71
|
|
|
73
|
-
//# sourceMappingURL=storage-
|
|
72
|
+
//# sourceMappingURL=storage-B6OkSi38.js.map
|