@breign/client 1.0.5 → 1.0.7
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.
- package/dist/apis/AgentApi.d.ts +5 -4
- package/dist/apis/AgentApi.js +6 -3
- package/dist/apis/EngineApi.d.ts +6 -5
- package/dist/apis/EngineApi.js +13 -7
- package/dist/apis/FilesApi.d.ts +21 -21
- package/dist/apis/FilesApi.js +42 -42
- package/dist/apis/GeneralApi.d.ts +2 -2
- package/dist/apis/GeneralApi.js +3 -3
- package/dist/apis/GuardiansApi.d.ts +54 -54
- package/dist/apis/GuardiansApi.js +91 -91
- package/dist/apis/KnowledgeApi.d.ts +72 -72
- package/dist/apis/KnowledgeApi.js +152 -152
- package/dist/apis/ManifestsApi.d.ts +28 -28
- package/dist/apis/ManifestsApi.js +45 -45
- package/dist/apis/MetricsApi.d.ts +14 -14
- package/dist/apis/MetricsApi.js +18 -18
- package/dist/apis/OrganizationsApi.d.ts +3 -3
- package/dist/apis/OrganizationsApi.js +4 -4
- package/dist/apis/PromptsApi.d.ts +31 -31
- package/dist/apis/PromptsApi.js +60 -60
- package/dist/apis/RemotesApi.d.ts +3 -3
- package/dist/apis/RemotesApi.js +4 -4
- package/dist/apis/ToolsApi.d.ts +6 -6
- package/dist/apis/ToolsApi.js +8 -8
- package/dist/models/AgentPatchEngineUio.d.ts +38 -0
- package/dist/models/AgentPatchEngineUio.js +54 -0
- package/dist/models/AgentPatchUio.d.ts +4 -4
- package/dist/models/AgentPatchUio.js +3 -3
- package/dist/models/AgentRequestUio.d.ts +10 -1
- package/dist/models/AgentRequestUio.js +5 -3
- package/dist/models/AgentUio.d.ts +10 -3
- package/dist/models/AgentUio.js +4 -3
- package/dist/models/AppCreateRequestUio.d.ts +6 -0
- package/dist/models/AppCreateRequestUio.js +2 -0
- package/dist/models/AppSequencesInnerUio.d.ts +38 -0
- package/dist/models/AppSequencesInnerUio.js +50 -0
- package/dist/models/AppUio.d.ts +24 -3
- package/dist/models/AppUio.js +11 -10
- package/dist/models/ChatMessageAudioInnerUio.d.ts +38 -0
- package/dist/models/ChatMessageAudioInnerUio.js +54 -0
- package/dist/models/ChatMessageUio.d.ts +10 -2
- package/dist/models/ChatMessageUio.js +6 -2
- package/dist/models/ChatMessageWithFlowNodeUio.d.ts +129 -0
- package/dist/models/ChatMessageWithFlowNodeUio.js +95 -0
- package/dist/models/ChatUio.d.ts +9 -3
- package/dist/models/ChatUio.js +5 -3
- package/dist/models/ConversationFlowNodeEntrypointsUio.d.ts +32 -0
- package/dist/models/ConversationFlowNodeEntrypointsUio.js +48 -0
- package/dist/models/ConversationFlowNodeUio.d.ts +51 -0
- package/dist/models/ConversationFlowNodeUio.js +55 -0
- package/dist/models/ConversationUio.d.ts +7 -0
- package/dist/models/ConversationUio.js +5 -0
- package/dist/models/DefaultEngineRequestUio.d.ts +1 -7
- package/dist/models/DefaultEngineRequestUio.js +3 -7
- package/dist/models/EngineUio.d.ts +4 -7
- package/dist/models/EngineUio.js +6 -7
- package/dist/models/FileCreationRequestUio.d.ts +1 -1
- package/dist/models/FileCreationRequestUio.js +1 -3
- package/dist/models/FileCreationResponseUio.d.ts +6 -0
- package/dist/models/FileCreationResponseUio.js +2 -0
- package/dist/models/FileUio.d.ts +6 -0
- package/dist/models/FileUio.js +2 -0
- package/dist/models/FileWithDownloadUrlUio.d.ts +6 -0
- package/dist/models/FileWithDownloadUrlUio.js +2 -0
- package/dist/models/GuardianCreateRequestUio.d.ts +7 -0
- package/dist/models/GuardianCreateRequestUio.js +5 -0
- package/dist/models/GuardianEngineUio.d.ts +0 -7
- package/dist/models/GuardianEngineUio.js +0 -5
- package/dist/models/GuardianPutRequestUio.d.ts +7 -0
- package/dist/models/GuardianPutRequestUio.js +3 -0
- package/dist/models/GuardianTypeUio.d.ts +26 -0
- package/dist/models/GuardianTypeUio.js +52 -0
- package/dist/models/GuardianUio.d.ts +7 -0
- package/dist/models/GuardianUio.js +5 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.d.ts +56 -0
- package/dist/models/ImportFileToAgentKnowledge200ResponseUio.js +56 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.d.ts +44 -0
- package/dist/models/KnowledgeBaseFilesInnerUio.js +58 -0
- package/dist/models/KnowledgeBaseUio.d.ts +124 -0
- package/dist/models/KnowledgeBaseUio.js +88 -0
- package/dist/models/OrganizationUio.d.ts +0 -9
- package/dist/models/OrganizationUio.js +0 -6
- package/dist/models/ProviderCreateRequestUio.d.ts +4 -9
- package/dist/models/ProviderCreateRequestUio.js +4 -9
- package/dist/models/ProviderTypeUio.d.ts +27 -0
- package/dist/models/ProviderTypeUio.js +53 -0
- package/dist/models/ProviderUio.d.ts +4 -9
- package/dist/models/ProviderUio.js +4 -9
- package/dist/models/index.d.ts +11 -6
- package/dist/models/index.js +11 -6
- package/dist/openapi.json +369 -120
- package/package.json +1 -1
- package/dist/models/AgentKnowledgeBaseUio.d.ts +0 -57
- package/dist/models/AgentKnowledgeBaseUio.js +0 -67
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.d.ts +0 -56
- package/dist/models/AgentsAgentIdKnowledgeFileImportsPost200ResponseUio.js +0 -56
- package/dist/models/DuplicateAgent201ResponseUio.d.ts +0 -32
- package/dist/models/DuplicateAgent201ResponseUio.js +0 -50
- package/dist/models/EngineTypeUio.d.ts +0 -25
- package/dist/models/EngineTypeUio.js +0 -51
- package/dist/models/GuardianEngineTypeUio.d.ts +0 -26
- package/dist/models/GuardianEngineTypeUio.js +0 -52
- package/dist/models/GuardianExcludedAgentsRequestUio.d.ts +0 -32
- package/dist/models/GuardianExcludedAgentsRequestUio.js +0 -50
|
@@ -54,38 +54,43 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class ManifestsApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
57
|
+
* Creates a new manifest document
|
|
58
|
+
* Create a manifest
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
60
|
+
async createManifestRaw(requestParameters, initOverrides) {
|
|
61
|
+
if (requestParameters['manifestCreateRequestUio'] == null) {
|
|
62
|
+
throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling createManifest().');
|
|
63
|
+
}
|
|
61
64
|
const queryParameters = {};
|
|
62
65
|
const headerParameters = {};
|
|
66
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
63
67
|
if (this.configuration && this.configuration.apiKey) {
|
|
64
68
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
65
69
|
}
|
|
66
70
|
const response = await this.request({
|
|
67
71
|
path: `/manifests`,
|
|
68
|
-
method: '
|
|
72
|
+
method: 'POST',
|
|
69
73
|
headers: headerParameters,
|
|
70
74
|
query: queryParameters,
|
|
75
|
+
body: (0, index_1.ManifestCreateRequestUioToJSON)(requestParameters['manifestCreateRequestUio']),
|
|
71
76
|
}, initOverrides);
|
|
72
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
77
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ManifestUioFromJSON)(jsonValue));
|
|
73
78
|
}
|
|
74
79
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
80
|
+
* Creates a new manifest document
|
|
81
|
+
* Create a manifest
|
|
77
82
|
*/
|
|
78
|
-
async
|
|
79
|
-
const response = await this.
|
|
83
|
+
async createManifest(manifestCreateRequestUio, initOverrides) {
|
|
84
|
+
const response = await this.createManifestRaw({ manifestCreateRequestUio: manifestCreateRequestUio }, initOverrides);
|
|
80
85
|
return await response.value();
|
|
81
86
|
}
|
|
82
87
|
/**
|
|
83
88
|
* Deletes a manifest by ID
|
|
84
89
|
* Delete manifest
|
|
85
90
|
*/
|
|
86
|
-
async
|
|
91
|
+
async deleteManifestByIdRaw(requestParameters, initOverrides) {
|
|
87
92
|
if (requestParameters['manifestId'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling
|
|
93
|
+
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling deleteManifestById().');
|
|
89
94
|
}
|
|
90
95
|
const queryParameters = {};
|
|
91
96
|
const headerParameters = {};
|
|
@@ -104,16 +109,16 @@ class ManifestsApi extends runtime.BaseAPI {
|
|
|
104
109
|
* Deletes a manifest by ID
|
|
105
110
|
* Delete manifest
|
|
106
111
|
*/
|
|
107
|
-
async
|
|
108
|
-
await this.
|
|
112
|
+
async deleteManifestById(manifestId, initOverrides) {
|
|
113
|
+
await this.deleteManifestByIdRaw({ manifestId: manifestId }, initOverrides);
|
|
109
114
|
}
|
|
110
115
|
/**
|
|
111
116
|
* Retrieves a specific manifest by its ID
|
|
112
117
|
* Get manifest by ID
|
|
113
118
|
*/
|
|
114
|
-
async
|
|
119
|
+
async getManifestByIdRaw(requestParameters, initOverrides) {
|
|
115
120
|
if (requestParameters['manifestId'] == null) {
|
|
116
|
-
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling
|
|
121
|
+
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling getManifestById().');
|
|
117
122
|
}
|
|
118
123
|
const queryParameters = {};
|
|
119
124
|
const headerParameters = {};
|
|
@@ -132,51 +137,46 @@ class ManifestsApi extends runtime.BaseAPI {
|
|
|
132
137
|
* Retrieves a specific manifest by its ID
|
|
133
138
|
* Get manifest by ID
|
|
134
139
|
*/
|
|
135
|
-
async
|
|
136
|
-
const response = await this.
|
|
140
|
+
async getManifestById(manifestId, initOverrides) {
|
|
141
|
+
const response = await this.getManifestByIdRaw({ manifestId: manifestId }, initOverrides);
|
|
137
142
|
return await response.value();
|
|
138
143
|
}
|
|
139
144
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
145
|
+
* Retrieves manifests, filtered by user ID for non-admin users
|
|
146
|
+
* Get manifests
|
|
142
147
|
*/
|
|
143
|
-
async
|
|
144
|
-
if (requestParameters['manifestId'] == null) {
|
|
145
|
-
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling manifestsManifestIdPut().');
|
|
146
|
-
}
|
|
147
|
-
if (requestParameters['manifestCreateRequestUio'] == null) {
|
|
148
|
-
throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling manifestsManifestIdPut().');
|
|
149
|
-
}
|
|
148
|
+
async getManifestsRaw(initOverrides) {
|
|
150
149
|
const queryParameters = {};
|
|
151
150
|
const headerParameters = {};
|
|
152
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
153
151
|
if (this.configuration && this.configuration.apiKey) {
|
|
154
152
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
155
153
|
}
|
|
156
154
|
const response = await this.request({
|
|
157
|
-
path: `/manifests
|
|
158
|
-
method: '
|
|
155
|
+
path: `/manifests`,
|
|
156
|
+
method: 'GET',
|
|
159
157
|
headers: headerParameters,
|
|
160
158
|
query: queryParameters,
|
|
161
|
-
body: (0, index_1.ManifestCreateRequestUioToJSON)(requestParameters['manifestCreateRequestUio']),
|
|
162
159
|
}, initOverrides);
|
|
163
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (
|
|
160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ManifestUioFromJSON));
|
|
164
161
|
}
|
|
165
162
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
163
|
+
* Retrieves manifests, filtered by user ID for non-admin users
|
|
164
|
+
* Get manifests
|
|
168
165
|
*/
|
|
169
|
-
async
|
|
170
|
-
const response = await this.
|
|
166
|
+
async getManifests(initOverrides) {
|
|
167
|
+
const response = await this.getManifestsRaw(initOverrides);
|
|
171
168
|
return await response.value();
|
|
172
169
|
}
|
|
173
170
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
171
|
+
* Updates a manifest by ID
|
|
172
|
+
* Update manifest
|
|
176
173
|
*/
|
|
177
|
-
async
|
|
174
|
+
async updateManifestByIdRaw(requestParameters, initOverrides) {
|
|
175
|
+
if (requestParameters['manifestId'] == null) {
|
|
176
|
+
throw new runtime.RequiredError('manifestId', 'Required parameter "manifestId" was null or undefined when calling updateManifestById().');
|
|
177
|
+
}
|
|
178
178
|
if (requestParameters['manifestCreateRequestUio'] == null) {
|
|
179
|
-
throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling
|
|
179
|
+
throw new runtime.RequiredError('manifestCreateRequestUio', 'Required parameter "manifestCreateRequestUio" was null or undefined when calling updateManifestById().');
|
|
180
180
|
}
|
|
181
181
|
const queryParameters = {};
|
|
182
182
|
const headerParameters = {};
|
|
@@ -185,8 +185,8 @@ class ManifestsApi extends runtime.BaseAPI {
|
|
|
185
185
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
186
186
|
}
|
|
187
187
|
const response = await this.request({
|
|
188
|
-
path: `/manifests`,
|
|
189
|
-
method: '
|
|
188
|
+
path: `/manifests/{manifestId}`.replace(`{${"manifestId"}}`, encodeURIComponent(String(requestParameters['manifestId']))),
|
|
189
|
+
method: 'PUT',
|
|
190
190
|
headers: headerParameters,
|
|
191
191
|
query: queryParameters,
|
|
192
192
|
body: (0, index_1.ManifestCreateRequestUioToJSON)(requestParameters['manifestCreateRequestUio']),
|
|
@@ -194,11 +194,11 @@ class ManifestsApi extends runtime.BaseAPI {
|
|
|
194
194
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ManifestUioFromJSON)(jsonValue));
|
|
195
195
|
}
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
198
|
-
*
|
|
197
|
+
* Updates a manifest by ID
|
|
198
|
+
* Update manifest
|
|
199
199
|
*/
|
|
200
|
-
async
|
|
201
|
-
const response = await this.
|
|
200
|
+
async updateManifestById(manifestId, manifestCreateRequestUio, initOverrides) {
|
|
201
|
+
const response = await this.updateManifestByIdRaw({ manifestId: manifestId, manifestCreateRequestUio: manifestCreateRequestUio }, initOverrides);
|
|
202
202
|
return await response.value();
|
|
203
203
|
}
|
|
204
204
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { MetricForAgentUio, MetricUio } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetMetricsRequest {
|
|
15
15
|
startDate?: Date;
|
|
16
16
|
endDate?: Date;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface GetMetricsAgentsRequest {
|
|
19
19
|
startDate?: Date;
|
|
20
20
|
endDate?: Date;
|
|
21
21
|
}
|
|
@@ -23,24 +23,24 @@ export interface MetricsGetRequest {
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
export declare class MetricsApi extends runtime.BaseAPI {
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
28
|
-
* Get agent-specific metrics
|
|
29
|
-
*/
|
|
30
|
-
metricsAgentsGetRaw(requestParameters: MetricsAgentsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricForAgentUio>>>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
33
|
-
* Get agent-specific metrics
|
|
34
|
-
*/
|
|
35
|
-
metricsAgentsGet(startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricForAgentUio>>;
|
|
36
26
|
/**
|
|
37
27
|
* Retrieves usage metrics for all agents within a date range (admin only)
|
|
38
28
|
* Get usage metrics
|
|
39
29
|
*/
|
|
40
|
-
|
|
30
|
+
getMetricsRaw(requestParameters: GetMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricUio>>>;
|
|
41
31
|
/**
|
|
42
32
|
* Retrieves usage metrics for all agents within a date range (admin only)
|
|
43
33
|
* Get usage metrics
|
|
44
34
|
*/
|
|
45
|
-
|
|
35
|
+
getMetrics(startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricUio>>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
38
|
+
* Get agent-specific metrics
|
|
39
|
+
*/
|
|
40
|
+
getMetricsAgentsRaw(requestParameters: GetMetricsAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricForAgentUio>>>;
|
|
41
|
+
/**
|
|
42
|
+
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
43
|
+
* Get agent-specific metrics
|
|
44
|
+
*/
|
|
45
|
+
getMetricsAgents(startDate?: Date, endDate?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricForAgentUio>>;
|
|
46
46
|
}
|
package/dist/apis/MetricsApi.js
CHANGED
|
@@ -54,10 +54,10 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class MetricsApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* Retrieves usage metrics
|
|
58
|
-
* Get
|
|
57
|
+
* Retrieves usage metrics for all agents within a date range (admin only)
|
|
58
|
+
* Get usage metrics
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
60
|
+
async getMetricsRaw(requestParameters, initOverrides) {
|
|
61
61
|
const queryParameters = {};
|
|
62
62
|
if (requestParameters['startDate'] != null) {
|
|
63
63
|
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
@@ -70,26 +70,26 @@ class MetricsApi extends runtime.BaseAPI {
|
|
|
70
70
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
71
|
}
|
|
72
72
|
const response = await this.request({
|
|
73
|
-
path: `/metrics
|
|
73
|
+
path: `/metrics`,
|
|
74
74
|
method: 'GET',
|
|
75
75
|
headers: headerParameters,
|
|
76
76
|
query: queryParameters,
|
|
77
77
|
}, initOverrides);
|
|
78
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.
|
|
78
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricUioFromJSON));
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Retrieves usage metrics
|
|
82
|
-
* Get
|
|
81
|
+
* Retrieves usage metrics for all agents within a date range (admin only)
|
|
82
|
+
* Get usage metrics
|
|
83
83
|
*/
|
|
84
|
-
async
|
|
85
|
-
const response = await this.
|
|
84
|
+
async getMetrics(startDate, endDate, initOverrides) {
|
|
85
|
+
const response = await this.getMetricsRaw({ startDate: startDate, endDate: endDate }, initOverrides);
|
|
86
86
|
return await response.value();
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
|
-
* Retrieves usage metrics
|
|
90
|
-
* Get
|
|
89
|
+
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
90
|
+
* Get agent-specific metrics
|
|
91
91
|
*/
|
|
92
|
-
async
|
|
92
|
+
async getMetricsAgentsRaw(requestParameters, initOverrides) {
|
|
93
93
|
const queryParameters = {};
|
|
94
94
|
if (requestParameters['startDate'] != null) {
|
|
95
95
|
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
@@ -102,19 +102,19 @@ class MetricsApi extends runtime.BaseAPI {
|
|
|
102
102
|
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
103
103
|
}
|
|
104
104
|
const response = await this.request({
|
|
105
|
-
path: `/metrics`,
|
|
105
|
+
path: `/metrics/agents`,
|
|
106
106
|
method: 'GET',
|
|
107
107
|
headers: headerParameters,
|
|
108
108
|
query: queryParameters,
|
|
109
109
|
}, initOverrides);
|
|
110
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.MetricForAgentUioFromJSON));
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
* Retrieves usage metrics
|
|
114
|
-
* Get
|
|
113
|
+
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
114
|
+
* Get agent-specific metrics
|
|
115
115
|
*/
|
|
116
|
-
async
|
|
117
|
-
const response = await this.
|
|
116
|
+
async getMetricsAgents(startDate, endDate, initOverrides) {
|
|
117
|
+
const response = await this.getMetricsAgentsRaw({ startDate: startDate, endDate: endDate }, initOverrides);
|
|
118
118
|
return await response.value();
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { OrganizationUio } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface GetOrganizationByIdRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -22,10 +22,10 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
|
|
|
22
22
|
* Retrieves an organization by its ID
|
|
23
23
|
* Get an organization by ID
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
getOrganizationByIdRaw(requestParameters: GetOrganizationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationUio>>;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieves an organization by its ID
|
|
28
28
|
* Get an organization by ID
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getOrganizationById(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationUio>;
|
|
31
31
|
}
|
|
@@ -57,9 +57,9 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
57
57
|
* Retrieves an organization by its ID
|
|
58
58
|
* Get an organization by ID
|
|
59
59
|
*/
|
|
60
|
-
async
|
|
60
|
+
async getOrganizationByIdRaw(requestParameters, initOverrides) {
|
|
61
61
|
if (requestParameters['organizationId'] == null) {
|
|
62
|
-
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling
|
|
62
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationById().');
|
|
63
63
|
}
|
|
64
64
|
const queryParameters = {};
|
|
65
65
|
const headerParameters = {};
|
|
@@ -78,8 +78,8 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
78
78
|
* Retrieves an organization by its ID
|
|
79
79
|
* Get an organization by ID
|
|
80
80
|
*/
|
|
81
|
-
async
|
|
82
|
-
const response = await this.
|
|
81
|
+
async getOrganizationById(organizationId, initOverrides) {
|
|
82
|
+
const response = await this.getOrganizationByIdRaw({ organizationId: organizationId }, initOverrides);
|
|
83
83
|
return await response.value();
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -11,91 +11,91 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import type { BodyWithIdUio, ChatMessageUio, ConversationUio, MessageUio, PromptCreateRequestUio, PromptCreateResponseUio, PromptFlowCreateRequestUio, PromptFlowCreateResponseUio } from '../models/index';
|
|
14
|
-
export interface
|
|
14
|
+
export interface CreateConversationRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface CreateConversationWithFlowManagementRequest {
|
|
19
|
+
agentId: string;
|
|
20
|
+
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
21
|
+
}
|
|
22
|
+
export interface CreatePromptRequest {
|
|
19
23
|
agentId: string;
|
|
20
24
|
promptCreateRequestUio: PromptCreateRequestUio;
|
|
21
25
|
}
|
|
22
|
-
export interface
|
|
26
|
+
export interface GetConversationByIdRequest {
|
|
23
27
|
conversationId: string;
|
|
24
28
|
}
|
|
25
|
-
export interface
|
|
29
|
+
export interface GetMessageByIdRequest {
|
|
26
30
|
conversationId: string;
|
|
27
31
|
messageId: string;
|
|
28
32
|
}
|
|
29
|
-
export interface
|
|
33
|
+
export interface SendMessageToConversationRequest {
|
|
30
34
|
conversationId: string;
|
|
31
35
|
messageUio: MessageUio;
|
|
32
36
|
}
|
|
33
|
-
export interface ConversationsPostRequest {
|
|
34
|
-
agentId: string;
|
|
35
|
-
promptFlowCreateRequestUio: PromptFlowCreateRequestUio;
|
|
36
|
-
}
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
export declare class PromptsApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Create a new empty conversation for the specified agent.
|
|
43
|
+
* Create a new conversation
|
|
44
|
+
*/
|
|
45
|
+
createConversationRaw(requestParameters: CreateConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a new empty conversation for the specified agent.
|
|
48
|
+
* Create a new conversation
|
|
49
|
+
*/
|
|
50
|
+
createConversation(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
41
51
|
/**
|
|
42
52
|
* Starts a new conversation session for the specified agent with flow management
|
|
43
53
|
* Create a new conversation with flow management
|
|
44
54
|
*/
|
|
45
|
-
|
|
55
|
+
createConversationWithFlowManagementRaw(requestParameters: CreateConversationWithFlowManagementRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptFlowCreateResponseUio>>;
|
|
46
56
|
/**
|
|
47
57
|
* Starts a new conversation session for the specified agent with flow management
|
|
48
58
|
* Create a new conversation with flow management
|
|
49
59
|
*/
|
|
50
|
-
|
|
60
|
+
createConversationWithFlowManagement(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptFlowCreateResponseUio>;
|
|
51
61
|
/**
|
|
52
62
|
* Starts a new conversation session for the specified agent
|
|
53
|
-
* Create a new
|
|
63
|
+
* Create a new prompt
|
|
54
64
|
*/
|
|
55
|
-
|
|
65
|
+
createPromptRaw(requestParameters: CreatePromptRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptCreateResponseUio>>;
|
|
56
66
|
/**
|
|
57
67
|
* Starts a new conversation session for the specified agent
|
|
58
|
-
* Create a new
|
|
68
|
+
* Create a new prompt
|
|
59
69
|
*/
|
|
60
|
-
|
|
70
|
+
createPrompt(agentId: string, promptCreateRequestUio: PromptCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
|
|
61
71
|
/**
|
|
62
72
|
* Retrieves details of a specific conversation including all messages
|
|
63
73
|
* Get a conversation by ID
|
|
64
74
|
*/
|
|
65
|
-
|
|
75
|
+
getConversationByIdRaw(requestParameters: GetConversationByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConversationUio>>;
|
|
66
76
|
/**
|
|
67
77
|
* Retrieves details of a specific conversation including all messages
|
|
68
78
|
* Get a conversation by ID
|
|
69
79
|
*/
|
|
70
|
-
|
|
80
|
+
getConversationById(conversationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConversationUio>;
|
|
71
81
|
/**
|
|
72
82
|
* Retrieves a specific message by ID from a conversation
|
|
73
83
|
* Get a specific message from a conversation
|
|
74
84
|
*/
|
|
75
|
-
|
|
85
|
+
getMessageByIdRaw(requestParameters: GetMessageByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChatMessageUio>>;
|
|
76
86
|
/**
|
|
77
87
|
* Retrieves a specific message by ID from a conversation
|
|
78
88
|
* Get a specific message from a conversation
|
|
79
89
|
*/
|
|
80
|
-
|
|
90
|
+
getMessageById(conversationId: string, messageId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChatMessageUio>;
|
|
81
91
|
/**
|
|
82
92
|
* Adds a new message to an existing conversation and gets the AI response
|
|
83
93
|
* Send a message to an existing conversation
|
|
84
94
|
*/
|
|
85
|
-
|
|
95
|
+
sendMessageToConversationRaw(requestParameters: SendMessageToConversationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PromptCreateResponseUio>>;
|
|
86
96
|
/**
|
|
87
97
|
* Adds a new message to an existing conversation and gets the AI response
|
|
88
98
|
* Send a message to an existing conversation
|
|
89
99
|
*/
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Create a new empty conversation for the specified agent.
|
|
93
|
-
* Create a new conversation
|
|
94
|
-
*/
|
|
95
|
-
conversationsPostRaw(requestParameters: ConversationsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BodyWithIdUio>>;
|
|
96
|
-
/**
|
|
97
|
-
* Create a new empty conversation for the specified agent.
|
|
98
|
-
* Create a new conversation
|
|
99
|
-
*/
|
|
100
|
-
conversationsPost(agentId: string, promptFlowCreateRequestUio: PromptFlowCreateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BodyWithIdUio>;
|
|
100
|
+
sendMessageToConversation(conversationId: string, messageUio: MessageUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PromptCreateResponseUio>;
|
|
101
101
|
}
|