@mitumba/sdk 5.33.0 → 5.35.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 +166 -2
- package/dist/index.d.ts +166 -2
- package/dist/index.js +83 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +80 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1005,9 +1005,14 @@ interface AdminVerificationItem {
|
|
|
1005
1005
|
seller_type: string;
|
|
1006
1006
|
verification_status: 'unverified' | 'pending' | 'verified' | 'rejected';
|
|
1007
1007
|
updated_at: string;
|
|
1008
|
+
verification_submitted_at?: string | null;
|
|
1009
|
+
verification_decided_at?: string | null;
|
|
1010
|
+
/** The reason given for the last rejection. */
|
|
1011
|
+
verification_note?: string | null;
|
|
1008
1012
|
display_name: string | null;
|
|
1009
1013
|
email: string | null;
|
|
1010
1014
|
phone: string | null;
|
|
1015
|
+
/** A URL, or a private document id (see `isDocumentId`) read with `admin.getDocument`. */
|
|
1011
1016
|
id_document_url: string | null;
|
|
1012
1017
|
kra_pin: string | null;
|
|
1013
1018
|
}
|
|
@@ -1331,6 +1336,8 @@ interface AdminWholesalePendingStore {
|
|
|
1331
1336
|
reviewed_at?: string | null;
|
|
1332
1337
|
/** Rejection reason, also shown to the seller. */
|
|
1333
1338
|
review_note?: string | null;
|
|
1339
|
+
/** Each a URL, or a private document id (see `isDocumentId`) read with `admin.getDocument`. */
|
|
1340
|
+
verification_photos?: string[];
|
|
1334
1341
|
[key: string]: unknown;
|
|
1335
1342
|
}
|
|
1336
1343
|
/** `public` clients (browser SPAs, mobile) use PKCE and have no secret; `confidential` clients have a server-side secret. */
|
|
@@ -2448,6 +2455,11 @@ interface SaveWholesaleStoreInput {
|
|
|
2448
2455
|
description?: string;
|
|
2449
2456
|
logo_url?: string;
|
|
2450
2457
|
origins?: string[];
|
|
2458
|
+
/**
|
|
2459
|
+
* Up to 8. Each is a URL or a private document id (`documents.upload` with purpose
|
|
2460
|
+
* `wholesale_verification` for this store). Ids are accepted only once the store exists.
|
|
2461
|
+
*/
|
|
2462
|
+
verification_photos?: string[];
|
|
2451
2463
|
}
|
|
2452
2464
|
interface AddDepotInput {
|
|
2453
2465
|
name: string;
|
|
@@ -2887,6 +2899,62 @@ interface LiveUnreadOptions {
|
|
|
2887
2899
|
/** Calls back when the page regains focus or becomes visible. Default: window focus and document visibility in a browser; nothing elsewhere. */
|
|
2888
2900
|
onResume?: (listener: () => void) => () => void;
|
|
2889
2901
|
}
|
|
2902
|
+
/** A way to reach someone. */
|
|
2903
|
+
type NotificationChannel = 'in_app' | 'email' | 'push' | 'whatsapp' | 'telegram' | 'sms';
|
|
2904
|
+
/** Pop-up kinds a person may mute. Security and approval pop-ups can't be muted. */
|
|
2905
|
+
type MutableFlashKind = 'announcement' | 'account_action';
|
|
2906
|
+
/** Quiet hours: `start` and `end` are 24-hour `HH:MM`; an end before the start is an overnight window. */
|
|
2907
|
+
interface QuietHours {
|
|
2908
|
+
enabled: boolean;
|
|
2909
|
+
start: string;
|
|
2910
|
+
end: string;
|
|
2911
|
+
/** IANA time zone, e.g. `Africa/Nairobi`. */
|
|
2912
|
+
timeZone: string;
|
|
2913
|
+
}
|
|
2914
|
+
interface NotificationPreferenceCategory {
|
|
2915
|
+
id: NotificationCategory;
|
|
2916
|
+
label: string;
|
|
2917
|
+
description: string;
|
|
2918
|
+
kind: 'transactional' | 'marketing' | 'either';
|
|
2919
|
+
/** Some events here still arrive by in-app and email when every channel is off: show a lock. */
|
|
2920
|
+
required: boolean;
|
|
2921
|
+
/** Only the channels this category's events use. */
|
|
2922
|
+
channels: Array<{
|
|
2923
|
+
channel: NotificationChannel;
|
|
2924
|
+
enabled: boolean;
|
|
2925
|
+
default: boolean;
|
|
2926
|
+
}>;
|
|
2927
|
+
}
|
|
2928
|
+
/** Everything the notification settings page shows. Every preferences method answers it whole. */
|
|
2929
|
+
interface NotificationPreferences {
|
|
2930
|
+
categories: NotificationPreferenceCategory[];
|
|
2931
|
+
/** Whether each channel can reach the caller right now. */
|
|
2932
|
+
channels: Array<{
|
|
2933
|
+
channel: NotificationChannel;
|
|
2934
|
+
available: boolean;
|
|
2935
|
+
}>;
|
|
2936
|
+
quietHours: QuietHours;
|
|
2937
|
+
mutedFlashKinds: MutableFlashKind[];
|
|
2938
|
+
/** Channels the caller has opted in to marketing on. */
|
|
2939
|
+
marketingConsent: NotificationChannel[];
|
|
2940
|
+
/** Text to show next to each marketing opt-in toggle. */
|
|
2941
|
+
consentWording: Partial<Record<NotificationChannel, string>>;
|
|
2942
|
+
}
|
|
2943
|
+
interface PreferenceCellChange {
|
|
2944
|
+
category: NotificationCategory;
|
|
2945
|
+
channel: NotificationChannel;
|
|
2946
|
+
/** `null` returns the cell to its default. */
|
|
2947
|
+
enabled: boolean | null;
|
|
2948
|
+
}
|
|
2949
|
+
/** At least one field. */
|
|
2950
|
+
interface PreferenceSettingsChange {
|
|
2951
|
+
quietHours?: QuietHours;
|
|
2952
|
+
mutedFlashKinds?: MutableFlashKind[];
|
|
2953
|
+
}
|
|
2954
|
+
interface MarketingConsentChange {
|
|
2955
|
+
channel: NotificationChannel;
|
|
2956
|
+
granted: boolean;
|
|
2957
|
+
}
|
|
2890
2958
|
|
|
2891
2959
|
type SubscriptionTier = 'free' | 'pro' | 'premium';
|
|
2892
2960
|
interface Store {
|
|
@@ -2978,6 +3046,10 @@ interface StoreSettings {
|
|
|
2978
3046
|
operating_days: 'everyday' | 'weekdays' | 'custom';
|
|
2979
3047
|
custom_days: string[];
|
|
2980
3048
|
phone_verified: boolean;
|
|
3049
|
+
/**
|
|
3050
|
+
* A URL, or a private document id. Read-only here: set it with `stores.submitVerification`;
|
|
3051
|
+
* `updateSettings` ignores it.
|
|
3052
|
+
*/
|
|
2981
3053
|
id_document_url: string | null;
|
|
2982
3054
|
id_verified: boolean;
|
|
2983
3055
|
kra_pin: string | null;
|
|
@@ -3021,6 +3093,20 @@ interface StoreAnalytics {
|
|
|
3021
3093
|
followers: number;
|
|
3022
3094
|
};
|
|
3023
3095
|
}
|
|
3096
|
+
declare const SELLER_VERIFICATION_STATUSES: readonly ["unverified", "pending", "verified", "rejected"];
|
|
3097
|
+
type SellerVerificationStatus = typeof SELLER_VERIFICATION_STATUSES[number];
|
|
3098
|
+
/** Where the shop owner's identity verification stands. */
|
|
3099
|
+
interface SellerVerification {
|
|
3100
|
+
status: SellerVerificationStatus;
|
|
3101
|
+
submitted_at: string | null;
|
|
3102
|
+
decided_at: string | null;
|
|
3103
|
+
/** The reason given for a rejection. */
|
|
3104
|
+
note: string | null;
|
|
3105
|
+
/** The submitted private document, read with `documents.get`. */
|
|
3106
|
+
document_id: string | null;
|
|
3107
|
+
/** True when the document on file is a URL rather than a private document. */
|
|
3108
|
+
legacy_document: boolean;
|
|
3109
|
+
}
|
|
3024
3110
|
|
|
3025
3111
|
/**
|
|
3026
3112
|
* Where an order's payout stands:
|
|
@@ -3633,6 +3719,7 @@ interface DisputeEvidence {
|
|
|
3633
3719
|
id: string;
|
|
3634
3720
|
uploader_role: 'buyer' | 'seller' | 'admin';
|
|
3635
3721
|
type: 'image' | 'text';
|
|
3722
|
+
/** Text, an image URL, or a private document id (`doc_…`, see `isDocumentId`) read with `documents.get`. */
|
|
3636
3723
|
content: string;
|
|
3637
3724
|
created_at: string;
|
|
3638
3725
|
}
|
|
@@ -3671,11 +3758,15 @@ interface RaiseDisputeInput {
|
|
|
3671
3758
|
description: string;
|
|
3672
3759
|
desired_resolution: DesiredResolution;
|
|
3673
3760
|
evidence_urls?: string[];
|
|
3761
|
+
/** Private document ids (`documents.upload` with purpose `dispute_evidence` for this order). At most 6 items with `evidence_urls`. */
|
|
3762
|
+
evidence_documents?: string[];
|
|
3674
3763
|
}
|
|
3675
3764
|
interface RespondDisputeInput {
|
|
3676
3765
|
accept: boolean;
|
|
3677
3766
|
message?: string;
|
|
3678
3767
|
evidence_urls?: string[];
|
|
3768
|
+
/** Private document ids (`documents.upload` with purpose `dispute_evidence` for this order). At most 6 items with `evidence_urls`. */
|
|
3769
|
+
evidence_documents?: string[];
|
|
3679
3770
|
}
|
|
3680
3771
|
interface ResolveDisputeInput {
|
|
3681
3772
|
resolution: 'refund' | 'release' | 'partial';
|
|
@@ -3690,6 +3781,33 @@ interface DisputeListParams {
|
|
|
3690
3781
|
page?: number;
|
|
3691
3782
|
}
|
|
3692
3783
|
|
|
3784
|
+
/** What a private document is for. Each purpose belongs to one kind of subject. */
|
|
3785
|
+
declare const DOCUMENT_PURPOSES: readonly ["dispute_evidence", "identity_document", "wholesale_verification"];
|
|
3786
|
+
type DocumentPurpose = typeof DOCUMENT_PURPOSES[number];
|
|
3787
|
+
/**
|
|
3788
|
+
* Uploading a private document.
|
|
3789
|
+
*
|
|
3790
|
+
* - `dispute_evidence`: `subjectId` is the order id; photos only.
|
|
3791
|
+
* - `identity_document`: `subjectId` is the retail store id; a photo or a PDF.
|
|
3792
|
+
* - `wholesale_verification`: `subjectId` is the wholesale store id; photos only.
|
|
3793
|
+
*
|
|
3794
|
+
* Photos (JPEG, PNG, WebP, HEIC) are stored re-encoded as WebP. Up to 10 MB.
|
|
3795
|
+
*/
|
|
3796
|
+
interface UploadDocumentInput {
|
|
3797
|
+
file: Blob;
|
|
3798
|
+
purpose: DocumentPurpose;
|
|
3799
|
+
subjectId: string;
|
|
3800
|
+
}
|
|
3801
|
+
/** A stored private document. It is read with `documents.get`; it has no public URL. */
|
|
3802
|
+
interface PrivateDocument {
|
|
3803
|
+
/** `doc_…`. Pass it where a document is referred to by id. */
|
|
3804
|
+
id: string;
|
|
3805
|
+
purpose: DocumentPurpose;
|
|
3806
|
+
content_type: 'image/webp' | 'application/pdf';
|
|
3807
|
+
size_bytes: number;
|
|
3808
|
+
created_at: string;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3693
3811
|
/** IAM principal lifecycle state. */
|
|
3694
3812
|
type IamUserStatus = 'active' | 'disabled';
|
|
3695
3813
|
/** Organization lifecycle state. */
|
|
@@ -4738,6 +4856,23 @@ declare class NotificationsModule {
|
|
|
4738
4856
|
markRead(ids?: string[], options?: RequestOptions): Promise<{
|
|
4739
4857
|
ok: true;
|
|
4740
4858
|
}>;
|
|
4859
|
+
/**
|
|
4860
|
+
* The caller's notification settings: categories with their channels, which channels can reach
|
|
4861
|
+
* them now, quiet hours, muted pop-ups and marketing consent.
|
|
4862
|
+
*/
|
|
4863
|
+
getPreferences(options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4864
|
+
/**
|
|
4865
|
+
* Set (or, with `enabled: null`, reset to default) 1 to 64 category × channel cells. A cell
|
|
4866
|
+
* applies to every event in its category. Answers the whole updated preferences.
|
|
4867
|
+
*/
|
|
4868
|
+
updatePreferences(cells: PreferenceCellChange[], options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4869
|
+
/** Change quiet hours, muted pop-up kinds, or both. Answers the whole updated preferences. */
|
|
4870
|
+
updatePreferenceSettings(input: PreferenceSettingsChange, options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4871
|
+
/**
|
|
4872
|
+
* Opt in to or out of marketing on one channel. The server records its own consent wording
|
|
4873
|
+
* (shown to the person as `consentWording`). Answers the whole updated preferences.
|
|
4874
|
+
*/
|
|
4875
|
+
setMarketingConsent(input: MarketingConsentChange, options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4741
4876
|
/** Create an inert live notification stream. Register listeners before `start()`. */
|
|
4742
4877
|
stream(options?: NotificationStreamOptions): NotificationStream;
|
|
4743
4878
|
/** Create and start a live notification stream. Resolves once connected. */
|
|
@@ -4810,6 +4945,14 @@ declare class StoresModule {
|
|
|
4810
4945
|
* Get store statistics.
|
|
4811
4946
|
*/
|
|
4812
4947
|
getStats(storeId: string, options?: RequestOptions): Promise<StoreStats>;
|
|
4948
|
+
/** Where the shop owner's identity verification stands. Owner only (403 otherwise). */
|
|
4949
|
+
getVerification(storeId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4950
|
+
/**
|
|
4951
|
+
* Submit an identity document for review: upload it first with `documents.upload` (purpose
|
|
4952
|
+
* `identity_document`, this store). Owner only. 400 `invalid_document` for any other document,
|
|
4953
|
+
* 409 `already_verified` or `no_seller_profile`.
|
|
4954
|
+
*/
|
|
4955
|
+
submitVerification(storeId: string, documentId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4813
4956
|
/**
|
|
4814
4957
|
* Get store settings.
|
|
4815
4958
|
*/
|
|
@@ -5345,6 +5488,11 @@ declare class AdminModule {
|
|
|
5345
5488
|
unverifyStore(storeId: string, options?: RequestOptions): Promise<{
|
|
5346
5489
|
ok: true;
|
|
5347
5490
|
}>;
|
|
5491
|
+
/**
|
|
5492
|
+
* Read a private document as an operator. Dispute evidence needs `admin:read`; identity documents
|
|
5493
|
+
* and wholesale verification photos need `sellers:verify`.
|
|
5494
|
+
*/
|
|
5495
|
+
getDocument(documentId: string, options?: RequestOptions): Promise<FileResponse>;
|
|
5348
5496
|
listVerifications(params?: {
|
|
5349
5497
|
status?: 'pending' | 'verified' | 'rejected' | 'unverified';
|
|
5350
5498
|
page?: number;
|
|
@@ -5357,7 +5505,11 @@ declare class AdminModule {
|
|
|
5357
5505
|
ok: true;
|
|
5358
5506
|
verification_status: 'verified';
|
|
5359
5507
|
}>;
|
|
5360
|
-
|
|
5508
|
+
/**
|
|
5509
|
+
* Reject a seller's verification. `reason` (1–500 characters) is required and shown to the seller.
|
|
5510
|
+
* 409 `already_decided` when already rejected.
|
|
5511
|
+
*/
|
|
5512
|
+
rejectVerification(userId: string, reason: string, options?: RequestOptions): Promise<{
|
|
5361
5513
|
ok: true;
|
|
5362
5514
|
verification_status: 'rejected';
|
|
5363
5515
|
}>;
|
|
@@ -5742,6 +5894,17 @@ declare class UploadsModule {
|
|
|
5742
5894
|
}>;
|
|
5743
5895
|
}
|
|
5744
5896
|
|
|
5897
|
+
/** Whether a stored value refers to a private document (`doc_…`) rather than a URL. */
|
|
5898
|
+
declare function isDocumentId(value: string): boolean;
|
|
5899
|
+
declare class DocumentsModule {
|
|
5900
|
+
private readonly client;
|
|
5901
|
+
constructor(client: APIClient);
|
|
5902
|
+
/** Upload a private document. Returns its id; the file itself is never public. */
|
|
5903
|
+
upload(input: UploadDocumentInput, options?: RequestOptions): Promise<PrivateDocument>;
|
|
5904
|
+
/** Read a private document the signed-in user may see. 404 for any other. */
|
|
5905
|
+
get(documentId: string, options?: RequestOptions): Promise<FileResponse>;
|
|
5906
|
+
}
|
|
5907
|
+
|
|
5745
5908
|
declare class ReportsModule {
|
|
5746
5909
|
private readonly client;
|
|
5747
5910
|
constructor(client: APIClient);
|
|
@@ -6136,6 +6299,7 @@ declare class MitumbaClient {
|
|
|
6136
6299
|
readonly admin: AdminModule;
|
|
6137
6300
|
readonly disputes: DisputesModule;
|
|
6138
6301
|
readonly uploads: UploadsModule;
|
|
6302
|
+
readonly documents: DocumentsModule;
|
|
6139
6303
|
readonly reports: ReportsModule;
|
|
6140
6304
|
readonly wholesale: WholesaleModule;
|
|
6141
6305
|
readonly iam: IamModule;
|
|
@@ -6171,4 +6335,4 @@ declare class MitumbaClient {
|
|
|
6171
6335
|
isAuthenticated(): Promise<boolean>;
|
|
6172
6336
|
}
|
|
6173
6337
|
|
|
6174
|
-
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, 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 AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, 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 CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, 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 DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EarningsBalance, 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 InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, 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 OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, 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 PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, 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 ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, 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 SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, 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, stepUpRequired, storeShareUrl };
|
|
6338
|
+
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, 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 AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, 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 CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, 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, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type EarningsBalance, 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 InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, 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, type MarketingConsentChange, 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 MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, 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 OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, 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 PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, SELLER_VERIFICATION_STATUSES, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SellerVerification, type SellerVerificationStatus, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, 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, type UploadDocumentInput, 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, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1005,9 +1005,14 @@ interface AdminVerificationItem {
|
|
|
1005
1005
|
seller_type: string;
|
|
1006
1006
|
verification_status: 'unverified' | 'pending' | 'verified' | 'rejected';
|
|
1007
1007
|
updated_at: string;
|
|
1008
|
+
verification_submitted_at?: string | null;
|
|
1009
|
+
verification_decided_at?: string | null;
|
|
1010
|
+
/** The reason given for the last rejection. */
|
|
1011
|
+
verification_note?: string | null;
|
|
1008
1012
|
display_name: string | null;
|
|
1009
1013
|
email: string | null;
|
|
1010
1014
|
phone: string | null;
|
|
1015
|
+
/** A URL, or a private document id (see `isDocumentId`) read with `admin.getDocument`. */
|
|
1011
1016
|
id_document_url: string | null;
|
|
1012
1017
|
kra_pin: string | null;
|
|
1013
1018
|
}
|
|
@@ -1331,6 +1336,8 @@ interface AdminWholesalePendingStore {
|
|
|
1331
1336
|
reviewed_at?: string | null;
|
|
1332
1337
|
/** Rejection reason, also shown to the seller. */
|
|
1333
1338
|
review_note?: string | null;
|
|
1339
|
+
/** Each a URL, or a private document id (see `isDocumentId`) read with `admin.getDocument`. */
|
|
1340
|
+
verification_photos?: string[];
|
|
1334
1341
|
[key: string]: unknown;
|
|
1335
1342
|
}
|
|
1336
1343
|
/** `public` clients (browser SPAs, mobile) use PKCE and have no secret; `confidential` clients have a server-side secret. */
|
|
@@ -2448,6 +2455,11 @@ interface SaveWholesaleStoreInput {
|
|
|
2448
2455
|
description?: string;
|
|
2449
2456
|
logo_url?: string;
|
|
2450
2457
|
origins?: string[];
|
|
2458
|
+
/**
|
|
2459
|
+
* Up to 8. Each is a URL or a private document id (`documents.upload` with purpose
|
|
2460
|
+
* `wholesale_verification` for this store). Ids are accepted only once the store exists.
|
|
2461
|
+
*/
|
|
2462
|
+
verification_photos?: string[];
|
|
2451
2463
|
}
|
|
2452
2464
|
interface AddDepotInput {
|
|
2453
2465
|
name: string;
|
|
@@ -2887,6 +2899,62 @@ interface LiveUnreadOptions {
|
|
|
2887
2899
|
/** Calls back when the page regains focus or becomes visible. Default: window focus and document visibility in a browser; nothing elsewhere. */
|
|
2888
2900
|
onResume?: (listener: () => void) => () => void;
|
|
2889
2901
|
}
|
|
2902
|
+
/** A way to reach someone. */
|
|
2903
|
+
type NotificationChannel = 'in_app' | 'email' | 'push' | 'whatsapp' | 'telegram' | 'sms';
|
|
2904
|
+
/** Pop-up kinds a person may mute. Security and approval pop-ups can't be muted. */
|
|
2905
|
+
type MutableFlashKind = 'announcement' | 'account_action';
|
|
2906
|
+
/** Quiet hours: `start` and `end` are 24-hour `HH:MM`; an end before the start is an overnight window. */
|
|
2907
|
+
interface QuietHours {
|
|
2908
|
+
enabled: boolean;
|
|
2909
|
+
start: string;
|
|
2910
|
+
end: string;
|
|
2911
|
+
/** IANA time zone, e.g. `Africa/Nairobi`. */
|
|
2912
|
+
timeZone: string;
|
|
2913
|
+
}
|
|
2914
|
+
interface NotificationPreferenceCategory {
|
|
2915
|
+
id: NotificationCategory;
|
|
2916
|
+
label: string;
|
|
2917
|
+
description: string;
|
|
2918
|
+
kind: 'transactional' | 'marketing' | 'either';
|
|
2919
|
+
/** Some events here still arrive by in-app and email when every channel is off: show a lock. */
|
|
2920
|
+
required: boolean;
|
|
2921
|
+
/** Only the channels this category's events use. */
|
|
2922
|
+
channels: Array<{
|
|
2923
|
+
channel: NotificationChannel;
|
|
2924
|
+
enabled: boolean;
|
|
2925
|
+
default: boolean;
|
|
2926
|
+
}>;
|
|
2927
|
+
}
|
|
2928
|
+
/** Everything the notification settings page shows. Every preferences method answers it whole. */
|
|
2929
|
+
interface NotificationPreferences {
|
|
2930
|
+
categories: NotificationPreferenceCategory[];
|
|
2931
|
+
/** Whether each channel can reach the caller right now. */
|
|
2932
|
+
channels: Array<{
|
|
2933
|
+
channel: NotificationChannel;
|
|
2934
|
+
available: boolean;
|
|
2935
|
+
}>;
|
|
2936
|
+
quietHours: QuietHours;
|
|
2937
|
+
mutedFlashKinds: MutableFlashKind[];
|
|
2938
|
+
/** Channels the caller has opted in to marketing on. */
|
|
2939
|
+
marketingConsent: NotificationChannel[];
|
|
2940
|
+
/** Text to show next to each marketing opt-in toggle. */
|
|
2941
|
+
consentWording: Partial<Record<NotificationChannel, string>>;
|
|
2942
|
+
}
|
|
2943
|
+
interface PreferenceCellChange {
|
|
2944
|
+
category: NotificationCategory;
|
|
2945
|
+
channel: NotificationChannel;
|
|
2946
|
+
/** `null` returns the cell to its default. */
|
|
2947
|
+
enabled: boolean | null;
|
|
2948
|
+
}
|
|
2949
|
+
/** At least one field. */
|
|
2950
|
+
interface PreferenceSettingsChange {
|
|
2951
|
+
quietHours?: QuietHours;
|
|
2952
|
+
mutedFlashKinds?: MutableFlashKind[];
|
|
2953
|
+
}
|
|
2954
|
+
interface MarketingConsentChange {
|
|
2955
|
+
channel: NotificationChannel;
|
|
2956
|
+
granted: boolean;
|
|
2957
|
+
}
|
|
2890
2958
|
|
|
2891
2959
|
type SubscriptionTier = 'free' | 'pro' | 'premium';
|
|
2892
2960
|
interface Store {
|
|
@@ -2978,6 +3046,10 @@ interface StoreSettings {
|
|
|
2978
3046
|
operating_days: 'everyday' | 'weekdays' | 'custom';
|
|
2979
3047
|
custom_days: string[];
|
|
2980
3048
|
phone_verified: boolean;
|
|
3049
|
+
/**
|
|
3050
|
+
* A URL, or a private document id. Read-only here: set it with `stores.submitVerification`;
|
|
3051
|
+
* `updateSettings` ignores it.
|
|
3052
|
+
*/
|
|
2981
3053
|
id_document_url: string | null;
|
|
2982
3054
|
id_verified: boolean;
|
|
2983
3055
|
kra_pin: string | null;
|
|
@@ -3021,6 +3093,20 @@ interface StoreAnalytics {
|
|
|
3021
3093
|
followers: number;
|
|
3022
3094
|
};
|
|
3023
3095
|
}
|
|
3096
|
+
declare const SELLER_VERIFICATION_STATUSES: readonly ["unverified", "pending", "verified", "rejected"];
|
|
3097
|
+
type SellerVerificationStatus = typeof SELLER_VERIFICATION_STATUSES[number];
|
|
3098
|
+
/** Where the shop owner's identity verification stands. */
|
|
3099
|
+
interface SellerVerification {
|
|
3100
|
+
status: SellerVerificationStatus;
|
|
3101
|
+
submitted_at: string | null;
|
|
3102
|
+
decided_at: string | null;
|
|
3103
|
+
/** The reason given for a rejection. */
|
|
3104
|
+
note: string | null;
|
|
3105
|
+
/** The submitted private document, read with `documents.get`. */
|
|
3106
|
+
document_id: string | null;
|
|
3107
|
+
/** True when the document on file is a URL rather than a private document. */
|
|
3108
|
+
legacy_document: boolean;
|
|
3109
|
+
}
|
|
3024
3110
|
|
|
3025
3111
|
/**
|
|
3026
3112
|
* Where an order's payout stands:
|
|
@@ -3633,6 +3719,7 @@ interface DisputeEvidence {
|
|
|
3633
3719
|
id: string;
|
|
3634
3720
|
uploader_role: 'buyer' | 'seller' | 'admin';
|
|
3635
3721
|
type: 'image' | 'text';
|
|
3722
|
+
/** Text, an image URL, or a private document id (`doc_…`, see `isDocumentId`) read with `documents.get`. */
|
|
3636
3723
|
content: string;
|
|
3637
3724
|
created_at: string;
|
|
3638
3725
|
}
|
|
@@ -3671,11 +3758,15 @@ interface RaiseDisputeInput {
|
|
|
3671
3758
|
description: string;
|
|
3672
3759
|
desired_resolution: DesiredResolution;
|
|
3673
3760
|
evidence_urls?: string[];
|
|
3761
|
+
/** Private document ids (`documents.upload` with purpose `dispute_evidence` for this order). At most 6 items with `evidence_urls`. */
|
|
3762
|
+
evidence_documents?: string[];
|
|
3674
3763
|
}
|
|
3675
3764
|
interface RespondDisputeInput {
|
|
3676
3765
|
accept: boolean;
|
|
3677
3766
|
message?: string;
|
|
3678
3767
|
evidence_urls?: string[];
|
|
3768
|
+
/** Private document ids (`documents.upload` with purpose `dispute_evidence` for this order). At most 6 items with `evidence_urls`. */
|
|
3769
|
+
evidence_documents?: string[];
|
|
3679
3770
|
}
|
|
3680
3771
|
interface ResolveDisputeInput {
|
|
3681
3772
|
resolution: 'refund' | 'release' | 'partial';
|
|
@@ -3690,6 +3781,33 @@ interface DisputeListParams {
|
|
|
3690
3781
|
page?: number;
|
|
3691
3782
|
}
|
|
3692
3783
|
|
|
3784
|
+
/** What a private document is for. Each purpose belongs to one kind of subject. */
|
|
3785
|
+
declare const DOCUMENT_PURPOSES: readonly ["dispute_evidence", "identity_document", "wholesale_verification"];
|
|
3786
|
+
type DocumentPurpose = typeof DOCUMENT_PURPOSES[number];
|
|
3787
|
+
/**
|
|
3788
|
+
* Uploading a private document.
|
|
3789
|
+
*
|
|
3790
|
+
* - `dispute_evidence`: `subjectId` is the order id; photos only.
|
|
3791
|
+
* - `identity_document`: `subjectId` is the retail store id; a photo or a PDF.
|
|
3792
|
+
* - `wholesale_verification`: `subjectId` is the wholesale store id; photos only.
|
|
3793
|
+
*
|
|
3794
|
+
* Photos (JPEG, PNG, WebP, HEIC) are stored re-encoded as WebP. Up to 10 MB.
|
|
3795
|
+
*/
|
|
3796
|
+
interface UploadDocumentInput {
|
|
3797
|
+
file: Blob;
|
|
3798
|
+
purpose: DocumentPurpose;
|
|
3799
|
+
subjectId: string;
|
|
3800
|
+
}
|
|
3801
|
+
/** A stored private document. It is read with `documents.get`; it has no public URL. */
|
|
3802
|
+
interface PrivateDocument {
|
|
3803
|
+
/** `doc_…`. Pass it where a document is referred to by id. */
|
|
3804
|
+
id: string;
|
|
3805
|
+
purpose: DocumentPurpose;
|
|
3806
|
+
content_type: 'image/webp' | 'application/pdf';
|
|
3807
|
+
size_bytes: number;
|
|
3808
|
+
created_at: string;
|
|
3809
|
+
}
|
|
3810
|
+
|
|
3693
3811
|
/** IAM principal lifecycle state. */
|
|
3694
3812
|
type IamUserStatus = 'active' | 'disabled';
|
|
3695
3813
|
/** Organization lifecycle state. */
|
|
@@ -4738,6 +4856,23 @@ declare class NotificationsModule {
|
|
|
4738
4856
|
markRead(ids?: string[], options?: RequestOptions): Promise<{
|
|
4739
4857
|
ok: true;
|
|
4740
4858
|
}>;
|
|
4859
|
+
/**
|
|
4860
|
+
* The caller's notification settings: categories with their channels, which channels can reach
|
|
4861
|
+
* them now, quiet hours, muted pop-ups and marketing consent.
|
|
4862
|
+
*/
|
|
4863
|
+
getPreferences(options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4864
|
+
/**
|
|
4865
|
+
* Set (or, with `enabled: null`, reset to default) 1 to 64 category × channel cells. A cell
|
|
4866
|
+
* applies to every event in its category. Answers the whole updated preferences.
|
|
4867
|
+
*/
|
|
4868
|
+
updatePreferences(cells: PreferenceCellChange[], options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4869
|
+
/** Change quiet hours, muted pop-up kinds, or both. Answers the whole updated preferences. */
|
|
4870
|
+
updatePreferenceSettings(input: PreferenceSettingsChange, options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4871
|
+
/**
|
|
4872
|
+
* Opt in to or out of marketing on one channel. The server records its own consent wording
|
|
4873
|
+
* (shown to the person as `consentWording`). Answers the whole updated preferences.
|
|
4874
|
+
*/
|
|
4875
|
+
setMarketingConsent(input: MarketingConsentChange, options?: RequestOptions): Promise<NotificationPreferences>;
|
|
4741
4876
|
/** Create an inert live notification stream. Register listeners before `start()`. */
|
|
4742
4877
|
stream(options?: NotificationStreamOptions): NotificationStream;
|
|
4743
4878
|
/** Create and start a live notification stream. Resolves once connected. */
|
|
@@ -4810,6 +4945,14 @@ declare class StoresModule {
|
|
|
4810
4945
|
* Get store statistics.
|
|
4811
4946
|
*/
|
|
4812
4947
|
getStats(storeId: string, options?: RequestOptions): Promise<StoreStats>;
|
|
4948
|
+
/** Where the shop owner's identity verification stands. Owner only (403 otherwise). */
|
|
4949
|
+
getVerification(storeId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4950
|
+
/**
|
|
4951
|
+
* Submit an identity document for review: upload it first with `documents.upload` (purpose
|
|
4952
|
+
* `identity_document`, this store). Owner only. 400 `invalid_document` for any other document,
|
|
4953
|
+
* 409 `already_verified` or `no_seller_profile`.
|
|
4954
|
+
*/
|
|
4955
|
+
submitVerification(storeId: string, documentId: string, options?: RequestOptions): Promise<SellerVerification>;
|
|
4813
4956
|
/**
|
|
4814
4957
|
* Get store settings.
|
|
4815
4958
|
*/
|
|
@@ -5345,6 +5488,11 @@ declare class AdminModule {
|
|
|
5345
5488
|
unverifyStore(storeId: string, options?: RequestOptions): Promise<{
|
|
5346
5489
|
ok: true;
|
|
5347
5490
|
}>;
|
|
5491
|
+
/**
|
|
5492
|
+
* Read a private document as an operator. Dispute evidence needs `admin:read`; identity documents
|
|
5493
|
+
* and wholesale verification photos need `sellers:verify`.
|
|
5494
|
+
*/
|
|
5495
|
+
getDocument(documentId: string, options?: RequestOptions): Promise<FileResponse>;
|
|
5348
5496
|
listVerifications(params?: {
|
|
5349
5497
|
status?: 'pending' | 'verified' | 'rejected' | 'unverified';
|
|
5350
5498
|
page?: number;
|
|
@@ -5357,7 +5505,11 @@ declare class AdminModule {
|
|
|
5357
5505
|
ok: true;
|
|
5358
5506
|
verification_status: 'verified';
|
|
5359
5507
|
}>;
|
|
5360
|
-
|
|
5508
|
+
/**
|
|
5509
|
+
* Reject a seller's verification. `reason` (1–500 characters) is required and shown to the seller.
|
|
5510
|
+
* 409 `already_decided` when already rejected.
|
|
5511
|
+
*/
|
|
5512
|
+
rejectVerification(userId: string, reason: string, options?: RequestOptions): Promise<{
|
|
5361
5513
|
ok: true;
|
|
5362
5514
|
verification_status: 'rejected';
|
|
5363
5515
|
}>;
|
|
@@ -5742,6 +5894,17 @@ declare class UploadsModule {
|
|
|
5742
5894
|
}>;
|
|
5743
5895
|
}
|
|
5744
5896
|
|
|
5897
|
+
/** Whether a stored value refers to a private document (`doc_…`) rather than a URL. */
|
|
5898
|
+
declare function isDocumentId(value: string): boolean;
|
|
5899
|
+
declare class DocumentsModule {
|
|
5900
|
+
private readonly client;
|
|
5901
|
+
constructor(client: APIClient);
|
|
5902
|
+
/** Upload a private document. Returns its id; the file itself is never public. */
|
|
5903
|
+
upload(input: UploadDocumentInput, options?: RequestOptions): Promise<PrivateDocument>;
|
|
5904
|
+
/** Read a private document the signed-in user may see. 404 for any other. */
|
|
5905
|
+
get(documentId: string, options?: RequestOptions): Promise<FileResponse>;
|
|
5906
|
+
}
|
|
5907
|
+
|
|
5745
5908
|
declare class ReportsModule {
|
|
5746
5909
|
private readonly client;
|
|
5747
5910
|
constructor(client: APIClient);
|
|
@@ -6136,6 +6299,7 @@ declare class MitumbaClient {
|
|
|
6136
6299
|
readonly admin: AdminModule;
|
|
6137
6300
|
readonly disputes: DisputesModule;
|
|
6138
6301
|
readonly uploads: UploadsModule;
|
|
6302
|
+
readonly documents: DocumentsModule;
|
|
6139
6303
|
readonly reports: ReportsModule;
|
|
6140
6304
|
readonly wholesale: WholesaleModule;
|
|
6141
6305
|
readonly iam: IamModule;
|
|
@@ -6171,4 +6335,4 @@ declare class MitumbaClient {
|
|
|
6171
6335
|
isAuthenticated(): Promise<boolean>;
|
|
6172
6336
|
}
|
|
6173
6337
|
|
|
6174
|
-
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, 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 AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, 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 CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, 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 DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type EarningsBalance, 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 InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, 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 OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, 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 PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, 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 ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, 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 SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, 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, stepUpRequired, storeShareUrl };
|
|
6338
|
+
export { APIClient, APIError, type APIErrorResponse, type AcceptStoreInvitationResult, type ActivateIamUserInput, type ActivateIamUserResult, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddIamPasskeyResult, type AddIamTotpResult, type AddIamTwoFactorMethodInput, type AddPaymentMethodInput, type AddPayoutDestinationInput, 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 AdminRefundItem, type AdminRefundReason, type AdminRefundSendResult, type AdminRefundStatus, type AdminReport, type AdminRolePreset, type AdminShopLimitRequest, type AdminShopLimitRequestsPage, 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 CancelCheckoutRefusalCode, type CancelCheckoutResponse, type CancelOrderInput, type CancelOrderResult, 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, DOCUMENT_PURPOSES, type DecideShopLimitInput, type DecideShopLimitResult, type DeliveryAddress, type DesiredResolution, type Dispute, type DisputeEvent, type DisputeEvidence, type DisputeListParams, type DisputeReason, type DisputeStatus, DisputesModule, type DocumentPurpose, DocumentsModule, type EarningsBalance, 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 InvitableStoreRole, type InviteToStoreInput, type InviteToStoreResult, type Jwk, type Jwks, type KnownPaymentProvider, type KnownShopStep, 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, type MarketingConsentChange, 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 MutableFlashKind, type Notification, type NotificationAction, type NotificationCategory, type NotificationChannel, type NotificationFlash, type NotificationLink, type NotificationPref, type NotificationPreferenceCategory, type NotificationPreferences, 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 OrderHistoryEntry, type OrderHistoryParams, type OrderItem, type OrderItemSummary, 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 PayoutBankOption, type PayoutDestination, type PayoutDestinationLabel, type PayoutDestinationRejection, type PayoutDestinations, type PayoutDestinationsState, type PayoutMethodOption, type PayoutMethodType, type PayoutState, type PaystackInitResponse, type PaystackInput, type PendingPayoutApproval, type PhoneLoginInput, type PhoneRegisterInput, type PlatformSetting, type PlatformSettingChange, type PlatformSettingDetail, type PlatformSettingGroup, type PlatformSettingKind, type PreferenceCellChange, type PreferenceSettingsChange, type PresignImageResponse, type PrivateDocument, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type QuietHours, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type ReceivedStoreInvitation, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegenerateIamBackupCodesResult, type RegisterInput, type RegisterOAuthClientInput, type RegisteredOAuthClient, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type RequestStoreLimitInput, type ResetPasswordInput, type ResolveDisputeInput, type ResolveMessageReportInput, type ResolveMessageReportResult, type ResolveThreadResult, type RespondDisputeInput, type Review, type ReviewableOrder, ReviewsModule, type RootSetupInput, type RootSetupResult, SELLER_VERIFICATION_STATUSES, type SaveSearchInput, type SaveWholesaleStoreInput, type SearchHistoryItem, SearchModule, type SearchParams, type SearchResult, type SellerProfile, type SellerStorefront, type SellerType, type SellerVerification, type SellerVerificationStatus, type SendEmailInput, type SendMessageInput, type SendOtpInput, type SendTestNotificationResult, type SendThreadMessageInput, type SendThreadMessageResult, type Session, SettingsModule, type SettlementLine, type ShareUrlOptions, type ShopCancelReason, type ShopEarnings, type ShopHolder, type ShopNextStep, type ShopOrderFields, type ShopPayout, type ShopPayoutEntriesPage, type ShopPayoutEntriesParams, type ShopPayoutEntry, type ShopSettlement, type ShopStep, type SilentAuthorizeResult, type SimilarListing, type StiEvent, type StkPushInput, type StkPushResponse, type Store, type StoreAnalytics, type StoreAuditEntry, type StoreAuditPage, type StoreInvitation, type StoreInvitationListItem, type StoreLimitRequest, type StoreLimitRequestStatus, type StoreLimitState, type StoreMember, type StoreMembers, type StoreMembershipFields, type StorePermission, type StoreResolveThreadInput, type StoreReviewsPage, type StoreRole, 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, type UploadDocumentInput, 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, isDocumentId, isMessagingAPIError, isNewOnlyCategory, isValidPhone, listingShareUrl, maskPhone, normalizePhone, partitionCart, regionById, stepUpRequired, storeShareUrl };
|