@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.
Files changed (99) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +225 -0
  3. package/bin.d.ts +2 -0
  4. package/bin.js +14 -0
  5. package/commands.d.ts +5 -0
  6. package/commands.js +3553 -0
  7. package/completions.d.ts +1 -0
  8. package/completions.js +13 -0
  9. package/index.d.ts +6 -0
  10. package/index.js +26 -0
  11. package/man/roark-agent-create.1 +99 -0
  12. package/man/roark-agent-endpoint-create.1 +108 -0
  13. package/man/roark-agent-endpoint-get.1 +93 -0
  14. package/man/roark-agent-endpoint-list.1 +102 -0
  15. package/man/roark-agent-endpoint-update.1 +103 -0
  16. package/man/roark-agent-get.1 +93 -0
  17. package/man/roark-agent-list.1 +99 -0
  18. package/man/roark-agent-update.1 +100 -0
  19. package/man/roark-call-create.1 +150 -0
  20. package/man/roark-call-get.1 +93 -0
  21. package/man/roark-call-list.1 +111 -0
  22. package/man/roark-call-metric-list.1 +100 -0
  23. package/man/roark-call-sentiment-run-list.1 +93 -0
  24. package/man/roark-call-transcript-get.1 +97 -0
  25. package/man/roark-config-apply.1 +96 -0
  26. package/man/roark-config-diff.1 +96 -0
  27. package/man/roark-customer-flow-create.1 +97 -0
  28. package/man/roark-customer-flow-delete.1 +93 -0
  29. package/man/roark-customer-flow-edge-case-create.1 +112 -0
  30. package/man/roark-customer-flow-edge-case-delete.1 +96 -0
  31. package/man/roark-customer-flow-edge-case-promote.1 +96 -0
  32. package/man/roark-customer-flow-edge-case-update.1 +118 -0
  33. package/man/roark-customer-flow-get.1 +93 -0
  34. package/man/roark-customer-flow-graph-replace.1 +100 -0
  35. package/man/roark-customer-flow-happy-path-update.1 +115 -0
  36. package/man/roark-customer-flow-list.1 +105 -0
  37. package/man/roark-customer-flow-update.1 +109 -0
  38. package/man/roark-health.1 +89 -0
  39. package/man/roark-http-request-definition-create.1 +108 -0
  40. package/man/roark-http-request-definition-get.1 +93 -0
  41. package/man/roark-http-request-definition-list.1 +96 -0
  42. package/man/roark-http-request-definition-update.1 +109 -0
  43. package/man/roark-metric-collection-job-create.1 +99 -0
  44. package/man/roark-metric-collection-job-get.1 +93 -0
  45. package/man/roark-metric-collection-job-list.1 +99 -0
  46. package/man/roark-metric-definition-create.1 +100 -0
  47. package/man/roark-metric-definition-list.1 +89 -0
  48. package/man/roark-metric-policy-create.1 +105 -0
  49. package/man/roark-metric-policy-delete.1 +93 -0
  50. package/man/roark-metric-policy-get.1 +93 -0
  51. package/man/roark-metric-policy-list.1 +99 -0
  52. package/man/roark-metric-policy-update.1 +106 -0
  53. package/man/roark-simulation-environment-get.1 +93 -0
  54. package/man/roark-simulation-environment-list.1 +96 -0
  55. package/man/roark-simulation-job-get.1 +93 -0
  56. package/man/roark-simulation-job-lookup.1 +96 -0
  57. package/man/roark-simulation-persona-create.1 +156 -0
  58. package/man/roark-simulation-persona-get.1 +93 -0
  59. package/man/roark-simulation-persona-list.1 +99 -0
  60. package/man/roark-simulation-persona-update.1 +160 -0
  61. package/man/roark-simulation-plan-create.1 +138 -0
  62. package/man/roark-simulation-plan-delete.1 +93 -0
  63. package/man/roark-simulation-plan-get.1 +93 -0
  64. package/man/roark-simulation-plan-job-get.1 +93 -0
  65. package/man/roark-simulation-plan-job-list.1 +108 -0
  66. package/man/roark-simulation-plan-job-start.1 +97 -0
  67. package/man/roark-simulation-plan-list.1 +102 -0
  68. package/man/roark-simulation-plan-update.1 +142 -0
  69. package/man/roark-simulation-run.1 +97 -0
  70. package/man/roark-webhook-create.1 +102 -0
  71. package/man/roark-webhook-delete.1 +93 -0
  72. package/man/roark-webhook-get.1 +93 -0
  73. package/man/roark-webhook-list.1 +96 -0
  74. package/man/roark.1 +287 -0
  75. package/package.json +102 -0
  76. package/runtime/commands/api.d.ts +26 -0
  77. package/runtime/commands/api.js +85 -0
  78. package/runtime/commands/auth.d.ts +9 -0
  79. package/runtime/commands/auth.js +111 -0
  80. package/runtime/commands/completion.d.ts +9 -0
  81. package/runtime/commands/completion.js +42 -0
  82. package/runtime/commands/config.d.ts +15 -0
  83. package/runtime/commands/config.js +125 -0
  84. package/runtime/config.d.ts +65 -0
  85. package/runtime/config.js +163 -0
  86. package/runtime/confirm.d.ts +16 -0
  87. package/runtime/confirm.js +34 -0
  88. package/runtime/errors.d.ts +45 -0
  89. package/runtime/errors.js +91 -0
  90. package/runtime/input.d.ts +52 -0
  91. package/runtime/input.js +211 -0
  92. package/runtime/output.d.ts +41 -0
  93. package/runtime/output.js +90 -0
  94. package/runtime/program.d.ts +45 -0
  95. package/runtime/program.js +305 -0
  96. package/runtime/types.d.ts +53 -0
  97. package/runtime/types.js +10 -0
  98. package/version.d.ts +1 -0
  99. package/version.js +8 -0
