@roarkanalytics/sdk 3.9.0 → 3.11.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 (62) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/customer-flow-edge-case.d.mts +9 -0
  12. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  13. package/resources/customer-flow-edge-case.d.ts +9 -0
  14. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  15. package/resources/customer-flow.d.mts +30 -0
  16. package/resources/customer-flow.d.mts.map +1 -1
  17. package/resources/customer-flow.d.ts +30 -0
  18. package/resources/customer-flow.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/simulation-run-plan.d.mts +128 -12
  28. package/resources/simulation-run-plan.d.mts.map +1 -1
  29. package/resources/simulation-run-plan.d.ts +128 -12
  30. package/resources/simulation-run-plan.d.ts.map +1 -1
  31. package/resources/simulation-template.d.mts +162 -0
  32. package/resources/simulation-template.d.mts.map +1 -0
  33. package/resources/simulation-template.d.ts +162 -0
  34. package/resources/simulation-template.d.ts.map +1 -0
  35. package/resources/simulation-template.js +31 -0
  36. package/resources/simulation-template.js.map +1 -0
  37. package/resources/simulation-template.mjs +27 -0
  38. package/resources/simulation-template.mjs.map +1 -0
  39. package/resources/simulation.d.mts +218 -6
  40. package/resources/simulation.d.mts.map +1 -1
  41. package/resources/simulation.d.ts +218 -6
  42. package/resources/simulation.d.ts.map +1 -1
  43. package/resources/simulation.js +10 -3
  44. package/resources/simulation.js.map +1 -1
  45. package/resources/simulation.mjs +10 -3
  46. package/resources/simulation.mjs.map +1 -1
  47. package/src/client.ts +8 -0
  48. package/src/resources/customer-flow-edge-case.ts +18 -0
  49. package/src/resources/customer-flow.ts +60 -0
  50. package/src/resources/index.ts +1 -0
  51. package/src/resources/simulation-run-plan.ts +146 -12
  52. package/src/resources/simulation-template.ts +190 -0
  53. package/src/resources/simulation.ts +244 -6
  54. package/src/version.ts +1 -1
  55. package/version.d.mts +1 -1
  56. package/version.d.mts.map +1 -1
  57. package/version.d.ts +1 -1
  58. package/version.d.ts.map +1 -1
  59. package/version.js +1 -1
  60. package/version.js.map +1 -1
  61. package/version.mjs +1 -1
  62. package/version.mjs.map +1 -1
