@coval/sdk 0.7.0 → 0.7.1

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.
Files changed (60) hide show
  1. package/dist/CovalClient.d.ts +3 -2
  2. package/dist/CovalClient.d.ts.map +1 -1
  3. package/dist/CovalClient.js +4 -1
  4. package/dist/CovalClient.js.map +1 -1
  5. package/dist/generated/apis/OrganizationUsersApi.d.ts +68 -0
  6. package/dist/generated/apis/OrganizationUsersApi.d.ts.map +1 -0
  7. package/dist/generated/apis/OrganizationUsersApi.js +61 -0
  8. package/dist/generated/apis/OrganizationUsersApi.js.map +1 -0
  9. package/dist/generated/apis/SimulatedConversationsApi.d.ts +81 -0
  10. package/dist/generated/apis/SimulatedConversationsApi.d.ts.map +1 -1
  11. package/dist/generated/apis/SimulatedConversationsApi.js +82 -0
  12. package/dist/generated/apis/SimulatedConversationsApi.js.map +1 -1
  13. package/dist/generated/apis/index.d.ts +1 -0
  14. package/dist/generated/apis/index.d.ts.map +1 -1
  15. package/dist/generated/apis/index.js +1 -0
  16. package/dist/generated/apis/index.js.map +1 -1
  17. package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.d.ts +1 -0
  18. package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.d.ts.map +1 -1
  19. package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.js +1 -0
  20. package/dist/generated/models/CovalAgentsAPIAgentResourceModelType.js.map +1 -1
  21. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts +2 -0
  22. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts.map +1 -1
  23. package/dist/generated/models/CovalAgentsAPISimulatorType.js +2 -0
  24. package/dist/generated/models/CovalAgentsAPISimulatorType.js.map +1 -1
  25. package/dist/generated/models/CovalMetricsAPIMetricVersionResource.d.ts +1 -1
  26. package/dist/generated/models/CovalMetricsAPIRecentlyDeletedMetricResource.d.ts +1 -1
  27. package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.d.ts +40 -0
  28. package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.d.ts.map +1 -0
  29. package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.js +45 -0
  30. package/dist/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.js.map +1 -0
  31. package/dist/generated/models/CovalOrganizationAPIOrganizationUser.d.ts +75 -0
  32. package/dist/generated/models/CovalOrganizationAPIOrganizationUser.d.ts.map +1 -0
  33. package/dist/generated/models/CovalOrganizationAPIOrganizationUser.js +60 -0
  34. package/dist/generated/models/CovalOrganizationAPIOrganizationUser.js.map +1 -0
  35. package/dist/generated/models/GetSimulationAttribute200Response.d.ts +27 -0
  36. package/dist/generated/models/GetSimulationAttribute200Response.d.ts.map +1 -0
  37. package/dist/generated/models/GetSimulationAttribute200Response.js +32 -0
  38. package/dist/generated/models/GetSimulationAttribute200Response.js.map +1 -0
  39. package/dist/generated/models/GetSimulationConnect200Response.d.ts +76 -0
  40. package/dist/generated/models/GetSimulationConnect200Response.d.ts.map +1 -0
  41. package/dist/generated/models/GetSimulationConnect200Response.js +68 -0
  42. package/dist/generated/models/GetSimulationConnect200Response.js.map +1 -0
  43. package/dist/generated/models/index.d.ts +4 -0
  44. package/dist/generated/models/index.d.ts.map +1 -1
  45. package/dist/generated/models/index.js +4 -0
  46. package/dist/generated/models/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/CovalClient.ts +4 -0
  49. package/src/generated/apis/OrganizationUsersApi.ts +123 -0
  50. package/src/generated/apis/SimulatedConversationsApi.ts +179 -0
  51. package/src/generated/apis/index.ts +1 -0
  52. package/src/generated/models/CovalAgentsAPIAgentResourceModelType.ts +1 -0
  53. package/src/generated/models/CovalAgentsAPISimulatorType.ts +2 -0
  54. package/src/generated/models/CovalMetricsAPIMetricVersionResource.ts +1 -1
  55. package/src/generated/models/CovalMetricsAPIRecentlyDeletedMetricResource.ts +1 -1
  56. package/src/generated/models/CovalOrganizationAPIListOrganizationUsersResponse.ts +81 -0
  57. package/src/generated/models/CovalOrganizationAPIOrganizationUser.ts +123 -0
  58. package/src/generated/models/GetSimulationAttribute200Response.ts +46 -0
  59. package/src/generated/models/GetSimulationConnect200Response.ts +123 -0
  60. package/src/generated/models/index.ts +4 -0
