@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,54 @@
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.instanceOfUserQuestionOptionUio = instanceOfUserQuestionOptionUio;
17
+ exports.UserQuestionOptionUioFromJSON = UserQuestionOptionUioFromJSON;
18
+ exports.UserQuestionOptionUioFromJSONTyped = UserQuestionOptionUioFromJSONTyped;
19
+ exports.UserQuestionOptionUioToJSON = UserQuestionOptionUioToJSON;
20
+ exports.UserQuestionOptionUioToJSONTyped = UserQuestionOptionUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserQuestionOptionUio interface.
23
+ */
24
+ function instanceOfUserQuestionOptionUio(value) {
25
+ if (!('label' in value) || value['label'] === undefined)
26
+ return false;
27
+ if (!('description' in value) || value['description'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UserQuestionOptionUioFromJSON(json) {
32
+ return UserQuestionOptionUioFromJSONTyped(json, false);
33
+ }
34
+ function UserQuestionOptionUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'label': json['label'],
40
+ 'description': json['description'],
41
+ };
42
+ }
43
+ function UserQuestionOptionUioToJSON(json) {
44
+ return UserQuestionOptionUioToJSONTyped(json, false);
45
+ }
46
+ function UserQuestionOptionUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'label': value['label'],
52
+ 'description': value['description'],
53
+ };
54
+ }
@@ -0,0 +1,51 @@
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 { UserQuestionOptionUio } from './UserQuestionOptionUio';
13
+ /**
14
+ * A multiple-choice question the agent asks the chat user through the ask_user tool.
15
+ * @export
16
+ * @interface UserQuestionUio
17
+ */
18
+ export interface UserQuestionUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UserQuestionUio
23
+ */
24
+ question: string;
25
+ /**
26
+ * Short label shown as a chip.
27
+ * @type {string}
28
+ * @memberof UserQuestionUio
29
+ */
30
+ header: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof UserQuestionUio
35
+ */
36
+ multiSelect: boolean;
37
+ /**
38
+ *
39
+ * @type {Array<UserQuestionOptionUio>}
40
+ * @memberof UserQuestionUio
41
+ */
42
+ options: Array<UserQuestionOptionUio>;
43
+ }
44
+ /**
45
+ * Check if a given object implements the UserQuestionUio interface.
46
+ */
47
+ export declare function instanceOfUserQuestionUio(value: object): value is UserQuestionUio;
48
+ export declare function UserQuestionUioFromJSON(json: any): UserQuestionUio;
49
+ export declare function UserQuestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserQuestionUio;
50
+ export declare function UserQuestionUioToJSON(json: any): UserQuestionUio;
51
+ export declare function UserQuestionUioToJSONTyped(value?: UserQuestionUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfUserQuestionUio = instanceOfUserQuestionUio;
17
+ exports.UserQuestionUioFromJSON = UserQuestionUioFromJSON;
18
+ exports.UserQuestionUioFromJSONTyped = UserQuestionUioFromJSONTyped;
19
+ exports.UserQuestionUioToJSON = UserQuestionUioToJSON;
20
+ exports.UserQuestionUioToJSONTyped = UserQuestionUioToJSONTyped;
21
+ const UserQuestionOptionUio_1 = require("./UserQuestionOptionUio");
22
+ /**
23
+ * Check if a given object implements the UserQuestionUio interface.
24
+ */
25
+ function instanceOfUserQuestionUio(value) {
26
+ if (!('question' in value) || value['question'] === undefined)
27
+ return false;
28
+ if (!('header' in value) || value['header'] === undefined)
29
+ return false;
30
+ if (!('multiSelect' in value) || value['multiSelect'] === undefined)
31
+ return false;
32
+ if (!('options' in value) || value['options'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function UserQuestionUioFromJSON(json) {
37
+ return UserQuestionUioFromJSONTyped(json, false);
38
+ }
39
+ function UserQuestionUioFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'question': json['question'],
45
+ 'header': json['header'],
46
+ 'multiSelect': json['multiSelect'],
47
+ 'options': (json['options'].map(UserQuestionOptionUio_1.UserQuestionOptionUioFromJSON)),
48
+ };
49
+ }
50
+ function UserQuestionUioToJSON(json) {
51
+ return UserQuestionUioToJSONTyped(json, false);
52
+ }
53
+ function UserQuestionUioToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'question': value['question'],
59
+ 'header': value['header'],
60
+ 'multiSelect': value['multiSelect'],
61
+ 'options': (value['options'].map(UserQuestionOptionUio_1.UserQuestionOptionUioToJSON)),
62
+ };
63
+ }
@@ -103,6 +103,13 @@ export * from './AiGatewayModelTokenQuotaUio';
103
103
  export * from './AiGatewayModelUio';
