hanzoai 8.5.621 → 8.5.640

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 (168) hide show
  1. package/README.md +64 -9
  2. package/dist/answer.js +20 -10
  3. package/dist/api/ai-api.d.ts +280 -14
  4. package/dist/api/ai-api.js +315 -29
  5. package/dist/api/auto-api.d.ts +64 -0
  6. package/dist/api/auto-api.js +77 -0
  7. package/dist/api/billing-api.d.ts +4 -4
  8. package/dist/api/billing-api.js +4 -4
  9. package/dist/api/git-api.d.ts +30 -0
  10. package/dist/api/git-api.js +59 -0
  11. package/dist/api/task-api.d.ts +55 -0
  12. package/dist/api/task-api.js +71 -0
  13. package/dist/client.d.ts +3 -2
  14. package/dist/client.js +4 -3
  15. package/dist/esm/answer.js +20 -10
  16. package/dist/esm/api/ai-api.d.ts +280 -14
  17. package/dist/esm/api/ai-api.js +315 -29
  18. package/dist/esm/api/auto-api.d.ts +64 -0
  19. package/dist/esm/api/auto-api.js +77 -0
  20. package/dist/esm/api/billing-api.d.ts +4 -4
  21. package/dist/esm/api/billing-api.js +4 -4
  22. package/dist/esm/api/git-api.d.ts +30 -0
  23. package/dist/esm/api/git-api.js +59 -0
  24. package/dist/esm/api/task-api.d.ts +55 -0
  25. package/dist/esm/api/task-api.js +71 -0
  26. package/dist/esm/client.d.ts +3 -2
  27. package/dist/esm/client.js +3 -2
  28. package/dist/esm/hanzo.d.ts +3 -0
  29. package/dist/esm/hanzo.js +6 -0
  30. package/dist/esm/models/agent-target-view.d.ts +6 -0
  31. package/dist/esm/models/ai-chat-in.d.ts +42 -0
  32. package/dist/esm/models/ai-chat.d.ts +37 -0
  33. package/dist/esm/models/ai-decide-in.d.ts +50 -0
  34. package/dist/esm/models/ai-decide-in.js +14 -0
  35. package/dist/esm/models/ai-decision-sides.d.ts +4 -5
  36. package/dist/esm/models/{ai-decision-sides-false.d.ts → ai-decision.d.ts} +15 -2
  37. package/dist/esm/models/ai-decision.js +14 -0
  38. package/dist/esm/models/ai-decisions-answer.d.ts +2 -3
  39. package/dist/esm/models/ai-decisions-choice.d.ts +4 -8
  40. package/dist/esm/models/ai-decisions-noul.d.ts +2 -3
  41. package/dist/esm/models/ai-decisions-request.d.ts +2 -3
  42. package/dist/esm/models/ai-decisions-score.d.ts +4 -5
  43. package/dist/esm/models/ai-model.d.ts +73 -0
  44. package/dist/esm/models/ai-model.js +14 -0
  45. package/dist/esm/models/{ai-decisions-choice-criteria-value.d.ts → ai-models.d.ts} +15 -2
  46. package/dist/esm/models/ai-models.js +14 -0
  47. package/dist/esm/models/ai-price.d.ts +48 -0
  48. package/dist/esm/models/ai-price.js +14 -0
  49. package/dist/esm/models/ai-receipt.d.ts +60 -0
  50. package/dist/esm/models/ai-receipt.js +14 -0
  51. package/dist/esm/models/ai-routing-reward-request.d.ts +54 -0
  52. package/dist/esm/models/ai-routing-reward-request.js +24 -0
  53. package/dist/esm/models/auto-automation-in.d.ts +6 -0
  54. package/dist/esm/models/auto-automation-patch.d.ts +6 -0
  55. package/dist/esm/models/auto-automation-run.d.ts +14 -1
  56. package/dist/esm/models/auto-automation.d.ts +6 -0
  57. package/dist/esm/models/auto-post-result.d.ts +36 -0
  58. package/dist/esm/models/auto-post-result.js +14 -0
  59. package/dist/esm/models/auto-review-in.d.ts +36 -0
  60. package/dist/esm/models/auto-review-in.js +14 -0
  61. package/dist/esm/models/git-workspace-view.d.ts +36 -0
  62. package/dist/esm/models/git-workspace-view.js +14 -0
  63. package/dist/esm/models/iam-user.d.ts +1 -1
  64. package/dist/esm/models/index.d.ts +14 -2
  65. package/dist/esm/models/index.js +14 -2
  66. package/dist/esm/models/provider-github-import-out.d.ts +6 -0
  67. package/dist/esm/models/provider-github-repo-item.d.ts +6 -0
  68. package/dist/esm/models/task-comment-list.d.ts +31 -0
  69. package/dist/esm/models/task-comment-list.js +14 -0
  70. package/dist/esm/models/task-comment.d.ts +42 -0
  71. package/dist/esm/models/task-comment.js +14 -0
  72. package/dist/esm/transport.d.ts +4 -0
  73. package/dist/esm/transport.js +188 -0
  74. package/dist/esm/usage.d.ts +98 -0
  75. package/dist/esm/usage.js +161 -0
  76. package/dist/hanzo.d.ts +3 -0
  77. package/dist/hanzo.js +16 -1
  78. package/dist/models/agent-target-view.d.ts +6 -0
  79. package/dist/models/ai-chat-in.d.ts +42 -0
  80. package/dist/models/ai-chat.d.ts +37 -0
  81. package/dist/models/ai-decide-in.d.ts +50 -0
  82. package/dist/models/ai-decide-in.js +15 -0
  83. package/dist/models/ai-decision-sides.d.ts +4 -5
  84. package/dist/models/{ai-decision-sides-false.d.ts → ai-decision.d.ts} +15 -2
  85. package/dist/models/ai-decision.js +15 -0
  86. package/dist/models/ai-decisions-answer.d.ts +2 -3
  87. package/dist/models/ai-decisions-choice.d.ts +4 -8
  88. package/dist/models/ai-decisions-noul.d.ts +2 -3
  89. package/dist/models/ai-decisions-request.d.ts +2 -3
  90. package/dist/models/ai-decisions-score.d.ts +4 -5
  91. package/dist/models/ai-model.d.ts +73 -0
  92. package/dist/models/ai-model.js +15 -0
  93. package/dist/models/{ai-decisions-choice-criteria-value.d.ts → ai-models.d.ts} +15 -2
  94. package/dist/models/ai-models.js +15 -0
  95. package/dist/models/ai-price.d.ts +48 -0
  96. package/dist/models/ai-price.js +15 -0
  97. package/dist/models/ai-receipt.d.ts +60 -0
  98. package/dist/models/ai-receipt.js +15 -0
  99. package/dist/models/ai-routing-reward-request.d.ts +54 -0
  100. package/dist/models/ai-routing-reward-request.js +27 -0
  101. package/dist/models/auto-automation-in.d.ts +6 -0
  102. package/dist/models/auto-automation-patch.d.ts +6 -0
  103. package/dist/models/auto-automation-run.d.ts +14 -1
  104. package/dist/models/auto-automation.d.ts +6 -0
  105. package/dist/models/auto-post-result.d.ts +36 -0
  106. package/dist/models/auto-post-result.js +15 -0
  107. package/dist/models/auto-review-in.d.ts +36 -0
  108. package/dist/models/auto-review-in.js +15 -0
  109. package/dist/models/git-workspace-view.d.ts +36 -0
  110. package/dist/models/git-workspace-view.js +15 -0
  111. package/dist/models/iam-user.d.ts +1 -1
  112. package/dist/models/index.d.ts +14 -2
  113. package/dist/models/index.js +14 -2
  114. package/dist/models/provider-github-import-out.d.ts +6 -0
  115. package/dist/models/provider-github-repo-item.d.ts +6 -0
  116. package/dist/models/task-comment-list.d.ts +31 -0
  117. package/dist/models/task-comment-list.js +15 -0
  118. package/dist/models/task-comment.d.ts +42 -0
  119. package/dist/models/task-comment.js +15 -0
  120. package/dist/transport.d.ts +4 -0
  121. package/dist/transport.js +195 -0
  122. package/dist/usage.d.ts +98 -0
  123. package/dist/usage.js +174 -0
  124. package/package.json +1 -1
  125. package/src/answer.ts +23 -10
  126. package/src/api/ai-api.ts +503 -29
  127. package/src/api/auto-api.ts +117 -0
  128. package/src/api/billing-api.ts +4 -4
  129. package/src/api/git-api.ts +68 -0
  130. package/src/api/task-api.ts +101 -0
  131. package/src/client.ts +3 -2
  132. package/src/hanzo.ts +18 -0
  133. package/src/models/agent-target-view.ts +6 -0
  134. package/src/models/ai-chat-in.ts +48 -0
  135. package/src/models/ai-chat.ts +45 -0
  136. package/src/models/ai-decide-in.ts +54 -0
  137. package/src/models/ai-decision-sides.ts +4 -7
  138. package/src/models/{ai-decision-sides-false.ts → ai-decision.ts} +17 -2
  139. package/src/models/ai-decisions-answer.ts +2 -5
  140. package/src/models/ai-decisions-choice.ts +4 -10
  141. package/src/models/ai-decisions-noul.ts +2 -5
  142. package/src/models/ai-decisions-question.ts +0 -3
  143. package/src/models/ai-decisions-request.ts +2 -5
  144. package/src/models/ai-decisions-score.ts +4 -7
  145. package/src/models/ai-model.ts +81 -0
  146. package/src/models/{ai-decisions-choice-criteria-value.ts → ai-models.ts} +17 -2
  147. package/src/models/ai-price.ts +54 -0
  148. package/src/models/ai-receipt.ts +66 -0
  149. package/src/models/ai-routing-reward-request.ts +63 -0
  150. package/src/models/auto-automation-in.ts +6 -0
  151. package/src/models/auto-automation-patch.ts +6 -0
  152. package/src/models/auto-automation-run.ts +16 -1
  153. package/src/models/auto-automation.ts +6 -0
  154. package/src/models/auto-post-result.ts +42 -0
  155. package/src/models/auto-review-in.ts +42 -0
  156. package/src/models/git-workspace-view.ts +42 -0
  157. package/src/models/iam-user.ts +1 -1
  158. package/src/models/index.ts +14 -2
  159. package/src/models/provider-github-import-out.ts +6 -0
  160. package/src/models/provider-github-repo-item.ts +6 -0
  161. package/src/models/task-comment-list.ts +39 -0
  162. package/src/models/task-comment.ts +48 -0
  163. package/src/transport.ts +190 -0
  164. package/src/usage.ts +203 -0
  165. /package/dist/esm/models/{ai-decision-sides-false.js → ai-chat-in.js} +0 -0
  166. /package/dist/esm/models/{ai-decisions-choice-criteria-value.js → ai-chat.js} +0 -0
  167. /package/dist/models/{ai-decision-sides-false.js → ai-chat-in.js} +0 -0
  168. /package/dist/models/{ai-decisions-choice-criteria-value.js → ai-chat.js} +0 -0
