@roarkanalytics/sdk 7.8.0 → 8.0.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 (205) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +18 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +18 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-connection.d.mts +1952 -0
  12. package/resources/agent-connection.d.mts.map +1 -0
  13. package/resources/agent-connection.d.ts +1952 -0
  14. package/resources/agent-connection.d.ts.map +1 -0
  15. package/resources/agent-connection.js +173 -0
  16. package/resources/agent-connection.js.map +1 -0
  17. package/resources/agent-connection.mjs +169 -0
  18. package/resources/agent-connection.mjs.map +1 -0
  19. package/resources/agent-conversation.d.mts +110 -0
  20. package/resources/agent-conversation.d.mts.map +1 -0
  21. package/resources/agent-conversation.d.ts +110 -0
  22. package/resources/agent-conversation.d.ts.map +1 -0
  23. package/resources/agent-conversation.js +41 -0
  24. package/resources/agent-conversation.js.map +1 -0
  25. package/resources/agent-conversation.mjs +37 -0
  26. package/resources/agent-conversation.mjs.map +1 -0
  27. package/resources/agent-draft.d.mts +101 -35
  28. package/resources/agent-draft.d.mts.map +1 -1
  29. package/resources/agent-draft.d.ts +101 -35
  30. package/resources/agent-draft.d.ts.map +1 -1
  31. package/resources/agent-endpoint.d.mts +4 -4
  32. package/resources/agent-endpoint.d.mts.map +1 -1
  33. package/resources/agent-endpoint.d.ts +4 -4
  34. package/resources/agent-endpoint.d.ts.map +1 -1
  35. package/resources/agent-setup.d.mts +1057 -0
  36. package/resources/agent-setup.d.mts.map +1 -0
  37. package/resources/agent-setup.d.ts +1057 -0
  38. package/resources/agent-setup.d.ts.map +1 -0
  39. package/resources/agent-setup.js +113 -0
  40. package/resources/agent-setup.js.map +1 -0
  41. package/resources/agent-setup.mjs +109 -0
  42. package/resources/agent-setup.mjs.map +1 -0
  43. package/resources/agent-version.d.mts +57 -18
  44. package/resources/agent-version.d.mts.map +1 -1
  45. package/resources/agent-version.d.ts +57 -18
  46. package/resources/agent-version.d.ts.map +1 -1
  47. package/resources/agent.d.mts +263 -4
  48. package/resources/agent.d.mts.map +1 -1
  49. package/resources/agent.d.ts +263 -4
  50. package/resources/agent.d.ts.map +1 -1
  51. package/resources/calendar-connection.d.mts +834 -56
  52. package/resources/calendar-connection.d.mts.map +1 -1
  53. package/resources/calendar-connection.d.ts +834 -56
  54. package/resources/calendar-connection.d.ts.map +1 -1
  55. package/resources/calendar-connection.js +127 -8
  56. package/resources/calendar-connection.js.map +1 -1
  57. package/resources/calendar-connection.mjs +127 -8
  58. package/resources/calendar-connection.mjs.map +1 -1
  59. package/resources/call.d.mts +2 -2
  60. package/resources/call.d.mts.map +1 -1
  61. package/resources/call.d.ts +2 -2
  62. package/resources/call.d.ts.map +1 -1
  63. package/resources/config.d.mts +78 -36
  64. package/resources/config.d.mts.map +1 -1
  65. package/resources/config.d.ts +78 -36
  66. package/resources/config.d.ts.map +1 -1
  67. package/resources/conversation.d.mts +156 -0
  68. package/resources/conversation.d.mts.map +1 -0
  69. package/resources/conversation.d.ts +156 -0
  70. package/resources/conversation.d.ts.map +1 -0
  71. package/resources/conversation.js +40 -0
  72. package/resources/conversation.js.map +1 -0
  73. package/resources/conversation.mjs +36 -0
  74. package/resources/conversation.mjs.map +1 -0
  75. package/resources/customer-flow-edge-case.d.mts +637 -40
  76. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  77. package/resources/customer-flow-edge-case.d.ts +637 -40
  78. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  79. package/resources/customer-flow.d.mts +2583 -156
  80. package/resources/customer-flow.d.mts.map +1 -1
  81. package/resources/customer-flow.d.ts +2583 -156
  82. package/resources/customer-flow.d.ts.map +1 -1
  83. package/resources/{customer-profile.d.mts → customer.d.mts} +287 -98
  84. package/resources/customer.d.mts.map +1 -0
  85. package/resources/{customer-profile.d.ts → customer.d.ts} +287 -98
  86. package/resources/customer.d.ts.map +1 -0
  87. package/resources/customer.js +180 -0
  88. package/resources/customer.js.map +1 -0
  89. package/resources/customer.mjs +176 -0
  90. package/resources/customer.mjs.map +1 -0
  91. package/resources/index.d.mts +7 -2
  92. package/resources/index.d.mts.map +1 -1
  93. package/resources/index.d.ts +7 -2
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +13 -3
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +6 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/mcp-server.d.mts +588 -0
  100. package/resources/mcp-server.d.mts.map +1 -0
  101. package/resources/mcp-server.d.ts +588 -0
  102. package/resources/mcp-server.d.ts.map +1 -0
  103. package/resources/mcp-server.js +109 -0
  104. package/resources/mcp-server.js.map +1 -0
  105. package/resources/mcp-server.mjs +105 -0
  106. package/resources/mcp-server.mjs.map +1 -0
  107. package/resources/metric-policy.d.mts +5 -4
  108. package/resources/metric-policy.d.mts.map +1 -1
  109. package/resources/metric-policy.d.ts +5 -4
  110. package/resources/metric-policy.d.ts.map +1 -1
  111. package/resources/metric-policy.js +1 -1
  112. package/resources/metric-policy.mjs +1 -1
  113. package/resources/metric-variant.d.mts +4 -1
  114. package/resources/metric-variant.d.mts.map +1 -1
  115. package/resources/metric-variant.d.ts +4 -1
  116. package/resources/metric-variant.d.ts.map +1 -1
  117. package/resources/metric.d.mts +7 -2
  118. package/resources/metric.d.mts.map +1 -1
  119. package/resources/metric.d.ts +7 -2
  120. package/resources/metric.d.ts.map +1 -1
  121. package/resources/simulation-environment.d.mts +366 -0
  122. package/resources/simulation-environment.d.mts.map +1 -1
  123. package/resources/simulation-environment.d.ts +366 -0
  124. package/resources/simulation-environment.d.ts.map +1 -1
  125. package/resources/simulation-job.d.mts +12 -8
  126. package/resources/simulation-job.d.mts.map +1 -1
  127. package/resources/simulation-job.d.ts +12 -8
  128. package/resources/simulation-job.d.ts.map +1 -1
  129. package/resources/simulation-persona.d.mts +25 -15
  130. package/resources/simulation-persona.d.mts.map +1 -1
  131. package/resources/simulation-persona.d.ts +25 -15
  132. package/resources/simulation-persona.d.ts.map +1 -1
  133. package/resources/simulation-run-plan-job.d.mts +32 -6
  134. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  135. package/resources/simulation-run-plan-job.d.ts +32 -6
  136. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  137. package/resources/simulation-run-plan.d.mts +126 -13
  138. package/resources/simulation-run-plan.d.mts.map +1 -1
  139. package/resources/simulation-run-plan.d.ts +126 -13
  140. package/resources/simulation-run-plan.d.ts.map +1 -1
  141. package/resources/simulation-template.d.mts +1 -1
  142. package/resources/simulation-template.d.mts.map +1 -1
  143. package/resources/simulation-template.d.ts +1 -1
  144. package/resources/simulation-template.d.ts.map +1 -1
  145. package/resources/simulation.d.mts +35 -3
  146. package/resources/simulation.d.mts.map +1 -1
  147. package/resources/simulation.d.ts +35 -3
  148. package/resources/simulation.d.ts.map +1 -1
  149. package/resources/tool.d.mts +565 -6
  150. package/resources/tool.d.mts.map +1 -1
  151. package/resources/tool.d.ts +565 -6
  152. package/resources/tool.d.ts.map +1 -1
  153. package/resources/tool.js +9 -6
  154. package/resources/tool.js.map +1 -1
  155. package/resources/tool.mjs +9 -6
  156. package/resources/tool.mjs.map +1 -1
  157. package/resources/usage.d.mts +1 -1
  158. package/resources/usage.d.mts.map +1 -1
  159. package/resources/usage.d.ts +1 -1
  160. package/resources/usage.d.ts.map +1 -1
  161. package/resources/webhook.d.mts +4 -4
  162. package/resources/webhook.d.mts.map +1 -1
  163. package/resources/webhook.d.ts +4 -4
  164. package/resources/webhook.d.ts.map +1 -1
  165. package/src/client.ts +197 -34
  166. package/src/resources/agent-connection.ts +2523 -0
  167. package/src/resources/agent-conversation.ts +139 -0
  168. package/src/resources/agent-draft.ts +239 -35
  169. package/src/resources/agent-endpoint.ts +8 -4
  170. package/src/resources/agent-setup.ts +1685 -0
  171. package/src/resources/agent-version.ts +126 -18
  172. package/src/resources/agent.ts +506 -4
  173. package/src/resources/calendar-connection.ts +1035 -63
  174. package/src/resources/call.ts +12 -2
  175. package/src/resources/config.ts +198 -36
  176. package/src/resources/conversation.ts +205 -0
  177. package/src/resources/customer-flow-edge-case.ts +709 -40
  178. package/src/resources/customer-flow.ts +3141 -156
  179. package/src/resources/{customer-profile.ts → customer.ts} +406 -306
  180. package/src/resources/index.ts +91 -17
  181. package/src/resources/mcp-server.ts +786 -0
  182. package/src/resources/metric-policy.ts +5 -4
  183. package/src/resources/metric-variant.ts +4 -1
  184. package/src/resources/metric.ts +7 -2
  185. package/src/resources/simulation-environment.ts +414 -0
  186. package/src/resources/simulation-job.ts +14 -8
  187. package/src/resources/simulation-persona.ts +25 -15
  188. package/src/resources/simulation-run-plan-job.ts +47 -6
  189. package/src/resources/simulation-run-plan.ts +140 -0
  190. package/src/resources/simulation-template.ts +1 -0
  191. package/src/resources/simulation.ts +39 -0
  192. package/src/resources/tool.ts +697 -6
  193. package/src/resources/usage.ts +6 -1
  194. package/src/resources/webhook.ts +8 -0
  195. package/src/version.ts +1 -1
  196. package/version.d.mts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.js +1 -1
  199. package/version.mjs +1 -1
  200. package/resources/customer-profile.d.mts.map +0 -1
  201. package/resources/customer-profile.d.ts.map +0 -1
  202. package/resources/customer-profile.js +0 -141
  203. package/resources/customer-profile.js.map +0 -1
  204. package/resources/customer-profile.mjs +0 -137
  205. package/resources/customer-profile.mjs.map +0 -1
