@breign/client 1.0.191 → 1.0.193

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 (37) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +15 -1
  2. package/dist/apis/AiGatewayApi.js +34 -0
  3. package/dist/models/AiGatewaySystemOneAnswerUio.d.ts +68 -0
  4. package/dist/models/AiGatewaySystemOneAnswerUio.js +69 -0
  5. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.d.ts +23 -0
  6. package/dist/models/AiGatewaySystemOneQuestionCriteriaUio.js +37 -0
  7. package/dist/models/AiGatewaySystemOneQuestionUio.d.ts +54 -0
  8. package/dist/models/AiGatewaySystemOneQuestionUio.js +66 -0
  9. package/dist/models/AiGatewaySystemOneRequestStateUio.d.ts +23 -0
  10. package/dist/models/AiGatewaySystemOneRequestStateUio.js +37 -0
  11. package/dist/models/AiGatewaySystemOneRequestUio.d.ts +54 -0
  12. package/dist/models/AiGatewaySystemOneRequestUio.js +63 -0
  13. package/dist/models/AiGatewaySystemOneResponseUio.d.ts +48 -0
  14. package/dist/models/AiGatewaySystemOneResponseUio.js +61 -0
  15. package/dist/models/AiGatewaySystemOneResponseUsageUio.d.ts +38 -0
  16. package/dist/models/AiGatewaySystemOneResponseUsageUio.js +50 -0
  17. package/dist/models/ChatMessageUio.d.ts +7 -0
  18. package/dist/models/ChatMessageUio.js +3 -0
  19. package/dist/models/ConversationMessageQuestionnaireUio.d.ts +67 -0
  20. package/dist/models/ConversationMessageQuestionnaireUio.js +75 -0
  21. package/dist/models/ConversationMessagesInnerUio.d.ts +7 -0
  22. package/dist/models/ConversationMessagesInnerUio.js +3 -0
  23. package/dist/models/ModelDefinitionUio.d.ts +6 -0
  24. package/dist/models/ModelDefinitionUio.js +2 -0
  25. package/dist/models/ToolCallResultRequestUio.d.ts +7 -0
  26. package/dist/models/ToolCallResultRequestUio.js +3 -0
  27. package/dist/models/ToolCallUio.d.ts +1 -1
  28. package/dist/models/UserQuestionAnswerUio.d.ts +38 -0
  29. package/dist/models/UserQuestionAnswerUio.js +52 -0
  30. package/dist/models/UserQuestionOptionUio.d.ts +38 -0
  31. package/dist/models/UserQuestionOptionUio.js +54 -0
  32. package/dist/models/UserQuestionUio.d.ts +51 -0
  33. package/dist/models/UserQuestionUio.js +63 -0
  34. package/dist/models/index.d.ts +11 -0
  35. package/dist/models/index.js +11 -0
  36. package/dist/openapi.json +329 -1
  37. package/package.json +1 -1
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfAiGatewaySystemOneResponseUio = instanceOfAiGatewaySystemOneResponseUio;
17
+ exports.AiGatewaySystemOneResponseUioFromJSON = AiGatewaySystemOneResponseUioFromJSON;
18
+ exports.AiGatewaySystemOneResponseUioFromJSONTyped = AiGatewaySystemOneResponseUioFromJSONTyped;
19
+ exports.AiGatewaySystemOneResponseUioToJSON = AiGatewaySystemOneResponseUioToJSON;
20
+ exports.AiGatewaySystemOneResponseUioToJSONTyped = AiGatewaySystemOneResponseUioToJSONTyped;
21
+ const runtime_1 = require("../runtime");
22
+ const AiGatewaySystemOneResponseUsageUio_1 = require("./AiGatewaySystemOneResponseUsageUio");
23
+ const AiGatewaySystemOneAnswerUio_1 = require("./AiGatewaySystemOneAnswerUio");
24
+ /**
25
+ * Check if a given object implements the AiGatewaySystemOneResponseUio interface.
26
+ */
27
+ function instanceOfAiGatewaySystemOneResponseUio(value) {
28
+ if (!('model' in value) || value['model'] === undefined)
29
+ return false;
30
+ if (!('answers' in value) || value['answers'] === undefined)
31
+ return false;
32
+ if (!('usage' in value) || value['usage'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AiGatewaySystemOneResponseUioFromJSON(json) {
37
+ return AiGatewaySystemOneResponseUioFromJSONTyped(json, false);
38
+ }
39
+ function AiGatewaySystemOneResponseUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'model': json['model'],
45
+ 'answers': ((0, runtime_1.mapValues)(json['answers'], AiGatewaySystemOneAnswerUio_1.AiGatewaySystemOneAnswerUioFromJSON)),
46
+ 'usage': (0, AiGatewaySystemOneResponseUsageUio_1.AiGatewaySystemOneResponseUsageUioFromJSON)(json['usage']),
47
+ };
48
+ }
49
+ function AiGatewaySystemOneResponseUioToJSON(json) {
50
+ return AiGatewaySystemOneResponseUioToJSONTyped(json, false);
51
+ }
52
+ function AiGatewaySystemOneResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'model': value['model'],
58
+ 'answers': ((0, runtime_1.mapValues)(value['answers'], AiGatewaySystemOneAnswerUio_1.AiGatewaySystemOneAnswerUioToJSON)),
59
+ 'usage': (0, AiGatewaySystemOneResponseUsageUio_1.AiGatewaySystemOneResponseUsageUioToJSON)(value['usage']),
60
+ };
61
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 AiGatewaySystemOneResponseUsageUio
16
+ */
17
+ export interface AiGatewaySystemOneResponseUsageUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AiGatewaySystemOneResponseUsageUio
22
+ */
23
+ inputTokens?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AiGatewaySystemOneResponseUsageUio
28
+ */
29
+ outputTokens?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AiGatewaySystemOneResponseUsageUio interface.
33
+ */
34
+ export declare function instanceOfAiGatewaySystemOneResponseUsageUio(value: object): value is AiGatewaySystemOneResponseUsageUio;
35
+ export declare function AiGatewaySystemOneResponseUsageUioFromJSON(json: any): AiGatewaySystemOneResponseUsageUio;
36
+ export declare function AiGatewaySystemOneResponseUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewaySystemOneResponseUsageUio;
37
+ export declare function AiGatewaySystemOneResponseUsageUioToJSON(json: any): AiGatewaySystemOneResponseUsageUio;
38
+ export declare function AiGatewaySystemOneResponseUsageUioToJSONTyped(value?: AiGatewaySystemOneResponseUsageUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfAiGatewaySystemOneResponseUsageUio = instanceOfAiGatewaySystemOneResponseUsageUio;
17
+ exports.AiGatewaySystemOneResponseUsageUioFromJSON = AiGatewaySystemOneResponseUsageUioFromJSON;
18
+ exports.AiGatewaySystemOneResponseUsageUioFromJSONTyped = AiGatewaySystemOneResponseUsageUioFromJSONTyped;
19
+ exports.AiGatewaySystemOneResponseUsageUioToJSON = AiGatewaySystemOneResponseUsageUioToJSON;
20
+ exports.AiGatewaySystemOneResponseUsageUioToJSONTyped = AiGatewaySystemOneResponseUsageUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewaySystemOneResponseUsageUio interface.
23
+ */
24
+ function instanceOfAiGatewaySystemOneResponseUsageUio(value) {
25
+ return true;
26
+ }
27
+ function AiGatewaySystemOneResponseUsageUioFromJSON(json) {
28
+ return AiGatewaySystemOneResponseUsageUioFromJSONTyped(json, false);
29
+ }
30
+ function AiGatewaySystemOneResponseUsageUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'inputTokens': json['input_tokens'] == null ? undefined : json['input_tokens'],
36
+ 'outputTokens': json['output_tokens'] == null ? undefined : json['output_tokens'],
37
+ };
38
+ }
39
+ function AiGatewaySystemOneResponseUsageUioToJSON(json) {
40
+ return AiGatewaySystemOneResponseUsageUioToJSONTyped(json, false);
41
+ }
42
+ function AiGatewaySystemOneResponseUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'input_tokens': value['inputTokens'],
48
+ 'output_tokens': value['outputTokens'],
49
+ };
50
+ }
@@ -20,6 +20,7 @@ import type { ConversationHumanRequestUio } from './ConversationHumanRequestUio'
20
20
  import type { ToolResultsUio } from './ToolResultsUio';
