@coval/sdk 0.4.6 → 0.5.0

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 (118) hide show
  1. package/dist/generated/apis/ConversationsApi.d.ts +27 -5
  2. package/dist/generated/apis/ConversationsApi.d.ts.map +1 -1
  3. package/dist/generated/apis/ConversationsApi.js +22 -2
  4. package/dist/generated/apis/ConversationsApi.js.map +1 -1
  5. package/dist/generated/apis/MetricOutputsApi.d.ts +11 -0
  6. package/dist/generated/apis/MetricOutputsApi.d.ts.map +1 -1
  7. package/dist/generated/apis/MetricOutputsApi.js +10 -0
  8. package/dist/generated/apis/MetricOutputsApi.js.map +1 -1
  9. package/dist/generated/apis/MetricsApi.d.ts +12 -12
  10. package/dist/generated/apis/MetricsApi.js +6 -6
  11. package/dist/generated/apis/SimulationsApi.d.ts +4 -4
  12. package/dist/generated/apis/SimulationsApi.js +2 -2
  13. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts +2 -0
  14. package/dist/generated/models/CovalAgentsAPISimulatorType.d.ts.map +1 -1
  15. package/dist/generated/models/CovalAgentsAPISimulatorType.js +3 -1
  16. package/dist/generated/models/CovalAgentsAPISimulatorType.js.map +1 -1
  17. package/dist/generated/models/CovalConversationsAPIFilteredSubmitResponse.d.ts +47 -0
  18. package/dist/generated/models/CovalConversationsAPIFilteredSubmitResponse.d.ts.map +1 -0
  19. package/dist/generated/models/CovalConversationsAPIFilteredSubmitResponse.js +52 -0
  20. package/dist/generated/models/CovalConversationsAPIFilteredSubmitResponse.js.map +1 -0
  21. package/dist/generated/models/CovalConversationsAPISubmitConversationRequest.d.ts +6 -0
  22. package/dist/generated/models/CovalConversationsAPISubmitConversationRequest.d.ts.map +1 -1
  23. package/dist/generated/models/CovalConversationsAPISubmitConversationRequest.js.map +1 -1
  24. package/dist/generated/models/CovalDashboardsAPIChartWidgetConfig.d.ts +6 -0
  25. package/dist/generated/models/CovalDashboardsAPIChartWidgetConfig.d.ts.map +1 -1
  26. package/dist/generated/models/CovalDashboardsAPIChartWidgetConfig.js +2 -0
  27. package/dist/generated/models/CovalDashboardsAPIChartWidgetConfig.js.map +1 -1
  28. package/dist/generated/models/CovalDashboardsAPITableWidgetConfig.d.ts +6 -0
  29. package/dist/generated/models/CovalDashboardsAPITableWidgetConfig.d.ts.map +1 -1
  30. package/dist/generated/models/CovalDashboardsAPITableWidgetConfig.js +2 -0
  31. package/dist/generated/models/CovalDashboardsAPITableWidgetConfig.js.map +1 -1
  32. package/dist/generated/models/CovalDashboardsAPIUpdateWidgetRequest.d.ts +1 -1
  33. package/dist/generated/models/CovalDashboardsAPIWidgetConfig.d.ts +6 -0
  34. package/dist/generated/models/CovalDashboardsAPIWidgetConfig.d.ts.map +1 -1
  35. package/dist/generated/models/CovalDashboardsAPIWidgetConfig.js +2 -0
  36. package/dist/generated/models/CovalDashboardsAPIWidgetConfig.js.map +1 -1
  37. package/dist/generated/models/CovalMetricsAPICreateMetricRequest.d.ts +127 -1
  38. package/dist/generated/models/CovalMetricsAPICreateMetricRequest.d.ts.map +1 -1
  39. package/dist/generated/models/CovalMetricsAPICreateMetricRequest.js +71 -1
  40. package/dist/generated/models/CovalMetricsAPICreateMetricRequest.js.map +1 -1
  41. package/dist/generated/models/CovalMetricsAPICreateMetricRequestExpectedBody.d.ts +24 -0
  42. package/dist/generated/models/CovalMetricsAPICreateMetricRequestExpectedBody.d.ts.map +1 -0
  43. package/dist/generated/models/CovalMetricsAPICreateMetricRequestExpectedBody.js +38 -0
  44. package/dist/generated/models/CovalMetricsAPICreateMetricRequestExpectedBody.js.map +1 -0
  45. package/dist/generated/models/CovalMetricsAPIMetricResource.d.ts +125 -1
  46. package/dist/generated/models/CovalMetricsAPIMetricResource.d.ts.map +1 -1
  47. package/dist/generated/models/CovalMetricsAPIMetricResource.js +69 -1
  48. package/dist/generated/models/CovalMetricsAPIMetricResource.js.map +1 -1
  49. package/dist/generated/models/CovalMetricsAPIMetricResourceExpectedBody.d.ts +24 -0
  50. package/dist/generated/models/CovalMetricsAPIMetricResourceExpectedBody.d.ts.map +1 -0
  51. package/dist/generated/models/CovalMetricsAPIMetricResourceExpectedBody.js +38 -0
  52. package/dist/generated/models/CovalMetricsAPIMetricResourceExpectedBody.js.map +1 -0
  53. package/dist/generated/models/CovalMetricsAPIMetricThresholdResource.d.ts +6 -0
  54. package/dist/generated/models/CovalMetricsAPIMetricThresholdResource.d.ts.map +1 -1
  55. package/dist/generated/models/CovalMetricsAPIMetricThresholdResource.js +4 -0
  56. package/dist/generated/models/CovalMetricsAPIMetricThresholdResource.js.map +1 -1
  57. package/dist/generated/models/CovalMetricsAPIMetricType.d.ts +10 -0
  58. package/dist/generated/models/CovalMetricsAPIMetricType.d.ts.map +1 -1
  59. package/dist/generated/models/CovalMetricsAPIMetricType.js +11 -1
  60. package/dist/generated/models/CovalMetricsAPIMetricType.js.map +1 -1
  61. package/dist/generated/models/CovalMetricsAPIUpdateMetricRequest.d.ts +126 -0
  62. package/dist/generated/models/CovalMetricsAPIUpdateMetricRequest.d.ts.map +1 -1
  63. package/dist/generated/models/CovalMetricsAPIUpdateMetricRequest.js +71 -1
  64. package/dist/generated/models/CovalMetricsAPIUpdateMetricRequest.js.map +1 -1
  65. package/dist/generated/models/CovalPersonasAPIAudioDegradationConfig.d.ts +57 -0
  66. package/dist/generated/models/CovalPersonasAPIAudioDegradationConfig.d.ts.map +1 -0
  67. package/dist/generated/models/CovalPersonasAPIAudioDegradationConfig.js +54 -0
  68. package/dist/generated/models/CovalPersonasAPIAudioDegradationConfig.js.map +1 -0
  69. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.d.ts +11 -0
  70. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.d.ts.map +1 -1
  71. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.js +3 -0
  72. package/dist/generated/models/CovalPersonasAPICreatePersonaRequest.js.map +1 -1
  73. package/dist/generated/models/CovalPersonasAPIPersonaResource.d.ts +7 -0
  74. package/dist/generated/models/CovalPersonasAPIPersonaResource.d.ts.map +1 -1
  75. package/dist/generated/models/CovalPersonasAPIPersonaResource.js +3 -0
  76. package/dist/generated/models/CovalPersonasAPIPersonaResource.js.map +1 -1
  77. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.d.ts +12 -0
  78. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.d.ts.map +1 -1
  79. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.js +3 -0
  80. package/dist/generated/models/CovalPersonasAPIUpdatePersonaRequest.js.map +1 -1
  81. package/dist/generated/models/CovalSimulationsAPIErrorInfo.d.ts +1 -0
  82. package/dist/generated/models/CovalSimulationsAPIErrorInfo.d.ts.map +1 -1
  83. package/dist/generated/models/CovalSimulationsAPIErrorInfo.js +1 -0
  84. package/dist/generated/models/CovalSimulationsAPIErrorInfo.js.map +1 -1
  85. package/dist/generated/models/SubmitConversation200Response.d.ts +24 -0
  86. package/dist/generated/models/SubmitConversation200Response.d.ts.map +1 -0
  87. package/dist/generated/models/SubmitConversation200Response.js +52 -0
  88. package/dist/generated/models/SubmitConversation200Response.js.map +1 -0
  89. package/dist/generated/models/index.d.ts +5 -0
  90. package/dist/generated/models/index.d.ts.map +1 -1
  91. package/dist/generated/models/index.js +5 -0
  92. package/dist/generated/models/index.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/generated/apis/ConversationsApi.ts +40 -10
  95. package/src/generated/apis/MetricOutputsApi.ts +16 -0
  96. package/src/generated/apis/MetricsApi.ts +12 -12
  97. package/src/generated/apis/SimulationsApi.ts +4 -4
  98. package/src/generated/models/CovalAgentsAPISimulatorType.ts +3 -1
  99. package/src/generated/models/CovalConversationsAPIFilteredSubmitResponse.ts +86 -0
  100. package/src/generated/models/CovalConversationsAPISubmitConversationRequest.ts +6 -0
  101. package/src/generated/models/CovalDashboardsAPIChartWidgetConfig.ts +8 -0
  102. package/src/generated/models/CovalDashboardsAPITableWidgetConfig.ts +8 -0
  103. package/src/generated/models/CovalDashboardsAPIUpdateWidgetRequest.ts +1 -1
  104. package/src/generated/models/CovalDashboardsAPIWidgetConfig.ts +8 -0
  105. package/src/generated/models/CovalMetricsAPICreateMetricRequest.ts +164 -2
  106. package/src/generated/models/CovalMetricsAPICreateMetricRequestExpectedBody.ts +49 -0
  107. package/src/generated/models/CovalMetricsAPIMetricResource.ts +161 -1
  108. package/src/generated/models/CovalMetricsAPIMetricResourceExpectedBody.ts +49 -0
  109. package/src/generated/models/CovalMetricsAPIMetricThresholdResource.ts +9 -0
  110. package/src/generated/models/CovalMetricsAPIMetricType.ts +11 -1
  111. package/src/generated/models/CovalMetricsAPIUpdateMetricRequest.ts +163 -1
  112. package/src/generated/models/CovalPersonasAPIAudioDegradationConfig.ts +95 -0
  113. package/src/generated/models/CovalPersonasAPICreatePersonaRequest.ts +20 -0
  114. package/src/generated/models/CovalPersonasAPIPersonaResource.ts +16 -0
  115. package/src/generated/models/CovalPersonasAPIUpdatePersonaRequest.ts +21 -0
  116. package/src/generated/models/CovalSimulationsAPIErrorInfo.ts +1 -0
  117. package/src/generated/models/SubmitConversation200Response.ts +76 -0
  118. package/src/generated/models/index.ts +5 -0
