@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.
Files changed (128) hide show
  1. package/dist/generated/apis/ConversationsApi.d.ts +8 -8
  2. package/dist/generated/apis/ConversationsApi.js +4 -4
  3. package/dist/generated/apis/ReportsApi.d.ts +17 -14
  4. package/dist/generated/apis/ReportsApi.d.ts.map +1 -1
  5. package/dist/generated/apis/ReportsApi.js +9 -6
  6. package/dist/generated/apis/ReportsApi.js.map +1 -1
  7. package/dist/generated/apis/TracesApi.d.ts +40 -0
  8. package/dist/generated/apis/TracesApi.d.ts.map +1 -1
  9. package/dist/generated/apis/TracesApi.js +38 -0
  10. package/dist/generated/apis/TracesApi.js.map +1 -1
  11. package/dist/generated/models/CovalAgentsAPICreateAgentRequest.d.ts +23 -0
  12. package/dist/generated/models/CovalAgentsAPICreateAgentRequest.d.ts.map +1 -1
  13. package/dist/generated/models/CovalAgentsAPICreateAgentRequest.js.map +1 -1
  14. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts +4 -0
  15. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts.map +1 -1
  16. package/dist/generated/models/CovalAgentsAPISimulatorType.js +4 -0
  17. package/dist/generated/models/CovalAgentsAPISimulatorType.js.map +1 -1
  18. package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.d.ts +27 -4
  19. package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.d.ts.map +1 -1
  20. package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.js +2 -0
  21. package/dist/generated/models/CovalConversationsAPIPatchConversationRequest.js.map +1 -1
  22. package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.d.ts +2 -1
  23. package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.d.ts.map +1 -1
  24. package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.js +2 -1
  25. package/dist/generated/models/CovalOrganizationAPIConversationMetricRule.js.map +1 -1
  26. package/dist/generated/models/CovalOrganizationAPIConversationMetricRuleMetadataValue.d.ts +1 -1
  27. package/dist/generated/models/CovalReportsAPIError.d.ts +1 -0
  28. package/dist/generated/models/CovalReportsAPIError.d.ts.map +1 -1
  29. package/dist/generated/models/CovalReportsAPIError.js +1 -0
  30. package/dist/generated/models/CovalReportsAPIError.js.map +1 -1
  31. package/dist/generated/models/CovalReportsAPIGetReportResponse.d.ts +3 -3
  32. package/dist/generated/models/CovalReportsAPIGetReportResponse.d.ts.map +1 -1
  33. package/dist/generated/models/CovalReportsAPIGetReportResponse.js +3 -3
  34. package/dist/generated/models/CovalReportsAPIGetReportResponse.js.map +1 -1
  35. package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.d.ts +45 -0
  36. package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.d.ts.map +1 -0
  37. package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.js +52 -0
  38. package/dist/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.js.map +1 -0
  39. package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.d.ts +45 -0
  40. package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.d.ts.map +1 -0
  41. package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.js +46 -0
  42. package/dist/generated/models/CovalReportsAPIMonitoringFiltersPatch.js.map +1 -0
  43. package/dist/generated/models/CovalReportsAPIReportDetail.d.ts +126 -0
  44. package/dist/generated/models/CovalReportsAPIReportDetail.d.ts.map +1 -0
  45. package/dist/generated/models/CovalReportsAPIReportDetail.js +104 -0
  46. package/dist/generated/models/CovalReportsAPIReportDetail.js.map +1 -0
  47. package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.d.ts +40 -0
  48. package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.d.ts.map +1 -0
  49. package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.js +46 -0
  50. package/dist/generated/models/CovalReportsAPIReportMetricConfigurationEntry.js.map +1 -0
  51. package/dist/generated/models/CovalReportsAPIReportMetricOutput.d.ts +1 -1
  52. package/dist/generated/models/CovalReportsAPIReportMetricOutput.d.ts.map +1 -1
  53. package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.d.ts +3 -8
  54. package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.d.ts.map +1 -1
  55. package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.js +30 -8
  56. package/dist/generated/models/CovalReportsAPIReportMetricOutputValue.js.map +1 -1
  57. package/dist/generated/models/CovalReportsAPIReportViewConfiguration.d.ts +104 -0
  58. package/dist/generated/models/CovalReportsAPIReportViewConfiguration.d.ts.map +1 -0
  59. package/dist/generated/models/CovalReportsAPIReportViewConfiguration.js +100 -0
  60. package/dist/generated/models/CovalReportsAPIReportViewConfiguration.js.map +1 -0
  61. package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.d.ts +104 -0
  62. package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.d.ts.map +1 -0
  63. package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.js +84 -0
  64. package/dist/generated/models/CovalReportsAPIReportViewConfigurationPatch.js.map +1 -0
  65. package/dist/generated/models/CovalReportsAPIUpdateReportRequest.d.ts +10 -0
  66. package/dist/generated/models/CovalReportsAPIUpdateReportRequest.d.ts.map +1 -1
  67. package/dist/generated/models/CovalReportsAPIUpdateReportRequest.js +3 -0
  68. package/dist/generated/models/CovalReportsAPIUpdateReportRequest.js.map +1 -1
  69. package/dist/generated/models/CovalReportsAPIUpdateReportResponse.d.ts +3 -3
  70. package/dist/generated/models/CovalReportsAPIUpdateReportResponse.d.ts.map +1 -1
  71. package/dist/generated/models/CovalReportsAPIUpdateReportResponse.js +3 -3
  72. package/dist/generated/models/CovalReportsAPIUpdateReportResponse.js.map +1 -1
  73. package/dist/generated/models/TracesAPITraceSearchAggregateStats.d.ts +39 -0
  74. package/dist/generated/models/TracesAPITraceSearchAggregateStats.d.ts.map +1 -0
  75. package/dist/generated/models/TracesAPITraceSearchAggregateStats.js +48 -0
  76. package/dist/generated/models/TracesAPITraceSearchAggregateStats.js.map +1 -0
  77. package/dist/generated/models/TracesAPITraceSearchAttributeFilter.d.ts +58 -0
  78. package/dist/generated/models/TracesAPITraceSearchAttributeFilter.d.ts.map +1 -0
  79. package/dist/generated/models/TracesAPITraceSearchAttributeFilter.js +60 -0
  80. package/dist/generated/models/TracesAPITraceSearchAttributeFilter.js.map +1 -0
  81. package/dist/generated/models/TracesAPITraceSearchCallResult.d.ts +120 -0
  82. package/dist/generated/models/TracesAPITraceSearchCallResult.d.ts.map +1 -0
  83. package/dist/generated/models/TracesAPITraceSearchCallResult.js +96 -0
  84. package/dist/generated/models/TracesAPITraceSearchCallResult.js.map +1 -0
  85. package/dist/generated/models/TracesAPITraceSearchFilters.d.ts +113 -0
  86. package/dist/generated/models/TracesAPITraceSearchFilters.d.ts.map +1 -0
  87. package/dist/generated/models/TracesAPITraceSearchFilters.js +80 -0
  88. package/dist/generated/models/TracesAPITraceSearchFilters.js.map +1 -0
  89. package/dist/generated/models/TracesAPITraceSearchRequest.d.ts +46 -0
  90. package/dist/generated/models/TracesAPITraceSearchRequest.d.ts.map +1 -0
  91. package/dist/generated/models/TracesAPITraceSearchRequest.js +47 -0
  92. package/dist/generated/models/TracesAPITraceSearchRequest.js.map +1 -0
  93. package/dist/generated/models/TracesAPITraceSearchResponse.d.ts +53 -0
  94. package/dist/generated/models/TracesAPITraceSearchResponse.d.ts.map +1 -0
  95. package/dist/generated/models/TracesAPITraceSearchResponse.js +56 -0
  96. package/dist/generated/models/TracesAPITraceSearchResponse.js.map +1 -0
  97. package/dist/generated/models/index.d.ts +12 -0
  98. package/dist/generated/models/index.d.ts.map +1 -1
  99. package/dist/generated/models/index.js +12 -0
  100. package/dist/generated/models/index.js.map +1 -1
  101. package/package.json +1 -1
  102. package/src/generated/apis/ConversationsApi.ts +8 -8
  103. package/src/generated/apis/ReportsApi.ts +21 -14
  104. package/src/generated/apis/TracesApi.ts +84 -0
  105. package/src/generated/models/CovalAgentsAPICreateAgentRequest.ts +23 -0
  106. package/src/generated/models/CovalAgentsAPISimulatorType.ts +4 -0
  107. package/src/generated/models/CovalConversationsAPIPatchConversationRequest.ts +27 -4
  108. package/src/generated/models/CovalOrganizationAPIConversationMetricRule.ts +3 -2
  109. package/src/generated/models/CovalOrganizationAPIConversationMetricRuleMetadataValue.ts +1 -1
  110. package/src/generated/models/CovalReportsAPIError.ts +1 -0
  111. package/src/generated/models/CovalReportsAPIGetReportResponse.ts +10 -10
  112. package/src/generated/models/CovalReportsAPIMonitoringFiltersConfiguration.ts +84 -0
  113. package/src/generated/models/CovalReportsAPIMonitoringFiltersPatch.ts +81 -0
  114. package/src/generated/models/CovalReportsAPIReportDetail.ts +204 -0
  115. package/src/generated/models/CovalReportsAPIReportMetricConfigurationEntry.ts +76 -0
  116. package/src/generated/models/CovalReportsAPIReportMetricOutput.ts +1 -1
  117. package/src/generated/models/CovalReportsAPIReportMetricOutputValue.ts +33 -14
  118. package/src/generated/models/CovalReportsAPIReportViewConfiguration.ts +167 -0
  119. package/src/generated/models/CovalReportsAPIReportViewConfigurationPatch.ts +158 -0
  120. package/src/generated/models/CovalReportsAPIUpdateReportRequest.ts +18 -0
  121. package/src/generated/models/CovalReportsAPIUpdateReportResponse.ts +10 -10
  122. package/src/generated/models/TracesAPITraceSearchAggregateStats.ts +75 -0
  123. package/src/generated/models/TracesAPITraceSearchAttributeFilter.ts +98 -0
  124. package/src/generated/models/TracesAPITraceSearchCallResult.ts +191 -0
  125. package/src/generated/models/TracesAPITraceSearchFilters.ts +176 -0
  126. package/src/generated/models/TracesAPITraceSearchRequest.ts +89 -0
  127. package/src/generated/models/TracesAPITraceSearchResponse.ts +107 -0
  128. package/src/generated/models/index.ts +12 -0
@@ -0,0 +1,126 @@
1
+ /**
2
+ * Coval Agents API
3
+ * Manage configurations for simulations and evaluations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@coval.dev
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CovalReportsAPIReportViewConfiguration } from './CovalReportsAPIReportViewConfiguration.js';
13
+ import type { CovalReportsAPIReportMetricConfigurationEntry } from './CovalReportsAPIReportMetricConfigurationEntry.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CovalReportsAPIReportDetail
18
+ */
19
+ export interface CovalReportsAPIReportDetail {
20
+ /**
21
+ * The report's ULID.
22
+ * @type {string}
23
+ * @memberof CovalReportsAPIReportDetail
24
+ */
25
+ id: string;
26
+ /**
27
+ * Display name for the saved report.
28
+ * @type {string}
29
+ * @memberof CovalReportsAPIReportDetail
30
+ */
31
+ name: string;
32
+ /**
33
+ * Empty for a dynamic monitoring report.
34
+ * @type {Array<string>}
35
+ * @memberof CovalReportsAPIReportDetail
36
+ */
37
+ run_ids: Array<string>;
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof CovalReportsAPIReportDetail
42
+ */
43
+ simulation_output_ids?: Array<string>;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof CovalReportsAPIReportDetail
48
+ */
49
+ source_human_review_project_id?: string | null;
50
+ /**
51
+ *
52
+ * @type {CovalReportsAPIReportDetailCompareByEnum}
53
+ * @memberof CovalReportsAPIReportDetail
54
+ */
55
+ compare_by: CovalReportsAPIReportDetailCompareByEnum;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof CovalReportsAPIReportDetail
60
+ */
61
+ metadata_key?: string | null;
62
+ /**
63
+ *
64
+ * @type {CovalReportsAPIReportDetailPermissionsEnum}
65
+ * @memberof CovalReportsAPIReportDetail
66
+ */
67
+ permissions: CovalReportsAPIReportDetailPermissionsEnum;
68
+ /**
69
+ * Last report mutation time.
70
+ * @type {Date}
71
+ * @memberof CovalReportsAPIReportDetail
72
+ */
73
+ updated_at: Date;
74
+ /**
75
+ * Opaque revision also returned as the response `ETag`. Send the
76
+ * quoted ETag value in `If-Match` for `view_config` updates.
77
+ *
78
+ * @type {string}
79
+ * @memberof CovalReportsAPIReportDetail
80
+ */
81
+ revision: string;
82
+ /**
83
+ *
84
+ * @type {CovalReportsAPIReportViewConfiguration}
85
+ * @memberof CovalReportsAPIReportDetail
86
+ */
87
+ view_config: CovalReportsAPIReportViewConfiguration;
88
+ /**
89
+ * Saved per-metric display configuration keyed by metric ID.
90
+ * @type {{ [key: string]: CovalReportsAPIReportMetricConfigurationEntry; }}
91
+ * @memberof CovalReportsAPIReportDetail
92
+ */
93
+ metric_config: {
94
+ [key: string]: CovalReportsAPIReportMetricConfigurationEntry;
95
+ };
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const CovalReportsAPIReportDetailCompareByEnum: {
101
+ readonly None: "none";
102
+ readonly Run: "run";
103
+ readonly Agent: "agent";
104
+ readonly Mutation: "mutation";
105
+ readonly Persona: "persona";
106
+ readonly TestCase: "test_case";
107
+ readonly Metadata: "metadata";
108
+ };
109
+ export type CovalReportsAPIReportDetailCompareByEnum = typeof CovalReportsAPIReportDetailCompareByEnum[keyof typeof CovalReportsAPIReportDetailCompareByEnum];
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const CovalReportsAPIReportDetailPermissionsEnum: {
114
+ readonly Public: "PUBLIC";
115
+ readonly Private: "PRIVATE";
116
+ };
117
+ export type CovalReportsAPIReportDetailPermissionsEnum = typeof CovalReportsAPIReportDetailPermissionsEnum[keyof typeof CovalReportsAPIReportDetailPermissionsEnum];
118
+ /**
119
+ * Check if a given object implements the CovalReportsAPIReportDetail interface.
120
+ */
121
+ export declare function instanceOfCovalReportsAPIReportDetail(value: object): value is CovalReportsAPIReportDetail;
122
+ export declare function CovalReportsAPIReportDetailFromJSON(json: any): CovalReportsAPIReportDetail;
123
+ export declare function CovalReportsAPIReportDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportDetail;
124
+ export declare function CovalReportsAPIReportDetailToJSON(json: any): CovalReportsAPIReportDetail;
125
+ export declare function CovalReportsAPIReportDetailToJSONTyped(value?: CovalReportsAPIReportDetail | null, ignoreDiscriminator?: boolean): any;
126
+ //# sourceMappingURL=CovalReportsAPIReportDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CovalReportsAPIReportDetail.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportDetail.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAO1G,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,oDAAoD,CAAC;AAQxH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACvB;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtC;;;;OAIG;IACH,8BAA8B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/C;;;;OAIG;IACH,UAAU,EAAE,wCAAwC,CAAC;IACrD;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,WAAW,EAAE,0CAA0C,CAAC;IACxD;;;;OAIG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB;;;;;;OAMG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,sCAAsC,CAAC;IACpD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,6CAA6C,CAAC;KAAE,CAAC;CACpF;AAGD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;;;;;;CAQ3C,CAAC;AACX,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAC,MAAM,OAAO,wCAAwC,CAAC,CAAC;AAE9J;;GAEG;AACH,eAAO,MAAM,0CAA0C;;;CAG7C,CAAC;AACX,MAAM,MAAM,0CAA0C,GAAG,OAAO,0CAA0C,CAAC,MAAM,OAAO,0CAA0C,CAAC,CAAC;AAGpK;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAWzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAmB7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoB5I"}
@@ -0,0 +1,104 @@
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
+ import { mapValues } from '../runtime.js';
15
+ import { CovalReportsAPIReportViewConfigurationFromJSON, CovalReportsAPIReportViewConfigurationToJSON, } from './CovalReportsAPIReportViewConfiguration.js';
16
+ import { CovalReportsAPIReportMetricConfigurationEntryFromJSON, CovalReportsAPIReportMetricConfigurationEntryToJSON, } from './CovalReportsAPIReportMetricConfigurationEntry.js';
17
+ /**
18
+ * @export
19
+ */
20
+ export const CovalReportsAPIReportDetailCompareByEnum = {
21
+ None: 'none',
22
+ Run: 'run',
23
+ Agent: 'agent',
24
+ Mutation: 'mutation',
25
+ Persona: 'persona',
26
+ TestCase: 'test_case',
27
+ Metadata: 'metadata'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ export const CovalReportsAPIReportDetailPermissionsEnum = {
33
+ Public: 'PUBLIC',
34
+ Private: 'PRIVATE'
35
+ };
36
+ /**
37
+ * Check if a given object implements the CovalReportsAPIReportDetail interface.
38
+ */
39
+ export function instanceOfCovalReportsAPIReportDetail(value) {
40
+ if (!('id' in value) || value['id'] === undefined)
41
+ return false;
42
+ if (!('name' in value) || value['name'] === undefined)
43
+ return false;
44
+ if (!('run_ids' in value) || value['run_ids'] === undefined)
45
+ return false;
46
+ if (!('compare_by' in value) || value['compare_by'] === undefined)
47
+ return false;
48
+ if (!('permissions' in value) || value['permissions'] === undefined)
49
+ return false;
50
+ if (!('updated_at' in value) || value['updated_at'] === undefined)
51
+ return false;
52
+ if (!('revision' in value) || value['revision'] === undefined)
53
+ return false;
54
+ if (!('view_config' in value) || value['view_config'] === undefined)
55
+ return false;
56
+ if (!('metric_config' in value) || value['metric_config'] === undefined)
57
+ return false;
58
+ return true;
59
+ }
60
+ export function CovalReportsAPIReportDetailFromJSON(json) {
61
+ return CovalReportsAPIReportDetailFromJSONTyped(json, false);
62
+ }
63
+ export function CovalReportsAPIReportDetailFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'],
69
+ 'name': json['name'],
70
+ 'run_ids': json['run_ids'],
71
+ 'simulation_output_ids': json['simulation_output_ids'] == null ? undefined : json['simulation_output_ids'],
72
+ 'source_human_review_project_id': json['source_human_review_project_id'] == null ? undefined : json['source_human_review_project_id'],
73
+ 'compare_by': json['compare_by'],
74
+ 'metadata_key': json['metadata_key'] == null ? undefined : json['metadata_key'],
75
+ 'permissions': json['permissions'],
76
+ 'updated_at': (new Date(json['updated_at'])),
77
+ 'revision': json['revision'],
78
+ 'view_config': CovalReportsAPIReportViewConfigurationFromJSON(json['view_config']),
79
+ 'metric_config': (mapValues(json['metric_config'], CovalReportsAPIReportMetricConfigurationEntryFromJSON)),
80
+ };
81
+ }
82
+ export function CovalReportsAPIReportDetailToJSON(json) {
83
+ return CovalReportsAPIReportDetailToJSONTyped(json, false);
84
+ }
85
+ export function CovalReportsAPIReportDetailToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'id': value['id'],
91
+ 'name': value['name'],
92
+ 'run_ids': value['run_ids'],
93
+ 'simulation_output_ids': value['simulation_output_ids'],
94
+ 'source_human_review_project_id': value['source_human_review_project_id'],
95
+ 'compare_by': value['compare_by'],
96
+ 'metadata_key': value['metadata_key'],
97
+ 'permissions': value['permissions'],
98
+ 'updated_at': value['updated_at'].toISOString(),
99
+ 'revision': value['revision'],
100
+ 'view_config': CovalReportsAPIReportViewConfigurationToJSON(value['view_config']),
101
+ 'metric_config': (mapValues(value['metric_config'], CovalReportsAPIReportMetricConfigurationEntryToJSON)),
102
+ };
103
+ }
104
+ //# sourceMappingURL=CovalReportsAPIReportDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CovalReportsAPIReportDetail.js","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportDetail.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EACH,8CAA8C,EAE9C,4CAA4C,GAE/C,MAAM,6CAA6C,CAAC;AAErD,OAAO,EACH,qDAAqD,EAErD,mDAAmD,GAEtD,MAAM,oDAAoD,CAAC;AAqF5D;;GAEG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG;IACpD,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,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iC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,gCAAgC,EAAE,KAAK,CAAC,gCAAgC,CAAC;QACzE,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC,WAAW,EAAE;QAC/C,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,aAAa,EAAE,4CAA4C,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACjF,eAAe,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,mDAAmD,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Coval Agents API
3
+ * Manage configurations for simulations and evaluations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@coval.dev
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CovalReportsAPIReportMetricConfigurationEntry
16
+ */
17
+ export interface CovalReportsAPIReportMetricConfigurationEntry {
18
+ [key: string]: any | any;
19
+ /**
20
+ * Whether the metric is visible in the report.
21
+ * @type {boolean}
22
+ * @memberof CovalReportsAPIReportMetricConfigurationEntry
23
+ */
24
+ visible?: boolean;
25
+ /**
26
+ * Optional report-specific passing threshold.
27
+ * @type {number}
28
+ * @memberof CovalReportsAPIReportMetricConfigurationEntry
29
+ */
30
+ passing_threshold?: number | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CovalReportsAPIReportMetricConfigurationEntry interface.
34
+ */
35
+ export declare function instanceOfCovalReportsAPIReportMetricConfigurationEntry(value: object): value is CovalReportsAPIReportMetricConfigurationEntry;
36
+ export declare function CovalReportsAPIReportMetricConfigurationEntryFromJSON(json: any): CovalReportsAPIReportMetricConfigurationEntry;
37
+ export declare function CovalReportsAPIReportMetricConfigurationEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportMetricConfigurationEntry;
38
+ export declare function CovalReportsAPIReportMetricConfigurationEntryToJSON(json: any): CovalReportsAPIReportMetricConfigurationEntry;
39
+ export declare function CovalReportsAPIReportMetricConfigurationEntryToJSONTyped(value?: CovalReportsAPIReportMetricConfigurationEntry | null, ignoreDiscriminator?: boolean): any;
40
+ //# sourceMappingURL=CovalReportsAPIReportMetricConfigurationEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CovalReportsAPIReportMetricConfigurationEntry.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricConfigurationEntry.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6CAA6C;IAC1D,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC;AAED;;GAEG;AACH,wBAAgB,uDAAuD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6CAA6C,CAE7I;AAED,wBAAgB,qDAAqD,CAAC,IAAI,EAAE,GAAG,GAAG,6CAA6C,CAE9H;AAED,wBAAgB,0DAA0D,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6CAA6C,CAUjK;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,GAAG,6CAA6C,CAE5H;AAED,wBAAgB,wDAAwD,CAAC,KAAK,CAAC,EAAE,6CAA6C,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhL"}
@@ -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
+ * Check if a given object implements the CovalReportsAPIReportMetricConfigurationEntry interface.
16
+ */
17
+ export function instanceOfCovalReportsAPIReportMetricConfigurationEntry(value) {
18
+ return true;
19
+ }
20
+ export function CovalReportsAPIReportMetricConfigurationEntryFromJSON(json) {
21
+ return CovalReportsAPIReportMetricConfigurationEntryFromJSONTyped(json, false);
22
+ }
23
+ export function CovalReportsAPIReportMetricConfigurationEntryFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ ...json,
29
+ 'visible': json['visible'] == null ? undefined : json['visible'],
30
+ 'passing_threshold': json['passing_threshold'] == null ? undefined : json['passing_threshold'],
31
+ };
32
+ }
33
+ export function CovalReportsAPIReportMetricConfigurationEntryToJSON(json) {
34
+ return CovalReportsAPIReportMetricConfigurationEntryToJSONTyped(json, false);
35
+ }
36
+ export function CovalReportsAPIReportMetricConfigurationEntryToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ ...value,
42
+ 'visible': value['visible'],
43
+ 'passing_threshold': value['passing_threshold'],
44
+ };
45
+ }
46
+ //# sourceMappingURL=CovalReportsAPIReportMetricConfigurationEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CovalReportsAPIReportMetricConfigurationEntry.js","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricConfigurationEntry.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAwBH;;GAEG;AACH,MAAM,UAAU,uDAAuD,CAAC,KAAa;IACjF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,qDAAqD,CAAC,IAAS;IAC3E,OAAO,0DAA0D,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnF,CAAC;AAED,MAAM,UAAU,0DAA0D,CAAC,IAAS,EAAE,mBAA4B;IAC9G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEC,GAAG,IAAI;QACX,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;QAChE,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC;KACjG,CAAC;AACN,CAAC;AAED,MAAM,UAAU,mDAAmD,CAAC,IAAS;IACzE,OAAO,wDAAwD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,wDAAwD,CAAC,KAA4D,EAAE,sBAA+B,KAAK;IACvK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEC,GAAG,KAAK;QACZ,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;KAClD,CAAC;AACN,CAAC"}
@@ -39,7 +39,7 @@ export interface CovalReportsAPIReportMetricOutput {
39
39
  * @type {CovalReportsAPIReportMetricOutputValue}
40
40
  * @memberof CovalReportsAPIReportMetricOutput
41
41
  */
42
- value?: CovalReportsAPIReportMetricOutputValue | null;
42
+ value?: CovalReportsAPIReportMetricOutputValue;
43
43
  /**
44
44
  *
45
45
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"CovalReportsAPIReportMetricOutput.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAQ1G;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,sCAAsC,GAAG,IAAI,CAAC;IACtD;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAErH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAYzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxJ"}
1
+ {"version":3,"file":"CovalReportsAPIReportMetricOutput.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutput.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,sCAAsC,EAAE,MAAM,6CAA6C,CAAC;AAQ1G;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,KAAK,CAAC,EAAE,sCAAsC,CAAC;IAC/C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAErH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAYzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxJ"}
@@ -10,18 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
+ * @type CovalReportsAPIReportMetricOutputValue
13
14
  * Metric value (float, string, or list of strings).
14
15
  * @export
15
- * @interface CovalReportsAPIReportMetricOutputValue
16
16
  */
17
- export interface CovalReportsAPIReportMetricOutputValue {
18
- }
19
- /**
20
- * Check if a given object implements the CovalReportsAPIReportMetricOutputValue interface.
21
- */
22
- export declare function instanceOfCovalReportsAPIReportMetricOutputValue(value: object): value is CovalReportsAPIReportMetricOutputValue;
17
+ export type CovalReportsAPIReportMetricOutputValue = Array<string> | number | string;
23
18
  export declare function CovalReportsAPIReportMetricOutputValueFromJSON(json: any): CovalReportsAPIReportMetricOutputValue;
24
19
  export declare function CovalReportsAPIReportMetricOutputValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportMetricOutputValue;
25
- export declare function CovalReportsAPIReportMetricOutputValueToJSON(json: any): CovalReportsAPIReportMetricOutputValue;
20
+ export declare function CovalReportsAPIReportMetricOutputValueToJSON(json: any): any;
26
21
  export declare function CovalReportsAPIReportMetricOutputValueToJSONTyped(value?: CovalReportsAPIReportMetricOutputValue | null, ignoreDiscriminator?: boolean): any;
27
22
  //# sourceMappingURL=CovalReportsAPIReportMetricOutputValue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CovalReportsAPIReportMetricOutputValue.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutputValue.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sCAAsC;CACtD;AAED;;GAEG;AACH,wBAAgB,gDAAgD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sCAAsC,CAE/H;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,GAAG,sCAAsC,CAEhH;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sCAAsC,CAEnJ;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,sCAAsC,CAE9G;AAED,wBAAgB,iDAAiD,CAAC,KAAK,CAAC,EAAE,sCAAsC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAElK"}
1
+ {"version":3,"file":"CovalReportsAPIReportMetricOutputValue.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutputValue.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,MAAM,MAAM,sCAAsC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,MAAM,CAAC;AAErF,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,GAAG,sCAAsC,CAEhH;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sCAAsC,CAgBnJ;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE3E;AAED,wBAAgB,iDAAiD,CAAC,KAAK,CAAC,EAAE,sCAAsC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBlK"}
@@ -11,22 +11,44 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- /**
15
- * Check if a given object implements the CovalReportsAPIReportMetricOutputValue interface.
16
- */
17
- export function instanceOfCovalReportsAPIReportMetricOutputValue(value) {
18
- return true;
19
- }
20
14
  export function CovalReportsAPIReportMetricOutputValueFromJSON(json) {
21
15
  return CovalReportsAPIReportMetricOutputValueFromJSONTyped(json, false);
22
16
  }
23
17
  export function CovalReportsAPIReportMetricOutputValueFromJSONTyped(json, ignoreDiscriminator) {
24
- return json;
18
+ if (json == null) {
19
+ return json;
20
+ }
21
+ if (Array.isArray(json)) {
22
+ if (json.every(item => typeof item === 'string')) {
23
+ return json;
24
+ }
25
+ }
26
+ if (typeof json === 'number') {
27
+ return json;
28
+ }
29
+ if (typeof json === 'string') {
30
+ return json;
31
+ }
32
+ return {};
25
33
  }
26
34
  export function CovalReportsAPIReportMetricOutputValueToJSON(json) {
27
35
  return CovalReportsAPIReportMetricOutputValueToJSONTyped(json, false);
28
36
  }
29
37
  export function CovalReportsAPIReportMetricOutputValueToJSONTyped(value, ignoreDiscriminator = false) {
30
- return value;
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ if (Array.isArray(value)) {
42
+ if (value.every(item => typeof item === 'string')) {
43
+ return value;
44
+ }
45
+ }
46
+ if (typeof value === 'number') {
47
+ return value;
48
+ }
49
+ if (typeof value === 'string') {
50
+ return value;
51
+ }
52
+ return {};
31
53
  }
32
54
  //# sourceMappingURL=CovalReportsAPIReportMetricOutputValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CovalReportsAPIReportMetricOutputValue.js","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutputValue.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAWH;;GAEG;AACH,MAAM,UAAU,gDAAgD,CAAC,KAAa;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,8CAA8C,CAAC,IAAS;IACpE,OAAO,mDAAmD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,mDAAmD,CAAC,IAAS,EAAE,mBAA4B;IACvG,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,4CAA4C,CAAC,IAAS;IAClE,OAAO,iDAAiD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,iDAAiD,CAAC,KAAqD,EAAE,sBAA+B,KAAK;IACzJ,OAAO,KAAK,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"CovalReportsAPIReportMetricOutputValue.js","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportMetricOutputValue.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GA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EAAE,CAAC;QAC5B,OAAO,KAAK,CAAC;IACjB,CAAC;IACD,OAAO,EAAE,CAAC;AACd,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Coval Agents API
3
+ * Manage configurations for simulations and evaluations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@coval.dev
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CovalReportsAPIMonitoringFiltersConfiguration } from './CovalReportsAPIMonitoringFiltersConfiguration.js';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CovalReportsAPIReportViewConfiguration
17
+ */
18
+ export interface CovalReportsAPIReportViewConfiguration {
19
+ /**
20
+ * True when rows are resolved dynamically from monitoring data.
21
+ * @type {boolean}
22
+ * @memberof CovalReportsAPIReportViewConfiguration
23
+ */
24
+ is_monitoring: boolean;
25
+ /**
26
+ *
27
+ * @type {CovalReportsAPIReportViewConfigurationCompareByEnum}
28
+ * @memberof CovalReportsAPIReportViewConfiguration
29
+ */
30
+ compare_by: CovalReportsAPIReportViewConfigurationCompareByEnum;
31
+ /**
32
+ * Required when `compare_by` is `metadata`; null otherwise.
33
+ * @type {string}
34
+ * @memberof CovalReportsAPIReportViewConfiguration
35
+ */
36
+ metadata_key: string | null;
37
+ /**
38
+ *
39
+ * @type {CovalReportsAPIReportViewConfigurationViewModeEnum}
40
+ * @memberof CovalReportsAPIReportViewConfiguration
41
+ */
42
+ view_mode: CovalReportsAPIReportViewConfigurationViewModeEnum;
43
+ /**
44
+ *
45
+ * @type {CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum}
46
+ * @memberof CovalReportsAPIReportViewConfiguration
47
+ */
48
+ secondary_compare_by: CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum;
49
+ /**
50
+ * Required when `secondary_compare_by` is `metadata`; null otherwise.
51
+ * @type {string}
52
+ * @memberof CovalReportsAPIReportViewConfiguration
53
+ */
54
+ secondary_metadata_key: string | null;
55
+ /**
56
+ * Saved supported cohort filters; null for reports without monitoring filters.
57
+ * @type {CovalReportsAPIMonitoringFiltersConfiguration}
58
+ * @memberof CovalReportsAPIReportViewConfiguration
59
+ */
60
+ monitoring_filters: CovalReportsAPIMonitoringFiltersConfiguration | null;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const CovalReportsAPIReportViewConfigurationCompareByEnum: {
66
+ readonly None: "none";
67
+ readonly Run: "run";
68
+ readonly Agent: "agent";
69
+ readonly Mutation: "mutation";
70
+ readonly Persona: "persona";
71
+ readonly TestCase: "test_case";
72
+ readonly Metadata: "metadata";
73
+ };
74
+ export type CovalReportsAPIReportViewConfigurationCompareByEnum = typeof CovalReportsAPIReportViewConfigurationCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationCompareByEnum];
75
+ /**
76
+ * @export
77
+ */
78
+ export declare const CovalReportsAPIReportViewConfigurationViewModeEnum: {
79
+ readonly Rows: "rows";
80
+ readonly Grouped: "grouped";
81
+ };
82
+ export type CovalReportsAPIReportViewConfigurationViewModeEnum = typeof CovalReportsAPIReportViewConfigurationViewModeEnum[keyof typeof CovalReportsAPIReportViewConfigurationViewModeEnum];
83
+ /**
84
+ * @export
85
+ */
86
+ export declare const CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum: {
87
+ readonly None: "none";
88
+ readonly Run: "run";
89
+ readonly Agent: "agent";
90
+ readonly Mutation: "mutation";
91
+ readonly Persona: "persona";
92
+ readonly TestCase: "test_case";
93
+ readonly Metadata: "metadata";
94
+ };
95
+ export type CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum = typeof CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum[keyof typeof CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum];
96
+ /**
97
+ * Check if a given object implements the CovalReportsAPIReportViewConfiguration interface.
98
+ */
99
+ export declare function instanceOfCovalReportsAPIReportViewConfiguration(value: object): value is CovalReportsAPIReportViewConfiguration;
100
+ export declare function CovalReportsAPIReportViewConfigurationFromJSON(json: any): CovalReportsAPIReportViewConfiguration;
101
+ export declare function CovalReportsAPIReportViewConfigurationFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalReportsAPIReportViewConfiguration;
102
+ export declare function CovalReportsAPIReportViewConfigurationToJSON(json: any): CovalReportsAPIReportViewConfiguration;
103
+ export declare function CovalReportsAPIReportViewConfigurationToJSONTyped(value?: CovalReportsAPIReportViewConfiguration | null, ignoreDiscriminator?: boolean): any;
104
+ //# sourceMappingURL=CovalReportsAPIReportViewConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CovalReportsAPIReportViewConfiguration.d.ts","sourceRoot":"","sources":["../../../src/generated/models/CovalReportsAPIReportViewConfiguration.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,6CAA6C,EAAE,MAAM,oDAAoD,CAAC;AAQxH;;;;GAIG;AACH,MAAM,WAAW,sCAAsC;IACnD;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,UAAU,EAAE,mDAAmD,CAAC;IAChE;;;;OAIG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,kDAAkD,CAAC;IAC9D;;;;OAIG;IACH,oBAAoB,EAAE,4DAA4D,CAAC;IACnF;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,kBAAkB,EAAE,6CAA6C,GAAG,IAAI,CAAC;CAC5E;AAGD;;GAEG;AACH,eAAO,MAAM,mDAAmD;;;;;;;;CAQtD,CAAC;AACX,MAAM,MAAM,mDAAmD,GAAG,OAAO,mDAAmD,CAAC,MAAM,OAAO,mDAAmD,CAAC,CAAC;AAE/L;;GAEG;AACH,eAAO,MAAM,kDAAkD;;;CAGrD,CAAC;AACX,MAAM,MAAM,kDAAkD,GAAG,OAAO,kDAAkD,CAAC,MAAM,OAAO,kDAAkD,CAAC,CAAC;AAE5L;;GAEG;AACH,eAAO,MAAM,4DAA4D;;;;;;;;CAQ/D,CAAC;AACX,MAAM,MAAM,4DAA4D,GAAG,OAAO,4DAA4D,CAAC,MAAM,OAAO,4DAA4D,CAAC,CAAC;AAG1N;;GAEG;AACH,wBAAgB,gDAAgD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sCAAsC,CAS/H;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,GAAG,sCAAsC,CAEhH;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sCAAsC,CAcnJ;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,sCAAsC,CAE9G;AAED,wBAAgB,iDAAiD,CAAC,KAAK,CAAC,EAAE,sCAAsC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAelK"}
@@ -0,0 +1,100 @@
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
+ import { CovalReportsAPIMonitoringFiltersConfigurationFromJSON, CovalReportsAPIMonitoringFiltersConfigurationToJSON, } from './CovalReportsAPIMonitoringFiltersConfiguration.js';
15
+ /**
16
+ * @export
17
+ */
18
+ export const CovalReportsAPIReportViewConfigurationCompareByEnum = {
19
+ None: 'none',
20
+ Run: 'run',
21
+ Agent: 'agent',
22
+ Mutation: 'mutation',
23
+ Persona: 'persona',
24
+ TestCase: 'test_case',
25
+ Metadata: 'metadata'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const CovalReportsAPIReportViewConfigurationViewModeEnum = {
31
+ Rows: 'rows',
32
+ Grouped: 'grouped'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ export const CovalReportsAPIReportViewConfigurationSecondaryCompareByEnum = {
38
+ None: 'none',
39
+ Run: 'run',
40
+ Agent: 'agent',
41
+ Mutation: 'mutation',
42
+ Persona: 'persona',
43
+ TestCase: 'test_case',
44
+ Metadata: 'metadata'
45
+ };
46
+ /**
47
+ * Check if a given object implements the CovalReportsAPIReportViewConfiguration interface.
48
+ */
49
+ export function instanceOfCovalReportsAPIReportViewConfiguration(value) {
50
+ if (!('is_monitoring' in value) || value['is_monitoring'] === undefined)
51
+ return false;
52
+ if (!('compare_by' in value) || value['compare_by'] === undefined)
53
+ return false;
54
+ if (!('metadata_key' in value) || value['metadata_key'] === undefined)
55
+ return false;
56
+ if (!('view_mode' in value) || value['view_mode'] === undefined)
57
+ return false;
58
+ if (!('secondary_compare_by' in value) || value['secondary_compare_by'] === undefined)
59
+ return false;
60
+ if (!('secondary_metadata_key' in value) || value['secondary_metadata_key'] === undefined)
61
+ return false;
62
+ if (!('monitoring_filters' in value) || value['monitoring_filters'] === undefined)
63
+ return false;
64
+ return true;
65
+ }
66
+ export function CovalReportsAPIReportViewConfigurationFromJSON(json) {
67
+ return CovalReportsAPIReportViewConfigurationFromJSONTyped(json, false);
68
+ }
69
+ export function CovalReportsAPIReportViewConfigurationFromJSONTyped(json, ignoreDiscriminator) {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+ 'is_monitoring': json['is_monitoring'],
75
+ 'compare_by': json['compare_by'],
76
+ 'metadata_key': json['metadata_key'],
77
+ 'view_mode': json['view_mode'],
78
+ 'secondary_compare_by': json['secondary_compare_by'],
79
+ 'secondary_metadata_key': json['secondary_metadata_key'],
80
+ 'monitoring_filters': CovalReportsAPIMonitoringFiltersConfigurationFromJSON(json['monitoring_filters']),
81
+ };
82
+ }
83
+ export function CovalReportsAPIReportViewConfigurationToJSON(json) {
84
+ return CovalReportsAPIReportViewConfigurationToJSONTyped(json, false);
85
+ }
86
+ export function CovalReportsAPIReportViewConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'is_monitoring': value['is_monitoring'],
92
+ 'compare_by': value['compare_by'],
93
+ 'metadata_key': value['metadata_key'],
94
+ 'view_mode': value['view_mode'],
95
+ 'secondary_compare_by': value['secondary_compare_by'],
96
+ 'secondary_metadata_key': value['secondary_metadata_key'],
97
+ 'monitoring_filters': CovalReportsAPIMonitoringFiltersConfigurationToJSON(value['monitoring_filters']),
98
+ };
99
+ }
100
+ //# sourceMappingURL=CovalReportsAPIReportViewConfiguration.js.map