@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.
- package/CHANGELOG.md +44 -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
|
@@ -10,6 +10,15 @@ class CustomerFlowEdgeCase extends resource_1.APIResource {
|
|
|
10
10
|
* expectations. Omitted fields are left alone; `additionalExpectations` replaces
|
|
11
11
|
* the set wholesale rather than appending. Promoting it to the happy path is a
|
|
12
12
|
* separate call, since that also demotes the incumbent.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const customerFlowEdgeCase =
|
|
17
|
+
* await client.customerFlowEdgeCase.update(
|
|
18
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
19
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
13
22
|
*/
|
|
14
23
|
update(edgeCaseID, params, options) {
|
|
15
24
|
const { flowId, ...body } = params;
|
|
@@ -23,6 +32,14 @@ class CustomerFlowEdgeCase extends resource_1.APIResource {
|
|
|
23
32
|
* /v1/customer-flow/{flowId}/graph rather than here.
|
|
24
33
|
*
|
|
25
34
|
* Leave personaOverrideId or environmentId unset to inherit the happy path's.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const response = await client.customerFlowEdgeCase.add(
|
|
39
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
40
|
+
* { title: 'x' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
26
43
|
*/
|
|
27
44
|
add(flowID, body, options) {
|
|
28
45
|
return this._client.post((0, path_1.path) `/v1/customer-flow/${flowID}/edge-case`, { body, ...options });
|
|
@@ -31,6 +48,14 @@ class CustomerFlowEdgeCase extends resource_1.APIResource {
|
|
|
31
48
|
* Makes this edge case the flow's happy path, and the outgoing happy path an edge
|
|
32
49
|
* case. Its persona and environment are baked into it first, so edge cases that
|
|
33
50
|
* were inheriting keep the configuration they had.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const response = await client.customerFlowEdgeCase.promote(
|
|
55
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
56
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
34
59
|
*/
|
|
35
60
|
promote(edgeCaseID, params, options) {
|
|
36
61
|
const { flowId } = params;
|
|
@@ -40,6 +65,15 @@ class CustomerFlowEdgeCase extends resource_1.APIResource {
|
|
|
40
65
|
* Soft-deletes a variant. On a scripted flow the path engine re-creates a variant
|
|
41
66
|
* for any path still in the graph, so remove the path through PUT /graph instead
|
|
42
67
|
* if that is what you meant.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const customerFlowEdgeCase =
|
|
72
|
+
* await client.customerFlowEdgeCase.remove(
|
|
73
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
74
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
43
77
|
*/
|
|
44
78
|
remove(edgeCaseID, params, options) {
|
|
45
79
|
const { flowId } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-flow-edge-case.js","sourceRoot":"","sources":["../src/resources/customer-flow-edge-case.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,oBAAqB,SAAQ,sBAAW;IACnD
|
|
1
|
+
{"version":3,"file":"customer-flow-edge-case.js","sourceRoot":"","sources":["../src/resources/customer-flow-edge-case.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,UAAkB,EAClB,MAAwC,EACxC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,cAAc,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,GAAG,CACD,MAAc,EACd,IAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,YAAY,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,UAAkB,EAClB,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,cAAc,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACvG,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,UAAkB,EAClB,MAAwC,EACxC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,MAAM,cAAc,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;CACF;AA9FD,oDA8FC"}
|
|
@@ -7,6 +7,15 @@ export class CustomerFlowEdgeCase extends APIResource {
|
|
|
7
7
|
* expectations. Omitted fields are left alone; `additionalExpectations` replaces
|
|
8
8
|
* the set wholesale rather than appending. Promoting it to the happy path is a
|
|
9
9
|
* separate call, since that also demotes the incumbent.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const customerFlowEdgeCase =
|
|
14
|
+
* await client.customerFlowEdgeCase.update(
|
|
15
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
16
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
update(edgeCaseID, params, options) {
|
|
12
21
|
const { flowId, ...body } = params;
|
|
@@ -20,6 +29,14 @@ export class CustomerFlowEdgeCase extends APIResource {
|
|
|
20
29
|
* /v1/customer-flow/{flowId}/graph rather than here.
|
|
21
30
|
*
|
|
22
31
|
* Leave personaOverrideId or environmentId unset to inherit the happy path's.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const response = await client.customerFlowEdgeCase.add(
|
|
36
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
37
|
+
* { title: 'x' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
23
40
|
*/
|
|
24
41
|
add(flowID, body, options) {
|
|
25
42
|
return this._client.post(path `/v1/customer-flow/${flowID}/edge-case`, { body, ...options });
|
|
@@ -28,6 +45,14 @@ export class CustomerFlowEdgeCase extends APIResource {
|
|
|
28
45
|
* Makes this edge case the flow's happy path, and the outgoing happy path an edge
|
|
29
46
|
* case. Its persona and environment are baked into it first, so edge cases that
|
|
30
47
|
* were inheriting keep the configuration they had.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const response = await client.customerFlowEdgeCase.promote(
|
|
52
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
53
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
31
56
|
*/
|
|
32
57
|
promote(edgeCaseID, params, options) {
|
|
33
58
|
const { flowId } = params;
|
|
@@ -37,6 +62,15 @@ export class CustomerFlowEdgeCase extends APIResource {
|
|
|
37
62
|
* Soft-deletes a variant. On a scripted flow the path engine re-creates a variant
|
|
38
63
|
* for any path still in the graph, so remove the path through PUT /graph instead
|
|
39
64
|
* if that is what you meant.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const customerFlowEdgeCase =
|
|
69
|
+
* await client.customerFlowEdgeCase.remove(
|
|
70
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
71
|
+
* { flowId: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e' },
|
|
72
|
+
* );
|
|
73
|
+
* ```
|
|
40
74
|
*/
|
|
41
75
|
remove(edgeCaseID, params, options) {
|
|
42
76
|
const { flowId } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-flow-edge-case.mjs","sourceRoot":"","sources":["../src/resources/customer-flow-edge-case.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AA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