itd-api 0.12.1 → 0.13.1
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 +715 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +515 -46
- package/dist/index.d.ts +515 -46
- package/dist/index.js +707 -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-Bip3qvCc.d.cts} +42 -63
- package/dist/shared/{events-9215JDDd.d.ts → events-DF1elRzZ.d.ts} +2 -23
- package/dist/shared/{events-_iYo8EP5.js → events-DRbBDq9p.js} +30 -40
- package/dist/shared/events-DRbBDq9p.js.map +1 -0
- package/dist/shared/{events-BKyxZQNw.cjs → events-DcxmyPTX.cjs} +30 -40
- package/dist/shared/events-DcxmyPTX.cjs.map +1 -0
- 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-BwXlaoD4.js} +3 -4
- package/dist/shared/{key-value-store-w1Dn5Pjb.js.map → key-value-store-BwXlaoD4.js.map} +1 -1
- package/dist/shared/{key-value-store-DYSPsqwq.cjs → key-value-store-CmnIjuE4.cjs} +3 -4
- package/dist/shared/{key-value-store-DYSPsqwq.cjs.map → key-value-store-CmnIjuE4.cjs.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-LkljOSzA.d.ts → multi-storage-DQiERirK.d.ts} +3 -6
- package/dist/shared/{multi-storage-DiBSx64p.js → multi-storage-DffEAzdc.js} +6 -7
- package/dist/shared/{multi-storage-DiBSx64p.js.map → multi-storage-DffEAzdc.js.map} +1 -1
- package/dist/shared/{multi-storage-7Y3KCseI.cjs → multi-storage-Dp5x6OOl.cjs} +6 -7
- package/dist/shared/multi-storage-Dp5x6OOl.cjs.map +1 -0
- package/dist/shared/{multi-storage-BEL7tcKn.d.cts → multi-storage-OGWNMK3x.d.cts} +3 -6
- package/dist/shared/{options-DLlaETn_.js → options-Ddyc5qec.js} +8 -12
- package/dist/shared/{options-DLlaETn_.js.map → options-Ddyc5qec.js.map} +1 -1
- package/dist/shared/{options-D5ttspWk.cjs → options-DsmQRyx4.cjs} +8 -12
- package/dist/shared/{options-D5ttspWk.cjs.map → options-DsmQRyx4.cjs.map} +1 -1
- package/dist/shared/{redact-DSfdmeY7.js → redact-BCmucE19.js} +16 -16
- package/dist/shared/redact-BCmucE19.js.map +1 -0
- package/dist/shared/{redact-BbhtA9o-.cjs → redact-BuXRKC1G.cjs} +16 -16
- package/dist/shared/redact-BuXRKC1G.cjs.map +1 -0
- package/dist/shared/{render-BS09ygcy.d.ts → render-Bvv1V5Tp.d.ts} +154 -102
- package/dist/shared/{render-BQvC5UxF.cjs → render-C1lmsu1i.cjs} +204 -109
- package/dist/shared/render-C1lmsu1i.cjs.map +1 -0
- package/dist/shared/{render-X2JCo1JS.d.cts → render-D83t9ckd.d.cts} +152 -251
- package/dist/shared/{render-CFoF2WaH.js → render-DJKZqv9O.js} +181 -110
- package/dist/shared/render-DJKZqv9O.js.map +1 -0
- package/dist/shared/{storage-86wiHeXD.js → storage-Bc4lWtSj.js} +4 -5
- package/dist/shared/{storage-86wiHeXD.js.map → storage-Bc4lWtSj.js.map} +1 -1
- package/dist/shared/{storage-CTRGT5wF.d.ts → storage-C_ZujAZt.d.ts} +2 -5
- package/dist/shared/{storage-BQrtKon9.d.cts → storage-FtS4NIC7.d.cts} +2 -5
- package/dist/shared/{storage-CIjejZDt.cjs → storage-e2xYL6ro.cjs} +4 -5
- package/dist/shared/{storage-CIjejZDt.cjs.map → storage-e2xYL6ro.cjs.map} +1 -1
- package/dist/shared/{url-ioIaywDi.cjs → url-CXRaoR_w.cjs} +263 -91
- package/dist/shared/url-CXRaoR_w.cjs.map +1 -0
- package/dist/shared/{url-_R0oJ7gE.d.cts → url-V4bCae35.d.ts} +222 -78
- package/dist/shared/{url-CdT4lMxQ.js → url-aw_NZdVY.js} +263 -91
- package/dist/shared/url-aw_NZdVY.js.map +1 -0
- package/dist/shared/{url-_R0oJ7gE.d.ts → url-n_h2pvHA.d.cts} +1915 -1620
- package/dist/shared/{validate-CFx2dISs.cjs → validate-BHKy_YMv.cjs} +8 -7
- package/dist/shared/validate-BHKy_YMv.cjs.map +1 -0
- package/dist/shared/{validate-D7_kq3g5.js → validate-BQzL_oJ4.js} +8 -7
- package/dist/shared/validate-BQzL_oJ4.js.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,6 +1,6 @@
|
|
|
1
|
-
import { C as ItdValidationError, N as isItdRateLimitError, S as ItdTimeoutError, T as isItdApiError, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, l as ItdConfigError, n as isRecord, o as ItdApiError, p as ItdFileError, r as requireNonNegative, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./validate-
|
|
2
|
-
import { C as shouldSendCredentials, E as LogLevel, O as isLevelEnabled, S as resolveFetch, _ as originOf, b as isBlob, d as buildQuery, g as normalizeBaseUrl, h as joinUrl, i as redactHeaders, k as resolveLogger, m as isSameSite, n as redactBody, p as hostOf, s as CookieJar, v as RuntimeMode, w as shouldUseCookieJar, y as createDeviceId } from "./redact-
|
|
3
|
-
|
|
1
|
+
import { C as ItdValidationError, N as isItdRateLimitError, S as ItdTimeoutError, T as isItdApiError, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, l as ItdConfigError, n as isRecord, o as ItdApiError, p as ItdFileError, r as requireNonNegative, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./validate-BQzL_oJ4.js";
|
|
2
|
+
import { C as shouldSendCredentials, E as LogLevel, O as isLevelEnabled, S as resolveFetch, _ as originOf, b as isBlob, d as buildQuery, g as normalizeBaseUrl, h as joinUrl, i as redactHeaders, k as resolveLogger, m as isSameSite, n as redactBody, p as hostOf, s as CookieJar, v as RuntimeMode, w as shouldUseCookieJar, y as createDeviceId } from "./redact-BCmucE19.js";
|
|
3
|
+
// src/core/async-dispose.ts
|
|
4
4
|
/**
|
|
5
5
|
* Подставляет метод `await using` там, где `Symbol.asyncDispose` отсутствует.
|
|
6
6
|
*
|
|
@@ -17,8 +17,7 @@ function installAsyncDisposeFallback(target) {
|
|
|
17
17
|
prototype[Symbol.for("Symbol.asyncDispose")] = prototype.undefined;
|
|
18
18
|
delete prototype.undefined;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
//#region src/core/clock.ts
|
|
20
|
+
// src/core/clock.ts
|
|
22
21
|
/** Системные часы, используемые клиентом по умолчанию. */
|
|
23
22
|
const systemClock = Object.freeze({
|
|
24
23
|
now: () => Date.now(),
|
|
@@ -50,8 +49,7 @@ function createDeadline(timeout, clock = systemClock) {
|
|
|
50
49
|
cancel: clock.schedule(() => expire(), timeout)
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
|
-
|
|
54
|
-
//#region src/core/scheduling/pacing.ts
|
|
52
|
+
// src/core/scheduling/pacing.ts
|
|
55
53
|
/** Реакция на остаток лимита из заголовков ответа. */
|
|
56
54
|
const RateLimitPacing = Object.freeze({
|
|
57
55
|
/** Задержек нет, пока в бакете есть остаток; исчерпанный бакет ждёт `60000 / limit`. */
|
|
@@ -61,12 +59,10 @@ const RateLimitPacing = Object.freeze({
|
|
|
61
59
|
/** Остаток на темп не влияет; остаётся пауза после `429`. */
|
|
62
60
|
Off: "off"
|
|
63
61
|
});
|
|
64
|
-
|
|
65
|
-
//#region src/core/version.ts
|
|
62
|
+
// src/core/version.ts
|
|
66
63
|
/** Версия библиотеки. Попадает в `User-Agent`. */
|
|
67
|
-
const LIBRARY_VERSION = "0.
|
|
68
|
-
|
|
69
|
-
//#region src/core/config.ts
|
|
64
|
+
const LIBRARY_VERSION = "0.13.1";
|
|
65
|
+
// src/core/config.ts
|
|
70
66
|
/** Базовый URL API итд.com. Домен записан в punycode: `итд.com`. */
|
|
71
67
|
const DEFAULT_BASE_URL = "https://xn--d1ah4a.com";
|
|
72
68
|
/** Базовый URL страницы статуса. Домен записан в punycode: `статус.итд.com`. */
|
|
@@ -298,8 +294,7 @@ function resolveRuntimeConfig(options, catalog) {
|
|
|
298
294
|
logger: resolveLogger(options.logger)
|
|
299
295
|
};
|
|
300
296
|
}
|
|
301
|
-
|
|
302
|
-
//#region src/core/plugins/attempts.ts
|
|
297
|
+
// src/core/plugins/attempts.ts
|
|
303
298
|
const ATTEMPT_SCOPE = Symbol("itd-api.attempt-interceptors");
|
|
304
299
|
/** Структурная проверка сохраняет совместимость с fetch-polyfill из другого realm. */
|
|
305
300
|
function isResponse(value) {
|
|
@@ -336,8 +331,7 @@ async function runAttemptInterceptors(interceptors, context, execute) {
|
|
|
336
331
|
return response;
|
|
337
332
|
}, execute)();
|
|
338
333
|
}
|
|
339
|
-
|
|
340
|
-
//#region src/core/plugins/order.ts
|
|
334
|
+
// src/core/plugins/order.ts
|
|
341
335
|
const RELATION_FIELDS = [
|
|
342
336
|
"requires",
|
|
343
337
|
"conflicts",
|
|
@@ -449,8 +443,7 @@ function assertPluginRemovable(plugins, name) {
|
|
|
449
443
|
const dependent = plugins.find((plugin) => plugin.requires?.includes(name));
|
|
450
444
|
if (dependent) throw new ItdConfigError(`нельзя отключить плагин «${name}»: от него зависит «${dependent.name}»`);
|
|
451
445
|
}
|
|
452
|
-
|
|
453
|
-
//#region src/core/plugins/registry.ts
|
|
446
|
+
// src/core/plugins/registry.ts
|
|
454
447
|
/**
|
|
455
448
|
* Список подключённых плагинов и зарегистрированных ими расширений.
|
|
456
449
|
*
|
|
@@ -705,8 +698,7 @@ var PluginRegistry = class {
|
|
|
705
698
|
return cleanup;
|
|
706
699
|
}
|
|
707
700
|
};
|
|
708
|
-
|
|
709
|
-
//#region src/core/scheduling/rate-limit.ts
|
|
701
|
+
// src/core/scheduling/rate-limit.ts
|
|
710
702
|
/** Ошибка отмены запроса, который ещё не дошёл до транспорта. */
|
|
711
703
|
function queueAbortError() {
|
|
712
704
|
return new ItdAbortError("Запрос отменён во время ожидания очереди");
|
|
@@ -1168,8 +1160,7 @@ var RequestQueuePool = class {
|
|
|
1168
1160
|
this.#destinations.clear();
|
|
1169
1161
|
}
|
|
1170
1162
|
};
|
|
1171
|
-
|
|
1172
|
-
//#region src/core/services.ts
|
|
1163
|
+
// src/core/services.ts
|
|
1173
1164
|
/**
|
|
1174
1165
|
* Накладывает пользовательское определение на встроенное.
|
|
1175
1166
|
*
|
|
@@ -1292,19 +1283,16 @@ var ServiceRegistry = class {
|
|
|
1292
1283
|
return isSameSite(this.#primaryHost, hostOf(baseUrl));
|
|
1293
1284
|
}
|
|
1294
1285
|
};
|
|
1295
|
-
|
|
1296
|
-
//#region src/core/plugins/hooks.ts
|
|
1286
|
+
// src/core/plugins/hooks.ts
|
|
1297
1287
|
/** Проверяет наличие публичного hook, не создавая дорогой контекст. @internal */
|
|
1298
1288
|
function hasRequestHook(hooks, field) {
|
|
1299
1289
|
return hooks[field] !== void 0;
|
|
1300
1290
|
}
|
|
1301
1291
|
/** Последовательно вызывает публичный hook конструктора. @internal */
|
|
1302
1292
|
async function dispatchRequestHook(hooks, field, context) {
|
|
1303
|
-
|
|
1304
|
-
await hook?.(context);
|
|
1293
|
+
await (0, hooks[field])?.(context);
|
|
1305
1294
|
}
|
|
1306
|
-
|
|
1307
|
-
//#region src/core/execution/lifecycle.ts
|
|
1295
|
+
// src/core/execution/lifecycle.ts
|
|
1308
1296
|
/**
|
|
1309
1297
|
* Объединяет отмену вызова, завершение владельца и срок ожидания в один сигнал.
|
|
1310
1298
|
*
|
|
@@ -1386,8 +1374,7 @@ function requestAbortError(scope, request, fallback) {
|
|
|
1386
1374
|
if (fallback instanceof ItdAbortError) return fallback;
|
|
1387
1375
|
return new ItdAbortError(`Запрос ${request.method.toUpperCase()} ${request.path} отменён`, { cause: reason });
|
|
1388
1376
|
}
|
|
1389
|
-
|
|
1390
|
-
//#region src/core/execution/pipeline.ts
|
|
1377
|
+
// src/core/execution/pipeline.ts
|
|
1391
1378
|
const OPERATION_STATE = Symbol("itd-api.operation-state");
|
|
1392
1379
|
function operationState(request) {
|
|
1393
1380
|
const internal = request;
|
|
@@ -1545,8 +1532,7 @@ function withLayerHeaders(request, headers) {
|
|
|
1545
1532
|
}
|
|
1546
1533
|
};
|
|
1547
1534
|
}
|
|
1548
|
-
|
|
1549
|
-
//#region src/core/execution/http.ts
|
|
1535
|
+
// src/core/execution/http.ts
|
|
1550
1536
|
/** Собирает запрос конвейера из контракта операции и параметров вызова. */
|
|
1551
1537
|
function operationRequest(operation, options) {
|
|
1552
1538
|
return {
|
|
@@ -1674,8 +1660,7 @@ var HttpClient = class {
|
|
|
1674
1660
|
}
|
|
1675
1661
|
}
|
|
1676
1662
|
};
|
|
1677
|
-
|
|
1678
|
-
//#region src/core/operation.ts
|
|
1663
|
+
// src/core/operation.ts
|
|
1679
1664
|
/** HTTP-метод операции. */
|
|
1680
1665
|
const OperationMethod = Object.freeze({
|
|
1681
1666
|
Get: "GET",
|
|
@@ -1737,8 +1722,7 @@ function identityResult(body) {
|
|
|
1737
1722
|
}
|
|
1738
1723
|
/** Отбрасывает служебное тело операции без результата. @internal */
|
|
1739
1724
|
function voidResult() {}
|
|
1740
|
-
|
|
1741
|
-
//#region src/core/scheduling/retry.ts
|
|
1725
|
+
// src/core/scheduling/retry.ts
|
|
1742
1726
|
/** Методы raw-запроса, безопасность которых гарантирована самим HTTP-контрактом. */
|
|
1743
1727
|
const SAFE_RAW_METHODS = /* @__PURE__ */ new Set([
|
|
1744
1728
|
"GET",
|
|
@@ -1817,8 +1801,7 @@ function createRetryScheduler(options, random = Math.random) {
|
|
|
1817
1801
|
return backoffDelay(retryAttempt, options, random);
|
|
1818
1802
|
};
|
|
1819
1803
|
}
|
|
1820
|
-
|
|
1821
|
-
//#region src/core/execution/middleware.ts
|
|
1804
|
+
// src/core/execution/middleware.ts
|
|
1822
1805
|
/** Сигнал для запроса без lifecycle: никогда не срабатывает. */
|
|
1823
1806
|
const IDLE_SIGNAL = new AbortController().signal;
|
|
1824
1807
|
/** Ожидание повтора, которое уважает отмену запроса. */
|
|
@@ -2076,8 +2059,7 @@ function createRetryMiddleware(deps) {
|
|
|
2076
2059
|
})();
|
|
2077
2060
|
};
|
|
2078
2061
|
}
|
|
2079
|
-
|
|
2080
|
-
//#region src/core/unwrap.ts
|
|
2062
|
+
// src/core/unwrap.ts
|
|
2081
2063
|
/**
|
|
2082
2064
|
* Снимает внешнюю обёртку `{ data: … }`.
|
|
2083
2065
|
*
|
|
@@ -2143,8 +2125,7 @@ function pickString(source, field) {
|
|
|
2143
2125
|
const value = source[field];
|
|
2144
2126
|
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
2145
2127
|
}
|
|
2146
|
-
|
|
2147
|
-
//#region src/core/error-factory.ts
|
|
2128
|
+
// src/core/error-factory.ts
|
|
2148
2129
|
/**
|
|
2149
2130
|
* Отличает строковый машинный код (`NOT_FOUND`) от обычного текста и HTML страницы прокси.
|
|
2150
2131
|
* Ограничение длины не даёт случайно принять большое служебное тело за код ошибки.
|
|
@@ -2245,9 +2226,12 @@ function parseErrorBody(body, status, statusText = "") {
|
|
|
2245
2226
|
function parseRetryAfter(header, now = Date.now()) {
|
|
2246
2227
|
if (!header) return void 0;
|
|
2247
2228
|
const seconds = Number(header);
|
|
2248
|
-
if (Number.isFinite(seconds))
|
|
2249
|
-
|
|
2250
|
-
|
|
2229
|
+
if (Number.isFinite(seconds)) {
|
|
2230
|
+
const delay = seconds * 1e3;
|
|
2231
|
+
return delay > 0 && Number.isFinite(delay) ? delay : void 0;
|
|
2232
|
+
}
|
|
2233
|
+
const delay = Date.parse(header) - now;
|
|
2234
|
+
return delay > 0 && Number.isFinite(delay) ? delay : void 0;
|
|
2251
2235
|
}
|
|
2252
2236
|
/** Читает целое число из заголовка. */
|
|
2253
2237
|
function readIntHeader(headers, name) {
|
|
@@ -2338,6 +2322,17 @@ function safeRawBody(body) {
|
|
|
2338
2322
|
function createApiError(context) {
|
|
2339
2323
|
const parsed = parseErrorBody(context.body, context.status, context.statusText);
|
|
2340
2324
|
const rateLimit = readRateLimit(context.headers);
|
|
2325
|
+
const flowExpiry = context.headers?.get("X-ITD-Flow-Expires-In");
|
|
2326
|
+
const flowExpiresIn = flowExpiry && /^\d+$/.test(flowExpiry) ? Number(flowExpiry) : NaN;
|
|
2327
|
+
const retryDelays = [];
|
|
2328
|
+
const headerDelay = parseRetryAfter(context.headers?.get("retry-after"), context.now);
|
|
2329
|
+
if (headerDelay !== void 0) retryDelays.push(headerDelay);
|
|
2330
|
+
const body = isRecord(context.body) ? context.body : void 0;
|
|
2331
|
+
const errorBody = isRecord(body?.error) ? body.error : body;
|
|
2332
|
+
for (const delay of [errorBody?.retryIn, errorBody?.retryAfter]) {
|
|
2333
|
+
const milliseconds = typeof delay === "number" ? delay * 1e3 : 0;
|
|
2334
|
+
if (milliseconds > 0 && Number.isFinite(milliseconds)) retryDelays.push(milliseconds);
|
|
2335
|
+
}
|
|
2341
2336
|
const init = {
|
|
2342
2337
|
rateLimit: rateLimit.limit,
|
|
2343
2338
|
rateLimitRemaining: rateLimit.remaining,
|
|
@@ -2352,7 +2347,8 @@ function createApiError(context) {
|
|
|
2352
2347
|
path: context.path,
|
|
2353
2348
|
raw: safeRawBody(context.body),
|
|
2354
2349
|
response: context.response,
|
|
2355
|
-
retryAfter:
|
|
2350
|
+
retryAfter: retryDelays.length ? Math.max(...retryDelays) : void 0,
|
|
2351
|
+
flowExpiresIn: Number.isSafeInteger(flowExpiresIn) ? flowExpiresIn : void 0
|
|
2356
2352
|
};
|
|
2357
2353
|
if (parsed.code === "PHONE_VERIFICATION_REQUIRED") return new ItdPhoneVerificationError({
|
|
2358
2354
|
...init,
|
|
@@ -2360,8 +2356,7 @@ function createApiError(context) {
|
|
|
2360
2356
|
});
|
|
2361
2357
|
return new (CODE_TO_CLASS[parsed.code] ?? (classByStatus(context.status)))(init);
|
|
2362
2358
|
}
|
|
2363
|
-
|
|
2364
|
-
//#region src/core/execution/transport.ts
|
|
2359
|
+
// src/core/execution/transport.ts
|
|
2365
2360
|
/** Ставит заголовок, превращая ошибку среды в понятную ошибку конфигурации. */
|
|
2366
2361
|
function setHeader(headers, name, value) {
|
|
2367
2362
|
try {
|
|
@@ -2650,6 +2645,7 @@ var Transport = class {
|
|
|
2650
2645
|
headers,
|
|
2651
2646
|
signal: attempt.abort.signal,
|
|
2652
2647
|
...body !== void 0 ? { body } : {},
|
|
2648
|
+
...attempt.request.redirect ? { redirect: attempt.request.redirect } : {},
|
|
2653
2649
|
...this.#config.sendCredentials ? { credentials: "include" } : {}
|
|
2654
2650
|
};
|
|
2655
2651
|
if (typeof ReadableStream !== "undefined" && body instanceof ReadableStream) init.duplex = "half";
|
|
@@ -2719,8 +2715,7 @@ var Transport = class {
|
|
|
2719
2715
|
});
|
|
2720
2716
|
}
|
|
2721
2717
|
};
|
|
2722
|
-
|
|
2723
|
-
//#region src/core/execution/client-runtime.ts
|
|
2718
|
+
// src/core/execution/client-runtime.ts
|
|
2724
2719
|
/** Имена стадий обработки запроса в порядке выполнения. @internal */
|
|
2725
2720
|
const ClientRuntimeStage = Object.freeze({
|
|
2726
2721
|
OperationPlugins: "operation_plugins",
|
|
@@ -2934,8 +2929,7 @@ function createClientRuntime(options, internals) {
|
|
|
2934
2929
|
}
|
|
2935
2930
|
};
|
|
2936
2931
|
}
|
|
2937
|
-
|
|
2938
|
-
//#region src/domain/buckets.ts
|
|
2932
|
+
// src/domain/buckets.ts
|
|
2939
2933
|
/**
|
|
2940
2934
|
* Ёмкость серверных счётчиков частоты, запросов в минуту.
|
|
2941
2935
|
*
|
|
@@ -2970,9 +2964,6 @@ const BUCKET_LIMITS = Object.freeze({
|
|
|
2970
2964
|
"reports.create": 3,
|
|
2971
2965
|
"verification.submit": 3,
|
|
2972
2966
|
shop: 150,
|
|
2973
|
-
"shop.delivery.cities": 60,
|
|
2974
|
-
"shop.delivery.calculate": 45,
|
|
2975
|
-
"shop.delivery.points": 30,
|
|
2976
2967
|
"shop.consents.record": 15,
|
|
2977
2968
|
"shop.orders.pay": 13,
|
|
2978
2969
|
"shop.orders.verifyAccessCode": 13,
|
|
@@ -2992,8 +2983,7 @@ function isKnownBucket(name) {
|
|
|
2992
2983
|
* одновременность ограничена одним запросом.
|
|
2993
2984
|
*/
|
|
2994
2985
|
const DEFAULT_BUCKET_OVERRIDES = Object.freeze({ "files.upload": Object.freeze({ concurrency: 1 }) });
|
|
2995
|
-
|
|
2996
|
-
//#region src/domain/operations.ts
|
|
2986
|
+
// src/domain/operations.ts
|
|
2997
2987
|
function freezeOperations(operations) {
|
|
2998
2988
|
for (const definition of Object.values(operations)) Object.freeze(definition);
|
|
2999
2989
|
return Object.freeze(operations);
|
|
@@ -3019,6 +3009,184 @@ const OPERATIONS = freezeOperations({
|
|
|
3019
3009
|
retrySafety: RetrySafety.Safe,
|
|
3020
3010
|
bucket: "auth"
|
|
3021
3011
|
},
|
|
3012
|
+
"account.getInfo": {
|
|
3013
|
+
method: "GET",
|
|
3014
|
+
retrySafety: RetrySafety.Safe,
|
|
3015
|
+
bucket: "auth"
|
|
3016
|
+
},
|
|
3017
|
+
"account.password.set": {
|
|
3018
|
+
method: "POST",
|
|
3019
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3020
|
+
bucket: "auth"
|
|
3021
|
+
},
|
|
3022
|
+
"account.email.attach": {
|
|
3023
|
+
method: "POST",
|
|
3024
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3025
|
+
bucket: "auth"
|
|
3026
|
+
},
|
|
3027
|
+
"account.phone.attach": {
|
|
3028
|
+
method: "POST",
|
|
3029
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3030
|
+
bucket: "auth"
|
|
3031
|
+
},
|
|
3032
|
+
"account.email.startChange": {
|
|
3033
|
+
method: "POST",
|
|
3034
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3035
|
+
bucket: "auth"
|
|
3036
|
+
},
|
|
3037
|
+
"account.phone.startChange": {
|
|
3038
|
+
method: "POST",
|
|
3039
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3040
|
+
bucket: "auth"
|
|
3041
|
+
},
|
|
3042
|
+
"account.verifyAttach": {
|
|
3043
|
+
method: "POST",
|
|
3044
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3045
|
+
bucket: "auth"
|
|
3046
|
+
},
|
|
3047
|
+
"account.verifyChange": {
|
|
3048
|
+
method: "POST",
|
|
3049
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3050
|
+
bucket: "auth"
|
|
3051
|
+
},
|
|
3052
|
+
"account.email.resendOtp": {
|
|
3053
|
+
method: "POST",
|
|
3054
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3055
|
+
bucket: "auth"
|
|
3056
|
+
},
|
|
3057
|
+
"account.phone.resendOtp": {
|
|
3058
|
+
method: "POST",
|
|
3059
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3060
|
+
bucket: "auth"
|
|
3061
|
+
},
|
|
3062
|
+
"account.phone.sync": {
|
|
3063
|
+
method: "POST",
|
|
3064
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3065
|
+
bucket: "auth"
|
|
3066
|
+
},
|
|
3067
|
+
"account.phone.reverseOptions": {
|
|
3068
|
+
method: "POST",
|
|
3069
|
+
retrySafety: RetrySafety.Safe,
|
|
3070
|
+
bucket: "auth"
|
|
3071
|
+
},
|
|
3072
|
+
"account.phone.reverseStart": {
|
|
3073
|
+
method: "POST",
|
|
3074
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3075
|
+
bucket: "auth"
|
|
3076
|
+
},
|
|
3077
|
+
"account.phone.reverseStatus": {
|
|
3078
|
+
method: "POST",
|
|
3079
|
+
retrySafety: RetrySafety.Safe,
|
|
3080
|
+
bucket: "auth"
|
|
3081
|
+
},
|
|
3082
|
+
"account.phone.reverseAttachComplete": {
|
|
3083
|
+
method: "POST",
|
|
3084
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3085
|
+
bucket: "auth"
|
|
3086
|
+
},
|
|
3087
|
+
"account.phone.reverseChangeComplete": {
|
|
3088
|
+
method: "POST",
|
|
3089
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3090
|
+
bucket: "auth"
|
|
3091
|
+
},
|
|
3092
|
+
"account.changes.requestProof": {
|
|
3093
|
+
method: "POST",
|
|
3094
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3095
|
+
bucket: "auth"
|
|
3096
|
+
},
|
|
3097
|
+
"account.changes.confirm": {
|
|
3098
|
+
method: "POST",
|
|
3099
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3100
|
+
bucket: "auth"
|
|
3101
|
+
},
|
|
3102
|
+
"account.changes.wait": {
|
|
3103
|
+
method: "POST",
|
|
3104
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3105
|
+
bucket: "auth"
|
|
3106
|
+
},
|
|
3107
|
+
"account.changes.pending": {
|
|
3108
|
+
method: "GET",
|
|
3109
|
+
retrySafety: RetrySafety.Safe,
|
|
3110
|
+
bucket: "auth"
|
|
3111
|
+
},
|
|
3112
|
+
"account.changes.cancelPending": {
|
|
3113
|
+
method: "DELETE",
|
|
3114
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3115
|
+
bucket: "auth"
|
|
3116
|
+
},
|
|
3117
|
+
"account.password.change": {
|
|
3118
|
+
method: "POST",
|
|
3119
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3120
|
+
bucket: "auth"
|
|
3121
|
+
},
|
|
3122
|
+
"account.deactivate": {
|
|
3123
|
+
method: "DELETE",
|
|
3124
|
+
retrySafety: RetrySafety.Unsafe
|
|
3125
|
+
},
|
|
3126
|
+
"account.restore": {
|
|
3127
|
+
method: "POST",
|
|
3128
|
+
retrySafety: RetrySafety.Unsafe
|
|
3129
|
+
},
|
|
3130
|
+
"auth.phone.config": {
|
|
3131
|
+
method: "GET",
|
|
3132
|
+
retrySafety: RetrySafety.Safe,
|
|
3133
|
+
bucket: "auth"
|
|
3134
|
+
},
|
|
3135
|
+
"auth.phone.consent": {
|
|
3136
|
+
method: "GET",
|
|
3137
|
+
retrySafety: RetrySafety.Safe,
|
|
3138
|
+
bucket: "auth"
|
|
3139
|
+
},
|
|
3140
|
+
"auth.phone.start": {
|
|
3141
|
+
method: "POST",
|
|
3142
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3143
|
+
bucket: "auth"
|
|
3144
|
+
},
|
|
3145
|
+
"auth.phone.resume": {
|
|
3146
|
+
method: "POST",
|
|
3147
|
+
retrySafety: RetrySafety.Safe,
|
|
3148
|
+
bucket: "auth"
|
|
3149
|
+
},
|
|
3150
|
+
"auth.phone.verify": {
|
|
3151
|
+
method: "POST",
|
|
3152
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3153
|
+
bucket: "auth"
|
|
3154
|
+
},
|
|
3155
|
+
"auth.phone.password": {
|
|
3156
|
+
method: "POST",
|
|
3157
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3158
|
+
bucket: "auth"
|
|
3159
|
+
},
|
|
3160
|
+
"auth.phone.resetPassword": {
|
|
3161
|
+
method: "POST",
|
|
3162
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3163
|
+
bucket: "auth"
|
|
3164
|
+
},
|
|
3165
|
+
"auth.phone.resend": {
|
|
3166
|
+
method: "POST",
|
|
3167
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3168
|
+
bucket: "auth"
|
|
3169
|
+
},
|
|
3170
|
+
"auth.phone.reverseOptions": {
|
|
3171
|
+
method: "POST",
|
|
3172
|
+
retrySafety: RetrySafety.Safe,
|
|
3173
|
+
bucket: "auth"
|
|
3174
|
+
},
|
|
3175
|
+
"auth.phone.reverseStart": {
|
|
3176
|
+
method: "POST",
|
|
3177
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3178
|
+
bucket: "auth"
|
|
3179
|
+
},
|
|
3180
|
+
"auth.phone.reverseStatus": {
|
|
3181
|
+
method: "POST",
|
|
3182
|
+
retrySafety: RetrySafety.Safe,
|
|
3183
|
+
bucket: "auth"
|
|
3184
|
+
},
|
|
3185
|
+
"auth.phone.reverseComplete": {
|
|
3186
|
+
method: "POST",
|
|
3187
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3188
|
+
bucket: "auth"
|
|
3189
|
+
},
|
|
3022
3190
|
"auth.signUp": {
|
|
3023
3191
|
method: "POST",
|
|
3024
3192
|
retrySafety: RetrySafety.Unsafe,
|
|
@@ -3059,11 +3227,6 @@ const OPERATIONS = freezeOperations({
|
|
|
3059
3227
|
retrySafety: RetrySafety.Unsafe,
|
|
3060
3228
|
bucket: "auth"
|
|
3061
3229
|
},
|
|
3062
|
-
"auth.changePassword": {
|
|
3063
|
-
method: "POST",
|
|
3064
|
-
retrySafety: RetrySafety.Unsafe,
|
|
3065
|
-
bucket: "auth"
|
|
3066
|
-
},
|
|
3067
3230
|
"auth.sessions": {
|
|
3068
3231
|
method: "GET",
|
|
3069
3232
|
retrySafety: RetrySafety.Safe,
|
|
@@ -3114,14 +3277,6 @@ const OPERATIONS = freezeOperations({
|
|
|
3114
3277
|
retrySafety: RetrySafety.Idempotent,
|
|
3115
3278
|
bucket: "users.updateMe"
|
|
3116
3279
|
},
|
|
3117
|
-
"users.deactivate": {
|
|
3118
|
-
method: "DELETE",
|
|
3119
|
-
retrySafety: RetrySafety.Unsafe
|
|
3120
|
-
},
|
|
3121
|
-
"users.restore": {
|
|
3122
|
-
method: "POST",
|
|
3123
|
-
retrySafety: RetrySafety.Unsafe
|
|
3124
|
-
},
|
|
3125
3280
|
"users.createProfile": {
|
|
3126
3281
|
method: "POST",
|
|
3127
3282
|
retrySafety: RetrySafety.Unsafe
|
|
@@ -3321,6 +3476,11 @@ const OPERATIONS = freezeOperations({
|
|
|
3321
3476
|
retrySafety: RetrySafety.Unsafe,
|
|
3322
3477
|
bucket: "files.upload"
|
|
3323
3478
|
},
|
|
3479
|
+
"files.uploadBannerDrawing": {
|
|
3480
|
+
method: "POST",
|
|
3481
|
+
retrySafety: RetrySafety.Unsafe,
|
|
3482
|
+
bucket: "files.upload"
|
|
3483
|
+
},
|
|
3324
3484
|
"files.remove": {
|
|
3325
3485
|
method: "DELETE",
|
|
3326
3486
|
retrySafety: RetrySafety.Unsafe,
|
|
@@ -3429,6 +3589,22 @@ const OPERATIONS = freezeOperations({
|
|
|
3429
3589
|
method: "GET",
|
|
3430
3590
|
retrySafety: RetrySafety.Safe
|
|
3431
3591
|
},
|
|
3592
|
+
"legal.list": {
|
|
3593
|
+
method: "GET",
|
|
3594
|
+
retrySafety: RetrySafety.Safe
|
|
3595
|
+
},
|
|
3596
|
+
"legal.current": {
|
|
3597
|
+
method: "GET",
|
|
3598
|
+
retrySafety: RetrySafety.Safe
|
|
3599
|
+
},
|
|
3600
|
+
"legal.versions": {
|
|
3601
|
+
method: "GET",
|
|
3602
|
+
retrySafety: RetrySafety.Safe
|
|
3603
|
+
},
|
|
3604
|
+
"legal.version": {
|
|
3605
|
+
method: "GET",
|
|
3606
|
+
retrySafety: RetrySafety.Safe
|
|
3607
|
+
},
|
|
3432
3608
|
"platform.changelog": {
|
|
3433
3609
|
method: "GET",
|
|
3434
3610
|
retrySafety: RetrySafety.Safe
|
|
@@ -3467,17 +3643,17 @@ const OPERATIONS = freezeOperations({
|
|
|
3467
3643
|
"shop.delivery.cities": {
|
|
3468
3644
|
method: "GET",
|
|
3469
3645
|
retrySafety: RetrySafety.Safe,
|
|
3470
|
-
bucket: "shop
|
|
3646
|
+
bucket: "shop"
|
|
3471
3647
|
},
|
|
3472
3648
|
"shop.delivery.points": {
|
|
3473
3649
|
method: "GET",
|
|
3474
3650
|
retrySafety: RetrySafety.Safe,
|
|
3475
|
-
bucket: "shop
|
|
3651
|
+
bucket: "shop"
|
|
3476
3652
|
},
|
|
3477
3653
|
"shop.delivery.calculate": {
|
|
3478
3654
|
method: "POST",
|
|
3479
3655
|
retrySafety: RetrySafety.Safe,
|
|
3480
|
-
bucket: "shop
|
|
3656
|
+
bucket: "shop"
|
|
3481
3657
|
},
|
|
3482
3658
|
"shop.orders.create": {
|
|
3483
3659
|
method: "POST",
|
|
@@ -3540,8 +3716,7 @@ function operationBucket(id) {
|
|
|
3540
3716
|
if (!isBuiltInOperationId(id)) return DEFAULT_RATE_LIMIT_BUCKET;
|
|
3541
3717
|
return OPERATIONS[id].bucket ?? "default";
|
|
3542
3718
|
}
|
|
3543
|
-
|
|
3544
|
-
//#region src/domain/catalog.ts
|
|
3719
|
+
// src/domain/catalog.ts
|
|
3545
3720
|
/** Ограничения встроенных бакетов: ёмкость из таблицы плюс встроенные поправки. */
|
|
3546
3721
|
const BUCKET_DEFINITIONS = Object.freeze(Object.fromEntries(Object.entries(BUCKET_LIMITS).map(([name, limit]) => [name, Object.freeze({
|
|
3547
3722
|
limit,
|
|
@@ -3563,8 +3738,7 @@ const ITD_CATALOG = Object.freeze({
|
|
|
3563
3738
|
bucketOverrides: DEFAULT_BUCKET_OVERRIDES,
|
|
3564
3739
|
defaultBucket: DEFAULT_RATE_LIMIT_BUCKET
|
|
3565
3740
|
});
|
|
3566
|
-
|
|
3567
|
-
//#region src/types/enums.ts
|
|
3741
|
+
// src/types/enums.ts
|
|
3568
3742
|
/**
|
|
3569
3743
|
* Вкладка ленты `GET /api/posts`.
|
|
3570
3744
|
*
|
|
@@ -3858,10 +4032,15 @@ const ItdErrorCode = Object.freeze({
|
|
|
3858
4032
|
/** Собственная captcha ИТД не подтвердила целостность проверки. */
|
|
3859
4033
|
INTEGRITY_CHECK_FAILED: "INTEGRITY_CHECK_FAILED",
|
|
3860
4034
|
OTP_INVALID: "OTP_INVALID",
|
|
4035
|
+
OTP_EXPIRED: "OTP_EXPIRED",
|
|
4036
|
+
NO_PENDING_OTP: "NO_PENDING_OTP",
|
|
3861
4037
|
/** `flowToken` неизвестен или просрочен — поток подтверждения нужно начинать заново. */
|
|
3862
4038
|
INVALID_FLOW_TOKEN: "INVALID_FLOW_TOKEN",
|
|
4039
|
+
/** Для номера уже запущена проверка. */
|
|
4040
|
+
PHONE_VERIFICATION_PENDING: "PHONE_VERIFICATION_PENDING",
|
|
3863
4041
|
ACCOUNT_DEACTIVATED: "ACCOUNT_DEACTIVATED",
|
|
3864
4042
|
ACCOUNT_EMAIL_DOMAIN_NOT_ALLOWED: "ACCOUNT_EMAIL_DOMAIN_NOT_ALLOWED",
|
|
4043
|
+
EMAIL_SIGNUP_DISABLED: "EMAIL_SIGNUP_DISABLED",
|
|
3865
4044
|
ACCOUNT_INVALID_CREDENTIALS: "ACCOUNT_INVALID_CREDENTIALS",
|
|
3866
4045
|
ACCOUNT_TEMPORARILY_LOCKED: "ACCOUNT_TEMPORARILY_LOCKED",
|
|
3867
4046
|
ACCOUNT_CURRENT_PASSWORD_INCORRECT: "ACCOUNT_CURRENT_PASSWORD_INCORRECT",
|
|
@@ -3893,8 +4072,7 @@ const ItdErrorCode = Object.freeze({
|
|
|
3893
4072
|
PHONE_VERIFICATION_REQUIRED: "PHONE_VERIFICATION_REQUIRED",
|
|
3894
4073
|
WRITE_ACCESS_RESTRICTED: "WRITE_ACCESS_RESTRICTED"
|
|
3895
4074
|
});
|
|
3896
|
-
|
|
3897
|
-
//#region src/notifications/type-map.ts
|
|
4075
|
+
// src/notifications/type-map.ts
|
|
3898
4076
|
/**
|
|
3899
4077
|
* Соответствие коротких имён типов уведомлений развёрнутым.
|
|
3900
4078
|
*
|
|
@@ -3938,8 +4116,7 @@ function canonicalNotificationType(rawType) {
|
|
|
3938
4116
|
function isKnownNotificationType(type) {
|
|
3939
4117
|
return KNOWN_TYPES.has(canonicalNotificationType(type));
|
|
3940
4118
|
}
|
|
3941
|
-
|
|
3942
|
-
//#region src/notifications/normalize.ts
|
|
4119
|
+
// src/notifications/normalize.ts
|
|
3943
4120
|
function asActor(value) {
|
|
3944
4121
|
if (!isRecord(value)) return void 0;
|
|
3945
4122
|
const id = asString(value.id);
|
|
@@ -4035,8 +4212,7 @@ function readUnreadCountEvent(data) {
|
|
|
4035
4212
|
if (!payload) return void 0;
|
|
4036
4213
|
return typeof payload.count === "number" ? payload.count : void 0;
|
|
4037
4214
|
}
|
|
4038
|
-
|
|
4039
|
-
//#region src/operations/common.ts
|
|
4215
|
+
// src/operations/common.ts
|
|
4040
4216
|
/** Контракт встроенной операции без дополнительного преобразования результата. */
|
|
4041
4217
|
function passthroughOperation(id) {
|
|
4042
4218
|
return defineBuiltInOperation(id);
|
|
@@ -4045,8 +4221,7 @@ function passthroughOperation(id) {
|
|
|
4045
4221
|
function voidOperation(id) {
|
|
4046
4222
|
return defineBuiltInOperation(id, voidResult);
|
|
4047
4223
|
}
|
|
4048
|
-
|
|
4049
|
-
//#region src/core/auth-provider.ts
|
|
4224
|
+
// src/core/auth-provider.ts
|
|
4050
4225
|
/**
|
|
4051
4226
|
* Идентификатор устройства, общий для провайдеров без сессии.
|
|
4052
4227
|
*
|
|
@@ -4130,8 +4305,7 @@ function tokenProvider(getToken) {
|
|
|
4130
4305
|
}
|
|
4131
4306
|
};
|
|
4132
4307
|
}
|
|
4133
|
-
|
|
4134
|
-
//#region src/notifications/text.ts
|
|
4308
|
+
// src/notifications/text.ts
|
|
4135
4309
|
/** Имя, которое подставляется, если участник неизвестен. */
|
|
4136
4310
|
const UNKNOWN_ACTOR = "Пользователь";
|
|
4137
4311
|
/** Текст, который подставляется для неизвестного типа уведомления. */
|
|
@@ -4216,8 +4390,7 @@ function formatNotificationText(notification) {
|
|
|
4216
4390
|
const others = notification.count - 1;
|
|
4217
4391
|
return others > 0 ? template.many(name, others) : template.one(name);
|
|
4218
4392
|
}
|
|
4219
|
-
|
|
4220
|
-
//#region src/notifications/url.ts
|
|
4393
|
+
// src/notifications/url.ts
|
|
4221
4394
|
/** Типы, ведущие на пост. */
|
|
4222
4395
|
const POST_TYPES = /* @__PURE__ */ new Set([
|
|
4223
4396
|
NotificationType.PostReaction,
|
|
@@ -4261,7 +4434,6 @@ function resolveNotificationUrl(notification) {
|
|
|
4261
4434
|
if (username && FOLLOW_TYPES.has(type)) return `/@${username}`;
|
|
4262
4435
|
return clickUrl || "/notifications";
|
|
4263
4436
|
}
|
|
4264
|
-
//#endregion
|
|
4265
4437
|
export { OperationMethod as $, ReportTargetType as A, isBuiltInOperationId as B, ItdErrorCode as C, NotificationType as D, MessageAccess as E, ViewSource as F, DEFAULT_RATE_LIMIT_BUCKET as G, operationMethod as H, WallAccess as I, pickArray as J, createClientRuntime as K, ITD_CATALOG as L, SpanType as M, UsernameUnavailableReason as N, QrLocationPrecision as O, ViewReason as P, pickString as Q, OPERATIONS as R, InteractionType as S, LikesVisibility as T, operationRetrySafety as U, operationBucket as V, BUCKET_LIMITS as W, pickNumber as X, pickBoolean as Y, pickObject as Z, CaptchaType as _, systemClock as _t, tokenProvider as a, requestAbortError as at, FeedTab as b, normalizeNotification as c, assertPluginRemovable as ct, canonicalNotificationType as d, DEFAULT_STATUS_BASE_URL as dt, RetrySafety as et, isKnownNotificationType as f, STATUS_SERVICE as ft, CaptchaField as g, createDeadline as gt, CaptchaChoice as h, RateLimitPacing as ht, bearerToken as i, createRequestAbortScope as it, ServiceState as j, ReportReason as k, readNotificationEvent as l, orderPluginDefinitions as lt, AttachmentType as m, LIBRARY_VERSION as mt, formatNotificationText as n, identityResult as nt, passthroughOperation as o, mergeService as ot, AccessType as p, resolveRateLimit as pt, createApiError as q, anonymousAuth as r, voidResult as rt, voidOperation as s, RequestQueuePool as st, resolveNotificationUrl as t, defineOperation as tt, readUnreadCountEvent as u, DEFAULT_BASE_URL as ut, CommentSort as v, installAsyncDisposeFallback as vt, LastSeenUnit as w, IncidentKind as x, EventChannelStatus as y, defineBuiltInOperation as z };
|
|
4266
4438
|
|
|
4267
|
-
//# sourceMappingURL=url-
|
|
4439
|
+
//# sourceMappingURL=url-aw_NZdVY.js.map
|