@coval/sdk 0.7.1 → 0.9.3

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 (153) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE +5 -0
  3. package/README.md +2 -2
  4. package/dist/CovalClient.d.ts +3 -2
  5. package/dist/CovalClient.d.ts.map +1 -1
  6. package/dist/CovalClient.js +4 -1
  7. package/dist/CovalClient.js.map +1 -1
  8. package/dist/generated/apis/PythonMetricsApi.d.ts +290 -0
  9. package/dist/generated/apis/PythonMetricsApi.d.ts.map +1 -0
  10. package/dist/generated/apis/PythonMetricsApi.js +291 -0
  11. package/dist/generated/apis/PythonMetricsApi.js.map +1 -0
  12. package/dist/generated/apis/ReviewAnnotationsApi.d.ts +16 -16
  13. package/dist/generated/apis/ReviewAnnotationsApi.js +6 -6
  14. package/dist/generated/apis/ReviewProjectsApi.d.ts +4 -4
  15. package/dist/generated/apis/ReviewProjectsApi.js +2 -2
  16. package/dist/generated/apis/SimulatedConversationsApi.d.ts +15 -12
  17. package/dist/generated/apis/SimulatedConversationsApi.d.ts.map +1 -1
  18. package/dist/generated/apis/SimulatedConversationsApi.js +7 -4
  19. package/dist/generated/apis/SimulatedConversationsApi.js.map +1 -1
  20. package/dist/generated/apis/index.d.ts +1 -0
  21. package/dist/generated/apis/index.d.ts.map +1 -1
  22. package/dist/generated/apis/index.js +1 -0
  23. package/dist/generated/apis/index.js.map +1 -1
  24. package/dist/generated/models/CovalMetricsAPIMetricType.d.ts +2 -0
  25. package/dist/generated/models/CovalMetricsAPIMetricType.d.ts.map +1 -1
  26. package/dist/generated/models/CovalMetricsAPIMetricType.js +2 -0
  27. package/dist/generated/models/CovalMetricsAPIMetricType.js.map +1 -1
  28. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.d.ts +9 -0
  29. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.d.ts.map +1 -1
  30. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.js +2 -0
  31. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.js.map +1 -1
  32. package/dist/generated/models/CovalPersonasAPIPersonaResource.d.ts +9 -0
  33. package/dist/generated/models/CovalPersonasAPIPersonaResource.d.ts.map +1 -1
  34. package/dist/generated/models/CovalPersonasAPIPersonaResource.js +2 -0
  35. package/dist/generated/models/CovalPersonasAPIPersonaResource.js.map +1 -1
  36. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.d.ts +10 -0
  37. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.d.ts.map +1 -1
  38. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.js +2 -0
  39. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.js.map +1 -1
  40. package/dist/generated/models/CovalReviewsAPICreateReviewAnnotationRequest.d.ts +2 -2
  41. package/dist/generated/models/CovalReviewsAPIProjectType.d.ts +1 -1
  42. package/dist/generated/models/CovalReviewsAPIProjectType.js +1 -1
  43. package/dist/generated/models/CovalReviewsAPIReviewAnnotationResource.d.ts +2 -2
  44. package/dist/generated/models/CovalReviewsAPIReviewAnnotationWithMetricVersionResource.d.ts +1 -1
  45. package/dist/generated/models/CovalReviewsAPIReviewProjectResource.d.ts +7 -1
  46. package/dist/generated/models/CovalReviewsAPIReviewProjectResource.d.ts.map +1 -1
  47. package/dist/generated/models/CovalReviewsAPIReviewProjectResource.js +2 -0
  48. package/dist/generated/models/CovalReviewsAPIReviewProjectResource.js.map +1 -1
  49. package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.d.ts +7 -3
  50. package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.d.ts.map +1 -1
  51. package/dist/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.js.map +1 -1
  52. package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.d.ts +7 -1
  53. package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.d.ts.map +1 -1
  54. package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.js +2 -0
  55. package/dist/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.js.map +1 -1
  56. package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.d.ts +1 -0
  57. package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.d.ts.map +1 -1
  58. package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.js +1 -0
  59. package/dist/generated/models/CovalRunTemplatesAPIErrorResponseError.js.map +1 -1
  60. package/dist/generated/models/CovalRunsAPIError.d.ts +1 -0
  61. package/dist/generated/models/CovalRunsAPIError.d.ts.map +1 -1
  62. package/dist/generated/models/CovalRunsAPIError.js +1 -0
  63. package/dist/generated/models/CovalRunsAPIError.js.map +1 -1
  64. package/dist/generated/models/CovalSimulatedConversationsAPIRerunSimulatedConversationMetricsRequest.d.ts +1 -1
  65. package/dist/generated/models/CovalUploadedConversationsAPISubmitUploadedConversationRequest.d.ts +8 -2
  66. package/dist/generated/models/CovalUploadedConversationsAPISubmitUploadedConversationRequest.d.ts.map +1 -1
  67. package/dist/generated/models/CovalUploadedConversationsAPISubmitUploadedConversationRequest.js.map +1 -1
  68. package/dist/generated/models/CovalUploadedConversationsAPITranscriptMessage.d.ts +53 -0
  69. package/dist/generated/models/CovalUploadedConversationsAPITranscriptMessage.d.ts.map +1 -1
  70. package/dist/generated/models/CovalUploadedConversationsAPITranscriptMessage.js +17 -0
  71. package/dist/generated/models/CovalUploadedConversationsAPITranscriptMessage.js.map +1 -1
  72. package/dist/generated/models/CovalUploadedConversationsAPIUploadedConversationResource.d.ts +4 -1
  73. package/dist/generated/models/CovalUploadedConversationsAPIUploadedConversationResource.d.ts.map +1 -1
  74. package/dist/generated/models/CovalUploadedConversationsAPIUploadedConversationResource.js.map +1 -1
  75. package/dist/generated/models/PythonMetricsAPICreatePythonMetricDraftRequest.d.ts +84 -0
  76. package/dist/generated/models/PythonMetricsAPICreatePythonMetricDraftRequest.d.ts.map +1 -0
  77. package/dist/generated/models/PythonMetricsAPICreatePythonMetricDraftRequest.js +70 -0
  78. package/dist/generated/models/PythonMetricsAPICreatePythonMetricDraftRequest.js.map +1 -0
  79. package/dist/generated/models/PythonMetricsAPIInputRequirements.d.ts +45 -0
  80. package/dist/generated/models/PythonMetricsAPIInputRequirements.d.ts.map +1 -0
  81. package/dist/generated/models/PythonMetricsAPIInputRequirements.js +46 -0
  82. package/dist/generated/models/PythonMetricsAPIInputRequirements.js.map +1 -0
  83. package/dist/generated/models/PythonMetricsAPIPreviewPythonMetricBody.d.ts +33 -0
  84. package/dist/generated/models/PythonMetricsAPIPreviewPythonMetricBody.d.ts.map +1 -0
  85. package/dist/generated/models/PythonMetricsAPIPreviewPythonMetricBody.js +44 -0
  86. package/dist/generated/models/PythonMetricsAPIPreviewPythonMetricBody.js.map +1 -0
  87. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricBody.d.ts +39 -0
  88. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricBody.d.ts.map +1 -0
  89. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricBody.js +48 -0
  90. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricBody.js.map +1 -0
  91. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricResponse.d.ts +39 -0
  92. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricResponse.d.ts.map +1 -0
  93. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricResponse.js +48 -0
  94. package/dist/generated/models/PythonMetricsAPIPublishPythonMetricResponse.js.map +1 -0
  95. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResource.d.ts +108 -0
  96. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResource.d.ts.map +1 -0
  97. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResource.js +92 -0
  98. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResource.js.map +1 -0
  99. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResponse.d.ts +34 -0
  100. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResponse.d.ts.map +1 -0
  101. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResponse.js +45 -0
  102. package/dist/generated/models/PythonMetricsAPIPythonMetricDraftResponse.js.map +1 -0
  103. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResource.d.ts +64 -0
  104. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResource.d.ts.map +1 -0
  105. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResource.js +59 -0
  106. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResource.js.map +1 -0
  107. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResourceValue.d.ts +27 -0
  108. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResourceValue.d.ts.map +1 -0
  109. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResourceValue.js +32 -0
  110. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewResourceValue.js.map +1 -0
  111. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewsResponse.d.ts +34 -0
  112. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewsResponse.d.ts.map +1 -0
  113. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewsResponse.js +45 -0
  114. package/dist/generated/models/PythonMetricsAPIPythonMetricPreviewsResponse.js.map +1 -0
  115. package/dist/generated/models/index.d.ts +10 -0
  116. package/dist/generated/models/index.d.ts.map +1 -1
  117. package/dist/generated/models/index.js +10 -0
  118. package/dist/generated/models/index.js.map +1 -1
  119. package/package.json +7 -5
  120. package/src/CovalClient.ts +4 -0
  121. package/src/generated/apis/PythonMetricsApi.ts +627 -0
  122. package/src/generated/apis/ReviewAnnotationsApi.ts +16 -16
  123. package/src/generated/apis/ReviewProjectsApi.ts +4 -4
  124. package/src/generated/apis/SimulatedConversationsApi.ts +19 -12
  125. package/src/generated/apis/index.ts +1 -0
  126. package/src/generated/models/CovalMetricsAPIMetricType.ts +2 -0
  127. package/src/generated/models/CovalPersonasAPICreatePersonaRequest.ts +11 -0
  128. package/src/generated/models/CovalPersonasAPIPersonaResource.ts +11 -0
  129. package/src/generated/models/CovalPersonasAPIUpdatePersonaRequest.ts +12 -0
  130. package/src/generated/models/CovalReviewsAPICreateReviewAnnotationRequest.ts +2 -2
  131. package/src/generated/models/CovalReviewsAPIProjectType.ts +1 -1
  132. package/src/generated/models/CovalReviewsAPIReviewAnnotationResource.ts +2 -2
  133. package/src/generated/models/CovalReviewsAPIReviewAnnotationWithMetricVersionResource.ts +1 -1
  134. package/src/generated/models/CovalReviewsAPIReviewProjectResource.ts +9 -1
  135. package/src/generated/models/CovalReviewsAPIUpdateReviewAnnotationRequest.ts +7 -3
  136. package/src/generated/models/CovalReviewsAPIUpdateReviewProjectRequest.ts +9 -1
  137. package/src/generated/models/CovalRunTemplatesAPIErrorResponseError.ts +1 -0
  138. package/src/generated/models/CovalRunsAPIError.ts +1 -0
  139. package/src/generated/models/CovalSimulatedConversationsAPIRerunSimulatedConversationMetricsRequest.ts +1 -1
  140. package/src/generated/models/CovalUploadedConversationsAPISubmitUploadedConversationRequest.ts +8 -2
  141. package/src/generated/models/CovalUploadedConversationsAPITranscriptMessage.ts +64 -0
  142. package/src/generated/models/CovalUploadedConversationsAPIUploadedConversationResource.ts +4 -1
  143. package/src/generated/models/PythonMetricsAPICreatePythonMetricDraftRequest.ts +143 -0
  144. package/src/generated/models/PythonMetricsAPIInputRequirements.ts +81 -0
  145. package/src/generated/models/PythonMetricsAPIPreviewPythonMetricBody.ts +66 -0
  146. package/src/generated/models/PythonMetricsAPIPublishPythonMetricBody.ts +75 -0
  147. package/src/generated/models/PythonMetricsAPIPublishPythonMetricResponse.ts +75 -0
  148. package/src/generated/models/PythonMetricsAPIPythonMetricDraftResource.ts +182 -0
  149. package/src/generated/models/PythonMetricsAPIPythonMetricDraftResponse.ts +74 -0
  150. package/src/generated/models/PythonMetricsAPIPythonMetricPreviewResource.ts +116 -0
  151. package/src/generated/models/PythonMetricsAPIPythonMetricPreviewResourceValue.ts +46 -0
  152. package/src/generated/models/PythonMetricsAPIPythonMetricPreviewsResponse.ts +74 -0
  153. package/src/generated/models/index.ts +10 -0
@@ -0,0 +1,291 @@
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 * as runtime from '../runtime.js';
15
+ import { PythonMetricsAPICreatePythonMetricDraftRequestToJSON, } from '../models/PythonMetricsAPICreatePythonMetricDraftRequest.js';
16
+ import { PythonMetricsAPIPreviewPythonMetricBodyToJSON, } from '../models/PythonMetricsAPIPreviewPythonMetricBody.js';
17
+ import { PythonMetricsAPIPublishPythonMetricBodyToJSON, } from '../models/PythonMetricsAPIPublishPythonMetricBody.js';
18
+ import { PythonMetricsAPIPublishPythonMetricResponseFromJSON, } from '../models/PythonMetricsAPIPublishPythonMetricResponse.js';
19
+ import { PythonMetricsAPIPythonMetricDraftResponseFromJSON, } from '../models/PythonMetricsAPIPythonMetricDraftResponse.js';
20
+ import { PythonMetricsAPIPythonMetricPreviewsResponseFromJSON, } from '../models/PythonMetricsAPIPythonMetricPreviewsResponse.js';
21
+ /**
22
+ *
23
+ */
24
+ export class PythonMetricsApi extends runtime.BaseAPI {
25
+ /**
26
+ * Creates request options for cancelPythonMetricPreview without sending the request
27
+ */
28
+ async cancelPythonMetricPreviewRequestOpts(requestParameters) {
29
+ if (requestParameters['draftId'] == null) {
30
+ throw new runtime.RequiredError('draftId', 'Required parameter "draftId" was null or undefined when calling cancelPythonMetricPreview().');
31
+ }
32
+ if (requestParameters['previewId'] == null) {
33
+ throw new runtime.RequiredError('previewId', 'Required parameter "previewId" was null or undefined when calling cancelPythonMetricPreview().');
34
+ }
35
+ const queryParameters = {};
36
+ const headerParameters = {};
37
+ if (requestParameters['xCovalWorkspaceId'] != null) {
38
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
39
+ }
40
+ if (this.configuration && this.configuration.apiKey) {
41
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
42
+ }
43
+ let urlPath = `/python-metric-drafts/{draft_id}/previews/{preview_id}/cancel`;
44
+ urlPath = urlPath.replace('{draft_id}', encodeURIComponent(String(requestParameters['draftId'])));
45
+ urlPath = urlPath.replace('{preview_id}', encodeURIComponent(String(requestParameters['previewId'])));
46
+ return {
47
+ path: urlPath,
48
+ method: 'POST',
49
+ headers: headerParameters,
50
+ query: queryParameters,
51
+ };
52
+ }
53
+ /**
54
+ * Cancel a pending preview. An already running evaluation cannot overwrite terminal cancellation.
55
+ * Cancel a historical preview
56
+ */
57
+ async cancelPythonMetricPreviewRaw(requestParameters, initOverrides) {
58
+ const requestOptions = await this.cancelPythonMetricPreviewRequestOpts(requestParameters);
59
+ const response = await this.request(requestOptions, initOverrides);
60
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPythonMetricPreviewsResponseFromJSON(jsonValue));
61
+ }
62
+ /**
63
+ * Cancel a pending preview. An already running evaluation cannot overwrite terminal cancellation.
64
+ * Cancel a historical preview
65
+ */
66
+ async cancelPythonMetricPreview(requestParameters, initOverrides) {
67
+ const response = await this.cancelPythonMetricPreviewRaw(requestParameters, initOverrides);
68
+ return await response.value();
69
+ }
70
+ /**
71
+ * Creates request options for createPythonMetricDraft without sending the request
72
+ */
73
+ async createPythonMetricDraftRequestOpts(requestParameters) {
74
+ if (requestParameters['pythonMetricsAPICreatePythonMetricDraftRequest'] == null) {
75
+ throw new runtime.RequiredError('pythonMetricsAPICreatePythonMetricDraftRequest', 'Required parameter "pythonMetricsAPICreatePythonMetricDraftRequest" was null or undefined when calling createPythonMetricDraft().');
76
+ }
77
+ const queryParameters = {};
78
+ const headerParameters = {};
79
+ headerParameters['Content-Type'] = 'application/json';
80
+ if (requestParameters['xCovalWorkspaceId'] != null) {
81
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
82
+ }
83
+ if (this.configuration && this.configuration.apiKey) {
84
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
85
+ }
86
+ let urlPath = `/python-metric-drafts`;
87
+ return {
88
+ path: urlPath,
89
+ method: 'POST',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ body: PythonMetricsAPICreatePythonMetricDraftRequestToJSON(requestParameters['pythonMetricsAPICreatePythonMetricDraftRequest']),
93
+ };
94
+ }
95
+ /**
96
+ * Save an immutable hidden draft pinned to the accepted runtime. Source or input changes require another draft.
97
+ * Save a Python metric draft
98
+ */
99
+ async createPythonMetricDraftRaw(requestParameters, initOverrides) {
100
+ const requestOptions = await this.createPythonMetricDraftRequestOpts(requestParameters);
101
+ const response = await this.request(requestOptions, initOverrides);
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPythonMetricDraftResponseFromJSON(jsonValue));
103
+ }
104
+ /**
105
+ * Save an immutable hidden draft pinned to the accepted runtime. Source or input changes require another draft.
106
+ * Save a Python metric draft
107
+ */
108
+ async createPythonMetricDraft(requestParameters, initOverrides) {
109
+ const response = await this.createPythonMetricDraftRaw(requestParameters, initOverrides);
110
+ return await response.value();
111
+ }
112
+ /**
113
+ * Creates request options for getPythonMetricDraft without sending the request
114
+ */
115
+ async getPythonMetricDraftRequestOpts(requestParameters) {
116
+ if (requestParameters['draftId'] == null) {
117
+ throw new runtime.RequiredError('draftId', 'Required parameter "draftId" was null or undefined when calling getPythonMetricDraft().');
118
+ }
119
+ const queryParameters = {};
120
+ const headerParameters = {};
121
+ if (requestParameters['xCovalWorkspaceId'] != null) {
122
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
123
+ }
124
+ if (this.configuration && this.configuration.apiKey) {
125
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
126
+ }
127
+ let urlPath = `/python-metric-drafts/{draft_id}`;
128
+ urlPath = urlPath.replace('{draft_id}', encodeURIComponent(String(requestParameters['draftId'])));
129
+ return {
130
+ path: urlPath,
131
+ method: 'GET',
132
+ headers: headerParameters,
133
+ query: queryParameters,
134
+ };
135
+ }
136
+ /**
137
+ * Read the immutable definition and fingerprint of a draft in the authenticated workspace.
138
+ * Get a Python metric draft
139
+ */
140
+ async getPythonMetricDraftRaw(requestParameters, initOverrides) {
141
+ const requestOptions = await this.getPythonMetricDraftRequestOpts(requestParameters);
142
+ const response = await this.request(requestOptions, initOverrides);
143
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPythonMetricDraftResponseFromJSON(jsonValue));
144
+ }
145
+ /**
146
+ * Read the immutable definition and fingerprint of a draft in the authenticated workspace.
147
+ * Get a Python metric draft
148
+ */
149
+ async getPythonMetricDraft(requestParameters, initOverrides) {
150
+ const response = await this.getPythonMetricDraftRaw(requestParameters, initOverrides);
151
+ return await response.value();
152
+ }
153
+ /**
154
+ * Creates request options for getPythonMetricPreview without sending the request
155
+ */
156
+ async getPythonMetricPreviewRequestOpts(requestParameters) {
157
+ if (requestParameters['draftId'] == null) {
158
+ throw new runtime.RequiredError('draftId', 'Required parameter "draftId" was null or undefined when calling getPythonMetricPreview().');
159
+ }
160
+ if (requestParameters['previewId'] == null) {
161
+ throw new runtime.RequiredError('previewId', 'Required parameter "previewId" was null or undefined when calling getPythonMetricPreview().');
162
+ }
163
+ const queryParameters = {};
164
+ const headerParameters = {};
165
+ if (requestParameters['xCovalWorkspaceId'] != null) {
166
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
167
+ }
168
+ if (this.configuration && this.configuration.apiKey) {
169
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
170
+ }
171
+ let urlPath = `/python-metric-drafts/{draft_id}/previews/{preview_id}`;
172
+ urlPath = urlPath.replace('{draft_id}', encodeURIComponent(String(requestParameters['draftId'])));
173
+ urlPath = urlPath.replace('{preview_id}', encodeURIComponent(String(requestParameters['previewId'])));
174
+ return {
175
+ path: urlPath,
176
+ method: 'GET',
177
+ headers: headerParameters,
178
+ query: queryParameters,
179
+ };
180
+ }
181
+ /**
182
+ * Read a preview outcome, including successful numeric zero or boolean false values.
183
+ * Get a historical preview result
184
+ */
185
+ async getPythonMetricPreviewRaw(requestParameters, initOverrides) {
186
+ const requestOptions = await this.getPythonMetricPreviewRequestOpts(requestParameters);
187
+ const response = await this.request(requestOptions, initOverrides);
188
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPythonMetricPreviewsResponseFromJSON(jsonValue));
189
+ }
190
+ /**
191
+ * Read a preview outcome, including successful numeric zero or boolean false values.
192
+ * Get a historical preview result
193
+ */
194
+ async getPythonMetricPreview(requestParameters, initOverrides) {
195
+ const response = await this.getPythonMetricPreviewRaw(requestParameters, initOverrides);
196
+ return await response.value();
197
+ }
198
+ /**
199
+ * Creates request options for previewPythonMetric without sending the request
200
+ */
201
+ async previewPythonMetricRequestOpts(requestParameters) {
202
+ if (requestParameters['draftId'] == null) {
203
+ throw new runtime.RequiredError('draftId', 'Required parameter "draftId" was null or undefined when calling previewPythonMetric().');
204
+ }
205
+ if (requestParameters['pythonMetricsAPIPreviewPythonMetricBody'] == null) {
206
+ throw new runtime.RequiredError('pythonMetricsAPIPreviewPythonMetricBody', 'Required parameter "pythonMetricsAPIPreviewPythonMetricBody" was null or undefined when calling previewPythonMetric().');
207
+ }
208
+ const queryParameters = {};
209
+ const headerParameters = {};
210
+ headerParameters['Content-Type'] = 'application/json';
211
+ if (requestParameters['xCovalWorkspaceId'] != null) {
212
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
213
+ }
214
+ if (this.configuration && this.configuration.apiKey) {
215
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
216
+ }
217
+ let urlPath = `/python-metric-drafts/{draft_id}/previews`;
218
+ urlPath = urlPath.replace('{draft_id}', encodeURIComponent(String(requestParameters['draftId'])));
219
+ return {
220
+ path: urlPath,
221
+ method: 'POST',
222
+ headers: headerParameters,
223
+ query: queryParameters,
224
+ body: PythonMetricsAPIPreviewPythonMetricBodyToJSON(requestParameters['pythonMetricsAPIPreviewPythonMetricBody']),
225
+ };
226
+ }
227
+ /**
228
+ * Queue a historical conversation evaluation. Poll the returned preview ID for the durable result.
229
+ * Evaluate a draft on a historical conversation
230
+ */
231
+ async previewPythonMetricRaw(requestParameters, initOverrides) {
232
+ const requestOptions = await this.previewPythonMetricRequestOpts(requestParameters);
233
+ const response = await this.request(requestOptions, initOverrides);
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPythonMetricPreviewsResponseFromJSON(jsonValue));
235
+ }
236
+ /**
237
+ * Queue a historical conversation evaluation. Poll the returned preview ID for the durable result.
238
+ * Evaluate a draft on a historical conversation
239
+ */
240
+ async previewPythonMetric(requestParameters, initOverrides) {
241
+ const response = await this.previewPythonMetricRaw(requestParameters, initOverrides);
242
+ return await response.value();
243
+ }
244
+ /**
245
+ * Creates request options for publishPythonMetric without sending the request
246
+ */
247
+ async publishPythonMetricRequestOpts(requestParameters) {
248
+ if (requestParameters['draftId'] == null) {
249
+ throw new runtime.RequiredError('draftId', 'Required parameter "draftId" was null or undefined when calling publishPythonMetric().');
250
+ }
251
+ if (requestParameters['pythonMetricsAPIPublishPythonMetricBody'] == null) {
252
+ throw new runtime.RequiredError('pythonMetricsAPIPublishPythonMetricBody', 'Required parameter "pythonMetricsAPIPublishPythonMetricBody" was null or undefined when calling publishPythonMetric().');
253
+ }
254
+ const queryParameters = {};
255
+ const headerParameters = {};
256
+ headerParameters['Content-Type'] = 'application/json';
257
+ if (requestParameters['xCovalWorkspaceId'] != null) {
258
+ headerParameters['X-Coval-Workspace-Id'] = String(requestParameters['xCovalWorkspaceId']);
259
+ }
260
+ if (this.configuration && this.configuration.apiKey) {
261
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // Python_Metrics_API_ApiKeyAuth authentication
262
+ }
263
+ let urlPath = `/python-metric-drafts/{draft_id}/publish`;
264
+ urlPath = urlPath.replace('{draft_id}', encodeURIComponent(String(requestParameters['draftId'])));
265
+ return {
266
+ path: urlPath,
267
+ method: 'POST',
268
+ headers: headerParameters,
269
+ query: queryParameters,
270
+ body: PythonMetricsAPIPublishPythonMetricBodyToJSON(requestParameters['pythonMetricsAPIPublishPythonMetricBody']),
271
+ };
272
+ }
273
+ /**
274
+ * Publish only when successful preview evidence matches this exact draft fingerprint and runtime version.
275
+ * Publish an approved and tested Python metric
276
+ */
277
+ async publishPythonMetricRaw(requestParameters, initOverrides) {
278
+ const requestOptions = await this.publishPythonMetricRequestOpts(requestParameters);
279
+ const response = await this.request(requestOptions, initOverrides);
280
+ return new runtime.JSONApiResponse(response, (jsonValue) => PythonMetricsAPIPublishPythonMetricResponseFromJSON(jsonValue));
281
+ }
282
+ /**
283
+ * Publish only when successful preview evidence matches this exact draft fingerprint and runtime version.
284
+ * Publish an approved and tested Python metric
285
+ */
286
+ async publishPythonMetric(requestParameters, initOverrides) {
287
+ const response = await this.publishPythonMetricRaw(requestParameters, initOverrides);
288
+ return await response.value();
289
+ }
290
+ }
291
+ //# sourceMappingURL=PythonMetricsApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PythonMetricsApi.js","sourceRoot":"","sources":["../../../src/generated/apis/PythonMetricsApi.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,OAAO,EAGH,oDA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AkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;QAElG,OAAO;YACH,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,6CAA6C,CAAC,iBAAiB,CAAC,yCAAyC,CAAC,CAAC;SACpH,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAA6C,EAAE,aAA0D;QAClI,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,8BAA8B,CAAC,iBAAiB,CAAC,CAAC;QACpF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,aAAa,CAAC,CAAC;QAEnE,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,mDAAmD,CAAC,SAAS,CAAC,CAAC,CAAC;IAChI,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA6C,EAAE,aAA0D;QAC/H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ"}
@@ -58,23 +58,23 @@ export interface ReviewAnnotationsApiInterface {
58
58
  /**
59
59
  * Creates request options for createReviewAnnotation without sending the request
60
60
  * @param {CovalReviewsAPICreateReviewAnnotationRequest} covalReviewsAPICreateReviewAnnotationRequest
61
- * @param {string} [projectId] Optional project ID to apply project-rule-aware completion status
61
+ * @param {string} [projectId] Optional project ID. The simulation output, metric, and reviewer must match an assignment in this project. Applies project rules to the returned completion status.
62
62
  * @throws {RequiredError}
63
63
  * @memberof ReviewAnnotationsApiInterface
64
64
  */
65
65
  createReviewAnnotationRequestOpts(requestParameters: CreateReviewAnnotationRequest): Promise<runtime.RequestOpts>;
66
66
  /**
67
- * Create a new review annotation for your organization.
67
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
68
68
  * @summary Create review annotation
69
69
  * @param {CovalReviewsAPICreateReviewAnnotationRequest} covalReviewsAPICreateReviewAnnotationRequest
70
- * @param {string} [projectId] Optional project ID to apply project-rule-aware completion status
70
+ * @param {string} [projectId] Optional project ID. The simulation output, metric, and reviewer must match an assignment in this project. Applies project rules to the returned completion status.
71
71
  * @param {*} [options] Override http request option.
72
72
  * @throws {RequiredError}
73
73
  * @memberof ReviewAnnotationsApiInterface
74
74
  */
75
75
  createReviewAnnotationRaw(requestParameters: CreateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPICreateReviewAnnotationResponse>>;
76
76
  /**
77
- * Create a new review annotation for your organization.
77
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
78
78
  * Create review annotation
79
79
  */
80
80
  createReviewAnnotation(requestParameters: CreateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPICreateReviewAnnotationResponse>;
@@ -177,7 +177,7 @@ export interface ReviewAnnotationsApiInterface {
177
177
  */
178
178
  listReviewAnnotationsRequestOpts(requestParameters: ListReviewAnnotationsRequest): Promise<runtime.RequestOpts>;
179
179
  /**
180
- * List review annotations for your organization with optional filtering, sorting, and pagination.
180
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
181
181
  * @summary List review annotations
182
182
  * @param {number} [pageSize] Maximum number of results per page
183
183
  * @param {string} [pageToken] Opaque pagination token from previous response
@@ -189,7 +189,7 @@ export interface ReviewAnnotationsApiInterface {
189
189
  */
190
190
  listReviewAnnotationsRaw(requestParameters: ListReviewAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPIListReviewAnnotationsResponse>>;
191
191
  /**
192
- * List review annotations for your organization with optional filtering, sorting, and pagination.
192
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
193
193
  * List review annotations
194
194
  */
195
195
  listReviewAnnotations(requestParameters: ListReviewAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPIListReviewAnnotationsResponse>;
@@ -197,24 +197,24 @@ export interface ReviewAnnotationsApiInterface {
197
197
  * Creates request options for updateReviewAnnotation without sending the request
198
198
  * @param {string} annotationId The annotation ID
199
199
  * @param {CovalReviewsAPIUpdateReviewAnnotationRequest} covalReviewsAPIUpdateReviewAnnotationRequest
200
- * @param {string} [projectId] Optional project ID to apply project-rule-aware completion status
200
+ * @param {string} [projectId] Optional project ID. The annotation must match an assignment in this project. Applies project rules to the returned completion status.
201
201
  * @throws {RequiredError}
202
202
  * @memberof ReviewAnnotationsApiInterface
203
203
  */
204
204
  updateReviewAnnotationRequestOpts(requestParameters: UpdateReviewAnnotationRequest): Promise<runtime.RequestOpts>;
205
205
  /**
206
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
206
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
207
207
  * @summary Update review annotation
208
208
  * @param {string} annotationId The annotation ID
209
209
  * @param {CovalReviewsAPIUpdateReviewAnnotationRequest} covalReviewsAPIUpdateReviewAnnotationRequest
210
- * @param {string} [projectId] Optional project ID to apply project-rule-aware completion status
210
+ * @param {string} [projectId] Optional project ID. The annotation must match an assignment in this project. Applies project rules to the returned completion status.
211
211
  * @param {*} [options] Override http request option.
212
212
  * @throws {RequiredError}
213
213
  * @memberof ReviewAnnotationsApiInterface
214
214
  */
215
215
  updateReviewAnnotationRaw(requestParameters: UpdateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPIUpdateReviewAnnotationResponse>>;
216
216
  /**
217
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
217
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
218
218
  * Update review annotation
219
219
  */
220
220
  updateReviewAnnotation(requestParameters: UpdateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPIUpdateReviewAnnotationResponse>;
@@ -228,12 +228,12 @@ export declare class ReviewAnnotationsApi extends runtime.BaseAPI implements Rev
228
228
  */
229
229
  createReviewAnnotationRequestOpts(requestParameters: CreateReviewAnnotationRequest): Promise<runtime.RequestOpts>;
230
230
  /**
231
- * Create a new review annotation for your organization.
231
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
232
232
  * Create review annotation
233
233
  */
234
234
  createReviewAnnotationRaw(requestParameters: CreateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPICreateReviewAnnotationResponse>>;
235
235
  /**
236
- * Create a new review annotation for your organization.
236
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
237
237
  * Create review annotation
238
238
  */
239
239
  createReviewAnnotation(requestParameters: CreateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPICreateReviewAnnotationResponse>;
@@ -298,12 +298,12 @@ export declare class ReviewAnnotationsApi extends runtime.BaseAPI implements Rev
298
298
  */
299
299
  listReviewAnnotationsRequestOpts(requestParameters: ListReviewAnnotationsRequest): Promise<runtime.RequestOpts>;
300
300
  /**
301
- * List review annotations for your organization with optional filtering, sorting, and pagination.
301
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
302
302
  * List review annotations
303
303
  */
304
304
  listReviewAnnotationsRaw(requestParameters: ListReviewAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPIListReviewAnnotationsResponse>>;
305
305
  /**
306
- * List review annotations for your organization with optional filtering, sorting, and pagination.
306
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
307
307
  * List review annotations
308
308
  */
309
309
  listReviewAnnotations(requestParameters?: ListReviewAnnotationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPIListReviewAnnotationsResponse>;
@@ -312,12 +312,12 @@ export declare class ReviewAnnotationsApi extends runtime.BaseAPI implements Rev
312
312
  */
313
313
  updateReviewAnnotationRequestOpts(requestParameters: UpdateReviewAnnotationRequest): Promise<runtime.RequestOpts>;
314
314
  /**
315
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
315
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
316
316
  * Update review annotation
317
317
  */
318
318
  updateReviewAnnotationRaw(requestParameters: UpdateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPIUpdateReviewAnnotationResponse>>;
319
319
  /**
320
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
320
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
321
321
  * Update review annotation
322
322
  */
323
323
  updateReviewAnnotation(requestParameters: UpdateReviewAnnotationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPIUpdateReviewAnnotationResponse>;
@@ -51,7 +51,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
51
51
  };
52
52
  }
53
53
  /**
54
- * Create a new review annotation for your organization.
54
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
55
55
  * Create review annotation
56
56
  */
57
57
  async createReviewAnnotationRaw(requestParameters, initOverrides) {
@@ -60,7 +60,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
60
60
  return new runtime.JSONApiResponse(response, (jsonValue) => CovalReviewsAPICreateReviewAnnotationResponseFromJSON(jsonValue));
61
61
  }
62
62
  /**
63
- * Create a new review annotation for your organization.
63
+ * Create or update the saved annotation for a simulation output, metric, and reviewer. Project creation does not create these annotation records. Use the returned `review_annotation.id` with PATCH for later partial updates. Repeating POST replaces the saved answer fields, including clearing omitted optional answer fields.
64
64
  * Create review annotation
65
65
  */
66
66
  async createReviewAnnotation(requestParameters, initOverrides) {
@@ -255,7 +255,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
255
255
  };
256
256
  }
257
257
  /**
258
- * List review annotations for your organization with optional filtering, sorting, and pagination.
258
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
259
259
  * List review annotations
260
260
  */
261
261
  async listReviewAnnotationsRaw(requestParameters, initOverrides) {
@@ -264,7 +264,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
264
264
  return new runtime.JSONApiResponse(response, (jsonValue) => CovalReviewsAPIListReviewAnnotationsResponseFromJSON(jsonValue));
265
265
  }
266
266
  /**
267
- * List review annotations for your organization with optional filtering, sorting, and pagination.
267
+ * List saved review annotations for your organization with optional filtering, sorting, and pagination. A `project_id` filter returns saved annotations matching that project\'s assignments; it does not list unannotated assignments. A project can have assigned review work and an empty annotation list.
268
268
  * List review annotations
269
269
  */
270
270
  async listReviewAnnotations(requestParameters = {}, initOverrides) {
@@ -301,7 +301,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
301
301
  };
302
302
  }
303
303
  /**
304
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
304
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
305
305
  * Update review annotation
306
306
  */
307
307
  async updateReviewAnnotationRaw(requestParameters, initOverrides) {
@@ -310,7 +310,7 @@ export class ReviewAnnotationsApi extends runtime.BaseAPI {
310
310
  return new runtime.JSONApiResponse(response, (jsonValue) => CovalReviewsAPIUpdateReviewAnnotationResponseFromJSON(jsonValue));
311
311
  }
312
312
  /**
313
- * Partially update a review annotation. Providing a ground truth value auto-sets `completion_status` to `COMPLETED`.
313
+ * Partially update an existing saved review annotation using its annotation ID. Create the annotation with POST before attempting to update it; project assignment IDs cannot be used as annotation IDs. The reviewer cannot be changed. A different non-null `assignee` returns HTTP 400 (`INVALID_ARGUMENT`); create an annotation for that reviewer instead. Completion status is derived from saved ground truth and, when `project_id` is supplied, the applicable project rules.
314
314
  * Update review annotation
315
315
  */
316
316
  async updateReviewAnnotation(requestParameters, initOverrides) {
@@ -109,7 +109,7 @@ export interface ReviewProjectsApiInterface {
109
109
  */
110
110
  createReviewProjectRequestOpts(requestParameters: CreateReviewProjectRequest): Promise<runtime.RequestOpts>;
111
111
  /**
112
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
112
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
113
113
  * @summary Create review project
114
114
  * @param {CovalReviewsAPICreateReviewProjectRequest} covalReviewsAPICreateReviewProjectRequest
115
115
  * @param {string} [xCovalWorkspaceId] Workspace that scopes this operation. When omitted, the organization\&#39;s active default workspace is used when one can be resolved.
@@ -119,7 +119,7 @@ export interface ReviewProjectsApiInterface {
119
119
  */
120
120
  createReviewProjectRaw(requestParameters: CreateReviewProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPICreateReviewProjectResponse>>;
121
121
  /**
122
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
122
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
123
123
  * Create review project
124
124
  */
125
125
  createReviewProject(requestParameters: CreateReviewProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPICreateReviewProjectResponse>;
@@ -339,12 +339,12 @@ export declare class ReviewProjectsApi extends runtime.BaseAPI implements Review
339
339
  */
340
340
  createReviewProjectRequestOpts(requestParameters: CreateReviewProjectRequest): Promise<runtime.RequestOpts>;
341
341
  /**
342
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
342
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
343
343
  * Create review project
344
344
  */
345
345
  createReviewProjectRaw(requestParameters: CreateReviewProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalReviewsAPICreateReviewProjectResponse>>;
346
346
  /**
347
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
347
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
348
348
  * Create review project
349
349
  */
350
350
  createReviewProject(requestParameters: CreateReviewProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalReviewsAPICreateReviewProjectResponse>;
@@ -101,7 +101,7 @@ export class ReviewProjectsApi extends runtime.BaseAPI {
101
101
  };
102
102
  }
103
103
  /**
104
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
104
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
105
105
  * Create review project
106
106
  */
107
107
  async createReviewProjectRaw(requestParameters, initOverrides) {
@@ -110,7 +110,7 @@ export class ReviewProjectsApi extends runtime.BaseAPI {
110
110
  return new runtime.JSONApiResponse(response, (jsonValue) => CovalReviewsAPICreateReviewProjectResponseFromJSON(jsonValue));
111
111
  }
112
112
  /**
113
- * Create a new review project. Automatically generates annotations for every (simulation, metric, assignee) combination.
113
+ * Create a new review project defining assignments for the configured (simulation, metric, assignee) combinations. Assignments track review work separately from saved annotations. Submit review data with POST `/review-annotations` and use the returned annotation ID for later edits.
114
114
  * Create review project
115
115
  */
116
116
  async createReviewProject(requestParameters, initOverrides) {