itd-api 0.10.1 → 0.10.3

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 (33) hide show
  1. package/dist/events/index.cjs +2 -2
  2. package/dist/events/index.d.cts +2 -2
  3. package/dist/events/index.d.ts +2 -2
  4. package/dist/events/index.js +2 -2
  5. package/dist/index.cjs +89 -9
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +60 -4
  8. package/dist/index.d.ts +60 -4
  9. package/dist/index.js +89 -10
  10. package/dist/index.js.map +1 -1
  11. package/dist/rest/index.cjs +2 -2
  12. package/dist/rest/index.d.cts +2 -2
  13. package/dist/rest/index.d.ts +2 -2
  14. package/dist/rest/index.js +2 -2
  15. package/dist/shared/{events-MtRNe_TF.cjs → events-BVfqWyBw.cjs} +2 -2
  16. package/dist/shared/{events-MtRNe_TF.cjs.map → events-BVfqWyBw.cjs.map} +1 -1
  17. package/dist/shared/{events-D3CSlpXR.d.ts → events-Cp7ITueA.d.ts} +2 -2
  18. package/dist/shared/{events-Cipe-Fm9.js → events-Cwj7UPAa.js} +2 -2
  19. package/dist/shared/{events-Cipe-Fm9.js.map → events-Cwj7UPAa.js.map} +1 -1
  20. package/dist/shared/{events-CZXU16qU.d.cts → events-D0Wtt-If.d.cts} +2 -2
  21. package/dist/shared/{render-CubTTof_.js → render-BT74nC1l.js} +2 -2
  22. package/dist/shared/{render-CubTTof_.js.map → render-BT74nC1l.js.map} +1 -1
  23. package/dist/shared/{render-bZwOk3CC.d.cts → render-CJO_L2CD.d.cts} +29 -3
  24. package/dist/shared/{render-dscKp9CC.cjs → render-CYJSDypQ.cjs} +2 -2
  25. package/dist/shared/{render-dscKp9CC.cjs.map → render-CYJSDypQ.cjs.map} +1 -1
  26. package/dist/shared/{render-Cs6AOXbD.d.ts → render-DRmuHoEy.d.ts} +29 -3
  27. package/dist/shared/{url-Dum7r_FT.d.cts → url-BLnX-LYt.d.cts} +38 -5
  28. package/dist/shared/{url-Dum7r_FT.d.ts → url-BLnX-LYt.d.ts} +38 -5
  29. package/dist/shared/{url-DgTYZN_v.cjs → url-BnO1aWsd.cjs} +42 -4
  30. package/dist/shared/{url-DgTYZN_v.cjs.map → url-BnO1aWsd.cjs.map} +1 -1
  31. package/dist/shared/{url-CntTEAxu.js → url-DS0-lrl-.js} +37 -5
  32. package/dist/shared/{url-CntTEAxu.js.map → url-DS0-lrl-.js.map} +1 -1
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { At as RequestOptions, Cn as ViewReason, 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 Loose, _t as OperationMethod, bn as ReportTargetType, 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 ViewSource, x as UserSummary, xn as ServiceState, xt as Logger, y as PublicProfile, yn as ReportReason, yt as ClientHooks } from "./url-Dum7r_FT.js";
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-BLnX-LYt.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 $, PaginationMode 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, OperationExtensions as Cr, ShopSizeChart as Ct, UpdateProfileInput as D, PinPostResult as Dn, PluginTeardown as Dr, ReportsResource as Dt, UpdatePrivacyInput as E, LikeResult as En, PluginApi as Er, SearchResult as Et, TelemetryClock as F, comment as Fn, CreatePostInput as Ft, ShopConsentsResource as G, Session 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, NotificationsResource as Jn, MarkupContent as Jt, ShopDeliveryResource as K, Subscription 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, CookieJar as Or, ReportBuilder as Ot, TelemetryBatchOptions as P, CommentInput as Pn, UserPostsParams as Pt, ShopConsent as Q, PageState as Qn, autoSpans as Qt, VideoProgressInput as R, isBuilder as Rn, PostUpdateInput as Rt, VideoMimeType as S, Comment as Sn, ClientPlugin as Sr, ShopRecipient as St, VerificationResource as T, Hashtag as Tn, OperationTransformer 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, BaseResource as Xn, MarkupSpan as Xt, ShopProductsResource as Y, UpdateNotificationSettingsInput as Yn, MarkupInput as Yt, CreateShopOrderInput as Z, Page as Zn, TextMarkup as Zt, AllowedMimeType as _, UploadOptions as _n, HttpClient as _r, ShopProduct as _t, ShopFeatureOptions as a, StatusDay as an, FeatureBucketDefinition as ar, ShopDeliveryDestination as at, ImageMimeType as b, RepliesParams as bn, AttemptInterceptor as br, ShopProductSpec as bt, ShopOrderAccessStorage as c, AnnouncementButton as cn, FeatureOperationDefinition as cr, ShopOrderAccessSession as ct, statusDays as d, Portal as dn, FileResolver as dr, ShopOrderItem as dt, PlatformClientVersion as en, Paginator as er, ShopConsentKind as et, isMyProfile as f, Report as fn, PreparedBufferSource as fr, ShopOrderItemInput as ft, AUDIO_MIME_TYPES as g, FilesResource as gn, ResolveFileOptions as gr, ShopPayment as gt, ALLOWED_MIME_TYPES as h, HashtagsResource as hn, ResolveFileContext as hr, ShopOrderSupport as ht, ShopFeatureApi as i, ServiceStatus as in, ClientFeature as ir, ShopDeliveryCountry as it, InteractionEntry as j, PostStats as jn, CommentsParams as jt, UsersResource as k, PollOption as kn, ReportInput as kt, ShopOrderAccessStorageAdapterOptions as l, ChangelogEntry as ln, FeatureRequestOptions as lr, ShopOrderAccessVerification as lt, utcStampToIso as m, HashtagPostsParams as mn, PreparedStreamSource as mr, ShopOrderSummary as mt, SpanRenderFormat as n, PlatformVersions as nn, mapPage as nr, ShopDeliveryCalculation as nt, createShopFeature as o, StatusIncidentLine as on, FeatureContext as or, ShopDeliveryPoint as ot, toDate as p, VerificationStatus as pn, PreparedFileSource as pr, ShopOrderStatus as pt, ShopOrderRequestOptions as q, NotificationListParams as qn, MarkupBuilder as qt, renderSpans as r, PlatformStatus as rn, RateLimitBucketState as rr, ShopDeliveryCity as rt, MemoryShopOrderAccessStorage as s, Announcement as sn, FeatureInstallation as sr, ShopOrder as st, RenderSpansOptions as t, PlatformResource as tn, PaginatorOptions as tr, ShopCreatedOrder as tt, createShopOrderAccessStorage as u, Clan as un, ManagedClientResource as ur, ShopOrderDelivery as ut, AudioMimeType as v, UploadedFile as vn, AttemptContext as vr, ShopProductCategory as vt, fromUrl as w, CommentUpdateResult as wn, OperationTransformContext as wr, ShopSizeChartRow as wt, VIDEO_MIME_TYPES as x, Attachment as xn, AttemptNext as xr, ShopProductStatus as xt, IMAGE_MIME_TYPES as y, CommentsResource as yn, AttemptExtensions as yr, ShopProductColor as yt, ViewTracker as z, CreateCommentInput as zn, post as zt };
2857
- //# sourceMappingURL=render-Cs6AOXbD.d.ts.map
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-DRmuHoEy.d.ts.map
@@ -139,6 +139,18 @@ declare const CaptchaChoice: Readonly<{
139
139
  readonly Cloudflare: "cloudflare";
140
140
  }>;
