@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
@@ -105,16 +105,280 @@ export namespace AgentCreateResponse {
105
105
  */
106
106
  description: string | null;
107
107
 
108
+ /**
109
+ * The industry the agent serves
110
+ */
111
+ industry:
112
+ | 'HEALTHCARE'
113
+ | 'FINANCIAL_SERVICES'
114
+ | 'INSURANCE'
115
+ | 'DEBT_COLLECTION'
116
+ | 'RETAIL'
117
+ | 'TRAVEL_AND_HOSPITALITY'
118
+ | 'TELECOMMUNICATIONS'
119
+ | 'TECHNOLOGY'
120
+ | 'PUBLIC_SECTOR'
121
+ | 'UTILITIES'
122
+ | 'LOGISTICS'
123
+ | 'AUTOMOTIVE'
124
+ | 'HOME_SERVICES'
125
+ | 'RESTAURANTS'
126
+ | 'EDUCATION'
127
+ | 'OTHER'
128
+ | null;
129
+
108
130
  /**
109
131
  * Name of the agent
110
132
  */
111
133
  name: string;
112
134
 
135
+ /**
136
+ * The tests Roark generated for an agent, and why
137
+ */
138
+ setup: Data.Setup | null;
139
+
113
140
  /**
114
141
  * Last update timestamp in ISO 8601 format
115
142
  */
116
143
  updatedAt: string;
117
144
  }
