itd-api 0.9.3 → 0.10.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 +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 +405 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -29
- package/dist/index.d.ts +181 -29
- package/dist/index.js +401 -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-BzjI6pn5.js → events-B0Wtn4cF.js} +3 -3
- package/dist/shared/{events-BzjI6pn5.js.map → events-B0Wtn4cF.js.map} +1 -1
- package/dist/shared/{events-C1FudmSe.cjs → events-BB791aPk.cjs} +8 -2
- package/dist/shared/{events-C1FudmSe.cjs.map → events-BB791aPk.cjs.map} +1 -1
- package/dist/shared/{events-BPxBF0gQ.d.cts → events-BNGjJVI3.d.cts} +2 -2
- package/dist/shared/{events-DnwfcLxS.d.ts → events-CJO6q93Z.d.ts} +2 -2
- package/dist/shared/{render-Omy1drH1.cjs → render-BimHjOhw.cjs} +2 -2
- package/dist/shared/{render-Omy1drH1.cjs.map → render-BimHjOhw.cjs.map} +1 -1
- package/dist/shared/{render-C1F_QWYD.d.cts → render-C1A57W-5.d.cts} +2 -2
- package/dist/shared/{render-CtOpp9Pm.js → render-CkhvH_yh.js} +2 -2
- package/dist/shared/{render-CtOpp9Pm.js.map → render-CkhvH_yh.js.map} +1 -1
- package/dist/shared/{render-uFW2kDxp.d.ts → render-DC5nvqcP.d.ts} +2 -2
- package/dist/shared/{url-3Ts6EEHQ.js → url-BA5hEwj2.js} +65 -3
- package/dist/shared/url-BA5hEwj2.js.map +1 -0
- package/dist/shared/{url-D6wsXm1T.cjs → url-CDVgMIq5.cjs} +100 -2
- package/dist/shared/url-CDVgMIq5.cjs.map +1 -0
- package/dist/shared/{url-DubjkRR9.d.ts → url-DkMueFAT.d.cts} +70 -3
- package/dist/shared/{url-DubjkRR9.d.cts → url-DkMueFAT.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-DkMueFAT.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-DC5nvqcP.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-CJO6q93Z.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";
|
|
@@ -13,21 +13,48 @@ interface NotificationsApi extends NotificationsResource {
|
|
|
13
13
|
}
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/session/options.d.ts
|
|
16
|
+
/**
|
|
17
|
+
* Как проходить капчу при входе по логину и паролю.
|
|
18
|
+
*
|
|
19
|
+
* Токен одноразовый и живёт несколько минут, поэтому долгоживущему клиенту нужен не готовый
|
|
20
|
+
* токен, а его источник: {@link CaptchaOptions.getToken} спрашивается перед каждым входом.
|
|
21
|
+
* В Node источником служит `@itd-api/captcha` — `captcha: createCaptchaSolver()`.
|
|
22
|
+
*/
|
|
23
|
+
interface CaptchaOptions {
|
|
24
|
+
/**
|
|
25
|
+
* Какую капчу решать. По умолчанию `CaptchaChoice.Auto` — провайдера называет сервер.
|
|
26
|
+
*
|
|
27
|
+
* Явно названный провайдер экономит запрос `captcha/provider` перед каждым входом, но
|
|
28
|
+
* перестаёт работать, если сервер переключится на другой виджет.
|
|
29
|
+
*/
|
|
30
|
+
type?: CaptchaChoice | undefined;
|
|
31
|
+
/** Разовый токен. Для повторного входа после истечения сессии не подойдёт. */
|
|
32
|
+
token?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Источник свежего токена. Спрашивается перед каждым входом.
|
|
35
|
+
*
|
|
36
|
+
* Получает имя провайдера, чью капчу нужно решить, и возвращает токен.
|
|
37
|
+
*/
|
|
38
|
+
getToken?: ((type: CaptchaType) => string | Promise<string>) | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Поле тела запроса, в котором сервер ждёт токен.
|
|
41
|
+
*
|
|
42
|
+
* Учитывается только при явно названном {@link CaptchaOptions.type}: при
|
|
43
|
+
* `CaptchaChoice.Auto` поле называет сам сервер, и его слово точнее. Пригодится,
|
|
44
|
+
* если сервер переименовал поле, а версия SDK об этом ещё не знает.
|
|
45
|
+
*/
|
|
46
|
+
field?: CaptchaField | undefined;
|
|
47
|
+
}
|
|
16
48
|
/**
|
|
17
49
|
* Вход по логину и паролю.
|
|
18
50
|
*
|
|
19
|
-
* Вход требует токен капчи
|
|
20
|
-
* не может: капчу должен решить кто-то снаружи. Токен одноразовый и живёт несколько минут,
|
|
21
|
-
* так что долгоживущему клиенту нужен `getTurnstileToken` — он спрашивается заново перед
|
|
22
|
-
* каждой попыткой входа. Одиночный `turnstileToken` годится для разового скрипта.
|
|
51
|
+
* Вход требует токен капчи — см. {@link CaptchaOptions}.
|
|
23
52
|
*/
|
|
24
53
|
interface CredentialsAuth {
|
|
25
54
|
email: string;
|
|
26
55
|
password: string;
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/** Источник свежего токена капчи. Спрашивается перед каждым входом. */
|
|
30
|
-
getTurnstileToken?: (() => string | Promise<string>) | undefined;
|
|
56
|
+
/** Как проходить капчу. Без неё вход по паролю не начнётся. */
|
|
57
|
+
captcha?: CaptchaOptions | undefined;
|
|
31
58
|
}
|
|
32
59
|
/**
|
|
33
60
|
* Как клиент получает доступ к API.
|
|
@@ -43,7 +70,7 @@ interface CredentialsAuth {
|
|
|
43
70
|
* ```ts
|
|
44
71
|
* new ItdClient({ auth: '<accessToken>' }); // разовый вызов
|
|
45
72
|
* new ItdClient({ auth: { accessToken, refreshToken } }); // восстановить сессию
|
|
46
|
-
* new ItdClient({ auth: { email, password,
|
|
73
|
+
* new ItdClient({ auth: { email, password, captcha: createCaptchaSolver() } }); // вход по паролю
|
|
47
74
|
* new ItdClient({ auth: { getToken: () => vault.read() } }); // токен из внешнего источника
|
|
48
75
|
* ```
|
|
49
76
|
*/
|
|
@@ -101,7 +128,7 @@ interface SessionOptions {
|
|
|
101
128
|
* @example
|
|
102
129
|
* ```ts
|
|
103
130
|
* const itd = new ItdClient({
|
|
104
|
-
* auth: { email, password,
|
|
131
|
+
* auth: { email, password, captcha: createCaptchaSolver() }, // SessionOptions
|
|
105
132
|
* rateLimit: { concurrency: 4, rps: 8 }, // RuntimeOptions
|
|
106
133
|
* });
|
|
107
134
|
* ```
|
|
@@ -129,6 +156,75 @@ type SignInResult = {
|
|
|
129
156
|
status: 'otp_required';
|
|
130
157
|
flowToken: string | undefined;
|
|
131
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Активный провайдер капчи и поле запроса, в котором сервер ждёт токен.
|
|
161
|
+
*
|
|
162
|
+
* Оба значения открытые: провайдер может появиться новый, а имя поля сервер вправе сменить.
|
|
163
|
+
*/
|
|
164
|
+
interface CaptchaProvider {
|
|
165
|
+
provider: CaptchaType;
|
|
166
|
+
field: CaptchaField;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Доказательство прохождения капчи: токен и его провайдер.
|
|
170
|
+
*
|
|
171
|
+
* Имя поля тела запроса SDK подставляет сам — из {@link CaptchaToken.field}, иначе
|
|
172
|
+
* из {@link CAPTCHA_FIELDS}.
|
|
173
|
+
*/
|
|
174
|
+
interface CaptchaToken {
|
|
175
|
+
type: CaptchaType;
|
|
176
|
+
token: string;
|
|
177
|
+
/** Поле тела запроса. Нужно, только если сервер переименовал его. */
|
|
178
|
+
field?: CaptchaField | undefined;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Поле тела запроса по умолчанию для известных провайдеров.
|
|
182
|
+
*
|
|
183
|
+
* Используется, когда провайдера не спрашивали. Ответ `captchaProvider()` важнее этой таблицы.
|
|
184
|
+
*/
|
|
185
|
+
declare const CAPTCHA_FIELDS: Readonly<{
|
|
186
|
+
readonly itd: "token";
|
|
187
|
+
readonly cloudflare: "turnstileToken";
|
|
188
|
+
}>;
|
|
189
|
+
/** Данные, из которых клиент строит QR-код входа. */
|
|
190
|
+
interface QrLoginStart {
|
|
191
|
+
qrId: string;
|
|
192
|
+
claimToken: string;
|
|
193
|
+
payload: string;
|
|
194
|
+
expiresIn: number;
|
|
195
|
+
captchaRequired: boolean;
|
|
196
|
+
}
|
|
197
|
+
/** Состояния, которые может вернуть проверка QR-входа. */
|
|
198
|
+
declare const QrLoginStatus: Readonly<{
|
|
199
|
+
readonly Pending: "pending";
|
|
200
|
+
readonly Scanned: "scanned";
|
|
201
|
+
readonly CaptchaRequired: "captcha_required";
|
|
202
|
+
readonly Authorized: "authorized";
|
|
203
|
+
readonly Rejected: "rejected";
|
|
204
|
+
}>;
|
|
205
|
+
type QrLoginStatus = (typeof QrLoginStatus)[keyof typeof QrLoginStatus];
|
|
206
|
+
/** Результат проверки QR-входа. */
|
|
207
|
+
type QrLoginClaim = {
|
|
208
|
+
status: 'authorized';
|
|
209
|
+
accessToken: string;
|
|
210
|
+
expiresIn?: number;
|
|
211
|
+
} | {
|
|
212
|
+
status: 'pending' | 'scanned' | 'captcha_required' | 'rejected';
|
|
213
|
+
expiresIn?: number;
|
|
214
|
+
};
|
|
215
|
+
/** Состояния, приходящие из потокового наблюдения за QR-входом. */
|
|
216
|
+
declare const QrLoginStreamStatus: Readonly<{
|
|
217
|
+
readonly Pending: "pending";
|
|
218
|
+
readonly Scanned: "scanned";
|
|
219
|
+
readonly Approved: "approved";
|
|
220
|
+
readonly Rejected: "rejected";
|
|
221
|
+
}>;
|
|
222
|
+
type QrLoginStreamStatus = (typeof QrLoginStreamStatus)[keyof typeof QrLoginStreamStatus];
|
|
223
|
+
/** Одно событие `POST /api/v1/auth/qr/stream`. */
|
|
224
|
+
interface QrLoginStreamEvent {
|
|
225
|
+
status: QrLoginStreamStatus;
|
|
226
|
+
expiresIn?: number;
|
|
227
|
+
}
|
|
132
228
|
//#endregion
|
|
133
229
|
//#region src/session/auth.d.ts
|
|
134
230
|
/**
|
|
@@ -156,14 +252,15 @@ interface SessionConfig {
|
|
|
156
252
|
*
|
|
157
253
|
* Ключ привязан к домену: на чужом origin Cloudflare отказывает виджету с кодом `110200`.
|
|
158
254
|
* Поэтому отрисовать его может только код, выполняемый на самом итд.com. Остальным
|
|
159
|
-
* подходит `@itd-api/
|
|
255
|
+
* подходит `@itd-api/captcha`, готовый токен из другого источника или вовсе вход
|
|
160
256
|
* без капчи — по сохранённой сессии либо по токенам, взятым в браузере.
|
|
161
257
|
*
|
|
162
258
|
* @example
|
|
163
259
|
* ```ts
|
|
164
260
|
* turnstile.render('#captcha', {
|
|
165
261
|
* sitekey: TURNSTILE_SITE_KEY,
|
|
166
|
-
* callback: (
|
|
262
|
+
* callback: (token) =>
|
|
263
|
+
* itd.auth.signIn({ email, password, captcha: { type: CaptchaType.Cloudflare, token } }),
|
|
167
264
|
* });
|
|
168
265
|
* ```
|
|
169
266
|
*/
|
|
@@ -283,6 +380,8 @@ declare class AuthManager implements AuthProvider {
|
|
|
283
380
|
refresh(): Promise<string>;
|
|
284
381
|
/** Сохраняет токен, полученный извне, — например после подтверждения OTP. */
|
|
285
382
|
setAccessToken(accessToken: string, expectedRevision?: number, cookies?: CookieJar): Promise<boolean>;
|
|
383
|
+
/** Атомарно принимает токен и cookie завершённого входа как новую сессию. @internal */
|
|
384
|
+
commitAuthFlow(accessToken: string, cookies: CookieJar, expectedRevision?: number): Promise<boolean>;
|
|
286
385
|
/** Текущая сессия целиком. Полезно, чтобы сохранить её самому. */
|
|
287
386
|
getSession(): Promise<ItdSession | null>;
|
|
288
387
|
/**
|
|
@@ -310,20 +409,44 @@ interface Credentials {
|
|
|
310
409
|
password: string;
|
|
311
410
|
}
|
|
312
411
|
/**
|
|
313
|
-
* Учётные данные вместе с
|
|
412
|
+
* Учётные данные вместе с доказательством капчи.
|
|
413
|
+
*
|
|
414
|
+
* Какой виджет сейчас требует сервер, сообщает {@link AuthResource.captchaProvider};
|
|
415
|
+
* в Node токен получает `@itd-api/captcha`. Токен одноразовый и живёт несколько минут.
|
|
314
416
|
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* {
|
|
417
|
+
* @example
|
|
418
|
+
* ```ts
|
|
419
|
+
* const { provider, field } = await itd.auth.captchaProvider();
|
|
420
|
+
* const token = await solveCaptcha(provider);
|
|
421
|
+
*
|
|
422
|
+
* await itd.auth.signIn({ email, password, captcha: { type: provider, token, field } });
|
|
423
|
+
* ```
|
|
318
424
|
*/
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
425
|
+
type CaptchaCredentials = Credentials & {
|
|
426
|
+
captcha: CaptchaToken;
|
|
427
|
+
};
|
|
322
428
|
/** Запрос письма для сброса пароля. Капча обязательна, как и при входе. */
|
|
323
429
|
interface ForgotPasswordInput {
|
|
324
430
|
email: string;
|
|
325
|
-
|
|
431
|
+
captcha: CaptchaToken;
|
|
326
432
|
}
|
|
433
|
+
/** Секреты QR-сессии и необязательная капча для завершения входа. */
|
|
434
|
+
interface QrLoginClaimInput {
|
|
435
|
+
qrId: string;
|
|
436
|
+
claimToken: string;
|
|
437
|
+
captcha?: CaptchaToken | undefined;
|
|
438
|
+
}
|
|
439
|
+
/** Секреты QR-сессии для потокового наблюдения. */
|
|
440
|
+
interface QrLoginStreamInput {
|
|
441
|
+
qrId: string;
|
|
442
|
+
claimToken: string;
|
|
443
|
+
}
|
|
444
|
+
/** Управление временем жизни потокового запроса. */
|
|
445
|
+
interface QrLoginStreamOptions {
|
|
446
|
+
signal?: AbortSignal | undefined;
|
|
447
|
+
}
|
|
448
|
+
/** Обработчик одного события QR-потока. */
|
|
449
|
+
type QrLoginStreamListener = (event: QrLoginStreamEvent) => void | Promise<void>;
|
|
327
450
|
/**
|
|
328
451
|
* Установка нового пароля.
|
|
329
452
|
*
|
|
@@ -351,6 +474,7 @@ declare class AuthResource extends BaseResource {
|
|
|
351
474
|
#private;
|
|
352
475
|
constructor(http: HttpClient, deps: {
|
|
353
476
|
auth: AuthManager;
|
|
477
|
+
connection: ClientConnection;
|
|
354
478
|
});
|
|
355
479
|
/**
|
|
356
480
|
* Проверяет состояние авторизации и возвращает текущего пользователя.
|
|
@@ -358,6 +482,30 @@ declare class AuthResource extends BaseResource {
|
|
|
358
482
|
* Без авторизации возвращает `authenticated: false` и `user: null`.
|
|
359
483
|
*/
|
|
360
484
|
check(options?: RequestOptions): Promise<AuthState>;
|
|
485
|
+
/**
|
|
486
|
+
* Узнаёт активного провайдера капчи и поле токена.
|
|
487
|
+
*
|
|
488
|
+
* Сервер может переключить провайдера или переименовать поле без выпуска новой версии SDK.
|
|
489
|
+
* Автоматическому входу этот вызов не нужен — клиент делает его сам.
|
|
490
|
+
*/
|
|
491
|
+
captchaProvider(options?: RequestOptions): Promise<CaptchaProvider>;
|
|
492
|
+
/** Создаёт короткоживущую сессию QR-входа. */
|
|
493
|
+
startQrLogin(options?: RequestOptions): Promise<QrLoginStart>;
|
|
494
|
+
/**
|
|
495
|
+
* Проверяет QR-сессию и завершает вход после подтверждения на другом устройстве.
|
|
496
|
+
*
|
|
497
|
+
* До подтверждения возвращает промежуточный статус. Если сервер потребовал капчу,
|
|
498
|
+
* повторите вызов с `captcha` — тип берётся из {@link captchaProvider}.
|
|
499
|
+
* Полученный `accessToken` автоматически сохраняется в клиенте.
|
|
500
|
+
*/
|
|
501
|
+
claimQrLogin(input: QrLoginClaimInput, options?: RequestOptions): Promise<QrLoginClaim>;
|
|
502
|
+
/**
|
|
503
|
+
* Слушает состояния QR-входа до закрытия ответа или отмены `signal`.
|
|
504
|
+
*
|
|
505
|
+
* Событие `approved` означает, что подтверждение завершено: после него вызовите
|
|
506
|
+
* {@link claimQrLogin}, чтобы получить и сохранить access token.
|
|
507
|
+
*/
|
|
508
|
+
streamQrLogin(input: QrLoginStreamInput, onEvent: QrLoginStreamListener, options?: QrLoginStreamOptions): Promise<void>;
|
|
361
509
|
/**
|
|
362
510
|
* Регистрирует аккаунт и запускает подтверждение по коду.
|
|
363
511
|
*
|
|
@@ -470,7 +618,7 @@ declare class AuthResource extends BaseResource {
|
|
|
470
618
|
* ```ts
|
|
471
619
|
* await itd.auth.resetPasswordWithOtp({
|
|
472
620
|
* email,
|
|
473
|
-
*
|
|
621
|
+
* captcha: { type: provider, token, field },
|
|
474
622
|
* newPassword,
|
|
475
623
|
* getOtp: () => rl.question('Код из письма: '),
|
|
476
624
|
* });
|
|
@@ -523,8 +671,8 @@ declare class AuthResource extends BaseResource {
|
|
|
523
671
|
* const itd = new ItdClient({
|
|
524
672
|
* // `auth` не обязателен: когда хранилище уже содержит сессию, токен берётся оттуда,
|
|
525
673
|
* // а истёкший продлевается сам. Здесь он нужен на первый запуск.
|
|
526
|
-
* // Вход по паролю требует токена капчи — см.
|
|
527
|
-
* auth: { email, password,
|
|
674
|
+
* // Вход по паролю требует токена капчи — см. CaptchaOptions.
|
|
675
|
+
* auth: { email, password, captcha: createCaptchaSolver() },
|
|
528
676
|
* storage: new FileTokenStorage('./.itd-session.json'),
|
|
529
677
|
* rateLimit: { concurrency: 4, rps: 8 },
|
|
530
678
|
* });
|
|
@@ -879,7 +1027,9 @@ interface AccountEvents {
|
|
|
879
1027
|
* await accounts.restore();
|
|
880
1028
|
*
|
|
881
1029
|
* if (!accounts.has('kiow')) {
|
|
882
|
-
* accounts.addAccount('kiow', {
|
|
1030
|
+
* accounts.addAccount('kiow', {
|
|
1031
|
+
* auth: { email, password, captcha: createCaptchaSolver() },
|
|
1032
|
+
* });
|
|
883
1033
|
* }
|
|
884
1034
|
*
|
|
885
1035
|
* await accounts.account('kiow').posts.create({ content: 'привет' });
|
|
@@ -913,7 +1063,9 @@ declare class ItdAccounts {
|
|
|
913
1063
|
*
|
|
914
1064
|
* @example
|
|
915
1065
|
* ```ts
|
|
916
|
-
* accounts.addAccount('bot', {
|
|
1066
|
+
* accounts.addAccount('bot', {
|
|
1067
|
+
* auth: { email, password, captcha: createCaptchaSolver() },
|
|
1068
|
+
* });
|
|
917
1069
|
* accounts.addAccount('reader', { auth: '<accessToken>' });
|
|
918
1070
|
* accounts.addAccount('через-прокси', { fetch: proxyFetch('socks5://…') });
|
|
919
1071
|
* ```
|
|
@@ -1034,5 +1186,5 @@ declare class ItdAccounts {
|
|
|
1034
1186
|
*/
|
|
1035
1187
|
declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1036
1188
|
//#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 CaptchaCredentials, 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 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 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 };
|
|
1189
|
+
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, type CaptchaCredentials, CaptchaField, type CaptchaOptions, type CaptchaProvider, 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 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
1190
|
//# sourceMappingURL=index.d.ts.map
|