@roarkanalytics/cli 0.48.0 → 0.51.1

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.51.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.51.0...v0.51.1) (2026-10-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** raise the @roarkanalytics/sdk floor to 5.12.0 ([#131](https://github.com/roarkhq/cli-roark-analytics/issues/131)) ([bcf90b1](https://github.com/roarkhq/cli-roark-analytics/commit/bcf90b111ee6e57b21a6fd02bf20271dae8500fd))
9
+
10
+ ## [0.51.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.50.1...v0.51.0) (2026-10-22)
11
+
12
+
13
+ ### Features
14
+
15
+ * **cli:** cli update ([#129](https://github.com/roarkhq/cli-roark-analytics/issues/129)) ([1860719](https://github.com/roarkhq/cli-roark-analytics/commit/1860719923037b0ad74b3612e6332ff5b8ef9c6d))
16
+
17
+ ## [0.50.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.50.0...v0.50.1) (2026-10-21)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **deps:** raise the @roarkanalytics/sdk floor to 5.11.0 ([#127](https://github.com/roarkhq/cli-roark-analytics/issues/127)) ([e71dd44](https://github.com/roarkhq/cli-roark-analytics/commit/e71dd443554ecdfe72daea480670ee7f768b9761))
23
+
24
+ ## [0.50.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.49.0...v0.50.0) (2026-10-21)
25
+
26
+
27
+ ### Features
28
+
29
+ * **cli:** cli update ([#125](https://github.com/roarkhq/cli-roark-analytics/issues/125)) ([109cb78](https://github.com/roarkhq/cli-roark-analytics/commit/109cb78bcba8340f85292c2264ba9b52fbe54661))
30
+
31
+ ## [0.49.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.48.0...v0.49.0) (2026-10-21)
32
+
33
+
34
+ ### Features
35
+
36
+ * **cli:** cli update ([#123](https://github.com/roarkhq/cli-roark-analytics/issues/123)) ([8ebee15](https://github.com/roarkhq/cli-roark-analytics/commit/8ebee1590239030e8ffad605b321a5cc6fc13946))
37
+
3
38
  ## [0.48.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.47.0...v0.48.0) (2026-10-21)
4
39
 
5
40
 
package/README.md CHANGED
@@ -169,7 +169,10 @@ roark completion fish | source
169
169
 
170
170
  | Command | Description |
171
171
  | ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
172
+ | `roark call batch delete --call-ids <value>` | Delete calls in batch |
173
+ | `roark call cost get <call-id>` | Get call cost |
172
174
  | `roark call create --recording-url <value> --started-at <value> --interface-type <value> --call-direction <value> --customer.phone-number-e164 <value>` | Create a call |
175
+ | `roark call delete <call-id>` | Delete a call |
173
176
  | `roark call get <call-id>` | Get a call by ID |
174
177
  | `roark call list` | List calls |
175
178
  | `roark call metric list <call-id>` | List call metrics |
@@ -244,6 +247,7 @@ roark completion fish | source
244
247
 
245
248
  | Command | Description |
246
249
  | -------------------------------------------------------------------------------- | -------------------------------------- |
250
+ | `roark metric collection-job cancel <job-id>` | Cancel a metric collection job |
247
251
  | `roark metric collection-job create` | Create and run a metric collection job |
248
252
  | `roark metric collection-job get <job-id>` | Get metric collection job by ID |
249
253
  | `roark metric collection-job list` | List metric collection jobs |
@@ -293,6 +297,7 @@ roark completion fish | source
293
297
  | `roark simulation plan delete <plan-id>` | Delete a run plan |
294
298
  | `roark simulation plan get <plan-id>` | Get run plan by ID |
295
299
  | `roark simulation plan job cancel <job-id>` | Cancel a simulation plan job |
300
+ | `roark simulation plan job cost get <job-id>` | Get simulation run cost |
296
301
  | `roark simulation plan job debrief create <job-id>` | Generate simulation run debrief |
297
302
  | `roark simulation plan job get <job-id>` | Get simulation plan job |
298
303
  | `roark simulation plan job list` | List simulation plan jobs |
package/commands.js CHANGED
@@ -27,6 +27,8 @@ exports.GROUPS = {
27
27
  'benchmark target history': 'Read benchmark target histories',
28
28
  'benchmark target score-sample': 'Read benchmark target score samples',
29
29
  call: 'Manage calls',
30
+ 'call batch': 'Manage call batch',
31
+ 'call cost': 'Read call cost',
30
32
  'call metric': 'Read call metrics',
31
33
  'call property': 'Manage call property',
32
34
  'call sentiment-run': 'Read call sentiment runs',
@@ -57,6 +59,7 @@ exports.GROUPS = {
57
59
  'simulation persona': 'Manage simulation personas',
58
60
  'simulation plan': 'Manage simulation plans',
59
61
  'simulation plan job': 'Manage simulation plan jobs',
62
+ 'simulation plan job cost': 'Read simulation plan job cost',
60
63
  'simulation plan job debrief': 'Manage simulation plan job debrief',
61
64
  'simulation plan job result': 'Read simulation plan job result',
62
65
  'simulation run-group': 'Manage simulation run groups',
@@ -1449,6 +1452,55 @@ exports.COMMANDS = [
1449
1452
  acceptsBody: false,
1450
1453
  requiresAuth: true,
1451
1454
  },
1455
+ {
1456
+ commandPath: ['call', 'batch', 'delete'],
1457
+ clientProperty: 'call',
1458
+ methodName: 'batchDelete',
1459
+ httpMethod: 'post',
1460
+ httpPath: '/v1/call/batch-delete',
1461
+ summary: 'Delete calls in batch',
1462
+ description: 'Deletes up to 100 calls by ID in one request. Each deleted call, its metrics and its analysis are hidden from every read, and any analysis still running on it is cancelled. IDs that do not exist in this project, or were already deleted, are returned in notFoundCallIds and left untouched. The request succeeds even when none of the calls are found. IDs are returned lowercase, each once.',
1463
+ positionals: [],
1464
+ flags: [
1465
+ {
1466
+ name: 'call-ids',
1467
+ path: ['callIds'],
1468
+ location: 'body',
1469
+ required: true,
1470
+ description: 'IDs of the calls to delete, at most 100. Repeated IDs are counted once.',
1471
+ valueKind: 'array',
1472
+ repeatable: true,
1473
+ },
1474
+ ],
1475
+ hasParams: true,
1476
+ paramsAllOptional: false,
1477
+ bodyOpaque: false,
1478
+ bodyVariants: [],
1479
+ acceptsBody: true,
1480
+ requiresAuth: true,
1481
+ },
1482
+ {
1483
+ commandPath: ['call', 'cost', 'get'],
1484
+ clientProperty: 'call',
1485
+ methodName: 'getCost',
1486
+ httpMethod: 'get',
1487
+ httpPath: '/v1/call/{callId}/cost',
1488
+ summary: 'Get call cost',
1489
+ description: 'The billable spend attributed to one call, split by cost type, with every cost line behind it. Simulated calls include the costs their simulation incurred before the call connected. Amounts are billable spend only, in exact micro-dollars (`*UsdMicros`) and dollars (`*Usd`, for display). Requires an API key with the `billing:read` permission.',
1490
+ positionals: [
1491
+ {
1492
+ name: 'call-id',
1493
+ paramKey: 'callId',
1494
+ },
1495
+ ],
1496
+ flags: [],
1497
+ hasParams: false,
1498
+ paramsAllOptional: true,
1499
+ bodyOpaque: false,
1500
+ bodyVariants: [],
1501
+ acceptsBody: false,
1502
+ requiresAuth: true,
1503
+ },
1452
1504
  {
1453
1505
  commandPath: ['call', 'create'],
1454
1506
  clientProperty: 'call',
@@ -1669,6 +1721,28 @@ exports.COMMANDS = [
1669
1721
  acceptsBody: true,
1670
1722
  requiresAuth: true,
1671
1723
  },
1724
+ {
1725
+ commandPath: ['call', 'delete'],
1726
+ clientProperty: 'call',
1727
+ methodName: 'delete',
1728
+ httpMethod: 'delete',
1729
+ httpPath: '/v1/call/{callId}',
1730
+ summary: 'Delete a call',
1731
+ description: 'Deletes a call by its ID. The call, its metrics and its analysis are hidden from every read, and any analysis still running on it is cancelled. Returns 404 when the call does not exist in this project or was already deleted.',
1732
+ positionals: [
1733
+ {
1734
+ name: 'call-id',
1735
+ paramKey: 'callId',
1736
+ },
1737
+ ],
1738
+ flags: [],
1739
+ hasParams: false,
1740
+ paramsAllOptional: true,
1741
+ bodyOpaque: false,
1742
+ bodyVariants: [],
1743
+ acceptsBody: false,
1744
+ requiresAuth: true,
1745
+ },
1672
1746
  {
1673
1747
  commandPath: ['call', 'get'],
1674
1748
  clientProperty: 'call',
@@ -1805,6 +1879,15 @@ exports.COMMANDS = [
1805
1879
  enumValues: ['true', 'false'],
1806
1880
  repeatable: false,
1807
1881
  },
1882
+ {
1883
+ name: 'properties',
1884
+ path: ['properties'],
1885
+ location: 'query',
1886
+ required: false,
1887
+ description: 'Filter on custom properties, one entry per property name: properties[<name>][exists]=true keeps calls that have the property set (whatever the value), properties[<name>][exists]=false keeps calls missing it (never sent, sent as null, or removed). A property the project has never seen is missing on every call. Names match the way properties are stored, so planTier and plan_tier are one property. At most 20 properties; a name taken by a built-in call filter, such as status, is rejected with 400.',
1888
+ valueKind: 'object',
1889
+ repeatable: false,
1890
+ },
1808
1891
  ],
1809
1892
  hasParams: true,
1810
1893
  paramsAllOptional: true,
@@ -3615,6 +3698,29 @@ exports.COMMANDS = [
3615
3698
  acceptsBody: true,
3616
3699
  requiresAuth: true,
3617
3700
  },
3701
+ {
3702
+ commandPath: ['metric', 'collection-job', 'cancel'],
3703
+ clientProperty: 'metricCollectionJob',
3704
+ methodName: 'cancel',
3705
+ httpMethod: 'post',
3706
+ httpPath: '/v1/metric/collection-jobs/{jobId}/cancel',
3707
+ summary: 'Cancel a metric collection job',
3708
+ description: 'Stops a metric collection job that has not finished. No further conversations are processed and the job ends in CANCELED. Items the job had not reached are marked SKIPPED. Metric values already produced are kept, and items that were mid-computation when the cancel arrived may still complete. Only the items that completed are billed. Safe to call more than once: a job that has already finished (COMPLETED, FAILED, or CANCELED) is returned unchanged.',
3709
+ positionals: [
3710
+ {
3711
+ name: 'job-id',
3712
+ paramKey: 'jobId',
3713
+ description: 'The ID of the metric collection job to cancel',
3714
+ },
3715
+ ],
3716
+ flags: [],
3717
+ hasParams: false,
3718
+ paramsAllOptional: true,
3719
+ bodyOpaque: false,
3720
+ bodyVariants: [],
3721
+ acceptsBody: false,
3722
+ requiresAuth: true,
3723
+ },
3618
3724
  {
3619
3725
  commandPath: ['metric', 'collection-job', 'create'],
3620
3726
  clientProperty: 'metricCollectionJob',
@@ -5894,6 +6000,28 @@ exports.COMMANDS = [
5894
6000
  acceptsBody: false,
5895
6001
  requiresAuth: true,
5896
6002
  },
6003
+ {
6004
+ commandPath: ['simulation', 'plan', 'job', 'cost', 'get'],
6005
+ clientProperty: 'simulationRunPlanJob',
6006
+ methodName: 'getCost',
6007
+ httpMethod: 'get',
6008
+ httpPath: '/v1/simulation/plan/job/{jobId}/cost',
6009
+ summary: 'Get simulation run cost',
6010
+ description: 'The billable spend for one simulation run (run plan job), split by cost type, with the spend of each simulated call in it. Safe to call while the run is in progress: totals reflect the costs recorded so far. Amounts are billable spend only, in exact micro-dollars (`*UsdMicros`) and dollars (`*Usd`, for display). Requires an API key with the `billing:read` permission.',
6011
+ positionals: [
6012
+ {
6013
+ name: 'job-id',
6014
+ paramKey: 'jobId',
6015
+ },
6016
+ ],
6017
+ flags: [],
6018
+ hasParams: false,
6019
+ paramsAllOptional: true,
6020
+ bodyOpaque: false,
6021
+ bodyVariants: [],
6022
+ acceptsBody: false,
6023
+ requiresAuth: true,
6024
+ },
5897
6025
  {
5898
6026
  commandPath: ['simulation', 'plan', 'job', 'debrief', 'create'],
5899
6027
  clientProperty: 'simulationRunPlanJob',
@@ -6838,7 +6966,7 @@ exports.COMMANDS = [
6838
6966
  httpMethod: 'get',
6839
6967
  httpPath: '/v1/usage',
6840
6968
  summary: 'Get usage & cost',
6841
- description: 'Report billable usage and cost for the organization over a time window, broken down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps; optionally pass `projectId` to scope the report to one project. Amounts are billable spend only (what we absorb is never included). Authenticated by an organization API key with the `usage:read` permission.',
6969
+ description: "Report billable usage and cost for the organization over a time window, broken down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps; optionally pass `projectId` to scope the report to one project. Amounts are billable spend only (what we absorb is never included). Authenticated by either an organization API key with the `usage:read` permission (any project in the organization), or a project API key with the `billing:read` permission (that key's own project only; any other `projectId` is a 403).",
6842
6970
  positionals: [],
6843
6971
  flags: [
6844
6972
  {