@breign/client 1.0.37 → 1.0.39

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.
@@ -22,6 +22,7 @@ export interface CreateConversationWithFlowManagementRequest {
22
22
  export interface CreatePromptRequest {
23
23
  agentId: string;
24
24
  promptCreateRequestUio: PromptCreateRequestUio;
25
+ async?: boolean;
25
26
  }
26
27
  export interface GetConversationByIdRequest {
27
28
  conversationId: string;
@@ -33,6 +34,7 @@ export interface GetMessageByIdRequest {
33
34
  export interface SendMessageToConversationRequest {
34
35
  conversationId: string;
35
36
  messageUio: MessageUio;
37
+ async?: boolean;
36
38
  }
37
39
  /**
38
40
  *
@@ -67,7 +69,7 @@ export declare class PromptsApi extends runtime.BaseAPI {
67
69
  * Starts a new conversation session for the specified agent
68
70
  * Create a new prompt
69
71
  */
70
- createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
72
+ createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
71
73
  /**
72
74
  * Retrieves details of a specific conversation including all messages
73
75
  * Get a conversation by ID
@@ -97,5 +99,5 @@ export declare class PromptsApi extends runtime.BaseAPI {
97
99
  * Adds a new message to an existing conversation and gets the AI response
98
100
  * Send a message to an existing conversation
99
101
  */
100
- sendMessageToConversation(conversationId: string, messageUio: MessageUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
102
+ sendMessageToConversation(conversationId: string, messageUio: MessageUio, async?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
101
103
  }
@@ -133,6 +133,9 @@ class PromptsApi extends runtime.BaseAPI {
133
133
  throw new runtime.RequiredError('promptCreateRequestUio', 'Required parameter "promptCreateRequestUio" was null or undefined when calling createPrompt().');
134
134
  }
135
135
  const queryParameters = {};
136
+ if (requestParameters['async'] != null) {
137
+ queryParameters['async'] = requestParameters['async'];
138
+ }
136
139
  const headerParameters = {};
137
140
  headerParameters['Content-Type'] = 'application/json';
138
141
  if (this.configuration && this.configuration.apiKey) {
@@ -151,8 +154,8 @@ class PromptsApi extends runtime.BaseAPI {
151
154
  * Starts a new conversation session for the specified agent
152
155
  * Create a new prompt
153
156
  */
154
- async createPrompt(agentId, promptCreateRequestUio, initOverrides) {
155
- const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio }, initOverrides);
157
+ async createPrompt(agentId, promptCreateRequestUio, async, initOverrides) {
158
+ const response = await this.createPromptRaw({ agentId: agentId, promptCreateRequestUio: promptCreateRequestUio, async: async }, initOverrides);
156
159
  return await response.value();
157
160
  }
158
161
  /**
@@ -228,6 +231,9 @@ class PromptsApi extends runtime.BaseAPI {
228
231
  throw new runtime.RequiredError('messageUio', 'Required parameter "messageUio" was null or undefined when calling sendMessageToConversation().');
229
232
  }
230
233
  const queryParameters = {};
234
+ if (requestParameters['async'] != null) {
235
+ queryParameters['async'] = requestParameters['async'];
236
+ }
231
237
  const headerParameters = {};
232
238
  headerParameters['Content-Type'] = 'application/json';
233
239
  if (this.configuration && this.configuration.apiKey) {
@@ -246,8 +252,8 @@ class PromptsApi extends runtime.BaseAPI {
246
252
  * Adds a new message to an existing conversation and gets the AI response
247
253
  * Send a message to an existing conversation
248
254
  */
249
- async sendMessageToConversation(conversationId, messageUio, initOverrides) {
250
- const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio }, initOverrides);
255
+ async sendMessageToConversation(conversationId, messageUio, async, initOverrides) {
256
+ const response = await this.sendMessageToConversationRaw({ conversationId: conversationId, messageUio: messageUio, async: async }, initOverrides);
251
257
  return await response.value();
252
258
  }
253
259
  }
@@ -0,0 +1,39 @@
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 type { AgentCreatorUserUio } from './AgentCreatorUserUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AgentCreatorUio
17
+ */
18
+ export interface AgentCreatorUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AgentCreatorUio
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {AgentCreatorUserUio}
28
+ * @memberof AgentCreatorUio
29
+ */
30
+ user?: AgentCreatorUserUio;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AgentCreatorUio interface.
34
+ */
35
+ export declare function instanceOfAgentCreatorUio(value: object): value is AgentCreatorUio;
36
+ export declare function AgentCreatorUioFromJSON(json: any): AgentCreatorUio;
37
+ export declare function AgentCreatorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCreatorUio;
38
+ export declare function AgentCreatorUioToJSON(json: any): AgentCreatorUio;
39
+ export declare function AgentCreatorUioToJSONTyped(value?: AgentCreatorUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfAgentCreatorUio = instanceOfAgentCreatorUio;
17
+ exports.AgentCreatorUioFromJSON = AgentCreatorUioFromJSON;
18
+ exports.AgentCreatorUioFromJSONTyped = AgentCreatorUioFromJSONTyped;
19
+ exports.AgentCreatorUioToJSON = AgentCreatorUioToJSON;
20
+ exports.AgentCreatorUioToJSONTyped = AgentCreatorUioToJSONTyped;
21
+ const AgentCreatorUserUio_1 = require("./AgentCreatorUserUio");
22
+ /**
23
+ * Check if a given object implements the AgentCreatorUio interface.
24
+ */
25
+ function instanceOfAgentCreatorUio(value) {
26
+ return true;
27
+ }
28
+ function AgentCreatorUioFromJSON(json) {
29
+ return AgentCreatorUioFromJSONTyped(json, false);
30
+ }
31
+ function AgentCreatorUioFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ 'user': json['user'] == null ? undefined : (0, AgentCreatorUserUio_1.AgentCreatorUserUioFromJSON)(json['user']),
38
+ };
39
+ }
40
+ function AgentCreatorUioToJSON(json) {
41
+ return AgentCreatorUioToJSONTyped(json, false);
42
+ }
43
+ function AgentCreatorUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'id': value['id'],
49
+ 'user': (0, AgentCreatorUserUio_1.AgentCreatorUserUioToJSON)(value['user']),
50
+ };
51
+ }
@@ -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
+ *
14
+ * @export
15
+ * @interface AgentCreatorUserUio
16
+ */
17
+ export interface AgentCreatorUserUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentCreatorUserUio
22
+ */
23
+ name?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AgentCreatorUserUio interface.
27
+ */
28
+ export declare function instanceOfAgentCreatorUserUio(value: object): value is AgentCreatorUserUio;
29
+ export declare function AgentCreatorUserUioFromJSON(json: any): AgentCreatorUserUio;
30
+ export declare function AgentCreatorUserUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentCreatorUserUio;
31
+ export declare function AgentCreatorUserUioToJSON(json: any): AgentCreatorUserUio;
32
+ export declare function AgentCreatorUserUioToJSONTyped(value?: AgentCreatorUserUio | 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.instanceOfAgentCreatorUserUio = instanceOfAgentCreatorUserUio;
17
+ exports.AgentCreatorUserUioFromJSON = AgentCreatorUserUioFromJSON;
18
+ exports.AgentCreatorUserUioFromJSONTyped = AgentCreatorUserUioFromJSONTyped;
19
+ exports.AgentCreatorUserUioToJSON = AgentCreatorUserUioToJSON;
20
+ exports.AgentCreatorUserUioToJSONTyped = AgentCreatorUserUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentCreatorUserUio interface.
23
+ */
24
+ function instanceOfAgentCreatorUserUio(value) {
25
+ return true;
26
+ }
27
+ function AgentCreatorUserUioFromJSON(json) {
28
+ return AgentCreatorUserUioFromJSONTyped(json, false);
29
+ }
30
+ function AgentCreatorUserUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ };
37
+ }
38
+ function AgentCreatorUserUioToJSON(json) {
39
+ return AgentCreatorUserUioToJSONTyped(json, false);
40
+ }
41
+ function AgentCreatorUserUioToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -12,6 +12,7 @@
12
12
  import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
