@roarkanalytics/sdk 2.33.2 → 3.0.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 (165) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent-endpoint.d.mts +26 -0
  10. package/resources/agent-endpoint.d.mts.map +1 -1
  11. package/resources/agent-endpoint.d.ts +26 -0
  12. package/resources/agent-endpoint.d.ts.map +1 -1
  13. package/resources/agent-endpoint.js +26 -0
  14. package/resources/agent-endpoint.js.map +1 -1
  15. package/resources/agent-endpoint.mjs +26 -0
  16. package/resources/agent-endpoint.mjs.map +1 -1
  17. package/resources/agent.d.mts +20 -0
  18. package/resources/agent.d.mts.map +1 -1
  19. package/resources/agent.d.ts +20 -0
  20. package/resources/agent.d.ts.map +1 -1
  21. package/resources/agent.js +20 -0
  22. package/resources/agent.js.map +1 -1
  23. package/resources/agent.mjs +20 -0
  24. package/resources/agent.mjs.map +1 -1
  25. package/resources/call.d.mts +39 -170
  26. package/resources/call.d.mts.map +1 -1
  27. package/resources/call.d.ts +39 -170
  28. package/resources/call.d.ts.map +1 -1
  29. package/resources/call.js +39 -0
  30. package/resources/call.js.map +1 -1
  31. package/resources/call.mjs +39 -0
  32. package/resources/call.mjs.map +1 -1
  33. package/resources/config.d.mts +90 -99
  34. package/resources/config.d.mts.map +1 -1
  35. package/resources/config.d.ts +90 -99
  36. package/resources/config.d.ts.map +1 -1
  37. package/resources/config.js +18 -5
  38. package/resources/config.js.map +1 -1
  39. package/resources/config.mjs +18 -5
  40. package/resources/config.mjs.map +1 -1
  41. package/resources/customer-flow-edge-case.d.mts +79 -0
  42. package/resources/customer-flow-edge-case.d.mts.map +1 -1
  43. package/resources/customer-flow-edge-case.d.ts +79 -0
  44. package/resources/customer-flow-edge-case.d.ts.map +1 -1
  45. package/resources/customer-flow-edge-case.js +34 -0
  46. package/resources/customer-flow-edge-case.js.map +1 -1
  47. package/resources/customer-flow-edge-case.mjs +34 -0
  48. package/resources/customer-flow-edge-case.mjs.map +1 -1
  49. package/resources/customer-flow.d.mts +271 -615
  50. package/resources/customer-flow.d.mts.map +1 -1
  51. package/resources/customer-flow.d.ts +271 -615
  52. package/resources/customer-flow.d.ts.map +1 -1
  53. package/resources/customer-flow.js +42 -1
  54. package/resources/customer-flow.js.map +1 -1
  55. package/resources/customer-flow.mjs +42 -1
  56. package/resources/customer-flow.mjs.map +1 -1
  57. package/resources/health.d.mts +5 -0
  58. package/resources/health.d.mts.map +1 -1
  59. package/resources/health.d.ts +5 -0
  60. package/resources/health.d.ts.map +1 -1
  61. package/resources/health.js +5 -0
  62. package/resources/health.js.map +1 -1
  63. package/resources/health.mjs +5 -0
  64. package/resources/health.mjs.map +1 -1
  65. package/resources/http-request-definition.d.mts +29 -0
  66. package/resources/http-request-definition.d.mts.map +1 -1
  67. package/resources/http-request-definition.d.ts +29 -0
  68. package/resources/http-request-definition.d.ts.map +1 -1
  69. package/resources/http-request-definition.js +29 -0
  70. package/resources/http-request-definition.js.map +1 -1
  71. package/resources/http-request-definition.mjs +29 -0
  72. package/resources/http-request-definition.mjs.map +1 -1
  73. package/resources/index.d.mts +1 -1
  74. package/resources/index.d.mts.map +1 -1
  75. package/resources/index.d.ts +1 -1
  76. package/resources/index.d.ts.map +1 -1
  77. package/resources/index.js.map +1 -1
  78. package/resources/index.mjs.map +1 -1
  79. package/resources/metric-collection-job.d.mts +23 -0
  80. package/resources/metric-collection-job.d.mts.map +1 -1
  81. package/resources/metric-collection-job.d.ts +23 -0
  82. package/resources/metric-collection-job.d.ts.map +1 -1
  83. package/resources/metric-collection-job.js +23 -0
  84. package/resources/metric-collection-job.js.map +1 -1
  85. package/resources/metric-collection-job.mjs +23 -0
  86. package/resources/metric-collection-job.mjs.map +1 -1
  87. package/resources/metric.d.mts +5 -7
  88. package/resources/metric.d.mts.map +1 -1
  89. package/resources/metric.d.ts +5 -7
  90. package/resources/metric.d.ts.map +1 -1
  91. package/resources/metric.js +5 -0
  92. package/resources/metric.js.map +1 -1
  93. package/resources/metric.mjs +5 -0
  94. package/resources/metric.mjs.map +1 -1
  95. package/resources/simulation-environment.d.mts +13 -0
  96. package/resources/simulation-environment.d.mts.map +1 -1
  97. package/resources/simulation-environment.d.ts +13 -0
  98. package/resources/simulation-environment.d.ts.map +1 -1
  99. package/resources/simulation-environment.js +13 -0
  100. package/resources/simulation-environment.js.map +1 -1
  101. package/resources/simulation-environment.mjs +13 -0
  102. package/resources/simulation-environment.mjs.map +1 -1
  103. package/resources/simulation-job.d.mts +14 -4
  104. package/resources/simulation-job.d.mts.map +1 -1
  105. package/resources/simulation-job.d.ts +14 -4
  106. package/resources/simulation-job.d.ts.map +1 -1
  107. package/resources/simulation-job.js +1 -1
  108. package/resources/simulation-job.js.map +1 -1
  109. package/resources/simulation-job.mjs +1 -1
  110. package/resources/simulation-job.mjs.map +1 -1
  111. package/resources/simulation-persona.d.mts +32 -3
  112. package/resources/simulation-persona.d.mts.map +1 -1
  113. package/resources/simulation-persona.d.ts +32 -3
  114. package/resources/simulation-persona.d.ts.map +1 -1
  115. package/resources/simulation-persona.js +2 -3
  116. package/resources/simulation-persona.js.map +1 -1
  117. package/resources/simulation-persona.mjs +2 -3
  118. package/resources/simulation-persona.mjs.map +1 -1
  119. package/resources/simulation-run-plan-job.d.mts +14 -2
  120. package/resources/simulation-run-plan-job.d.mts.map +1 -1
  121. package/resources/simulation-run-plan-job.d.ts +14 -2
  122. package/resources/simulation-run-plan-job.d.ts.map +1 -1
  123. package/resources/simulation-run-plan-job.js +7 -0
  124. package/resources/simulation-run-plan-job.js.map +1 -1
  125. package/resources/simulation-run-plan-job.mjs +7 -0
  126. package/resources/simulation-run-plan-job.mjs.map +1 -1
  127. package/resources/simulation.d.mts +2 -2
  128. package/resources/simulation.d.ts +2 -2
  129. package/resources/simulation.js +2 -2
  130. package/resources/simulation.mjs +2 -2
  131. package/resources/webhook.d.mts +23 -0
  132. package/resources/webhook.d.mts.map +1 -1
  133. package/resources/webhook.d.ts +23 -0
  134. package/resources/webhook.d.ts.map +1 -1
  135. package/resources/webhook.js +23 -0
  136. package/resources/webhook.js.map +1 -1
  137. package/resources/webhook.mjs +23 -0
  138. package/resources/webhook.mjs.map +1 -1
  139. package/src/client.ts +2 -0
  140. package/src/resources/agent-endpoint.ts +26 -0
  141. package/src/resources/agent.ts +20 -0
  142. package/src/resources/call.ts +39 -202
  143. package/src/resources/config.ts +123 -158
  144. package/src/resources/customer-flow-edge-case.ts +88 -0
  145. package/src/resources/customer-flow.ts +318 -1009
  146. package/src/resources/health.ts +5 -0
  147. package/src/resources/http-request-definition.ts +29 -0
  148. package/src/resources/index.ts +1 -0
  149. package/src/resources/metric-collection-job.ts +23 -0
  150. package/src/resources/metric.ts +5 -18
  151. package/src/resources/simulation-environment.ts +13 -0
  152. package/src/resources/simulation-job.ts +16 -4
  153. package/src/resources/simulation-persona.ts +38 -3
  154. package/src/resources/simulation-run-plan-job.ts +15 -2
  155. package/src/resources/simulation.ts +2 -2
  156. package/src/resources/webhook.ts +23 -0
  157. package/src/version.ts +1 -1
  158. package/version.d.mts +1 -1
  159. package/version.d.mts.map +1 -1
  160. package/version.d.ts +1 -1
  161. package/version.d.ts.map +1 -1
  162. package/version.js +1 -1
  163. package/version.js.map +1 -1
  164. package/version.mjs +1 -1
  165. package/version.mjs.map +1 -1
