current-cli 0.1.57__tar.gz → 0.1.59__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.59
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
@@ -1973,6 +1973,37 @@ paths:
1973
1973
  schema:
1974
1974
  $ref: '#/components/schemas/OptionUsage'
1975
1975
  description: ''
1976
+ /api/projects/field-definitions/query-metadata/:
1977
+ get:
1978
+ operationId: projects_field_definitions_query_metadata_retrieve
1979
+ description: Discover field keys, labels, types, and the workspace clock.
1980
+ parameters:
1981
+ - in: query
1982
+ name: fields
1983
+ schema:
1984
+ type: string
1985
+ description: Optional comma-separated field keys
1986
+ - in: query
1987
+ name: offset
1988
+ schema:
1989
+ type: integer
1990
+ - in: query
1991
+ name: workspace
1992
+ schema:
1993
+ type: string
1994
+ description: Filter by workspace UUID
1995
+ tags:
1996
+ - projects
1997
+ security:
1998
+ - MessagingJobTokenAuth: []
1999
+ - tokenAuth: []
2000
+ responses:
2001
+ '200':
2002
+ content:
2003
+ application/json:
2004
+ schema:
2005
+ $ref: '#/components/schemas/FieldDiscovery'
2006
+ description: ''
1976
2007
  /api/projects/projects/:
1977
2008
  get:
1978
2009
  operationId: projects_projects_list
@@ -2379,6 +2410,162 @@ paths:
2379
2410
  schema:
2380
2411
  $ref: '#/components/schemas/ProjectInventoryResponse'
2381
2412
  description: ''
2413
+ /api/projects/projects/query-fields/:
2414
+ post:
2415
+ operationId: projects_projects_query_fields_create
2416
+ description: Read canonical field snapshots. This POST does not write project
2417
+ state.
2418
+ tags:
2419
+ - projects
2420
+ requestBody:
2421
+ content:
2422
+ application/json:
2423
+ schema:
2424
+ additionalProperties: false
2425
+ properties:
2426
+ fields:
2427
+ items:
2428
+ type: string
2429
+ maxItems: 8
2430
+ minItems: 1
2431
+ title: Fields
2432
+ type: array
2433
+ project_ids:
2434
+ anyOf:
2435
+ - items:
2436
+ type: string
2437
+ maxItems: 200
2438
+ type: array
2439
+ - type: 'null'
2440
+ default: null
2441
+ title: Project Ids
2442
+ as_of:
2443
+ default: latest
2444
+ title: As Of
2445
+ type: string
2446
+ compare_to:
2447
+ anyOf:
2448
+ - type: string
2449
+ - type: 'null'
2450
+ default: null
2451
+ title: Compare To
2452
+ filters:
2453
+ items:
2454
+ additionalProperties: false
2455
+ properties:
2456
+ field:
2457
+ title: Field
2458
+ type: string
2459
+ target:
2460
+ enum:
2461
+ - as_of
2462
+ - compare_to
2463
+ - changed
2464
+ - delta_days
2465
+ title: Target
2466
+ type: string
2467
+ op:
2468
+ enum:
2469
+ - eq
2470
+ - ne
2471
+ - in
2472
+ - not_in
2473
+ - lt
2474
+ - lte
2475
+ - gt
2476
+ - gte
2477
+ - is_empty
2478
+ - is_missing
2479
+ - is_set
2480
+ title: Op
2481
+ type: string
2482
+ value:
2483
+ anyOf:
2484
+ - type: string
2485
+ - type: integer
2486
+ - type: number
2487
+ - type: boolean
2488
+ - items:
2489
+ anyOf:
2490
+ - type: string
2491
+ - type: integer
2492
+ - type: number
2493
+ - type: boolean
2494
+ type: array
2495
+ - type: 'null'
2496
+ title: Value
2497
+ required:
2498
+ - field
2499
+ - target
2500
+ - op
2501
+ - value
2502
+ title: FieldPredicate
2503
+ type: object
2504
+ maxItems: 20
2505
+ title: Filters
2506
+ type: array
2507
+ sort:
2508
+ anyOf:
2509
+ - additionalProperties: false
2510
+ properties:
2511
+ field:
2512
+ title: Field
2513
+ type: string
2514
+ target:
2515
+ enum:
2516
+ - as_of
2517
+ - compare_to
2518
+ - changed
2519
+ - delta_days
2520
+ title: Target
2521
+ type: string
2522
+ direction:
2523
+ enum:
2524
+ - asc
2525
+ - desc
2526
+ title: Direction
2527
+ type: string
2528
+ required:
2529
+ - field
2530
+ - target
2531
+ - direction
2532
+ title: FieldSort
2533
+ type: object
2534
+ - type: 'null'
2535
+ default: null
2536
+ limit:
2537
+ default: 20
2538
+ maximum: 50
2539
+ minimum: 1
2540
+ title: Limit
2541
+ type: integer
2542
+ cursor:
2543
+ anyOf:
2544
+ - maxLength: 12000
2545
+ minLength: 1
2546
+ type: string
2547
+ - type: 'null'
2548
+ default: null
2549
+ title: Cursor
2550
+ workspace:
2551
+ format: uuid
2552
+ title: Workspace
2553
+ type: string
2554
+ required:
2555
+ - fields
2556
+ - workspace
2557
+ title: FieldQueryRequest
2558
+ type: object
2559
+ security:
2560
+ - MessagingJobTokenAuth: []
2561
+ - tokenAuth: []
2562
+ responses:
2563
+ '200':
2564
+ content:
2565
+ application/json:
2566
+ schema:
2567
+ $ref: '#/components/schemas/FieldQueryResponse'
2568
+ description: ''
2382
2569
  /api/projects/projects/search/:
