mmx-cli 1.0.22 → 1.0.25
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.ts +14 -1
- package/dist/mmx.mjs +781 -270
- package/dist/sdk.mjs +76 -22
- package/package.json +8 -3
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,16 @@ export interface VideoV2Task {
|
|
|
300
300
|
export interface QuotaResponse {
|
|
301
301
|
model_remains: QuotaModelRemain[];
|
|
302
302
|
}
|
|
303
|
+
export interface AccountBalanceResponse {
|
|
304
|
+
available_amount: string;
|
|
305
|
+
cash_balance: string;
|
|
306
|
+
voucher_balance: string;
|
|
307
|
+
credit_balance: string;
|
|
308
|
+
owed_amount: string;
|
|
309
|
+
balance_alert_switch: boolean;
|
|
310
|
+
balance_alert_threshold: string;
|
|
311
|
+
base_resp: BaseResp;
|
|
312
|
+
}
|
|
303
313
|
export interface QuotaModelRemain {
|
|
304
314
|
model_name: string;
|
|
305
315
|
start_time: number;
|
|
@@ -464,8 +474,11 @@ export interface ImageDescribeRequest {
|
|
|
464
474
|
declare class VisionSDK extends Client {
|
|
465
475
|
describe(request: ImageDescribeRequest): Promise<VlmResponse>;
|
|
466
476
|
}
|
|
477
|
+
export type QuotaInfoResponse = QuotaResponse | AccountBalanceResponse;
|
|
478
|
+
export declare function isQuotaResponse(response: QuotaInfoResponse): response is QuotaResponse;
|
|
479
|
+
export declare function isAccountBalanceResponse(response: QuotaInfoResponse): response is AccountBalanceResponse;
|
|
467
480
|
declare class QuotaSDK extends Client {
|
|
468
|
-
info(): Promise<
|
|
481
|
+
info(): Promise<QuotaInfoResponse>;
|
|
469
482
|
}
|
|
470
483
|
declare class FileSDK extends Client {
|
|
471
484
|
/**
|