@leaflow/sdk 0.0.0-dev.191.g39f21ec → 0.0.0-dev.195.gffa7069

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,6 +1,8 @@
1
1
  export type { paths, components, operations, webhooks } from "./schema.js";
2
2
  export { client } from "./client.js";
3
3
  import type { operations } from "./schema.js";
4
+ /** The success response body of `GET /api/v1/models`. */
5
+ export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
4
6
  /** The success response body of `POST /api/v1/attachments`. */
5
7
  export type UploadAttachmentResult = operations["upload-attachment"]["responses"][201]["content"]["application/json"];
6
8
  /** The query parameters of `POST /api/v1/attachments`. */
@@ -3,6 +3,30 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
+ "/api/v1/models": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ /**
14
+ * List assistant model choices
15
+ * @description Returns Canopy's models filtered by Assistant's saved allowlist and selection policy. There is no separately maintained assistant catalogue. The complete list is not paginated and is ordered by displayName, then id.
16
+ *
17
+ * When allowModelSelection is true, models contains allowed Canopy models that remain callable, support tools and have positive context and output limits. When false, only the default is returned if it meets those conditions. defaultModelId is null if no usable default is known. Disallowed, retired and incompatible models are omitted, while saved preferences may still reference them.
18
+ *
19
+ * This operation reads capabilities without making an inference request. It does not check live provider health or the inference key's model restrictions. If Canopy cannot be read and no usable cached snapshot exists, it returns 503 with code MODEL_CATALOG_UNAVAILABLE; a failed read is not an empty catalogue. An empty allowlist returns an empty list without needing Canopy. Supplier connection details and credentials are not returned.
20
+ */
21
+ get: operations["list-models"];
22
+ put?: never;
23
+ post?: never;
24
+ delete?: never;
25
+ options?: never;
26
+ head?: never;
27
+ patch?: never;
28
+ trace?: never;
29
+ };
6
30
  "/api/v1/attachments": {
7
31
  parameters: {
8
32
  query?: never;
@@ -491,7 +515,12 @@ export interface paths {
491
515
  */
492
516
  get: operations["list-threads"];
493
517
  put?: never;
494
- /** Create a conversation */
518
+ /**
519
+ * Create a conversation
520
+ * @description Omit preferredModelId or set it to null to follow the platform default. A non-null preference is accepted only while model selection is enabled; otherwise the request fails with 403 and code MODEL_SELECTION_DISABLED.
521
+ *
522
+ * A well-formed preference for a Canopy model that is no longer allowed or has been retired or removed is retained and uses the default when a turn starts. This also handles a catalogue change between displaying the selector and submitting the choice. Creating a conversation does not contact a model provider and remains possible when generation is unavailable.
523
+ */
495
524
  post: operations["create-thread"];
496
525
  delete?: never;
497
526
  options?: never;
@@ -528,7 +557,13 @@ export interface paths {
528
557
  head?: never;
529
558
  /**
530
559
  * Update conversation settings
531
- * @description Changes the title, the approval mode, and whether the conversation is archived. A change to the approval mode takes effect from the next turn; a turn already running keeps the settings it started with.
560
+ * @description Changes the title, folder, approval mode, model preference, and whether the conversation is archived. Approval and model preference changes take effect from the next turn; a turn already running keeps the settings it started with.
561
+ *
562
+ * Omit preferredModelId to leave the preference unchanged, or set it to null to follow the platform default. A non-null preference is accepted only while model selection is enabled; otherwise the whole request fails with 403 and code MODEL_SELECTION_DISABLED and none of its fields are changed. Clearing a preference remains allowed while selection is disabled. A well-formed preference for a disallowed, retired or removed Canopy model is retained and falls back to the default when used.
563
+ *
564
+ * Model switching is allowed on an existing conversation, including while a turn is generating or waiting for approval or an answer. The response immediately returns the saved preferredModelId, while model continues to identify the running turn's effective model until it finishes. Messages queued into that running turn also keep its captured model choices. The next turn uses the latest saved preference.
565
+ *
566
+ * Changing the preference does not create a new conversation, start a turn, call a model provider, clear the transcript, or rewrite historical model attribution. Before the next turn sends its first request to the selected model, the service checks that model's input capabilities and usable context budget. A switch to a smaller window may require compaction under the compaction policy above; saving the preference alone does not establish that the conversation fits.
532
567
  *
533
568
  * Archiving makes a conversation read-only: it stays in the list under "archived", stays readable, and the assistant can still find it when it searches past conversations — it just takes no new input. Unarchive it to continue. Archiving fails while a turn is running; stop it first.
534
569
  */
@@ -676,6 +711,39 @@ export interface paths {
676
711
  export type webhooks = Record<string, never>;
677
712
  export interface components {
678
713
  schemas: {
714
+ /** @description A read-only view of a Canopy model. No model definition is created or edited through Assistant. */
715
+ ModelResource: {
716
+ /** @description Canopy model id, used unchanged in settings, conversation preferences and inference. There is no second assistant model id. */
717
+ id: string;
718
+ /** @description The display_name maintained in Canopy */
719
+ displayName: string;
720
+ /**
721
+ * Format: int64
722
+ * @description The context_length maintained in Canopy. The assistant reserves room for instructions, tools and an answer rather than using this entire window for history.
723
+ */
724
+ contextWindow: number;
725
+ /**
726
+ * Format: int64
727
+ * @description The max_output_tokens maintained in Canopy. Answer and summary budgets must respect this limit and the remaining context capacity.
728
+ */
729
+ maxOutputTokens: number;
730
+ /** @description Canopy supports_tools. Must be true before the model can be allowed for Assistant. */
731
+ supportsTools: boolean;
732
+ /** @description Canopy supports_reasoning. False requires reasoning_effort to be omitted. */
733
+ supportsReasoning: boolean;
734
+ /** @description Levels reported by Canopy reasoning_tiers. An empty list requires reasoning_effort to be omitted. List order does not imply reasoning strength. */
735
+ reasoningTiers: string[];
736
+ /** @description Contains text, and also image when Canopy reports supports_vision. Other attachments remain accessible through file tools. */
737
+ inputModalities: ("text" | "image")[];
738
+ };
739
+ ModelListResponseBody: {
740
+ /** @description Whether users can set a non-null model preference. When false, hide the selector and use the platform default for new turns. */
741
+ allowModelSelection: boolean;
742
+ /** @description The default Canopy model id, present in models when non-null. Null means no usable default is known from the current allowlist and capability snapshot; it does not report live provider health. */
743
+ defaultModelId: string | null;
744
+ /** @description Allowed, usable Canopy choices, or only the default when selection is disabled. Empty is an empty array, never null. */
745
+ models: components["schemas"]["ModelResource"][];
746
+ };
679
747
  Error: {
680
748
  code?: string;
681
749
  message: string;
@@ -1023,7 +1091,10 @@ export interface components {
1023
1091
  /** @description The folder this conversation is filed under, or null when it is in none */
1024
1092
  folderId: string | null;
1025
1093
  id: string;
1026
- model: string;
1094
+ /** @description The actual Canopy model id for the running turn, or the first candidate for the next turn when idle. Null when no model can be selected. This can differ from preferredModelId after fallback or while selection is disabled. */
1095
+ model: string | null;
1096
+ /** @description The saved preferred Canopy model id, independent of the model actually used. Null follows the platform default. Kept when selection is disabled, the model is removed, or a request falls back. */
1097
+ preferredModelId: string | null;
1027
1098
  title: string | null;
1028
1099
  unread: boolean;
1029
1100
  /** Format: date-time */
@@ -1040,6 +1111,8 @@ export interface components {
1040
1111
  * @enum {string}
1041
1112
  */
1042
1113
  approvalMode?: "guardian" | "manual" | "yolo";
1114
+ /** @description A Canopy model id to prefer. Omit or pass null to follow the platform default. Non-null requires allowModelSelection; a disallowed, retired or removed id falls back to the default without clearing the preference. */
1115
+ preferredModelId?: string | null;
1043
1116
  };
1044
1117
  ContextResource: {
1045
1118
  /** Format: int64 */
@@ -1049,10 +1122,11 @@ export interface components {
1049
1122
  *
1050
1123
  * This governs images and nothing else. Text and binary attachments reach every model: a small text file is placed inline, a large one is read on demand, and a binary is downloaded onto a cloud instance — none of which asks the model to see a picture. So this decides whether pasting a screenshot does anything, not whether the attach control exists. Hiding file upload on a text-only model takes away something that would have worked.
1051
1124
  *
1052
- * 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.
1125
+ * This describes the effective model, including a replacement chosen through fallback, rather than the saved preference. An empty list means no effective model is available to describe; it is not a claim that every model rejects files.
1053
1126
  */
1054
1127
  inputModalities: string[];
1055
- model: string;
1128
+ /** @description The effective Canopy model id, matching the conversation summary's model. Null when no model can be selected; window and compactAt are then null and inputModalities is empty. */
1129
+ model: string | null;
1056
1130
  /** Format: int64 */
1057
1131
  used: number | null;
1058
1132
  /** Format: int64 */
@@ -1110,7 +1184,7 @@ export interface components {
1110
1184
  /** Format: int64 */
1111
1185
  durationMs?: number | null;
1112
1186
  id: string;
1113
- /** @description The model that produced this entry. Null for messages the user sent */
1187
+ /** @description The Canopy model id that actually produced this entry, including after fallback. Never replaced by the conversation's preference or rewritten when the model is retired or removed from the allowlist. Null for messages the user sent. */
1114
1188
  model: string | null;
1115
1189
  namespace?: string | null;
1116
1190
  /** Format: int64 */
@@ -1228,6 +1302,12 @@ export interface components {
1228
1302
  /** @enum {string} */
1229
1303
  approvalMode?: "guardian" | "manual" | "yolo";
1230
1304
  archived?: boolean;
1305
+ /**
1306
+ * @description Switch this existing conversation's model. Omit to keep the preference; null clears it and follows the platform default; a string sets it for the next turn. The transcript is preserved and saving the preference does not start a turn.
1307
+ *
1308
+ * Non-null requires allowModelSelection. A disallowed, retired or removed Canopy id is retained and uses the default when needed. The preference can be changed while a turn is running or waiting, but that turn and messages queued into it keep their captured model choices.
1309
+ */
1310
+ preferredModelId?: string | null;
1231
1311
  /**
1232
1312
  * @description File this conversation into a folder, or `null` to take it out of the one it is in. Omit the field to leave it where it is.
1233
1313
  *
@@ -1436,6 +1516,35 @@ export interface components {
1436
1516
  }
1437
1517
  export type $defs = Record<string, never>;
1438
1518
  export interface operations {
1519
+ "list-models": {
1520
+ parameters: {
1521
+ query?: never;
1522
+ header?: never;
1523
+ path?: never;
1524
+ cookie?: never;
1525
+ };
1526
+ requestBody?: never;
1527
+ responses: {
1528
+ /** @description OK */
1529
+ 200: {
1530
+ headers: {
1531
+ [name: string]: unknown;
1532
+ };
1533
+ content: {
1534
+ "application/json": components["schemas"]["ModelListResponseBody"];
1535
+ };
1536
+ };
1537
+ /** @description Error */
1538
+ default: {
1539
+ headers: {
1540
+ [name: string]: unknown;
1541
+ };
1542
+ content: {
1543
+ "application/json": components["schemas"]["Error"];
1544
+ };
1545
+ };
1546
+ };
1547
+ };
1439
1548
  "upload-attachment": {
1440
1549
  parameters: {
1441
1550
  query?: {
@@ -1,6 +1,4 @@
1
1
  import { type ClientOptions } from "openapi-fetch";
2
2
  import type { paths } from "./schema.js";
3
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}`>;
4
+ export declare function client(options?: ClientOptions): import("openapi-fetch").Client<paths, `${string}/${string}`>;
@@ -1,6 +1,7 @@
1
1
  // Code generated from the contract's servers[0]. DO NOT EDIT.
2
2
  import createClient, {} from "openapi-fetch";
3
+ const defaultBaseUrl = "https://billing.leaflow.cloud";
3
4
  /** A client for the billing service. Pass baseUrl to override the address. */
4
- export function client(options) {
5
- return createClient(options);
5
+ export function client(options = {}) {
6
+ return createClient({ baseUrl: defaultBaseUrl, ...options });
6
7
  }
@@ -1,142 +1,6 @@
1
1
  export type { paths, components, operations, webhooks } from "./schema.js";
2
2
  export { client } from "./client.js";
3
3
  import type { operations } from "./schema.js";
4
- /** The success response body of `GET /account/v1/commitments`. */
5
- export type ListCommitmentsResult = operations["ListCommitments"]["responses"][200]["content"]["application/json"];
6
- /** The query parameters of `GET /account/v1/commitments`. */
7
- export type ListCommitmentsQuery = operations["ListCommitments"]["parameters"]["query"];
8
- /** The success response body of `GET /api/v1/projects/{projectId}/closure-preview`. */
9
- export type GetProjectClosurePreviewResult = operations["get-project-closure-preview"]["responses"][200]["content"]["application/json"];
10
- /** The query parameters of `GET /api/v1/projects/{projectId}/closure-preview`. */
11
- export type GetProjectClosurePreviewQuery = operations["get-project-closure-preview"]["parameters"]["query"];
12
- /** The success response body of `GET /account/v1/projects/{projectId}/closure-preview`. */
13
- export type GetAccountProjectClosurePreviewResult = operations["get-account-project-closure-preview"]["responses"][200]["content"]["application/json"];
14
- /** The query parameters of `GET /account/v1/projects/{projectId}/closure-preview`. */
15
- export type GetAccountProjectClosurePreviewQuery = operations["get-account-project-closure-preview"]["parameters"]["query"];
16
- /** The success response body of `GET /catalog/v1/products`. */
17
- export type ListProductsResult = operations["list-products"]["responses"][200]["content"]["application/json"];
18
- /** The success response body of `GET /catalog/v1/products/{productId}/plans`. */
19
- export type ListPlansResult = operations["list-plans"]["responses"][200]["content"]["application/json"];
20
- /** The success response body of `GET /catalog/v1/plans/{planId}/prices`. */
21
- export type ListPricesResult = operations["list-prices"]["responses"][200]["content"]["application/json"];
22
- /** The query parameters of `GET /catalog/v1/plans/{planId}/prices`. */
23
- export type ListPricesQuery = operations["list-prices"]["parameters"]["query"];
24
- /** The success response body of `GET /catalog/v1/rate-cards/{rateCardId}/rules`. */
25
- export type ListRatesResult = operations["list-rates"]["responses"][200]["content"]["application/json"];
26
- /** The query parameters of `GET /catalog/v1/rate-cards/{rateCardId}/rules`. */
27
- export type ListRatesQuery = operations["list-rates"]["parameters"]["query"];
28
- /** The success response body of `POST /catalog/v1/estimates`. */
29
- export type CreateEstimateResult = operations["create-estimate"]["responses"][200]["content"]["application/json"];
30
- /** The request body of `POST /catalog/v1/estimates`. */
31
- export type CreateEstimateBody = NonNullable<operations["create-estimate"]["requestBody"]>["content"]["application/json"];
32
- /** The success response body of `GET /account/v1/billing-accounts`. */
33
- export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
34
- /** The success response body of `POST /account/v1/billing-accounts`. */
35
- export type CreateBillingAccountResult = operations["create-billing-account"]["responses"][201]["content"]["application/json"];
36
- /** The request body of `POST /account/v1/billing-accounts`. */
37
- export type CreateBillingAccountBody = NonNullable<operations["create-billing-account"]["requestBody"]>["content"]["application/json"];
38
- /** The success response body of `GET /account/v1/billing-accounts/{accountId}`. */
39
- export type GetBillingAccountResult = operations["get-billing-account"]["responses"][200]["content"]["application/json"];
40
- /** The success response body of `PATCH /account/v1/billing-accounts/{accountId}`. */
41
- export type UpdateBillingAccountResult = operations["update-billing-account"]["responses"][200]["content"]["application/json"];
42
- /** The request body of `PATCH /account/v1/billing-accounts/{accountId}`. */
43
- export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
44
- /** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
45
- export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
46
- /** The success response body of `GET /account/v1/projects`. */
47
- export type ListPaidProjectsResult = operations["list-paid-projects"]["responses"][200]["content"]["application/json"];
48
- /** The query parameters of `GET /account/v1/projects`. */
49
- export type ListPaidProjectsQuery = operations["list-paid-projects"]["parameters"]["query"];
50
- /** The success response body of `GET /account/v1/projects/{projectId}/billing-account`. */
51
- export type FindProjectPayerResult = operations["find-project-payer"]["responses"][200]["content"]["application/json"];
52
- /** The success response body of `PUT /account/v1/projects/{projectId}/billing-account`. */
53
- export type SetProjectPayerResult = operations["set-project-payer"]["responses"][200]["content"]["application/json"];
54
- /** The request body of `PUT /account/v1/projects/{projectId}/billing-account`. */
55
- export type SetProjectPayerBody = NonNullable<operations["set-project-payer"]["requestBody"]>["content"]["application/json"];
56
- /** The success response body of `POST /account/v1/projects/{projectId}/billing-account/settle`. */
57
- export type SettleProjectUsageResult = operations["settle-project-usage"]["responses"][200]["content"]["application/json"];
58
- /** The success response body of `GET /account/v1/top-ups`. */
59
- export type ListTopUpsResult = operations["list-top-ups"]["responses"][200]["content"]["application/json"];
60
- /** The success response body of `POST /account/v1/top-ups`. */
61
- export type CreateTopUpResult = operations["create-top-up"]["responses"][201]["content"]["application/json"];
62
- /** The request body of `POST /account/v1/top-ups`. */
63
- export type CreateTopUpBody = NonNullable<operations["create-top-up"]["requestBody"]>["content"]["application/json"];
64
- /** The success response body of `GET /account/v1/top-ups/{topUpId}`. */
65
- export type GetTopUpResult = operations["get-top-up"]["responses"][200]["content"]["application/json"];
66
- /** The success response body of `GET /account/v1/payment-methods`. */
67
- export type ListPaymentMethodsResult = operations["list-payment-methods"]["responses"][200]["content"]["application/json"];
68
- /** The success response body of `POST /account/v1/payment-methods/setup`. */
69
- export type CreatePaymentMethodSetupResult = operations["create-payment-method-setup"]["responses"][201]["content"]["application/json"];
70
- /** The request body of `POST /account/v1/payment-methods/setup`. */
71
- export type CreatePaymentMethodSetupBody = NonNullable<operations["create-payment-method-setup"]["requestBody"]>["content"]["application/json"];
72
- /** The success response body of `PUT /account/v1/payment-methods/{paymentMethodId}/default`. */
73
- export type SetDefaultPaymentMethodResult = operations["set-default-payment-method"]["responses"][200]["content"]["application/json"];
74
- /** The success response body of `POST /account/v1/invoices/{invoiceId}/pay`. */
75
- export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
76
- /** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
77
- export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
78
- /** The success response body of `POST /account/v1/payments`. */
79
- export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
80
- /** The request body of `POST /account/v1/payments`. */
81
- export type PayTogetherBody = NonNullable<operations["pay-together"]["requestBody"]>["content"]["application/json"];
82
- /** The success response body of `POST /account/v1/orders/{orderId}/pay`. */
83
- export type PayOrderResult = operations["pay-order"]["responses"][200]["content"]["application/json"];
84
- /** The request body of `POST /account/v1/orders/{orderId}/pay`. */
85
- export type PayOrderBody = NonNullable<operations["pay-order"]["requestBody"]>["content"]["application/json"];
86
- /** The success response body of `GET /account/v1/invoices`. */
87
- export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
88
- /** The query parameters of `GET /account/v1/invoices`. */
89
- export type ListInvoicesQuery = operations["list-invoices"]["parameters"]["query"];
90
- /** The success response body of `GET /account/v1/invoices/{invoiceId}`. */
91
- export type GetInvoiceResult = operations["get-invoice"]["responses"][200]["content"]["application/json"];
92
- /** The success response body of `GET /account/v1/invoices/{invoiceId}/items`. */
93
- export type ListInvoiceItemsResult = operations["list-invoice-items"]["responses"][200]["content"]["application/json"];
94
- /** The success response body of `GET /account/v1/invoices/{invoiceId}/refund-quote`. */
95
- export type GetInvoiceRefundQuoteResult = operations["get-invoice-refund-quote"]["responses"][200]["content"]["application/json"];
96
- /** The success response body of `GET /account/v1/transactions`. */
97
- export type ListTransactionsResult = operations["list-transactions"]["responses"][200]["content"]["application/json"];
98
- /** The success response body of `GET /account/v1/credit-grants`. */
99
- export type ListCreditGrantsResult = operations["list-credit-grants"]["responses"][200]["content"]["application/json"];
100
- /** The query parameters of `GET /account/v1/credit-grants`. */
101
- export type ListCreditGrantsQuery = operations["list-credit-grants"]["parameters"]["query"];
102
- /** The success response body of `GET /account/v1/allocations`. */
103
- export type ListAllocationsResult = operations["list-allocations"]["responses"][200]["content"]["application/json"];
104
- /** The query parameters of `GET /account/v1/allocations`. */
105
- export type ListAllocationsQuery = operations["list-allocations"]["parameters"]["query"];
106
- /** The success response body of `GET /account/v1/refunds`. */
107
- export type ListRefundsResult = operations["list-refunds"]["responses"][200]["content"]["application/json"];
108
- /** The success response body of `POST /account/v1/refunds`. */
109
- export type RequestRefundResult = operations["request-refund"]["responses"][201]["content"]["application/json"];
110
- /** The request body of `POST /account/v1/refunds`. */
111
- export type RequestRefundBody = NonNullable<operations["request-refund"]["requestBody"]>["content"]["application/json"];
112
- /** The success response body of `GET /account/v1/usage-charges`. */
113
- export type ListUsageChargesResult = operations["list-usage-charges"]["responses"][200]["content"]["application/json"];
114
- /** The query parameters of `GET /account/v1/usage-charges`. */
115
- export type ListUsageChargesQuery = operations["list-usage-charges"]["parameters"]["query"];
116
- /** The success response body of `GET /account/v1/subscriptions`. */
117
- export type ListSubscriptionsResult = operations["list-subscriptions"]["responses"][200]["content"]["application/json"];
118
- /** The query parameters of `GET /account/v1/subscriptions`. */
119
- export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
120
- /** The success response body of `GET /account/v1/subscription-items`. */
121
- export type ListSubscriptionItemsResult = operations["list-subscription-items"]["responses"][200]["content"]["application/json"];
122
- /** The query parameters of `GET /account/v1/subscription-items`. */
123
- export type ListSubscriptionItemsQuery = operations["list-subscription-items"]["parameters"]["query"];
124
- /** The success response body of `POST /account/v1/subscription-items/{itemId}/renew`. */
125
- export type RenewSubscriptionItemResult = operations["renew-subscription-item"]["responses"][200]["content"]["application/json"];
126
- /** The request body of `POST /account/v1/subscription-items/{itemId}/renew`. */
127
- export type RenewSubscriptionItemBody = NonNullable<operations["renew-subscription-item"]["requestBody"]>["content"]["application/json"];
128
- /** The success response body of `PUT /account/v1/subscription-items/{itemId}/auto-renew`. */
129
- export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
130
- /** The request body of `PUT /account/v1/subscription-items/{itemId}/auto-renew`. */
131
- export type SetAutoRenewBody = NonNullable<operations["set-auto-renew"]["requestBody"]>["content"]["application/json"];
132
- /** The success response body of `POST /account/v1/codes/preview`. */
133
- export type PreviewCodeResult = operations["preview-code"]["responses"][200]["content"]["application/json"];
134
- /** The request body of `POST /account/v1/codes/preview`. */
135
- export type PreviewCodeBody = NonNullable<operations["preview-code"]["requestBody"]>["content"]["application/json"];
136
- /** The success response body of `POST /account/v1/codes/redeem`. */
137
- export type RedeemCodeResult = operations["redeem-code"]["responses"][200]["content"]["application/json"];
138
- /** The request body of `POST /account/v1/codes/redeem`. */
139
- export type RedeemCodeBody = NonNullable<operations["redeem-code"]["requestBody"]>["content"]["application/json"];
140
4
  /** The success response body of `GET /api/v1/projects/{projectId}/billing-account`. */
141
5
  export type GetProjectBillingAccountResult = operations["get-project-billing-account"]["responses"][200]["content"]["application/json"];
142
6
  /** The success response body of `GET /api/v1/projects/{projectId}/spend`. */
@@ -149,13 +13,11 @@ export type ListProjectUsageChargesResult = operations["list-project-usage-charg
149
13
  export type ListProjectUsageChargesQuery = operations["list-project-usage-charges"]["parameters"]["query"];
150
14
  /** The success response body of `GET /api/v1/projects/{projectId}/subscriptions`. */
151
15
  export type ListProjectSubscriptionsResult = operations["list-project-subscriptions"]["responses"][200]["content"]["application/json"];
152
- /** The success response body of `GET /api/v1/projects/{projectId}/subscription-items`. */
153
- export type ListProjectSubscriptionItemsResult = operations["list-project-subscription-items"]["responses"][200]["content"]["application/json"];
154
- /** The query parameters of `GET /api/v1/projects/{projectId}/subscription-items`. */
155
- export type ListProjectSubscriptionItemsQuery = operations["list-project-subscription-items"]["parameters"]["query"];
156
- /** The success response body of `PUT /api/v1/projects/{projectId}/subscription-items/{itemId}/auto-renew`. */
16
+ /** The query parameters of `GET /api/v1/projects/{projectId}/subscriptions`. */
17
+ export type ListProjectSubscriptionsQuery = operations["list-project-subscriptions"]["parameters"]["query"];
18
+ /** The success response body of `PUT /api/v1/projects/{projectId}/subscriptions/{subscriptionId}/auto-renew`. */
157
19
  export type SetProjectAutoRenewResult = operations["set-project-auto-renew"]["responses"][200]["content"]["application/json"];
158
- /** The request body of `PUT /api/v1/projects/{projectId}/subscription-items/{itemId}/auto-renew`. */
20
+ /** The request body of `PUT /api/v1/projects/{projectId}/subscriptions/{subscriptionId}/auto-renew`. */
159
21
  export type SetProjectAutoRenewBody = NonNullable<operations["set-project-auto-renew"]["requestBody"]>["content"]["application/json"];
160
22
  /** The success response body of `GET /api/v1/projects/{projectId}/orders`. */
161
23
  export type ListProjectOrdersResult = operations["list-project-orders"]["responses"][200]["content"]["application/json"];
@@ -171,34 +33,12 @@ export type ListProjectActiveResourcesQuery = operations["list-project-active-re
171
33
  export type CreateProjectQuoteResult = operations["create-project-quote"]["responses"][200]["content"]["application/json"];
172
34
  /** The request body of `POST /api/v1/projects/{projectId}/quotes`. */
173
35
  export type CreateProjectQuoteBody = NonNullable<operations["create-project-quote"]["requestBody"]>["content"]["application/json"];
174
- /** The success response body of `GET /account/v1/allowances`. */
175
- export type ListAllowancesResult = operations["list-allowances"]["responses"][200]["content"]["application/json"];
176
- /** The query parameters of `GET /account/v1/allowances`. */
177
- export type ListAllowancesQuery = operations["list-allowances"]["parameters"]["query"];
178
- /** The success response body of `GET /account/v1/allowances/{allowanceId}/consumptions`. */
179
- export type ListAllowanceConsumptionsResult = operations["list-allowance-consumptions"]["responses"][200]["content"]["application/json"];
180
- /** The success response body of `GET /account/v1/orders`. */
181
- export type ListOrdersResult = operations["list-orders"]["responses"][200]["content"]["application/json"];
182
- /** The query parameters of `GET /account/v1/orders`. */
183
- export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
184
- /** The success response body of `GET /account/v1/orders/{orderId}`. */
185
- export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
186
- /** The success response body of `POST /account/v1/orders/{orderId}/cancel`. */
187
- export type CancelScheduledChangeResult = operations["cancel-scheduled-change"]["responses"][200]["content"]["application/json"];
188
- /** The success response body of `GET /account/v1/orders/{orderId}/items`. */
189
- export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
190
- /** The success response body of `GET /account/v1/orders/{orderId}/refund-quote`. */
191
- export type GetOrderRefundQuoteResult = operations["get-order-refund-quote"]["responses"][200]["content"]["application/json"];
192
36
  /** The success response body of `GET /api/v1/projects/{projectId}/orders/{orderId}/items`. */
193
37
  export type ListProjectOrderItemsResult = operations["list-project-order-items"]["responses"][200]["content"]["application/json"];
194
38
  /** The success response body of `GET /api/v1/projects/{projectId}/allowances`. */
195
39
  export type ListProjectAllowancesResult = operations["list-project-allowances"]["responses"][200]["content"]["application/json"];
196
40
  /** The query parameters of `GET /api/v1/projects/{projectId}/allowances`. */
197
41
  export type ListProjectAllowancesQuery = operations["list-project-allowances"]["parameters"]["query"];
198
- /** The success response body of `GET /account/v1/entitlements`. */
199
- export type ListEntitlementsResult = operations["list-entitlements"]["responses"][200]["content"]["application/json"];
200
- /** The query parameters of `GET /account/v1/entitlements`. */
201
- export type ListEntitlementsQuery = operations["list-entitlements"]["parameters"]["query"];
202
42
  /** The success response body of `GET /api/v1/projects/{projectId}/entitlements`. */
203
43
  export type ListProjectEntitlementsResult = operations["list-project-entitlements"]["responses"][200]["content"]["application/json"];
204
44
  /** The query parameters of `GET /api/v1/projects/{projectId}/entitlements`. */