104
104
  export * from './AiGatewaySettingsUio';
105
105
  export * from './AiGatewaySettingsUpdateRequestUio';
106
+ export * from './AiGatewaySystemOneAnswerUio';
107
+ export * from './AiGatewaySystemOneQuestionCriteriaUio';
108
+ export * from './AiGatewaySystemOneQuestionUio';
109
+ export * from './AiGatewaySystemOneRequestStateUio';
110
+ export * from './AiGatewaySystemOneRequestUio';
111
+ export * from './AiGatewaySystemOneResponseUio';
112
+ export * from './AiGatewaySystemOneResponseUsageUio';
106
113
  export * from './AiGatewayUsageBreakdownItemUio';
107
114
  export * from './AiGatewayUsageCostUio';
108
115
  export * from './AiGatewayUsagePointUio';
@@ -229,6 +236,7 @@ export * from './ConversationHumanRequestUio';
229
236
  export * from './ConversationMessageApprovalUio';
230
237
  export * from './ConversationMessageImageUio';
231
238
  export * from './ConversationMessageImagesUio';
239
+ export * from './ConversationMessageQuestionnaireUio';
232
240
  export * from './ConversationMessagesInnerFlowNodeEntrypointsUio';
233
241
  export * from './ConversationMessagesInnerFlowNodeUio';
234
242
  export * from './ConversationMessagesInnerSuggestionsInnerUio';
@@ -721,6 +729,9 @@ export * from './UserDirectPermissionsRequestUio';
721
729
  export * from './UserIdentifierRequestUio';
722
730
  export * from './UserIdentifierUio';
723
731
  export * from './UserLockRequestUio';
732
+ export * from './UserQuestionAnswerUio';
733
+ export * from './UserQuestionOptionUio';
734
+ export * from './UserQuestionUio';
724
735
  export * from './UserUpdateRequestUio';
725
736
  export * from './WebhookEndpointUio';
726
737
  export * from './WebhookEndpointUpdateUio';
@@ -121,6 +121,13 @@ __exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
121
121
  __exportStar(require("./AiGatewayModelUio"), exports);
122
122
  __exportStar(require("./AiGatewaySettingsUio"), exports);
123
123
  __exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
124
+ __exportStar(require("./AiGatewaySystemOneAnswerUio"), exports);
125
+ __exportStar(require("./AiGatewaySystemOneQuestionCriteriaUio"), exports);
126
+ __exportStar(require("./AiGatewaySystemOneQuestionUio"), exports);
127
+ __exportStar(require("./AiGatewaySystemOneRequestStateUio"), exports);
128
+ __exportStar(require("./AiGatewaySystemOneRequestUio"), exports);
129
+ __exportStar(require("./AiGatewaySystemOneResponseUio"), exports);
130
+ __exportStar(require("./AiGatewaySystemOneResponseUsageUio"), exports);
124
131
  __exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
125
132
  __exportStar(require("./AiGatewayUsageCostUio"), exports);
126
133
  __exportStar(require("./AiGatewayUsagePointUio"), exports);
@@ -247,6 +254,7 @@ __exportStar(require("./ConversationHumanRequestUio"), exports);
247
254
  __exportStar(require("./ConversationMessageApprovalUio"), exports);
248
255
  __exportStar(require("./ConversationMessageImageUio"), exports);
249
256
  __exportStar(require("./ConversationMessageImagesUio"), exports);
257
+ __exportStar(require("./ConversationMessageQuestionnaireUio"), exports);
250
258
  __exportStar(require("./ConversationMessagesInnerFlowNodeEntrypointsUio"), exports);
