current-cli 0.1.40__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.40
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
@@ -6278,9 +6355,10 @@ components:
6278
6355
  WorkflowRunDetail:
6279
6356
  type: object
6280
6357
  description: |-
6281
- Run detail shape: the list shape plus the structured trigger. Only
6282
- the retrieve route pays the observation lookup; lists and the SSE
6283
- snapshot stay thin.
6358
+ Run detail shape: the list shape plus the structured trigger and the
6359
+ human-readable project/actor names. Only the retrieve route pays the
6360
+ observation lookup and these joins; lists and the SSE snapshot stay
6361
+ thin.
6284
6362
  properties:
6285
6363
  id:
6286
6364
  type: string
@@ -6349,6 +6427,15 @@ components:
6349
6427
  - $ref: '#/components/schemas/RunTrigger'
6350
6428
  nullable: true
6351
6429
  readOnly: true
6430
+ project_name:
6431
+ type: string
6432
+ readOnly: true
6433
+ triggered_by_name:
6434
+ type: string
6435
+ readOnly: true
6436
+ triggered_by_email:
6437
+ type: string
6438
+ readOnly: true
6352
6439
  required:
6353
6440
  - archived
6354
6441
  - archived_at
@@ -6358,12 +6445,15 @@ components:
6358
6445
  - finished_at
6359
6446
  - id
6360
6447
  - project
6448
+ - project_name
6361
6449
  - sandbox_id
6362
6450
  - started_at
6363
6451
  - status
6364
6452
  - summary
6365
6453
  - transitions
6366
6454
  - trigger
6455
+ - triggered_by_email
6456
+ - triggered_by_name
6367
6457
  - workflow
6368
6458
  - workflow_name
6369
6459
  WorkflowRunStatusEnum:
@@ -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.40"
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