@roarkanalytics/sdk 9.14.0 → 9.16.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 +24 -0
- package/package.json +1 -1
- package/resources/live-report.d.mts +30 -0
- package/resources/live-report.d.mts.map +1 -1
- package/resources/live-report.d.ts +30 -0
- package/resources/live-report.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +121 -8
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +121 -8
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +12 -9
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +12 -9
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/src/resources/live-report.ts +54 -0
- package/src/resources/simulation-run-plan-job.ts +141 -8
- 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
|
@@ -162,15 +162,18 @@ export class SimulationRunPlanJob extends APIResource {
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* Grade a finished run's calls again, without placing new calls: the same calls
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
165
|
+
* Grade a finished run's calls again, without placing new calls: the same calls,
|
|
166
|
+
* graded on the run plan's metrics as they are now. Metrics on the plan grade
|
|
167
|
+
* every call of the run, metrics attached to a flow grade that flow's calls, each
|
|
168
|
+
* at its current version, and Agent Expectations grades against the flows' current
|
|
169
|
+
* expectations. Use it after changing a plan's metrics, a metric, or a flow's
|
|
170
|
+
* expectations, to see how the run you already have scores against them.
|
|
169
171
|
*
|
|
170
|
-
* The
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
172
|
+
* The metrics graded are listed in `metrics` and become the run's metric set: the
|
|
173
|
+
* run's results, checks and report read them from then on. The new values replace
|
|
174
|
+
* the run's current ones; earlier values stay in each metric value's history. The
|
|
175
|
+
* grading is billed like any metric collection. A run is re-scored one at a time:
|
|
176
|
+
* while one re-score runs, another is refused with 409.
|
|
174
177
|
*
|
|
175
178
|
* Returns immediately. Poll GET /v1/simulation/plan/job/{jobId}/rescore until
|
|
176
179
|
* `status` is COMPLETED or FAILED, then read the new values from GET
|
|
@@ -432,6 +435,19 @@ export namespace SimulationRunPlanJobCreateDebriefResponse {
|
|
|
432
435
|
body: string;
|
|
433
436
|
|
|
434
437
|
heading: string | null;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
441
|
+
* generated before references were recorded.
|
|
442
|
+
*/
|
|
443
|
+
metricDefinitionIds: Array<string>;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
447
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
448
|
+
* generated before references were recorded.
|
|
449
|
+
*/
|
|
450
|
+
themeSlugs: Array<string>;
|
|
435
451
|
}
|
|
436
452
|
}
|
|
437
453
|
|
|
@@ -443,6 +459,19 @@ export namespace SimulationRunPlanJobCreateDebriefResponse {
|
|
|
443
459
|
*/
|
|
444
460
|
callIds: Array<string>;
|
|
445
461
|
|
|
462
|
+
/**
|
|
463
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
464
|
+
* generated before references were recorded.
|
|
465
|
+
*/
|
|
466
|
+
metricDefinitionIds: Array<string>;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
470
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
471
|
+
* generated before references were recorded.
|
|
472
|
+
*/
|
|
473
|
+
themeSlugs: Array<string>;
|
|
474
|
+
|
|
446
475
|
title: string;
|
|
447
476
|
}
|
|
448
477
|
|
|
@@ -543,6 +572,19 @@ export namespace SimulationRunPlanJobCreateDebriefResponse {
|
|
|
543
572
|
*/
|
|
544
573
|
callIds: Array<string>;
|
|
545
574
|
|
|
575
|
+
/**
|
|
576
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
577
|
+
* generated before references were recorded.
|
|
578
|
+
*/
|
|
579
|
+
metricDefinitionIds: Array<string>;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
583
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
584
|
+
* generated before references were recorded.
|
|
585
|
+
*/
|
|
586
|
+
themeSlugs: Array<string>;
|
|
587
|
+
|
|
546
588
|
title: string;
|
|
547
589
|
}
|
|
548
590
|
}
|
|
@@ -1888,6 +1930,12 @@ export namespace SimulationRunPlanJobGetRescoreResponse {
|
|
|
1888
1930
|
*/
|
|
1889
1931
|
jobId: string;
|
|
1890
1932
|
|
|
1933
|
+
/**
|
|
1934
|
+
* The metrics this re-score grades, one per metric and scope: the run plan's
|
|
1935
|
+
* metrics when it was requested. They become the run's metric set.
|
|
1936
|
+
*/
|
|
1937
|
+
metrics: Array<Data.Metric>;
|
|
1938
|
+
|
|
1891
1939
|
/**
|
|
1892
1940
|
* Re-score ID
|
|
1893
1941
|
*/
|
|
@@ -1909,6 +1957,26 @@ export namespace SimulationRunPlanJobGetRescoreResponse {
|
|
|
1909
1957
|
*/
|
|
1910
1958
|
totalConversations: number;
|
|
1911
1959
|
}
|
|
1960
|
+
|
|
1961
|
+
export namespace Data {
|
|
1962
|
+
export interface Metric {
|
|
1963
|
+
/**
|
|
1964
|
+
* The flow whose simulations it grades. Null when it grades every simulation of
|
|
1965
|
+
* the run.
|
|
1966
|
+
*/
|
|
1967
|
+
customerFlowId: string | null;
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* The flow's title. Null for a run-wide metric.
|
|
1971
|
+
*/
|
|
1972
|
+
customerFlowName: string | null;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* The metric graded
|
|
1976
|
+
*/
|
|
1977
|
+
metricDefinitionId: string;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1912
1980
|
}
|
|
1913
1981
|
|
|
1914
1982
|
export interface SimulationRunPlanJobGetResultsResponse {
|
|
@@ -2290,6 +2358,19 @@ export namespace SimulationRunPlanJobGetResultsResponse {
|
|
|
2290
2358
|
body: string;
|
|
2291
2359
|
|
|
2292
2360
|
heading: string | null;
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
2364
|
+
* generated before references were recorded.
|
|
2365
|
+
*/
|
|
2366
|
+
metricDefinitionIds: Array<string>;
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
2370
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
2371
|
+
* generated before references were recorded.
|
|
2372
|
+
*/
|
|
2373
|
+
themeSlugs: Array<string>;
|
|
2293
2374
|
}
|
|
2294
2375
|
}
|
|
2295
2376
|
|
|
@@ -2301,6 +2382,19 @@ export namespace SimulationRunPlanJobGetResultsResponse {
|
|
|
2301
2382
|
*/
|
|
2302
2383
|
callIds: Array<string>;
|
|
2303
2384
|
|
|
2385
|
+
/**
|
|
2386
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
2387
|
+
* generated before references were recorded.
|
|
2388
|
+
*/
|
|
2389
|
+
metricDefinitionIds: Array<string>;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
2393
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
2394
|
+
* generated before references were recorded.
|
|
2395
|
+
*/
|
|
2396
|
+
themeSlugs: Array<string>;
|
|
2397
|
+
|
|
2304
2398
|
title: string;
|
|
2305
2399
|
}
|
|
2306
2400
|
|
|
@@ -2401,6 +2495,19 @@ export namespace SimulationRunPlanJobGetResultsResponse {
|
|
|
2401
2495
|
*/
|
|
2402
2496
|
callIds: Array<string>;
|
|
2403
2497
|
|
|
2498
|
+
/**
|
|
2499
|
+
* Ids of the checks this text names. Empty when it names none, and on reports
|
|
2500
|
+
* generated before references were recorded.
|
|
2501
|
+
*/
|
|
2502
|
+
metricDefinitionIds: Array<string>;
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
* Slugs of the failure themes this text is about. Each matches a `slug` in
|
|
2506
|
+
* `themes`, which lists the calls. Empty when it is about none, and on reports
|
|
2507
|
+
* generated before references were recorded.
|
|
2508
|
+
*/
|
|
2509
|
+
themeSlugs: Array<string>;
|
|
2510
|
+
|
|
2404
2511
|
title: string;
|
|
2405
2512
|
}
|
|
2406
2513
|
}
|
|
@@ -3154,6 +3261,12 @@ export namespace SimulationRunPlanJobRescoreResponse {
|
|
|
3154
3261
|
*/
|
|
3155
3262
|
jobId: string;
|
|
3156
3263
|
|
|
3264
|
+
/**
|
|
3265
|
+
* The metrics this re-score grades, one per metric and scope: the run plan's
|
|
3266
|
+
* metrics when it was requested. They become the run's metric set.
|
|
3267
|
+
*/
|
|
3268
|
+
metrics: Array<Data.Metric>;
|
|
3269
|
+
|
|
3157
3270
|
/**
|
|
3158
3271
|
* Re-score ID
|
|
3159
3272
|
*/
|
|
@@ -3175,6 +3288,26 @@ export namespace SimulationRunPlanJobRescoreResponse {
|
|
|
3175
3288
|
*/
|
|
3176
3289
|
totalConversations: number;
|
|
3177
3290
|
}
|
|
3291
|
+
|
|
3292
|
+
export namespace Data {
|
|
3293
|
+
export interface Metric {
|
|
3294
|
+
/**
|
|
3295
|
+
* The flow whose simulations it grades. Null when it grades every simulation of
|
|
3296
|
+
* the run.
|
|
3297
|
+
*/
|
|
3298
|
+
customerFlowId: string | null;
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
* The flow's title. Null for a run-wide metric.
|
|
3302
|
+
*/
|
|
3303
|
+
customerFlowName: string | null;
|
|
3304
|
+
|
|
3305
|
+
/**
|
|
3306
|
+
* The metric graded
|
|
3307
|
+
*/
|
|
3308
|
+
metricDefinitionId: string;
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3178
3311
|
}
|
|
3179
3312
|
|
|
3180
3313
|
export interface SimulationRunPlanJobStartResponse {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '9.
|
|
1
|
+
export const VERSION = '9.16.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "9.
|
|
1
|
+
export declare const VERSION = "9.16.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "9.
|
|
1
|
+
export declare const VERSION = "9.16.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '9.
|
|
1
|
+
export const VERSION = '9.16.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|