@roarkanalytics/sdk 5.17.0 → 5.19.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.
package/src/lib/config.ts CHANGED
@@ -31,6 +31,7 @@ export type ImprovFlowConfig = ConfigApplyParams.ImprovFlowConfig;
31
31
  export type ScriptedFlowConfig = ConfigApplyParams.ScriptedFlowConfig;
32
32
  export type CollectorConfig = ConfigApplyParams.CollectorConfig;
33
33
  export type MetricConfig = ConfigApplyParams.MetricConfig;
34
+ export type APICheckMetricConfig = ConfigApplyParams.APICheckMetricConfig;
34
35
  export type SimulationPlanConfig = ConfigApplyParams.SimulationPlanConfig;
35
36
  export type QaSimulationPlanConfig = ConfigApplyParams.QaSimulationPlanConfig;
36
37
  export type SimulationGroupConfig = ConfigApplyParams.SimulationGroupConfig;
@@ -79,6 +80,14 @@ export const defineMetric = (metric: Omit<MetricConfig, 'kind'>): MetricConfig =
79
80
  ...metric,
80
81
  });
81
82
 
83
+ export const defineApiCheck = (
84
+ check: Omit<APICheckMetricConfig, 'kind' | 'calculationType'>,
85
+ ): APICheckMetricConfig => ({
86
+ kind: 'metric',
87
+ calculationType: 'HTTP_REQUEST',
88
+ ...check,
89
+ });
90
+
82
91
  export const defineSimulationPlan = (plan: Omit<SimulationPlanConfig, 'kind'>): SimulationPlanConfig => ({
83
92
  kind: 'simulationPlan',
84
93
  ...plan,
@@ -338,11 +338,35 @@ export interface AgentBuildParams {
338
338
  name: string;
339
339
 
340
340
  /**
341
- * Optional voice label for the hosted agent
341
+ * Optional provider voice the hosted agent speaks with
342
+ */
343
+ tts?: AgentBuildParams.Tts | null;
344
+
345
+ /**
346
+ * Optional display name of the agent's voice. The authored prompt matches its
347
+ * delivery to it.
342
348
  */
343
349
  voice?: string | null;
344
350
  }
345
351
 
352
+ export namespace AgentBuildParams {
353
+ /**
354
+ * Optional provider voice the hosted agent speaks with
355
+ */
356
+ export interface Tts {
357
+ /**
358
+ * Text-to-speech provider, for example ELEVENLABS. Not checked against a known
359
+ * list.
360
+ */
361
+ provider: string;
362
+
363
+ /**
364
+ * The provider's id for the voice
365
+ */
366
+ voiceId: string;
367
+ }
368
+ }
369
+
346
370
  export declare namespace Agent {
347
371
  export {
348
372
  type AgentCreateResponse as AgentCreateResponse,
@@ -51,6 +51,7 @@ export interface Bundle {
51
51
  | Bundle.ScriptedFlowConfig
52
52
  | Bundle.CollectorConfig
53
53
  | Bundle.MetricConfig
54
+ | Bundle.APICheckMetricConfig
54
55
  | Bundle.SimulationPlanConfig
55
56
  | Bundle.QaSimulationPlanConfig
56
57
  | Bundle.SimulationGroupConfig
@@ -399,6 +400,8 @@ export namespace Bundle {
399
400
 
400
401
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
401
402
 
403
+ calculationType?: 'LLM_JUDGE';
404
+
402
405
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
403
406
 
404
407
  displayName?: string;
@@ -446,6 +449,34 @@ export namespace Bundle {
446
449
  }
447
450
  }
448
451
 
452
+ export interface APICheckMetricConfig {
453
+ calculationType: 'HTTP_REQUEST';
454
+
455
+ httpRequest: APICheckMetricConfig.HTTPRequest;
456
+
457
+ kind: 'metric';
458
+
459
+ name: string;
460
+
461
+ displayName?: string;
462
+
463
+ falseLabel?: string;
464
+
465
+ trueLabel?: string;
466
+ }
467
+
468
+ export namespace APICheckMetricConfig {
469
+ export interface HTTPRequest {
470
+ url: string;
471
+
472
+ body?: string;
473
+
474
+ headers?: { [key: string]: string };
475
+
476
+ method?: 'GET' | 'POST';
477
+ }
478
+ }
479
+
449
480
  export interface SimulationPlanConfig {
450
481
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
451
482
 
@@ -1303,6 +1334,7 @@ export namespace Bundle {
1303
1334
  | ProjectConfig.ScriptedFlowConfig
1304
1335
  | ProjectConfig.CollectorConfig
1305
1336
  | ProjectConfig.MetricConfig
1337
+ | ProjectConfig.APICheckMetricConfig
1306
1338
  | ProjectConfig.SimulationPlanConfig
1307
1339
  | ProjectConfig.QaSimulationPlanConfig
1308
1340
  | ProjectConfig.SimulationGroupConfig
@@ -1654,6 +1686,8 @@ export namespace Bundle {
1654
1686
 
1655
1687
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
1656
1688
 
1689
+ calculationType?: 'LLM_JUDGE';
1690
+
1657
1691
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
1658
1692
 
1659
1693
  displayName?: string;
@@ -1701,6 +1735,34 @@ export namespace Bundle {
1701
1735
  }
1702
1736
  }
1703
1737
 
1738
+ export interface APICheckMetricConfig {
1739
+ calculationType: 'HTTP_REQUEST';
1740
+
1741
+ httpRequest: APICheckMetricConfig.HTTPRequest;
1742
+
1743
+ kind: 'metric';
1744
+
1745
+ name: string;
1746
+
1747
+ displayName?: string;
1748
+
1749
+ falseLabel?: string;
1750
+
1751
+ trueLabel?: string;
1752
+ }
1753
+
1754
+ export namespace APICheckMetricConfig {
1755
+ export interface HTTPRequest {
1756
+ url: string;
1757
+
1758
+ body?: string;
1759
+
1760
+ headers?: { [key: string]: string };
1761
+
1762
+ method?: 'GET' | 'POST';
1763
+ }
1764
+ }
1765
+
1704
1766
  export interface SimulationPlanConfig {
1705
1767
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
1706
1768
 
@@ -2710,6 +2772,7 @@ export interface ConfigApplyParams {
2710
2772
  | ConfigApplyParams.ScriptedFlowConfig
2711
2773
  | ConfigApplyParams.CollectorConfig
2712
2774
  | ConfigApplyParams.MetricConfig
2775
+ | ConfigApplyParams.APICheckMetricConfig
2713
2776
  | ConfigApplyParams.SimulationPlanConfig
2714
2777
  | ConfigApplyParams.QaSimulationPlanConfig
2715
2778
  | ConfigApplyParams.SimulationGroupConfig
@@ -3058,6 +3121,8 @@ export namespace ConfigApplyParams {
3058
3121
 
3059
3122
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
3060
3123
 
3124
+ calculationType?: 'LLM_JUDGE';
3125
+
3061
3126
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
3062
3127
 
3063
3128
  displayName?: string;
@@ -3105,6 +3170,34 @@ export namespace ConfigApplyParams {
3105
3170
  }
3106
3171
  }
3107
3172
 
3173
+ export interface APICheckMetricConfig {
3174
+ calculationType: 'HTTP_REQUEST';
3175
+
3176
+ httpRequest: APICheckMetricConfig.HTTPRequest;
3177
+
3178
+ kind: 'metric';
3179
+
3180
+ name: string;
3181
+
3182
+ displayName?: string;
3183
+
3184
+ falseLabel?: string;
3185
+
3186
+ trueLabel?: string;
3187
+ }
3188
+
3189
+ export namespace APICheckMetricConfig {
3190
+ export interface HTTPRequest {
3191
+ url: string;
3192
+
3193
+ body?: string;
3194
+
3195
+ headers?: { [key: string]: string };
3196
+
3197
+ method?: 'GET' | 'POST';
3198
+ }
3199
+ }
3200
+
3108
3201
  export interface SimulationPlanConfig {
3109
3202
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
3110
3203
 
@@ -3962,6 +4055,7 @@ export namespace ConfigApplyParams {
3962
4055
  | ProjectConfig.ScriptedFlowConfig
3963
4056
  | ProjectConfig.CollectorConfig
3964
4057
  | ProjectConfig.MetricConfig
4058
+ | ProjectConfig.APICheckMetricConfig
3965
4059
  | ProjectConfig.SimulationPlanConfig
3966
4060
  | ProjectConfig.QaSimulationPlanConfig
3967
4061
  | ProjectConfig.SimulationGroupConfig
@@ -4313,6 +4407,8 @@ export namespace ConfigApplyParams {
4313
4407
 
4314
4408
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
4315
4409
 
4410
+ calculationType?: 'LLM_JUDGE';
4411
+
4316
4412
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
4317
4413
 
4318
4414
  displayName?: string;
@@ -4360,6 +4456,34 @@ export namespace ConfigApplyParams {
4360
4456
  }
4361
4457
  }
4362
4458
 
4459
+ export interface APICheckMetricConfig {
4460
+ calculationType: 'HTTP_REQUEST';
4461
+
4462
+ httpRequest: APICheckMetricConfig.HTTPRequest;
4463
+
4464
+ kind: 'metric';
4465
+
4466
+ name: string;
4467
+
4468
+ displayName?: string;
4469
+
4470
+ falseLabel?: string;
4471
+
4472
+ trueLabel?: string;
4473
+ }
4474
+
4475
+ export namespace APICheckMetricConfig {
4476
+ export interface HTTPRequest {
4477
+ url: string;
4478
+
4479
+ body?: string;
4480
+
4481
+ headers?: { [key: string]: string };
4482
+
4483
+ method?: 'GET' | 'POST';
4484
+ }
4485
+ }
4486
+
4363
4487
  export interface SimulationPlanConfig {
4364
4488
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
4365
4489
 
@@ -5196,6 +5320,7 @@ export interface ConfigDiffParams {
5196
5320
  | ConfigDiffParams.ScriptedFlowConfig
5197
5321
  | ConfigDiffParams.CollectorConfig
5198
5322
  | ConfigDiffParams.MetricConfig
5323
+ | ConfigDiffParams.APICheckMetricConfig
5199
5324
  | ConfigDiffParams.SimulationPlanConfig
5200
5325
  | ConfigDiffParams.QaSimulationPlanConfig
5201
5326
  | ConfigDiffParams.SimulationGroupConfig
@@ -5544,6 +5669,8 @@ export namespace ConfigDiffParams {
5544
5669
 
5545
5670
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
5546
5671
 
5672
+ calculationType?: 'LLM_JUDGE';
5673
+
5547
5674
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
5548
5675
 
5549
5676
  displayName?: string;
@@ -5591,6 +5718,34 @@ export namespace ConfigDiffParams {
5591
5718
  }
5592
5719
  }
5593
5720
 
5721
+ export interface APICheckMetricConfig {
5722
+ calculationType: 'HTTP_REQUEST';
5723
+
5724
+ httpRequest: APICheckMetricConfig.HTTPRequest;
5725
+
5726
+ kind: 'metric';
5727
+
5728
+ name: string;
5729
+
5730
+ displayName?: string;
5731
+
5732
+ falseLabel?: string;
5733
+
5734
+ trueLabel?: string;
5735
+ }
5736
+
5737
+ export namespace APICheckMetricConfig {
5738
+ export interface HTTPRequest {
5739
+ url: string;
5740
+
5741
+ body?: string;
5742
+
5743
+ headers?: { [key: string]: string };
5744
+
5745
+ method?: 'GET' | 'POST';
5746
+ }
5747
+ }
5748
+
5594
5749
  export interface SimulationPlanConfig {
5595
5750
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
5596
5751
 
@@ -6448,6 +6603,7 @@ export namespace ConfigDiffParams {
6448
6603
  | ProjectConfig.ScriptedFlowConfig
6449
6604
  | ProjectConfig.CollectorConfig
6450
6605
  | ProjectConfig.MetricConfig
6606
+ | ProjectConfig.APICheckMetricConfig
6451
6607
  | ProjectConfig.SimulationPlanConfig
6452
6608
  | ProjectConfig.QaSimulationPlanConfig
6453
6609
  | ProjectConfig.SimulationGroupConfig
@@ -6799,6 +6955,8 @@ export namespace ConfigDiffParams {
6799
6955
 
6800
6956
  type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
6801
6957
 
6958
+ calculationType?: 'LLM_JUDGE';
6959
+
6802
6960
  contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
6803
6961
 
6804
6962
  displayName?: string;
@@ -6846,6 +7004,34 @@ export namespace ConfigDiffParams {
6846
7004
  }
6847
7005
  }
6848
7006
 
7007
+ export interface APICheckMetricConfig {
7008
+ calculationType: 'HTTP_REQUEST';
7009
+
7010
+ httpRequest: APICheckMetricConfig.HTTPRequest;
7011
+
7012
+ kind: 'metric';
7013
+
7014
+ name: string;
7015
+
7016
+ displayName?: string;
7017
+
7018
+ falseLabel?: string;
7019
+
7020
+ trueLabel?: string;
7021
+ }
7022
+
7023
+ export namespace APICheckMetricConfig {
7024
+ export interface HTTPRequest {
7025
+ url: string;
7026
+
7027
+ body?: string;
7028
+
7029
+ headers?: { [key: string]: string };
7030
+
7031
+ method?: 'GET' | 'POST';
7032
+ }
7033
+ }
7034
+
6849
7035
  export interface SimulationPlanConfig {
6850
7036
  agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
6851
7037
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.17.0'; // x-release-please-version
1
+ export const VERSION = '5.19.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.17.0";
1
+ export declare const VERSION = "5.19.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.17.0";
1
+ export declare const VERSION = "5.19.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.17.0'; // x-release-please-version
4
+ exports.VERSION = '5.19.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.17.0'; // x-release-please-version
1
+ export const VERSION = '5.19.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map