@coval/sdk 0.7.0 → 0.7.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/CovalClient.d.ts +3 -2
- package/dist/CovalClient.d.ts.map +1 -1
- package/dist/CovalClient.js +4 -1
- package/dist/CovalClient.js.map +1 -1
- package/dist/generated/apis/OrganizationUsersApi.d.ts +68 -0
- package/dist/generated/apis/OrganizationUsersApi.d.ts.map +1 -0
- package/dist/generated/apis/OrganizationUsersApi.js +61 -0
- package/dist/generated/apis/OrganizationUsersApi.js.map +1 -0
- package/dist/generated/apis/ReviewAnnotationsApi.d.ts +16 -16
- package/dist/generated/apis/ReviewAnnotationsApi.js +6 -6
- package/dist/generated/apis/ReviewProjectsApi.d.ts +4 -4
- package/dist/generated/apis/ReviewProjectsApi.js +2 -2
- package/dist/generated/apis/SimulatedConversationsApi.d.ts +84 -0
- package/dist/generated/apis/SimulatedConversationsApi.d.ts.map +1 -1
- package/dist/generated/apis/SimulatedConversationsApi.js +85 -0
- package/dist/generated/apis/SimulatedConversationsApi.js.map +1 -1
- package/dist/generated/apis/index.d.ts +1 -0
- package/dist/generated/apis/index.d.ts.map +1 -1
- package/dist/generated/apis/index.js +1 -0
- package/dist/generated/apis/index.js.map +1 -1
- package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.d.ts +1 -0
- package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.d.ts.map +1 -1
- package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.js +1 -0
- package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.js.map +1 -1
- package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts +2 -0
- package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts.map +1 -1
- package/dist/generated/models/CovalAgentsAPISimulatorType.js +2 -0
- package/dist/generated/models/CovalAgentsAPISimulatorType.js.map +1 -1
- package/dist/generated/models/CovalMetricsAPIMetricVersionResource.d.ts +1 -1
- package/dist/generated/models/CovalMetricsAPIRecentlyDeletedMetricResource.d.ts +1 -1
- package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.d.ts +40 -0
- package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.d.ts.map +1 -0
- package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.js +45 -0
- package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.js.map +1 -0
- package/dist/generated/models/CovalOrganizationAPIOrganizationUser.d.ts +75 -0
- package/dist/generated/models/CovalOrganizationAPIOrganizationUser.d.ts.map +1 -0
- package/dist/generated/models/CovalOrganizationAPIOrganizationUser.js +60 -0
- package/dist/generated/models/CovalOrganizationAPIOrganizationUser.js.map +1 -0
- package/dist/generated/models/CovalReviewsAPICreateReviewAnnotationRequest.d.ts +2 -2
- package/dist/generated/models/CovalReviewsAPIProjectType.d.ts +1 -1
- package/dist/generated/models/CovalReviewsAPIProjectType.js +1 -1
- package/dist/generated/models/CovalReviewsAPIReviewAnnotationResource.d.ts +2 -2
- package/dist/generated/models/CovalReviewsAPIReviewAnnotationWithMetricVersionResource.d.ts +1 -1
- package/dist/generated/models/CovalReviewsAPIReviewProjectResource.d.ts +6 -0
- package/dist/generated/models/CovalReviewsAPIReviewProjectResource.d.ts.map +1 -1
- package/dist/generated/models/CovalReviewsAPIReviewProjectResource.js +2 -0
- package/dist/generated/models/CovalReviewsAPIReviewProjectResource.js.map +1 -1
- package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.d.ts +7 -3
- package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.d.ts.map +1 -1
- package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.js.map +1 -1
- package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.d.ts +6 -0
- package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.d.ts.map +1 -1
- package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.js +2 -0
- package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.js.map +1 -1
- package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.d.ts +1 -0
- package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.d.ts.map +1 -1
- package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.js +1 -0
- package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.js.map +1 -1
- package/dist/generated/models/CovalRunsAPIError.d.ts +1 -0
- package/dist/generated/models/CovalRunsAPIError.d.ts.map +1 -1
- package/dist/generated/models/CovalRunsAPIError.js +1 -0
- package/dist/generated/models/CovalRunsAPIError.js.map +1 -1
- package/dist/generated/models/CovalSimulatedConversationsAPIRerunSimulatedConversationMetricsRequest.d.ts +1 -1
- package/dist/generated/models/GetSimulationAttribute200Response.d.ts +27 -0
- package/dist/generated/models/GetSimulationAttribute200Response.d.ts.map +1 -0
- package/dist/generated/models/GetSimulationAttribute200Response.js +32 -0
- package/dist/generated/models/GetSimulationAttribute200Response.js.map +1 -0
- package/dist/generated/models/GetSimulationConnect200Response.d.ts +76 -0
- package/dist/generated/models/GetSimulationConnect200Response.d.ts.map +1 -0
- package/dist/generated/models/GetSimulationConnect200Response.js +68 -0
- package/dist/generated/models/GetSimulationConnect200Response.js.map +1 -0
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +4 -0
- package/dist/generated/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/CovalClient.ts +4 -0
- package/src/generated/apis/OrganizationUsersApi.ts +123 -0
- package/src/generated/apis/ReviewAnnotationsApi.ts +16 -16
- package/src/generated/apis/ReviewProjectsApi.ts +4 -4
- package/src/generated/apis/SimulatedConversationsApi.ts +186 -0
- package/src/generated/apis/index.ts +1 -0
- package/src/generated/models/CovalAgentsAPIAgentResourceModelType.ts +1 -0
- package/src/generated/models/CovalAgentsAPISimulatorType.ts +2 -0
- package/src/generated/models/CovalMetricsAPIMetricVersionResource.ts +1 -1
- package/src/generated/models/CovalMetricsAPIRecentlyDeletedMetricResource.ts +1 -1
- package/src/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.ts +81 -0
- package/src/generated/models/CovalOrganizationAPIOrganizationUser.ts +123 -0
- package/src/generated/models/CovalReviewsAPICreateReviewAnnotationRequest.ts +2 -2
- package/src/generated/models/CovalReviewsAPIProjectType.ts +1 -1
- package/src/generated/models/CovalReviewsAPIReviewAnnotationResource.ts +2 -2
- package/src/generated/models/CovalReviewsAPIReviewAnnotationWithMetricVersionResource.ts +1 -1
- package/src/generated/models/CovalReviewsAPIReviewProjectResource.ts +8 -0
- package/src/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.ts +7 -3
- package/src/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.ts +8 -0
- package/src/generated/models/CovalRunTemplatesAPIErrorResponseError.ts +1 -0
- package/src/generated/models/CovalRunsAPIError.ts +1 -0
- package/src/generated/models/CovalSimulatedConversationsAPIRerunSimulatedConversationMetricsRequest.ts +1 -1
- package/src/generated/models/GetSimulationAttribute200Response.ts +46 -0
- package/src/generated/models/GetSimulationConnect200Response.ts +123 -0
- package/src/generated/models/index.ts +4 -0
|
@@ -123,6 +123,12 @@ export interface CovalReviewsAPIUpdateReviewProjectRequest {
|
|
|
123
123
|
* @memberof CovalReviewsAPIUpdateReviewProjectRequest
|
|
124
124
|
*/
|
|
125
125
|
allow_metric_skipping?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Metric IDs eligible for skipping. Null means all linked metrics; omission preserves the current value.
|
|
128
|
+
* @type {Array<string>}
|
|
129
|
+
* @memberof CovalReviewsAPIUpdateReviewProjectRequest
|
|
130
|
+
*/
|
|
131
|
+
skippable_metric_ids?: Array<string> | null;
|
|
126
132
|
/**
|
|
127
133
|
*
|
|
128
134
|
* @type {string}
|
|
@@ -218,6 +224,7 @@ export function CovalReviewsAPIUpdateReviewProjectRequestFromJSONTyped(json: any
|
|
|
218
224
|
'opted_out_assignees': json['opted_out_assignees'] == null ? undefined : json['opted_out_assignees'],
|
|
219
225
|
'enforced_collaboration': json['enforced_collaboration'] == null ? undefined : json['enforced_collaboration'],
|
|
220
226
|
'allow_metric_skipping': json['allow_metric_skipping'] == null ? undefined : json['allow_metric_skipping'],
|
|
227
|
+
'skippable_metric_ids': json['skippable_metric_ids'],
|
|
221
228
|
'project_type': json['project_type'] == null ? undefined : json['project_type'],
|
|
222
229
|
'review_label_enabled': json['review_label_enabled'] == null ? undefined : json['review_label_enabled'],
|
|
223
230
|
'review_label_input_mode': json['review_label_input_mode'] == null ? undefined : json['review_label_input_mode'],
|
|
@@ -253,6 +260,7 @@ export function CovalReviewsAPIUpdateReviewProjectRequestToJSONTyped(value?: Cov
|
|
|
253
260
|
'opted_out_assignees': value['opted_out_assignees'],
|
|
254
261
|
'enforced_collaboration': value['enforced_collaboration'],
|
|
255
262
|
'allow_metric_skipping': value['allow_metric_skipping'],
|
|
263
|
+
'skippable_metric_ids': value['skippable_metric_ids'],
|
|
256
264
|
'project_type': value['project_type'],
|
|
257
265
|
'review_label_enabled': value['review_label_enabled'],
|
|
258
266
|
'review_label_input_mode': value['review_label_input_mode'],
|
|
@@ -56,6 +56,7 @@ export const CovalRunTemplatesAPIErrorResponseErrorCodeEnum = {
|
|
|
56
56
|
Unauthenticated: 'UNAUTHENTICATED',
|
|
57
57
|
NotFound: 'NOT_FOUND',
|
|
58
58
|
Conflict: 'CONFLICT',
|
|
59
|
+
FailedPrecondition: 'FAILED_PRECONDITION',
|
|
59
60
|
Internal: 'INTERNAL'
|
|
60
61
|
} as const;
|
|
61
62
|
export type CovalRunTemplatesAPIErrorResponseErrorCodeEnum = typeof CovalRunTemplatesAPIErrorResponseErrorCodeEnum[keyof typeof CovalRunTemplatesAPIErrorResponseErrorCodeEnum];
|
|
@@ -56,6 +56,7 @@ export const CovalRunsAPIErrorCodeEnum = {
|
|
|
56
56
|
Unauthenticated: 'UNAUTHENTICATED',
|
|
57
57
|
PermissionDenied: 'PERMISSION_DENIED',
|
|
58
58
|
NotFound: 'NOT_FOUND',
|
|
59
|
+
FailedPrecondition: 'FAILED_PRECONDITION',
|
|
59
60
|
Internal: 'INTERNAL'
|
|
60
61
|
} as const;
|
|
61
62
|
export type CovalRunsAPIErrorCodeEnum = typeof CovalRunsAPIErrorCodeEnum[keyof typeof CovalRunsAPIErrorCodeEnum];
|
|
@@ -26,7 +26,7 @@ export interface CovalSimulatedConversationsAPIRerunSimulatedConversationMetrics
|
|
|
26
26
|
*/
|
|
27
27
|
simulation_ids: Array<string>;
|
|
28
28
|
/**
|
|
29
|
-
* Metric IDs (22
|
|
29
|
+
* Metric IDs (22 characters, allowing letters, digits, and hyphens) to run against every simulation. Up to 500 per call.
|
|
30
30
|
* @type {Array<string>}
|
|
31
31
|
* @memberof CovalSimulatedConversationsAPIRerunSimulatedConversationMetricsRequest
|
|
32
32
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
* Any native JSON value. Null is a present attribute value.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetSimulationAttribute200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSimulationAttribute200Response {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetSimulationAttribute200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfGetSimulationAttribute200Response(value: object): value is GetSimulationAttribute200Response {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function GetSimulationAttribute200ResponseFromJSON(json: any): GetSimulationAttribute200Response {
|
|
32
|
+
return GetSimulationAttribute200ResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function GetSimulationAttribute200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSimulationAttribute200Response {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function GetSimulationAttribute200ResponseToJSON(json: any): GetSimulationAttribute200Response {
|
|
40
|
+
return GetSimulationAttribute200ResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GetSimulationAttribute200ResponseToJSONTyped(value?: GetSimulationAttribute200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,123 @@
|
|
|
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 GetSimulationConnect200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GetSimulationConnect200Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {GetSimulationConnect200ResponseStatusEnum}
|
|
25
|
+
* @memberof GetSimulationConnect200Response
|
|
26
|
+
*/
|
|
27
|
+
status: GetSimulationConnect200ResponseStatusEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetSimulationConnect200Response
|
|
32
|
+
*/
|
|
33
|
+
simulation_id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Null until an attempt starts.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetSimulationConnect200Response
|
|
38
|
+
*/
|
|
39
|
+
attempt_id?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Null except when status is READY.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GetSimulationConnect200Response
|
|
44
|
+
*/
|
|
45
|
+
wss_url?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Null except when status is READY.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetSimulationConnect200Response
|
|
50
|
+
*/
|
|
51
|
+
token?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Unix epoch seconds; null except when status is READY.
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetSimulationConnect200Response
|
|
56
|
+
*/
|
|
57
|
+
expires_at?: number | null;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const GetSimulationConnect200ResponseStatusEnum = {
|
|
65
|
+
Pending: 'PENDING',
|
|
66
|
+
Ready: 'READY',
|
|
67
|
+
Connected: 'CONNECTED',
|
|
68
|
+
Closed: 'CLOSED',
|
|
69
|
+
Failed: 'FAILED',
|
|
70
|
+
Cancelled: 'CANCELLED',
|
|
71
|
+
Expired: 'EXPIRED'
|
|
72
|
+
} as const;
|
|
73
|
+
export type GetSimulationConnect200ResponseStatusEnum = typeof GetSimulationConnect200ResponseStatusEnum[keyof typeof GetSimulationConnect200ResponseStatusEnum];
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the GetSimulationConnect200Response interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfGetSimulationConnect200Response(value: object): value is GetSimulationConnect200Response {
|
|
80
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
81
|
+
if (!('simulation_id' in value) || value['simulation_id'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function GetSimulationConnect200ResponseFromJSON(json: any): GetSimulationConnect200Response {
|
|
86
|
+
return GetSimulationConnect200ResponseFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function GetSimulationConnect200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetSimulationConnect200Response {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'status': json['status'],
|
|
96
|
+
'simulation_id': json['simulation_id'],
|
|
97
|
+
'attempt_id': json['attempt_id'] == null ? undefined : json['attempt_id'],
|
|
98
|
+
'wss_url': json['wss_url'] == null ? undefined : json['wss_url'],
|
|
99
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
100
|
+
'expires_at': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function GetSimulationConnect200ResponseToJSON(json: any): GetSimulationConnect200Response {
|
|
105
|
+
return GetSimulationConnect200ResponseToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GetSimulationConnect200ResponseToJSONTyped(value?: GetSimulationConnect200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'status': value['status'],
|
|
116
|
+
'simulation_id': value['simulation_id'],
|
|
117
|
+
'attempt_id': value['attempt_id'],
|
|
118
|
+
'wss_url': value['wss_url'],
|
|
119
|
+
'token': value['token'],
|
|
120
|
+
'expires_at': value['expires_at'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -239,6 +239,8 @@ export * from './CovalOrganizationAPIConversationMetricsConfig.js';
|
|
|
239
239
|
export * from './CovalOrganizationAPIError.js';
|
|
240
240
|
export * from './CovalOrganizationAPIErrorDetail.js';
|
|
241
241
|
export * from './CovalOrganizationAPIErrorResponse.js';
|
|
242
|
+
export * from './CovalOrganizationAPIListOrganizationUsersResponse.js';
|
|
243
|
+
export * from './CovalOrganizationAPIOrganizationUser.js';
|
|
242
244
|
export * from './CovalOrganizationAPIUpdateConversationMetricsRequest.js';
|
|
243
245
|
export * from './CovalPersonasAPIAudioDegradationConfig.js';
|
|
244
246
|
export * from './CovalPersonasAPIBackgroundSoundResource.js';
|
|
@@ -509,6 +511,8 @@ export * from './DuplicateAgentRequest.js';
|
|
|
509
511
|
export * from './GetConversationMetric200Response.js';
|
|
510
512
|
export * from './GetRun200Response.js';
|
|
511
513
|
export * from './GetSimulatedConversationMetric200Response.js';
|
|
514
|
+
export * from './GetSimulationAttribute200Response.js';
|
|
515
|
+
export * from './GetSimulationConnect200Response.js';
|
|
512
516
|
export * from './GetTraceQualitySummary200Response.js';
|
|
513
517
|
export * from './GetTraceQualitySummary200ResponseTarget.js';
|
|
514
518
|
export * from './GetUploadedConversationMetric200Response.js';
|