13
13
  import type { AgentToolUio } from './AgentToolUio';
14
14
  import type { PersonaUio } from './PersonaUio';
15
+ import type { AgentCreatorUio } from './AgentCreatorUio';
15
16
  import type { EngineUio } from './EngineUio';
16
17
  import type { PromptInitUio } from './PromptInitUio';
17
18
  import type { AgentTypeUio } from './AgentTypeUio';
@@ -195,6 +196,12 @@ export interface AgentUio {
195
196
  * @memberof AgentUio
196
197
  */
197
198
  createdBy?: string;
199
+ /**
200
+ *
201
+ * @type {AgentCreatorUio}
202
+ * @memberof AgentUio
203
+ */
204
+ creator?: AgentCreatorUio;
198
205
  }
199
206
  /**
200
207
  * Check if a given object implements the AgentUio interface.
@@ -21,6 +21,7 @@ exports.AgentUioToJSONTyped = AgentUioToJSONTyped;
21
21
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
22
22
  const AgentToolUio_1 = require("./AgentToolUio");
23
23
  const PersonaUio_1 = require("./PersonaUio");
24
+ const AgentCreatorUio_1 = require("./AgentCreatorUio");
24
25
  const EngineUio_1 = require("./EngineUio");
25
26
  const PromptInitUio_1 = require("./PromptInitUio");
26
27
  const AgentTypeUio_1 = require("./AgentTypeUio");
@@ -78,6 +79,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
78
79
  'favoriteOutfit': json['favoriteOutfit'] == null ? undefined : json['favoriteOutfit'],
79
80
  'personal': json['personal'] == null ? undefined : json['personal'],
80
81
  'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
82
+ 'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
81
83
  };
82
84
  }
83
85
  function AgentUioToJSON(json) {
@@ -116,5 +118,6 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
116
118
  'favoriteOutfit': value['favoriteOutfit'],
117
119
  'personal': value['personal'],
118
120
  'createdBy': value['createdBy'],
121
+ 'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
119
122
  };
120
123
  }
@@ -1,4 +1,6 @@
1
1
  export * from './AdditionalUio';
2
+ export * from './AgentCreatorUio';
3
+ export * from './AgentCreatorUserUio';
2
4
  export * from './AgentDuplicateRequestUio';
3
5
  export * from './AgentFlowCreateUio';
4
6
  export * from './AgentFlowUio';
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AdditionalUio"), exports);
20
+ __exportStar(require("./AgentCreatorUio"), exports);
21
+ __exportStar(require("./AgentCreatorUserUio"), exports);
20
22
  __exportStar(require("./AgentDuplicateRequestUio"), exports);
21
23
  __exportStar(require("./AgentFlowCreateUio"), exports);
22
24
  __exportStar(require("./AgentFlowUio"), exports);
package/dist/openapi.json CHANGED
@@ -5467,6 +5467,14 @@
5467
5467
  "format" : "uuid",
5468
5468
  "type" : "string"
5469
5469
  }
5470
+ }, {
5471
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5472
+ "in" : "query",
5473
+ "name" : "async",
5474
+ "required" : false,
5475
+ "schema" : {
5476
+ "type" : "boolean"
5477
+ }
5470
5478
  } ],
5471
5479
  "requestBody" : {
5472
5480
  "content" : {
@@ -5591,6 +5599,14 @@
5591
5599
  "schema" : {
5592
5600
  "type" : "string"
5593
5601
  }
5602
+ }, {
5603
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5604
+ "in" : "query",
5605
+ "name" : "async",
5606
+ "required" : false,
5607
+ "schema" : {
5608
+ "type" : "boolean"
5609
+ }
5594
5610
  } ],
5595
5611
  "requestBody" : {
5596
5612
  "content" : {
@@ -5960,6 +5976,15 @@
5960
5976
  "type" : "string"
5961
5977
  }
5962
5978
  },
5979
+ "async" : {
5980
+ "description" : "If true, run the operation in async mode (poll the ressource then).",
5981
+ "in" : "query",
5982
+ "name" : "async",
5983
+ "required" : false,
5984
+ "schema" : {
5985
+ "type" : "boolean"
5986
+ }
5987
+ },
5963
5988
  "messageIdPath" : {
5964
5989
  "description" : "The ID of the message",
5965
5990
  "in" : "path",
@@ -6261,6 +6286,9 @@
6261
6286
  },
6262
6287
  "createdBy" : {
6263
6288
  "type" : "string"
6289
+ },
6290
+ "creator" : {
6291
+ "$ref" : "#/components/schemas/Agent_creator"
6264
6292
  }
6265
6293
  },
6266
6294
  "required" : [ "id", "modules", "name", "organisationId", "persona", "promptInit" ],
@@ -8992,6 +9020,25 @@
8992
9020
  },
8993
9021
  "type" : "object"
8994
9022
  },
9023
+ "Agent_creator_user" : {
9024
+ "properties" : {
9025
+ "name" : {
9026
+ "type" : "string"
9027
+ }
9028
+ },
9029
+ "type" : "object"
9030
+ },
9031
+ "Agent_creator" : {
9032
+ "properties" : {
9033
+ "id" : {
9034
+ "type" : "string"
9035
+ },
9036
+ "user" : {
9037
+ "$ref" : "#/components/schemas/Agent_creator_user"
9038
+ }
9039
+ },
9040
+ "type" : "object"
9041
+ },
8995
9042
  "AgentSubscription_textInteractions" : {
8996
9043
  "properties" : {
8997
9044
  "included" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",