141
141
  type CaptchaChoice = Loose<(typeof CaptchaChoice)[keyof typeof CaptchaChoice]>;
142
+ /**
143
+ * Насколько точно сервер определил, откуда просят вход по QR-коду. Тип открытый.
144
+ *
145
+ * Приходит в `QrLoginTarget.precision` рядом с координатами.
146
+ */
147
+ declare const QrLocationPrecision: Readonly<{
148
+ /** Координаты города. */
149
+ readonly City: "city";
150
+ /** Координаты страны. */
151
+ readonly Country: "country";
152
+ }>;
153
+ type QrLocationPrecision = Loose<(typeof QrLocationPrecision)[keyof typeof QrLocationPrecision]>;
142
154
  /**
143
155
  * Поле тела запроса, в котором сервер ждёт токен капчи. Тип открытый.
144
156
  *
@@ -355,6 +367,7 @@ declare const ItdErrorCode: Readonly<{
355
367
  readonly QR_TOKEN_MISMATCH: "QR_TOKEN_MISMATCH";
356
368
  readonly QR_ALREADY_USED: "QR_ALREADY_USED";
357
369
  readonly QR_NOT_SCANNED: "QR_NOT_SCANNED";
370
+ readonly QR_APPROVER_NOT_ALLOWED: "QR_APPROVER_NOT_ALLOWED";
358
371
  readonly USER_INACTIVE: "USER_INACTIVE";
359
372
  readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
360
373
  readonly PROFILE_USERNAME_TAKEN: "PROFILE_USERNAME_TAKEN";
@@ -437,7 +450,7 @@ declare const BUCKET_LIMITS: Readonly<{
437
450
  readonly 'files.get': 40;
438
451
  readonly auth: 35;
439
452
  readonly 'auth.refresh': 25;
440
- readonly 'auth.qrStart': 40;
453
+ readonly 'auth.qr': 40;
441
454
  readonly 'auth.qrClaim': 300;
442
455
  readonly search: 25;
443
456
  readonly 'comments.like': 22;
@@ -488,6 +501,11 @@ declare const OPERATIONS: Readonly<{
488
501
  readonly retrySafety: "safe";
489
502
  readonly bucket: "auth";
490
503
  }>;
504
+ readonly 'auth.captchaPage': Readonly<{
505
+ readonly method: "GET";
506
+ readonly retrySafety: "safe";
507
+ readonly bucket: "auth";
508
+ }>;
491
509
  readonly 'auth.signUp': Readonly<{
492
510
  readonly method: "POST";
493
511
  readonly retrySafety: "unsafe";
@@ -551,13 +569,28 @@ declare const OPERATIONS: Readonly<{
551
569
  readonly 'auth.qrStart': Readonly<{
552
570
  readonly method: "POST";
553
571
  readonly retrySafety: "unsafe";
554
- readonly bucket: "auth.qrStart";
572
+ readonly bucket: "auth.qr";
555
573
  }>;
556
574
  readonly 'auth.qrClaim': Readonly<{
557
575
  readonly method: "POST";
558
576
  readonly retrySafety: "unsafe";
559
577
  readonly bucket: "auth.qrClaim";
560
578
  }>;
579
+ readonly 'auth.qrScan': Readonly<{
580
+ readonly method: "POST";
581
+ readonly retrySafety: "unsafe";
582
+ readonly bucket: "auth.qr";
583
+ }>;
584
+ readonly 'auth.qrApprove': Readonly<{
585
+ readonly method: "POST";
586
+ readonly retrySafety: "unsafe";
587
+ readonly bucket: "auth.qr";
588
+ }>;
589
+ readonly 'auth.qrReject': Readonly<{
590
+ readonly method: "POST";
591
+ readonly retrySafety: "unsafe";
592
+ readonly bucket: "auth.qr";
593
+ }>;
561
594
  readonly 'users.me': Readonly<{
562
595
  readonly method: "GET";
563
596
  readonly retrySafety: "safe";
@@ -1417,7 +1450,7 @@ interface OperationDefinition extends OperationMetadata {
1417
1450
  //#endregion
1418
1451
  //#region src/core/version.d.ts
1419
1452
  /** Версия библиотеки. Попадает в `User-Agent`. */
