@roarkanalytics/sdk 5.24.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 +16 -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 +90 -6
  36. package/resources/config.d.mts.map +1 -1
  37. package/resources/config.d.ts +90 -6
  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 +198 -0
  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
 
@@ -52,6 +52,7 @@ export interface Bundle {
52
52
  | Bundle.CollectorConfig
53
53
  | Bundle.MetricConfig
54
54
  | Bundle.APICheckMetricConfig
55
+ | Bundle.ThresholdMetricConfig
55
56
  | Bundle.SimulationPlanConfig
56
57
  | Bundle.QaSimulationPlanConfig
57
58
  | Bundle.SimulationGroupConfig
@@ -477,6 +478,38 @@ export namespace Bundle {
477
478
  }
478
479
  }
479
480
 
481
+ export interface ThresholdMetricConfig {
482
+ calculationType: 'THRESHOLD';
483
+
484
+ kind: 'metric';
485
+
486
+ name: string;
487
+
488
+ operator:
489
+ | 'GREATER_THAN'
490
+ | 'GREATER_THAN_OR_EQUALS'
491
+ | 'LESS_THAN'
492
+ | 'LESS_THAN_OR_EQUALS'
493
+ | 'EQUALS'
494
+ | 'NOT_EQUALS';
495
+
496
+ sourceMetric: string;
497
+
498
+ value: string | number | boolean;
499
+
500
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
501
+
502
+ countThreshold?: number;
503
+
504
+ falseLabel?: string;
505
+
506
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
507
+
508
+ sourceVariant?: string;
509
+
510
+ trueLabel?: string;
511
+ }
512
+
480
513
  export interface SimulationPlanConfig {
481
514
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
482
515
 
@@ -1363,6 +1396,7 @@ export namespace Bundle {
1363
1396
  | ProjectConfig.CollectorConfig
1364
1397
  | ProjectConfig.MetricConfig
1365
1398
  | ProjectConfig.APICheckMetricConfig
1399
+ | ProjectConfig.ThresholdMetricConfig
1366
1400
  | ProjectConfig.SimulationPlanConfig
1367
1401
  | ProjectConfig.QaSimulationPlanConfig
1368
1402
  | ProjectConfig.SimulationGroupConfig
@@ -1791,6 +1825,38 @@ export namespace Bundle {
1791
1825
  }
1792
1826
  }
1793
1827
 
1828
+ export interface ThresholdMetricConfig {
1829
+ calculationType: 'THRESHOLD';
1830
+
1831
+ kind: 'metric';
1832
+
1833
+ name: string;
1834
+
1835
+ operator:
1836
+ | 'GREATER_THAN'
1837
+ | 'GREATER_THAN_OR_EQUALS'
1838
+ | 'LESS_THAN'
1839
+ | 'LESS_THAN_OR_EQUALS'
1840
+ | 'EQUALS'
1841
+ | 'NOT_EQUALS';
1842
+
1843
+ sourceMetric: string;
1844
+
1845
+ value: string | number | boolean;
1846
+
1847
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
1848
+
1849
+ countThreshold?: number;
1850
+
1851
+ falseLabel?: string;
1852
+
1853
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
1854
+
1855
+ sourceVariant?: string;
1856
+
1857
+ trueLabel?: string;
1858
+ }
1859
+
1794
1860
  export interface SimulationPlanConfig {
1795
1861
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
1796
1862
 
@@ -2829,6 +2895,7 @@ export interface ConfigApplyParams {
2829
2895
  | ConfigApplyParams.CollectorConfig
2830
2896
  | ConfigApplyParams.MetricConfig
2831
2897
  | ConfigApplyParams.APICheckMetricConfig
2898
+ | ConfigApplyParams.ThresholdMetricConfig
2832
2899
  | ConfigApplyParams.SimulationPlanConfig
2833
2900
  | ConfigApplyParams.QaSimulationPlanConfig
2834
2901
  | ConfigApplyParams.SimulationGroupConfig
@@ -3254,6 +3321,38 @@ export namespace ConfigApplyParams {
3254
3321
  }
3255
3322
  }
3256
3323
 
3324
+ export interface ThresholdMetricConfig {
3325
+ calculationType: 'THRESHOLD';
3326
+
3327
+ kind: 'metric';
3328
+
3329
+ name: string;
3330
+
3331
+ operator:
3332
+ | 'GREATER_THAN'
3333
+ | 'GREATER_THAN_OR_EQUALS'
3334
+ | 'LESS_THAN'
3335
+ | 'LESS_THAN_OR_EQUALS'
3336
+ | 'EQUALS'
3337
+ | 'NOT_EQUALS';
3338
+
3339
+ sourceMetric: string;
3340
+
3341
+ value: string | number | boolean;
3342
+
3343
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
3344
+
3345
+ countThreshold?: number;
3346
+
3347
+ falseLabel?: string;
3348
+
3349
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
3350
+
3351
+ sourceVariant?: string;
3352
+
3353
+ trueLabel?: string;
3354
+ }
3355
+
3257
3356
  export interface SimulationPlanConfig {
3258
3357
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
3259
3358
 
@@ -4140,6 +4239,7 @@ export namespace ConfigApplyParams {
4140
4239
  | ProjectConfig.CollectorConfig
4141
4240
  | ProjectConfig.MetricConfig
4142
4241
  | ProjectConfig.APICheckMetricConfig
4242
+ | ProjectConfig.ThresholdMetricConfig
4143
4243
  | ProjectConfig.SimulationPlanConfig
4144
4244
  | ProjectConfig.QaSimulationPlanConfig
4145
4245
  | ProjectConfig.SimulationGroupConfig
@@ -4568,6 +4668,38 @@ export namespace ConfigApplyParams {
4568
4668
  }
4569
4669
  }
4570
4670
 
4671
+ export interface ThresholdMetricConfig {
4672
+ calculationType: 'THRESHOLD';
4673
+
4674
+ kind: 'metric';
4675
+
4676
+ name: string;
4677
+
4678
+ operator:
4679
+ | 'GREATER_THAN'
4680
+ | 'GREATER_THAN_OR_EQUALS'
4681
+ | 'LESS_THAN'
4682
+ | 'LESS_THAN_OR_EQUALS'
4683
+ | 'EQUALS'
4684
+ | 'NOT_EQUALS';
4685
+
4686
+ sourceMetric: string;
4687
+
4688
+ value: string | number | boolean;
4689
+
4690
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
4691
+
4692
+ countThreshold?: number;
4693
+
4694
+ falseLabel?: string;
4695
+
4696
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
4697
+
4698
+ sourceVariant?: string;
4699
+
4700
+ trueLabel?: string;
4701
+ }
4702
+
4571
4703
  export interface SimulationPlanConfig {
4572
4704
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
4573
4705
 
@@ -5433,6 +5565,7 @@ export interface ConfigDiffParams {
5433
5565
  | ConfigDiffParams.CollectorConfig
5434
5566
  | ConfigDiffParams.MetricConfig
5435
5567
  | ConfigDiffParams.APICheckMetricConfig
5568
+ | ConfigDiffParams.ThresholdMetricConfig
5436
5569
  | ConfigDiffParams.SimulationPlanConfig
5437
5570
  | ConfigDiffParams.QaSimulationPlanConfig
5438
5571
  | ConfigDiffParams.SimulationGroupConfig
@@ -5858,6 +5991,38 @@ export namespace ConfigDiffParams {
5858
5991
  }
5859
5992
  }
5860
5993
 
5994
+ export interface ThresholdMetricConfig {
5995
+ calculationType: 'THRESHOLD';
5996
+
5997
+ kind: 'metric';
5998
+
5999
+ name: string;
6000
+
6001
+ operator:
6002
+ | 'GREATER_THAN'
6003
+ | 'GREATER_THAN_OR_EQUALS'
6004
+ | 'LESS_THAN'
6005
+ | 'LESS_THAN_OR_EQUALS'
6006
+ | 'EQUALS'
6007
+ | 'NOT_EQUALS';
6008
+
6009
+ sourceMetric: string;
6010
+
6011
+ value: string | number | boolean;
6012
+
6013
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
6014
+
6015
+ countThreshold?: number;
6016
+
6017
+ falseLabel?: string;
6018
+
6019
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
6020
+
6021
+ sourceVariant?: string;
6022
+
6023
+ trueLabel?: string;
6024
+ }
6025
+
5861
6026
  export interface SimulationPlanConfig {
5862
6027
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
5863
6028
 
@@ -6744,6 +6909,7 @@ export namespace ConfigDiffParams {
6744
6909
  | ProjectConfig.CollectorConfig
6745
6910
  | ProjectConfig.MetricConfig
6746
6911
  | ProjectConfig.APICheckMetricConfig
6912
+ | ProjectConfig.ThresholdMetricConfig
6747
6913
  | ProjectConfig.SimulationPlanConfig
6748
6914
  | ProjectConfig.QaSimulationPlanConfig
6749
6915
  | ProjectConfig.SimulationGroupConfig
@@ -7172,6 +7338,38 @@ export namespace ConfigDiffParams {
7172
7338
  }
7173
7339
  }
7174
7340
 
7341
+ export interface ThresholdMetricConfig {
7342
+ calculationType: 'THRESHOLD';
7343
+
7344
+ kind: 'metric';
7345
+
7346
+ name: string;
7347
+
7348
+ operator:
7349
+ | 'GREATER_THAN'
7350
+ | 'GREATER_THAN_OR_EQUALS'
7351
+ | 'LESS_THAN'
7352
+ | 'LESS_THAN_OR_EQUALS'
7353
+ | 'EQUALS'
7354
+ | 'NOT_EQUALS';
7355
+
7356
+ sourceMetric: string;
7357
+
7358
+ value: string | number | boolean;
7359
+
7360
+ aggregationMode?: 'EACH' | 'COUNT' | 'AVERAGE' | 'MIN' | 'MAX' | 'MEDIAN' | 'P95' | 'P99' | 'SUM';
7361
+
7362
+ countThreshold?: number;
7363
+
7364
+ falseLabel?: string;
7365
+
7366
+ sourceParticipantRole?: 'AGENT' | 'CUSTOMER';
7367
+
7368
+ sourceVariant?: string;
7369
+
7370
+ trueLabel?: string;
7371
+ }
7372
+
7175
7373
  export interface SimulationPlanConfig {
7176
7374
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
7177
7375
 
@@ -57,10 +57,10 @@ export {
57
57
  AgentVersion,
58
58
  type AgentVersionListResponse,
59
59
  type AgentVersionGetByIDResponse,
60
- type AgentVersionRestoreResponse,
60
+ type AgentVersionRollbackResponse,
61
61
  type AgentVersionListParams,
62
62
  type AgentVersionGetByIDParams,
63
- type AgentVersionRestoreParams,
63
+ type AgentVersionRollbackParams,
64
64
  } from './agent-version';
65
65
  export {
66
66
  Analytics,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.24.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.24.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.24.0";
1
+ export declare const VERSION = "6.0.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
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.24.0'; // x-release-please-version
4
+ exports.VERSION = '6.0.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.24.0'; // x-release-please-version
1
+ export const VERSION = '6.0.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}