current-cli 0.1.57__tar.gz → 0.1.58__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.57
3
+ Version: 0.1.58
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
@@ -4137,6 +4137,41 @@ paths:
4137
4137
  schema:
4138
4138
  $ref: '#/components/schemas/RunDefinition'
4139
4139
  description: ''
4140
+ /api/workflows/runs/{run_id}/files/delete/:
4141
+ post:
4142
+ operationId: run_files_delete
4143
+ description: |-
4144
+ Remove superseded generated PDFs from this run's project.
4145
+
4146
+ This endpoint is intentionally narrower than the member-facing file
4147
+ deletion API. A workflow can remove only a draft PDF in its own project's
4148
+ ``po/`` directory, and bucket versioning keeps the operation recoverable.
4149
+ parameters:
4150
+ - in: path
4151
+ name: run_id
4152
+ schema:
4153
+ type: string
4154
+ format: uuid
4155
+ required: true
4156
+ tags:
4157
+ - workflows
4158
+ requestBody:
4159
+ content:
4160
+ application/json:
4161
+ schema:
4162
+ $ref: '#/components/schemas/DeleteRequestRequest'
4163
+ application/x-www-form-urlencoded:
4164
+ schema:
4165
+ $ref: '#/components/schemas/DeleteRequestRequest'
4166
+ multipart/form-data:
4167
+ schema:
4168
+ $ref: '#/components/schemas/DeleteRequestRequest'
4169
+ required: true
4170
+ security:
4171
+ - RunTokenAuth: []
4172
+ responses:
4173
+ '204':
4174
+ description: No response body
4140
4175
  /api/workflows/runs/{run_id}/files/manifest/:
4141
4176
  get:
4142
4177
  operationId: run_files_manifest
@@ -5521,6 +5556,18 @@ components:
5521
5556
  format: uuid
5522
5557
  required:
5523
5558
  - workspace
5559
+ DeleteRequestRequest:
5560
+ type: object
5561
+ properties:
5562
+ paths:
5563
+ type: array
5564
+ items:
5565
+ type: string
5566
+ minLength: 1
5567
+ maxLength: 1024
5568
+ maxItems: 100
5569
+ required:
5570
+ - paths
5524
5571
  DetailResponse:
5525
5572
  type: object
5526
5573
  properties:
@@ -7678,8 +7725,9 @@ components:
7678
7725
  Body of the machine completion endpoint — the runner's terminal
7679
7726
  report. ``finished_at`` is an RFC 3339 string; a naive value is made
7680
7727
  aware (UTC) rather than reaching the column unlabelled. ``summary``
7681
- becomes the run's terminal summary; ``error`` populates ``run.error``
7682
- (a failed run with no error gets a fixed sentence).
7728
+ becomes the run's terminal summary; ``result`` carries declared artifacts
7729
+ and review context; ``error`` populates ``run.error`` (a failed run with
7730
+ no error gets a fixed sentence).
7683
7731
  properties:
7684
7732
  status:
7685
7733
  $ref: '#/components/schemas/RunCompleteStatusEnum'
@@ -7696,6 +7744,7 @@ components:
7696
7744
  type: string
7697
7745
  nullable: true
7698
7746
  default: ''
7747
+ result: {}
7699
7748
  required:
7700
7749
  - status
7701
7750
  RunCompleteResponse:
@@ -8702,6 +8751,8 @@ components:
8702
8751
  items:
8703
8752
  $ref: '#/components/schemas/StepTransition'
8704
8753
  readOnly: true
8754
+ result:
8755
+ readOnly: true
8705
8756
  trigger:
8706
8757
  allOf:
8707
8758
  - $ref: '#/components/schemas/RunTrigger'
@@ -8726,6 +8777,7 @@ components:
8726
8777
  - id
8727
8778
  - project
8728
8779
  - project_name
8780
+ - result
8729
8781
  - sandbox_id
8730
8782
  - started_at
8731
8783
  - status
@@ -1378,6 +1378,19 @@ definition plus the journal state it needs to resume (step states).
1378
1378
 
1379
1379
  GET /api/workflows/runs/{run_id}/definition/
1380
1380
 
1381
+ ### current workflows runs files delete post <run_id>
1382
+
1383
+ Remove superseded generated PDFs from this run's project.
1384
+
1385
+ This endpoint is intentionally narrower than the member-facing file
1386
+ deletion API. A workflow can remove only a draft PDF in its own project's
1387
+ ``po/`` directory, and bucket versioning keeps the operation recoverable.
1388
+
1389
+ POST /api/workflows/runs/{run_id}/files/delete/
1390
+
1391
+ Options:
1392
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1393
+
1381
1394
  ### current workflows runs files manifest get <run_id>
1382
1395
 
1383
1396
  GET /api/workflows/runs/{run_id}/files/manifest/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.57"
3
+ version = "0.1.58"
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