itd-api 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/index.cjs +4 -4
- package/dist/events/index.d.cts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +4 -4
- package/dist/index.cjs +74 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -14
- package/dist/index.d.ts +32 -14
- package/dist/index.js +74 -31
- package/dist/index.js.map +1 -1
- package/dist/node/index.cjs +5 -5
- package/dist/node/index.js +5 -5
- package/dist/rest/index.cjs +5 -5
- package/dist/rest/index.d.cts +2 -2
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +5 -5
- package/dist/shared/{events-B6uqXOSs.d.cts → events-Bip3qvCc.d.cts} +1 -1
- package/dist/shared/{events-D_aMNrPd.d.ts → events-DF1elRzZ.d.ts} +1 -1
- package/dist/shared/{events-C_MgYlXR.js → events-DRbBDq9p.js} +4 -4
- package/dist/shared/{events-C_MgYlXR.js.map → events-DRbBDq9p.js.map} +1 -1
- package/dist/shared/{events-DV1i1t6J.cjs → events-DcxmyPTX.cjs} +4 -4
- package/dist/shared/{events-DV1i1t6J.cjs.map → events-DcxmyPTX.cjs.map} +1 -1
- package/dist/shared/{key-value-store-PnZE_DFC.js → key-value-store-BwXlaoD4.js} +2 -2
- package/dist/shared/{key-value-store-PnZE_DFC.js.map → key-value-store-BwXlaoD4.js.map} +1 -1
- package/dist/shared/{key-value-store-6DHm_iNW.cjs → key-value-store-CmnIjuE4.cjs} +2 -2
- package/dist/shared/{key-value-store-6DHm_iNW.cjs.map → key-value-store-CmnIjuE4.cjs.map} +1 -1
- package/dist/shared/{multi-storage-DM0skcSO.js → multi-storage-DffEAzdc.js} +5 -5
- package/dist/shared/{multi-storage-DM0skcSO.js.map → multi-storage-DffEAzdc.js.map} +1 -1
- package/dist/shared/{multi-storage-DnonVBfO.cjs → multi-storage-Dp5x6OOl.cjs} +5 -5
- package/dist/shared/{multi-storage-DnonVBfO.cjs.map → multi-storage-Dp5x6OOl.cjs.map} +1 -1
- package/dist/shared/{options-bS27r_gR.js → options-Ddyc5qec.js} +3 -3
- package/dist/shared/{options-bS27r_gR.js.map → options-Ddyc5qec.js.map} +1 -1
- package/dist/shared/{options-SvAWOaqT.cjs → options-DsmQRyx4.cjs} +3 -3
- package/dist/shared/{options-SvAWOaqT.cjs.map → options-DsmQRyx4.cjs.map} +1 -1
- package/dist/shared/{redact-C4b2NzdB.js → redact-BCmucE19.js} +2 -2
- package/dist/shared/{redact-C4b2NzdB.js.map → redact-BCmucE19.js.map} +1 -1
- package/dist/shared/{redact-DDGkv8KF.cjs → redact-BuXRKC1G.cjs} +2 -2
- package/dist/shared/{redact-DDGkv8KF.cjs.map → redact-BuXRKC1G.cjs.map} +1 -1
- package/dist/shared/{render-eOxYgdoA.d.ts → render-Bvv1V5Tp.d.ts} +3 -1
- package/dist/shared/{render-0-JJPOwb.cjs → render-C1lmsu1i.cjs} +6 -6
- package/dist/shared/{render-0-JJPOwb.cjs.map → render-C1lmsu1i.cjs.map} +1 -1
- package/dist/shared/{render-CYVOc_IW.d.cts → render-D83t9ckd.d.cts} +1 -1
- package/dist/shared/{render-CF49aBO8.js → render-DJKZqv9O.js} +6 -6
- package/dist/shared/{render-CF49aBO8.js.map → render-DJKZqv9O.js.map} +1 -1
- package/dist/shared/{storage-B6OkSi38.js → storage-Bc4lWtSj.js} +3 -3
- package/dist/shared/{storage-B6OkSi38.js.map → storage-Bc4lWtSj.js.map} +1 -1
- package/dist/shared/{storage-CezF2Mvz.cjs → storage-e2xYL6ro.cjs} +3 -3
- package/dist/shared/{storage-CezF2Mvz.cjs.map → storage-e2xYL6ro.cjs.map} +1 -1
- package/dist/shared/{url-DOfjru6L.cjs → url-CXRaoR_w.cjs} +18 -5
- package/dist/shared/url-CXRaoR_w.cjs.map +1 -0
- package/dist/shared/{url-DL5Mip4L.d.ts → url-V4bCae35.d.ts} +14 -1
- package/dist/shared/{url-CPKhcxf1.js → url-aw_NZdVY.js} +18 -5
- package/dist/shared/url-aw_NZdVY.js.map +1 -0
- package/dist/shared/{url-DCqxoxGX.d.cts → url-n_h2pvHA.d.cts} +16 -1
- package/dist/shared/{validate-CfxCK1BC.cjs → validate-BHKy_YMv.cjs} +4 -1
- package/dist/shared/validate-BHKy_YMv.cjs.map +1 -0
- package/dist/shared/{validate-B5l_vLKD.js → validate-BQzL_oJ4.js} +4 -1
- package/dist/shared/validate-BQzL_oJ4.js.map +1 -0
- package/dist/web/index.cjs +3 -3
- package/dist/web/index.js +3 -3
- package/package.json +1 -1
- package/dist/shared/url-CPKhcxf1.js.map +0 -1
- package/dist/shared/url-DOfjru6L.cjs.map +0 -1
- package/dist/shared/validate-B5l_vLKD.js.map +0 -1
- package/dist/shared/validate-CfxCK1BC.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { $ as Profile, $t as operationRetrySafety, A as isItdError, An as ClientConnection, At as Loose, B as normalizeNotification, Bt as ViewSource, C as ItdStateError, Cn as RetryOptions, Ct as EventChannelStatus, D as isItdApiError, Dn as ServiceDefinition, Dt as ItdErrorCode, E as TimeoutBudget, En as QueryValue, Et as InteractionType, F as isItdRateLimitError, Fn as Unsubscribe, Ft as ReportTargetType, G as AuthUser, Gt as BuiltInOperationId, H as NotificationSettings, Ht as HttpClient, I as isItdServerError, In as LogLevel, It as ServiceState, J as LastSeen, Jt as OPERATIONS, K as Author, Kt as CustomOperationId, L as isItdStateError, Ln as Logger, Lt as SpanType, M as isItdForbiddenError, Mn as systemClock, Mt as NotificationType, N as isItdNotFoundError, Nn as Emitter, Nt as QrLocationPrecision, O as isItdAuthError, On as RateLimitPacing, Ot as LastSeenUnit, P as isItdPhoneVerificationError, Pn as Listener, Pt as ReportReason, Q as PrivacySettings, Qt as operationMethod, R as isItdValidationError, Rt as UsernameUnavailableReason, S as ItdServerError, Sn as RetryDecisionContext, St as CommentSort, T as ItdValidationError, Tn as QueryParams, Tt as IncidentKind, U as Actor, V as Notification, Vt as WallAccess, W as AuthState, Wt as CookieJar, X as Pin, Xt as isBuiltInOperationId, Y as MyProfile, Yt as OperationId, Z as PinsResult, Zt as operationBucket, _ as ItdForbiddenError, _n as RequestContext, _t as AccessType, a as ItdAbortError, at as AuthIdentity, b as ItdPhoneVerificationError, bn as ResponseContext, bt as CaptchaField, c as ItdApiErrorKind, cn as RetrySafety, d as ItdConflictError, dn as OperationRequestOptions, dt as STATUS_SERVICE, en as BUCKET_LIMITS, et as PublicProfile, f as ItdError, fn as PaginationOptions, ft as LIBRARY_VERSION, g as ItdFileErrorReason, gn as RawRequestOptions, gt as UserRef, h as ItdFileError, hn as RateLimitOptions, ht as UserId, i as formatNotificationText, in as OperationAnnotations, it as UsernameAvailability, j as isItdFileError, jn as ItdClock, jt as MessageAccess, k as isItdConflictError, kn as RuntimeMode, kt as LikesVisibility, l as ItdAuthError, ln as ClientHooks, m as ItdFieldErrors, mn as RateLimitBucketOverride, mt as Span, n as canonicalNotificationType, nn as RateLimitBucket, nt as UserBase, o as ItdApiError, on as OperationMetadata, ot as AuthProvider, p as ItdErrorKind, pn as RateLimitBucketContext, pt as IsoDate, q as FollowResult, qt as ItdOperationDefinition, r as isKnownNotificationType, rn as FeatureOperationId, rt as UserSummary, s as ItdApiErrorInit, sn as OperationMethod, t as resolveNotificationUrl, tn as DEFAULT_RATE_LIMIT_BUCKET, tt as SubscriptionState, u as ItdConfigError, un as ErrorContextHook, ut as DEFAULT_BASE_URL, v as ItdNetworkError, vn as RequestExtensions, vt as AttachmentType, w as ItdTimeoutError, wn as RuntimeOptions, wt as FeedTab, x as ItdRateLimitError, xn as RetryContext, xt as CaptchaType, y as ItdNotFoundError, yn as RequestOptions, yt as CaptchaChoice, z as NotificationEvent, zt as ViewReason } from "./shared/url-
|
|
7
|
-
import { $ as ShopConsentContext, $n as BuilderInput, $t as autoSpans, A as DwellEntry, An as BannerDrawingTool, Ar as OperationTransformer, At as ReportInput, B as ViewTrackerInput, Bn as OriginalPost, Br as FileResolver, Bt as post, C as fromStream, Cn as HashtagsResource, Cr as AttemptContext, Ct as ShopRecipient, D as UpdateProfileInput, Dn as BannerDrawing, Dr as ClientPlugin, Dt as SearchResult, E as UpdatePrivacyInput, En as UploadedFile, Er as AttemptNext, Et as SearchResource, F as TelemetryClock, Fn as Comment, Fr as FeatureContext, Ft as UserPostsParams, G as ShopConsentsResource, Gn as PostBase, Gr as ResolveFileOptions, Gt as parseHtml, H as SubscriptionResource, Hn as Poll, Hr as PreparedFileSource, Ht as PollInput, I as TelemetryOptions, In as CommentReplyTo, Ir as FeatureInstallation, It as CreatePostInput, J as ShopOrdersResource, Jn as PostUpdateResult, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as PostCounters, Kt as parseMarkdown, L as TelemetryResource, Ln as CommentUpdateResult, Lr as FeatureOperationDefinition, Lt as PostBuilder, M as PhotoOpenInput, Mn as CommentsResource, Mr as PluginTeardown, Mt as CommentsParams, N as TelemetryBatch, Nn as RepliesParams, Nr as ClientFeature, Nt as FeedParams, O as UserListParams, On as BannerDrawingOperation, Or as OperationExtensions, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as Attachment, Pr as FeatureBucketDefinition, Pt as PostsResource, Q as ShopConsent, Qn as comment, Qt as TextMarkup, R as VideoProgressInput, Rn as Hashtag, Rr as FeatureRequestOptions, Rt as PostInput, S as VideoMimeType, Sn as HashtagPostsParams, Sr as RateLimitBucketState, St as ShopProductStatus, T as VerificationResource, Tn as UploadOptions, Tr as AttemptInterceptor, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as PollOption, Ur as PreparedStreamSource, Ut as poll, V as ViewTrackerOptions, Vn as PinPostResult, Vr as PreparedBufferSource, Vt as PollBuilder, W as PayShopOrderOptions, Wn as Post, Wr as ResolveFileContext, Wt as ParseMarkupOptions, X as ShopResource, Xn as CommentBuilder, Xt as MarkupInput, Y as ShopProductsResource, Yn as UpdateResultBase, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as CommentInput, Zt as MarkupSpan, _ as AllowedMimeType, _n as LegalDocumentBlock, _r as PageState, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as CreateReportInput, at as ShopDeliveryDestination, b as ImageMimeType, bn as LegalDocumentSummary, br as PaginatorOptions, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as PaymentMethod, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as Subscription, dt as ShopOrderDelivery, en as markup, er as ItdBuilder, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as NotificationListParams, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as LegalDocument, gr as Page, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as LegalResource, hr as BaseResource, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as CreatePostData, it as ShopDeliveryCountry, j as InteractionEntry, jn as UploadedBannerDrawing, jr as PluginApi, jt as report, k as UsersResource, kn as BannerDrawingPoint, kr as OperationTransformContext, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as QrLoginTarget, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as UpdateNotificationSettingsInput, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as CreateCommentInput, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as UpdatePostInput, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as NotificationsResource, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as PostStats, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as CreatePollInput, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as AccountLifecycleResource, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as isBuilder, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as Session, ut as ShopOrderBase, v as AudioMimeType, vn as LegalDocumentBlockType, vr as PaginationMode, vt as ShopProduct, w as fromUrl, wn as FilesResource, wr as AttemptExtensions, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as LegalDocumentVersion, xr as mapPage, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as LegalDocumentScope, yr as Paginator, yt as ShopProductCategory, z as ViewTracker, zn as LikeResult, zr as ManagedClientResource, zt as PostUpdateInput } from "./shared/render-
|
|
8
|
-
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 WebSocketTransportOptions, a as EventMiddlewareGroup, b as NotificationEventsOptions, c as EventRouteSelector, d as NotificationEventsClientOptions, et as EventTransportFrame, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventMiddleware, k as ReconnectOptions, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationUpdateOfType, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as UnauthorizedStreamError, u as NotificationEventsClient, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-
|
|
6
|
+
import { $ as Profile, $t as operationRetrySafety, A as isItdError, An as ClientConnection, At as Loose, B as normalizeNotification, Bt as ViewSource, C as ItdStateError, Cn as RetryOptions, Ct as EventChannelStatus, D as isItdApiError, Dn as ServiceDefinition, Dt as ItdErrorCode, E as TimeoutBudget, En as QueryValue, Et as InteractionType, F as isItdRateLimitError, Fn as Unsubscribe, Ft as ReportTargetType, G as AuthUser, Gt as BuiltInOperationId, H as NotificationSettings, Ht as HttpClient, I as isItdServerError, In as LogLevel, It as ServiceState, J as LastSeen, Jt as OPERATIONS, K as Author, Kt as CustomOperationId, L as isItdStateError, Ln as Logger, Lt as SpanType, M as isItdForbiddenError, Mn as systemClock, Mt as NotificationType, N as isItdNotFoundError, Nn as Emitter, Nt as QrLocationPrecision, O as isItdAuthError, On as RateLimitPacing, Ot as LastSeenUnit, P as isItdPhoneVerificationError, Pn as Listener, Pt as ReportReason, Q as PrivacySettings, Qt as operationMethod, R as isItdValidationError, Rt as UsernameUnavailableReason, S as ItdServerError, Sn as RetryDecisionContext, St as CommentSort, T as ItdValidationError, Tn as QueryParams, Tt as IncidentKind, U as Actor, V as Notification, Vt as WallAccess, W as AuthState, Wt as CookieJar, X as Pin, Xt as isBuiltInOperationId, Y as MyProfile, Yt as OperationId, Z as PinsResult, Zt as operationBucket, _ as ItdForbiddenError, _n as RequestContext, _t as AccessType, a as ItdAbortError, at as AuthIdentity, b as ItdPhoneVerificationError, bn as ResponseContext, bt as CaptchaField, c as ItdApiErrorKind, cn as RetrySafety, d as ItdConflictError, dn as OperationRequestOptions, dt as STATUS_SERVICE, en as BUCKET_LIMITS, et as PublicProfile, f as ItdError, fn as PaginationOptions, ft as LIBRARY_VERSION, g as ItdFileErrorReason, gn as RawRequestOptions, gt as UserRef, h as ItdFileError, hn as RateLimitOptions, ht as UserId, i as formatNotificationText, in as OperationAnnotations, it as UsernameAvailability, j as isItdFileError, jn as ItdClock, jt as MessageAccess, k as isItdConflictError, kn as RuntimeMode, kt as LikesVisibility, l as ItdAuthError, ln as ClientHooks, m as ItdFieldErrors, mn as RateLimitBucketOverride, mt as Span, n as canonicalNotificationType, nn as RateLimitBucket, nt as UserBase, o as ItdApiError, on as OperationMetadata, ot as AuthProvider, p as ItdErrorKind, pn as RateLimitBucketContext, pt as IsoDate, q as FollowResult, qt as ItdOperationDefinition, r as isKnownNotificationType, rn as FeatureOperationId, rt as UserSummary, s as ItdApiErrorInit, sn as OperationMethod, t as resolveNotificationUrl, tn as DEFAULT_RATE_LIMIT_BUCKET, tt as SubscriptionState, u as ItdConfigError, un as ErrorContextHook, ut as DEFAULT_BASE_URL, v as ItdNetworkError, vn as RequestExtensions, vt as AttachmentType, w as ItdTimeoutError, wn as RuntimeOptions, wt as FeedTab, x as ItdRateLimitError, xn as RetryContext, xt as CaptchaType, y as ItdNotFoundError, yn as RequestOptions, yt as CaptchaChoice, z as NotificationEvent, zt as ViewReason } from "./shared/url-n_h2pvHA.cjs";
|
|
7
|
+
import { $ as ShopConsentContext, $n as BuilderInput, $t as autoSpans, A as DwellEntry, An as BannerDrawingTool, Ar as OperationTransformer, At as ReportInput, B as ViewTrackerInput, Bn as OriginalPost, Br as FileResolver, Bt as post, C as fromStream, Cn as HashtagsResource, Cr as AttemptContext, Ct as ShopRecipient, D as UpdateProfileInput, Dn as BannerDrawing, Dr as ClientPlugin, Dt as SearchResult, E as UpdatePrivacyInput, En as UploadedFile, Er as AttemptNext, Et as SearchResource, F as TelemetryClock, Fn as Comment, Fr as FeatureContext, Ft as UserPostsParams, G as ShopConsentsResource, Gn as PostBase, Gr as ResolveFileOptions, Gt as parseHtml, H as SubscriptionResource, Hn as Poll, Hr as PreparedFileSource, Ht as PollInput, I as TelemetryOptions, In as CommentReplyTo, Ir as FeatureInstallation, It as CreatePostInput, J as ShopOrdersResource, Jn as PostUpdateResult, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as PostCounters, Kt as parseMarkdown, L as TelemetryResource, Ln as CommentUpdateResult, Lr as FeatureOperationDefinition, Lt as PostBuilder, M as PhotoOpenInput, Mn as CommentsResource, Mr as PluginTeardown, Mt as CommentsParams, N as TelemetryBatch, Nn as RepliesParams, Nr as ClientFeature, Nt as FeedParams, O as UserListParams, On as BannerDrawingOperation, Or as OperationExtensions, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as Attachment, Pr as FeatureBucketDefinition, Pt as PostsResource, Q as ShopConsent, Qn as comment, Qt as TextMarkup, R as VideoProgressInput, Rn as Hashtag, Rr as FeatureRequestOptions, Rt as PostInput, S as VideoMimeType, Sn as HashtagPostsParams, Sr as RateLimitBucketState, St as ShopProductStatus, T as VerificationResource, Tn as UploadOptions, Tr as AttemptInterceptor, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as PollOption, Ur as PreparedStreamSource, Ut as poll, V as ViewTrackerOptions, Vn as PinPostResult, Vr as PreparedBufferSource, Vt as PollBuilder, W as PayShopOrderOptions, Wn as Post, Wr as ResolveFileContext, Wt as ParseMarkupOptions, X as ShopResource, Xn as CommentBuilder, Xt as MarkupInput, Y as ShopProductsResource, Yn as UpdateResultBase, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as CommentInput, Zt as MarkupSpan, _ as AllowedMimeType, _n as LegalDocumentBlock, _r as PageState, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as CreateReportInput, at as ShopDeliveryDestination, b as ImageMimeType, bn as LegalDocumentSummary, br as PaginatorOptions, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as PaymentMethod, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as Subscription, dt as ShopOrderDelivery, en as markup, er as ItdBuilder, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as NotificationListParams, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as LegalDocument, gr as Page, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as LegalResource, hr as BaseResource, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as CreatePostData, it as ShopDeliveryCountry, j as InteractionEntry, jn as UploadedBannerDrawing, jr as PluginApi, jt as report, k as UsersResource, kn as BannerDrawingPoint, kr as OperationTransformContext, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as QrLoginTarget, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as UpdateNotificationSettingsInput, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as CreateCommentInput, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as UpdatePostInput, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as NotificationsResource, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as PostStats, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as CreatePollInput, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as AccountLifecycleResource, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as isBuilder, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as Session, ut as ShopOrderBase, v as AudioMimeType, vn as LegalDocumentBlockType, vr as PaginationMode, vt as ShopProduct, w as fromUrl, wn as FilesResource, wr as AttemptExtensions, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as LegalDocumentVersion, xr as mapPage, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as LegalDocumentScope, yr as Paginator, yt as ShopProductCategory, z as ViewTracker, zn as LikeResult, zr as ManagedClientResource, zt as PostUpdateInput } from "./shared/render-D83t9ckd.cjs";
|
|
8
|
+
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 WebSocketTransportOptions, a as EventMiddlewareGroup, b as NotificationEventsOptions, c as EventRouteSelector, d as NotificationEventsClientOptions, et as EventTransportFrame, f as createNotificationEventsClient, g as WebSocketTransport, h as WebSocketOpenFailureClassifier, i as EventFilter, j as EventMiddleware, k as ReconnectOptions, l as EventRouter, m as WebSocketLike, n as EventErrorBoundary, o as EventMiddlewareLike, p as WebSocketImplementationOptions, q as NotificationUpdateOfType, r as EventErrorContext, s as EventRouteTable, t as EventComposer, tt as UnauthorizedStreamError, u as NotificationEventsClient, v as NotificationEvents, w as EventChannelEvents, x as NotificationEventsTransport, y as NotificationEventsMap, z as NotificationContext } from "./shared/events-Bip3qvCc.cjs";
|
|
9
9
|
import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-FtS4NIC7.cjs";
|
|
10
10
|
import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-OGWNMK3x.cjs";
|
|
11
11
|
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-DEbkC0cB.cjs";
|
|
@@ -256,6 +256,8 @@ interface PhoneRegion {
|
|
|
256
256
|
callingCode: string;
|
|
257
257
|
/** Пример национальной части номера. */
|
|
258
258
|
example: string;
|
|
259
|
+
/** Способы подтверждения, доступные в регионе. */
|
|
260
|
+
methods: PhoneVerificationMethod[];
|
|
259
261
|
}
|
|
260
262
|
/** Серверный список регионов, доступных для телефонного входа. */
|
|
261
263
|
interface PhoneConfig {
|
|
@@ -337,6 +339,11 @@ interface PhoneFlowStart extends PhoneDelivery {
|
|
|
337
339
|
/** Значение для следующих вызовов проверки. Передаётся вместе с тем же номером. */
|
|
338
340
|
flowToken: string;
|
|
339
341
|
}
|
|
342
|
+
/** Параметры доставки и срок действия восстановленной проверки номера. */
|
|
343
|
+
interface PhoneFlowResume extends PhoneDelivery {
|
|
344
|
+
/** Оставшееся время проверки в секундах. */
|
|
345
|
+
expiresIn: number;
|
|
346
|
+
}
|
|
340
347
|
/**
|
|
341
348
|
* Подтверждение номера может потребовать облачный пароль.
|
|
342
349
|
* Служебный mode ответа сервера не переносится; результат различается по step/accessToken.
|
|
@@ -729,6 +736,15 @@ declare class AccountPasswordResource extends BaseResource {
|
|
|
729
736
|
newPassword: string;
|
|
730
737
|
}, options?: RequestOptions): Promise<void>;
|
|
731
738
|
}
|
|
739
|
+
/** Номер, капча и способ подтверждения для привязки или смены. */
|
|
740
|
+
interface AccountPhoneStartInput {
|
|
741
|
+
/** Номер в международном формате с `+`. */
|
|
742
|
+
phone: string;
|
|
743
|
+
/** Готовый токен; без него используется источник капчи клиента. */
|
|
744
|
+
captcha?: CaptchaToken | undefined;
|
|
745
|
+
/** По умолчанию Direct: код входящего звонка или сообщения. */
|
|
746
|
+
method?: PhoneVerificationMethod | undefined;
|
|
747
|
+
}
|
|
732
748
|
/** Привязка и смена номера текущего аккаунта. */
|
|
733
749
|
declare class AccountPhoneResource extends BaseResource {
|
|
734
750
|
#private;
|
|
@@ -738,6 +754,7 @@ declare class AccountPhoneResource extends BaseResource {
|
|
|
738
754
|
*
|
|
739
755
|
* Передайте номер в международном формате с `+`. Если токен капчи не передан
|
|
740
756
|
* в вызов, SDK использует настроенный источник капчи.
|
|
757
|
+
* Для исходящего звонка передайте `method: PhoneVerificationMethod.Reverse`.
|
|
741
758
|
*
|
|
742
759
|
* @returns параметры доставки и `flowToken` для {@link verifyAttach}
|
|
743
760
|
*
|
|
@@ -747,21 +764,15 @@ declare class AccountPhoneResource extends BaseResource {
|
|
|
747
764
|
* await itd.account.phone.verifyAttach({ phone, flowToken, otp: await getOtp() });
|
|
748
765
|
* ```
|
|
749
766
|
*/
|
|
750
|
-
attach(input:
|
|
751
|
-
phone: string;
|
|
752
|
-
captcha?: CaptchaToken;
|
|
753
|
-
}, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
767
|
+
attach(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
754
768
|
/**
|
|
755
769
|
* Запрашивает подтверждение нового номера для смены.
|
|
756
770
|
*
|
|
757
|
-
* Формат
|
|
771
|
+
* Формат номера, источник капчи и выбор способа подтверждения такие же, как у {@link attach}.
|
|
758
772
|
*
|
|
759
773
|
* @returns параметры доставки и `flowToken` для {@link verifyChange}
|
|
760
774
|
*/
|
|
761
|
-
startChange(input:
|
|
762
|
-
phone: string;
|
|
763
|
-
captcha?: CaptchaToken;
|
|
764
|
-
}, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
775
|
+
startChange(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
765
776
|
/**
|
|
766
777
|
* Завершает привязку номера кодом.
|
|
767
778
|
*
|
|
@@ -851,7 +862,7 @@ declare class PhoneAuthResource extends BaseResource {
|
|
|
851
862
|
constructor(http: HttpClient, deps: {
|
|
852
863
|
auth: AuthManager;
|
|
853
864
|
});
|
|
854
|
-
/** Разрешённые
|
|
865
|
+
/** Разрешённые регионы, примеры номеров и доступные способы подтверждения. */
|
|
855
866
|
config(options?: RequestOptions): Promise<PhoneConfig>;
|
|
856
867
|
/**
|
|
857
868
|
* Загружает контекст phone_entry вместе с текстом и редакциями документов.
|
|
@@ -868,6 +879,13 @@ declare class PhoneAuthResource extends BaseResource {
|
|
|
868
879
|
* @returns `flowToken` для продолжения входа, канал доставки, длина кода и пауза повтора в секундах
|
|
869
880
|
*/
|
|
870
881
|
start(input: PhoneLoginInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
882
|
+
/**
|
|
883
|
+
* Возобновляет незавершённую проверку номера.
|
|
884
|
+
*
|
|
885
|
+
* Передайте номер и `flowToken` из {@link start}. Для следующих шагов используйте тот же
|
|
886
|
+
* токен и параметры доставки из ответа.
|
|
887
|
+
*/
|
|
888
|
+
resume({ phone, flowToken }: PhoneFlowInput, options?: RequestOptions): Promise<PhoneFlowResume>;
|
|
871
889
|
/**
|
|
872
890
|
* Подтверждает код без email и пароля.
|
|
873
891
|
*
|
|
@@ -1737,4 +1755,4 @@ export declare class ItdAccounts {
|
|
|
1737
1755
|
* То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
|
|
1738
1756
|
*/
|
|
1739
1757
|
export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1740
|
-
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
1758
|
+
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { $ as isItdNotFoundError, $t as isBuiltInOperationId, A as ItdConfigError, An as SpanType, At as RawRequestOptions, B as ItdPhoneVerificationError, Bt as QueryValue, C as UserSummary, Cn as Loose, Ct as ClientHooks, D as ItdApiErrorInit, Dn as ReportReason, Dt as RateLimitBucketContext, E as ItdApiError, En as QrLocationPrecision, Et as PaginationOptions, F as ItdFileError, Ft as RetryContext, G as ItdValidationError, Gt as Logger, H as ItdServerError, Ht as RateLimitPacing, I as ItdFileErrorReason, It as RetryDecisionContext, J as isItdAuthError, Jt as BuiltInOperationId, K as TimeoutBudget, Kt as ItdClock, L as ItdForbiddenError, Lt as RetryOptions, M as ItdError, Mn as ViewReason, Mt as RequestExtensions, N as ItdErrorKind, Nn as ViewSource, Nt as RequestOptions, O as ItdApiErrorKind, On as ReportTargetType, Ot as RateLimitBucketOverride, P as ItdFieldErrors, Pn as WallAccess, Pt as ResponseContext, Q as isItdForbiddenError, Qt as OperationId, R as ItdNetworkError, Rt as RuntimeOptions, S as UserBase, Sn as LikesVisibility, St as RetrySafety, T as ItdAbortError, Tn as NotificationType, Tt as OperationRequestOptions, U as ItdStateError, Ut as RuntimeMode, V as ItdRateLimitError, Vt as ServiceDefinition, W as ItdTimeoutError, Wt as LogLevel, X as isItdError, Xt as ItdOperationDefinition, Y as isItdConflictError, Yt as CustomOperationId, Z as isItdFileError, Zt as OPERATIONS, _ as PinsResult, _n as FeedTab, _t as FeatureOperationId, a as NotificationEvent, an as RateLimitBucket, at as Emitter, b as PublicProfile, bn as ItdErrorCode, bt as OperationMetadata, c as NotificationSettings, cn as UserId, ct as ClientConnection, d as AuthUser, dn as AttachmentType, en as operationBucket, et as isItdPhoneVerificationError, f as Author, fn as CaptchaChoice, g as Pin, gn as EventChannelStatus, gt as LIBRARY_VERSION, h as MyProfile, hn as CommentSort, ht as STATUS_SERVICE, i as formatNotificationText, in as DEFAULT_RATE_LIMIT_BUCKET, it as isItdValidationError, j as ItdConflictError, jn as UsernameUnavailableReason, jt as RequestContext, k as ItdAuthError, kn as ServiceState, kt as RateLimitOptions, l as Actor, ln as UserRef, lt as AuthIdentity, m as LastSeen, mn as CaptchaType, mt as DEFAULT_BASE_URL, n as canonicalNotificationType, nn as operationRetrySafety, nt as isItdServerError, o as normalizeNotification, on as IsoDate, ot as Listener, p as FollowResult, pn as CaptchaField, q as isItdApiError, qt as systemClock, r as isKnownNotificationType, rn as BUCKET_LIMITS, rt as isItdStateError, s as Notification, sn as Span, st as Unsubscribe, t as resolveNotificationUrl, tn as operationMethod, tt as isItdRateLimitError, u as AuthState, un as AccessType, ut as AuthProvider, v as PrivacySettings, vn as IncidentKind, vt as OperationAnnotations, w as UsernameAvailability, wn as MessageAccess, wt as ErrorContextHook, x as SubscriptionState, xn as LastSeenUnit, xt as OperationMethod, y as Profile, yn as InteractionType, z as ItdNotFoundError, zt as QueryParams } from "./shared/url-
|
|
7
|
-
import { $ as ShopConsentContext, $n as BuilderInput, $t as autoSpans, A as DwellEntry, An as BannerDrawingTool, Ar as OperationTransformer, At as ReportInput, B as ViewTrackerInput, Bn as OriginalPost, Br as FileResolver, Bt as post, C as fromStream, Cn as HashtagsResource, Cr as AttemptContext, Ct as ShopRecipient, D as UpdateProfileInput, Dn as BannerDrawing, Dr as ClientPlugin, Dt as SearchResult, E as UpdatePrivacyInput, En as UploadedFile, Er as AttemptNext, Et as SearchResource, F as TelemetryClock, Fn as Comment, Fr as FeatureContext, Ft as UserPostsParams, G as ShopConsentsResource, Gn as PostBase, Gr as ResolveFileOptions, Gt as parseHtml, H as SubscriptionResource, Hn as Poll, Hr as PreparedFileSource, Ht as PollInput, I as TelemetryOptions, In as CommentReplyTo, Ir as FeatureInstallation, It as CreatePostInput, J as ShopOrdersResource, Jn as PostUpdateResult, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as PostCounters, Kr as HttpClient, Kt as parseMarkdown, L as TelemetryResource, Ln as CommentUpdateResult, Lr as FeatureOperationDefinition, Lt as PostBuilder, M as PhotoOpenInput, Mn as CommentsResource, Mr as PluginTeardown, Mt as CommentsParams, N as TelemetryBatch, Nn as RepliesParams, Nr as ClientFeature, Nt as FeedParams, O as UserListParams, On as BannerDrawingOperation, Or as OperationExtensions, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as Attachment, Pr as FeatureBucketDefinition, Pt as PostsResource, Q as ShopConsent, Qn as comment, Qt as TextMarkup, R as VideoProgressInput, Rn as Hashtag, Rr as FeatureRequestOptions, Rt as PostInput, S as VideoMimeType, Sn as HashtagPostsParams, Sr as RateLimitBucketState, St as ShopProductStatus, T as VerificationResource, Tn as UploadOptions, Tr as AttemptInterceptor, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as PollOption, Ur as PreparedStreamSource, Ut as poll, V as ViewTrackerOptions, Vn as PinPostResult, Vr as PreparedBufferSource, Vt as PollBuilder, W as PayShopOrderOptions, Wn as Post, Wr as ResolveFileContext, Wt as ParseMarkupOptions, X as ShopResource, Xn as CommentBuilder, Xt as MarkupInput, Y as ShopProductsResource, Yn as UpdateResultBase, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as CommentInput, Zt as MarkupSpan, _ as AllowedMimeType, _n as LegalDocumentBlock, _r as PageState, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as CreateReportInput, at as ShopDeliveryDestination, b as ImageMimeType, bn as LegalDocumentSummary, br as PaginatorOptions, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as PaymentMethod, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as Subscription, dt as ShopOrderDelivery, en as markup, er as ItdBuilder, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as NotificationListParams, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as LegalDocument, gr as Page, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as LegalResource, hr as BaseResource, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as CreatePostData, it as ShopDeliveryCountry, j as InteractionEntry, jn as UploadedBannerDrawing, jr as PluginApi, jt as report, k as UsersResource, kn as BannerDrawingPoint, kr as OperationTransformContext, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as QrLoginTarget, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as UpdateNotificationSettingsInput, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as CreateCommentInput, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as UpdatePostInput, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as NotificationsResource, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as PostStats, qr as CookieJar, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as CreatePollInput, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as AccountLifecycleResource, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as isBuilder, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as Session, ut as ShopOrderBase, v as AudioMimeType, vn as LegalDocumentBlockType, vr as PaginationMode, vt as ShopProduct, w as fromUrl, wn as FilesResource, wr as AttemptExtensions, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as LegalDocumentVersion, xr as mapPage, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as LegalDocumentScope, yr as Paginator, yt as ShopProductCategory, z as ViewTracker, zn as LikeResult, zr as ManagedClientResource, zt as PostUpdateInput } from "./shared/render-
|
|
8
|
-
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-
|
|
6
|
+
import { $ as isItdNotFoundError, $t as isBuiltInOperationId, A as ItdConfigError, An as SpanType, At as RawRequestOptions, B as ItdPhoneVerificationError, Bt as QueryValue, C as UserSummary, Cn as Loose, Ct as ClientHooks, D as ItdApiErrorInit, Dn as ReportReason, Dt as RateLimitBucketContext, E as ItdApiError, En as QrLocationPrecision, Et as PaginationOptions, F as ItdFileError, Ft as RetryContext, G as ItdValidationError, Gt as Logger, H as ItdServerError, Ht as RateLimitPacing, I as ItdFileErrorReason, It as RetryDecisionContext, J as isItdAuthError, Jt as BuiltInOperationId, K as TimeoutBudget, Kt as ItdClock, L as ItdForbiddenError, Lt as RetryOptions, M as ItdError, Mn as ViewReason, Mt as RequestExtensions, N as ItdErrorKind, Nn as ViewSource, Nt as RequestOptions, O as ItdApiErrorKind, On as ReportTargetType, Ot as RateLimitBucketOverride, P as ItdFieldErrors, Pn as WallAccess, Pt as ResponseContext, Q as isItdForbiddenError, Qt as OperationId, R as ItdNetworkError, Rt as RuntimeOptions, S as UserBase, Sn as LikesVisibility, St as RetrySafety, T as ItdAbortError, Tn as NotificationType, Tt as OperationRequestOptions, U as ItdStateError, Ut as RuntimeMode, V as ItdRateLimitError, Vt as ServiceDefinition, W as ItdTimeoutError, Wt as LogLevel, X as isItdError, Xt as ItdOperationDefinition, Y as isItdConflictError, Yt as CustomOperationId, Z as isItdFileError, Zt as OPERATIONS, _ as PinsResult, _n as FeedTab, _t as FeatureOperationId, a as NotificationEvent, an as RateLimitBucket, at as Emitter, b as PublicProfile, bn as ItdErrorCode, bt as OperationMetadata, c as NotificationSettings, cn as UserId, ct as ClientConnection, d as AuthUser, dn as AttachmentType, en as operationBucket, et as isItdPhoneVerificationError, f as Author, fn as CaptchaChoice, g as Pin, gn as EventChannelStatus, gt as LIBRARY_VERSION, h as MyProfile, hn as CommentSort, ht as STATUS_SERVICE, i as formatNotificationText, in as DEFAULT_RATE_LIMIT_BUCKET, it as isItdValidationError, j as ItdConflictError, jn as UsernameUnavailableReason, jt as RequestContext, k as ItdAuthError, kn as ServiceState, kt as RateLimitOptions, l as Actor, ln as UserRef, lt as AuthIdentity, m as LastSeen, mn as CaptchaType, mt as DEFAULT_BASE_URL, n as canonicalNotificationType, nn as operationRetrySafety, nt as isItdServerError, o as normalizeNotification, on as IsoDate, ot as Listener, p as FollowResult, pn as CaptchaField, q as isItdApiError, qt as systemClock, r as isKnownNotificationType, rn as BUCKET_LIMITS, rt as isItdStateError, s as Notification, sn as Span, st as Unsubscribe, t as resolveNotificationUrl, tn as operationMethod, tt as isItdRateLimitError, u as AuthState, un as AccessType, ut as AuthProvider, v as PrivacySettings, vn as IncidentKind, vt as OperationAnnotations, w as UsernameAvailability, wn as MessageAccess, wt as ErrorContextHook, x as SubscriptionState, xn as LastSeenUnit, xt as OperationMethod, y as Profile, yn as InteractionType, z as ItdNotFoundError, zt as QueryParams } from "./shared/url-V4bCae35.js";
|
|
7
|
+
import { $ as ShopConsentContext, $n as BuilderInput, $t as autoSpans, A as DwellEntry, An as BannerDrawingTool, Ar as OperationTransformer, At as ReportInput, B as ViewTrackerInput, Bn as OriginalPost, Br as FileResolver, Bt as post, C as fromStream, Cn as HashtagsResource, Cr as AttemptContext, Ct as ShopRecipient, D as UpdateProfileInput, Dn as BannerDrawing, Dr as ClientPlugin, Dt as SearchResult, E as UpdatePrivacyInput, En as UploadedFile, Er as AttemptNext, Et as SearchResource, F as TelemetryClock, Fn as Comment, Fr as FeatureContext, Ft as UserPostsParams, G as ShopConsentsResource, Gn as PostBase, Gr as ResolveFileOptions, Gt as parseHtml, H as SubscriptionResource, Hn as Poll, Hr as PreparedFileSource, Ht as PollInput, I as TelemetryOptions, In as CommentReplyTo, Ir as FeatureInstallation, It as CreatePostInput, J as ShopOrdersResource, Jn as PostUpdateResult, Jt as MarkupBuilder, K as ShopDeliveryResource, Kn as PostCounters, Kr as HttpClient, Kt as parseMarkdown, L as TelemetryResource, Ln as CommentUpdateResult, Lr as FeatureOperationDefinition, Lt as PostBuilder, M as PhotoOpenInput, Mn as CommentsResource, Mr as PluginTeardown, Mt as CommentsParams, N as TelemetryBatch, Nn as RepliesParams, Nr as ClientFeature, Nt as FeedParams, O as UserListParams, On as BannerDrawingOperation, Or as OperationExtensions, Ot as ReportsResource, P as TelemetryBatchOptions, Pn as Attachment, Pr as FeatureBucketDefinition, Pt as PostsResource, Q as ShopConsent, Qn as comment, Qt as TextMarkup, R as VideoProgressInput, Rn as Hashtag, Rr as FeatureRequestOptions, Rt as PostInput, S as VideoMimeType, Sn as HashtagPostsParams, Sr as RateLimitBucketState, St as ShopProductStatus, T as VerificationResource, Tn as UploadOptions, Tr as AttemptInterceptor, Tt as ShopSizeChartRow, U as CreateShopOrderOptions, Un as PollOption, Ur as PreparedStreamSource, Ut as poll, V as ViewTrackerOptions, Vn as PinPostResult, Vr as PreparedBufferSource, Vt as PollBuilder, W as PayShopOrderOptions, Wn as Post, Wr as ResolveFileContext, Wt as ParseMarkupOptions, X as ShopResource, Xn as CommentBuilder, Xt as MarkupInput, Y as ShopProductsResource, Yn as UpdateResultBase, Yt as MarkupContent, Z as CreateShopOrderInput, Zn as CommentInput, Zt as MarkupSpan, _ as AllowedMimeType, _n as LegalDocumentBlock, _r as PageState, _t as ShopPayment, a as ShopFeatureOptions, an as ServiceStatus, ar as CreateReportInput, at as ShopDeliveryDestination, b as ImageMimeType, bn as LegalDocumentSummary, br as PaginatorOptions, bt as ShopProductColor, c as ShopOrderAccessStorage, cn as Announcement, cr as PaymentMethod, ct as ShopOrderAccessSession, d as statusDays, dn as Clan, dr as Subscription, dt as ShopOrderDelivery, en as markup, er as ItdBuilder, et as ShopConsentKind, f as isMyProfile, fn as Portal, fr as NotificationListParams, ft as ShopOrderItem, g as AUDIO_MIME_TYPES, gn as LegalDocument, gr as Page, gt as ShopOrderSupport, h as ALLOWED_MIME_TYPES, hn as LegalResource, hr as BaseResource, ht as ShopOrderSummary, i as ShopFeatureApi, in as PlatformStatus, ir as CreatePostData, it as ShopDeliveryCountry, j as InteractionEntry, jn as UploadedBannerDrawing, jr as PluginApi, jt as report, k as UsersResource, kn as BannerDrawingPoint, kr as OperationTransformContext, kt as ReportBuilder, l as ShopOrderAccessStorageAdapterOptions, ln as AnnouncementButton, lr as QrLoginTarget, lt as ShopOrderAccessVerification, m as utcStampToIso, mn as VerificationStatus, mr as UpdateNotificationSettingsInput, mt as ShopOrderStatus, n as SpanRenderFormat, nn as PlatformResource, nr as CreateCommentInput, nt as ShopDeliveryCalculation, o as createShopFeature, on as StatusDay, or as UpdatePostInput, ot as ShopDeliveryPoint, p as toDate, pn as Report, pr as NotificationsResource, pt as ShopOrderItemInput, q as ShopOrderRequestOptions, qn as PostStats, qr as CookieJar, qt as AutoSpansOptions, r as renderSpans, rn as PlatformVersions, rr as CreatePollInput, rt as ShopDeliveryCity, s as MemoryShopOrderAccessStorage, sn as StatusIncidentLine, sr as AccountLifecycleResource, st as ShopOrder, t as RenderSpansOptions, tn as PlatformClientVersion, tr as isBuilder, tt as ShopCreatedOrder, u as createShopOrderAccessStorage, un as ChangelogEntry, ur as Session, ut as ShopOrderBase, v as AudioMimeType, vn as LegalDocumentBlockType, vr as PaginationMode, vt as ShopProduct, w as fromUrl, wn as FilesResource, wr as AttemptExtensions, wt as ShopSizeChart, x as VIDEO_MIME_TYPES, xn as LegalDocumentVersion, xr as mapPage, xt as ShopProductSpec, y as IMAGE_MIME_TYPES, yn as LegalDocumentScope, yr as Paginator, yt as ShopProductCategory, z as ViewTracker, zn as LikeResult, zr as ManagedClientResource, zt as PostUpdateInput } from "./shared/render-Bvv1V5Tp.js";
|
|
8
|
+
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-DF1elRzZ.js";
|
|
9
9
|
import { a as createTokenStorage, i as TokenStorageAdapterOptions, n as MemoryTokenStorage, r as TokenStorage, t as ItdSession } from "./shared/storage-C_ZujAZt.js";
|
|
10
10
|
import { a as scopedTokenStorage, i as createMultiTokenStorage, n as MultiTokenStorage, r as MultiTokenStorageAdapterOptions, t as MemoryMultiTokenStorage } from "./shared/multi-storage-DQiERirK.js";
|
|
11
11
|
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-pxnDIsQP.js";
|
|
@@ -256,6 +256,8 @@ interface PhoneRegion {
|
|
|
256
256
|
callingCode: string;
|
|
257
257
|
/** Пример национальной части номера. */
|
|
258
258
|
example: string;
|
|
259
|
+
/** Способы подтверждения, доступные в регионе. */
|
|
260
|
+
methods: PhoneVerificationMethod[];
|
|
259
261
|
}
|
|
260
262
|
/** Серверный список регионов, доступных для телефонного входа. */
|
|
261
263
|
interface PhoneConfig {
|
|
@@ -337,6 +339,11 @@ interface PhoneFlowStart extends PhoneDelivery {
|
|
|
337
339
|
/** Значение для следующих вызовов проверки. Передаётся вместе с тем же номером. */
|
|
338
340
|
flowToken: string;
|
|
339
341
|
}
|
|
342
|
+
/** Параметры доставки и срок действия восстановленной проверки номера. */
|
|
343
|
+
interface PhoneFlowResume extends PhoneDelivery {
|
|
344
|
+
/** Оставшееся время проверки в секундах. */
|
|
345
|
+
expiresIn: number;
|
|
346
|
+
}
|
|
340
347
|
/**
|
|
341
348
|
* Подтверждение номера может потребовать облачный пароль.
|
|
342
349
|
* Служебный mode ответа сервера не переносится; результат различается по step/accessToken.
|
|
@@ -729,6 +736,15 @@ declare class AccountPasswordResource extends BaseResource {
|
|
|
729
736
|
newPassword: string;
|
|
730
737
|
}, options?: RequestOptions): Promise<void>;
|
|
731
738
|
}
|
|
739
|
+
/** Номер, капча и способ подтверждения для привязки или смены. */
|
|
740
|
+
interface AccountPhoneStartInput {
|
|
741
|
+
/** Номер в международном формате с `+`. */
|
|
742
|
+
phone: string;
|
|
743
|
+
/** Готовый токен; без него используется источник капчи клиента. */
|
|
744
|
+
captcha?: CaptchaToken | undefined;
|
|
745
|
+
/** По умолчанию Direct: код входящего звонка или сообщения. */
|
|
746
|
+
method?: PhoneVerificationMethod | undefined;
|
|
747
|
+
}
|
|
732
748
|
/** Привязка и смена номера текущего аккаунта. */
|
|
733
749
|
declare class AccountPhoneResource extends BaseResource {
|
|
734
750
|
#private;
|
|
@@ -738,6 +754,7 @@ declare class AccountPhoneResource extends BaseResource {
|
|
|
738
754
|
*
|
|
739
755
|
* Передайте номер в международном формате с `+`. Если токен капчи не передан
|
|
740
756
|
* в вызов, SDK использует настроенный источник капчи.
|
|
757
|
+
* Для исходящего звонка передайте `method: PhoneVerificationMethod.Reverse`.
|
|
741
758
|
*
|
|
742
759
|
* @returns параметры доставки и `flowToken` для {@link verifyAttach}
|
|
743
760
|
*
|
|
@@ -747,21 +764,15 @@ declare class AccountPhoneResource extends BaseResource {
|
|
|
747
764
|
* await itd.account.phone.verifyAttach({ phone, flowToken, otp: await getOtp() });
|
|
748
765
|
* ```
|
|
749
766
|
*/
|
|
750
|
-
attach(input:
|
|
751
|
-
phone: string;
|
|
752
|
-
captcha?: CaptchaToken;
|
|
753
|
-
}, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
767
|
+
attach(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
754
768
|
/**
|
|
755
769
|
* Запрашивает подтверждение нового номера для смены.
|
|
756
770
|
*
|
|
757
|
-
* Формат
|
|
771
|
+
* Формат номера, источник капчи и выбор способа подтверждения такие же, как у {@link attach}.
|
|
758
772
|
*
|
|
759
773
|
* @returns параметры доставки и `flowToken` для {@link verifyChange}
|
|
760
774
|
*/
|
|
761
|
-
startChange(input:
|
|
762
|
-
phone: string;
|
|
763
|
-
captcha?: CaptchaToken;
|
|
764
|
-
}, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
775
|
+
startChange(input: AccountPhoneStartInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
765
776
|
/**
|
|
766
777
|
* Завершает привязку номера кодом.
|
|
767
778
|
*
|
|
@@ -851,7 +862,7 @@ declare class PhoneAuthResource extends BaseResource {
|
|
|
851
862
|
constructor(http: HttpClient, deps: {
|
|
852
863
|
auth: AuthManager;
|
|
853
864
|
});
|
|
854
|
-
/** Разрешённые
|
|
865
|
+
/** Разрешённые регионы, примеры номеров и доступные способы подтверждения. */
|
|
855
866
|
config(options?: RequestOptions): Promise<PhoneConfig>;
|
|
856
867
|
/**
|
|
857
868
|
* Загружает контекст phone_entry вместе с текстом и редакциями документов.
|
|
@@ -868,6 +879,13 @@ declare class PhoneAuthResource extends BaseResource {
|
|
|
868
879
|
* @returns `flowToken` для продолжения входа, канал доставки, длина кода и пауза повтора в секундах
|
|
869
880
|
*/
|
|
870
881
|
start(input: PhoneLoginInput, options?: RequestOptions): Promise<PhoneFlowStart>;
|
|
882
|
+
/**
|
|
883
|
+
* Возобновляет незавершённую проверку номера.
|
|
884
|
+
*
|
|
885
|
+
* Передайте номер и `flowToken` из {@link start}. Для следующих шагов используйте тот же
|
|
886
|
+
* токен и параметры доставки из ответа.
|
|
887
|
+
*/
|
|
888
|
+
resume({ phone, flowToken }: PhoneFlowInput, options?: RequestOptions): Promise<PhoneFlowResume>;
|
|
871
889
|
/**
|
|
872
890
|
* Подтверждает код без email и пароля.
|
|
873
891
|
*
|
|
@@ -1737,4 +1755,4 @@ export declare class ItdAccounts {
|
|
|
1737
1755
|
* То же, что `new ItdAccounts(options)`, — для тех, кому привычнее фабрика.
|
|
1738
1756
|
*/
|
|
1739
1757
|
export declare function createAccounts(options?: ItdAccountsOptions): ItdAccounts;
|
|
1740
|
-
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
|
1758
|
+
export { ALLOWED_MIME_TYPES, AUDIO_MIME_TYPES, AccessType, type AccountChangesResource, type AccountEmailResource, type AccountEvents, type AccountFeature, type AccountInfo, type AccountLifecycleResource, type AccountPasswordResource, type AccountPhoneResource, type AccountPhoneStartInput, type AccountResource, 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 BannerDrawing, type BannerDrawingOperation, type BannerDrawingPoint, BannerDrawingTool, type BuilderInput, type BuiltInOperationId, CaptchaChoice, CaptchaField, type CaptchaPage, type CaptchaProvider, type CaptchaSolveContext, type CaptchaSolver, type CaptchaSolverInput, type CaptchaToken, CaptchaType, type ChangelogEntry, type Clan, type ClientConnection, type ClientFeature, type ClientHooks, type ClientPlugin, type Comment, type CommentBuilder, type CommentInput, type CommentReplyTo, CommentSort, type CommentUpdateResult, type CommentsParams, type CommentsResource, type ConsentDocument, type ContactActionResult, type ContactChange, type ContactChangeConfirmation, type ContactChangeSchedule, type ContactProofDelivery, type CreateCommentInput, type CreatePollInput, type CreatePostData, type CreatePostInput, type CreateReportInput, type CreateShopOrderInput, type CreateShopOrderOptions, type Credentials, type CredentialsAuth, type CredentialsWithCaptcha, type CustomOperationId, DEFAULT_BASE_URL, DEFAULT_RATE_LIMIT_BUCKET, type DwellEntry, type EnumerableKeyValueStore, type ErrorContextHook, EventChannel, type EventChannelDeps, type EventChannelEvents, type EventChannelOptions, EventChannelStatus, EventComposer, type EventContext, type EventEnqueueOptions, type EventErrorBoundary, type EventErrorContext, type EventFilter, type EventHandler, type EventMiddleware, type EventMiddlewareGroup, type EventMiddlewareLike, type EventMiddlewareObject, type EventNext, type EventPredicate, type EventRouteSelector, type EventRouteTable, EventRouter, type EventSequentializer, type EventSession, type EventSyncReason, type EventTransport, type EventTransportContext, type EventTransportFrame, type EventTypeGuard, type FeatureBucketDefinition, type FeatureContext, type FeatureInstallation, type FeatureOperationDefinition, type FeatureOperationId, type FeatureRequestOptions, type FeedParams, FeedTab, type FileContent, type FileContext, type FileInput, type FileResolver, type FileStreamContent, type FileStreamOptions, FileTransferMode, type FilesResource, type FollowResult, type ForgotPasswordInput, type FromStreamOptions, type Hashtag, type HashtagPostsParams, type HashtagsResource, IMAGE_MIME_TYPES, type ImageMimeType, IncidentKind, type InteractionEntry, InteractionType, type IsoDate, ItdAbortError, type ItdAccountsOptions, ItdApiError, type ItdApiErrorInit, ItdApiErrorKind, ItdAuthError, type ItdBuilder, type ItdClientOptions, type ItdClock, ItdConfigError, ItdConflictError, ItdError, ItdErrorCode, ItdErrorKind, type ItdFieldErrors, ItdFileError, ItdFileErrorReason, ItdForbiddenError, ItdNetworkError, ItdNotFoundError, ItdPhoneVerificationError, ItdRateLimitError, ItdServerError, type ItdSession, ItdStateError, ItdTimeoutError, ItdValidationError, type KeyValueCodec, type KeyValueStore, type KeyValueStoreKeys, type KeyValueStoreResult, LIBRARY_VERSION, type LastSeen, LastSeenUnit, type LazyFile, type LegalDocument, type LegalDocumentBlock, LegalDocumentBlockType, LegalDocumentScope, type LegalDocumentSummary, type LegalDocumentVersion, type LegalResource, type LikeResult, LikesVisibility, type Listener, LogLevel, type Logger, type Loose, type ManagedClientResource, type MarkupBuilder, type MarkupContent, type MarkupInput, type MarkupSpan, MemoryKeyValueStore, MemoryMultiTokenStorage, MemoryShopOrderAccessStorage, MemoryTokenStorage, MessageAccess, type MultiTokenStorage, type MultiTokenStorageAdapterOptions, type MyProfile, type Notification, type NotificationContext, type NotificationEvent, type NotificationEventContext, type NotificationEventFilter, type NotificationEventOfType, type NotificationEventSelector, NotificationEvents, NotificationEventsClient, type NotificationEventsClientOptions, type NotificationEventsMap, type NotificationEventsOptions, NotificationEventsTransport, type NotificationEventsUpdate, type NotificationListParams, type NotificationOfType, type NotificationSettings, NotificationType, type NotificationUpdate, type NotificationUpdateOfType, NotificationUpdateOrigin, NotificationUpdateType, type NotificationsApi, type NotificationsResource, OPERATIONS, type OperationAnnotations, type ItdOperationDefinition as OperationDefinition, type OperationExtensions, type OperationId, type OperationMetadata, OperationMethod, type OperationRequestOptions, type OperationTransformContext, type OperationTransformer, type OriginalPost, type Page, type PageState, PaginationMode, type PaginationOptions, Paginator, type PaginatorOptions, type ParseMarkupOptions, type PayShopOrderOptions, type PaymentMethod, type PendingContactChange, type PhoneAuthResource, type PhoneConfig, type PhoneConsent, type PhoneDelivery, type PhoneFlowInput, type PhoneFlowResume, type PhoneFlowStart, type PhoneLoginInput, type PhoneLoginResult, type PhoneRegion, type PhoneReverseOptions, type PhoneReverseStatus, 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 PostBase, type PostBuilder, type PostCounters, type PostInput, type PostStats, type PostUpdateInput, type PostUpdateResult, type PostsResource, type PreparedBufferSource, type PreparedFileSource, type PreparedStreamSource, type PrivacySettings, type Profile, type PublicProfile, QrLocationPrecision, type QrLoginClaim, type QrLoginClaimInput, type QrLoginSecrets, type QrLoginStart, type QrLoginStreamEvent, type QrLoginStreamInput, type QrLoginStreamListener, type QrLoginStreamOptions, type QrLoginTarget, type QueryParams, type QueryValue, type RateLimitBucket, type RateLimitBucketContext, type RateLimitBucketOverride, type RateLimitBucketState, type RateLimitOptions, RateLimitPacing, type RawRequestOptions, type ReconnectOptions, type RecordKeyValueStoreSource, type RemoveAccountOptions, type RenderSpansOptions, type RepliesParams, type Report, type ReportBuilder, type ReportInput, ReportReason, ReportTargetType, type ReportsResource, type RequestContext, type RequestExtensions, type RequestOptions, type ResetPasswordInput, type ResolveFileContext, type ResolveFileOptions, type ResponseContext, type RetryContext, type RetryDecisionContext, type RetryOptions, RetrySafety, RuntimeMode, type RuntimeOptions, STATUS_SERVICE, type SearchResource, type SearchResult, type ServiceDefinition, ServiceState, type ServiceStatus, type Session, type SessionOptions, type ShopConsent, type ShopConsentContext, ShopConsentKind, type ShopConsentsResource, type ShopCreatedOrder, type ShopDeliveryCalculation, type ShopDeliveryCity, type ShopDeliveryCountry, type ShopDeliveryDestination, type ShopDeliveryPoint, type ShopDeliveryResource, type ShopFeatureApi, type ShopFeatureOptions, type ShopOrder, type ShopOrderAccessSession, type ShopOrderAccessStorage, type ShopOrderAccessStorageAdapterOptions, type ShopOrderAccessVerification, type ShopOrderBase, type ShopOrderDelivery, type ShopOrderItem, type ShopOrderItemInput, type ShopOrderRequestOptions, ShopOrderStatus, type ShopOrderSummary, type ShopOrderSupport, type ShopOrdersResource, type ShopPayment, type ShopProduct, ShopProductCategory, type ShopProductColor, type ShopProductSpec, ShopProductStatus, type ShopProductsResource, type ShopRecipient, type ShopResource, type ShopSizeChart, type ShopSizeChartRow, type SignInResult, type Span, SpanRenderFormat, SpanType, type StatusDay, type StatusIncidentLine, type StreamFile, type Subscription, type SubscriptionResource, type SubscriptionState, type TelemetryBatch, type TelemetryBatchOptions, type TelemetryClock, type TelemetryOptions, type TelemetryResource, type TextMarkup, TimeoutBudget, type TokenStorage, type TokenStorageAdapterOptions, UnauthorizedStreamError, type UnknownNotificationUpdate, type UnreadCountUpdate, type Unsubscribe, type UpdateNotificationSettingsInput, type UpdatePostInput, type UpdatePrivacyInput, type UpdateProfileInput, type UpdateResultBase, type UploadOptions, type UploadedBannerDrawing, type UploadedFile, type UrlFile, type UrlFileOptions, type UserBase, type UserId, type UserListParams, type UserPostsParams, type UserRef, type UserSummary, type UsernameAvailability, UsernameUnavailableReason, type UsersResource, VIDEO_MIME_TYPES, type VerificationResource, type VerificationStatus, type VideoMimeType, type VideoProgressInput, ViewReason, ViewSource, type ViewTracker, type ViewTrackerInput, type ViewTrackerOptions, WallAccess, type WebSocketImplementationOptions, type WebSocketLike, type WebSocketOpenFailureClassifier, WebSocketTransport, type WebSocketTransportOptions, autoSpans, canonicalNotificationType, comment, createKeyValueStore, createMultiTokenStorage, createNotificationEventsClient, createRecordKeyValueStore, createShopFeature, createShopOrderAccessStorage, createTokenStorage, formatNotificationText, fromStream, fromUrl, isBuilder, isBuiltInOperationId, isEnumerableKeyValueStore, isItdApiError, isItdAuthError, isItdConflictError, isItdError, isItdFileError, isItdForbiddenError, isItdNotFoundError, isItdPhoneVerificationError, isItdRateLimitError, isItdServerError, isItdStateError, isItdValidationError, isKnownNotificationType, isMyProfile, mapPage, markup, normalizeNotification, operationBucket, operationMethod, operationRetrySafety, parseHtml, parseMarkdown, poll, post, renderSpans, report, resolveNotificationUrl, runEventMiddleware, scopedTokenStorage, statusDays, systemClock, toDate, utcStampToIso, withCodec, withNamespace };
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $ as OperationMethod, A as ReportTargetType, B as isBuiltInOperationId, C as ItdErrorCode, D as NotificationType, E as MessageAccess, F as ViewSource, G as DEFAULT_RATE_LIMIT_BUCKET, H as operationMethod, I as WallAccess, J as pickArray, K as createClientRuntime, L as ITD_CATALOG, M as SpanType, N as UsernameUnavailableReason, O as QrLocationPrecision, P as ViewReason, Q as pickString, R as OPERATIONS, S as InteractionType, T as LikesVisibility, U as operationRetrySafety, V as operationBucket, W as BUCKET_LIMITS, _ as CaptchaType, _t as systemClock, at as requestAbortError, b as FeedTab, c as normalizeNotification, ct as assertPluginRemovable, d as canonicalNotificationType, et as RetrySafety, f as isKnownNotificationType, ft as STATUS_SERVICE, g as CaptchaField, h as CaptchaChoice, ht as RateLimitPacing, it as createRequestAbortScope, j as ServiceState, k as ReportReason, lt as orderPluginDefinitions, m as AttachmentType, mt as LIBRARY_VERSION, n as formatNotificationText, o as passthroughOperation, p as AccessType, pt as resolveRateLimit, q as createApiError, s as voidOperation, st as RequestQueuePool, t as resolveNotificationUrl, ut as DEFAULT_BASE_URL, v as CommentSort, vt as installAsyncDisposeFallback, w as LastSeenUnit, x as IncidentKind, y as EventChannelStatus, z as defineBuiltInOperation } from "./shared/url-
|
|
2
|
-
import { A as isItdForbiddenError, C as ItdValidationError, D as isItdConflictError, E as isItdAuthError, F as isItdStateError, I as isItdValidationError, M as isItdPhoneVerificationError, N as isItdRateLimitError, O as isItdError, P as isItdServerError, S as ItdTimeoutError, T as isItdApiError, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, j as isItdNotFoundError, k as isItdFileError, l as ItdConfigError, m as ItdFileErrorReason, n as isRecord, o as ItdApiError, p as ItdFileError, s as ItdApiErrorKind, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-
|
|
3
|
-
import { A as isBuilder, B as createFeatureHost, C as LegalDocumentBlockType, D as IMAGE_MIME_TYPES, E as AUDIO_MIME_TYPES, F as NotificationsResource, I as BaseResource, L as PaginationMode, M as toDate, N as utcStampToIso, O as VIDEO_MIME_TYPES, P as AccountLifecycleResource, R as Paginator, S as parseMarkdown, T as ALLOWED_MIME_TYPES, V as ExtensibleOperationCatalog, _ as post, a as createShopOrderAccessStorage, b as markup, c as ShopOrderStatus, d as isMyProfile, f as BannerDrawingTool, g as report, h as createResources, i as MemoryShopOrderAccessStorage, j as createStatusFeature, k as comment, l as ShopProductCategory, m as fromUrl, n as renderSpans, o as statusDays, p as fromStream, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as poll, w as LegalDocumentScope, x as parseHtml, y as autoSpans, z as mapPage } from "./shared/render-
|
|
4
|
-
import { _ as Emitter, a as WebSocketTransport, c as NotificationEventsTransport, d as NotificationUpdateOrigin, f as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as resolveNotificationEventsOptions, m as EventChannel, n as EventRouter, o as EVENT_OPERATIONS, p as createParser, r as NotificationEventsClient, s as NotificationEvents, t as EventComposer, u as setNotificationEventsConnectGuard, v as reportListenerError } from "./shared/events-
|
|
5
|
-
import { D as fallbackLogger, E as LogLevel, c as REFRESH_COOKIE, f as encodePathSegment, h as joinUrl, k as resolveLogger, l as REFRESH_COOKIE_PATH, s as CookieJar, u as isSerializedCookieEntry, v as RuntimeMode, y as createDeviceId } from "./shared/redact-
|
|
6
|
-
import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-
|
|
7
|
-
import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-
|
|
8
|
-
import { c as FileTransferMode } from "./shared/options-
|
|
9
|
-
import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-
|
|
1
|
+
import { $ as OperationMethod, A as ReportTargetType, B as isBuiltInOperationId, C as ItdErrorCode, D as NotificationType, E as MessageAccess, F as ViewSource, G as DEFAULT_RATE_LIMIT_BUCKET, H as operationMethod, I as WallAccess, J as pickArray, K as createClientRuntime, L as ITD_CATALOG, M as SpanType, N as UsernameUnavailableReason, O as QrLocationPrecision, P as ViewReason, Q as pickString, R as OPERATIONS, S as InteractionType, T as LikesVisibility, U as operationRetrySafety, V as operationBucket, W as BUCKET_LIMITS, _ as CaptchaType, _t as systemClock, at as requestAbortError, b as FeedTab, c as normalizeNotification, ct as assertPluginRemovable, d as canonicalNotificationType, et as RetrySafety, f as isKnownNotificationType, ft as STATUS_SERVICE, g as CaptchaField, h as CaptchaChoice, ht as RateLimitPacing, it as createRequestAbortScope, j as ServiceState, k as ReportReason, lt as orderPluginDefinitions, m as AttachmentType, mt as LIBRARY_VERSION, n as formatNotificationText, o as passthroughOperation, p as AccessType, pt as resolveRateLimit, q as createApiError, s as voidOperation, st as RequestQueuePool, t as resolveNotificationUrl, ut as DEFAULT_BASE_URL, v as CommentSort, vt as installAsyncDisposeFallback, w as LastSeenUnit, x as IncidentKind, y as EventChannelStatus, z as defineBuiltInOperation } from "./shared/url-aw_NZdVY.js";
|
|
2
|
+
import { A as isItdForbiddenError, C as ItdValidationError, D as isItdConflictError, E as isItdAuthError, F as isItdStateError, I as isItdValidationError, M as isItdPhoneVerificationError, N as isItdRateLimitError, O as isItdError, P as isItdServerError, S as ItdTimeoutError, T as isItdApiError, _ as ItdNotFoundError, a as ItdAbortError, b as ItdServerError, c as ItdAuthError, d as ItdError, f as ItdErrorKind, g as ItdNetworkError, h as ItdForbiddenError, i as requireOptionalBoolean, j as isItdNotFoundError, k as isItdFileError, l as ItdConfigError, m as ItdFileErrorReason, n as isRecord, o as ItdApiError, p as ItdFileError, s as ItdApiErrorKind, t as isObjectLike, u as ItdConflictError, v as ItdPhoneVerificationError, w as TimeoutBudget, x as ItdStateError, y as ItdRateLimitError } from "./shared/validate-BQzL_oJ4.js";
|
|
3
|
+
import { A as isBuilder, B as createFeatureHost, C as LegalDocumentBlockType, D as IMAGE_MIME_TYPES, E as AUDIO_MIME_TYPES, F as NotificationsResource, I as BaseResource, L as PaginationMode, M as toDate, N as utcStampToIso, O as VIDEO_MIME_TYPES, P as AccountLifecycleResource, R as Paginator, S as parseMarkdown, T as ALLOWED_MIME_TYPES, V as ExtensibleOperationCatalog, _ as post, a as createShopOrderAccessStorage, b as markup, c as ShopOrderStatus, d as isMyProfile, f as BannerDrawingTool, g as report, h as createResources, i as MemoryShopOrderAccessStorage, j as createStatusFeature, k as comment, l as ShopProductCategory, m as fromUrl, n as renderSpans, o as statusDays, p as fromStream, r as createShopFeature, s as ShopConsentKind, t as SpanRenderFormat, u as ShopProductStatus, v as poll, w as LegalDocumentScope, x as parseHtml, y as autoSpans, z as mapPage } from "./shared/render-DJKZqv9O.js";
|
|
4
|
+
import { _ as Emitter, a as WebSocketTransport, c as NotificationEventsTransport, d as NotificationUpdateOrigin, f as NotificationUpdateType, g as runEventMiddleware, h as UnauthorizedStreamError, i as createNotificationEventsClient, l as resolveNotificationEventsOptions, m as EventChannel, n as EventRouter, o as EVENT_OPERATIONS, p as createParser, r as NotificationEventsClient, s as NotificationEvents, t as EventComposer, u as setNotificationEventsConnectGuard, v as reportListenerError } from "./shared/events-DRbBDq9p.js";
|
|
5
|
+
import { D as fallbackLogger, E as LogLevel, c as REFRESH_COOKIE, f as encodePathSegment, h as joinUrl, k as resolveLogger, l as REFRESH_COOKIE_PATH, s as CookieJar, u as isSerializedCookieEntry, v as RuntimeMode, y as createDeviceId } from "./shared/redact-BCmucE19.js";
|
|
6
|
+
import { n as copySession, r as createTokenStorage, t as MemoryTokenStorage } from "./shared/storage-Bc4lWtSj.js";
|
|
7
|
+
import { a as scopedTokenStorage, i as isRestorableSession, n as controlledTokenStorage, r as createMultiTokenStorage, t as MemoryMultiTokenStorage } from "./shared/multi-storage-DffEAzdc.js";
|
|
8
|
+
import { c as FileTransferMode } from "./shared/options-Ddyc5qec.js";
|
|
9
|
+
import { a as isEnumerableKeyValueStore, i as createRecordKeyValueStore, o as withCodec, r as createKeyValueStore, s as withNamespace, t as MemoryKeyValueStore } from "./shared/key-value-store-BwXlaoD4.js";
|
|
10
10
|
// src/notifications-api.ts
|
|
11
11
|
var ClientNotifications = class extends NotificationsResource {
|
|
12
12
|
#createEvents;
|
|
@@ -37,16 +37,10 @@ const ACCOUNT_CHANGES_CANCEL_PENDING = voidOperation("account.changes.cancelPend
|
|
|
37
37
|
// src/resources/account/request.ts
|
|
38
38
|
/** Выполняет запрос настройки способов входа с текущей авторизацией. */
|
|
39
39
|
function requestAccount(http, operation, path, body, options) {
|
|
40
|
-
const reverse = path.startsWith("/phone/reverse/");
|
|
41
40
|
return http.execute(operation, {
|
|
42
41
|
...options,
|
|
43
42
|
path: `/api/v1/auth${path}`,
|
|
44
|
-
body
|
|
45
|
-
headers: {
|
|
46
|
-
...options.headers,
|
|
47
|
-
...operation.method === "POST" ? { "X-ITD-Phone-Reverse": "1" } : {},
|
|
48
|
-
...reverse ? { "X-ITD-Reverse-Attempts": "1" } : {}
|
|
49
|
-
}
|
|
43
|
+
body
|
|
50
44
|
});
|
|
51
45
|
}
|
|
52
46
|
// src/resources/account/changes.ts
|
|
@@ -271,6 +265,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
271
265
|
*
|
|
272
266
|
* Передайте номер в международном формате с `+`. Если токен капчи не передан
|
|
273
267
|
* в вызов, SDK использует настроенный источник капчи.
|
|
268
|
+
* Для исходящего звонка передайте `method: PhoneVerificationMethod.Reverse`.
|
|
274
269
|
*
|
|
275
270
|
* @returns параметры доставки и `flowToken` для {@link verifyAttach}
|
|
276
271
|
*
|
|
@@ -286,7 +281,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
286
281
|
/**
|
|
287
282
|
* Запрашивает подтверждение нового номера для смены.
|
|
288
283
|
*
|
|
289
|
-
* Формат
|
|
284
|
+
* Формат номера, источник капчи и выбор способа подтверждения такие же, как у {@link attach}.
|
|
290
285
|
*
|
|
291
286
|
* @returns параметры доставки и `flowToken` для {@link verifyChange}
|
|
292
287
|
*/
|
|
@@ -299,7 +294,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
299
294
|
* Передайте номер и `flowToken` из {@link attach}.
|
|
300
295
|
*/
|
|
301
296
|
verifyAttach(input, options = {}) {
|
|
302
|
-
return
|
|
297
|
+
return this.#request(ACCOUNT_VERIFY_ATTACH, "/verify-otp", input, options);
|
|
303
298
|
}
|
|
304
299
|
/**
|
|
305
300
|
* Подтверждает код нового номера, запрошенный через {@link startChange}.
|
|
@@ -307,7 +302,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
307
302
|
* @returns `changeToken` и способы завершить смену через `itd.account.changes`
|
|
308
303
|
*/
|
|
309
304
|
verifyChange(input, options = {}) {
|
|
310
|
-
return
|
|
305
|
+
return this.#request(ACCOUNT_VERIFY_CHANGE, "/verify-otp", input, options);
|
|
311
306
|
}
|
|
312
307
|
/**
|
|
313
308
|
* Повторно запрашивает код для того же номера. Передайте `flowToken` из первого запроса.
|
|
@@ -315,7 +310,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
315
310
|
* @returns актуальные канал, длину кода и паузу до повтора в секундах
|
|
316
311
|
*/
|
|
317
312
|
resendOtp(input, options = {}) {
|
|
318
|
-
return
|
|
313
|
+
return this.#request(ACCOUNT_PHONE_RESEND_OTP, "/resend-otp", input, options);
|
|
319
314
|
}
|
|
320
315
|
/** Синхронизирует привязанный номер с профилем. */
|
|
321
316
|
sync(options = {}) {
|
|
@@ -323,7 +318,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
323
318
|
}
|
|
324
319
|
/** Возвращает доступность исходящего звонка для привязки или смены номера. */
|
|
325
320
|
reverseOptions(input, options = {}) {
|
|
326
|
-
return
|
|
321
|
+
return this.#request(ACCOUNT_PHONE_REVERSE_OPTIONS, "/phone/reverse/options", input, options);
|
|
327
322
|
}
|
|
328
323
|
/**
|
|
329
324
|
* Подготавливает номер, на который должен позвонить пользователь.
|
|
@@ -331,7 +326,7 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
331
326
|
* @returns состояние попытки, номер для звонка и срок действия в секундах
|
|
332
327
|
*/
|
|
333
328
|
reverseStart(input, options = {}) {
|
|
334
|
-
return
|
|
329
|
+
return this.#request(ACCOUNT_PHONE_REVERSE_START, "/phone/reverse/start", input, options);
|
|
335
330
|
}
|
|
336
331
|
/**
|
|
337
332
|
* Читает состояние исходящего звонка.
|
|
@@ -340,28 +335,46 @@ var AccountPhoneResource = class extends BaseResource {
|
|
|
340
335
|
* или {@link reverseChangeComplete} при смене номера.
|
|
341
336
|
*/
|
|
342
337
|
reverseStatus(input, options = {}) {
|
|
343
|
-
return
|
|
338
|
+
return this.#request(ACCOUNT_PHONE_REVERSE_STATUS, "/phone/reverse/status", input, options);
|
|
344
339
|
}
|
|
345
340
|
/** Завершает привязку номера после исходящего звонка. */
|
|
346
341
|
reverseAttachComplete(input, options = {}) {
|
|
347
|
-
return
|
|
342
|
+
return this.#request(ACCOUNT_PHONE_REVERSE_ATTACH_COMPLETE, "/phone/reverse/complete", input, options);
|
|
348
343
|
}
|
|
349
344
|
/** Подтверждает новый номер звонком и возвращает варианты завершения смены. */
|
|
350
345
|
reverseChangeComplete(input, options = {}) {
|
|
351
|
-
return
|
|
346
|
+
return this.#request(ACCOUNT_PHONE_REVERSE_CHANGE_COMPLETE, "/phone/reverse/complete", input, options);
|
|
352
347
|
}
|
|
353
348
|
/** Запускает проверку номера, если за время получения капчи сессия не сменилась. */
|
|
354
|
-
async #start(operation, path, { phone, captcha }, options) {
|
|
349
|
+
async #start(operation, path, { phone, captcha, method }, options) {
|
|
355
350
|
const revision = this.#auth.revision();
|
|
356
351
|
const proof = await this.#auth.captchaToken(captcha);
|
|
357
352
|
if (this.#auth.revision() !== revision) throw new ItdStateError("Сессия сменилась во время получения капчи. Начните проверку номера заново.");
|
|
358
|
-
return
|
|
353
|
+
return this.#request(operation, path, {
|
|
359
354
|
phone,
|
|
360
355
|
captcha: proof ? {
|
|
361
356
|
provider: proof.type,
|
|
362
357
|
token: proof.token
|
|
363
358
|
} : void 0
|
|
364
|
-
},
|
|
359
|
+
}, {
|
|
360
|
+
...options,
|
|
361
|
+
headers: {
|
|
362
|
+
...options.headers,
|
|
363
|
+
...method === PhoneVerificationMethod.Reverse ? { "X-ITD-Phone-Method": PhoneVerificationMethod.Reverse } : {}
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
/** Объявляет поддержку исходящего звонка и срока действия проверки номера. */
|
|
368
|
+
#request(operation, path, body, options) {
|
|
369
|
+
return requestAccount(this.http, operation, path, body, {
|
|
370
|
+
...options,
|
|
371
|
+
headers: {
|
|
372
|
+
...options.headers,
|
|
373
|
+
"X-ITD-Phone-Reverse": "1",
|
|
374
|
+
"X-ITD-Flow-Expiry": "1",
|
|
375
|
+
...path.startsWith("/phone/reverse/") ? { "X-ITD-Reverse-Attempts": "1" } : {}
|
|
376
|
+
}
|
|
377
|
+
});
|
|
365
378
|
}
|
|
366
379
|
};
|
|
367
380
|
// src/resources/account.ts
|
|
@@ -1596,6 +1609,10 @@ function readAccessToken(body) {
|
|
|
1596
1609
|
const AUTH_PHONE_CONFIG = passthroughOperation("auth.phone.config");
|
|
1597
1610
|
const AUTH_PHONE_CONSENT = passthroughOperation("auth.phone.consent");
|
|
1598
1611
|
const AUTH_PHONE_START = defineBuiltInOperation("auth.phone.start", readPhoneStart);
|
|
1612
|
+
const AUTH_PHONE_RESUME = defineBuiltInOperation("auth.phone.resume", (body) => ({
|
|
1613
|
+
...readPhoneDelivery(body),
|
|
1614
|
+
expiresIn: body.expiresIn
|
|
1615
|
+
}));
|
|
1599
1616
|
const AUTH_PHONE_VERIFY = defineBuiltInOperation("auth.phone.verify", readLoginResult);
|
|
1600
1617
|
const AUTH_PHONE_PASSWORD = defineBuiltInOperation("auth.phone.password", readAccessToken);
|
|
1601
1618
|
const AUTH_PHONE_RESET_PASSWORD = defineBuiltInOperation("auth.phone.resetPassword", readAccessToken);
|
|
@@ -1612,7 +1629,7 @@ var PhoneAuthResource = class extends BaseResource {
|
|
|
1612
1629
|
super(http);
|
|
1613
1630
|
this.#auth = deps.auth;
|
|
1614
1631
|
}
|
|
1615
|
-
/** Разрешённые
|
|
1632
|
+
/** Разрешённые регионы, примеры номеров и доступные способы подтверждения. */
|
|
1616
1633
|
config(options = {}) {
|
|
1617
1634
|
return this.#request(AUTH_PHONE_CONFIG, "/phone/config", void 0, options);
|
|
1618
1635
|
}
|
|
@@ -1653,6 +1670,29 @@ var PhoneAuthResource = class extends BaseResource {
|
|
|
1653
1670
|
});
|
|
1654
1671
|
}
|
|
1655
1672
|
/**
|
|
1673
|
+
* Возобновляет незавершённую проверку номера.
|
|
1674
|
+
*
|
|
1675
|
+
* Передайте номер и `flowToken` из {@link start}. Для следующих шагов используйте тот же
|
|
1676
|
+
* токен и параметры доставки из ответа.
|
|
1677
|
+
*/
|
|
1678
|
+
resume({ phone, flowToken }, options = {}) {
|
|
1679
|
+
return this.http.execute(AUTH_PHONE_RESUME, {
|
|
1680
|
+
...options,
|
|
1681
|
+
path: "/api/v1/auth/phone/resume",
|
|
1682
|
+
body: {
|
|
1683
|
+
phone,
|
|
1684
|
+
flowToken
|
|
1685
|
+
},
|
|
1686
|
+
redirect: "error",
|
|
1687
|
+
skipAuth: true,
|
|
1688
|
+
skipAuthRefresh: true,
|
|
1689
|
+
headers: {
|
|
1690
|
+
...options.headers,
|
|
1691
|
+
"X-ITD-Phone-Resume": "1"
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
/**
|
|
1656
1696
|
* Подтверждает код без email и пароля.
|
|
1657
1697
|
*
|
|
1658
1698
|
* При accessToken сохраняет новую сессию; при step: 'password' возвращает секрет
|
|
@@ -1723,7 +1763,7 @@ var PhoneAuthResource = class extends BaseResource {
|
|
|
1723
1763
|
}
|
|
1724
1764
|
/**
|
|
1725
1765
|
* Выполняет телефонный запрос без Bearer/refresh через общий pipeline.
|
|
1726
|
-
* X-ITD-Phone-Reverse объявляет поддержку
|
|
1766
|
+
* X-ITD-Phone-Reverse объявляет поддержку исходящего звонка, в том числе при запросе кода.
|
|
1727
1767
|
*/
|
|
1728
1768
|
#request(operation, path, body, options, cookies) {
|
|
1729
1769
|
return this.http.execute(operation, {
|
|
@@ -1735,7 +1775,10 @@ var PhoneAuthResource = class extends BaseResource {
|
|
|
1735
1775
|
skipAuthRefresh: true,
|
|
1736
1776
|
headers: {
|
|
1737
1777
|
...options.headers,
|
|
1738
|
-
...operation.method === "POST" ? {
|
|
1778
|
+
...operation.method === "POST" ? {
|
|
1779
|
+
"X-ITD-Phone-Reverse": "1",
|
|
1780
|
+
"X-ITD-Flow-Expiry": "1"
|
|
1781
|
+
} : {},
|
|
1739
1782
|
...path.startsWith("/phone/reverse/") ? { "X-ITD-Reverse-Attempts": "1" } : {}
|
|
1740
1783
|
}
|
|
1741
1784
|
});
|