2383
2570
  get:
2384
2571
  operationId: projects_projects_search_retrieve
@@ -4137,6 +4324,41 @@ paths:
4137
4324
  schema:
4138
4325
  $ref: '#/components/schemas/RunDefinition'
4139
4326
  description: ''
4327
+ /api/workflows/runs/{run_id}/files/delete/:
4328
+ post:
4329
+ operationId: run_files_delete
4330
+ description: |-
4331
+ Remove superseded generated PDFs from this run's project.
4332
+
4333
+ This endpoint is intentionally narrower than the member-facing file
4334
+ deletion API. A workflow can remove only a draft PDF in its own project's
4335
+ ``po/`` directory, and bucket versioning keeps the operation recoverable.
4336
+ parameters:
4337
+ - in: path
4338
+ name: run_id
4339
+ schema:
4340
+ type: string
4341
+ format: uuid
4342
+ required: true
4343
+ tags:
4344
+ - workflows
4345
+ requestBody:
4346
+ content:
4347
+ application/json:
4348
+ schema:
4349
+ $ref: '#/components/schemas/DeleteRequestRequest'
4350
+ application/x-www-form-urlencoded:
4351
+ schema:
4352
+ $ref: '#/components/schemas/DeleteRequestRequest'
4353
+ multipart/form-data:
4354
+ schema:
4355
+ $ref: '#/components/schemas/DeleteRequestRequest'
4356
+ required: true
4357
+ security:
4358
+ - RunTokenAuth: []
4359
+ responses:
4360
+ '204':
4361
+ description: No response body
4140
4362
  /api/workflows/runs/{run_id}/files/manifest/:
4141
4363
  get:
4142
4364
  operationId: run_files_manifest
@@ -5521,6 +5743,18 @@ components:
5521
5743
  format: uuid
5522
5744
  required:
5523
5745
  - workspace
5746
+ DeleteRequestRequest:
5747
+ type: object
5748
+ properties:
5749
+ paths:
5750
+ type: array
5751
+ items:
5752
+ type: string
5753
+ minLength: 1
5754
+ maxLength: 1024
5755
+ maxItems: 100
5756
+ required:
5757
+ - paths
5524
5758
  DetailResponse:
5525
5759
  type: object
5526
5760
  properties:
@@ -5767,6 +6001,51 @@ components:
5767
6001
  required:
5768
6002
  - items
5769
6003
  - next_cursor