251
259
  __exportStar(require("./ConversationMessagesInnerFlowNodeUio"), exports);
252
260
  __exportStar(require("./ConversationMessagesInnerSuggestionsInnerUio"), exports);
@@ -739,6 +747,9 @@ __exportStar(require("./UserDirectPermissionsRequestUio"), exports);
739
747
  __exportStar(require("./UserIdentifierRequestUio"), exports);
740
748
  __exportStar(require("./UserIdentifierUio"), exports);
741
749
  __exportStar(require("./UserLockRequestUio"), exports);
750
+ __exportStar(require("./UserQuestionAnswerUio"), exports);
751
+ __exportStar(require("./UserQuestionOptionUio"), exports);
752
+ __exportStar(require("./UserQuestionUio"), exports);
742
753
  __exportStar(require("./UserUpdateRequestUio"), exports);
743
754
  __exportStar(require("./WebhookEndpointUio"), exports);
744
755
  __exportStar(require("./WebhookEndpointUpdateUio"), exports);
package/dist/openapi.json CHANGED
@@ -17017,6 +17017,95 @@
17017
17017
  "tags" : [ "ai-gateway" ]
17018
17018
  }
17019
17019
  },
17020
+ "/organizations/{organizationId}/ai-gateway/systemone" : {
17021
+ "post" : {
17022
+ "description" : "Interroge un modèle de décision (capacité `hasDecision`) au format System One (Jev de TypeSafe AI, Ollama, vLLM) : des questions typées sur un état, auxquelles le modèle répond par des probabilités plutôt que par du texte. Les moteurs `openai` passent par la Decisions API, les moteurs `ollama`, `vllm` et `vllm-responses` par leur endpoint `/v1/systemone`.\n\nAussi monté sous `/ai-gateway/v1/systemone`, pour qu'un client System One puisse utiliser la passerelle comme URL de base.\n\nToutes les erreurs utilisent l'enveloppe OpenAI `{ error: { message } }`.",
17023
+ "operationId" : "createAiGatewaySystemOneDecision",
17024
+ "parameters" : [ {
17025
+ "description" : "ID of the organization",
17026
+ "in" : "path",
17027
+ "name" : "organizationId",
17028
+ "required" : true,
17029
+ "schema" : {
17030
+ "type" : "string"
17031
+ }
17032
+ } ],
17033
+ "requestBody" : {
17034
+ "content" : {
17035
+ "application/json" : {
17036
+ "schema" : {
17037
+ "$ref" : "#/components/schemas/AiGatewaySystemOneRequest"
17038
+ }
17039
+ }
17040
+ },
17041
+ "required" : true
17042
+ },
17043
+ "responses" : {
17044
+ "200" : {
17045
+ "content" : {
17046
+ "application/json" : {
17047
+ "schema" : {
17048
+ "$ref" : "#/components/schemas/AiGatewaySystemOneResponse"
17049
+ }
17050
+ }
17051
+ },
17052
+ "description" : "Décision prise"
17053
+ },
17054
+ "400" : {
17055
+ "content" : {
17056
+ "application/json" : {
17057
+ "schema" : {
17058
+ "$ref" : "#/components/schemas/AiGatewayError"
17059
+ }
17060
+ }
17061
+ },
17062
+ "description" : "Invalid request body, modèle sans capacité Decision, ou provider qui ne sait pas servir de modèle de décision"
17063
+ },
17064
+ "401" : {
17065
+ "content" : {
17066
+ "application/json" : {
17067
+ "schema" : {
17068
+ "$ref" : "#/components/schemas/AiGatewayError"
17069
+ }
17070
+ }
17071
+ },
17072
+ "description" : "Unauthenticated — no caller identity could be established"
17073
+ },
17074
+ "403" : {
17075
+ "content" : {
17076
+ "application/json" : {
17077
+ "schema" : {
17078
+ "$ref" : "#/components/schemas/AiGatewayError"
17079
+ }
17080
+ }
17081
+ },
17082
+ "description" : "Forbidden — the caller is not part of the organization"
17083
+ },
17084
+ "404" : {
17085
+ "content" : {
17086
+ "application/json" : {
17087
+ "schema" : {
17088
+ "$ref" : "#/components/schemas/AiGatewayError"
17089
+ }
17090
+ }
17091
+ },
17092
+ "description" : "Model not found — aucun provider de l'organisation n'expose ce modèle"
17093
+ },
17094
+ "500" : {
17095
+ "content" : {
17096
+ "application/json" : {
17097
+ "schema" : {
17098
+ "$ref" : "#/components/schemas/AiGatewayError"
17099
+ }
17100
+ }
17101
+ },
17102
+ "description" : "Internal server error"
17103
+ }
17104
+ },
17105
+ "summary" : "Ask a decision model through the AI gateway",
17106
+ "tags" : [ "ai-gateway" ]
17107
+ }
17108
+ },
17020
17109
  "/organizations/{organizationId}/ai-gateway/credits" : {
17021
17110
  "get" : {
17022
17111
  "description" : "Le suivi de crédits n'est pas implémenté sur ce déploiement : l'endpoint répond systématiquement 501 à un appelant autorisé. Réservé pour un usage futur.",
@@ -24953,6 +25042,12 @@
24953
25042
  },
24954
25043
  "type" : "array"
24955
25044
  },
