@leaflow/sdk 0.57.1 → 0.59.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/README.md +13 -1
- package/dist/billing/v1/client.d.ts +6 -0
- package/dist/billing/v1/client.js +6 -0
- package/dist/billing/v1/index.d.ts +1 -0
- package/dist/billing/v1/index.js +1 -1
- package/dist/billing/v1/schema.d.ts +110 -84
- package/package.json +22 -8
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Leaflow 平台的 TypeScript SDK(`@leaflow/sdk`),由
|
|
|
7
7
|
npm i @leaflow/sdk openapi-fetch
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
包含 Node.js 可用的 JavaScript 客户端和 TypeScript 类型。请求由 `openapi-fetch` 发出,路径与参数由契约约束。
|
|
11
11
|
|
|
12
12
|
```ts
|
|
13
13
|
import createClient from 'openapi-fetch';
|
|
@@ -32,3 +32,15 @@ npm run generate
|
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
契约版本记在 `CONTRACTS_REF`。
|
|
35
|
+
|
|
36
|
+
## Billing
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { client } from "@leaflow/sdk/billing/v1";
|
|
40
|
+
|
|
41
|
+
const billing = client({ baseUrl: billingBaseUrl, headers });
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
公共目录、账户和项目接口使用 `@leaflow/sdk`,运营管理接口使用 `@leaflow/sdk-admin`。服务间 Proto 使用独立的 `@leaflow/billing` 包。
|
|
45
|
+
|
|
46
|
+
本地契约可通过 `CONTRACTS_DIR=/absolute/path/to/contracts npm run generate` 生成。发布时将契约提交号写入 `CONTRACTS_REF`,再使用默认生成命令。
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the billing service. Pass baseUrl to override the address. */
|
|
4
|
+
export declare function client(options: ClientOptions & {
|
|
5
|
+
baseUrl: string;
|
|
6
|
+
}): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
export { client } from "./client.js";
|
|
2
3
|
import type { operations } from "./schema.js";
|
|
3
4
|
/** The success response body of `GET /catalog/v1/products`. */
|
|
4
5
|
export type ListCatalogProductsResult = operations["list-catalog-products"]["responses"][200]["content"]["application/json"];
|
package/dist/billing/v1/index.js
CHANGED
|
@@ -1361,6 +1361,10 @@ export interface components {
|
|
|
1361
1361
|
total_count?: number;
|
|
1362
1362
|
};
|
|
1363
1363
|
CatalogPrice: {
|
|
1364
|
+
/** @description External lookup alias within the service. Existing references use the price ID. */
|
|
1365
|
+
lookup_key?: string;
|
|
1366
|
+
/** Format: uuid */
|
|
1367
|
+
product_id?: string;
|
|
1364
1368
|
/** Format: uuid */
|
|
1365
1369
|
id: string;
|
|
1366
1370
|
/** Format: uuid */
|
|
@@ -1425,8 +1429,7 @@ export interface components {
|
|
|
1425
1429
|
total_count?: number;
|
|
1426
1430
|
};
|
|
1427
1431
|
CatalogRate: {
|
|
1428
|
-
|
|
1429
|
-
meter_key: string;
|
|
1432
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
1430
1433
|
/** @description The unit readings arrive in, such as `core-second`. */
|
|
1431
1434
|
unit?: string;
|
|
1432
1435
|
/** @description The attributes this rate applies to, such as region and machine type. */
|
|
@@ -1455,22 +1458,12 @@ export interface components {
|
|
|
1455
1458
|
/** Format: int64 */
|
|
1456
1459
|
total_count?: number;
|
|
1457
1460
|
};
|
|
1458
|
-
/**
|
|
1459
|
-
* @description Identify what to price either by `price_id`, or by `product_key` together with
|
|
1460
|
-
* `service_product_id`. Supplying both, or neither, is refused.
|
|
1461
|
-
*/
|
|
1461
|
+
/** @description Identify a price directly, or select a price for a plan. Lookup keys are scoped to the product. Account quotes apply applicable contract prices. */
|
|
1462
1462
|
QuoteLine: {
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
/** @description How the owning service identifies the item, such as a machine type. */
|
|
1468
|
-
service_product_id?: string;
|
|
1469
|
-
/**
|
|
1470
|
-
* @description Required for a metered price whose price list covers more than one meter, so that
|
|
1471
|
-
* the intended one is unambiguous.
|
|
1472
|
-
*/
|
|
1473
|
-
meter_key?: string;
|
|
1463
|
+
price?: components["schemas"]["ObjectReference"];
|
|
1464
|
+
product?: components["schemas"]["ObjectReference"];
|
|
1465
|
+
plan?: components["schemas"]["ObjectReference"];
|
|
1466
|
+
meter?: components["schemas"]["ObjectReference"];
|
|
1474
1467
|
/**
|
|
1475
1468
|
* @description The attributes the price depends on — region, instance type, token class.
|
|
1476
1469
|
*
|
|
@@ -1485,13 +1478,7 @@ export interface components {
|
|
|
1485
1478
|
[key: string]: string;
|
|
1486
1479
|
};
|
|
1487
1480
|
/**
|
|
1488
|
-
* @description
|
|
1489
|
-
* same item may be offered metered, prepaid and as a one-off pack, and the pair
|
|
1490
|
-
* `product_key` + `service_product_id` names only the item, not the way.
|
|
1491
|
-
*
|
|
1492
|
-
* Omit it when the item is sold one way only. If what is given matches no price, or
|
|
1493
|
-
* still leaves more than one candidate, the request is refused rather than resolved
|
|
1494
|
-
* by guessing.
|
|
1481
|
+
* @description Narrows the selection when a plan offers more than one billing type.
|
|
1495
1482
|
* @enum {string}
|
|
1496
1483
|
*/
|
|
1497
1484
|
price_type?: "metered" | "prepaid" | "one_time";
|
|
@@ -1508,25 +1495,15 @@ export interface components {
|
|
|
1508
1495
|
*/
|
|
1509
1496
|
duration_seconds?: number;
|
|
1510
1497
|
};
|
|
1511
|
-
/**
|
|
1512
|
-
* @description Price a change to something already running, rather than a new purchase.
|
|
1513
|
-
*
|
|
1514
|
-
* The result states what is still owed for the period already paid for, what the new
|
|
1515
|
-
* configuration costs for the remainder, and the difference in either direction.
|
|
1516
|
-
*/
|
|
1498
|
+
/** @description Estimate a change to a subscription item using a target plan or price. */
|
|
1517
1499
|
QuoteChange: {
|
|
1518
1500
|
/**
|
|
1519
1501
|
* Format: uuid
|
|
1520
1502
|
* @description What is being changed.
|
|
1521
1503
|
*/
|
|
1522
1504
|
subscription_item_id: string;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
* @description The price to move to. Identify it here, or by `service_product_id` below. Supplying
|
|
1526
|
-
* both, or neither, is refused.
|
|
1527
|
-
*/
|
|
1528
|
-
price_id?: string;
|
|
1529
|
-
service_product_id?: string;
|
|
1505
|
+
price?: components["schemas"]["ObjectReference"];
|
|
1506
|
+
plan?: components["schemas"]["ObjectReference"];
|
|
1530
1507
|
/** @description The new quantity. The current one is kept when omitted. */
|
|
1531
1508
|
quantity?: string;
|
|
1532
1509
|
/**
|
|
@@ -1550,6 +1527,10 @@ export interface components {
|
|
|
1550
1527
|
lines: components["schemas"]["QuoteLine"][];
|
|
1551
1528
|
};
|
|
1552
1529
|
QuoteLineResult: {
|
|
1530
|
+
/** @description Tax included in the account quote. Absent in public catalogue estimates. */
|
|
1531
|
+
tax_amount?: components["schemas"]["Money"];
|
|
1532
|
+
/** @description Tax already included in the displayed price. */
|
|
1533
|
+
tax_included_amount?: components["schemas"]["Money"];
|
|
1553
1534
|
/** @description Which line of the request this answers. */
|
|
1554
1535
|
index: number;
|
|
1555
1536
|
/**
|
|
@@ -1587,6 +1568,10 @@ export interface components {
|
|
|
1587
1568
|
currency: string;
|
|
1588
1569
|
};
|
|
1589
1570
|
QuoteChangeResult: {
|
|
1571
|
+
/** @description Tax included in the account quote. Absent in public catalogue estimates. */
|
|
1572
|
+
tax_amount?: components["schemas"]["Money"];
|
|
1573
|
+
/** @description Tax already included in the displayed price. */
|
|
1574
|
+
tax_included_amount?: components["schemas"]["Money"];
|
|
1590
1575
|
index: number;
|
|
1591
1576
|
/** Format: uuid */
|
|
1592
1577
|
subscription_item_id: string;
|
|
@@ -2008,6 +1993,11 @@ export interface components {
|
|
|
2008
1993
|
/** @enum {string} */
|
|
2009
1994
|
InvoiceStatus: "draft" | "open" | "paid" | "void" | "uncollectible";
|
|
2010
1995
|
Invoice: {
|
|
1996
|
+
/**
|
|
1997
|
+
* Format: uuid
|
|
1998
|
+
* @description The purchase that produced this invoice. Absent on usage invoices.
|
|
1999
|
+
*/
|
|
2000
|
+
order_id?: string;
|
|
2011
2001
|
/** Format: uuid */
|
|
2012
2002
|
id: string;
|
|
2013
2003
|
/** Format: int64 */
|
|
@@ -2058,6 +2048,17 @@ export interface components {
|
|
|
2058
2048
|
total_count?: number;
|
|
2059
2049
|
};
|
|
2060
2050
|
InvoiceItem: {
|
|
2051
|
+
/** @description Discount applied to this line before tax. */
|
|
2052
|
+
discount_amount?: string;
|
|
2053
|
+
/** @description Tax on the discounted line, including tax already included in the price. */
|
|
2054
|
+
tax_amount?: string;
|
|
2055
|
+
/** @description The part of tax_amount already included in amount. */
|
|
2056
|
+
tax_included_amount?: string;
|
|
2057
|
+
/**
|
|
2058
|
+
* Format: uuid
|
|
2059
|
+
* @description The original order line. Refunds follow that line's original payment sources.
|
|
2060
|
+
*/
|
|
2061
|
+
order_item_id?: string;
|
|
2061
2062
|
/** Format: uuid */
|
|
2062
2063
|
id: string;
|
|
2063
2064
|
/** @enum {string} */
|
|
@@ -2301,11 +2302,10 @@ export interface components {
|
|
|
2301
2302
|
id: string;
|
|
2302
2303
|
/** Format: uuid */
|
|
2303
2304
|
project_id?: string;
|
|
2304
|
-
|
|
2305
|
+
product: components["schemas"]["ObjectIdentity"];
|
|
2305
2306
|
/** @description Which resource this was charged for. Empty for charges not tied to one. */
|
|
2306
2307
|
resource_id?: string;
|
|
2307
|
-
|
|
2308
|
-
meter_key: string;
|
|
2308
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2309
2309
|
unit?: string;
|
|
2310
2310
|
/** @description The attributes the rate was chosen by, such as region and machine type. */
|
|
2311
2311
|
dimensions?: {
|
|
@@ -2339,7 +2339,7 @@ export interface components {
|
|
|
2339
2339
|
total_count?: number;
|
|
2340
2340
|
};
|
|
2341
2341
|
SpendRow: {
|
|
2342
|
-
|
|
2342
|
+
product?: components["schemas"]["ObjectIdentity"];
|
|
2343
2343
|
/** Format: uuid */
|
|
2344
2344
|
plan_id?: string;
|
|
2345
2345
|
plan_name?: string;
|
|
@@ -2369,7 +2369,7 @@ export interface components {
|
|
|
2369
2369
|
billing_account_id?: number;
|
|
2370
2370
|
/** Format: uuid */
|
|
2371
2371
|
product_id: string;
|
|
2372
|
-
|
|
2372
|
+
product?: components["schemas"]["ObjectIdentity"];
|
|
2373
2373
|
/**
|
|
2374
2374
|
* @description `pending` is a subscription created by an order that has not completed, so it
|
|
2375
2375
|
* appears in the list before anything under it is running.
|
|
@@ -2395,7 +2395,7 @@ export interface components {
|
|
|
2395
2395
|
* membership, which belongs to no single project.
|
|
2396
2396
|
*/
|
|
2397
2397
|
project_id?: string | null;
|
|
2398
|
-
|
|
2398
|
+
product?: components["schemas"]["ObjectIdentity"];
|
|
2399
2399
|
/** Format: uuid */
|
|
2400
2400
|
plan_id: string;
|
|
2401
2401
|
plan_name?: string;
|
|
@@ -2440,10 +2440,10 @@ export interface components {
|
|
|
2440
2440
|
/** @description A resource currently accruing charges by the second. */
|
|
2441
2441
|
ActiveResource: {
|
|
2442
2442
|
resource_id: string;
|
|
2443
|
-
|
|
2443
|
+
product: components["schemas"]["ObjectIdentity"];
|
|
2444
2444
|
/** @description What it is, as its own service names it. */
|
|
2445
2445
|
resource_type?: string;
|
|
2446
|
-
|
|
2446
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2447
2447
|
unit?: string;
|
|
2448
2448
|
/** @description How much is held — cores, MiB, cards. Not how much has been used. */
|
|
2449
2449
|
quantity: string;
|
|
@@ -2468,6 +2468,10 @@ export interface components {
|
|
|
2468
2468
|
/** @enum {string} */
|
|
2469
2469
|
OrderState: "pending" | "paid" | "fulfilled" | "failed" | "canceled";
|
|
2470
2470
|
Order: {
|
|
2471
|
+
/** @description Total tax after discounts, including any tax already included in the price. */
|
|
2472
|
+
tax_amount?: string;
|
|
2473
|
+
/** @description The part of tax_amount already included in gross_amount; it is not charged again. */
|
|
2474
|
+
tax_included_amount?: string;
|
|
2471
2475
|
/** Format: uuid */
|
|
2472
2476
|
id: string;
|
|
2473
2477
|
/**
|
|
@@ -2638,8 +2642,8 @@ export interface components {
|
|
|
2638
2642
|
* measured against **the qualifying lines only**, not the order total.
|
|
2639
2643
|
*/
|
|
2640
2644
|
Applicability: {
|
|
2641
|
-
|
|
2642
|
-
|
|
2645
|
+
product_ids?: string[];
|
|
2646
|
+
plan_ids?: string[];
|
|
2643
2647
|
price_types?: string[];
|
|
2644
2648
|
operations?: components["schemas"]["PurchaseOperation"][];
|
|
2645
2649
|
/** @description Restricted to your first purchase of a covered product. */
|
|
@@ -2676,6 +2680,10 @@ export interface components {
|
|
|
2676
2680
|
flat_amount?: components["schemas"]["Money"];
|
|
2677
2681
|
};
|
|
2678
2682
|
OrderItem: {
|
|
2683
|
+
/** @description Total tax after discounts, including any tax already included in the price. */
|
|
2684
|
+
tax_amount?: string;
|
|
2685
|
+
/** @description The part of tax_amount already included in gross_amount; it is not charged again. */
|
|
2686
|
+
tax_included_amount?: string;
|
|
2679
2687
|
/** Format: uuid */
|
|
2680
2688
|
id: string;
|
|
2681
2689
|
/** Format: uuid */
|
|
@@ -2687,11 +2695,7 @@ export interface components {
|
|
|
2687
2695
|
* @description Which service this line belongs to.
|
|
2688
2696
|
*/
|
|
2689
2697
|
product_id?: string;
|
|
2690
|
-
|
|
2691
|
-
* @description How that service is named, such as `compute`. Read from the catalogue rather than
|
|
2692
|
-
* recorded on the line, so it always matches the service it points at.
|
|
2693
|
-
*/
|
|
2694
|
-
product_key?: string;
|
|
2698
|
+
product?: components["schemas"]["ObjectIdentity"];
|
|
2695
2699
|
/**
|
|
2696
2700
|
* Format: uuid
|
|
2697
2701
|
* @description Which plan was bought.
|
|
@@ -2720,18 +2724,20 @@ export interface components {
|
|
|
2720
2724
|
total_count?: number;
|
|
2721
2725
|
};
|
|
2722
2726
|
Allowance: {
|
|
2727
|
+
/**
|
|
2728
|
+
* @description Allowed values for selected meter dimensions, such as region or storage class.
|
|
2729
|
+
* Every specified dimension must match one listed value. Omitted dimensions are
|
|
2730
|
+
* unrestricted. An empty map covers all dimensions of this meter.
|
|
2731
|
+
*/
|
|
2732
|
+
dimension_values?: {
|
|
2733
|
+
[key: string]: string[];
|
|
2734
|
+
};
|
|
2723
2735
|
/** Format: uuid */
|
|
2724
2736
|
id: string;
|
|
2725
2737
|
/** Format: int64 */
|
|
2726
2738
|
billing_account_id?: number;
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
* name is unique only within its own service, so two allowances for `egress_bytes`
|
|
2730
|
-
* may belong to different services and cover different traffic.
|
|
2731
|
-
*/
|
|
2732
|
-
product_key: string;
|
|
2733
|
-
/** @description What it covers, such as `egress_bytes`. */
|
|
2734
|
-
meter_key: string;
|
|
2739
|
+
product: components["schemas"]["ObjectIdentity"];
|
|
2740
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2735
2741
|
/** @description The unit it is counted in, such as `MiB`. */
|
|
2736
2742
|
unit?: string;
|
|
2737
2743
|
/**
|
|
@@ -2768,7 +2774,7 @@ export interface components {
|
|
|
2768
2774
|
id: string;
|
|
2769
2775
|
/** Format: uuid */
|
|
2770
2776
|
usage_charge_id?: string;
|
|
2771
|
-
|
|
2777
|
+
meter?: components["schemas"]["ObjectIdentity"];
|
|
2772
2778
|
quantity: string;
|
|
2773
2779
|
/** Format: date-time */
|
|
2774
2780
|
consumed_at: string;
|
|
@@ -2781,7 +2787,15 @@ export interface components {
|
|
|
2781
2787
|
total_count?: number;
|
|
2782
2788
|
};
|
|
2783
2789
|
IncludedAllowance: {
|
|
2784
|
-
|
|
2790
|
+
/**
|
|
2791
|
+
* @description Allowed values for selected meter dimensions, such as region or storage class.
|
|
2792
|
+
* Every specified dimension must match one listed value. Omitted dimensions are
|
|
2793
|
+
* unrestricted. An empty map covers all dimensions of this meter.
|
|
2794
|
+
*/
|
|
2795
|
+
dimension_values?: {
|
|
2796
|
+
[key: string]: string[];
|
|
2797
|
+
};
|
|
2798
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2785
2799
|
unit?: string;
|
|
2786
2800
|
/** @description How much is included. */
|
|
2787
2801
|
quantity: string;
|
|
@@ -2795,7 +2809,7 @@ export interface components {
|
|
|
2795
2809
|
valid_days?: number;
|
|
2796
2810
|
};
|
|
2797
2811
|
IncludedFeature: {
|
|
2798
|
-
|
|
2812
|
+
feature: components["schemas"]["ObjectIdentity"];
|
|
2799
2813
|
name: string;
|
|
2800
2814
|
name_translations?: components["schemas"]["Translations"];
|
|
2801
2815
|
description?: string;
|
|
@@ -2815,13 +2829,8 @@ export interface components {
|
|
|
2815
2829
|
unit?: string;
|
|
2816
2830
|
};
|
|
2817
2831
|
Entitlement: {
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
* service.
|
|
2821
|
-
*/
|
|
2822
|
-
product_key: string;
|
|
2823
|
-
/** @description What calling code tests against. */
|
|
2824
|
-
feature_key: string;
|
|
2832
|
+
product: components["schemas"]["ObjectIdentity"];
|
|
2833
|
+
feature: components["schemas"]["ObjectIdentity"];
|
|
2825
2834
|
name?: string;
|
|
2826
2835
|
enabled: boolean;
|
|
2827
2836
|
/**
|
|
@@ -2857,6 +2866,17 @@ export interface components {
|
|
|
2857
2866
|
/** Format: int64 */
|
|
2858
2867
|
total_count?: number;
|
|
2859
2868
|
};
|
|
2869
|
+
/** @description Identify an object by ID or lookup key, exactly one. A lookup key requires the owning product. */
|
|
2870
|
+
ObjectReference: {
|
|
2871
|
+
/** Format: uuid */
|
|
2872
|
+
id?: string;
|
|
2873
|
+
lookup_key?: string;
|
|
2874
|
+
};
|
|
2875
|
+
ObjectIdentity: {
|
|
2876
|
+
/** Format: uuid */
|
|
2877
|
+
id: string;
|
|
2878
|
+
lookup_key?: string;
|
|
2879
|
+
};
|
|
2860
2880
|
};
|
|
2861
2881
|
responses: {
|
|
2862
2882
|
/** @description Unchanged since the `ETag` that was sent. No body. */
|
|
@@ -3050,7 +3070,8 @@ export interface operations {
|
|
|
3050
3070
|
page?: components["parameters"]["Page"];
|
|
3051
3071
|
/** @description How many per page, 100 at most. */
|
|
3052
3072
|
page_size?: components["parameters"]["PageSize"];
|
|
3053
|
-
|
|
3073
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
3074
|
+
meter?: components["schemas"]["ObjectReference"];
|
|
3054
3075
|
/** @description Return the rates in effect at this moment. Defaults to now. */
|
|
3055
3076
|
at?: string;
|
|
3056
3077
|
};
|
|
@@ -3872,8 +3893,8 @@ export interface operations {
|
|
|
3872
3893
|
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3873
3894
|
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3874
3895
|
project_id?: string;
|
|
3875
|
-
/** @description
|
|
3876
|
-
|
|
3896
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
3897
|
+
product?: components["schemas"]["ObjectReference"];
|
|
3877
3898
|
resource_id?: string;
|
|
3878
3899
|
from?: components["parameters"]["From"];
|
|
3879
3900
|
/** @description Exclusive. */
|
|
@@ -4096,7 +4117,8 @@ export interface operations {
|
|
|
4096
4117
|
* the owning service and not here.
|
|
4097
4118
|
*/
|
|
4098
4119
|
group_by?: "product" | "plan" | "resource";
|
|
4099
|
-
|
|
4120
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4121
|
+
product?: components["schemas"]["ObjectReference"];
|
|
4100
4122
|
/** @description 1-based page number; the first page when omitted. */
|
|
4101
4123
|
page?: components["parameters"]["Page"];
|
|
4102
4124
|
/** @description How many per page, 100 at most. */
|
|
@@ -4130,13 +4152,10 @@ export interface operations {
|
|
|
4130
4152
|
/** @description How many per page, 100 at most. */
|
|
4131
4153
|
page_size?: components["parameters"]["PageSize"];
|
|
4132
4154
|
resource_id?: string;
|
|
4133
|
-
/**
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
*/
|
|
4138
|
-
product_key?: string;
|
|
4139
|
-
meter_key?: string;
|
|
4155
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4156
|
+
product?: components["schemas"]["ObjectReference"];
|
|
4157
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4158
|
+
meter?: components["schemas"]["ObjectReference"];
|
|
4140
4159
|
from?: components["parameters"]["From"];
|
|
4141
4160
|
/** @description Exclusive. */
|
|
4142
4161
|
to?: components["parameters"]["To"];
|
|
@@ -4367,8 +4386,11 @@ export interface operations {
|
|
|
4367
4386
|
page_size?: components["parameters"]["PageSize"];
|
|
4368
4387
|
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
4369
4388
|
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
4370
|
-
|
|
4389
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4390
|
+
meter?: components["schemas"]["ObjectReference"];
|
|
4371
4391
|
status?: "active" | "depleted" | "expired" | "voided";
|
|
4392
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4393
|
+
product?: components["schemas"]["ObjectReference"];
|
|
4372
4394
|
};
|
|
4373
4395
|
header?: never;
|
|
4374
4396
|
path?: never;
|
|
@@ -4582,7 +4604,10 @@ export interface operations {
|
|
|
4582
4604
|
page?: components["parameters"]["Page"];
|
|
4583
4605
|
/** @description How many per page, 100 at most. */
|
|
4584
4606
|
page_size?: components["parameters"]["PageSize"];
|
|
4585
|
-
|
|
4607
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4608
|
+
meter?: components["schemas"]["ObjectReference"];
|
|
4609
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4610
|
+
product?: components["schemas"]["ObjectReference"];
|
|
4586
4611
|
};
|
|
4587
4612
|
header?: never;
|
|
4588
4613
|
path: {
|
|
@@ -4644,7 +4669,8 @@ export interface operations {
|
|
|
4644
4669
|
page?: components["parameters"]["Page"];
|
|
4645
4670
|
/** @description How many per page, 100 at most. */
|
|
4646
4671
|
page_size?: components["parameters"]["PageSize"];
|
|
4647
|
-
|
|
4672
|
+
/** @description Filter by ID or lookup key. A lookup key is scoped to the product. */
|
|
4673
|
+
product?: components["schemas"]["ObjectReference"];
|
|
4648
4674
|
};
|
|
4649
4675
|
header?: never;
|
|
4650
4676
|
path: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leaflow/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"description": "Leaflow 平台 API 的 TypeScript SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/assistant/v1/index.d.ts",
|
|
24
24
|
"default": "./dist/assistant/v1/index.js"
|
|
25
25
|
},
|
|
26
|
+
"./billing/v1": {
|
|
27
|
+
"types": "./dist/billing/v1/index.d.ts",
|
|
28
|
+
"default": "./dist/billing/v1/index.js"
|
|
29
|
+
},
|
|
26
30
|
"./canopy/v1": {
|
|
27
31
|
"types": "./dist/canopy/v1/index.d.ts",
|
|
28
32
|
"default": "./dist/canopy/v1/index.js"
|
|
@@ -31,6 +35,14 @@
|
|
|
31
35
|
"types": "./dist/compute/v1/index.d.ts",
|
|
32
36
|
"default": "./dist/compute/v1/index.js"
|
|
33
37
|
},
|
|
38
|
+
"./dns/v1": {
|
|
39
|
+
"types": "./dist/dns/v1/index.d.ts",
|
|
40
|
+
"default": "./dist/dns/v1/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./fleet/v1": {
|
|
43
|
+
"types": "./dist/fleet/v1/index.d.ts",
|
|
44
|
+
"default": "./dist/fleet/v1/index.js"
|
|
45
|
+
},
|
|
34
46
|
"./iam/v1": {
|
|
35
47
|
"types": "./dist/iam/v1/index.d.ts",
|
|
36
48
|
"default": "./dist/iam/v1/index.js"
|
|
@@ -39,6 +51,14 @@
|
|
|
39
51
|
"types": "./dist/monitoring/v1/index.d.ts",
|
|
40
52
|
"default": "./dist/monitoring/v1/index.js"
|
|
41
53
|
},
|
|
54
|
+
"./notification/v1": {
|
|
55
|
+
"types": "./dist/notification/v1/index.d.ts",
|
|
56
|
+
"default": "./dist/notification/v1/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./support/v1": {
|
|
59
|
+
"types": "./dist/support/v1/index.d.ts",
|
|
60
|
+
"default": "./dist/support/v1/index.js"
|
|
61
|
+
},
|
|
42
62
|
"./tunnel/v1": {
|
|
43
63
|
"types": "./dist/tunnel/v1/index.d.ts",
|
|
44
64
|
"default": "./dist/tunnel/v1/index.js"
|
|
@@ -56,7 +76,6 @@
|
|
|
56
76
|
"format:check": "prettier --check gen scripts"
|
|
57
77
|
},
|
|
58
78
|
"devDependencies": {
|
|
59
|
-
"openapi-fetch": "^0.17.0",
|
|
60
79
|
"openapi-typescript": "7.13.0",
|
|
61
80
|
"prettier": "^3.6.2",
|
|
62
81
|
"typescript": "^5.9.3",
|
|
@@ -65,12 +84,7 @@
|
|
|
65
84
|
"publishConfig": {
|
|
66
85
|
"access": "public"
|
|
67
86
|
},
|
|
68
|
-
"
|
|
87
|
+
"dependencies": {
|
|
69
88
|
"openapi-fetch": "^0.17.0"
|
|
70
|
-
},
|
|
71
|
-
"peerDependenciesMeta": {
|
|
72
|
-
"openapi-fetch": {
|
|
73
|
-
"optional": true
|
|
74
|
-
}
|
|
75
89
|
}
|
|
76
90
|
}
|