@roarkanalytics/sdk 3.10.0 → 3.12.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 (101) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +7 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -4
  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/agent-prompt.d.mts +129 -0
  12. package/resources/agent-prompt.d.mts.map +1 -0
  13. package/resources/agent-prompt.d.ts +129 -0
  14. package/resources/agent-prompt.d.ts.map +1 -0
  15. package/resources/agent-prompt.js +58 -0
  16. package/resources/agent-prompt.js.map +1 -0
  17. package/resources/agent-prompt.mjs +54 -0
  18. package/resources/agent-prompt.mjs.map +1 -0
  19. package/resources/call.d.mts +1 -1
  20. package/resources/call.d.mts.map +1 -1
  21. package/resources/call.d.ts +1 -1
  22. package/resources/call.d.ts.map +1 -1
  23. package/resources/config.d.mts +166 -18
  24. package/resources/config.d.mts.map +1 -1
  25. package/resources/config.d.ts +166 -18
  26. package/resources/config.d.ts.map +1 -1
  27. package/resources/customer-flow-edge-case.d.mts +72 -9
  28. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  29. package/resources/customer-flow-edge-case.d.ts +72 -9
  30. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  31. package/resources/customer-flow.d.mts +2005 -78
  32. package/resources/customer-flow.d.mts.map +1 -1
  33. package/resources/customer-flow.d.ts +2005 -78
  34. package/resources/customer-flow.d.ts.map +1 -1
  35. package/resources/customer-flow.js +18 -0
  36. package/resources/customer-flow.js.map +1 -1
  37. package/resources/customer-flow.mjs +18 -0
  38. package/resources/customer-flow.mjs.map +1 -1
  39. package/resources/index.d.mts +3 -2
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +3 -2
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +3 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +1 -0
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/simulation-environment.d.mts +163 -1
  48. package/resources/simulation-environment.d.mts.map +1 -1
  49. package/resources/simulation-environment.d.ts +163 -1
  50. package/resources/simulation-environment.d.ts.map +1 -1
  51. package/resources/simulation-environment.js +51 -0
  52. package/resources/simulation-environment.js.map +1 -1
  53. package/resources/simulation-environment.mjs +51 -0
  54. package/resources/simulation-environment.mjs.map +1 -1
  55. package/resources/simulation-job.d.mts +62 -2
  56. package/resources/simulation-job.d.mts.map +1 -1
  57. package/resources/simulation-job.d.ts +62 -2
  58. package/resources/simulation-job.d.ts.map +1 -1
  59. package/resources/simulation-persona.d.mts +42 -6
  60. package/resources/simulation-persona.d.mts.map +1 -1
  61. package/resources/simulation-persona.d.ts +42 -6
  62. package/resources/simulation-persona.d.ts.map +1 -1
  63. package/resources/simulation-run-plan-job.d.mts +31 -1
  64. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  65. package/resources/simulation-run-plan-job.d.ts +31 -1
  66. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  67. package/resources/simulation-run-plan.d.mts +154 -12
  68. package/resources/simulation-run-plan.d.mts.map +1 -1
  69. package/resources/simulation-run-plan.d.ts +154 -12
  70. package/resources/simulation-run-plan.d.ts.map +1 -1
  71. package/resources/simulation-template.d.mts +10 -0
  72. package/resources/simulation-template.d.mts.map +1 -1
  73. package/resources/simulation-template.d.ts +10 -0
  74. package/resources/simulation-template.d.ts.map +1 -1
  75. package/resources/simulation.d.mts +221 -6
  76. package/resources/simulation.d.mts.map +1 -1
  77. package/resources/simulation.d.ts +221 -6
  78. package/resources/simulation.d.ts.map +1 -1
  79. package/resources/simulation.js +10 -3
  80. package/resources/simulation.js.map +1 -1
  81. package/resources/simulation.mjs +10 -3
  82. package/resources/simulation.mjs.map +1 -1
  83. package/src/client.ts +33 -0
  84. package/src/resources/agent-prompt.ts +183 -0
  85. package/src/resources/call.ts +1 -1
  86. package/src/resources/config.ts +310 -20
  87. package/src/resources/customer-flow-edge-case.ts +180 -9
  88. package/src/resources/customer-flow.ts +3091 -63
  89. package/src/resources/index.ts +15 -0
  90. package/src/resources/simulation-environment.ts +244 -0
  91. package/src/resources/simulation-job.ts +92 -2
  92. package/src/resources/simulation-persona.ts +108 -6
  93. package/src/resources/simulation-run-plan-job.ts +39 -1
  94. package/src/resources/simulation-run-plan.ts +176 -12
  95. package/src/resources/simulation-template.ts +11 -0
  96. package/src/resources/simulation.ts +247 -6
  97. package/src/version.ts +1 -1
  98. package/version.d.mts +1 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/version.mjs +1 -1