6004
+ FieldComparison:
6005
+ type: object
6006
+ properties:
6007
+ as_of:
6008
+ $ref: '#/components/schemas/FieldSnapshot'
6009
+ compare_to:
6010
+ $ref: '#/components/schemas/FieldSnapshot'
6011
+ changed:
6012
+ type: boolean
6013
+ nullable: true
6014
+ delta_days:
6015
+ type: integer
6016
+ nullable: true
6017
+ required:
6018
+ - as_of
6019
+ FieldDiscovery:
6020
+ type: object
6021
+ properties:
6022
+ timezone:
6023
+ type: string
6024
+ now:
6025
+ type: string
6026
+ format: date-time
6027
+ current_month_start:
6028
+ type: string
6029
+ format: date-time
6030
+ time_basis:
6031
+ type: string
6032
+ fields:
6033
+ type: array
6034
+ items:
6035
+ $ref: '#/components/schemas/QueryFieldDescriptor'
6036
+ total:
6037
+ type: integer
6038
+ next_offset:
6039
+ type: integer
6040
+ nullable: true
6041
+ required:
6042
+ - current_month_start
6043
+ - fields
6044
+ - next_offset
6045
+ - now
6046
+ - time_basis
6047
+ - timezone
6048
+ - total
5770
6049
  FieldOption:
5771
6050
  type: object
5772
6051
  properties:
@@ -5839,6 +6118,112 @@ components:
5839
6118
  - workflow_name
5840
6119
  - written_by_email
5841
6120
  - written_by_name
6121
+ FieldQueryCounts:
6122
+ type: object
6123
+ properties:
6124
+ candidate:
6125
+ type: integer
6126
+ matched:
6127
+ type: integer
6128
+ unevaluable:
6129
+ type: integer
6130
+ unmatched:
6131
+ type: integer
6132
+ matched_with_missing_history:
6133
+ type: integer
6134
+ required:
6135
+ - candidate
6136
+ - matched
6137
+ - matched_with_missing_history
6138
+ - unevaluable
6139
+ - unmatched
6140
+ FieldQueryItem:
6141
+ type: object
6142
+ properties:
6143
+ project_id:
6144
+ type: string
6145
+ format: uuid
6146
+ fields:
6147
+ type: object
6148
+ additionalProperties:
6149
+ $ref: '#/components/schemas/FieldComparison'
6150
+ required:
6151
+ - fields
6152
+ - project_id
6153
+ FieldQueryResponse:
6154
+ type: object
6155
+ properties:
6156
+ timezone:
6157
+ type: string
6158
+ time_basis:
6159
+ type: string
6160
+ as_of:
6161
+ type: string
6162
+ format: date-time
6163
+ compare_to:
6164
+ type: string
6165
+ format: date-time
6166
+ nullable: true
6167
+ query_clock:
6168
+ type: string
6169
+ format: date-time
6170
+ fields:
6171
+ type: array
6172
+ items:
6173
+ $ref: '#/components/schemas/QueryFieldDescriptor'
6174
+ counts:
6175
+ $ref: '#/components/schemas/FieldQueryCounts'
6176
+ items:
6177
+ type: array
6178
+ items:
6179
+ $ref: '#/components/schemas/FieldQueryItem'
6180
+ next_cursor:
6181
+ type: string
6182
+ nullable: true
6183
+ required:
6184
+ - as_of
6185
+ - compare_to
6186
+ - counts
6187
+ - fields
6188
+ - items
6189
+ - next_cursor
6190
+ - query_clock
6191
+ - time_basis
6192
+ - timezone
6193
+ FieldSnapshot:
6194
+ type: object
6195
+ properties:
6196
+ state:
6197
+ $ref: '#/components/schemas/FieldSnapshotStateEnum'
6198
+ value:
6199
+ nullable: true
6200
+ display:
6201
+ nullable: true
6202
+ write_id:
6203
+ type: string
6204
+ format: uuid
6205
+ recorded_at:
6206
+ type: string
6207
+ format: date-time
6208
+ source:
6209
+ type: string
6210
+ evidence_observation_ids:
6211
+ type: array
6212
+ items:
6213
+ type: string
6214
+ required:
6215
+ - state
6216
+ - value
6217
+ FieldSnapshotStateEnum:
6218
+ enum:
6219
+ - value
6220
+ - empty
6221
+ - missing
6222
+ type: string
6223
+ description: |-
6224
+ * `value` - value
6225
+ * `empty` - empty
6226
+ * `missing` - missing
5842
6227
  FileDeleteRequestRequest:
