@leaflow/sdk 0.48.0 → 0.49.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.
|
@@ -30,6 +30,8 @@ export type StartTopUpResult = operations["start-top-up"]["responses"][200]["con
|
|
|
30
30
|
export type StartTopUpBody = NonNullable<operations["start-top-up"]["requestBody"]>["content"]["application/json"];
|
|
31
31
|
/** `GET /account/v1/billing-accounts/{accountKey}/charges` 成功时的响应体。 */
|
|
32
32
|
export type ListChargesResult = operations["list-charges"]["responses"][200]["content"]["application/json"];
|
|
33
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/charges` 的查询参数。 */
|
|
34
|
+
export type ListChargesQuery = operations["list-charges"]["parameters"]["query"];
|
|
33
35
|
/** `GET /account/v1/billing-accounts/{accountKey}/charges/{chargeId}/usage` 成功时的响应体。 */
|
|
34
36
|
export type GetChargeUsageResult = operations["get-charge-usage"]["responses"][200]["content"]["application/json"];
|
|
35
37
|
/** `GET /account/v1/billing-accounts/{accountKey}/invoices` 成功时的响应体。 */
|
|
@@ -1519,7 +1519,20 @@ export interface components {
|
|
|
1519
1519
|
ChargeList: {
|
|
1520
1520
|
currency: components["schemas"]["Currency"];
|
|
1521
1521
|
charges: components["schemas"]["Charge"][];
|
|
1522
|
-
/**
|
|
1522
|
+
/**
|
|
1523
|
+
* Format: int64
|
|
1524
|
+
* @description How many charges there are in total, across every page.
|
|
1525
|
+
*
|
|
1526
|
+
* Without it, "is there another page" has to be guessed from whether this one came back
|
|
1527
|
+
* full — and that guess turns into one extra fetch of an empty page whenever the last page
|
|
1528
|
+
* happens to be exactly full.
|
|
1529
|
+
*/
|
|
1530
|
+
total_count?: number;
|
|
1531
|
+
/**
|
|
1532
|
+
* @description The sum over the **whole period**, not this page — it is the same number as `unsettled`
|
|
1533
|
+
* on the balance, and paging must not change it. A page-scoped sum would disagree with the
|
|
1534
|
+
* balance card sitting next to it, and there would be no way to tell which one to believe.
|
|
1535
|
+
*/
|
|
1523
1536
|
total: string;
|
|
1524
1537
|
};
|
|
1525
1538
|
/** @enum {string} */
|
|
@@ -2082,7 +2095,18 @@ export interface operations {
|
|
|
2082
2095
|
};
|
|
2083
2096
|
"list-charges": {
|
|
2084
2097
|
parameters: {
|
|
2085
|
-
query?:
|
|
2098
|
+
query?: {
|
|
2099
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2100
|
+
page?: number;
|
|
2101
|
+
/**
|
|
2102
|
+
* @description How many charges per page. Defaults to a full page.
|
|
2103
|
+
*
|
|
2104
|
+
* Charge count grows with resource count — an account running dozens of machines produces
|
|
2105
|
+
* hundreds of lines in a period, and a screen shows a dozen. Fetching all of them on every
|
|
2106
|
+
* visit carries data nothing displays.
|
|
2107
|
+
*/
|
|
2108
|
+
page_size?: number;
|
|
2109
|
+
};
|
|
2086
2110
|
header?: never;
|
|
2087
2111
|
path: {
|
|
2088
2112
|
/**
|