@@ -5,9 +5,16 @@ export declare class Simulation extends APIResource {
5
5
  /**
6
6
  * Starts a simulation and returns the run.
7
7
  *
8
- * Send `plan` to describe a simulation and run it once. Add `saveAsPlan` to keep
9
- * that configuration as a reusable run plan. Send `planId` instead to run a plan
10
- * you already have.
8
+ * Send `template` to run one of the built-in templates: it supplies the metrics
9
+ * and checks, and for some templates the flows too, so the request only names the
10
+ * agent and the direction. Send `plan` to describe a simulation yourself and run
11
+ * it once. Send `planId` to run a plan you already have.
12
+ *
13
+ * `template` and `plan` both resolve to a run plan, returned as
14
+ * `simulationRunPlanId`. Add `saveAsPlan` to keep it, or read it back to see
15
+ * exactly what ran. A plan built from a template is a snapshot: retuning the
16
+ * template later never changes what that plan runs, which is what makes a saved
17
+ * one safe to pin in CI.
11
18
  *
12
19
  * @example
13
20
  * ```ts
@@ -65,7 +72,7 @@ export declare namespace SimulationRunResponse {
65
72
  status: 'PENDING' | 'QUEUED' | 'CREATING_SNAPSHOTS' | 'CREATING_SIMULATIONS' | 'PREPARING_CAPACITY' | 'RUNNING_SIMULATIONS' | 'COMPLETED' | 'FAILED' | 'TIMED_OUT' | 'CANCELLED' | 'CANCELLING' | 'ENDING_SIMULATIONS';
66
73
  }
67
74
  }
68
- export type SimulationRunParams = SimulationRunParams.RunSimulationFromConfig | SimulationRunParams.RunSimulationFromPlanID;
75
+ export type SimulationRunParams = SimulationRunParams.RunSimulationFromConfig | SimulationRunParams.RunSimulationFromPlanID | SimulationRunParams.RunSimulationFromTemplate;
69
76
  export declare namespace SimulationRunParams {
70
77
  interface RunSimulationFromConfig {
71
78
  /**
@@ -169,6 +176,19 @@ export declare namespace SimulationRunParams {
169
176
  * once with a different persona override or different variables.
170
177
  */
171
178
  flows?: Array<Plan.Flow>;
179
+ /**
180
+ * Also collect each attached flow's own metrics, on top of the `metrics` named
181
+ * here.
182
+ *
183
+ * Default true, which is what you want when you brought your own flows and their
184
+ * graders. Set false for a run whose metric list is meant to be exhaustive: a
185
+ * template like Load Testing or Voicemail deliberately grades a narrow set, and
186
+ * inheriting every flow metric on top multiplies analysis cost across the volume
187
+ * without adding signal.
188
+ *
189
+ * GET /v1/simulation/template returns the value each template expects.
190
+ */
191
+ includeFlowMetrics?: boolean;
172
192
  /**
173
193
  * Number of iterations to run for each test case (1-10000)
174
194
  */
@@ -239,7 +259,7 @@ export declare namespace SimulationRunParams {
239
259
  /**
240
260
  * The customer flow to run.
241
261
  */
242
- id: string;
262
+ id?: string;
243
263
  /**
244
264
  * `"ALL"` runs every edge case the flow has when the run starts, so one added
245
265
  * later is covered. An array runs only the ones you name, each able to carry its
@@ -254,6 +274,12 @@ export declare namespace SimulationRunParams {
254
274
  * Runs everything this attachment resolves as that persona instead of its own.
255
275
  */
256
276
  personaOverrideId?: string | null;
277
+ /**
278
+ * The Roark-curated flow to run, by its stable slug. Use instead of `id` for a run
279
+ * you keep in version control: a curated flow’s id differs between deployments,
280
+ * its slug does not. Your own flows have no slug and are named by `id`.
281
+ */
282
+ slug?: string;
257
283
  /**
258
284
  * Values for everything it resolves.
259
285
  */
@@ -266,11 +292,18 @@ export declare namespace SimulationRunParams {
266
292
  /**
267
293
  * The edge case to run.
268
294
  */
269
- id: string;
295
+ id?: string;
270
296
  /**
271
297
  * Run this one as that persona instead of its own.
272
298
  */
273
299
  personaOverrideId?: string | null;
300
+ /**
301
+ * The edge case to run, by its stable slug, matched within this flow. Use instead
302
+ * of `id` for a run you keep in version control: a curated edge case’s id differs
303
+ * between deployments and changes outright if it is renamed. Your own edge cases
304
+ * have no slug and are named by `id`.
305
+ */
306
+ slug?: string;
274
307
  /**
275
308
  * Values for this one only.
276
309
  */
@@ -398,6 +431,185 @@ export declare namespace SimulationRunParams {
398
431
  };
399
432
  }
400
433
  }
434
+ interface RunSimulationFromTemplate {
435
+ /**
436
+ * The agent endpoints to call. No template can know these.
437
+ */
438
+ agentEndpoints: Array<RunSimulationFromTemplate.AgentEndpoint>;
439
+ /**
440
+ * Direction of the simulation (INBOUND or OUTBOUND)
441
+ */
442
+ direction: 'INBOUND' | 'OUTBOUND';
443
+ /**
444
+ * The template to run, as listed by GET /v1/simulation/template.
445
+ */
446
+ template: string;
447
+ /**
448
+ * Phrases that trigger end of call. Empty array disables the feature.
449
+ */
450
+ endCallPhrases?: Array<string>;
451
+ /**
452
+ * Semantic conditions that trigger end of call. The LLM evaluates the conversation
453
+ * against these conditions. Empty array disables the feature.
454
+ */
455
+ endCallReasons?: Array<string>;
456
+ /**
457
+ * Merge the customer's own recording of the real call into each simulation, so
458
+ * metrics can be scored against the live leg as well as the simulated one. This is
459
+ * the API equivalent of the dashboard's live-enrichment toggle.
460
+ *
461
+ * With this on, the run provisions a phone number and holds each call open for up
462
+ * to 15 minutes waiting for a matching call to be posted to POST /v1/call. A call
463
+ * matches on the provisioned number (`roarkPhoneNumber` on the job) with a start
464
+ * time inside the simulation window. If nothing arrives, the simulation still
465
+ * completes and any `LIVE`-sourced metric produces no value.
466
+ *
467
+ * Required by any metric whose `requiresLiveConversation` is true: without it that
468
+ * metric is silently skipped.
469
+ */
470
+ enrichWithLiveConversation?: boolean;
471
+ /**
472
+ * Execution mode (PARALLEL or SEQUENTIAL)
473
+ */
474
+ executionMode?: 'PARALLEL' | 'SEQUENTIAL_SAME_RUN_PLAN' | 'SEQUENTIAL_PROJECT';
475
+ /**
476
+ * The flows to run, in the same shape a run plan takes them.
477
+ *
478
+ * Required when the template lists no flows of its own: it presets what to
479
+ * measure, and this says what to measure it on. Optional when it does, where these
480
+ * REPLACE the ones it would have run, so you can narrow a suite to the cases you
481
+ * care about. Either way, GET /v1/simulation/template lists the flows and variant
482
+ * ids each template covers.
483
+ */
484
+ flows?: Array<RunSimulationFromTemplate.Flow>;
485
+ /**
486
+ * Number of iterations to run for each test case (1-10000)
487
+ */
488
+ iterationCount?: number;
489
+ /**
490
+ * Maximum number of concurrent simulation jobs
491
+ */
492
+ maxConcurrentJobs?: number;
493
+ /**
494
+ * Defaults to the template's `defaultMaxSimulationDurationSeconds`, as returned by
495
+ * GET /v1/simulation/template.
496
+ */
497
+ maxSimulationDurationSeconds?: number;
498
+ /**
499
+ * What to call this. Defaults to the template's name and the date, and required
500
+ * with `saveAsPlan`.
501
+ */
502
+ name?: string;
503
+ /**
504
+ * Keeps the resolved configuration as a run plan, listed by GET
505
+ * /v1/simulation/plan and re-runnable with `planId`. Requires `name`.
506
+ */
507
+ saveAsPlan?: boolean;
508
+ /**
509
+ * Timeout in seconds for silence detection
510
+ */
511
+ silenceTimeoutSeconds?: number;
512
+ /**
513
+ * Values for the {{variables}} the run resolves. An object applies them
514
+ * everywhere; an array targets a flow, its happy path, or one of its edge cases
515
+ * with `flowId`.
516
+ *
517
+ * The scenario-scoped form the other variants accept is not valid here: a template
518
+ * run is always flow-based, so there would be no scenario for it to reach.
519
+ */
520
+ variables?: {
521
+ [key: string]: string;
522
+ } | Array<RunSimulationFromTemplate.UnionMember1>;
523
+ }
524
+ namespace RunSimulationFromTemplate {
525
+ interface AgentEndpoint {
526
+ id: string;
527
+ }
528
+ /**
529
+ * One customer flow attached to a run plan, and which of its ways of running you
530
+ * cover.
531
+ *
532
+ * Attaching the same flow more than once with different overrides is how you fan
533
+ * it out across personas or values.
534
+ */
535
+ interface Flow {
536
+ /**
537
+ * The customer flow to run.
538
+ */
539
+ id?: string;
540
+ /**
541
+ * `"ALL"` runs every edge case the flow has when the run starts, so one added
542
+ * later is covered. An array runs only the ones you name, each able to carry its
543
+ * own persona override and values.
544
+ */
545
+ edgeCases?: 'ALL' | Array<Flow.UnionMember1>;
546
+ /**
547
+ * Run the flow's happy path. Resolved when the run starts, so it follows the flow.
548
+ */
549
+ happyPath?: boolean;
550
+ /**
551
+ * Runs everything this attachment resolves as that persona instead of its own.
552
+ */
553
+ personaOverrideId?: string | null;
554
+ /**
555
+ * The Roark-curated flow to run, by its stable slug. Use instead of `id` for a run
556
+ * you keep in version control: a curated flow’s id differs between deployments,
557
+ * its slug does not. Your own flows have no slug and are named by `id`.
558
+ */
559
+ slug?: string;
560
+ /**
561
+ * Values for everything it resolves.
562
+ */
563
+ variables?: {
564
+ [key: string]: string;
565
+ };
566
+ }
567
+ namespace Flow {
568
+ interface UnionMember1 {
569
+ /**
570
+ * The edge case to run.
571
+ */
572
+ id?: string;
573
+ /**
574
+ * Run this one as that persona instead of its own.
575
+ */
576
+ personaOverrideId?: string | null;
577
+ /**
578
+ * The edge case to run, by its stable slug, matched within this flow. Use instead
579
+ * of `id` for a run you keep in version control: a curated edge case’s id differs
580
+ * between deployments and changes outright if it is renamed. Your own edge cases
581
+ * have no slug and are named by `id`.
582
+ */
583
+ slug?: string;
584
+ /**
585
+ * Values for this one only.
586
+ */
587
+ variables?: {
588
+ [key: string]: string;
589
+ };
590
+ }
591
+ }
592
+ interface UnionMember1 {
593
+ /**
594
+ * A customer flow this plan runs.
595
+ */
596
+ flowId: string;
597
+ /**
598
+ * The values to apply.
599
+ */
600
+ variables: {
601
+ [key: string]: string;
602
+ };
603
+ /**
604
+ * Narrow to one edge case of that flow.
605
+ */
606
+ edgeCaseId?: string;
607
+ /**
608
+ * Narrow to the flow's happy path.
609
+ */
610
+ happyPath?: true;
611
+ }
612
+ }
401
613
  }
