@velaro/cli 1.4.189 → 1.4.190

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.
@@ -299,6 +299,26 @@ export const bookingCommand = {
299
299
  })
300
300
  .demandCommand(1, 'Specify an availability action: list | get | create | update | delete'),
301
301
  })
302
+ // -- link (signed public booking link slug; POST /Bookings/Slug) ----------------
303
+ .command({
304
+ command: 'link <action>',
305
+ describe: 'Public booking link slugs (signed; required by the public slots/bookings endpoints)',
306
+ builder: y => y
307
+ .command({
308
+ command: 'create',
309
+ describe: 'Issue a signed booking link slug, optionally scoped to a resource and/or service',
310
+ builder: y2 => y2
311
+ .option('resource-id', { type: 'number', describe: 'Limit the link to one bookable resource' })
312
+ .option('service-id', { type: 'number', describe: 'Limit the link to one bookable service' }),
313
+ handler: runCommand(async argv => {
314
+ const r = await messagingPost('/Bookings/Slug', { resourceId: argv['resource-id'], serviceId: argv['service-id'] });
315
+ console.log(`
316
+ ✓ Booking link slug: ${r.slug}
317
+ `);
318
+ }),
319
+ })
320
+ .demandCommand(1, 'Specify a link action: create'),
321
+ })
302
322
  // -- appointment (Phase 1c: real bookings, staff-facing) ------------------------
303
323
  .command({
304
324
  command: 'appointment <action>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/cli",
3
- "version": "1.4.189",
3
+ "version": "1.4.190",
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": {