itd-api 0.10.0 → 0.10.2
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 +175 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +216 -132
- package/dist/index.d.ts +216 -132
- package/dist/index.js +175 -60
- 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-B0Wtn4cF.js → events-0I_Pixnq.js} +2 -2
- package/dist/shared/{events-B0Wtn4cF.js.map → events-0I_Pixnq.js.map} +1 -1
- package/dist/shared/{events-BB791aPk.cjs → events-8OLqvKwQ.cjs} +2 -2
- package/dist/shared/{events-BB791aPk.cjs.map → events-8OLqvKwQ.cjs.map} +1 -1
- package/dist/shared/{events-BNGjJVI3.d.cts → events-Cr1Mc2Gl.d.cts} +2 -2
- package/dist/shared/{events-CJO6q93Z.d.ts → events-DXooQkyB.d.ts} +2 -2
- package/dist/shared/{render-C1A57W-5.d.cts → render-BxPM234w.d.cts} +29 -3
- package/dist/shared/{render-BimHjOhw.cjs → render-CnpKoGO8.cjs} +2 -2
- package/dist/shared/{render-BimHjOhw.cjs.map → render-CnpKoGO8.cjs.map} +1 -1
- package/dist/shared/{render-DC5nvqcP.d.ts → render-D69bOsxu.d.ts} +29 -3
- package/dist/shared/{render-CkhvH_yh.js → render-GQw5m1-o.js} +2 -2
- package/dist/shared/{render-CkhvH_yh.js.map → render-GQw5m1-o.js.map} +1 -1
- package/dist/shared/{url-CDVgMIq5.cjs → url-BnaioEsz.cjs} +44 -6
- package/dist/shared/{url-CDVgMIq5.cjs.map → url-BnaioEsz.cjs.map} +1 -1
- package/dist/shared/{url-BA5hEwj2.js → url-D0KJ5pws.js} +39 -7
- package/dist/shared/{url-BA5hEwj2.js.map → url-D0KJ5pws.js.map} +1 -1
- package/dist/shared/{url-DkMueFAT.d.ts → url-Qv7smwHP.d.cts} +40 -7
- package/dist/shared/{url-DkMueFAT.d.cts → url-Qv7smwHP.d.ts} +40 -7
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as RequestOptions,
|
|
1
|
+
import { At as RequestOptions, Ct as PaginationOptions, Dt as RawRequestOptions, It as QueryParams, Rt as ServiceDefinition, Sn as ServiceState, St as OperationRequestOptions, Tn as ViewSource, Tt as RateLimitBucketOverride, Ut as BuiltInOperationId, Vt as ItdClock, _ as PrivacySettings, _n as Loose, _t as OperationMethod, bn as ReportReason, c as NotificationSettings, f as Author, fn as FeedTab, g as PinsResult, gt as OperationMetadata, ht as OperationContract, in as UserRef, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, nn as Span, nt as AuthIdentity, on as AttachmentType, p as FollowResult, pn as IncidentKind, qt as OperationId, rn as UserId, s as Notification, tn as IsoDate, tt as ClientConnection, un as CommentSort, v as Profile, vt as RetrySafety, wn as ViewReason, x as UserSummary, xn as ReportTargetType, xt as Logger, y as PublicProfile, yn as QrLocationPrecision, yt as ClientHooks } from "./url-Qv7smwHP.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/cookies.d.ts
|
|
@@ -819,6 +819,32 @@ interface Session {
|
|
|
819
819
|
clientVersion: string | null;
|
|
820
820
|
deviceModel: string | null;
|
|
821
821
|
}
|
|
822
|
+
/**
|
|
823
|
+
* Устройство, которое просит вход по QR-коду.
|
|
824
|
+
*
|
|
825
|
+
* Приходит на подтверждающее устройство в ответ на `itd.auth.scanQrLogin()` — чтобы человек
|
|
826
|
+
* видел, что именно он впускает. Обязательно только время запроса: остальное сервер
|
|
827
|
+
* заполняет по мере того, как сумел определить.
|
|
828
|
+
*/
|
|
829
|
+
interface QrLoginTarget {
|
|
830
|
+
/** Название браузера или приложения. */
|
|
831
|
+
client?: string | null | undefined;
|
|
832
|
+
clientVersion?: string | null | undefined;
|
|
833
|
+
os?: string | null | undefined;
|
|
834
|
+
osVersion?: string | null | undefined;
|
|
835
|
+
deviceType?: string | null | undefined;
|
|
836
|
+
ipAddress?: string | null | undefined;
|
|
837
|
+
/** Код страны по IP, например `RU`. */
|
|
838
|
+
ipCountry?: string | null | undefined;
|
|
839
|
+
ipCity?: string | null | undefined;
|
|
840
|
+
requestedAt: IsoDate;
|
|
841
|
+
latitude?: number | null | undefined;
|
|
842
|
+
longitude?: number | null | undefined;
|
|
843
|
+
/** Радиус, в котором находится устройство, км. */
|
|
844
|
+
accuracyKm?: number | null | undefined;
|
|
845
|
+
/** Насколько точно известны координаты. */
|
|
846
|
+
precision?: QrLocationPrecision | null | undefined;
|
|
847
|
+
}
|
|
822
848
|
/** Состояние платной подписки и её цена. */
|
|
823
849
|
interface Subscription {
|
|
824
850
|
/** Активна ли подписка сейчас. */
|
|
@@ -2853,5 +2879,5 @@ interface RenderSpansOptions {
|
|
|
2853
2879
|
*/
|
|
2854
2880
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
2855
2881
|
//#endregion
|
|
2856
|
-
export { ShopConsentContext as $,
|
|
2857
|
-
//# sourceMappingURL=render-
|
|
2882
|
+
export { ShopConsentContext as $, PageState as $n, markup as $t, DwellEntry as A, Post as An, report as At, ViewTrackerInput as B, CreatePollInput as Bn, PollBuilder as Bt, fromStream as C, CommentReplyTo as Cn, ClientPlugin as Cr, ShopSizeChart as Ct, UpdateProfileInput as D, PinPostResult as Dn, PluginApi as Dr, ReportsResource as Dt, UpdatePrivacyInput as E, LikeResult as En, OperationTransformer as Er, SearchResult as Et, TelemetryClock as F, comment as Fn, CreatePostInput as Ft, ShopConsentsResource as G, QrLoginTarget as Gn, parseMarkdown as Gt, SubscriptionResource as H, CreateReportInput as Hn, poll as Ht, TelemetryOptions as I, BuilderInput as In, PostBuilder as It, ShopOrdersResource as J, NotificationListParams as Jn, MarkupContent as Jt, ShopDeliveryResource as K, Session as Kn, AutoSpansOptions as Kt, TelemetryResource as L, ItdBuilder as Ln, PostInput as Lt, PhotoOpenInput as M, PostUpdateResult as Mn, FeedParams as Mt, TelemetryBatch as N, CommentBuilder as Nn, PostsResource as Nt, UserListParams as O, Poll as On, PluginTeardown as Or, ReportBuilder as Ot, TelemetryBatchOptions as P, CommentInput as Pn, UserPostsParams as Pt, ShopConsent as Q, Page as Qn, autoSpans as Qt, VideoProgressInput as R, isBuilder as Rn, PostUpdateInput as Rt, VideoMimeType as S, Comment as Sn, AttemptNext as Sr, ShopRecipient as St, VerificationResource as T, Hashtag as Tn, OperationTransformContext as Tr, SearchResource as Tt, CreateShopOrderOptions as U, UpdatePostInput as Un, ParseMarkupOptions as Ut, ViewTrackerOptions as V, CreatePostData as Vn, PollInput as Vt, PayShopOrderOptions as W, PaymentMethod as Wn, parseHtml as Wt, ShopResource as X, UpdateNotificationSettingsInput as Xn, MarkupSpan as Xt, ShopProductsResource as Y, NotificationsResource as Yn, MarkupInput as Yt, CreateShopOrderInput as Z, BaseResource as Zn, TextMarkup as Zt, AllowedMimeType as _, UploadOptions as _n, ResolveFileOptions as _r, ShopProduct as _t, ShopFeatureOptions as a, StatusDay as an, ClientFeature as ar, ShopDeliveryDestination as at, ImageMimeType as b, RepliesParams as bn, AttemptExtensions as br, ShopProductSpec as bt, ShopOrderAccessStorage as c, AnnouncementButton as cn, FeatureInstallation as cr, ShopOrderAccessSession as ct, statusDays as d, Portal as dn, ManagedClientResource as dr, ShopOrderItem as dt, PlatformClientVersion as en, PaginationMode as er, ShopConsentKind as et, isMyProfile as f, Report as fn, FileResolver as fr, ShopOrderItemInput as ft, AUDIO_MIME_TYPES as g, FilesResource as gn, ResolveFileContext as gr, ShopPayment as gt, ALLOWED_MIME_TYPES as h, HashtagsResource as hn, PreparedStreamSource as hr, ShopOrderSupport as ht, ShopFeatureApi as i, ServiceStatus as in, RateLimitBucketState as ir, ShopDeliveryCountry as it, InteractionEntry as j, PostStats as jn, CommentsParams as jt, UsersResource as k, PollOption as kn, CookieJar as kr, ReportInput as kt, ShopOrderAccessStorageAdapterOptions as l, ChangelogEntry as ln, FeatureOperationDefinition as lr, ShopOrderAccessVerification as lt, utcStampToIso as m, HashtagPostsParams as mn, PreparedFileSource as mr, ShopOrderSummary as mt, SpanRenderFormat as n, PlatformVersions as nn, PaginatorOptions as nr, ShopDeliveryCalculation as nt, createShopFeature as o, StatusIncidentLine as on, FeatureBucketDefinition as or, ShopDeliveryPoint as ot, toDate as p, VerificationStatus as pn, PreparedBufferSource as pr, ShopOrderStatus as pt, ShopOrderRequestOptions as q, Subscription as qn, MarkupBuilder as qt, renderSpans as r, PlatformStatus as rn, mapPage as rr, ShopDeliveryCity as rt, MemoryShopOrderAccessStorage as s, Announcement as sn, FeatureContext as sr, ShopOrder as st, RenderSpansOptions as t, PlatformResource as tn, Paginator as tr, ShopCreatedOrder as tt, createShopOrderAccessStorage as u, Clan as un, FeatureRequestOptions as ur, ShopOrderDelivery as ut, AudioMimeType as v, UploadedFile as vn, HttpClient as vr, ShopProductCategory as vt, fromUrl as w, CommentUpdateResult as wn, OperationExtensions as wr, ShopSizeChartRow as wt, VIDEO_MIME_TYPES as x, Attachment as xn, AttemptInterceptor as xr, ShopProductStatus as xt, IMAGE_MIME_TYPES as y, CommentsResource as yn, AttemptContext as yr, ShopProductColor as yt, ViewTracker as z, CreateCommentInput as zn, post as zt };
|
|
2883
|
+
//# sourceMappingURL=render-D69bOsxu.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as identityResult, A as SpanType, D as ReportReason, G as isRecord, I as defineBuiltInOperation, J as pickNumber, K as pickArray, O as ReportTargetType, Q as defineOperation, S as InteractionType, X as pickString, Y as pickObject, Z as RetrySafety, c as normalizeNotification, ct as DEFAULT_STATUS_BASE_URL, et as voidResult, ht as createDeadline, lt as STATUS_SERVICE, o as passthroughOperation, q as pickBoolean, rt as mergeService, s as voidOperation } from "./url-D0KJ5pws.js";
|
|
2
2
|
import { _ as ItdStateError, a as ItdConfigError, b as isItdApiError, l as ItdFileError, s as ItdError, t as ItdAbortError, u as ItdFileErrorReason } from "./errors-GI10kZxk.js";
|
|
3
3
|
import { a as redactUrl, b as isBlob, f as encodePathSegment, r as redactErrorCause, x as isFile, y as createDeviceId } from "./redact-DJV0XM3n.js";
|
|
4
4
|
import { a as fileTooLarge, c as FileTransferMode, i as isReadableByteStream, n as boundedFileStream, o as optionalBytes, r as isBoundedFileStream, s as DEFAULT_URL_FILE_MAX_BYTES, t as resolveFileStreamOptions } from "./options-i4LrKfqx.js";
|
|
@@ -5037,4 +5037,4 @@ function renderSpans(content, spans = [], options = {}) {
|
|
|
5037
5037
|
//#endregion
|
|
5038
5038
|
export { utcStampToIso as A, AUDIO_MIME_TYPES as C, isBuilder as D, comment as E, mapPage as F, createFeatureHost as I, ExtensibleOperationCatalog as L, BaseResource as M, PaginationMode as N, createStatusFeature as O, Paginator as P, ALLOWED_MIME_TYPES as S, VIDEO_MIME_TYPES as T, poll as _, createShopOrderAccessStorage as a, parseHtml as b, ShopOrderStatus as c, isMyProfile as d, fromStream as f, post as g, report as h, MemoryShopOrderAccessStorage as i, NotificationsResource as j, toDate as k, ShopProductCategory as l, createResources as m, renderSpans as n, statusDays as o, fromUrl as p, createShopFeature as r, ShopConsentKind as s, SpanRenderFormat as t, ShopProductStatus as u, autoSpans as v, IMAGE_MIME_TYPES as w, parseMarkdown as x, markup as y };
|
|
5039
5039
|
|
|
5040
|
-
//# sourceMappingURL=render-
|
|
5040
|
+
//# sourceMappingURL=render-GQw5m1-o.js.map
|