@@ -570,6 +570,11 @@ export namespace SimulationRunPlanJobGetByIDResponse {
570
570
  | 'CANCELLING'
571
571
  | 'ENDING_SIMULATIONS';
572
572
 
573
+ /**
574
+ * A paced run: the dial rate it was started with, and the rate it achieved.
575
+ */
576
+ dialRate?: Data.DialRate | null;
577
+
573
578
  /**
574
579
  * When the job ended
575
580
  */
@@ -804,7 +809,8 @@ export namespace SimulationRunPlanJobGetByIDResponse {
804
809
  | 'ELEVENLABS_WS'
805
810
  | 'KORE'
806
811
  | 'GOOGLE_CES'
807
- | 'DAILY';
812
+ | 'DAILY'
813
+ | 'ROARK_WEBRTC';
808
814
  }
809
815
 
810
816
  /**
@@ -1002,9 +1008,11 @@ export namespace SimulationRunPlanJobGetByIDResponse {
1002
1008
  * How much the persona talks over the agent while it is still speaking. OFF waits
1003
1009
  * its turn. BACKCHANNEL makes listening noises ("mm-hm") over the agent without
1004
1010
  * taking the floor, which tests whether the agent wrongly stops for them.
1005
- * OCCASIONAL adds cutting in on some long agent turns, HEAVY on most of them.
1006
- * Timing is randomised per turn, so two runs of the same persona do not interrupt
1007
- * at identical moments.
1011
+ * OCCASIONAL also cuts in where a caller like this plausibly would, and HEAVY does
1012
+ * so readily, though never on every turn. The moments are chosen from what the
1013
+ * agent is saying, such as reading back a number or starting a long explanation,
1014
+ * not on a timer. A customer flow can also say exactly when to cut in, which
1015
+ * applies at any level.
1008
1016
  */
1009
1017
  interruption: 'OFF' | 'BACKCHANNEL' | 'OCCASIONAL' | 'HEAVY';
1010
1018
 
@@ -1142,6 +1150,29 @@ export namespace SimulationRunPlanJobGetByIDResponse {
1142
1150
  }
1143
1151
  }