1420
- declare const LIBRARY_VERSION = "0.10.1";
1453
+ declare const LIBRARY_VERSION = "0.10.3";
1421
1454
  //#endregion
1422
1455
  //#region src/core/config.d.ts
1423
1456
  /** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
@@ -2265,5 +2298,5 @@ declare function isKnownNotificationType(type: string): boolean;
2265
2298
  */
2266
2299
  declare function resolveNotificationUrl(notification: Notification): string;
2267
2300
  //#endregion
2268
- export { isItdStateError as $, DEFAULT_RATE_LIMIT_BUCKET as $t, ItdErrorKind as A, RequestOptions as At, ItdStateError as B, RuntimeMode as Bt, ItdApiError as C, ViewReason as Cn, PaginationOptions as Ct, ItdConfigError as D, RawRequestOptions as Dt, ItdAuthError as E, RateLimitOptions as Et, ItdNetworkError as F, RuntimeOptions as Ft, isItdConflictError as G, ItdOperationDefinition as Gt, ItdValidationError as H, systemClock as Ht, ItdNotFoundError as I, QueryParams as It, isItdForbiddenError as J, isBuiltInOperationId as Jt, isItdError as K, OPERATIONS as Kt, ItdPhoneVerificationError as L, QueryValue as Lt, ItdFileError as M, RetryContext as Mt, ItdFileErrorReason as N, RetryDecisionContext as Nt, ItdConflictError as O, RequestContext as Ot, ItdForbiddenError as P, RetryOptions as Pt, isItdServerError as Q, BUCKET_LIMITS as Qt, ItdRateLimitError as R, ServiceDefinition as Rt, ItdAbortError as S, SpanType as Sn, OperationRequestOptions as St, ItdApiErrorKind as T, WallAccess as Tn, RateLimitBucketOverride as Tt, isItdApiError as U, BuiltInOperationId as Ut, ItdTimeoutError as V, ItdClock as Vt, isItdAuthError as W, CustomOperationId as Wt, isItdPhoneVerificationError as X, operationMethod as Xt, isItdNotFoundError as Y, operationBucket as Yt, isItdRateLimitError as Z, operationRetrySafety as Zt, PrivacySettings as _, Loose as _n, OperationMethod as _t, NotificationEvent as a, AccessType as an, bearerToken as at, SubscriptionState as b, ReportTargetType as bn, ErrorContextHook as bt, NotificationSettings as c, CaptchaField as cn, Listener as ct, AuthUser as d, EventChannelStatus as dn, STATUS_SERVICE as dt, RateLimitBucket as en, isItdValidationError as et, Author as f, FeedTab as fn, LIBRARY_VERSION as ft, PinsResult as g, LikesVisibility as gn, OperationMetadata as gt, Pin as h, ItdErrorCode as hn, OperationContract as ht, formatNotificationText as i, UserRef as in, anonymousAuth as it, ItdFieldErrors as j, ResponseContext as jt, ItdError as k, RequestExtensions as kt, Actor as l, CaptchaType as ln, Unsubscribe as lt, MyProfile as m, InteractionType as mn, OperationAnnotations as mt, canonicalNotificationType as n, Span as nn, AuthIdentity as nt, normalizeNotification as o, AttachmentType as on, tokenProvider as ot, FollowResult as p, IncidentKind as pn, FeatureOperationId as pt, isItdFileError as q, OperationId as qt, isKnownNotificationType as r, UserId as rn, AuthProvider as rt, Notification as s, CaptchaChoice as sn, Emitter as st, resolveNotificationUrl as t, IsoDate as tn, ClientConnection as tt, AuthState as u, CommentSort as un, DEFAULT_BASE_URL as ut, Profile as v, NotificationType as vn, RetrySafety as vt, ItdApiErrorInit as w, ViewSource as wn, RateLimitBucketContext as wt, UserSummary as x, ServiceState as xn, Logger as xt, PublicProfile as y, ReportReason as yn, ClientHooks as yt, ItdServerError as z, RateLimitPacing as zt };
2269
- //# sourceMappingURL=url-Dum7r_FT.d.cts.map
2301
+ export { isItdStateError as $, DEFAULT_RATE_LIMIT_BUCKET as $t, ItdErrorKind as A, RequestOptions as At, ItdStateError as B, RuntimeMode as Bt, ItdApiError as C, SpanType as Cn, PaginationOptions as Ct, ItdConfigError as D, RawRequestOptions as Dt, ItdAuthError as E, WallAccess as En, RateLimitOptions as Et, ItdNetworkError as F, RuntimeOptions as Ft, isItdConflictError as G, ItdOperationDefinition as Gt, ItdValidationError as H, systemClock as Ht, ItdNotFoundError as I, QueryParams as It, isItdForbiddenError as J, isBuiltInOperationId as Jt, isItdError as K, OPERATIONS as Kt, ItdPhoneVerificationError as L, QueryValue as Lt, ItdFileError as M, RetryContext as Mt, ItdFileErrorReason as N, RetryDecisionContext as Nt, ItdConflictError as O, RequestContext as Ot, ItdForbiddenError as P, RetryOptions as Pt, isItdServerError as Q, BUCKET_LIMITS as Qt, ItdRateLimitError as R, ServiceDefinition as Rt, ItdAbortError as S, ServiceState as Sn, OperationRequestOptions as St, ItdApiErrorKind as T, ViewSource as Tn, RateLimitBucketOverride as Tt, isItdApiError as U, BuiltInOperationId as Ut, ItdTimeoutError as V, ItdClock as Vt, isItdAuthError as W, CustomOperationId as Wt, isItdPhoneVerificationError as X, operationMethod as Xt, isItdNotFoundError as Y, operationBucket as Yt, isItdRateLimitError as Z, operationRetrySafety as Zt, PrivacySettings as _, Loose as _n, OperationMethod as _t, NotificationEvent as a, AccessType as an, bearerToken as at, SubscriptionState as b, ReportReason as bn, ErrorContextHook as bt, NotificationSettings as c, CaptchaField as cn, Listener as ct, AuthUser as d, EventChannelStatus as dn, STATUS_SERVICE as dt, RateLimitBucket as en, isItdValidationError as et, Author as f, FeedTab as fn, LIBRARY_VERSION as ft, PinsResult as g, LikesVisibility as gn, OperationMetadata as gt, Pin as h, ItdErrorCode as hn, OperationContract as ht, formatNotificationText as i, UserRef as in, anonymousAuth as it, ItdFieldErrors as j, ResponseContext as jt, ItdError as k, RequestExtensions as kt, Actor as l, CaptchaType as ln, Unsubscribe as lt, MyProfile as m, InteractionType as mn, OperationAnnotations as mt, canonicalNotificationType as n, Span as nn, AuthIdentity as nt, normalizeNotification as o, AttachmentType as on, tokenProvider as ot, FollowResult as p, IncidentKind as pn, FeatureOperationId as pt, isItdFileError as q, OperationId as qt, isKnownNotificationType as r, UserId as rn, AuthProvider as rt, Notification as s, CaptchaChoice as sn, Emitter as st, resolveNotificationUrl as t, IsoDate as tn, ClientConnection as tt, AuthState as u, CommentSort as un, DEFAULT_BASE_URL as ut, Profile as v, NotificationType as vn, RetrySafety as vt, ItdApiErrorInit as w, ViewReason as wn, RateLimitBucketContext as wt, UserSummary as x, ReportTargetType as xn, Logger as xt, PublicProfile as y, QrLocationPrecision as yn, ClientHooks as yt, ItdServerError as z, RateLimitPacing as zt };
2302
+ //# sourceMappingURL=url-BLnX-LYt.d.cts.map
@@ -139,6 +139,18 @@ declare const CaptchaChoice: Readonly<{
139
139
  readonly Cloudflare: "cloudflare";
140
140
  }>;
