@breign/client 1.0.176 → 1.0.178

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 (80) hide show
  1. package/dist/apis/IntegrationsApi.d.ts +174 -0
  2. package/dist/apis/IntegrationsApi.js +445 -0
  3. package/dist/apis/McpApi.d.ts +33 -0
  4. package/dist/apis/McpApi.js +88 -0
  5. package/dist/apis/ScheduledTasksApi.d.ts +14 -1
  6. package/dist/apis/ScheduledTasksApi.js +33 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AgentBuilderMcpConfigurationUio.d.ts +32 -0
  10. package/dist/models/AgentBuilderMcpConfigurationUio.js +48 -0
  11. package/dist/models/AgentPatchUio.d.ts +7 -0
  12. package/dist/models/AgentPatchUio.js +3 -0
  13. package/dist/models/AgentUio.d.ts +7 -0
  14. package/dist/models/AgentUio.js +3 -0
  15. package/dist/models/ExternalEventRoutingUio.d.ts +53 -0
  16. package/dist/models/ExternalEventRoutingUio.js +67 -0
  17. package/dist/models/ExternalEventStatusUio.d.ts +33 -0
  18. package/dist/models/ExternalEventStatusUio.js +59 -0
  19. package/dist/models/ExternalEventUio.d.ts +135 -0
  20. package/dist/models/ExternalEventUio.js +123 -0
  21. package/dist/models/GitlabAccessLevelUio.d.ts +28 -0
  22. package/dist/models/GitlabAccessLevelUio.js +54 -0
  23. package/dist/models/GitlabBotAccountCreateUio.d.ts +50 -0
  24. package/dist/models/GitlabBotAccountCreateUio.js +58 -0
  25. package/dist/models/GitlabBotAccountSummaryUio.d.ts +77 -0
  26. package/dist/models/GitlabBotAccountSummaryUio.js +83 -0
  27. package/dist/models/GitlabBotAccountUio.d.ts +125 -0
  28. package/dist/models/GitlabBotAccountUio.js +115 -0
  29. package/dist/models/GitlabBotAccountUpdateUio.d.ts +64 -0
  30. package/dist/models/GitlabBotAccountUpdateUio.js +64 -0
  31. package/dist/models/GitlabConnectionTestResultUio.d.ts +50 -0
  32. package/dist/models/GitlabConnectionTestResultUio.js +62 -0
  33. package/dist/models/GitlabIntegrationCreateUio.d.ts +45 -0
  34. package/dist/models/GitlabIntegrationCreateUio.js +57 -0
  35. package/dist/models/GitlabIntegrationDetailUio.d.ts +120 -0
  36. package/dist/models/GitlabIntegrationDetailUio.js +112 -0
  37. package/dist/models/GitlabIntegrationUio.d.ts +107 -0
  38. package/dist/models/GitlabIntegrationUio.js +103 -0
  39. package/dist/models/GitlabIntegrationUpdateUio.d.ts +65 -0
  40. package/dist/models/GitlabIntegrationUpdateUio.js +65 -0
  41. package/dist/models/GitlabRoutingTestResultAgentUio.d.ts +38 -0
  42. package/dist/models/GitlabRoutingTestResultAgentUio.js +54 -0
  43. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.d.ts +38 -0
  44. package/dist/models/GitlabRoutingTestResultAutomationsInnerUio.js +54 -0
  45. package/dist/models/GitlabRoutingTestResultBotAccountUio.d.ts +38 -0
  46. package/dist/models/GitlabRoutingTestResultBotAccountUio.js +54 -0
  47. package/dist/models/GitlabRoutingTestResultRunAsUserUio.d.ts +38 -0
  48. package/dist/models/GitlabRoutingTestResultRunAsUserUio.js +54 -0
  49. package/dist/models/GitlabRoutingTestResultUio.d.ts +77 -0
  50. package/dist/models/GitlabRoutingTestResultUio.js +85 -0
  51. package/dist/models/GitlabRoutingTestUio.d.ts +32 -0
  52. package/dist/models/GitlabRoutingTestUio.js +50 -0
  53. package/dist/models/ScheduledTaskCreateUio.d.ts +9 -2
  54. package/dist/models/ScheduledTaskCreateUio.js +4 -3
  55. package/dist/models/ScheduledTaskRunTriggerAuthorUio.d.ts +38 -0
  56. package/dist/models/ScheduledTaskRunTriggerAuthorUio.js +54 -0
  57. package/dist/models/ScheduledTaskRunTriggerUio.d.ts +142 -0
  58. package/dist/models/ScheduledTaskRunTriggerUio.js +129 -0
  59. package/dist/models/ScheduledTaskRunUio.d.ts +20 -0
  60. package/dist/models/ScheduledTaskRunUio.js +12 -1
  61. package/dist/models/ScheduledTaskUio.d.ts +9 -2
  62. package/dist/models/ScheduledTaskUio.js +3 -0
  63. package/dist/models/TaskTriggerReplyUio.d.ts +38 -0
  64. package/dist/models/TaskTriggerReplyUio.js +54 -0
  65. package/dist/models/TaskTriggerUio.d.ts +88 -0
  66. package/dist/models/TaskTriggerUio.js +84 -0
  67. package/dist/models/ToolAllowedToolsRequestUio.d.ts +16 -0
  68. package/dist/models/ToolAllowedToolsRequestUio.js +10 -0
  69. package/dist/models/ToolAllowedToolsResponseUio.d.ts +16 -0
  70. package/dist/models/ToolAllowedToolsResponseUio.js +10 -0
  71. package/dist/models/ToolApprovalUio.d.ts +2 -1
  72. package/dist/models/ToolApprovalUio.js +2 -1
  73. package/dist/models/ToolCallResultRequestUio.d.ts +1 -1
  74. package/dist/models/ToolCallUio.d.ts +1 -1
  75. package/dist/models/ToolSecureMcpUio.d.ts +16 -0
  76. package/dist/models/ToolSecureMcpUio.js +10 -0
  77. package/dist/models/index.d.ts +24 -0
  78. package/dist/models/index.js +24 -0
  79. package/dist/openapi.json +1401 -38
  80. package/package.json +1 -1
