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
|
@@ -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.
|
|
88
|
+
const LIBRARY_VERSION = "0.10.2";
|
|
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.
|
|
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.
|
|
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,
|
|
@@ -3494,10 +3514,10 @@ const CaptchaType = Object.freeze({
|
|
|
3494
3514
|
Cloudflare: "cloudflare"
|
|
3495
3515
|
});
|
|
3496
3516
|
/**
|
|
3497
|
-
* Какую капчу
|
|
3517
|
+
* Какую капчу проходить при входе по логину и паролю.
|
|
3498
3518
|
*
|
|
3499
3519
|
* `CaptchaChoice.Auto` — спросить сервер перед каждым входом; названный провайдер
|
|
3500
|
-
*
|
|
3520
|
+
* обходится без этого запроса.
|
|
3501
3521
|
*/
|
|
3502
3522
|
const CaptchaChoice = Object.freeze({
|
|
3503
3523
|
/** Провайдера называет сервер. */
|
|
@@ -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",
|
|
@@ -4074,6 +4106,6 @@ function resolveNotificationUrl(notification) {
|
|
|
4074
4106
|
return clickUrl || "/notifications";
|
|
4075
4107
|
}
|
|
4076
4108
|
//#endregion
|
|
4077
|
-
export {
|
|
4109
|
+
export { identityResult as $, SpanType as A, operationRetrySafety as B, ItdErrorCode as C, ReportReason as D, QrLocationPrecision as E, OPERATIONS as F, isRecord as G, DEFAULT_RATE_LIMIT_BUCKET as H, defineBuiltInOperation as I, pickNumber as J, pickArray as K, isBuiltInOperationId as L, ViewSource as M, WallAccess as N, ReportTargetType as O, ITD_CATALOG as P, defineOperation as Q, operationBucket as R, InteractionType as S, NotificationType as T, createClientRuntime as U, BUCKET_LIMITS as V, createApiError as W, pickString as X, pickObject as Y, RetrySafety as Z, CaptchaType as _, installAsyncDisposeFallback as _t, tokenProvider as a, assertPluginRemovable as at, FeedTab as b, normalizeNotification as c, DEFAULT_STATUS_BASE_URL as ct, canonicalNotificationType as d, LIBRARY_VERSION as dt, voidResult as et, isKnownNotificationType as f, isRecord$1 as ft, CaptchaField as g, systemClock as gt, CaptchaChoice as h, createDeadline as ht, bearerToken as i, RequestQueuePool as it, ViewReason as j, ServiceState as k, readNotificationEvent as l, STATUS_SERVICE as lt, AttachmentType as m, RateLimitPacing as mt, formatNotificationText as n, requestAbortError as nt, passthroughOperation as o, orderPluginDefinitions as ot, AccessType as p, requireOptionalBoolean as pt, pickBoolean as q, anonymousAuth as r, mergeService as rt, voidOperation as s, DEFAULT_BASE_URL as st, resolveNotificationUrl as t, createRequestAbortScope as tt, readUnreadCountEvent as u, resolveRateLimit as ut, CommentSort as v, LikesVisibility as w, IncidentKind as x, EventChannelStatus as y, operationMethod as z };
|
|
4078
4110
|
|
|
4079
|
-
//# sourceMappingURL=url-
|
|
4111
|
+
//# sourceMappingURL=url-D0KJ5pws.js.map
|