current-cli 0.1.44__tar.gz → 0.1.45__tar.gz

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,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: current-cli
3
- Version: 0.1.44
3
+ Version: 0.1.45
4
4
  Summary: Command line interface for the Current API, generated from its OpenAPI schema at runtime
5
5
  Author-email: Orin <your-email@example.com>
6
6
  License-Expression: MIT
@@ -656,6 +656,43 @@ paths:
656
656
  schema:
657
657
  $ref: '#/components/schemas/FilesErrorDetail'
658
658
  description: ''
659
+ /api/files/preview-url/:
660
+ post:
661
+ operationId: files_preview_url
662
+ description: |-
663
+ A URL the browser can render in place, rather than download.
664
+
665
+ ``download_url`` stamps ``Content-Disposition: attachment``, which is
666
+ right for the file browser's download button and fatal for a viewer:
667
+ Chrome will still paint an ``<img>`` from such a URL, but it leaves an
668
+ ``<object type="application/pdf">`` blank — so the closeout report's
669
+ evidence viewer showed an empty pane for every PDF it opened, which is
670
+ most of the evidence a closeout has. ``storage.get_url`` is the same
671
+ presigned GET without the disposition.
672
+ tags:
673
+ - files
674
+ requestBody:
675
+ content:
676
+ application/json:
677
+ schema:
678
+ $ref: '#/components/schemas/FilePathRequestRequest'
679
+ application/x-www-form-urlencoded:
680
+ schema:
681
+ $ref: '#/components/schemas/FilePathRequestRequest'
682
+ multipart/form-data:
683
+ schema:
684
+ $ref: '#/components/schemas/FilePathRequestRequest'
685
+ required: true
686
+ security:
687
+ - MessagingJobTokenAuth: []
688
+ - tokenAuth: []
689
+ responses:
690
+ '200':
691
+ content:
692
+ application/json:
693
+ schema:
694
+ $ref: '#/components/schemas/FileUrlResponse'
695
+ description: ''
659
696
  /api/files/upload-url/:
660
697
  post:
661
698
  operationId: files_upload_url
@@ -243,6 +243,23 @@ Options:
243
243
  - `--prefix` - Narrow to one tree, e.g. company/ or projects/<id>/
244
244
  - `--workspace` - Workspace UUID
245
245
 
246
+ ### current files preview-url post
247
+
248
+ A URL the browser can render in place, rather than download.
249
+
250
+ ``download_url`` stamps ``Content-Disposition: attachment``, which is
251
+ right for the file browser's download button and fatal for a viewer:
252
+ Chrome will still paint an ``<img>`` from such a URL, but it leaves an
253
+ ``<object type="application/pdf">`` blank — so the closeout report's
254
+ evidence viewer showed an empty pane for every PDF it opened, which is
255
+ most of the evidence a closeout has. ``storage.get_url`` is the same
256
+ presigned GET without the disposition.
257
+
258
+ POST /api/files/preview-url/
259
+
260
+ Options:
261
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
262
+
246
263
  ### current files upload-url post
247
264
 
248
265
  POST {workspace, path} -> {url, path}; subclasses pick the verb.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.44"
3
+ version = "0.1.45"
4
4
  description = "Command line interface for the Current API, generated from its OpenAPI schema at runtime"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes