@roarkanalytics/sdk 5.18.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/CHANGELOG.md +12 -0
- package/lib/config.d.mts +2 -0
- package/lib/config.d.mts.map +1 -1
- package/lib/config.d.ts +2 -0
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +7 -1
- package/lib/config.js.map +1 -1
- package/lib/config.mjs +5 -0
- package/lib/config.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/config.d.mts +126 -6
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +126 -6
- package/resources/config.d.ts.map +1 -1
- package/src/lib/config.ts +9 -0
- package/src/resources/config.ts +186 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/config.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export declare class Config extends APIResource {
|
|
|
34
34
|
diff(body: ConfigDiffParams, options?: RequestOptions): APIPromise<ConfigDiffResponse>;
|
|
35
35
|
}
|
|
36
36
|
export interface Bundle {
|
|
37
|
-
resources: Array<Bundle.AgentConfig | Bundle.HTTPRequestDefinitionConfig | Bundle.PersonaConfig | Bundle.ImprovFlowConfig | Bundle.ScriptedFlowConfig | Bundle.CollectorConfig | Bundle.MetricConfig | Bundle.SimulationPlanConfig | Bundle.QaSimulationPlanConfig | Bundle.SimulationGroupConfig | Bundle.AlertConfig | Bundle.ToolConfig | Bundle.DashboardConfig | Bundle.ProjectConfig>;
|
|
37
|
+
resources: Array<Bundle.AgentConfig | Bundle.HTTPRequestDefinitionConfig | Bundle.PersonaConfig | Bundle.ImprovFlowConfig | Bundle.ScriptedFlowConfig | Bundle.CollectorConfig | Bundle.MetricConfig | Bundle.APICheckMetricConfig | Bundle.SimulationPlanConfig | Bundle.QaSimulationPlanConfig | Bundle.SimulationGroupConfig | Bundle.AlertConfig | Bundle.ToolConfig | Bundle.DashboardConfig | Bundle.ProjectConfig>;
|
|
38
38
|
prune?: boolean;
|
|
39
39
|
}
|
|
40
40
|
export declare namespace Bundle {
|
|
@@ -183,6 +183,7 @@ export declare namespace Bundle {
|
|
|
183
183
|
name: string;
|
|
184
184
|
prompt: string;
|
|
185
185
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
186
|
+
calculationType?: 'LLM_JUDGE';
|
|
186
187
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
187
188
|
displayName?: string;
|
|
188
189
|
falseLabel?: string;
|
|
@@ -210,6 +211,25 @@ export declare namespace Bundle {
|
|
|
210
211
|
description?: string;
|
|
211
212
|
}
|
|
212
213
|
}
|
|
214
|
+
interface APICheckMetricConfig {
|
|
215
|
+
calculationType: 'HTTP_REQUEST';
|
|
216
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
217
|
+
kind: 'metric';
|
|
218
|
+
name: string;
|
|
219
|
+
displayName?: string;
|
|
220
|
+
falseLabel?: string;
|
|
221
|
+
trueLabel?: string;
|
|
222
|
+
}
|
|
223
|
+
namespace APICheckMetricConfig {
|
|
224
|
+
interface HTTPRequest {
|
|
225
|
+
url: string;
|
|
226
|
+
body?: string;
|
|
227
|
+
headers?: {
|
|
228
|
+
[key: string]: string;
|
|
229
|
+
};
|
|
230
|
+
method?: 'GET' | 'POST';
|
|
231
|
+
}
|
|
232
|
+
}
|
|
213
233
|
interface SimulationPlanConfig {
|
|
214
234
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
215
235
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
@@ -636,7 +656,7 @@ export declare namespace Bundle {
|
|
|
636
656
|
description?: string;
|
|
637
657
|
displayName?: string;
|
|
638
658
|
members?: Array<ProjectConfig.Member>;
|
|
639
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
659
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
640
660
|
}
|
|
641
661
|
namespace ProjectConfig {
|
|
642
662
|
interface Member {
|
|
@@ -788,6 +808,7 @@ export declare namespace Bundle {
|
|
|
788
808
|
name: string;
|
|
789
809
|
prompt: string;
|
|
790
810
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
811
|
+
calculationType?: 'LLM_JUDGE';
|
|
791
812
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
792
813
|
displayName?: string;
|
|
793
814
|
falseLabel?: string;
|
|
@@ -815,6 +836,25 @@ export declare namespace Bundle {
|
|
|
815
836
|
description?: string;
|
|
816
837
|
}
|
|
817
838
|
}
|
|
839
|
+
interface APICheckMetricConfig {
|
|
840
|
+
calculationType: 'HTTP_REQUEST';
|
|
841
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
842
|
+
kind: 'metric';
|
|
843
|
+
name: string;
|
|
844
|
+
displayName?: string;
|
|
845
|
+
falseLabel?: string;
|
|
846
|
+
trueLabel?: string;
|
|
847
|
+
}
|
|
848
|
+
namespace APICheckMetricConfig {
|
|
849
|
+
interface HTTPRequest {
|
|
850
|
+
url: string;
|
|
851
|
+
body?: string;
|
|
852
|
+
headers?: {
|
|
853
|
+
[key: string]: string;
|
|
854
|
+
};
|
|
855
|
+
method?: 'GET' | 'POST';
|
|
856
|
+
}
|
|
857
|
+
}
|
|
818
858
|
interface SimulationPlanConfig {
|
|
819
859
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
820
860
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
@@ -1322,7 +1362,7 @@ export declare namespace ConfigDiffResponse {
|
|
|
1322
1362
|
}
|
|
1323
1363
|
}
|
|
1324
1364
|
export interface ConfigApplyParams {
|
|
1325
|
-
resources: Array<ConfigApplyParams.AgentConfig | ConfigApplyParams.HTTPRequestDefinitionConfig | ConfigApplyParams.PersonaConfig | ConfigApplyParams.ImprovFlowConfig | ConfigApplyParams.ScriptedFlowConfig | ConfigApplyParams.CollectorConfig | ConfigApplyParams.MetricConfig | ConfigApplyParams.SimulationPlanConfig | ConfigApplyParams.QaSimulationPlanConfig | ConfigApplyParams.SimulationGroupConfig | ConfigApplyParams.AlertConfig | ConfigApplyParams.ToolConfig | ConfigApplyParams.DashboardConfig | ConfigApplyParams.ProjectConfig>;
|
|
1365
|
+
resources: Array<ConfigApplyParams.AgentConfig | ConfigApplyParams.HTTPRequestDefinitionConfig | ConfigApplyParams.PersonaConfig | ConfigApplyParams.ImprovFlowConfig | ConfigApplyParams.ScriptedFlowConfig | ConfigApplyParams.CollectorConfig | ConfigApplyParams.MetricConfig | ConfigApplyParams.APICheckMetricConfig | ConfigApplyParams.SimulationPlanConfig | ConfigApplyParams.QaSimulationPlanConfig | ConfigApplyParams.SimulationGroupConfig | ConfigApplyParams.AlertConfig | ConfigApplyParams.ToolConfig | ConfigApplyParams.DashboardConfig | ConfigApplyParams.ProjectConfig>;
|
|
1326
1366
|
prune?: boolean;
|
|
1327
1367
|
}
|
|
1328
1368
|
export declare namespace ConfigApplyParams {
|
|
@@ -1471,6 +1511,7 @@ export declare namespace ConfigApplyParams {
|
|
|
1471
1511
|
name: string;
|
|
1472
1512
|
prompt: string;
|
|
1473
1513
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
1514
|
+
calculationType?: 'LLM_JUDGE';
|
|
1474
1515
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
1475
1516
|
displayName?: string;
|
|
1476
1517
|
falseLabel?: string;
|
|
@@ -1498,6 +1539,25 @@ export declare namespace ConfigApplyParams {
|
|
|
1498
1539
|
description?: string;
|
|
1499
1540
|
}
|
|
1500
1541
|
}
|
|
1542
|
+
interface APICheckMetricConfig {
|
|
1543
|
+
calculationType: 'HTTP_REQUEST';
|
|
1544
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
1545
|
+
kind: 'metric';
|
|
1546
|
+
name: string;
|
|
1547
|
+
displayName?: string;
|
|
1548
|
+
falseLabel?: string;
|
|
1549
|
+
trueLabel?: string;
|
|
1550
|
+
}
|
|
1551
|
+
namespace APICheckMetricConfig {
|
|
1552
|
+
interface HTTPRequest {
|
|
1553
|
+
url: string;
|
|
1554
|
+
body?: string;
|
|
1555
|
+
headers?: {
|
|
1556
|
+
[key: string]: string;
|
|
1557
|
+
};
|
|
1558
|
+
method?: 'GET' | 'POST';
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1501
1561
|
interface SimulationPlanConfig {
|
|
1502
1562
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
1503
1563
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
@@ -1924,7 +1984,7 @@ export declare namespace ConfigApplyParams {
|
|
|
1924
1984
|
description?: string;
|
|
1925
1985
|
displayName?: string;
|
|
1926
1986
|
members?: Array<ProjectConfig.Member>;
|
|
1927
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
1987
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
1928
1988
|
}
|
|
1929
1989
|
namespace ProjectConfig {
|
|
1930
1990
|
interface Member {
|
|
@@ -2076,6 +2136,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2076
2136
|
name: string;
|
|
2077
2137
|
prompt: string;
|
|
2078
2138
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
2139
|
+
calculationType?: 'LLM_JUDGE';
|
|
2079
2140
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
2080
2141
|
displayName?: string;
|
|
2081
2142
|
falseLabel?: string;
|
|
@@ -2103,6 +2164,25 @@ export declare namespace ConfigApplyParams {
|
|
|
2103
2164
|
description?: string;
|
|
2104
2165
|
}
|
|
2105
2166
|
}
|
|
2167
|
+
interface APICheckMetricConfig {
|
|
2168
|
+
calculationType: 'HTTP_REQUEST';
|
|
2169
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
2170
|
+
kind: 'metric';
|
|
2171
|
+
name: string;
|
|
2172
|
+
displayName?: string;
|
|
2173
|
+
falseLabel?: string;
|
|
2174
|
+
trueLabel?: string;
|
|
2175
|
+
}
|
|
2176
|
+
namespace APICheckMetricConfig {
|
|
2177
|
+
interface HTTPRequest {
|
|
2178
|
+
url: string;
|
|
2179
|
+
body?: string;
|
|
2180
|
+
headers?: {
|
|
2181
|
+
[key: string]: string;
|
|
2182
|
+
};
|
|
2183
|
+
method?: 'GET' | 'POST';
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2106
2186
|
interface SimulationPlanConfig {
|
|
2107
2187
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
2108
2188
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
@@ -2524,7 +2604,7 @@ export declare namespace ConfigApplyParams {
|
|
|
2524
2604
|
}
|
|
2525
2605
|
}
|
|
2526
2606
|
export interface ConfigDiffParams {
|
|
2527
|
-
resources: Array<ConfigDiffParams.AgentConfig | ConfigDiffParams.HTTPRequestDefinitionConfig | ConfigDiffParams.PersonaConfig | ConfigDiffParams.ImprovFlowConfig | ConfigDiffParams.ScriptedFlowConfig | ConfigDiffParams.CollectorConfig | ConfigDiffParams.MetricConfig | ConfigDiffParams.SimulationPlanConfig | ConfigDiffParams.QaSimulationPlanConfig | ConfigDiffParams.SimulationGroupConfig | ConfigDiffParams.AlertConfig | ConfigDiffParams.ToolConfig | ConfigDiffParams.DashboardConfig | ConfigDiffParams.ProjectConfig>;
|
|
2607
|
+
resources: Array<ConfigDiffParams.AgentConfig | ConfigDiffParams.HTTPRequestDefinitionConfig | ConfigDiffParams.PersonaConfig | ConfigDiffParams.ImprovFlowConfig | ConfigDiffParams.ScriptedFlowConfig | ConfigDiffParams.CollectorConfig | ConfigDiffParams.MetricConfig | ConfigDiffParams.APICheckMetricConfig | ConfigDiffParams.SimulationPlanConfig | ConfigDiffParams.QaSimulationPlanConfig | ConfigDiffParams.SimulationGroupConfig | ConfigDiffParams.AlertConfig | ConfigDiffParams.ToolConfig | ConfigDiffParams.DashboardConfig | ConfigDiffParams.ProjectConfig>;
|
|
2528
2608
|
prune?: boolean;
|
|
2529
2609
|
}
|
|
2530
2610
|
export declare namespace ConfigDiffParams {
|
|
@@ -2673,6 +2753,7 @@ export declare namespace ConfigDiffParams {
|
|
|
2673
2753
|
name: string;
|
|
2674
2754
|
prompt: string;
|
|
2675
2755
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
2756
|
+
calculationType?: 'LLM_JUDGE';
|
|
2676
2757
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
2677
2758
|
displayName?: string;
|
|
2678
2759
|
falseLabel?: string;
|
|
@@ -2700,6 +2781,25 @@ export declare namespace ConfigDiffParams {
|
|
|
2700
2781
|
description?: string;
|
|
2701
2782
|
}
|
|
2702
2783
|
}
|
|
2784
|
+
interface APICheckMetricConfig {
|
|
2785
|
+
calculationType: 'HTTP_REQUEST';
|
|
2786
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
2787
|
+
kind: 'metric';
|
|
2788
|
+
name: string;
|
|
2789
|
+
displayName?: string;
|
|
2790
|
+
falseLabel?: string;
|
|
2791
|
+
trueLabel?: string;
|
|
2792
|
+
}
|
|
2793
|
+
namespace APICheckMetricConfig {
|
|
2794
|
+
interface HTTPRequest {
|
|
2795
|
+
url: string;
|
|
2796
|
+
body?: string;
|
|
2797
|
+
headers?: {
|
|
2798
|
+
[key: string]: string;
|
|
2799
|
+
};
|
|
2800
|
+
method?: 'GET' | 'POST';
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2703
2803
|
interface SimulationPlanConfig {
|
|
2704
2804
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
2705
2805
|
direction: 'INBOUND' | 'OUTBOUND';
|
|
@@ -3126,7 +3226,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3126
3226
|
description?: string;
|
|
3127
3227
|
displayName?: string;
|
|
3128
3228
|
members?: Array<ProjectConfig.Member>;
|
|
3129
|
-
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
3229
|
+
resources?: Array<ProjectConfig.AgentConfig | ProjectConfig.HTTPRequestDefinitionConfig | ProjectConfig.PersonaConfig | ProjectConfig.ImprovFlowConfig | ProjectConfig.ScriptedFlowConfig | ProjectConfig.CollectorConfig | ProjectConfig.MetricConfig | ProjectConfig.APICheckMetricConfig | ProjectConfig.SimulationPlanConfig | ProjectConfig.QaSimulationPlanConfig | ProjectConfig.SimulationGroupConfig | ProjectConfig.AlertConfig | ProjectConfig.ToolConfig | ProjectConfig.DashboardConfig>;
|
|
3130
3230
|
}
|
|
3131
3231
|
namespace ProjectConfig {
|
|
3132
3232
|
interface Member {
|
|
@@ -3278,6 +3378,7 @@ export declare namespace ConfigDiffParams {
|
|
|
3278
3378
|
name: string;
|
|
3279
3379
|
prompt: string;
|
|
3280
3380
|
type: 'BOOLEAN' | 'SCALE' | 'NUMERIC' | 'TEXT' | 'CLASSIFICATION';
|
|
3381
|
+
calculationType?: 'LLM_JUDGE';
|
|
3281
3382
|
contexts?: Array<'CALL' | 'SEGMENT' | 'TURN'>;
|
|
3282
3383
|
displayName?: string;
|
|
3283
3384
|
falseLabel?: string;
|
|
@@ -3305,6 +3406,25 @@ export declare namespace ConfigDiffParams {
|
|
|
3305
3406
|
description?: string;
|
|
3306
3407
|
}
|
|
3307
3408
|
}
|
|
3409
|
+
interface APICheckMetricConfig {
|
|
3410
|
+
calculationType: 'HTTP_REQUEST';
|
|
3411
|
+
httpRequest: APICheckMetricConfig.HTTPRequest;
|
|
3412
|
+
kind: 'metric';
|
|
3413
|
+
name: string;
|
|
3414
|
+
displayName?: string;
|
|
3415
|
+
falseLabel?: string;
|
|
3416
|
+
trueLabel?: string;
|
|
3417
|
+
}
|
|
3418
|
+
namespace APICheckMetricConfig {
|
|
3419
|
+
interface HTTPRequest {
|
|
3420
|
+
url: string;
|
|
3421
|
+
body?: string;
|
|
3422
|
+
headers?: {
|
|
3423
|
+
[key: string]: string;
|
|
3424
|
+
};
|
|
3425
|
+
method?: 'GET' | 'POST';
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3308
3428
|
interface SimulationPlanConfig {
|
|
3309
3429
|
agentEndpoints: Array<SimulationPlanConfig.AgentEndpoint>;
|
|
3310
3430
|
direction: 'INBOUND' | 'OUTBOUND';
|