@@ -327,6 +327,42 @@ export const TaskApiAxiosParamCreator = function (configuration) {
327
327
  options: localVarRequestOptions,
328
328
  };
329
329
  },
330
+ /**
331
+ * Is one issue\'s conversation, oldest first, read as the caller. An issue that lives on GitHub names its home and is read there.
332
+ * @summary Is one issue\'s conversation, oldest first, read as the caller.
333
+ * @param {string} key Key is the board — the repository name, or an index board\'s key.
334
+ * @param {number} num Num is the issue\'s number on that board.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ getTaskProjectsByKeyIssuesByNumComments: async (key, num, options = {}) => {
339
+ // verify required parameter 'key' is not null or undefined
340
+ assertParamExists('getTaskProjectsByKeyIssuesByNumComments', 'key', key);
341
+ // verify required parameter 'num' is not null or undefined
342
+ assertParamExists('getTaskProjectsByKeyIssuesByNumComments', 'num', num);
343
+ const localVarPath = `/v1/task/projects/{key}/issues/{num}/comments`
344
+ .replace(`{${"key"}}`, encodeURIComponent(String(key)))
345
+ .replace(`{${"num"}}`, encodeURIComponent(String(num)));
346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
348
+ let baseOptions;
349
+ if (configuration) {
350
+ baseOptions = configuration.baseOptions;
351
+ }
352
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
353
+ const localVarHeaderParameter = {};
354
+ const localVarQueryParameter = {};
355
+ // authentication bearer required
356
+ // http bearer authentication required
357
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
358
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
359
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
361
+ return {
362
+ url: toPathString(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ };
365
+ },
330
366
  /**
331
367
  * Summarises one room\'s work. The room is opaque here and is deliberately not resolved: this package cannot say whether a room exists — apps/team owns that document — so an unknown room answers an EMPTY board rather than a 404. That is the honest answer and the useful one: a channel that has never had an item filed in it and a channel id that was mistyped both have no work, and inventing a distinction would require this surface to hold a second copy of the room list (HIP-0523 §2 forbids it, and it would drift the first time a room was renamed). Tenancy is the validated principal\'s org and nothing else, so a caller cannot read another tenant\'s channel by naming its room.
332
368
  * @summary Summarises one room\'s work.
@@ -653,6 +689,20 @@ export const TaskApiFp = function (configuration) {
653
689
  const localVarOperationServerBasePath = operationServerMap['TaskApi.getTaskProjectsByKeyIssuesByNum']?.[localVarOperationServerIndex]?.url;
654
690
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
655
691
  },
692
+ /**
693
+ * Is one issue\'s conversation, oldest first, read as the caller. An issue that lives on GitHub names its home and is read there.
694
+ * @summary Is one issue\'s conversation, oldest first, read as the caller.
695
+ * @param {string} key Key is the board — the repository name, or an index board\'s key.
696
+ * @param {number} num Num is the issue\'s number on that board.
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ async getTaskProjectsByKeyIssuesByNumComments(key, num, options) {
701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskProjectsByKeyIssuesByNumComments(key, num, options);
702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
703
+ const localVarOperationServerBasePath = operationServerMap['TaskApi.getTaskProjectsByKeyIssuesByNumComments']?.[localVarOperationServerIndex]?.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ },
656
706
  /**
657
707
  * Summarises one room\'s work. The room is opaque here and is deliberately not resolved: this package cannot say whether a room exists — apps/team owns that document — so an unknown room answers an EMPTY board rather than a 404. That is the honest answer and the useful one: a channel that has never had an item filed in it and a channel id that was mistyped both have no work, and inventing a distinction would require this surface to hold a second copy of the room list (HIP-0523 §2 forbids it, and it would drift the first time a room was renamed). Tenancy is the validated principal\'s org and nothing else, so a caller cannot read another tenant\'s channel by naming its room.
658
708
  * @summary Summarises one room\'s work.
@@ -812,6 +862,16 @@ export const TaskApiFactory = function (configuration, basePath, axios) {
812
862
  getTaskProjectsByKeyIssuesByNum(requestParameters, options) {
813
863
  return localVarFp.getTaskProjectsByKeyIssuesByNum(requestParameters.key, requestParameters.num, options).then((request) => request(axios, basePath));
814
864
  },
865
+ /**
866
+ * Is one issue\'s conversation, oldest first, read as the caller. An issue that lives on GitHub names its home and is read there.
867
+ * @summary Is one issue\'s conversation, oldest first, read as the caller.
868
+ * @param {TaskApiGetTaskProjectsByKeyIssuesByNumCommentsRequest} requestParameters Request parameters.
869
+ * @param {*} [options] Override http request option.
870
+ * @throws {RequiredError}
871
+ */
872
+ getTaskProjectsByKeyIssuesByNumComments(requestParameters, options) {
873
+ return localVarFp.getTaskProjectsByKeyIssuesByNumComments(requestParameters.key, requestParameters.num, options).then((request) => request(axios, basePath));
874
+ },
815
875
  /**
816
876
  * Summarises one room\'s work. The room is opaque here and is deliberately not resolved: this package cannot say whether a room exists — apps/team owns that document — so an unknown room answers an EMPTY board rather than a 404. That is the honest answer and the useful one: a channel that has never had an item filed in it and a channel id that was mistyped both have no work, and inventing a distinction would require this surface to hold a second copy of the room list (HIP-0523 §2 forbids it, and it would drift the first time a room was renamed). Tenancy is the validated principal\'s org and nothing else, so a caller cannot read another tenant\'s channel by naming its room.
817
877
  * @summary Summarises one room\'s work.
@@ -956,6 +1016,17 @@ export class TaskApi extends BaseAPI {
956
1016
  getTaskProjectsByKeyIssuesByNum(requestParameters, options) {
957
1017
  return TaskApiFp(this.configuration).getTaskProjectsByKeyIssuesByNum(requestParameters.key, requestParameters.num, options).then((request) => request(this.axios, this.basePath));
958
1018
  }
1019
+ /**
1020
+ * Is one issue\'s conversation, oldest first, read as the caller. An issue that lives on GitHub names its home and is read there.
1021
+ * @summary Is one issue\'s conversation, oldest first, read as the caller.
1022
+ * @param {TaskApiGetTaskProjectsByKeyIssuesByNumCommentsRequest} requestParameters Request parameters.
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ * @memberof TaskApi
1026
+ */
1027
+ getTaskProjectsByKeyIssuesByNumComments(requestParameters, options) {
1028
+ return TaskApiFp(this.configuration).getTaskProjectsByKeyIssuesByNumComments(requestParameters.key, requestParameters.num, options).then((request) => request(this.axios, this.basePath));
1029
+ }
959
1030
  /**
960
1031
  * Summarises one room\'s work. The room is opaque here and is deliberately not resolved: this package cannot say whether a room exists — apps/team owns that document — so an unknown room answers an EMPTY board rather than a 404. That is the honest answer and the useful one: a channel that has never had an item filed in it and a channel id that was mistyped both have no work, and inventing a distinction would require this surface to hold a second copy of the room list (HIP-0523 §2 forbids it, and it would drift the first time a room was renamed). Tenancy is the validated principal\'s org and nothing else, so a caller cannot read another tenant\'s channel by naming its room.
961
1032
  * @summary Summarises one room\'s work.
@@ -1,4 +1,4 @@
1
- import { Configuration } from './configuration';
1
+ import { Configuration } from './transport';
2
2
  import { Audit } from './audit';
3
3
  import { Budget } from './budget';
4
4
  import { Graph } from './graph';
@@ -56,7 +56,8 @@ export declare class Client {
56
56
  /**
57
57
  * A Configuration carrying this client's identity, for the generated *Api
58
58
  * classes. The `accessToken` reader is a function, so every generated call
59
- * mints or re-uses through the same cache the six use.
59
+ * mints or re-uses through the same cache the six use, and a usage refusal
60
+ * arrives as its typed error (transport.ts).
60
61
  */