141
141
  type CaptchaChoice = Loose<(typeof CaptchaChoice)[keyof typeof CaptchaChoice]>;
142
+ /**
143
+ * Насколько точно сервер определил, откуда просят вход по QR-коду. Тип открытый.
144
+ *
145
+ * Приходит в `QrLoginTarget.precision` рядом с координатами.
146
+ */
147
+ declare const QrLocationPrecision: Readonly<{
148
+ /** Координаты города. */
149
+ readonly City: "city";
150
+ /** Координаты страны. */
151
+ readonly Country: "country";
152
+ }>;
153
+ type QrLocationPrecision = Loose<(typeof QrLocationPrecision)[keyof typeof QrLocationPrecision]>;
142
154
  /**
143
155
  * Поле тела запроса, в котором сервер ждёт токен капчи. Тип открытый.
144
156
  *
@@ -355,6 +367,7 @@ declare const ItdErrorCode: Readonly<{
355
367
  readonly QR_TOKEN_MISMATCH: "QR_TOKEN_MISMATCH";
356
368
  readonly QR_ALREADY_USED: "QR_ALREADY_USED";
357
369
  readonly QR_NOT_SCANNED: "QR_NOT_SCANNED";
370
+ readonly QR_APPROVER_NOT_ALLOWED: "QR_APPROVER_NOT_ALLOWED";
358
371
  readonly USER_INACTIVE: "USER_INACTIVE";
359
372
  readonly TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS";
360
373
  readonly PROFILE_USERNAME_TAKEN: "PROFILE_USERNAME_TAKEN";
@@ -437,7 +450,7 @@ declare const BUCKET_LIMITS: Readonly<{
437
450
  readonly 'files.get': 40;
438
451
  readonly auth: 35;
439
452
  readonly 'auth.refresh': 25;
440
- readonly 'auth.qrStart': 40;
453
+ readonly 'auth.qr': 40;
441
454
  readonly 'auth.qrClaim': 300;
442
455
  readonly search: 25;
443
456
  readonly 'comments.like': 22;
@@ -488,6 +501,11 @@ declare const OPERATIONS: Readonly<{
488
501
  readonly retrySafety: "safe";
489
502
  readonly bucket: "auth";
490
503
  }>;
504
+ readonly 'auth.captchaPage': Readonly<{
505
+ readonly method: "GET";
506
+ readonly retrySafety: "safe";
507
+ readonly bucket: "auth";
508
+ }>;
491
509
  readonly 'auth.signUp': Readonly<{
492
510
  readonly method: "POST";
493
511
  readonly retrySafety: "unsafe";
@@ -551,13 +569,28 @@ declare const OPERATIONS: Readonly<{
551
569
  readonly 'auth.qrStart': Readonly<{
552
570
  readonly method: "POST";
553
571
  readonly retrySafety: "unsafe";
554
- readonly bucket: "auth.qrStart";
572
+ readonly bucket: "auth.qr";
555
573
  }>;
556
574
  readonly 'auth.qrClaim': Readonly<{
557
575
  readonly method: "POST";
558
576
  readonly retrySafety: "unsafe";
559
577
  readonly bucket: "auth.qrClaim";
560
578
  }>;
579
+ readonly 'auth.qrScan': Readonly<{
580
+ readonly method: "POST";
581
+ readonly retrySafety: "unsafe";
582
+ readonly bucket: "auth.qr";
583
+ }>;
584
+ readonly 'auth.qrApprove': Readonly<{
585
+ readonly method: "POST";
586
+ readonly retrySafety: "unsafe";
587
+ readonly bucket: "auth.qr";
588
+ }>;
589
+ readonly 'auth.qrReject': Readonly<{
590
+ readonly method: "POST";
591
+ readonly retrySafety: "unsafe";
592
+ readonly bucket: "auth.qr";
593
+ }>;
561
594
  readonly 'users.me': Readonly<{
562
595
  readonly method: "GET";
563
596
  readonly retrySafety: "safe";
@@ -1417,7 +1450,7 @@ interface OperationDefinition extends OperationMetadata {
1417
1450
  //#endregion
1418
1451
  //#region src/core/version.d.ts
1419
1452
  /** Версия библиотеки. Попадает в `User-Agent`. */