1144
1152
 
1153
+ /**
1154
+ * A paced run: the dial rate it was started with, and the rate it achieved.
1155
+ */
1156
+ export interface DialRate {
1157
+ /**
1158
+ * Simulations started per second after the ramp, from the first start past it to
1159
+ * the last. Below the target when concurrency or phone capacity held the run back.
1160
+ * `null` until two have started.
1161
+ */
1162
+ achievedCallsPerSecond: number | null;
1163
+
1164
+ /**
1165
+ * The ramp up to that rate, in seconds. `null` when the run started at the full
1166
+ * rate.
1167
+ */
1168
+ rampUpSeconds: number | null;
1169
+
1170
+ /**
1171
+ * The `callsPerSecond` the plan asked for when this run started.
1172
+ */
1173
+ targetCallsPerSecond: number;
1174
+ }
1175
+
1145
1176
  /**
1146
1177
  * For a run that swept a property (accent, background noise, speech pace and so
1147
1178
  * on): which check failures the property caused.
@@ -1668,7 +1699,12 @@ export namespace SimulationRunPlanJobGetCostResponse {
1668
1699
  | 'TRANSCRIPTION'
1669
1700
  | 'INTERNAL_LLM'
1670
1701
  | 'INTERNAL_STT'
1671
- | 'PHONE_NUMBER';
1702
+ | 'PHONE_NUMBER'
1703
+ | 'AI_AGENT'
1704
+ | 'HOSTED_AGENT_LLM'
1705
+ | 'HOSTED_AGENT_TTS'
1706
+ | 'HOSTED_AGENT_STT'
1707
+ | 'HOSTED_AGENT_TELEPHONY';
1672
1708
 
1673
1709
  /**
1674
1710
  * SIMULATION or POST_CALL.
@@ -1723,7 +1759,12 @@ export namespace SimulationRunPlanJobGetCostResponse {
1723
1759
  | 'TRANSCRIPTION'
1724
1760
  | 'INTERNAL_LLM'
1725
1761
  | 'INTERNAL_STT'
1726
- | 'PHONE_NUMBER';
1762
+ | 'PHONE_NUMBER'
1763
+ | 'AI_AGENT'
1764
+ | 'HOSTED_AGENT_LLM'
1765
+ | 'HOSTED_AGENT_TTS'
1766
+ | 'HOSTED_AGENT_STT'
1767
+ | 'HOSTED_AGENT_TELEPHONY';
1727
1768
 
1728
1769
  /**
1729
1770
  * SIMULATION or POST_CALL.
@@ -144,6 +144,18 @@ export namespace SimulationRunPlanCreateResponse {
144
144
  */
