@breign/client 1.0.75 → 1.0.77

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 (104) hide show
  1. package/dist/apis/AgentApi.d.ts +95 -3
  2. package/dist/apis/AgentApi.js +218 -5
  3. package/dist/apis/AppApi.d.ts +75 -4
  4. package/dist/apis/AppApi.js +174 -7
  5. package/dist/apis/KnowledgeApi.d.ts +27 -1
  6. package/dist/apis/KnowledgeApi.js +60 -0
  7. package/dist/apis/OrganizationsApi.d.ts +67 -1
  8. package/dist/apis/OrganizationsApi.js +156 -0
  9. package/dist/apis/PromptsApi.d.ts +3 -3
  10. package/dist/apis/PromptsApi.js +1 -1
  11. package/dist/apis/ToolsApi.d.ts +26 -1
  12. package/dist/apis/ToolsApi.js +59 -0
  13. package/dist/models/AdvancedFlowEditorEdgeUio.d.ts +56 -0
  14. package/dist/models/AdvancedFlowEditorEdgeUio.js +62 -0
  15. package/dist/models/AdvancedFlowEditorNodePositionUio.d.ts +38 -0
  16. package/dist/models/AdvancedFlowEditorNodePositionUio.js +54 -0
  17. package/dist/models/AdvancedFlowEditorNodeUio.d.ts +53 -0
  18. package/dist/models/AdvancedFlowEditorNodeUio.js +63 -0
  19. package/dist/models/AdvancedFlowEditorUio.d.ts +46 -0
  20. package/dist/models/AdvancedFlowEditorUio.js +60 -0
  21. package/dist/models/AdvancedFlowEditorUpdateRequestUio.d.ts +40 -0
  22. package/dist/models/AdvancedFlowEditorUpdateRequestUio.js +56 -0
  23. package/dist/models/AgentFlowCreateUio.d.ts +6 -0
  24. package/dist/models/AgentFlowCreateUio.js +2 -0
  25. package/dist/models/AgentFlowUio.d.ts +6 -0
  26. package/dist/models/AgentFlowUio.js +2 -0
  27. package/dist/models/AnimationCreateRequestUio.d.ts +56 -0
  28. package/dist/models/AnimationCreateRequestUio.js +64 -0
  29. package/dist/models/AnimationUio.d.ts +56 -0
  30. package/dist/models/AnimationUio.js +64 -0
  31. package/dist/models/AppCommandsInnerUio.d.ts +46 -0
  32. package/dist/models/AppCommandsInnerUio.js +56 -0
  33. package/dist/models/AppConfigurationColorsUio.d.ts +68 -0
  34. package/dist/models/AppConfigurationColorsUio.js +60 -0
  35. package/dist/models/AppConfigurationLanguageInnerUio.d.ts +38 -0
  36. package/dist/models/AppConfigurationLanguageInnerUio.js +50 -0
  37. package/dist/models/AppConfigurationTextIntroIOSViewUio.d.ts +90 -0
  38. package/dist/models/AppConfigurationTextIntroIOSViewUio.js +62 -0
  39. package/dist/models/AppConfigurationTextSpeakIOSViewUio.d.ts +82 -0
  40. package/dist/models/AppConfigurationTextSpeakIOSViewUio.js +60 -0
  41. package/dist/models/AppConfigurationTextUio.d.ts +40 -0
  42. package/dist/models/AppConfigurationTextUio.js +52 -0
  43. package/dist/models/AppConfigurationUio.d.ts +40 -2
  44. package/dist/models/AppConfigurationUio.js +17 -6
  45. package/dist/models/AppUio.d.ts +17 -3
  46. package/dist/models/AppUio.js +9 -3
  47. package/dist/models/AppUpdateRequestUio.d.ts +8 -0
  48. package/dist/models/AppUpdateRequestUio.js +2 -0
  49. package/dist/models/Conversation1Uio.d.ts +46 -0
  50. package/dist/models/Conversation1Uio.js +60 -0
  51. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.d.ts +32 -0
  52. package/dist/models/ConversationMessagesInnerFlowNodeEntrypointsUio.js +48 -0
  53. package/dist/models/ConversationMessagesInnerFlowNodeUio.d.ts +51 -0
  54. package/dist/models/ConversationMessagesInnerFlowNodeUio.js +55 -0
  55. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.d.ts +38 -0
  56. package/dist/models/ConversationMessagesInnerSuggestionsInnerUio.js +54 -0
  57. package/dist/models/ConversationMessagesInnerUio.d.ts +79 -0
  58. package/dist/models/ConversationMessagesInnerUio.js +73 -0
  59. package/dist/models/ConversationMetricsInnerSourceUio.d.ts +51 -0
  60. package/dist/models/ConversationMetricsInnerSourceUio.js +65 -0
  61. package/dist/models/ConversationMetricsInnerUio.d.ts +46 -0
  62. package/dist/models/ConversationMetricsInnerUio.js +60 -0
  63. package/dist/models/ConversationMetricsInnerValueInnerCostUio.d.ts +38 -0
  64. package/dist/models/ConversationMetricsInnerValueInnerCostUio.js +54 -0
  65. package/dist/models/ConversationMetricsInnerValueInnerUio.d.ts +63 -0
  66. package/dist/models/ConversationMetricsInnerValueInnerUio.js +69 -0
  67. package/dist/models/ConversationUio.d.ts +56 -6
  68. package/dist/models/ConversationUio.js +27 -7
  69. package/dist/models/FlowContentsUio.d.ts +6 -0
  70. package/dist/models/FlowContentsUio.js +2 -0
  71. package/dist/models/FlowEditorNodeUio.d.ts +39 -0
  72. package/dist/models/FlowEditorNodeUio.js +55 -0
  73. package/dist/models/FlowEditorUio.d.ts +39 -0
  74. package/dist/models/FlowEditorUio.js +55 -0
  75. package/dist/models/FlowEditorUpdateRequestUio.d.ts +33 -0
  76. package/dist/models/FlowEditorUpdateRequestUio.js +51 -0
  77. package/dist/models/KnowledgeFilesByIdsRequestUio.d.ts +32 -0
  78. package/dist/models/KnowledgeFilesByIdsRequestUio.js +50 -0
  79. package/dist/models/OrganizationUio.d.ts +20 -0
  80. package/dist/models/OrganizationUio.js +10 -0
  81. package/dist/models/OrganizationUserUio.d.ts +38 -0
  82. package/dist/models/OrganizationUserUio.js +54 -0
  83. package/dist/models/RoleCreateRequestUio.d.ts +44 -0
  84. package/dist/models/RoleCreateRequestUio.js +56 -0
  85. package/dist/models/SequenceContentsUio.d.ts +38 -0
  86. package/dist/models/SequenceContentsUio.js +50 -0
  87. package/dist/models/SequenceCreateRequestUio.d.ts +45 -0
  88. package/dist/models/SequenceCreateRequestUio.js +59 -0
  89. package/dist/models/SequenceUio.d.ts +45 -0
  90. package/dist/models/SequenceUio.js +59 -0
  91. package/dist/models/ToolUpdateRequestUio.d.ts +62 -0
  92. package/dist/models/ToolUpdateRequestUio.js +56 -0
  93. package/dist/models/index.d.ts +32 -4
  94. package/dist/models/index.js +32 -4
  95. package/dist/openapi.json +1725 -214
  96. package/package.json +1 -1
  97. package/dist/models/AppConfigurationUpdateRequestUio.d.ts +0 -33
  98. package/dist/models/AppConfigurationUpdateRequestUio.js +0 -50
  99. package/dist/models/AppSequencesInnerUio.d.ts +0 -38
  100. package/dist/models/AppSequencesInnerUio.js +0 -50
  101. package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +0 -32
  102. package/dist/models/ConversationFlowNodeEntrypointsUio.js +0 -48
  103. package/dist/models/ConversationFlowNodeUio.d.ts +0 -51
  104. package/dist/models/ConversationFlowNodeUio.js +0 -55
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, FileCreationRequestUio, FileCreationResponseUio, S3UploadBodyUio } from '../models/index';
13
+ import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, S3UploadBodyUio } from '../models/index';
14
14
  export interface AddModuleRequest {
15
15
  agentId: string;
16
16
  agentModuleUio: AgentModuleUio;
@@ -37,6 +37,9 @@ export interface DuplicateAgentRequest {
37
37
  agentId: string;
38
38
  agentDuplicateRequestUio: AgentDuplicateRequestUio;
39
39
  }
40
+ export interface GetAdvancedFlowEditorRequest {
41
+ agentId: string;
42
+ }
40
43
  export interface GetAgentByIdRequest {
41
44
  agentId: string;
42
45
  }
@@ -68,12 +71,19 @@ export interface GetFlowRequest {
68
71
  agentId: string;
69
72
  flowId: string;
70
73
  }
74
+ export interface GetFlowEditorRequest {
75
+ agentId: string;
76
+ }
71
77
  export interface GetFlowsRequest {
72
78
  agentId: string;
73
79
  }
74
80
  export interface GetModulesRequest {
75
81
  agentId: string;
76
82
  }
83
+ export interface LinkToolToAgentRequest {
84
+ agentId: string;
85
+ toolId: string;
86
+ }
77
87
  export interface ListOrganizationAgentsRequest {
78
88
  organizationId: string;
79
89
  isCreator?: boolean;
@@ -85,6 +95,14 @@ export interface RemoveAgentProfileImageRequest {
85
95
  export interface RemoveAgentSubscriptionRequest {
86
96
  agentId: string;
87
97
  }
98
+ export interface RemoveKnowledgeBaseFromAgentRequest {
99
+ agentId: string;
100
+ knowledgeBaseId: string;
101
+ }
102
+ export interface UnlinkToolFromAgentRequest {
103
+ agentId: string;
104
+ toolId: string;
105
+ }
88
106
  export interface UpdateAgentByIdRequest {
89
107
  agentId: string;
90
108
  agentPatchUio: AgentPatchUio;
@@ -100,12 +118,20 @@ export interface UpdateAgentSubscriptionRequest {
100
118
  export interface UpdateFlowRequest {
101
119
  agentId: string;
102
120
  flowId: string;
103
- agentFlowUio: AgentFlowUio;
121
+ agentFlowCreateUio: AgentFlowCreateUio;
104
122
  }
105
123
  export interface UploadAgentProfileImageRequest {
106
124
  agentId: string;
107
125
  fileCreationRequestUio: FileCreationRequestUio;
108
126
  }
127
+ export interface UpsertAdvancedFlowEditorRequest {
128
+ agentId: string;
129
+ advancedFlowEditorUpdateRequestUio: AdvancedFlowEditorUpdateRequestUio;
130
+ }
131
+ export interface UpsertFlowEditorRequest {
132
+ agentId: string;
133
+ flowEditorUpdateRequestUio: FlowEditorUpdateRequestUio;
134
+ }
109
135
  /**
110
136
  *
111
137
  */
@@ -180,6 +206,16 @@ export declare class AgentApi extends runtime.BaseAPI {
180
206
  * Duplicate an agent
181
207
  */
182
208
  duplicateAgent(agentId: string, agentDuplicateRequestUio: AgentDuplicateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
209
+ /**
210
+ * Get the advanced flow editor state for an agent
211
+ * Get advanced flow editor state
212
+ */
213
+ getAdvancedFlowEditorRaw(requestParameters: GetAdvancedFlowEditorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdvancedFlowEditorUio>>;
214
+ /**
215
+ * Get the advanced flow editor state for an agent
216
+ * Get advanced flow editor state
217
+ */
218
+ getAdvancedFlowEditor(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdvancedFlowEditorUio>;
183
219
  /**
184
220
  * Get a specific agent by ID
185
221
  */
@@ -248,6 +284,14 @@ export declare class AgentApi extends runtime.BaseAPI {
248
284
  * Get a specific flow
249
285
  */
250
286
  getFlow(agentId: string, flowId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
287
+ /**
288
+ * Get flow editor state for an agent
289
+ */
290
+ getFlowEditorRaw(requestParameters: GetFlowEditorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FlowEditorUio>>;
291
+ /**
292
+ * Get flow editor state for an agent
293
+ */
294
+ getFlowEditor(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FlowEditorUio>;
251
295
  /**
252
296
  * Retrieves all conversation flows associated with a specific agent
253
297
  * Get all flows for an agent
@@ -268,6 +312,16 @@ export declare class AgentApi extends runtime.BaseAPI {
268
312
  * Get agent modules
269
313
  */
270
314
  getModules(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentModuleUio>;
315
+ /**
316
+ * Links an organization tool to the specified agent
317
+ * Link a tool to an agent
318
+ */
319
+ linkToolToAgentRaw(requestParameters: LinkToolToAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
320
+ /**
321
+ * Links an organization tool to the specified agent
322
+ * Link a tool to an agent
323
+ */
324
+ linkToolToAgent(agentId: string, toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
271
325
  /**
272
326
  * List agents for an organization
273
327
  */
@@ -296,6 +350,26 @@ export declare class AgentApi extends runtime.BaseAPI {
296
350
  * Remove agent subscription
297
351
  */
298
352
  removeAgentSubscription(agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
353
+ /**
354
+ * Removes the association between a knowledge base and the specified agent
355
+ * Remove a knowledge base from an agent
356
+ */
357
+ removeKnowledgeBaseFromAgentRaw(requestParameters: RemoveKnowledgeBaseFromAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
358
+ /**
359
+ * Removes the association between a knowledge base and the specified agent
360
+ * Remove a knowledge base from an agent
361
+ */
362
+ removeKnowledgeBaseFromAgent(agentId: string, knowledgeBaseId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
363
+ /**
364
+ * Removes a tool from the specified agent
365
+ * Unlink a tool from an agent
366
+ */
367
+ unlinkToolFromAgentRaw(requestParameters: UnlinkToolFromAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
368
+ /**
369
+ * Removes a tool from the specified agent
370
+ * Unlink a tool from an agent
371
+ */
372
+ unlinkToolFromAgent(agentId: string, toolId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
299
373
  /**
300
374
  * Updates an existing agent\'s properties
301
375
  * Update an agent
@@ -333,7 +407,7 @@ export declare class AgentApi extends runtime.BaseAPI {
333
407
  * Updates an existing conversation flow
334
408
  * Update a flow
335
409
  */
336
- updateFlow(agentId: string, flowId: string, agentFlowUio: AgentFlowUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
410
+ updateFlow(agentId: string, flowId: string, agentFlowCreateUio: AgentFlowCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentFlowUio>;
337
411
  /**
338
412
  * Uploads a profile image for an agent and returns an upload URL
339
413
  * Upload agent profile image
@@ -344,6 +418,24 @@ export declare class AgentApi extends runtime.BaseAPI {
344
418
  * Upload agent profile image
345
419
  */
346
420
  uploadAgentProfileImage(agentId: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
421
+ /**
422
+ * Create or update the advanced flow editor state for an agent
423
+ * Upsert advanced flow editor state
424
+ */
425
+ upsertAdvancedFlowEditorRaw(requestParameters: UpsertAdvancedFlowEditorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
426
+ /**
427
+ * Create or update the advanced flow editor state for an agent
428
+ * Upsert advanced flow editor state
429
+ */
430
+ upsertAdvancedFlowEditor(agentId: string, advancedFlowEditorUpdateRequestUio: AdvancedFlowEditorUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
431
+ /**
432
+ * Create or update flow editor state for an agent
433
+ */
434
+ upsertFlowEditorRaw(requestParameters: UpsertFlowEditorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
435
+ /**
436
+ * Create or update flow editor state for an agent
437
+ */
438
+ upsertFlowEditor(agentId: string, flowEditorUpdateRequestUio: FlowEditorUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
347
439
  }
348
440
  /**
349
441
  * @export
@@ -276,6 +276,35 @@ class AgentApi extends runtime.BaseAPI {
276
276
  const response = await this.duplicateAgentRaw({ agentId: agentId, agentDuplicateRequestUio: agentDuplicateRequestUio }, initOverrides);
277
277
  return await response.value();
278
278
  }
279
+ /**
280
+ * Get the advanced flow editor state for an agent
281
+ * Get advanced flow editor state
282
+ */
283
+ async getAdvancedFlowEditorRaw(requestParameters, initOverrides) {
284
+ if (requestParameters['agentId'] == null) {
285
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAdvancedFlowEditor().');
286
+ }
287
+ const queryParameters = {};
288
+ const headerParameters = {};
289
+ if (this.configuration && this.configuration.apiKey) {
290
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
291
+ }
292
+ const response = await this.request({
293
+ path: `/agents/{agentId}/advanced-flow-editor`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
294
+ method: 'GET',
295
+ headers: headerParameters,
296
+ query: queryParameters,
297
+ }, initOverrides);
298
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AdvancedFlowEditorUioFromJSON)(jsonValue));
299
+ }
300
+ /**
301
+ * Get the advanced flow editor state for an agent
302
+ * Get advanced flow editor state
303
+ */
304
+ async getAdvancedFlowEditor(agentId, initOverrides) {
305
+ const response = await this.getAdvancedFlowEditorRaw({ agentId: agentId }, initOverrides);
306
+ return await response.value();
307
+ }
279
308
  /**
280
309
  * Get a specific agent by ID
281
310
  */
@@ -507,6 +536,33 @@ class AgentApi extends runtime.BaseAPI {
507
536
  const response = await this.getFlowRaw({ agentId: agentId, flowId: flowId }, initOverrides);
508
537
  return await response.value();
509
538
  }
539
+ /**
540
+ * Get flow editor state for an agent
541
+ */
542
+ async getFlowEditorRaw(requestParameters, initOverrides) {
543
+ if (requestParameters['agentId'] == null) {
544
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getFlowEditor().');
545
+ }
546
+ const queryParameters = {};
547
+ const headerParameters = {};
548
+ if (this.configuration && this.configuration.apiKey) {
549
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
550
+ }
551
+ const response = await this.request({
552
+ path: `/agents/{agentId}/flow-editor`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
553
+ method: 'GET',
554
+ headers: headerParameters,
555
+ query: queryParameters,
556
+ }, initOverrides);
557
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FlowEditorUioFromJSON)(jsonValue));
558
+ }
559
+ /**
560
+ * Get flow editor state for an agent
561
+ */
562
+ async getFlowEditor(agentId, initOverrides) {
563
+ const response = await this.getFlowEditorRaw({ agentId: agentId }, initOverrides);
564
+ return await response.value();
565
+ }
510
566
  /**
511
567
  * Retrieves all conversation flows associated with a specific agent
512
568
  * Get all flows for an agent
@@ -565,6 +621,37 @@ class AgentApi extends runtime.BaseAPI {
565
621
  const response = await this.getModulesRaw({ agentId: agentId }, initOverrides);
566
622
  return await response.value();
567
623
  }
624
+ /**
625
+ * Links an organization tool to the specified agent
626
+ * Link a tool to an agent
627
+ */
628
+ async linkToolToAgentRaw(requestParameters, initOverrides) {
629
+ if (requestParameters['agentId'] == null) {
630
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling linkToolToAgent().');
631
+ }
632
+ if (requestParameters['toolId'] == null) {
633
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling linkToolToAgent().');
634
+ }
635
+ const queryParameters = {};
636
+ const headerParameters = {};
637
+ if (this.configuration && this.configuration.apiKey) {
638
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
639
+ }
640
+ const response = await this.request({
641
+ path: `/agents/{agentId}/tools/{toolId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
642
+ method: 'POST',
643
+ headers: headerParameters,
644
+ query: queryParameters,
645
+ }, initOverrides);
646
+ return new runtime.VoidApiResponse(response);
647
+ }
648
+ /**
649
+ * Links an organization tool to the specified agent
650
+ * Link a tool to an agent
651
+ */
652
+ async linkToolToAgent(agentId, toolId, initOverrides) {
653
+ await this.linkToolToAgentRaw({ agentId: agentId, toolId: toolId }, initOverrides);
654
+ }
568
655
  /**
569
656
  * List agents for an organization
570
657
  */
@@ -654,6 +741,68 @@ class AgentApi extends runtime.BaseAPI {
654
741
  async removeAgentSubscription(agentId, initOverrides) {
655
742
  await this.removeAgentSubscriptionRaw({ agentId: agentId }, initOverrides);
656
743
  }
744
+ /**
745
+ * Removes the association between a knowledge base and the specified agent
746
+ * Remove a knowledge base from an agent
747
+ */
748
+ async removeKnowledgeBaseFromAgentRaw(requestParameters, initOverrides) {
749
+ if (requestParameters['agentId'] == null) {
750
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling removeKnowledgeBaseFromAgent().');
751
+ }
752
+ if (requestParameters['knowledgeBaseId'] == null) {
753
+ throw new runtime.RequiredError('knowledgeBaseId', 'Required parameter "knowledgeBaseId" was null or undefined when calling removeKnowledgeBaseFromAgent().');
754
+ }
755
+ const queryParameters = {};
756
+ const headerParameters = {};
757
+ if (this.configuration && this.configuration.apiKey) {
758
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
759
+ }
760
+ const response = await this.request({
761
+ path: `/agents/{agentId}/knowledge-bases/{knowledgeBaseId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"knowledgeBaseId"}}`, encodeURIComponent(String(requestParameters['knowledgeBaseId']))),
762
+ method: 'DELETE',
763
+ headers: headerParameters,
764
+ query: queryParameters,
765
+ }, initOverrides);
766
+ return new runtime.VoidApiResponse(response);
767
+ }
768
+ /**
769
+ * Removes the association between a knowledge base and the specified agent
770
+ * Remove a knowledge base from an agent
771
+ */
772
+ async removeKnowledgeBaseFromAgent(agentId, knowledgeBaseId, initOverrides) {
773
+ await this.removeKnowledgeBaseFromAgentRaw({ agentId: agentId, knowledgeBaseId: knowledgeBaseId }, initOverrides);
774
+ }
775
+ /**
776
+ * Removes a tool from the specified agent
777
+ * Unlink a tool from an agent
778
+ */
779
+ async unlinkToolFromAgentRaw(requestParameters, initOverrides) {
780
+ if (requestParameters['agentId'] == null) {
781
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling unlinkToolFromAgent().');
782
+ }
783
+ if (requestParameters['toolId'] == null) {
784
+ throw new runtime.RequiredError('toolId', 'Required parameter "toolId" was null or undefined when calling unlinkToolFromAgent().');
785
+ }
786
+ const queryParameters = {};
787
+ const headerParameters = {};
788
+ if (this.configuration && this.configuration.apiKey) {
789
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
790
+ }
791
+ const response = await this.request({
792
+ path: `/agents/{agentId}/tools/{toolId}`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))).replace(`{${"toolId"}}`, encodeURIComponent(String(requestParameters['toolId']))),
793
+ method: 'DELETE',
794
+ headers: headerParameters,
795
+ query: queryParameters,
796
+ }, initOverrides);
797
+ return new runtime.VoidApiResponse(response);
798
+ }
799
+ /**
800
+ * Removes a tool from the specified agent
801
+ * Unlink a tool from an agent
802
+ */
803
+ async unlinkToolFromAgent(agentId, toolId, initOverrides) {
804
+ await this.unlinkToolFromAgentRaw({ agentId: agentId, toolId: toolId }, initOverrides);
805
+ }
657
806
  /**
658
807
  * Updates an existing agent\'s properties
659
808
  * Update an agent
@@ -765,8 +914,8 @@ class AgentApi extends runtime.BaseAPI {
765
914
  if (requestParameters['flowId'] == null) {
766
915
  throw new runtime.RequiredError('flowId', 'Required parameter "flowId" was null or undefined when calling updateFlow().');
767
916
  }
768
- if (requestParameters['agentFlowUio'] == null) {
769
- throw new runtime.RequiredError('agentFlowUio', 'Required parameter "agentFlowUio" was null or undefined when calling updateFlow().');
917
+ if (requestParameters['agentFlowCreateUio'] == null) {
918
+ throw new runtime.RequiredError('agentFlowCreateUio', 'Required parameter "agentFlowCreateUio" was null or undefined when calling updateFlow().');
770
919
  }
771
920
  const queryParameters = {};
772
921
  const headerParameters = {};
@@ -779,7 +928,7 @@ class AgentApi extends runtime.BaseAPI {
779
928
  method: 'PUT',
780
929
  headers: headerParameters,
781
930
  query: queryParameters,
782
- body: (0, index_1.AgentFlowUioToJSON)(requestParameters['agentFlowUio']),
931
+ body: (0, index_1.AgentFlowCreateUioToJSON)(requestParameters['agentFlowCreateUio']),
783
932
  }, initOverrides);
784
933
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AgentFlowUioFromJSON)(jsonValue));
785
934
  }
@@ -787,8 +936,8 @@ class AgentApi extends runtime.BaseAPI {
787
936
  * Updates an existing conversation flow
788
937
  * Update a flow
789
938
  */
790
- async updateFlow(agentId, flowId, agentFlowUio, initOverrides) {
791
- const response = await this.updateFlowRaw({ agentId: agentId, flowId: flowId, agentFlowUio: agentFlowUio }, initOverrides);
939
+ async updateFlow(agentId, flowId, agentFlowCreateUio, initOverrides) {
940
+ const response = await this.updateFlowRaw({ agentId: agentId, flowId: flowId, agentFlowCreateUio: agentFlowCreateUio }, initOverrides);
792
941
  return await response.value();
793
942
  }
794
943
  /**
@@ -825,6 +974,70 @@ class AgentApi extends runtime.BaseAPI {
825
974
  const response = await this.uploadAgentProfileImageRaw({ agentId: agentId, fileCreationRequestUio: fileCreationRequestUio }, initOverrides);
826
975
  return await response.value();
827
976
  }
977
+ /**
978
+ * Create or update the advanced flow editor state for an agent
979
+ * Upsert advanced flow editor state
980
+ */
981
+ async upsertAdvancedFlowEditorRaw(requestParameters, initOverrides) {
982
+ if (requestParameters['agentId'] == null) {
983
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling upsertAdvancedFlowEditor().');
984
+ }
985
+ if (requestParameters['advancedFlowEditorUpdateRequestUio'] == null) {
986
+ throw new runtime.RequiredError('advancedFlowEditorUpdateRequestUio', 'Required parameter "advancedFlowEditorUpdateRequestUio" was null or undefined when calling upsertAdvancedFlowEditor().');
987
+ }
988
+ const queryParameters = {};
989
+ const headerParameters = {};
990
+ headerParameters['Content-Type'] = 'application/json';
991
+ if (this.configuration && this.configuration.apiKey) {
992
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
993
+ }
994
+ const response = await this.request({
995
+ path: `/agents/{agentId}/advanced-flow-editor`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
996
+ method: 'PUT',
997
+ headers: headerParameters,
998
+ query: queryParameters,
999
+ body: (0, index_1.AdvancedFlowEditorUpdateRequestUioToJSON)(requestParameters['advancedFlowEditorUpdateRequestUio']),
1000
+ }, initOverrides);
1001
+ return new runtime.VoidApiResponse(response);
1002
+ }
1003
+ /**
1004
+ * Create or update the advanced flow editor state for an agent
1005
+ * Upsert advanced flow editor state
1006
+ */
1007
+ async upsertAdvancedFlowEditor(agentId, advancedFlowEditorUpdateRequestUio, initOverrides) {
1008
+ await this.upsertAdvancedFlowEditorRaw({ agentId: agentId, advancedFlowEditorUpdateRequestUio: advancedFlowEditorUpdateRequestUio }, initOverrides);
1009
+ }
1010
+ /**
1011
+ * Create or update flow editor state for an agent
1012
+ */
1013
+ async upsertFlowEditorRaw(requestParameters, initOverrides) {
1014
+ if (requestParameters['agentId'] == null) {
1015
+ throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling upsertFlowEditor().');
1016
+ }
1017
+ if (requestParameters['flowEditorUpdateRequestUio'] == null) {
1018
+ throw new runtime.RequiredError('flowEditorUpdateRequestUio', 'Required parameter "flowEditorUpdateRequestUio" was null or undefined when calling upsertFlowEditor().');
1019
+ }
1020
+ const queryParameters = {};
1021
+ const headerParameters = {};
1022
+ headerParameters['Content-Type'] = 'application/json';
1023
+ if (this.configuration && this.configuration.apiKey) {
1024
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
1025
+ }
1026
+ const response = await this.request({
1027
+ path: `/agents/{agentId}/flow-editor`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
1028
+ method: 'PUT',
1029
+ headers: headerParameters,
1030
+ query: queryParameters,
1031
+ body: (0, index_1.FlowEditorUpdateRequestUioToJSON)(requestParameters['flowEditorUpdateRequestUio']),
1032
+ }, initOverrides);
1033
+ return new runtime.VoidApiResponse(response);
1034
+ }
1035
+ /**
1036
+ * Create or update flow editor state for an agent
1037
+ */
1038
+ async upsertFlowEditor(agentId, flowEditorUpdateRequestUio, initOverrides) {
1039
+ await this.upsertFlowEditorRaw({ agentId: agentId, flowEditorUpdateRequestUio: flowEditorUpdateRequestUio }, initOverrides);
1040
+ }
828
1041
  }
829
1042
  exports.AgentApi = AgentApi;
830
1043
  /**
@@ -10,12 +10,20 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppConfigurationUpdateRequestUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio } from '../models/index';
13
+ import type { AnimationCreateRequestUio, AppChatCreateRequestUio, AppChatCreateResponseUio, AppChatSayRequestUio, AppChatSayResponseUio, AppChatSubmitMessageRequestUio, AppConfigurationUio, AppCreateRequestUio, AppFlowCreateRequestUio, AppInstanceCreateRequestUio, AppLightUio, AppProbeRequestUio, AppProbeResponseUio, AppStatusRequestUio, AppStatusResponseUio, AppSubmitMessageRequestUio, AppTextToSpeechRequestUio, AppTextToSpeechResponseUio, AppUio, AppUpdateRequestUio, AudioFileUio, AudioFillerExistsResponseUio, BodyWithIdUio, BodyWithMessageUio, ConversationUio, FileCreationRequestUio, FileCreationResponseUio, FillersArrayInnerUio, FlowUio, S3UploadBodyUio, SequenceCreateRequestUio } from '../models/index';
14
+ export interface AddAnimationRequest {
15
+ appId: string;
16
+ animationCreateRequestUio: AnimationCreateRequestUio;
17
+ }
14
18
  export interface AddAppConfigurationFileRequest {
15
19
  appId: string;
16
20
  type: string;
17
21
  fileCreationRequestUio: FileCreationRequestUio;
18
22
  }
23
+ export interface AddSequenceRequest {
24
+ appId: string;
25
+ sequenceCreateRequestUio: SequenceCreateRequestUio;
26
+ }
19
27
  export interface CheckAudioFillerExistsRequest {
20
28
  appId: string;
21
29
  lang?: string;
@@ -63,6 +71,10 @@ export interface GetAppConfigurationPropertyRequest {
63
71
  appId: string;
64
72
  property: string;
65
73
  }
74
+ export interface GetAppConversationsRequest {
75
+ appId: string;
76
+ page?: number;
77
+ }
66
78
  export interface GetAppProbeRequest {
67
79
  appId: string;
68
80
  instanceId?: string;
@@ -89,6 +101,14 @@ export interface RefreshAppProbeRequest {
89
101
  appId: string;
90
102
  instanceId?: string;
91
103
  }
104
+ export interface RemoveAnimationRequest {
105
+ appId: string;
106
+ animationId: string;
107
+ }
108
+ export interface RemoveSequenceRequest {
109
+ appId: string;
110
+ sequenceId: string;
111
+ }
92
112
  export interface SaySomethingRequest {
93
113
  appId: string;
94
114
  appChatSayRequestUio: AppChatSayRequestUio;
@@ -108,6 +128,7 @@ export interface SubmitNewMessageToChatRequest {
108
128
  appId: string;
109
129
  chatId: string;
110
130
  appChatSubmitMessageRequestUio: AppChatSubmitMessageRequestUio;
131
+ instanceId?: string;
111
132
  }
112
133
  export interface TextToSpeechRequest {
113
134
  appId: string;
@@ -119,7 +140,7 @@ export interface UpdateAppByIdRequest {
119
140
  }
120
141
  export interface UpdateAppConfigurationRequest {
121
142
  appId: string;
122
- appConfigurationUpdateRequestUio: AppConfigurationUpdateRequestUio;
143
+ appConfigurationUio: AppConfigurationUio;
123
144
  instanceId?: string;
124
145
  }
125
146
  export interface UpdateAppProfilePictureRequest {
@@ -130,6 +151,16 @@ export interface UpdateAppProfilePictureRequest {
130
151
  *
131
152
  */
132
153
  export declare class AppApi extends runtime.BaseAPI {
154
+ /**
155
+ * Add an animation to an app
156
+ * Add an animation to an app
157
+ */
158
+ addAnimationRaw(requestParameters: AddAnimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
159
+ /**
160
+ * Add an animation to an app
161
+ * Add an animation to an app
162
+ */
163
+ addAnimation(appId: string, animationCreateRequestUio: AnimationCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
133
164
  /**
134
165
  * Add file to app configuration
135
166
  * Add file to app configuration
@@ -140,6 +171,16 @@ export declare class AppApi extends runtime.BaseAPI {
140
171
  * Add file to app configuration
141
172
  */
142
173
  addAppConfigurationFile(appId: string, type: string, fileCreationRequestUio: FileCreationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FileCreationResponseUio>;
174
+ /**
175
+ * Add a sequence to an app
176
+ * Add a sequence to an app
177
+ */
178
+ addSequenceRaw(requestParameters: AddSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
179
+ /**
180
+ * Add a sequence to an app
181
+ * Add a sequence to an app
182
+ */
183
+ addSequence(appId: string, sequenceCreateRequestUio: SequenceCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
143
184
  /**
144
185
  * Check if audio filler exists
145
186
  * Check if audio filler exists
@@ -250,6 +291,16 @@ export declare class AppApi extends runtime.BaseAPI {
250
291
  * Get app configuration property
251
292
  */
252
293
  getAppConfigurationProperty(appId: string, property: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
294
+ /**
295
+ * Get paginated conversations for an app
296
+ * Get conversations for an app
297
+ */
298
+ getAppConversationsRaw(requestParameters: GetAppConversationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ConversationUio>>>;
299
+ /**
300
+ * Get paginated conversations for an app
301
+ * Get conversations for an app
302
+ */
303
+ getAppConversations(appId: string, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConversationUio>>;
253
304
  /**
254
305
  * Probe the app
255
306
  * Probe the app
@@ -310,6 +361,26 @@ export declare class AppApi extends runtime.BaseAPI {
310
361
  * Refresh the app probe
311
362
  */
312
363
  refreshAppProbe(appId: string, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
364
+ /**
365
+ * Remove an animation from an app
366
+ * Remove an animation from an app
367
+ */
368
+ removeAnimationRaw(requestParameters: RemoveAnimationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
369
+ /**
370
+ * Remove an animation from an app
371
+ * Remove an animation from an app
372
+ */
373
+ removeAnimation(appId: string, animationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
374
+ /**
375
+ * Remove a sequence from an app
376
+ * Remove a sequence from an app
377
+ */
378
+ removeSequenceRaw(requestParameters: RemoveSequenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithMessageUio>>;
379
+ /**
380
+ * Remove a sequence from an app
381
+ * Remove a sequence from an app
382
+ */
383
+ removeSequence(appId: string, sequenceId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithMessageUio>;
313
384
  /**
314
385
  * Make the app say something
315
386
  * Make the app say something
@@ -353,7 +424,7 @@ export declare class AppApi extends runtime.BaseAPI {
353
424
  * Submit a new message to a chat
354
425
  * Submit a new message to a chat
355
426
  */
356
- submitNewMessageToChat(appId: string, chatId: string, appChatSubmitMessageRequestUio: AppChatSubmitMessageRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FlowUio>;
427
+ submitNewMessageToChat(appId: string, chatId: string, appChatSubmitMessageRequestUio: AppChatSubmitMessageRequestUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FlowUio>;
357
428
  /**
358
429
  * Text to speech
359
430
  * Text to speech
@@ -383,7 +454,7 @@ export declare class AppApi extends runtime.BaseAPI {
383
454
  * Update app configuration
384
455
  * Update app configuration
385
456
  */
386
- updateAppConfiguration(appId: string, appConfigurationUpdateRequestUio: AppConfigurationUpdateRequestUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
457
+ updateAppConfiguration(appId: string, appConfigurationUio: AppConfigurationUio, instanceId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
387
458
  /**
388
459
  * Update profile picture for an app
389
460
  */