current-cli 0.1.49__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.49
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:
@@ -7250,15 +7248,48 @@ components:
7250
7248
  type: string
7251
7249
  note:
7252
7250
  type: string
7251
+ files:
7252
+ type: array
7253
+ items:
7254
+ type: string
7255
+ batch:
7256
+ allOf:
7257
+ - $ref: '#/components/schemas/RunTriggerBatch'
7258
+ nullable: true
7253
7259
  observations:
7254
7260
  type: array
7255
7261
  items:
7256
7262
  $ref: '#/components/schemas/RunTriggerObservation'
7257
7263
  required:
7264
+ - batch
7258
7265
  - conversation_key
7266
+ - files
7259
7267
  - kind
7260
7268
  - note
7261
7269
  - observations
7270
+ RunTriggerBatch:
7271
+ type: object
7272
+ description: |-
7273
+ The document batch an email intake staged for a run (see
7274
+ ``workflows.intake``). The staged paths are the trigger's ``files``.
7275
+ properties:
7276
+ id:
7277
+ type: string
7278
+ message_id:
7279
+ type: string
7280
+ subject:
7281
+ type: string
7282
+ skipped:
7283
+ type: array
7284
+ items:
7285
+ type: string
7286
+ from:
7287
+ type: string
7288
+ required:
7289
+ - from
7290
+ - id
7291
+ - message_id
7292
+ - subject
7262
7293
  RunTriggerObservation:
7263
7294
  type: object
7264
7295
  description: One message that triggered a run, from its trigger context.
@@ -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.49"
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