145
+
146
+ export namespace Data {
147
+ /**
148
+ * The tests Roark generated for an agent, and why
149
+ */
150
+ export interface Setup {
151
+ /**
152
+ * Setup ID
153
+ */
154
+ id: string;
155
+
156
+ /**
157
+ * What setup did and said, in order
158
+ */
159
+ activity: Array<Setup.Activity>;
160
+
161
+ agentId: string;
162
+
163
+ capabilities: Array<
164
+ | 'APPOINTMENT_BOOKING'
165
+ | 'FAQ'
166
+ | 'IDENTITY_VERIFICATION'
167
+ | 'ACCOUNT_MANAGEMENT'
168
+ | 'BILLING_AND_PAYMENTS'
169
+ | 'ORDER_MANAGEMENT'
170
+ | 'TROUBLESHOOTING'
171
+ | 'CALL_ROUTING'
172
+ | 'LEAD_QUALIFICATION'
173
+ | 'COLLECTIONS'
174
+ | 'OUTBOUND_CALLING'
175
+ >;
176
+
177
+ completedAt: string | null;
178
+
179
+ createdAt: string;
180
+
181
+ errorMessage: string | null;
182
+
183
+ explore: Setup.Explore;
184
+
185
+ industry:
186
+ | 'HEALTHCARE'
187
+ | 'FINANCIAL_SERVICES'
188
+ | 'INSURANCE'
189
+ | 'DEBT_COLLECTION'
190
+ | 'RETAIL'
191
+ | 'TRAVEL_AND_HOSPITALITY'
192
+ | 'TELECOMMUNICATIONS'
193
+ | 'TECHNOLOGY'
194
+ | 'PUBLIC_SECTOR'
195
+ | 'UTILITIES'
196
+ | 'LOGISTICS'
197
+ | 'AUTOMOTIVE'
198
+ | 'HOME_SERVICES'
199
+ | 'RESTAURANTS'
200
+ | 'EDUCATION'
201
+ | 'OTHER'
202
+ | null;
203
+
204
+ items: Array<Setup.Item>;
205
+
206
+ /**
207
+ * The checklist setup works through
208
+ */
209
+ layers: Array<Setup.Layer>;
210
+
211
+ /**
212
+ * The question setup is waiting on, while NEEDS_INPUT
213
+ */
214
+ question: Setup.Question | null;
215
+
216
+ /**
217
+ * The run plan to start once setup completes
218
+ */
219
+ runPlanId: string | null;
220
+
221
+ /**
222
+ * PENDING, RUNNING, NEEDS_INPUT (waiting on a question; it goes ahead with the
223
+ * default if nobody answers), COMPLETED, FAILED or CANCELLED
224
+ */
225
+ status: 'PENDING' | 'RUNNING' | 'NEEDS_INPUT' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
226
+
227
+ /**
228
+ * Test data the agent asked for that Roark did not have
229
+ */
230
+ testDataNeeded: Array<Setup.TestDataNeeded>;
231
+ }
232
+
233
+ export namespace Setup {
234
+ /**
235
+ * One thing setup did or said, in order
236
+ */
237
+ export interface Activity {
238
+ createdAt: string;
239
+
240
+ /**
241
+ * STATUS, REASONING, ACTION, GUIDANCE, QUESTION, ANSWER, EXPLORATION or ERROR
242
+ */
243
+ kind:
244
+ | 'STATUS'
245
+ | 'REASONING'
246
+ | 'ACTION'
247
+ | 'GUIDANCE'
248
+ | 'QUESTION'
249
+ | 'ANSWER'
250
+ | 'EXPLORATION'
251
+ | 'ERROR';
252
+
253
+ text: string;
254
+ }
255
+
256
+ export interface Explore {
257
+ conversationsUsed: number;
258
+
259
+ enabled: boolean;
260
+
261
+ maxConversationMinutes: number;
262
+
263
+ maxConversations: number;
264
+ }
265
+
266
+ /**
267
+ * Something setup created or chose to leave out, and why
268
+ */
269
+ export interface Item {
270
+ id: string;
271
+
272
+ /**
273
+ * CREATED, or SKIPPED with the reason
274
+ */
275
+ action: 'CREATED' | 'SKIPPED';
276
+
277
+ capability:
278
+ | 'APPOINTMENT_BOOKING'
279
+ | 'FAQ'
280
+ | 'IDENTITY_VERIFICATION'
281
+ | 'ACCOUNT_MANAGEMENT'
282
+ | 'BILLING_AND_PAYMENTS'
283
+ | 'ORDER_MANAGEMENT'
284
+ | 'TROUBLESHOOTING'
285
+ | 'CALL_ROUTING'
286
+ | 'LEAD_QUALIFICATION'
287
+ | 'COLLECTIONS'
288
+ | 'OUTBOUND_CALLING'
289
+ | null;
290
+
291
+ /**
292
+ * A flow, a metric, or a pass or fail check
293
+ */
294
+ kind: 'FLOW' | 'METRIC' | 'CHECK' | 'LAYER';
295
+
296
+ label: string;
297
+
298
+ /**
299
+ * Why it exists: CORE (every agent), INDUSTRY, CAPABILITY, AGENT_CONTEXT (your
300
+ * prompt or website), EXPLORATION or CUSTOMER_INSTRUCTIONS
301
+ */
302
+ layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
303
+
304
+ /**
305
+ * Exploration only: DISCOVERED on a call, or INFERRED from a path the agent
306
+ * offered
307
+ */
308
+ origin: 'DISCOVERED' | 'INFERRED' | null;
309
+
310
+ reason: string;
311
+
312
+ /**
313
+ * The flow or metric it created
314
+ */
315
+ resourceId: string | null;
316
+
317
+ source: Item.Source;
318
+ }
319
+
320
+ export namespace Item {
321
+ export interface Source {
322
+ /**
323
+ * The exploration call it came from
324
+ */
325
+ callId: string | null;
326
+
327
+ /**
328
+ * Where in the call
329
+ */
330
+ offsetMs: number | null;
331
+
332
+ /**
333
+ * The words in the source that led to it
334
+ */
335
+ quote: string | null;
336
+
337
+ type: 'CATALOGUE' | 'PROMPT' | 'DESCRIPTION' | 'WEBSITE' | 'EXPLORATION_CALL' | 'INSTRUCTIONS';
338
+
339
+ /**
340
+ * The page it came from, for website sources
341
+ */
342
+ url: string | null;
343
+ }
344
+ }
345
+
346
+ /**
347
+ * Where one part of testing the agent stands
348
+ */
349
+ export interface Layer {
350
+ layer: 'CORE' | 'INDUSTRY' | 'CAPABILITY' | 'AGENT_CONTEXT' | 'EXPLORATION' | 'CUSTOMER_INSTRUCTIONS';
351
+
352
+ /**
353
+ * COVERED: tests exist for it, or are added when setup finishes. SKIPPED: setup
354
+ * could not test it and said why. OPEN: not covered yet; setup does not finish
355
+ * while a layer is open. NOT_APPLICABLE: nothing to test it from.
356
+ */
357
+ status: 'COVERED' | 'SKIPPED' | 'OPEN' | 'NOT_APPLICABLE';
358
+
359
+ summary: string;
360
+ }
361
+
362
+ /**
363
+ * The question setup is waiting on, while NEEDS_INPUT
364
+ */
365
+ export interface Question {
366
+ defaultOption: string;
367
+
368
+ options: Array<string>;
369
+
370
+ question: string;
371
+ }
372
+
373
+ export interface TestDataNeeded {
374
+ callId: string | null;
375
+
376
+ label: string;
377
+
378
+ reason: string;
379
+ }
380
+ }
381
+ }
118
382
  }
