@velaro/cli 1.4.199 → 1.4.200

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.
@@ -166,6 +166,9 @@ export const teamsCommand = {
166
166
  .option('ticket-created', { type: 'boolean', describe: 'Ticket created alerts on/off' })
167
167
  .option('ticket-assigned', { type: 'boolean', describe: 'Ticket assigned alerts on/off' })
168
168
  .option('daily-digest', { type: 'boolean', describe: 'Daily digest on/off' })
169
+ .option('pin', { type: 'number', describe: 'Pin alerts to this Teams destination (a refId from --list-targets)' })
170
+ .option('unpin', { type: 'boolean', describe: 'Unpin and use the most recently active Teams conversation' })
171
+ .option('list-targets', { type: 'boolean', describe: 'List the Teams destinations alerts can be pinned to' })
169
172
  .option('daily-cap', { type: 'number', describe: 'Max alerts per day for this account' })
170
173
  .option('reset-daily-cap', { type: 'boolean', describe: 'Clear the account cap and use the platform default' })
171
174
  .option('status-every', { type: 'number', describe: 'Post a status into the channel every N minutes (5-1440; plan limits apply)' })
@@ -173,7 +176,13 @@ export const teamsCommand = {
173
176
  .option('status-when-queue', { type: 'number', describe: 'Post a status as soon as this many chats are waiting (0 = no limit)' })
174
177
  .option('status-when-wait', { type: 'number', describe: 'Post a status as soon as the longest wait reaches this many minutes (0 = no limit)' }),
175
178
  async (argv) => {
179
+ if (argv.listTargets) {
180
+ console.log(JSON.stringify(await request('GET', '/TeamsBot/PushTargets'), null, 2));
181
+ return;
182
+ }
176
183
  const body = {};
184
+ if (argv.pin !== undefined) body.pinnedConversationRefId = argv.pin;
185
+ if (argv.unpin) body.clearPinnedConversation = true;
177
186
  if (argv.newChat !== undefined) body.pushNewChat = argv.newChat;
178
187
  if (argv.missed !== undefined) body.pushMissed = argv.missed;
179
188
  if (argv.ticketCreated !== undefined) body.pushTicketCreated = argv.ticketCreated;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.199",
3
+ "version": "1.4.200",
4
4
  "description": "Velaro Workspace v20 — command-line interface for managing bots, knowledge base ingestion, MCP API keys, search indexes, and ops health.",
5
5
  "type": "module",
6
6
  "bin": {