current-cli 0.1.31__tar.gz → 0.1.33__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.31
3
+ Version: 0.1.33
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
@@ -1775,6 +1775,52 @@ paths:
1775
1775
  schema:
1776
1776
  $ref: '#/components/schemas/Project'
1777
1777
  description: ''
1778
+ /api/projects/projects/inventory/:
1779
+ get:
1780
+ operationId: projects_projects_inventory_retrieve
1781
+ description: |-
1782
+ Page current field values, optionally narrowed to named keys.
1783
+
1784
+ The full project list serializes every field of every project —
1785
+ megabytes at production scale. This page is the compact census a
1786
+ chat agent can scan: identity plus the keys it asked for, no
1787
+ timeline, no provenance. See state.list_projects.
1788
+ parameters:
1789
+ - in: query
1790
+ name: fields
1791
+ schema:
1792
+ type: array
1793
+ items:
1794
+ type: string
1795
+ description: Field keys to keep; omit to return every current value
1796
+ - in: query
1797
+ name: limit
1798
+ schema:
1799
+ type: integer
1800
+ description: Max projects per page (default 100, max 200)
1801
+ - in: query
1802
+ name: offset
1803
+ schema:
1804
+ type: integer
1805
+ description: Number of projects to skip (default 0)
1806
+ - in: query
1807
+ name: workspace
1808
+ schema:
1809
+ type: string
1810
+ description: Workspace UUID
1811
+ required: true
1812
+ tags:
1813
+ - projects
1814
+ security:
1815
+ - MessagingJobTokenAuth: []
1816
+ - tokenAuth: []
1817
+ responses:
1818
+ '200':
1819
+ content:
1820
+ application/json:
1821
+ schema:
1822
+ $ref: '#/components/schemas/ProjectInventoryResponse'
1823
+ description: ''
1778
1824
  /api/projects/projects/search/:
1779
1825
  get:
1780
1826
  operationId: projects_projects_search_retrieve
@@ -4165,6 +4211,9 @@ components:
4165
4211
  format: uuid
4166
4212
  note:
4167
4213
  type: string
4214
+ observation:
4215
+ type: string
4216
+ format: uuid
4168
4217
  required:
4169
4218
  - reply_ref
4170
4219
  - workflow
@@ -4647,6 +4696,39 @@ components:
4647
4696
  - key
4648
4697
  - label
4649
4698
  - workspace
4699
+ ProjectInventoryItem:
4700
+ type: object
4701
+ description: 'One project on an inventory page: identity plus the requested
4702
+ fields.'
4703
+ properties:
4704
+ id:
4705
+ type: string
4706
+ format: uuid
4707
+ fields: {}
4708
+ required:
4709
+ - fields
4710
+ - id
4711
+ ProjectInventoryResponse:
4712
+ type: object
4713
+ description: A page of current field values. ``next_offset`` is null on the
4714
+ last page.
4715
+ properties:
4716
+ total:
4717
+ type: integer
4718
+ offset:
4719
+ type: integer
4720
+ next_offset:
4721
+ type: integer
4722
+ nullable: true
4723
+ projects:
4724
+ type: array
4725
+ items:
4726
+ $ref: '#/components/schemas/ProjectInventoryItem'
4727
+ required:
4728
+ - next_offset
4729
+ - offset
4730
+ - projects
4731
+ - total
4650
4732
  ProjectRequest:
4651
4733
  type: object
4652
4734
  properties:
@@ -5399,6 +5481,13 @@ components:
5399
5481
  - workspace
5400
5482
  WorkflowDefinition:
5401
5483
  type: object
5484
+ description: |-
5485
+ A definition as its consumers need it: the raw ``definition`` blob for
5486
+ the portal, plus the three derived properties that say what the workflow
5487
+ is called, what it is for, and whether it runs on one project. The
5488
+ messaging agent reads only the derived three (see the ``list_workflows``
5489
+ tool), which is why they are served here rather than left to every
5490
+ caller to dig out of ``definition["control"]``.
5402
5491
  properties:
5403
5492
  id:
5404
5493
  type: string
@@ -5412,6 +5501,15 @@ components:
5412
5501
  type: string
5413
5502
  readOnly: true
5414
5503
  pattern: ^[-a-zA-Z0-9_]+$
5504
+ display_name:
5505
+ type: string
5506
+ readOnly: true
5507
+ description:
5508
+ type: string
5509
+ readOnly: true
5510
+ scope:
5511
+ type: string
5512
+ readOnly: true
5415
5513
  definition:
5416
5514
  readOnly: true
5417
5515
  rendered_hash:
@@ -5424,9 +5522,12 @@ components:
5424
5522
  required:
5425
5523
  - applied_at
5426
5524
  - definition
5525
+ - description
5526
+ - display_name
5427
5527
  - id
5428
5528
  - name
5429
5529
  - rendered_hash
5530
+ - scope
5430
5531
  - workspace
5431
5532
  WorkflowRequest:
5432
5533
  type: object
@@ -600,6 +600,23 @@ PUT /api/projects/field-definitions/{id}/
600
600
  Options:
601
601
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
602
602
 
603
+ ### current projects inventory retrieve
604
+
605
+ Page current field values, optionally narrowed to named keys.
606
+
607
+ The full project list serializes every field of every project —
608
+ megabytes at production scale. This page is the compact census a
609
+ chat agent can scan: identity plus the keys it asked for, no
610
+ timeline, no provenance. See state.list_projects.
611
+
612
+ GET /api/projects/projects/inventory/
613
+
614
+ Options:
615
+ - `--fields` - Field keys to keep; omit to return every current value
616
+ - `--limit` - Max projects per page (default 100, max 200)
617
+ - `--offset` - Number of projects to skip (default 0)
618
+ - `--workspace` - Workspace UUID
619
+
603
620
  ### current projects list
604
621
 
605
622
  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.31"
3
+ version = "0.1.33"
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