25045
+ "questionnaires" : {
25046
+ "items" : {
25047
+ "$ref" : "#/components/schemas/ConversationMessageQuestionnaire"
25048
+ },
25049
+ "type" : "array"
25050
+ },
24956
25051
  "humanRequest" : {
24957
25052
  "$ref" : "#/components/schemas/ConversationHumanRequest"
24958
25053
  },
@@ -25109,6 +25204,98 @@
25109
25204
  "title" : "ConversationMessageApproval",
25110
25205
  "type" : "object"
25111
25206
  },
25207
+ "ConversationMessageQuestionnaire" : {
25208
+ "additionalProperties" : false,
25209
+ "description" : "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.",
25210
+ "properties" : {
25211
+ "callId" : {
25212
+ "type" : "string"
25213
+ },
25214
+ "questions" : {
25215
+ "items" : {
25216
+ "$ref" : "#/components/schemas/UserQuestion"
25217
+ },
25218
+ "type" : "array"
25219
+ },
25220
+ "status" : {
25221
+ "enum" : [ "answered", "skipped", "ignored" ],
25222
+ "type" : "string"
25223
+ },
25224
+ "answers" : {
25225
+ "description" : "Present when answered, aligned with questions.",
25226
+ "items" : {
25227
+ "$ref" : "#/components/schemas/UserQuestionAnswer"
25228
+ },
25229
+ "type" : "array"
25230
+ },
25231
+ "at" : {
25232
+ "type" : "string"
25233
+ }
25234
+ },
25235
+ "required" : [ "at", "callId", "questions", "status" ],
25236
+ "title" : "ConversationMessageQuestionnaire",
25237
+ "type" : "object"
25238
+ },
25239
+ "UserQuestion" : {
25240
+ "additionalProperties" : false,
25241
+ "description" : "A multiple-choice question the agent asks the chat user through the ask_user tool.",
25242
+ "properties" : {
25243
+ "question" : {
25244
+ "type" : "string"
25245
+ },
25246
+ "header" : {
25247
+ "description" : "Short label shown as a chip.",
25248
+ "type" : "string"
25249
+ },
25250
+ "multiSelect" : {
25251
+ "type" : "boolean"
25252
+ },
25253
+ "options" : {
25254
+ "items" : {
25255
+ "$ref" : "#/components/schemas/UserQuestionOption"
25256
+ },
25257
+ "maxItems" : 4,
25258
+ "minItems" : 2,
25259
+ "type" : "array"
25260
+ }
25261
+ },
25262
+ "required" : [ "header", "multiSelect", "options", "question" ],
25263
+ "title" : "UserQuestion",
25264
+ "type" : "object"
25265
+ },
25266
+ "UserQuestionOption" : {
25267
+ "additionalProperties" : false,
25268
+ "properties" : {
25269
+ "label" : {
25270
+ "type" : "string"
25271
+ },
25272
+ "description" : {
25273
+ "type" : "string"
25274
+ }
25275
+ },
25276
+ "required" : [ "description", "label" ],
25277
+ "title" : "UserQuestionOption",
25278
+ "type" : "object"
25279
+ },
25280
+ "UserQuestionAnswer" : {
25281
+ "additionalProperties" : false,
25282
+ "properties" : {
25283
+ "selected" : {
25284
+ "description" : "Labels of the chosen options.",
25285
+ "items" : {
25286
+ "type" : "string"
25287
+ },
25288
+ "type" : "array"
25289
+ },
25290
+ "other" : {
25291
+ "description" : "Free text typed in the other answer, when filled.",
25292
+ "type" : "string"
25293
+ }
25294
+ },
25295
+ "required" : [ "selected" ],
25296
+ "title" : "UserQuestionAnswer",
25297
+ "type" : "object"
25298
+ },
25112
25299
  "ConversationHumanRequest" : {
25113
25300
  "description" : "A question an agent asks a human from a task conversation (Human_ask tool). Carried by a mirror message in the human's chat conversation with that agent, which is where they see and answer it. The task stays suspended on the pending call callId until the answer resumes it.",
25114
25301
  "properties" : {
@@ -28214,6 +28401,10 @@
28214
28401
  "description" : "Le modèle expose une API d'OCR dédiée (ex. mistral-ocr-latest). Distinct de `hasVision`, qui est la capacité utilisée par le mode OCR `LLM`.",
28215
28402
  "type" : "boolean"
28216
28403
  },
28404
+ "hasDecision" : {
28405
+ "description" : "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`).",
28406
+ "type" : "boolean"
28407
+ },
28217
28408
  "maxTokens" : {
28218
28409
  "minimum" : 1,
28219
28410
  "type" : "integer"
@@ -31559,7 +31750,7 @@
31559
31750
  "type" : "string"
31560
31751
  },
31561
31752
  "tool" : {
31562
- "description" : "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.",
31753
+ "description" : "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.",
31563
31754
  "type" : "string"
31564
31755
  },
31565
31756
  "status" : {
@@ -31630,6 +31821,14 @@
31630
31821
  "description" : "Only read when resolving a bash_network_approval call with status completed: how wide the approval is. prefix (the default) grants the prefix shown in the request — origin plus first path segment; origin grants the whole domain. Nothing narrower is offered: nobody can predict the paths an API will serve, and an approval that is too fine is paid for in repeated questions. The server recomputes both from the URL it recorded, so a client cannot submit a prefix of its own. Ignored on a bash_command_approval call, which has a single width: the exact command the server already recorded.",
31631
31822
  "enum" : [ "prefix", "origin" ],
31632
31823
  "type" : "string"
31824
+ },
31825
+ "answers" : {
31826
+ "description" : "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.",
31827
+ "items" : {
31828
+ "$ref" : "#/components/schemas/UserQuestionAnswer"
31829
+ },
31830
+ "maxItems" : 4,
31831
+ "type" : "array"
31633
31832
  }
31634
31833
  },