@@ -463,7 +463,7 @@ export interface MetricsApiInterface {
463
463
  deleteMetricRequestOpts(requestParameters: DeleteMetricRequest): Promise<runtime.RequestOpts>;
464
464
 
465
465
  /**
466
- * Soft-delete a metric.
466
+ * Soft-delete a metric in the active workspace. The default workspace can also delete organization-owned legacy metrics whose workspace is unset. Metrics outside that scope are left unchanged and return the same idempotent success response as an unknown or already-deleted metric. When no workspace resolves, only an organization-owned metric whose workspace is unset can be deleted.
467
467
  * @summary Delete metric
468
468
  * @param {string} metricId 22-character metric ID
469
469
  * @param {*} [options] Override http request option.
@@ -473,7 +473,7 @@ export interface MetricsApiInterface {
473
473
  deleteMetricRaw(requestParameters: DeleteMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
474
474
 
475
475
  /**
476
- * Soft-delete a metric.
476
+ * Soft-delete a metric in the active workspace. The default workspace can also delete organization-owned legacy metrics whose workspace is unset. Metrics outside that scope are left unchanged and return the same idempotent success response as an unknown or already-deleted metric. When no workspace resolves, only an organization-owned metric whose workspace is unset can be deleted.
477
477
  * Delete metric
478
478
  */
479
479
  deleteMetric(requestParameters: DeleteMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -940,7 +940,7 @@ export interface MetricsApiInterface {
940
940
  listRecentlyDeletedMetricsRequestOpts(): Promise<runtime.RequestOpts>;
941
941
 
942
942
  /**
943
- * List the organization\'s soft-deleted metrics still within the recovery window, newest first. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
943
+ * List the current workspace\'s soft-deleted metrics still within the recovery window, newest first. The default workspace also includes organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, the list is empty. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
944
944
  * @summary List recently-deleted metrics
945
945
  * @param {*} [options] Override http request option.
946
946
  * @throws {RequiredError}
@@ -949,7 +949,7 @@ export interface MetricsApiInterface {
949
949
  listRecentlyDeletedMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalMetricsAPIListRecentlyDeletedMetricsResponse>>;
950
950
 
951
951
  /**
952
- * List the organization\'s soft-deleted metrics still within the recovery window, newest first. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
952
+ * List the current workspace\'s soft-deleted metrics still within the recovery window, newest first. The default workspace also includes organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, the list is empty. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
953
953
  * List recently-deleted metrics
954
954
  */
955
955
  listRecentlyDeletedMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalMetricsAPIListRecentlyDeletedMetricsResponse>;
@@ -963,7 +963,7 @@ export interface MetricsApiInterface {
963
963
  restoreMetricRequestOpts(requestParameters: RestoreMetricRequest): Promise<runtime.RequestOpts>;
964
964
 
965
965
  /**
966
- * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged returns 404.
966
+ * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged or is outside the current workspace returns 404. The default workspace can restore organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, restore returns 404.
967
967
  * @summary Restore a recently-deleted metric
968
968
  * @param {string} metricId 22-character metric ID
969
969
  * @param {*} [options] Override http request option.
@@ -973,7 +973,7 @@ export interface MetricsApiInterface {
973
973
  restoreMetricRaw(requestParameters: RestoreMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalMetricsAPIGetMetricResponse>>;
974
974
 
975
975
  /**
976
- * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged returns 404.
976
+ * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged or is outside the current workspace returns 404. The default workspace can restore organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, restore returns 404.
977
977
  * Restore a recently-deleted metric
978
978
  */
979
979
  restoreMetric(requestParameters: RestoreMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalMetricsAPIGetMetricResponse>;
@@ -1480,7 +1480,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
1480
1480
  }
1481
1481
 
1482
1482
  /**
1483
- * Soft-delete a metric.
1483
+ * Soft-delete a metric in the active workspace. The default workspace can also delete organization-owned legacy metrics whose workspace is unset. Metrics outside that scope are left unchanged and return the same idempotent success response as an unknown or already-deleted metric. When no workspace resolves, only an organization-owned metric whose workspace is unset can be deleted.
1484
1484
  * Delete metric
1485
1485
  */
1486
1486
  async deleteMetricRaw(requestParameters: DeleteMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
@@ -1491,7 +1491,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
1491
1491
  }
1492
1492
 
1493
1493
  /**
1494
- * Soft-delete a metric.
1494
+ * Soft-delete a metric in the active workspace. The default workspace can also delete organization-owned legacy metrics whose workspace is unset. Metrics outside that scope are left unchanged and return the same idempotent success response as an unknown or already-deleted metric. When no workspace resolves, only an organization-owned metric whose workspace is unset can be deleted.
1495
1495
  * Delete metric
1496
1496
  */
1497
1497
  async deleteMetric(requestParameters: DeleteMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
@@ -2473,7 +2473,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
2473
2473
  }
2474
2474
 
2475
2475
  /**
2476
- * List the organization\'s soft-deleted metrics still within the recovery window, newest first. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
2476
+ * List the current workspace\'s soft-deleted metrics still within the recovery window, newest first. The default workspace also includes organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, the list is empty. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
2477
2477
  * List recently-deleted metrics
2478
2478
  */
2479
2479
  async listRecentlyDeletedMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalMetricsAPIListRecentlyDeletedMetricsResponse>> {
@@ -2484,7 +2484,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
2484
2484
  }
2485
2485
 
2486
2486
  /**
2487
- * List the organization\'s soft-deleted metrics still within the recovery window, newest first. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
2487
+ * List the current workspace\'s soft-deleted metrics still within the recovery window, newest first. The default workspace also includes organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, the list is empty. Each entry carries who deleted it, when, and when it will be permanently purged. Built-in metrics are non-deletable and never appear.
2488
2488
  * List recently-deleted metrics
2489
2489
  */
2490
2490
  async listRecentlyDeletedMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalMetricsAPIListRecentlyDeletedMetricsResponse> {
@@ -2524,7 +2524,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
2524
2524
  }
2525
2525
 
2526
2526
  /**
2527
- * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged returns 404.
2527
+ * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged or is outside the current workspace returns 404. The default workspace can restore organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, restore returns 404.
2528
2528
  * Restore a recently-deleted metric
2529
2529
  */
2530
2530
  async restoreMetricRaw(requestParameters: RestoreMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalMetricsAPIGetMetricResponse>> {
@@ -2535,7 +2535,7 @@ export class MetricsApi extends runtime.BaseAPI implements MetricsApiInterface {
2535
2535
  }
2536
2536
 
2537
2537
  /**
2538
- * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged returns 404.
2538
+ * Restore a soft-deleted metric to active, returning it to the state it held at deletion time (its version history and current version are unchanged). Restoring an already-active metric is a no-op. A metric that has been permanently purged or is outside the current workspace returns 404. The default workspace can restore organization-owned legacy metrics whose workspace is unset. If authentication does not resolve a workspace, restore returns 404.
2539
2539
  * Restore a recently-deleted metric
2540
2540
  */
2541
2541
  async restoreMetric(requestParameters: RestoreMetricRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalMetricsAPIGetMetricResponse> {
@@ -213,7 +213,7 @@ export interface SimulationsApiInterface {
213
213
  rerunMetricsRequestOpts(requestParameters: RerunMetricsRequest): Promise<runtime.RequestOpts>;
214
214
 
215
215
  /**
216
- * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
216
+ * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Requests also count against an organization-level hourly limit on simulations queued (default 5000/hour); when exceeded the API returns 429 with a Retry-After header. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
217
217
  * @summary Batch rerun metrics
218
218
  * @param {CovalSimulationsAPIRerunMetricsRequest} covalSimulationsAPIRerunMetricsRequest
219
219
  * @param {*} [options] Override http request option.
@@ -223,7 +223,7 @@ export interface SimulationsApiInterface {
223
223
  rerunMetricsRaw(requestParameters: RerunMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalSimulationsAPIRerunMetricsResponse>>;
224
224
 
225
225
  /**
226
- * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
226
+ * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Requests also count against an organization-level hourly limit on simulations queued (default 5000/hour); when exceeded the API returns 429 with a Retry-After header. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
227
227
  * Batch rerun metrics
228
228
  */
229
229
  rerunMetrics(requestParameters: RerunMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalSimulationsAPIRerunMetricsResponse>;
@@ -537,7 +537,7 @@ export class SimulationsApi extends runtime.BaseAPI implements SimulationsApiInt
537
537
  }
538
538
 
539
539
  /**
540
- * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
540
+ * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Requests also count against an organization-level hourly limit on simulations queued (default 5000/hour); when exceeded the API returns 429 with a Retry-After header. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
541
541
  * Batch rerun metrics
542
542
  */
543
543
  async rerunMetricsRaw(requestParameters: RerunMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CovalSimulationsAPIRerunMetricsResponse>> {
@@ -548,7 +548,7 @@ export class SimulationsApi extends runtime.BaseAPI implements SimulationsApiInt
548
548
  }
549
549
 
550
550
  /**
551
- * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
551
+ * Re-score a set of metrics against a set of existing simulations without re-running the simulations. The same metrics are applied to every simulation (metrics x simulations). Limits: up to 100 simulations, up to 500 metrics, and at most 500 total reruns (simulation_ids x metric_ids) per call. Requests also count against an organization-level hourly limit on simulations queued (default 5000/hour); when exceeded the API returns 429 with a Retry-After header. Best-effort per simulation: valid simulations are queued and a per-simulation status is returned. Existing metric results are overwritten when each rerun completes.
552
552
  * Batch rerun metrics
553
553
  */
554
554
  async rerunMetrics(requestParameters: RerunMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CovalSimulationsAPIRerunMetricsResponse> {
@@ -28,6 +28,7 @@
28
28
  * - **MODEL_TYPE_OPENAI_REALTIME**: OpenAI Realtime voice-to-voice agents
29
29
  * - **MODEL_TYPE_GEMINI_REALTIME**: Gemini Live voice-to-voice agents
30
30
  * - **MODEL_TYPE_GROK_REALTIME**: Grok (xAI) Voice Agent voice-to-voice agents
31
+ * - **MODEL_TYPE_DEEPGRAM_REALTIME**: Deepgram Voice Agent voice-to-voice agents
31
32
  *
32
33
  * @export
33
34
  */
@@ -43,7 +44,8 @@ export const CovalAgentsAPISimulatorType = {
43
44
  ModelTypeDaily: 'MODEL_TYPE_DAILY',
44
45
  ModelTypeOpenaiRealtime: 'MODEL_TYPE_OPENAI_REALTIME',
45
46
  ModelTypeGeminiRealtime: 'MODEL_TYPE_GEMINI_REALTIME',
46
- ModelTypeGrokRealtime: 'MODEL_TYPE_GROK_REALTIME'
47
+ ModelTypeGrokRealtime: 'MODEL_TYPE_GROK_REALTIME',
48
+ ModelTypeDeepgramRealtime: 'MODEL_TYPE_DEEPGRAM_REALTIME'
47
49
  } as const;
48
50
  export type CovalAgentsAPISimulatorType = typeof CovalAgentsAPISimulatorType[keyof typeof CovalAgentsAPISimulatorType];
49
51
 
@@ -0,0 +1,86 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Coval Agents API
5
+ * Manage configurations for simulations and evaluations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@coval.dev
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Returned with HTTP 200 when a submit is dropped by the simulation
18
+ * filter. No conversation is created and nothing is billed.
19
+ *
20
+ * @export
21
+ * @interface CovalConversationsAPIFilteredSubmitResponse
22
+ */
23
+ export interface CovalConversationsAPIFilteredSubmitResponse {
24
+ /**
25
+ * Always true; the conversation was not created
26
+ * @type {boolean}
27
+ * @memberof CovalConversationsAPIFilteredSubmitResponse
28
+ */
29
+ filtered: boolean;
30
+ /**
31
+ * Why the submit was filtered
32
+ * @type {string}
33
+ * @memberof CovalConversationsAPIFilteredSubmitResponse
34
+ */
35
+ reason: string;
36
+ /**
37
+ * The platform simulation the submit matched
38
+ * @type {string}
39
+ * @memberof CovalConversationsAPIFilteredSubmitResponse
40
+ */
41
+ simulation_id: string;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the CovalConversationsAPIFilteredSubmitResponse interface.
46
+ */
47
+ export function instanceOfCovalConversationsAPIFilteredSubmitResponse(value: object): value is CovalConversationsAPIFilteredSubmitResponse {
48
+ if (!('filtered' in value) || value['filtered'] === undefined) return false;
49
+ if (!('reason' in value) || value['reason'] === undefined) return false;
50
+ if (!('simulation_id' in value) || value['simulation_id'] === undefined) return false;
51
+ return true;
52
+ }
53
+
54
+ export function CovalConversationsAPIFilteredSubmitResponseFromJSON(json: any): CovalConversationsAPIFilteredSubmitResponse {
55
+ return CovalConversationsAPIFilteredSubmitResponseFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function CovalConversationsAPIFilteredSubmitResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalConversationsAPIFilteredSubmitResponse {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'filtered': json['filtered'],
65
+ 'reason': json['reason'],
66
+ 'simulation_id': json['simulation_id'],
67
+ };
68
+ }
69
+
70
+ export function CovalConversationsAPIFilteredSubmitResponseToJSON(json: any): CovalConversationsAPIFilteredSubmitResponse {
71
+ return CovalConversationsAPIFilteredSubmitResponseToJSONTyped(json, false);
72
+ }
73
+
74
+ export function CovalConversationsAPIFilteredSubmitResponseToJSONTyped(value?: CovalConversationsAPIFilteredSubmitResponse | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'filtered': value['filtered'],
82
+ 'reason': value['reason'],
83
+ 'simulation_id': value['simulation_id'],
84
+ };
85
+ }
86
+
@@ -119,6 +119,12 @@ export interface CovalConversationsAPISubmitConversationRequest {
119
119
  * - Filtering conversations
120
120
  * - Custom analytics and reporting
121
121
  *
122
+ * Reserved key `coval_simulation_id`: set it to the value of the
123
+ * `X-Coval-Simulation-Id` SIP header delivered with every inbound
124
+ * simulation call. Organizations that opt in to the simulation
125
+ * filter have submits carrying a matching platform-simulation id
126
+ * dropped without creating a conversation (see the 200 response).
127
+ *
122
128
  * @type {{ [key: string]: any; }}
123
129
  * @memberof CovalConversationsAPISubmitConversationRequest
124
130
  */
@@ -129,6 +129,12 @@ export interface CovalDashboardsAPIChartWidgetConfig {
129
129
  * @memberof CovalDashboardsAPIChartWidgetConfig
130
130
  */
131
131
  groupBy?: CovalDashboardsAPIGroupByType;
132
+ /**
133
+ * Customer metadata key to group by; mutually exclusive with groupBy. Rows fall into one of three groups: the 20 most common values are separate groups, remaining values are combined as a synthetic Other group distinct from a literal customer value named Other, and rows that do not carry the key at all form their own group with a null value, which clients render as Unknown. That last group never occupies one of the 20 slots.
134
+ * @type {string}
135
+ * @memberof CovalDashboardsAPIChartWidgetConfig
136
+ */
137
+ groupByMetadataKey?: string;
132
138
  /**
133
139
  * Custom color assignments for series (max 200 entries)
134
140
  * @type {{ [key: string]: string; }}
@@ -255,6 +261,7 @@ export function CovalDashboardsAPIChartWidgetConfigFromJSONTyped(json: any, igno
255
261
  'grouped': json['grouped'] == null ? undefined : json['grouped'],
256
262
  'showAsPercentage': json['showAsPercentage'] == null ? undefined : json['showAsPercentage'],
257
263
  'groupBy': json['groupBy'] == null ? undefined : CovalDashboardsAPIGroupByTypeFromJSON(json['groupBy']),
264
+ 'groupByMetadataKey': json['groupByMetadataKey'] == null ? undefined : json['groupByMetadataKey'],
258
265
  'customColorMap': json['customColorMap'] == null ? undefined : json['customColorMap'],
259
266
  'xAxisLabel': json['xAxisLabel'] == null ? undefined : json['xAxisLabel'],
260
267
  'yAxisLabel': json['yAxisLabel'] == null ? undefined : json['yAxisLabel'],
@@ -293,6 +300,7 @@ export function CovalDashboardsAPIChartWidgetConfigToJSONTyped(value?: CovalDash
293
300
  'grouped': value['grouped'],
294
301
  'showAsPercentage': value['showAsPercentage'],
295
302
  'groupBy': CovalDashboardsAPIGroupByTypeToJSON(value['groupBy']),
303
+ 'groupByMetadataKey': value['groupByMetadataKey'],
296
304
  'customColorMap': value['customColorMap'],
297
305
  'xAxisLabel': value['xAxisLabel'],
298
306
  'yAxisLabel': value['yAxisLabel'],
@@ -79,6 +79,12 @@ export interface CovalDashboardsAPITableWidgetConfig {
79
79
  * @memberof CovalDashboardsAPITableWidgetConfig
80
80
  */
81
81
  groupBy?: CovalDashboardsAPIGroupByType;
82
+ /**
83
+ * Customer metadata key to group by; mutually exclusive with groupBy. Rows fall into one of three groups: the 20 most common values are separate groups, remaining values are combined as a synthetic Other group distinct from a literal customer value named Other, and rows that do not carry the key at all form their own group with a null value, which clients render as Unknown. That last group never occupies one of the 20 slots.
84
+ * @type {string}
85
+ * @memberof CovalDashboardsAPITableWidgetConfig
86
+ */
87
+ groupByMetadataKey?: string;
82
88
  /**
83
89
  *
84
90
  * @type {CovalDashboardsAPIFilterConfig}
@@ -116,6 +122,7 @@ export function CovalDashboardsAPITableWidgetConfigFromJSONTyped(json: any, igno
116
122
  'monitoring': json['monitoring'] == null ? undefined : CovalDashboardsAPIDataSourceTypeFromJSON(json['monitoring']),
117
123
  'aggregation': json['aggregation'] == null ? undefined : CovalDashboardsAPIAggregationTypeFromJSON(json['aggregation']),
118
124
  'groupBy': json['groupBy'] == null ? undefined : CovalDashboardsAPIGroupByTypeFromJSON(json['groupBy']),
125
+ 'groupByMetadataKey': json['groupByMetadataKey'] == null ? undefined : json['groupByMetadataKey'],
119
126
  'filters': json['filters'] == null ? undefined : CovalDashboardsAPIFilterConfigFromJSON(json['filters']),
120
127
  'metricFilter': json['metricFilter'] == null ? undefined : ((json['metricFilter'] as Array<any>).map(CovalDashboardsAPIMetricFilterFromJSON)),
121
128
  };
@@ -136,6 +143,7 @@ export function CovalDashboardsAPITableWidgetConfigToJSONTyped(value?: CovalDash
136
143
  'monitoring': CovalDashboardsAPIDataSourceTypeToJSON(value['monitoring']),
137
144
  'aggregation': CovalDashboardsAPIAggregationTypeToJSON(value['aggregation']),
138
145
  'groupBy': CovalDashboardsAPIGroupByTypeToJSON(value['groupBy']),
146
+ 'groupByMetadataKey': value['groupByMetadataKey'],
139
147
  'filters': CovalDashboardsAPIFilterConfigToJSON(value['filters']),
140
148
  'metricFilter': value['metricFilter'] == null ? undefined : ((value['metricFilter'] as Array<any>).map(CovalDashboardsAPIMetricFilterToJSON)),
141
149
  };
@@ -29,7 +29,7 @@ import {
29
29
  } from './CovalDashboardsAPIWidgetConfig.js';
30
30
 
31
31
  /**
32
- *
32
+ * All fields optional (PATCH semantics). Unlike the dashboard-level config, which is replaced, config is MERGED into the stored blob one key at a time: a key you send replaces its stored value and a key you omit keeps its stored value. Three exceptions are worth knowing before you rely on that. Null-valued keys are dropped before the merge, so they do not clear anything -- and if dropping them leaves the object empty, the result is an empty object, which clears the whole blob. Sending "type": "table" validates config as a table widget, whose metricIds defaults to an empty list, so any table-widget PATCH that omits metricIds overwrites it with []; omitting "type" validates against the chart shape instead and leaves metricIds alone. Clearing a single key requires sending an empty value for it (for example "metricFilter": []), which is only possible for the list- and object-valued keys -- scalar keys such as metricId, aggregation or groupByMetadataKey have no empty value and cannot be individually cleared. To clear the whole blob, send an empty object.
33
33
  * @export
34
34
  * @interface CovalDashboardsAPIUpdateWidgetRequest
35
35
  */
@@ -150,6 +150,12 @@ export interface CovalDashboardsAPIWidgetConfig {
150
150
  * @memberof CovalDashboardsAPIWidgetConfig
151
151
  */
152
152
  groupBy?: CovalDashboardsAPIGroupByType;
153
+ /**
154
+ * Customer metadata key to group by; mutually exclusive with groupBy. Rows fall into one of three groups: the 20 most common values are separate groups, remaining values are combined as a synthetic Other group distinct from a literal customer value named Other, and rows that do not carry the key at all form their own group with a null value, which clients render as Unknown. That last group never occupies one of the 20 slots.
155
+ * @type {string}
156
+ * @memberof CovalDashboardsAPIWidgetConfig
157
+ */
158
+ groupByMetadataKey?: string;
153
159
  /**
154
160
  * Custom color assignments for series (max 200 entries)
155
161
  * @type {{ [key: string]: string; }}
@@ -288,6 +294,7 @@ export function CovalDashboardsAPIWidgetConfigFromJSONTyped(json: any, ignoreDis
288
294
  'grouped': json['grouped'] == null ? undefined : json['grouped'],
289
295
  'showAsPercentage': json['showAsPercentage'] == null ? undefined : json['showAsPercentage'],
290
296
  'groupBy': json['groupBy'] == null ? undefined : CovalDashboardsAPIGroupByTypeFromJSON(json['groupBy']),
297
+ 'groupByMetadataKey': json['groupByMetadataKey'] == null ? undefined : json['groupByMetadataKey'],
291
298
  'customColorMap': json['customColorMap'] == null ? undefined : json['customColorMap'],
292
299
  'xAxisLabel': json['xAxisLabel'] == null ? undefined : json['xAxisLabel'],
293
300
  'yAxisLabel': json['yAxisLabel'] == null ? undefined : json['yAxisLabel'],
@@ -328,6 +335,7 @@ export function CovalDashboardsAPIWidgetConfigToJSONTyped(value?: CovalDashboard
328
335
  'grouped': value['grouped'],
329
336
  'showAsPercentage': value['showAsPercentage'],
330
337
  'groupBy': CovalDashboardsAPIGroupByTypeToJSON(value['groupBy']),
338
+ 'groupByMetadataKey': value['groupByMetadataKey'],
331
339
  'customColorMap': value['customColorMap'],
332
340
  'xAxisLabel': value['xAxisLabel'],
333
341
  'yAxisLabel': value['yAxisLabel'],
@@ -20,6 +20,13 @@ import {
20
20
  CovalMetricsAPIMetricRuntimeConfigToJSON,
21
21
  CovalMetricsAPIMetricRuntimeConfigToJSONTyped,
22
22
  } from './CovalMetricsAPIMetricRuntimeConfig.js';
23
+ import type { CovalMetricsAPICreateMetricRequestExpectedBody } from './CovalMetricsAPICreateMetricRequestExpectedBody.js';
24
+ import {
25
+ CovalMetricsAPICreateMetricRequestExpectedBodyFromJSON,
26
+ CovalMetricsAPICreateMetricRequestExpectedBodyFromJSONTyped,
27
+ CovalMetricsAPICreateMetricRequestExpectedBodyToJSON,
28
+ CovalMetricsAPICreateMetricRequestExpectedBodyToJSONTyped,
29
+ } from './CovalMetricsAPICreateMetricRequestExpectedBody.js';
23
30
  import type { CovalMetricsAPITargetCondition } from './CovalMetricsAPITargetCondition.js';
24
31
  import {
25
32
  CovalMetricsAPITargetConditionFromJSON,
@@ -109,7 +116,7 @@ export interface CovalMetricsAPICreateMetricRequest {
109
116
  */
110
117
  regex_pattern?: string;
111
118
  /**
112
- * Speaker role filter. Optional for METRIC_TRANSCRIPT_REGEX.
119
+ * Speaker role filter. Aliases user and assistant are normalized on write.
113
120
  * @type {CovalMetricsAPICreateMetricRequestRoleEnum}
114
121
  * @memberof CovalMetricsAPICreateMetricRequest
115
122
  */
@@ -120,6 +127,84 @@ export interface CovalMetricsAPICreateMetricRequest {
120
127
  * @memberof CovalMetricsAPICreateMetricRequest
121
128
  */
122
129
  min_pause_duration_seconds?: number;
130
+ /**
131
+ *
132
+ * @type {number}
133
+ * @memberof CovalMetricsAPICreateMetricRequest
134
+ */
135
+ max_silence_duration_seconds?: number;
136
+ /**
137
+ *
138
+ * @type {number}
139
+ * @memberof CovalMetricsAPICreateMetricRequest
140
+ */
141
+ min_silence_gap_seconds?: number;
142
+ /**
143
+ *
144
+ * @type {number}
145
+ * @memberof CovalMetricsAPICreateMetricRequest
146
+ */
147
+ frequency_threshold?: number;
148
+ /**
149
+ *
150
+ * @type {CovalMetricsAPICreateMetricRequestDirectionEnum}
151
+ * @memberof CovalMetricsAPICreateMetricRequest
152
+ */
153
+ direction?: CovalMetricsAPICreateMetricRequestDirectionEnum;
154
+ /**
155
+ *
156
+ * @type {Array<CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum>}
157
+ * @memberof CovalMetricsAPICreateMetricRequest
158
+ */
159
+ success_sentiments?: Array<CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum>;
160
+ /**
161
+ *
162
+ * @type {number}
163
+ * @memberof CovalMetricsAPICreateMetricRequest
164
+ */
165
+ percent_above?: number;
166
+ /**
167
+ *
168
+ * @type {Array<CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum>}
169
+ * @memberof CovalMetricsAPICreateMetricRequest
170
+ */
171
+ success_end_reasons?: Array<CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum>;
172
+ /**
173
+ *
174
+ * @type {string}
175
+ * @memberof CovalMetricsAPICreateMetricRequest
176
+ */
177
+ observation_name?: string;
178
+ /**
179
+ *
180
+ * @type {CovalMetricsAPICreateMetricRequestExpectedBody}
181
+ * @memberof CovalMetricsAPICreateMetricRequest
182
+ */
183
+ expected_body?: CovalMetricsAPICreateMetricRequestExpectedBody;
184
+ /**
185
+ * Optional dot path; brackets must contain an integer index or comma-separated key=value filters.
186
+ * @type {string}
187
+ * @memberof CovalMetricsAPICreateMetricRequest
188
+ */
189
+ match_path?: string;
190
+ /**
191
+ *
192
+ * @type {number}
193
+ * @memberof CovalMetricsAPICreateMetricRequest
194
+ */
195
+ min_volume_change_for_pitch_misalignment?: number;
196
+ /**
197
+ *
198
+ * @type {number}
199
+ * @memberof CovalMetricsAPICreateMetricRequest
200
+ */
201
+ threshold?: number;
202
+ /**
203
+ *
204
+ * @type {CovalMetricsAPICreateMetricRequestOperatorEnum}
205
+ * @memberof CovalMetricsAPICreateMetricRequest
206
+ */
207
+ operator?: CovalMetricsAPICreateMetricRequestOperatorEnum;
123
208
  /**
124
209
  * SQL query run against the simulation's data. Required for METRIC_SQL_FLOAT.
125
210
  * The query returns one row per timestamp with a numeric `value` and a
@@ -213,10 +298,61 @@ export interface CovalMetricsAPICreateMetricRequest {
213
298
  */
214
299
  export const CovalMetricsAPICreateMetricRequestRoleEnum = {
215
300
  Agent: 'agent',
216
- User: 'user'
301
+ Persona: 'persona',
302
+ User: 'user',
303
+ Assistant: 'assistant'
217
304
  } as const;
218
305
  export type CovalMetricsAPICreateMetricRequestRoleEnum = typeof CovalMetricsAPICreateMetricRequestRoleEnum[keyof typeof CovalMetricsAPICreateMetricRequestRoleEnum];
219
306
 
307
+ /**
308
+ * @export
309
+ */
310
+ export const CovalMetricsAPICreateMetricRequestDirectionEnum = {
311
+ Above: 'above',
312
+ Below: 'below'
313
+ } as const;
314
+ export type CovalMetricsAPICreateMetricRequestDirectionEnum = typeof CovalMetricsAPICreateMetricRequestDirectionEnum[keyof typeof CovalMetricsAPICreateMetricRequestDirectionEnum];
315
+
316
+ /**
317
+ * @export
318
+ */
319
+ export const CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum = {
320
+ Neutral: 'Neutral',
321
+ Happy: 'Happy',
322
+ Angry: 'Angry',
323
+ Sad: 'Sad'
324
+ } as const;
325
+ export type CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum = typeof CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum[keyof typeof CovalMetricsAPICreateMetricRequestSuccessSentimentsEnum];
326
+
327
+ /**
328
+ * @export
329
+ */
330
+ export const CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum = {
331
+ Unknown: 'UNKNOWN',
332
+ IdleTimeout: 'IDLE_TIMEOUT',
333
+ PersonaDisconnected: 'PERSONA_DISCONNECTED',
334
+ AgentDisconnected: 'AGENT_DISCONNECTED',
335
+ PipelineError: 'PIPELINE_ERROR',
336
+ RepetitionLoop: 'REPETITION_LOOP',
337
+ AudioUploadPlaybackCompleted: 'AUDIO_UPLOAD_PLAYBACK_COMPLETED',
338
+ ScriptCompleted: 'SCRIPT_COMPLETED',
339
+ ScriptDiverged: 'SCRIPT_DIVERGED'
340
+ } as const;
341
+ export type CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum = typeof CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum[keyof typeof CovalMetricsAPICreateMetricRequestSuccessEndReasonsEnum];
342
+
343
+ /**
344
+ * @export
345
+ */
346
+ export const CovalMetricsAPICreateMetricRequestOperatorEnum = {
347
+ LessThan: '<',
348
+ LessThanOrEqualTo: '<=',
349
+ GreaterThan: '>',
350
+ GreaterThanOrEqualTo: '>=',
351
+ DoubleEqual: '==',
352
+ NotEqual: '!='
353
+ } as const;
354
+ export type CovalMetricsAPICreateMetricRequestOperatorEnum = typeof CovalMetricsAPICreateMetricRequestOperatorEnum[keyof typeof CovalMetricsAPICreateMetricRequestOperatorEnum];
355
+
220
356
  /**
221
357
  * @export
222
358
  */
@@ -270,6 +406,19 @@ export function CovalMetricsAPICreateMetricRequestFromJSONTyped(json: any, ignor
270
406
  'regex_pattern': json['regex_pattern'] == null ? undefined : json['regex_pattern'],
271
407
  'role': json['role'] == null ? undefined : json['role'],
272
408
  'min_pause_duration_seconds': json['min_pause_duration_seconds'] == null ? undefined : json['min_pause_duration_seconds'],
409
+ 'max_silence_duration_seconds': json['max_silence_duration_seconds'] == null ? undefined : json['max_silence_duration_seconds'],
410
+ 'min_silence_gap_seconds': json['min_silence_gap_seconds'] == null ? undefined : json['min_silence_gap_seconds'],
411
+ 'frequency_threshold': json['frequency_threshold'] == null ? undefined : json['frequency_threshold'],
412
+ 'direction': json['direction'] == null ? undefined : json['direction'],
413
+ 'success_sentiments': json['success_sentiments'] == null ? undefined : json['success_sentiments'],
414
+ 'percent_above': json['percent_above'] == null ? undefined : json['percent_above'],
415
+ 'success_end_reasons': json['success_end_reasons'] == null ? undefined : json['success_end_reasons'],
416
+ 'observation_name': json['observation_name'] == null ? undefined : json['observation_name'],
417
+ 'expected_body': json['expected_body'] == null ? undefined : CovalMetricsAPICreateMetricRequestExpectedBodyFromJSON(json['expected_body']),
418
+ 'match_path': json['match_path'] == null ? undefined : json['match_path'],
419
+ 'min_volume_change_for_pitch_misalignment': json['min_volume_change_for_pitch_misalignment'] == null ? undefined : json['min_volume_change_for_pitch_misalignment'],
420
+ 'threshold': json['threshold'] == null ? undefined : json['threshold'],
421
+ 'operator': json['operator'] == null ? undefined : json['operator'],
273
422
  'sql_query': json['sql_query'] == null ? undefined : json['sql_query'],
274
423
  'criteria_source': json['criteria_source'] == null ? undefined : json['criteria_source'],
275
424
  'criteria_path': json['criteria_path'] == null ? undefined : json['criteria_path'],
@@ -306,6 +455,19 @@ export function CovalMetricsAPICreateMetricRequestToJSONTyped(value?: CovalMetri
306
455
  'regex_pattern': value['regex_pattern'],
307
456
  'role': value['role'],
308
457
  'min_pause_duration_seconds': value['min_pause_duration_seconds'],
458
+ 'max_silence_duration_seconds': value['max_silence_duration_seconds'],
459
+ 'min_silence_gap_seconds': value['min_silence_gap_seconds'],
460
+ 'frequency_threshold': value['frequency_threshold'],
461
+ 'direction': value['direction'],
462
+ 'success_sentiments': value['success_sentiments'],
463
+ 'percent_above': value['percent_above'],
464
+ 'success_end_reasons': value['success_end_reasons'],
465
+ 'observation_name': value['observation_name'],
466
+ 'expected_body': CovalMetricsAPICreateMetricRequestExpectedBodyToJSON(value['expected_body']),
467
+ 'match_path': value['match_path'],
468
+ 'min_volume_change_for_pitch_misalignment': value['min_volume_change_for_pitch_misalignment'],
469
+ 'threshold': value['threshold'],
470
+ 'operator': value['operator'],
309
471
  'sql_query': value['sql_query'],
310
472
  'criteria_source': value['criteria_source'],
311
473
  'criteria_path': value['criteria_path'],
@@ -0,0 +1,49 @@
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
+ /**
16
+ * @type CovalMetricsAPICreateMetricRequestExpectedBody
17
+ *
18
+ * @export
19
+ */
20
+ export type CovalMetricsAPICreateMetricRequestExpectedBody = string | { [key: string]: any; };
21
+
22
+ export function CovalMetricsAPICreateMetricRequestExpectedBodyFromJSON(json: any): CovalMetricsAPICreateMetricRequestExpectedBody {
23
+ return CovalMetricsAPICreateMetricRequestExpectedBodyFromJSONTyped(json, false);
24
+ }
25
+
26
+ export function CovalMetricsAPICreateMetricRequestExpectedBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): CovalMetricsAPICreateMetricRequestExpectedBody {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ if (typeof json === 'string') {
31
+ return json;
32
+ }
33
+ return {} as any;
34
+ }
35
+
36
+ export function CovalMetricsAPICreateMetricRequestExpectedBodyToJSON(json: any): any {
37
+ return CovalMetricsAPICreateMetricRequestExpectedBodyToJSONTyped(json, false);
38
+ }
39
+
40
+ export function CovalMetricsAPICreateMetricRequestExpectedBodyToJSONTyped(value?: CovalMetricsAPICreateMetricRequestExpectedBody | null, ignoreDiscriminator: boolean = false): any {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ if (typeof value === 'string') {
45
+ return value;
46
+ }
47
+ return {};
48
+ }
49
+