145
145
  agentEndpoints: Array<RunPlan.AgentEndpoint>;
146
146
 
147
+ /**
148
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
149
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
150
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
151
+ * holds the rate only while calls last under `maxConcurrentJobs` /
152
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
153
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
154
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
155
+ * seconds.
156
+ */
157
+ callsPerSecond: number | null;
158
+
147
159
  /**
148
160
  * The reference value of `comparisonProperty`, such as `NONE` for
149
161
  * `BACKGROUND_NOISE`: shown first in the results. Whether a value did
@@ -169,6 +181,7 @@ export namespace SimulationRunPlanCreateResponse {
169
181
  | 'INTENT_CLARITY'
170
182
  | 'LANGUAGE'
171
183
  | 'INTERRUPTION'
184
+ | 'LINE_QUALITY'
172
185
  | 'MEMORY_RELIABILITY'
173
186
  | 'RESPONSE_TIMING'
174
187
  | 'SPEECH_CLARITY'
@@ -290,6 +303,12 @@ export namespace SimulationRunPlanCreateResponse {
290
303
  */
291
304
  personas: Array<RunPlan.Persona>;
292
305
 
306
+ /**
307
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
308
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
309
+ */
310
+ rampUpSeconds: number | null;
311
+
293
312
  /**
294
313
  * @deprecated Deprecated: use `flows` instead. Scenarios included in this run
295
314
  * plan.
@@ -429,6 +448,7 @@ export namespace SimulationRunPlanCreateResponse {
429
448
  | 'INTENT_CLARITY'
430
449
  | 'LANGUAGE'
431
450
  | 'INTERRUPTION'
451
+ | 'LINE_QUALITY'
432
452
  | 'MEMORY_RELIABILITY'
433
453
  | 'RESPONSE_TIMING'
434
454
  | 'SPEECH_CLARITY'
@@ -554,6 +574,18 @@ export namespace SimulationRunPlanUpdateResponse {
554
574
  */