5843
6228
  type: object
5844
6229
  properties:
@@ -7326,6 +7711,26 @@ components:
7326
7711
  pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,79}$
7327
7712
  required:
7328
7713
  - batch_id
7714
+ QueryFieldDescriptor:
7715
+ type: object
7716
+ properties:
7717
+ id:
7718
+ type: string
7719
+ format: uuid
7720
+ key:
7721
+ type: string
7722
+ label:
7723
+ type: string
7724
+ data_type:
7725
+ type: string
7726
+ is_array:
7727
+ type: boolean
7728
+ required:
7729
+ - data_type
7730
+ - id
7731
+ - is_array
7732
+ - key
7733
+ - label
7329
7734
  QuickCapture:
7330
7735
  type: object
7331
7736
  description: |-
@@ -7678,8 +8083,9 @@ components:
7678
8083
  Body of the machine completion endpoint — the runner's terminal
7679
8084
  report. ``finished_at`` is an RFC 3339 string; a naive value is made
7680
8085
  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).
8086
+ becomes the run's terminal summary; ``result`` carries declared artifacts
8087
+ and review context; ``error`` populates ``run.error`` (a failed run with
8088
+ no error gets a fixed sentence).
7683
8089
  properties:
7684
8090
  status:
7685
8091
  $ref: '#/components/schemas/RunCompleteStatusEnum'
@@ -7696,6 +8102,7 @@ components:
7696
8102
  type: string
7697
8103
  nullable: true
7698
8104
  default: ''
8105
+ result: {}
7699
8106
  required:
7700
8107
  - status
7701
8108
  RunCompleteResponse:
@@ -8702,6 +9109,8 @@ components:
8702
9109
  items:
8703
9110
  $ref: '#/components/schemas/StepTransition'
8704
9111
  readOnly: true
9112
+ result:
9113
+ readOnly: true
8705
9114
  trigger:
8706
9115
  allOf:
8707
9116
  - $ref: '#/components/schemas/RunTrigger'
@@ -8726,6 +9135,7 @@ components:
8726
9135
  - id
8727
9136
  - project
8728
9137
  - project_name
9138
+ - result
8729
9139
  - sandbox_id
8730
9140
  - started_at
8731
9141
  - status
@@ -744,6 +744,17 @@ PATCH /api/projects/field-definitions/{id}/
744
744
  Options:
745
745
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
746
746
 
747
+ ### current projects field-definitions query-metadata retrieve
748
+
749
+ Discover field keys, labels, types, and the workspace clock.
750
+
751
+ GET /api/projects/field-definitions/query-metadata/
752
+
753
+ Options:
754
+ - `--fields` - Optional comma-separated field keys
755
+ - `--offset`
756
+ - `--workspace` - Filter by workspace UUID
757
+
747
758
  ### current projects field-definitions retrieve <id>
748
759
 
749
760
  Workspace-level custom field definitions. Only admins can mutate.
@@ -805,6 +816,15 @@ PATCH /api/projects/projects/{id}/
805
816
  Options:
806
817
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
807
818
 
819
+ ### current projects query-fields create
820
+
821
+ Read canonical field snapshots. This POST does not write project state.
822
+
823
+ POST /api/projects/projects/query-fields/
824
+
825
+ Options:
826
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
827
+
808
828
  ### current projects retrieve <id>
809
829
 
810
830
  Projects across the caller's workspaces. Any member can create a
@@ -1378,6 +1398,19 @@ definition plus the journal state it needs to resume (step states).
1378
1398
 
1379
1399
  GET /api/workflows/runs/{run_id}/definition/
1380
1400
 
1401
+ ### current workflows runs files delete post <run_id>
1402
+
1403
+ Remove superseded generated PDFs from this run's project.
1404
+
1405
+ This endpoint is intentionally narrower than the member-facing file
1406
+ deletion API. A workflow can remove only a draft PDF in its own project's
1407
+ ``po/`` directory, and bucket versioning keeps the operation recoverable.
1408
+
1409
+ POST /api/workflows/runs/{run_id}/files/delete/
1410
+
1411
+ Options:
1412
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1413
+
1381
1414
  ### current workflows runs files manifest get <run_id>
1382
1415
 
1383
1416
  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.59"
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