@coval/sdk 0.4.0 → 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/README.md +42 -0
- package/dist/CovalClient.d.ts +12 -0
- package/dist/CovalClient.d.ts.map +1 -1
- package/dist/CovalClient.js +13 -1
- package/dist/CovalClient.js.map +1 -1
- 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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/retry.d.ts +5 -0
- package/dist/retry.d.ts.map +1 -1
- package/dist/retry.js +20 -0
- package/dist/retry.js.map +1 -1
- package/dist/stats.d.ts +13 -0
- package/dist/stats.d.ts.map +1 -0
- package/dist/stats.js +13 -0
- package/dist/stats.js.map +1 -0
- package/package.json +1 -1
- package/src/CovalClient.ts +20 -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
- package/src/index.ts +2 -0
- package/src/retry.ts +24 -0
- package/src/stats.ts +25 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,191 @@
|
|
|
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 TracesAPITraceSearchCallResult
|
|
20
|
+
*/
|
|
21
|
+
export interface TracesAPITraceSearchCallResult {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
26
|
+
*/
|
|
27
|
+
simulation_output_id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
32
|
+
*/
|
|
33
|
+
run_id: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
38
|
+
*/
|
|
39
|
+
latest_matched_timestamp_ms: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
44
|
+
*/
|
|
45
|
+
first_matched_timestamp_ms: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
50
|
+
*/
|
|
51
|
+
matched_span_count: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
56
|
+
*/
|
|
57
|
+
total_span_count: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
62
|
+
*/
|
|
63
|
+
error_span_count: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
68
|
+
*/
|
|
69
|
+
ok_span_count: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
74
|
+
*/
|
|
75
|
+
unset_span_count: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {TracesAPITraceSearchCallResultOverallStatusEnum}
|
|
79
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
80
|
+
*/
|
|
81
|
+
overall_status: TracesAPITraceSearchCallResultOverallStatusEnum;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<string>}
|
|
85
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
86
|
+
*/
|
|
87
|
+
matched_span_names?: Array<string>;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Array<string>}
|
|
91
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
92
|
+
*/
|
|
93
|
+
matched_provider_names?: Array<string>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {Array<string>}
|
|
97
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
98
|
+
*/
|
|
99
|
+
matched_service_names?: Array<string>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {Array<string>}
|
|
103
|
+
* @memberof TracesAPITraceSearchCallResult
|
|
104
|
+
*/
|
|
105
|
+
matched_scope_names?: Array<string>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @export
|
|
111
|
+
*/
|
|
112
|
+
export const TracesAPITraceSearchCallResultOverallStatusEnum = {
|
|
113
|
+
Error: 'ERROR',
|
|
114
|
+
Ok: 'OK',
|
|
115
|
+
Unset: 'UNSET'
|
|
116
|
+
} as const;
|
|
117
|
+
export type TracesAPITraceSearchCallResultOverallStatusEnum = typeof TracesAPITraceSearchCallResultOverallStatusEnum[keyof typeof TracesAPITraceSearchCallResultOverallStatusEnum];
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Check if a given object implements the TracesAPITraceSearchCallResult interface.
|
|
122
|
+
*/
|
|
123
|
+
export function instanceOfTracesAPITraceSearchCallResult(value: object): value is TracesAPITraceSearchCallResult {
|
|
124
|
+
if (!('simulation_output_id' in value) || value['simulation_output_id'] === undefined) return false;
|
|
125
|
+
if (!('run_id' in value) || value['run_id'] === undefined) return false;
|
|
126
|
+
if (!('latest_matched_timestamp_ms' in value) || value['latest_matched_timestamp_ms'] === undefined) return false;
|
|
127
|
+
if (!('first_matched_timestamp_ms' in value) || value['first_matched_timestamp_ms'] === undefined) return false;
|
|
128
|
+
if (!('matched_span_count' in value) || value['matched_span_count'] === undefined) return false;
|
|
129
|
+
if (!('total_span_count' in value) || value['total_span_count'] === undefined) return false;
|
|
130
|
+
if (!('error_span_count' in value) || value['error_span_count'] === undefined) return false;
|
|
131
|
+
if (!('ok_span_count' in value) || value['ok_span_count'] === undefined) return false;
|
|
132
|
+
if (!('unset_span_count' in value) || value['unset_span_count'] === undefined) return false;
|
|
133
|
+
if (!('overall_status' in value) || value['overall_status'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function TracesAPITraceSearchCallResultFromJSON(json: any): TracesAPITraceSearchCallResult {
|
|
138
|
+
return TracesAPITraceSearchCallResultFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function TracesAPITraceSearchCallResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): TracesAPITraceSearchCallResult {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'simulation_output_id': json['simulation_output_id'],
|
|
148
|
+
'run_id': json['run_id'],
|
|
149
|
+
'latest_matched_timestamp_ms': json['latest_matched_timestamp_ms'],
|
|
150
|
+
'first_matched_timestamp_ms': json['first_matched_timestamp_ms'],
|
|
151
|
+
'matched_span_count': json['matched_span_count'],
|
|
152
|
+
'total_span_count': json['total_span_count'],
|
|
153
|
+
'error_span_count': json['error_span_count'],
|
|
154
|
+
'ok_span_count': json['ok_span_count'],
|
|
155
|
+
'unset_span_count': json['unset_span_count'],
|
|
156
|
+
'overall_status': json['overall_status'],
|
|
157
|
+
'matched_span_names': json['matched_span_names'] == null ? undefined : json['matched_span_names'],
|
|
158
|
+
'matched_provider_names': json['matched_provider_names'] == null ? undefined : json['matched_provider_names'],
|
|
159
|
+
'matched_service_names': json['matched_service_names'] == null ? undefined : json['matched_service_names'],
|
|
160
|
+
'matched_scope_names': json['matched_scope_names'] == null ? undefined : json['matched_scope_names'],
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function TracesAPITraceSearchCallResultToJSON(json: any): TracesAPITraceSearchCallResult {
|
|
165
|
+
return TracesAPITraceSearchCallResultToJSONTyped(json, false);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function TracesAPITraceSearchCallResultToJSONTyped(value?: TracesAPITraceSearchCallResult | null, ignoreDiscriminator: boolean = false): any {
|
|
169
|
+
if (value == null) {
|
|
170
|
+
return value;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return {
|
|
174
|
+
|
|
175
|
+
'simulation_output_id': value['simulation_output_id'],
|
|
176
|
+
'run_id': value['run_id'],
|
|
177
|
+
'latest_matched_timestamp_ms': value['latest_matched_timestamp_ms'],
|
|
178
|
+
'first_matched_timestamp_ms': value['first_matched_timestamp_ms'],
|
|
179
|
+
'matched_span_count': value['matched_span_count'],
|
|
180
|
+
'total_span_count': value['total_span_count'],
|
|
181
|
+
'error_span_count': value['error_span_count'],
|
|
182
|
+
'ok_span_count': value['ok_span_count'],
|
|
183
|
+
'unset_span_count': value['unset_span_count'],
|
|
184
|
+
'overall_status': value['overall_status'],
|
|
185
|
+
'matched_span_names': value['matched_span_names'],
|
|
186
|
+
'matched_provider_names': value['matched_provider_names'],
|
|
187
|
+
'matched_service_names': value['matched_service_names'],
|
|
188
|
+
'matched_scope_names': value['matched_scope_names'],
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
|