@breign/client 1.0.134 → 1.0.136

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/dist/openapi.json CHANGED
@@ -11764,6 +11764,132 @@
11764
11764
  "tags" : [ "prompts" ]
11765
11765
  }
11766
11766
  },
11767
+ "/conversations/{conversationId}/messages/{messageId}/tool-calls" : {
11768
+ "get" : {
11769
+ "description" : "Returns the tool calls issued by one assistant message, newest first. Use pending=true while waiting: it keeps only the calls that still need a result. Without the filter, calls already answered are returned too, so a client can replay what it sent.",
11770
+ "operationId" : "listMessageToolCalls",
11771
+ "parameters" : [ {
11772
+ "description" : "The ID of the conversation",
11773
+ "in" : "path",
11774
+ "name" : "conversationId",
11775
+ "required" : true,
11776
+ "schema" : {
11777
+ "type" : "string"
11778
+ }
11779
+ }, {
11780
+ "description" : "The ID of the message",
11781
+ "in" : "path",
11782
+ "name" : "messageId",
11783
+ "required" : true,
11784
+ "schema" : {
11785
+ "type" : "string"
11786
+ }
11787
+ }, {
11788
+ "description" : "When true, only the calls still awaiting a result.",
11789
+ "in" : "query",
11790
+ "name" : "pending",
11791
+ "schema" : {
11792
+ "type" : "boolean"
11793
+ }
11794
+ } ],
11795
+ "responses" : {
11796
+ "200" : {
11797
+ "content" : {
11798
+ "application/json" : {
11799
+ "schema" : {
11800
+ "$ref" : "#/components/schemas/ToolCallsResponse"
11801
+ }
11802
+ }
11803
+ },
11804
+ "description" : "Tool calls of the message"
11805
+ },
11806
+ "401" : {
11807
+ "description" : "Unauthorized"
11808
+ },
11809
+ "403" : {
11810
+ "description" : "Forbidden"
11811
+ },
11812
+ "404" : {
11813
+ "description" : "Conversation not found, or not visible to the caller"
11814
+ }
11815
+ },
11816
+ "summary" : "List the tool calls of a message",
11817
+ "tags" : [ "conversations" ]
11818
+ }
11819
+ },
11820
+ "/conversations/{conversationId}/messages/{messageId}/tool-calls/{callId}" : {
11821
+ "post" : {
11822
+ "description" : "Submits the result of one tool call, which releases the suspended conversation turn. Works for any tool: output becomes the tool result handed to the model, and attachments are stored, added to the conversation context and to the last user message. A call can only be answered once — answering an already resolved or expired call returns 409. A message may carry several calls, each answered independently and in any order.",
11823
+ "operationId" : "submitMessageToolCallResult",
11824
+ "parameters" : [ {
11825
+ "description" : "The ID of the conversation",
11826
+ "in" : "path",
11827
+ "name" : "conversationId",
11828
+ "required" : true,
11829
+ "schema" : {
11830
+ "type" : "string"
11831
+ }
11832
+ }, {
11833
+ "description" : "The ID of the message",
11834
+ "in" : "path",
11835
+ "name" : "messageId",
11836
+ "required" : true,
11837
+ "schema" : {
11838
+ "type" : "string"
11839
+ }
11840
+ }, {
11841
+ "description" : "Identifier of the tool call, as returned by the listing.",
11842
+ "in" : "path",
11843
+ "name" : "callId",
11844
+ "required" : true,
11845
+ "schema" : {
11846
+ "type" : "string"
11847
+ }
11848
+ } ],
11849
+ "requestBody" : {
11850
+ "content" : {
11851
+ "application/json" : {
11852
+ "schema" : {
11853
+ "$ref" : "#/components/schemas/ToolCallResultRequest"
11854
+ }
11855
+ }
11856
+ },
11857
+ "required" : true
11858
+ },
11859
+ "responses" : {
11860
+ "200" : {
11861
+ "content" : {
11862
+ "application/json" : {
11863
+ "schema" : {
11864
+ "$ref" : "#/components/schemas/ToolCallResultResponse"
11865
+ }
11866
+ }
11867
+ },
11868
+ "description" : "Tool call resolved and the conversation turn released"
11869
+ },
11870
+ "400" : {
11871
+ "description" : "Missing or invalid status, or an attachment carrying neither url nor inlineDataUrl, an invalid data URL, or a payload that could not be read."
11872
+ },
11873
+ "401" : {
11874
+ "description" : "Unauthorized"
11875
+ },
11876
+ "403" : {
11877
+ "description" : "Forbidden"
11878
+ },
11879
+ "404" : {
11880
+ "description" : "Conversation not found, or no such tool call on this message"
11881
+ },
11882
+ "409" : {
11883
+ "description" : "Tool call already resolved or expired"
11884
+ },
11885
+ "503" : {
11886
+ "description" : "Deferred tool calls are not configured on this deployment"
11887
+ }
11888
+ },
11889
+ "summary" : "Post the result of a tool call",
11890
+ "tags" : [ "conversations" ]
11891
+ }
11892
+ },
11767
11893
  "/conversations/{conversationId}/messages/{messageId}/reaction" : {
11768
11894
  "patch" : {
11769
11895
  "description" : "Set or clear user reaction (thumb up/down) on a conversation message.",
@@ -14554,6 +14680,12 @@
14554
14680
  } ],
