current-cli 0.1.50__tar.gz → 0.1.52__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.52
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:
@@ -3157,6 +3155,46 @@ paths:
3157
3155
  schema:
3158
3156
  $ref: '#/components/schemas/AttachmentResult'
3159
3157
  description: ''
3158
+ /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/source/:
3159
+ post:
3160
+ operationId: supplier_documents_workspaces_sets_attachments_source_create
3161
+ parameters:
3162
+ - in: path
3163
+ name: set_id
3164
+ schema:
3165
+ type: string
3166
+ format: uuid
3167
+ required: true
3168
+ - in: path
3169
+ name: workspace_id
3170
+ schema:
3171
+ type: string
3172
+ format: uuid
3173
+ required: true
3174
+ tags:
3175
+ - supplier-documents
3176
+ requestBody:
3177
+ content:
3178
+ application/json:
3179
+ schema:
3180
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3181
+ application/x-www-form-urlencoded:
3182
+ schema:
3183
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3184
+ multipart/form-data:
3185
+ schema:
3186
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3187
+ required: true
3188
+ security:
3189
+ - MessagingJobTokenAuth: []
3190
+ - tokenAuth: []
3191
+ responses:
3192
+ '201':
3193
+ content:
3194
+ application/json:
3195
+ schema:
3196
+ $ref: '#/components/schemas/AttachmentResult'
3197
+ description: ''
3160
3198
  /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/:
3161
3199
  get:
3162
3200
  operationId: supplier_documents_workspaces_sets_review_retrieve
@@ -4680,6 +4718,28 @@ components:
4680
4718
  - password
4681
4719
  - username
4682
4720
  - workspace
4721
+ ArithmeticCheck:
4722
+ type: object
4723
+ properties:
4724
+ check:
4725
+ type: string
4726
+ stated:
4727
+ type: number
4728
+ format: double
4729
+ calculated:
4730
+ type: number
4731
+ format: double
4732
+ difference:
4733
+ type: number
4734
+ format: double
4735
+ result:
4736
+ $ref: '#/components/schemas/ResultEnum'
4737
+ required:
4738
+ - calculated
4739
+ - check
4740
+ - difference
4741
+ - result
4742
+ - stated
4683
4743
  AttachRequestRequest:
4684
4744
  type: object
4685
4745
  properties:
@@ -5118,6 +5178,9 @@ components:
5118
5178
  filename:
5119
5179
  type: string
5120
5180
  readOnly: true
5181
+ source_path:
5182
+ type: string
5183
+ readOnly: true
5121
5184
  created_at:
5122
5185
  type: string
5123
5186
  format: date-time
@@ -5127,6 +5190,7 @@ components:
5127
5190
  - filename
5128
5191
  - id
5129
5192
  - sha256
5193
+ - source_path
5130
5194
  - workspace
5131
5195
  DocumentDecisionEnum:
5132
5196
  enum:
@@ -5222,6 +5286,19 @@ components:
5222
5286
  type: string
5223
5287
  required:
5224
5288
  - detail
5289
+ ExistingSourceAttachmentInputRequest:
5290
+ type: object
5291
+ properties:
5292
+ document:
5293
+ type: string
5294
+ format: uuid
5295
+ reason:
5296
+ type: string
5297
+ minLength: 1
5298
+ maxLength: 2048
5299
+ required:
5300
+ - document
5301
+ - reason
5225
5302
  Extraction:
5226
5303
  type: object
5227
5304
  properties:
@@ -7102,6 +7179,14 @@ components:
7102
7179
  required:
7103
7180
  - action
7104
7181
  - version
7182
+ ResultEnum:
7183
+ enum:
7184
+ - match
7185
+ - mismatch
7186
+ type: string
7187
+ description: |-
7188
+ * `match` - match
7189
+ * `mismatch` - mismatch
7105
7190
  RevertRequestRequest:
7106
7191
  type: object
7107
7192
  properties:
@@ -7404,7 +7489,12 @@ components:
7404
7489
  source_path:
7405
7490
  type: string
7406
7491
  record: {}
7492
+ checks:
7493
+ type: array
7494
+ items:
7495
+ $ref: '#/components/schemas/ArithmeticCheck'
7407
7496
  required:
7497
+ - checks
7408
7498
  - document
7409
7499
  - extraction
7410
7500
  - filename
@@ -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.
248
+ A URL the browser shows in place, rather than downloads.
249
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.
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
 
@@ -1077,6 +1075,13 @@ POST /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments
1077
1075
  Options:
1078
1076
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1079
1077
 
1078
+ ### current supplier-documents workspaces sets attachments source create <workspace_id> <set_id>
1079
+
1080
+ POST /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/source/
1081
+
1082
+ Options:
1083
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1084
+
1080
1085
  ### current supplier-documents workspaces sets review retrieve <workspace_id> <set_id>
1081
1086
 
1082
1087
  GET /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.50"
3
+ version = "0.1.52"
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