555
575
  agentEndpoints: Array<Data.AgentEndpoint>;
556
576
 
577
+ /**
578
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
579
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
580
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
581
+ * holds the rate only while calls last under `maxConcurrentJobs` /
582
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
583
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
584
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
585
+ * seconds.
586
+ */
587
+ callsPerSecond: number | null;
588
+
557
589
  /**
558
590
  * The reference value of `comparisonProperty`, such as `NONE` for
559
591
  * `BACKGROUND_NOISE`: shown first in the results. Whether a value did
@@ -579,6 +611,7 @@ export namespace SimulationRunPlanUpdateResponse {
579
611
  | 'INTENT_CLARITY'
580
612
  | 'LANGUAGE'
581
613
  | 'INTERRUPTION'
614
+ | 'LINE_QUALITY'
582
615
  | 'MEMORY_RELIABILITY'
583
616
  | 'RESPONSE_TIMING'
584
617
  | 'SPEECH_CLARITY'
@@ -700,6 +733,12 @@ export namespace SimulationRunPlanUpdateResponse {
700
733
  */
701
734
  personas: Array<Data.Persona>;
702
735
 
736
+ /**
737
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
738
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
739
+ */
740
+ rampUpSeconds: number | null;
741
+
703
742
  /**
704
743
  * @deprecated Deprecated: use `flows` instead. Scenarios included in this run
705
744
  * plan.
@@ -839,6 +878,7 @@ export namespace SimulationRunPlanUpdateResponse {
839
878
  | 'INTENT_CLARITY'
840
879
  | 'LANGUAGE'
841
880
  | 'INTERRUPTION'
881
+ | 'LINE_QUALITY'
842
882
  | 'MEMORY_RELIABILITY'
843
883
  | 'RESPONSE_TIMING'
844
884
  | 'SPEECH_CLARITY'
@@ -928,6 +968,18 @@ export namespace SimulationRunPlanListResponse {
928
968
  */
929
969
  agentEndpoints: Array<Data.AgentEndpoint>;
930
970
 
971
+ /**
972
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
973
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
974
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
975
+ * holds the rate only while calls last under `maxConcurrentJobs` /
976
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
977
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
978
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
979
+ * seconds.
980
+ */
981
+ callsPerSecond: number | null;
982
+
931
983
  /**
932
984
  * The reference value of `comparisonProperty`, such as `NONE` for
933
985
  * `BACKGROUND_NOISE`: shown first in the results. Whether a value did
@@ -953,6 +1005,7 @@ export namespace SimulationRunPlanListResponse {
953
1005
  | 'INTENT_CLARITY'
954
1006
  | 'LANGUAGE'
955
1007
  | 'INTERRUPTION'
1008
+ | 'LINE_QUALITY'
956
1009
  | 'MEMORY_RELIABILITY'
957
1010
  | 'RESPONSE_TIMING'
958
1011
  | 'SPEECH_CLARITY'
@@ -1074,6 +1127,12 @@ export namespace SimulationRunPlanListResponse {
1074
1127
  */
1075
1128
  personas: Array<Data.Persona>;
1076
1129
 
1130
+ /**
1131
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
1132
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
1133
+ */
1134
+ rampUpSeconds: number | null;
1135
+
1077
1136
  /**
1078
1137
  * @deprecated Deprecated: use `flows` instead. Scenarios included in this run
1079
1138
  * plan.
@@ -1213,6 +1272,7 @@ export namespace SimulationRunPlanListResponse {
1213
1272
  | 'INTENT_CLARITY'
1214
1273
  | 'LANGUAGE'
1215
1274
  | 'INTERRUPTION'
1275
+ | 'LINE_QUALITY'
1216
1276
  | 'MEMORY_RELIABILITY'
1217
1277
  | 'RESPONSE_TIMING'
1218
1278
  | 'SPEECH_CLARITY'
@@ -1330,6 +1390,18 @@ export namespace SimulationRunPlanGetByIDResponse {
1330
1390
  */
