@breign/client 1.0.107 → 1.0.109

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, UpdateConversationTitleRequestUio } from '../models/index';
13
+ import type { AttachmentCreateRequestUio, AttachmentCreateResponseUio, AttachmentDetailsResponseUio, BodyWithMessageUio, ContextUio, ConversationSummaryUio, CreateCustomVariable200ResponseUio, UpdateConversationTitleRequestUio } from '../models/index';
14
14
  export interface ArchiveConversationByIdRequest {
15
15
  conversationId: string;
16
16
  }
@@ -77,17 +77,17 @@ export declare class ConversationsApi extends runtime.BaseAPI {
77
77
  */
78
78
  archiveConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
79
79
  /**
80
- * Create a custom variable in the context of a specific conversation by its ID.
81
- * Create a custom variable in the context of a conversation
80
+ * Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
81
+ * Replace conversation custom context variables
82
82
  */
83
- createCustomVariableRaw(requestParameters: CreateCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
83
+ createCustomVariableRaw(requestParameters: CreateCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCustomVariable200ResponseUio>>;
84
84
  /**
85
- * Create a custom variable in the context of a specific conversation by its ID.
86
- * Create a custom variable in the context of a conversation
85
+ * Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
86
+ * Replace conversation custom context variables
87
87
  */
88
88
  createCustomVariable(conversationId: string, requestBody: {
89
89
  [key: string]: string;
90
- }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
90
+ }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCustomVariable200ResponseUio>;
91
91
  /**
92
92
  * Remove all attachments from the context of a specific conversation.
93
93
  * Delete all attachments from a conversation context.
@@ -149,15 +149,15 @@ export declare class ConversationsApi extends runtime.BaseAPI {
149
149
  */
150
150
  getContext(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContextUio>;
151
151
  /**
152
- * Get a custom variable from the context of a specific conversation by its ID.
153
- * Get a custom variable from the context of a conversation
152
+ * Returns all custom context variables for a conversation.
153
+ * Get conversation custom context variables
154
154
  */
155
155
  getContextCustomVariableRaw(requestParameters: GetContextCustomVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
156
156
  [key: string]: string;
157
157
  }>>;
158
158
  /**
159
- * Get a custom variable from the context of a specific conversation by its ID.
160
- * Get a custom variable from the context of a conversation
159
+ * Returns all custom context variables for a conversation.
160
+ * Get conversation custom context variables
161
161
  */
162
162
  getContextCustomVariable(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
163
163
  [key: string]: string;
@@ -82,8 +82,8 @@ class ConversationsApi extends runtime.BaseAPI {
82
82
  await this.archiveConversationByIdRaw({ conversationId: conversationId }, initOverrides);
83
83
  }
84
84
  /**
85
- * Create a custom variable in the context of a specific conversation by its ID.
86
- * Create a custom variable in the context of a conversation
85
+ * Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
86
+ * Replace conversation custom context variables
87
87
  */
88
88
  async createCustomVariableRaw(requestParameters, initOverrides) {
89
89
  if (requestParameters['conversationId'] == null) {
@@ -105,14 +105,15 @@ class ConversationsApi extends runtime.BaseAPI {
105
105
  query: queryParameters,
106
106
  body: requestParameters['requestBody'],
107
107
  }, initOverrides);
108
- return new runtime.VoidApiResponse(response);
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCustomVariable200ResponseUioFromJSON)(jsonValue));
109
109
  }
110
110
  /**
111
- * Create a custom variable in the context of a specific conversation by its ID.
112
- * Create a custom variable in the context of a conversation
111
+ * Replaces the full set of custom context variables for a conversation. Omitted keys are removed.
112
+ * Replace conversation custom context variables
113
113
  */
114
114
  async createCustomVariable(conversationId, requestBody, initOverrides) {
115
- await this.createCustomVariableRaw({ conversationId: conversationId, requestBody: requestBody }, initOverrides);
115
+ const response = await this.createCustomVariableRaw({ conversationId: conversationId, requestBody: requestBody }, initOverrides);
116
+ return await response.value();
116
117
  }
117
118
  /**
118
119
  * Remove all attachments from the context of a specific conversation.
@@ -300,8 +301,8 @@ class ConversationsApi extends runtime.BaseAPI {
300
301
  return await response.value();
301
302
  }
302
303
  /**
303
- * Get a custom variable from the context of a specific conversation by its ID.
304
- * Get a custom variable from the context of a conversation
304
+ * Returns all custom context variables for a conversation.
305
+ * Get conversation custom context variables
305
306
  */
306
307
  async getContextCustomVariableRaw(requestParameters, initOverrides) {
307
308
  if (requestParameters['conversationId'] == null) {
@@ -321,8 +322,8 @@ class ConversationsApi extends runtime.BaseAPI {
321
322
  return new runtime.JSONApiResponse(response);
322
323
  }
323
324
  /**
324
- * Get a custom variable from the context of a specific conversation by its ID.
325
- * Get a custom variable from the context of a conversation
325
+ * Returns all custom context variables for a conversation.
326
+ * Get conversation custom context variables
326
327
  */
327
328
  async getContextCustomVariable(conversationId, initOverrides) {
328
329
  const response = await this.getContextCustomVariableRaw({ conversationId: conversationId }, initOverrides);
@@ -0,0 +1,45 @@
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 * as runtime from '../runtime';
13
+ import type { InstanceContextPatchUio, InstanceContextUio } from '../models/index';
14
+ export interface GetInstanceContextRequest {
15
+ instanceId: string;
16
+ }
17
+ export interface PatchInstanceContextRequest {
18
+ instanceId: string;
19
+ instanceContextPatchUio: InstanceContextPatchUio;
20
+ }
21
+ /**
22
+ *
23
+ */
24
+ export declare class InstancesApi extends runtime.BaseAPI {
25
+ /**
26
+ * Returns the custom context variables for an app instance.
27
+ * Get instance context
28
+ */
29
+ getInstanceContextRaw(requestParameters: GetInstanceContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InstanceContextUio>>;
30
+ /**
31
+ * Returns the custom context variables for an app instance.
32
+ * Get instance context
33
+ */
34
+ getInstanceContext(instanceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstanceContextUio>;
35
+ /**
36
+ * Replaces the custom context variables for an app instance.
37
+ * Update instance context
38
+ */
39
+ patchInstanceContextRaw(requestParameters: PatchInstanceContextRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<InstanceContextUio>>;
40
+ /**
41
+ * Replaces the custom context variables for an app instance.
42
+ * Update instance context
43
+ */
44
+ patchInstanceContext(instanceId: string, instanceContextPatchUio: InstanceContextPatchUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<InstanceContextUio>;
45
+ }
@@ -0,0 +1,120 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.InstancesApi = void 0;
50
+ const runtime = __importStar(require("../runtime"));
51
+ const index_1 = require("../models/index");
52
+ /**
53
+ *
54
+ */
55
+ class InstancesApi extends runtime.BaseAPI {
56
+ /**
57
+ * Returns the custom context variables for an app instance.
58
+ * Get instance context
59
+ */
60
+ async getInstanceContextRaw(requestParameters, initOverrides) {
61
+ if (requestParameters['instanceId'] == null) {
62
+ throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling getInstanceContext().');
63
+ }
64
+ const queryParameters = {};
65
+ const headerParameters = {};
66
+ if (this.configuration && this.configuration.apiKey) {
67
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
68
+ }
69
+ const response = await this.request({
70
+ path: `/instances/{instanceId}/context`.replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
71
+ method: 'GET',
72
+ headers: headerParameters,
73
+ query: queryParameters,
74
+ }, initOverrides);
75
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InstanceContextUioFromJSON)(jsonValue));
76
+ }
77
+ /**
78
+ * Returns the custom context variables for an app instance.
79
+ * Get instance context
80
+ */
81
+ async getInstanceContext(instanceId, initOverrides) {
82
+ const response = await this.getInstanceContextRaw({ instanceId: instanceId }, initOverrides);
83
+ return await response.value();
84
+ }
85
+ /**
86
+ * Replaces the custom context variables for an app instance.
87
+ * Update instance context
88
+ */
89
+ async patchInstanceContextRaw(requestParameters, initOverrides) {
90
+ if (requestParameters['instanceId'] == null) {
91
+ throw new runtime.RequiredError('instanceId', 'Required parameter "instanceId" was null or undefined when calling patchInstanceContext().');
92
+ }
93
+ if (requestParameters['instanceContextPatchUio'] == null) {
94
+ throw new runtime.RequiredError('instanceContextPatchUio', 'Required parameter "instanceContextPatchUio" was null or undefined when calling patchInstanceContext().');
95
+ }
96
+ const queryParameters = {};
97
+ const headerParameters = {};
98
+ headerParameters['Content-Type'] = 'application/json';
99
+ if (this.configuration && this.configuration.apiKey) {
100
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
101
+ }
102
+ const response = await this.request({
103
+ path: `/instances/{instanceId}/context`.replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
104
+ method: 'PATCH',
105
+ headers: headerParameters,
106
+ query: queryParameters,
107
+ body: (0, index_1.InstanceContextPatchUioToJSON)(requestParameters['instanceContextPatchUio']),
108
+ }, initOverrides);
109
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.InstanceContextUioFromJSON)(jsonValue));
110
+ }
111
+ /**
112
+ * Replaces the custom context variables for an app instance.
113
+ * Update instance context
114
+ */
115
+ async patchInstanceContext(instanceId, instanceContextPatchUio, initOverrides) {
116
+ const response = await this.patchInstanceContextRaw({ instanceId: instanceId, instanceContextPatchUio: instanceContextPatchUio }, initOverrides);
117
+ return await response.value();
118
+ }
119
+ }
120
+ exports.InstancesApi = InstancesApi;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
13
+ import type { AvailableCommandUio, SkillAssignRequestUio, SkillCreateRequestUio, SkillFileCreateRequestUio, SkillFileSummaryUio, SkillFileUio, SkillFileUpdateRequestUio, SkillUio, SkillUpdateRequestUio } from '../models/index';
14
14
  export interface AssignSkillToAgentRequest {
15
15
  agentId: string;
16
16
  skillAssignRequestUio: SkillAssignRequestUio;
@@ -29,6 +29,9 @@ export interface DeleteSkillFileRequest {
29
29
  skillId: string;
30
30
  fileId: string;
31
31
  }
32
+ export interface GetAgentAvailableCommandsRequest {
33
+ agentId: string;
34
+ }
32
35
  export interface GetAgentSkillsRequest {
33
36
  agentId: string;
34
37
  }
@@ -106,6 +109,14 @@ export declare class SkillsApi extends runtime.BaseAPI {
106
109
  * Delete a skill file
107
110
  */
108
111
  deleteSkillFile(skillId: string, fileId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
112
+ /**
113
+ * Get available slash commands for an agent (predefined commands + active skills)
114
+ */
115
+ getAgentAvailableCommandsRaw(requestParameters: GetAgentAvailableCommandsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AvailableCommandUio>>>;
116
+ /**
117
+ * Get available slash commands for an agent (predefined commands + active skills)
118
+ */
119
+ getAgentAvailableCommands(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AvailableCommandUio>>;
109
120
  /**
110
121
  * Get skills assigned to an agent
111
122
  */
@@ -202,6 +202,33 @@ class SkillsApi extends runtime.BaseAPI {
202
202
  async deleteSkillFile(skillId, fileId, initOverrides) {
203
203
  await this.deleteSkillFileRaw({ skillId: skillId, fileId: fileId }, initOverrides);
204
204
  }
205
+ /**
206
+ * Get available slash commands for an agent (predefined commands + active skills)
207
+ */
208
+ async getAgentAvailableCommandsRaw(requestParameters, initOverrides) {
209
+ if (requestParameters['agentId'] == null) {
210
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentAvailableCommands().');
211
+ }
212
+ const queryParameters = {};
213
+ const headerParameters = {};
214
+ if (this.configuration && this.configuration.apiKey) {
215
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
216
+ }
217
+ const response = await this.request({
218
+ path: `/agents/{agentId}/commands`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
219
+ method: 'GET',
220
+ headers: headerParameters,
221
+ query: queryParameters,
222
+ }, initOverrides);
223
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AvailableCommandUioFromJSON));
224
+ }
225
+ /**
226
+ * Get available slash commands for an agent (predefined commands + active skills)
227
+ */
228
+ async getAgentAvailableCommands(agentId, initOverrides) {
229
+ const response = await this.getAgentAvailableCommandsRaw({ agentId: agentId }, initOverrides);
230
+ return await response.value();
231
+ }
205
232
  /**
206
233
  * Get skills assigned to an agent
207
234
  */
@@ -9,6 +9,7 @@ export * from './EngineApi';
9
9
  export * from './FilesApi';
10
10
  export * from './GeneralApi';
11
11
  export * from './GuardiansApi';
12
+ export * from './InstancesApi';
12
13
  export * from './KnowledgeApi';
13
14
  export * from './ManifestsApi';
14
15
  export * from './MetricsApi';
@@ -27,6 +27,7 @@ __exportStar(require("./EngineApi"), exports);
27
27
  __exportStar(require("./FilesApi"), exports);
28
28
  __exportStar(require("./GeneralApi"), exports);
29
29
  __exportStar(require("./GuardiansApi"), exports);
30
+ __exportStar(require("./InstancesApi"), exports);
30
31
  __exportStar(require("./KnowledgeApi"), exports);
31
32
  __exportStar(require("./ManifestsApi"), exports);
32
33
  __exportStar(require("./MetricsApi"), exports);
@@ -0,0 +1,52 @@
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 AvailableCommandUio
16
+ */
17
+ export interface AvailableCommandUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AvailableCommandUio
22
+ */
23
+ slug: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AvailableCommandUio
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AvailableCommandUio
34
+ */
35
+ source: AvailableCommandUioSourceEnum;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const AvailableCommandUioSourceEnum: {
41
+ readonly Predefined: "predefined";
42
+ readonly Skill: "skill";
43
+ };
44
+ export type AvailableCommandUioSourceEnum = typeof AvailableCommandUioSourceEnum[keyof typeof AvailableCommandUioSourceEnum];
45
+ /**
46
+ * Check if a given object implements the AvailableCommandUio interface.
47
+ */
48
+ export declare function instanceOfAvailableCommandUio(value: object): value is AvailableCommandUio;
49
+ export declare function AvailableCommandUioFromJSON(json: any): AvailableCommandUio;
50
+ export declare function AvailableCommandUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailableCommandUio;
51
+ export declare function AvailableCommandUioToJSON(json: any): AvailableCommandUio;
52
+ export declare function AvailableCommandUioToJSONTyped(value?: AvailableCommandUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.AvailableCommandUioSourceEnum = void 0;
17
+ exports.instanceOfAvailableCommandUio = instanceOfAvailableCommandUio;
18
+ exports.AvailableCommandUioFromJSON = AvailableCommandUioFromJSON;
19
+ exports.AvailableCommandUioFromJSONTyped = AvailableCommandUioFromJSONTyped;
20
+ exports.AvailableCommandUioToJSON = AvailableCommandUioToJSON;
21
+ exports.AvailableCommandUioToJSONTyped = AvailableCommandUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AvailableCommandUioSourceEnum = {
26
+ Predefined: 'predefined',
27
+ Skill: 'skill'
28
+ };
29
+ /**
30
+ * Check if a given object implements the AvailableCommandUio interface.
31
+ */
32
+ function instanceOfAvailableCommandUio(value) {
33
+ if (!('slug' in value) || value['slug'] === undefined)
34
+ return false;
35
+ if (!('description' in value) || value['description'] === undefined)
36
+ return false;
37
+ if (!('source' in value) || value['source'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function AvailableCommandUioFromJSON(json) {
42
+ return AvailableCommandUioFromJSONTyped(json, false);
43
+ }
44
+ function AvailableCommandUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'slug': json['slug'],
50
+ 'description': json['description'],
51
+ 'source': json['source'],
52
+ };
53
+ }
54
+ function AvailableCommandUioToJSON(json) {
55
+ return AvailableCommandUioToJSONTyped(json, false);
56
+ }
57
+ function AvailableCommandUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'slug': value['slug'],
63
+ 'description': value['description'],
64
+ 'source': value['source'],
65
+ };
66
+ }
@@ -12,6 +12,7 @@
12
12
  import type { ConversationMessagesInnerUio } from './ConversationMessagesInnerUio';
13
13
  import type { ConversationMetricsInnerUio } from './ConversationMetricsInnerUio';
14
14
  import type { TokenUsageUio } from './TokenUsageUio';
15
+ import type { ChatContextUio } from './ChatContextUio';
15
16
  /**
16
17
  *
17
18
  * @export
@@ -80,6 +81,24 @@ export interface ConversationUio {
80
81
  cost?: {
81
82
  [key: string]: number;
82
83
  };
84
+ /**
85
+ *
86
+ * @type {string}
87
+ * @memberof ConversationUio
88
+ */
89
+ appId?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof ConversationUio
94
+ */
95
+ instanceId?: string;
96
+ /**
97
+ *
98
+ * @type {ChatContextUio}
99
+ * @memberof ConversationUio
100
+ */
101
+ context?: ChatContextUio;
83
102
  /**
84
103
  *
85
104
  * @type {string}
@@ -21,6 +21,7 @@ exports.ConversationUioToJSONTyped = ConversationUioToJSONTyped;
21
21
  const ConversationMessagesInnerUio_1 = require("./ConversationMessagesInnerUio");
22
22
  const ConversationMetricsInnerUio_1 = require("./ConversationMetricsInnerUio");
23
23
  const TokenUsageUio_1 = require("./TokenUsageUio");
24
+ const ChatContextUio_1 = require("./ChatContextUio");
24
25
  /**
25
26
  * Check if a given object implements the ConversationUio interface.
26
27
  */
@@ -55,6 +56,9 @@ function ConversationUioFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'usage': json['usage'] == null ? undefined : (0, TokenUsageUio_1.TokenUsageUioFromJSON)(json['usage']),
56
57
  'metrics': json['metrics'] == null ? undefined : (json['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioFromJSON)),
57
58
  'cost': json['cost'] == null ? undefined : json['cost'],
59
+ 'appId': json['appId'] == null ? undefined : json['appId'],
60
+ 'instanceId': json['instanceId'] == null ? undefined : json['instanceId'],
61
+ 'context': json['context'] == null ? undefined : (0, ChatContextUio_1.ChatContextUioFromJSON)(json['context']),
58
62
  'createdAt': json['createdAt'],
59
63
  'updatedAt': json['updatedAt'],
60
64
  };
@@ -77,6 +81,9 @@ function ConversationUioToJSONTyped(value, ignoreDiscriminator = false) {
77
81
  'usage': (0, TokenUsageUio_1.TokenUsageUioToJSON)(value['usage']),
78
82
  'metrics': value['metrics'] == null ? undefined : (value['metrics'].map(ConversationMetricsInnerUio_1.ConversationMetricsInnerUioToJSON)),
79
83
  'cost': value['cost'],
84
+ 'appId': value['appId'],
85
+ 'instanceId': value['instanceId'],
86
+ 'context': (0, ChatContextUio_1.ChatContextUioToJSON)(value['context']),
80
87
  'createdAt': value['createdAt'],
81
88
  'updatedAt': value['updatedAt'],
82
89
  };
@@ -0,0 +1,40 @@
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 CreateCustomVariable200ResponseUio
16
+ */
17
+ export interface CreateCustomVariable200ResponseUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateCustomVariable200ResponseUio
22
+ */
23
+ message: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof CreateCustomVariable200ResponseUio
28
+ */
29
+ custom: {
30
+ [key: string]: string;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the CreateCustomVariable200ResponseUio interface.
35
+ */
36
+ export declare function instanceOfCreateCustomVariable200ResponseUio(value: object): value is CreateCustomVariable200ResponseUio;
37
+ export declare function CreateCustomVariable200ResponseUioFromJSON(json: any): CreateCustomVariable200ResponseUio;
38
+ export declare function CreateCustomVariable200ResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomVariable200ResponseUio;
39
+ export declare function CreateCustomVariable200ResponseUioToJSON(json: any): CreateCustomVariable200ResponseUio;
40
+ export declare function CreateCustomVariable200ResponseUioToJSONTyped(value?: CreateCustomVariable200ResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfCreateCustomVariable200ResponseUio = instanceOfCreateCustomVariable200ResponseUio;
17
+ exports.CreateCustomVariable200ResponseUioFromJSON = CreateCustomVariable200ResponseUioFromJSON;
18
+ exports.CreateCustomVariable200ResponseUioFromJSONTyped = CreateCustomVariable200ResponseUioFromJSONTyped;
19
+ exports.CreateCustomVariable200ResponseUioToJSON = CreateCustomVariable200ResponseUioToJSON;
20
+ exports.CreateCustomVariable200ResponseUioToJSONTyped = CreateCustomVariable200ResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateCustomVariable200ResponseUio interface.
23
+ */
24
+ function instanceOfCreateCustomVariable200ResponseUio(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ if (!('custom' in value) || value['custom'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreateCustomVariable200ResponseUioFromJSON(json) {
32
+ return CreateCustomVariable200ResponseUioFromJSONTyped(json, false);
33
+ }
34
+ function CreateCustomVariable200ResponseUioFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'message': json['message'],
40
+ 'custom': json['custom'],
41
+ };
42
+ }
43
+ function CreateCustomVariable200ResponseUioToJSON(json) {
44
+ return CreateCustomVariable200ResponseUioToJSONTyped(json, false);
45
+ }
46
+ function CreateCustomVariable200ResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'message': value['message'],
52
+ 'custom': value['custom'],
53
+ };
54
+ }
@@ -0,0 +1,34 @@
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 InstanceContextPatchUio
16
+ */
17
+ export interface InstanceContextPatchUio {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof InstanceContextPatchUio
22
+ */
23
+ custom: {
24
+ [key: string]: string;
25
+ };
26
+ }
27
+ /**
28
+ * Check if a given object implements the InstanceContextPatchUio interface.
29
+ */
30
+ export declare function instanceOfInstanceContextPatchUio(value: object): value is InstanceContextPatchUio;
31
+ export declare function InstanceContextPatchUioFromJSON(json: any): InstanceContextPatchUio;
32
+ export declare function InstanceContextPatchUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstanceContextPatchUio;
33
+ export declare function InstanceContextPatchUioToJSON(json: any): InstanceContextPatchUio;
34
+ export declare function InstanceContextPatchUioToJSONTyped(value?: InstanceContextPatchUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfInstanceContextPatchUio = instanceOfInstanceContextPatchUio;
17
+ exports.InstanceContextPatchUioFromJSON = InstanceContextPatchUioFromJSON;
18
+ exports.InstanceContextPatchUioFromJSONTyped = InstanceContextPatchUioFromJSONTyped;
19
+ exports.InstanceContextPatchUioToJSON = InstanceContextPatchUioToJSON;
20
+ exports.InstanceContextPatchUioToJSONTyped = InstanceContextPatchUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InstanceContextPatchUio interface.
23
+ */
24
+ function instanceOfInstanceContextPatchUio(value) {
25
+ if (!('custom' in value) || value['custom'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function InstanceContextPatchUioFromJSON(json) {
30
+ return InstanceContextPatchUioFromJSONTyped(json, false);
31
+ }
32
+ function InstanceContextPatchUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'custom': json['custom'],
38
+ };
39
+ }
40
+ function InstanceContextPatchUioToJSON(json) {
41
+ return InstanceContextPatchUioToJSONTyped(json, false);
42
+ }
43
+ function InstanceContextPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'custom': value['custom'],
49
+ };
50
+ }
@@ -0,0 +1,34 @@
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 InstanceContextUio
16
+ */
17
+ export interface InstanceContextUio {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: string; }}
21
+ * @memberof InstanceContextUio
22
+ */
23
+ custom?: {
24
+ [key: string]: string;
25
+ };
26
+ }
27
+ /**
28
+ * Check if a given object implements the InstanceContextUio interface.
29
+ */
30
+ export declare function instanceOfInstanceContextUio(value: object): value is InstanceContextUio;
31
+ export declare function InstanceContextUioFromJSON(json: any): InstanceContextUio;
32
+ export declare function InstanceContextUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstanceContextUio;
33
+ export declare function InstanceContextUioToJSON(json: any): InstanceContextUio;
34
+ export declare function InstanceContextUioToJSONTyped(value?: InstanceContextUio | 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.instanceOfInstanceContextUio = instanceOfInstanceContextUio;
17
+ exports.InstanceContextUioFromJSON = InstanceContextUioFromJSON;
18
+ exports.InstanceContextUioFromJSONTyped = InstanceContextUioFromJSONTyped;
19
+ exports.InstanceContextUioToJSON = InstanceContextUioToJSON;
20
+ exports.InstanceContextUioToJSONTyped = InstanceContextUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the InstanceContextUio interface.
23
+ */
24
+ function instanceOfInstanceContextUio(value) {
25
+ return true;
26
+ }
27
+ function InstanceContextUioFromJSON(json) {
28
+ return InstanceContextUioFromJSONTyped(json, false);
29
+ }
30
+ function InstanceContextUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'custom': json['custom'] == null ? undefined : json['custom'],
36
+ };
37
+ }
38
+ function InstanceContextUioToJSON(json) {
39
+ return InstanceContextUioToJSONTyped(json, false);
40
+ }
41
+ function InstanceContextUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'custom': value['custom'],
47
+ };
48
+ }
@@ -79,6 +79,7 @@ export * from './AuthCodeConfirmResponseUio';
79
79
  export * from './AuthCodeRequestUio';
80
80
  export * from './AuthCodeRequestUserUio';
81
81
  export * from './AuthCodeResponseUio';
82
+ export * from './AvailableCommandUio';
82
83
  export * from './BodyWithIdUio';
83
84
  export * from './BodyWithMessageUio';
84
85
  export * from './ChatContextAttachmentUio';
@@ -117,6 +118,7 @@ export * from './ConversationSummaryAgentUio';
117
118
  export * from './ConversationSummaryUio';
118
119
  export * from './ConversationUio';
119
120
  export * from './CostMetricUio';
121
+ export * from './CreateCustomVariable200ResponseUio';
120
122
  export * from './DefaultClientPricesUio';
121
123
  export * from './DefaultEngineRequestUio';
122
124
  export * from './DeleteMessageAudio200ResponseUio';
@@ -173,6 +175,8 @@ export * from './ImageAttachmentUploadResponseUio';
173
175
  export * from './ImageKnowledgeUio';
174
176
  export * from './ImportFileToAgentKnowledge200ResponseUio';
175
177
  export * from './InputUio';
178
+ export * from './InstanceContextPatchUio';
179
+ export * from './InstanceContextUio';
176
180
  export * from './InstanceUio';
177
181
  export * from './IntrospectMcpTool200ResponseUio';
178
182
  export * from './KnowledgeBaseConfigurationAuthenticationOneOfUio';
@@ -97,6 +97,7 @@ __exportStar(require("./AuthCodeConfirmResponseUio"), exports);
97
97
  __exportStar(require("./AuthCodeRequestUio"), exports);
98
98
  __exportStar(require("./AuthCodeRequestUserUio"), exports);
99
99
  __exportStar(require("./AuthCodeResponseUio"), exports);
100
+ __exportStar(require("./AvailableCommandUio"), exports);
100
101
  __exportStar(require("./BodyWithIdUio"), exports);
101
102
  __exportStar(require("./BodyWithMessageUio"), exports);
102
103
  __exportStar(require("./ChatContextAttachmentUio"), exports);
@@ -135,6 +136,7 @@ __exportStar(require("./ConversationSummaryAgentUio"), exports);
135
136
  __exportStar(require("./ConversationSummaryUio"), exports);
136
137
  __exportStar(require("./ConversationUio"), exports);
137
138
  __exportStar(require("./CostMetricUio"), exports);
139
+ __exportStar(require("./CreateCustomVariable200ResponseUio"), exports);
138
140
  __exportStar(require("./DefaultClientPricesUio"), exports);
139
141
  __exportStar(require("./DefaultEngineRequestUio"), exports);
140
142
  __exportStar(require("./DeleteMessageAudio200ResponseUio"), exports);
@@ -191,6 +193,8 @@ __exportStar(require("./ImageAttachmentUploadResponseUio"), exports);
191
193
  __exportStar(require("./ImageKnowledgeUio"), exports);
192
194
  __exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
193
195
  __exportStar(require("./InputUio"), exports);
196
+ __exportStar(require("./InstanceContextPatchUio"), exports);
197
+ __exportStar(require("./InstanceContextUio"), exports);
194
198
  __exportStar(require("./InstanceUio"), exports);
195
199
  __exportStar(require("./IntrospectMcpTool200ResponseUio"), exports);
196
200
  __exportStar(require("./KnowledgeBaseConfigurationAuthenticationOneOfUio"), exports);
package/dist/openapi.json CHANGED
@@ -3252,6 +3252,99 @@
3252
3252
  "tags" : [ "app" ]
3253
3253
  }
3254
3254
  },
3255
+ "/instances/{instanceId}/context" : {
3256
+ "get" : {
3257
+ "description" : "Returns the custom context variables for an app instance.",
3258
+ "operationId" : "getInstanceContext",
3259
+ "parameters" : [ {
3260
+ "description" : "Instance identifier",
3261
+ "in" : "path",
3262
+ "name" : "instanceId",
3263
+ "required" : true,
3264
+ "schema" : {
3265
+ "type" : "string"
3266
+ }
3267
+ } ],
3268
+ "responses" : {
3269
+ "200" : {
3270
+ "content" : {
3271
+ "application/json" : {
3272
+ "schema" : {
3273
+ "$ref" : "#/components/schemas/InstanceContext"
3274
+ }
3275
+ }
3276
+ },
3277
+ "description" : "Instance context"
3278
+ },
3279
+ "401" : {
3280
+ "description" : "Unauthorized"
3281
+ },
3282
+ "403" : {
3283
+ "description" : "Forbidden"
3284
+ },
3285
+ "404" : {
3286
+ "description" : "Instance not found"
3287
+ },
3288
+ "500" : {
3289
+ "description" : "Server error"
3290
+ }
3291
+ },
3292
+ "summary" : "Get instance context",
3293
+ "tags" : [ "instances" ]
3294
+ },
3295
+ "patch" : {
3296
+ "description" : "Replaces the custom context variables for an app instance.",
3297
+ "operationId" : "patchInstanceContext",
3298
+ "parameters" : [ {
3299
+ "description" : "Instance identifier",
3300
+ "in" : "path",
3301
+ "name" : "instanceId",
3302
+ "required" : true,
3303
+ "schema" : {
3304
+ "type" : "string"
3305
+ }
3306
+ } ],
3307
+ "requestBody" : {
3308
+ "content" : {
3309
+ "application/json" : {
3310
+ "schema" : {
3311
+ "$ref" : "#/components/schemas/InstanceContextPatch"
3312
+ }
3313
+ }
3314
+ },
3315
+ "required" : true
3316
+ },
3317
+ "responses" : {
3318
+ "200" : {
3319
+ "content" : {
3320
+ "application/json" : {
3321
+ "schema" : {
3322
+ "$ref" : "#/components/schemas/InstanceContext"
3323
+ }
3324
+ }
3325
+ },
3326
+ "description" : "Updated instance context"
3327
+ },
3328
+ "400" : {
3329
+ "description" : "Invalid request body"
3330
+ },
3331
+ "401" : {
3332
+ "description" : "Unauthorized"
3333
+ },
3334
+ "403" : {
3335
+ "description" : "Forbidden"
3336
+ },
3337
+ "404" : {
3338
+ "description" : "Instance not found"
3339
+ },
3340
+ "500" : {
3341
+ "description" : "Server error"
3342
+ }
3343
+ },
3344
+ "summary" : "Update instance context",
3345
+ "tags" : [ "instances" ]
3346
+ }
3347
+ },
3255
3348
  "/apps/{appId}/configuration/{property}" : {
3256
3349
  "get" : {
3257
3350
  "description" : "Get app configuration property",
@@ -4157,7 +4250,7 @@
4157
4250
  },
4158
4251
  "/conversations/{conversationId}/context/custom" : {
4159
4252
  "get" : {
4160
- "description" : "Get a custom variable from the context of a specific conversation by its ID.",
4253
+ "description" : "Returns all custom context variables for a conversation.",
4161
4254
  "operationId" : "getContextCustomVariable",
4162
4255
  "parameters" : [ {
4163
4256
  "description" : "The ID of the conversation",
@@ -4180,7 +4273,7 @@
4180
4273
  }
4181
4274
  }
4182
4275
  },
4183
- "description" : "Successfully retrieved the custom variable from the context of the conversation."
4276
+ "description" : "Custom context variables for the conversation."
4184
4277
  },
4185
4278
  "401" : {
4186
4279
  "description" : "Unauthorized"
@@ -4195,11 +4288,11 @@
4195
4288
  "description" : "Server error"
4196
4289
  }
4197
4290
  },
4198
- "summary" : "Get a custom variable from the context of a conversation",
4291
+ "summary" : "Get conversation custom context variables",
4199
4292
  "tags" : [ "conversations" ]
4200
4293
  },
4201
4294
  "post" : {
4202
- "description" : "Create a custom variable in the context of a specific conversation by its ID.",
4295
+ "description" : "Replaces the full set of custom context variables for a conversation. Omitted keys are removed.",
4203
4296
  "operationId" : "createCustomVariable",
4204
4297
  "parameters" : [ {
4205
4298
  "description" : "The ID of the conversation",
@@ -4225,7 +4318,17 @@
4225
4318
  },
4226
4319
  "responses" : {
4227
4320
  "200" : {
4228
- "description" : "Successfully created the custom variable in the context of the conversation."
4321
+ "content" : {
4322
+ "application/json" : {
4323
+ "schema" : {
4324
+ "$ref" : "#/components/schemas/createCustomVariable_200_response"
4325
+ }
4326
+ }
4327
+ },
4328
+ "description" : "Custom context variables replaced successfully."
4329
+ },
4330
+ "400" : {
4331
+ "description" : "Invalid custom context keys or values"
4229
4332
  },
4230
4333
  "401" : {
4231
4334
  "description" : "Unauthorized"
@@ -4240,7 +4343,7 @@
4240
4343
  "description" : "Server error"
4241
4344
  }
4242
4345
  },
4243
- "summary" : "Create a custom variable in the context of a conversation",
4346
+ "summary" : "Replace conversation custom context variables",
4244
4347
  "tags" : [ "conversations" ]
4245
4348
  }
4246
4349
  },
@@ -9125,6 +9228,47 @@
9125
9228
  "tags" : [ "skills" ]
9126
9229
  }
9127
9230
  },
9231
+ "/agents/{agentId}/commands" : {
9232
+ "get" : {
9233
+ "operationId" : "getAgentAvailableCommands",
9234
+ "parameters" : [ {
9235
+ "description" : "ID of the agent",
9236
+ "in" : "path",
9237
+ "name" : "agentId",
9238
+ "required" : true,
9239
+ "schema" : {
9240
+ "format" : "uuid",
9241
+ "type" : "string"
9242
+ }
9243
+ } ],
9244
+ "responses" : {
9245
+ "200" : {
9246
+ "content" : {
9247
+ "application/json" : {
9248
+ "schema" : {
9249
+ "items" : {
9250
+ "$ref" : "#/components/schemas/AvailableCommand"
9251
+ },
9252
+ "type" : "array"
9253
+ }
9254
+ }
9255
+ },
9256
+ "description" : "List of available commands for the agent"
9257
+ },
9258
+ "401" : {
9259
+ "description" : "Unauthorized"
9260
+ },
9261
+ "403" : {
9262
+ "description" : "Forbidden"
9263
+ },
9264
+ "404" : {
9265
+ "description" : "AGENT_NOT_FOUND"
9266
+ }
9267
+ },
9268
+ "summary" : "Get available slash commands for an agent (predefined commands + active skills)",
9269
+ "tags" : [ "skills" ]
9270
+ }
9271
+ },
9128
9272
  "/agents/{agentId}/skills/{skillId}" : {
9129
9273
  "delete" : {
9130
9274
  "operationId" : "unassignSkillFromAgent",
@@ -10002,6 +10146,15 @@
10002
10146
  "type" : "string"
10003
10147
  }
10004
10148
  },
10149
+ "instanceIdPath" : {
10150
+ "description" : "Instance identifier",
10151
+ "in" : "path",
10152
+ "name" : "instanceId",
10153
+ "required" : true,
10154
+ "schema" : {
10155
+ "type" : "string"
10156
+ }
10157
+ },
10005
10158
  "propertyPath" : {
10006
10159
  "description" : "Property to retrieve",
10007
10160
  "in" : "path",
@@ -12671,6 +12824,31 @@
12671
12824
  "required" : [ "ephemeral", "name" ],
12672
12825
  "type" : "object"
12673
12826
  },
12827
+ "InstanceContext" : {
12828
+ "additionalProperties" : false,
12829
+ "properties" : {
12830
+ "custom" : {
12831
+ "additionalProperties" : {
12832
+ "type" : "string"
12833
+ },
12834
+ "type" : "object"
12835
+ }
12836
+ },
12837
+ "type" : "object"
12838
+ },
12839
+ "InstanceContextPatch" : {
12840
+ "additionalProperties" : false,
12841
+ "properties" : {
12842
+ "custom" : {
12843
+ "additionalProperties" : {
12844
+ "type" : "string"
12845
+ },
12846
+ "type" : "object"
12847
+ }
12848
+ },
12849
+ "required" : [ "custom" ],
12850
+ "type" : "object"
12851
+ },
12674
12852
  "AnimationCreateRequest" : {
12675
12853
  "properties" : {
12676
12854
  "category" : {
@@ -12758,6 +12936,15 @@
12758
12936
  },
12759
12937
  "type" : "object"
12760
12938
  },
12939
+ "appId" : {
12940
+ "type" : "string"
12941
+ },
12942
+ "instanceId" : {
12943
+ "type" : "string"
12944
+ },
12945
+ "context" : {
12946
+ "$ref" : "#/components/schemas/ChatContext"
12947
+ },
12761
12948
  "createdAt" : {
12762
12949
  "type" : "string"
12763
12950
  },
@@ -14649,6 +14836,22 @@
14649
14836
  "required" : [ "skill_id" ],
14650
14837
  "type" : "object"
14651
14838
  },
14839
+ "AvailableCommand" : {
14840
+ "properties" : {
14841
+ "slug" : {
14842
+ "type" : "string"
14843
+ },
14844
+ "description" : {
14845
+ "type" : "string"
14846
+ },
14847
+ "source" : {
14848
+ "enum" : [ "predefined", "skill" ],
14849
+ "type" : "string"
14850
+ }
14851
+ },
14852
+ "required" : [ "description", "slug", "source" ],
14853
+ "type" : "object"
14854
+ },
14652
14855
  "PinRequest" : {
14653
14856
  "properties" : {
14654
14857
  "user" : {
@@ -15054,6 +15257,21 @@
15054
15257
  "required" : [ "conversationAttachmentMaxBytes" ],
15055
15258
  "type" : "object"
15056
15259
  },
15260
+ "createCustomVariable_200_response" : {
15261
+ "properties" : {
15262
+ "message" : {
15263
+ "type" : "string"
15264
+ },
15265
+ "custom" : {
15266
+ "additionalProperties" : {
15267
+ "type" : "string"
15268
+ },
15269
+ "type" : "object"
15270
+ }
15271
+ },
15272
+ "required" : [ "custom", "message" ],
15273
+ "type" : "object"
15274
+ },
15057
15275
  "updateConversationTitle_request" : {
15058
15276
  "properties" : {
15059
15277
  "title" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.107",
3
+ "version": "1.0.109",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",