current-cli 0.1.41__tar.gz → 0.1.42__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.41
3
+ Version: 0.1.42
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
@@ -606,6 +606,56 @@ paths:
606
606
  schema:
607
607
  $ref: '#/components/schemas/FileUrlResponse'
608
608
  description: ''
609
+ /api/files/download-zip/:
610
+ post:
611
+ operationId: files_download_zip
612
+ description: |-
613
+ Zip one or more workspace files, and/or whole folders (given as a
614
+ path ending in "/"), and stream the archive back. See MAX_ZIP_* for
615
+ why this is bounded, unlike the presigned-URL endpoints above.
616
+ tags:
617
+ - files
618
+ requestBody:
619
+ content:
620
+ application/json:
621
+ schema:
622
+ $ref: '#/components/schemas/FileZipRequestRequest'
623
+ application/x-www-form-urlencoded:
624
+ schema:
625
+ $ref: '#/components/schemas/FileZipRequestRequest'
626
+ multipart/form-data:
627
+ schema:
628
+ $ref: '#/components/schemas/FileZipRequestRequest'
629
+ required: true
630
+ security:
631
+ - MessagingJobTokenAuth: []
632
+ - tokenAuth: []
633
+ responses:
634
+ '200':
635
+ content:
636
+ application/zip:
637
+ schema:
638
+ type: string
639
+ format: binary
640
+ description: ''
641
+ '400':
642
+ content:
643
+ application/json:
644
+ schema:
645
+ $ref: '#/components/schemas/FilesErrorDetail'
646
+ description: ''
647
+ '403':
648
+ content:
649
+ application/json:
650
+ schema:
651
+ $ref: '#/components/schemas/FilesErrorDetail'
652
+ description: ''
653
+ '404':
654
+ content:
655
+ application/json:
656
+ schema:
657
+ $ref: '#/components/schemas/FilesErrorDetail'
658
+ description: ''
609
659
  /api/files/upload-url/:
610
660
  post:
611
661
  operationId: files_upload_url
@@ -4279,6 +4329,33 @@ components:
4279
4329
  required:
4280
4330
  - path
4281
4331
  - url
4332
+ FileZipRequestRequest:
4333
+ type: object
4334
+ properties:
4335
+ workspace:
4336
+ type: string
4337
+ format: uuid
4338
+ paths:
4339
+ type: array
4340
+ items:
4341
+ type: string
4342
+ minLength: 1
4343
+ maxLength: 1024
4344
+ maxItems: 200
4345
+ minItems: 1
4346
+ filename:
4347
+ type: string
4348
+ maxLength: 200
4349
+ required:
4350
+ - paths
4351
+ - workspace
4352
+ FilesErrorDetail:
4353
+ type: object
4354
+ properties:
4355
+ detail:
4356
+ type: string
4357
+ required:
4358
+ - detail
4282
4359
  InboxRoleEnum:
4283
4360
  enum:
4284
4361
  - interaction
@@ -224,6 +224,17 @@ POST /api/files/download-url/
224
224
  Options:
225
225
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
226
226
 
227
+ ### current files download-zip post
228
+
229
+ Zip one or more workspace files, and/or whole folders (given as a
230
+ path ending in "/"), and stream the archive back. See MAX_ZIP_* for
231
+ why this is bounded, unlike the presigned-URL endpoints above.
232
+
233
+ POST /api/files/download-zip/
234
+
235
+ Options:
236
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
237
+
227
238
  ### current files list
228
239
 
229
240
  GET /api/files/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.41"
3
+ version = "0.1.42"
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