hanzoai 8.5.158 → 8.5.604

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.
Files changed (51) hide show
  1. package/dist/api/ai-api.d.ts +47 -0
  2. package/dist/api/ai-api.js +67 -0
  3. package/dist/esm/api/ai-api.d.ts +47 -0
  4. package/dist/esm/api/ai-api.js +67 -0
  5. package/dist/esm/models/agent-metrics.d.ts +4 -4
  6. package/dist/esm/models/ai-limits-set.d.ts +24 -0
  7. package/dist/esm/models/ai-limits.d.ts +13 -0
  8. package/dist/esm/models/ai-model-info.d.ts +36 -0
  9. package/dist/esm/models/{billing-window.d.ts → ai-paused.d.ts} +12 -24
  10. package/dist/esm/models/ai-paused.js +14 -0
  11. package/dist/esm/models/allowance-allowance.d.ts +2 -2
  12. package/dist/esm/models/billing-rollup.d.ts +0 -7
  13. package/dist/esm/models/billing-tier.d.ts +0 -7
  14. package/dist/esm/models/compute-sample-view.d.ts +4 -4
  15. package/dist/esm/models/iam-user.d.ts +6 -6
  16. package/dist/esm/models/index.d.ts +2 -1
  17. package/dist/esm/models/index.js +2 -1
  18. package/dist/esm/models/o11y-gettable-agent-check-in.d.ts +8 -8
  19. package/dist/esm/models/o11y-o11y-agent-check-in-in.d.ts +4 -4
  20. package/dist/models/agent-metrics.d.ts +4 -4
  21. package/dist/models/ai-limits-set.d.ts +24 -0
  22. package/dist/models/ai-limits.d.ts +13 -0
  23. package/dist/models/ai-model-info.d.ts +36 -0
  24. package/dist/models/{billing-window.d.ts → ai-paused.d.ts} +12 -24
  25. package/dist/models/ai-paused.js +15 -0
  26. package/dist/models/allowance-allowance.d.ts +2 -2
  27. package/dist/models/billing-rollup.d.ts +0 -7
  28. package/dist/models/billing-tier.d.ts +0 -7
  29. package/dist/models/compute-sample-view.d.ts +4 -4
  30. package/dist/models/iam-user.d.ts +6 -6
  31. package/dist/models/index.d.ts +2 -1
  32. package/dist/models/index.js +2 -1
  33. package/dist/models/o11y-gettable-agent-check-in.d.ts +8 -8
  34. package/dist/models/o11y-o11y-agent-check-in-in.d.ts +4 -4
  35. package/package.json +1 -1
  36. package/src/api/ai-api.ts +91 -0
  37. package/src/models/agent-metrics.ts +4 -4
  38. package/src/models/ai-limits-set.ts +30 -0
  39. package/src/models/ai-limits.ts +15 -0
  40. package/src/models/ai-model-info.ts +36 -0
  41. package/src/models/{billing-window.ts → ai-paused.ts} +12 -24
  42. package/src/models/allowance-allowance.ts +2 -2
  43. package/src/models/billing-rollup.ts +0 -9
  44. package/src/models/billing-tier.ts +0 -9
  45. package/src/models/compute-sample-view.ts +4 -4
  46. package/src/models/iam-user.ts +6 -6
  47. package/src/models/index.ts +2 -1
  48. package/src/models/o11y-gettable-agent-check-in.ts +8 -8
  49. package/src/models/o11y-o11y-agent-check-in-in.ts +4 -4
  50. /package/dist/esm/models/{billing-window.js → ai-limits-set.js} +0 -0
  51. /package/dist/models/{billing-window.js → ai-limits-set.js} +0 -0
@@ -18,6 +18,7 @@ import type { AiAnthropicResponse } from '../models';
18
18
  import type { AiDecisionsRequest } from '../models';
19
19
  import type { AiDecisionsResponse } from '../models';
20
20
  import type { AiLimits } from '../models';
21
+ import type { AiLimitsSet } from '../models';
21
22
  import type { AiMCPSurface } from '../models';
