itd-api 0.9.3 → 0.10.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/README.md +9 -8
- package/dist/events/index.cjs +2 -2
- package/dist/events/index.d.cts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +2 -2
- package/dist/index.cjs +452 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +229 -49
- package/dist/index.d.ts +229 -49
- package/dist/index.js +448 -44
- package/dist/index.js.map +1 -1
- package/dist/rest/index.cjs +2 -2
- package/dist/rest/index.d.cts +2 -2
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +2 -2
- package/dist/shared/{events-BPxBF0gQ.d.cts → events-CZXU16qU.d.cts} +2 -2
- package/dist/shared/{events-BzjI6pn5.js → events-Cipe-Fm9.js} +3 -3
- package/dist/shared/{events-BzjI6pn5.js.map → events-Cipe-Fm9.js.map} +1 -1
- package/dist/shared/{events-DnwfcLxS.d.ts → events-D3CSlpXR.d.ts} +2 -2
- package/dist/shared/{events-C1FudmSe.cjs → events-MtRNe_TF.cjs} +8 -2
- package/dist/shared/{events-C1FudmSe.cjs.map → events-MtRNe_TF.cjs.map} +1 -1
- package/dist/shared/{render-uFW2kDxp.d.ts → render-Cs6AOXbD.d.ts} +2 -2
- package/dist/shared/{render-CtOpp9Pm.js → render-CubTTof_.js} +2 -2
- package/dist/shared/{render-CtOpp9Pm.js.map → render-CubTTof_.js.map} +1 -1
- package/dist/shared/{render-C1F_QWYD.d.cts → render-bZwOk3CC.d.cts} +2 -2
- package/dist/shared/{render-Omy1drH1.cjs → render-dscKp9CC.cjs} +2 -2
- package/dist/shared/{render-Omy1drH1.cjs.map → render-dscKp9CC.cjs.map} +1 -1
- package/dist/shared/{url-3Ts6EEHQ.js → url-CntTEAxu.js} +65 -3
- package/dist/shared/url-CntTEAxu.js.map +1 -0
- package/dist/shared/{url-D6wsXm1T.cjs → url-DgTYZN_v.cjs} +100 -2
- package/dist/shared/url-DgTYZN_v.cjs.map +1 -0
- package/dist/shared/{url-DubjkRR9.d.cts → url-Dum7r_FT.d.cts} +70 -3
- package/dist/shared/{url-DubjkRR9.d.ts → url-Dum7r_FT.d.ts} +70 -3
- package/package.json +2 -1
- package/dist/shared/url-3Ts6EEHQ.js.map +0 -1
- package/dist/shared/url-D6wsXm1T.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as
|
|
2
|
-
import { $ as ShopConsentContext, $n as PaginationMode, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as OperationExtensions, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginTeardown, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PluginApi, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as Session, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationsResource, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Subscription, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as CookieJar, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as PageState, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ClientPlugin, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformer, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as BaseResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as UpdateNotificationSettingsInput, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as Page, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as HttpClient, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as FeatureBucketDefinition, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptInterceptor, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureOperationDefinition, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as FileResolver, dt as ShopOrderItem, en as PlatformClientVersion, er as Paginator, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as PreparedBufferSource, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileOptions, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ResolveFileContext, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as ClientFeature, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureRequestOptions, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedStreamSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as mapPage, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedFileSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as NotificationListParams, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as RateLimitBucketState, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureInstallation, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginatorOptions, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ManagedClientResource, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as AttemptContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationTransformContext, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptNext, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptExtensions, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-
|
|
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 isItdStateError, $t as DEFAULT_RATE_LIMIT_BUCKET, A as ItdErrorKind, At as RequestOptions, B as ItdStateError, Bt as RuntimeMode, C as ItdApiError, Cn as ViewReason, Ct as PaginationOptions, D as ItdConfigError, Dt as RawRequestOptions, E as ItdAuthError, Et as RateLimitOptions, F as ItdNetworkError, Ft as RuntimeOptions, G as isItdConflictError, Gt as ItdOperationDefinition, H as ItdValidationError, Ht as systemClock, I as ItdNotFoundError, It as QueryParams, J as isItdForbiddenError, Jt as isBuiltInOperationId, K as isItdError, Kt as OPERATIONS, L as ItdPhoneVerificationError, Lt as QueryValue, M as ItdFileError, Mt as RetryContext, N as ItdFileErrorReason, Nt as RetryDecisionContext, O as ItdConflictError, Ot as RequestContext, P as ItdForbiddenError, Pt as RetryOptions, Q as isItdServerError, Qt as BUCKET_LIMITS, R as ItdRateLimitError, Rt as ServiceDefinition, S as ItdAbortError, Sn as SpanType, St as OperationRequestOptions, T as ItdApiErrorKind, Tn as WallAccess, Tt as RateLimitBucketOverride, U as isItdApiError, Ut as BuiltInOperationId, V as ItdTimeoutError, Vt as ItdClock, W as isItdAuthError, Wt as CustomOperationId, X as isItdPhoneVerificationError, Xt as operationMethod, Y as isItdNotFoundError, Yt as operationBucket, Z as isItdRateLimitError, Zt as operationRetrySafety, _ as PrivacySettings, _n as Loose, _t as OperationMethod, a as NotificationEvent, an as AccessType, b as SubscriptionState, bn as ReportTargetType, bt as ErrorContextHook, c as NotificationSettings, cn as CaptchaField, ct as Listener, d as AuthUser, dn as EventChannelStatus, dt as STATUS_SERVICE, en as RateLimitBucket, et as isItdValidationError, f as Author, fn as FeedTab, ft as LIBRARY_VERSION, g as PinsResult, gn as LikesVisibility, gt as OperationMetadata, h as Pin, hn as ItdErrorCode, i as formatNotificationText, in as UserRef, j as ItdFieldErrors, jt as ResponseContext, k as ItdError, kt as RequestExtensions, l as Actor, ln as CaptchaType, lt as Unsubscribe, m as MyProfile, mn as InteractionType, mt as OperationAnnotations, n as canonicalNotificationType, nn as Span, nt as AuthIdentity, o as normalizeNotification, on as AttachmentType, p as FollowResult, pn as IncidentKind, pt as FeatureOperationId, q as isItdFileError, qt as OperationId, r as isKnownNotificationType, rn as UserId, rt as AuthProvider, s as Notification, sn as CaptchaChoice, st as Emitter, t as resolveNotificationUrl, tn as IsoDate, tt as ClientConnection, u as AuthState, un as CommentSort, ut as DEFAULT_BASE_URL, v as Profile, vn as NotificationType, vt as RetrySafety, w as ItdApiErrorInit, wn as ViewSource, wt as RateLimitBucketContext, x as UserSummary, xn as ServiceState, xt as Logger, y as PublicProfile, yn as ReportReason, yt as ClientHooks, z as ItdServerError, zt as RateLimitPacing } from "./shared/url-Dum7r_FT.js";
|
|
2
|
+
import { $ as ShopConsentContext, $n as PaginationMode, $t as markup, A as DwellEntry, An as Post, At as report, B as ViewTrackerInput, Bn as CreatePollInput, Bt as PollBuilder, C as fromStream, Cn as CommentReplyTo, Cr as OperationExtensions, Ct as ShopSizeChart, D as UpdateProfileInput, Dn as PinPostResult, Dr as PluginTeardown, Dt as ReportsResource, E as UpdatePrivacyInput, En as LikeResult, Er as PluginApi, Et as SearchResult, F as TelemetryClock, Fn as comment, Ft as CreatePostInput, G as ShopConsentsResource, Gn as Session, Gt as parseMarkdown, H as SubscriptionResource, Hn as CreateReportInput, Ht as poll, I as TelemetryOptions, In as BuilderInput, It as PostBuilder, J as ShopOrdersResource, Jn as NotificationsResource, Jt as MarkupContent, K as ShopDeliveryResource, Kn as Subscription, Kt as AutoSpansOptions, L as TelemetryResource, Ln as ItdBuilder, Lt as PostInput, M as PhotoOpenInput, Mn as PostUpdateResult, Mt as FeedParams, N as TelemetryBatch, Nn as CommentBuilder, Nt as PostsResource, O as UserListParams, On as Poll, Or as CookieJar, Ot as ReportBuilder, P as TelemetryBatchOptions, Pn as CommentInput, Pt as UserPostsParams, Q as ShopConsent, Qn as PageState, Qt as autoSpans, R as VideoProgressInput, Rn as isBuilder, Rt as PostUpdateInput, S as VideoMimeType, Sn as Comment, Sr as ClientPlugin, St as ShopRecipient, T as VerificationResource, Tn as Hashtag, Tr as OperationTransformer, Tt as SearchResource, U as CreateShopOrderOptions, Un as UpdatePostInput, Ut as ParseMarkupOptions, V as ViewTrackerOptions, Vn as CreatePostData, Vt as PollInput, W as PayShopOrderOptions, Wn as PaymentMethod, Wt as parseHtml, X as ShopResource, Xn as BaseResource, Xt as MarkupSpan, Y as ShopProductsResource, Yn as UpdateNotificationSettingsInput, Yt as MarkupInput, Z as CreateShopOrderInput, Zn as Page, Zt as TextMarkup, _ as AllowedMimeType, _n as UploadOptions, _r as HttpClient, _t as ShopProduct, a as ShopFeatureOptions, an as StatusDay, ar as FeatureBucketDefinition, at as ShopDeliveryDestination, b as ImageMimeType, bn as RepliesParams, br as AttemptInterceptor, bt as ShopProductSpec, c as ShopOrderAccessStorage, cn as AnnouncementButton, cr as FeatureOperationDefinition, ct as ShopOrderAccessSession, d as statusDays, dn as Portal, dr as FileResolver, dt as ShopOrderItem, en as PlatformClientVersion, er as Paginator, et as ShopConsentKind, f as isMyProfile, fn as Report, fr as PreparedBufferSource, ft as ShopOrderItemInput, g as AUDIO_MIME_TYPES, gn as FilesResource, gr as ResolveFileOptions, gt as ShopPayment, h as ALLOWED_MIME_TYPES, hn as HashtagsResource, hr as ResolveFileContext, ht as ShopOrderSupport, i as ShopFeatureApi, in as ServiceStatus, ir as ClientFeature, it as ShopDeliveryCountry, j as InteractionEntry, jn as PostStats, jt as CommentsParams, k as UsersResource, kn as PollOption, kt as ReportInput, l as ShopOrderAccessStorageAdapterOptions, ln as ChangelogEntry, lr as FeatureRequestOptions, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as HashtagPostsParams, mr as PreparedStreamSource, mt as ShopOrderSummary, n as SpanRenderFormat, nn as PlatformVersions, nr as mapPage, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusIncidentLine, or as FeatureContext, ot as ShopDeliveryPoint, p as toDate, pn as VerificationStatus, pr as PreparedFileSource, pt as ShopOrderStatus, q as ShopOrderRequestOptions, qn as NotificationListParams, qt as MarkupBuilder, r as renderSpans, rn as PlatformStatus, rr as RateLimitBucketState, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as Announcement, sr as FeatureInstallation, st as ShopOrder, t as RenderSpansOptions, tn as PlatformResource, tr as PaginatorOptions, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as Clan, ur as ManagedClientResource, ut as ShopOrderDelivery, v as AudioMimeType, vn as UploadedFile, vr as AttemptContext, vt as ShopProductCategory, w as fromUrl, wn as CommentUpdateResult, wr as OperationTransformContext, wt as ShopSizeChartRow, x as VIDEO_MIME_TYPES, xn as Attachment, xr as AttemptNext, xt as ShopProductStatus, y as IMAGE_MIME_TYPES, yn as CommentsResource, yr as AttemptExtensions, yt as ShopProductColor, z as ViewTracker, zn as CreateCommentInput, zt as post } from "./shared/render-Cs6AOXbD.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-D3CSlpXR.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";
|
|
@@ -12,22 +12,135 @@ interface NotificationsApi extends NotificationsResource {
|
|
|
12
12
|
readonly events: NotificationEvents;
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
|
+
//#region src/operations/auth.d.ts
|
|
16
|
+
/** Чем закончился запрос входа. */
|
|
17
|
+
declare const SignInStatus: Readonly<{
|
|
18
|
+
readonly Authenticated: "authenticated";
|
|
19
|
+
readonly OtpRequired: "otp_required";
|
|
20
|
+
}>;
|
|
21
|
+
type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
22
|
+
/** Результат входа: готовый токен либо продолжение через код подтверждения. */
|
|
23
|
+
type SignInResult = {
|
|
24
|
+
status: 'authenticated';
|
|
25
|
+
accessToken: string;
|
|
26
|
+
} | {
|
|
27
|
+
status: 'otp_required';
|
|
28
|
+
flowToken: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Активный провайдер капчи и поле запроса, в котором сервер ждёт токен.
|
|
32
|
+
*
|
|
33
|
+
* Оба значения открытые: провайдер может появиться новый, а имя поля сервер вправе сменить.
|
|
34
|
+
*/
|
|
35
|
+
interface CaptchaProvider {
|
|
36
|
+
provider: CaptchaType;
|
|
37
|
+
field: CaptchaField;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Доказательство прохождения капчи: токен и его провайдер.
|
|
41
|
+
*
|
|
42
|
+
* Имя поля тела запроса SDK подставляет сам — из {@link CaptchaToken.field}, иначе
|
|
43
|
+
* из {@link CAPTCHA_FIELDS}.
|
|
44
|
+
*/
|
|
45
|
+
interface CaptchaToken {
|
|
46
|
+
type: CaptchaType;
|
|
47
|
+
token: string;
|
|
48
|
+
/** Поле тела запроса. Нужно, только если сервер переименовал его. */
|
|
49
|
+
field?: CaptchaField | undefined;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Поле тела запроса по умолчанию для известных провайдеров.
|
|
53
|
+
*
|
|
54
|
+
* Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
|
|
55
|
+
*/
|
|
56
|
+
declare const CAPTCHA_FIELDS: Readonly<{
|
|
57
|
+
readonly itd: "token";
|
|
58
|
+
readonly cloudflare: "turnstileToken";
|
|
59
|
+
}>;
|
|
60
|
+
/** Данные, из которых клиент строит QR-код входа. */
|
|
61
|
+
interface QrLoginStart {
|
|
62
|
+
qrId: string;
|
|
63
|
+
claimToken: string;
|
|
64
|
+
payload: string;
|
|
65
|
+
expiresIn: number;
|
|
66
|
+
captchaRequired: boolean;
|
|
67
|
+
}
|
|
68
|
+
/** Состояния, которые может вернуть проверка QR-входа. */
|
|
69
|
+
declare const QrLoginStatus: Readonly<{
|
|
70
|
+
readonly Pending: "pending";
|
|
71
|
+
readonly Scanned: "scanned";
|
|
72
|
+
readonly CaptchaRequired: "captcha_required";
|
|
73
|
+
readonly Authorized: "authorized";
|
|
74
|
+
readonly Rejected: "rejected";
|
|
75
|
+
}>;
|
|
76
|
+
type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
77
|
+
/** Результат проверки QR-входа. */
|
|
78
|
+
type QrLoginClaim = {
|
|
79
|
+
status: 'authorized';
|
|
80
|
+
accessToken: string;
|
|
81
|
+
expiresIn?: number;
|
|
82
|
+
} | {
|
|
83
|
+
status: 'pending' | 'scanned' | 'captcha_required' | 'rejected';
|
|
84
|
+
expiresIn?: number;
|
|
85
|
+
};
|
|
86
|
+
/** Состояния, приходящие из потокового наблюдения за QR-входом. */
|
|
87
|
+
declare const QrLoginStreamStatus: Readonly<{
|
|
88
|
+
readonly Pending: "pending";
|
|
89
|
+
readonly Scanned: "scanned";
|
|
90
|
+
readonly Approved: "approved";
|
|
91
|
+
readonly Rejected: "rejected";
|
|
92
|
+
}>;
|
|
93
|
+
type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
94
|
+
/** Одно событие `POST /api/v1/auth/qr/stream`. */
|
|
95
|
+
interface QrLoginStreamEvent {
|
|
96
|
+
status: QrLoginStreamStatus;
|
|
97
|
+
expiresIn?: number;
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
15
100
|
//#region src/session/options.d.ts
|
|
101
|
+
/**
|
|
102
|
+
* Источник токенов капчи.
|
|
103
|
+
*
|
|
104
|
+
* Токен одноразовый и живёт несколько минут, поэтому долгоживущему клиенту нужен не готовый
|
|
105
|
+
* токен, а источник: он спрашивается перед каждым запросом, которому нужна капча.
|
|
106
|
+
* В Node источником служит `@itd-api/captcha` — `captcha: createCaptchaSolver()`.
|
|
107
|
+
*/
|
|
108
|
+
interface CaptchaSolver {
|
|
109
|
+
/** Получает имя провайдера, чью капчу нужно пройти, и возвращает токен. */
|
|
110
|
+
getToken(type: CaptchaType): string | Promise<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Какую капчу проходить. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
|
|
113
|
+
*
|
|
114
|
+
* Явно названный провайдер экономит запрос `captcha/provider`, но перестаёт работать,
|
|
115
|
+
* если сервер откажется от этого виджета.
|
|
116
|
+
*/
|
|
117
|
+
type?: CaptchaChoice | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* Поле тела запроса, в котором сервер ждёт токен.
|
|
120
|
+
*
|
|
121
|
+
* Учитывается только при явно названном {@link CaptchaSolver.type}: при
|
|
122
|
+
* `CaptchaChoice.Auto` поле называет сам сервер, и его слово точнее. Пригодится,
|
|
123
|
+
* если сервер переименовал поле, а версия SDK об этом ещё не знает.
|
|
124
|
+
*/
|
|
125
|
+
field?: CaptchaField | undefined;
|
|
126
|
+
}
|
|
127
|
+
/** Источник токенов капчи: объект с `getToken` либо сама функция. */
|
|
128
|
+
type CaptchaSolverInput = CaptchaSolver | ((type: CaptchaType) => string | Promise<string>);
|
|
16
129
|
/**
|
|
17
130
|
* Вход по логину и паролю.
|
|
18
131
|
*
|
|
19
|
-
*
|
|
20
|
-
* не может: капчу должен решить кто-то снаружи. Токен одноразовый и живёт несколько минут,
|
|
21
|
-
* так что долгоживущему клиенту нужен `getTurnstileToken` — он спрашивается заново перед
|
|
22
|
-
* каждой попыткой входа. Одиночный `turnstileToken` годится для разового скрипта.
|
|
132
|
+
* Капчу, если сервер её потребует, пройдёт {@link SessionOptions.captcha}.
|
|
23
133
|
*/
|
|
24
134
|
interface CredentialsAuth {
|
|
25
135
|
email: string;
|
|
26
136
|
password: string;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Готовый токен капчи на первый вход.
|
|
139
|
+
*
|
|
140
|
+
* Расходуется ровно однажды: повторный вход и восстановление сессии пойдут уже
|
|
141
|
+
* к {@link SessionOptions.captcha}.
|
|
142
|
+
*/
|
|
143
|
+
captcha?: CaptchaToken | undefined;
|
|
31
144
|
}
|
|
32
145
|
/**
|
|
33
146
|
* Как клиент получает доступ к API.
|
|
@@ -43,7 +156,7 @@ interface CredentialsAuth {
|
|
|
43
156
|
* ```ts
|
|
44
157
|
* new ItdClient({ auth: '<accessToken>' }); // разовый вызов
|
|
45
158
|
* new ItdClient({ auth: { accessToken, refreshToken } }); // восстановить сессию
|
|
46
|
-
* new ItdClient({ auth: { email, password,
|
|
159
|
+
* new ItdClient({ auth: { email, password }, captcha: createCaptchaSolver() }); // вход по паролю
|
|
47
160
|
* new ItdClient({ auth: { getToken: () => vault.read() } }); // токен из внешнего источника
|
|
48
161
|
* ```
|
|
49
162
|
*/
|
|
@@ -63,6 +176,13 @@ type AuthInput = string | {
|
|
|
63
176
|
interface SessionOptions {
|
|
64
177
|
/** Авторизация. Без неё доступны только публичные эндпоинты. */
|
|
65
178
|
auth?: AuthInput | undefined;
|
|
179
|
+
/**
|
|
180
|
+
* Откуда брать токен капчи, когда сервер её потребует: при входе по паролю, регистрации,
|
|
181
|
+
* запросе письма для сброса пароля и подтверждении QR-входа.
|
|
182
|
+
*
|
|
183
|
+
* С этой опцией токен можно не передавать в сами методы — клиент получит его сам.
|
|
184
|
+
*/
|
|
185
|
+
captcha?: CaptchaSolverInput | undefined;
|
|
66
186
|
/** Где хранить сессию. По умолчанию {@link MemoryTokenStorage}. */
|
|
67
187
|
storage?: TokenStorage | undefined;
|
|
68
188
|
/**
|
|
@@ -101,8 +221,9 @@ interface SessionOptions {
|
|
|
101
221
|
* @example
|
|
102
222
|
* ```ts
|
|
103
223
|
* const itd = new ItdClient({
|
|
104
|
-
* auth: { email, password
|
|
105
|
-
*
|
|
224
|
+
* auth: { email, password }, // SessionOptions
|
|
225
|
+
* captcha: createCaptchaSolver(), // SessionOptions
|
|
226
|
+
* rateLimit: { concurrency: 4, rps: 8 }, // RuntimeOptions
|
|
106
227
|
* });
|
|
107
228
|
* ```
|
|
108
229
|
*/
|
|
@@ -114,21 +235,10 @@ interface ItdClientOptions extends RuntimeOptions, SessionOptions {
|
|
|
114
235
|
} | undefined;
|
|
115
236
|
}
|
|
116
237
|
//#endregion
|
|
117
|
-
//#region src/
|
|
118
|
-
/**
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
readonly OtpRequired: "otp_required";
|
|
122
|
-
}>;
|
|
123
|
-
type SignInStatus = (typeof SignInStatus)[keyof typeof SignInStatus];
|
|
124
|
-
/** Результат входа: готовый токен либо продолжение через код подтверждения. */
|
|
125
|
-
type SignInResult = {
|
|
126
|
-
status: 'authenticated';
|
|
127
|
-
accessToken: string;
|
|
128
|
-
} | {
|
|
129
|
-
status: 'otp_required';
|
|
130
|
-
flowToken: string | undefined;
|
|
131
|
-
};
|
|
238
|
+
//#region src/session/captcha.d.ts
|
|
239
|
+
/** Капча запросов, которые её требуют: входа, регистрации, сброса пароля и QR-подтверждения. */
|
|
240
|
+
/** Готовый фрагмент тела запроса: имя поля и токен в нём. */
|
|
241
|
+
type CaptchaBody = Record<string, string>;
|
|
132
242
|
//#endregion
|
|
133
243
|
//#region src/session/auth.d.ts
|
|
134
244
|
/**
|
|
@@ -143,6 +253,7 @@ interface SessionConfig {
|
|
|
143
253
|
useCookieJar: boolean;
|
|
144
254
|
logger: Logger | undefined;
|
|
145
255
|
auth: AuthInput | undefined;
|
|
256
|
+
captcha: CaptchaSolver | undefined;
|
|
146
257
|
storage: TokenStorage;
|
|
147
258
|
deviceId: string | undefined;
|
|
148
259
|
autoRefresh: boolean;
|
|
@@ -156,14 +267,15 @@ interface SessionConfig {
|
|
|
156
267
|
*
|
|
157
268
|
* Ключ привязан к домену: на чужом origin Cloudflare отказывает виджету с кодом `110200`.
|
|
158
269
|
* Поэтому отрисовать его может только код, выполняемый на самом итд.com. Остальным
|
|
159
|
-
* подходит `@itd-api/
|
|
270
|
+
* подходит `@itd-api/captcha`, готовый токен из другого источника или вовсе вход
|
|
160
271
|
* без капчи — по сохранённой сессии либо по токенам, взятым в браузере.
|
|
161
272
|
*
|
|
162
273
|
* @example
|
|
163
274
|
* ```ts
|
|
164
275
|
* turnstile.render('#captcha', {
|
|
165
276
|
* sitekey: TURNSTILE_SITE_KEY,
|
|
166
|
-
* callback: (
|
|
277
|
+
* callback: (token) =>
|
|
278
|
+
* itd.auth.signIn({ email, password, captcha: { type: CaptchaType.Cloudflare, token } }),
|
|
167
279
|
* });
|
|
168
280
|
* ```
|
|
169
281
|
*/
|
|
@@ -283,6 +395,8 @@ declare class AuthManager implements AuthProvider {
|
|
|
283
395
|
refresh(): Promise<string>;
|
|
284
396
|
/** Сохраняет токен, полученный извне, — например после подтверждения OTP. */
|
|
285
397
|
setAccessToken(accessToken: string, expectedRevision?: number, cookies?: CookieJar): Promise<boolean>;
|
|
398
|
+
/** Атомарно принимает токен и cookie завершённого входа как новую сессию. @internal */
|
|
399
|
+
commitAuthFlow(accessToken: string, cookies: CookieJar, expectedRevision?: number): Promise<boolean>;
|
|
286
400
|
/** Текущая сессия целиком. Полезно, чтобы сохранить её самому. */
|
|
287
401
|
getSession(): Promise<ItdSession | null>;
|
|
288
402
|
/**
|
|
@@ -301,6 +415,17 @@ declare class AuthManager implements AuthProvider {
|
|
|
301
415
|
* новую запись в списке сессий.
|
|
302
416
|
*/
|
|
303
417
|
clear(): Promise<void>;
|
|
418
|
+
/**
|
|
419
|
+
* Готовит фрагмент тела с токеном капчи для запроса, который её требует.
|
|
420
|
+
*
|
|
421
|
+
* Источники в порядке убывания приоритета: токен, переданный в сам вызов; разовый токен
|
|
422
|
+
* из `auth.captcha`; опция `captcha`. Когда ни одного нет, фрагмент пустой: нужна ли
|
|
423
|
+
* капча этому запросу, решает сервер.
|
|
424
|
+
*
|
|
425
|
+
* @param explicit готовый токен, переданный в вызов
|
|
426
|
+
* @throws {ItdConfigError} если токен неполный или источник его не вернул
|
|
427
|
+
*/
|
|
428
|
+
captchaBody(explicit?: CaptchaToken | undefined): Promise<CaptchaBody>;
|
|
304
429
|
}
|
|
305
430
|
//#endregion
|
|
306
431
|
//#region src/resources/auth.d.ts
|
|
@@ -312,18 +437,43 @@ interface Credentials {
|
|
|
312
437
|
/**
|
|
313
438
|
* Учётные данные вместе с токеном капчи.
|
|
314
439
|
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
*
|
|
440
|
+
* Токен нужен, только когда у клиента не задана опция `captcha`: с ней клиент получает его
|
|
441
|
+
* сам. Какой виджет сейчас требует сервер, сообщает {@link AuthResource.captchaProvider};
|
|
442
|
+
* в Node токен добывает `@itd-api/captcha`. Токен одноразовый и живёт несколько минут.
|
|
443
|
+
*
|
|
444
|
+
* @example
|
|
445
|
+
* ```ts
|
|
446
|
+
* const { provider, field } = await itd.auth.captchaProvider();
|
|
447
|
+
* const token = await solveCaptcha(provider);
|
|
448
|
+
*
|
|
449
|
+
* await itd.auth.signIn({ email, password, captcha: { type: provider, token, field } });
|
|
450
|
+
* ```
|
|
318
451
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
452
|
+
type CredentialsWithCaptcha = Credentials & {
|
|
453
|
+
captcha?: CaptchaToken | undefined;
|
|
454
|
+
};
|
|
322
455
|
/** Запрос письма для сброса пароля. Капча обязательна, как и при входе. */
|
|
323
456
|
interface ForgotPasswordInput {
|
|
324
457
|
email: string;
|
|
325
|
-
|
|
458
|
+
captcha?: CaptchaToken | undefined;
|
|
459
|
+
}
|
|
460
|
+
/** Секреты QR-сессии и капча для завершения входа. */
|
|
461
|
+
interface QrLoginClaimInput {
|
|
462
|
+
qrId: string;
|
|
463
|
+
claimToken: string;
|
|
464
|
+
captcha?: CaptchaToken | undefined;
|
|
326
465
|
}
|
|
466
|
+
/** Секреты QR-сессии для потокового наблюдения. */
|
|
467
|
+
interface QrLoginStreamInput {
|
|
468
|
+
qrId: string;
|
|
469
|
+
claimToken: string;
|
|
470
|
+
}
|
|
471
|
+
/** Управление временем жизни потокового запроса. */
|
|
472
|
+
interface QrLoginStreamOptions {
|
|
473
|
+
signal?: AbortSignal | undefined;
|
|
474
|
+
}
|
|
475
|
+
/** Обработчик одного события QR-потока. */
|
|
476
|
+
type QrLoginStreamListener = (event: QrLoginStreamEvent) => void | Promise<void>;
|
|
327
477
|
/**
|
|
328
478
|
* Установка нового пароля.
|
|
329
479
|
*
|
|
@@ -351,6 +501,7 @@ declare class AuthResource extends BaseResource {
|
|
|
351
501
|
#private;
|
|
352
502
|
constructor(http: HttpClient, deps: {
|
|
353
503
|
auth: AuthManager;
|
|
504
|
+
connection: ClientConnection;
|
|
354
505
|
});
|
|
355
506
|
/**
|
|
356
507
|
* Проверяет состояние авторизации и возвращает текущего пользователя.
|
|
@@ -358,12 +509,36 @@ declare class AuthResource extends BaseResource {
|
|
|
358
509
|
* Без авторизации возвращает `authenticated: false` и `user: null`.
|
|
359
510
|
*/
|
|
360
511
|
check(options?: RequestOptions): Promise<AuthState>;
|
|
512
|
+
/**
|
|
513
|
+
* Узнаёт активного провайдера капчи и поле токена.
|
|
514
|
+
*
|
|
515
|
+
* Сервер может переключить провайдера или переименовать поле без выпуска новой версии SDK.
|
|
516
|
+
* Автоматическому входу этот вызов не нужен — клиент делает его сам.
|
|
517
|
+
*/
|
|
518
|
+
captchaProvider(options?: RequestOptions): Promise<CaptchaProvider>;
|
|
519
|
+
/** Создаёт короткоживущую сессию QR-входа. */
|
|
520
|
+
startQrLogin(options?: RequestOptions): Promise<QrLoginStart>;
|
|
521
|
+
/**
|
|
522
|
+
* Проверяет QR-сессию и завершает вход после подтверждения на другом устройстве.
|
|
523
|
+
*
|
|
524
|
+
* До подтверждения возвращает промежуточный статус. Токен капчи добывается, только когда
|
|
525
|
+
* сервер о ней попросил — статусом `captcha_required` на прошлой проверке, — либо когда
|
|
526
|
+
* передан в сам вызов. Полученный `accessToken` автоматически сохраняется в клиенте.
|
|
527
|
+
*/
|
|
528
|
+
claimQrLogin(input: QrLoginClaimInput, options?: RequestOptions): Promise<QrLoginClaim>;
|
|
529
|
+
/**
|
|
530
|
+
* Слушает состояния QR-входа до закрытия ответа или отмены `signal`.
|
|
531
|
+
*
|
|
532
|
+
* Событие `approved` означает, что подтверждение завершено: после него вызовите
|
|
533
|
+
* {@link claimQrLogin}, чтобы получить и сохранить access token.
|
|
534
|
+
*/
|
|
535
|
+
streamQrLogin(input: QrLoginStreamInput, onEvent: QrLoginStreamListener, options?: QrLoginStreamOptions): Promise<void>;
|
|
361
536
|
/**
|
|
362
537
|
* Регистрирует аккаунт и запускает подтверждение по коду.
|
|
363
538
|
*
|
|
364
539
|
* @returns `flowToken`, который нужно передать в {@link verifyOtp}
|
|
365
540
|
*/
|
|
366
|
-
signUp(credentials:
|
|
541
|
+
signUp(credentials: CredentialsWithCaptcha, options?: RequestOptions): Promise<string>;
|
|
367
542
|
/**
|
|
368
543
|
* Выполняет вход.
|
|
369
544
|
*
|
|
@@ -372,9 +547,9 @@ declare class AuthResource extends BaseResource {
|
|
|
372
547
|
*
|
|
373
548
|
* При успешном входе токен сохраняется в клиенте автоматически.
|
|
374
549
|
*
|
|
375
|
-
* @param credentials email, пароль и
|
|
550
|
+
* @param credentials email, пароль и токен капчи — см. {@link CredentialsWithCaptcha}
|
|
376
551
|
*/
|
|
377
|
-
signIn(credentials:
|
|
552
|
+
signIn(credentials: CredentialsWithCaptcha, options?: RequestOptions): Promise<SignInResult>;
|
|
378
553
|
/**
|
|
379
554
|
* Подтверждает вход кодом из письма.
|
|
380
555
|
*
|
|
@@ -407,7 +582,7 @@ declare class AuthResource extends BaseResource {
|
|
|
407
582
|
* });
|
|
408
583
|
* ```
|
|
409
584
|
*/
|
|
410
|
-
signInWithOtp(input:
|
|
585
|
+
signInWithOtp(input: CredentialsWithCaptcha & {
|
|
411
586
|
getOtp: () => string | Promise<string>;
|
|
412
587
|
}, options?: RequestOptions): Promise<string>;
|
|
413
588
|
/**
|
|
@@ -470,7 +645,7 @@ declare class AuthResource extends BaseResource {
|
|
|
470
645
|
* ```ts
|
|
471
646
|
* await itd.auth.resetPasswordWithOtp({
|
|
472
647
|
* email,
|
|
473
|
-
*
|
|
648
|
+
* captcha: { type: provider, token, field },
|
|
474
649
|
* newPassword,
|
|
475
650
|
* getOtp: () => rl.question('Код из письма: '),
|
|
476
651
|
* });
|
|
@@ -523,8 +698,9 @@ declare class AuthResource extends BaseResource {
|
|
|
523
698
|
* const itd = new ItdClient({
|
|
524
699
|
* // `auth` не обязателен: когда хранилище уже содержит сессию, токен берётся оттуда,
|
|
525
700
|
* // а истёкший продлевается сам. Здесь он нужен на первый запуск.
|
|
526
|
-
*
|
|
527
|
-
*
|
|
701
|
+
* auth: { email, password },
|
|
702
|
+
* // Капчу входа решает пакет @itd-api/captcha — см. CaptchaSolver.
|
|
703
|
+
* captcha: createCaptchaSolver(),
|
|
528
704
|
* storage: new FileTokenStorage('./.itd-session.json'),
|
|
529
705
|
* rateLimit: { concurrency: 4, rps: 8 },
|
|
530
706
|
* });
|
|
@@ -789,7 +965,9 @@ interface AccountFeature<TApi = unknown> {
|
|
|
789
965
|
* Опции конструктора {@link ItdAccounts}.
|
|
790
966
|
*
|
|
791
967
|
* Всё, что понимает `ItdClient`, кроме `auth` и `deviceId`: они у каждого аккаунта свои
|
|
792
|
-
* и задаются в {@link ItdAccounts.addAccount}.
|
|
968
|
+
* и задаются в {@link ItdAccounts.addAccount}. Остальное достаётся каждому клиенту —
|
|
969
|
+
* источник токена капчи, заданный здесь, работает для всех аккаунтов. Обычный `TokenStorage`
|
|
970
|
+
* клиента здесь заменён
|
|
793
971
|
* общей опцией {@link ItdAccountsOptions.storage} типа {@link MultiTokenStorage}; контейнер
|
|
794
972
|
* сам выдаёт каждому клиенту изолированный срез по имени. Общий `deviceId` особенно вреден —
|
|
795
973
|
* сервер различает по нему записи в списке сессий, и один на всех сложил бы все аккаунты
|
|
@@ -872,6 +1050,8 @@ interface AccountEvents {
|
|
|
872
1050
|
*
|
|
873
1051
|
* await using accounts = new ItdAccounts({
|
|
874
1052
|
* storage: new FileMultiTokenStorage('./.itd-sessions.json'),
|
|
1053
|
+
* // Общие опции достаются каждому аккаунту: один источник токена капчи на всех.
|
|
1054
|
+
* captcha: createCaptchaSolver(),
|
|
875
1055
|
* rateLimit: { concurrency: 4 },
|
|
876
1056
|
* });
|
|
877
1057
|
*
|
|
@@ -879,7 +1059,7 @@ interface AccountEvents {
|
|
|
879
1059
|
* await accounts.restore();
|
|
880
1060
|
*
|
|
881
1061
|
* if (!accounts.has('kiow')) {
|
|
882
|
-
* accounts.addAccount('kiow', { auth: { email, password
|
|
1062
|
+
* accounts.addAccount('kiow', { auth: { email, password } });
|
|
883
1063
|
* }
|
|
884
1064
|
*
|
|
885
1065
|
* await accounts.account('kiow').posts.create({ content: 'привет' });
|
|
@@ -913,7 +1093,7 @@ declare class ItdAccounts {
|
|
|
913
1093
|
*
|
|
914
1094
|
* @example
|
|
915
1095
|
* ```ts
|
|
916
|
-
* accounts.addAccount('bot', { auth: { email, password
|
|
1096
|
+
* accounts.addAccount('bot', { auth: { email, password } });
|
|
917
1097
|
* accounts.addAccount('reader', { auth: '<accessToken>' });
|
|
918
1098
|
* accounts.addAccount('через-прокси', { fetch: proxyFetch('socks5://…') });
|
|
919
1099
|
* ```
|
|
@@ -1034,5 +1214,5 @@ declare class ItdAccounts {
|
|
|
1034
1214
|
*/
|
|
1035
1215
|
declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1036
1216
|
//#endregion
|
|
1037
|
-
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, type
|
|
1217
|
+
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, CAPTCHA_FIELDS, CaptchaChoice, CaptchaField, type CaptchaProvider, 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, ItdAccounts, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, ItdClient, 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 LazyFile, type LikeResult, LikesVisibility, type Listener, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, 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, type OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, 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, type QrLoginClaim, type QrLoginClaimInput, type QrLoginStart, QrLoginStatus, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, QrLoginStreamStatus, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RateLimitScope, 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, SignInStatus, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, TURNSTILE_SITE_KEY, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, 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 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, createAccounts, createClient, 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 };
|
|
1038
1218
|
//# sourceMappingURL=index.d.ts.map
|