14555
14681
  "nullable" : true
14556
14682
  },
14683
+ "computerUseConfiguration" : {
14684
+ "allOf" : [ {
14685
+ "$ref" : "#/components/schemas/AgentComputerUseConfiguration"
14686
+ } ],
14687
+ "nullable" : true
14688
+ },
14557
14689
  "creator" : {
14558
14690
  "$ref" : "#/components/schemas/Agent_creator"
14559
14691
  },
@@ -14742,6 +14874,16 @@
14742
14874
  },
14743
14875
  "type" : "object"
14744
14876
  },
14877
+ "AgentComputerUseConfiguration" : {
14878
+ "description" : "Per-agent activation of computer use: those that allow the agent to use the computer for various tasks. Opt-in.",
14879
+ "properties" : {
14880
+ "enabled" : {
14881
+ "description" : "General switch for computer use on this agent.",
14882
+ "type" : "boolean"
14883
+ }
14884
+ },
14885
+ "type" : "object"
14886
+ },
14745
14887
  "AgentTool" : {
14746
14888
  "properties" : {
14747
14889
  "id" : {
@@ -14913,6 +15055,12 @@
14913
15055
  "$ref" : "#/components/schemas/AgentSandboxConfiguration"
14914
15056
  } ],
14915
15057
  "nullable" : true
15058
+ },
15059
+ "computerUseConfiguration" : {
15060
+ "allOf" : [ {
15061
+ "$ref" : "#/components/schemas/AgentComputerUseConfiguration"
15062
+ } ],
15063
+ "nullable" : true
14916
15064
  }
14917
15065
  },
14918
15066
  "type" : "object"
@@ -20024,6 +20172,162 @@
20024
20172
  "required" : [ "status" ],
20025
20173
  "type" : "object"
20026
20174
  },
