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.
- package/README.md +64 -9
- package/dist/answer.js +20 -10
- package/dist/api/ai-api.d.ts +280 -14
- package/dist/api/ai-api.js +315 -29
- package/dist/api/auto-api.d.ts +64 -0
- package/dist/api/auto-api.js +77 -0
- package/dist/api/billing-api.d.ts +4 -4
- package/dist/api/billing-api.js +4 -4
- package/dist/api/git-api.d.ts +30 -0
- package/dist/api/git-api.js +59 -0
- package/dist/api/task-api.d.ts +55 -0
- package/dist/api/task-api.js +71 -0
- package/dist/client.d.ts +3 -2
- package/dist/client.js +4 -3
- package/dist/esm/answer.js +20 -10
- package/dist/esm/api/ai-api.d.ts +280 -14
- package/dist/esm/api/ai-api.js +315 -29
- package/dist/esm/api/auto-api.d.ts +64 -0
- package/dist/esm/api/auto-api.js +77 -0
- package/dist/esm/api/billing-api.d.ts +4 -4
- package/dist/esm/api/billing-api.js +4 -4
- package/dist/esm/api/git-api.d.ts +30 -0
- package/dist/esm/api/git-api.js +59 -0
- package/dist/esm/api/task-api.d.ts +55 -0
- package/dist/esm/api/task-api.js +71 -0
- package/dist/esm/client.d.ts +3 -2
- package/dist/esm/client.js +3 -2
- package/dist/esm/hanzo.d.ts +3 -0
- package/dist/esm/hanzo.js +6 -0
- package/dist/esm/models/agent-target-view.d.ts +6 -0
- package/dist/esm/models/ai-chat-in.d.ts +42 -0
- package/dist/esm/models/ai-chat.d.ts +37 -0
- package/dist/esm/models/ai-decide-in.d.ts +50 -0
- package/dist/esm/models/ai-decide-in.js +14 -0
- package/dist/esm/models/ai-decision-sides.d.ts +4 -5
- package/dist/esm/models/{ai-decision-sides-false.d.ts → ai-decision.d.ts} +15 -2
- package/dist/esm/models/ai-decision.js +14 -0
- package/dist/esm/models/ai-decisions-answer.d.ts +2 -3
- package/dist/esm/models/ai-decisions-choice.d.ts +4 -8
- package/dist/esm/models/ai-decisions-noul.d.ts +2 -3
- package/dist/esm/models/ai-decisions-request.d.ts +2 -3
- package/dist/esm/models/ai-decisions-score.d.ts +4 -5
- package/dist/esm/models/ai-model.d.ts +73 -0
- package/dist/esm/models/ai-model.js +14 -0
- package/dist/esm/models/{ai-decisions-choice-criteria-value.d.ts → ai-models.d.ts} +15 -2
- package/dist/esm/models/ai-models.js +14 -0
- package/dist/esm/models/ai-price.d.ts +48 -0
- package/dist/esm/models/ai-price.js +14 -0
- package/dist/esm/models/ai-receipt.d.ts +60 -0
- package/dist/esm/models/ai-receipt.js +14 -0
- package/dist/esm/models/ai-routing-reward-request.d.ts +54 -0
- package/dist/esm/models/ai-routing-reward-request.js +24 -0
- package/dist/esm/models/auto-automation-in.d.ts +6 -0
- package/dist/esm/models/auto-automation-patch.d.ts +6 -0
- package/dist/esm/models/auto-automation-run.d.ts +14 -1
- package/dist/esm/models/auto-automation.d.ts +6 -0
- package/dist/esm/models/auto-post-result.d.ts +36 -0
- package/dist/esm/models/auto-post-result.js +14 -0
- package/dist/esm/models/auto-review-in.d.ts +36 -0
- package/dist/esm/models/auto-review-in.js +14 -0
- package/dist/esm/models/git-workspace-view.d.ts +36 -0
- package/dist/esm/models/git-workspace-view.js +14 -0
- package/dist/esm/models/iam-user.d.ts +1 -1
- package/dist/esm/models/index.d.ts +14 -2
- package/dist/esm/models/index.js +14 -2
- package/dist/esm/models/provider-github-import-out.d.ts +6 -0
- package/dist/esm/models/provider-github-repo-item.d.ts +6 -0
- package/dist/esm/models/task-comment-list.d.ts +31 -0
- package/dist/esm/models/task-comment-list.js +14 -0
- package/dist/esm/models/task-comment.d.ts +42 -0
- package/dist/esm/models/task-comment.js +14 -0
- package/dist/esm/transport.d.ts +4 -0
- package/dist/esm/transport.js +188 -0
- package/dist/esm/usage.d.ts +98 -0
- package/dist/esm/usage.js +161 -0
- package/dist/hanzo.d.ts +3 -0
- package/dist/hanzo.js +16 -1
- package/dist/models/agent-target-view.d.ts +6 -0
- package/dist/models/ai-chat-in.d.ts +42 -0
- package/dist/models/ai-chat.d.ts +37 -0
- package/dist/models/ai-decide-in.d.ts +50 -0
- package/dist/models/ai-decide-in.js +15 -0
- package/dist/models/ai-decision-sides.d.ts +4 -5
- package/dist/models/{ai-decision-sides-false.d.ts → ai-decision.d.ts} +15 -2
- package/dist/models/ai-decision.js +15 -0
- package/dist/models/ai-decisions-answer.d.ts +2 -3
- package/dist/models/ai-decisions-choice.d.ts +4 -8
- package/dist/models/ai-decisions-noul.d.ts +2 -3
- package/dist/models/ai-decisions-request.d.ts +2 -3
- package/dist/models/ai-decisions-score.d.ts +4 -5
- package/dist/models/ai-model.d.ts +73 -0
- package/dist/models/ai-model.js +15 -0
- package/dist/models/{ai-decisions-choice-criteria-value.d.ts → ai-models.d.ts} +15 -2
- package/dist/models/ai-models.js +15 -0
- package/dist/models/ai-price.d.ts +48 -0
- package/dist/models/ai-price.js +15 -0
- package/dist/models/ai-receipt.d.ts +60 -0
- package/dist/models/ai-receipt.js +15 -0
- package/dist/models/ai-routing-reward-request.d.ts +54 -0
- package/dist/models/ai-routing-reward-request.js +27 -0
- package/dist/models/auto-automation-in.d.ts +6 -0
- package/dist/models/auto-automation-patch.d.ts +6 -0
- package/dist/models/auto-automation-run.d.ts +14 -1
- package/dist/models/auto-automation.d.ts +6 -0
- package/dist/models/auto-post-result.d.ts +36 -0
- package/dist/models/auto-post-result.js +15 -0
- package/dist/models/auto-review-in.d.ts +36 -0
- package/dist/models/auto-review-in.js +15 -0
- package/dist/models/git-workspace-view.d.ts +36 -0
- package/dist/models/git-workspace-view.js +15 -0
- package/dist/models/iam-user.d.ts +1 -1
- package/dist/models/index.d.ts +14 -2
- package/dist/models/index.js +14 -2
- package/dist/models/provider-github-import-out.d.ts +6 -0
- package/dist/models/provider-github-repo-item.d.ts +6 -0
- package/dist/models/task-comment-list.d.ts +31 -0
- package/dist/models/task-comment-list.js +15 -0
- package/dist/models/task-comment.d.ts +42 -0
- package/dist/models/task-comment.js +15 -0
- package/dist/transport.d.ts +4 -0
- package/dist/transport.js +195 -0
- package/dist/usage.d.ts +98 -0
- package/dist/usage.js +174 -0
- package/package.json +1 -1
- package/src/answer.ts +23 -10
- package/src/api/ai-api.ts +503 -29
- package/src/api/auto-api.ts +117 -0
- package/src/api/billing-api.ts +4 -4
- package/src/api/git-api.ts +68 -0
- package/src/api/task-api.ts +101 -0
- package/src/client.ts +3 -2
- package/src/hanzo.ts +18 -0
- package/src/models/agent-target-view.ts +6 -0
- package/src/models/ai-chat-in.ts +48 -0
- package/src/models/ai-chat.ts +45 -0
- package/src/models/ai-decide-in.ts +54 -0
- package/src/models/ai-decision-sides.ts +4 -7
- package/src/models/{ai-decision-sides-false.ts → ai-decision.ts} +17 -2
- package/src/models/ai-decisions-answer.ts +2 -5
- package/src/models/ai-decisions-choice.ts +4 -10
- package/src/models/ai-decisions-noul.ts +2 -5
- package/src/models/ai-decisions-question.ts +0 -3
- package/src/models/ai-decisions-request.ts +2 -5
- package/src/models/ai-decisions-score.ts +4 -7
- package/src/models/ai-model.ts +81 -0
- package/src/models/{ai-decisions-choice-criteria-value.ts → ai-models.ts} +17 -2
- package/src/models/ai-price.ts +54 -0
- package/src/models/ai-receipt.ts +66 -0
- package/src/models/ai-routing-reward-request.ts +63 -0
- package/src/models/auto-automation-in.ts +6 -0
- package/src/models/auto-automation-patch.ts +6 -0
- package/src/models/auto-automation-run.ts +16 -1
- package/src/models/auto-automation.ts +6 -0
- package/src/models/auto-post-result.ts +42 -0
- package/src/models/auto-review-in.ts +42 -0
- package/src/models/git-workspace-view.ts +42 -0
- package/src/models/iam-user.ts +1 -1
- package/src/models/index.ts +14 -2
- package/src/models/provider-github-import-out.ts +6 -0
- package/src/models/provider-github-repo-item.ts +6 -0
- package/src/models/task-comment-list.ts +39 -0
- package/src/models/task-comment.ts +48 -0
- package/src/transport.ts +190 -0
- package/src/usage.ts +203 -0
- /package/dist/esm/models/{ai-decision-sides-false.js → ai-chat-in.js} +0 -0
- /package/dist/esm/models/{ai-decisions-choice-criteria-value.js → ai-chat.js} +0 -0
- /package/dist/models/{ai-decision-sides-false.js → ai-chat-in.js} +0 -0
- /package/dist/models/{ai-decisions-choice-criteria-value.js → ai-chat.js} +0 -0
|
@@ -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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -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 {
|
|
20
|
+
* @type {any}
|
|
22
21
|
* @memberof AiDecisionSides
|
|
23
22
|
*/
|
|
24
|
-
'false'?:
|
|
23
|
+
'false'?: any;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
* @type {
|
|
26
|
+
* @type {any}
|
|
28
27
|
* @memberof AiDecisionSides
|
|
29
28
|
*/
|
|
30
|
-
'true'?:
|
|
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
|
|
16
|
+
* @interface AiDecision
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -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]:
|
|
45
|
+
* @type {{ [key: string]: any; }}
|
|
47
46
|
* @memberof AiDecisionsAnswer
|
|
48
47
|
*/
|
|
49
48
|
'legend'?: {
|
|
50
|
-
[key: string]:
|
|
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 {
|
|
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 {
|
|
26
|
+
* @type {any}
|
|
31
27
|
* @memberof AiDecisionsChoice
|
|
32
28
|
*/
|
|
33
|
-
'instructions'?:
|
|
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 {
|
|
27
|
+
* @type {any}
|
|
29
28
|
* @memberof AiDecisionsNoul
|
|
30
29
|
*/
|
|
31
|
-
'instructions'?:
|
|
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 {
|
|
59
|
+
* @type {any}
|
|
61
60
|
* @memberof AiDecisionsRequest
|
|
62
61
|
*/
|
|
63
|
-
'state'?:
|
|
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<
|
|
20
|
+
* @type {Array<any>}
|
|
22
21
|
* @memberof AiDecisionsScore
|
|
23
22
|
*/
|
|
24
|
-
'criteria': Array<
|
|
23
|
+
'criteria': Array<any>;
|
|
25
24
|
/**
|
|
26
25
|
*
|
|
27
|
-
* @type {
|
|
26
|
+
* @type {any}
|
|
28
27
|
* @memberof AiDecisionsScore
|
|
29
28
|
*/
|
|
30
|
-
'instructions'?:
|
|
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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -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
|
|
16
|
+
* @interface AiModels
|
|
16
17
|
*/
|
|
17
|
-
export interface
|
|
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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,48 @@
|
|
|
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 AiPrice
|
|
16
|
+
*/
|
|
17
|
+
export interface AiPrice {
|
|
18
|
+
/**
|
|
19
|
+
* Completion is the price of one output token, a decimal string.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiPrice
|
|
22
|
+
*/
|
|
23
|
+
'completion'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* InputPerMillion is the price of a million input tokens.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof AiPrice
|
|
28
|
+
*/
|
|
29
|
+
'input_per_million'?: number;
|
|
30
|
+
/**
|
|
31
|
+
* OutputPerMillion is the price of a million output tokens.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AiPrice
|
|
34
|
+
*/
|
|
35
|
+
'output_per_million'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Prompt is the price of one input token, a decimal string.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiPrice
|
|
40
|
+
*/
|
|
41
|
+
'prompt'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Variable is true for a router that bills each answer at the price of the model that gave it; the figures above are then that router\'s ceiling.
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof AiPrice
|
|
46
|
+
*/
|
|
47
|
+
'variable'?: boolean;
|
|
48
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,60 @@
|
|
|
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 AiReceipt
|
|
16
|
+
*/
|
|
17
|
+
export interface AiReceipt {
|
|
18
|
+
/**
|
|
19
|
+
* Class is the model\'s class as billed: premium, ours or free (X-Hanzo-Usage-Class).
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiReceipt
|
|
22
|
+
*/
|
|
23
|
+
'class'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Fallback is the model that answered in place of the one asked, in limited mode (X-Hanzo-Fallback).
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiReceipt
|
|
28
|
+
*/
|
|
29
|
+
'fallback'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* PaidBy is plan, credits or free (X-Hanzo-Paid-By); absent when the answer named no payer, as a free model\'s does.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AiReceipt
|
|
34
|
+
*/
|
|
35
|
+
'paid_by'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Reason is the refusal code that sent the request to the fallback (X-Hanzo-Usage-Reason).
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiReceipt
|
|
40
|
+
*/
|
|
41
|
+
'reason'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Routed is the model `auto` resolved to (X-Routed-Model).
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AiReceipt
|
|
46
|
+
*/
|
|
47
|
+
'routed'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Served is the model that answered (X-Hanzo-Served).
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AiReceipt
|
|
52
|
+
*/
|
|
53
|
+
'served'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Usage is where that class stands for the payer: ok, near or limited (X-Hanzo-Usage).
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AiReceipt
|
|
58
|
+
*/
|
|
59
|
+
'usage'?: string;
|
|
60
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,54 @@
|
|
|
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 AiRoutingRewardRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AiRoutingRewardRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AiRoutingRewardRequest
|
|
22
|
+
*/
|
|
23
|
+
'rating'?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiRoutingRewardRequest
|
|
28
|
+
*/
|
|
29
|
+
'request_id': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AiRoutingRewardRequest
|
|
34
|
+
*/
|
|
35
|
+
'reward'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AiRoutingRewardRequest
|
|
40
|
+
*/
|
|
41
|
+
'signal'?: AiRoutingRewardRequestSignalEnum;
|
|
42
|
+
}
|
|
43
|
+
export declare const AiRoutingRewardRequestSignalEnum: {
|
|
44
|
+
readonly Up: 'up';
|
|
45
|
+
readonly Accept: 'accept';
|
|
46
|
+
readonly Regenerate: 'regenerate';
|
|
47
|
+
readonly Down: 'down';
|
|
48
|
+
readonly Switch: 'switch';
|
|
49
|
+
readonly Abandon: 'abandon';
|
|
50
|
+
readonly Revert: 'revert';
|
|
51
|
+
readonly Rating: 'rating';
|
|
52
|
+
readonly Dismiss: 'dismiss';
|
|
53
|
+
};
|
|
54
|
+
export type AiRoutingRewardRequestSignalEnum = typeof AiRoutingRewardRequestSignalEnum[keyof typeof AiRoutingRewardRequestSignalEnum];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Hanzo Cloud API
|
|
6
|
+
* 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/.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AiRoutingRewardRequestSignalEnum = void 0;
|
|
17
|
+
exports.AiRoutingRewardRequestSignalEnum = {
|
|
18
|
+
Up: 'up',
|
|
19
|
+
Accept: 'accept',
|
|
20
|
+
Regenerate: 'regenerate',
|
|
21
|
+
Down: 'down',
|
|
22
|
+
Switch: 'switch',
|
|
23
|
+
Abandon: 'abandon',
|
|
24
|
+
Revert: 'revert',
|
|
25
|
+
Rating: 'rating',
|
|
26
|
+
Dismiss: 'dismiss'
|
|
27
|
+
};
|
|
@@ -52,6 +52,12 @@ export interface AutoAutomationIn {
|
|
|
52
52
|
* @memberof AutoAutomationIn
|
|
53
53
|
*/
|
|
54
54
|
'permissions'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* PostTo are the connected accounts each run\'s answer is posted to: x, linkedin, facebook. Absent posts nothing.
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof AutoAutomationIn
|
|
59
|
+
*/
|
|
60
|
+
'postTo'?: Array<string>;
|
|
55
61
|
/**
|
|
56
62
|
* Project is a Dev project\'s slug to work in. Optional.
|
|
57
63
|
* @type {string}
|