@@ -197,6 +197,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
197
197
  | 'OFFICE'
198
198
  | 'THUNDERSTORM';
199
199
 
200
+ backgroundNoiseVolume: number;
201
+
200
202
  /**
201
203
  * Creation timestamp in ISO 8601 format
202
204
  */
@@ -272,7 +274,17 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
272
274
  /**
273
275
  * Base emotional state of the persona
274
276
  */
275
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
277
+ baseEmotion:
278
+ | 'NEUTRAL'
279
+ | 'CHEERFUL'
280
+ | 'CONFUSED'
281
+ | 'FRUSTRATED'
282
+ | 'SKEPTICAL'
283
+ | 'RUSHED'
284
+ | 'DISTRACTED'
285
+ | 'ANGRY'
286
+ | 'ANXIOUS'
287
+ | 'SAD';
276
288
 
277
289
  /**
278
290
  * How the persona confirms information
@@ -414,6 +426,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
414
426
  */
415
427
  description?: string | null;
416
428
 
429
+ /**
430
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
431
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
432
+ * or set null to display the name itself.
433
+ */
434
+ displayName?: string | null;
435
+
417
436
  /**
418
437
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
419
438
  */
@@ -503,6 +522,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
503
522
  | 'OFFICE'
504
523
  | 'THUNDERSTORM';
505
524
 
525
+ backgroundNoiseVolume: number;
526
+
506
527
  /**
507
528
  * Creation timestamp in ISO 8601 format
508
529
  */
@@ -578,7 +599,17 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
578
599
  /**
579
600
  * Base emotional state of the persona
580
601
  */
581
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
602
+ baseEmotion:
603
+ | 'NEUTRAL'
604
+ | 'CHEERFUL'
605
+ | 'CONFUSED'
606
+ | 'FRUSTRATED'
607
+ | 'SKEPTICAL'
608
+ | 'RUSHED'
609
+ | 'DISTRACTED'
610
+ | 'ANGRY'
611
+ | 'ANXIOUS'
612
+ | 'SAD';
582
613
 
583
614
  /**
584
615
  * How the persona confirms information
@@ -720,6 +751,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
720
751
  */
721
752
  description?: string | null;
722
753
 
754
+ /**
755
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
756
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
757
+ * or set null to display the name itself.
758
+ */
759
+ displayName?: string | null;
760
+
723
761
  /**
724
762
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
725
763
  */
@@ -804,6 +842,8 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
804
842
  | 'OFFICE'
805
843
  | 'THUNDERSTORM';
806
844
 
845
+ backgroundNoiseVolume: number;
846
+
807
847
  /**
808
848
  * Creation timestamp in ISO 8601 format
809
849
  */
@@ -879,7 +919,17 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
879
919
  /**
880
920
  * Base emotional state of the persona
881
921
  */
882
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
922
+ baseEmotion:
923
+ | 'NEUTRAL'
924
+ | 'CHEERFUL'
925
+ | 'CONFUSED'
926
+ | 'FRUSTRATED'
927
+ | 'SKEPTICAL'
928
+ | 'RUSHED'
929
+ | 'DISTRACTED'
930
+ | 'ANGRY'
931
+ | 'ANXIOUS'
932
+ | 'SAD';
883
933
 
884
934
  /**
885
935
  * How the persona confirms information
@@ -1021,6 +1071,13 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
1021
1071
  */
1022
1072
  description?: string | null;
1023
1073
 
1074
+ /**
1075
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
1076
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
1077
+ * or set null to display the name itself.
1078
+ */
1079
+ displayName?: string | null;
1080
+
1024
1081
  /**
1025
1082
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
1026
1083
  */
