current-cli 0.1.44__tar.gz → 0.1.46__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.46
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
@@ -3910,6 +3947,7 @@ components:
3910
3947
  - secondary
3911
3948
  - success
3912
3949
  - primary
3950
+ - error
3913
3951
  type: string
3914
3952
  description: |-
3915
3953
  * `neutral` - Neutral
@@ -3918,6 +3956,7 @@ components:
3918
3956
  * `secondary` - Secondary
3919
3957
  * `success` - Success
3920
3958
  * `primary` - Primary
3959
+ * `error` - Error
3921
3960
  ConditionCompileRequest:
3922
3961
  type: object
3923
3962
  description: |-
@@ -5018,6 +5057,8 @@ components:
5018
5057
  $ref: '#/components/schemas/DataTypeEnum'
5019
5058
  is_array:
5020
5059
  type: boolean
5060
+ is_status:
5061
+ type: boolean
5021
5062
  required:
5022
5063
  type: boolean
5023
5064
  options:
@@ -5248,6 +5289,8 @@ components:
5248
5289
  is_system:
5249
5290
  type: boolean
5250
5291
  readOnly: true
5292
+ is_status:
5293
+ type: boolean
5251
5294
  required:
5252
5295
  type: boolean
5253
5296
  options:
@@ -5285,6 +5328,8 @@ components:
5285
5328
  $ref: '#/components/schemas/DataTypeEnum'
5286
5329
  is_array:
5287
5330
  type: boolean
5331
+ is_status:
5332
+ type: boolean
5288
5333
  required:
5289
5334
  type: boolean
5290
5335
  options:
@@ -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.46"
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