@@ -0,0 +1,102 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-AGENT\-ENDPOINT\-LIST" "1" "" "roark-agent-endpoint-list" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-agent\-endpoint\-list \- List agent endpoints
5
+ .SH "SYNOPSIS"
6
+ .B roark agent endpoint list
7
+ [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Returns a paginated list of agent endpoints for the authenticated project.
10
+ .SH "API"
11
+ GET /v1/agent/endpoint
12
+ .SH "OPTIONS"
13
+ .TP
14
+ \fB\-\-limit\fR \fI<value>\fR
15
+ Maximum number of endpoints to return (default: 20, max: 50) Optional.
16
+ .TP
17
+ \fB\-\-after\fR \fI<value>\fR
18
+ Cursor for pagination \- endpoint ID to start after Optional.
19
+ .TP
20
+ \fB\-\-agent\-id\fR \fI<value>\fR
21
+ Filter by agent ID Optional.
22
+ .TP
23
+ \fB\-\-search\-text\fR \fI<value>\fR
24
+ Search text to filter endpoints Optional.
25
+ .SH "GLOBAL OPTIONS"
26
+ .TP
27
+ \fB\-\-data\fR \fI<json>\fR
28
+ Request body as JSON, or @file to read one (@\- for stdin).
29
+ .TP
30
+ \fB\-y\fR, \fB\-\-yes\fR
31
+ Skip confirmation prompts.
32
+ .TP
33
+ \fB\-\-no\-input\fR
34
+ Never prompt; fail instead.
35
+ .TP
36
+ \fB\-\-base\-url\fR \fI<url>\fR
37
+ API base URL.
38
+ .TP
39
+ \fB\-\-token\fR \fI<token>\fR
40
+ Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
41
+ .TP
42
+ \fB\-\-timeout\fR \fI<ms>\fR
43
+ Request timeout in milliseconds.
44
+ .TP
45
+ \fB\-\-max\-retries\fR \fI<count>\fR
46
+ Retries for retryable failures.
47
+ .TP
48
+ \fB\-\-format\fR \fI<format>\fR
49
+ Output format: auto, json, jsonl, plain.
50
+ .TP
51
+ \fB\-\-json\fR
52
+ Shorthand for \-\-format json.
53
+ .TP
54
+ \fB\-\-no\-color\fR
55
+ Disable colour.
56
+ .TP
57
+ \fB\-q\fR, \fB\-\-quiet\fR
58
+ Suppress non\-essential output.
59
+ .TP
60
+ \fB\-\-allow\-project\-base\-url\fR
61
+ Send the stored credential to a base URL set by a project .roark.json. Refused by default.
62
+ .SH "EXAMPLES"
63
+ .PP
64
+ .RS 4
65
+ .nf
66
+ roark agent endpoint list
67
+ .fi
68
+ .RE
69
+ .SH "ENVIRONMENT"
70
+ .TP
71
+ \fBROARK_API_BEARER_TOKEN\fR
72
+ Bearer token used when \-\-token is not given.
73
+ .TP
74
+ \fBROARK_BASE_URL\fR
75
+ API base URL.
76
+ .TP
77
+ \fBROARK_ALLOW_PROJECT_BASE_URL\fR
78
+ Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
79
+ .TP
80
+ \fBNO_COLOR\fR
81
+ Disables colour when set to any value.
82
+ .SH "EXIT STATUS"
83
+ .TP
84
+ \fB0\fR
85
+ The command succeeded.
86
+ .TP
87
+ \fB1\fR
88
+ The API rejected the request.
89
+ .TP
90
+ \fB2\fR
91
+ The command line was wrong.
92
+ .TP
93
+ \fB3\fR
94
+ No credential, or the credential was refused.
95
+ .TP
96
+ \fB4\fR
97
+ The addressed resource does not exist.
98
+ .TP
99
+ \fB5\fR
100
+ The request never completed: connection, timeout, or abort.
101
+ .SH "SEE ALSO"
102
+ .BR roark (1)
@@ -0,0 +1,103 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-AGENT\-ENDPOINT\-UPDATE" "1" "" "roark-agent-endpoint-update" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-agent\-endpoint\-update \- Update an agent endpoint
5
+ .SH "SYNOPSIS"
6
+ .B roark agent endpoint update
7
+ \fIendpoint\-id\fR [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Updates an existing agent endpoint by its ID. Only environment and outboundDialType can be modified.
10
+ .SH "API"
11
+ PUT /v1/agent/endpoint/{endpointId}
12
+ .SH "ARGUMENTS"
13
+ .TP
14
+ \fIendpoint\-id\fR
15
+ The ID of the agent endpoint to update
16
+ .SH "OPTIONS"
17
+ .TP
18
+ \fB\-\-environment\fR \fI<value>\fR
19
+ Environment name Optional.
20
+ .TP
21
+ \fB\-\-outbound\-dial\-type\fR \fI<value>\fR
22
+ Outbound dial type: NONE or HTTP_REQUEST One of: NONE, HTTP_REQUEST. Optional.
23
+ .TP
24
+ \fB\-\-outbound\-dial\-http\-request\-definition\-id\fR \fI<value>\fR
25
+ ID of the HTTP request definition for outbound dialing Optional.
26
+ .SH "GLOBAL OPTIONS"
27
+ .TP
28
+ \fB\-\-data\fR \fI<json>\fR
29
+ Request body as JSON, or @file to read one (@\- for stdin).
30
+ .TP
31
+ \fB\-y\fR, \fB\-\-yes\fR
32
+ Skip confirmation prompts.
33
+ .TP
34
+ \fB\-\-no\-input\fR
35
+ Never prompt; fail instead.
36
+ .TP
37
+ \fB\-\-base\-url\fR \fI<url>\fR
38
+ API base URL.
39
+ .TP
40
+ \fB\-\-token\fR \fI<token>\fR
41
+ Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
42
+ .TP
43
+ \fB\-\-timeout\fR \fI<ms>\fR
44
+ Request timeout in milliseconds.
45
+ .TP
46
+ \fB\-\-max\-retries\fR \fI<count>\fR
47
+ Retries for retryable failures.
48
+ .TP
49
+ \fB\-\-format\fR \fI<format>\fR
50
+ Output format: auto, json, jsonl, plain.
51
+ .TP
52
+ \fB\-\-json\fR
53
+ Shorthand for \-\-format json.
54
+ .TP
55
+ \fB\-\-no\-color\fR
56
+ Disable colour.
57
+ .TP
58
+ \fB\-q\fR, \fB\-\-quiet\fR
59
+ Suppress non\-essential output.
60
+ .TP
61
+ \fB\-\-allow\-project\-base\-url\fR
62
+ Send the stored credential to a base URL set by a project .roark.json. Refused by default.
63
+ .SH "EXAMPLES"
64
+ .PP
65
+ .RS 4
66
+ .nf
67
+ roark agent endpoint update <endpoint\-id>
68
+ .fi
69
+ .RE
70
+ .SH "ENVIRONMENT"
71
+ .TP
72
+ \fBROARK_API_BEARER_TOKEN\fR
73
+ Bearer token used when \-\-token is not given.
74
+ .TP
75
+ \fBROARK_BASE_URL\fR
76
+ API base URL.
77
+ .TP
78
+ \fBROARK_ALLOW_PROJECT_BASE_URL\fR
79
+ Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
80
+ .TP
81
+ \fBNO_COLOR\fR
82
+ Disables colour when set to any value.
83
+ .SH "EXIT STATUS"
84
+ .TP
85
+ \fB0\fR
86
+ The command succeeded.
87
+ .TP
88
+ \fB1\fR
89
+ The API rejected the request.
90
+ .TP
91
+ \fB2\fR
92
+ The command line was wrong.
93
+ .TP
94
+ \fB3\fR
95
+ No credential, or the credential was refused.
96
+ .TP
97
+ \fB4\fR
98
+ The addressed resource does not exist.
99
+ .TP
100
+ \fB5\fR
101
+ The request never completed: connection, timeout, or abort.
102
+ .SH "SEE ALSO"
103
+ .BR roark (1)
@@ -0,0 +1,93 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-AGENT\-GET" "1" "" "roark-agent-get" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-agent\-get \- Get agent by ID
5
+ .SH "SYNOPSIS"
6
+ .B roark agent get
7
+ \fIagent\-id\fR [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Returns a specific agent by its ID.
10
+ .SH "API"
11
+ GET /v1/agent/{agentId}
12
+ .SH "ARGUMENTS"
13
+ .TP
14
+ \fIagent\-id\fR
15
+ The ID of the agent to retrieve
16
+ .SH "GLOBAL OPTIONS"
17
+ .TP
18
+ \fB\-\-data\fR \fI<json>\fR
19
+ Request body as JSON, or @file to read one (@\- for stdin).
20
+ .TP
21
+ \fB\-y\fR, \fB\-\-yes\fR
22
+ Skip confirmation prompts.
23
+ .TP
24
+ \fB\-\-no\-input\fR
25
+ Never prompt; fail instead.
26
+ .TP
27
+ \fB\-\-base\-url\fR \fI<url>\fR
28
+ API base URL.
29
+ .TP
30
+ \fB\-\-token\fR \fI<token>\fR
31
+ Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
32
+ .TP
33
+ \fB\-\-timeout\fR \fI<ms>\fR
34
+ Request timeout in milliseconds.
35
+ .TP
36
+ \fB\-\-max\-retries\fR \fI<count>\fR
37
+ Retries for retryable failures.
38
+ .TP
39
+ \fB\-\-format\fR \fI<format>\fR
40
+ Output format: auto, json, jsonl, plain.
41
+ .TP
42
+ \fB\-\-json\fR
43
+ Shorthand for \-\-format json.
44
+ .TP
45
+ \fB\-\-no\-color\fR
46
+ Disable colour.
47
+ .TP
48
+ \fB\-q\fR, \fB\-\-quiet\fR
49
+ Suppress non\-essential output.
50
+ .TP
51
+ \fB\-\-allow\-project\-base\-url\fR
52
+ Send the stored credential to a base URL set by a project .roark.json. Refused by default.
53
+ .SH "EXAMPLES"
54
+ .PP
55
+ .RS 4
56
+ .nf
57
+ roark agent get <agent\-id>
58
+ .fi
59
+ .RE
60
+ .SH "ENVIRONMENT"
61
+ .TP
62
+ \fBROARK_API_BEARER_TOKEN\fR
63
+ Bearer token used when \-\-token is not given.
64
+ .TP
65
+ \fBROARK_BASE_URL\fR
66
+ API base URL.
67
+ .TP
68
+ \fBROARK_ALLOW_PROJECT_BASE_URL\fR
69
+ Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
70
+ .TP
71
+ \fBNO_COLOR\fR
72
+ Disables colour when set to any value.
73
+ .SH "EXIT STATUS"
74
+ .TP
75
+ \fB0\fR
76
+ The command succeeded.
77
+ .TP
78
+ \fB1\fR
79
+ The API rejected the request.
80
+ .TP
81
+ \fB2\fR
82
+ The command line was wrong.
83
+ .TP
84
+ \fB3\fR
85
+ No credential, or the credential was refused.
86
+ .TP
87
+ \fB4\fR
88
+ The addressed resource does not exist.
89
+ .TP
90
+ \fB5\fR
91
+ The request never completed: connection, timeout, or abort.
92
+ .SH "SEE ALSO"
93
+ .BR roark (1)
@@ -0,0 +1,99 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-AGENT\-LIST" "1" "" "roark-agent-list" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-agent\-list \- List agents
5
+ .SH "SYNOPSIS"
6
+ .B roark agent list
7
+ [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Returns a paginated list of agents for the authenticated project.
10
+ .SH "API"
11
+ GET /v1/agent
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
+ .SH "GLOBAL OPTIONS"
23
+ .TP
24
+ \fB\-\-data\fR \fI<json>\fR
25
+ Request body as JSON, or @file to read one (@\- for stdin).
26
+ .TP
27
+ \fB\-y\fR, \fB\-\-yes\fR
28
+ Skip confirmation prompts.
29
+ .TP
30
+ \fB\-\-no\-input\fR
31
+ Never prompt; fail instead.
32
+ .TP
33
+ \fB\-\-base\-url\fR \fI<url>\fR
34
+ API base URL.
35
+ .TP
36
+ \fB\-\-token\fR \fI<token>\fR
37
+ Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
38
+ .TP
39
+ \fB\-\-timeout\fR \fI<ms>\fR
40
+ Request timeout in milliseconds.
41
+ .TP
42
+ \fB\-\-max\-retries\fR \fI<count>\fR
43
+ Retries for retryable failures.
44
+ .TP
45
+ \fB\-\-format\fR \fI<format>\fR
46
+ Output format: auto, json, jsonl, plain.
47
+ .TP
48
+ \fB\-\-json\fR
49
+ Shorthand for \-\-format json.
50
+ .TP
51
+ \fB\-\-no\-color\fR
52
+ Disable colour.
53
+ .TP
54
+ \fB\-q\fR, \fB\-\-quiet\fR
55
+ Suppress non\-essential output.
56
+ .TP
57
+ \fB\-\-allow\-project\-base\-url\fR
58
+ Send the stored credential to a base URL set by a project .roark.json. Refused by default.
59
+ .SH "EXAMPLES"
60
+ .PP
61
+ .RS 4
62
+ .nf
63
+ roark agent list
64
+ .fi
65
+ .RE
66
+ .SH "ENVIRONMENT"
67
+ .TP
68
+ \fBROARK_API_BEARER_TOKEN\fR
69
+ Bearer token used when \-\-token is not given.
70
+ .TP
71
+ \fBROARK_BASE_URL\fR
72
+ API base URL.
73
+ .TP
74
+ \fBROARK_ALLOW_PROJECT_BASE_URL\fR
75
+ Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
76
+ .TP
77
+ \fBNO_COLOR\fR
78
+ Disables colour when set to any value.
79
+ .SH "EXIT STATUS"
80
+ .TP
81
+ \fB0\fR
82
+ The command succeeded.
83
+ .TP
84
+ \fB1\fR
85
+ The API rejected the request.
86
+ .TP
87
+ \fB2\fR
88
+ The command line was wrong.
89
+ .TP
90
+ \fB3\fR
91
+ No credential, or the credential was refused.
92
+ .TP
93
+ \fB4\fR
94
+ The addressed resource does not exist.
95
+ .TP
96
+ \fB5\fR
97
+ The request never completed: connection, timeout, or abort.
98
+ .SH "SEE ALSO"
99
+ .BR roark (1)
@@ -0,0 +1,100 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-AGENT\-UPDATE" "1" "" "roark-agent-update" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-agent\-update \- Update an agent
5
+ .SH "SYNOPSIS"
6
+ .B roark agent update
7
+ \fIagent\-id\fR [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Updates an existing agent by its ID.
10
+ .SH "API"
11
+ PUT /v1/agent/{agentId}
12
+ .SH "ARGUMENTS"
13
+ .TP
14
+ \fIagent\-id\fR
15
+ The ID of the agent to update
16
+ .SH "OPTIONS"
17
+ .TP
18
+ \fB\-\-name\fR \fI<value>\fR
19
+ Name of the agent Optional.
20
+ .TP
21
+ \fB\-\-description\fR \fI<value>\fR
22
+ Description of the agent 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 agent update <agent\-id>
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,150 @@
1
+ .\" File generated from our OpenAPI spec by app-agent-codegen. Do not edit.
2
+ .TH "ROARK\-CALL\-CREATE" "1" "" "roark-call-create" "Roark Analytics API Manual"
3
+ .SH "NAME"
4
+ roark\-call\-create \- Create a call
5
+ .SH "SYNOPSIS"
6
+ .B roark call create
7
+ [\fIoptions\fR]
8
+ .SH "DESCRIPTION"
9
+ Create a new call with recording, transcript, agents, and customers
10
+ .SH "API"
11
+ POST /v1/call
12
+ .SH "OPTIONS"
13
+ .TP
14
+ \fB\-\-recording\-url\fR \fI<value>\fR
15
+ URL of source recording (must be an accessible WAV, MP3, MP4, or OGG file). Can be a signed URL. Required.
16
+ .TP
17
+ \fB\-\-stereo\-recording\-url\fR \fI<value>\fR
18
+ URL of source stereo recording. Must be accessible. Can be a signed URL. Supported formats: WAV, MP3, MP4, OGG. Optional.
19
+ .TP
20
+ \fB\-\-started\-at\fR \fI<value>\fR
21
+ When the call started (ISO 8601 format) Required.
22
+ .TP
23
+ \fB\-\-interface\-type\fR \fI<value>\fR
24
+ Interface type of the call (PHONE or WEB) One of: PHONE, WEB. Required.
25
+ .TP
26
+ \fB\-\-call\-direction\fR \fI<value>\fR
27
+ Direction of the call (INBOUND or OUTBOUND) One of: INBOUND, OUTBOUND. Required.
28
+ .TP
29
+ \fB\-\-ended\-status\fR \fI<value>\fR
30
+ High\-level call end status, indicating how the call terminated One of: PARTICIPANTS_DID_NOT_SPEAK, AGENT_DID_NOT_ANSWER, AGENT_DID_NOT_SPEAK, AGENT_STOPPED_SPEAKING, AGENT_ENDED_CALL, AGENT_TRANSFERRED_CALL, AGENT_BUSY, AGENT_ERROR, CUSTOMER_ENDED_CALL, VOICE_MAIL_REACHED, SILENCE_TIME_OUT, PHONE_CALL_PROVIDER_CONNECTION_ERROR, CUSTOMER_DID_NOT_ANSWER, CUSTOMER_DID_NOT_SPEAK, CUSTOMER_STOPPED_SPEAKING, CUSTOMER_BUSY, DIAL_ERROR, MAX_DURATION_REACHED, UNKNOWN. Optional.
31
+ .TP
32
+ \fB\-\-transcript\fR \fI<value>\fR
33
+ List of transcript entries made during the call Optional.
34
+ .TP
35
+ \fB\-\-tool\-invocations\fR \fI<value>\fR
36
+ List of tool invocations made during the call Optional.
37
+ .TP
38
+ \fB\-\-properties\fR \fI<value>\fR
39
+ Custom properties to include with the call. These can be used for filtering and will show in the call details page Optional.
40
+ .TP
41
+ \fB\-\-vapi\-call\-id\fR \fI<value>\fR
42
+ The Vapi call ID (UUID) to link this call with OpenTelemetry trace data from Vapi. Used for matching calls with OTEL traces. Optional.
43
+ .TP
44
+ \fB\-\-livekit\-room\-id\fR \fI<value>\fR
45
+ The LiveKit Cloud room ID to link this call with OpenTelemetry trace data from LiveKit. Used for matching calls with OTEL traces. Optional.
46
+ .TP
47
+ \fB\-\-external\-id\fR \fI<value>\fR
48
+ A stable identifier from your own system (e.g. session ID, conversation ID) used to correlate this call with OpenTelemetry traces. Set the same value as a `roark.external_id` span or resource attribute on your traces and the matching trace will be linked automatically. Must be unique within a project. Optional.
49
+ .TP
50
+ \fB\-\-agent\fR \fI<value>\fR
51
+ Single agent participating in the call. Use this for simpler API when you have only one agent. Optional.
52
+ .TP
53
+ \fB\-\-agent.endpoint\fR \fI<value>\fR
54
+ Endpoint configuration for this agent (optional) Optional.
55
+ .TP
56
+ \fB\-\-agent.prompt\fR \fI<value>\fR
57
+ Agent's prompt configuration (optional) Optional.
58
+ .TP
59
+ \fB\-\-agents\fR \fI<value>\fR
60
+ Agents participating in the call. Each agent requires identification and prompt information. Optional.
61
+ .TP
62
+ \fB\-\-customer\fR \fI<value>\fR
63
+ Single customer participating in the call. Use this for simpler API when you have only one customer. Optional.
64
+ .TP
65
+ \fB\-\-customer.label\fR \fI<value>\fR
66
+ Label to identify this customer in the transcript (e.g., "speaker\-01", "speaker\-02") Optional.
67
+ .TP
68
+ \fB\-\-customer.phone\-number\-e164\fR \fI<value>\fR
69
+ Customer phone number in E.164 format (e.g., +14155551234) Required.
70
+ .TP
71
+ \fB\-\-customers\fR \fI<value>\fR
72
+ Customers participating in the call. Optional.
73
+ .SH "GLOBAL OPTIONS"
74
+ .TP
75
+ \fB\-\-data\fR \fI<json>\fR
76
+ Request body as JSON, or @file to read one (@\- for stdin).
77
+ .TP
78
+ \fB\-y\fR, \fB\-\-yes\fR
79
+ Skip confirmation prompts.
80
+ .TP
81
+ \fB\-\-no\-input\fR
82
+ Never prompt; fail instead.
83
+ .TP
84
+ \fB\-\-base\-url\fR \fI<url>\fR
85
+ API base URL.
86
+ .TP
87
+ \fB\-\-token\fR \fI<token>\fR
88
+ Bearer token. Prefer ROARK_API_BEARER_TOKEN or the stored credential.
89
+ .TP
90
+ \fB\-\-timeout\fR \fI<ms>\fR
91
+ Request timeout in milliseconds.
92
+ .TP
93
+ \fB\-\-max\-retries\fR \fI<count>\fR
94
+ Retries for retryable failures.
95
+ .TP
96
+ \fB\-\-format\fR \fI<format>\fR
97
+ Output format: auto, json, jsonl, plain.
98
+ .TP
99
+ \fB\-\-json\fR
100
+ Shorthand for \-\-format json.
101
+ .TP
102
+ \fB\-\-no\-color\fR
103
+ Disable colour.
104
+ .TP
105
+ \fB\-q\fR, \fB\-\-quiet\fR
106
+ Suppress non\-essential output.
107
+ .TP
108
+ \fB\-\-allow\-project\-base\-url\fR
109
+ Send the stored credential to a base URL set by a project .roark.json. Refused by default.
110
+ .SH "EXAMPLES"
111
+ .PP
112
+ .RS 4
113
+ .nf
114
+ roark call create \-\-recording\-url <value> \-\-started\-at <value> \-\-interface\-type <value> \-\-call\-direction <value> \-\-customer.phone\-number\-e164 <value>
115
+ .fi
116
+ .RE
117
+ .SH "ENVIRONMENT"
118
+ .TP
119
+ \fBROARK_API_BEARER_TOKEN\fR
120
+ Bearer token used when \-\-token is not given.
121
+ .TP
122
+ \fBROARK_BASE_URL\fR
123
+ API base URL.
124
+ .TP
125
+ \fBROARK_ALLOW_PROJECT_BASE_URL\fR
126
+ Trusts a base URL set by a project .roark.json, like \-\-allow\-project\-base\-url.
127
+ .TP
128
+ \fBNO_COLOR\fR
129
+ Disables colour when set to any value.
130
+ .SH "EXIT STATUS"
131
+ .TP
132
+ \fB0\fR
133
+ The command succeeded.
134
+ .TP
135
+ \fB1\fR
136
+ The API rejected the request.
137
+ .TP
138
+ \fB2\fR
139
+ The command line was wrong.
140
+ .TP
141
+ \fB3\fR
142
+ No credential, or the credential was refused.
143
+ .TP
144
+ \fB4\fR
145
+ The addressed resource does not exist.
146
+ .TP
147
+ \fB5\fR
148
+ The request never completed: connection, timeout, or abort.
149
+ .SH "SEE ALSO"
150
+ .BR roark (1)