@leaflow/sdk 0.26.0 → 0.28.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/dist/assistant/v1/schema.d.ts +3 -1
- package/dist/billing/v1/index.d.ts +38 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +1258 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +4 -0
- package/dist/iam/v1/schema.d.ts +76 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -934,6 +934,8 @@ export interface components {
|
|
|
934
934
|
ContextResource: {
|
|
935
935
|
/** Format: int64 */
|
|
936
936
|
compactAt: number | null;
|
|
937
|
+
/** @description What kinds of input the model behind this conversation accepts, as modality names: text, image. A client uses this to decide whether a control exists — an attach button on a model that cannot read pictures is a control whose only outcome is a refusal, and the refusal arrives after somebody has chosen a file. An empty list is not a claim that the model reads nothing: it means this deployment has not stated the modalities, or the conversation names a model that has since been retired. Treat empty as unknown and keep the control, because hiding one for a reason nobody can see is worse than a refusal that says why. */
|
|
938
|
+
inputModalities: string[];
|
|
937
939
|
model: string;
|
|
938
940
|
/** Format: int64 */
|
|
939
941
|
used: number | null;
|
|
@@ -1197,7 +1199,7 @@ export interface components {
|
|
|
1197
1199
|
};
|
|
1198
1200
|
/** @description The function object from the OpenAI tools format. */
|
|
1199
1201
|
ClientFunctionRequest: {
|
|
1200
|
-
/** @description What the action does, written for the model. An action without one can only be guessed at from its name. */
|
|
1202
|
+
/** @description What the action does, written for the model. An action without one can only be guessed at from its name. The 1024 ceiling is OpenAI's own limit on `tools[].function.description`, not a number chosen here: over it the upstream call fails with `string_above_max_length`, and refusing at submission is the clearer of the two places to refuse. It was 500, which ran out at about six enumerated entries — an action that must list what it accepts had nowhere to put the list. */
|
|
1201
1203
|
description: string;
|
|
1202
1204
|
/** @description The MCP and Anthropic spelling of `parameters`. Give one or the other, not both. */
|
|
1203
1205
|
inputSchema?: {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export type { paths, components, operations, webhooks } from "./schema.js";
|
|
2
|
+
import type { operations } from "./schema.js";
|
|
3
|
+
/** `GET /account/v1/billing-accounts` 成功时的响应体。 */
|
|
4
|
+
export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
|
|
5
|
+
/** `POST /account/v1/billing-accounts` 成功时的响应体。 */
|
|
6
|
+
export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][200]["content"]["application/json"];
|
|
7
|
+
/** `POST /account/v1/billing-accounts` 的请求体。 */
|
|
8
|
+
export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
9
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/balance` 成功时的响应体。 */
|
|
10
|
+
export type ReadBillingAccountBalanceResult = operations["read-billing-account-balance"]["responses"][200]["content"]["application/json"];
|
|
11
|
+
/** `PUT /account/v1/billing-accounts/{accountKey}/projects/{projectId}` 成功时的响应体。 */
|
|
12
|
+
export type BindProjectToBillingAccountResult = operations["bind-project-to-billing-account"]["responses"][200]["content"]["application/json"];
|
|
13
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/top-ups` 成功时的响应体。 */
|
|
14
|
+
export type StartTopUpResult = operations["start-top-up"]["responses"][200]["content"]["application/json"];
|
|
15
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/top-ups` 的请求体。 */
|
|
16
|
+
export type StartTopUpBody = NonNullable<operations["start-top-up"]["requestBody"]>["content"]["application/json"];
|
|
17
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/charges` 成功时的响应体。 */
|
|
18
|
+
export type ListChargesResult = operations["list-charges"]["responses"][200]["content"]["application/json"];
|
|
19
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/invoices` 成功时的响应体。 */
|
|
20
|
+
export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
|
|
21
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/invoices/{invoiceId}` 成功时的响应体。 */
|
|
22
|
+
export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
|
|
23
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/subscription` 成功时的响应体。 */
|
|
24
|
+
export type ReadSubscriptionResult = operations["read-subscription"]["responses"][200]["content"]["application/json"];
|
|
25
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/subscription/cancel` 成功时的响应体。 */
|
|
26
|
+
export type CancelSubscriptionResult = operations["cancel-subscription"]["responses"][200]["content"]["application/json"];
|
|
27
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/subscription/cancel` 的查询参数。 */
|
|
28
|
+
export type CancelSubscriptionQuery = operations["cancel-subscription"]["parameters"]["query"];
|
|
29
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/top-ups/{paymentId}` 成功时的响应体。 */
|
|
30
|
+
export type ReadTopUpResult = operations["read-top-up"]["responses"][200]["content"]["application/json"];
|
|
31
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/card` 成功时的响应体。 */
|
|
32
|
+
export type StartCardSetupResult = operations["start-card-setup"]["responses"][200]["content"]["application/json"];
|
|
33
|
+
/** `GET /account/v1/billing-accounts/{accountKey}/offers` 成功时的响应体。 */
|
|
34
|
+
export type ListOffersResult = operations["list-offers"]["responses"][200]["content"]["application/json"];
|
|
35
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/offers/{offerKey}/purchase` 成功时的响应体。 */
|
|
36
|
+
export type PurchaseOfferResult = operations["purchase-offer"]["responses"][200]["content"]["application/json"];
|
|
37
|
+
/** `POST /account/v1/billing-accounts/{accountKey}/offers/{offerKey}/purchase` 的查询参数。 */
|
|
38
|
+
export type PurchaseOfferQuery = operations["purchase-offer"]["parameters"]["query"];
|