@@ -17,6 +17,9 @@ export interface DeleteMcpSessionRequest {
17
17
  export interface GetMcpStreamRequest {
18
18
  organizationId: string;
19
19
  }
20
+ export interface HandleBuilderMcpRequestRequest {
21
+ mcpJsonRpcRequestUio: McpJsonRpcRequestUio;
22
+ }
20
23
  export interface HandleMcpRequestRequest {
21
24
  organizationId: string;
22
25
  mcpJsonRpcRequestUio: McpJsonRpcRequestUio;
@@ -25,6 +28,16 @@ export interface HandleMcpRequestRequest {
25
28
  *
26
29
  */
27
30
  export declare class McpApi extends runtime.BaseAPI {
31
+ /**
32
+ * Aucune session à clore : le transport est sans état.
33
+ * Not supported (stateless MCP server)
34
+ */
35
+ deleteBuilderMcpSessionRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
36
+ /**
37
+ * Aucune session à clore : le transport est sans état.
38
+ * Not supported (stateless MCP server)
39
+ */
40
+ deleteBuilderMcpSession(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
28
41
  /**
29
42
  * Aucune session à clore : le transport est sans état.
30
43
  * Not supported (stateless MCP server)
@@ -35,6 +48,16 @@ export declare class McpApi extends runtime.BaseAPI {
35
48
  * Not supported (stateless MCP server)
36
49
  */
37
50
  deleteMcpSession(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
51
+ /**
52
+ * Pas de flux SSE côté serveur : le transport est sans état.
53
+ * Not supported (stateless MCP server)
54
+ */
55
+ getBuilderMcpStreamRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
56
+ /**
57
+ * Pas de flux SSE côté serveur : le transport est sans état.
58
+ * Not supported (stateless MCP server)
59
+ */
60
+ getBuilderMcpStream(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
38
61
  /**
39
62
  * Pas de flux SSE côté serveur : le transport est sans état.
40
63
  * Not supported (stateless MCP server)
@@ -45,6 +68,16 @@ export declare class McpApi extends runtime.BaseAPI {
45
68
  * Not supported (stateless MCP server)
46
69
  */
47
70
  getMcpStream(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
71
+ /**
72
+ * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) qui crée et édite les agents des organisations de l\'utilisateur : de quoi brancher Claude Code, ou tout client MCP, sur la configuration de Breign. Lié à la clé et non à une organisation : chaque outil vérifie que l\'utilisateur est membre de celle qu\'il touche. Distinct du serveur `/organizations/{organizationId}/mcp`, qui ne sert qu\'à interroger les agents : brancher l\'un ne donne pas les droits d\'écriture de l\'autre. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Chaque action est faite au nom du propriétaire de la clé, avec ses droits. Outils exposés — lecture : - `list_organizations` — organisations dont l\'utilisateur est membre. - `list_agents` `{ organizationId }` — agents de l\'organisation. - `get_agent` `{ agentId }` — configuration d\'un agent : textes, moteur, skills et bases de connaissance rattachés. - `list_engines` `{ organizationId }` — providers de l\'organisation et leurs modèles. - `list_skills` `{ organizationId }` — skills de l\'organisation. - `list_knowledge_bases` `{ organizationId }` — bases de connaissance de l\'organisation. Outils exposés — écriture (jamais de suppression ni de détachement) : - `create_agent` `{ organizationId, name, persona, promptInit?, description?, role?, defaultLanguage? }`. - `update_agent` `{ agentId, name?, description?, role?, defaultLanguage?, persona?, promptInit?, isActivated? }` — `null` ou absent : champ inchangé. - `set_agent_engine` `{ agentId, providerId, model }`. - `attach_skill` `{ agentId, skillId }` — ajoute un skill, sans retirer les autres. - `attach_knowledge_base` `{ agentId, knowledgeBaseId }` — ajoute une base, sans retirer les autres. Un agent Breign dont `builderMcpConfiguration.enabled` est vrai reçoit les mêmes outils, au nom de l\'utilisateur de la conversation, bornés à l\'organisation de l\'agent (ni `list_organizations` ni `organizationId`) ; chaque écriture lui demande alors son approbation. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign-builder https://<api>/mcp/builder --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
73
+ * Builder MCP server
74
+ */
75
+ handleBuilderMcpRequestRaw(requestParameters: HandleBuilderMcpRequestRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<McpJsonRpcResponseUio>>;
76
+ /**
77
+ * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) qui crée et édite les agents des organisations de l\'utilisateur : de quoi brancher Claude Code, ou tout client MCP, sur la configuration de Breign. Lié à la clé et non à une organisation : chaque outil vérifie que l\'utilisateur est membre de celle qu\'il touche. Distinct du serveur `/organizations/{organizationId}/mcp`, qui ne sert qu\'à interroger les agents : brancher l\'un ne donne pas les droits d\'écriture de l\'autre. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Chaque action est faite au nom du propriétaire de la clé, avec ses droits. Outils exposés — lecture : - `list_organizations` — organisations dont l\'utilisateur est membre. - `list_agents` `{ organizationId }` — agents de l\'organisation. - `get_agent` `{ agentId }` — configuration d\'un agent : textes, moteur, skills et bases de connaissance rattachés. - `list_engines` `{ organizationId }` — providers de l\'organisation et leurs modèles. - `list_skills` `{ organizationId }` — skills de l\'organisation. - `list_knowledge_bases` `{ organizationId }` — bases de connaissance de l\'organisation. Outils exposés — écriture (jamais de suppression ni de détachement) : - `create_agent` `{ organizationId, name, persona, promptInit?, description?, role?, defaultLanguage? }`. - `update_agent` `{ agentId, name?, description?, role?, defaultLanguage?, persona?, promptInit?, isActivated? }` — `null` ou absent : champ inchangé. - `set_agent_engine` `{ agentId, providerId, model }`. - `attach_skill` `{ agentId, skillId }` — ajoute un skill, sans retirer les autres. - `attach_knowledge_base` `{ agentId, knowledgeBaseId }` — ajoute une base, sans retirer les autres. Un agent Breign dont `builderMcpConfiguration.enabled` est vrai reçoit les mêmes outils, au nom de l\'utilisateur de la conversation, bornés à l\'organisation de l\'agent (ni `list_organizations` ni `organizationId`) ; chaque écriture lui demande alors son approbation. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign-builder https://<api>/mcp/builder --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
78
+ * Builder MCP server
79
+ */
80
+ handleBuilderMcpRequest(mcpJsonRpcRequestUio: McpJsonRpcRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<McpJsonRpcResponseUio | null | undefined>;
48
81
  /**
49
82
  * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) par lequel les agents locaux — Claude Code, Pi, Hermes… — interrogent les agents Breign de l\'organisation. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Seuls les agents dont `mcpExposureConfiguration.enabled` est vrai sont joignables. Outils exposés : - `list_agents` — agents joignables, avec leur rôle et leur description. - `ask_agent` `{ agentId, message, conversationId?, waitSeconds? }` — pose une question ; attend la réponse jusqu\'à `waitSeconds` (25 s par défaut, 50 s max), sinon rend un ticket. - `wait_for_reply` `{ ticket, timeoutSeconds? }` — attend la réponse d\'un ticket (45 s par défaut, 50 s max). Chaque question vit dans une conversation de tâche au nom du propriétaire de la clé. L\'agent interrogé peut consulter d\'autres agents ou poser une question à un humain (outil Human_ask) : le statut vaut alors `waiting_human`, parfois pendant des heures. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign https://<api>/organizations/<organizationId>/mcp --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
50
83
  * MCP server for local agents
@@ -53,6 +53,31 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class McpApi extends runtime.BaseAPI {
56
+ /**
57
+ * Aucune session à clore : le transport est sans état.
58
+ * Not supported (stateless MCP server)
59
+ */
60
+ async deleteBuilderMcpSessionRaw(initOverrides) {
61
+ const queryParameters = {};
62
+ const headerParameters = {};
63
+ if (this.configuration && this.configuration.apiKey) {
64
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
65
+ }
66
+ const response = await this.request({
67
+ path: `/mcp/builder`,
68
+ method: 'DELETE',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ }, initOverrides);
72
+ return new runtime.VoidApiResponse(response);
73
+ }
74
+ /**
75
+ * Aucune session à clore : le transport est sans état.
76
+ * Not supported (stateless MCP server)
77
+ */
78
+ async deleteBuilderMcpSession(initOverrides) {
79
+ await this.deleteBuilderMcpSessionRaw(initOverrides);
80
+ }
56
81
  /**
57
82
  * Aucune session à clore : le transport est sans état.
58
83
  * Not supported (stateless MCP server)
@@ -81,6 +106,31 @@ class McpApi extends runtime.BaseAPI {
81
106
  async deleteMcpSession(organizationId, initOverrides) {
82
107
  await this.deleteMcpSessionRaw({ organizationId: organizationId }, initOverrides);
83
108
  }
109
+ /**
110
+ * Pas de flux SSE côté serveur : le transport est sans état.
111
+ * Not supported (stateless MCP server)
112
+ */
113
+ async getBuilderMcpStreamRaw(initOverrides) {
114
+ const queryParameters = {};
115
+ const headerParameters = {};
116
+ if (this.configuration && this.configuration.apiKey) {
117
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
118
+ }
119
+ const response = await this.request({
120
+ path: `/mcp/builder`,
121
+ method: 'GET',
122
+ headers: headerParameters,
123
+ query: queryParameters,
124
+ }, initOverrides);
125
+ return new runtime.VoidApiResponse(response);
126
+ }
127
+ /**
128
+ * Pas de flux SSE côté serveur : le transport est sans état.
129
+ * Not supported (stateless MCP server)
130
+ */
131
+ async getBuilderMcpStream(initOverrides) {
132
+ await this.getBuilderMcpStreamRaw(initOverrides);
133
+ }
84
134
  /**
85
135
  * Pas de flux SSE côté serveur : le transport est sans état.
86
136
  * Not supported (stateless MCP server)
@@ -109,6 +159,44 @@ class McpApi extends runtime.BaseAPI {
109
159
  async getMcpStream(organizationId, initOverrides) {
110
160
  await this.getMcpStreamRaw({ organizationId: organizationId }, initOverrides);
111
161
  }
162
+ /**
163
+ * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) qui crée et édite les agents des organisations de l\'utilisateur : de quoi brancher Claude Code, ou tout client MCP, sur la configuration de Breign. Lié à la clé et non à une organisation : chaque outil vérifie que l\'utilisateur est membre de celle qu\'il touche. Distinct du serveur `/organizations/{organizationId}/mcp`, qui ne sert qu\'à interroger les agents : brancher l\'un ne donne pas les droits d\'écriture de l\'autre. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Chaque action est faite au nom du propriétaire de la clé, avec ses droits. Outils exposés — lecture : - `list_organizations` — organisations dont l\'utilisateur est membre. - `list_agents` `{ organizationId }` — agents de l\'organisation. - `get_agent` `{ agentId }` — configuration d\'un agent : textes, moteur, skills et bases de connaissance rattachés. - `list_engines` `{ organizationId }` — providers de l\'organisation et leurs modèles. - `list_skills` `{ organizationId }` — skills de l\'organisation. - `list_knowledge_bases` `{ organizationId }` — bases de connaissance de l\'organisation. Outils exposés — écriture (jamais de suppression ni de détachement) : - `create_agent` `{ organizationId, name, persona, promptInit?, description?, role?, defaultLanguage? }`. - `update_agent` `{ agentId, name?, description?, role?, defaultLanguage?, persona?, promptInit?, isActivated? }` — `null` ou absent : champ inchangé. - `set_agent_engine` `{ agentId, providerId, model }`. - `attach_skill` `{ agentId, skillId }` — ajoute un skill, sans retirer les autres. - `attach_knowledge_base` `{ agentId, knowledgeBaseId }` — ajoute une base, sans retirer les autres. Un agent Breign dont `builderMcpConfiguration.enabled` est vrai reçoit les mêmes outils, au nom de l\'utilisateur de la conversation, bornés à l\'organisation de l\'agent (ni `list_organizations` ni `organizationId`) ; chaque écriture lui demande alors son approbation. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign-builder https://<api>/mcp/builder --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
164
+ * Builder MCP server
165
+ */
166
+ async handleBuilderMcpRequestRaw(requestParameters, initOverrides) {
167
+ if (requestParameters['mcpJsonRpcRequestUio'] == null) {
168
+ throw new runtime.RequiredError('mcpJsonRpcRequestUio', 'Required parameter "mcpJsonRpcRequestUio" was null or undefined when calling handleBuilderMcpRequest().');
169
+ }
170
+ const queryParameters = {};
171
+ const headerParameters = {};
172
+ headerParameters['Content-Type'] = 'application/json';
173
+ if (this.configuration && this.configuration.apiKey) {
174
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
175
+ }
176
+ const response = await this.request({
177
+ path: `/mcp/builder`,
178
+ method: 'POST',
179
+ headers: headerParameters,
180
+ query: queryParameters,
181
+ body: (0, index_1.McpJsonRpcRequestUioToJSON)(requestParameters['mcpJsonRpcRequestUio']),
182
+ }, initOverrides);
183
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.McpJsonRpcResponseUioFromJSON)(jsonValue));
184
+ }
185
+ /**
186
+ * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) qui crée et édite les agents des organisations de l\'utilisateur : de quoi brancher Claude Code, ou tout client MCP, sur la configuration de Breign. Lié à la clé et non à une organisation : chaque outil vérifie que l\'utilisateur est membre de celle qu\'il touche. Distinct du serveur `/organizations/{organizationId}/mcp`, qui ne sert qu\'à interroger les agents : brancher l\'un ne donne pas les droits d\'écriture de l\'autre. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Chaque action est faite au nom du propriétaire de la clé, avec ses droits. Outils exposés — lecture : - `list_organizations` — organisations dont l\'utilisateur est membre. - `list_agents` `{ organizationId }` — agents de l\'organisation. - `get_agent` `{ agentId }` — configuration d\'un agent : textes, moteur, skills et bases de connaissance rattachés. - `list_engines` `{ organizationId }` — providers de l\'organisation et leurs modèles. - `list_skills` `{ organizationId }` — skills de l\'organisation. - `list_knowledge_bases` `{ organizationId }` — bases de connaissance de l\'organisation. Outils exposés — écriture (jamais de suppression ni de détachement) : - `create_agent` `{ organizationId, name, persona, promptInit?, description?, role?, defaultLanguage? }`. - `update_agent` `{ agentId, name?, description?, role?, defaultLanguage?, persona?, promptInit?, isActivated? }` — `null` ou absent : champ inchangé. - `set_agent_engine` `{ agentId, providerId, model }`. - `attach_skill` `{ agentId, skillId }` — ajoute un skill, sans retirer les autres. - `attach_knowledge_base` `{ agentId, knowledgeBaseId }` — ajoute une base, sans retirer les autres. Un agent Breign dont `builderMcpConfiguration.enabled` est vrai reçoit les mêmes outils, au nom de l\'utilisateur de la conversation, bornés à l\'organisation de l\'agent (ni `list_organizations` ni `organizationId`) ; chaque écriture lui demande alors son approbation. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign-builder https://<api>/mcp/builder --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
187
+ * Builder MCP server
188
+ */
189
+ async handleBuilderMcpRequest(mcpJsonRpcRequestUio, initOverrides) {
190
+ const response = await this.handleBuilderMcpRequestRaw({ mcpJsonRpcRequestUio: mcpJsonRpcRequestUio }, initOverrides);
191
+ switch (response.raw.status) {
192
+ case 200:
193
+ return await response.value();
194
+ case 202:
195
+ return null;
196
+ default:
197
+ return await response.value();
198
+ }
199
+ }
112
200
  /**
113
201
  * Serveur MCP (Model Context Protocol, transport Streamable HTTP, sans état) par lequel les agents locaux — Claude Code, Pi, Hermes… — interrogent les agents Breign de l\'organisation. Authentification par clé API personnelle (`x-api-key` ou `Authorization: Bearer ai-…`) ; les credentials d\'app et la clé maître sans `x-user-id` sont refusés. Seuls les agents dont `mcpExposureConfiguration.enabled` est vrai sont joignables. Outils exposés : - `list_agents` — agents joignables, avec leur rôle et leur description. - `ask_agent` `{ agentId, message, conversationId?, waitSeconds? }` — pose une question ; attend la réponse jusqu\'à `waitSeconds` (25 s par défaut, 50 s max), sinon rend un ticket. - `wait_for_reply` `{ ticket, timeoutSeconds? }` — attend la réponse d\'un ticket (45 s par défaut, 50 s max). Chaque question vit dans une conversation de tâche au nom du propriétaire de la clé. L\'agent interrogé peut consulter d\'autres agents ou poser une question à un humain (outil Human_ask) : le statut vaut alors `waiting_human`, parfois pendant des heures. Configuration d\'un client, par exemple Claude Code : `claude mcp add --transport http breign https://<api>/organizations/<organizationId>/mcp --header \"Authorization: Bearer ai-…\"`. Le client doit accepter `application/json` et `text/event-stream` (header `Accept`).
114
202
  * MCP server for local agents
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio } from '../models/index';
13
+ import type { ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunTriggerUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio } from '../models/index';
14
14
  export interface CreateScheduledTaskRequest {
15
15
  agentId: string;
16
16
  scheduledTaskCreateUio: ScheduledTaskCreateUio;
@@ -28,6 +28,11 @@ export interface GetScheduledTaskRunRequest {
28
28
  taskId: string;
29
29
  runId: string;
30
30
  }
31
+ export interface GetScheduledTaskRunTriggerRequest {
32
+ agentId: string;
33
+ taskId: string;
34
+ runId: string;
35
+ }
31
36
  export interface ListAgentScheduledTaskRunsRequest {
32
37
  agentId: string;
33
38
  from: Date;
@@ -96,6 +101,14 @@ export declare class ScheduledTasksApi extends runtime.BaseAPI {
96
101
  * Get a specific scheduled task run by ID
97
102
  */
98
103
  getScheduledTaskRun(agentId: string, taskId: string, runId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunUio>;
104
+ /**
105
+ * The external event that triggered a run (« Déclenché par »)
106
+ */
107
+ getScheduledTaskRunTriggerRaw(requestParameters: GetScheduledTaskRunTriggerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskRunTriggerUio>>;
108
+ /**
109
+ * The external event that triggered a run (« Déclenché par »)
110
+ */
111
+ getScheduledTaskRunTrigger(agentId: string, taskId: string, runId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunTriggerUio>;
99
112
  /**
100
113
  * List all runs for an agent\'s scheduled tasks within a date range
101
114
  */
@@ -177,6 +177,39 @@ class ScheduledTasksApi extends runtime.BaseAPI {
177
177
  const response = await this.getScheduledTaskRunRaw({ agentId: agentId, taskId: taskId, runId: runId }, initOverrides);
178
178
  return await response.value();
179
179
  }
180
+ /**
181
+ * The external event that triggered a run (« Déclenché par »)
182
+ */
183
+ async getScheduledTaskRunTriggerRaw(requestParameters, initOverrides) {
184
+ if (requestParameters['agentId'] == null) {
185
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getScheduledTaskRunTrigger().');
186
+ }
187
+ if (requestParameters['taskId'] == null) {
188
+ throw new runtime.RequiredError('taskId', 'Required parameter "taskId" was null or undefined when calling getScheduledTaskRunTrigger().');
189
+ }
190
+ if (requestParameters['runId'] == null) {
191
+ throw new runtime.RequiredError('runId', 'Required parameter "runId" was null or undefined when calling getScheduledTaskRunTrigger().');
192
+ }
193
+ const queryParameters = {};
194
+ const headerParameters = {};
195
+ if (this.configuration && this.configuration.apiKey) {
196
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
197
+ }
198
+ const response = await this.request({
199
+ path: `/agents/{agentId}/scheduled-tasks/{taskId}/runs/{runId}/trigger`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"taskId"}}`, encodeURIComponent(String(requestParameters['taskId']))).replace(`{${"runId"}}`, encodeURIComponent(String(requestParameters['runId']))),
200
+ method: 'GET',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ }, initOverrides);
204
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScheduledTaskRunTriggerUioFromJSON)(jsonValue));
205
+ }
206
+ /**
207
+ * The external event that triggered a run (« Déclenché par »)
208
+ */
209
+ async getScheduledTaskRunTrigger(agentId, taskId, runId, initOverrides) {
210
+ const response = await this.getScheduledTaskRunTriggerRaw({ agentId: agentId, taskId: taskId, runId: runId }, initOverrides);
211
+ return await response.value();
212
+ }
180
213
  /**
181
214
  * List all runs for an agent\'s scheduled tasks within a date range
182
215
  */
@@ -15,6 +15,7 @@ export * from './GeneralApi';
15
15
  export * from './GuardiansApi';
16
16
  export * from './InboxApi';
17
17
  export * from './InstancesApi';
18
+ export * from './IntegrationsApi';
18
19
  export * from './KnowledgeApi';
19
20
  export * from './LibraryAgentsApi';
20
21
  export * from './ManifestsApi';
@@ -33,6 +33,7 @@ __exportStar(require("./GeneralApi"), exports);
33
33
  __exportStar(require("./GuardiansApi"), exports);
34
34
  __exportStar(require("./InboxApi"), exports);
35
35
  __exportStar(require("./InstancesApi"), exports);
36
+ __exportStar(require("./IntegrationsApi"), exports);
36
37
  __exportStar(require("./KnowledgeApi"), exports);
37
38
  __exportStar(require("./LibraryAgentsApi"), exports);
38
39
  __exportStar(require("./ManifestsApi"), exports);
@@ -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
+ * Access to Breign's builder MCP server (create and edit the organisation's agents) from inside a conversation, acting as the user of that conversation. Opt-in; only an organisation admin can change it. Every write the agent makes through it asks the user for approval first.
14
+ * @export
15
+ * @interface AgentBuilderMcpConfigurationUio
16
+ */
17
+ export interface AgentBuilderMcpConfigurationUio {
18
+ /**
19
+ * Gives this agent the builder tools.
20
+ * @type {boolean}
21
+ * @memberof AgentBuilderMcpConfigurationUio
22
+ */
23
+ enabled?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AgentBuilderMcpConfigurationUio interface.
27
+ */
28
+ export declare function instanceOfAgentBuilderMcpConfigurationUio(value: object): value is AgentBuilderMcpConfigurationUio;
29
+ export declare function AgentBuilderMcpConfigurationUioFromJSON(json: any): AgentBuilderMcpConfigurationUio;
30
+ export declare function AgentBuilderMcpConfigurationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentBuilderMcpConfigurationUio;
31
+ export declare function AgentBuilderMcpConfigurationUioToJSON(json: any): AgentBuilderMcpConfigurationUio;
32
+ export declare function AgentBuilderMcpConfigurationUioToJSONTyped(value?: AgentBuilderMcpConfigurationUio | 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.instanceOfAgentBuilderMcpConfigurationUio = instanceOfAgentBuilderMcpConfigurationUio;
17
+ exports.AgentBuilderMcpConfigurationUioFromJSON = AgentBuilderMcpConfigurationUioFromJSON;
18
+ exports.AgentBuilderMcpConfigurationUioFromJSONTyped = AgentBuilderMcpConfigurationUioFromJSONTyped;
19
+ exports.AgentBuilderMcpConfigurationUioToJSON = AgentBuilderMcpConfigurationUioToJSON;
20
+ exports.AgentBuilderMcpConfigurationUioToJSONTyped = AgentBuilderMcpConfigurationUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentBuilderMcpConfigurationUio interface.
23
+ */
24
+ function instanceOfAgentBuilderMcpConfigurationUio(value) {
25
+ return true;
26
+ }
27
+ function AgentBuilderMcpConfigurationUioFromJSON(json) {
28
+ return AgentBuilderMcpConfigurationUioFromJSONTyped(json, false);
29
+ }
30
+ function AgentBuilderMcpConfigurationUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ };
37
+ }
38
+ function AgentBuilderMcpConfigurationUioToJSON(json) {
39
+ return AgentBuilderMcpConfigurationUioToJSONTyped(json, false);
40
+ }
41
+ function AgentBuilderMcpConfigurationUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'enabled': value['enabled'],
47
+ };
48
+ }
@@ -17,6 +17,7 @@ import type { AgentSandboxConfigurationUio } from './AgentSandboxConfigurationUi
17
17
  import type { AgentMcpExposureConfigurationUio } from './AgentMcpExposureConfigurationUio';
18
18
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
19
19
  import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
20
+ import type { AgentBuilderMcpConfigurationUio } from './AgentBuilderMcpConfigurationUio';
20
21
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
21
22
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
22
23
  import type { AgentPatchEngineUio } from './AgentPatchEngineUio';
@@ -201,6 +202,12 @@ export interface AgentPatchUio {
201
202
  * @memberof AgentPatchUio
202
203
  */
203
204
  mcpExposureConfiguration?: AgentMcpExposureConfigurationUio | null;
205
+ /**
206
+ *
207
+ * @type {AgentBuilderMcpConfigurationUio}
208
+ * @memberof AgentPatchUio
209
+ */
210
+ builderMcpConfiguration?: AgentBuilderMcpConfigurationUio | null;
204
211
  /**
205
212
  *
206
213
  * @type {AgentHumanEscalationConfigurationUio}
@@ -26,6 +26,7 @@ const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio")
26
26
  const AgentMcpExposureConfigurationUio_1 = require("./AgentMcpExposureConfigurationUio");
27
27
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
28
28
  const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
29
+ const AgentBuilderMcpConfigurationUio_1 = require("./AgentBuilderMcpConfigurationUio");
29
30
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
30
31
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
31
32
  const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
@@ -74,6 +75,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
74
75
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
75
76
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
76
77
  'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
78
+ 'builderMcpConfiguration': json['builderMcpConfiguration'] == null ? undefined : (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioFromJSON)(json['builderMcpConfiguration']),
77
79
  'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
78
80
  'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
79
81
  };
@@ -114,6 +116,7 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
114
116
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
115
117
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
116
118
  'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
119
+ 'builderMcpConfiguration': (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioToJSON)(value['builderMcpConfiguration']),
117
120
  'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
118
121
  'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
119
122
  };
@@ -21,6 +21,7 @@ import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
21
21
  import type { AgentToolUio } from './AgentToolUio';
22
22
  import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
23
23
  import type { AgentCreatorUio } from './AgentCreatorUio';
24
+ import type { AgentBuilderMcpConfigurationUio } from './AgentBuilderMcpConfigurationUio';
24
25
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
25
26
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
26
27
  import type { AgentTypeUio } from './AgentTypeUio';
@@ -222,6 +223,12 @@ export interface AgentUio {
222
223
  * @memberof AgentUio
223
224
  */
224
225
  mcpExposureConfiguration?: AgentMcpExposureConfigurationUio | null;
226
+ /**
227
+ *
228
+ * @type {AgentBuilderMcpConfigurationUio}
229
+ * @memberof AgentUio
230
+ */
231
+ builderMcpConfiguration?: AgentBuilderMcpConfigurationUio | null;
225
232
  /**
226
233
  *
227
234
  * @type {AgentHumanEscalationConfigurationUio}
@@ -31,6 +31,7 @@ const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
31
31
  const AgentToolUio_1 = require("./AgentToolUio");
32
32
  const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
33
33
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
34
+ const AgentBuilderMcpConfigurationUio_1 = require("./AgentBuilderMcpConfigurationUio");
34
35
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
35
36
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
36
37
  const AgentTypeUio_1 = require("./AgentTypeUio");
@@ -107,6 +108,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
107
108
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
108
109
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
109
110
  'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
111
+ 'builderMcpConfiguration': json['builderMcpConfiguration'] == null ? undefined : (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioFromJSON)(json['builderMcpConfiguration']),
110
112
  'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
111
113
  'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
112
114
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
@@ -155,6 +157,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
155
157
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
156
158
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
157
159
  'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
160
+ 'builderMcpConfiguration': (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioToJSON)(value['builderMcpConfiguration']),
158
161
  'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
159
162
  'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
160
163
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
@@ -0,0 +1,53 @@
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 ExternalEventRoutingUio
16
+ */
17
+ export interface ExternalEventRoutingUio {
18
+ /**
19
+ * named — the first word was a callable agent; default — the whole text went to the default agent.
20
+ * @type {string}
21
+ * @memberof ExternalEventRoutingUio
22
+ */
23
+ mode: ExternalEventRoutingUioModeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExternalEventRoutingUio
28
+ */
29
+ agentName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExternalEventRoutingUio
34
+ */
35
+ instruction: string;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const ExternalEventRoutingUioModeEnum: {
41
+ readonly Named: "named";
42
+ readonly Default: "default";
43
+ readonly Help: "help";
44
+ };
45
+ export type ExternalEventRoutingUioModeEnum = typeof ExternalEventRoutingUioModeEnum[keyof typeof ExternalEventRoutingUioModeEnum];
46
+ /**
47
+ * Check if a given object implements the ExternalEventRoutingUio interface.
48
+ */
49
+ export declare function instanceOfExternalEventRoutingUio(value: object): value is ExternalEventRoutingUio;
50
+ export declare function ExternalEventRoutingUioFromJSON(json: any): ExternalEventRoutingUio;
51
+ export declare function ExternalEventRoutingUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalEventRoutingUio;
52
+ export declare function ExternalEventRoutingUioToJSON(json: any): ExternalEventRoutingUio;
53
+ export declare function ExternalEventRoutingUioToJSONTyped(value?: ExternalEventRoutingUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
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.ExternalEventRoutingUioModeEnum = void 0;
17
+ exports.instanceOfExternalEventRoutingUio = instanceOfExternalEventRoutingUio;
18
+ exports.ExternalEventRoutingUioFromJSON = ExternalEventRoutingUioFromJSON;
19
+ exports.ExternalEventRoutingUioFromJSONTyped = ExternalEventRoutingUioFromJSONTyped;
20
+ exports.ExternalEventRoutingUioToJSON = ExternalEventRoutingUioToJSON;
21
+ exports.ExternalEventRoutingUioToJSONTyped = ExternalEventRoutingUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ExternalEventRoutingUioModeEnum = {
26
+ Named: 'named',
27
+ Default: 'default',
28
+ Help: 'help'
29
+ };
30
+ /**
31
+ * Check if a given object implements the ExternalEventRoutingUio interface.
32
+ */
33
+ function instanceOfExternalEventRoutingUio(value) {
34
+ if (!('mode' in value) || value['mode'] === undefined)
35
+ return false;
36
+ if (!('agentName' in value) || value['agentName'] === undefined)
37
+ return false;
38
+ if (!('instruction' in value) || value['instruction'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ function ExternalEventRoutingUioFromJSON(json) {
43
+ return ExternalEventRoutingUioFromJSONTyped(json, false);
44
+ }
45
+ function ExternalEventRoutingUioFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'mode': json['mode'],
51
+ 'agentName': json['agentName'],
52
+ 'instruction': json['instruction'],
53
+ };
54
+ }
55
+ function ExternalEventRoutingUioToJSON(json) {
56
+ return ExternalEventRoutingUioToJSONTyped(json, false);
57
+ }
58
+ function ExternalEventRoutingUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'mode': value['mode'],
64
+ 'agentName': value['agentName'],
65
+ 'instruction': value['instruction'],
66
+ };
67
+ }
@@ -0,0 +1,33 @@
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
+ */
16
+ export declare const ExternalEventStatusUio: {
17
+ readonly Received: "received";
18
+ readonly Queued: "queued";
19
+ readonly Running: "running";
20
+ readonly Replying: "replying";
21
+ readonly Done: "done";
22
+ readonly Ignored: "ignored";
23
+ readonly NoAutomation: "no_automation";
24
+ readonly Expired: "expired";
25
+ readonly Dead: "dead";
26
+ readonly DroppedOverload: "dropped_overload";
27
+ };
28
+ export type ExternalEventStatusUio = typeof ExternalEventStatusUio[keyof typeof ExternalEventStatusUio];
29
+ export declare function instanceOfExternalEventStatusUio(value: any): boolean;
30
+ export declare function ExternalEventStatusUioFromJSON(json: any): ExternalEventStatusUio;
31
+ export declare function ExternalEventStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalEventStatusUio;
32
+ export declare function ExternalEventStatusUioToJSON(value?: ExternalEventStatusUio | null): any;
33
+ export declare function ExternalEventStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ExternalEventStatusUio;