21
21
  import type { TokenUsageUio } from './TokenUsageUio';
22
22
  import type { ConversationTicketProposalUio } from './ConversationTicketProposalUio';
23
+ import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
23
24
  /**
24
25
  *
25
26
  * @export
@@ -80,6 +81,12 @@ export interface ChatMessageUio {
80
81
  * @memberof ChatMessageUio
81
82
  */
82
83
  approvals?: Array<ConversationMessageApprovalUio>;
84
+ /**
85
+ *
86
+ * @type {Array<ConversationMessageQuestionnaireUio>}
87
+ * @memberof ChatMessageUio
88
+ */
89
+ questionnaires?: Array<ConversationMessageQuestionnaireUio>;
83
90
  /**
84
91
  *
85
92
  * @type {ConversationHumanRequestUio}
@@ -30,6 +30,7 @@ const ConversationHumanRequestUio_1 = require("./ConversationHumanRequestUio");
30
30
  const ToolResultsUio_1 = require("./ToolResultsUio");
31
31
  const TokenUsageUio_1 = require("./TokenUsageUio");
32
32
  const ConversationTicketProposalUio_1 = require("./ConversationTicketProposalUio");
33
+ const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
33
34
  /**
34
35
  * @export
35
36
  */
@@ -68,6 +69,7 @@ function ChatMessageUioFromJSONTyped(json, ignoreDiscriminator) {
68
69
  'confirmationLink': json['confirmationLink'] == null ? undefined : json['confirmationLink'],
69
70
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
70
71
  'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
72
+ 'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
71
73
  'humanRequest': json['humanRequest'] == null ? undefined : (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioFromJSON)(json['humanRequest']),
72
74
  'ticketProposal': json['ticketProposal'] == null ? undefined : (0, ConversationTicketProposalUio_1.ConversationTicketProposalUioFromJSON)(json['ticketProposal']),
73
75
  'suggestions': json['suggestions'] == null ? undefined : (json['suggestions'].map(SuggestionUio_1.SuggestionUioFromJSON)),
@@ -104,6 +106,7 @@ function ChatMessageUioToJSONTyped(value, ignoreDiscriminator = false) {
104
106
  'confirmationLink': value['confirmationLink'],
105
107
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
106
108
  'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
109
+ 'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
107
110
  'humanRequest': (0, ConversationHumanRequestUio_1.ConversationHumanRequestUioToJSON)(value['humanRequest']),
108
111
  'ticketProposal': (0, ConversationTicketProposalUio_1.ConversationTicketProposalUioToJSON)(value['ticketProposal']),
109
112
  'suggestions': value['suggestions'] == null ? undefined : (value['suggestions'].map(SuggestionUio_1.SuggestionUioToJSON)),
@@ -0,0 +1,67 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { UserQuestionAnswerUio } from './UserQuestionAnswerUio';
13
+ import type { UserQuestionUio } from './UserQuestionUio';
14
+ /**
15
+ * An ask_user questionnaire closed during this message, carried by the message so the history shows the card as it was answered. answered — the user submitted answers; skipped — they declined; ignored — they wrote a new message instead.
16
+ * @export
17
+ * @interface ConversationMessageQuestionnaireUio
18
+ */
19
+ export interface ConversationMessageQuestionnaireUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ConversationMessageQuestionnaireUio
24
+ */
25
+ callId: string;
26
+ /**
27
+ *
28
+ * @type {Array<UserQuestionUio>}
29
+ * @memberof ConversationMessageQuestionnaireUio
30
+ */
31
+ questions: Array<UserQuestionUio>;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ConversationMessageQuestionnaireUio
36
+ */
37
+ status: ConversationMessageQuestionnaireUioStatusEnum;
38
+ /**
39
+ * Present when answered, aligned with questions.
40
+ * @type {Array<UserQuestionAnswerUio>}
41
+ * @memberof ConversationMessageQuestionnaireUio
42
+ */
43
+ answers?: Array<UserQuestionAnswerUio>;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ConversationMessageQuestionnaireUio
48
+ */
49
+ at: string;
50
+ }
51
+ /**
52
+ * @export
53
+ */
54
+ export declare const ConversationMessageQuestionnaireUioStatusEnum: {
55
+ readonly Answered: "answered";
56
+ readonly Skipped: "skipped";
57
+ readonly Ignored: "ignored";
58
+ };
59
+ export type ConversationMessageQuestionnaireUioStatusEnum = typeof ConversationMessageQuestionnaireUioStatusEnum[keyof typeof ConversationMessageQuestionnaireUioStatusEnum];
60
+ /**
61
+ * Check if a given object implements the ConversationMessageQuestionnaireUio interface.
62
+ */
63
+ export declare function instanceOfConversationMessageQuestionnaireUio(value: object): value is ConversationMessageQuestionnaireUio;
64
+ export declare function ConversationMessageQuestionnaireUioFromJSON(json: any): ConversationMessageQuestionnaireUio;
65
+ export declare function ConversationMessageQuestionnaireUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationMessageQuestionnaireUio;
66
+ export declare function ConversationMessageQuestionnaireUioToJSON(json: any): ConversationMessageQuestionnaireUio;
67
+ export declare function ConversationMessageQuestionnaireUioToJSONTyped(value?: ConversationMessageQuestionnaireUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.ConversationMessageQuestionnaireUioStatusEnum = void 0;
17
+ exports.instanceOfConversationMessageQuestionnaireUio = instanceOfConversationMessageQuestionnaireUio;
18
+ exports.ConversationMessageQuestionnaireUioFromJSON = ConversationMessageQuestionnaireUioFromJSON;
19
+ exports.ConversationMessageQuestionnaireUioFromJSONTyped = ConversationMessageQuestionnaireUioFromJSONTyped;
20
+ exports.ConversationMessageQuestionnaireUioToJSON = ConversationMessageQuestionnaireUioToJSON;
21
+ exports.ConversationMessageQuestionnaireUioToJSONTyped = ConversationMessageQuestionnaireUioToJSONTyped;
22
+ const UserQuestionAnswerUio_1 = require("./UserQuestionAnswerUio");
23
+ const UserQuestionUio_1 = require("./UserQuestionUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.ConversationMessageQuestionnaireUioStatusEnum = {
28
+ Answered: 'answered',
29
+ Skipped: 'skipped',
30
+ Ignored: 'ignored'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ConversationMessageQuestionnaireUio interface.
34
+ */
35
+ function instanceOfConversationMessageQuestionnaireUio(value) {
36
+ if (!('callId' in value) || value['callId'] === undefined)
37
+ return false;
38
+ if (!('questions' in value) || value['questions'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('at' in value) || value['at'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function ConversationMessageQuestionnaireUioFromJSON(json) {
47
+ return ConversationMessageQuestionnaireUioFromJSONTyped(json, false);
48
+ }
49
+ function ConversationMessageQuestionnaireUioFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'callId': json['callId'],
55
+ 'questions': (json['questions'].map(UserQuestionUio_1.UserQuestionUioFromJSON)),
56
+ 'status': json['status'],
57
+ 'answers': json['answers'] == null ? undefined : (json['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioFromJSON)),
58
+ 'at': json['at'],
59
+ };
60
+ }
61
+ function ConversationMessageQuestionnaireUioToJSON(json) {
62
+ return ConversationMessageQuestionnaireUioToJSONTyped(json, false);
63
+ }
64
+ function ConversationMessageQuestionnaireUioToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'callId': value['callId'],
70
+ 'questions': (value['questions'].map(UserQuestionUio_1.UserQuestionUioToJSON)),
71
+ 'status': value['status'],
72
+ 'answers': value['answers'] == null ? undefined : (value['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioToJSON)),
73
+ 'at': value['at'],
74
+ };
75
+ }
@@ -15,6 +15,7 @@ import type { ConversationMessageApprovalUio } from './ConversationMessageApprov
15
15
  import type { ConversationMessagesInnerFlowNodeUio } from './ConversationMessagesInnerFlowNodeUio';
16
16
  import type { ToolResultsUio } from './ToolResultsUio';
17
17
  import type { TokenUsageUio } from './TokenUsageUio';
18
+ import type { ConversationMessageQuestionnaireUio } from './ConversationMessageQuestionnaireUio';
18
19
  /**
19
20
  *
20
21
  * @export
@@ -89,6 +90,12 @@ export interface ConversationMessagesInnerUio {
89
90
  * @memberof ConversationMessagesInnerUio
90
91
  */
91
92
  approvals?: Array<ConversationMessageApprovalUio>;
93
+ /**
94
+ *
95
+ * @type {Array<ConversationMessageQuestionnaireUio>}
96
+ * @memberof ConversationMessagesInnerUio
97
+ */
98
+ questionnaires?: Array<ConversationMessageQuestionnaireUio>;
92
99
  /**
93
100
  *
94
101
  * @type {Array<string>}
@@ -24,6 +24,7 @@ const ConversationMessageApprovalUio_1 = require("./ConversationMessageApprovalU
24
24
  const ConversationMessagesInnerFlowNodeUio_1 = require("./ConversationMessagesInnerFlowNodeUio");
25
25
  const ToolResultsUio_1 = require("./ToolResultsUio");
26
26
  const TokenUsageUio_1 = require("./TokenUsageUio");
27
+ const ConversationMessageQuestionnaireUio_1 = require("./ConversationMessageQuestionnaireUio");
27
28
  /**
28
29
  * Check if a given object implements the ConversationMessagesInnerUio interface.
29
30
  */
@@ -57,6 +58,7 @@ function ConversationMessagesInnerUioFromJSONTyped(json, ignoreDiscriminator) {
57
58
  'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
58
59
  'toolResults': json['toolResults'] == null ? undefined : (json['toolResults'].map(ToolResultsUio_1.ToolResultsUioFromJSON)),
59
60
  'approvals': json['approvals'] == null ? undefined : (json['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioFromJSON)),
61
+ 'questionnaires': json['questionnaires'] == null ? undefined : (json['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioFromJSON)),
60
62
  'workspaceFiles': json['workspaceFiles'] == null ? undefined : json['workspaceFiles'],
61
63
  };
62
64
  }
@@ -79,6 +81,7 @@ function ConversationMessagesInnerUioToJSONTyped(value, ignoreDiscriminator = fa
79
81
  'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
80
82
  'toolResults': value['toolResults'] == null ? undefined : (value['toolResults'].map(ToolResultsUio_1.ToolResultsUioToJSON)),
81
83
  'approvals': value['approvals'] == null ? undefined : (value['approvals'].map(ConversationMessageApprovalUio_1.ConversationMessageApprovalUioToJSON)),
84
+ 'questionnaires': value['questionnaires'] == null ? undefined : (value['questionnaires'].map(ConversationMessageQuestionnaireUio_1.ConversationMessageQuestionnaireUioToJSON)),
82
85
  'workspaceFiles': value['workspaceFiles'],
83
86
  };
84
87
  }
@@ -69,6 +69,12 @@ export interface ModelDefinitionUio {
69
69
  * @memberof ModelDefinitionUio
70
70
  */
71
71
  hasOcr?: boolean;
72
+ /**
73
+ * Modèle de décision (API System One `/v1/systemone`, ou Decisions API d'OpenAI) : il renvoie des probabilités sur des questions typées au lieu de générer du texte. Non conversationnel, accessible uniquement via la ai-gateway (`/ai-gateway/v1/systemone`).
74
+ * @type {boolean}
75
+ * @memberof ModelDefinitionUio
76
+ */
77
+ hasDecision?: boolean;
72
78
  /**
73
79
  *
74
80
  * @type {number}
@@ -54,6 +54,7 @@ function ModelDefinitionUioFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'hasEmbedding': json['hasEmbedding'] == null ? undefined : json['hasEmbedding'],
55
55
  'hasSpeechToText': json['hasSpeechToText'] == null ? undefined : json['hasSpeechToText'],
56
56
  'hasOcr': json['hasOcr'] == null ? undefined : json['hasOcr'],
57
+ 'hasDecision': json['hasDecision'] == null ? undefined : json['hasDecision'],
57
58
  'maxTokens': json['maxTokens'] == null ? undefined : json['maxTokens'],
58
59
  'inputTokenPrice': json['inputTokenPrice'] == null ? undefined : json['inputTokenPrice'],
59
60
  'outputTokenPrice': json['outputTokenPrice'] == null ? undefined : json['outputTokenPrice'],
@@ -79,6 +80,7 @@ function ModelDefinitionUioToJSONTyped(value, ignoreDiscriminator = false) {
79
80
  'hasEmbedding': value['hasEmbedding'],
80
81
  'hasSpeechToText': value['hasSpeechToText'],
81
82
  'hasOcr': value['hasOcr'],
83
+ 'hasDecision': value['hasDecision'],
82
84
  'maxTokens': value['maxTokens'],
83
85
  'inputTokenPrice': value['inputTokenPrice'],
84
86
  'outputTokenPrice': value['outputTokenPrice'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ToolCallAttachmentUio } from './ToolCallAttachmentUio';
13
+ import type { UserQuestionAnswerUio } from './UserQuestionAnswerUio';
13
14
  /**
14
15
  * Result of a tool call, whatever the tool. output is handed to the model as the tool result; attachments are stored and added to the conversation context so the model can see them.
15
16
  * @export
@@ -52,6 +53,12 @@ export interface ToolCallResultRequestUio {
52
53
  * @memberof ToolCallResultRequestUio
53
54
  */
54
55
  approvalWidth?: ToolCallResultRequestUioApprovalWidthEnum;
56
+ /**
57
+ * Only read when resolving an ask_user call with status completed, and required there: one answer per question, in the order of arguments.questions. selected holds labels of the options offered, at least one unless other is filled, a single one when the question is not multiSelect. Any other shape is refused with a 400. To skip the questionnaire, post status refused without answers.
58
+ * @type {Array<UserQuestionAnswerUio>}
59
+ * @memberof ToolCallResultRequestUio
60
+ */
61
+ answers?: Array<UserQuestionAnswerUio>;
55
62
  }
56
63
  /**
57
64
  * @export
@@ -20,6 +20,7 @@ exports.ToolCallResultRequestUioFromJSONTyped = ToolCallResultRequestUioFromJSON
20
20
  exports.ToolCallResultRequestUioToJSON = ToolCallResultRequestUioToJSON;
21
21
  exports.ToolCallResultRequestUioToJSONTyped = ToolCallResultRequestUioToJSONTyped;
22
22
  const ToolCallAttachmentUio_1 = require("./ToolCallAttachmentUio");
23
+ const UserQuestionAnswerUio_1 = require("./UserQuestionAnswerUio");
23
24
  /**
24
25
  * @export
25
26
  */
@@ -64,6 +65,7 @@ function ToolCallResultRequestUioFromJSONTyped(json, ignoreDiscriminator) {
64
65
  'error': json['error'] == null ? undefined : json['error'],
65
66
  'approvalScope': json['approvalScope'] == null ? undefined : json['approvalScope'],
66
67
  'approvalWidth': json['approvalWidth'] == null ? undefined : json['approvalWidth'],
68
+ 'answers': json['answers'] == null ? undefined : (json['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioFromJSON)),
67
69
  };
68
70
  }
69
71
  function ToolCallResultRequestUioToJSON(json) {
@@ -80,5 +82,6 @@ function ToolCallResultRequestUioToJSONTyped(value, ignoreDiscriminator = false)
80
82
  'error': value['error'],
81
83
  'approvalScope': value['approvalScope'],
82
84
  'approvalWidth': value['approvalWidth'],
85
+ 'answers': value['answers'] == null ? undefined : (value['answers'].map(UserQuestionAnswerUio_1.UserQuestionAnswerUioToJSON)),
83
86
  };
84
87
  }
@@ -22,7 +22,7 @@ export interface ToolCallUio {
22
22
  */
23
23
  callId: string;
24
24
  /**
25
- * Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way.
25
+ * Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way. ask_user is the agent asking the user to pick among options: arguments carries questions (1 to 4, each with question, header, multiSelect and 2 to 4 options of label and description); the client also offers a free-text other answer.
26
26
  * @type {string}
27
27
  * @memberof ToolCallUio
28
28
  */
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 UserQuestionAnswerUio
16
+ */
17
+ export interface UserQuestionAnswerUio {
18
+ /**
19
+ * Labels of the chosen options.
20
+ * @type {Array<string>}
21
+ * @memberof UserQuestionAnswerUio
22
+ */
23
+ selected: Array<string>;
24
+ /**
25
+ * Free text typed in the other answer, when filled.
26
+ * @type {string}
27
+ * @memberof UserQuestionAnswerUio
28
+ */
29
+ other?: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserQuestionAnswerUio interface.
33
+ */
34
+ export declare function instanceOfUserQuestionAnswerUio(value: object): value is UserQuestionAnswerUio;
35
+ export declare function UserQuestionAnswerUioFromJSON(json: any): UserQuestionAnswerUio;
36
+ export declare function UserQuestionAnswerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionAnswerUio;
37
+ export declare function UserQuestionAnswerUioToJSON(json: any): UserQuestionAnswerUio;
38
+ export declare function UserQuestionAnswerUioToJSONTyped(value?: UserQuestionAnswerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.instanceOfUserQuestionAnswerUio = instanceOfUserQuestionAnswerUio;
17
+ exports.UserQuestionAnswerUioFromJSON = UserQuestionAnswerUioFromJSON;
18
+ exports.UserQuestionAnswerUioFromJSONTyped = UserQuestionAnswerUioFromJSONTyped;
19
+ exports.UserQuestionAnswerUioToJSON = UserQuestionAnswerUioToJSON;
20
+ exports.UserQuestionAnswerUioToJSONTyped = UserQuestionAnswerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserQuestionAnswerUio interface.
23
+ */
24
+ function instanceOfUserQuestionAnswerUio(value) {
25
+ if (!('selected' in value) || value['selected'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserQuestionAnswerUioFromJSON(json) {
30
+ return UserQuestionAnswerUioFromJSONTyped(json, false);
31
+ }
32
+ function UserQuestionAnswerUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'selected': json['selected'],
38
+ 'other': json['other'] == null ? undefined : json['other'],
39
+ };
40
+ }
41
+ function UserQuestionAnswerUioToJSON(json) {
42
+ return UserQuestionAnswerUioToJSONTyped(json, false);
43
+ }
44
+ function UserQuestionAnswerUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'selected': value['selected'],
50
+ 'other': value['other'],
51
+ };
52
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 UserQuestionOptionUio
16
+ */
17
+ export interface UserQuestionOptionUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UserQuestionOptionUio
22
+ */
23
+ label: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UserQuestionOptionUio
28
+ */
29
+ description: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UserQuestionOptionUio interface.
33
+ */
34
+ export declare function instanceOfUserQuestionOptionUio(value: object): value is UserQuestionOptionUio;
35
+ export declare function UserQuestionOptionUioFromJSON(json: any): UserQuestionOptionUio;
36
+ export declare function UserQuestionOptionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionOptionUio;
37
+ export declare function UserQuestionOptionUioToJSON(json: any): UserQuestionOptionUio;
38
+ export declare function UserQuestionOptionUioToJSONTyped(value?: UserQuestionOptionUio | null, ignoreDiscriminator?: boolean): any;