@@ -0,0 +1,81 @@
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 { CovalOrganizationAPIOrganizationUser } from './CovalOrganizationAPIOrganizationUser.js';
17
+ import {
18
+ CovalOrganizationAPIOrganizationUserFromJSON,
19
+ CovalOrganizationAPIOrganizationUserFromJSONTyped,
20
+ CovalOrganizationAPIOrganizationUserToJSON,
21
+ CovalOrganizationAPIOrganizationUserToJSONTyped,
22
+ } from './CovalOrganizationAPIOrganizationUser.js';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CovalOrganizationAPIListOrganizationUsersResponse
28
+ */
29
+ export interface CovalOrganizationAPIListOrganizationUsersResponse {
30
+ /**
31
+ * Current organization members in this page.
32
+ * @type {Array<CovalOrganizationAPIOrganizationUser>}
33
+ * @memberof CovalOrganizationAPIListOrganizationUsersResponse
34
+ */
35
+ users?: Array<CovalOrganizationAPIOrganizationUser>;
36
+ /**
37
+ * Continue with this token; null when no pages remain.
38
+ * @type {string}
39
+ * @memberof CovalOrganizationAPIListOrganizationUsersResponse
40
+ */
41
+ next_page_token?: string | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the CovalOrganizationAPIListOrganizationUsersResponse interface.
46
+ */
47
+ export function instanceOfCovalOrganizationAPIListOrganizationUsersResponse(value: object): value is CovalOrganizationAPIListOrganizationUsersResponse {
48
+ return true;
49
+ }
50
+
51
+ export function CovalOrganizationAPIListOrganizationUsersResponseFromJSON(json: any): CovalOrganizationAPIListOrganizationUsersResponse {
52
+ return CovalOrganizationAPIListOrganizationUsersResponseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function CovalOrganizationAPIListOrganizationUsersResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalOrganizationAPIListOrganizationUsersResponse {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'users': json['users'] == null ? undefined : ((json['users'] as Array<any>).map(CovalOrganizationAPIOrganizationUserFromJSON)),
62
+ 'next_page_token': json['next_page_token'] == null ? undefined : json['next_page_token'],
63
+ };
64
+ }
65
+
66
+ export function CovalOrganizationAPIListOrganizationUsersResponseToJSON(json: any): CovalOrganizationAPIListOrganizationUsersResponse {
67
+ return CovalOrganizationAPIListOrganizationUsersResponseToJSONTyped(json, false);
68
+ }
69
+
70
+ export function CovalOrganizationAPIListOrganizationUsersResponseToJSONTyped(value?: CovalOrganizationAPIListOrganizationUsersResponse | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'users': value['users'] == null ? undefined : ((value['users'] as Array<any>).map(CovalOrganizationAPIOrganizationUserToJSON)),
78
+ 'next_page_token': value['next_page_token'],
79
+ };
80
+ }
81
+
@@ -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 CovalOrganizationAPIOrganizationUser
20
+ */
21
+ export interface CovalOrganizationAPIOrganizationUser {
22
+ /**
23
+ * Coval user ULID. Null when the member has not synced to Coval.
24
+ * @type {string}
25
+ * @memberof CovalOrganizationAPIOrganizationUser
26
+ */
27
+ id?: string | null;
28
+ /**
29
+ * Member's primary identifier from Clerk; empty when unavailable.
30
+ * @type {string}
31
+ * @memberof CovalOrganizationAPIOrganizationUser
32
+ */
33
+ email: string;
34
+ /**
35
+ * Coval display name, falling back to the Clerk name or email.
36
+ * @type {string}
37
+ * @memberof CovalOrganizationAPIOrganizationUser
38
+ */
39
+ display_name: string;
40
+ /**
41
+ * First name from Clerk, or null when unset.
42
+ * @type {string}
43
+ * @memberof CovalOrganizationAPIOrganizationUser
44
+ */
45
+ first_name?: string | null;
46
+ /**
47
+ * Last name from Clerk, or null when unset.
48
+ * @type {string}
49
+ * @memberof CovalOrganizationAPIOrganizationUser
50
+ */
51
+ last_name?: string | null;
52
+ /**
53
+ * Profile image URL from Clerk, or null when unset.
54
+ * @type {string}
55
+ * @memberof CovalOrganizationAPIOrganizationUser
56
+ */
57
+ image_url?: string | null;
58
+ /**
59
+ * Coval user creation time, or null before synchronization.
60
+ * @type {Date}
61
+ * @memberof CovalOrganizationAPIOrganizationUser
62
+ */
63
+ created_at?: Date | null;
64
+ /**
65
+ * Coval user update time, or null before synchronization.
66
+ * @type {Date}
67
+ * @memberof CovalOrganizationAPIOrganizationUser
68
+ */
69
+ last_updated_at?: Date | null;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the CovalOrganizationAPIOrganizationUser interface.
74
+ */
75
+ export function instanceOfCovalOrganizationAPIOrganizationUser(value: object): value is CovalOrganizationAPIOrganizationUser {
76
+ if (!('email' in value) || value['email'] === undefined) return false;
77
+ if (!('display_name' in value) || value['display_name'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function CovalOrganizationAPIOrganizationUserFromJSON(json: any): CovalOrganizationAPIOrganizationUser {
82
+ return CovalOrganizationAPIOrganizationUserFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function CovalOrganizationAPIOrganizationUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalOrganizationAPIOrganizationUser {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'id': json['id'] == null ? undefined : json['id'],
92
+ 'email': json['email'],
93
+ 'display_name': json['display_name'],
94
+ 'first_name': json['first_name'] == null ? undefined : json['first_name'],
95
+ 'last_name': json['last_name'] == null ? undefined : json['last_name'],
96
+ 'image_url': json['image_url'] == null ? undefined : json['image_url'],
97
+ 'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
98
+ 'last_updated_at': json['last_updated_at'] == null ? undefined : (new Date(json['last_updated_at'])),
99
+ };
100
+ }
101
+
102
+ export function CovalOrganizationAPIOrganizationUserToJSON(json: any): CovalOrganizationAPIOrganizationUser {
103
+ return CovalOrganizationAPIOrganizationUserToJSONTyped(json, false);
104
+ }
105
+
106
+ export function CovalOrganizationAPIOrganizationUserToJSONTyped(value?: CovalOrganizationAPIOrganizationUser | null, ignoreDiscriminator: boolean = false): any {
107
+ if (value == null) {
108
+ return value;
109
+ }
110
+
111
+ return {
112
+
113
+ 'id': value['id'],
114
+ 'email': value['email'],
115
+ 'display_name': value['display_name'],
116
+ 'first_name': value['first_name'],
117
+ 'last_name': value['last_name'],
118
+ 'image_url': value['image_url'],
119
+ 'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
120
+ 'last_updated_at': value['last_updated_at'] == null ? value['last_updated_at'] : value['last_updated_at'].toISOString(),
121
+ };
122
+ }
123
+
@@ -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';