@@ -1124,6 +1181,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1124
1181
  | 'OFFICE'
1125
1182
  | 'THUNDERSTORM';
1126
1183
 
1184
+ backgroundNoiseVolume: number;
1185
+
1127
1186
  /**
1128
1187
  * Creation timestamp in ISO 8601 format
1129
1188
  */
@@ -1199,7 +1258,17 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1199
1258
  /**
1200
1259
  * Base emotional state of the persona
1201
1260
  */
1202
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
1261
+ baseEmotion:
1262
+ | 'NEUTRAL'
1263
+ | 'CHEERFUL'
1264
+ | 'CONFUSED'
1265
+ | 'FRUSTRATED'
1266
+ | 'SKEPTICAL'
1267
+ | 'RUSHED'
1268
+ | 'DISTRACTED'
1269
+ | 'ANGRY'
1270
+ | 'ANXIOUS'
1271
+ | 'SAD';
1203
1272
 
1204
1273
  /**
1205
1274
  * How the persona confirms information
@@ -1341,6 +1410,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1341
1410
  */
1342
1411
  description?: string | null;
1343
1412
 
1413
+ /**
1414
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
1415
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
1416
+ * or set null to display the name itself.
1417
+ */
1418
+ displayName?: string | null;
1419
+
1344
1420
  /**
1345
1421
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
1346
1422
  */
@@ -1430,6 +1506,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1430
1506
  | 'OFFICE'
1431
1507
  | 'THUNDERSTORM';
1432
1508
 
1509
+ backgroundNoiseVolume: number;
1510
+
1433
1511
  /**
1434
1512
  * Creation timestamp in ISO 8601 format
1435
1513
  */
@@ -1505,7 +1583,17 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1505
1583
  /**
1506
1584
  * Base emotional state of the persona
1507
1585
  */
1508
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
1586
+ baseEmotion:
1587
+ | 'NEUTRAL'
1588
+ | 'CHEERFUL'
1589
+ | 'CONFUSED'
1590
+ | 'FRUSTRATED'
1591
+ | 'SKEPTICAL'
1592
+ | 'RUSHED'
1593
+ | 'DISTRACTED'
1594
+ | 'ANGRY'
1595
+ | 'ANXIOUS'
1596
+ | 'SAD';
1509
1597
 
1510
1598
  /**
1511
1599
  * How the persona confirms information
@@ -1647,6 +1735,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1647
1735
  */
1648
1736
  description?: string | null;
1649
1737
 
1738
+ /**
1739
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
1740
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
1741
+ * or set null to display the name itself.
1742
+ */
1743
+ displayName?: string | null;
1744
+
1650
1745
  /**
1651
1746
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
1652
1747
  */
@@ -1731,6 +1826,8 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1731
1826
  | 'OFFICE'
1732
1827
  | 'THUNDERSTORM';
1733
1828
 
1829
+ backgroundNoiseVolume: number;
1830
+
1734
1831
  /**
1735
1832
  * Creation timestamp in ISO 8601 format
1736
1833
  */
@@ -1806,7 +1903,17 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1806
1903
  /**
1807
1904
  * Base emotional state of the persona
1808
1905
  */
1809
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
1906
+ baseEmotion:
1907
+ | 'NEUTRAL'
1908
+ | 'CHEERFUL'
1909
+ | 'CONFUSED'
1910
+ | 'FRUSTRATED'
1911
+ | 'SKEPTICAL'
1912
+ | 'RUSHED'
1913
+ | 'DISTRACTED'
1914
+ | 'ANGRY'
1915
+ | 'ANXIOUS'
1916
+ | 'SAD';
1810
1917
 
1811
1918
  /**
1812
1919
  * How the persona confirms information
@@ -1948,6 +2055,13 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1948
2055
  */
1949
2056
  description?: string | null;
1950
2057
 
2058
+ /**
2059
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
2060
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
2061
+ * or set null to display the name itself.
2062
+ */
2063
+ displayName?: string | null;
2064
+
1951
2065
  /**
1952
2066
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
1953
2067
  */
@@ -2051,6 +2165,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2051
2165
  | 'OFFICE'
2052
2166
  | 'THUNDERSTORM';
2053
2167
 
