@breign/db-schemas 0.1.80 → 0.1.81

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.
@@ -48,6 +48,7 @@ export type Agent = {
48
48
  computerUseConfiguration?: AgentComputerUseConfiguration;
49
49
  agentCallConfiguration?: AgentCallConfiguration;
50
50
  mcpExposureConfiguration?: AgentMcpExposureConfiguration;
51
+ builderMcpConfiguration?: AgentBuilderMcpConfiguration;
51
52
  humanEscalationConfiguration?: AgentHumanEscalationConfiguration;
52
53
  codeModeConfiguration?: AgentCodeModeConfiguration;
53
54
  speechToText?: SpeechToTextConfig;
@@ -79,6 +80,14 @@ export type AgentCallConfiguration = {
79
80
  export type AgentMcpExposureConfiguration = {
80
81
  enabled?: boolean;
81
82
  };
83
+ /**
84
+ * Access to Breign's builder MCP server — the tools that create and edit the organisation's
85
+ * agents — from inside a conversation, acting as the user of that conversation. Opt-in, and only
86
+ * an organisation admin can switch it on: it lets the agent edit the other agents.
87
+ */
88
+ export type AgentBuilderMcpConfiguration = {
89
+ enabled?: boolean;
90
+ };
82
91
  /**
83
92
  * Human_ask tool, offered only in task conversations (a local agent or another agent asking).
84
93
  * The question goes to the first valid referent; without one, to the user who owns the task —
@@ -35,6 +35,11 @@ export type Tool = {
35
35
  };
36
36
  introspection?: unknown;
37
37
  allowedTools?: string[];
38
+ /**
39
+ * Quand un appel de l'outil demande l'approbation de l'utilisateur, par nom d'outil. Absent :
40
+ * automatique — demandée sauf si le serveur déclare l'outil en lecture seule (`readOnlyHint`).
41
+ */
42
+ approvalModes?: Record<string, McpToolApprovalMode>;
38
43
  };
39
44
  manifest?: Record<string, unknown>;
40
45
  /**
@@ -64,3 +69,8 @@ export type Tool = {
64
69
  };
65
70
  };
66
71
  };
72
+ /**
73
+ * `always` : toujours demander, et refuser l'appel quand personne ne peut répondre (tâche
74
+ * planifiée, widget…). `never` : ne jamais demander.
75
+ */
76
+ export type McpToolApprovalMode = 'always' | 'never';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/db-schemas",
3
- "version": "0.1.80",
3
+ "version": "0.1.81",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -41,6 +41,7 @@ export type Agent = {
41
41
  computerUseConfiguration?: AgentComputerUseConfiguration;
42
42
  agentCallConfiguration?: AgentCallConfiguration;
43
43
  mcpExposureConfiguration?: AgentMcpExposureConfiguration;
44
+ builderMcpConfiguration?: AgentBuilderMcpConfiguration;
44
45
  humanEscalationConfiguration?: AgentHumanEscalationConfiguration;
45
46
  codeModeConfiguration?: AgentCodeModeConfiguration;
46
47
  speechToText?: SpeechToTextConfig;
@@ -78,6 +79,15 @@ export type AgentMcpExposureConfiguration = {
78
79
  enabled?: boolean;
79
80
  };
80
81
 
82
+ /**
83
+ * Access to Breign's builder MCP server — the tools that create and edit the organisation's
84
+ * agents — from inside a conversation, acting as the user of that conversation. Opt-in, and only
85
+ * an organisation admin can switch it on: it lets the agent edit the other agents.
86
+ */
87
+ export type AgentBuilderMcpConfiguration = {
88
+ enabled?: boolean;
89
+ };
90
+
81
91
  /**
82
92
  * Human_ask tool, offered only in task conversations (a local agent or another agent asking).
83
93
  * The question goes to the first valid referent; without one, to the user who owns the task —
package/src/types/tool.ts CHANGED
@@ -36,6 +36,11 @@ export type Tool = {
36
36
  };
37
37
  introspection?: unknown;
38
38
  allowedTools?: string[];
39
+ /**
40
+ * Quand un appel de l'outil demande l'approbation de l'utilisateur, par nom d'outil. Absent :
41
+ * automatique — demandée sauf si le serveur déclare l'outil en lecture seule (`readOnlyHint`).
42
+ */
43
+ approvalModes?: Record<string, McpToolApprovalMode>;
39
44
  };
40
45
  manifest?: Record<string, unknown>;
41
46
  /**
@@ -65,3 +70,9 @@ export type Tool = {
65
70
  };
66
71
  };
67
72
  };
73
+
74
+ /**
75
+ * `always` : toujours demander, et refuser l'appel quand personne ne peut répondre (tâche
76
+ * planifiée, widget…). `never` : ne jamais demander.
77
+ */
78
+ export type McpToolApprovalMode = 'always' | 'never';