@leaflow/sdk 0.0.0-dev.11.g7f2d603

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.
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
@@ -0,0 +1,48 @@
1
+ export type { paths, components, operations, webhooks } from "./schema.js";
2
+ import type { operations } from "./schema.js";
3
+ /** `GET /api/v1/keys` 成功时的响应体。 */
4
+ export type ListApiKeysResult = operations["list-api-keys"]["responses"][200]["content"]["application/json"];
5
+ /** `GET /api/v1/keys` 的查询参数。 */
6
+ export type ListApiKeysQuery = operations["list-api-keys"]["parameters"]["query"];
7
+ /** `POST /api/v1/keys` 成功时的响应体。 */
8
+ export type CreateApiKeyResult = operations["create-api-key"]["responses"][201]["content"]["application/json"];
9
+ /** `POST /api/v1/keys` 的请求体。 */
10
+ export type CreateApiKeyBody = NonNullable<operations["create-api-key"]["requestBody"]>["content"]["application/json"];
11
+ /** `GET /api/v1/keys/{keyId}` 成功时的响应体。 */
12
+ export type GetApiKeyResult = operations["get-api-key"]["responses"][200]["content"]["application/json"];
13
+ /** `PATCH /api/v1/keys/{keyId}` 成功时的响应体。 */
14
+ export type UpdateApiKeyResult = operations["update-api-key"]["responses"][200]["content"]["application/json"];
15
+ /** `PATCH /api/v1/keys/{keyId}` 的请求体。 */
16
+ export type UpdateApiKeyBody = NonNullable<operations["update-api-key"]["requestBody"]>["content"]["application/json"];
17
+ /** `POST /api/v1/keys/{keyId}/disable` 成功时的响应体。 */
18
+ export type DisableApiKeyResult = operations["disable-api-key"]["responses"][200]["content"]["application/json"];
19
+ /** `POST /api/v1/keys/{keyId}/enable` 成功时的响应体。 */
20
+ export type EnableApiKeyResult = operations["enable-api-key"]["responses"][200]["content"]["application/json"];
21
+ /** `POST /api/v1/keys/{keyId}/revoke` 成功时的响应体。 */
22
+ export type RevokeApiKeyResult = operations["revoke-api-key"]["responses"][200]["content"]["application/json"];
23
+ /** `GET /api/v1/models` 成功时的响应体。 */
24
+ export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
25
+ /** `GET /api/v1/models/{modelId}` 成功时的响应体。 */
26
+ export type GetModelResult = operations["get-model"]["responses"][200]["content"]["application/json"];
27
+ /** `GET /api/v1/requests` 成功时的响应体。 */
28
+ export type ListRequestsResult = operations["list-requests"]["responses"][200]["content"]["application/json"];
29
+ /** `GET /api/v1/requests` 的查询参数。 */
30
+ export type ListRequestsQuery = operations["list-requests"]["parameters"]["query"];
31
+ /** `GET /api/v1/requests/{requestId}` 成功时的响应体。 */
32
+ export type GetRequestResult = operations["get-request"]["responses"][200]["content"]["application/json"];
33
+ /** `GET /api/v1/usage/by-api-key` 成功时的响应体。 */
34
+ export type ListUsageByApiKeyResult = operations["list-usage-by-api-key"]["responses"][200]["content"]["application/json"];
35
+ /** `GET /api/v1/usage/by-api-key` 的查询参数。 */
36
+ export type ListUsageByApiKeyQuery = operations["list-usage-by-api-key"]["parameters"]["query"];
37
+ /** `GET /api/v1/usage/by-model` 成功时的响应体。 */
38
+ export type ListUsageByModelResult = operations["list-usage-by-model"]["responses"][200]["content"]["application/json"];
39
+ /** `GET /api/v1/usage/by-model` 的查询参数。 */
40
+ export type ListUsageByModelQuery = operations["list-usage-by-model"]["parameters"]["query"];
41
+ /** `GET /api/v1/usage/summary` 成功时的响应体。 */
42
+ export type GetUsageSummaryResult = operations["get-usage-summary"]["responses"][200]["content"]["application/json"];
43
+ /** `GET /api/v1/usage/summary` 的查询参数。 */
44
+ export type GetUsageSummaryQuery = operations["get-usage-summary"]["parameters"]["query"];
45
+ /** `GET /api/v1/usage/timeline` 成功时的响应体。 */
46
+ export type GetUsageTimelineResult = operations["get-usage-timeline"]["responses"][200]["content"]["application/json"];
47
+ /** `GET /api/v1/usage/timeline` 的查询参数。 */
48
+ export type GetUsageTimelineQuery = operations["get-usage-timeline"]["parameters"]["query"];
@@ -0,0 +1,5 @@
1
+ // 由 scripts/generate-ts.mjs 生成,不要手改。
2
+ //
3
+ // 别名把 operations[...] 那串下标换成一个名字。原始的 paths / components / operations 也
4
+ // 一并导出:paths 是给 openapi-fetch 的 createClient<paths>() 用的。
5
+ export {};