@roarkanalytics/cli 0.35.0 → 0.37.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,26 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.37.1](https://github.com/roarkhq/cli-roark-analytics/compare/v0.37.0...v0.37.1) (2026-10-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **deps:** raise the @roarkanalytics/sdk floor to the release the credential commands need ([#93](https://github.com/roarkhq/cli-roark-analytics/issues/93)) ([179a331](https://github.com/roarkhq/cli-roark-analytics/commit/179a3319003fda28947bb06593c6e10b1e5af02c))
9
+
10
+ ## [0.37.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.36.0...v0.37.0) (2026-10-05)
11
+
12
+
13
+ ### Features
14
+
15
+ * **cli:** cli update ([#91](https://github.com/roarkhq/cli-roark-analytics/issues/91)) ([430457c](https://github.com/roarkhq/cli-roark-analytics/commit/430457c6a130db45a1125c2f864187f1f5495b3b))
16
+
17
+ ## [0.36.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.35.0...v0.36.0) (2026-10-03)
18
+
19
+
20
+ ### Features
21
+
22
+ * **cli:** cli update ([#89](https://github.com/roarkhq/cli-roark-analytics/issues/89)) ([9277bd4](https://github.com/roarkhq/cli-roark-analytics/commit/9277bd407dd4a2e2fe2d563319006a182a37698f))
23
+
3
24
  ## [0.35.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.34.0...v0.35.0) (2026-10-02)
4
25
 
5
26
 
package/README.md CHANGED
@@ -177,6 +177,14 @@ roark completion fish | source
177
177
  | `roark config apply [dir]` | Reconcile the project to a config directory (or bundle). Previews and confirms first. |
178
178
  | `roark config diff [dir]` | Preview the changes a config directory (or bundle) would make. No writes. |
179
179
 
180
+ ### credential
181
+
182
+ | Command | Description |
183
+ | ----------------------------------------- | --------------------------------------- |
184
+ | `roark credential create --name <value>` | Create a personal credential |
185
+ | `roark credential list` | List your personal credentials |
186
+ | `roark credential revoke <credential-id>` | Revoke one of your personal credentials |
187
+
180
188
  ### customer-flow
181
189
 
182
190
  | Command | Description |
package/commands.js CHANGED
@@ -30,6 +30,7 @@ exports.GROUPS = {
30
30
  'call tool-invocation': 'Manage call tool invocations',
31
31
  'call transcript': 'Read call transcript',
32
32
  config: 'Read configs',
33
+ credential: 'Manage credentials',
33
34
  'customer-flow': 'Manage customer flows',
34
35
  'customer-flow edge-case': 'Manage customer flow edge cases',
35
36
  'customer-flow graph': 'Manage customer flow graph',
@@ -1643,6 +1644,44 @@ exports.COMMANDS = [
1643
1644
  valueKind: 'string',
1644
1645
  repeatable: false,
1645
1646
  },
1647
+ {
1648
+ name: 'simulation-run-plan-job-ids',
1649
+ path: ['simulationRunPlanJobIds'],
1650
+ location: 'query',
1651
+ required: false,
1652
+ description: 'Calls from any of these simulation runs (run plan job ids), comma-separated, at most 100',
1653
+ valueKind: 'string',
1654
+ repeatable: false,
1655
+ },
1656
+ {
1657
+ name: 'simulation-run-plan-ids',
1658
+ path: ['simulationRunPlanIds'],
1659
+ location: 'query',
1660
+ required: false,
1661
+ description: 'Calls from every run of any of these run plans, comma-separated, at most 100',
1662
+ valueKind: 'string',
1663
+ repeatable: false,
1664
+ },
1665
+ {
1666
+ name: 'counted-in-results',
1667
+ path: ['countedInResults'],
1668
+ location: 'query',
1669
+ required: false,
1670
+ description: "true: only simulated calls their run's results count (not invalidated, for example because the agent never spoke). false: only the simulated calls the results leave out, each invalidated. Live calls, and calls removed from their run, match neither.",
1671
+ valueKind: 'string',
1672
+ enumValues: ['true', 'false'],
1673
+ repeatable: false,
1674
+ },
1675
+ {
1676
+ name: 'exclude-hidden-runs',
1677
+ path: ['excludeHiddenRuns'],
1678
+ location: 'query',
1679
+ required: false,
1680
+ description: 'true: leave out calls from runs hidden from the runs list. Live calls stay in. false is the same as leaving it out.',
1681
+ valueKind: 'string',
1682
+ enumValues: ['true', 'false'],
1683
+ repeatable: false,
1684
+ },
1646
1685
  ],
1647
1686
  hasParams: true,
1648
1687
  paramsAllOptional: true,
@@ -1857,6 +1896,120 @@ exports.COMMANDS = [
1857
1896
  acceptsBody: true,
1858
1897
  requiresAuth: true,
1859
1898
  },
1899
+ {
1900
+ commandPath: ['credential', 'create'],
1901
+ clientProperty: 'me',
1902
+ methodName: 'createAPIKey',
1903
+ httpMethod: 'post',
1904
+ httpPath: '/v1/me/api-keys',
1905
+ summary: 'Create a personal credential',
1906
+ description: 'Mints a credential that acts as you, for a CLI or an automation. The key value is returned exactly once, in the `key` field: capture it now, it is unreadable afterwards. Requires a personal credential (a project API key is refused) and admin on the project the credential defaults to. The new credential can never exceed the one that created it: not in scope, not in permissions, and not in lifetime. Omit a field to copy it from the calling credential.',
1907
+ positionals: [],
1908
+ flags: [
1909
+ {
1910
+ name: 'name',
1911
+ path: ['name'],
1912
+ location: 'body',
1913
+ required: true,
1914
+ description: 'A label you will recognise later. It is the only thing that tells two credentials apart in the list you revoke from.',
1915
+ valueKind: 'string',
1916
+ repeatable: false,
1917
+ },
1918
+ {
1919
+ name: 'project-id',
1920
+ path: ['projectId'],
1921
+ location: 'body',
1922
+ required: false,
1923
+ description: "Project the credential assumes when a request sends no X-Roark-Project-Id header. Defaults to the calling credential's own default project. You must be an admin of whichever project is used.",
1924
+ valueKind: 'string',
1925
+ repeatable: false,
1926
+ },
1927
+ {
1928
+ name: 'scopes',
1929
+ path: ['scopes'],
1930
+ location: 'body',
1931
+ required: false,
1932
+ description: "Coarse tier. Defaults to the calling credential's own tier, and can never exceed it: a READ credential cannot mint a WRITE one.",
1933
+ valueKind: 'array',
1934
+ enumValues: ['READ', 'WRITE'],
1935
+ repeatable: true,
1936
+ },
1937
+ {
1938
+ name: 'permissions',
1939
+ path: ['permissions'],
1940
+ location: 'body',
1941
+ required: false,
1942
+ description: "Granular 'resource:action' permissions. Defaults to the calling credential's own set, and can never exceed it. A ceiling, not an entitlement: the holder still only reaches what their project membership allows.",
1943
+ valueKind: 'array',
1944
+ repeatable: true,
1945
+ },
1946
+ {
1947
+ name: 'expires-at',
1948
+ path: ['expiresAt'],
1949
+ location: 'body',
1950
+ required: false,
1951
+ description: "ISO 8601 expiry. Defaults to the calling credential's own expiry (no expiry, for a `roark auth login` credential) and may not outlive it, so a short-lived connector credential cannot mint a permanent one.",
1952
+ valueKind: 'string',
1953
+ repeatable: false,
1954
+ },
1955
+ ],
1956
+ hasParams: true,
1957
+ paramsAllOptional: false,
1958
+ bodyOpaque: false,
1959
+ bodyVariants: [],
1960
+ acceptsBody: true,
1961
+ requiresAuth: true,
1962
+ },
1963
+ {
1964
+ commandPath: ['credential', 'list'],
1965
+ clientProperty: 'me',
1966
+ methodName: 'listAPIKeys',
1967
+ httpMethod: 'get',
1968
+ httpPath: '/v1/me/api-keys',
1969
+ summary: 'List your personal credentials',
1970
+ description: 'Returns the credentials that act as you: the ones created in the dashboard, from `roark auth login`, and MCP connectors. Requires a personal credential; a project API key is refused. Defaults to ACTIVE, pass ?status=REVOKED to see revoked ones. The key value itself is never returned.',
1971
+ positionals: [],
1972
+ flags: [
1973
+ {
1974
+ name: 'status',
1975
+ path: ['status'],
1976
+ location: 'query',
1977
+ required: false,
1978
+ description: 'Filter by status. Defaults to ACTIVE.',
1979
+ valueKind: 'string',
1980
+ enumValues: ['ACTIVE', 'REVOKED'],
1981
+ repeatable: false,
1982
+ },
1983
+ ],
1984
+ hasParams: true,
1985
+ paramsAllOptional: true,
1986
+ bodyOpaque: false,
1987
+ bodyVariants: [],
1988
+ acceptsBody: false,
1989
+ requiresAuth: true,
1990
+ },
1991
+ {
1992
+ commandPath: ['credential', 'revoke'],
1993
+ clientProperty: 'me',
1994
+ methodName: 'revokeAPIKey',
1995
+ httpMethod: 'delete',
1996
+ httpPath: '/v1/me/api-keys/{id}',
1997
+ summary: 'Revoke one of your personal credentials',
1998
+ description: 'Revokes a credential that acts as you. It stops working immediately. A credential may revoke itself, which is what `roark auth logout` does. Repeating the call is safe; an unknown id, or one belonging to someone else, answers 404.',
1999
+ positionals: [
2000
+ {
2001
+ name: 'credential-id',
2002
+ paramKey: 'id',
2003
+ },
2004
+ ],
2005
+ flags: [],
2006
+ hasParams: false,
2007
+ paramsAllOptional: true,
2008
+ bodyOpaque: false,
2009
+ bodyVariants: [],
2010
+ acceptsBody: false,
2011
+ requiresAuth: true,
2012
+ },
1860
2013
  {
1861
2014
  commandPath: ['customer-flow', 'create'],
1862
2015
  clientProperty: 'customerFlow',