61
62
  get configuration(): Configuration;
62
63
  /** A live access token, minting one when what is held is gone or nearly so. */
@@ -12,7 +12,7 @@
12
12
  // *Api classes stay reachable for the other 2400 operations: read
13
13
  // `client.configuration` and construct one with the same identity.
14
14
  import { Fault } from './answer';
15
- import { Configuration } from './configuration';
15
+ import { Configuration } from './transport';
16
16
  import { Audit } from './audit';
17
17
  import { Budget } from './budget';
18
18
  import { Graph } from './graph';
@@ -66,7 +66,8 @@ export class Client {
66
66
  /**
67
67
  * A Configuration carrying this client's identity, for the generated *Api
68
68
  * classes. The `accessToken` reader is a function, so every generated call
69
- * mints or re-uses through the same cache the six use.
69
+ * mints or re-uses through the same cache the six use, and a usage refusal
70
+ * arrives as its typed error (transport.ts).
70
71
  */
71
72
  get configuration() {
72
73
  return new Configuration({ basePath: this.base, accessToken: () => this.token() });
@@ -1,6 +1,9 @@
1
1
  export * from './index';
2
+ export { Configuration } from './transport';
2
3
  export { Client } from './client';
3
4
  export type { Options } from './client';
5
+ export { readUsage, UsageLimitError, PlanAllowanceUsedError, PaidPlanRequiredError, FreePlanCapError, ModelCapError, UsageCapExceededError, InsufficientBalanceError, } from './usage';
6
+ export type { Usage, UsageAction, HeaderSource } from './usage';
4
7
  export * as answer from './answer';
5
8
  export * as budget from './budget';
6
9
  export * as policy from './policy';
package/dist/esm/hanzo.js CHANGED
@@ -21,7 +21,13 @@
21
21
  // search.Hit, audit.Event, graph.Fact — which is how the contract writes them
22
22
  // and what keeps them clear of the generated models' 4599 names.
23
23
  export * from './index';
24
+ // The generated Configuration, plus typed usage refusals on every *Api call
25
+ // made with it. Named here, it shadows the one `./index` exports.
26
+ export { Configuration } from './transport';
24
27
  export { Client } from './client';
28
+ // What a priced answer's headers say, and the six refusals a caller can act on —
29
+ // the same names as the Python and Go SDKs.
30
+ export { readUsage, UsageLimitError, PlanAllowanceUsedError, PaidPlanRequiredError, FreePlanCapError, ModelCapError, UsageCapExceededError, InsufficientBalanceError, } from './usage';
25
31
  export * as answer from './answer';
26
32
  export * as budget from './budget';
27
33
  export * as policy from './policy';
@@ -71,6 +71,12 @@ export interface AgentTargetView {
71
71
  * @memberof AgentTargetView
72
72
  */
73
73
  'running'?: number;
74
+ /**
75
+ * Serving says whether a run the caller sends here now would be taken: the machine is the caller\'s (or the caller is an org admin), and it is online with a runner that polled for work within the last 90 seconds — the online and runner half is what dispatch checks (TargetDispatchable). A heartbeat alone keeps a machine online, not serving, and a colleague\'s machine never serves the caller.
76
+ * @type {boolean}
77
+ * @memberof AgentTargetView
78
+ */
79
+ 'serving'?: boolean;
74
80
  /**
75
81
  * Sessions is how many of the org\'s sessions are mapped to this machine, by target id OR by matching Host. All of them, whatever their status.
76
82
  * @type {number}
@@ -0,0 +1,42 @@
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 AiChatIn
16
+ */
17
+ export interface AiChatIn {
18
+ /**
19
+ * MaxTokens bounds the answer in tokens; 0 leaves it to the model.
20
+ * @type {number}
21
+ * @memberof AiChatIn
22
+ */
23
+ 'max_tokens'?: number;
24
+ /**
25
+ * Model is the model to answer, by id (zen5, enso, kai, anthropic/claude-sonnet-4.5 — aiModels lists them). Empty asks the deployment\'s default Hanzo model.
26
+ * @type {string}
27
+ * @memberof AiChatIn
28
+ */
29
+ 'model'?: string;
30
+ /**
31
+ * Prompt is what to ask.
32
+ * @type {string}
33
+ * @memberof AiChatIn
34
+ */
35
+ 'prompt'?: string;
36
+ /**
37
+ * System is the system message ahead of the prompt, when set.
38
+ * @type {string}
39
+ * @memberof AiChatIn
40
+ */
41
+ 'system'?: string;
42
+ }
@@ -0,0 +1,37 @@
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
+ import type { AiReceipt } from './ai-receipt';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiChat
17
+ */
18
+ export interface AiChat {
19
+ /**
20
+ * Answer is the model\'s reply.
21
+ * @type {string}
22
+ * @memberof AiChat
23
+ */
24
+ 'answer'?: string;
25
+ /**
26
+ * Model is the model asked: the caller\'s, or the default when it named none.
27
+ * @type {string}
28
+ * @memberof AiChat
29
+ */
30
+ 'model'?: string;
31
+ /**
32
+ * Receipt says which model served the reply and who paid for it.
33
+ * @type {AiReceipt}
34
+ * @memberof AiChat
35
+ */
36
+ 'receipt'?: AiReceipt;
37
+ }
@@ -0,0 +1,50 @@
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 AiDecideIn
16
+ */
17
+ export interface AiDecideIn {
18
+ /**
19
+ * Handle decides over a state this org observed earlier, in place of State and Questions.
20
+ * @type {string}
21
+ * @memberof AiDecideIn
22
+ */
23
+ 'handle'?: string;
24
+ /**
25
+ * Model is kai, Kai\'s versioned id kai-<12 hex>, or Jev by its vendor id (typesafe/jev-1.13, ~typesafe/jev-latest).
26
+ * @type {string}
27
+ * @memberof AiDecideIn
28
+ */
29
+ 'model'?: string;
30
+ /**
31
+ * Observe holds the state under this id (1 to 128 of A-Z a-z 0-9 . _ -), so a later decision can name it as its Handle.
32
+ * @type {string}
33
+ * @memberof AiDecideIn
34
+ */
35
+ 'observe'?: string;
36
+ /**
37
+ * Questions are 1 to 100 named questions, each {\"type\": \"choice\"|\"noul\"|\"score\", \"instructions\"?, \"criteria\"?}; a choice names at least 2 labels and a score at least 1 level. Not sent with a Handle.
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof AiDecideIn
40
+ */
41
+ 'questions'?: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ *
46
+ * @type {any}
47
+ * @memberof AiDecideIn
48
+ */
49
+ 'state'?: any;
50
+ }
@@ -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 {};
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -18,14 +17,14 @@ import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
18
17
  export interface AiDecisionSides {
19
18
  /**
20
19
  *
21
- * @type {AiDecisionSidesFalse}
20
+ * @type {any}
22
21
  * @memberof AiDecisionSides
23
22
  */
24
- 'false'?: AiDecisionSidesFalse;
23
+ 'false'?: any;
25
24
  /**
26
25
  *
27
- * @type {AiDecisionSidesFalse}
26
+ * @type {any}
28
27
  * @memberof AiDecisionSides
29
28
  */
30
- 'true'?: AiDecisionSidesFalse;
29
+ 'true'?: any;
31
30
  }
@@ -9,10 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AiReceipt } from './ai-receipt';
12
13
  /**
13
14
  *
14
15
  * @export
15
- * @interface AiDecisionSidesFalse
16
+ * @interface AiDecision
16
17
  */
17
- export interface AiDecisionSidesFalse {
18
+ export interface AiDecision {
19
+ /**
20
+ *
21
+ * @type {any}
22
+ * @memberof AiDecision
23
+ */
24
+ 'decision'?: any;
25
+ /**
26
+ * Receipt says which model served the decision and who paid for it.
27
+ * @type {AiReceipt}
28
+ * @memberof AiDecision
29
+ */
30
+ 'receipt'?: AiReceipt;
18
31
  }
@@ -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 {};
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
13
12
  import type { AiDecisionsAction } from './ai-decisions-action';
14
13
  /**
15
14
  *
@@ -43,11 +42,11 @@ export interface AiDecisionsAnswer {
43
42
  'confidence'?: number;
44
43
  /**
45
44
  *
46
- * @type {{ [key: string]: AiDecisionSidesFalse; }}
45
+ * @type {{ [key: string]: any; }}
47
46
  * @memberof AiDecisionsAnswer
48
47
  */
49
48
  'legend'?: {
50
- [key: string]: AiDecisionSidesFalse;
49
+ [key: string]: any;
51
50
  };
52
51
  /**
53
52
  *
@@ -9,8 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
13
- import type { AiDecisionsChoiceCriteriaValue } from './ai-decisions-choice-criteria-value';
14
12
  /**
15
13
  *
16
14
  * @export
@@ -19,18 +17,16 @@ import type { AiDecisionsChoiceCriteriaValue } from './ai-decisions-choice-crite
19
17
  export interface AiDecisionsChoice {
20
18
  /**
21
19
  *
22
- * @type {{ [key: string]: AiDecisionsChoiceCriteriaValue; }}
20
+ * @type {any}
23
21
  * @memberof AiDecisionsChoice
24
22
  */
25
- 'criteria': {
26
- [key: string]: AiDecisionsChoiceCriteriaValue;
27
- };
23
+ 'criteria': any;
28
24
  /**
29
25
  *
30
- * @type {AiDecisionSidesFalse}
26
+ * @type {any}
31
27
  * @memberof AiDecisionsChoice
32
28
  */
33
- 'instructions'?: AiDecisionSidesFalse;
29
+ 'instructions'?: any;
34
30
  /**
35
31
  *
36
32
  * @type {string}
@@ -10,7 +10,6 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { AiDecisionSides } from './ai-decision-sides';
13
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
14
13
  /**
15
14
  *
16
15
  * @export
@@ -25,10 +24,10 @@ export interface AiDecisionsNoul {
25
24
  'criteria'?: AiDecisionSides;
26
25
  /**
27
26
  *
28
- * @type {AiDecisionSidesFalse}
27
+ * @type {any}
29
28
  * @memberof AiDecisionsNoul
30
29
  */
31
- 'instructions'?: AiDecisionSidesFalse;
30
+ 'instructions'?: any;
32
31
  /**
33
32
  *
34
33
  * @type {{ [key: string]: string; }}
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
13
12
  import type { AiDecisionsQuestion } from './ai-decisions-question';
14
13
  /**
15
14
  *
@@ -57,10 +56,10 @@ export interface AiDecisionsRequest {
57
56
  'session_id'?: string;
58
57
  /**
59
58
  *
60
- * @type {AiDecisionSidesFalse}
59
+ * @type {any}
61
60
  * @memberof AiDecisionsRequest
62
61
  */
63
- 'state'?: AiDecisionSidesFalse;
62
+ 'state'?: any;
64
63
  /**
65
64
  *
66
65
  * @type {any}
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -18,16 +17,16 @@ import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
18
17
  export interface AiDecisionsScore {
19
18
  /**
20
19
  *
21
- * @type {Array<AiDecisionSidesFalse>}
20
+ * @type {Array<any>}
22
21
  * @memberof AiDecisionsScore
23
22
  */
24
- 'criteria': Array<AiDecisionSidesFalse>;
23
+ 'criteria': Array<any>;
25
24
  /**
26
25
  *
27
- * @type {AiDecisionSidesFalse}
26
+ * @type {any}
28
27
  * @memberof AiDecisionsScore
29
28
  */
30
- 'instructions'?: AiDecisionSidesFalse;
29
+ 'instructions'?: any;
31
30
  /**
32
31
  *
33
32
  * @type {string}
@@ -0,0 +1,73 @@
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
+ import type { AiPrice } from './ai-price';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiModel
17
+ */
18
+ export interface AiModel {
19
+ /**
20
+ * Capabilities are tools, vision and reasoning, those the model supports.
21
+ * @type {Array<string>}
22
+ * @memberof AiModel
23
+ */
24
+ 'capabilities'?: Array<string>;
25
+ /**
26
+ * Class is premium, ours or free.
27
+ * @type {string}
28
+ * @memberof AiModel
29
+ */
30
+ 'class'?: string;
31
+ /**
32
+ * ContextWindow is the most tokens the model reads at once, absent when the catalog does not say.
33
+ * @type {number}
34
+ * @memberof AiModel
35
+ */
36
+ 'context_window'?: number;
37
+ /**
38
+ * Family is the Hanzo family (enso, zen, kai, zoo), absent for a third-party model.
39
+ * @type {string}
40
+ * @memberof AiModel
41
+ */
42
+ 'family'?: string;
43
+ /**
44
+ * ID is the model\'s id, the one a completion or a decision names.
45
+ * @type {string}
46
+ * @memberof AiModel
47
+ */
48
+ 'id'?: string;
49
+ /**
50
+ * Inputs are the modalities the model reads.
51
+ * @type {Array<string>}
52
+ * @memberof AiModel
53
+ */
54
+ 'inputs'?: Array<string>;
55
+ /**
56
+ * Name is the model\'s display name.
57
+ * @type {string}
58
+ * @memberof AiModel
59
+ */
60
+ 'name'?: string;
61
+ /**
62
+ * Outputs are the modalities the model writes.
63
+ * @type {Array<string>}
64
+ * @memberof AiModel
65
+ */
66
+ 'outputs'?: Array<string>;
67
+ /**
68
+ * Pricing is the model\'s list price.
69
+ * @type {AiPrice}
70
+ * @memberof AiModel
71
+ */
72
+ 'pricing'?: AiPrice;
73
+ }
@@ -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 {};
@@ -9,10 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AiModel } from './ai-model';
12
13
  /**
13
14
  *
14
15
  * @export
15
- * @interface AiDecisionsChoiceCriteriaValue
16
+ * @interface AiModels
16
17
  */
17
- export interface AiDecisionsChoiceCriteriaValue {
18
+ export interface AiModels {
19
+ /**
20
+ * Models are the matches, in the catalog\'s order.
21
+ * @type {Array<AiModel>}
22
+ * @memberof AiModels
23
+ */
24
+ 'models'?: Array<AiModel>;
25
+ /**
26
+ * Total is how many models matched, before Limit.
27
+ * @type {number}
28
+ * @memberof AiModels
29
+ */
30
+ 'total'?: number;
18
31
  }
@@ -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 {};