@vatio-ai/cli 0.134.0 → 0.135.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.
@@ -114,7 +114,7 @@ function takeRepeated(args, flag) {
114
114
  const KINDS = ["publishable", "secret"];
115
115
  // What a secret key may call on the server API. The platform validates them;
116
116
  // this list is only for the help text. `team` is never given by default.
117
- const SCOPES = ["messages", "instagram", "chats", "team"];
117
+ const SCOPES = ["messages", "instagram", "chats", "status", "team"];
118
118
  const KEYS_USAGE =
119
119
  "Usage: vatio keys list [--json]|create publishable|secret [--test] [--label NAME] " +
120
120
  "[--scope NAME]... [--code CODE | --recovery-code CODE] [--json]|revoke PREFIX";
@@ -215,6 +215,7 @@ export async function keys(config, args) {
215
215
  const granted = asArray(payload.api_key?.scopes);
216
216
  const [what, path] = granted.includes("messages")
217
217
  ? ["lists the templates your number can send", "templates"]
218
+ : granted.includes("status") ? ["reads where the WhatsApp number stands", "whatsapp"]
218
219
  : granted.includes("team") ? ["lists the workspace's team", "team_members"] : [null, null];
219
220
  if (path) {
220
221
  console.log(`Try it (${what}):`);
package/lib/help.mjs CHANGED
@@ -215,8 +215,8 @@ it made obsolete, moves it on. \`vatio rollback\` undoes the last change.
215
215
  number: for your backend's development and staging
216
216
  keys create secret --scope NAME... [--code CODE | --recovery-code CODE]
217
217
  What the secret key may call: messages, instagram,
218
- chats, team (repeatable). Without --scope, all but
219
- team. team (add people to the team) is the owner's,
218
+ chats, status, team (repeatable). Without --scope,
219
+ all but team. team (add people to the team) is the owner's,
220
220
  with a code from their authenticator app
221
221
  keys revoke PREFIX
222
222
  auth --new-key Keypair that signs the JWT saying who a visitor is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vatio-ai/cli",
3
- "version": "0.134.0",
3
+ "version": "0.135.0",
4
4
  "description": "Vatio CLI — deploy and manage Vatio agent workspaces",
5
5
  "keywords": [
6
6
  "vatio",