@@ -12,6 +12,15 @@ export class CustomerFlowEdgeCase extends APIResource {
12
12
  * expectations. Omitted fields are left alone; `additionalExpectations` replaces
13
13
  * the set wholesale rather than appending. Promoting it to the happy path is a
14
14
  * separate call, since that also demotes the incumbent.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const customerFlowEdgeCase =
19
+ * await client.customerFlowEdgeCase.update(
20
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
21
+ * { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
22
+ * );
23
+ * ```
15
24
  */
16
25
  update(
17
26
  edgeCaseID: string,
@@ -30,6 +39,14 @@ export class CustomerFlowEdgeCase extends APIResource {
30
39
  * /v1/customer-flow/{flowId}/graph rather than here.
31
40
  *
32
41
  * Leave personaOverrideId or environmentId unset to inherit the happy path's.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.customerFlowEdgeCase.add(
46
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
47
+ * { title: 'x' },
48
+ * );
49
+ * ```
33
50
  */
34
51
  add(
35
52
  flowID: string,
@@ -43,6 +60,14 @@ export class CustomerFlowEdgeCase extends APIResource {
43
60
  * Makes this edge case the flow's happy path, and the outgoing happy path an edge
44
61
  * case. Its persona and environment are baked into it first, so edge cases that
45
62
  * were inheriting keep the configuration they had.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const response = await client.customerFlowEdgeCase.promote(
67
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
68
+ * { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
69
+ * );
70
+ * ```
46
71
  */
47
72
  promote(
48
73
  edgeCaseID: string,
@@ -57,6 +82,15 @@ export class CustomerFlowEdgeCase extends APIResource {
57
82
  * Soft-deletes a variant. On a scripted flow the path engine re-creates a variant
58
83
  * for any path still in the graph, so remove the path through PUT /graph instead
59
84
  * if that is what you meant.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const customerFlowEdgeCase =
89
+ * await client.customerFlowEdgeCase.remove(
90
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
91
+ * { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
92
+ * );
93
+ * ```
60
94
  */
61
95
  remove(
62
96
  edgeCaseID: string,
@@ -214,6 +248,12 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
214
248
  | 'PT'
215
249
  | 'IL';
216
250
 
251
+ /**
252
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
253
+ * voice for are accepted; defaults to ADULT, which every accent supports.
254
+ */
255
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
256
+
217
257
  /**
218
258
  * Background noise setting
219
259
  */
@@ -512,6 +552,12 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
512
552
  | 'PT'
513
553
  | 'IL';
514
554
 
555
+ /**
556
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
557
+ * voice for are accepted; defaults to ADULT, which every accent supports.
558
+ */
559
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
560
+
515
561
  /**
516
562
  * Background noise setting
517
563
  */
@@ -805,6 +851,12 @@ export namespace CustomerFlowEdgeCaseUpdateResponse {
805
851
  | 'PT'
806
852
  | 'IL';
807
853
 
854
+ /**
855
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
856
+ * voice for are accepted; defaults to ADULT, which every accent supports.
857
+ */
858
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
859
+
808
860
  /**
809
861
  * Background noise setting
810
862
  */
@@ -1117,6 +1169,12 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1117
1169
  | 'PT'
1118
1170
  | 'IL';
1119
1171
 
1172
+ /**
1173
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
1174
+ * voice for are accepted; defaults to ADULT, which every accent supports.
1175
+ */
1176
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
1177
+
1120
1178
  /**
1121
1179
  * Background noise setting
1122
1180
  */
@@ -1415,6 +1473,12 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1415
1473
  | 'PT'
1416
1474
  | 'IL';
1417
1475
 
1476
+ /**
1477
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
1478
+ * voice for are accepted; defaults to ADULT, which every accent supports.
1479
+ */
1480
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
1481
+
1418
1482
  /**
1419
1483
  * Background noise setting
1420
1484
  */
@@ -1708,6 +1772,12 @@ export namespace CustomerFlowEdgeCaseAddResponse {
1708
1772
  | 'PT'
1709
1773
  | 'IL';
1710
1774
 
1775
+ /**
1776
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
1777
+ * voice for are accepted; defaults to ADULT, which every accent supports.
1778
+ */
1779
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
1780
+
1711
1781
  /**
1712
1782
  * Background noise setting
1713
1783
  */
@@ -2020,6 +2090,12 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2020
2090
  | 'PT'
2021
2091
  | 'IL';
2022
2092
 
2093
+ /**
2094
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
2095
+ * voice for are accepted; defaults to ADULT, which every accent supports.
2096
+ */
2097
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
2098
+
2023
2099
  /**
2024
2100
  * Background noise setting
2025
2101
  */
@@ -2318,6 +2394,12 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2318
2394
  | 'PT'
2319
2395
  | 'IL';
2320
2396
 
2397
+ /**
2398
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
2399
+ * voice for are accepted; defaults to ADULT, which every accent supports.
2400
+ */
2401
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
2402
+
2321
2403
  /**
2322
2404
  * Background noise setting
2323
2405
  */
@@ -2611,6 +2693,12 @@ export namespace CustomerFlowEdgeCasePromoteResponse {
2611
2693
  | 'PT'
2612
2694
  | 'IL';
2613
2695
 
2696
+ /**
2697
+ * How old the caller sounds and behaves. Only ages the persona's accent has a
2698
+ * voice for are accepted; defaults to ADULT, which every accent supports.
2699
+ */
2700
+ age: 'CHILD' | 'TEENAGER' | 'ADULT' | 'ELDERLY';
2701
+
2614
2702
  /**
2615
2703
  * Background noise setting
2616
2704
  */