@fugood/bricks-cli 2.26.0-beta.31 → 2.26.0-beta.33

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/README.md CHANGED
@@ -340,7 +340,7 @@ bricks blueprint projection <blueprint-id>
340
340
 
341
341
  Media Flow commands require:
342
342
  - Workspace has Media Flow enabled (`Workspace Settings → Media Flow`).
343
- - Your token includes `query_media_flow` permission (and `write_media_flow` for future upload/mutation features).
343
+ - Your token includes `query_media_flow` permission (and `write_media_flow` for upload and other changes).
344
344
 
345
345
  ```bash
346
346
  # List Media Flow boxes
@@ -357,8 +357,27 @@ bricks media files <box-id> \
357
357
 
358
358
  # Get a Media Flow file (prints original + thumbnail URLs)
359
359
  bricks media file <file-id> [-j|--json]
360
+
361
+ # Create / edit a box (OAuth login only: the workspace token API has no box mutations)
362
+ bricks media box-create -n <name> [-d description] [-t tag ...] [-j]
363
+ bricks media box-edit <box-id> [-n name] [-d description] [-t tag ... | --clear-tags] [-j]
364
+
365
+ # Passcodes (codes are hidden in all output unless --show-codes; add/remove need OAuth)
366
+ bricks media passcode list <box-id> [--show-codes] [-j]
367
+ bricks media passcode add <box-id> [-n name] (--code-stdin | --code <code>) \
368
+ [--expires-in 30m|12h|7d] [-p ALL|READ_ONLY,POST_ONLY,DELETE] [--show-codes] [-j]
369
+ bricks media passcode remove <box-id> <passcode-id> [-y] [-j]
370
+
371
+ # Files
372
+ bricks media file-edit <file-id...> [-n name] [-d description] [-t tag ... | --clear-tags] [-j]
373
+ bricks media file-copy <from-box-id> <to-box-id> <file-id...> [-j]
374
+ bricks media file-delete <box-id> <file-id...> [-y] [-j]
375
+ bricks media box-clear <box-id> [-t image,video] [-y] [-j]
376
+ bricks media box-preview <file-id> [-j]
360
377
  ```
361
378
 
379
+ `media boxes`, `media box` and `media passcode list` hide passcode codes, also with `--json`; pass `--show-codes` to include them. For passcodes made in box settings the server returns a hash, not the code. `file-delete`, `box-clear` and `passcode remove` ask for confirmation on a terminal, and need `-y` in scripts or with `--json`.
380
+
362
381
  ### Data Bank (Remote Properties)
363
382
 
364
383
  Manage the workspace Data Bank: settings and space keys go through the Workspace API