20175
+ "ToolCallsResponse" : {
20176
+ "additionalProperties" : false,
20177
+ "properties" : {
20178
+ "toolCalls" : {
20179
+ "items" : {
20180
+ "$ref" : "#/components/schemas/ToolCall"
20181
+ },
20182
+ "type" : "array"
20183
+ }
20184
+ },
20185
+ "required" : [ "toolCalls" ],
20186
+ "title" : "ToolCallsResponse",
20187
+ "type" : "object"
20188
+ },
20189
+ "ToolCall" : {
20190
+ "additionalProperties" : false,
20191
+ "description" : "A tool call whose result does not come from the server. The conversation turn stays suspended until a client posts the result, or until expiresAt passes.",
20192
+ "properties" : {
20193
+ "callId" : {
20194
+ "description" : "Identifier to post the result to.",
20195
+ "type" : "string"
20196
+ },
20197
+ "tool" : {
20198
+ "description" : "Name of the tool the model called.",
20199
+ "type" : "string"
20200
+ },
20201
+ "status" : {
20202
+ "description" : "pending and expired are set by the server; the others come from the client.",
20203
+ "enum" : [ "pending", "completed", "failed", "refused", "expired" ],
20204
+ "type" : "string"
20205
+ },
20206
+ "conversationId" : {
20207
+ "type" : "string"
20208
+ },
20209
+ "messageId" : {
20210
+ "description" : "Assistant message of the turn that issued the call.",
20211
+ "type" : "string"
20212
+ },
20213
+ "deviceId" : {
20214
+ "description" : "Target device, informative only. Authorization goes through the conversation.",
20215
+ "type" : "string"
20216
+ },
20217
+ "arguments" : {
20218
+ "additionalProperties" : true,
20219
+ "description" : "Arguments the model passed to the tool.",
20220
+ "type" : "object"
20221
+ },
20222
+ "createdAt" : {
20223
+ "format" : "date-time",
20224
+ "type" : "string"
20225
+ },
20226
+ "expiresAt" : {
20227
+ "description" : "Past this point the call is expired and the conversation turn is released.",
20228
+ "format" : "date-time",
20229
+ "type" : "string"
20230
+ }
20231
+ },
20232
+ "required" : [ "callId", "expiresAt", "status", "tool" ],
20233
+ "title" : "ToolCall",
20234
+ "type" : "object"
20235
+ },
20236
+ "ToolCallResultRequest" : {
20237
+ "additionalProperties" : false,
20238
+ "description" : "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.",
20239
+ "properties" : {
20240
+ "status" : {
20241
+ "enum" : [ "completed", "failed", "refused" ],
20242
+ "type" : "string"
20243
+ },
20244
+ "output" : {
20245
+ "description" : "Text handed to the model. A default sentence is used when omitted.",
20246
+ "type" : "string"
20247
+ },
20248
+ "attachments" : {
20249
+ "description" : "Only read when status is completed.",
20250
+ "items" : {
20251
+ "$ref" : "#/components/schemas/ToolCallAttachment"
20252
+ },
20253
+ "maxItems" : 10,
20254
+ "type" : "array"
20255
+ },
20256
+ "error" : {
20257
+ "description" : "Failure detail, surfaced to the model when status is failed.",
20258
+ "type" : "string"
20259
+ }
20260
+ },
20261
+ "required" : [ "status" ],
20262
+ "title" : "ToolCallResultRequest",
20263
+ "type" : "object"
20264
+ },
20265
+ "ToolCallAttachment" : {
20266
+ "additionalProperties" : false,
20267
+ "description" : "A file produced by a tool. Either url or inlineDataUrl is required; every other field is derived server-side when omitted.",
20268
+ "properties" : {
20269
+ "type" : {
20270
+ "enum" : [ "image" ],
20271
+ "type" : "string"
20272
+ },
20273
+ "id" : {
20274
+ "type" : "string"
20275
+ },
20276
+ "name" : {
20277
+ "type" : "string"
20278
+ },
20279
+ "mimeType" : {
20280
+ "description" : "Defaults to image/png.",
20281
+ "type" : "string"
20282
+ },
20283
+ "ext" : {
20284
+ "description" : "Defaults to the mimeType subtype.",
20285
+ "type" : "string"
20286
+ },
20287
+ "size" : {
20288
+ "description" : "Defaults to the decoded payload length.",
20289
+ "type" : "number"
20290
+ },
20291
+ "key" : {
20292
+ "description" : "Storage key. Defaults to conversations/{conversationId}/attachments/{id}.{ext}.",
20293
+ "type" : "string"
20294
+ },
20295
+ "url" : {
20296
+ "description" : "Downloadable URL, fetched server-side. Used when inlineDataUrl is absent.",
20297
+ "type" : "string"
20298
+ },
20299
+ "inlineDataUrl" : {
20300
+ "description" : "Base64 data URL: data:<mimeType>;base64,<data>",
20301
+ "type" : "string"
20302
+ }
20303
+ },
20304
+ "title" : "ToolCallAttachment",
20305
+ "type" : "object"
20306
+ },
20307
+ "ToolCallResultResponse" : {
20308
+ "additionalProperties" : false,
20309
+ "properties" : {
20310
+ "callId" : {
20311
+ "type" : "string"
20312
+ },
20313
+ "tool" : {
20314
+ "type" : "string"
20315
+ },
20316
+ "status" : {
20317
+ "enum" : [ "completed", "failed", "refused" ],
20318
+ "type" : "string"
20319
+ },
20320
+ "conversationId" : {
20321
+ "type" : "string"
20322
+ },
20323
+ "messageId" : {
20324
+ "type" : "string"
20325
+ }
20326
+ },
20327
+ "required" : [ "callId", "conversationId", "messageId", "status", "tool" ],
20328
+ "title" : "ToolCallResultResponse",
20329
+ "type" : "object"
20330
+ },
20027
20331
  "FillersArray" : {
20028
20332
  "items" : {
20029
20333
  "$ref" : "#/components/schemas/FillersArray_inner"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.134",
3
+ "version": "1.0.136",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",