@roarkanalytics/cli 0.36.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,19 @@
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
+
3
17
  ## [0.36.0](https://github.com/roarkhq/cli-roark-analytics/compare/v0.35.0...v0.36.0) (2026-10-03)
4
18
 
5
19
 
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',
@@ -1895,6 +1896,120 @@ exports.COMMANDS = [
1895
1896
  acceptsBody: true,
1896
1897
  requiresAuth: true,
1897
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
+ },
1898
2013
  {
1899
2014
  commandPath: ['customer-flow', 'create'],
1900
2015
  clientProperty: 'customerFlow',