@roarkanalytics/sdk 3.8.0 → 3.10.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/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/config.d.mts +131 -5
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +131 -5
- package/resources/config.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +9 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +9 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +30 -0
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +30 -0
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-run-plan.d.mts +38 -0
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +38 -0
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +162 -0
- package/resources/simulation-template.d.mts.map +1 -0
- package/resources/simulation-template.d.ts +162 -0
- package/resources/simulation-template.d.ts.map +1 -0
- package/resources/simulation-template.js +31 -0
- package/resources/simulation-template.js.map +1 -0
- package/resources/simulation-template.mjs +27 -0
- package/resources/simulation-template.mjs.map +1 -0
- package/resources/simulation.d.mts +13 -0
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +13 -0
- package/resources/simulation.d.ts.map +1 -1
- package/src/client.ts +8 -0
- package/src/resources/config.ts +272 -2
- package/src/resources/customer-flow-edge-case.ts +18 -0
- package/src/resources/customer-flow.ts +60 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/simulation-run-plan.ts +44 -0
- package/src/resources/simulation-template.ts +190 -0
- package/src/resources/simulation.ts +14 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -461,6 +461,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
461
461
|
* Last update timestamp in ISO 8601 format
|
|
462
462
|
*/
|
|
463
463
|
updatedAt: string;
|
|
464
|
+
|
|
465
|
+
systemKey?: string | null;
|
|
464
466
|
}
|
|
465
467
|
|
|
466
468
|
export namespace EdgeCase {
|
|
@@ -774,6 +776,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
774
776
|
* Last update timestamp in ISO 8601 format
|
|
775
777
|
*/
|
|
776
778
|
updatedAt: string;
|
|
779
|
+
|
|
780
|
+
systemKey?: string | null;
|
|
777
781
|
}
|
|
778
782
|
|
|
779
783
|
export namespace HappyPath {
|
|
@@ -1174,6 +1178,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1174
1178
|
* The brief the simulated customer improvises from.
|
|
1175
1179
|
*/
|
|
1176
1180
|
prompt?: string | null;
|
|
1181
|
+
|
|
1182
|
+
systemKey?: string | null;
|
|
1177
1183
|
}
|
|
1178
1184
|
|
|
1179
1185
|
export namespace EdgeCase {
|
|
@@ -1485,6 +1491,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1485
1491
|
* The brief the simulated customer improvises from.
|
|
1486
1492
|
*/
|
|
1487
1493
|
prompt?: string | null;
|
|
1494
|
+
|
|
1495
|
+
systemKey?: string | null;
|
|
1488
1496
|
}
|
|
1489
1497
|
|
|
1490
1498
|
export namespace HappyPath {
|
|
@@ -1879,6 +1887,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
1879
1887
|
* Last update timestamp in ISO 8601 format
|
|
1880
1888
|
*/
|
|
1881
1889
|
updatedAt: string;
|
|
1890
|
+
|
|
1891
|
+
systemKey?: string | null;
|
|
1882
1892
|
}
|
|
1883
1893
|
|
|
1884
1894
|
export namespace EdgeCase {
|
|
@@ -2185,6 +2195,8 @@ export namespace CustomerFlowCreateResponse {
|
|
|
2185
2195
|
* Last update timestamp in ISO 8601 format
|
|
2186
2196
|
*/
|
|
2187
2197
|
updatedAt: string;
|
|
2198
|
+
|
|
2199
|
+
systemKey?: string | null;
|
|
2188
2200
|
}
|
|
2189
2201
|
|
|
2190
2202
|
export namespace HappyPath {
|
|
@@ -2616,6 +2628,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
2616
2628
|
* Last update timestamp in ISO 8601 format
|
|
2617
2629
|
*/
|
|
2618
2630
|
updatedAt: string;
|
|
2631
|
+
|
|
2632
|
+
systemKey?: string | null;
|
|
2619
2633
|
}
|
|
2620
2634
|
|
|
2621
2635
|
export namespace EdgeCase {
|
|
@@ -2929,6 +2943,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
2929
2943
|
* Last update timestamp in ISO 8601 format
|
|
2930
2944
|
*/
|
|
2931
2945
|
updatedAt: string;
|
|
2946
|
+
|
|
2947
|
+
systemKey?: string | null;
|
|
2932
2948
|
}
|
|
2933
2949
|
|
|
2934
2950
|
export namespace HappyPath {
|
|
@@ -3329,6 +3345,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
3329
3345
|
* The brief the simulated customer improvises from.
|
|
3330
3346
|
*/
|
|
3331
3347
|
prompt?: string | null;
|
|
3348
|
+
|
|
3349
|
+
systemKey?: string | null;
|
|
3332
3350
|
}
|
|
3333
3351
|
|
|
3334
3352
|
export namespace EdgeCase {
|
|
@@ -3640,6 +3658,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
3640
3658
|
* The brief the simulated customer improvises from.
|
|
3641
3659
|
*/
|
|
3642
3660
|
prompt?: string | null;
|
|
3661
|
+
|
|
3662
|
+
systemKey?: string | null;
|
|
3643
3663
|
}
|
|
3644
3664
|
|
|
3645
3665
|
export namespace HappyPath {
|
|
@@ -4034,6 +4054,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4034
4054
|
* Last update timestamp in ISO 8601 format
|
|
4035
4055
|
*/
|
|
4036
4056
|
updatedAt: string;
|
|
4057
|
+
|
|
4058
|
+
systemKey?: string | null;
|
|
4037
4059
|
}
|
|
4038
4060
|
|
|
4039
4061
|
export namespace EdgeCase {
|
|
@@ -4340,6 +4362,8 @@ export namespace CustomerFlowUpdateResponse {
|
|
|
4340
4362
|
* Last update timestamp in ISO 8601 format
|
|
4341
4363
|
*/
|
|
4342
4364
|
updatedAt: string;
|
|
4365
|
+
|
|
4366
|
+
systemKey?: string | null;
|
|
4343
4367
|
}
|
|
4344
4368
|
|
|
4345
4369
|
export namespace HappyPath {
|
|
@@ -4774,6 +4798,8 @@ export namespace CustomerFlowListResponse {
|
|
|
4774
4798
|
* Last update timestamp in ISO 8601 format
|
|
4775
4799
|
*/
|
|
4776
4800
|
updatedAt: string;
|
|
4801
|
+
|
|
4802
|
+
systemKey?: string | null;
|
|
4777
4803
|
}
|
|
4778
4804
|
|
|
4779
4805
|
export namespace EdgeCase {
|
|
@@ -5087,6 +5113,8 @@ export namespace CustomerFlowListResponse {
|
|
|
5087
5113
|
* Last update timestamp in ISO 8601 format
|
|
5088
5114
|
*/
|
|
5089
5115
|
updatedAt: string;
|
|
5116
|
+
|
|
5117
|
+
systemKey?: string | null;
|
|
5090
5118
|
}
|
|
5091
5119
|
|
|
5092
5120
|
export namespace HappyPath {
|
|
@@ -5487,6 +5515,8 @@ export namespace CustomerFlowListResponse {
|
|
|
5487
5515
|
* The brief the simulated customer improvises from.
|
|
5488
5516
|
*/
|
|
5489
5517
|
prompt?: string | null;
|
|
5518
|
+
|
|
5519
|
+
systemKey?: string | null;
|
|
5490
5520
|
}
|
|
5491
5521
|
|
|
5492
5522
|
export namespace EdgeCase {
|
|
@@ -5798,6 +5828,8 @@ export namespace CustomerFlowListResponse {
|
|
|
5798
5828
|
* The brief the simulated customer improvises from.
|
|
5799
5829
|
*/
|
|
5800
5830
|
prompt?: string | null;
|
|
5831
|
+
|
|
5832
|
+
systemKey?: string | null;
|
|
5801
5833
|
}
|
|
5802
5834
|
|
|
5803
5835
|
export namespace HappyPath {
|
|
@@ -6192,6 +6224,8 @@ export namespace CustomerFlowListResponse {
|
|
|
6192
6224
|
* Last update timestamp in ISO 8601 format
|
|
6193
6225
|
*/
|
|
6194
6226
|
updatedAt: string;
|
|
6227
|
+
|
|
6228
|
+
systemKey?: string | null;
|
|
6195
6229
|
}
|
|
6196
6230
|
|
|
6197
6231
|
export namespace EdgeCase {
|
|
@@ -6498,6 +6532,8 @@ export namespace CustomerFlowListResponse {
|
|
|
6498
6532
|
* Last update timestamp in ISO 8601 format
|
|
6499
6533
|
*/
|
|
6500
6534
|
updatedAt: string;
|
|
6535
|
+
|
|
6536
|
+
systemKey?: string | null;
|
|
6501
6537
|
}
|
|
6502
6538
|
|
|
6503
6539
|
export namespace HappyPath {
|
|
@@ -6959,6 +6995,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
6959
6995
|
* Last update timestamp in ISO 8601 format
|
|
6960
6996
|
*/
|
|
6961
6997
|
updatedAt: string;
|
|
6998
|
+
|
|
6999
|
+
systemKey?: string | null;
|
|
6962
7000
|
}
|
|
6963
7001
|
|
|
6964
7002
|
export namespace EdgeCase {
|
|
@@ -7272,6 +7310,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
7272
7310
|
* Last update timestamp in ISO 8601 format
|
|
7273
7311
|
*/
|
|
7274
7312
|
updatedAt: string;
|
|
7313
|
+
|
|
7314
|
+
systemKey?: string | null;
|
|
7275
7315
|
}
|
|
7276
7316
|
|
|
7277
7317
|
export namespace HappyPath {
|
|
@@ -7672,6 +7712,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
7672
7712
|
* The brief the simulated customer improvises from.
|
|
7673
7713
|
*/
|
|
7674
7714
|
prompt?: string | null;
|
|
7715
|
+
|
|
7716
|
+
systemKey?: string | null;
|
|
7675
7717
|
}
|
|
7676
7718
|
|
|
7677
7719
|
export namespace EdgeCase {
|
|
@@ -7983,6 +8025,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
7983
8025
|
* The brief the simulated customer improvises from.
|
|
7984
8026
|
*/
|
|
7985
8027
|
prompt?: string | null;
|
|
8028
|
+
|
|
8029
|
+
systemKey?: string | null;
|
|
7986
8030
|
}
|
|
7987
8031
|
|
|
7988
8032
|
export namespace HappyPath {
|
|
@@ -8377,6 +8421,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
8377
8421
|
* Last update timestamp in ISO 8601 format
|
|
8378
8422
|
*/
|
|
8379
8423
|
updatedAt: string;
|
|
8424
|
+
|
|
8425
|
+
systemKey?: string | null;
|
|
8380
8426
|
}
|
|
8381
8427
|
|
|
8382
8428
|
export namespace EdgeCase {
|
|
@@ -8683,6 +8729,8 @@ export namespace CustomerFlowGetByIDResponse {
|
|
|
8683
8729
|
* Last update timestamp in ISO 8601 format
|
|
8684
8730
|
*/
|
|
8685
8731
|
updatedAt: string;
|
|
8732
|
+
|
|
8733
|
+
systemKey?: string | null;
|
|
8686
8734
|
}
|
|
8687
8735
|
|
|
8688
8736
|
export namespace HappyPath {
|
|
@@ -9026,6 +9074,8 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
9026
9074
|
* Last update timestamp in ISO 8601 format
|
|
9027
9075
|
*/
|
|
9028
9076
|
updatedAt: string;
|
|
9077
|
+
|
|
9078
|
+
systemKey?: string | null;
|
|
9029
9079
|
}
|
|
9030
9080
|
|
|
9031
9081
|
export namespace ScriptedFlowVariant {
|
|
@@ -9337,6 +9387,8 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
9337
9387
|
* The brief the simulated customer improvises from.
|
|
9338
9388
|
*/
|
|
9339
9389
|
prompt?: string | null;
|
|
9390
|
+
|
|
9391
|
+
systemKey?: string | null;
|
|
9340
9392
|
}
|
|
9341
9393
|
|
|
9342
9394
|
export namespace ImprovFlowVariant {
|
|
@@ -9643,6 +9695,8 @@ export namespace CustomerFlowReplaceGraphResponse {
|
|
|
9643
9695
|
* Last update timestamp in ISO 8601 format
|
|
9644
9696
|
*/
|
|
9645
9697
|
updatedAt: string;
|
|
9698
|
+
|
|
9699
|
+
systemKey?: string | null;
|
|
9646
9700
|
}
|
|
9647
9701
|
|
|
9648
9702
|
export namespace VoicemailFlowVariant {
|
|
@@ -9969,6 +10023,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
9969
10023
|
* Last update timestamp in ISO 8601 format
|
|
9970
10024
|
*/
|
|
9971
10025
|
updatedAt: string;
|
|
10026
|
+
|
|
10027
|
+
systemKey?: string | null;
|
|
9972
10028
|
}
|
|
9973
10029
|
|
|
9974
10030
|
export namespace ScriptedFlowVariant {
|
|
@@ -10273,6 +10329,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10273
10329
|
* The brief the simulated customer improvises from.
|
|
10274
10330
|
*/
|
|
10275
10331
|
prompt?: string | null;
|
|
10332
|
+
|
|
10333
|
+
systemKey?: string | null;
|
|
10276
10334
|
}
|
|
10277
10335
|
|
|
10278
10336
|
export namespace ImprovFlowVariant {
|
|
@@ -10572,6 +10630,8 @@ export namespace CustomerFlowUpdateHappyPathResponse {
|
|
|
10572
10630
|
* Last update timestamp in ISO 8601 format
|
|
10573
10631
|
*/
|
|
10574
10632
|
updatedAt: string;
|
|
10633
|
+
|
|
10634
|
+
systemKey?: string | null;
|
|
10575
10635
|
}
|
|
10576
10636
|
|
|
10577
10637
|
export namespace VoicemailFlowVariant {
|
package/src/resources/index.ts
CHANGED
|
@@ -164,6 +164,7 @@ export {
|
|
|
164
164
|
type SimulationRunPlanJobListParams,
|
|
165
165
|
type SimulationRunPlanJobStartParams,
|
|
166
166
|
} from './simulation-run-plan-job';
|
|
167
|
+
export { SimulationTemplate, type SimulationTemplateListResponse } from './simulation-template';
|
|
167
168
|
export {
|
|
168
169
|
Webhook,
|
|
169
170
|
type WebhookCreateResponse,
|
|
@@ -179,6 +179,12 @@ export namespace SimulationRunPlanCreateResponse {
|
|
|
179
179
|
*/
|
|
180
180
|
flows: Array<RunPlan.Flow>;
|
|
181
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Whether this plan also collects each attached flow's own metrics, on top of its
|
|
184
|
+
* own list.
|
|
185
|
+
*/
|
|
186
|
+
includeFlowMetrics: boolean;
|
|
187
|
+
|
|
182
188
|
/**
|
|
183
189
|
* Number of iterations to run for each test case
|
|
184
190
|
*/
|
|
@@ -427,6 +433,12 @@ export namespace SimulationRunPlanUpdateResponse {
|
|
|
427
433
|
*/
|
|
428
434
|
flows: Array<Data.Flow>;
|
|
429
435
|
|
|
436
|
+
/**
|
|
437
|
+
* Whether this plan also collects each attached flow's own metrics, on top of its
|
|
438
|
+
* own list.
|
|
439
|
+
*/
|
|
440
|
+
includeFlowMetrics: boolean;
|
|
441
|
+
|
|
430
442
|
/**
|
|
431
443
|
* Number of iterations to run for each test case
|
|
432
444
|
*/
|
|
@@ -639,6 +651,12 @@ export namespace SimulationRunPlanListResponse {
|
|
|
639
651
|
*/
|
|
640
652
|
flows: Array<Data.Flow>;
|
|
641
653
|
|
|
654
|
+
/**
|
|
655
|
+
* Whether this plan also collects each attached flow's own metrics, on top of its
|
|
656
|
+
* own list.
|
|
657
|
+
*/
|
|
658
|
+
includeFlowMetrics: boolean;
|
|
659
|
+
|
|
642
660
|
/**
|
|
643
661
|
* Number of iterations to run for each test case
|
|
644
662
|
*/
|
|
@@ -879,6 +897,12 @@ export namespace SimulationRunPlanGetByIDResponse {
|
|
|
879
897
|
*/
|
|
880
898
|
flows: Array<Data.Flow>;
|
|
881
899
|
|
|
900
|
+
/**
|
|
901
|
+
* Whether this plan also collects each attached flow's own metrics, on top of its
|
|
902
|
+
* own list.
|
|
903
|
+
*/
|
|
904
|
+
includeFlowMetrics: boolean;
|
|
905
|
+
|
|
882
906
|
/**
|
|
883
907
|
* Number of iterations to run for each test case
|
|
884
908
|
*/
|
|
@@ -1103,6 +1127,20 @@ export interface SimulationRunPlanCreateParams {
|
|
|
1103
1127
|
*/
|
|
1104
1128
|
flows?: Array<SimulationRunPlanCreateParams.Flow>;
|
|
1105
1129
|
|
|
1130
|
+
/**
|
|
1131
|
+
* Also collect each attached flow's own metrics, on top of the `metrics` named
|
|
1132
|
+
* here.
|
|
1133
|
+
*
|
|
1134
|
+
* Default true, which is what you want when you brought your own flows and their
|
|
1135
|
+
* graders. Set false for a run whose metric list is meant to be exhaustive: a
|
|
1136
|
+
* template like Load Testing or Voicemail deliberately grades a narrow set, and
|
|
1137
|
+
* inheriting every flow metric on top multiplies analysis cost across the volume
|
|
1138
|
+
* without adding signal.
|
|
1139
|
+
*
|
|
1140
|
+
* GET /v1/simulation/template returns the value each template expects.
|
|
1141
|
+
*/
|
|
1142
|
+
includeFlowMetrics?: boolean;
|
|
1143
|
+
|
|
1106
1144
|
/**
|
|
1107
1145
|
* Number of iterations to run for each test case (1-10000)
|
|
1108
1146
|
*/
|
|
@@ -1284,6 +1322,12 @@ export interface SimulationRunPlanUpdateParams {
|
|
|
1284
1322
|
*/
|
|
1285
1323
|
flows?: Array<SimulationRunPlanUpdateParams.Flow>;
|
|
1286
1324
|
|
|
1325
|
+
/**
|
|
1326
|
+
* Whether to also collect each attached flow's own metrics, on top of this plan's
|
|
1327
|
+
* list.
|
|
1328
|
+
*/
|
|
1329
|
+
includeFlowMetrics?: boolean;
|
|
1330
|
+
|
|
1287
1331
|
/**
|
|
1288
1332
|
* Whether this plan is hidden from GET /v1/simulation/plan.
|
|
1289
1333
|
*
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class SimulationTemplate extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the built-in simulation templates, each resolved against this project:
|
|
10
|
+
* the metric and check definitions it collects, and the flows it runs with the
|
|
11
|
+
* variants it covers.
|
|
12
|
+
*
|
|
13
|
+
* A template is a preset rather than a stored object, so building a run from one
|
|
14
|
+
* produces an ordinary run plan you own and can edit afterwards. Pass a `slug` as
|
|
15
|
+
* `template` to POST /v1/simulation/run.
|
|
16
|
+
*
|
|
17
|
+
* Every entry is complete, so there is no per-template endpoint to follow up with,
|
|
18
|
+
* and the list is a fixed catalogue rather than a paginated one. Only templates a
|
|
19
|
+
* request can actually run are listed.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const simulationTemplates =
|
|
24
|
+
* await client.simulationTemplate.list();
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
list(options?: RequestOptions): APIPromise<SimulationTemplateListResponse> {
|
|
28
|
+
return this._client.get('/v1/simulation/template', options);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The built-in simulation templates.
|
|
34
|
+
*/
|
|
35
|
+
export interface SimulationTemplateListResponse {
|
|
36
|
+
data: Array<SimulationTemplateListResponse.Data>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export namespace SimulationTemplateListResponse {
|
|
40
|
+
/**
|
|
41
|
+
* A built-in simulation template, resolved against this project: what it measures
|
|
42
|
+
* and what it runs.
|
|
43
|
+
*/
|
|
44
|
+
export interface Data {
|
|
45
|
+
/**
|
|
46
|
+
* Grouping used in the dashboard library
|
|
47
|
+
*/
|
|
48
|
+
category: string;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The per-simulation cap a run from this template uses unless the request sets its
|
|
52
|
+
* own.
|
|
53
|
+
*/
|
|
54
|
+
defaultMaxSimulationDurationSeconds: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* What this template tests
|
|
58
|
+
*/
|
|
59
|
+
description: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The flows this template runs, and which of their ways of running it covers.
|
|
63
|
+
*
|
|
64
|
+
* Empty means the template presets only what to measure, and a run has to say what
|
|
65
|
+
* to measure it on: pass `flows` to POST /v1/simulation/run. When it is not empty
|
|
66
|
+
* you can still pass `flows` to narrow it, naming a subset of the ids listed here.
|
|
67
|
+
*/
|
|
68
|
+
flows: Array<Data.Flow>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Whether runs from this template also collect each attached flow's own metrics,
|
|
72
|
+
* on top of the template's set.
|
|
73
|
+
*/
|
|
74
|
+
includeFlowMetrics: boolean;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The metrics this template collects, resolved to this project's definitions.
|
|
78
|
+
*/
|
|
79
|
+
metrics: Array<Data.Metric>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Stable identifier. Name this in a run request.
|
|
83
|
+
*/
|
|
84
|
+
slug: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The Pass/Fail checks this template attaches alongside its metrics.
|
|
88
|
+
*/
|
|
89
|
+
thresholds: Array<Data.Threshold>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Display name
|
|
93
|
+
*/
|
|
94
|
+
title: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export namespace Data {
|
|
98
|
+
export interface Flow {
|
|
99
|
+
/**
|
|
100
|
+
* Customer flow ID
|
|
101
|
+
*/
|
|
102
|
+
id: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The other ways of running this flow that this template covers.
|
|
106
|
+
*/
|
|
107
|
+
edgeCases: Array<Flow.EdgeCase>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The flow's default way of running, when this template covers it. Null when it
|
|
111
|
+
* does not, or the flow has none.
|
|
112
|
+
*/
|
|
113
|
+
happyPath: Flow.HappyPath | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The stable slug of a Roark-curated flow, null for one of your own.
|
|
117
|
+
*
|
|
118
|
+
* Prefer this over `id` when you are storing a run in version control: a curated
|
|
119
|
+
* flow is a global row, so its id is the same for every project but differs
|
|
120
|
+
* between deployments, while the slug is stable wherever the flow exists. Both are
|
|
121
|
+
* accepted by a run request.
|
|
122
|
+
*/
|
|
123
|
+
slug: string | null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Flow title
|
|
127
|
+
*/
|
|
128
|
+
title: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export namespace Flow {
|
|
132
|
+
export interface EdgeCase {
|
|
133
|
+
/**
|
|
134
|
+
* Customer flow variant ID
|
|
135
|
+
*/
|
|
136
|
+
id: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The stable slug of a Roark-curated edge case, null for one of your own.
|
|
140
|
+
*
|
|
141
|
+
* Prefer this over `id` in a run you keep in version control. A curated edge case
|
|
142
|
+
* is a global row, so its id differs between deployments, and renaming one
|
|
143
|
+
* replaces the row and its id outright. The slug survives both.
|
|
144
|
+
*/
|
|
145
|
+
slug: string | null;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* What this way of running the flow is called
|
|
149
|
+
*/
|
|
150
|
+
title: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* The flow's default way of running, when this template covers it. Null when it
|
|
155
|
+
* does not, or the flow has none.
|
|
156
|
+
*/
|
|
157
|
+
export interface HappyPath {
|
|
158
|
+
title: string;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface Metric {
|
|
163
|
+
/**
|
|
164
|
+
* Metric definition ID
|
|
165
|
+
*/
|
|
166
|
+
id: string;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Stable metric slug, e.g. "response_time"
|
|
170
|
+
*/
|
|
171
|
+
slug: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface Threshold {
|
|
175
|
+
/**
|
|
176
|
+
* Metric definition ID
|
|
177
|
+
*/
|
|
178
|
+
id: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Stable metric slug, e.g. "response_time"
|
|
182
|
+
*/
|
|
183
|
+
slug: string;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export declare namespace SimulationTemplate {
|
|
189
|
+
export { type SimulationTemplateListResponse as SimulationTemplateListResponse };
|
|
190
|
+
}
|
|
@@ -211,6 +211,20 @@ export declare namespace SimulationRunParams {
|
|
|
211
211
|
*/
|
|
212
212
|
flows?: Array<Plan.Flow>;
|
|
213
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Also collect each attached flow's own metrics, on top of the `metrics` named
|
|
216
|
+
* here.
|
|
217
|
+
*
|
|
218
|
+
* Default true, which is what you want when you brought your own flows and their
|
|
219
|
+
* graders. Set false for a run whose metric list is meant to be exhaustive: a
|
|
220
|
+
* template like Load Testing or Voicemail deliberately grades a narrow set, and
|
|
221
|
+
* inheriting every flow metric on top multiplies analysis cost across the volume
|
|
222
|
+
* without adding signal.
|
|
223
|
+
*
|
|
224
|
+
* GET /v1/simulation/template returns the value each template expects.
|
|
225
|
+
*/
|
|
226
|
+
includeFlowMetrics?: boolean;
|
|
227
|
+
|
|
214
228
|
/**
|
|
215
229
|
* Number of iterations to run for each test case (1-10000)
|
|
216
230
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.10.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,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.10.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,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.10.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,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|