402
614
  export declare namespace Simulation {
403
615
  export { type SimulationRunResponse as SimulationRunResponse, type SimulationRunParams as SimulationRunParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG5F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;CAClC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;;WAGG;QACH,MAAM,EACF,SAAS,GACT,QAAQ,GACR,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,WAAW,GACX,YAAY,GACZ,oBAAoB,CAAC;KAC1B;CACF;AAED,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,CAAC,uBAAuB,GAC3C,mBAAmB,CAAC,uBAAuB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,UAAiB,uBAAuB;QACtC;;WAEG;QACH,IAAI,EAAE,uBAAuB,CAAC,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H,SAAS,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;SACtC;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAG5F;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,EAAE,qBAAqB,CAAC,IAAI,CAAC;CAClC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;WAGG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;WAGG;QACH,mBAAmB,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAE/B;;;WAGG;QACH,MAAM,EACF,SAAS,GACT,QAAQ,GACR,oBAAoB,GACpB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,WAAW,GACX,QAAQ,GACR,WAAW,GACX,WAAW,GACX,YAAY,GACZ,oBAAoB,CAAC;KAC1B;CACF;AAED,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,CAAC,uBAAuB,GAC3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aAAE,CAAC;YAErC;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,SAAS,CAAC,EAAE,IAAI,CAAC;SAClB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -7,9 +7,16 @@ class Simulation extends resource_1.APIResource {
7
7
  /**
8
8
  * Starts a simulation and returns the run.
9
9
  *
10
- * Send `plan` to describe a simulation and run it once. Add `saveAsPlan` to keep
11
- * that configuration as a reusable run plan. Send `planId` instead to run a plan
12
- * you already have.
10
+ * Send `template` to run one of the built-in templates: it supplies the metrics
11
+ * and checks, and for some templates the flows too, so the request only names the
12
+ * agent and the direction. Send `plan` to describe a simulation yourself and run
13
+ * it once. Send `planId` to run a plan you already have.
14
+ *
15
+ * `template` and `plan` both resolve to a run plan, returned as
16
+ * `simulationRunPlanId`. Add `saveAsPlan` to keep it, or read it back to see
17
+ * exactly what ran. A plan built from a template is a snapshot: retuning the
18
+ * template later never changes what that plan runs, which is what makes a saved
19
+ * one safe to pin in CI.
13
20
  *
14
21
  * @example
15
22
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAzBD,gCAyBC"}
1
+ {"version":3,"file":"simulation.js","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAhCD,gCAgCC"}
@@ -4,9 +4,16 @@ export class Simulation extends APIResource {
4
4
  /**
5
5
  * Starts a simulation and returns the run.
6
6
  *
7
- * Send `plan` to describe a simulation and run it once. Add `saveAsPlan` to keep
8
- * that configuration as a reusable run plan. Send `planId` instead to run a plan
9
- * you already have.
7
+ * Send `template` to run one of the built-in templates: it supplies the metrics
8
+ * and checks, and for some templates the flows too, so the request only names the
9
+ * agent and the direction. Send `plan` to describe a simulation yourself and run
10
+ * it once. Send `planId` to run a plan you already have.
11
+ *
12
+ * `template` and `plan` both resolve to a run plan, returned as
13
+ * `simulationRunPlanId`. Add `saveAsPlan` to keep it, or read it back to see
14
+ * exactly what ran. A plan built from a template is a snapshot: retuning the
15
+ * template later never changes what that plan runs, which is what makes a saved
16
+ * one safe to pin in CI.
10
17
  *
11
18
  * @example
12
19
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
1
+ {"version":3,"file":"simulation.mjs","sourceRoot":"","sources":["../src/resources/simulation.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,GAAG,CAAC,IAAyB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -181,6 +181,7 @@ import {
181
181
  SimulationRunPlanJobStartParams,
182
182
  SimulationRunPlanJobStartResponse,
183
183
  } from './resources/simulation-run-plan-job';
184
+ import { SimulationTemplate, SimulationTemplateListResponse } from './resources/simulation-template';
184
185
  import {
185
186
  Webhook,
186
187
  WebhookCreateParams,
@@ -919,6 +920,7 @@ export class Roark {
919
920
  simulationRunPlanJob: API.SimulationRunPlanJob = new API.SimulationRunPlanJob(this);
920
921
  simulationPersona: API.SimulationPersona = new API.SimulationPersona(this);
921
922
  simulationEnvironment: API.SimulationEnvironment = new API.SimulationEnvironment(this);
923
+ simulationTemplate: API.SimulationTemplate = new API.SimulationTemplate(this);
922
924
  customerFlow: API.CustomerFlow = new API.CustomerFlow(this);
923
925
  customerFlowEdgeCase: API.CustomerFlowEdgeCase = new API.CustomerFlowEdgeCase(this);
924
926
  agent: API.Agent = new API.Agent(this);
@@ -940,6 +942,7 @@ Roark.SimulationRunPlan = SimulationRunPlan;
940
942
  Roark.SimulationRunPlanJob = SimulationRunPlanJob;
941
943
  Roark.SimulationPersona = SimulationPersona;
942
944
  Roark.SimulationEnvironment = SimulationEnvironment;
945
+ Roark.SimulationTemplate = SimulationTemplate;
943
946
  Roark.CustomerFlow = CustomerFlow;
944
947
  Roark.CustomerFlowEdgeCase = CustomerFlowEdgeCase;
945
948
  Roark.Agent = Agent;
@@ -1065,6 +1068,11 @@ export declare namespace Roark {
1065
1068
  type SimulationEnvironmentListParams as SimulationEnvironmentListParams,
1066
1069
  };
1067
1070
 
1071
+ export {
1072
+ SimulationTemplate as SimulationTemplate,
1073
+ type SimulationTemplateListResponse as SimulationTemplateListResponse,
1074
+ };
1075
+
1068
1076
  export {
1069
1077
  CustomerFlow as CustomerFlow,
1070
1078
  type FlowStep as FlowStep,
@@ -162,6 +162,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
162
162
  * Last update timestamp in ISO 8601 format
163
163
  */
164
164
  updatedAt: string;
165
+
166
+ systemKey?: string | null;
165
167
  }
166
168
 
167
169
  export namespace ScriptedFlowVariant {
@@ -466,6 +468,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
466
468
  * The brief the simulated customer improvises from.
467
469
  */
468
470
  prompt?: string | null;
471
+
472
+ systemKey?: string | null;
469
473
  }
470
474
 
471
475
  export namespace ImprovFlowVariant {
@@ -765,6 +769,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
765
769
  * Last update timestamp in ISO 8601 format
766
770
  */
767
771
  updatedAt: string;
772
+
773
+ systemKey?: string | null;
768
774
  }
769
775
 
770
776
  export namespace VoicemailFlowVariant {
@@ -1083,6 +1089,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1083
1089
  * Last update timestamp in ISO 8601 format
1084
1090
  */
1085
1091
  updatedAt: string;
1092
+
1093
+ systemKey?: string | null;
1086
1094
  }
1087
1095
 
1088
1096
  export namespace ScriptedFlowVariant {
@@ -1387,6 +1395,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1387
1395
  * The brief the simulated customer improvises from.
1388
1396
  */
1389
1397
  prompt?: string | null;
1398
+
1399
+ systemKey?: string | null;
1390
1400
  }
1391
1401
 
1392
1402
  export namespace ImprovFlowVariant {
@@ -1686,6 +1696,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1686
1696
  * Last update timestamp in ISO 8601 format
1687
1697
  */
1688
1698
  updatedAt: string;
1699
+
1700
+ systemKey?: string | null;
1689
1701
  }
1690
1702
 
1691
1703
  export namespace VoicemailFlowVariant {
@@ -2004,6 +2016,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2004
2016
  * Last update timestamp in ISO 8601 format
2005
2017
  */
2006
2018
  updatedAt: string;
2019
+
2020
+ systemKey?: string | null;
2007
2021
  }
2008
2022
 
2009
2023
  export namespace ScriptedFlowVariant {
@@ -2308,6 +2322,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2308
2322
  * The brief the simulated customer improvises from.
2309
2323
  */
2310
2324
  prompt?: string | null;
2325
+
2326
+ systemKey?: string | null;
2311
2327
  }
2312
2328
 
2313
2329
  export namespace ImprovFlowVariant {
@@ -2607,6 +2623,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2607
2623
  * Last update timestamp in ISO 8601 format
2608
2624
  */
2609
2625
  updatedAt: string;
2626
+
2627
+ systemKey?: string | null;
2610
2628
  }
2611
2629
 
2612
2630
  export namespace VoicemailFlowVariant {