@breign/client 1.0.111 → 1.0.113
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 +60 -10
- package/dist/apis/AgentApi.js +99 -7
- package/dist/apis/MetricsApi.d.ts +131 -7
- package/dist/apis/MetricsApi.js +269 -5
- package/dist/models/AgentFeedbackMetricsUio.d.ts +50 -0
- package/dist/models/AgentFeedbackMetricsUio.js +60 -0
- package/dist/models/AgentMetricsByAppUio.d.ts +56 -0
- package/dist/models/AgentMetricsByAppUio.js +64 -0
- package/dist/models/AgentMetricsOverviewUio.d.ts +79 -0
- package/dist/models/AgentMetricsOverviewUio.js +31 -0
- package/dist/models/AgentMetricsPeriodComparisonUio.d.ts +41 -0
- package/dist/models/AgentMetricsPeriodComparisonUio.js +55 -0
- package/dist/models/AgentMetricsPeriodSnapshotUio.d.ts +68 -0
- package/dist/models/AgentMetricsPeriodSnapshotUio.js +74 -0
- package/dist/models/AgentMetricsUnitsTypeUio.d.ts +1 -0
- package/dist/models/AgentMetricsUnitsTypeUio.js +2 -1
- package/dist/models/AgentTokenBreakdownUio.d.ts +44 -0
- package/dist/models/AgentTokenBreakdownUio.js +58 -0
- package/dist/models/AgentTokenUsageByTaskUio.d.ts +38 -0
- package/dist/models/AgentTokenUsageByTaskUio.js +54 -0
- package/dist/models/AgentTokenUsageMetricUio.d.ts +56 -0
- package/dist/models/AgentTokenUsageMetricUio.js +66 -0
- package/dist/models/AgentToolUsageMetricUio.d.ts +38 -0
- package/dist/models/AgentToolUsageMetricUio.js +54 -0
- package/dist/models/AppCreateRequestEphemeralInstancesUio.d.ts +38 -0
- package/dist/models/AppCreateRequestEphemeralInstancesUio.js +54 -0
- package/dist/models/AppCreateRequestUio.d.ts +7 -0
- package/dist/models/AppCreateRequestUio.js +3 -0
- package/dist/models/AppUio.d.ts +3 -3
- package/dist/models/AppUio.js +3 -3
- package/dist/models/AppUpdateRequestUio.d.ts +7 -0
- package/dist/models/AppUpdateRequestUio.js +3 -0
- package/dist/models/EphemeralInstancesMetricsResponseUio.d.ts +39 -0
- package/dist/models/EphemeralInstancesMetricsResponseUio.js +55 -0
- package/dist/models/EphemeralInstancesTimeSeriesPointUio.d.ts +44 -0
- package/dist/models/EphemeralInstancesTimeSeriesPointUio.js +58 -0
- package/dist/models/MetricForDayInnerIdUio.d.ts +56 -0
- package/dist/models/MetricForDayInnerIdUio.js +56 -0
- package/dist/models/MetricForDayInnerUio.d.ts +51 -0
- package/dist/models/MetricForDayInnerUio.js +57 -0
- package/dist/models/MetricForVisitorByMonthInnerUio.d.ts +44 -0
- package/dist/models/MetricForVisitorByMonthInnerUio.js +58 -0
- package/dist/models/MetricUio.d.ts +6 -0
- package/dist/models/MetricUio.js +2 -0
- package/dist/models/MetricsBrainsAgentResponseUio.d.ts +51 -0
- package/dist/models/MetricsBrainsAgentResponseUio.js +63 -0
- package/dist/models/MetricsTopAgentsResponseInnerUio.d.ts +50 -0
- package/dist/models/MetricsTopAgentsResponseInnerUio.js +54 -0
- package/dist/models/MetricsTopAgentsUsageResponseInnerUio.d.ts +44 -0
- package/dist/models/MetricsTopAgentsUsageResponseInnerUio.js +58 -0
- package/dist/models/MetricsUsersResponseUio.d.ts +39 -0
- package/dist/models/MetricsUsersResponseUio.js +55 -0
- package/dist/models/OrgUsageMetricsResponseTotalUio.d.ts +38 -0
- package/dist/models/OrgUsageMetricsResponseTotalUio.js +54 -0
- package/dist/models/OrgUsageMetricsResponseUio.d.ts +40 -0
- package/dist/models/OrgUsageMetricsResponseUio.js +56 -0
- package/dist/models/OrgUsageTimeSeriesPointUio.d.ts +50 -0
- package/dist/models/OrgUsageTimeSeriesPointUio.js +62 -0
- package/dist/models/SubscriptionAdditionalMetricUio.d.ts +44 -0
- package/dist/models/SubscriptionAdditionalMetricUio.js +58 -0
- package/dist/models/SubscriptionInteractionsMetricUio.d.ts +39 -0
- package/dist/models/SubscriptionInteractionsMetricUio.js +55 -0
- package/dist/models/SubscriptionMetricUio.d.ts +6 -5
- package/dist/models/SubscriptionMetricUio.js +12 -5
- package/dist/models/TotalTokensUsedByAgentUio.d.ts +38 -0
- package/dist/models/TotalTokensUsedByAgentUio.js +50 -0
- package/dist/models/index.d.ts +24 -1
- package/dist/models/index.js +24 -1
- package/dist/openapi.json +1069 -67
- package/package.json +1 -1
- package/dist/models/AppEphemeralInstancesUio.d.ts +0 -38
- package/dist/models/AppEphemeralInstancesUio.js +0 -50
package/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, S3UploadBodyUio } from '../models/index';
|
|
13
|
+
import type { AdvancedFlowEditorUio, AdvancedFlowEditorUpdateRequestUio, AgentDuplicateRequestUio, AgentFlowCreateUio, AgentFlowUio, AgentMetricsEventUio, AgentMetricsOverviewUio, AgentModuleUio, AgentPatchUio, AgentRequestUio, AgentSubscriptionUio, AgentUio, AgentUsageMetricsUio, BodyWithIdUio, ChatUio, ConversationAttachmentDownloadUrlUio, DeleteMessageAudio200ResponseUio, EphemeralInstancesMetricsResponseUio, FileCreationRequestUio, FileCreationResponseUio, FlowEditorUio, FlowEditorUpdateRequestUio, MessageAudioDownloadUrlUio, OrgUsageMetricsResponseUio, S3UploadBodyUio } from '../models/index';
|
|
14
14
|
export interface AddModuleRequest {
|
|
15
15
|
agentId: string;
|
|
16
16
|
agentModuleUio: AgentModuleUio;
|
|
@@ -53,19 +53,31 @@ export interface GetAgentConversationByIdRequest {
|
|
|
53
53
|
}
|
|
54
54
|
export interface GetAgentMetricsRequest {
|
|
55
55
|
agentId: string;
|
|
56
|
-
startDate?:
|
|
57
|
-
endDate?:
|
|
56
|
+
startDate?: string;
|
|
57
|
+
endDate?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface GetAgentMetricsEphemeralInstancesRequest {
|
|
60
|
+
agentId: string;
|
|
61
|
+
startDate?: string;
|
|
62
|
+
endDate?: string;
|
|
63
|
+
granularity?: GetAgentMetricsEphemeralInstancesGranularityEnum;
|
|
58
64
|
}
|
|
59
65
|
export interface GetAgentMetricsEventsRequest {
|
|
60
66
|
agentId: string;
|
|
61
67
|
offset?: number;
|
|
62
|
-
startDate?:
|
|
63
|
-
endDate?:
|
|
68
|
+
startDate?: string;
|
|
69
|
+
endDate?: string;
|
|
64
70
|
}
|
|
65
71
|
export interface GetAgentMetricsOverviewRequest {
|
|
66
72
|
agentId: string;
|
|
67
|
-
startDate?:
|
|
68
|
-
endDate?:
|
|
73
|
+
startDate?: string;
|
|
74
|
+
endDate?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface GetAgentMetricsUsageRequest {
|
|
77
|
+
agentId: string;
|
|
78
|
+
startDate?: string;
|
|
79
|
+
endDate?: string;
|
|
80
|
+
granularity?: GetAgentMetricsUsageGranularityEnum;
|
|
69
81
|
}
|
|
70
82
|
export interface GetAgentsRequest {
|
|
71
83
|
isCreator?: boolean;
|
|
@@ -277,7 +289,17 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
277
289
|
* Retrieves detailed usage metrics for a specific agent (admin only)
|
|
278
290
|
* Get detailed agent metrics
|
|
279
291
|
*/
|
|
280
|
-
getAgentMetrics(agentId: string, startDate?:
|
|
292
|
+
getAgentMetrics(agentId: string, startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentUsageMetricsUio>>;
|
|
293
|
+
/**
|
|
294
|
+
* Returns ephemeral instance creation counts over time for an agent
|
|
295
|
+
* Get ephemeral instances metrics for an agent
|
|
296
|
+
*/
|
|
297
|
+
getAgentMetricsEphemeralInstancesRaw(requestParameters: GetAgentMetricsEphemeralInstancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EphemeralInstancesMetricsResponseUio>>;
|
|
298
|
+
/**
|
|
299
|
+
* Returns ephemeral instance creation counts over time for an agent
|
|
300
|
+
* Get ephemeral instances metrics for an agent
|
|
301
|
+
*/
|
|
302
|
+
getAgentMetricsEphemeralInstances(agentId: string, startDate?: string, endDate?: string, granularity?: GetAgentMetricsEphemeralInstancesGranularityEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EphemeralInstancesMetricsResponseUio>;
|
|
281
303
|
/**
|
|
282
304
|
* Retrieves detailed metric events for a specific agent (admin only)
|
|
283
305
|
* Get agent metrics events
|
|
@@ -287,7 +309,7 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
287
309
|
* Retrieves detailed metric events for a specific agent (admin only)
|
|
288
310
|
* Get agent metrics events
|
|
289
311
|
*/
|
|
290
|
-
getAgentMetricsEvents(agentId: string, offset?: number, startDate?:
|
|
312
|
+
getAgentMetricsEvents(agentId: string, offset?: number, startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentMetricsEventUio>>;
|
|
291
313
|
/**
|
|
292
314
|
* Retrieves usage metrics overview for a specific agent
|
|
293
315
|
* Get agent metrics overview
|
|
@@ -297,7 +319,17 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
297
319
|
* Retrieves usage metrics overview for a specific agent
|
|
298
320
|
* Get agent metrics overview
|
|
299
321
|
*/
|
|
300
|
-
getAgentMetricsOverview(agentId: string, startDate?:
|
|
322
|
+
getAgentMetricsOverview(agentId: string, startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentMetricsOverviewUio>;
|
|
323
|
+
/**
|
|
324
|
+
* Returns LLM requests and token usage over time for a specific agent
|
|
325
|
+
* Get usage metrics for an agent
|
|
326
|
+
*/
|
|
327
|
+
getAgentMetricsUsageRaw(requestParameters: GetAgentMetricsUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgUsageMetricsResponseUio>>;
|
|
328
|
+
/**
|
|
329
|
+
* Returns LLM requests and token usage over time for a specific agent
|
|
330
|
+
* Get usage metrics for an agent
|
|
331
|
+
*/
|
|
332
|
+
getAgentMetricsUsage(agentId: string, startDate?: string, endDate?: string, granularity?: GetAgentMetricsUsageGranularityEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgUsageMetricsResponseUio>;
|
|
301
333
|
/**
|
|
302
334
|
* Get all agents accessible to user
|
|
303
335
|
* Get all agents
|
|
@@ -501,6 +533,24 @@ export declare class AgentApi extends runtime.BaseAPI {
|
|
|
501
533
|
*/
|
|
502
534
|
upsertFlowEditor(agentId: string, flowEditorUpdateRequestUio: FlowEditorUpdateRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
503
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* @export
|
|
538
|
+
*/
|
|
539
|
+
export declare const GetAgentMetricsEphemeralInstancesGranularityEnum: {
|
|
540
|
+
readonly Hour: "hour";
|
|
541
|
+
readonly Day: "day";
|
|
542
|
+
readonly Week: "week";
|
|
543
|
+
};
|
|
544
|
+
export type GetAgentMetricsEphemeralInstancesGranularityEnum = typeof GetAgentMetricsEphemeralInstancesGranularityEnum[keyof typeof GetAgentMetricsEphemeralInstancesGranularityEnum];
|
|
545
|
+
/**
|
|
546
|
+
* @export
|
|
547
|
+
*/
|
|
548
|
+
export declare const GetAgentMetricsUsageGranularityEnum: {
|
|
549
|
+
readonly Hour: "hour";
|
|
550
|
+
readonly Day: "day";
|
|
551
|
+
readonly Week: "week";
|
|
552
|
+
};
|
|
553
|
+
export type GetAgentMetricsUsageGranularityEnum = typeof GetAgentMetricsUsageGranularityEnum[keyof typeof GetAgentMetricsUsageGranularityEnum];
|
|
504
554
|
/**
|
|
505
555
|
* @export
|
|
506
556
|
*/
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.AgentApi = void 0;
|
|
49
|
+
exports.ListOrganizationAgentsProviderSourceEnum = exports.GetConversationsForAgentMessageReactionEnum = exports.GetConversationsForAgentSortOrderEnum = exports.GetAgentsProviderSourceEnum = exports.GetAgentMetricsUsageGranularityEnum = exports.GetAgentMetricsEphemeralInstancesGranularityEnum = exports.AgentApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const index_1 = require("../models/index");
|
|
52
52
|
/**
|
|
@@ -406,10 +406,10 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
406
406
|
}
|
|
407
407
|
const queryParameters = {};
|
|
408
408
|
if (requestParameters['startDate'] != null) {
|
|
409
|
-
queryParameters['startDate'] = requestParameters['startDate']
|
|
409
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
410
410
|
}
|
|
411
411
|
if (requestParameters['endDate'] != null) {
|
|
412
|
-
queryParameters['endDate'] = requestParameters['endDate']
|
|
412
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
413
413
|
}
|
|
414
414
|
const headerParameters = {};
|
|
415
415
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -431,6 +431,44 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
431
431
|
const response = await this.getAgentMetricsRaw({ agentId: agentId, startDate: startDate, endDate: endDate }, initOverrides);
|
|
432
432
|
return await response.value();
|
|
433
433
|
}
|
|
434
|
+
/**
|
|
435
|
+
* Returns ephemeral instance creation counts over time for an agent
|
|
436
|
+
* Get ephemeral instances metrics for an agent
|
|
437
|
+
*/
|
|
438
|
+
async getAgentMetricsEphemeralInstancesRaw(requestParameters, initOverrides) {
|
|
439
|
+
if (requestParameters['agentId'] == null) {
|
|
440
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentMetricsEphemeralInstances().');
|
|
441
|
+
}
|
|
442
|
+
const queryParameters = {};
|
|
443
|
+
if (requestParameters['startDate'] != null) {
|
|
444
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
445
|
+
}
|
|
446
|
+
if (requestParameters['endDate'] != null) {
|
|
447
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
448
|
+
}
|
|
449
|
+
if (requestParameters['granularity'] != null) {
|
|
450
|
+
queryParameters['granularity'] = requestParameters['granularity'];
|
|
451
|
+
}
|
|
452
|
+
const headerParameters = {};
|
|
453
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
454
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
455
|
+
}
|
|
456
|
+
const response = await this.request({
|
|
457
|
+
path: `/agents/{agentId}/metrics/ephemeral-instances`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
458
|
+
method: 'GET',
|
|
459
|
+
headers: headerParameters,
|
|
460
|
+
query: queryParameters,
|
|
461
|
+
}, initOverrides);
|
|
462
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EphemeralInstancesMetricsResponseUioFromJSON)(jsonValue));
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Returns ephemeral instance creation counts over time for an agent
|
|
466
|
+
* Get ephemeral instances metrics for an agent
|
|
467
|
+
*/
|
|
468
|
+
async getAgentMetricsEphemeralInstances(agentId, startDate, endDate, granularity, initOverrides) {
|
|
469
|
+
const response = await this.getAgentMetricsEphemeralInstancesRaw({ agentId: agentId, startDate: startDate, endDate: endDate, granularity: granularity }, initOverrides);
|
|
470
|
+
return await response.value();
|
|
471
|
+
}
|
|
434
472
|
/**
|
|
435
473
|
* Retrieves detailed metric events for a specific agent (admin only)
|
|
436
474
|
* Get agent metrics events
|
|
@@ -444,10 +482,10 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
444
482
|
queryParameters['offset'] = requestParameters['offset'];
|
|
445
483
|
}
|
|
446
484
|
if (requestParameters['startDate'] != null) {
|
|
447
|
-
queryParameters['startDate'] = requestParameters['startDate']
|
|
485
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
448
486
|
}
|
|
449
487
|
if (requestParameters['endDate'] != null) {
|
|
450
|
-
queryParameters['endDate'] = requestParameters['endDate']
|
|
488
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
451
489
|
}
|
|
452
490
|
const headerParameters = {};
|
|
453
491
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -479,10 +517,10 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
479
517
|
}
|
|
480
518
|
const queryParameters = {};
|
|
481
519
|
if (requestParameters['startDate'] != null) {
|
|
482
|
-
queryParameters['startDate'] = requestParameters['startDate']
|
|
520
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
483
521
|
}
|
|
484
522
|
if (requestParameters['endDate'] != null) {
|
|
485
|
-
queryParameters['endDate'] = requestParameters['endDate']
|
|
523
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
486
524
|
}
|
|
487
525
|
const headerParameters = {};
|
|
488
526
|
if (this.configuration && this.configuration.apiKey) {
|
|
@@ -504,6 +542,44 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
504
542
|
const response = await this.getAgentMetricsOverviewRaw({ agentId: agentId, startDate: startDate, endDate: endDate }, initOverrides);
|
|
505
543
|
return await response.value();
|
|
506
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
* Returns LLM requests and token usage over time for a specific agent
|
|
547
|
+
* Get usage metrics for an agent
|
|
548
|
+
*/
|
|
549
|
+
async getAgentMetricsUsageRaw(requestParameters, initOverrides) {
|
|
550
|
+
if (requestParameters['agentId'] == null) {
|
|
551
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling getAgentMetricsUsage().');
|
|
552
|
+
}
|
|
553
|
+
const queryParameters = {};
|
|
554
|
+
if (requestParameters['startDate'] != null) {
|
|
555
|
+
queryParameters['startDate'] = requestParameters['startDate'];
|
|
556
|
+
}
|
|
557
|
+
if (requestParameters['endDate'] != null) {
|
|
558
|
+
queryParameters['endDate'] = requestParameters['endDate'];
|
|
559
|
+
}
|
|
560
|
+
if (requestParameters['granularity'] != null) {
|
|
561
|
+
queryParameters['granularity'] = requestParameters['granularity'];
|
|
562
|
+
}
|
|
563
|
+
const headerParameters = {};
|
|
564
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
565
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
566
|
+
}
|
|
567
|
+
const response = await this.request({
|
|
568
|
+
path: `/agents/{agentId}/metrics/usage`.replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
569
|
+
method: 'GET',
|
|
570
|
+
headers: headerParameters,
|
|
571
|
+
query: queryParameters,
|
|
572
|
+
}, initOverrides);
|
|
573
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrgUsageMetricsResponseUioFromJSON)(jsonValue));
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Returns LLM requests and token usage over time for a specific agent
|
|
577
|
+
* Get usage metrics for an agent
|
|
578
|
+
*/
|
|
579
|
+
async getAgentMetricsUsage(agentId, startDate, endDate, granularity, initOverrides) {
|
|
580
|
+
const response = await this.getAgentMetricsUsageRaw({ agentId: agentId, startDate: startDate, endDate: endDate, granularity: granularity }, initOverrides);
|
|
581
|
+
return await response.value();
|
|
582
|
+
}
|
|
507
583
|
/**
|
|
508
584
|
* Get all agents accessible to user
|
|
509
585
|
* Get all agents
|
|
@@ -1192,6 +1268,22 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
1192
1268
|
}
|
|
1193
1269
|
}
|
|
1194
1270
|
exports.AgentApi = AgentApi;
|
|
1271
|
+
/**
|
|
1272
|
+
* @export
|
|
1273
|
+
*/
|
|
1274
|
+
exports.GetAgentMetricsEphemeralInstancesGranularityEnum = {
|
|
1275
|
+
Hour: 'hour',
|
|
1276
|
+
Day: 'day',
|
|
1277
|
+
Week: 'week'
|
|
1278
|
+
};
|
|
1279
|
+
/**
|
|
1280
|
+
* @export
|
|
1281
|
+
*/
|
|
1282
|
+
exports.GetAgentMetricsUsageGranularityEnum = {
|
|
1283
|
+
Hour: 'hour',
|
|
1284
|
+
Day: 'day',
|
|
1285
|
+
Week: 'week'
|
|
1286
|
+
};
|
|
1195
1287
|
/**
|
|
1196
1288
|
* @export
|
|
1197
1289
|
*/
|
|
@@ -10,14 +10,50 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { MetricForAgentUio, MetricUio } from '../models/index';
|
|
13
|
+
import type { EphemeralInstancesMetricsResponseUio, MetricForAgentUio, MetricForDayInnerUio, MetricUio, MetricsBrainsAgentResponseUio, MetricsTopAgentsResponseInnerUio, MetricsTopAgentsUsageResponseInnerUio, MetricsUsersResponseUio, OrgUsageMetricsResponseUio } from '../models/index';
|
|
14
14
|
export interface GetMetricsRequest {
|
|
15
|
-
startDate?:
|
|
16
|
-
endDate?:
|
|
15
|
+
startDate?: string;
|
|
16
|
+
endDate?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface GetMetricsAgentsRequest {
|
|
19
|
-
startDate?:
|
|
20
|
-
endDate?:
|
|
19
|
+
startDate?: string;
|
|
20
|
+
endDate?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetMetricsBrainsAgentRequest {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
agentId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetMetricsDayMetricsRequest {
|
|
27
|
+
organizationId: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GetMetricsOrganizationEphemeralInstancesRequest {
|
|
30
|
+
organizationId: string;
|
|
31
|
+
startDate?: string;
|
|
32
|
+
endDate?: string;
|
|
33
|
+
granularity?: GetMetricsOrganizationEphemeralInstancesGranularityEnum;
|
|
34
|
+
}
|
|
35
|
+
export interface GetMetricsOrganizationUsageRequest {
|
|
36
|
+
organizationId: string;
|
|
37
|
+
startDate?: string;
|
|
38
|
+
endDate?: string;
|
|
39
|
+
granularity?: GetMetricsOrganizationUsageGranularityEnum;
|
|
40
|
+
}
|
|
41
|
+
export interface GetMetricsTopAgentsRequest {
|
|
42
|
+
organizationId: string;
|
|
43
|
+
startDate?: string;
|
|
44
|
+
endDate?: string;
|
|
45
|
+
agentsIds?: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
export interface GetMetricsTopAgentsUsageRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
startDate?: string;
|
|
50
|
+
endDate?: string;
|
|
51
|
+
agentsIds?: Array<string>;
|
|
52
|
+
}
|
|
53
|
+
export interface GetMetricsUsersVisitorsRequest {
|
|
54
|
+
organizationId: string;
|
|
55
|
+
startDate?: string;
|
|
56
|
+
endDate?: string;
|
|
21
57
|
}
|
|
22
58
|
/**
|
|
23
59
|
*
|
|
@@ -32,7 +68,7 @@ export declare class MetricsApi extends runtime.BaseAPI {
|
|
|
32
68
|
* Retrieves usage metrics for all agents within a date range (admin only)
|
|
33
69
|
* Get usage metrics
|
|
34
70
|
*/
|
|
35
|
-
getMetrics(startDate?:
|
|
71
|
+
getMetrics(startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricUio>>;
|
|
36
72
|
/**
|
|
37
73
|
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
38
74
|
* Get agent-specific metrics
|
|
@@ -42,5 +78,93 @@ export declare class MetricsApi extends runtime.BaseAPI {
|
|
|
42
78
|
* Retrieves usage metrics broken down by agent within a date range (admin only)
|
|
43
79
|
* Get agent-specific metrics
|
|
44
80
|
*/
|
|
45
|
-
getMetricsAgents(startDate?:
|
|
81
|
+
getMetricsAgents(startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricForAgentUio>>;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves metrics for a brain agent
|
|
84
|
+
* Get metrics for a brain agent
|
|
85
|
+
*/
|
|
86
|
+
getMetricsBrainsAgentRaw(requestParameters: GetMetricsBrainsAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MetricsBrainsAgentResponseUio>>;
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves metrics for a brain agent
|
|
89
|
+
* Get metrics for a brain agent
|
|
90
|
+
*/
|
|
91
|
+
getMetricsBrainsAgent(organizationId: string, agentId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MetricsBrainsAgentResponseUio>;
|
|
92
|
+
/**
|
|
93
|
+
* Retrieves usage metrics broken down by day within a date range (admin only)
|
|
94
|
+
* Get day-specific metrics
|
|
95
|
+
*/
|
|
96
|
+
getMetricsDayMetricsRaw(requestParameters: GetMetricsDayMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Array<MetricForDayInnerUio>>>>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves usage metrics broken down by day within a date range (admin only)
|
|
99
|
+
* Get day-specific metrics
|
|
100
|
+
*/
|
|
101
|
+
getMetricsDayMetrics(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Array<MetricForDayInnerUio>>>;
|
|
102
|
+
/**
|
|
103
|
+
* Returns ephemeral instance creation counts over time for all agents in the organization
|
|
104
|
+
* Get ephemeral instances metrics for an organization
|
|
105
|
+
*/
|
|
106
|
+
getMetricsOrganizationEphemeralInstancesRaw(requestParameters: GetMetricsOrganizationEphemeralInstancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EphemeralInstancesMetricsResponseUio>>;
|
|
107
|
+
/**
|
|
108
|
+
* Returns ephemeral instance creation counts over time for all agents in the organization
|
|
109
|
+
* Get ephemeral instances metrics for an organization
|
|
110
|
+
*/
|
|
111
|
+
getMetricsOrganizationEphemeralInstances(organizationId: string, startDate?: string, endDate?: string, granularity?: GetMetricsOrganizationEphemeralInstancesGranularityEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EphemeralInstancesMetricsResponseUio>;
|
|
112
|
+
/**
|
|
113
|
+
* Returns LLM requests and token usage over time for all agents in the organization
|
|
114
|
+
* Get usage metrics for an organization
|
|
115
|
+
*/
|
|
116
|
+
getMetricsOrganizationUsageRaw(requestParameters: GetMetricsOrganizationUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrgUsageMetricsResponseUio>>;
|
|
117
|
+
/**
|
|
118
|
+
* Returns LLM requests and token usage over time for all agents in the organization
|
|
119
|
+
* Get usage metrics for an organization
|
|
120
|
+
*/
|
|
121
|
+
getMetricsOrganizationUsage(organizationId: string, startDate?: string, endDate?: string, granularity?: GetMetricsOrganizationUsageGranularityEnum, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrgUsageMetricsResponseUio>;
|
|
122
|
+
/**
|
|
123
|
+
* Retrieves usage metrics broken down by top agents within a date range (admin only)
|
|
124
|
+
* Get top agents metrics
|
|
125
|
+
*/
|
|
126
|
+
getMetricsTopAgentsRaw(requestParameters: GetMetricsTopAgentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricsTopAgentsResponseInnerUio>>>;
|
|
127
|
+
/**
|
|
128
|
+
* Retrieves usage metrics broken down by top agents within a date range (admin only)
|
|
129
|
+
* Get top agents metrics
|
|
130
|
+
*/
|
|
131
|
+
getMetricsTopAgents(organizationId: string, startDate?: string, endDate?: string, agentsIds?: Array<string>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricsTopAgentsResponseInnerUio>>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves usage metrics broken down by top agents within a date range (admin only)
|
|
134
|
+
* Get top agents usage metrics
|
|
135
|
+
*/
|
|
136
|
+
getMetricsTopAgentsUsageRaw(requestParameters: GetMetricsTopAgentsUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MetricsTopAgentsUsageResponseInnerUio>>>;
|
|
137
|
+
/**
|
|
138
|
+
* Retrieves usage metrics broken down by top agents within a date range (admin only)
|
|
139
|
+
* Get top agents usage metrics
|
|
140
|
+
*/
|
|
141
|
+
getMetricsTopAgentsUsage(organizationId: string, startDate?: string, endDate?: string, agentsIds?: Array<string>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MetricsTopAgentsUsageResponseInnerUio>>;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves usage metrics broken down by users within a date range (admin only)
|
|
144
|
+
* Get users metrics
|
|
145
|
+
*/
|
|
146
|
+
getMetricsUsersVisitorsRaw(requestParameters: GetMetricsUsersVisitorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MetricsUsersResponseUio>>;
|
|
147
|
+
/**
|
|
148
|
+
* Retrieves usage metrics broken down by users within a date range (admin only)
|
|
149
|
+
* Get users metrics
|
|
150
|
+
*/
|
|
151
|
+
getMetricsUsersVisitors(organizationId: string, startDate?: string, endDate?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MetricsUsersResponseUio>;
|
|
46
152
|
}
|
|
153
|
+
/**
|
|
154
|
+
* @export
|
|
155
|
+
*/
|
|
156
|
+
export declare const GetMetricsOrganizationEphemeralInstancesGranularityEnum: {
|
|
157
|
+
readonly Hour: "hour";
|
|
158
|
+
readonly Day: "day";
|
|
159
|
+
readonly Week: "week";
|
|
160
|
+
};
|
|
161
|
+
export type GetMetricsOrganizationEphemeralInstancesGranularityEnum = typeof GetMetricsOrganizationEphemeralInstancesGranularityEnum[keyof typeof GetMetricsOrganizationEphemeralInstancesGranularityEnum];
|
|
162
|
+
/**
|
|
163
|
+
* @export
|
|
164
|
+
*/
|
|
165
|
+
export declare const GetMetricsOrganizationUsageGranularityEnum: {
|
|
166
|
+
readonly Hour: "hour";
|
|
167
|
+
readonly Day: "day";
|
|
168
|
+
readonly Week: "week";
|
|
169
|
+
};
|
|
170
|
+
export type GetMetricsOrganizationUsageGranularityEnum = typeof GetMetricsOrganizationUsageGranularityEnum[keyof typeof GetMetricsOrganizationUsageGranularityEnum];
|