current-cli 0.1.50__tar.gz → 0.1.51__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.50
3
+ Version: 0.1.51
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
@@ -660,15 +660,13 @@ paths:
660
660
  post:
661
661
  operationId: files_preview_url
662
662
  description: |-
663
- A URL the browser can render in place, rather than download.
663
+ A URL the browser shows in place, rather than downloads.
664
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.
665
+ The same object ``files_download_url`` hands over, signed instead with
666
+ the content type its format calls for and an inline disposition, which
667
+ is what a viewer needs to display it. A format the portal does not
668
+ render inline stays a download. ``storage.preview_url`` holds why a
669
+ plain presigned GET is not enough.
672
670
  tags:
673
671
  - files
674
672
  requestBody:
@@ -245,15 +245,13 @@ Options:
245
245
 
246
246
  ### current files preview-url post
247
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.
248
+ A URL the browser shows in place, rather than downloads.
249
+
250
+ The same object ``files_download_url`` hands over, signed instead with
251
+ the content type its format calls for and an inline disposition, which
252
+ is what a viewer needs to display it. A format the portal does not
253
+ render inline stays a download. ``storage.preview_url`` holds why a
254
+ plain presigned GET is not enough.
257
255
 
258
256
  POST /api/files/preview-url/
259
257
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.50"
3
+ version = "0.1.51"
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