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,54 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AiDecideIn
|
|
21
|
+
*/
|
|
22
|
+
export interface AiDecideIn {
|
|
23
|
+
/**
|
|
24
|
+
* Handle decides over a state this org observed earlier, in place of State and Questions.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AiDecideIn
|
|
27
|
+
*/
|
|
28
|
+
'handle'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Model is kai, Kai\'s versioned id kai-<12 hex>, or Jev by its vendor id (typesafe/jev-1.13, ~typesafe/jev-latest).
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AiDecideIn
|
|
33
|
+
*/
|
|
34
|
+
'model'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 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.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AiDecideIn
|
|
39
|
+
*/
|
|
40
|
+
'observe'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* 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.
|
|
43
|
+
* @type {{ [key: string]: any; }}
|
|
44
|
+
* @memberof AiDecideIn
|
|
45
|
+
*/
|
|
46
|
+
'questions'?: { [key: string]: any; };
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {any}
|
|
50
|
+
* @memberof AiDecideIn
|
|
51
|
+
*/
|
|
52
|
+
'state'?: any;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
*
|
|
@@ -25,15 +22,15 @@ import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
|
25
22
|
export interface AiDecisionSides {
|
|
26
23
|
/**
|
|
27
24
|
*
|
|
28
|
-
* @type {
|
|
25
|
+
* @type {any}
|
|
29
26
|
* @memberof AiDecisionSides
|
|
30
27
|
*/
|
|
31
|
-
'false'?:
|
|
28
|
+
'false'?: any;
|
|
32
29
|
/**
|
|
33
30
|
*
|
|
34
|
-
* @type {
|
|
31
|
+
* @type {any}
|
|
35
32
|
* @memberof AiDecisionSides
|
|
36
33
|
*/
|
|
37
|
-
'true'?:
|
|
34
|
+
'true'?: any;
|
|
38
35
|
}
|
|
39
36
|
|
|
@@ -13,12 +13,27 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AiReceipt } from './ai-receipt';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
* @export
|
|
20
|
-
* @interface
|
|
23
|
+
* @interface AiDecision
|
|
21
24
|
*/
|
|
22
|
-
export interface
|
|
25
|
+
export interface AiDecision {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {any}
|
|
29
|
+
* @memberof AiDecision
|
|
30
|
+
*/
|
|
31
|
+
'decision'?: any;
|
|
32
|
+
/**
|
|
33
|
+
* Receipt says which model served the decision and who paid for it.
|
|
34
|
+
* @type {AiReceipt}
|
|
35
|
+
* @memberof AiDecision
|
|
36
|
+
*/
|
|
37
|
+
'receipt'?: AiReceipt;
|
|
23
38
|
}
|
|
24
39
|
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
16
|
// May contain unused imports in some cases
|
|
20
17
|
// @ts-ignore
|
|
21
18
|
import type { AiDecisionsAction } from './ai-decisions-action';
|
|
@@ -52,10 +49,10 @@ export interface AiDecisionsAnswer {
|
|
|
52
49
|
'confidence'?: number;
|
|
53
50
|
/**
|
|
54
51
|
*
|
|
55
|
-
* @type {{ [key: string]:
|
|
52
|
+
* @type {{ [key: string]: any; }}
|
|
56
53
|
* @memberof AiDecisionsAnswer
|
|
57
54
|
*/
|
|
58
|
-
'legend'?: { [key: string]:
|
|
55
|
+
'legend'?: { [key: string]: any; };
|
|
59
56
|
/**
|
|
60
57
|
*
|
|
61
58
|
* @type {number}
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
|
-
// May contain unused imports in some cases
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import type { AiDecisionsChoiceCriteriaValue } from './ai-decisions-choice-criteria-value';
|
|
22
16
|
|
|
23
17
|
/**
|
|
24
18
|
*
|
|
@@ -28,16 +22,16 @@ import type { AiDecisionsChoiceCriteriaValue } from './ai-decisions-choice-crite
|
|
|
28
22
|
export interface AiDecisionsChoice {
|
|
29
23
|
/**
|
|
30
24
|
*
|
|
31
|
-
* @type {
|
|
25
|
+
* @type {any}
|
|
32
26
|
* @memberof AiDecisionsChoice
|
|
33
27
|
*/
|
|
34
|
-
'criteria':
|
|
28
|
+
'criteria': any;
|
|
35
29
|
/**
|
|
36
30
|
*
|
|
37
|
-
* @type {
|
|
31
|
+
* @type {any}
|
|
38
32
|
* @memberof AiDecisionsChoice
|
|
39
33
|
*/
|
|
40
|
-
'instructions'?:
|
|
34
|
+
'instructions'?: any;
|
|
41
35
|
/**
|
|
42
36
|
*
|
|
43
37
|
* @type {string}
|
|
@@ -16,9 +16,6 @@
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import type { AiDecisionSides } from './ai-decision-sides';
|
|
19
|
-
// May contain unused imports in some cases
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
22
19
|
|
|
23
20
|
/**
|
|
24
21
|
*
|
|
@@ -34,10 +31,10 @@ export interface AiDecisionsNoul {
|
|
|
34
31
|
'criteria'?: AiDecisionSides;
|
|
35
32
|
/**
|
|
36
33
|
*
|
|
37
|
-
* @type {
|
|
34
|
+
* @type {any}
|
|
38
35
|
* @memberof AiDecisionsNoul
|
|
39
36
|
*/
|
|
40
|
-
'instructions'?:
|
|
37
|
+
'instructions'?: any;
|
|
41
38
|
/**
|
|
42
39
|
*
|
|
43
40
|
* @type {{ [key: string]: string; }}
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
16
|
// May contain unused imports in some cases
|
|
20
17
|
// @ts-ignore
|
|
21
18
|
import type { AiDecisionsChoice } from './ai-decisions-choice';
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
16
|
// May contain unused imports in some cases
|
|
20
17
|
// @ts-ignore
|
|
21
18
|
import type { AiDecisionsQuestion } from './ai-decisions-question';
|
|
@@ -64,10 +61,10 @@ export interface AiDecisionsRequest {
|
|
|
64
61
|
'session_id'?: string;
|
|
65
62
|
/**
|
|
66
63
|
*
|
|
67
|
-
* @type {
|
|
64
|
+
* @type {any}
|
|
68
65
|
* @memberof AiDecisionsRequest
|
|
69
66
|
*/
|
|
70
|
-
'state'?:
|
|
67
|
+
'state'?: any;
|
|
71
68
|
/**
|
|
72
69
|
*
|
|
73
70
|
* @type {any}
|
|
@@ -13,9 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
// May contain unused imports in some cases
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
19
16
|
|
|
20
17
|
/**
|
|
21
18
|
*
|
|
@@ -25,16 +22,16 @@ import type { AiDecisionSidesFalse } from './ai-decision-sides-false';
|
|
|
25
22
|
export interface AiDecisionsScore {
|
|
26
23
|
/**
|
|
27
24
|
*
|
|
28
|
-
* @type {Array<
|
|
25
|
+
* @type {Array<any>}
|
|
29
26
|
* @memberof AiDecisionsScore
|
|
30
27
|
*/
|
|
31
|
-
'criteria': Array<
|
|
28
|
+
'criteria': Array<any>;
|
|
32
29
|
/**
|
|
33
30
|
*
|
|
34
|
-
* @type {
|
|
31
|
+
* @type {any}
|
|
35
32
|
* @memberof AiDecisionsScore
|
|
36
33
|
*/
|
|
37
|
-
'instructions'?:
|
|
34
|
+
'instructions'?: any;
|
|
38
35
|
/**
|
|
39
36
|
*
|
|
40
37
|
* @type {string}
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AiPrice } from './ai-price';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface AiModel
|
|
24
|
+
*/
|
|
25
|
+
export interface AiModel {
|
|
26
|
+
/**
|
|
27
|
+
* Capabilities are tools, vision and reasoning, those the model supports.
|
|
28
|
+
* @type {Array<string>}
|
|
29
|
+
* @memberof AiModel
|
|
30
|
+
*/
|
|
31
|
+
'capabilities'?: Array<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Class is premium, ours or free.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AiModel
|
|
36
|
+
*/
|
|
37
|
+
'class'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* ContextWindow is the most tokens the model reads at once, absent when the catalog does not say.
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof AiModel
|
|
42
|
+
*/
|
|
43
|
+
'context_window'?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Family is the Hanzo family (enso, zen, kai, zoo), absent for a third-party model.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AiModel
|
|
48
|
+
*/
|
|
49
|
+
'family'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* ID is the model\'s id, the one a completion or a decision names.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof AiModel
|
|
54
|
+
*/
|
|
55
|
+
'id'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Inputs are the modalities the model reads.
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof AiModel
|
|
60
|
+
*/
|
|
61
|
+
'inputs'?: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Name is the model\'s display name.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof AiModel
|
|
66
|
+
*/
|
|
67
|
+
'name'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Outputs are the modalities the model writes.
|
|
70
|
+
* @type {Array<string>}
|
|
71
|
+
* @memberof AiModel
|
|
72
|
+
*/
|
|
73
|
+
'outputs'?: Array<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Pricing is the model\'s list price.
|
|
76
|
+
* @type {AiPrice}
|
|
77
|
+
* @memberof AiModel
|
|
78
|
+
*/
|
|
79
|
+
'pricing'?: AiPrice;
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -13,12 +13,27 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AiModel } from './ai-model';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
* @export
|
|
20
|
-
* @interface
|
|
23
|
+
* @interface AiModels
|
|
21
24
|
*/
|
|
22
|
-
export interface
|
|
25
|
+
export interface AiModels {
|
|
26
|
+
/**
|
|
27
|
+
* Models are the matches, in the catalog\'s order.
|
|
28
|
+
* @type {Array<AiModel>}
|
|
29
|
+
* @memberof AiModels
|
|
30
|
+
*/
|
|
31
|
+
'models'?: Array<AiModel>;
|
|
32
|
+
/**
|
|
33
|
+
* Total is how many models matched, before Limit.
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof AiModels
|
|
36
|
+
*/
|
|
37
|
+
'total'?: number;
|
|
23
38
|
}
|
|
24
39
|
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AiPrice
|
|
21
|
+
*/
|
|
22
|
+
export interface AiPrice {
|
|
23
|
+
/**
|
|
24
|
+
* Completion is the price of one output token, a decimal string.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AiPrice
|
|
27
|
+
*/
|
|
28
|
+
'completion'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* InputPerMillion is the price of a million input tokens.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof AiPrice
|
|
33
|
+
*/
|
|
34
|
+
'input_per_million'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* OutputPerMillion is the price of a million output tokens.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof AiPrice
|
|
39
|
+
*/
|
|
40
|
+
'output_per_million'?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Prompt is the price of one input token, a decimal string.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AiPrice
|
|
45
|
+
*/
|
|
46
|
+
'prompt'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
* @type {boolean}
|
|
50
|
+
* @memberof AiPrice
|
|
51
|
+
*/
|
|
52
|
+
'variable'?: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AiReceipt
|
|
21
|
+
*/
|
|
22
|
+
export interface AiReceipt {
|
|
23
|
+
/**
|
|
24
|
+
* Class is the model\'s class as billed: premium, ours or free (X-Hanzo-Usage-Class).
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AiReceipt
|
|
27
|
+
*/
|
|
28
|
+
'class'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Fallback is the model that answered in place of the one asked, in limited mode (X-Hanzo-Fallback).
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AiReceipt
|
|
33
|
+
*/
|
|
34
|
+
'fallback'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* PaidBy is plan, credits or free (X-Hanzo-Paid-By); absent when the answer named no payer, as a free model\'s does.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AiReceipt
|
|
39
|
+
*/
|
|
40
|
+
'paid_by'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Reason is the refusal code that sent the request to the fallback (X-Hanzo-Usage-Reason).
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AiReceipt
|
|
45
|
+
*/
|
|
46
|
+
'reason'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Routed is the model `auto` resolved to (X-Routed-Model).
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof AiReceipt
|
|
51
|
+
*/
|
|
52
|
+
'routed'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Served is the model that answered (X-Hanzo-Served).
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AiReceipt
|
|
57
|
+
*/
|
|
58
|
+
'served'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Usage is where that class stands for the payer: ok, near or limited (X-Hanzo-Usage).
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AiReceipt
|
|
63
|
+
*/
|
|
64
|
+
'usage'?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AiRoutingRewardRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface AiRoutingRewardRequest {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof AiRoutingRewardRequest
|
|
27
|
+
*/
|
|
28
|
+
'rating'?: number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AiRoutingRewardRequest
|
|
33
|
+
*/
|
|
34
|
+
'request_id': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof AiRoutingRewardRequest
|
|
39
|
+
*/
|
|
40
|
+
'reward'?: number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof AiRoutingRewardRequest
|
|
45
|
+
*/
|
|
46
|
+
'signal'?: AiRoutingRewardRequestSignalEnum;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const AiRoutingRewardRequestSignalEnum = {
|
|
50
|
+
Up: 'up',
|
|
51
|
+
Accept: 'accept',
|
|
52
|
+
Regenerate: 'regenerate',
|
|
53
|
+
Down: 'down',
|
|
54
|
+
Switch: 'switch',
|
|
55
|
+
Abandon: 'abandon',
|
|
56
|
+
Revert: 'revert',
|
|
57
|
+
Rating: 'rating',
|
|
58
|
+
Dismiss: 'dismiss'
|
|
59
|
+
} as const;
|
|
60
|
+
|
|
61
|
+
export type AiRoutingRewardRequestSignalEnum = typeof AiRoutingRewardRequestSignalEnum[keyof typeof AiRoutingRewardRequestSignalEnum];
|
|
62
|
+
|
|
63
|
+
|
|
@@ -59,6 +59,12 @@ export interface AutoAutomationIn {
|
|
|
59
59
|
* @memberof AutoAutomationIn
|
|
60
60
|
*/
|
|
61
61
|
'permissions'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* PostTo are the connected accounts each run\'s answer is posted to: x, linkedin, facebook. Absent posts nothing.
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof AutoAutomationIn
|
|
66
|
+
*/
|
|
67
|
+
'postTo'?: Array<string>;
|
|
62
68
|
/**
|
|
63
69
|
* Project is a Dev project\'s slug to work in. Optional.
|
|
64
70
|
* @type {string}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AutoPostResult } from './auto-post-result';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
@@ -26,6 +29,12 @@ export interface AutoAutomationRun {
|
|
|
26
29
|
* @memberof AutoAutomationRun
|
|
27
30
|
*/
|
|
28
31
|
'at'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Draft is the post the agent wrote, for an automation that posts; empty otherwise.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AutoAutomationRun
|
|
36
|
+
*/
|
|
37
|
+
'draft'?: string;
|
|
29
38
|
/**
|
|
30
39
|
*
|
|
31
40
|
* @type {string}
|
|
@@ -39,7 +48,13 @@ export interface AutoAutomationRun {
|
|
|
39
48
|
*/
|
|
40
49
|
'id'?: string;
|
|
41
50
|
/**
|
|
42
|
-
*
|
|
51
|
+
* Posts are where it went: one per account, its link or the platform\'s reason it did not go. Never null.
|
|
52
|
+
* @type {Array<AutoPostResult>}
|
|
53
|
+
* @memberof AutoAutomationRun
|
|
54
|
+
*/
|
|
55
|
+
'posts'?: Array<AutoPostResult>;
|
|
56
|
+
/**
|
|
57
|
+
* Status is succeeded, failed, running, queued, review for a post waiting for its person to post or discard it, skipped for a start that found the previous run still going, or refused for a run whose person is no longer a member of the org.
|
|
43
58
|
* @type {string}
|
|
44
59
|
* @memberof AutoAutomationRun
|
|
45
60
|
*/
|
|
@@ -92,6 +92,12 @@ export interface AutoAutomation {
|
|
|
92
92
|
* @memberof AutoAutomation
|
|
93
93
|
*/
|
|
94
94
|
'permissions'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* PostTo are the connected accounts each run\'s answer is posted to — x, linkedin, facebook — after review when Permissions is ask (post.go). Never null.
|
|
97
|
+
* @type {Array<string>}
|
|
98
|
+
* @memberof AutoAutomation
|
|
99
|
+
*/
|
|
100
|
+
'postTo'?: Array<string>;
|
|
95
101
|
/**
|
|
96
102
|
* Project is the Dev project the run works in, by its slug; null for none.
|
|
97
103
|
* @type {string}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface AutoPostResult
|
|
21
|
+
*/
|
|
22
|
+
export interface AutoPostResult {
|
|
23
|
+
/**
|
|
24
|
+
* Error is the platform\'s reason it did not go; absent when it did.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof AutoPostResult
|
|
27
|
+
*/
|
|
28
|
+
'error'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* To is the account\'s platform: x, linkedin or facebook.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof AutoPostResult
|
|
33
|
+
*/
|
|
34
|
+
'to'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* URL opens the post; absent when it did not go.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof AutoPostResult
|
|
39
|
+
*/
|
|
40
|
+
'url'?: string;
|
|
41
|
+
}
|
|
42
|
+
|