@roarkanalytics/sdk 5.23.0 → 6.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 (58) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/lib/config.d.mts +2 -0
  7. package/lib/config.d.mts.map +1 -1
  8. package/lib/config.d.ts +2 -0
  9. package/lib/config.d.ts.map +1 -1
  10. package/lib/config.js +7 -1
  11. package/lib/config.js.map +1 -1
  12. package/lib/config.mjs +5 -0
  13. package/lib/config.mjs.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/agent-draft.d.mts +701 -275
  16. package/resources/agent-draft.d.mts.map +1 -1
  17. package/resources/agent-draft.d.ts +701 -275
  18. package/resources/agent-draft.d.ts.map +1 -1
  19. package/resources/agent-draft.js +1 -1
  20. package/resources/agent-draft.js.map +1 -1
  21. package/resources/agent-draft.mjs +1 -1
  22. package/resources/agent-draft.mjs.map +1 -1
  23. package/resources/agent-version.d.mts +404 -168
  24. package/resources/agent-version.d.mts.map +1 -1
  25. package/resources/agent-version.d.ts +404 -168
  26. package/resources/agent-version.d.ts.map +1 -1
  27. package/resources/agent-version.js +8 -9
  28. package/resources/agent-version.js.map +1 -1
  29. package/resources/agent-version.mjs +8 -9
  30. package/resources/agent-version.mjs.map +1 -1
  31. package/resources/agent.d.mts +39 -0
  32. package/resources/agent.d.mts.map +1 -1
  33. package/resources/agent.d.ts +39 -0
  34. package/resources/agent.d.ts.map +1 -1
  35. package/resources/config.d.mts +114 -30
  36. package/resources/config.d.mts.map +1 -1
  37. package/resources/config.d.ts +114 -30
  38. package/resources/config.d.ts.map +1 -1
  39. package/resources/index.d.mts +1 -1
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +1 -1
  42. package/resources/index.d.ts.map +1 -1
  43. package/src/client.ts +4 -4
  44. package/src/lib/config.ts +9 -0
  45. package/src/resources/agent-draft.ts +876 -384
  46. package/src/resources/agent-version.ts +495 -226
  47. package/src/resources/agent.ts +46 -0
  48. package/src/resources/config.ts +390 -24
  49. package/src/resources/index.ts +2 -2
  50. package/src/version.ts +1 -1
  51. package/version.d.mts +1 -1
  52. package/version.d.mts.map +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.d.ts.map +1 -1
  55. package/version.js +1 -1
  56. package/version.js.map +1 -1
  57. package/version.mjs +1 -1
  58. package/version.mjs.map +1 -1
@@ -337,6 +337,16 @@ export interface AgentBuildParams {
337
337
  */
338
338
  name: string;
339
339
 
340
+ /**
341
+ * Optional text model the hosted agent thinks with. Roark's default when omitted
342
+ */
343
+ llm?: AgentBuildParams.Llm | null;
344
+
345
+ /**
346
+ * Optional transcriber the hosted agent hears with. Roark's default when omitted
347
+ */
348
+ stt?: AgentBuildParams.Stt | null;
349
+
340
350
  /**
341
351
  * Optional provider voice the hosted agent speaks with
342
352
  */
@@ -350,6 +360,36 @@ export interface AgentBuildParams {
350
360
  }
351
361
 
352
362
  export namespace AgentBuildParams {
363
+ /**
364
+ * Optional text model the hosted agent thinks with. Roark's default when omitted
365
+ */
366
+ export interface Llm {
367
+ /**
368
+ * The provider's model id, for example gpt-4.1
369
+ */
370
+ model: string;
371
+
372
+ /**
373
+ * Text model provider, for example OPENAI
374
+ */
375
+ provider: 'OPENAI' | 'ANTHROPIC' | 'GOOGLE' | 'XAI' | 'ULTRAVOX' | 'AWS' | 'ELEVENLABS';
376
+ }
377
+
378
+ /**
379
+ * Optional transcriber the hosted agent hears with. Roark's default when omitted
380
+ */
381
+ export interface Stt {
382
+ /**
383
+ * The provider's model id, for example nova-3
384
+ */
385
+ model: string;
386
+
387
+ /**
388
+ * Speech-to-text provider, for example DEEPGRAM
389
+ */
390
+ provider: 'DEEPGRAM' | 'OPENAI_WHISPER' | 'SPEECHMATICS' | 'ASSEMBLYAI' | 'ELEVENLABS';
391
+ }
392
+
353
393
  /**
354
394
  * Optional provider voice the hosted agent speaks with
355
395
  */
@@ -363,6 +403,12 @@ export namespace AgentBuildParams {
363
403
  * The provider's id for the voice
364
404
  */
365
405
  voiceId: string;
406
+
407
+ /**
408
+ * The provider's voice model, for example eleven_flash_v2_5. Its current one when
409
+ * omitted
410
+ */
411
+ model?: string | null;
366
412
  }
367
413
  }
368
414