@mitumba/sdk 5.24.0 → 5.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +141 -5
- package/dist/index.d.ts +141 -5
- package/dist/index.js +365 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +365 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2641,16 +2641,135 @@ interface VaziFeedResponse {
|
|
|
2641
2641
|
offset: number;
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
-
|
|
2644
|
+
/** Known notification types. Other values may appear; treat them as `system`. */
|
|
2645
|
+
type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system' | 'order_update' | 'dispute' | 'new_listing' | 'announcement';
|
|
2646
|
+
/** Where a notification or one of its actions leads: an app route, or an https URL. */
|
|
2647
|
+
type NotificationLink = {
|
|
2648
|
+
route: string;
|
|
2649
|
+
} | {
|
|
2650
|
+
url: string;
|
|
2651
|
+
};
|
|
2652
|
+
interface NotificationAction {
|
|
2653
|
+
label: string;
|
|
2654
|
+
link: NotificationLink;
|
|
2655
|
+
}
|
|
2656
|
+
/** Notification category, as shown in notification settings. */
|
|
2657
|
+
type NotificationCategory = 'account' | 'orders' | 'payments' | 'messages' | 'store' | 'deals' | 'announcements' | 'operations';
|
|
2645
2658
|
interface Notification {
|
|
2646
2659
|
id: string;
|
|
2647
2660
|
user_id: string;
|
|
2648
2661
|
type: NotificationType;
|
|
2649
2662
|
title: string;
|
|
2650
2663
|
body: string;
|
|
2651
|
-
|
|
2664
|
+
/** JSON text. When present on newer notifications: `{ link, actions }`. */
|
|
2665
|
+
data?: string | null;
|
|
2666
|
+
/** @deprecated Never sent. Use `data`, or `link` and `actions`. */
|
|
2667
|
+
metadata?: string | null;
|
|
2652
2668
|
read_at: string | null;
|
|
2653
2669
|
created_at: string;
|
|
2670
|
+
/** Present on newer notifications. */
|
|
2671
|
+
category?: NotificationCategory;
|
|
2672
|
+
/** The catalogue event, e.g. `order.shipped`. */
|
|
2673
|
+
event_type?: string;
|
|
2674
|
+
/** At most two. */
|
|
2675
|
+
actions?: NotificationAction[];
|
|
2676
|
+
link?: NotificationLink | null;
|
|
2677
|
+
/** How many events were collapsed into this one notification. */
|
|
2678
|
+
count?: number;
|
|
2679
|
+
}
|
|
2680
|
+
/** A pop-up (flash) notification's details, on stream items that carry one. */
|
|
2681
|
+
interface NotificationFlash {
|
|
2682
|
+
kind: 'security' | 'approval' | 'account_action' | 'service_status' | 'announcement';
|
|
2683
|
+
surfaces: Array<'web' | 'mobile' | 'console'>;
|
|
2684
|
+
requiresAnswer: boolean;
|
|
2685
|
+
answers: Array<{
|
|
2686
|
+
id: string;
|
|
2687
|
+
label: string;
|
|
2688
|
+
}>;
|
|
2689
|
+
expiresAt: string;
|
|
2690
|
+
state: 'pending' | 'dismissed' | 'answered' | 'expired';
|
|
2691
|
+
answer: string | null;
|
|
2692
|
+
}
|
|
2693
|
+
/** A notification as the live stream delivers it. */
|
|
2694
|
+
interface NotificationStreamItem {
|
|
2695
|
+
id: string;
|
|
2696
|
+
type: string;
|
|
2697
|
+
category: NotificationCategory;
|
|
2698
|
+
title: string;
|
|
2699
|
+
body: string;
|
|
2700
|
+
image: string | null;
|
|
2701
|
+
actions: NotificationAction[];
|
|
2702
|
+
link: NotificationLink | null;
|
|
2703
|
+
count: number;
|
|
2704
|
+
createdAt: string;
|
|
2705
|
+
readAt: string | null;
|
|
2706
|
+
flash: NotificationFlash | null;
|
|
2707
|
+
}
|
|
2708
|
+
type NotificationStreamFrame = {
|
|
2709
|
+
type: 'hello';
|
|
2710
|
+
unread: number;
|
|
2711
|
+
flash: NotificationStreamItem | null;
|
|
2712
|
+
} | {
|
|
2713
|
+
type: 'item';
|
|
2714
|
+
item: NotificationStreamItem;
|
|
2715
|
+
unread: number;
|
|
2716
|
+
} | {
|
|
2717
|
+
type: 'read';
|
|
2718
|
+
ids: string[] | 'all';
|
|
2719
|
+
unread: number;
|
|
2720
|
+
} | {
|
|
2721
|
+
type: 'flash';
|
|
2722
|
+
flash: NotificationStreamItem;
|
|
2723
|
+
} | {
|
|
2724
|
+
type: 'flash_resolved';
|
|
2725
|
+
id: string;
|
|
2726
|
+
unread: number;
|
|
2727
|
+
};
|
|
2728
|
+
type NotificationStreamState = 'closed' | 'connecting' | 'open' | 'reconnecting' | 'failed';
|
|
2729
|
+
interface NotificationStreamTicket {
|
|
2730
|
+
ticket: string;
|
|
2731
|
+
expires_at: string;
|
|
2732
|
+
websocket_url: string;
|
|
2733
|
+
/** The server closes the socket then (code 4001); the stream reconnects with a fresh ticket. */
|
|
2734
|
+
socket_closes_at: string;
|
|
2735
|
+
}
|
|
2736
|
+
interface NotificationStreamOptions {
|
|
2737
|
+
/** Which surface this client is, so pop-ups meant for it arrive. Defaults to `web`. */
|
|
2738
|
+
surface?: 'web' | 'mobile' | 'console';
|
|
2739
|
+
/** Cancels ticket requests. */
|
|
2740
|
+
signal?: AbortSignal;
|
|
2741
|
+
/** Initial reconnect delay in milliseconds. Default 500. */
|
|
2742
|
+
reconnectBaseDelayMs?: number;
|
|
2743
|
+
/** Maximum reconnect delay in milliseconds. Default 30 000. */
|
|
2744
|
+
reconnectMaxDelayMs?: number;
|
|
2745
|
+
/** Injected randomness for deterministic tests. */
|
|
2746
|
+
random?: () => number;
|
|
2747
|
+
}
|
|
2748
|
+
/** A managed live notification connection. */
|
|
2749
|
+
interface NotificationStream {
|
|
2750
|
+
readonly state: NotificationStreamState;
|
|
2751
|
+
/** The unread count from the latest frame, or null before the first. */
|
|
2752
|
+
readonly unread: number | null;
|
|
2753
|
+
/** Connect. Resolves on the first `hello`; rejects when the stream cannot be used (signed out, revoked). Repeated calls are safe. */
|
|
2754
|
+
start(): Promise<void>;
|
|
2755
|
+
/** Permanently close and release the socket, timers and listeners. */
|
|
2756
|
+
close(): void;
|
|
2757
|
+
onFrame(listener: (frame: NotificationStreamFrame) => void): () => void;
|
|
2758
|
+
onStateChange(listener: (state: NotificationStreamState) => void): () => void;
|
|
2759
|
+
}
|
|
2760
|
+
/** A bell's unread count kept current: the live stream when it is open, polling otherwise. */
|
|
2761
|
+
interface LiveUnread {
|
|
2762
|
+
readonly count: number;
|
|
2763
|
+
/** Calls the listener with the current count at once, then on every change. The first subscriber starts it; the last one to leave stops it. */
|
|
2764
|
+
subscribe(listener: (count: number) => void): () => void;
|
|
2765
|
+
/** Re-read the count, e.g. right after marking notifications read. */
|
|
2766
|
+
refresh(): Promise<void>;
|
|
2767
|
+
}
|
|
2768
|
+
interface LiveUnreadOptions {
|
|
2769
|
+
/** Which surface this client is, so pop-ups meant for it arrive. Default `web`. */
|
|
2770
|
+
surface?: 'web' | 'mobile' | 'console';
|
|
2771
|
+
/** Calls back when the page regains focus or becomes visible. Default: window focus and document visibility in a browser; nothing elsewhere. */
|
|
2772
|
+
onResume?: (listener: () => void) => () => void;
|
|
2654
2773
|
}
|
|
2655
2774
|
|
|
2656
2775
|
type SubscriptionTier = 'free' | 'pro' | 'premium';
|
|
@@ -4165,7 +4284,7 @@ declare class NotificationsModule {
|
|
|
4165
4284
|
private readonly client;
|
|
4166
4285
|
constructor(client: APIClient);
|
|
4167
4286
|
/**
|
|
4168
|
-
* List paginated notifications with unread count.
|
|
4287
|
+
* List paginated notifications (20 per page, newest first) with the unread count.
|
|
4169
4288
|
*/
|
|
4170
4289
|
list(page?: number, options?: RequestOptions): Promise<{
|
|
4171
4290
|
data: Notification[];
|
|
@@ -4173,11 +4292,28 @@ declare class NotificationsModule {
|
|
|
4173
4292
|
page: number;
|
|
4174
4293
|
}>;
|
|
4175
4294
|
/**
|
|
4176
|
-
*
|
|
4295
|
+
* The unread count alone: for a badge, on focus or on an interval when no stream is open.
|
|
4296
|
+
*/
|
|
4297
|
+
unread(options?: RequestOptions): Promise<{
|
|
4298
|
+
unread_count: number;
|
|
4299
|
+
}>;
|
|
4300
|
+
/**
|
|
4301
|
+
* Mark notifications as read (at most 90 ids per call). If ids are omitted, marks all as read.
|
|
4177
4302
|
*/
|
|
4178
4303
|
markRead(ids?: string[], options?: RequestOptions): Promise<{
|
|
4179
4304
|
ok: true;
|
|
4180
4305
|
}>;
|
|
4306
|
+
/** Create an inert live notification stream. Register listeners before `start()`. */
|
|
4307
|
+
stream(options?: NotificationStreamOptions): NotificationStream;
|
|
4308
|
+
/** Create and start a live notification stream. Resolves once connected. */
|
|
4309
|
+
connectStream(options?: NotificationStreamOptions): Promise<NotificationStream>;
|
|
4310
|
+
/**
|
|
4311
|
+
* A bell's unread count, kept current without a reload. Reads the count once, then follows the
|
|
4312
|
+
* live stream; while the stream is not open (connecting, refused, failed) it polls on resume
|
|
4313
|
+
* and every minute, and asks for a new stream at most every ten minutes after a refusal.
|
|
4314
|
+
* Create one per page and share it between bells.
|
|
4315
|
+
*/
|
|
4316
|
+
liveUnread(options?: LiveUnreadOptions): LiveUnread;
|
|
4181
4317
|
}
|
|
4182
4318
|
|
|
4183
4319
|
declare class StoresModule {
|
|
@@ -5405,4 +5541,4 @@ declare class MitumbaClient {
|
|
|
5405
5541
|
isAuthenticated(): Promise<boolean>;
|
|
5406
5542
|
}
|
|
5407
5543
|
|
|
5408
|
-
export { APIClient, APIError, type APIErrorResponse, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminReport, type AdminRolePreset, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type ShareUrlOptions, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreResolveThreadInput, type StoreReviewsPage, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, storeShareUrl };
|
|
5544
|
+
export { APIClient, APIError, type APIErrorResponse, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminReport, type AdminRolePreset, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationAction, type NotificationCategory, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type ShareUrlOptions, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreResolveThreadInput, type StoreReviewsPage, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, storeShareUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -2641,16 +2641,135 @@ interface VaziFeedResponse {
|
|
|
2641
2641
|
offset: number;
|
|
2642
2642
|
}
|
|
2643
2643
|
|
|
2644
|
-
|
|
2644
|
+
/** Known notification types. Other values may appear; treat them as `system`. */
|
|
2645
|
+
type NotificationType = 'order' | 'message' | 'price_drop' | 'offer' | 'payout' | 'system' | 'order_update' | 'dispute' | 'new_listing' | 'announcement';
|
|
2646
|
+
/** Where a notification or one of its actions leads: an app route, or an https URL. */
|
|
2647
|
+
type NotificationLink = {
|
|
2648
|
+
route: string;
|
|
2649
|
+
} | {
|
|
2650
|
+
url: string;
|
|
2651
|
+
};
|
|
2652
|
+
interface NotificationAction {
|
|
2653
|
+
label: string;
|
|
2654
|
+
link: NotificationLink;
|
|
2655
|
+
}
|
|
2656
|
+
/** Notification category, as shown in notification settings. */
|
|
2657
|
+
type NotificationCategory = 'account' | 'orders' | 'payments' | 'messages' | 'store' | 'deals' | 'announcements' | 'operations';
|
|
2645
2658
|
interface Notification {
|
|
2646
2659
|
id: string;
|
|
2647
2660
|
user_id: string;
|
|
2648
2661
|
type: NotificationType;
|
|
2649
2662
|
title: string;
|
|
2650
2663
|
body: string;
|
|
2651
|
-
|
|
2664
|
+
/** JSON text. When present on newer notifications: `{ link, actions }`. */
|
|
2665
|
+
data?: string | null;
|
|
2666
|
+
/** @deprecated Never sent. Use `data`, or `link` and `actions`. */
|
|
2667
|
+
metadata?: string | null;
|
|
2652
2668
|
read_at: string | null;
|
|
2653
2669
|
created_at: string;
|
|
2670
|
+
/** Present on newer notifications. */
|
|
2671
|
+
category?: NotificationCategory;
|
|
2672
|
+
/** The catalogue event, e.g. `order.shipped`. */
|
|
2673
|
+
event_type?: string;
|
|
2674
|
+
/** At most two. */
|
|
2675
|
+
actions?: NotificationAction[];
|
|
2676
|
+
link?: NotificationLink | null;
|
|
2677
|
+
/** How many events were collapsed into this one notification. */
|
|
2678
|
+
count?: number;
|
|
2679
|
+
}
|
|
2680
|
+
/** A pop-up (flash) notification's details, on stream items that carry one. */
|
|
2681
|
+
interface NotificationFlash {
|
|
2682
|
+
kind: 'security' | 'approval' | 'account_action' | 'service_status' | 'announcement';
|
|
2683
|
+
surfaces: Array<'web' | 'mobile' | 'console'>;
|
|
2684
|
+
requiresAnswer: boolean;
|
|
2685
|
+
answers: Array<{
|
|
2686
|
+
id: string;
|
|
2687
|
+
label: string;
|
|
2688
|
+
}>;
|
|
2689
|
+
expiresAt: string;
|
|
2690
|
+
state: 'pending' | 'dismissed' | 'answered' | 'expired';
|
|
2691
|
+
answer: string | null;
|
|
2692
|
+
}
|
|
2693
|
+
/** A notification as the live stream delivers it. */
|
|
2694
|
+
interface NotificationStreamItem {
|
|
2695
|
+
id: string;
|
|
2696
|
+
type: string;
|
|
2697
|
+
category: NotificationCategory;
|
|
2698
|
+
title: string;
|
|
2699
|
+
body: string;
|
|
2700
|
+
image: string | null;
|
|
2701
|
+
actions: NotificationAction[];
|
|
2702
|
+
link: NotificationLink | null;
|
|
2703
|
+
count: number;
|
|
2704
|
+
createdAt: string;
|
|
2705
|
+
readAt: string | null;
|
|
2706
|
+
flash: NotificationFlash | null;
|
|
2707
|
+
}
|
|
2708
|
+
type NotificationStreamFrame = {
|
|
2709
|
+
type: 'hello';
|
|
2710
|
+
unread: number;
|
|
2711
|
+
flash: NotificationStreamItem | null;
|
|
2712
|
+
} | {
|
|
2713
|
+
type: 'item';
|
|
2714
|
+
item: NotificationStreamItem;
|
|
2715
|
+
unread: number;
|
|
2716
|
+
} | {
|
|
2717
|
+
type: 'read';
|
|
2718
|
+
ids: string[] | 'all';
|
|
2719
|
+
unread: number;
|
|
2720
|
+
} | {
|
|
2721
|
+
type: 'flash';
|
|
2722
|
+
flash: NotificationStreamItem;
|
|
2723
|
+
} | {
|
|
2724
|
+
type: 'flash_resolved';
|
|
2725
|
+
id: string;
|
|
2726
|
+
unread: number;
|
|
2727
|
+
};
|
|
2728
|
+
type NotificationStreamState = 'closed' | 'connecting' | 'open' | 'reconnecting' | 'failed';
|
|
2729
|
+
interface NotificationStreamTicket {
|
|
2730
|
+
ticket: string;
|
|
2731
|
+
expires_at: string;
|
|
2732
|
+
websocket_url: string;
|
|
2733
|
+
/** The server closes the socket then (code 4001); the stream reconnects with a fresh ticket. */
|
|
2734
|
+
socket_closes_at: string;
|
|
2735
|
+
}
|
|
2736
|
+
interface NotificationStreamOptions {
|
|
2737
|
+
/** Which surface this client is, so pop-ups meant for it arrive. Defaults to `web`. */
|
|
2738
|
+
surface?: 'web' | 'mobile' | 'console';
|
|
2739
|
+
/** Cancels ticket requests. */
|
|
2740
|
+
signal?: AbortSignal;
|
|
2741
|
+
/** Initial reconnect delay in milliseconds. Default 500. */
|
|
2742
|
+
reconnectBaseDelayMs?: number;
|
|
2743
|
+
/** Maximum reconnect delay in milliseconds. Default 30 000. */
|
|
2744
|
+
reconnectMaxDelayMs?: number;
|
|
2745
|
+
/** Injected randomness for deterministic tests. */
|
|
2746
|
+
random?: () => number;
|
|
2747
|
+
}
|
|
2748
|
+
/** A managed live notification connection. */
|
|
2749
|
+
interface NotificationStream {
|
|
2750
|
+
readonly state: NotificationStreamState;
|
|
2751
|
+
/** The unread count from the latest frame, or null before the first. */
|
|
2752
|
+
readonly unread: number | null;
|
|
2753
|
+
/** Connect. Resolves on the first `hello`; rejects when the stream cannot be used (signed out, revoked). Repeated calls are safe. */
|
|
2754
|
+
start(): Promise<void>;
|
|
2755
|
+
/** Permanently close and release the socket, timers and listeners. */
|
|
2756
|
+
close(): void;
|
|
2757
|
+
onFrame(listener: (frame: NotificationStreamFrame) => void): () => void;
|
|
2758
|
+
onStateChange(listener: (state: NotificationStreamState) => void): () => void;
|
|
2759
|
+
}
|
|
2760
|
+
/** A bell's unread count kept current: the live stream when it is open, polling otherwise. */
|
|
2761
|
+
interface LiveUnread {
|
|
2762
|
+
readonly count: number;
|
|
2763
|
+
/** Calls the listener with the current count at once, then on every change. The first subscriber starts it; the last one to leave stops it. */
|
|
2764
|
+
subscribe(listener: (count: number) => void): () => void;
|
|
2765
|
+
/** Re-read the count, e.g. right after marking notifications read. */
|
|
2766
|
+
refresh(): Promise<void>;
|
|
2767
|
+
}
|
|
2768
|
+
interface LiveUnreadOptions {
|
|
2769
|
+
/** Which surface this client is, so pop-ups meant for it arrive. Default `web`. */
|
|
2770
|
+
surface?: 'web' | 'mobile' | 'console';
|
|
2771
|
+
/** Calls back when the page regains focus or becomes visible. Default: window focus and document visibility in a browser; nothing elsewhere. */
|
|
2772
|
+
onResume?: (listener: () => void) => () => void;
|
|
2654
2773
|
}
|
|
2655
2774
|
|
|
2656
2775
|
type SubscriptionTier = 'free' | 'pro' | 'premium';
|
|
@@ -4165,7 +4284,7 @@ declare class NotificationsModule {
|
|
|
4165
4284
|
private readonly client;
|
|
4166
4285
|
constructor(client: APIClient);
|
|
4167
4286
|
/**
|
|
4168
|
-
* List paginated notifications with unread count.
|
|
4287
|
+
* List paginated notifications (20 per page, newest first) with the unread count.
|
|
4169
4288
|
*/
|
|
4170
4289
|
list(page?: number, options?: RequestOptions): Promise<{
|
|
4171
4290
|
data: Notification[];
|
|
@@ -4173,11 +4292,28 @@ declare class NotificationsModule {
|
|
|
4173
4292
|
page: number;
|
|
4174
4293
|
}>;
|
|
4175
4294
|
/**
|
|
4176
|
-
*
|
|
4295
|
+
* The unread count alone: for a badge, on focus or on an interval when no stream is open.
|
|
4296
|
+
*/
|
|
4297
|
+
unread(options?: RequestOptions): Promise<{
|
|
4298
|
+
unread_count: number;
|
|
4299
|
+
}>;
|
|
4300
|
+
/**
|
|
4301
|
+
* Mark notifications as read (at most 90 ids per call). If ids are omitted, marks all as read.
|
|
4177
4302
|
*/
|
|
4178
4303
|
markRead(ids?: string[], options?: RequestOptions): Promise<{
|
|
4179
4304
|
ok: true;
|
|
4180
4305
|
}>;
|
|
4306
|
+
/** Create an inert live notification stream. Register listeners before `start()`. */
|
|
4307
|
+
stream(options?: NotificationStreamOptions): NotificationStream;
|
|
4308
|
+
/** Create and start a live notification stream. Resolves once connected. */
|
|
4309
|
+
connectStream(options?: NotificationStreamOptions): Promise<NotificationStream>;
|
|
4310
|
+
/**
|
|
4311
|
+
* A bell's unread count, kept current without a reload. Reads the count once, then follows the
|
|
4312
|
+
* live stream; while the stream is not open (connecting, refused, failed) it polls on resume
|
|
4313
|
+
* and every minute, and asks for a new stream at most every ten minutes after a refusal.
|
|
4314
|
+
* Create one per page and share it between bells.
|
|
4315
|
+
*/
|
|
4316
|
+
liveUnread(options?: LiveUnreadOptions): LiveUnread;
|
|
4181
4317
|
}
|
|
4182
4318
|
|
|
4183
4319
|
declare class StoresModule {
|
|
@@ -5405,4 +5541,4 @@ declare class MitumbaClient {
|
|
|
5405
5541
|
isAuthenticated(): Promise<boolean>;
|
|
5406
5542
|
}
|
|
5407
5543
|
|
|
5408
|
-
export { APIClient, APIError, type APIErrorResponse, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminReport, type AdminRolePreset, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type ShareUrlOptions, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreResolveThreadInput, type StoreReviewsPage, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, storeShareUrl };
|
|
5544
|
+
export { APIClient, APIError, type APIErrorResponse, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type Address, type AdminAuditActor, type AdminAuditEntry, type AdminAuditQuery, type AdminAuthStrength, type AdminListingItem, type AdminMessageReport, type AdminMessageReportDetail, type AdminMessageReportList, type AdminMessageReportThreadMessage, AdminModule, type AdminOperator, type AdminOrderDetail, type AdminOrderListItem, type AdminPayoutItem, type AdminPermission, type AdminPermissionDescription, type AdminRecoveryEvent, type AdminRecoveryRequest, type AdminReport, type AdminRolePreset, type AdminStoreDetail, type AdminStoreListItem, type AdminUserDetail, type AdminUserListItem, type AdminVaziOutfit, type AdminVerificationItem, type AdminWholesalePendingStore, type ApiResponse, type AttachmentDownloadAuthorization, type AttachmentUploadAuthorization, type AttachmentUploadBody, type AttachmentUploadState, type AttachmentUploadStatus, type AuthCapabilities, AuthModule, type AuthTokens, type AuthenticationResponseJSON, BALE_ORDER_STATUSES, type Bale, type BaleDetail, type BaleFeedItem, type BaleFulfillment, type BaleGrade, type BaleImageUploadResult, type BaleOrder, type BaleOrderEvent, type BaleOrderStatus, type BaleType, type BecomeBaleSellerInput, type BecomeSellerInput, type BlockedIp, type Business, type BusinessType, BusinessesModule, type BuyerResolveThreadInput, type BuyerSummary, CONDITIONS, type CartItem, type CartLineAvailability, CartModule, type CartPartition, type CategoriesBySection, type Category, type CategorySection, type ChangePasswordInput, type ChangePlatformSettingInput, type ChangePlatformSettingResult, type Checkout, type CheckoutMoney, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutRefusal, type CheckoutRefusalCode, type CheckoutShopOrder, type CheckoutState, type CheckoutStatus, type CheckoutStatusResponse, CheckoutsModule, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateCheckoutInput, type CreateCheckoutResponse, type CreateIamUserInput, type CreateIamUserResult, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateOrganizationInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, type CreatedBaleOrder, type CursorPage, DEFAULT_SHARE_ORIGIN, DESIRED_RESOLUTIONS, DISPUTE_REASONS, DISPUTE_STATUSES, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EmailLoginInput, type EmailRegisterInput, type FileResponse, type FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, type GetCheckoutResponse, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, type IamSession, type IamSessionsResult, type IamSignIn, type IamSignInFailureReason, type IamSignInsResult, type IamTokens, type IamTwoFactorRequired, type IamUser, type IamUserStatus, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LibraryCadence, type LibraryCompleter, type LibraryDocument, type LibraryDocumentSummary, type LibraryKind, type LibraryListing, type LibraryOccurrence, type LibraryOccurrenceRecorded, type LibraryOccurrenceStatus, type LibraryRoutineState, type LibrarySchedule, type LibraryScheduleRule, type LibrarySeason, type LibraryWeekday, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListIamUsersResult, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LiveUnread, type LiveUnreadOptions, type LoginInput, MailerModule, type MailerTemplate, type Market, type MarketCurrency, type MarketPhone, type MarketRegion, type MarketRegionsResponse, type MarketStatus, MarketsModule, type MarketsResponse, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportOutcome, type MessageReportReason, type MessageReportStatus, type MessageResponse, MessagesModule, type MessagesRealtimeConnection, type MessagesRealtimeEnvelope, type MessagesRealtimeEvent, type MessagesRealtimeOptions, type MessagesRealtimeState, type MessagesRealtimeTicket, type MessagingBlockInput, type MessagingBlockRemovedResult, type MessagingBlockResult, type MessagingCapabilities, type MessagingCursor, type MessagingErrorCode, type MessagingIdempotentRequestOptions, type MessagingInboxes, type MessagingPerspective, type MessagingSide, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationAction, type NotificationCategory, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationStream, type NotificationStreamFrame, type NotificationStreamItem, type NotificationStreamOptions, type NotificationStreamState, type NotificationStreamTicket, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthClient, type OAuthClientSummary, type OAuthClientTrustLevel, type OAuthClientType, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OidcSigningKey, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderDocument, type OrderDocumentKind, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, type Organization, type OrganizationKind, type OrganizationStatus, type OrganizationSummary, PAYMENT_STATUSES, type PaginatedResponse, PayModule, type PaymentAttemptStatus, type PaymentMethod, type PaymentMethodType, type PaymentProvider, type PaymentStatus, type PaymentStatusResponse, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type ShareUrlOptions, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreResolveThreadInput, type StoreReviewsPage, type StoreSettings, type StoreStats, type StoreSummary, StoresModule, type SubscriptionTier, type SystemStats, TWO_FACTOR_METHOD_TYPES, type ThreadCard, type ThreadId, type ThreadMessage, type ThreadSubject, type ThreadSystemEvent, type ThreadTimelineItem, type ThreadTimelineItemId, type TokenStore, type TransitionOrderInput, type TrendingTerm, type TwoFactorMethod, type TwoFactorMethodType, type TwoFactorRequired, type UpdateBusinessInput, type UpdateConversationPreferencesInput, type UpdateListingInput, type UpdateOrganizationInput, type UpdateProfileInput, type UpdateStoreInput, type UpdateThreadPreferencesInput, UploadsModule, type UserInfo, type UserProfile, type VAZIOutfit, type VAZIOutfitDetail, type VAZIOutfitDetailItem, type VAZIOutfitItem, type VaziFeedParams, type VaziFeedResponse, VaziModule, type Verify2FAInput, type VerifyIamMethodResult, type VerifyIamTwoFactorInput, type VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleReviewStatus, type WholesaleStore, type WishlistListing, WishlistsModule, activeMarkets, baleShareUrl, cartLineAvailability, categoriesBySection, categorySection, checkoutRefusal, createTokenStore, findMarket, findRegion, formatAmount, formatMoney, formatMoneyCompact, formatPhone, isCartLineBuyable, isConditionAllowed, isConsentRequired, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, storeShareUrl };
|