@mitumba/sdk 5.4.0 → 5.5.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 +243 -1
- package/dist/index.d.ts +243 -1
- package/dist/index.js +147 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +147 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2529,6 +2529,172 @@ interface DisputeListParams {
|
|
|
2529
2529
|
page?: number;
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
|
+
/** IAM principal lifecycle state. */
|
|
2533
|
+
type IamUserStatus = 'active' | 'disabled';
|
|
2534
|
+
/** Organization lifecycle state. */
|
|
2535
|
+
type OrganizationStatus = 'active' | 'suspended';
|
|
2536
|
+
/** Organization category. */
|
|
2537
|
+
type OrganizationKind = 'product' | 'department' | 'team';
|
|
2538
|
+
/** Organization returned by organization-management and IAM profile endpoints. */
|
|
2539
|
+
interface Organization {
|
|
2540
|
+
id: string;
|
|
2541
|
+
display_id: string;
|
|
2542
|
+
alias: string;
|
|
2543
|
+
name: string;
|
|
2544
|
+
kind: OrganizationKind;
|
|
2545
|
+
status: OrganizationStatus;
|
|
2546
|
+
parent_id: string | null;
|
|
2547
|
+
created_at: string;
|
|
2548
|
+
updated_at: string;
|
|
2549
|
+
}
|
|
2550
|
+
/** Organization list row, including its IAM-user count. */
|
|
2551
|
+
interface OrganizationSummary extends Organization {
|
|
2552
|
+
iam_user_count: number;
|
|
2553
|
+
}
|
|
2554
|
+
/** Tokens issued for an IAM principal. */
|
|
2555
|
+
interface IamTokens {
|
|
2556
|
+
access_token: string;
|
|
2557
|
+
refresh_token: string;
|
|
2558
|
+
expires_in: number;
|
|
2559
|
+
principal_type: 'iam';
|
|
2560
|
+
org_id: string;
|
|
2561
|
+
second_factor_enrolled: boolean;
|
|
2562
|
+
}
|
|
2563
|
+
/** Start IAM sign-in with an organization ID or alias. */
|
|
2564
|
+
interface IamLoginInput {
|
|
2565
|
+
org: string;
|
|
2566
|
+
email: string;
|
|
2567
|
+
password: string;
|
|
2568
|
+
}
|
|
2569
|
+
/** Second-factor method offered during IAM sign-in. */
|
|
2570
|
+
interface IamLoginMethod {
|
|
2571
|
+
id: string;
|
|
2572
|
+
type: 'totp' | 'passkey';
|
|
2573
|
+
label: string | null;
|
|
2574
|
+
}
|
|
2575
|
+
/** Password accepted; finish sign-in with one of the returned methods. */
|
|
2576
|
+
interface IamTwoFactorRequired {
|
|
2577
|
+
requires_2fa: true;
|
|
2578
|
+
temp_token: string;
|
|
2579
|
+
methods: IamLoginMethod[];
|
|
2580
|
+
}
|
|
2581
|
+
/** Finish IAM sign-in with an authenticator or backup code. */
|
|
2582
|
+
interface VerifyIamTwoFactorInput {
|
|
2583
|
+
temp_token: string;
|
|
2584
|
+
code: string;
|
|
2585
|
+
method_id?: string;
|
|
2586
|
+
}
|
|
2587
|
+
/** Activate an invited IAM principal and choose its password. */
|
|
2588
|
+
interface ActivateIamUserInput {
|
|
2589
|
+
org: string;
|
|
2590
|
+
email: string;
|
|
2591
|
+
code: string;
|
|
2592
|
+
password: string;
|
|
2593
|
+
}
|
|
2594
|
+
/** Result of activating an IAM principal. */
|
|
2595
|
+
interface ActivateIamUserResult {
|
|
2596
|
+
ok: true;
|
|
2597
|
+
next_step: string;
|
|
2598
|
+
}
|
|
2599
|
+
/** Current IAM principal and its organization-scoped access. */
|
|
2600
|
+
interface IamProfile {
|
|
2601
|
+
id: string;
|
|
2602
|
+
email: string;
|
|
2603
|
+
display_name: string | null;
|
|
2604
|
+
status: IamUserStatus;
|
|
2605
|
+
organization: Organization;
|
|
2606
|
+
permissions: AdminPermission[];
|
|
2607
|
+
two_factor_methods_count: number;
|
|
2608
|
+
backup_codes_remaining: number;
|
|
2609
|
+
admin_enrolment_required: boolean;
|
|
2610
|
+
}
|
|
2611
|
+
/** Add an IAM authenticator or passkey. */
|
|
2612
|
+
interface AddIamTwoFactorMethodInput {
|
|
2613
|
+
type: 'totp' | 'passkey';
|
|
2614
|
+
label?: string;
|
|
2615
|
+
}
|
|
2616
|
+
/** TOTP enrollment response. */
|
|
2617
|
+
interface AddIamTotpResult {
|
|
2618
|
+
id: string;
|
|
2619
|
+
otpauth_uri: string;
|
|
2620
|
+
secret: string;
|
|
2621
|
+
}
|
|
2622
|
+
/** Passkey enrollment response. */
|
|
2623
|
+
interface AddIamPasskeyResult {
|
|
2624
|
+
method_id: string;
|
|
2625
|
+
options: PublicKeyCredentialCreationOptionsJSON;
|
|
2626
|
+
}
|
|
2627
|
+
/** IAM factor verification response. Backup codes appear only for the first factor. */
|
|
2628
|
+
interface VerifyIamMethodResult {
|
|
2629
|
+
ok: true;
|
|
2630
|
+
backup_codes?: string[];
|
|
2631
|
+
}
|
|
2632
|
+
/** Create an organization. */
|
|
2633
|
+
interface CreateOrganizationInput {
|
|
2634
|
+
alias: string;
|
|
2635
|
+
name: string;
|
|
2636
|
+
kind: OrganizationKind;
|
|
2637
|
+
parent_id?: string;
|
|
2638
|
+
}
|
|
2639
|
+
/** Update mutable organization fields. */
|
|
2640
|
+
interface UpdateOrganizationInput {
|
|
2641
|
+
name?: string;
|
|
2642
|
+
status?: OrganizationStatus;
|
|
2643
|
+
}
|
|
2644
|
+
/** IAM user shown in an organization's operator list. */
|
|
2645
|
+
interface IamUser {
|
|
2646
|
+
id: string;
|
|
2647
|
+
org_id?: string;
|
|
2648
|
+
email: string;
|
|
2649
|
+
display_name: string | null;
|
|
2650
|
+
status: IamUserStatus;
|
|
2651
|
+
activated: boolean;
|
|
2652
|
+
second_factor_enrolled?: boolean;
|
|
2653
|
+
permissions: AdminPermission[];
|
|
2654
|
+
last_active_at?: string | null;
|
|
2655
|
+
created_at?: string;
|
|
2656
|
+
}
|
|
2657
|
+
/** Create an IAM principal in an organization. */
|
|
2658
|
+
interface CreateIamUserInput {
|
|
2659
|
+
email: string;
|
|
2660
|
+
display_name?: string;
|
|
2661
|
+
permissions?: AdminPermission[];
|
|
2662
|
+
}
|
|
2663
|
+
/** One-time IAM activation credential returned to the provisioning administrator. */
|
|
2664
|
+
interface IamActivation {
|
|
2665
|
+
code: string;
|
|
2666
|
+
expires_at: string;
|
|
2667
|
+
org_id: string;
|
|
2668
|
+
org_alias: string | null;
|
|
2669
|
+
org_display_id: string;
|
|
2670
|
+
}
|
|
2671
|
+
/** Result of provisioning an IAM principal. */
|
|
2672
|
+
interface CreateIamUserResult {
|
|
2673
|
+
iam_user: IamUser;
|
|
2674
|
+
activation: IamActivation;
|
|
2675
|
+
}
|
|
2676
|
+
/** Result of listing one organization's IAM principals. */
|
|
2677
|
+
interface ListIamUsersResult {
|
|
2678
|
+
organization: Organization;
|
|
2679
|
+
iam_users: IamUser[];
|
|
2680
|
+
grantable_permissions: AdminPermission[];
|
|
2681
|
+
}
|
|
2682
|
+
/** Input to finish IAM passkey sign-in. */
|
|
2683
|
+
interface FinishIamPasskeyLoginInput {
|
|
2684
|
+
temp_token: string;
|
|
2685
|
+
credential: AuthenticationResponseJSON;
|
|
2686
|
+
}
|
|
2687
|
+
/** Input to finish IAM passkey enrollment. */
|
|
2688
|
+
type FinishIamPasskeyEnrollmentInput = RegistrationResponseJSON;
|
|
2689
|
+
/** IAM passkey assertion options. */
|
|
2690
|
+
interface IamPasskeyLoginOptions {
|
|
2691
|
+
options: PublicKeyCredentialRequestOptionsJSON;
|
|
2692
|
+
}
|
|
2693
|
+
/** IAM second-factor methods response. */
|
|
2694
|
+
interface IamMethodsResult {
|
|
2695
|
+
methods: TwoFactorMethod[];
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2532
2698
|
interface MitumbaClientConfig {
|
|
2533
2699
|
baseUrl: string;
|
|
2534
2700
|
debug?: boolean;
|
|
@@ -4087,6 +4253,81 @@ declare class WholesaleModule {
|
|
|
4087
4253
|
getAnalytics(period?: 'daily' | 'weekly' | 'monthly', options?: RequestOptions): Promise<WholesaleAnalytics>;
|
|
4088
4254
|
}
|
|
4089
4255
|
|
|
4256
|
+
/**
|
|
4257
|
+
* Organization-scoped operator identity and access.
|
|
4258
|
+
*
|
|
4259
|
+
* Root continues to use {@link AuthModule}. IAM users use this module for organization-aware sign-in,
|
|
4260
|
+
* activation, second factors and session lifecycle. Organization administration methods require a
|
|
4261
|
+
* root/global-operator session with the corresponding server-side permission.
|
|
4262
|
+
*/
|
|
4263
|
+
declare class IamModule {
|
|
4264
|
+
private readonly client;
|
|
4265
|
+
constructor(client: APIClient);
|
|
4266
|
+
/** Start IAM sign-in with an organization ID or alias, email and password. */
|
|
4267
|
+
login(input: IamLoginInput, options?: RequestOptions): Promise<IamTokens | IamTwoFactorRequired>;
|
|
4268
|
+
/** Finish IAM sign-in with a TOTP or one-time backup code. */
|
|
4269
|
+
verifyTwoFactor(input: VerifyIamTwoFactorInput, options?: RequestOptions): Promise<IamTokens>;
|
|
4270
|
+
/** Get WebAuthn assertion options for a pending IAM sign-in. */
|
|
4271
|
+
startPasskeyLogin(tempToken: string, options?: RequestOptions): Promise<IamPasskeyLoginOptions>;
|
|
4272
|
+
/** Finish IAM passkey sign-in and persist the returned IAM session. */
|
|
4273
|
+
finishPasskeyLogin(input: FinishIamPasskeyLoginInput, options?: RequestOptions): Promise<IamTokens>;
|
|
4274
|
+
/** Activate an invited IAM user and choose its password. */
|
|
4275
|
+
activate(input: ActivateIamUserInput, options?: RequestOptions): Promise<ActivateIamUserResult>;
|
|
4276
|
+
/** Rotate an IAM refresh token and persist the returned session. */
|
|
4277
|
+
refresh(refreshToken: string, options?: RequestOptions): Promise<IamTokens>;
|
|
4278
|
+
/** End the current IAM session and clear locally stored credentials. */
|
|
4279
|
+
logout(options?: RequestOptions): Promise<{
|
|
4280
|
+
ok: true;
|
|
4281
|
+
}>;
|
|
4282
|
+
/** Get the current IAM principal, organization and effective access state. */
|
|
4283
|
+
me(options?: RequestOptions): Promise<IamProfile>;
|
|
4284
|
+
/** List this IAM principal's enrolled second-factor methods. */
|
|
4285
|
+
listMethods(options?: RequestOptions): Promise<IamMethodsResult>;
|
|
4286
|
+
/** Begin adding an authenticator app or passkey. */
|
|
4287
|
+
addMethod(input: AddIamTwoFactorMethodInput, options?: RequestOptions): Promise<AddIamTotpResult | AddIamPasskeyResult>;
|
|
4288
|
+
/** Verify and enable a pending IAM authenticator method. */
|
|
4289
|
+
verifyMethod(methodId: string, code: string, options?: RequestOptions): Promise<VerifyIamMethodResult>;
|
|
4290
|
+
/** Finish and enable a pending IAM passkey method. */
|
|
4291
|
+
finishPasskeyEnrollment(methodId: string, credential: FinishIamPasskeyEnrollmentInput, options?: RequestOptions): Promise<VerifyIamMethodResult>;
|
|
4292
|
+
/** List organizations the current root/global operator may administer. */
|
|
4293
|
+
listOrganizations(options?: RequestOptions): Promise<{
|
|
4294
|
+
organizations: OrganizationSummary[];
|
|
4295
|
+
kinds: OrganizationKind[];
|
|
4296
|
+
}>;
|
|
4297
|
+
/** Create an organization. */
|
|
4298
|
+
createOrganization(input: CreateOrganizationInput, options?: RequestOptions): Promise<{
|
|
4299
|
+
organization: Organization;
|
|
4300
|
+
}>;
|
|
4301
|
+
/** Update an organization's name or lifecycle state. */
|
|
4302
|
+
updateOrganization(orgId: string, input: UpdateOrganizationInput, options?: RequestOptions): Promise<{
|
|
4303
|
+
organization: Organization;
|
|
4304
|
+
}>;
|
|
4305
|
+
/** List IAM users and grantable permissions in one organization. */
|
|
4306
|
+
listUsers(orgId: string, options?: RequestOptions): Promise<ListIamUsersResult>;
|
|
4307
|
+
/** Provision an IAM user. The activation code is returned once. */
|
|
4308
|
+
createUser(orgId: string, input: CreateIamUserInput, options?: RequestOptions): Promise<CreateIamUserResult>;
|
|
4309
|
+
/** Grant one organization-scoped permission to an IAM user. */
|
|
4310
|
+
grantPermission(orgId: string, iamUserId: string, permission: AdminPermission, options?: RequestOptions): Promise<{
|
|
4311
|
+
ok: true;
|
|
4312
|
+
permissions: AdminPermission[];
|
|
4313
|
+
}>;
|
|
4314
|
+
/** Revoke one permission and immediately end the IAM user's sessions. */
|
|
4315
|
+
revokePermission(orgId: string, iamUserId: string, permission: AdminPermission, options?: RequestOptions): Promise<{
|
|
4316
|
+
ok: true;
|
|
4317
|
+
revoked: boolean;
|
|
4318
|
+
permissions: AdminPermission[];
|
|
4319
|
+
}>;
|
|
4320
|
+
/** Enable or disable an IAM user. Disabling immediately ends its sessions. */
|
|
4321
|
+
setUserStatus(orgId: string, iamUserId: string, status: IamUserStatus, options?: RequestOptions): Promise<{
|
|
4322
|
+
ok: true;
|
|
4323
|
+
status: IamUserStatus;
|
|
4324
|
+
}>;
|
|
4325
|
+
/** Reissue the one-time activation credential for an unactivated IAM user. */
|
|
4326
|
+
reissueActivation(orgId: string, iamUserId: string, options?: RequestOptions): Promise<{
|
|
4327
|
+
activation: IamActivation;
|
|
4328
|
+
}>;
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4090
4331
|
/**
|
|
4091
4332
|
* Canonical go.mitumba.africa share URLs — the one place clients build listing, store and bale share links.
|
|
4092
4333
|
*
|
|
@@ -4132,6 +4373,7 @@ declare class MitumbaClient {
|
|
|
4132
4373
|
readonly uploads: UploadsModule;
|
|
4133
4374
|
readonly reports: ReportsModule;
|
|
4134
4375
|
readonly wholesale: WholesaleModule;
|
|
4376
|
+
readonly iam: IamModule;
|
|
4135
4377
|
constructor(config: MitumbaClientConfig);
|
|
4136
4378
|
/**
|
|
4137
4379
|
* Set the access token for authenticated requests.
|
|
@@ -4163,4 +4405,4 @@ declare class MitumbaClient {
|
|
|
4163
4405
|
isAuthenticated(): Promise<boolean>;
|
|
4164
4406
|
}
|
|
4165
4407
|
|
|
4166
|
-
export { APIClient, APIError, type APIErrorResponse, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddPaymentMethodInput, type Address, type AdminAuditEntry, type AdminAuthStrength, type AdminListingItem, 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, CartModule, type Category, type ChangePasswordInput, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutStatus, type CheckoutStatusResponse, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, 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 FollowedStore, type ForgotPasswordInput, IDBTokenStore, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportReason, 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, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, 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 PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegisterInput, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, 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 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 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 VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleStore, type WishlistListing, WishlistsModule, baleShareUrl, createTokenStore, isConsentRequired, isMessagingAPIError, listingShareUrl, storeShareUrl };
|
|
4408
|
+
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 AdminAuditEntry, type AdminAuthStrength, type AdminListingItem, 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, CartModule, type Category, type ChangePasswordInput, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutStatus, type CheckoutStatusResponse, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, 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 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 FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, 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 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, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportReason, 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, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, 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 PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegisterInput, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, 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 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 WholesaleStore, type WishlistListing, WishlistsModule, baleShareUrl, createTokenStore, isConsentRequired, isMessagingAPIError, listingShareUrl, storeShareUrl };
|
package/dist/index.d.ts
CHANGED
|
@@ -2529,6 +2529,172 @@ interface DisputeListParams {
|
|
|
2529
2529
|
page?: number;
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
|
+
/** IAM principal lifecycle state. */
|
|
2533
|
+
type IamUserStatus = 'active' | 'disabled';
|
|
2534
|
+
/** Organization lifecycle state. */
|
|
2535
|
+
type OrganizationStatus = 'active' | 'suspended';
|
|
2536
|
+
/** Organization category. */
|
|
2537
|
+
type OrganizationKind = 'product' | 'department' | 'team';
|
|
2538
|
+
/** Organization returned by organization-management and IAM profile endpoints. */
|
|
2539
|
+
interface Organization {
|
|
2540
|
+
id: string;
|
|
2541
|
+
display_id: string;
|
|
2542
|
+
alias: string;
|
|
2543
|
+
name: string;
|
|
2544
|
+
kind: OrganizationKind;
|
|
2545
|
+
status: OrganizationStatus;
|
|
2546
|
+
parent_id: string | null;
|
|
2547
|
+
created_at: string;
|
|
2548
|
+
updated_at: string;
|
|
2549
|
+
}
|
|
2550
|
+
/** Organization list row, including its IAM-user count. */
|
|
2551
|
+
interface OrganizationSummary extends Organization {
|
|
2552
|
+
iam_user_count: number;
|
|
2553
|
+
}
|
|
2554
|
+
/** Tokens issued for an IAM principal. */
|
|
2555
|
+
interface IamTokens {
|
|
2556
|
+
access_token: string;
|
|
2557
|
+
refresh_token: string;
|
|
2558
|
+
expires_in: number;
|
|
2559
|
+
principal_type: 'iam';
|
|
2560
|
+
org_id: string;
|
|
2561
|
+
second_factor_enrolled: boolean;
|
|
2562
|
+
}
|
|
2563
|
+
/** Start IAM sign-in with an organization ID or alias. */
|
|
2564
|
+
interface IamLoginInput {
|
|
2565
|
+
org: string;
|
|
2566
|
+
email: string;
|
|
2567
|
+
password: string;
|
|
2568
|
+
}
|
|
2569
|
+
/** Second-factor method offered during IAM sign-in. */
|
|
2570
|
+
interface IamLoginMethod {
|
|
2571
|
+
id: string;
|
|
2572
|
+
type: 'totp' | 'passkey';
|
|
2573
|
+
label: string | null;
|
|
2574
|
+
}
|
|
2575
|
+
/** Password accepted; finish sign-in with one of the returned methods. */
|
|
2576
|
+
interface IamTwoFactorRequired {
|
|
2577
|
+
requires_2fa: true;
|
|
2578
|
+
temp_token: string;
|
|
2579
|
+
methods: IamLoginMethod[];
|
|
2580
|
+
}
|
|
2581
|
+
/** Finish IAM sign-in with an authenticator or backup code. */
|
|
2582
|
+
interface VerifyIamTwoFactorInput {
|
|
2583
|
+
temp_token: string;
|
|
2584
|
+
code: string;
|
|
2585
|
+
method_id?: string;
|
|
2586
|
+
}
|
|
2587
|
+
/** Activate an invited IAM principal and choose its password. */
|
|
2588
|
+
interface ActivateIamUserInput {
|
|
2589
|
+
org: string;
|
|
2590
|
+
email: string;
|
|
2591
|
+
code: string;
|
|
2592
|
+
password: string;
|
|
2593
|
+
}
|
|
2594
|
+
/** Result of activating an IAM principal. */
|
|
2595
|
+
interface ActivateIamUserResult {
|
|
2596
|
+
ok: true;
|
|
2597
|
+
next_step: string;
|
|
2598
|
+
}
|
|
2599
|
+
/** Current IAM principal and its organization-scoped access. */
|
|
2600
|
+
interface IamProfile {
|
|
2601
|
+
id: string;
|
|
2602
|
+
email: string;
|
|
2603
|
+
display_name: string | null;
|
|
2604
|
+
status: IamUserStatus;
|
|
2605
|
+
organization: Organization;
|
|
2606
|
+
permissions: AdminPermission[];
|
|
2607
|
+
two_factor_methods_count: number;
|
|
2608
|
+
backup_codes_remaining: number;
|
|
2609
|
+
admin_enrolment_required: boolean;
|
|
2610
|
+
}
|
|
2611
|
+
/** Add an IAM authenticator or passkey. */
|
|
2612
|
+
interface AddIamTwoFactorMethodInput {
|
|
2613
|
+
type: 'totp' | 'passkey';
|
|
2614
|
+
label?: string;
|
|
2615
|
+
}
|
|
2616
|
+
/** TOTP enrollment response. */
|
|
2617
|
+
interface AddIamTotpResult {
|
|
2618
|
+
id: string;
|
|
2619
|
+
otpauth_uri: string;
|
|
2620
|
+
secret: string;
|
|
2621
|
+
}
|
|
2622
|
+
/** Passkey enrollment response. */
|
|
2623
|
+
interface AddIamPasskeyResult {
|
|
2624
|
+
method_id: string;
|
|
2625
|
+
options: PublicKeyCredentialCreationOptionsJSON;
|
|
2626
|
+
}
|
|
2627
|
+
/** IAM factor verification response. Backup codes appear only for the first factor. */
|
|
2628
|
+
interface VerifyIamMethodResult {
|
|
2629
|
+
ok: true;
|
|
2630
|
+
backup_codes?: string[];
|
|
2631
|
+
}
|
|
2632
|
+
/** Create an organization. */
|
|
2633
|
+
interface CreateOrganizationInput {
|
|
2634
|
+
alias: string;
|
|
2635
|
+
name: string;
|
|
2636
|
+
kind: OrganizationKind;
|
|
2637
|
+
parent_id?: string;
|
|
2638
|
+
}
|
|
2639
|
+
/** Update mutable organization fields. */
|
|
2640
|
+
interface UpdateOrganizationInput {
|
|
2641
|
+
name?: string;
|
|
2642
|
+
status?: OrganizationStatus;
|
|
2643
|
+
}
|
|
2644
|
+
/** IAM user shown in an organization's operator list. */
|
|
2645
|
+
interface IamUser {
|
|
2646
|
+
id: string;
|
|
2647
|
+
org_id?: string;
|
|
2648
|
+
email: string;
|
|
2649
|
+
display_name: string | null;
|
|
2650
|
+
status: IamUserStatus;
|
|
2651
|
+
activated: boolean;
|
|
2652
|
+
second_factor_enrolled?: boolean;
|
|
2653
|
+
permissions: AdminPermission[];
|
|
2654
|
+
last_active_at?: string | null;
|
|
2655
|
+
created_at?: string;
|
|
2656
|
+
}
|
|
2657
|
+
/** Create an IAM principal in an organization. */
|
|
2658
|
+
interface CreateIamUserInput {
|
|
2659
|
+
email: string;
|
|
2660
|
+
display_name?: string;
|
|
2661
|
+
permissions?: AdminPermission[];
|
|
2662
|
+
}
|
|
2663
|
+
/** One-time IAM activation credential returned to the provisioning administrator. */
|
|
2664
|
+
interface IamActivation {
|
|
2665
|
+
code: string;
|
|
2666
|
+
expires_at: string;
|
|
2667
|
+
org_id: string;
|
|
2668
|
+
org_alias: string | null;
|
|
2669
|
+
org_display_id: string;
|
|
2670
|
+
}
|
|
2671
|
+
/** Result of provisioning an IAM principal. */
|
|
2672
|
+
interface CreateIamUserResult {
|
|
2673
|
+
iam_user: IamUser;
|
|
2674
|
+
activation: IamActivation;
|
|
2675
|
+
}
|
|
2676
|
+
/** Result of listing one organization's IAM principals. */
|
|
2677
|
+
interface ListIamUsersResult {
|
|
2678
|
+
organization: Organization;
|
|
2679
|
+
iam_users: IamUser[];
|
|
2680
|
+
grantable_permissions: AdminPermission[];
|
|
2681
|
+
}
|
|
2682
|
+
/** Input to finish IAM passkey sign-in. */
|
|
2683
|
+
interface FinishIamPasskeyLoginInput {
|
|
2684
|
+
temp_token: string;
|
|
2685
|
+
credential: AuthenticationResponseJSON;
|
|
2686
|
+
}
|
|
2687
|
+
/** Input to finish IAM passkey enrollment. */
|
|
2688
|
+
type FinishIamPasskeyEnrollmentInput = RegistrationResponseJSON;
|
|
2689
|
+
/** IAM passkey assertion options. */
|
|
2690
|
+
interface IamPasskeyLoginOptions {
|
|
2691
|
+
options: PublicKeyCredentialRequestOptionsJSON;
|
|
2692
|
+
}
|
|
2693
|
+
/** IAM second-factor methods response. */
|
|
2694
|
+
interface IamMethodsResult {
|
|
2695
|
+
methods: TwoFactorMethod[];
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2532
2698
|
interface MitumbaClientConfig {
|
|
2533
2699
|
baseUrl: string;
|
|
2534
2700
|
debug?: boolean;
|
|
@@ -4087,6 +4253,81 @@ declare class WholesaleModule {
|
|
|
4087
4253
|
getAnalytics(period?: 'daily' | 'weekly' | 'monthly', options?: RequestOptions): Promise<WholesaleAnalytics>;
|
|
4088
4254
|
}
|
|
4089
4255
|
|
|
4256
|
+
/**
|
|
4257
|
+
* Organization-scoped operator identity and access.
|
|
4258
|
+
*
|
|
4259
|
+
* Root continues to use {@link AuthModule}. IAM users use this module for organization-aware sign-in,
|
|
4260
|
+
* activation, second factors and session lifecycle. Organization administration methods require a
|
|
4261
|
+
* root/global-operator session with the corresponding server-side permission.
|
|
4262
|
+
*/
|
|
4263
|
+
declare class IamModule {
|
|
4264
|
+
private readonly client;
|
|
4265
|
+
constructor(client: APIClient);
|
|
4266
|
+
/** Start IAM sign-in with an organization ID or alias, email and password. */
|
|
4267
|
+
login(input: IamLoginInput, options?: RequestOptions): Promise<IamTokens | IamTwoFactorRequired>;
|
|
4268
|
+
/** Finish IAM sign-in with a TOTP or one-time backup code. */
|
|
4269
|
+
verifyTwoFactor(input: VerifyIamTwoFactorInput, options?: RequestOptions): Promise<IamTokens>;
|
|
4270
|
+
/** Get WebAuthn assertion options for a pending IAM sign-in. */
|
|
4271
|
+
startPasskeyLogin(tempToken: string, options?: RequestOptions): Promise<IamPasskeyLoginOptions>;
|
|
4272
|
+
/** Finish IAM passkey sign-in and persist the returned IAM session. */
|
|
4273
|
+
finishPasskeyLogin(input: FinishIamPasskeyLoginInput, options?: RequestOptions): Promise<IamTokens>;
|
|
4274
|
+
/** Activate an invited IAM user and choose its password. */
|
|
4275
|
+
activate(input: ActivateIamUserInput, options?: RequestOptions): Promise<ActivateIamUserResult>;
|
|
4276
|
+
/** Rotate an IAM refresh token and persist the returned session. */
|
|
4277
|
+
refresh(refreshToken: string, options?: RequestOptions): Promise<IamTokens>;
|
|
4278
|
+
/** End the current IAM session and clear locally stored credentials. */
|
|
4279
|
+
logout(options?: RequestOptions): Promise<{
|
|
4280
|
+
ok: true;
|
|
4281
|
+
}>;
|
|
4282
|
+
/** Get the current IAM principal, organization and effective access state. */
|
|
4283
|
+
me(options?: RequestOptions): Promise<IamProfile>;
|
|
4284
|
+
/** List this IAM principal's enrolled second-factor methods. */
|
|
4285
|
+
listMethods(options?: RequestOptions): Promise<IamMethodsResult>;
|
|
4286
|
+
/** Begin adding an authenticator app or passkey. */
|
|
4287
|
+
addMethod(input: AddIamTwoFactorMethodInput, options?: RequestOptions): Promise<AddIamTotpResult | AddIamPasskeyResult>;
|
|
4288
|
+
/** Verify and enable a pending IAM authenticator method. */
|
|
4289
|
+
verifyMethod(methodId: string, code: string, options?: RequestOptions): Promise<VerifyIamMethodResult>;
|
|
4290
|
+
/** Finish and enable a pending IAM passkey method. */
|
|
4291
|
+
finishPasskeyEnrollment(methodId: string, credential: FinishIamPasskeyEnrollmentInput, options?: RequestOptions): Promise<VerifyIamMethodResult>;
|
|
4292
|
+
/** List organizations the current root/global operator may administer. */
|
|
4293
|
+
listOrganizations(options?: RequestOptions): Promise<{
|
|
4294
|
+
organizations: OrganizationSummary[];
|
|
4295
|
+
kinds: OrganizationKind[];
|
|
4296
|
+
}>;
|
|
4297
|
+
/** Create an organization. */
|
|
4298
|
+
createOrganization(input: CreateOrganizationInput, options?: RequestOptions): Promise<{
|
|
4299
|
+
organization: Organization;
|
|
4300
|
+
}>;
|
|
4301
|
+
/** Update an organization's name or lifecycle state. */
|
|
4302
|
+
updateOrganization(orgId: string, input: UpdateOrganizationInput, options?: RequestOptions): Promise<{
|
|
4303
|
+
organization: Organization;
|
|
4304
|
+
}>;
|
|
4305
|
+
/** List IAM users and grantable permissions in one organization. */
|
|
4306
|
+
listUsers(orgId: string, options?: RequestOptions): Promise<ListIamUsersResult>;
|
|
4307
|
+
/** Provision an IAM user. The activation code is returned once. */
|
|
4308
|
+
createUser(orgId: string, input: CreateIamUserInput, options?: RequestOptions): Promise<CreateIamUserResult>;
|
|
4309
|
+
/** Grant one organization-scoped permission to an IAM user. */
|
|
4310
|
+
grantPermission(orgId: string, iamUserId: string, permission: AdminPermission, options?: RequestOptions): Promise<{
|
|
4311
|
+
ok: true;
|
|
4312
|
+
permissions: AdminPermission[];
|
|
4313
|
+
}>;
|
|
4314
|
+
/** Revoke one permission and immediately end the IAM user's sessions. */
|
|
4315
|
+
revokePermission(orgId: string, iamUserId: string, permission: AdminPermission, options?: RequestOptions): Promise<{
|
|
4316
|
+
ok: true;
|
|
4317
|
+
revoked: boolean;
|
|
4318
|
+
permissions: AdminPermission[];
|
|
4319
|
+
}>;
|
|
4320
|
+
/** Enable or disable an IAM user. Disabling immediately ends its sessions. */
|
|
4321
|
+
setUserStatus(orgId: string, iamUserId: string, status: IamUserStatus, options?: RequestOptions): Promise<{
|
|
4322
|
+
ok: true;
|
|
4323
|
+
status: IamUserStatus;
|
|
4324
|
+
}>;
|
|
4325
|
+
/** Reissue the one-time activation credential for an unactivated IAM user. */
|
|
4326
|
+
reissueActivation(orgId: string, iamUserId: string, options?: RequestOptions): Promise<{
|
|
4327
|
+
activation: IamActivation;
|
|
4328
|
+
}>;
|
|
4329
|
+
}
|
|
4330
|
+
|
|
4090
4331
|
/**
|
|
4091
4332
|
* Canonical go.mitumba.africa share URLs — the one place clients build listing, store and bale share links.
|
|
4092
4333
|
*
|
|
@@ -4132,6 +4373,7 @@ declare class MitumbaClient {
|
|
|
4132
4373
|
readonly uploads: UploadsModule;
|
|
4133
4374
|
readonly reports: ReportsModule;
|
|
4134
4375
|
readonly wholesale: WholesaleModule;
|
|
4376
|
+
readonly iam: IamModule;
|
|
4135
4377
|
constructor(config: MitumbaClientConfig);
|
|
4136
4378
|
/**
|
|
4137
4379
|
* Set the access token for authenticated requests.
|
|
@@ -4163,4 +4405,4 @@ declare class MitumbaClient {
|
|
|
4163
4405
|
isAuthenticated(): Promise<boolean>;
|
|
4164
4406
|
}
|
|
4165
4407
|
|
|
4166
|
-
export { APIClient, APIError, type APIErrorResponse, type Add2FAMethodInput, type Add2FAMethodResult, type AddAddressInput, type AddDepotInput, type AddPaymentMethodInput, type Address, type AdminAuditEntry, type AdminAuthStrength, type AdminListingItem, 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, CartModule, type Category, type ChangePasswordInput, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutStatus, type CheckoutStatusResponse, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, type CreateListingInput, type CreateMessageBlockInput, type CreateMessageBlockResult, type CreateMessageReportInput, type CreateMessageReportResult, type CreateOrderInput, type CreateReportInput, type CreateReviewInput, type CreateStoreInput, 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 FollowedStore, type ForgotPasswordInput, IDBTokenStore, type InboxRealtimeEvent, type InitiateCheckoutInput, type InitiateCheckoutResponse, type Jwk, type Jwks, type KnownPaymentProvider, LISTING_STATUSES, type LegacyLinkResolution, type LegacyMessageArchiveSummary, type LegacyMessagePage, type LegacyMessageRecord, type LinkedAccount, type LinkedAccountProvider, type ListConversationsParams, type ListThreadMessagesParams, type ListThreadsParams, type Listing, type ListingImage, type ListingStatus, type ListingsFeedParams, ListingsModule, type LoginInput, MailerModule, type MailerTemplate, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportReason, 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, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, type OrderEvent, type OrderHistoryParams, type OrderStatus, OrdersModule, 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 PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegisterInput, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, 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 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 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 VerifyOtpInput, type WebSocketCloseEventLike, type WebSocketFactory, type WebSocketLike, type WebSocketMessageEventLike, type WholesaleAnalytics, type WholesaleDepot, type WholesaleFeedParams, WholesaleModule, type WholesaleStore, type WishlistListing, WishlistsModule, baleShareUrl, createTokenStore, isConsentRequired, isMessagingAPIError, listingShareUrl, storeShareUrl };
|
|
4408
|
+
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 AdminAuditEntry, type AdminAuthStrength, type AdminListingItem, 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, CartModule, type Category, type ChangePasswordInput, type CheckoutNextAction, type CheckoutOrder, type CheckoutPaymentMethod, type CheckoutStatus, type CheckoutStatusResponse, type City, type CompleteOnboardingInput, type CompleteRecoveryResult, type Condition, type Conversation, type ConversationId, type ConversationSummary, type CreateAttachmentUploadInput, type CreateBaleInput, type CreateBaleOrderInput, 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 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 FinishIamPasskeyEnrollmentInput, type FinishIamPasskeyLoginInput, type FollowedStore, type ForgotPasswordInput, IDBTokenStore, type IamActivation, type IamLoginInput, type IamLoginMethod, type IamMethodsResult, IamModule, type IamPasskeyLoginOptions, type IamProfile, 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 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, MemoryTokenStore, type Message, type MessageAttachment, type MessageAuthor, type MessageId, type MessagePage, type MessageReportReason, 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, MitumbaClient, type MitumbaClientConfig, type MpesaInput, type Notification, type NotificationPref, type NotificationType, NotificationsModule, type OAuthAuthorizeInput, type OAuthAuthorizeResult, type OAuthConsent, type OAuthConsentInput, type OAuthConsentRequired, type OAuthConsentRevokeResult, OAuthModule, type OAuthTokenExchangeInput, type OAuthTokenResult, ORDER_STATUSES, type OpenIdConfiguration, type OperatorPermissionGrant, type Order, 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 PresignImageResponse, type ProviderId, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RaiseDisputeInput, type ReadCursorResult, RealtimeProtocolError, RealtimeUnavailableError, type RecoveryStatus, type RecoveryStatusResult, type RegenerateBackupCodesResult, type RegisterInput, type RegistrationResponseJSON, ReportsModule, type RequestOptions, type RequestRecoveryInput, type RequestRecoveryResult, type ResetPasswordInput, type ResolveDisputeInput, 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 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 WholesaleStore, type WishlistListing, WishlistsModule, baleShareUrl, createTokenStore, isConsentRequired, isMessagingAPIError, listingShareUrl, storeShareUrl };
|