31635
31834
  "required" : [ "status" ],
@@ -32021,6 +32220,96 @@
32021
32220
  },
32022
32221
  "type" : "object"
32023
32222
  },
32223
+ "AiGatewaySystemOneRequest" : {
32224
+ "additionalProperties" : false,
32225
+ "properties" : {
32226
+ "model" : {
32227
+ "minLength" : 1,
32228
+ "type" : "string"
32229
+ },
32230
+ "state" : {
32231
+ "$ref" : "#/components/schemas/AiGatewaySystemOneRequest_state"
32232
+ },
32233
+ "images" : {
32234
+ "description" : "Images encodées en base64 (PNG, JPEG ou WebP), partagées par toutes les questions.",
32235
+ "items" : {
32236
+ "type" : "string"
32237
+ },
32238
+ "type" : "array"
32239
+ },
32240
+ "questions" : {
32241
+ "additionalProperties" : {
32242
+ "$ref" : "#/components/schemas/AiGatewaySystemOneQuestion"
32243
+ },
32244
+ "minProperties" : 1,
32245
+ "type" : "object"
32246
+ }
32247
+ },
32248
+ "required" : [ "model", "questions", "state" ],
32249
+ "type" : "object"
32250
+ },
32251
+ "AiGatewaySystemOneQuestion" : {
32252
+ "additionalProperties" : false,
32253
+ "properties" : {
32254
+ "type" : {
32255
+ "enum" : [ "choice", "noul", "score" ],
32256
+ "type" : "string"
32257
+ },
32258
+ "instructions" : {
32259
+ "minLength" : 1,
32260
+ "type" : "string"
32261
+ },
32262
+ "criteria" : {
32263
+ "$ref" : "#/components/schemas/AiGatewaySystemOneQuestion_criteria"
32264
+ }
32265
+ },
32266
+ "required" : [ "instructions", "type" ],
32267
+ "type" : "object"
32268
+ },
32269
+ "AiGatewaySystemOneResponse" : {
32270
+ "properties" : {
32271
+ "model" : {
32272
+ "type" : "string"
32273
+ },
32274
+ "answers" : {
32275
+ "additionalProperties" : {
32276
+ "$ref" : "#/components/schemas/AiGatewaySystemOneAnswer"
32277
+ },
32278
+ "type" : "object"
32279
+ },
32280
+ "usage" : {
32281
+ "$ref" : "#/components/schemas/AiGatewaySystemOneResponse_usage"
32282
+ }
32283
+ },
32284
+ "required" : [ "answers", "model", "usage" ],
32285
+ "type" : "object"
32286
+ },
32287
+ "AiGatewaySystemOneAnswer" : {
32288
+ "additionalProperties" : true,
32289
+ "properties" : {
32290
+ "type" : {
32291
+ "enum" : [ "choice", "noul", "score" ],
32292
+ "type" : "string"
32293
+ },
32294
+ "choice" : {
32295
+ "type" : "string"
32296
+ },
32297
+ "noul" : {
32298
+ "type" : "number"
32299
+ },
32300
+ "score" : {
32301
+ "type" : "number"
32302
+ },
32303
+ "probabilities" : {
32304
+ "additionalProperties" : {
32305
+ "type" : "number"
32306
+ },
32307
+ "type" : "object"
32308
+ }
32309
+ },
32310
+ "required" : [ "type" ],
32311
+ "type" : "object"
32312
+ },
32024
32313
  "AiGatewayUsage" : {
32025
32314
  "properties" : {
32026
32315
  "total" : {
@@ -38064,6 +38353,12 @@
38064
38353
  },
38065
38354
  "type" : "array"
38066
38355
  },
38356
+ "questionnaires" : {
38357
+ "items" : {
38358
+ "$ref" : "#/components/schemas/ConversationMessageQuestionnaire"
38359
+ },
38360
+ "type" : "array"
38361
+ },
38067
38362
  "workspaceFiles" : {
38068
38363
  "items" : {
38069
38364
  "type" : "string"
@@ -38771,6 +39066,39 @@
38771
39066
  "required" : [ "created", "id", "object", "owned_by" ],
38772
39067
  "type" : "object"
38773
39068
  },
39069
+ "AiGatewaySystemOneRequest_state" : {
39070
+ "description" : "Entrée sur laquelle décider, texte ou objet JSON.",
39071
+ "oneOf" : [ {
39072
+ "type" : "string"
39073
+ }, {
39074
+ "additionalProperties" : true,
39075
+ "type" : "object"
39076
+ } ]
39077
+ },
39078
+ "AiGatewaySystemOneQuestion_criteria" : {
39079
+ "oneOf" : [ {
39080
+ "additionalProperties" : {
39081
+ "type" : "string"
39082
+ },
39083
+ "type" : "object"
39084
+ }, {
39085
+ "items" : {
39086
+ "type" : "string"
39087
+ },
39088
+ "type" : "array"
39089
+ } ]
39090
+ },
39091
+ "AiGatewaySystemOneResponse_usage" : {
39092
+ "properties" : {
39093
+ "input_tokens" : {
39094
+ "type" : "integer"
39095
+ },
39096
+ "output_tokens" : {
39097
+ "type" : "integer"
39098
+ }
39099
+ },
39100
+ "type" : "object"
39101
+ },
38774
39102
  "AiGatewayV1ModelEndpoints_data_architecture" : {
38775
39103
  "properties" : {
38776
39104
  "tokenizer" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.191",
3
+ "version": "1.0.193",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",