current-cli 0.1.43__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.43
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
@@ -2013,8 +2050,10 @@ paths:
2013
2050
  type: string
2014
2051
  description: Keep only projects whose current value matches, as 'key:value'
2015
2052
  (for example 'status:Active'). Repeat for more fields; repeating one key
2016
- accepts any of its values. An option matches by label, value, or ID. 'total'
2017
- counts the matching projects.
2053
+ accepts any of its values. An option matches by label, value, or ID. Use
2054
+ 'key:*' for any value (is not blank) and 'key:!' for no value (is blank).
2055
+ A number or date value may lead with '<', '<=', '>', or '>='; two bounds
2056
+ on one key are a range. 'total' counts the matching projects.
2018
2057
  - in: query
2019
2058
  name: limit
2020
2059
  schema:
@@ -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.
@@ -682,7 +699,7 @@ GET /api/projects/projects/inventory/
682
699
 
683
700
  Options:
684
701
  - `--fields` - Field keys to keep; omit to return every current value
685
- - `--filter` - Keep only projects whose current value matches, as 'key:value' (for example 'status:Active'). Repeat for more fields; repeating one key accepts any of its values. An option matches by label, value, or ID. 'total' counts the matching projects.
702
+ - `--filter` - Keep only projects whose current value matches, as 'key:value' (for example 'status:Active'). Repeat for more fields; repeating one key accepts any of its values. An option matches by label, value, or ID. Use 'key:*' for any value (is not blank) and 'key:!' for no value (is blank). A number or date value may lead with '<', '<=', '>', or '>='; two bounds on one key are a range. 'total' counts the matching projects.
686
703
  - `--limit` - Max projects per page (default 100, max 200)
687
704
  - `--offset` - Number of projects to skip (default 0)
688
705
  - `--values` - Read option values as labels (default) or as option IDs
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.43"
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