1331
1391
  agentEndpoints: Array<Data.AgentEndpoint>;
1332
1392
 
1393
+ /**
1394
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
1395
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
1396
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
1397
+ * holds the rate only while calls last under `maxConcurrentJobs` /
1398
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
1399
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
1400
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
1401
+ * seconds.
1402
+ */
1403
+ callsPerSecond: number | null;
1404
+
1333
1405
  /**
1334
1406
  * The reference value of `comparisonProperty`, such as `NONE` for
1335
1407
  * `BACKGROUND_NOISE`: shown first in the results. Whether a value did
@@ -1355,6 +1427,7 @@ export namespace SimulationRunPlanGetByIDResponse {
1355
1427
  | 'INTENT_CLARITY'
1356
1428
  | 'LANGUAGE'
1357
1429
  | 'INTERRUPTION'
1430
+ | 'LINE_QUALITY'
1358
1431
  | 'MEMORY_RELIABILITY'
1359
1432
  | 'RESPONSE_TIMING'
1360
1433
  | 'SPEECH_CLARITY'
@@ -1476,6 +1549,12 @@ export namespace SimulationRunPlanGetByIDResponse {
1476
1549
  */
1477
1550
  personas: Array<Data.Persona>;
1478
1551
 
1552
+ /**
1553
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
1554
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
1555
+ */
1556
+ rampUpSeconds: number | null;
1557
+
1479
1558
  /**
1480
1559
  * @deprecated Deprecated: use `flows` instead. Scenarios included in this run
1481
1560
  * plan.
@@ -1615,6 +1694,7 @@ export namespace SimulationRunPlanGetByIDResponse {
1615
1694
  | 'INTENT_CLARITY'
1616
1695
  | 'LANGUAGE'
1617
1696
  | 'INTERRUPTION'
1697
+ | 'LINE_QUALITY'
1618
1698
  | 'MEMORY_RELIABILITY'
1619
1699
  | 'RESPONSE_TIMING'
1620
1700
  | 'SPEECH_CLARITY'
@@ -1713,6 +1793,18 @@ export declare namespace SimulationRunPlanCreateParams {
1713
1793
  */
1714
1794
  autoRun?: boolean;
1715
1795
 
1796
+ /**
1797
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
1798
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
1799
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
1800
+ * holds the rate only while calls last under `maxConcurrentJobs` /
1801
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
1802
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
1803
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
1804
+ * seconds.
1805
+ */
1806
+ callsPerSecond?: number | null;
1807
+
1716
1808
  /**
1717
1809
  * The reference value of `comparisonProperty`, for example `NONE` for
1718
1810
  * `BACKGROUND_NOISE` or `NORMAL` for `SPEECH_PACE`: shown first in the results.
@@ -1751,6 +1843,7 @@ export declare namespace SimulationRunPlanCreateParams {
1751
1843
  | 'INTENT_CLARITY'
1752
1844
  | 'LANGUAGE'
1753
1845
  | 'INTERRUPTION'
1846
+ | 'LINE_QUALITY'
1754
1847
  | 'MEMORY_RELIABILITY'
1755
1848
  | 'RESPONSE_TIMING'
1756
1849
  | 'SPEECH_CLARITY'
@@ -1918,6 +2011,12 @@ export declare namespace SimulationRunPlanCreateParams {
1918
2011
  */
1919
2012
  personas?: Array<CreateRunPlanFromConfig.Persona>;
1920
2013
 
2014
+ /**
2015
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
2016
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
2017
+ */
2018
+ rampUpSeconds?: number | null;
2019
+
1921
2020
  /**
1922
2021
  * @deprecated Deprecated: use `flows` instead. Scenarios to include in this run
1923
2022
  * plan. The same scenario ID can appear multiple times with different variables.
@@ -2053,6 +2152,7 @@ export declare namespace SimulationRunPlanCreateParams {
2053
2152
  | 'INTENT_CLARITY'
2054
2153
  | 'LANGUAGE'
2055
2154
  | 'INTERRUPTION'
2155
+ | 'LINE_QUALITY'
2056
2156
  | 'MEMORY_RELIABILITY'
2057
2157
  | 'RESPONSE_TIMING'
2058
2158
  | 'SPEECH_CLARITY'
@@ -2186,6 +2286,18 @@ export declare namespace SimulationRunPlanCreateParams {
2186
2286
  */
