@roarkanalytics/sdk 7.9.0 → 8.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/CHANGELOG.md +23 -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 +21 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +21 -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 -92
  84. package/resources/customer.d.mts.map +1 -0
  85. package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
  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 +200 -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 -294
  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
@@ -175,9 +175,9 @@ export namespace AgentVersionListResponse {
175
175
  language: string | null;
176
176
 
177
177
  /**
178
- * Whether the agent takes calls, chats, or both.
178
+ * Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
179
179
  */
180
- modalities: Array<'call' | 'chat'>;
180
+ modalities: Array<'voice' | 'chat'>;
181
181
 
182
182
  /**
183
183
  * ISO 8601.
@@ -219,8 +219,22 @@ export namespace AgentVersionListResponse {
219
219
  */
220
220
  updatedAt: string;
221
221
 
222
+ /**
223
+ * The longest silence the agent waits through when the caller sounds unfinished,
224
+ * never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
225
+ * default.
226
+ */
227
+ vadMaxSilenceSecs: number | null;
228
+
229
+ /**
230
+ * Seconds of speech before it counts as the caller talking. Null uses the default.
231
+ */
222
232
  vadStartSecs: number | null;
223
233
 
234
+ /**
235
+ * Seconds of silence before the agent checks whether the caller has finished. Null
236
+ * uses the default.
237
+ */
224
238
  vadStopSecs: number | null;
225
239
 
226
240
  /**
@@ -335,7 +349,18 @@ export namespace AgentVersionListResponse {
335
349
  */
336
350
  model: string;
337
351
 
338
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
352
+ provider:
353
+ | 'OPENAI'
354
+ | 'ANTHROPIC'
355
+ | 'GOOGLE'
356
+ | 'XAI'
357
+ | 'ULTRAVOX'
358
+ | 'AWS'
359
+ | 'ELEVENLABS'
360
+ | 'GROQ'
361
+ | 'META'
362
+ | 'RIME'
363
+ | 'PHONIC';
339
364
 
340
365
  /**
341
366
  * 0 to 2.
@@ -362,7 +387,7 @@ export namespace AgentVersionListResponse {
362
387
  */
363
388
  model: string;
364
389
 
365
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
390
+ provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
366
391
 
367
392
  smartFormat: boolean | null;
368
393
 
@@ -378,7 +403,7 @@ export namespace AgentVersionListResponse {
378
403
  */
379
404
  model: string;
380
405
 
381
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
406
+ provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
382
407
 
383
408
  /**
384
409
  * 0 to 1, ElevenLabs.
@@ -433,7 +458,18 @@ export namespace AgentVersionListResponse {
433
458
  */
434
459
  model: string;
435
460
 
436
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
461
+ provider:
462
+ | 'OPENAI'
463
+ | 'ANTHROPIC'
464
+ | 'GOOGLE'
465
+ | 'XAI'
466
+ | 'ULTRAVOX'
467
+ | 'AWS'
468
+ | 'ELEVENLABS'
469
+ | 'GROQ'
470
+ | 'META'
471
+ | 'RIME'
472
+ | 'PHONIC';
437
473
 
438
474
  /**
439
475
  * 0 to 2.
@@ -595,9 +631,9 @@ export namespace AgentVersionGetByIDResponse {
595
631
  language: string | null;
596
632
 
597
633
  /**
598
- * Whether the agent takes calls, chats, or both.
634
+ * Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
599
635
  */
600
- modalities: Array<'call' | 'chat'>;
636
+ modalities: Array<'voice' | 'chat'>;
601
637
 
602
638
  /**
603
639
  * ISO 8601.
@@ -639,8 +675,22 @@ export namespace AgentVersionGetByIDResponse {
639
675
  */
640
676
  updatedAt: string;
641
677
 
678
+ /**
679
+ * The longest silence the agent waits through when the caller sounds unfinished,
680
+ * never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
681
+ * default.
682
+ */
683
+ vadMaxSilenceSecs: number | null;
684
+
685
+ /**
686
+ * Seconds of speech before it counts as the caller talking. Null uses the default.
687
+ */
642
688
  vadStartSecs: number | null;
643
689
 
690
+ /**
691
+ * Seconds of silence before the agent checks whether the caller has finished. Null
692
+ * uses the default.
693
+ */
644
694
  vadStopSecs: number | null;
645
695
 
646
696
  /**
@@ -755,7 +805,18 @@ export namespace AgentVersionGetByIDResponse {
755
805
  */
756
806
  model: string;
757
807
 
758
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
808
+ provider:
809
+ | 'OPENAI'
810
+ | 'ANTHROPIC'
811
+ | 'GOOGLE'
812
+ | 'XAI'
813
+ | 'ULTRAVOX'
814
+ | 'AWS'
815
+ | 'ELEVENLABS'
816
+ | 'GROQ'
817
+ | 'META'
818
+ | 'RIME'
819
+ | 'PHONIC';
759
820
 
760
821
  /**
761
822
  * 0 to 2.
@@ -782,7 +843,7 @@ export namespace AgentVersionGetByIDResponse {
782
843
  */
783
844
  model: string;
784
845
 
785
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
846
+ provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
786
847
 
787
848
  smartFormat: boolean | null;
788
849
 
@@ -798,7 +859,7 @@ export namespace AgentVersionGetByIDResponse {
798
859
  */
799
860
  model: string;
800
861
 
801
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
862
+ provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
802
863
 
803
864
  /**
804
865
  * 0 to 1, ElevenLabs.
@@ -853,7 +914,18 @@ export namespace AgentVersionGetByIDResponse {
853
914
  */
854
915
  model: string;
855
916
 
856
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
917
+ provider:
918
+ | 'OPENAI'
919
+ | 'ANTHROPIC'
920
+ | 'GOOGLE'
921
+ | 'XAI'
922
+ | 'ULTRAVOX'
923
+ | 'AWS'
924
+ | 'ELEVENLABS'
925
+ | 'GROQ'
926
+ | 'META'
927
+ | 'RIME'
928
+ | 'PHONIC';
857
929
 
858
930
  /**
859
931
  * 0 to 2.
@@ -998,9 +1070,9 @@ export namespace AgentVersionRollbackResponse {
998
1070
  language: string | null;
999
1071
 
1000
1072
  /**
1001
- * Whether the agent takes calls, chats, or both.
1073
+ * Whether the agent talks by voice, in chats, or both: `voice`, `chat`.
1002
1074
  */
1003
- modalities: Array<'call' | 'chat'>;
1075
+ modalities: Array<'voice' | 'chat'>;
1004
1076
 
1005
1077
  /**
1006
1078
  * ISO 8601.
@@ -1042,8 +1114,22 @@ export namespace AgentVersionRollbackResponse {
1042
1114
  */
1043
1115
  updatedAt: string;
1044
1116
 
1117
+ /**
1118
+ * The longest silence the agent waits through when the caller sounds unfinished,
1119
+ * never shorter than vadStopSecs. Null uses vadStopSecs when that is set, else the
1120
+ * default.
1121
+ */
1122
+ vadMaxSilenceSecs: number | null;
1123
+
1124
+ /**
1125
+ * Seconds of speech before it counts as the caller talking. Null uses the default.
1126
+ */
1045
1127
  vadStartSecs: number | null;
1046
1128
 
1129
+ /**
1130
+ * Seconds of silence before the agent checks whether the caller has finished. Null
1131
+ * uses the default.
1132
+ */
1047
1133
  vadStopSecs: number | null;
1048
1134
 
1049
1135
  /**
@@ -1158,7 +1244,18 @@ export namespace AgentVersionRollbackResponse {
1158
1244
  */
1159
1245
  model: string;
1160
1246
 
1161
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
1247
+ provider:
1248
+ | 'OPENAI'
1249
+ | 'ANTHROPIC'
1250
+ | 'GOOGLE'
1251
+ | 'XAI'
1252
+ | 'ULTRAVOX'
1253
+ | 'AWS'
1254
+ | 'ELEVENLABS'
1255
+ | 'GROQ'
1256
+ | 'META'
1257
+ | 'RIME'
1258
+ | 'PHONIC';
1162
1259
 
1163
1260
  /**
1164
1261
  * 0 to 2.
@@ -1185,7 +1282,7 @@ export namespace AgentVersionRollbackResponse {
1185
1282
  */
1186
1283
  model: string;
1187
1284
 
1188
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
1285
+ provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
1189
1286
 
1190
1287
  smartFormat: boolean | null;
1191
1288
 
@@ -1201,7 +1298,7 @@ export namespace AgentVersionRollbackResponse {
1201
1298
  */
1202
1299
  model: string;
1203
1300
 
1204
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
1301
+ provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
1205
1302
 
1206
1303
  /**
1207
1304
  * 0 to 1, ElevenLabs.
@@ -1256,7 +1353,18 @@ export namespace AgentVersionRollbackResponse {
1256
1353
  */
1257
1354
  model: string;
1258
1355
 
1259
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
1356
+ provider:
1357
+ | 'OPENAI'
1358
+ | 'ANTHROPIC'
1359
+ | 'GOOGLE'
1360
+ | 'XAI'
1361
+ | 'ULTRAVOX'
1362
+ | 'AWS'
1363
+ | 'ELEVENLABS'
1364
+ | 'GROQ'
1365
+ | 'META'
1366
+ | 'RIME'
1367
+ | 'PHONIC';
1260
1368
 
1261
1369
  /**
1262
1370
  * 0 to 2.