@leaflow/sdk 0.0.0-dev.17.geb299fb → 0.0.0-dev.171.g5d23fa1
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/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +34 -21
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +374 -81
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +69 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1089 -133
- package/dist/billing/v1/client.d.ts +6 -0
- package/dist/billing/v1/client.js +6 -0
- package/dist/billing/v1/index.d.ts +205 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +4976 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +174 -127
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1688 -499
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/fabric/v1/client.d.ts +4 -0
- package/dist/fabric/v1/client.js +7 -0
- package/dist/fabric/v1/index.d.ts +115 -0
- package/dist/fabric/v1/index.js +5 -0
- package/dist/fabric/v1/schema.d.ts +2311 -0
- package/dist/fabric/v1/schema.js +5 -0
- package/dist/fleet/v1/client.d.ts +4 -0
- package/dist/fleet/v1/client.js +7 -0
- package/dist/fleet/v1/index.d.ts +15 -0
- package/dist/fleet/v1/index.js +5 -0
- package/dist/fleet/v1/schema.d.ts +291 -0
- package/dist/fleet/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +14 -7
- package/dist/index.js +22 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +77 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/storage/v1/client.d.ts +4 -0
- package/dist/storage/v1/client.js +7 -0
- package/dist/storage/v1/index.d.ts +35 -0
- package/dist/storage/v1/index.js +5 -0
- package/dist/storage/v1/schema.d.ts +751 -0
- package/dist/storage/v1/schema.js +5 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +34 -10
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientOptions } from "openapi-fetch";
|
|
2
|
+
import type { paths } from "./schema.js";
|
|
3
|
+
/** A client for the canopy service. Pass baseUrl to override the address. */
|
|
4
|
+
export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Code generated from the contract's servers[0]. DO NOT EDIT.
|
|
2
|
+
import createClient, {} from "openapi-fetch";
|
|
3
|
+
const defaultBaseUrl = "https://canopy.leaflow.cloud";
|
|
4
|
+
/** A client for the canopy service. Pass baseUrl to override the address. */
|
|
5
|
+
export function client(options = {}) {
|
|
6
|
+
return createClient({ baseUrl: defaultBaseUrl, ...options });
|
|
7
|
+
}
|
|
@@ -1,48 +1,49 @@
|
|
|
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
|
-
/** `GET /api/v1/keys
|
|
4
|
+
/** The success response body of `GET /api/v1/keys`. */
|
|
4
5
|
export type ListApiKeysResult = operations["list-api-keys"]["responses"][200]["content"]["application/json"];
|
|
5
|
-
/** `GET /api/v1/keys
|
|
6
|
+
/** The query parameters of `GET /api/v1/keys`. */
|
|
6
7
|
export type ListApiKeysQuery = operations["list-api-keys"]["parameters"]["query"];
|
|
7
|
-
/** `POST /api/v1/keys
|
|
8
|
+
/** The success response body of `POST /api/v1/keys`. */
|
|
8
9
|
export type CreateApiKeyResult = operations["create-api-key"]["responses"][201]["content"]["application/json"];
|
|
9
|
-
/** `POST /api/v1/keys
|
|
10
|
+
/** The request body of `POST /api/v1/keys`. */
|
|
10
11
|
export type CreateApiKeyBody = NonNullable<operations["create-api-key"]["requestBody"]>["content"]["application/json"];
|
|
11
|
-
/** `GET /api/v1/keys/{keyId}
|
|
12
|
+
/** The success response body of `GET /api/v1/keys/{keyId}`. */
|
|
12
13
|
export type GetApiKeyResult = operations["get-api-key"]["responses"][200]["content"]["application/json"];
|
|
13
|
-
/** `PATCH /api/v1/keys/{keyId}
|
|
14
|
+
/** The success response body of `PATCH /api/v1/keys/{keyId}`. */
|
|
14
15
|
export type UpdateApiKeyResult = operations["update-api-key"]["responses"][200]["content"]["application/json"];
|
|
15
|
-
/** `PATCH /api/v1/keys/{keyId}
|
|
16
|
+
/** The request body of `PATCH /api/v1/keys/{keyId}`. */
|
|
16
17
|
export type UpdateApiKeyBody = NonNullable<operations["update-api-key"]["requestBody"]>["content"]["application/json"];
|
|
17
|
-
/** `POST /api/v1/keys/{keyId}/disable
|
|
18
|
+
/** The success response body of `POST /api/v1/keys/{keyId}/disable`. */
|
|
18
19
|
export type DisableApiKeyResult = operations["disable-api-key"]["responses"][200]["content"]["application/json"];
|
|
19
|
-
/** `POST /api/v1/keys/{keyId}/enable
|
|
20
|
+
/** The success response body of `POST /api/v1/keys/{keyId}/enable`. */
|
|
20
21
|
export type EnableApiKeyResult = operations["enable-api-key"]["responses"][200]["content"]["application/json"];
|
|
21
|
-
/** `POST /api/v1/keys/{keyId}/revoke
|
|
22
|
+
/** The success response body of `POST /api/v1/keys/{keyId}/revoke`. */
|
|
22
23
|
export type RevokeApiKeyResult = operations["revoke-api-key"]["responses"][200]["content"]["application/json"];
|
|
23
|
-
/** `GET /api/v1/models
|
|
24
|
+
/** The success response body of `GET /api/v1/models`. */
|
|
24
25
|
export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
|
|
25
|
-
/** `GET /api/v1/models/{modelId}
|
|
26
|
+
/** The success response body of `GET /api/v1/models/{modelId}`. */
|
|
26
27
|
export type GetModelResult = operations["get-model"]["responses"][200]["content"]["application/json"];
|
|
27
|
-
/** `GET /api/v1/requests
|
|
28
|
+
/** The success response body of `GET /api/v1/requests`. */
|
|
28
29
|
export type ListRequestsResult = operations["list-requests"]["responses"][200]["content"]["application/json"];
|
|
29
|
-
/** `GET /api/v1/requests
|
|
30
|
+
/** The query parameters of `GET /api/v1/requests`. */
|
|
30
31
|
export type ListRequestsQuery = operations["list-requests"]["parameters"]["query"];
|
|
31
|
-
/** `GET /api/v1/requests/{requestId}
|
|
32
|
+
/** The success response body of `GET /api/v1/requests/{requestId}`. */
|
|
32
33
|
export type GetRequestResult = operations["get-request"]["responses"][200]["content"]["application/json"];
|
|
33
|
-
/** `GET /api/v1/usage/by-api-key
|
|
34
|
+
/** The success response body of `GET /api/v1/usage/by-api-key`. */
|
|
34
35
|
export type ListUsageByApiKeyResult = operations["list-usage-by-api-key"]["responses"][200]["content"]["application/json"];
|
|
35
|
-
/** `GET /api/v1/usage/by-api-key
|
|
36
|
+
/** The query parameters of `GET /api/v1/usage/by-api-key`. */
|
|
36
37
|
export type ListUsageByApiKeyQuery = operations["list-usage-by-api-key"]["parameters"]["query"];
|
|
37
|
-
/** `GET /api/v1/usage/by-model
|
|
38
|
+
/** The success response body of `GET /api/v1/usage/by-model`. */
|
|
38
39
|
export type ListUsageByModelResult = operations["list-usage-by-model"]["responses"][200]["content"]["application/json"];
|
|
39
|
-
/** `GET /api/v1/usage/by-model
|
|
40
|
+
/** The query parameters of `GET /api/v1/usage/by-model`. */
|
|
40
41
|
export type ListUsageByModelQuery = operations["list-usage-by-model"]["parameters"]["query"];
|
|
41
|
-
/** `GET /api/v1/usage/summary
|
|
42
|
+
/** The success response body of `GET /api/v1/usage/summary`. */
|
|
42
43
|
export type GetUsageSummaryResult = operations["get-usage-summary"]["responses"][200]["content"]["application/json"];
|
|
43
|
-
/** `GET /api/v1/usage/summary
|
|
44
|
+
/** The query parameters of `GET /api/v1/usage/summary`. */
|
|
44
45
|
export type GetUsageSummaryQuery = operations["get-usage-summary"]["parameters"]["query"];
|
|
45
|
-
/** `GET /api/v1/usage/timeline
|
|
46
|
+
/** The success response body of `GET /api/v1/usage/timeline`. */
|
|
46
47
|
export type GetUsageTimelineResult = operations["get-usage-timeline"]["responses"][200]["content"]["application/json"];
|
|
47
|
-
/** `GET /api/v1/usage/timeline
|
|
48
|
+
/** The query parameters of `GET /api/v1/usage/timeline`. */
|
|
48
49
|
export type GetUsageTimelineQuery = operations["get-usage-timeline"]["parameters"]["query"];
|
package/dist/canopy/v1/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Code generated by scripts/generate.mjs. DO NOT EDIT.
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
export {};
|
|
3
|
+
// The aliases replace the operations[...] subscript chain with a name. The raw paths /
|
|
4
|
+
// components / operations are exported as well: paths is what createClient<paths>() takes.
|
|
5
|
+
export { client } from "./client.js";
|