22
23
  import type { AiModelList } from '../models';
23
24
  import type { AiRanking } from '../models';
@@ -128,6 +129,14 @@ export declare const AiApiAxiosParamCreator: (configuration?: Configuration) =>
128
129
  * @throws {RequiredError}
129
130
  */
130
131
  aiMCPTools: (names?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
132
+ /**
133
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
134
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
135
+ * @param {AiLimitsSet} aiLimitsSet
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ aiSetLimits: (aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
131
140
  /**
132
141
  * Delete one article.
133
142
  * @summary Delete a article
@@ -2607,6 +2616,14 @@ export declare const AiApiFp: (configuration?: Configuration) => {
2607
2616
  * @throws {RequiredError}
2608
2617
  */
2609
2618
  aiMCPTools(names?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiMCPSurface>>;
2619
+ /**
2620
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
2621
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
2622
+ * @param {AiLimitsSet} aiLimitsSet
2623
+ * @param {*} [options] Override http request option.
2624
+ * @throws {RequiredError}
2625
+ */
2626
+ aiSetLimits(aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiLimits>>;
2610
2627
  /**
2611
2628
  * Delete one article.
2612
2629
  * @summary Delete a article
@@ -5086,6 +5103,14 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
5086
5103
  * @throws {RequiredError}
5087
5104
  */
5088
5105
  aiMCPTools(requestParameters?: AiApiAiMCPToolsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiMCPSurface>;
5106
+ /**
5107
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
5108
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
5109
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
5110
+ * @param {*} [options] Override http request option.
5111
+ * @throws {RequiredError}
5112
+ */
5113
+ aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiLimits>;
5089
5114
  /**
5090
5115
  * Delete one article.
5091
5116
  * @summary Delete a article
@@ -7399,6 +7424,19 @@ export interface AiApiAiMCPToolsRequest {
7399
7424
  */
7400
7425
  readonly names?: boolean;
7401
7426
  }
7427
+ /**
7428
+ * Request parameters for aiSetLimits operation in AiApi.
7429
+ * @export
7430
+ * @interface AiApiAiSetLimitsRequest
7431
+ */
7432
+ export interface AiApiAiSetLimitsRequest {
7433
+ /**
7434
+ *
7435
+ * @type {AiLimitsSet}
7436
+ * @memberof AiApiAiSetLimits
7437
+ */
7438
+ readonly aiLimitsSet: AiLimitsSet;
7439
+ }
7402
7440
  /**
7403
7441
  * Request parameters for deleteAiArticlesByOwnerByName operation in AiApi.
7404
7442
  * @export
@@ -10509,6 +10547,15 @@ export declare class AiApi extends BaseAPI {
10509
10547
  * @memberof AiApi
10510
10548
  */
10511
10549
  aiMCPTools(requestParameters?: AiApiAiMCPToolsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AiMCPSurface, any, {}>>;
10550
+ /**
10551
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
10552
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
10553
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
10554
+ * @param {*} [options] Override http request option.
10555
+ * @throws {RequiredError}
10556
+ * @memberof AiApi
10557
+ */
10558
+ aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): Promise<globalAxios.AxiosResponse<AiLimits, any, {}>>;
10512
10559
  /**
10513
10560
  * Delete one article.
10514
10561
  * @summary Delete a article
@@ -89,6 +89,39 @@ const AiApiAxiosParamCreator = function (configuration) {
89
89
  options: localVarRequestOptions,
90
90
  };
91
91
  },
92
+ /**
93
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
94
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
95
+ * @param {AiLimitsSet} aiLimitsSet
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ aiSetLimits: async (aiLimitsSet, options = {}) => {
100
+ // verify required parameter 'aiLimitsSet' is not null or undefined
101
+ (0, common_1.assertParamExists)('aiSetLimits', 'aiLimitsSet', aiLimitsSet);
102
+ const localVarPath = `/v1/ai/limits`;
103
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
104
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
105
+ let baseOptions;
106
+ if (configuration) {
107
+ baseOptions = configuration.baseOptions;
108
+ }
109
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
110
+ const localVarHeaderParameter = {};
111
+ const localVarQueryParameter = {};
112
+ // authentication bearer required
113
+ // http bearer authentication required
114
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
115
+ localVarHeaderParameter['Content-Type'] = 'application/json';
116
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
117
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
119
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiLimitsSet, localVarRequestOptions, configuration);
120
+ return {
121
+ url: (0, common_1.toPathString)(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ },
92
125
  /**
93
126
  * Delete one article.
94
127
  * @summary Delete a article
@@ -10060,6 +10093,19 @@ const AiApiFp = function (configuration) {
10060
10093
  const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.aiMCPTools']?.[localVarOperationServerIndex]?.url;
10061
10094
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10062
10095
  },
10096
+ /**
10097
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
10098
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
10099
+ * @param {AiLimitsSet} aiLimitsSet
10100
+ * @param {*} [options] Override http request option.
10101
+ * @throws {RequiredError}
10102
+ */
10103
+ async aiSetLimits(aiLimitsSet, options) {
10104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSetLimits(aiLimitsSet, options);
10105
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10106
+ const localVarOperationServerBasePath = base_1.operationServerMap['AiApi.aiSetLimits']?.[localVarOperationServerIndex]?.url;
10107
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10108
+ },
10063
10109
  /**
10064
10110
  * Delete one article.
10065
10111
  * @summary Delete a article
@@ -14072,6 +14118,16 @@ const AiApiFactory = function (configuration, basePath, axios) {
14072
14118
  aiMCPTools(requestParameters = {}, options) {
14073
14119
  return localVarFp.aiMCPTools(requestParameters.names, options).then((request) => request(axios, basePath));
14074
14120
  },
14121
+ /**
14122
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
14123
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
14124
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
14125
+ * @param {*} [options] Override http request option.
14126
+ * @throws {RequiredError}
14127
+ */
14128
+ aiSetLimits(requestParameters, options) {
14129
+ return localVarFp.aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(axios, basePath));
14130
+ },
14075
14131
  /**
14076
14132
  * Delete one article.
14077
14133
  * @summary Delete a article
@@ -17012,6 +17068,17 @@ class AiApi extends base_1.BaseAPI {
17012
17068
  aiMCPTools(requestParameters = {}, options) {
17013
17069
  return (0, exports.AiApiFp)(this.configuration).aiMCPTools(requestParameters.names, options).then((request) => request(this.axios, this.basePath));
17014
17070
  }
17071
+ /**
17072
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
17073
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
17074
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
17075
+ * @param {*} [options] Override http request option.
17076
+ * @throws {RequiredError}
17077
+ * @memberof AiApi
17078
+ */
17079
+ aiSetLimits(requestParameters, options) {
17080
+ return (0, exports.AiApiFp)(this.configuration).aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(this.axios, this.basePath));
17081
+ }
17015
17082
  /**
17016
17083
  * Delete one article.
17017
17084
  * @summary Delete a article
@@ -17,6 +17,7 @@ import type { AiAnthropicResponse } from '../models';
17
17
  import type { AiDecisionsRequest } from '../models';
18
18
  import type { AiDecisionsResponse } from '../models';
19
19
  import type { AiLimits } from '../models';
20
+ import type { AiLimitsSet } from '../models';
20
21
  import type { AiMCPSurface } from '../models';
21
22
  import type { AiModelList } from '../models';
22
23
  import type { AiRanking } from '../models';
@@ -127,6 +128,14 @@ export declare const AiApiAxiosParamCreator: (configuration?: Configuration) =>
127
128
  * @throws {RequiredError}
128
129
  */
129
130
  aiMCPTools: (names?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
131
+ /**
132
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
133
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
134
+ * @param {AiLimitsSet} aiLimitsSet
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ aiSetLimits: (aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
130
139
  /**
131
140
  * Delete one article.
132
141
  * @summary Delete a article
@@ -2606,6 +2615,14 @@ export declare const AiApiFp: (configuration?: Configuration) => {
2606
2615
  * @throws {RequiredError}
2607
2616
  */
2608
2617
  aiMCPTools(names?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiMCPSurface>>;
2618
+ /**
2619
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
2620
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
2621
+ * @param {AiLimitsSet} aiLimitsSet
2622
+ * @param {*} [options] Override http request option.
2623
+ * @throws {RequiredError}
2624
+ */
2625
+ aiSetLimits(aiLimitsSet: AiLimitsSet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiLimits>>;
2609
2626
  /**
2610
2627
  * Delete one article.
2611
2628
  * @summary Delete a article
@@ -5085,6 +5102,14 @@ export declare const AiApiFactory: (configuration?: Configuration, basePath?: st
5085
5102
  * @throws {RequiredError}
5086
5103
  */
5087
5104
  aiMCPTools(requestParameters?: AiApiAiMCPToolsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiMCPSurface>;
5105
+ /**
5106
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
5107
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
5108
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
5109
+ * @param {*} [options] Override http request option.
5110
+ * @throws {RequiredError}
5111
+ */
5112
+ aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<AiLimits>;
5088
5113
  /**
5089
5114
  * Delete one article.
5090
5115
  * @summary Delete a article
@@ -7398,6 +7423,19 @@ export interface AiApiAiMCPToolsRequest {
7398
7423
  */
7399
7424
  readonly names?: boolean;
7400
7425
  }
7426
+ /**
7427
+ * Request parameters for aiSetLimits operation in AiApi.
7428
+ * @export
7429
+ * @interface AiApiAiSetLimitsRequest
7430
+ */
7431
+ export interface AiApiAiSetLimitsRequest {
7432
+ /**
7433
+ *
7434
+ * @type {AiLimitsSet}
7435
+ * @memberof AiApiAiSetLimits
7436
+ */
7437
+ readonly aiLimitsSet: AiLimitsSet;
7438
+ }
7401
7439
  /**
7402
7440
  * Request parameters for deleteAiArticlesByOwnerByName operation in AiApi.
7403
7441
  * @export
@@ -10508,6 +10546,15 @@ export declare class AiApi extends BaseAPI {
10508
10546
  * @memberof AiApi
10509
10547
  */
10510
10548
  aiMCPTools(requestParameters?: AiApiAiMCPToolsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiMCPSurface, any, {}>>;
10549
+ /**
10550
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
10551
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
10552
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
10553
+ * @param {*} [options] Override http request option.
10554
+ * @throws {RequiredError}
10555
+ * @memberof AiApi
10556
+ */
10557
+ aiSetLimits(requestParameters: AiApiAiSetLimitsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AiLimits, any, {}>>;
10511
10558
  /**
10512
10559
  * Delete one article.
10513
10560
  * @summary Delete a article
@@ -83,6 +83,39 @@ export const AiApiAxiosParamCreator = function (configuration) {
83
83
  options: localVarRequestOptions,
84
84
  };
85
85
  },
86
+ /**
87
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
88
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
89
+ * @param {AiLimitsSet} aiLimitsSet
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ aiSetLimits: async (aiLimitsSet, options = {}) => {
94
+ // verify required parameter 'aiLimitsSet' is not null or undefined
95
+ assertParamExists('aiSetLimits', 'aiLimitsSet', aiLimitsSet);
96
+ const localVarPath = `/v1/ai/limits`;
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ if (configuration) {
101
+ baseOptions = configuration.baseOptions;
102
+ }
103
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
104
+ const localVarHeaderParameter = {};
105
+ const localVarQueryParameter = {};
106
+ // authentication bearer required
107
+ // http bearer authentication required
108
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
109
+ localVarHeaderParameter['Content-Type'] = 'application/json';
110
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
111
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
113
+ localVarRequestOptions.data = serializeDataIfNeeded(aiLimitsSet, localVarRequestOptions, configuration);
114
+ return {
115
+ url: toPathString(localVarUrlObj),
116
+ options: localVarRequestOptions,
117
+ };
118
+ },
86
119
  /**
87
120
  * Delete one article.
88
121
  * @summary Delete a article
@@ -10053,6 +10086,19 @@ export const AiApiFp = function (configuration) {
10053
10086
  const localVarOperationServerBasePath = operationServerMap['AiApi.aiMCPTools']?.[localVarOperationServerIndex]?.url;
10054
10087
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10055
10088
  },
10089
+ /**
10090
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
10091
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
10092
+ * @param {AiLimitsSet} aiLimitsSet
10093
+ * @param {*} [options] Override http request option.
10094
+ * @throws {RequiredError}
10095
+ */
10096
+ async aiSetLimits(aiLimitsSet, options) {
10097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSetLimits(aiLimitsSet, options);
10098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10099
+ const localVarOperationServerBasePath = operationServerMap['AiApi.aiSetLimits']?.[localVarOperationServerIndex]?.url;
10100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10101
+ },
10056
10102
  /**
10057
10103
  * Delete one article.
10058
10104
  * @summary Delete a article
@@ -14064,6 +14110,16 @@ export const AiApiFactory = function (configuration, basePath, axios) {
14064
14110
  aiMCPTools(requestParameters = {}, options) {
14065
14111
  return localVarFp.aiMCPTools(requestParameters.names, options).then((request) => request(axios, basePath));
14066
14112
  },
14113
+ /**
14114
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
14115
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
14116
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
14117
+ * @param {*} [options] Override http request option.
14118
+ * @throws {RequiredError}
14119
+ */
14120
+ aiSetLimits(requestParameters, options) {
14121
+ return localVarFp.aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(axios, basePath));
14122
+ },
14067
14123
  /**
14068
14124
  * Delete one article.
14069
14125
  * @summary Delete a article
@@ -17003,6 +17059,17 @@ export class AiApi extends BaseAPI {
17003
17059
  aiMCPTools(requestParameters = {}, options) {
17004
17060
  return AiApiFp(this.configuration).aiMCPTools(requestParameters.names, options).then((request) => request(this.axios, this.basePath));
17005
17061
  }
17062
+ /**
17063
+ * Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent. A pooled org wallet is its org admin\'s to set; a person\'s own wallet is theirs. Every change is on the audit trail, before and after; no trail, no change. Answers the limits as they read after it.
17064
+ * @summary Sets the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent.
17065
+ * @param {AiApiAiSetLimitsRequest} requestParameters Request parameters.
17066
+ * @param {*} [options] Override http request option.
17067
+ * @throws {RequiredError}
17068
+ * @memberof AiApi
17069
+ */
17070
+ aiSetLimits(requestParameters, options) {
17071
+ return AiApiFp(this.configuration).aiSetLimits(requestParameters.aiLimitsSet, options).then((request) => request(this.axios, this.basePath));
17072
+ }
17006
17073
  /**
17007
17074
  * Delete one article.
17008
17075
  * @summary Delete a article
@@ -112,17 +112,17 @@ export interface AgentMetrics {
112
112
  */
113
113
  'load1'?: number;
114
114
  /**
115
- * Load5 is the same figure averaged over five minutes.
115
+ * Load15 is the same figure over fifteen. The three together are what separate a machine that is busy right now from one that has been busy all along — which is the question a dispatcher is really asking.
116
116
  * @type {number}
117
117
  * @memberof AgentMetrics
118
118
  */
119
- 'load5'?: number;
119
+ 'load15'?: number;
120
120
  /**
121
- * Load15 is the same figure over fifteen. The three together are what separate a machine that is busy right now from one that has been busy all along — which is the question a dispatcher is really asking.
121
+ * Load5 is the same figure averaged over five minutes.
122
122
  * @type {number}
123
123
  * @memberof AgentMetrics
124
124
  */
125
- 'load15'?: number;
125
+ 'load5'?: number;
126
126
  /**
127
127
  * bytes
128
128
  * @type {number}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Hanzo Cloud API
3
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
4
+ *
5
+ * The version of the OpenAPI document: v1
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AiLimitsSet
16
+ */
17
+ export interface AiLimitsSet {
18
+ /**
19
+ * CreditsAfterAllowance keeps a model working once the plan\'s included usage of it is spent, paid from prepaid credit (and granted credit where the model takes it), when true; when false the conversation moves to a Hanzo model and other calls are refused until the plan resets. Off until the payer turns it on.
20
+ * @type {boolean}
21
+ * @memberof AiLimitsSet
22
+ */
23
+ 'creditsAfterAllowance'?: boolean;
24
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AiAction } from './ai-action';
13
13
  import type { AiClass } from './ai-class';
14
14
  import type { AiLimited } from './ai-limited';
15
+ import type { AiPaused } from './ai-paused';
15
16
  import type { AiWindow } from './ai-window';
16
17
  /**
17
18
  *
@@ -33,6 +34,12 @@ export interface AiLimits {
33
34
  'classes'?: {
34
35
  [key: string]: AiClass;
35
36
  };
37
+ /**
38
+ * CreditsAfterAllowance is the payer\'s choice to keep using a model on credits once the plan\'s included usage of it is spent (PUT /v1/ai/limits sets it).
39
+ * @type {boolean}
40
+ * @memberof AiLimits
41
+ */
42
+ 'credits_after_allowance'?: boolean;
36
43
  /**
37
44
  *
38
45
  * @type {AiWindow}
@@ -45,6 +52,12 @@ export interface AiLimits {
45
52
  * @memberof AiLimits
46
53
  */
47
54
  'limited'?: AiLimited;
55
+ /**
56
+ * Paused are the models whose share of the plan is used for now: each is answered by its fallback in chat until its share resets.
57
+ * @type {Array<AiPaused>}
58
+ * @memberof AiLimits
59
+ */
60
+ 'paused'?: Array<AiPaused>;
48
61
  /**
49
62
  *
50
63
  * @type {string}
@@ -29,6 +29,12 @@ export interface AiModelInfo {
29
29
  * @memberof AiModelInfo
30
30
  */
31
31
  'canonical_slug'?: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AiModelInfo
36
+ */
37
+ 'class'?: string;
32
38
  /**
33
39
  *
34
40
  * @type {number}
@@ -41,18 +47,42 @@ export interface AiModelInfo {
41
47
  * @memberof AiModelInfo
42
48
  */
43
49
  'created'?: number;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AiModelInfo
54
+ */
55
+ 'description'?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof AiModelInfo
60
+ */
61
+ 'family'?: string;
44
62
  /**
45
63
  *
46
64
  * @type {string}
47
65
  * @memberof AiModelInfo
48
66
  */
49
67
  'id'?: string;
68
+ /**
69
+ *
70
+ * @type {Array<string>}
71
+ * @memberof AiModelInfo
72
+ */
73
+ 'inputs'?: Array<string>;
50
74
  /**
51
75
  *
52
76
  * @type {number}
53
77
  * @memberof AiModelInfo
54
78
  */
55
79
  'max_output_tokens'?: number;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof AiModelInfo
84
+ */
85
+ 'name'?: string;
56
86
  /**
57
87
  *
58
88
  * @type {string}
@@ -89,6 +119,12 @@ export interface AiModelInfo {
89
119
  * @memberof AiModelInfo
90
120
  */
91
121
  'provider'?: string;
122
+ /**
123
+ *
124
+ * @type {boolean}
125
+ * @memberof AiModelInfo
126
+ */
127
+ 'supports_reasoning'?: boolean;
92
128
  /**
93
129
  *
94
130
  * @type {boolean}
@@ -12,37 +12,25 @@
12
12
  /**
13
13
  *
14
14
  * @export
15
- * @interface BillingWindow
15
+ * @interface AiPaused
16
16
  */
17
- export interface BillingWindow {
17
+ export interface AiPaused {
18
18
  /**
19
- *
20
- * @type {number}
21
- * @memberof BillingWindow
22
- */
23
- 'limit'?: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof BillingWindow
28
- */
29
- 'remaining'?: number;
30
- /**
31
- *
19
+ * Fallback is the Hanzo model that answers a conversation in its place.
32
20
  * @type {string}
33
- * @memberof BillingWindow
21
+ * @memberof AiPaused
34
22
  */
35
- 'resets'?: string;
23
+ 'fallback'?: string;
36
24
  /**
37
- *
25
+ * Model is the model id, or a pattern ending in `*` naming a family of them.
38
26
  * @type {string}
39
- * @memberof BillingWindow
27
+ * @memberof AiPaused
40
28
  */
41
- 'span'?: string;
29
+ 'model'?: string;
42
30
  /**
43
- *
44
- * @type {number}
45
- * @memberof BillingWindow
31
+ * ResetsAt is when its share resets (RFC3339).
32
+ * @type {string}
33
+ * @memberof AiPaused
46
34
  */
47
- 'used'?: number;
35
+ 'resets_at'?: string;
48
36
  }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hanzo Cloud API
5
+ * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator\'s admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
6
+ *
7
+ * The version of the OpenAPI document: v1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -47,13 +47,13 @@ export interface AllowanceAllowance {
47
47
  */
48
48
  'resets'?: number;
49
49
  /**
50
- * the subject is at the limit
50
+ * Spent says the ceiling refuses: on a take, that THIS call was refused and nothing was counted; on a read, that the next call would be.
51
51
  * @type {boolean}
52
52
  * @memberof AllowanceAllowance
53
53
  */
54
54
  'spent'?: boolean;
55
55
  /**
56
- * Used is how many zero-priced calls this subject has been SERVED in the period ending at Resets — the UTC calendar day. Only a served call counts, so an admission check, a refusal, or a vendor that never answered leaves it where it stood. It stops AT Limit rather than climbing past it, so Limit-Used is what remains and never goes negative.
56
+ * Used is how many free calls this subject has been admitted in the period ending at Resets — the UTC calendar day. A call counts when it is admitted, whatever its upstream then does; a refused call counts nothing. It stops AT Limit rather than climbing past it, so Limit-Used is what remains and never goes negative.
57
57
  * @type {number}
58
58
  * @memberof AllowanceAllowance
59
59
  */
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { BillingRollupAllotment } from './billing-rollup-allotment';
13
13
  import type { BillingRollupBalance } from './billing-rollup-balance';
14
- import type { BillingWindow } from './billing-window';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -66,10 +65,4 @@ export interface BillingRollup {
66
65
  * @memberof BillingRollup
67
66
  */
68
67
  'user'?: string;
69
- /**
70
- *
71
- * @type {Array<BillingWindow>}
72
- * @memberof BillingRollup
73
- */
74
- 'windows'?: Array<BillingWindow>;
75
68
  }
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { BillingTierBalance } from './billing-tier-balance';
13
13
  import type { BillingTierLimits } from './billing-tier-limits';
14
- import type { BillingWindow } from './billing-window';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -48,10 +47,4 @@ export interface BillingTier {
48
47
  * @memberof BillingTier
49
48
  */
50
49
  'user'?: string;
51
- /**
52
- *
53
- * @type {Array<BillingWindow>}
54
- * @memberof BillingTier
55
- */
56
- 'windows'?: Array<BillingWindow>;
57
50
  }
@@ -148,17 +148,17 @@ export interface ComputeSampleView {
148
148
  */
149
149
  'load1'?: number;
150
150
  /**
151
- * Load5 is the 5-minute load average, the same units as Load1.
151
+ * Load15 is the 15-minute load average, the same units as Load1.
152
152
  * @type {number}
153
153
  * @memberof ComputeSampleView
154
154
  */
155
- 'load5'?: number;
155
+ 'load15'?: number;
156
156
  /**
157
- * Load15 is the 15-minute load average, the same units as Load1.
157
+ * Load5 is the 5-minute load average, the same units as Load1.
158
158
  * @type {number}
159
159
  * @memberof ComputeSampleView
160
160
  */
161
- 'load15'?: number;
161
+ 'load5'?: number;
162
162
  /**
163
163
  * MemFree is host memory available, in BYTES, as reported rather than derived.
164
164
  * @type {number}