@coval/sdk 0.4.1 → 0.4.2
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/generated/apis/ConversationsApi.d.ts +8 -8
- package/dist/generated/apis/ConversationsApi.js +4 -4
- package/dist/generated/apis/ReportsApi.d.ts +17 -14
- package/dist/generated/apis/ReportsApi.d.ts.map +1 -1
- package/dist/generated/apis/ReportsApi.js +9 -6
- package/dist/generated/apis/ReportsApi.js.map +1 -1
- package/dist/generated/apis/TracesApi.d.ts +40 -0
- package/dist/generated/apis/TracesApi.d.ts.map +1 -1
- package/dist/generated/apis/TracesApi.js +38 -0
- package/dist/generated/apis/TracesApi.js.map +1 -1
- package/dist/generated/models/CovalAgentsAPICreateAgentRequest.d.ts +23 -0
- package/dist/generated/models/CovalAgentsAPICreateAgentRequest.d.ts.map +1 -1
- package/dist/generated/models/CovalAgentsAPICreateAgentRequest.js.map +1 -1
- package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts +4 -0
- package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts.map +1 -1
- package/dist/generated/models/CovalAgentsAPISimulatorType.js +4 -0
- package/dist/generated/models/CovalAgentsAPISimulatorType.js.map +1 -1
- package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.d.ts +27 -4
- package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.d.ts.map +1 -1
- package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.js +2 -0
- package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.js.map +1 -1
- package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.d.ts +2 -1
- package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.d.ts.map +1 -1
- package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.js +2 -1
- package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.js.map +1 -1
- package/dist/generated/models/CovalOrganizationAPIConversationMetricRuleMetadataValue.d.ts +1 -1
- package/dist/generated/models/CovalReportsAPIError.d.ts +1 -0
- package/dist/generated/models/CovalReportsAPIError.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIError.js +1 -0
- package/dist/generated/models/CovalReportsAPIError.js.map +1 -1
- package/dist/generated/models/CovalReportsAPIGetReportResponse.d.ts +3 -3
- package/dist/generated/models/CovalReportsAPIGetReportResponse.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIGetReportResponse.js +3 -3
- package/dist/generated/models/CovalReportsAPIGetReportResponse.js.map +1 -1
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.d.ts +45 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.js +52 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.d.ts +45 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.js +46 -0
- package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportDetail.d.ts +126 -0
- package/dist/generated/models/CovalReportsAPIReportDetail.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportDetail.js +104 -0
- package/dist/generated/models/CovalReportsAPIReportDetail.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.d.ts +40 -0
- package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.js +46 -0
- package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportMetricOutput.d.ts +1 -1
- package/dist/generated/models/CovalReportsAPIReportMetricOutput.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.d.ts +3 -8
- package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.js +30 -8
- package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.js.map +1 -1
- package/dist/generated/models/CovalReportsAPIReportViewConfiguration.d.ts +104 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfiguration.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfiguration.js +100 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfiguration.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.d.ts +104 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.d.ts.map +1 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.js +84 -0
- package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.js.map +1 -0
- package/dist/generated/models/CovalReportsAPIUpdateReportRequest.d.ts +10 -0
- package/dist/generated/models/CovalReportsAPIUpdateReportRequest.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIUpdateReportRequest.js +3 -0
- package/dist/generated/models/CovalReportsAPIUpdateReportRequest.js.map +1 -1
- package/dist/generated/models/CovalReportsAPIUpdateReportResponse.d.ts +3 -3
- package/dist/generated/models/CovalReportsAPIUpdateReportResponse.d.ts.map +1 -1
- package/dist/generated/models/CovalReportsAPIUpdateReportResponse.js +3 -3
- package/dist/generated/models/CovalReportsAPIUpdateReportResponse.js.map +1 -1
- package/dist/generated/models/TracesAPITraceSearchAggregateStats.d.ts +39 -0
- package/dist/generated/models/TracesAPITraceSearchAggregateStats.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchAggregateStats.js +48 -0
- package/dist/generated/models/TracesAPITraceSearchAggregateStats.js.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchAttributeFilter.d.ts +58 -0
- package/dist/generated/models/TracesAPITraceSearchAttributeFilter.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchAttributeFilter.js +60 -0
- package/dist/generated/models/TracesAPITraceSearchAttributeFilter.js.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchCallResult.d.ts +120 -0
- package/dist/generated/models/TracesAPITraceSearchCallResult.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchCallResult.js +96 -0
- package/dist/generated/models/TracesAPITraceSearchCallResult.js.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchFilters.d.ts +113 -0
- package/dist/generated/models/TracesAPITraceSearchFilters.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchFilters.js +80 -0
- package/dist/generated/models/TracesAPITraceSearchFilters.js.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchRequest.d.ts +46 -0
- package/dist/generated/models/TracesAPITraceSearchRequest.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchRequest.js +47 -0
- package/dist/generated/models/TracesAPITraceSearchRequest.js.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchResponse.d.ts +53 -0
- package/dist/generated/models/TracesAPITraceSearchResponse.d.ts.map +1 -0
- package/dist/generated/models/TracesAPITraceSearchResponse.js +56 -0
- package/dist/generated/models/TracesAPITraceSearchResponse.js.map +1 -0
- package/dist/generated/models/index.d.ts +12 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +12 -0
- package/dist/generated/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/apis/ConversationsApi.ts +8 -8
- package/src/generated/apis/ReportsApi.ts +21 -14
- package/src/generated/apis/TracesApi.ts +84 -0
- package/src/generated/models/CovalAgentsAPICreateAgentRequest.ts +23 -0
- package/src/generated/models/CovalAgentsAPISimulatorType.ts +4 -0
- package/src/generated/models/CovalConversationsAPIPatchConversationRequest.ts +27 -4
- package/src/generated/models/CovalOrganizationAPIConversationMetricRule.ts +3 -2
- package/src/generated/models/CovalOrganizationAPIConversationMetricRuleMetadataValue.ts +1 -1
- package/src/generated/models/CovalReportsAPIError.ts +1 -0
- package/src/generated/models/CovalReportsAPIGetReportResponse.ts +10 -10
- package/src/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.ts +84 -0
- package/src/generated/models/CovalReportsAPIMonitoringFiltersPatch.ts +81 -0
- package/src/generated/models/CovalReportsAPIReportDetail.ts +204 -0
- package/src/generated/models/CovalReportsAPIReportMetricConfigurationEntry.ts +76 -0
- package/src/generated/models/CovalReportsAPIReportMetricOutput.ts +1 -1
- package/src/generated/models/CovalReportsAPIReportMetricOutputValue.ts +33 -14
- package/src/generated/models/CovalReportsAPIReportViewConfiguration.ts +167 -0
- package/src/generated/models/CovalReportsAPIReportViewConfigurationPatch.ts +158 -0
- package/src/generated/models/CovalReportsAPIUpdateReportRequest.ts +18 -0
- package/src/generated/models/CovalReportsAPIUpdateReportResponse.ts +10 -10
- package/src/generated/models/TracesAPITraceSearchAggregateStats.ts +75 -0
- package/src/generated/models/TracesAPITraceSearchAttributeFilter.ts +98 -0
- package/src/generated/models/TracesAPITraceSearchCallResult.ts +191 -0
- package/src/generated/models/TracesAPITraceSearchFilters.ts +176 -0
- package/src/generated/models/TracesAPITraceSearchRequest.ts +89 -0
- package/src/generated/models/TracesAPITraceSearchResponse.ts +107 -0
- package/src/generated/models/index.ts +12 -0
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Coval Agents API
|
|
5
|
+
* Manage configurations for simulations and evaluations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@coval.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { CovalReportsAPIMonitoringFiltersConfiguration } from './CovalReportsAPIMonitoringFiltersConfiguration.js';
|
|
17
|
+
import {
|
|
18
|
+
CovalReportsAPIMonitoringFiltersConfigurationFromJSON,
|
|
19
|
+
CovalReportsAPIMonitoringFiltersConfigurationFromJSONTyped,
|
|
20
|
+
CovalReportsAPIMonitoringFiltersConfigurationToJSON,
|
|
21
|
+
CovalReportsAPIMonitoringFiltersConfigurationToJSONTyped,
|
|
22
|
+
} from './CovalReportsAPIMonitoringFiltersConfiguration.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CovalReportsAPIReportViewConfiguration
|
|
28
|
+
*/
|
|
29
|
+
export interface CovalReportsAPIReportViewConfiguration {
|
|
30
|
+
/**
|
|
31
|
+
* True when rows are resolved dynamically from monitoring data.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
34
|
+
*/
|
|
35
|
+
is_monitoring: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {CovalReportsAPIReportViewConfigurationCompareByEnum}
|
|
39
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
40
|
+
*/
|
|
41
|
+
compare_by: CovalReportsAPIReportViewConfigurationCompareByEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Required when `compare_by` is `metadata`; null otherwise.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
46
|
+
*/
|
|
47
|
+
metadata_key: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CovalReportsAPIReportViewConfigurationViewModeEnum}
|
|
51
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
52
|
+
*/
|
|
53
|
+
view_mode: CovalReportsAPIReportViewConfigurationViewModeEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum}
|
|
57
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
58
|
+
*/
|
|
59
|
+
secondary_compare_by: CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Required when `secondary_compare_by` is `metadata`; null otherwise.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
64
|
+
*/
|
|
65
|
+
secondary_metadata_key: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Saved supported cohort filters; null for reports without monitoring filters.
|
|
68
|
+
* @type {CovalReportsAPIMonitoringFiltersConfiguration}
|
|
69
|
+
* @memberof CovalReportsAPIReportViewConfiguration
|
|
70
|
+
*/
|
|
71
|
+
monitoring_filters: CovalReportsAPIMonitoringFiltersConfiguration | null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const CovalReportsAPIReportViewConfigurationCompareByEnum = {
|
|
79
|
+
None: 'none',
|
|
80
|
+
Run: 'run',
|
|
81
|
+
Agent: 'agent',
|
|
82
|
+
Mutation: 'mutation',
|
|
83
|
+
Persona: 'persona',
|
|
84
|
+
TestCase: 'test_case',
|
|
85
|
+
Metadata: 'metadata'
|
|
86
|
+
} as const;
|
|
87
|
+
export type CovalReportsAPIReportViewConfigurationCompareByEnum = typeof CovalReportsAPIReportViewConfigurationCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationCompareByEnum];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const CovalReportsAPIReportViewConfigurationViewModeEnum = {
|
|
93
|
+
Rows: 'rows',
|
|
94
|
+
Grouped: 'grouped'
|
|
95
|
+
} as const;
|
|
96
|
+
export type CovalReportsAPIReportViewConfigurationViewModeEnum = typeof CovalReportsAPIReportViewConfigurationViewModeEnum[keyof typeof CovalReportsAPIReportViewConfigurationViewModeEnum];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum = {
|
|
102
|
+
None: 'none',
|
|
103
|
+
Run: 'run',
|
|
104
|
+
Agent: 'agent',
|
|
105
|
+
Mutation: 'mutation',
|
|
106
|
+
Persona: 'persona',
|
|
107
|
+
TestCase: 'test_case',
|
|
108
|
+
Metadata: 'metadata'
|
|
109
|
+
} as const;
|
|
110
|
+
export type CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum = typeof CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum];
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the CovalReportsAPIReportViewConfiguration interface.
|
|
115
|
+
*/
|
|
116
|
+
export function instanceOfCovalReportsAPIReportViewConfiguration(value: object): value is CovalReportsAPIReportViewConfiguration {
|
|
117
|
+
if (!('is_monitoring' in value) || value['is_monitoring'] === undefined) return false;
|
|
118
|
+
if (!('compare_by' in value) || value['compare_by'] === undefined) return false;
|
|
119
|
+
if (!('metadata_key' in value) || value['metadata_key'] === undefined) return false;
|
|
120
|
+
if (!('view_mode' in value) || value['view_mode'] === undefined) return false;
|
|
121
|
+
if (!('secondary_compare_by' in value) || value['secondary_compare_by'] === undefined) return false;
|
|
122
|
+
if (!('secondary_metadata_key' in value) || value['secondary_metadata_key'] === undefined) return false;
|
|
123
|
+
if (!('monitoring_filters' in value) || value['monitoring_filters'] === undefined) return false;
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function CovalReportsAPIReportViewConfigurationFromJSON(json: any): CovalReportsAPIReportViewConfiguration {
|
|
128
|
+
return CovalReportsAPIReportViewConfigurationFromJSONTyped(json, false);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function CovalReportsAPIReportViewConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportViewConfiguration {
|
|
132
|
+
if (json == null) {
|
|
133
|
+
return json;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
|
|
137
|
+
'is_monitoring': json['is_monitoring'],
|
|
138
|
+
'compare_by': json['compare_by'],
|
|
139
|
+
'metadata_key': json['metadata_key'],
|
|
140
|
+
'view_mode': json['view_mode'],
|
|
141
|
+
'secondary_compare_by': json['secondary_compare_by'],
|
|
142
|
+
'secondary_metadata_key': json['secondary_metadata_key'],
|
|
143
|
+
'monitoring_filters': CovalReportsAPIMonitoringFiltersConfigurationFromJSON(json['monitoring_filters']),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function CovalReportsAPIReportViewConfigurationToJSON(json: any): CovalReportsAPIReportViewConfiguration {
|
|
148
|
+
return CovalReportsAPIReportViewConfigurationToJSONTyped(json, false);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function CovalReportsAPIReportViewConfigurationToJSONTyped(value?: CovalReportsAPIReportViewConfiguration | null, ignoreDiscriminator: boolean = false): any {
|
|
152
|
+
if (value == null) {
|
|
153
|
+
return value;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
return {
|
|
157
|
+
|
|
158
|
+
'is_monitoring': value['is_monitoring'],
|
|
159
|
+
'compare_by': value['compare_by'],
|
|
160
|
+
'metadata_key': value['metadata_key'],
|
|
161
|
+
'view_mode': value['view_mode'],
|
|
162
|
+
'secondary_compare_by': value['secondary_compare_by'],
|
|
163
|
+
'secondary_metadata_key': value['secondary_metadata_key'],
|
|
164
|
+
'monitoring_filters': CovalReportsAPIMonitoringFiltersConfigurationToJSON(value['monitoring_filters']),
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Coval Agents API
|
|
5
|
+
* Manage configurations for simulations and evaluations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@coval.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { CovalReportsAPIMonitoringFiltersPatch } from './CovalReportsAPIMonitoringFiltersPatch.js';
|
|
17
|
+
import {
|
|
18
|
+
CovalReportsAPIMonitoringFiltersPatchFromJSON,
|
|
19
|
+
CovalReportsAPIMonitoringFiltersPatchFromJSONTyped,
|
|
20
|
+
CovalReportsAPIMonitoringFiltersPatchToJSON,
|
|
21
|
+
CovalReportsAPIMonitoringFiltersPatchToJSONTyped,
|
|
22
|
+
} from './CovalReportsAPIMonitoringFiltersPatch.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CovalReportsAPIReportViewConfigurationPatch
|
|
28
|
+
*/
|
|
29
|
+
export interface CovalReportsAPIReportViewConfigurationPatch {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CovalReportsAPIReportViewConfigurationPatchCompareByEnum}
|
|
33
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
34
|
+
*/
|
|
35
|
+
compare_by?: CovalReportsAPIReportViewConfigurationPatchCompareByEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Metadata grouping key. Required when `compare_by` is `metadata`;
|
|
38
|
+
* send null to clear it when changing away from metadata.
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
42
|
+
*/
|
|
43
|
+
metadata_key?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {CovalReportsAPIReportViewConfigurationPatchViewModeEnum}
|
|
47
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
48
|
+
*/
|
|
49
|
+
view_mode?: CovalReportsAPIReportViewConfigurationPatchViewModeEnum;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum}
|
|
53
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
54
|
+
*/
|
|
55
|
+
secondary_compare_by?: CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum;
|
|
56
|
+
/**
|
|
57
|
+
* Secondary metadata grouping key. Required when
|
|
58
|
+
* `secondary_compare_by` is `metadata`; send null to clear it.
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
62
|
+
*/
|
|
63
|
+
secondary_metadata_key?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Supported saved cohort fields. This object is valid only when the
|
|
66
|
+
* stored report has `is_monitoring: true`.
|
|
67
|
+
*
|
|
68
|
+
* @type {CovalReportsAPIMonitoringFiltersPatch}
|
|
69
|
+
* @memberof CovalReportsAPIReportViewConfigurationPatch
|
|
70
|
+
*/
|
|
71
|
+
monitoring_filters?: CovalReportsAPIMonitoringFiltersPatch;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const CovalReportsAPIReportViewConfigurationPatchCompareByEnum = {
|
|
79
|
+
None: 'none',
|
|
80
|
+
Run: 'run',
|
|
81
|
+
Agent: 'agent',
|
|
82
|
+
Mutation: 'mutation',
|
|
83
|
+
Persona: 'persona',
|
|
84
|
+
TestCase: 'test_case',
|
|
85
|
+
Metadata: 'metadata'
|
|
86
|
+
} as const;
|
|
87
|
+
export type CovalReportsAPIReportViewConfigurationPatchCompareByEnum = typeof CovalReportsAPIReportViewConfigurationPatchCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationPatchCompareByEnum];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const CovalReportsAPIReportViewConfigurationPatchViewModeEnum = {
|
|
93
|
+
Rows: 'rows',
|
|
94
|
+
Grouped: 'grouped'
|
|
95
|
+
} as const;
|
|
96
|
+
export type CovalReportsAPIReportViewConfigurationPatchViewModeEnum = typeof CovalReportsAPIReportViewConfigurationPatchViewModeEnum[keyof typeof CovalReportsAPIReportViewConfigurationPatchViewModeEnum];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum = {
|
|
102
|
+
None: 'none',
|
|
103
|
+
Run: 'run',
|
|
104
|
+
Agent: 'agent',
|
|
105
|
+
Mutation: 'mutation',
|
|
106
|
+
Persona: 'persona',
|
|
107
|
+
TestCase: 'test_case',
|
|
108
|
+
Metadata: 'metadata'
|
|
109
|
+
} as const;
|
|
110
|
+
export type CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum = typeof CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationPatchSecondaryCompareByEnum];
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the CovalReportsAPIReportViewConfigurationPatch interface.
|
|
115
|
+
*/
|
|
116
|
+
export function instanceOfCovalReportsAPIReportViewConfigurationPatch(value: object): value is CovalReportsAPIReportViewConfigurationPatch {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function CovalReportsAPIReportViewConfigurationPatchFromJSON(json: any): CovalReportsAPIReportViewConfigurationPatch {
|
|
121
|
+
return CovalReportsAPIReportViewConfigurationPatchFromJSONTyped(json, false);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function CovalReportsAPIReportViewConfigurationPatchFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportViewConfigurationPatch {
|
|
125
|
+
if (json == null) {
|
|
126
|
+
return json;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'compare_by': json['compare_by'] == null ? undefined : json['compare_by'],
|
|
131
|
+
'metadata_key': json['metadata_key'] == null ? undefined : json['metadata_key'],
|
|
132
|
+
'view_mode': json['view_mode'] == null ? undefined : json['view_mode'],
|
|
133
|
+
'secondary_compare_by': json['secondary_compare_by'] == null ? undefined : json['secondary_compare_by'],
|
|
134
|
+
'secondary_metadata_key': json['secondary_metadata_key'] == null ? undefined : json['secondary_metadata_key'],
|
|
135
|
+
'monitoring_filters': json['monitoring_filters'] == null ? undefined : CovalReportsAPIMonitoringFiltersPatchFromJSON(json['monitoring_filters']),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function CovalReportsAPIReportViewConfigurationPatchToJSON(json: any): CovalReportsAPIReportViewConfigurationPatch {
|
|
140
|
+
return CovalReportsAPIReportViewConfigurationPatchToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function CovalReportsAPIReportViewConfigurationPatchToJSONTyped(value?: CovalReportsAPIReportViewConfigurationPatch | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'compare_by': value['compare_by'],
|
|
151
|
+
'metadata_key': value['metadata_key'],
|
|
152
|
+
'view_mode': value['view_mode'],
|
|
153
|
+
'secondary_compare_by': value['secondary_compare_by'],
|
|
154
|
+
'secondary_metadata_key': value['secondary_metadata_key'],
|
|
155
|
+
'monitoring_filters': CovalReportsAPIMonitoringFiltersPatchToJSON(value['monitoring_filters']),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
CovalReportsAPICompareByToJSON,
|
|
21
21
|
CovalReportsAPICompareByToJSONTyped,
|
|
22
22
|
} from './CovalReportsAPICompareBy.js';
|
|
23
|
+
import type { CovalReportsAPIReportViewConfigurationPatch } from './CovalReportsAPIReportViewConfigurationPatch.js';
|
|
24
|
+
import {
|
|
25
|
+
CovalReportsAPIReportViewConfigurationPatchFromJSON,
|
|
26
|
+
CovalReportsAPIReportViewConfigurationPatchFromJSONTyped,
|
|
27
|
+
CovalReportsAPIReportViewConfigurationPatchToJSON,
|
|
28
|
+
CovalReportsAPIReportViewConfigurationPatchToJSONTyped,
|
|
29
|
+
} from './CovalReportsAPIReportViewConfigurationPatch.js';
|
|
23
30
|
import type { CovalReportsAPIReportPermission } from './CovalReportsAPIReportPermission.js';
|
|
24
31
|
import {
|
|
25
32
|
CovalReportsAPIReportPermissionFromJSON,
|
|
@@ -81,6 +88,15 @@ export interface CovalReportsAPIUpdateReportRequest {
|
|
|
81
88
|
* @memberof CovalReportsAPIUpdateReportRequest
|
|
82
89
|
*/
|
|
83
90
|
permissions?: CovalReportsAPIReportPermission;
|
|
91
|
+
/**
|
|
92
|
+
* Merge-only patch for supported report view fields. Requires
|
|
93
|
+
* `If-Match`; cannot be combined with the legacy top-level
|
|
94
|
+
* `compare_by` or `metadata_key` fields.
|
|
95
|
+
*
|
|
96
|
+
* @type {CovalReportsAPIReportViewConfigurationPatch}
|
|
97
|
+
* @memberof CovalReportsAPIUpdateReportRequest
|
|
98
|
+
*/
|
|
99
|
+
view_config?: CovalReportsAPIReportViewConfigurationPatch;
|
|
84
100
|
}
|
|
85
101
|
|
|
86
102
|
|
|
@@ -109,6 +125,7 @@ export function CovalReportsAPIUpdateReportRequestFromJSONTyped(json: any, ignor
|
|
|
109
125
|
'compare_by': json['compare_by'] == null ? undefined : CovalReportsAPICompareByFromJSON(json['compare_by']),
|
|
110
126
|
'metadata_key': json['metadata_key'] == null ? undefined : json['metadata_key'],
|
|
111
127
|
'permissions': json['permissions'] == null ? undefined : CovalReportsAPIReportPermissionFromJSON(json['permissions']),
|
|
128
|
+
'view_config': json['view_config'] == null ? undefined : CovalReportsAPIReportViewConfigurationPatchFromJSON(json['view_config']),
|
|
112
129
|
};
|
|
113
130
|
}
|
|
114
131
|
|
|
@@ -130,6 +147,7 @@ export function CovalReportsAPIUpdateReportRequestToJSONTyped(value?: CovalRepor
|
|
|
130
147
|
'compare_by': CovalReportsAPICompareByToJSON(value['compare_by']),
|
|
131
148
|
'metadata_key': value['metadata_key'],
|
|
132
149
|
'permissions': CovalReportsAPIReportPermissionToJSON(value['permissions']),
|
|
150
|
+
'view_config': CovalReportsAPIReportViewConfigurationPatchToJSON(value['view_config']),
|
|
133
151
|
};
|
|
134
152
|
}
|
|
135
153
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
-
import type {
|
|
16
|
+
import type { CovalReportsAPIReportDetail } from './CovalReportsAPIReportDetail.js';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
CovalReportsAPIReportDetailFromJSON,
|
|
19
|
+
CovalReportsAPIReportDetailFromJSONTyped,
|
|
20
|
+
CovalReportsAPIReportDetailToJSON,
|
|
21
|
+
CovalReportsAPIReportDetailToJSONTyped,
|
|
22
|
+
} from './CovalReportsAPIReportDetail.js';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
export interface CovalReportsAPIUpdateReportResponse {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {CovalReportsAPIReportDetail}
|
|
33
33
|
* @memberof CovalReportsAPIUpdateReportResponse
|
|
34
34
|
*/
|
|
35
|
-
report:
|
|
35
|
+
report: CovalReportsAPIReportDetail;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
@@ -53,7 +53,7 @@ export function CovalReportsAPIUpdateReportResponseFromJSONTyped(json: any, igno
|
|
|
53
53
|
}
|
|
54
54
|
return {
|
|
55
55
|
|
|
56
|
-
'report':
|
|
56
|
+
'report': CovalReportsAPIReportDetailFromJSON(json['report']),
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -68,7 +68,7 @@ export function CovalReportsAPIUpdateReportResponseToJSONTyped(value?: CovalRepo
|
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
|
|
71
|
-
'report':
|
|
71
|
+
'report': CovalReportsAPIReportDetailToJSON(value['report']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Coval Agents API
|
|
5
|
+
* Manage configurations for simulations and evaluations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@coval.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TracesAPITraceSearchAggregateStats
|
|
20
|
+
*/
|
|
21
|
+
export interface TracesAPITraceSearchAggregateStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TracesAPITraceSearchAggregateStats
|
|
26
|
+
*/
|
|
27
|
+
error_count: number;
|
|
28
|
+
/**
|
|
29
|
+
* Percentage of matching calls containing at least one error span.
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TracesAPITraceSearchAggregateStats
|
|
32
|
+
*/
|
|
33
|
+
error_rate: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the TracesAPITraceSearchAggregateStats interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfTracesAPITraceSearchAggregateStats(value: object): value is TracesAPITraceSearchAggregateStats {
|
|
40
|
+
if (!('error_count' in value) || value['error_count'] === undefined) return false;
|
|
41
|
+
if (!('error_rate' in value) || value['error_rate'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function TracesAPITraceSearchAggregateStatsFromJSON(json: any): TracesAPITraceSearchAggregateStats {
|
|
46
|
+
return TracesAPITraceSearchAggregateStatsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function TracesAPITraceSearchAggregateStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TracesAPITraceSearchAggregateStats {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'error_count': json['error_count'],
|
|
56
|
+
'error_rate': json['error_rate'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function TracesAPITraceSearchAggregateStatsToJSON(json: any): TracesAPITraceSearchAggregateStats {
|
|
61
|
+
return TracesAPITraceSearchAggregateStatsToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function TracesAPITraceSearchAggregateStatsToJSONTyped(value?: TracesAPITraceSearchAggregateStats | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'error_count': value['error_count'],
|
|
72
|
+
'error_rate': value['error_rate'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Coval Agents API
|
|
5
|
+
* Manage configurations for simulations and evaluations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@coval.dev
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TracesAPITraceSearchAttributeFilter
|
|
20
|
+
*/
|
|
21
|
+
export interface TracesAPITraceSearchAttributeFilter {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TracesAPITraceSearchAttributeFilter
|
|
26
|
+
*/
|
|
27
|
+
key: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {TracesAPITraceSearchAttributeFilterOperatorEnum}
|
|
31
|
+
* @memberof TracesAPITraceSearchAttributeFilter
|
|
32
|
+
*/
|
|
33
|
+
operator?: TracesAPITraceSearchAttributeFilterOperatorEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Optional for `exists`; required for value comparisons.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TracesAPITraceSearchAttributeFilter
|
|
38
|
+
*/
|
|
39
|
+
value?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const TracesAPITraceSearchAttributeFilterOperatorEnum = {
|
|
47
|
+
Contains: 'contains',
|
|
48
|
+
Eq: 'eq',
|
|
49
|
+
Exists: 'exists',
|
|
50
|
+
Gt: 'gt',
|
|
51
|
+
Gte: 'gte',
|
|
52
|
+
Lt: 'lt',
|
|
53
|
+
Lte: 'lte'
|
|
54
|
+
} as const;
|
|
55
|
+
export type TracesAPITraceSearchAttributeFilterOperatorEnum = typeof TracesAPITraceSearchAttributeFilterOperatorEnum[keyof typeof TracesAPITraceSearchAttributeFilterOperatorEnum];
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the TracesAPITraceSearchAttributeFilter interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfTracesAPITraceSearchAttributeFilter(value: object): value is TracesAPITraceSearchAttributeFilter {
|
|
62
|
+
if (!('key' in value) || value['key'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function TracesAPITraceSearchAttributeFilterFromJSON(json: any): TracesAPITraceSearchAttributeFilter {
|
|
67
|
+
return TracesAPITraceSearchAttributeFilterFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function TracesAPITraceSearchAttributeFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): TracesAPITraceSearchAttributeFilter {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'key': json['key'],
|
|
77
|
+
'operator': json['operator'] == null ? undefined : json['operator'],
|
|
78
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function TracesAPITraceSearchAttributeFilterToJSON(json: any): TracesAPITraceSearchAttributeFilter {
|
|
83
|
+
return TracesAPITraceSearchAttributeFilterToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function TracesAPITraceSearchAttributeFilterToJSONTyped(value?: TracesAPITraceSearchAttributeFilter | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'key': value['key'],
|
|
94
|
+
'operator': value['operator'],
|
|
95
|
+
'value': value['value'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|