itd-api 0.14.5 → 0.14.6

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 (37) 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 +32 -8
  6. package/dist/index.cjs.map +1 -1
  7. package/dist/index.d.cts +16 -35
  8. package/dist/index.d.ts +16 -35
  9. package/dist/index.js +32 -8
  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-CMhrmHei.d.cts → events-BsmLCdog.d.cts} +1 -1
  16. package/dist/shared/{events-Cupq8UXH.d.ts → events-By7baZfE.d.ts} +1 -1
  17. package/dist/shared/{events-C3Wup3mC.cjs → events-DFQSN5H6.cjs} +2 -2
  18. package/dist/shared/{events-C3Wup3mC.cjs.map → events-DFQSN5H6.cjs.map} +1 -1
  19. package/dist/shared/{events-BbpL69OD.js → events-DorlX-Xd.js} +2 -2
  20. package/dist/shared/{events-BbpL69OD.js.map → events-DorlX-Xd.js.map} +1 -1
  21. package/dist/shared/{render-ByW1tXn-.d.cts → render-CZoSZHnh.d.cts} +92 -53
  22. package/dist/shared/{render-BXeYbuuY.cjs → render-CklT-3gT.cjs} +2 -2
  23. package/dist/shared/render-CklT-3gT.cjs.map +1 -0
  24. package/dist/shared/{render-C706i1rL.js → render-DBt-OBbC.js} +2 -2
  25. package/dist/shared/render-DBt-OBbC.js.map +1 -0
  26. package/dist/shared/{render-B3nhAeaQ.d.ts → render-DOxbtUga.d.ts} +92 -53
  27. package/dist/shared/{url-Duzw4X6d.cjs → url-CStw2h1g.cjs} +12 -2
  28. package/dist/shared/url-CStw2h1g.cjs.map +1 -0
  29. package/dist/shared/{url-CZpgaPdI.js → url-DTDqkKpf.js} +12 -2
  30. package/dist/shared/url-DTDqkKpf.js.map +1 -0
  31. package/dist/shared/{url-DHWmfmrE.d.cts → url-Ls6HGxZl.d.cts} +11 -1
  32. package/dist/shared/{url-D4bo3tpX.d.ts → url-U1Q7c-SD.d.ts} +11 -1
  33. package/package.json +1 -1
  34. package/dist/shared/render-BXeYbuuY.cjs.map +0 -1
  35. package/dist/shared/render-C706i1rL.js.map +0 -1
  36. package/dist/shared/url-CZpgaPdI.js.map +0 -1
  37. package/dist/shared/url-Duzw4X6d.cjs.map +0 -1
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_validate = require("../shared/validate-DQrtiCtV.cjs");
3
- const require_url = require("../shared/url-Duzw4X6d.cjs");
3
+ const require_url = require("../shared/url-CStw2h1g.cjs");
4
4
  const require_cookies = require("../shared/cookies-Dv5LQp55.cjs");
5
- const require_events = require("../shared/events-C3Wup3mC.cjs");
5
+ const require_events = require("../shared/events-DFQSN5H6.cjs");
6
6
  exports.DEFAULT_BASE_URL = require_url.DEFAULT_BASE_URL;
7
7
  exports.EventChannel = require_events.EventChannel;