119
383
 
120
384
  export interface AgentUpdateResponse {
@@ -143,6 +407,28 @@ export namespace AgentUpdateResponse {
143
407
  */
144
408
  description: string | null;
145
409
 
410
+ /**
411
+ * The industry the agent serves
412
+ */
413
+ industry:
414
+ | 'HEALTHCARE'
415
+ | 'FINANCIAL_SERVICES'
416
+ | 'INSURANCE'
417
+ | 'DEBT_COLLECTION'
418
+ | 'RETAIL'
419
+ | 'TRAVEL_AND_HOSPITALITY'
420
+ | 'TELECOMMUNICATIONS'
421
+ | 'TECHNOLOGY'
422
+ | 'PUBLIC_SECTOR'
423
+ | 'UTILITIES'
424
+ | 'LOGISTICS'
425
+ | 'AUTOMOTIVE'
426
+ | 'HOME_SERVICES'
427
+ | 'RESTAURANTS'
428
+ | 'EDUCATION'
429
+ | 'OTHER'
430
+ | null;
431
+
146
432
  /**
147
433
  * Name of the agent
148
434
  */
@@ -183,6 +469,28 @@ export namespace AgentListResponse {
183
469
  */
184
470
  description: string | null;
185
471
 
472
+ /**
473
+ * The industry the agent serves
474
+ */
475
+ industry:
476
+ | 'HEALTHCARE'
477
+ | 'FINANCIAL_SERVICES'
478
+ | 'INSURANCE'
479
+ | 'DEBT_COLLECTION'
480
+ | 'RETAIL'
481
+ | 'TRAVEL_AND_HOSPITALITY'
482
+ | 'TELECOMMUNICATIONS'
483
+ | 'TECHNOLOGY'
484
+ | 'PUBLIC_SECTOR'
485
+ | 'UTILITIES'
486
+ | 'LOGISTICS'
487
+ | 'AUTOMOTIVE'
488
+ | 'HOME_SERVICES'
489
+ | 'RESTAURANTS'
490
+ | 'EDUCATION'
491
+ | 'OTHER'
492
+ | null;
493
+
186
494
  /**
187
495
  * Name of the agent
188
496
  */
@@ -238,6 +546,28 @@ export namespace AgentBuildResponse {
238
546
  */
239
547
  description: string | null;
240
548
 
549
+ /**
550
+ * The industry the agent serves
551
+ */
552
+ industry:
553
+ | 'HEALTHCARE'
554
+ | 'FINANCIAL_SERVICES'
555
+ | 'INSURANCE'
556
+ | 'DEBT_COLLECTION'
557
+ | 'RETAIL'
558
+ | 'TRAVEL_AND_HOSPITALITY'
559
+ | 'TELECOMMUNICATIONS'
560
+ | 'TECHNOLOGY'
561
+ | 'PUBLIC_SECTOR'
562
+ | 'UTILITIES'
563
+ | 'LOGISTICS'
564
+ | 'AUTOMOTIVE'
565
+ | 'HOME_SERVICES'
566
+ | 'RESTAURANTS'
567
+ | 'EDUCATION'
568
+ | 'OTHER'
569
+ | null;
570
+
241
571
  /**
242
572
  * Name of the agent
243
573
  */
@@ -276,6 +606,28 @@ export namespace AgentGetByIDResponse {
276
606
  */
277
607
  description: string | null;
278
608
 
609
+ /**
610
+ * The industry the agent serves
611
+ */
612
+ industry:
613
+ | 'HEALTHCARE'
614
+ | 'FINANCIAL_SERVICES'
615
+ | 'INSURANCE'
616
+ | 'DEBT_COLLECTION'
617
+ | 'RETAIL'
618
+ | 'TRAVEL_AND_HOSPITALITY'
619
+ | 'TELECOMMUNICATIONS'
620
+ | 'TECHNOLOGY'
621
+ | 'PUBLIC_SECTOR'
622
+ | 'UTILITIES'
623
+ | 'LOGISTICS'
624
+ | 'AUTOMOTIVE'
625
+ | 'HOME_SERVICES'
626
+ | 'RESTAURANTS'
627
+ | 'EDUCATION'
628
+ | 'OTHER'
629
+ | null;
630
+
279
631
  /**
280
632
  * Name of the agent
281
633
  */
@@ -295,7 +647,12 @@ export interface AgentCreateParams {
295
647
  name: string;
296
648
 
297
649
  /**
298
- * Custom identifier for the agent
650
+ * Controls the flows, metrics and run plan Roark generates for the agent
651
+ */
652
+ autoSetup?: AgentCreateParams.AutoSetup | null;
653
+
654
+ /**
655
+ * Custom identifier for the agent. Must be unique in the project.
299
656
  */
300
657
  customId?: string | null;
301
658
 
@@ -303,6 +660,140 @@ export interface AgentCreateParams {
303
660
  * Description of the agent
304
661
  */
305
662
  description?: string | null;
663
+
664
+ /**
665
+ * The phone number or connection Roark calls to test the agent
666
+ */
667
+ endpoint?: AgentCreateParams.Endpoint | null;
668
+
669
+ /**
670
+ * The industry the agent serves. Picks the default capabilities and industry
671
+ * checks setup adds.
672
+ */
673
+ industry?:
674
+ | 'HEALTHCARE'
675
+ | 'FINANCIAL_SERVICES'
676
+ | 'INSURANCE'
677
+ | 'DEBT_COLLECTION'
678
+ | 'RETAIL'
679
+ | 'TRAVEL_AND_HOSPITALITY'
680
+ | 'TELECOMMUNICATIONS'
681
+ | 'TECHNOLOGY'
682
+ | 'PUBLIC_SECTOR'
683
+ | 'UTILITIES'
684
+ | 'LOGISTICS'
685
+ | 'AUTOMOTIVE'
686
+ | 'HOME_SERVICES'
687
+ | 'RESTAURANTS'
688
+ | 'EDUCATION'
689
+ | 'OTHER'
690
+ | null;
691
+
692
+ /**
693
+ * The agent's system prompt. Setup reads it to decide what to test.
694
+ */
695
+ prompt?: string | null;
696
+
697
+ /**
698
+ * What you want tested, in your own words. Each scenario you describe becomes a
699
+ * flow.
700
+ */
701
+ testingInstructions?: string | null;
702
+
703
+ /**
704
+ * A page Roark reads to learn about the business.
705
+ */
706
+ websiteUrl?: string | null;
707
+ }
708
+
709
+ export namespace AgentCreateParams {
710
+ /**
711
+ * Controls the flows, metrics and run plan Roark generates for the agent
712
+ */
713
+ export interface AutoSetup {
714
+ /**
715
+ * The capabilities to test. Omit to let Roark work them out from the agent.
716
+ */
717
+ capabilities?: Array<
718
+ | 'APPOINTMENT_BOOKING'
719
+ | 'FAQ'
720
+ | 'IDENTITY_VERIFICATION'
721
+ | 'ACCOUNT_MANAGEMENT'
722
+ | 'BILLING_AND_PAYMENTS'
723
+ | 'ORDER_MANAGEMENT'
724
+ | 'TROUBLESHOOTING'
725
+ | 'CALL_ROUTING'
726
+ | 'LEAD_QUALIFICATION'
727
+ | 'COLLECTIONS'
728
+ | 'OUTBOUND_CALLING'
729
+ >;
730
+
731
+ /**
732
+ * Set to false to skip setup. When omitted, setup runs if you pass a prompt,
733
+ * endpoint, website or testing instructions.
734
+ */
735
+ enabled?: boolean;
736
+
737
+ /**
738
+ * Exploration settings
739
+ */
740
+ explore?: AutoSetup.Explore;
741
+ }
742
+
743
+ export namespace AutoSetup {
744
+ /**
745
+ * Exploration settings
746
+ */
747
+ export interface Explore {
748
+ /**
749
+ * Whether Roark calls the agent to discover what it does before finishing setup.
750
+ * Exploration calls are billed.
751
+ */
752
+ enabled?: boolean;
753
+
754
+ /**
755
+ * The longest a single exploration call may last, in minutes.
756
+ */
757
+ maxConversationMinutes?: number;
758
+
759
+ /**
760
+ * The most exploration calls Roark places.
761
+ */
762
+ maxConversations?: number;
763
+ }
764
+ }
765
+
766
+ /**
767
+ * The phone number or connection Roark calls to test the agent
768
+ */
769
+ export interface Endpoint {
770
+ /**
771
+ * Call direction: INCOMING, OUTGOING, or INCOMING_AND_OUTGOING
772
+ */
773
+ direction: 'INCOMING' | 'OUTGOING' | 'INCOMING_AND_OUTGOING';
774
+
775
+ /**
776
+ * Environment name (default: production)
777
+ */
778
+ environment?: string;
779
+
780
+ /**
781
+ * ID of the HTTP request definition for outbound dialing (required when
782
+ * outboundDialType is HTTP_REQUEST)
783
+ */
784
+ outboundDialHttpRequestDefinitionId?: string | null;
785
+
786
+ /**
787
+ * Outbound dial type: NONE or HTTP_REQUEST (default: NONE)
788
+ */
789
+ outboundDialType?: 'NONE' | 'HTTP_REQUEST';
790
+
791
+ /**
792
+ * Phone number in E.164 format (e.g., +12345678900). Optional when direction is
793
+ * OUTGOING, for an agent that calls from numbers you do not know up front.
794
+ */
795
+ value?: string | null;
796
+ }
306
797
  }
307
798
 
308
799
  export interface AgentUpdateParams {
@@ -372,7 +863,18 @@ export namespace AgentBuildParams {
372
863
  /**
373
864
  * Text model provider, for example OPENAI
374
865
  */
375
- provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
866
+ provider:
867
+ | 'OPENAI'
868
+ | 'ANTHROPIC'
869
+ | 'GOOGLE'
870
+ | 'XAI'
871
+ | 'ULTRAVOX'
872
+ | 'AWS'
873
+ | 'ELEVENLABS'
874
+ | 'GROQ'
875
+ | 'META'
876
+ | 'RIME'
877
+ | 'PHONIC';
376
878
  }
377
879
 
378
880
  /**
@@ -387,7 +889,7 @@ export namespace AgentBuildParams {
387
889
  /**
388
890
  * Speech-to-text provider, for example DEEPGRAM
389
891
  */
390
- provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
892
+ provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS' | 'SONIOX';
391
893
  }
392
894
 
393
895
  /**
@@ -397,7 +899,7 @@ export namespace AgentBuildParams {
397
899
  /**
398
900
  * Text-to-speech provider, for example ELEVENLABS
399
901
  */
400
- provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
902
+ provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME' | 'ASSEMBLYAI' | 'DEEPGRAM' | 'FISH_AUDIO';
401
903
 
402
904
  /**
403
905
  * The provider's id for the voice