@roarkanalytics/sdk 2.34.0 → 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.
- package/CHANGELOG.md +31 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-endpoint.d.mts +26 -0
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +26 -0
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-endpoint.js +26 -0
- package/resources/agent-endpoint.js.map +1 -1
- package/resources/agent-endpoint.mjs +26 -0
- package/resources/agent-endpoint.mjs.map +1 -1
- package/resources/agent.d.mts +20 -0
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +20 -0
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +20 -0
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +20 -0
- package/resources/agent.mjs.map +1 -1
- package/resources/call.d.mts +39 -170
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +39 -170
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +39 -0
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +39 -0
- package/resources/call.mjs.map +1 -1
- package/resources/config.d.mts +90 -99
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +90 -99
- package/resources/config.d.ts.map +1 -1
- package/resources/config.js +18 -5
- package/resources/config.js.map +1 -1
- package/resources/config.mjs +18 -5
- package/resources/config.mjs.map +1 -1
- package/resources/customer-flow-edge-case.d.mts +79 -0
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +79 -0
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow-edge-case.js +34 -0
- package/resources/customer-flow-edge-case.js.map +1 -1
- package/resources/customer-flow-edge-case.mjs +34 -0
- package/resources/customer-flow-edge-case.mjs.map +1 -1
- package/resources/customer-flow.d.mts +271 -615
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +271 -615
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/customer-flow.js +42 -1
- package/resources/customer-flow.js.map +1 -1
- package/resources/customer-flow.mjs +42 -1
- package/resources/customer-flow.mjs.map +1 -1
- package/resources/health.d.mts +5 -0
- package/resources/health.d.mts.map +1 -1
- package/resources/health.d.ts +5 -0
- package/resources/health.d.ts.map +1 -1
- package/resources/health.js +5 -0
- package/resources/health.js.map +1 -1
- package/resources/health.mjs +5 -0
- package/resources/health.mjs.map +1 -1
- package/resources/http-request-definition.d.mts +29 -0
- package/resources/http-request-definition.d.mts.map +1 -1
- package/resources/http-request-definition.d.ts +29 -0
- package/resources/http-request-definition.d.ts.map +1 -1
- package/resources/http-request-definition.js +29 -0
- package/resources/http-request-definition.js.map +1 -1
- package/resources/http-request-definition.mjs +29 -0
- package/resources/http-request-definition.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/metric-collection-job.d.mts +23 -0
- package/resources/metric-collection-job.d.mts.map +1 -1
- package/resources/metric-collection-job.d.ts +23 -0
- package/resources/metric-collection-job.d.ts.map +1 -1
- package/resources/metric-collection-job.js +23 -0
- package/resources/metric-collection-job.js.map +1 -1
- package/resources/metric-collection-job.mjs +23 -0
- package/resources/metric-collection-job.mjs.map +1 -1
- package/resources/metric.d.mts +5 -7
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +5 -7
- package/resources/metric.d.ts.map +1 -1
- package/resources/metric.js +5 -0
- package/resources/metric.js.map +1 -1
- package/resources/metric.mjs +5 -0
- package/resources/metric.mjs.map +1 -1
- package/resources/simulation-environment.d.mts +13 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +13 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-environment.js +13 -0
- package/resources/simulation-environment.js.map +1 -1
- package/resources/simulation-environment.mjs +13 -0
- package/resources/simulation-environment.mjs.map +1 -1
- package/resources/simulation-job.d.mts +14 -4
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +14 -4
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-job.js +1 -1
- package/resources/simulation-job.js.map +1 -1
- package/resources/simulation-job.mjs +1 -1
- package/resources/simulation-job.mjs.map +1 -1
- package/resources/simulation-persona.d.mts +32 -3
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +32 -3
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-persona.js +2 -3
- package/resources/simulation-persona.js.map +1 -1
- package/resources/simulation-persona.mjs +2 -3
- package/resources/simulation-persona.mjs.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +14 -2
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +14 -2
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.js +7 -0
- package/resources/simulation-run-plan-job.js.map +1 -1
- package/resources/simulation-run-plan-job.mjs +7 -0
- package/resources/simulation-run-plan-job.mjs.map +1 -1
- package/resources/simulation.d.mts +2 -2
- package/resources/simulation.d.ts +2 -2
- package/resources/simulation.js +2 -2
- package/resources/simulation.mjs +2 -2
- package/resources/webhook.d.mts +23 -0
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +23 -0
- package/resources/webhook.d.ts.map +1 -1
- package/resources/webhook.js +23 -0
- package/resources/webhook.js.map +1 -1
- package/resources/webhook.mjs +23 -0
- package/resources/webhook.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/agent-endpoint.ts +26 -0
- package/src/resources/agent.ts +20 -0
- package/src/resources/call.ts +39 -202
- package/src/resources/config.ts +123 -158
- package/src/resources/customer-flow-edge-case.ts +88 -0
- package/src/resources/customer-flow.ts +318 -1009
- package/src/resources/health.ts +5 -0
- package/src/resources/http-request-definition.ts +29 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/metric-collection-job.ts +23 -0
- package/src/resources/metric.ts +5 -18
- package/src/resources/simulation-environment.ts +13 -0
- package/src/resources/simulation-job.ts +16 -4
- package/src/resources/simulation-persona.ts +38 -3
- package/src/resources/simulation-run-plan-job.ts +15 -2
- package/src/resources/simulation.ts +2 -2
- package/src/resources/webhook.ts +23 -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
|
@@ -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
|
*/
|