@roarkanalytics/cli 0.1.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/LICENSE +201 -0
- package/README.md +225 -0
- package/bin.d.ts +2 -0
- package/bin.js +14 -0
- package/commands.d.ts +5 -0
- package/commands.js +3553 -0
- package/completions.d.ts +1 -0
- package/completions.js +13 -0
- package/index.d.ts +6 -0
- package/index.js +26 -0
- package/man/roark-agent-create.1 +99 -0
- package/man/roark-agent-endpoint-create.1 +108 -0
- package/man/roark-agent-endpoint-get.1 +93 -0
- package/man/roark-agent-endpoint-list.1 +102 -0
- package/man/roark-agent-endpoint-update.1 +103 -0
- package/man/roark-agent-get.1 +93 -0
- package/man/roark-agent-list.1 +99 -0
- package/man/roark-agent-update.1 +100 -0
- package/man/roark-call-create.1 +150 -0
- package/man/roark-call-get.1 +93 -0
- package/man/roark-call-list.1 +111 -0
- package/man/roark-call-metric-list.1 +100 -0
- package/man/roark-call-sentiment-run-list.1 +93 -0
- package/man/roark-call-transcript-get.1 +97 -0
- package/man/roark-config-apply.1 +96 -0
- package/man/roark-config-diff.1 +96 -0
- package/man/roark-customer-flow-create.1 +97 -0
- package/man/roark-customer-flow-delete.1 +93 -0
- package/man/roark-customer-flow-edge-case-create.1 +112 -0
- package/man/roark-customer-flow-edge-case-delete.1 +96 -0
- package/man/roark-customer-flow-edge-case-promote.1 +96 -0
- package/man/roark-customer-flow-edge-case-update.1 +118 -0
- package/man/roark-customer-flow-get.1 +93 -0
- package/man/roark-customer-flow-graph-replace.1 +100 -0
- package/man/roark-customer-flow-happy-path-update.1 +115 -0
- package/man/roark-customer-flow-list.1 +105 -0
- package/man/roark-customer-flow-update.1 +109 -0
- package/man/roark-health.1 +89 -0
- package/man/roark-http-request-definition-create.1 +108 -0
- package/man/roark-http-request-definition-get.1 +93 -0
- package/man/roark-http-request-definition-list.1 +96 -0
- package/man/roark-http-request-definition-update.1 +109 -0
- package/man/roark-metric-collection-job-create.1 +99 -0
- package/man/roark-metric-collection-job-get.1 +93 -0
- package/man/roark-metric-collection-job-list.1 +99 -0
- package/man/roark-metric-definition-create.1 +100 -0
- package/man/roark-metric-definition-list.1 +89 -0
- package/man/roark-metric-policy-create.1 +105 -0
- package/man/roark-metric-policy-delete.1 +93 -0
- package/man/roark-metric-policy-get.1 +93 -0
- package/man/roark-metric-policy-list.1 +99 -0
- package/man/roark-metric-policy-update.1 +106 -0
- package/man/roark-simulation-environment-get.1 +93 -0
- package/man/roark-simulation-environment-list.1 +96 -0
- package/man/roark-simulation-job-get.1 +93 -0
- package/man/roark-simulation-job-lookup.1 +96 -0
- package/man/roark-simulation-persona-create.1 +156 -0
- package/man/roark-simulation-persona-get.1 +93 -0
- package/man/roark-simulation-persona-list.1 +99 -0
- package/man/roark-simulation-persona-update.1 +160 -0
- package/man/roark-simulation-plan-create.1 +138 -0
- package/man/roark-simulation-plan-delete.1 +93 -0
- package/man/roark-simulation-plan-get.1 +93 -0
- package/man/roark-simulation-plan-job-get.1 +93 -0
- package/man/roark-simulation-plan-job-list.1 +108 -0
- package/man/roark-simulation-plan-job-start.1 +97 -0
- package/man/roark-simulation-plan-list.1 +102 -0
- package/man/roark-simulation-plan-update.1 +142 -0
- package/man/roark-simulation-run.1 +97 -0
- package/man/roark-webhook-create.1 +102 -0
- package/man/roark-webhook-delete.1 +93 -0
- package/man/roark-webhook-get.1 +93 -0
- package/man/roark-webhook-list.1 +96 -0
- package/man/roark.1 +287 -0
- package/package.json +102 -0
- package/runtime/commands/api.d.ts +26 -0
- package/runtime/commands/api.js +85 -0
- package/runtime/commands/auth.d.ts +9 -0
- package/runtime/commands/auth.js +111 -0
- package/runtime/commands/completion.d.ts +9 -0
- package/runtime/commands/completion.js +42 -0
- package/runtime/commands/config.d.ts +15 -0
- package/runtime/commands/config.js +125 -0
- package/runtime/config.d.ts +65 -0
- package/runtime/config.js +163 -0
- package/runtime/confirm.d.ts +16 -0
- package/runtime/confirm.js +34 -0
- package/runtime/errors.d.ts +45 -0
- package/runtime/errors.js +91 -0
- package/runtime/input.d.ts +52 -0
- package/runtime/input.js +211 -0
- package/runtime/output.d.ts +41 -0
- package/runtime/output.js +90 -0
- package/runtime/program.d.ts +45 -0
- package/runtime/program.js +305 -0
- package/runtime/types.d.ts +53 -0
- package/runtime/types.js +10 -0
- package/version.d.ts +1 -0
- package/version.js +8 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-CUSTOMER\-FLOW\-GRAPH\-REPLACE" "1" "" "roark-customer-flow-graph-replace" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-customer\-flow\-graph\-replace \- Replace a scripted flow's steps
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark customer\-flow graph replace
|
|
7
|
+
\fIflow\-id\fR [\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Replaces a scripted flow's conversation graph with the tree you send. This is a full replace, not a merge: a step you omit is removed. Include `nodeId` on a step to update the existing one, omit it to create a new step. Where two branches rejoin, keep the `mergeIntoNodeIds` references a read gave you. Dropping them un\-merges those branches and is refused unless `allowUnmerge` is set. A change to the set of paths re\-seeds how the flow runs, which the response reports as `variantsReshaped` along with the resulting happy path and edge cases.
|
|
10
|
+
.SH "API"
|
|
11
|
+
PUT /v1/customer\-flow/{flowId}/graph
|
|
12
|
+
.SH "ARGUMENTS"
|
|
13
|
+
.TP
|
|
14
|
+
\fIflow\-id\fR
|
|
15
|
+
The flow\-id.
|
|
16
|
+
.SH "OPTIONS"
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-graph\fR \fI<value>\fR
|
|
19
|
+
The complete graph. This replaces the flow's existing steps rather than merging into them. Required.
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-allow\-unmerge\fR
|
|
22
|
+
Confirms a write that drops branches which currently rejoin. Only needed when the request omits mergeIntoNodeIds references the flow already had; a faithful round trip never needs it. Optional.
|
|
23
|
+
.SH "GLOBAL OPTIONS"
|
|
24
|
+
.TP
|
|
25
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
26
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
27
|
+
.TP
|
|
28
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
29
|
+
Skip confirmation prompts.
|
|
30
|
+
.TP
|
|
31
|
+
\fB\-\-no\-input\fR
|
|
32
|
+
Never prompt; fail instead.
|
|
33
|
+
.TP
|
|
34
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
35
|
+
API base URL.
|
|
36
|
+
.TP
|
|
37
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
38
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
39
|
+
.TP
|
|
40
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
41
|
+
Request timeout in milliseconds.
|
|
42
|
+
.TP
|
|
43
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
44
|
+
Retries for retryable failures.
|
|
45
|
+
.TP
|
|
46
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
47
|
+
Output format: auto, json, jsonl, plain.
|
|
48
|
+
.TP
|
|
49
|
+
\fB\-\-json\fR
|
|
50
|
+
Shorthand for \-\-format json.
|
|
51
|
+
.TP
|
|
52
|
+
\fB\-\-no\-color\fR
|
|
53
|
+
Disable colour.
|
|
54
|
+
.TP
|
|
55
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
56
|
+
Suppress non\-essential output.
|
|
57
|
+
.TP
|
|
58
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
59
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
60
|
+
.SH "EXAMPLES"
|
|
61
|
+
.PP
|
|
62
|
+
.RS 4
|
|
63
|
+
.nf
|
|
64
|
+
roark customer\-flow graph replace <flow\-id> \-\-graph <value>
|
|
65
|
+
.fi
|
|
66
|
+
.RE
|
|
67
|
+
.SH "ENVIRONMENT"
|
|
68
|
+
.TP
|
|
69
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
70
|
+
Bearer token used when \-\-token is not given.
|
|
71
|
+
.TP
|
|
72
|
+
\fBROARK_BASE_URL\fR
|
|
73
|
+
API base URL.
|
|
74
|
+
.TP
|
|
75
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
76
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
77
|
+
.TP
|
|
78
|
+
\fBNO_COLOR\fR
|
|
79
|
+
Disables colour when set to any value.
|
|
80
|
+
.SH "EXIT STATUS"
|
|
81
|
+
.TP
|
|
82
|
+
\fB0\fR
|
|
83
|
+
The command succeeded.
|
|
84
|
+
.TP
|
|
85
|
+
\fB1\fR
|
|
86
|
+
The API rejected the request.
|
|
87
|
+
.TP
|
|
88
|
+
\fB2\fR
|
|
89
|
+
The command line was wrong.
|
|
90
|
+
.TP
|
|
91
|
+
\fB3\fR
|
|
92
|
+
No credential, or the credential was refused.
|
|
93
|
+
.TP
|
|
94
|
+
\fB4\fR
|
|
95
|
+
The addressed resource does not exist.
|
|
96
|
+
.TP
|
|
97
|
+
\fB5\fR
|
|
98
|
+
The request never completed: connection, timeout, or abort.
|
|
99
|
+
.SH "SEE ALSO"
|
|
100
|
+
.BR roark (1)
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-CUSTOMER\-FLOW\-HAPPY\-PATH\-UPDATE" "1" "" "roark-customer-flow-happy-path-update" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-customer\-flow\-happy\-path\-update \- Update a flow's happy path
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark customer\-flow happy\-path update
|
|
7
|
+
\fIflow\-id\fR [\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Updates the happy path's title, persona, environment, brief or expectations. Omitted fields are left alone; `additionalExpectations` replaces the set wholesale rather than appending. Its persona and environment are what the edge cases inherit, so changing them here changes every edge case that does not name its own.
|
|
10
|
+
.SH "API"
|
|
11
|
+
PUT /v1/customer\-flow/{flowId}/happy\-path
|
|
12
|
+
.SH "ARGUMENTS"
|
|
13
|
+
.TP
|
|
14
|
+
\fIflow\-id\fR
|
|
15
|
+
The flow\-id.
|
|
16
|
+
.SH "OPTIONS"
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-title\fR \fI<value>\fR
|
|
19
|
+
Optional.
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-environment\-id\fR \fI<value>\fR
|
|
22
|
+
Optional.
|
|
23
|
+
.TP
|
|
24
|
+
\fB\-\-prompt\fR \fI<value>\fR
|
|
25
|
+
Optional.
|
|
26
|
+
.TP
|
|
27
|
+
\fB\-\-preceded\-by\-customer\-flow\-id\fR \fI<value>\fR
|
|
28
|
+
Optional.
|
|
29
|
+
.TP
|
|
30
|
+
\fB\-\-preceded\-by\-customer\-flow\-variant\-id\fR \fI<value>\fR
|
|
31
|
+
Optional.
|
|
32
|
+
.TP
|
|
33
|
+
\fB\-\-persona\-override\-id\fR \fI<value>\fR
|
|
34
|
+
The persona this runs as. Null on an edge case inherits the happy path's. Optional.
|
|
35
|
+
.TP
|
|
36
|
+
\fB\-\-additional\-expectations\fR \fI<value>\fR
|
|
37
|
+
Replaces the expectations that apply to this variant on top of the flow's. Omit to leave them alone, send [] to clear. Improv flows only: a scripted variant's expectations come from the agent turns on its path and are rewritten on the next graph edit. Optional.
|
|
38
|
+
.SH "GLOBAL OPTIONS"
|
|
39
|
+
.TP
|
|
40
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
41
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
42
|
+
.TP
|
|
43
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
44
|
+
Skip confirmation prompts.
|
|
45
|
+
.TP
|
|
46
|
+
\fB\-\-no\-input\fR
|
|
47
|
+
Never prompt; fail instead.
|
|
48
|
+
.TP
|
|
49
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
50
|
+
API base URL.
|
|
51
|
+
.TP
|
|
52
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
53
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
54
|
+
.TP
|
|
55
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
56
|
+
Request timeout in milliseconds.
|
|
57
|
+
.TP
|
|
58
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
59
|
+
Retries for retryable failures.
|
|
60
|
+
.TP
|
|
61
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
62
|
+
Output format: auto, json, jsonl, plain.
|
|
63
|
+
.TP
|
|
64
|
+
\fB\-\-json\fR
|
|
65
|
+
Shorthand for \-\-format json.
|
|
66
|
+
.TP
|
|
67
|
+
\fB\-\-no\-color\fR
|
|
68
|
+
Disable colour.
|
|
69
|
+
.TP
|
|
70
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
71
|
+
Suppress non\-essential output.
|
|
72
|
+
.TP
|
|
73
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
74
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
75
|
+
.SH "EXAMPLES"
|
|
76
|
+
.PP
|
|
77
|
+
.RS 4
|
|
78
|
+
.nf
|
|
79
|
+
roark customer\-flow happy\-path update <flow\-id>
|
|
80
|
+
.fi
|
|
81
|
+
.RE
|
|
82
|
+
.SH "ENVIRONMENT"
|
|
83
|
+
.TP
|
|
84
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
85
|
+
Bearer token used when \-\-token is not given.
|
|
86
|
+
.TP
|
|
87
|
+
\fBROARK_BASE_URL\fR
|
|
88
|
+
API base URL.
|
|
89
|
+
.TP
|
|
90
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
91
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
92
|
+
.TP
|
|
93
|
+
\fBNO_COLOR\fR
|
|
94
|
+
Disables colour when set to any value.
|
|
95
|
+
.SH "EXIT STATUS"
|
|
96
|
+
.TP
|
|
97
|
+
\fB0\fR
|
|
98
|
+
The command succeeded.
|
|
99
|
+
.TP
|
|
100
|
+
\fB1\fR
|
|
101
|
+
The API rejected the request.
|
|
102
|
+
.TP
|
|
103
|
+
\fB2\fR
|
|
104
|
+
The command line was wrong.
|
|
105
|
+
.TP
|
|
106
|
+
\fB3\fR
|
|
107
|
+
No credential, or the credential was refused.
|
|
108
|
+
.TP
|
|
109
|
+
\fB4\fR
|
|
110
|
+
The addressed resource does not exist.
|
|
111
|
+
.TP
|
|
112
|
+
\fB5\fR
|
|
113
|
+
The request never completed: connection, timeout, or abort.
|
|
114
|
+
.SH "SEE ALSO"
|
|
115
|
+
.BR roark (1)
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-CUSTOMER\-FLOW\-LIST" "1" "" "roark-customer-flow-list" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-customer\-flow\-list \- List customer flows
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark customer\-flow list
|
|
7
|
+
[\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Returns a paginated list of customer flows with their agents, expectations, happy path and edge cases. The step graph is the one field omitted: reading it walks the project's whole step graph, so it comes back from the single\-flow endpoint instead. Customer flows are how a project describes what to test; they replace the older simulation scenarios.
|
|
10
|
+
.SH "API"
|
|
11
|
+
GET /v1/customer\-flow
|
|
12
|
+
.SH "OPTIONS"
|
|
13
|
+
.TP
|
|
14
|
+
\fB\-\-limit\fR \fI<value>\fR
|
|
15
|
+
Optional.
|
|
16
|
+
.TP
|
|
17
|
+
\fB\-\-after\fR \fI<value>\fR
|
|
18
|
+
Optional.
|
|
19
|
+
.TP
|
|
20
|
+
\fB\-\-search\-text\fR \fI<value>\fR
|
|
21
|
+
Optional.
|
|
22
|
+
.TP
|
|
23
|
+
\fB\-\-type\fR \fI<value>\fR
|
|
24
|
+
One of: SCRIPTED, IMPROV, VOICEMAIL. Optional.
|
|
25
|
+
.TP
|
|
26
|
+
\fB\-\-include\-system\fR \fI<value>\fR
|
|
27
|
+
One of: true, false. Optional.
|
|
28
|
+
.SH "GLOBAL OPTIONS"
|
|
29
|
+
.TP
|
|
30
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
31
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
32
|
+
.TP
|
|
33
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
34
|
+
Skip confirmation prompts.
|
|
35
|
+
.TP
|
|
36
|
+
\fB\-\-no\-input\fR
|
|
37
|
+
Never prompt; fail instead.
|
|
38
|
+
.TP
|
|
39
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
40
|
+
API base URL.
|
|
41
|
+
.TP
|
|
42
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
43
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
44
|
+
.TP
|
|
45
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
46
|
+
Request timeout in milliseconds.
|
|
47
|
+
.TP
|
|
48
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
49
|
+
Retries for retryable failures.
|
|
50
|
+
.TP
|
|
51
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
52
|
+
Output format: auto, json, jsonl, plain.
|
|
53
|
+
.TP
|
|
54
|
+
\fB\-\-json\fR
|
|
55
|
+
Shorthand for \-\-format json.
|
|
56
|
+
.TP
|
|
57
|
+
\fB\-\-no\-color\fR
|
|
58
|
+
Disable colour.
|
|
59
|
+
.TP
|
|
60
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
61
|
+
Suppress non\-essential output.
|
|
62
|
+
.TP
|
|
63
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
64
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
65
|
+
.SH "EXAMPLES"
|
|
66
|
+
.PP
|
|
67
|
+
.RS 4
|
|
68
|
+
.nf
|
|
69
|
+
roark customer\-flow list
|
|
70
|
+
.fi
|
|
71
|
+
.RE
|
|
72
|
+
.SH "ENVIRONMENT"
|
|
73
|
+
.TP
|
|
74
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
75
|
+
Bearer token used when \-\-token is not given.
|
|
76
|
+
.TP
|
|
77
|
+
\fBROARK_BASE_URL\fR
|
|
78
|
+
API base URL.
|
|
79
|
+
.TP
|
|
80
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
81
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
82
|
+
.TP
|
|
83
|
+
\fBNO_COLOR\fR
|
|
84
|
+
Disables colour when set to any value.
|
|
85
|
+
.SH "EXIT STATUS"
|
|
86
|
+
.TP
|
|
87
|
+
\fB0\fR
|
|
88
|
+
The command succeeded.
|
|
89
|
+
.TP
|
|
90
|
+
\fB1\fR
|
|
91
|
+
The API rejected the request.
|
|
92
|
+
.TP
|
|
93
|
+
\fB2\fR
|
|
94
|
+
The command line was wrong.
|
|
95
|
+
.TP
|
|
96
|
+
\fB3\fR
|
|
97
|
+
No credential, or the credential was refused.
|
|
98
|
+
.TP
|
|
99
|
+
\fB4\fR
|
|
100
|
+
The addressed resource does not exist.
|
|
101
|
+
.TP
|
|
102
|
+
\fB5\fR
|
|
103
|
+
The request never completed: connection, timeout, or abort.
|
|
104
|
+
.SH "SEE ALSO"
|
|
105
|
+
.BR roark (1)
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-CUSTOMER\-FLOW\-UPDATE" "1" "" "roark-customer-flow-update" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-customer\-flow\-update \- Update a customer flow
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark customer\-flow update
|
|
7
|
+
\fIflow\-id\fR [\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Updates a flow's title, description, branching mode, linked agents or flow\-level expectations. The step graph is replaced through PUT /graph.
|
|
10
|
+
.SH "API"
|
|
11
|
+
PUT /v1/customer\-flow/{flowId}
|
|
12
|
+
.SH "ARGUMENTS"
|
|
13
|
+
.TP
|
|
14
|
+
\fIflow\-id\fR
|
|
15
|
+
The flow\-id.
|
|
16
|
+
.SH "OPTIONS"
|
|
17
|
+
.TP
|
|
18
|
+
\fB\-\-title\fR \fI<value>\fR
|
|
19
|
+
Optional.
|
|
20
|
+
.TP
|
|
21
|
+
\fB\-\-description\fR \fI<value>\fR
|
|
22
|
+
Optional.
|
|
23
|
+
.TP
|
|
24
|
+
\fB\-\-branching\-mode\fR \fI<value>\fR
|
|
25
|
+
Scripted flows only. One of: DETERMINISTIC, ADAPTIVE. Optional.
|
|
26
|
+
.TP
|
|
27
|
+
\fB\-\-agent\-ids\fR \fI<value>\fR
|
|
28
|
+
Replaces the linked agents. Omit to leave them unchanged. An improv flow must keep at least one; a scripted flow can be left with none. Repeatable. Optional.
|
|
29
|
+
.TP
|
|
30
|
+
\fB\-\-agent\-expectations\fR \fI<value>\fR
|
|
31
|
+
Replaces the flow\-level expectations. Omit to leave them unchanged. Optional.
|
|
32
|
+
.SH "GLOBAL OPTIONS"
|
|
33
|
+
.TP
|
|
34
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
35
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
36
|
+
.TP
|
|
37
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
38
|
+
Skip confirmation prompts.
|
|
39
|
+
.TP
|
|
40
|
+
\fB\-\-no\-input\fR
|
|
41
|
+
Never prompt; fail instead.
|
|
42
|
+
.TP
|
|
43
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
44
|
+
API base URL.
|
|
45
|
+
.TP
|
|
46
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
47
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
48
|
+
.TP
|
|
49
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
50
|
+
Request timeout in milliseconds.
|
|
51
|
+
.TP
|
|
52
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
53
|
+
Retries for retryable failures.
|
|
54
|
+
.TP
|
|
55
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
56
|
+
Output format: auto, json, jsonl, plain.
|
|
57
|
+
.TP
|
|
58
|
+
\fB\-\-json\fR
|
|
59
|
+
Shorthand for \-\-format json.
|
|
60
|
+
.TP
|
|
61
|
+
\fB\-\-no\-color\fR
|
|
62
|
+
Disable colour.
|
|
63
|
+
.TP
|
|
64
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
65
|
+
Suppress non\-essential output.
|
|
66
|
+
.TP
|
|
67
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
68
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
69
|
+
.SH "EXAMPLES"
|
|
70
|
+
.PP
|
|
71
|
+
.RS 4
|
|
72
|
+
.nf
|
|
73
|
+
roark customer\-flow update <flow\-id>
|
|
74
|
+
.fi
|
|
75
|
+
.RE
|
|
76
|
+
.SH "ENVIRONMENT"
|
|
77
|
+
.TP
|
|
78
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
79
|
+
Bearer token used when \-\-token is not given.
|
|
80
|
+
.TP
|
|
81
|
+
\fBROARK_BASE_URL\fR
|
|
82
|
+
API base URL.
|
|
83
|
+
.TP
|
|
84
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
85
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
86
|
+
.TP
|
|
87
|
+
\fBNO_COLOR\fR
|
|
88
|
+
Disables colour when set to any value.
|
|
89
|
+
.SH "EXIT STATUS"
|
|
90
|
+
.TP
|
|
91
|
+
\fB0\fR
|
|
92
|
+
The command succeeded.
|
|
93
|
+
.TP
|
|
94
|
+
\fB1\fR
|
|
95
|
+
The API rejected the request.
|
|
96
|
+
.TP
|
|
97
|
+
\fB2\fR
|
|
98
|
+
The command line was wrong.
|
|
99
|
+
.TP
|
|
100
|
+
\fB3\fR
|
|
101
|
+
No credential, or the credential was refused.
|
|
102
|
+
.TP
|
|
103
|
+
\fB4\fR
|
|
104
|
+
The addressed resource does not exist.
|
|
105
|
+
.TP
|
|
106
|
+
\fB5\fR
|
|
107
|
+
The request never completed: connection, timeout, or abort.
|
|
108
|
+
.SH "SEE ALSO"
|
|
109
|
+
.BR roark (1)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-HEALTH" "1" "" "roark-health" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-health \- Get API health status
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark health
|
|
7
|
+
[\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Returns the health status of the API and its dependencies
|
|
10
|
+
.SH "API"
|
|
11
|
+
GET /health
|
|
12
|
+
.SH "GLOBAL OPTIONS"
|
|
13
|
+
.TP
|
|
14
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
15
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
16
|
+
.TP
|
|
17
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
18
|
+
Skip confirmation prompts.
|
|
19
|
+
.TP
|
|
20
|
+
\fB\-\-no\-input\fR
|
|
21
|
+
Never prompt; fail instead.
|
|
22
|
+
.TP
|
|
23
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
24
|
+
API base URL.
|
|
25
|
+
.TP
|
|
26
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
27
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
28
|
+
.TP
|
|
29
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
30
|
+
Request timeout in milliseconds.
|
|
31
|
+
.TP
|
|
32
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
33
|
+
Retries for retryable failures.
|
|
34
|
+
.TP
|
|
35
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
36
|
+
Output format: auto, json, jsonl, plain.
|
|
37
|
+
.TP
|
|
38
|
+
\fB\-\-json\fR
|
|
39
|
+
Shorthand for \-\-format json.
|
|
40
|
+
.TP
|
|
41
|
+
\fB\-\-no\-color\fR
|
|
42
|
+
Disable colour.
|
|
43
|
+
.TP
|
|
44
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
45
|
+
Suppress non\-essential output.
|
|
46
|
+
.TP
|
|
47
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
48
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
49
|
+
.SH "EXAMPLES"
|
|
50
|
+
.PP
|
|
51
|
+
.RS 4
|
|
52
|
+
.nf
|
|
53
|
+
roark health
|
|
54
|
+
.fi
|
|
55
|
+
.RE
|
|
56
|
+
.SH "ENVIRONMENT"
|
|
57
|
+
.TP
|
|
58
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
59
|
+
Bearer token used when \-\-token is not given.
|
|
60
|
+
.TP
|
|
61
|
+
\fBROARK_BASE_URL\fR
|
|
62
|
+
API base URL.
|
|
63
|
+
.TP
|
|
64
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
65
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
66
|
+
.TP
|
|
67
|
+
\fBNO_COLOR\fR
|
|
68
|
+
Disables colour when set to any value.
|
|
69
|
+
.SH "EXIT STATUS"
|
|
70
|
+
.TP
|
|
71
|
+
\fB0\fR
|
|
72
|
+
The command succeeded.
|
|
73
|
+
.TP
|
|
74
|
+
\fB1\fR
|
|
75
|
+
The API rejected the request.
|
|
76
|
+
.TP
|
|
77
|
+
\fB2\fR
|
|
78
|
+
The command line was wrong.
|
|
79
|
+
.TP
|
|
80
|
+
\fB3\fR
|
|
81
|
+
No credential, or the credential was refused.
|
|
82
|
+
.TP
|
|
83
|
+
\fB4\fR
|
|
84
|
+
The addressed resource does not exist.
|
|
85
|
+
.TP
|
|
86
|
+
\fB5\fR
|
|
87
|
+
The request never completed: connection, timeout, or abort.
|
|
88
|
+
.SH "SEE ALSO"
|
|
89
|
+
.BR roark (1)
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
|
|
2
|
+
.TH "ROARK\-HTTP\-REQUEST\-DEFINITION\-CREATE" "1" "" "roark-http-request-definition-create" "Roark Analytics API Manual"
|
|
3
|
+
.SH "NAME"
|
|
4
|
+
roark\-http\-request\-definition\-create \- Create HTTP request definition
|
|
5
|
+
.SH "SYNOPSIS"
|
|
6
|
+
.B roark http\-request\-definition create
|
|
7
|
+
[\fIoptions\fR]
|
|
8
|
+
.SH "DESCRIPTION"
|
|
9
|
+
Creates a new HTTP request definition. The signing secret is only returned in this response and cannot be retrieved later.
|
|
10
|
+
.SH "API"
|
|
11
|
+
POST /v1/http\-request\-definition
|
|
12
|
+
.SH "OPTIONS"
|
|
13
|
+
.TP
|
|
14
|
+
\fB\-\-scope\fR \fI<value>\fR
|
|
15
|
+
Scope: AGENT_OUTBOUND_DIAL One of: AGENT_OUTBOUND_DIAL. Required.
|
|
16
|
+
.TP
|
|
17
|
+
\fB\-\-url\fR \fI<value>\fR
|
|
18
|
+
URL for the HTTP request Required.
|
|
19
|
+
.TP
|
|
20
|
+
\fB\-\-description\fR \fI<value>\fR
|
|
21
|
+
Description of the HTTP request definition Optional.
|
|
22
|
+
.TP
|
|
23
|
+
\fB\-\-method\fR \fI<value>\fR
|
|
24
|
+
HTTP method (default: POST) One of: POST, PUT, PATCH, GET. Optional.
|
|
25
|
+
.TP
|
|
26
|
+
\fB\-\-body\fR \fI<value>\fR
|
|
27
|
+
Request body template. Accepts a JSON object or a string with placeholders like {{phoneNumberToDial}}. Objects are serialized to JSON for storage. Optional.
|
|
28
|
+
.TP
|
|
29
|
+
\fB\-\-headers\fR \fI<value>\fR
|
|
30
|
+
Request headers as key\-value pairs Optional.
|
|
31
|
+
.SH "GLOBAL OPTIONS"
|
|
32
|
+
.TP
|
|
33
|
+
\fB\-\-data\fR \fI<json>\fR
|
|
34
|
+
Request body as JSON, or @file to read one (@\- for stdin).
|
|
35
|
+
.TP
|
|
36
|
+
\fB\-y\fR, \fB\-\-yes\fR
|
|
37
|
+
Skip confirmation prompts.
|
|
38
|
+
.TP
|
|
39
|
+
\fB\-\-no\-input\fR
|
|
40
|
+
Never prompt; fail instead.
|
|
41
|
+
.TP
|
|
42
|
+
\fB\-\-base\-url\fR \fI<url>\fR
|
|
43
|
+
API base URL.
|
|
44
|
+
.TP
|
|
45
|
+
\fB\-\-token\fR \fI<token>\fR
|
|
46
|
+
Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
|
|
47
|
+
.TP
|
|
48
|
+
\fB\-\-timeout\fR \fI<ms>\fR
|
|
49
|
+
Request timeout in milliseconds.
|
|
50
|
+
.TP
|
|
51
|
+
\fB\-\-max\-retries\fR \fI<count>\fR
|
|
52
|
+
Retries for retryable failures.
|
|
53
|
+
.TP
|
|
54
|
+
\fB\-\-format\fR \fI<format>\fR
|
|
55
|
+
Output format: auto, json, jsonl, plain.
|
|
56
|
+
.TP
|
|
57
|
+
\fB\-\-json\fR
|
|
58
|
+
Shorthand for \-\-format json.
|
|
59
|
+
.TP
|
|
60
|
+
\fB\-\-no\-color\fR
|
|
61
|
+
Disable colour.
|
|
62
|
+
.TP
|
|
63
|
+
\fB\-q\fR, \fB\-\-quiet\fR
|
|
64
|
+
Suppress non\-essential output.
|
|
65
|
+
.TP
|
|
66
|
+
\fB\-\-allow\-project\-base\-url\fR
|
|
67
|
+
Send the stored credential to a base URL set by a project .roark.json. Refused by default.
|
|
68
|
+
.SH "EXAMPLES"
|
|
69
|
+
.PP
|
|
70
|
+
.RS 4
|
|
71
|
+
.nf
|
|
72
|
+
roark http\-request\-definition create \-\-scope <value> \-\-url <value>
|
|
73
|
+
.fi
|
|
74
|
+
.RE
|
|
75
|
+
.SH "ENVIRONMENT"
|
|
76
|
+
.TP
|
|
77
|
+
\fBROARK_API_BEARER_TOKEN\fR
|
|
78
|
+
Bearer token used when \-\-token is not given.
|
|
79
|
+
.TP
|
|
80
|
+
\fBROARK_BASE_URL\fR
|
|
81
|
+
API base URL.
|
|
82
|
+
.TP
|
|
83
|
+
\fBROARK_ALLOW_PROJECT_BASE_URL\fR
|
|
84
|
+
Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
|
|
85
|
+
.TP
|
|
86
|
+
\fBNO_COLOR\fR
|
|
87
|
+
Disables colour when set to any value.
|
|
88
|
+
.SH "EXIT STATUS"
|
|
89
|
+
.TP
|
|
90
|
+
\fB0\fR
|
|
91
|
+
The command succeeded.
|
|
92
|
+
.TP
|
|
93
|
+
\fB1\fR
|
|
94
|
+
The API rejected the request.
|
|
95
|
+
.TP
|
|
96
|
+
\fB2\fR
|
|
97
|
+
The command line was wrong.
|
|
98
|
+
.TP
|
|
99
|
+
\fB3\fR
|
|
100
|
+
No credential, or the credential was refused.
|
|
101
|
+
.TP
|
|
102
|
+
\fB4\fR
|
|
103
|
+
The addressed resource does not exist.
|
|
104
|
+
.TP
|
|
105
|
+
\fB5\fR
|
|
106
|
+
The request never completed: connection, timeout, or abort.
|
|
107
|
+
.SH "SEE ALSO"
|
|
108
|
+
.BR roark (1)
|