@leaflow/sdk 0.0.0-dev.212.gea1bf06 → 0.0.0-dev.214.g13f9d6c

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.
@@ -1,4 +1,4 @@
1
1
  import { type ClientOptions } from "openapi-fetch";
2
2
  import type { paths } from "./schema.js";
3
- /** A client for the billingaccount service. Pass baseUrl to override the address. */
3
+ /** A client for the billing catalog service. Pass baseUrl to override the address. */
4
4
  export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
@@ -1,7 +1,7 @@
1
1
  // Code generated from the contract's servers[0]. DO NOT EDIT.
2
2
  import createClient, {} from "openapi-fetch";
3
3
  const defaultBaseUrl = "https://billing.leaflow.cloud";
4
- /** A client for the billing service. Pass baseUrl to override the address. */
4
+ /** A client for the billing catalog service. Pass baseUrl to override the address. */
5
5
  export function client(options = {}) {
6
6
  return createClient({ baseUrl: defaultBaseUrl, ...options });
7
7
  }
@@ -0,0 +1,29 @@
1
+ export type { paths, components, operations, webhooks } from "./schema.js";
2
+ export { client } from "./client.js";
3
+ import type { operations } from "./schema.js";
4
+ /** The success response body of `GET /catalog/v1/prices`. */
5
+ export type ListPricesResult = operations["list-prices"]["responses"][200]["content"]["application/json"];
6
+ /** The query parameters of `GET /catalog/v1/prices`. */
7
+ export type ListPricesQuery = operations["list-prices"]["parameters"]["query"];
8
+ /** The success response body of `GET /catalog/v1/products`. */
9
+ export type ListProductsResult = operations["list-products"]["responses"][200]["content"]["application/json"];
10
+ /** The success response body of `GET /catalog/v1/products/{productId}`. */
11
+ export type GetProductResult = operations["get-product"]["responses"][200]["content"]["application/json"];
12
+ /** The success response body of `GET /catalog/v1/plans/{planId}`. */
13
+ export type GetPlanResult = operations["get-plan"]["responses"][200]["content"]["application/json"];
14
+ /** The success response body of `GET /catalog/v1/prices/{priceId}`. */
15
+ export type GetPriceResult = operations["get-price"]["responses"][200]["content"]["application/json"];
16
+ /** The success response body of `GET /catalog/v1/plans`. */
17
+ export type ListPlansResult = operations["list-plans"]["responses"][200]["content"]["application/json"];
18
+ /** The success response body of `GET /catalog/v1/plans/{planId}/prices`. */
19
+ export type ListPricesByPlanResult = operations["list-prices-by-plan"]["responses"][200]["content"]["application/json"];
20
+ /** The query parameters of `GET /catalog/v1/plans/{planId}/prices`. */
21
+ export type ListPricesByPlanQuery = operations["list-prices-by-plan"]["parameters"]["query"];
22
+ /** The success response body of `GET /catalog/v1/rate-cards/{rateCardId}/rules`. */
23
+ export type ListRatesResult = operations["list-rates"]["responses"][200]["content"]["application/json"];
24
+ /** The query parameters of `GET /catalog/v1/rate-cards/{rateCardId}/rules`. */
25
+ export type ListRatesQuery = operations["list-rates"]["parameters"]["query"];
26
+ /** The success response body of `POST /catalog/v1/estimates`. */
27
+ export type CreateEstimateResult = operations["create-estimate"]["responses"][200]["content"]["application/json"];
28
+ /** The request body of `POST /catalog/v1/estimates`. */
29
+ export type CreateEstimateBody = NonNullable<operations["create-estimate"]["requestBody"]>["content"]["application/json"];