itd-api 0.10.4 → 0.12.0
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/README.md +2 -1
- package/dist/events/index.cjs +27 -25
- package/dist/events/index.d.cts +3 -3
- package/dist/events/index.d.ts +3 -3
- package/dist/events/index.js +5 -5
- package/dist/index.cjs +155 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +35 -20
- package/dist/index.d.ts +35 -20
- package/dist/index.js +65 -72
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +13 -13
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +7 -8
- package/dist/node/index.d.ts +7 -8
- package/dist/node/index.js +5 -5
- package/dist/node/index.js.map +1 -1
- package/dist/rest/index.cjs +46 -40
- package/dist/rest/index.cjs.map +1 -1
- package/dist/rest/index.d.cts +5 -5
- package/dist/rest/index.d.ts +5 -5
- package/dist/rest/index.js +6 -6
- package/dist/rest/index.js.map +1 -1
- package/dist/shared/{events-CK3zHntT.d.cts → events-9L0Fonak.d.cts} +2 -2
- package/dist/shared/{events-DGdU8q1X.d.ts → events-BpLAIiMj.d.ts} +2 -2
- package/dist/shared/{events-B8cjz_Ed.cjs → events-C2DJZyI0.cjs} +306 -112
- package/dist/shared/events-C2DJZyI0.cjs.map +1 -0
- package/dist/shared/{events-D2n7Yu1P.js → events-D1BfefBT.js} +262 -68
- package/dist/shared/events-D1BfefBT.js.map +1 -0
- package/dist/shared/{key-value-store-B5GYVEYZ.cjs → key-value-store-DYSPsqwq.cjs} +11 -14
- package/dist/shared/key-value-store-DYSPsqwq.cjs.map +1 -0
- package/dist/shared/{key-value-store-Bt2PSMxY.js → key-value-store-w1Dn5Pjb.js} +5 -8
- package/dist/shared/key-value-store-w1Dn5Pjb.js.map +1 -0
- package/dist/shared/{multi-storage-s-fPtjoy.cjs → multi-storage-7Y3KCseI.cjs} +8 -8
- package/dist/shared/multi-storage-7Y3KCseI.cjs.map +1 -0
- package/dist/shared/{multi-storage-C3Ngtop1.js → multi-storage-DiBSx64p.js} +6 -6
- package/dist/shared/multi-storage-DiBSx64p.js.map +1 -0
- package/dist/shared/{options-DjEtbVaf.cjs → options-D5ttspWk.cjs} +13 -13
- package/dist/shared/{options-DjEtbVaf.cjs.map → options-D5ttspWk.cjs.map} +1 -1
- package/dist/shared/{options-i4LrKfqx.js → options-DLlaETn_.js} +3 -3
- package/dist/shared/{options-i4LrKfqx.js.map → options-DLlaETn_.js.map} +1 -1
- package/dist/shared/{redact-lAmck1Z6.cjs → redact-BbhtA9o-.cjs} +121 -26
- package/dist/shared/redact-BbhtA9o-.cjs.map +1 -0
- package/dist/shared/{redact-DJV0XM3n.js → redact-DSfdmeY7.js} +91 -20
- package/dist/shared/redact-DSfdmeY7.js.map +1 -0
- package/dist/shared/{render-BrrZOSV5.cjs → render-CrGXcj6L.cjs} +346 -284
- package/dist/shared/render-CrGXcj6L.cjs.map +1 -0
- package/dist/shared/{render-C6CJ343E.js → render-D3vSEbLL.js} +240 -178
- package/dist/shared/render-D3vSEbLL.js.map +1 -0
- package/dist/shared/{render-9F_kR6sq.d.cts → render-Dzw3KeN5.d.cts} +236 -278
- package/dist/shared/{render-UsOGMRzS.d.ts → render-UsQ1hb2U.d.ts} +236 -278
- package/dist/shared/{storage-DiDe0PZM.js → storage-86wiHeXD.js} +3 -3
- package/dist/shared/storage-86wiHeXD.js.map +1 -0
- package/dist/shared/{storage-CZJZoaz9.cjs → storage-CIjejZDt.cjs} +4 -4
- package/dist/shared/storage-CIjejZDt.cjs.map +1 -0
- package/dist/shared/{url-BNTKqBMB.cjs → url-B21Bdmw_.cjs} +869 -717
- package/dist/shared/url-B21Bdmw_.cjs.map +1 -0
- package/dist/shared/{url-yB6T_H_-.d.cts → url-C9YADYNg.d.cts} +221 -103
- package/dist/shared/{url-yB6T_H_-.d.ts → url-C9YADYNg.d.ts} +221 -103
- package/dist/shared/{url-Dc7wLikf.js → url-Dg1u29cu.js} +744 -598
- package/dist/shared/url-Dg1u29cu.js.map +1 -0
- package/dist/shared/{errors-BmP3TKoW.cjs → validate-CFx2dISs.cjs} +84 -5
- package/dist/shared/validate-CFx2dISs.cjs.map +1 -0
- package/dist/shared/{errors-GI10kZxk.js → validate-D7_kq3g5.js} +55 -6
- package/dist/shared/validate-D7_kq3g5.js.map +1 -0
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +4 -5
- package/dist/web/index.d.ts +4 -5
- package/dist/web/index.js +3 -3
- package/dist/web/index.js.map +1 -1
- package/package.json +11 -11
- package/dist/shared/errors-BmP3TKoW.cjs.map +0 -1
- package/dist/shared/errors-GI10kZxk.js.map +0 -1
- package/dist/shared/events-B8cjz_Ed.cjs.map +0 -1
- package/dist/shared/events-D2n7Yu1P.js.map +0 -1
- package/dist/shared/key-value-store-B5GYVEYZ.cjs.map +0 -1
- package/dist/shared/key-value-store-Bt2PSMxY.js.map +0 -1
- package/dist/shared/multi-storage-C3Ngtop1.js.map +0 -1
- package/dist/shared/multi-storage-s-fPtjoy.cjs.map +0 -1
- package/dist/shared/redact-DJV0XM3n.js.map +0 -1
- package/dist/shared/redact-lAmck1Z6.cjs.map +0 -1
- package/dist/shared/render-BrrZOSV5.cjs.map +0 -1
- package/dist/shared/render-C6CJ343E.js.map +0 -1
- package/dist/shared/storage-CZJZoaz9.cjs.map +0 -1
- package/dist/shared/storage-DiDe0PZM.js.map +0 -1
- package/dist/shared/url-BNTKqBMB.cjs.map +0 -1
- package/dist/shared/url-Dc7wLikf.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as ShopConsentContext, $n as
|
|
3
|
-
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-
|
|
1
|
+
import { $ as isItdPhoneVerificationError, $t as operationBucket, A as ItdConflictError, An as UsernameUnavailableReason, At as RequestContext, B as ItdRateLimitError, Bt as ServiceDefinition, C as UsernameAvailability, Cn as MessageAccess, Ct as ErrorContextHook, D as ItdApiErrorKind, Dn as ReportTargetType, Dt as RateLimitBucketOverride, E as ItdApiErrorInit, En as ReportReason, Et as RateLimitBucketContext, F as ItdFileErrorReason, Ft as RetryDecisionContext, G as TimeoutBudget, Gt as ItdClock, H as ItdStateError, Ht as RuntimeMode, I as ItdForbiddenError, It as RetryOptions, J as isItdConflictError, Jt as CustomOperationId, K as isItdApiError, Kt as systemClock, L as ItdNetworkError, Lt as RuntimeOptions, M as ItdErrorKind, Mn as ViewSource, Mt as RequestOptions, N as ItdFieldErrors, Nn as WallAccess, Nt as ResponseContext, O as ItdAuthError, On as ServiceState, Ot as RateLimitOptions, P as ItdFileError, Pt as RetryContext, Q as isItdNotFoundError, Qt as isBuiltInOperationId, R as ItdNotFoundError, Rt as QueryParams, S as UserSummary, Sn as Loose, St as ClientHooks, T as ItdApiError, Tn as QrLocationPrecision, Tt as PaginationOptions, U as ItdTimeoutError, Ut as LogLevel, V as ItdServerError, Vt as RateLimitPacing, W as ItdValidationError, Wt as Logger, X as isItdFileError, Xt as OPERATIONS, Y as isItdError, Yt as ItdOperationDefinition, Z as isItdForbiddenError, Zt as OperationId, _ as PinsResult, _n as IncidentKind, _t as OperationAnnotations, a as NotificationEvent, an as IsoDate, at as Listener, b as PublicProfile, bn as LastSeenUnit, bt as OperationMethod, c as NotificationSettings, cn as UserRef, ct as AuthIdentity, d as AuthUser, dn as CaptchaChoice, en as operationMethod, et as isItdRateLimitError, f as Author, fn as CaptchaField, g as Pin, gn as FeedTab, gt as FeatureOperationId, h as MyProfile, hn as EventChannelStatus, ht as LIBRARY_VERSION, i as formatNotificationText, in as RateLimitBucket, it as Emitter, j as ItdError, jn as ViewReason, jt as RequestExtensions, k as ItdConfigError, kn as SpanType, kt as RawRequestOptions, l as Actor, ln as AccessType, lt as AuthProvider, m as LastSeen, mn as CommentSort, mt as STATUS_SERVICE, n as canonicalNotificationType, nn as BUCKET_LIMITS, nt as isItdStateError, o as normalizeNotification, on as Span, ot as Unsubscribe, p as FollowResult, pn as CaptchaType, pt as DEFAULT_BASE_URL, q as isItdAuthError, qt as BuiltInOperationId, r as isKnownNotificationType, rn as DEFAULT_RATE_LIMIT_BUCKET, rt as isItdValidationError, s as Notification, sn as UserId, st as ClientConnection, t as resolveNotificationUrl, tn as operationRetrySafety, tt as isItdServerError, u as AuthState, un as AttachmentType, v as PrivacySettings, vn as InteractionType, w as ItdAbortError, wn as NotificationType, wt as OperationRequestOptions, x as SubscriptionState, xn as LikesVisibility, xt as RetrySafety, y as Profile, yn as ItdErrorCode, yt as OperationMetadata, z as ItdPhoneVerificationError, zt as QueryValue } from "./shared/url-C9YADYNg.cjs";
|
|
2
|
+
import { $ as ShopConsentContext, $n as Page, $t as markup, A as DwellEntry, An as PollOption, Ar as CookieJar, At as report, B as ViewTrackerInput, Bn as CreateCommentInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as FileResolver, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as OriginalPost, Dr as ResolveFileContext, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PreparedStreamSource, Et as SearchResult, F as TelemetryClock, Fn as CommentInput, Ft as CreatePostInput, G as ShopConsentsResource, Gn as PaymentMethod, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreatePostData, Ht as poll, I as TelemetryOptions, In as comment, It as PostBuilder, J as ShopOrdersResource, Jn as Subscription, Jt as MarkupContent, K as ShopDeliveryResource, Kn as QrLoginTarget, Kt as AutoSpansOptions, L as TelemetryResource, Ln as BuilderInput, Lt as PostInput, M as PhotoOpenInput, Mn as PostStats, Mt as FeedParams, N as TelemetryBatch, Nn as PostUpdateResult, Nt as PostsResource, O as UserListParams, On as PinPostResult, Or as ResolveFileOptions, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentBuilder, Pt as UserPostsParams, Q as ShopConsent, Qn as BaseResource, Qt as autoSpans, R as VideoProgressInput, Rn as ItdBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ManagedClientResource, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as PreparedFileSource, Tt as SearchResource, U as CreateShopOrderOptions, Un as CreateReportInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePollInput, Vt as PollInput, W as PayShopOrderOptions, Wn as UpdatePostInput, Wt as parseHtml, X as ShopResource, Xn as NotificationsResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationListParams, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as UpdateNotificationSettingsInput, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as FeatureBucketDefinition, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as RateLimitBucketState, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as FeatureOperationDefinition, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as AttemptInterceptor, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as OperationExtensions, dt as ShopOrderItem, en as PlatformClientVersion, er as PageState, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as OperationTransformContext, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ClientFeature, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as PluginTeardown, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as mapPage, it as ShopDeliveryCountry, j as InteractionEntry, jn as Post, jt as CommentsParams, k as UsersResource, kn as Poll, kr as HttpClient, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as AttemptNext, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PluginApi, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as Paginator, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as AttemptContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as OperationTransformer, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Session, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as PaginatorOptions, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as AttemptExtensions, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginationMode, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ClientPlugin, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as FeatureContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as PreparedBufferSource, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as FeatureRequestOptions, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as FeatureInstallation, yt as ShopProductColor, z as ViewTracker, zn as isBuilder, zt as post } from "./shared/render-Dzw3KeN5.cjs";
|
|
3
|
+
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-9L0Fonak.cjs";
|
|
4
4
|
import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-BoT7msmq.cjs";
|
|
5
5
|
import { a as KeyValueStoreResult, c as createKeyValueStore, d as withCodec, f as withNamespace, i as KeyValueStoreKeys, l as createRecordKeyValueStore, n as KeyValueCodec, o as MemoryKeyValueStore, r as KeyValueStore, s as RecordKeyValueStoreSource, t as EnumerableKeyValueStore, u as isEnumerableKeyValueStore } from "./shared/key-value-store-COZaNHZS.cjs";
|
|
6
6
|
import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-BQrtKon9.cjs";
|
|
@@ -14,11 +14,11 @@ interface NotificationsApi extends NotificationsResource {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/operations/auth.d.ts
|
|
16
16
|
/** Чем закончился запрос входа. */
|
|
17
|
-
declare const SignInStatus: Readonly<{
|
|
17
|
+
export declare const SignInStatus: Readonly<{
|
|
18
18
|
readonly Authenticated: "authenticated";
|
|
19
19
|
readonly OtpRequired: "otp_required";
|
|
20
20
|
}>;
|
|
21
|
-
type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
21
|
+
export type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
22
22
|
/** Результат входа: готовый токен либо продолжение через код подтверждения. */
|
|
23
23
|
type SignInResult = {
|
|
24
24
|
status: 'authenticated';
|
|
@@ -62,7 +62,7 @@ interface CaptchaToken {
|
|
|
62
62
|
*
|
|
63
63
|
* Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
|
|
64
64
|
*/
|
|
65
|
-
declare const CAPTCHA_FIELDS: Readonly<{
|
|
65
|
+
export declare const CAPTCHA_FIELDS: Readonly<{
|
|
66
66
|
readonly itd: "token";
|
|
67
67
|
readonly cloudflare: "turnstileToken";
|
|
68
68
|
}>;
|
|
@@ -75,14 +75,14 @@ interface QrLoginStart {
|
|
|
75
75
|
captchaRequired: boolean;
|
|
76
76
|
}
|
|
77
77
|
/** Состояния, которые может вернуть проверка QR-входа. */
|
|
78
|
-
declare const QrLoginStatus: Readonly<{
|
|
78
|
+
export declare const QrLoginStatus: Readonly<{
|
|
79
79
|
readonly Pending: "pending";
|
|
80
80
|
readonly Scanned: "scanned";
|
|
81
81
|
readonly CaptchaRequired: "captcha_required";
|
|
82
82
|
readonly Authorized: "authorized";
|
|
83
83
|
readonly Rejected: "rejected";
|
|
84
84
|
}>;
|
|
85
|
-
type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
85
|
+
export type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
86
86
|
/** Результат проверки QR-входа. */
|
|
87
87
|
type QrLoginClaim = {
|
|
88
88
|
status: 'authorized';
|
|
@@ -93,13 +93,13 @@ type QrLoginClaim = {
|
|
|
93
93
|
expiresIn?: number;
|
|
94
94
|
};
|
|
95
95
|
/** Состояния, приходящие из потокового наблюдения за QR-входом. */
|
|
96
|
-
declare const QrLoginStreamStatus: Readonly<{
|
|
96
|
+
export declare const QrLoginStreamStatus: Readonly<{
|
|
97
97
|
readonly Pending: "pending";
|
|
98
98
|
readonly Scanned: "scanned";
|
|
99
99
|
readonly Approved: "approved";
|
|
100
100
|
readonly Rejected: "rejected";
|
|
101
101
|
}>;
|
|
102
|
-
type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
102
|
+
export type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
103
103
|
/** Одно событие `POST /api/v1/auth/qr/stream`. */
|
|
104
104
|
interface QrLoginStreamEvent {
|
|
105
105
|
status: QrLoginStreamStatus;
|
|
@@ -107,6 +107,11 @@ interface QrLoginStreamEvent {
|
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/session/options.d.ts
|
|
110
|
+
/** Что клиент передаёт источнику токена капчи при каждом обращении. */
|
|
111
|
+
interface CaptchaSolveContext {
|
|
112
|
+
/** Логгер клиента, если он включён. */
|
|
113
|
+
logger: Logger | undefined;
|
|
114
|
+
}
|
|
110
115
|
/**
|
|
111
116
|
* Источник токенов капчи.
|
|
112
117
|
*
|
|
@@ -116,7 +121,7 @@ interface QrLoginStreamEvent {
|
|
|
116
121
|
*/
|
|
117
122
|
interface CaptchaSolver {
|
|
118
123
|
/** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
|
|
119
|
-
getToken(type: CaptchaType): string | Promise<string>;
|
|
124
|
+
getToken(type: CaptchaType, context: CaptchaSolveContext): string | Promise<string>;
|
|
120
125
|
/**
|
|
121
126
|
* Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
|
|
122
127
|
*
|
|
@@ -134,7 +139,7 @@ interface CaptchaSolver {
|
|
|
134
139
|
field?: CaptchaField | undefined;
|
|
135
140
|
}
|
|
136
141
|
/** Источник токенов капчи: объект с `getToken` либо сама функция. */
|
|
137
|
-
type CaptchaSolverInput = CaptchaSolver |
|
|
142
|
+
type CaptchaSolverInput = CaptchaSolver | CaptchaSolver['getToken'];
|
|
138
143
|
/**
|
|
139
144
|
* Вход по логину и паролю.
|
|
140
145
|
*
|
|
@@ -288,7 +293,7 @@ interface SessionConfig {
|
|
|
288
293
|
* });
|
|
289
294
|
* ```
|
|
290
295
|
*/
|
|
291
|
-
declare const TURNSTILE_SITE_KEY = "0x4AAAAAACHhxczw6fJGwPBg";
|
|
296
|
+
export declare const TURNSTILE_SITE_KEY = "0x4AAAAAACHhxczw6fJGwPBg";
|
|
292
297
|
/** События слоя авторизации. */
|
|
293
298
|
interface AuthEvents {
|
|
294
299
|
/** Токен получен или обновлён. */
|
|
@@ -535,14 +540,18 @@ declare class AuthResource extends BaseResource {
|
|
|
535
540
|
*
|
|
536
541
|
* Сервер может переключить провайдера или переименовать поле без выпуска новой версии SDK.
|
|
537
542
|
* Автоматическому входу этот вызов не нужен — клиент делает его сам.
|
|
543
|
+
*
|
|
544
|
+
* @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile.
|
|
538
545
|
*/
|
|
539
|
-
captchaProvider(
|
|
546
|
+
captchaProvider(_options?: RequestOptions): Promise<CaptchaProvider>;
|
|
540
547
|
/**
|
|
541
548
|
* Узнаёт активного провайдера капчи вместе с адресом страницы виджета.
|
|
542
549
|
*
|
|
543
550
|
* То же, что {@link captchaProvider}, плюс `url` — готовая страница на домене итд.com,
|
|
544
551
|
* где ключ виджета действителен. Пригодится встроенному браузеру: открыть её и забрать
|
|
545
552
|
* токен, ничего не собирая самому.
|
|
553
|
+
*
|
|
554
|
+
* @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile на домене итд.com.
|
|
546
555
|
*/
|
|
547
556
|
captchaPage(options?: RequestOptions): Promise<CaptchaPage>;
|
|
548
557
|
/** Создаёт короткоживущую сессию QR-входа. */
|
|
@@ -766,7 +775,7 @@ declare class AuthResource extends BaseResource {
|
|
|
766
775
|
* }
|
|
767
776
|
* ```
|
|
768
777
|
*/
|
|
769
|
-
declare class ItdClient {
|
|
778
|
+
export declare class ItdClient {
|
|
770
779
|
#private;
|
|
771
780
|
/** Авторизация, сессии и пароли. */
|
|
772
781
|
get auth(): AuthResource;
|
|
@@ -1002,11 +1011,17 @@ declare class ItdClient {
|
|
|
1002
1011
|
* const itd = createClient({ auth: token });
|
|
1003
1012
|
* ```
|
|
1004
1013
|
*/
|
|
1005
|
-
declare function createClient(options?: ItdClientOptions): ItdClient;
|
|
1014
|
+
export declare function createClient(options?: ItdClientOptions): ItdClient;
|
|
1006
1015
|
//#endregion
|
|
1007
1016
|
//#region src/accounts.d.ts
|
|
1008
1017
|
/** Как аккаунты делят между собой очередь запросов. */
|
|
1009
|
-
|
|
1018
|
+
export declare const RateLimitScope: Readonly<{
|
|
1019
|
+
/** У каждого аккаунта своя очередь. */
|
|
1020
|
+
readonly Account: "account";
|
|
1021
|
+
/** Одна очередь на всех — умолчание. */
|
|
1022
|
+
readonly Shared: "shared";
|
|
1023
|
+
}>;
|
|
1024
|
+
export type RateLimitScope = (typeof RateLimitScope)[keyof typeof RateLimitScope];
|
|
1010
1025
|
/**
|
|
1011
1026
|
* Фабрика подключаемого модуля для клиентов {@link ItdAccounts}.
|
|
1012
1027
|
*
|
|
@@ -1125,7 +1140,7 @@ interface AccountEvents {
|
|
|
1125
1140
|
* }
|
|
1126
1141
|
* ```
|
|
1127
1142
|
*/
|
|
1128
|
-
declare class ItdAccounts {
|
|
1143
|
+
export declare class ItdAccounts {
|
|
1129
1144
|
#private;
|
|
1130
1145
|
constructor(options?: ItdAccountsOptions);
|
|
1131
1146
|
/** Общее хранилище сессий — то же, что передано опцией `storage`. */
|
|
@@ -1268,7 +1283,7 @@ declare class ItdAccounts {
|
|
|
1268
1283
|
*
|
|
1269
1284
|
* То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
|
|
1270
1285
|
*/
|
|
1271
|
-
declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1286
|
+
export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1272
1287
|
//#endregion
|
|
1273
|
-
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId,
|
|
1288
|
+
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, 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, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, 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 NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
1274
1289
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as ShopConsentContext, $n as
|
|
3
|
-
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-
|
|
1
|
+
import { $ as isItdPhoneVerificationError, $t as operationBucket, A as ItdConflictError, An as UsernameUnavailableReason, At as RequestContext, B as ItdRateLimitError, Bt as ServiceDefinition, C as UsernameAvailability, Cn as MessageAccess, Ct as ErrorContextHook, D as ItdApiErrorKind, Dn as ReportTargetType, Dt as RateLimitBucketOverride, E as ItdApiErrorInit, En as ReportReason, Et as RateLimitBucketContext, F as ItdFileErrorReason, Ft as RetryDecisionContext, G as TimeoutBudget, Gt as ItdClock, H as ItdStateError, Ht as RuntimeMode, I as ItdForbiddenError, It as RetryOptions, J as isItdConflictError, Jt as CustomOperationId, K as isItdApiError, Kt as systemClock, L as ItdNetworkError, Lt as RuntimeOptions, M as ItdErrorKind, Mn as ViewSource, Mt as RequestOptions, N as ItdFieldErrors, Nn as WallAccess, Nt as ResponseContext, O as ItdAuthError, On as ServiceState, Ot as RateLimitOptions, P as ItdFileError, Pt as RetryContext, Q as isItdNotFoundError, Qt as isBuiltInOperationId, R as ItdNotFoundError, Rt as QueryParams, S as UserSummary, Sn as Loose, St as ClientHooks, T as ItdApiError, Tn as QrLocationPrecision, Tt as PaginationOptions, U as ItdTimeoutError, Ut as LogLevel, V as ItdServerError, Vt as RateLimitPacing, W as ItdValidationError, Wt as Logger, X as isItdFileError, Xt as OPERATIONS, Y as isItdError, Yt as ItdOperationDefinition, Z as isItdForbiddenError, Zt as OperationId, _ as PinsResult, _n as IncidentKind, _t as OperationAnnotations, a as NotificationEvent, an as IsoDate, at as Listener, b as PublicProfile, bn as LastSeenUnit, bt as OperationMethod, c as NotificationSettings, cn as UserRef, ct as AuthIdentity, d as AuthUser, dn as CaptchaChoice, en as operationMethod, et as isItdRateLimitError, f as Author, fn as CaptchaField, g as Pin, gn as FeedTab, gt as FeatureOperationId, h as MyProfile, hn as EventChannelStatus, ht as LIBRARY_VERSION, i as formatNotificationText, in as RateLimitBucket, it as Emitter, j as ItdError, jn as ViewReason, jt as RequestExtensions, k as ItdConfigError, kn as SpanType, kt as RawRequestOptions, l as Actor, ln as AccessType, lt as AuthProvider, m as LastSeen, mn as CommentSort, mt as STATUS_SERVICE, n as canonicalNotificationType, nn as BUCKET_LIMITS, nt as isItdStateError, o as normalizeNotification, on as Span, ot as Unsubscribe, p as FollowResult, pn as CaptchaType, pt as DEFAULT_BASE_URL, q as isItdAuthError, qt as BuiltInOperationId, r as isKnownNotificationType, rn as DEFAULT_RATE_LIMIT_BUCKET, rt as isItdValidationError, s as Notification, sn as UserId, st as ClientConnection, t as resolveNotificationUrl, tn as operationRetrySafety, tt as isItdServerError, u as AuthState, un as AttachmentType, v as PrivacySettings, vn as InteractionType, w as ItdAbortError, wn as NotificationType, wt as OperationRequestOptions, x as SubscriptionState, xn as LikesVisibility, xt as RetrySafety, y as Profile, yn as ItdErrorCode, yt as OperationMetadata, z as ItdPhoneVerificationError, zt as QueryValue } from "./shared/url-C9YADYNg.js";
|
|
2
|
+
import { $ as ShopConsentContext, $n as Page, $t as markup, A as DwellEntry, An as PollOption, Ar as CookieJar, At as report, B as ViewTrackerInput, Bn as CreateCommentInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as FileResolver, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as OriginalPost, Dr as ResolveFileContext, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PreparedStreamSource, Et as SearchResult, F as TelemetryClock, Fn as CommentInput, Ft as CreatePostInput, G as ShopConsentsResource, Gn as PaymentMethod, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreatePostData, Ht as poll, I as TelemetryOptions, In as comment, It as PostBuilder, J as ShopOrdersResource, Jn as Subscription, Jt as MarkupContent, K as ShopDeliveryResource, Kn as QrLoginTarget, Kt as AutoSpansOptions, L as TelemetryResource, Ln as BuilderInput, Lt as PostInput, M as PhotoOpenInput, Mn as PostStats, Mt as FeedParams, N as TelemetryBatch, Nn as PostUpdateResult, Nt as PostsResource, O as UserListParams, On as PinPostResult, Or as ResolveFileOptions, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentBuilder, Pt as UserPostsParams, Q as ShopConsent, Qn as BaseResource, Qt as autoSpans, R as VideoProgressInput, Rn as ItdBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ManagedClientResource, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as PreparedFileSource, Tt as SearchResource, U as CreateShopOrderOptions, Un as CreateReportInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePollInput, Vt as PollInput, W as PayShopOrderOptions, Wn as UpdatePostInput, Wt as parseHtml, X as ShopResource, Xn as NotificationsResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as NotificationListParams, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as UpdateNotificationSettingsInput, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as FeatureBucketDefinition, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as RateLimitBucketState, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as FeatureOperationDefinition, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as AttemptInterceptor, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as OperationExtensions, dt as ShopOrderItem, en as PlatformClientVersion, er as PageState, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as OperationTransformContext, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ClientFeature, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as PluginTeardown, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as mapPage, it as ShopDeliveryCountry, j as InteractionEntry, jn as Post, jt as CommentsParams, k as UsersResource, kn as Poll, kr as HttpClient, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as AttemptNext, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PluginApi, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as Paginator, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as AttemptContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as OperationTransformer, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as Session, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as PaginatorOptions, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as AttemptExtensions, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginationMode, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ClientPlugin, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as FeatureContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as PreparedBufferSource, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as FeatureRequestOptions, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as FeatureInstallation, yt as ShopProductColor, z as ViewTracker, zn as isBuilder, zt as post } from "./shared/render-UsQ1hb2U.js";
|
|
3
|
+
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-BpLAIiMj.js";
|
|
4
4
|
import { a as FileStreamOptions, c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions, t as FileContent, u as UrlFile } from "./shared/contracts-BoT7msmq.js";
|
|
5
5
|
import { a as KeyValueStoreResult, c as createKeyValueStore, d as withCodec, f as withNamespace, i as KeyValueStoreKeys, l as createRecordKeyValueStore, n as KeyValueCodec, o as MemoryKeyValueStore, r as KeyValueStore, s as RecordKeyValueStoreSource, t as EnumerableKeyValueStore, u as isEnumerableKeyValueStore } from "./shared/key-value-store-COZaNHZS.js";
|
|
6
6
|
import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-CTRGT5wF.js";
|
|
@@ -14,11 +14,11 @@ interface NotificationsApi extends NotificationsResource {
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/operations/auth.d.ts
|
|
16
16
|
/** Чем закончился запрос входа. */
|
|
17
|
-
declare const SignInStatus: Readonly<{
|
|
17
|
+
export declare const SignInStatus: Readonly<{
|
|
18
18
|
readonly Authenticated: "authenticated";
|
|
19
19
|
readonly OtpRequired: "otp_required";
|
|
20
20
|
}>;
|
|
21
|
-
type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
21
|
+
export type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
22
22
|
/** Результат входа: готовый токен либо продолжение через код подтверждения. */
|
|
23
23
|
type SignInResult = {
|
|
24
24
|
status: 'authenticated';
|
|
@@ -62,7 +62,7 @@ interface CaptchaToken {
|
|
|
62
62
|
*
|
|
63
63
|
* Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
|
|
64
64
|
*/
|
|
65
|
-
declare const CAPTCHA_FIELDS: Readonly<{
|
|
65
|
+
export declare const CAPTCHA_FIELDS: Readonly<{
|
|
66
66
|
readonly itd: "token";
|
|
67
67
|
readonly cloudflare: "turnstileToken";
|
|
68
68
|
}>;
|
|
@@ -75,14 +75,14 @@ interface QrLoginStart {
|
|
|
75
75
|
captchaRequired: boolean;
|
|
76
76
|
}
|
|
77
77
|
/** Состояния, которые может вернуть проверка QR-входа. */
|
|
78
|
-
declare const QrLoginStatus: Readonly<{
|
|
78
|
+
export declare const QrLoginStatus: Readonly<{
|
|
79
79
|
readonly Pending: "pending";
|
|
80
80
|
readonly Scanned: "scanned";
|
|
81
81
|
readonly CaptchaRequired: "captcha_required";
|
|
82
82
|
readonly Authorized: "authorized";
|
|
83
83
|
readonly Rejected: "rejected";
|
|
84
84
|
}>;
|
|
85
|
-
type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
85
|
+
export type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
86
86
|
/** Результат проверки QR-входа. */
|
|
87
87
|
type QrLoginClaim = {
|
|
88
88
|
status: 'authorized';
|
|
@@ -93,13 +93,13 @@ type QrLoginClaim = {
|
|
|
93
93
|
expiresIn?: number;
|
|
94
94
|
};
|
|
95
95
|
/** Состояния, приходящие из потокового наблюдения за QR-входом. */
|
|
96
|
-
declare const QrLoginStreamStatus: Readonly<{
|
|
96
|
+
export declare const QrLoginStreamStatus: Readonly<{
|
|
97
97
|
readonly Pending: "pending";
|
|
98
98
|
readonly Scanned: "scanned";
|
|
99
99
|
readonly Approved: "approved";
|
|
100
100
|
readonly Rejected: "rejected";
|
|
101
101
|
}>;
|
|
102
|
-
type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
102
|
+
export type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
103
103
|
/** Одно событие `POST /api/v1/auth/qr/stream`. */
|
|
104
104
|
interface QrLoginStreamEvent {
|
|
105
105
|
status: QrLoginStreamStatus;
|
|
@@ -107,6 +107,11 @@ interface QrLoginStreamEvent {
|
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
109
|
//#region src/session/options.d.ts
|
|
110
|
+
/** Что клиент передаёт источнику токена капчи при каждом обращении. */
|
|
111
|
+
interface CaptchaSolveContext {
|
|
112
|
+
/** Логгер клиента, если он включён. */
|
|
113
|
+
logger: Logger | undefined;
|
|
114
|
+
}
|
|
110
115
|
/**
|
|
111
116
|
* Источник токенов капчи.
|
|
112
117
|
*
|
|
@@ -116,7 +121,7 @@ interface QrLoginStreamEvent {
|
|
|
116
121
|
*/
|
|
117
122
|
interface CaptchaSolver {
|
|
118
123
|
/** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
|
|
119
|
-
getToken(type: CaptchaType): string | Promise<string>;
|
|
124
|
+
getToken(type: CaptchaType, context: CaptchaSolveContext): string | Promise<string>;
|
|
120
125
|
/**
|
|
121
126
|
* Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
|
|
122
127
|
*
|
|
@@ -134,7 +139,7 @@ interface CaptchaSolver {
|
|
|
134
139
|
field?: CaptchaField | undefined;
|
|
135
140
|
}
|
|
136
141
|
/** Источник токенов капчи: объект с `getToken` либо сама функция. */
|
|
137
|
-
type CaptchaSolverInput = CaptchaSolver |
|
|
142
|
+
type CaptchaSolverInput = CaptchaSolver | CaptchaSolver['getToken'];
|
|
138
143
|
/**
|
|
139
144
|
* Вход по логину и паролю.
|
|
140
145
|
*
|
|
@@ -288,7 +293,7 @@ interface SessionConfig {
|
|
|
288
293
|
* });
|
|
289
294
|
* ```
|
|
290
295
|
*/
|
|
291
|
-
declare const TURNSTILE_SITE_KEY = "0x4AAAAAACHhxczw6fJGwPBg";
|
|
296
|
+
export declare const TURNSTILE_SITE_KEY = "0x4AAAAAACHhxczw6fJGwPBg";
|
|
292
297
|
/** События слоя авторизации. */
|
|
293
298
|
interface AuthEvents {
|
|
294
299
|
/** Токен получен или обновлён. */
|
|
@@ -535,14 +540,18 @@ declare class AuthResource extends BaseResource {
|
|
|
535
540
|
*
|
|
536
541
|
* Сервер может переключить провайдера или переименовать поле без выпуска новой версии SDK.
|
|
537
542
|
* Автоматическому входу этот вызов не нужен — клиент делает его сам.
|
|
543
|
+
*
|
|
544
|
+
* @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile.
|
|
538
545
|
*/
|
|
539
|
-
captchaProvider(
|
|
546
|
+
captchaProvider(_options?: RequestOptions): Promise<CaptchaProvider>;
|
|
540
547
|
/**
|
|
541
548
|
* Узнаёт активного провайдера капчи вместе с адресом страницы виджета.
|
|
542
549
|
*
|
|
543
550
|
* То же, что {@link captchaProvider}, плюс `url` — готовая страница на домене итд.com,
|
|
544
551
|
* где ключ виджета действителен. Пригодится встроенному браузеру: открыть её и забрать
|
|
545
552
|
* токен, ничего не собирая самому.
|
|
553
|
+
*
|
|
554
|
+
* @deprecated Сервер отвечает `404`; метод возвращает Cloudflare Turnstile на домене итд.com.
|
|
546
555
|
*/
|
|
547
556
|
captchaPage(options?: RequestOptions): Promise<CaptchaPage>;
|
|
548
557
|
/** Создаёт короткоживущую сессию QR-входа. */
|
|
@@ -766,7 +775,7 @@ declare class AuthResource extends BaseResource {
|
|
|
766
775
|
* }
|
|
767
776
|
* ```
|
|
768
777
|
*/
|
|
769
|
-
declare class ItdClient {
|
|
778
|
+
export declare class ItdClient {
|
|
770
779
|
#private;
|
|
771
780
|
/** Авторизация, сессии и пароли. */
|
|
772
781
|
get auth(): AuthResource;
|
|
@@ -1002,11 +1011,17 @@ declare class ItdClient {
|
|
|
1002
1011
|
* const itd = createClient({ auth: token });
|
|
1003
1012
|
* ```
|
|
1004
1013
|
*/
|
|
1005
|
-
declare function createClient(options?: ItdClientOptions): ItdClient;
|
|
1014
|
+
export declare function createClient(options?: ItdClientOptions): ItdClient;
|
|
1006
1015
|
//#endregion
|
|
1007
1016
|
//#region src/accounts.d.ts
|
|
1008
1017
|
/** Как аккаунты делят между собой очередь запросов. */
|
|
1009
|
-
|
|
1018
|
+
export declare const RateLimitScope: Readonly<{
|
|
1019
|
+
/** У каждого аккаунта своя очередь. */
|
|
1020
|
+
readonly Account: "account";
|
|
1021
|
+
/** Одна очередь на всех — умолчание. */
|
|
1022
|
+
readonly Shared: "shared";
|
|
1023
|
+
}>;
|
|
1024
|
+
export type RateLimitScope = (typeof RateLimitScope)[keyof typeof RateLimitScope];
|
|
1010
1025
|
/**
|
|
1011
1026
|
* Фабрика подключаемого модуля для клиентов {@link ItdAccounts}.
|
|
1012
1027
|
*
|
|
@@ -1125,7 +1140,7 @@ interface AccountEvents {
|
|
|
1125
1140
|
* }
|
|
1126
1141
|
* ```
|
|
1127
1142
|
*/
|
|
1128
|
-
declare class ItdAccounts {
|
|
1143
|
+
export declare class ItdAccounts {
|
|
1129
1144
|
#private;
|
|
1130
1145
|
constructor(options?: ItdAccountsOptions);
|
|
1131
1146
|
/** Общее хранилище сессий — то же, что передано опцией `storage`. */
|
|
@@ -1268,7 +1283,7 @@ declare class ItdAccounts {
|
|
|
1268
1283
|
*
|
|
1269
1284
|
* То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
|
|
1270
1285
|
*/
|
|
1271
|
-
declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1286
|
+
export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1272
1287
|
//#endregion
|
|
1273
|
-
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId,
|
|
1288
|
+
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountEvents, type AccountFeature, type Actor, type AddAccountOptions, type AllowedMimeType, type Announcement, type AnnouncementButton, type Attachment, AttachmentType, type AttemptContext, type AttemptExtensions, type AttemptInterceptor, type AttemptNext, type AudioMimeType, type AuthEvents, type AuthIdentity, type AuthInput, type AuthProvider, type AuthResource, type AuthState, type AuthUser, type Author, type AutoSpansOptions, BUCKET_LIMITS, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, 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, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, 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 NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PhotoOpenInput, type Pin, type PinPostResult, type PinsResult, type PlatformClientVersion, type PlatformResource, type PlatformStatus, type PlatformVersions, type PluginApi, type PluginTeardown, type Poll, type PollBuilder, type PollInput, type PollOption, type Portal, type Post, type PostBuilder, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UploadOptions, type UploadedFile, type UrlFile, type UrlFileOptions, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
1274
1289
|
//# sourceMappingURL=index.d.ts.map
|