current-cli 0.1.58__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.58
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
@@ -5814,6 +6001,51 @@ components:
5814
6001
  required:
5815
6002
  - items
5816
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
5817
6049
  FieldOption:
5818
6050
  type: object
5819
6051
  properties:
@@ -5886,6 +6118,112 @@ components:
5886
6118
  - workflow_name
5887
6119
  - written_by_email
5888
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
5889
6227
  FileDeleteRequestRequest:
5890
6228
  type: object
5891
6229
  properties:
@@ -7373,6 +7711,26 @@ components:
7373
7711
  pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,79}$
7374
7712
  required:
7375
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
7376
7734
  QuickCapture:
7377
7735
  type: object
7378
7736
  description: |-
@@ -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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.58"
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