8
8
  exports.EventChannelStatus = require_url.EventChannelStatus;
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { $t as ItdValidationError, A as ClientConnection, B as DEFAULT_BASE_URL, Bt as ItdError, F as tokenProvider, Gt as ItdForbiddenError, H as LIBRARY_VERSION, It as ItdApiErrorKind, Kt as ItdNetworkError, Lt as ItdAuthError, M as AuthProvider, N as anonymousAuth, Nn as NotificationType, Nt as ItdAbortError, O as Listener, P as bearerToken, Pt as ItdApiError, Qt as ItdTimeoutError, Rt as ItdConfigError, Vt as ItdErrorKind, Xt as ItdServerError, Y as ClientHooks, Yt as ItdRateLimitError, Zt as ItdStateError, _t as LogLevel, a as NotificationEvent, an as isItdError, bt as systemClock, c as NotificationSettings, fn as isItdStateError, ht as RuntimeMode, i as formatNotificationText, j as AuthIdentity, jn as Loose, k as Unsubscribe, n as canonicalNotificationType, nn as isItdApiError, o as normalizeNotification, pn as isItdValidationError, qt as ItdNotFoundError, r as isKnownNotificationType, rn as isItdAuthError, s as Notification, t as resolveNotificationUrl, tn as TimeoutBudget, un as isItdRateLimitError, ut as RuntimeOptions, vt as Logger, wn as EventChannelStatus, yt as ItdClock } from "../shared/url-DHWmfmrE.cjs";
7
- import { $ as EventTransportFrame, A as EventSequentializer, B as NotificationOfType, C as EventSession, D as EventMiddlewareObject, E as EventMiddleware, F as NotificationEventContext, G as UnknownNotificationUpdate, H as NotificationUpdateOfType, I as NotificationEventFilter, J as NotificationEventsMap, K as UnreadCountUpdate, L as NotificationEventOfType, M as runEventMiddleware, N as EventContext, O as EventNext, P as NotificationContext, Q as EventTransportContext, R as NotificationEventSelector, S as EventEnqueueOptions, T as EventHandler, U as NotificationUpdateOrigin, V as NotificationUpdate, W as NotificationUpdateType, X as NotificationEventsTransport, Y as NotificationEventsOptions, Z as EventTransport, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as EventChannelEvents, c as EventRouteSelector, d as NotificationEventsClientOptions, et as UnauthorizedStreamError, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventTypeGuard, k as EventPredicate, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationEvents, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as ReconnectOptions, u as NotificationEventsClient, v as EventChannel, w as EventSyncReason, x as EventChannelOptions, y as EventChannelDeps, z as NotificationEventsUpdate } from "../shared/events-CMhrmHei.cjs";
6
+ import { $t as ItdValidationError, A as ClientConnection, B as DEFAULT_BASE_URL, Bt as ItdError, F as tokenProvider, Gt as ItdForbiddenError, H as LIBRARY_VERSION, It as ItdApiErrorKind, Kt as ItdNetworkError, Lt as ItdAuthError, M as AuthProvider, N as anonymousAuth, Nn as NotificationType, Nt as ItdAbortError, O as Listener, P as bearerToken, Pt as ItdApiError, Qt as ItdTimeoutError, Rt as ItdConfigError, Vt as ItdErrorKind, Xt as ItdServerError, Y as ClientHooks, Yt as ItdRateLimitError, Zt as ItdStateError, _t as LogLevel, a as NotificationEvent, an as isItdError, bt as systemClock, c as NotificationSettings, fn as isItdStateError, ht as RuntimeMode, i as formatNotificationText, j as AuthIdentity, jn as Loose, k as Unsubscribe, n as canonicalNotificationType, nn as isItdApiError, o as normalizeNotification, pn as isItdValidationError, qt as ItdNotFoundError, r as isKnownNotificationType, rn as isItdAuthError, s as Notification, t as resolveNotificationUrl, tn as TimeoutBudget, un as isItdRateLimitError, ut as RuntimeOptions, vt as Logger, wn as EventChannelStatus, yt as ItdClock } from "../shared/url-Ls6HGxZl.cjs";
7
+ import { $ as EventTransportFrame, A as EventSequentializer, B as NotificationOfType, C as EventSession, D as EventMiddlewareObject, E as EventMiddleware, F as NotificationEventContext, G as UnknownNotificationUpdate, H as NotificationUpdateOfType, I as NotificationEventFilter, J as NotificationEventsMap, K as UnreadCountUpdate, L as NotificationEventOfType, M as runEventMiddleware, N as EventContext, O as EventNext, P as NotificationContext, Q as EventTransportContext, R as NotificationEventSelector, S as EventEnqueueOptions, T as EventHandler, U as NotificationUpdateOrigin, V as NotificationUpdate, W as NotificationUpdateType, X as NotificationEventsTransport, Y as NotificationEventsOptions, Z as EventTransport, _ as WebSocketTransportOptions, a as EventMiddlewareGroup, b as EventChannelEvents, c as EventRouteSelector, d as NotificationEventsClientOptions, et as UnauthorizedStreamError, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventTypeGuard, k as EventPredicate, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationEvents, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as ReconnectOptions, u as NotificationEventsClient, v as EventChannel, w as EventSyncReason, x as EventChannelOptions, y as EventChannelDeps, z as NotificationEventsUpdate } from "../shared/events-BsmLCdog.cjs";
8
8
  export { type AuthIdentity, type AuthProvider, type ClientConnection, type ClientHooks, DEFAULT_BASE_URL, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, type ItdClock, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, type Listener, LogLevel, type Logger, type Loose, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type ReconnectOptions, RuntimeMode, type RuntimeOptions, TimeoutBudget, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import { $t as isItdAuthError, A as ClientConnection, At as ItdApiError, Dn as Loose, F as tokenProvider, G as ClientHooks, Gt as ItdRateLimitError, Ht as ItdNetworkError, I as DEFAULT_BASE_URL, It as ItdError, Jt as ItdTimeoutError, Kt as ItdServerError, Lt as ItdErrorKind, M as AuthProvider, Mt as ItdApiErrorKind, N as anonymousAuth, Nt as ItdAuthError, O as Listener, P as bearerToken, Pt as ItdConfigError, Qt as isItdApiError, R as LIBRARY_VERSION, Ut as ItdNotFoundError, Vt as ItdForbiddenError, Yt as ItdValidationError, Zt as TimeoutBudget, a as NotificationEvent, bn as EventChannelStatus, c as NotificationSettings, cn as isItdStateError, dt as RuntimeMode, gt as systemClock, ht as ItdClock, i as formatNotificationText, j as AuthIdentity, k as Unsubscribe, kn as NotificationType, kt as ItdAbortError, ln as isItdValidationError, mt as Logger, n as canonicalNotificationType, o as normalizeNotification, on as isItdRateLimitError, ot as RuntimeOptions, pt as LogLevel, qt as ItdStateError, r as isKnownNotificationType, s as Notification, t as resolveNotificationUrl, tn as isItdError } from "../shared/url-D4bo3tpX.js";
7
- import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "../shared/events-Cupq8UXH.js";
6
+ import { $t as isItdAuthError, A as ClientConnection, At as ItdApiError, Dn as Loose, F as tokenProvider, G as ClientHooks, Gt as ItdRateLimitError, Ht as ItdNetworkError, I as DEFAULT_BASE_URL, It as ItdError, Jt as ItdTimeoutError, Kt as ItdServerError, Lt as ItdErrorKind, M as AuthProvider, Mt as ItdApiErrorKind, N as anonymousAuth, Nt as ItdAuthError, O as Listener, P as bearerToken, Pt as ItdConfigError, Qt as isItdApiError, R as LIBRARY_VERSION, Ut as ItdNotFoundError, Vt as ItdForbiddenError, Yt as ItdValidationError, Zt as TimeoutBudget, a as NotificationEvent, bn as EventChannelStatus, c as NotificationSettings, cn as isItdStateError, dt as RuntimeMode, gt as systemClock, ht as ItdClock, i as formatNotificationText, j as AuthIdentity, k as Unsubscribe, kn as NotificationType, kt as ItdAbortError, ln as isItdValidationError, mt as Logger, n as canonicalNotificationType, o as normalizeNotification, on as isItdRateLimitError, ot as RuntimeOptions, pt as LogLevel, qt as ItdStateError, r as isKnownNotificationType, s as Notification, t as resolveNotificationUrl, tn as isItdError } from "../shared/url-U1Q7c-SD.js";
7
+ import { $ as EventTransportContext, A as EventHandler, B as NotificationEventContext, C as EventChannelDeps, D as EventSession, E as EventEnqueueOptions, F as EventSequentializer, G as NotificationOfType, H as NotificationEventOfType, I as EventTypeGuard, J as NotificationUpdateOrigin, K as NotificationUpdate, L as runEventMiddleware, M as EventMiddlewareObject, N as EventNext, O as EventSyncReason, P as EventPredicate, Q as EventTransport, R as EventContext, S as EventChannel, T as EventChannelOptions, U as NotificationEventSelector, V as NotificationEventFilter, W as NotificationEventsUpdate, X as UnknownNotificationUpdate, Y as NotificationUpdateType, Z as UnreadCountUpdate, _ as createNotificationEventsClient, a as WebSocketTransportOptions, b as NotificationEventsOptions, c as EventErrorContext, d as EventMiddlewareLike, et as EventTransportFrame, f as EventRouteTable, g as NotificationEventsClientOptions, h as NotificationEventsClient, i as WebSocketTransport, j as EventMiddleware, k as ReconnectOptions, l as EventFilter, m as EventRouter, n as WebSocketLike, o as EventComposer, p as EventRouteSelector, q as NotificationUpdateOfType, r as WebSocketOpenFailureClassifier, s as EventErrorBoundary, t as WebSocketImplementationOptions, tt as UnauthorizedStreamError, u as EventMiddlewareGroup, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "../shared/events-By7baZfE.js";
8
8
  export { type AuthIdentity, type AuthProvider, type ClientConnection, type ClientHooks, DEFAULT_BASE_URL, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, type ItdClock, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, type Listener, LogLevel, type Logger, type Loose, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type ReconnectOptions, RuntimeMode, type RuntimeOptions, TimeoutBudget, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
@@ -1,5 +1,5 @@
1
1
  import { C as ItdValidationError, D as isItdAuthError, E as isItdApiError, I as isItdStateError, L as isItdValidationError, P as isItdRateLimitError, S as ItdTimeoutError, T as TimeoutBudget, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, k as isItdError, l as ItdConfigError, o as ItdApiError, s as ItdApiErrorKind, x as ItdStateError, y as ItdRateLimitError } from "../shared/validate-CCgIq5u0.js";
2
- import { S as bearerToken, h as DEFAULT_BASE_URL, n as formatNotificationText, nt as EventChannelStatus, o as canonicalNotificationType, r as normalizeNotification, s as isKnownNotificationType, t as resolveNotificationUrl, ut as NotificationType, w as tokenProvider, x as anonymousAuth, xt as systemClock, y as LIBRARY_VERSION } from "../shared/url-CZpgaPdI.js";
2
+ import { S as bearerToken, h as DEFAULT_BASE_URL, n as formatNotificationText, nt as EventChannelStatus, o as canonicalNotificationType, r as normalizeNotification, s as isKnownNotificationType, t as resolveNotificationUrl, ut as NotificationType, w as tokenProvider, x as anonymousAuth, xt as systemClock, y as LIBRARY_VERSION } from "../shared/url-DTDqkKpf.js";
3
3
  import { E as LogLevel, v as RuntimeMode } from "../shared/cookies-mDZE19_j.js";
4
- import { d as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin } from "../shared/events-BbpL69OD.js";
4
+ import { d as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, m as EventChannel, n as EventRouter, o as NotificationEvents, p as WebSocketTransport, r as NotificationEventsClient, s as NotificationEventsTransport, t as EventComposer, u as NotificationUpdateOrigin } from "../shared/events-DorlX-Xd.js";
5
5
  export { DEFAULT_BASE_URL, EventChannel, EventChannelStatus, EventComposer, EventRouter, ItdAbortError, ItdApiError, ItdApiErrorKind, ItdAuthError, ItdConfigError, ItdError, ItdErrorKind, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdRateLimitError, ItdServerError, ItdStateError, ItdTimeoutError, ItdValidationError, LIBRARY_VERSION, LogLevel, NotificationEvents, NotificationEventsClient, NotificationEventsTransport, NotificationType, NotificationUpdateOrigin, NotificationUpdateType, RuntimeMode, TimeoutBudget, UnauthorizedStreamError, WebSocketTransport, anonymousAuth, bearerToken, canonicalNotificationType, createNotificationEventsClient, formatNotificationText, isItdApiError, isItdAuthError, isItdError, isItdRateLimitError, isItdStateError, isItdValidationError, isKnownNotificationType, normalizeNotification, resolveNotificationUrl, runEventMiddleware, systemClock, tokenProvider };
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_validate = require("./shared/validate-DQrtiCtV.cjs");
3
- const require_render = require("./shared/render-BXeYbuuY.cjs");
4
- const require_events = require("./shared/events-C3Wup3mC.cjs");
5
- const require_url = require("./shared/url-Duzw4X6d.cjs");
3
+ const require_render = require("./shared/render-CklT-3gT.cjs");
4
+ const require_events = require("./shared/events-DFQSN5H6.cjs");
5
+ const require_url = require("./shared/url-CStw2h1g.cjs");
6
6
  const require_cookies = require("./shared/cookies-Dv5LQp55.cjs");
7
7
  const require_storage = require("./shared/storage-Bj7GKkEQ.cjs");
8
8
  const require_multi_storage = require("./shared/multi-storage-DXBY9ceK.cjs");
@@ -194,6 +194,8 @@ function createNotificationsApi(http, createEvents) {
194
194
  }
195
195
  // src/operations/account.ts
196
196
  const ACCOUNT_GET_INFO = require_url.passthroughOperation("account.getInfo");
197
+ const ACCOUNT_TERMS_ACCEPTANCE = require_url.passthroughOperation("account.termsAcceptance");
198
+ const ACCOUNT_ACCEPT_TERMS = require_url.voidOperation("account.acceptTerms");
197
199
  const ACCOUNT_PASSWORD_SET = require_url.voidOperation("account.password.set");
198
200
  const ACCOUNT_PASSWORD_CHANGE = require_url.voidOperation("account.password.change");
199
201
  // src/operations/account/changes.ts
@@ -276,7 +278,8 @@ const PhoneDeliveryChannel = Object.freeze({
276
278
  MissedCall: "missed_call",
277
279
  VoiceCall: "voice_call",
278
280
  Sms: "sms",
279
- Push: "push"
281
+ Push: "push",
282
+ Message: "message"
280
283
  });
281
284
  /** Подтверждение входящим кодом либо исходящим звонком пользователя. */
282
285
  const PhoneVerificationMethod = Object.freeze({
@@ -355,7 +358,7 @@ var AccountEmailResource = class extends require_render.BaseResource {
355
358
  }
356
359
  /** Повторно отправляет код на тот же адрес. Передайте `flowToken` из первого запроса. */
357
360
  resendOtp(input, options = {}) {
358
- return requestAccount(this.http, ACCOUNT_EMAIL_RESEND_OTP, "/resend-otp", input, options);
361
+ return requestAccount(this.http, ACCOUNT_EMAIL_RESEND_OTP, "/email/resend-otp", input, options);
359
362
  }
360
363
  };
361
364
  // src/resources/account/password.ts
@@ -581,6 +584,21 @@ var AccountResource = class extends require_render.AccountLifecycleResource {
581
584
  getInfo(options = {}) {
582
585
  return requestAccount(this.http, ACCOUNT_GET_INFO, "/methods", void 0, options);
583
586
  }
587
+ /** Возвращает текущую редакцию условий и контекст, если аккаунту требуется согласие. */
588
+ termsAcceptance(options = {}) {
589
+ return requestAccount(this.http, ACCOUNT_TERMS_ACCEPTANCE, "/terms-acceptance", void 0, options);
590
+ }
591
+ /**
592
+ * Записывает согласие текущего аккаунта с редакцией условий.
593
+ *
594
+ * @param contextToken токен из контекста согласия, полученного через {@link termsAcceptance}
595
+ */
596
+ acceptTerms(contextToken, options = {}) {
597
+ return requestAccount(this.http, ACCOUNT_ACCEPT_TERMS, "/terms-acceptance", {
598
+ accepted: true,
599
+ contextToken
600
+ }, options);
601
+ }
584
602
  };
585
603
  // src/operations/auth.ts
586
604
  /** Чем закончился запрос входа. */
@@ -814,7 +832,7 @@ const AUTH_PATHS = {
814
832
  signUp: "/api/v1/auth/sign-up",
815
833
  signIn: "/api/v1/auth/sign-in",
816
834
  verifyOtp: "/api/v1/auth/verify-otp",
817
- resendOtp: "/api/v1/auth/resend-otp",
835
+ resendOtp: "/api/v1/auth/email/resend-otp",
818
836
  refresh: "/api/v1/auth/refresh",
819
837
  logout: "/api/v1/auth/logout",
820
838
  forgotPassword: "/api/v1/auth/forgot-password",
@@ -1776,7 +1794,13 @@ var PhoneAuthResource = class extends require_render.BaseResource {
1776
1794
  }
1777
1795
  /** Разрешённые регионы, примеры номеров и доступные способы подтверждения. */
1778
1796
  config(options = {}) {
1779
- return this.#request(AUTH_PHONE_CONFIG, "/phone/config", void 0, options);
1797
+ return this.#request(AUTH_PHONE_CONFIG, "/phone/config", void 0, {
1798
+ ...options,
1799
+ headers: {
1800
+ ...options.headers,
1801
+ "X-ITD-Phone-Message": "1"
1802
+ }
1803
+ });
1780
1804
  }
1781
1805
  /**
1782
1806
  * Загружает контекст phone_entry вместе с текстом и редакциями документов.
@@ -1810,7 +1834,7 @@ var PhoneAuthResource = class extends require_render.BaseResource {
1810
1834
  ...options,
1811
1835
  headers: {
1812
1836
  ...options.headers,
1813
- ...input.method === PhoneVerificationMethod.Reverse ? { "X-ITD-Phone-Method": PhoneVerificationMethod.Reverse } : {}
1837
+ ...input.method === PhoneVerificationMethod.Reverse ? { "X-ITD-Phone-Method": PhoneVerificationMethod.Reverse } : { "X-ITD-Phone-Message": "1" }
1814
1838
  }
1815
1839
  });
1816
1840
  }