@roarkanalytics/sdk 5.21.0 → 5.23.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 (53) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent-draft.d.mts +1311 -0
  12. package/resources/agent-draft.d.mts.map +1 -0
  13. package/resources/agent-draft.d.ts +1311 -0
  14. package/resources/agent-draft.d.ts.map +1 -0
  15. package/resources/agent-draft.js +83 -0
  16. package/resources/agent-draft.js.map +1 -0
  17. package/resources/agent-draft.mjs +79 -0
  18. package/resources/agent-draft.mjs.map +1 -0
  19. package/resources/agent-version.d.mts +767 -0
  20. package/resources/agent-version.d.mts.map +1 -0
  21. package/resources/agent-version.d.ts +767 -0
  22. package/resources/agent-version.d.ts.map +1 -0
  23. package/resources/agent-version.js +59 -0
  24. package/resources/agent-version.js.map +1 -0
  25. package/resources/agent-version.mjs +55 -0
  26. package/resources/agent-version.mjs.map +1 -0
  27. package/resources/agent.d.mts +2 -3
  28. package/resources/agent.d.mts.map +1 -1
  29. package/resources/agent.d.ts +2 -3
  30. package/resources/agent.d.ts.map +1 -1
  31. package/resources/call.d.mts +12 -0
  32. package/resources/call.d.mts.map +1 -1
  33. package/resources/call.d.ts +12 -0
  34. package/resources/call.d.ts.map +1 -1
  35. package/resources/index.d.mts +2 -0
  36. package/resources/index.d.mts.map +1 -1
  37. package/resources/index.d.ts +2 -0
  38. package/resources/index.d.ts.map +1 -1
  39. package/resources/index.js +5 -1
  40. package/resources/index.js.map +1 -1
  41. package/resources/index.mjs +2 -0
  42. package/resources/index.mjs.map +1 -1
  43. package/src/client.ts +46 -0
  44. package/src/resources/agent-draft.ts +1846 -0
  45. package/src/resources/agent-version.ts +1065 -0
  46. package/src/resources/agent.ts +2 -3
  47. package/src/resources/call.ts +15 -0
  48. package/src/resources/index.ts +20 -0
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -355,10 +355,9 @@ export namespace AgentBuildParams {
355
355
  */
356
356
  export interface Tts {
357
357
  /**
358
- * Text-to-speech provider, for example ELEVENLABS. Not checked against a known
359
- * list.
358
+ * Text-to-speech provider, for example ELEVENLABS
360
359
  */
361
- provider: string;
360
+ provider: 'CARTESIA' | 'ELEVENLABS' | 'OPENAI' | 'RIME';
362
361
 
363
362
  /**
364
363
  * The provider's id for the voice
@@ -278,6 +278,11 @@ export namespace CallCreateResponse {
278
278
  export interface Agent {
279
279
  id: string;
280
280
 
281
+ /**
282
+ * For an agent hosted on Roark, the version of it that handled the call
283
+ */
284
+ agentVersionId?: string | null;
285
+
281
286
  endpoint?: Agent.Endpoint | null;
282
287
  }
283
288
 
@@ -445,6 +450,11 @@ export namespace CallListResponse {
445
450
  export interface Agent {
446
451
  id: string;
447
452
 
453
+ /**
454
+ * For an agent hosted on Roark, the version of it that handled the call
455
+ */
456
+ agentVersionId?: string | null;
457
+
448
458
  endpoint?: Agent.Endpoint | null;
449
459
  }
450
460
 
@@ -781,6 +791,11 @@ export namespace CallGetByIDResponse {
781
791
  export interface Agent {
782
792
  id: string;
783
793
 
794
+ /**
795
+ * For an agent hosted on Roark, the version of it that handled the call
796
+ */
797
+ agentVersionId?: string | null;
798
+
784
799
  endpoint?: Agent.Endpoint | null;
785
800
  }
786
801
 
@@ -24,6 +24,17 @@ export {
24
24
  type AgentConfigUpdateParams,
25
25
  type AgentConfigResolveParams,
26
26
  } from './agent-config';
27
+ export {
28
+ AgentDraft,
29
+ type AgentDraftCreateResponse,
30
+ type AgentDraftUpdateResponse,
31
+ type AgentDraftDeleteResponse,
32
+ type AgentDraftGetResponse,
33
+ type AgentDraftPublishResponse,
34
+ type AgentDraftCreateParams,
35
+ type AgentDraftUpdateParams,
36
+ type AgentDraftPublishParams,
37
+ } from './agent-draft';
27
38
  export {
28
39
  AgentEndpoint,
29
40
  type AgentEndpointCreateResponse,
@@ -42,6 +53,15 @@ export {
42
53
  type AgentPromptUpdateParams,
43
54
  type AgentPromptListVersionsParams,
44
55
  } from './agent-prompt';
56
+ export {
57
+ AgentVersion,
58
+ type AgentVersionListResponse,
59
+ type AgentVersionGetByIDResponse,
60
+ type AgentVersionRestoreResponse,
61
+ type AgentVersionListParams,
62
+ type AgentVersionGetByIDParams,
63
+ type AgentVersionRestoreParams,
64
+ } from './agent-version';
45
65
  export {
46
66
  Analytics,
47
67
  type AnalyticsGetSchemaResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.21.0'; // x-release-please-version
1
+ export const VERSION = '5.23.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.21.0";
1
+ export declare const VERSION = "5.23.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.21.0";
1
+ export declare const VERSION = "5.23.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.21.0'; // x-release-please-version
4
+ exports.VERSION = '5.23.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.21.0'; // x-release-please-version
1
+ export const VERSION = '5.23.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map