2168
+ backgroundNoiseVolume: number;
2169
+
2054
2170
  /**
2055
2171
  * Creation timestamp in ISO 8601 format
2056
2172
  */
@@ -2126,7 +2242,17 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2126
2242
  /**
2127
2243
  * Base emotional state of the persona
2128
2244
  */
2129
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
2245
+ baseEmotion:
2246
+ | 'NEUTRAL'
2247
+ | 'CHEERFUL'
2248
+ | 'CONFUSED'
2249
+ | 'FRUSTRATED'
2250
+ | 'SKEPTICAL'
2251
+ | 'RUSHED'
2252
+ | 'DISTRACTED'
2253
+ | 'ANGRY'
2254
+ | 'ANXIOUS'
2255
+ | 'SAD';
2130
2256
 
2131
2257
  /**
2132
2258
  * How the persona confirms information
@@ -2268,6 +2394,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2268
2394
  */
2269
2395
  description?: string | null;
2270
2396
 
2397
+ /**
2398
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
2399
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
2400
+ * or set null to display the name itself.
2401
+ */
2402
+ displayName?: string | null;
2403
+
2271
2404
  /**
2272
2405
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
2273
2406
  */
@@ -2357,6 +2490,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2357
2490
  | 'OFFICE'
2358
2491
  | 'THUNDERSTORM';
2359
2492
 
2493
+ backgroundNoiseVolume: number;
2494
+
2360
2495
  /**
2361
2496
  * Creation timestamp in ISO 8601 format
2362
2497
  */
@@ -2432,7 +2567,17 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2432
2567
  /**
2433
2568
  * Base emotional state of the persona
2434
2569
  */
2435
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
2570
+ baseEmotion:
2571
+ | 'NEUTRAL'
2572
+ | 'CHEERFUL'
2573
+ | 'CONFUSED'
2574
+ | 'FRUSTRATED'
2575
+ | 'SKEPTICAL'
2576
+ | 'RUSHED'
2577
+ | 'DISTRACTED'
2578
+ | 'ANGRY'
2579
+ | 'ANXIOUS'
2580
+ | 'SAD';
2436
2581
 
2437
2582
  /**
2438
2583
  * How the persona confirms information
@@ -2574,6 +2719,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2574
2719
  */
2575
2720
  description?: string | null;
2576
2721
 
2722
+ /**
2723
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
2724
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
2725
+ * or set null to display the name itself.
2726
+ */
2727
+ displayName?: string | null;
2728
+
2577
2729
  /**
2578
2730
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
2579
2731
  */
@@ -2658,6 +2810,8 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2658
2810
  | 'OFFICE'
2659
2811
  | 'THUNDERSTORM';
2660
2812
 
2813
+ backgroundNoiseVolume: number;
2814
+
2661
2815
  /**
2662
2816
  * Creation timestamp in ISO 8601 format
2663
2817
  */
@@ -2733,7 +2887,17 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2733
2887
  /**
2734
2888
  * Base emotional state of the persona
2735
2889
  */
2736
- baseEmotion: 'NEUTRAL' | 'CHEERFUL' | 'CONFUSED' | 'FRUSTRATED' | 'SKEPTICAL' | 'RUSHED' | 'DISTRACTED';
2890
+ baseEmotion:
2891
+ | 'NEUTRAL'
2892
+ | 'CHEERFUL'
2893
+ | 'CONFUSED'
2894
+ | 'FRUSTRATED'
2895
+ | 'SKEPTICAL'
2896
+ | 'RUSHED'
2897
+ | 'DISTRACTED'
2898
+ | 'ANGRY'
2899
+ | 'ANXIOUS'
2900
+ | 'SAD';
2737
2901
 
2738
2902
  /**
2739
2903
  * How the persona confirms information
@@ -2875,6 +3039,13 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2875
3039
  */
2876
3040
  description?: string | null;
2877
3041
 
3042
+ /**
3043
+ * Label shown in place of the name across the dashboard (e.g. a short descriptor
3044
+ * like "Irate Escalator"). The persona still identifies as `name` on calls. Omit
3045
+ * or set null to display the name itself.
3046
+ */
3047
+ displayName?: string | null;
3048
+
2878
3049
  /**
2879
3050
  * Secondary language ISO 639-1 code for code-switching (e.g., Hinglish, Spanglish)
2880
3051
  */