@breign/client 1.0.146 → 1.0.148

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.
@@ -108,7 +108,7 @@ export interface GetAppFillersRequest {
108
108
  }
109
109
  export interface GetAppProbeRequest {
110
110
  appId: string;
111
- instanceId?: string;
111
+ instanceId: string;
112
112
  }
113
113
  export interface GetAppsForAgentIdRequest {
114
114
  agentId: string;
@@ -127,8 +127,8 @@ export interface InterruptAppRequest {
127
127
  }
128
128
  export interface ProbeAppRequest {
129
129
  appId: string;
130
+ instanceId: string;
130
131
  appProbeRequestUio: AppProbeRequestUio;
131
- instanceId?: string;
132
132
  }
133
133
  export interface RefreshAppProbeRequest {
134
134
  appId: string;
@@ -407,15 +407,15 @@ export declare class AppApi extends runtime.BaseAPI {
407
407
  */
408
408
  getAppFillers(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FillersArrayInnerUio>>;
409
409
  /**
410
- * Probe the app
411
- * Probe the app
410
+ * Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
411
+ * Read the last probe of an app instance
412
412
  */
413
413
  getAppProbeRaw(requestParameters: GetAppProbeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AppProbeResponseUio>>;
414
414
  /**
415
- * Probe the app
416
- * Probe the app
415
+ * Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
416
+ * Read the last probe of an app instance
417
417
  */
418
- getAppProbe(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppProbeResponseUio>;
418
+ getAppProbe(appId: string, instanceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AppProbeResponseUio>;
419
419
  /**
420
420
  * Get apps for agent id
421
421
  * Get apps for agent id
@@ -457,15 +457,15 @@ export declare class AppApi extends runtime.BaseAPI {
457
457
  */
458
458
  interruptApp(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
459
459
  /**
460
- * Probe the app
461
- * Probe the app
460
+ * Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
461
+ * Post the probe of an app instance
462
462
  */
463
463
  probeAppRaw(requestParameters: ProbeAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
464
464
  /**
465
- * Probe the app
466
- * Probe the app
465
+ * Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
466
+ * Post the probe of an app instance
467
467
  */
468
- probeApp(appId: string, appProbeRequestUio: AppProbeRequestUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
468
+ probeApp(appId: string, instanceId: string, appProbeRequestUio: AppProbeRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
469
469
  /**
470
470
  * Refresh the app probe
471
471
  * Refresh the app probe
@@ -780,13 +780,16 @@ class AppApi extends runtime.BaseAPI {
780
780
  return await response.value();
781
781
  }
782
782
  /**
783
- * Probe the app
784
- * Probe the app
783
+ * Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
784
+ * Read the last probe of an app instance
785
785
  */
786
786
  async getAppProbeRaw(requestParameters, initOverrides) {
787
787
  if (requestParameters['appId'] == null) {
788
788
  throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling getAppProbe().');
789
789
  }
790
+ if (requestParameters['instanceId'] == null) {
791
+ throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling getAppProbe().');
792
+ }
790
793
  const queryParameters = {};
791
794
  if (requestParameters['instanceId'] != null) {
792
795
  queryParameters['instanceId'] = requestParameters['instanceId'];
@@ -804,8 +807,8 @@ class AppApi extends runtime.BaseAPI {
804
807
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AppProbeResponseUioFromJSON)(jsonValue));
805
808
  }
806
809
  /**
807
- * Probe the app
808
- * Probe the app
810
+ * Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.
811
+ * Read the last probe of an app instance
809
812
  */
810
813
  async getAppProbe(appId, instanceId, initOverrides) {
811
814
  const response = await this.getAppProbeRaw({ appId: appId, instanceId: instanceId }, initOverrides);
@@ -937,13 +940,16 @@ class AppApi extends runtime.BaseAPI {
937
940
  return await response.value();
938
941
  }
939
942
  /**
940
- * Probe the app
941
- * Probe the app
943
+ * Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
944
+ * Post the probe of an app instance
942
945
  */
943
946
  async probeAppRaw(requestParameters, initOverrides) {
944
947
  if (requestParameters['appId'] == null) {
945
948
  throw new runtime.RequiredError('appId', 'Required parameter "appId" was null or undefined when calling probeApp().');
946
949
  }
950
+ if (requestParameters['instanceId'] == null) {
951
+ throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling probeApp().');
952
+ }
947
953
  if (requestParameters['appProbeRequestUio'] == null) {
948
954
  throw new runtime.RequiredError('appProbeRequestUio', 'Required parameter "appProbeRequestUio" was null or undefined when calling probeApp().');
949
955
  }
@@ -966,11 +972,11 @@ class AppApi extends runtime.BaseAPI {
966
972
  return new runtime.VoidApiResponse(response);
967
973
  }
968
974
  /**
969
- * Probe the app
970
- * Probe the app
975
+ * Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.
976
+ * Post the probe of an app instance
971
977
  */
972
- async probeApp(appId, appProbeRequestUio, instanceId, initOverrides) {
973
- await this.probeAppRaw({ appId: appId, appProbeRequestUio: appProbeRequestUio, instanceId: instanceId }, initOverrides);
978
+ async probeApp(appId, instanceId, appProbeRequestUio, initOverrides) {
979
+ await this.probeAppRaw({ appId: appId, instanceId: instanceId, appProbeRequestUio: appProbeRequestUio }, initOverrides);
974
980
  }
975
981
  /**
976
982
  * Refresh the app probe
@@ -0,0 +1,32 @@
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
+ * Per-agent activation of code mode: the model writes a JavaScript/TypeScript program that calls the agent's tools inside a sandbox, instead of one tool call per round trip. Opt-in, and narrower than it looks — only the tools declared code-mode callable server-side are reachable from a program. The server configuration can only narrow this.
14
+ * @export
15
+ * @interface AgentCodeModeConfigurationUio
16
+ */
17
+ export interface AgentCodeModeConfigurationUio {
18
+ /**
19
+ * General switch for code mode on this agent.
20
+ * @type {boolean}
21
+ * @memberof AgentCodeModeConfigurationUio
22
+ */
23
+ enabled?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AgentCodeModeConfigurationUio interface.
27
+ */
28
+ export declare function instanceOfAgentCodeModeConfigurationUio(value: object): value is AgentCodeModeConfigurationUio;
29
+ export declare function AgentCodeModeConfigurationUioFromJSON(json: any): AgentCodeModeConfigurationUio;
30
+ export declare function AgentCodeModeConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCodeModeConfigurationUio;
31
+ export declare function AgentCodeModeConfigurationUioToJSON(json: any): AgentCodeModeConfigurationUio;
32
+ export declare function AgentCodeModeConfigurationUioToJSONTyped(value?: AgentCodeModeConfigurationUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfAgentCodeModeConfigurationUio = instanceOfAgentCodeModeConfigurationUio;
17
+ exports.AgentCodeModeConfigurationUioFromJSON = AgentCodeModeConfigurationUioFromJSON;
18
+ exports.AgentCodeModeConfigurationUioFromJSONTyped = AgentCodeModeConfigurationUioFromJSONTyped;
19
+ exports.AgentCodeModeConfigurationUioToJSON = AgentCodeModeConfigurationUioToJSON;
20
+ exports.AgentCodeModeConfigurationUioToJSONTyped = AgentCodeModeConfigurationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentCodeModeConfigurationUio interface.
23
+ */
24
+ function instanceOfAgentCodeModeConfigurationUio(value) {
25
+ return true;
26
+ }
27
+ function AgentCodeModeConfigurationUioFromJSON(json) {
28
+ return AgentCodeModeConfigurationUioFromJSONTyped(json, false);
29
+ }
30
+ function AgentCodeModeConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ };
37
+ }
38
+ function AgentCodeModeConfigurationUioToJSON(json) {
39
+ return AgentCodeModeConfigurationUioToJSONTyped(json, false);
40
+ }
41
+ function AgentCodeModeConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'enabled': value['enabled'],
47
+ };
48
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
13
  import type { ContextualKnowledgeConversationUio } from './ContextualKnowledgeConversationUio';
14
14
  import type { PersonaUio } from './PersonaUio';
15
+ import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
15
16
  import type { PromptInitUio } from './PromptInitUio';
16
17
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
17
18
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
@@ -192,6 +193,12 @@ export interface AgentPatchUio {
192
193
  * @memberof AgentPatchUio
193
194
  */
194
195
  agentCallConfiguration?: AgentCallConfigurationUio | null;
196
+ /**
197
+ *
198
+ * @type {AgentCodeModeConfigurationUio}
199
+ * @memberof AgentPatchUio
200
+ */
201
+ codeModeConfiguration?: AgentCodeModeConfigurationUio | null;
195
202
  }
196
203
  /**
197
204
  * Check if a given object implements the AgentPatchUio interface.
@@ -21,6 +21,7 @@ exports.AgentPatchUioToJSONTyped = AgentPatchUioToJSONTyped;
21
21
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
22
  const ContextualKnowledgeConversationUio_1 = require("./ContextualKnowledgeConversationUio");
23
23
  const PersonaUio_1 = require("./PersonaUio");
24
+ const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
24
25
  const PromptInitUio_1 = require("./PromptInitUio");
25
26
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
26
27
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
@@ -70,6 +71,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
70
71
  'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
71
72
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
72
73
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
74
+ 'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
73
75
  };
74
76
  }
75
77
  function AgentPatchUioToJSON(json) {
@@ -107,5 +109,6 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
107
109
  'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
108
110
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
109
111
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
112
+ 'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
110
113
  };
111
114
  }
@@ -17,6 +17,7 @@ import type { PromptInitUio } from './PromptInitUio';
17
17
  import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUio';
18
18
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
19
19
  import type { AgentToolUio } from './AgentToolUio';
20
+ import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
20
21
  import type { AgentCreatorUio } from './AgentCreatorUio';
21
22
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
22
23
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
@@ -213,6 +214,12 @@ export interface AgentUio {
213
214
  * @memberof AgentUio
214
215
  */
215
216
  agentCallConfiguration?: AgentCallConfigurationUio | null;
217
+ /**
218
+ *
219
+ * @type {AgentCodeModeConfigurationUio}
220
+ * @memberof AgentUio
221
+ */
222
+ codeModeConfiguration?: AgentCodeModeConfigurationUio | null;
216
223
  /**
217
224
  *
218
225
  * @type {AgentCreatorUio}
@@ -27,6 +27,7 @@ const PromptInitUio_1 = require("./PromptInitUio");
27
27
  const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio");
28
28
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
29
29
  const AgentToolUio_1 = require("./AgentToolUio");
30
+ const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
30
31
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
31
32
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
32
33
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
@@ -103,6 +104,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
103
104
  'sandboxConfiguration': json['sandboxConfiguration'] == null ? undefined : (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioFromJSON)(json['sandboxConfiguration']),
104
105
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
105
106
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
107
+ 'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
106
108
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
107
109
  'engineSource': json['engineSource'] == null ? undefined : json['engineSource'],
108
110
  'providerSource': json['providerSource'] == null ? undefined : json['providerSource'],
@@ -147,6 +149,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
147
149
  'sandboxConfiguration': (0, AgentSandboxConfigurationUio_1.AgentSandboxConfigurationUioToJSON)(value['sandboxConfiguration']),
148
150
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
149
151
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
152
+ 'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
150
153
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
151
154
  'engineSource': value['engineSource'],
152
155
  'providerSource': value['providerSource'],
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Dernier probe remonte par l'instance. Un objet vide signifie que l'instance n'a jamais probe : `id` et `date` sont alors absents.
14
14
  * @export
15
15
  * @interface AppProbeResponseUio
16
16
  */
@@ -21,13 +21,13 @@ export interface AppProbeResponseUio {
21
21
  * @type {string}
22
22
  * @memberof AppProbeResponseUio
23
23
  */
24
- id: string;
24
+ id?: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
28
  * @memberof AppProbeResponseUio
29
29
  */
30
- date: string;
30
+ date?: string;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the AppProbeResponseUio interface.
@@ -22,10 +22,6 @@ exports.AppProbeResponseUioToJSONTyped = AppProbeResponseUioToJSONTyped;
22
22
  * Check if a given object implements the AppProbeResponseUio interface.
23
23
  */
24
24
  function instanceOfAppProbeResponseUio(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('date' in value) || value['date'] === undefined)
28
- return false;
29
25
  return true;
30
26
  }
31
27
  function AppProbeResponseUioFromJSON(json) {
@@ -37,8 +33,8 @@ function AppProbeResponseUioFromJSONTyped(json, ignoreDiscriminator) {
37
33
  }
38
34
  return {
39
35
  ...json,
40
- 'id': json['id'],
41
- 'date': json['date'],
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ 'date': json['date'] == null ? undefined : json['date'],
42
38
  };
43
39
  }
44
40
  function AppProbeResponseUioToJSON(json) {
@@ -33,6 +33,12 @@ export interface ToolResultsToolUio {
33
33
  * @memberof ToolResultsToolUio
34
34
  */
35
35
  params?: string;
36
+ /**
37
+ * The tool that emitted this call when it was not the model itself — the code_mode whose program called it. Present means the call is nested: it is kept for the history and the metrics, but it is not replayed to the model, which already reads the code_mode step carrying the program and its result.
38
+ * @type {string}
39
+ * @memberof ToolResultsToolUio
40
+ */
41
+ callerTool?: string;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the ToolResultsToolUio interface.
@@ -37,6 +37,7 @@ function ToolResultsToolUioFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'tool': json['tool'],
38
38
  'toolName': json['toolName'] == null ? undefined : json['toolName'],
39
39
  'params': json['params'] == null ? undefined : json['params'],
40
+ 'callerTool': json['callerTool'] == null ? undefined : json['callerTool'],
40
41
  };
41
42
  }
42
43
  function ToolResultsToolUioToJSON(json) {
@@ -50,5 +51,6 @@ function ToolResultsToolUioToJSONTyped(value, ignoreDiscriminator = false) {
50
51
  'tool': value['tool'],
51
52
  'toolName': value['toolName'],
52
53
  'params': value['params'],
54
+ 'callerTool': value['callerTool'],
53
55
  };
54
56
  }
@@ -12,6 +12,7 @@ export * from './AgentBundleDiffUio';
12
12
  export * from './AgentBundleListDiffUio';
13
13
  export * from './AgentCallConfigurationUio';
14
14
  export * from './AgentChatOverviewEntryUio';
15
+ export * from './AgentCodeModeConfigurationUio';
15
16
  export * from './AgentComputerUseConfigurationUio';
16
17
  export * from './AgentCreatorUio';
17
18
  export * from './AgentCreatorUserUio';
@@ -30,6 +30,7 @@ __exportStar(require("./AgentBundleDiffUio"), exports);
30
30
  __exportStar(require("./AgentBundleListDiffUio"), exports);
31
31
  __exportStar(require("./AgentCallConfigurationUio"), exports);
32
32
  __exportStar(require("./AgentChatOverviewEntryUio"), exports);
33
+ __exportStar(require("./AgentCodeModeConfigurationUio"), exports);
33
34
  __exportStar(require("./AgentComputerUseConfigurationUio"), exports);
34
35
  __exportStar(require("./AgentCreatorUio"), exports);
35
36
  __exportStar(require("./AgentCreatorUserUio"), exports);
package/dist/openapi.json CHANGED
@@ -3358,7 +3358,7 @@
3358
3358
  },
3359
3359
  "/apps/{appId}/probe" : {
3360
3360
  "get" : {
3361
- "description" : "Probe the app",
3361
+ "description" : "Returns the last state snapshot posted by the instance. The probe belongs to the instance, so `instanceId` is required: without it the app has no probe to read. An instance that has never posted a probe answers 200 with an empty object.",
3362
3362
  "operationId" : "getAppProbe",
3363
3363
  "parameters" : [ {
3364
3364
  "description" : "ID of the app",
@@ -3369,9 +3369,10 @@
3369
3369
  "type" : "string"
3370
3370
  }
3371
3371
  }, {
3372
- "description" : "Instance id",
3372
+ "description" : "The instance whose probe is read. `DEFAULT` is not accepted.",
3373
3373
  "in" : "query",
3374
3374
  "name" : "instanceId",
3375
+ "required" : true,
3375
3376
  "schema" : {
3376
3377
  "type" : "string"
3377
3378
  }
@@ -3385,14 +3386,26 @@
3385
3386
  }
3386
3387
  }
3387
3388
  },
3388
- "description" : "App probe retrieved successfully"
3389
+ "description" : "Last probe of the instance, or an empty object if it never probed"
3390
+ },
3391
+ "400" : {
3392
+ "description" : "instanceId is missing or is `DEFAULT`"
3393
+ },
3394
+ "401" : {
3395
+ "description" : "Unauthorized"
3396
+ },
3397
+ "403" : {
3398
+ "description" : "Forbidden"
3399
+ },
3400
+ "404" : {
3401
+ "description" : "App or instance not found"
3389
3402
  }
3390
3403
  },
3391
- "summary" : "Probe the app",
3404
+ "summary" : "Read the last probe of an app instance",
3392
3405
  "tags" : [ "app" ]
3393
3406
  },
3394
3407
  "post" : {
3395
- "description" : "Probe the app",
3408
+ "description" : "Records the state snapshot of the instance, replacing the previous one. `instanceId` is required — the probe is stored on the instance, not on the app. Any extra property of the body is kept as sent.",
3396
3409
  "operationId" : "probeApp",
3397
3410
  "parameters" : [ {
3398
3411
  "description" : "ID of the app",
@@ -3403,9 +3416,10 @@
3403
3416
  "type" : "string"
3404
3417
  }
3405
3418
  }, {
3406
- "description" : "Instance id",
3419
+ "description" : "The instance the probe belongs to. `DEFAULT` is not accepted.",
3407
3420
  "in" : "query",
3408
3421
  "name" : "instanceId",
3422
+ "required" : true,
3409
3423
  "schema" : {
3410
3424
  "type" : "string"
3411
3425
  }
@@ -3422,10 +3436,22 @@
3422
3436
  },
3423
3437
  "responses" : {
3424
3438
  "204" : {
3425
- "description" : "App probed successfully"
3439
+ "description" : "Probe recorded"
3440
+ },
3441
+ "400" : {
3442
+ "description" : "Invalid body, or instanceId missing or `DEFAULT`"
3443
+ },
3444
+ "401" : {
3445
+ "description" : "Unauthorized"
3446
+ },
3447
+ "403" : {
3448
+ "description" : "Forbidden"
3449
+ },
3450
+ "404" : {
3451
+ "description" : "App or instance not found"
3426
3452
  }
3427
3453
  },
3428
- "summary" : "Probe the app",
3454
+ "summary" : "Post the probe of an app instance",
3429
3455
  "tags" : [ "app" ]
3430
3456
  }
3431
3457
  },
@@ -15858,6 +15884,12 @@
15858
15884
  } ],
15859
15885
  "nullable" : true
15860
15886
  },
15887
+ "codeModeConfiguration" : {
15888
+ "allOf" : [ {
15889
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
15890
+ } ],
15891
+ "nullable" : true
15892
+ },
15861
15893
  "creator" : {
15862
15894
  "$ref" : "#/components/schemas/Agent_creator"
15863
15895
  },
@@ -16075,6 +16107,16 @@
16075
16107
  },
16076
16108
  "type" : "object"
16077
16109
  },
16110
+ "AgentCodeModeConfiguration" : {
16111
+ "description" : "Per-agent activation of code mode: the model writes a JavaScript/TypeScript program that calls the agent's tools inside a sandbox, instead of one tool call per round trip. Opt-in, and narrower than it looks — only the tools declared code-mode callable server-side are reachable from a program. The server configuration can only narrow this.",
16112
+ "properties" : {
16113
+ "enabled" : {
16114
+ "description" : "General switch for code mode on this agent.",
16115
+ "type" : "boolean"
16116
+ }
16117
+ },
16118
+ "type" : "object"
16119
+ },
16078
16120
  "AgentTool" : {
16079
16121
  "properties" : {
16080
16122
  "id" : {
@@ -16258,6 +16300,12 @@
16258
16300
  "$ref" : "#/components/schemas/AgentCallConfiguration"
16259
16301
  } ],
16260
16302
  "nullable" : true
16303
+ },
16304
+ "codeModeConfiguration" : {
16305
+ "allOf" : [ {
16306
+ "$ref" : "#/components/schemas/AgentCodeModeConfiguration"
16307
+ } ],
16308
+ "nullable" : true
16261
16309
  }
16262
16310
  },
16263
16311
  "type" : "object"
@@ -18454,6 +18502,7 @@
18454
18502
  },
18455
18503
  "AppProbeResponse" : {
18456
18504
  "additionalProperties" : true,
18505
+ "description" : "Dernier probe remonte par l'instance. Un objet vide signifie que l'instance n'a jamais probe : `id` et `date` sont alors absents.",
18457
18506
  "properties" : {
18458
18507
  "id" : {
18459
18508
  "type" : "string"
@@ -18462,7 +18511,6 @@
18462
18511
  "type" : "string"
18463
18512
  }
18464
18513
  },
18465
- "required" : [ "date", "id" ],
18466
18514
  "type" : "object"
18467
18515
  },
18468
18516
  "AppProbeRequest" : {
@@ -24354,6 +24402,10 @@
24354
24402
  },
24355
24403
  "params" : {
24356
24404
  "type" : "string"
24405
+ },
24406
+ "callerTool" : {
24407
+ "description" : "The tool that emitted this call when it was not the model itself — the code_mode whose program called it. Present means the call is nested: it is kept for the history and the metrics, but it is not replayed to the model, which already reads the code_mode step carrying the program and its result.",
24408
+ "type" : "string"
24357
24409
  }
24358
24410
  },
24359
24411
  "required" : [ "tool" ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.146",
3
+ "version": "1.0.148",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",