1420
- declare const LIBRARY_VERSION = "0.10.1";
1453
+ declare const LIBRARY_VERSION = "0.10.3";
1421
1454
  //#endregion
1422
1455
  //#region src/core/config.d.ts
1423
1456
  /** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
@@ -2265,5 +2298,5 @@ declare function isKnownNotificationType(type: string): boolean;
2265
2298
  */
2266
2299
  declare function resolveNotificationUrl(notification: Notification): string;
2267
2300
  //#endregion
2268
- export { isItdStateError as $, DEFAULT_RATE_LIMIT_BUCKET as $t, ItdErrorKind as A, RequestOptions as At, ItdStateError as B, RuntimeMode as Bt, ItdApiError as C, ViewReason as Cn, PaginationOptions as Ct, ItdConfigError as D, RawRequestOptions as Dt, ItdAuthError as E, RateLimitOptions as Et, ItdNetworkError as F, RuntimeOptions as Ft, isItdConflictError as G, ItdOperationDefinition as Gt, ItdValidationError as H, systemClock as Ht, ItdNotFoundError as I, QueryParams as It, isItdForbiddenError as J, isBuiltInOperationId as Jt, isItdError as K, OPERATIONS as Kt, ItdPhoneVerificationError as L, QueryValue as Lt, ItdFileError as M, RetryContext as Mt, ItdFileErrorReason as N, RetryDecisionContext as Nt, ItdConflictError as O, RequestContext as Ot, ItdForbiddenError as P, RetryOptions as Pt, isItdServerError as Q, BUCKET_LIMITS as Qt, ItdRateLimitError as R, ServiceDefinition as Rt, ItdAbortError as S, SpanType as Sn, OperationRequestOptions as St, ItdApiErrorKind as T, WallAccess as Tn, RateLimitBucketOverride as Tt, isItdApiError as U, BuiltInOperationId as Ut, ItdTimeoutError as V, ItdClock as Vt, isItdAuthError as W, CustomOperationId as Wt, isItdPhoneVerificationError as X, operationMethod as Xt, isItdNotFoundError as Y, operationBucket as Yt, isItdRateLimitError as Z, operationRetrySafety as Zt, PrivacySettings as _, Loose as _n, OperationMethod as _t, NotificationEvent as a, AccessType as an, bearerToken as at, SubscriptionState as b, ReportTargetType as bn, ErrorContextHook as bt, NotificationSettings as c, CaptchaField as cn, Listener as ct, AuthUser as d, EventChannelStatus as dn, STATUS_SERVICE as dt, RateLimitBucket as en, isItdValidationError as et, Author as f, FeedTab as fn, LIBRARY_VERSION as ft, PinsResult as g, LikesVisibility as gn, OperationMetadata as gt, Pin as h, ItdErrorCode as hn, OperationContract as ht, formatNotificationText as i, UserRef as in, anonymousAuth as it, ItdFieldErrors as j, ResponseContext as jt, ItdError as k, RequestExtensions as kt, Actor as l, CaptchaType as ln, Unsubscribe as lt, MyProfile as m, InteractionType as mn, OperationAnnotations as mt, canonicalNotificationType as n, Span as nn, AuthIdentity as nt, normalizeNotification as o, AttachmentType as on, tokenProvider as ot, FollowResult as p, IncidentKind as pn, FeatureOperationId as pt, isItdFileError as q, OperationId as qt, isKnownNotificationType as r, UserId as rn, AuthProvider as rt, Notification as s, CaptchaChoice as sn, Emitter as st, resolveNotificationUrl as t, IsoDate as tn, ClientConnection as tt, AuthState as u, CommentSort as un, DEFAULT_BASE_URL as ut, Profile as v, NotificationType as vn, RetrySafety as vt, ItdApiErrorInit as w, ViewSource as wn, RateLimitBucketContext as wt, UserSummary as x, ServiceState as xn, Logger as xt, PublicProfile as y, ReportReason as yn, ClientHooks as yt, ItdServerError as z, RateLimitPacing as zt };
2269
- //# sourceMappingURL=url-Dum7r_FT.d.ts.map
2301
+ export { isItdStateError as $, DEFAULT_RATE_LIMIT_BUCKET as $t, ItdErrorKind as A, RequestOptions as At, ItdStateError as B, RuntimeMode as Bt, ItdApiError as C, SpanType as Cn, PaginationOptions as Ct, ItdConfigError as D, RawRequestOptions as Dt, ItdAuthError as E, WallAccess as En, RateLimitOptions as Et, ItdNetworkError as F, RuntimeOptions as Ft, isItdConflictError as G, ItdOperationDefinition as Gt, ItdValidationError as H, systemClock as Ht, ItdNotFoundError as I, QueryParams as It, isItdForbiddenError as J, isBuiltInOperationId as Jt, isItdError as K, OPERATIONS as Kt, ItdPhoneVerificationError as L, QueryValue as Lt, ItdFileError as M, RetryContext as Mt, ItdFileErrorReason as N, RetryDecisionContext as Nt, ItdConflictError as O, RequestContext as Ot, ItdForbiddenError as P, RetryOptions as Pt, isItdServerError as Q, BUCKET_LIMITS as Qt, ItdRateLimitError as R, ServiceDefinition as Rt, ItdAbortError as S, ServiceState as Sn, OperationRequestOptions as St, ItdApiErrorKind as T, ViewSource as Tn, RateLimitBucketOverride as Tt, isItdApiError as U, BuiltInOperationId as Ut, ItdTimeoutError as V, ItdClock as Vt, isItdAuthError as W, CustomOperationId as Wt, isItdPhoneVerificationError as X, operationMethod as Xt, isItdNotFoundError as Y, operationBucket as Yt, isItdRateLimitError as Z, operationRetrySafety as Zt, PrivacySettings as _, Loose as _n, OperationMethod as _t, NotificationEvent as a, AccessType as an, bearerToken as at, SubscriptionState as b, ReportReason as bn, ErrorContextHook as bt, NotificationSettings as c, CaptchaField as cn, Listener as ct, AuthUser as d, EventChannelStatus as dn, STATUS_SERVICE as dt, RateLimitBucket as en, isItdValidationError as et, Author as f, FeedTab as fn, LIBRARY_VERSION as ft, PinsResult as g, LikesVisibility as gn, OperationMetadata as gt, Pin as h, ItdErrorCode as hn, OperationContract as ht, formatNotificationText as i, UserRef as in, anonymousAuth as it, ItdFieldErrors as j, ResponseContext as jt, ItdError as k, RequestExtensions as kt, Actor as l, CaptchaType as ln, Unsubscribe as lt, MyProfile as m, InteractionType as mn, OperationAnnotations as mt, canonicalNotificationType as n, Span as nn, AuthIdentity as nt, normalizeNotification as o, AttachmentType as on, tokenProvider as ot, FollowResult as p, IncidentKind as pn, FeatureOperationId as pt, isItdFileError as q, OperationId as qt, isKnownNotificationType as r, UserId as rn, AuthProvider as rt, Notification as s, CaptchaChoice as sn, Emitter as st, resolveNotificationUrl as t, IsoDate as tn, ClientConnection as tt, AuthState as u, CommentSort as un, DEFAULT_BASE_URL as ut, Profile as v, NotificationType as vn, RetrySafety as vt, ItdApiErrorInit as w, ViewReason as wn, RateLimitBucketContext as wt, UserSummary as x, ReportTargetType as xn, Logger as xt, PublicProfile as y, QrLocationPrecision as yn, ClientHooks as yt, ItdServerError as z, RateLimitPacing as zt };
2302
+ //# sourceMappingURL=url-BLnX-LYt.d.ts.map
@@ -85,7 +85,7 @@ function requireOptionalBoolean(value, name) {
85
85
  //#endregion
86
86
  //#region src/core/version.ts
87
87
  /** Версия библиотеки. Попадает в `User-Agent`. */
88
- const LIBRARY_VERSION = "0.10.1";
88
+ const LIBRARY_VERSION = "0.10.3";
89
89
  //#endregion
90
90
  //#region src/core/config.ts
91
91
  /** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
@@ -2813,7 +2813,7 @@ const BUCKET_LIMITS = Object.freeze({
2813
2813
  "files.get": 40,
2814
2814
  auth: 35,
2815
2815
  "auth.refresh": 25,
2816
- "auth.qrStart": 40,
2816
+ "auth.qr": 40,
2817
2817
  "auth.qrClaim": 300,
2818
2818
  search: 25,
2819
2819
  "comments.like": 22,
@@ -2873,6 +2873,11 @@ const OPERATIONS = freezeOperations({
2873
2873
  retrySafety: RetrySafety.Safe,
2874
2874
  bucket: "auth"
2875
2875
  },
2876
+ "auth.captchaPage": {
2877
+ method: "GET",
2878
+ retrySafety: RetrySafety.Safe,
2879
+ bucket: "auth"
2880
+ },
2876
2881
  "auth.signUp": {
2877
2882
  method: "POST",
2878
2883
  retrySafety: RetrySafety.Unsafe,
@@ -2936,13 +2941,28 @@ const OPERATIONS = freezeOperations({
2936
2941
  "auth.qrStart": {
2937
2942
  method: "POST",
2938
2943
  retrySafety: RetrySafety.Unsafe,
2939
- bucket: "auth.qrStart"
2944
+ bucket: "auth.qr"
2940
2945
  },
2941
2946
  "auth.qrClaim": {
2942
2947
  method: "POST",
2943
2948
  retrySafety: RetrySafety.Unsafe,
2944
2949
  bucket: "auth.qrClaim"
2945
2950
  },
2951
+ "auth.qrScan": {
2952
+ method: "POST",
2953
+ retrySafety: RetrySafety.Unsafe,
2954
+ bucket: "auth.qr"
2955
+ },
2956
+ "auth.qrApprove": {
2957
+ method: "POST",
2958
+ retrySafety: RetrySafety.Unsafe,
2959
+ bucket: "auth.qr"
2960
+ },
2961
+ "auth.qrReject": {
2962
+ method: "POST",
2963
+ retrySafety: RetrySafety.Unsafe,
2964
+ bucket: "auth.qr"
2965
+ },
2946
2966
  "users.me": {
2947
2967
  method: "GET",
2948
2968
  retrySafety: RetrySafety.Safe,
@@ -3506,6 +3526,17 @@ const CaptchaChoice = Object.freeze({
3506
3526
  Cloudflare: CaptchaType.Cloudflare
3507
3527
  });
3508
3528
  /**
3529
+ * Насколько точно сервер определил, откуда просят вход по QR-коду. Тип открытый.
3530
+ *
3531
+ * Приходит в `QrLoginTarget.precision` рядом с координатами.
3532
+ */
3533
+ const QrLocationPrecision = Object.freeze({
3534
+ /** Координаты города. */
3535
+ City: "city",
3536
+ /** Координаты страны. */
3537
+ Country: "country"
3538
+ });
3539
+ /**
3509
3540
  * Поле тела запроса, в котором сервер ждёт токен капчи. Тип открытый.
3510
3541
  *
3511
3542
  * При `CaptchaChoice.Auto` имя берётся из ответа сервера; эти значения — умолчания
@@ -3692,6 +3723,7 @@ const ItdErrorCode = Object.freeze({
3692
3723
  QR_TOKEN_MISMATCH: "QR_TOKEN_MISMATCH",
3693
3724
  QR_ALREADY_USED: "QR_ALREADY_USED",
3694
3725
  QR_NOT_SCANNED: "QR_NOT_SCANNED",
3726
+ QR_APPROVER_NOT_ALLOWED: "QR_APPROVER_NOT_ALLOWED",
3695
3727
  USER_INACTIVE: "USER_INACTIVE",
3696
3728
  TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS",
3697
3729
  PROFILE_USERNAME_TAKEN: "PROFILE_USERNAME_TAKEN",
@@ -4194,6 +4226,12 @@ Object.defineProperty(exports, "OPERATIONS", {
4194
4226
  return OPERATIONS;
4195
4227
  }
4196
4228
  });
4229
+ Object.defineProperty(exports, "QrLocationPrecision", {
4230
+ enumerable: true,
4231
+ get: function() {
4232
+ return QrLocationPrecision;
4233
+ }
4234
+ });
4197
4235
  Object.defineProperty(exports, "RateLimitPacing", {
4198
4236
  enumerable: true,
4199
4237
  get: function() {
@@ -4495,4 +4533,4 @@ Object.defineProperty(exports, "voidResult", {
4495
4533
  }
4496
4534
  });
4497
4535
 
4498
- //# sourceMappingURL=url-DgTYZN_v.cjs.map
4536
+ //# sourceMappingURL=url-BnO1aWsd.cjs.map