current-cli 0.1.32__tar.gz → 0.1.34__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.32
3
+ Version: 0.1.34
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
@@ -2765,6 +2811,36 @@ paths:
2765
2811
  responses:
2766
2812
  '204':
2767
2813
  description: No response body
2814
+ /api/workflows/workflows/compile-condition/:
2815
+ post:
2816
+ operationId: workflows_workflows_compile_condition_create
2817
+ description: 'Turn a described field condition into a project_field trigger_config.
2818
+ Saves nothing: the caller reviews the proposal and saves it like any other
2819
+ condition.'
2820
+ tags:
2821
+ - workflows
2822
+ requestBody:
2823
+ content:
2824
+ application/json:
2825
+ schema:
2826
+ $ref: '#/components/schemas/ConditionCompileRequest'
2827
+ application/x-www-form-urlencoded:
2828
+ schema:
2829
+ $ref: '#/components/schemas/ConditionCompileRequest'
2830
+ multipart/form-data:
2831
+ schema:
2832
+ $ref: '#/components/schemas/ConditionCompileRequest'
2833
+ required: true
2834
+ security:
2835
+ - MessagingJobTokenAuth: []
2836
+ - tokenAuth: []
2837
+ responses:
2838
+ '200':
2839
+ content:
2840
+ application/json:
2841
+ schema:
2842
+ $ref: '#/components/schemas/ConditionCompileResponse'
2843
+ description: ''
2768
2844
  /api/workspaces/invites/{id}/:
2769
2845
  get:
2770
2846
  operationId: workspaces_invites_retrieve
@@ -3356,6 +3432,34 @@ components:
3356
3432
  * `secondary` - Secondary
3357
3433
  * `success` - Success
3358
3434
  * `primary` - Primary
3435
+ ConditionCompileRequest:
3436
+ type: object
3437
+ description: |-
3438
+ Body of the condition compile endpoint: a described field condition
3439
+ and the workspace whose fields it may name.
3440
+ properties:
3441
+ workspace:
3442
+ type: string
3443
+ format: uuid
3444
+ text:
3445
+ type: string
3446
+ minLength: 1
3447
+ required:
3448
+ - text
3449
+ - workspace
3450
+ ConditionCompileResponse:
3451
+ type: object
3452
+ description: |-
3453
+ A proposed project_field ``trigger_config`` and the same condition in
3454
+ words. Nothing is saved: the caller puts this in the form, and the
3455
+ person who described it decides.
3456
+ properties:
3457
+ trigger_config: {}
3458
+ summary:
3459
+ type: string
3460
+ required:
3461
+ - summary
3462
+ - trigger_config
3359
3463
  Contact:
3360
3464
  type: object
3361
3465
  properties:
@@ -4650,6 +4754,39 @@ components:
4650
4754
  - key
4651
4755
  - label
4652
4756
  - workspace
4757
+ ProjectInventoryItem:
4758
+ type: object
4759
+ description: 'One project on an inventory page: identity plus the requested
4760
+ fields.'
4761
+ properties:
4762
+ id:
4763
+ type: string
4764
+ format: uuid
4765
+ fields: {}
4766
+ required:
4767
+ - fields
4768
+ - id
4769
+ ProjectInventoryResponse:
4770
+ type: object
4771
+ description: A page of current field values. ``next_offset`` is null on the
4772
+ last page.
4773
+ properties:
4774
+ total:
4775
+ type: integer
4776
+ offset:
4777
+ type: integer
4778
+ next_offset:
4779
+ type: integer
4780
+ nullable: true
4781
+ projects:
4782
+ type: array
4783
+ items:
4784
+ $ref: '#/components/schemas/ProjectInventoryItem'
4785
+ required:
4786
+ - next_offset
4787
+ - offset
4788
+ - projects
4789
+ - total
4653
4790
  ProjectRequest:
4654
4791
  type: object
4655
4792
  properties:
@@ -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
@@ -763,6 +780,15 @@ Options:
763
780
 
764
781
  Show the current user and workspace memberships.
765
782
 
783
+ ### current workflows compile-condition create
784
+
785
+ Turn a described field condition into a project_field trigger_config. Saves nothing: the caller reviews the proposal and saves it like any other condition.
786
+
787
+ POST /api/workflows/workflows/compile-condition/
788
+
789
+ Options:
790
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
791
+
766
792
  ### current workflows create
767
793
 
768
794
  Workflows (actions) across the caller's workspaces. Any member can
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.32"
3
+ version = "0.1.34"
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