@zincapp/znvault-cli 2.11.0 → 2.11.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"completion.d.ts","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAqWzC,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAyCjE"}
|
|
@@ -13,7 +13,7 @@ _znvault_completions() {
|
|
|
13
13
|
_init_completion || return
|
|
14
14
|
|
|
15
15
|
# Top-level commands
|
|
16
|
-
local commands="login logout whoami config profile health status cluster tenant user superadmin lockdown audit emergency cert agent update apikey policy permissions secret kms role backup notification tui dashboard self-update advisor completion version help"
|
|
16
|
+
local commands="login logout whoami config profile health status cluster tenant user superadmin lockdown audit emergency cert agent update apikey policy permissions secret kms role backup notification tui dashboard self-update advisor crypto device unseal completion version help"
|
|
17
17
|
|
|
18
18
|
# Subcommands for each command group
|
|
19
19
|
local cluster_cmds="status takeover release promote maintenance"
|
|
@@ -35,6 +35,9 @@ _znvault_completions() {
|
|
|
35
35
|
local advisor_cmds="audit rules suggest llm"
|
|
36
36
|
local advisor_llm_cmds="status get config test delete"
|
|
37
37
|
local profile_cmds="list create delete use rename"
|
|
38
|
+
local crypto_cmds="status list grant revoke transfer-root"
|
|
39
|
+
local device_cmds="list revoke enroll"
|
|
40
|
+
local unseal_cmds="status seal"
|
|
38
41
|
local completion_cmds="bash zsh"
|
|
39
42
|
|
|
40
43
|
case "\${cword}" in
|
|
@@ -60,6 +63,9 @@ _znvault_completions() {
|
|
|
60
63
|
notification) COMPREPLY=( \$(compgen -W "\${notification_cmds}" -- "\${cur}") ) ;;
|
|
61
64
|
advisor) COMPREPLY=( \$(compgen -W "\${advisor_cmds}" -- "\${cur}") ) ;;
|
|
62
65
|
profile) COMPREPLY=( \$(compgen -W "\${profile_cmds}" -- "\${cur}") ) ;;
|
|
66
|
+
crypto) COMPREPLY=( \$(compgen -W "\${crypto_cmds}" -- "\${cur}") ) ;;
|
|
67
|
+
device) COMPREPLY=( \$(compgen -W "\${device_cmds}" -- "\${cur}") ) ;;
|
|
68
|
+
unseal) COMPREPLY=( \$(compgen -W "\${unseal_cmds}" -- "\${cur}") ) ;;
|
|
63
69
|
completion) COMPREPLY=( \$(compgen -W "\${completion_cmds}" -- "\${cur}") ) ;;
|
|
64
70
|
*) ;;
|
|
65
71
|
esac
|
|
@@ -178,6 +184,9 @@ _znvault() {
|
|
|
178
184
|
'dashboard:Launch interactive dashboard'
|
|
179
185
|
'self-update:Update znvault CLI'
|
|
180
186
|
'advisor:AI-powered security advisor'
|
|
187
|
+
'crypto:Manage admin crypto access grants'
|
|
188
|
+
'device:Manage enrolled devices'
|
|
189
|
+
'unseal:Unseal the vault for crypto operations'
|
|
181
190
|
'completion:Generate shell completion scripts'
|
|
182
191
|
'version:Show version'
|
|
183
192
|
'help:Display help'
|
|
@@ -300,6 +309,31 @@ _znvault() {
|
|
|
300
309
|
fi
|
|
301
310
|
_describe -t subcommands 'subcommand' subcommands
|
|
302
311
|
;;
|
|
312
|
+
crypto)
|
|
313
|
+
subcommands=(
|
|
314
|
+
'status:Show crypto mode status'
|
|
315
|
+
'list:List crypto grants'
|
|
316
|
+
'grant:Grant crypto access to an admin'
|
|
317
|
+
'revoke:Revoke crypto access from an admin'
|
|
318
|
+
'transfer-root:Transfer tenant root to another user'
|
|
319
|
+
)
|
|
320
|
+
_describe -t subcommands 'subcommand' subcommands
|
|
321
|
+
;;
|
|
322
|
+
device)
|
|
323
|
+
subcommands=(
|
|
324
|
+
'list:List enrolled devices'
|
|
325
|
+
'revoke:Revoke a device'
|
|
326
|
+
'enroll:Show enrollment instructions'
|
|
327
|
+
)
|
|
328
|
+
_describe -t subcommands 'subcommand' subcommands
|
|
329
|
+
;;
|
|
330
|
+
unseal)
|
|
331
|
+
subcommands=(
|
|
332
|
+
'status:Check unseal status'
|
|
333
|
+
'seal:Seal the vault'
|
|
334
|
+
)
|
|
335
|
+
_describe -t subcommands 'subcommand' subcommands
|
|
336
|
+
;;
|
|
303
337
|
completion)
|
|
304
338
|
subcommands=(
|
|
305
339
|
'bash:Generate bash completion'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAG/C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C;;GAEG;AACH,SAAS,sBAAsB;IAC7B,OAAO
|
|
1
|
+
{"version":3,"file":"completion.js","sourceRoot":"","sources":["../../src/commands/completion.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAG/C,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAE3C;;GAEG;AACH,SAAS,sBAAsB;IAC7B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHR,CAAC;AACF,CAAC;AAED;;GAEG;AACH,SAAS,qBAAqB;IAC5B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmOR,CAAC;AACF,CAAC;AAED,MAAM,U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