2187
2287
  additionalMetrics?: Array<CreateRunPlanFromTemplate.AdditionalMetric>;
2188
2288
 
2289
+ /**
2290
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
2291
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
2292
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
2293
+ * holds the rate only while calls last under `maxConcurrentJobs` /
2294
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
2295
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
2296
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
2297
+ * seconds.
2298
+ */
2299
+ callsPerSecond?: number | null;
2300
+
2189
2301
  /**
2190
2302
  * The sweep's reference value, shown first in the results. Defaults to the
2191
2303
  * template's own baseline, as returned by GET /v1/simulation/template. Whether a
@@ -2329,6 +2441,12 @@ export declare namespace SimulationRunPlanCreateParams {
2329
2441
  */
2330
2442
  questions?: Array<CreateRunPlanFromTemplate.Question>;
2331
2443
 
2444
+ /**
2445
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
2446
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
2447
+ */
2448
+ rampUpSeconds?: number | null;
2449
+
2332
2450
  /**
2333
2451
  * Timeout in seconds for silence detection
2334
2452
  */
@@ -2499,6 +2617,7 @@ export declare namespace SimulationRunPlanCreateParams {
2499
2617
  | 'INTENT_CLARITY'
2500
2618
  | 'LANGUAGE'
2501
2619
  | 'INTERRUPTION'
2620
+ | 'LINE_QUALITY'
2502
2621
  | 'MEMORY_RELIABILITY'
2503
2622
  | 'RESPONSE_TIMING'
2504
2623
  | 'SPEECH_CLARITY'
@@ -2570,6 +2689,18 @@ export interface SimulationRunPlanUpdateParams {
2570
2689
  */
2571
2690
  agentEndpoints?: Array<SimulationRunPlanUpdateParams.AgentEndpoint>;
2572
2691
 
2692
+ /**
2693
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
2694
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
2695
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
2696
+ * holds the rate only while calls last under `maxConcurrentJobs` /
2697
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
2698
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
2699
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
2700
+ * seconds. Send `null` to remove the rate; omit to leave it unchanged.
2701
+ */
2702
+ callsPerSecond?: number | null;
2703
+
2573
2704
  /**
2574
2705
  * The reference value, shown first in the results. See `POST /v1/simulation/plan`.
2575
2706
  *
@@ -2606,6 +2737,7 @@ export interface SimulationRunPlanUpdateParams {
2606
2737
  | 'INTENT_CLARITY'
2607
2738
  | 'LANGUAGE'
2608
2739
  | 'INTERRUPTION'
2740
+ | 'LINE_QUALITY'
2609
2741
  | 'MEMORY_RELIABILITY'
2610
2742
  | 'RESPONSE_TIMING'
2611
2743
  | 'SPEECH_CLARITY'
@@ -2736,6 +2868,13 @@ export interface SimulationRunPlanUpdateParams {
2736
2868
  */
2737
2869
  personas?: Array<SimulationRunPlanUpdateParams.Persona>;
2738
2870
 
2871
+ /**
2872
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
2873
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
2874
+ * Send `null` to remove the ramp; omit to leave it unchanged.
2875
+ */
2876
+ rampUpSeconds?: number | null;
2877
+
2739
2878
  /**
2740
2879
  * @deprecated Deprecated: use `flows` instead. Replaces the scenarios on this run
2741
2880
  * plan. Omit to leave them unchanged; send an empty array to detach them all,
@@ -2872,6 +3011,7 @@ export namespace SimulationRunPlanUpdateParams {
2872
3011
  | 'INTENT_CLARITY'
2873
3012
  | 'LANGUAGE'
2874
3013
  | 'INTERRUPTION'
3014
+ | 'LINE_QUALITY'
2875
3015
  | 'MEMORY_RELIABILITY'
2876
3016
  | 'RESPONSE_TIMING'
2877
3017
  | 'SPEECH_CLARITY'
@@ -231,6 +231,7 @@ export namespace SimulationTemplateListResponse {
231
231
  | 'INTENT_CLARITY'
232
232
  | 'LANGUAGE'
233
233
  | 'INTERRUPTION'
234
+ | 'LINE_QUALITY'
234
235
  | 'MEMORY_RELIABILITY'
235
236
  | 'RESPONSE_TIMING'
236
237
  | 'SPEECH_CLARITY'
@@ -269,6 +269,18 @@ export declare namespace SimulationRunParams {
269
269
  */
270
270
  maxSimulationDurationSeconds: number;
271
271
 
272
+ /**
273
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
274
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
275
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
276
+ * holds the rate only while calls last under `maxConcurrentJobs` /
277
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
278
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
279
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
280
+ * seconds.
281
+ */
282
+ callsPerSecond?: number | null;
283
+
272
284
  /**
273
285
  * The reference value of `comparisonProperty`, for example `NONE` for
274
286
  * `BACKGROUND_NOISE` or `NORMAL` for `SPEECH_PACE`: shown first in the results.
@@ -307,6 +319,7 @@ export declare namespace SimulationRunParams {
307
319
  | 'INTENT_CLARITY'
308
320
  | 'LANGUAGE'
309
321
  | 'INTERRUPTION'
322
+ | 'LINE_QUALITY'
310
323
  | 'MEMORY_RELIABILITY'
311
324
  | 'RESPONSE_TIMING'
312
325
  | 'SPEECH_CLARITY'
@@ -473,6 +486,12 @@ export declare namespace SimulationRunParams {
473
486
  */
474
487
  personas?: Array<Plan.Persona>;
475
488
 
489
+ /**
490
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
491
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
492
+ */
493
+ rampUpSeconds?: number | null;
494
+
476
495
  /**
477
496
  * @deprecated Deprecated: use `flows` instead. Scenarios to include in this run
478
497
  * plan. The same scenario ID can appear multiple times with different variables.
@@ -608,6 +627,7 @@ export declare namespace SimulationRunParams {
608
627
  | 'INTENT_CLARITY'
609
628
  | 'LANGUAGE'
610
629
  | 'INTERRUPTION'
630
+ | 'LINE_QUALITY'
611
631
  | 'MEMORY_RELIABILITY'
612
632
  | 'RESPONSE_TIMING'
613
633
  | 'SPEECH_CLARITY'
@@ -883,6 +903,18 @@ export declare namespace SimulationRunParams {
883
903
  */
884
904
  additionalMetrics?: Array<RunSimulationFromTemplate.AdditionalMetric>;
885
905
 
906
+ /**
907
+ * The most simulations a run starts per second (0.01-10), fractional allowed: 0.2
908
+ * starts one every 5 seconds. Omitted or `null` starts them as fast as
909
+ * `maxConcurrentJobs` allows. The concurrency limit still applies on top, so a run
910
+ * holds the rate only while calls last under `maxConcurrentJobs` /
911
+ * `callsPerSecond` seconds. A run reports the rate it achieved as
912
+ * `dialRate.achievedCallsPerSecond`. A rate above the project's concurrency limit
913
+ * / 30 is refused with 400: that limit could only hold it with calls under 30
914
+ * seconds.
915
+ */
916
+ callsPerSecond?: number | null;
917
+
886
918
  /**
887
919
  * The sweep's reference value, shown first in the results. Defaults to the
888
920
  * template's own baseline, as returned by GET /v1/simulation/template. Whether a
@@ -1020,6 +1052,12 @@ export declare namespace SimulationRunParams {
1020
1052
  */
1021
1053
  questions?: Array<RunSimulationFromTemplate.Question>;
1022
1054
 
1055
+ /**
1056
+ * Seconds over which the rate climbs linearly from 0 to `callsPerSecond` (0-3600).
1057
+ * Omitted, `null` or 0 starts at the full rate. Only used with `callsPerSecond`.
1058
+ */
1059
+ rampUpSeconds?: number | null;
1060
+
1023
1061
  /**
1024
1062
  * Keeps the resolved configuration as a run plan, listed by GET
1025
1063
  * /v1/simulation/plan and re-runnable with `planId`. Requires `name`.
@@ -1206,6 +1244,7 @@ export declare namespace SimulationRunParams {
1206
1244
  | 'INTENT_CLARITY'
1207
1245
  | 'LANGUAGE'
1208
1246
  | 'INTERRUPTION'
1247
+ | 'LINE_QUALITY'
1209
1248
  | 'MEMORY_RELIABILITY'
1210
1249
  | 'RESPONSE_TIMING'
1211
1250
  | 'SPEECH_CLARITY'