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
|
@@ -127,10 +127,10 @@ declare const CaptchaType: Readonly<{
|
|
|
127
127
|
}>;
|
|
128
128
|
type CaptchaType = Loose<(typeof CaptchaType)[keyof typeof CaptchaType]>;
|
|
129
129
|
/**
|
|
130
|
-
* Какую капчу
|
|
130
|
+
* Какую капчу проходить при входе по логину и паролю.
|
|
131
131
|
*
|
|
132
132
|
* `CaptchaChoice.Auto` — спросить сервер перед каждым входом; названный провайдер
|
|
133
|
-
*
|
|
133
|
+
* обходится без этого запроса.
|
|
134
134
|
*/
|
|
135
135
|
declare const CaptchaChoice: Readonly<{
|
|
136
136
|
/** Провайдера называет сервер. */
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
1453
|
+
declare const LIBRARY_VERSION = "0.10.2";
|
|
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,
|
|
2269
|
-
//# sourceMappingURL=url-
|
|
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-Qv7smwHP.d.cts.map
|
|
@@ -127,10 +127,10 @@ declare const CaptchaType: Readonly<{
|
|
|
127
127
|
}>;
|
|
128
128
|
type CaptchaType = Loose<(typeof CaptchaType)[keyof typeof CaptchaType]>;
|
|
129
129
|
/**
|
|
130
|
-
* Какую капчу
|
|
130
|
+
* Какую капчу проходить при входе по логину и паролю.
|
|
131
131
|
*
|
|
132
132
|
* `CaptchaChoice.Auto` — спросить сервер перед каждым входом; названный провайдер
|
|
133
|
-
*
|
|
133
|
+
* обходится без этого запроса.
|
|
134
134
|
*/
|
|
135
135
|
declare const CaptchaChoice: Readonly<{
|
|
136
136
|
/** Провайдера называет сервер. */
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
1453
|
+
declare const LIBRARY_VERSION = "0.10.2";
|
|
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,
|
|
2269
|
-
//# sourceMappingURL=url-
|
|
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-Qv7smwHP.d.ts.map
|