current-cli 0.1.53__tar.gz → 0.1.55__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.53
3
+ Version: 0.1.55
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
@@ -1668,12 +1668,13 @@ paths:
1668
1668
  /api/observations/observations/by-project/:
1669
1669
  get:
1670
1670
  operationId: observations_observations_by_project_retrieve
1671
- description: Which projects hold the matching observations, and how many each
1672
- holds. Takes the same filters as the list. Answers 'which projects have activity
1673
- of this kind in this window' in one call — paging every matching row and grouping
1674
- them by hand is the same question asked badly, and it miscounts. Projects
1675
- are ordered by count and capped; narrow the window rather than expect every
1676
- project back.
1671
+ description: 'Which projects hold the matching observations: how many each holds
1672
+ and when the latest happened. Takes the same filters as the list. A project
1673
+ absent from the result has no matching activity at all — not old activity.
1674
+ To find projects that have gone quiet, leave the window open, sort by latest_occurred_at
1675
+ and compare each project''s latest to your cutoff; never infer a quiet set
1676
+ by subtracting a recent one. Pages by project: read total_projects and follow
1677
+ next_offset.'
1677
1678
  parameters:
1678
1679
  - in: query
1679
1680
  name: facets
@@ -1690,6 +1691,16 @@ paths:
1690
1691
  schema:
1691
1692
  type: string
1692
1693
  description: Comma-separated observation UUIDs
1694
+ - in: query
1695
+ name: limit
1696
+ schema:
1697
+ type: integer
1698
+ description: Projects per page (default 100, cap 200)
1699
+ - in: query
1700
+ name: offset
1701
+ schema:
1702
+ type: integer
1703
+ description: Project page offset (default 0)
1693
1704
  - in: query
1694
1705
  name: order
1695
1706
  schema:
@@ -1729,6 +1740,17 @@ paths:
1729
1740
  learned of it). ISO-8601; a bare date means the START of that day. A value
1730
1741
  with no offset is read in the workspace's timezone when exactly one workspace
1731
1742
  is in scope, otherwise UTC.
1743
+ - in: query
1744
+ name: sort
1745
+ schema:
1746
+ type: string
1747
+ enum:
1748
+ - -count
1749
+ - -latest_occurred_at
1750
+ - latest_occurred_at
1751
+ description: 'Project order. ''-count'' (default) puts the busiest first.
1752
+ ''latest_occurred_at'' puts the quietest first: the projects whose most
1753
+ recent matching activity is oldest.'
1732
1754
  - in: query
1733
1755
  name: source
1734
1756
  schema:
@@ -3570,6 +3592,16 @@ paths:
3570
3592
  description: Vendors across the caller's workspaces. Any member can create and
3571
3593
  edit.
3572
3594
  parameters:
3595
+ - in: query
3596
+ name: limit
3597
+ schema:
3598
+ type: integer
3599
+ description: Max vendors per page (default 25, cap 100)
3600
+ - in: query
3601
+ name: offset
3602
+ schema:
3603
+ type: integer
3604
+ description: Page offset (default 0)
3573
3605
  - in: query
3574
3606
  name: project
3575
3607
  schema:
@@ -3590,9 +3622,7 @@ paths:
3590
3622
  content:
3591
3623
  application/json:
3592
3624
  schema:
3593
- type: array
3594
- items:
3595
- $ref: '#/components/schemas/Vendor'
3625
+ $ref: '#/components/schemas/VendorListResponse'
3596
3626
  description: ''
3597
3627
  post:
3598
3628
  operationId: vendors_vendors_create
@@ -3829,9 +3859,10 @@ paths:
3829
3859
  get:
3830
3860
  operationId: workflows_runs_list
3831
3861
  description: |-
3832
- Run history for workflows in the caller's workspaces, with step
3833
- transitions inline. POST creates a run of a WorkflowDefinition and
3834
- dispatches it. Runs on the same project execute concurrently.
3862
+ An offset/limit page. A run carries its transitions inline, so the
3863
+ unpaged history was the largest payload this API could return and
3864
+ grew without bound; a reader now sees a page and the true ``total``
3865
+ rather than whatever fit.
3835
3866
  parameters:
3836
3867
  - in: query
3837
3868
  name: archived
@@ -3843,6 +3874,16 @@ paths:
3843
3874
  schema:
3844
3875
  type: string
3845
3876
  description: Filter by definition UUID
3877
+ - in: query
3878
+ name: limit
3879
+ schema:
3880
+ type: integer
3881
+ description: Max runs per page (default 25, cap 100)
3882
+ - in: query
3883
+ name: offset
3884
+ schema:
3885
+ type: integer
3886
+ description: Page offset (default 0)
3846
3887
  - in: query
3847
3888
  name: project
3848
3889
  schema:
@@ -3868,9 +3909,7 @@ paths:
3868
3909
  content:
3869
3910
  application/json:
3870
3911
  schema:
3871
- type: array
3872
- items:
3873
- $ref: '#/components/schemas/WorkflowRun'
3912
+ $ref: '#/components/schemas/WorkflowRunListResponse'
3874
3913
  description: ''
3875
3914
  post:
3876
3915
  operationId: workflows_runs_create
@@ -8030,6 +8069,22 @@ components:
8030
8069
  - name
8031
8070
  - updated_at
8032
8071
  - workspace
8072
+ VendorListResponse:
8073
+ type: object
8074
+ properties:
8075
+ items:
8076
+ type: array
8077
+ items:
8078
+ $ref: '#/components/schemas/Vendor'
8079
+ total:
8080
+ type: integer
8081
+ next_offset:
8082
+ type: integer
8083
+ nullable: true
8084
+ required:
8085
+ - items
8086
+ - next_offset
8087
+ - total
8033
8088
  VendorRequest:
8034
8089
  type: object
8035
8090
  properties:
@@ -8472,6 +8527,22 @@ components:
8472
8527
  - triggered_by_name
8473
8528
  - workflow
8474
8529
  - workflow_name
8530
+ WorkflowRunListResponse:
8531
+ type: object
8532
+ properties:
8533
+ items:
8534
+ type: array
8535
+ items:
8536
+ $ref: '#/components/schemas/WorkflowRun'
8537
+ total:
8538
+ type: integer
8539
+ next_offset:
8540
+ type: integer
8541
+ nullable: true
8542
+ required:
8543
+ - items
8544
+ - next_offset
8545
+ - total
8475
8546
  WorkflowRunStatusEnum:
8476
8547
  enum:
8477
8548
  - queued
@@ -567,17 +567,20 @@ Invalidate the auth token on the server and forget it locally.
567
567
 
568
568
  ### current observations by-project retrieve
569
569
 
570
- Which projects hold the matching observations, and how many each holds. Takes the same filters as the list. Answers 'which projects have activity of this kind in this window' in one call — paging every matching row and grouping them by hand is the same question asked badly, and it miscounts. Projects are ordered by count and capped; narrow the window rather than expect every project back.
570
+ Which projects hold the matching observations: how many each holds and when the latest happened. Takes the same filters as the list. A project absent from the result has no matching activity at all — not old activity. To find projects that have gone quiet, leave the window open, sort by latest_occurred_at and compare each project's latest to your cutoff; never infer a quiet set by subtracting a recent one. Pages by project: read total_projects and follow next_offset.
571
571
 
572
572
  GET /api/observations/observations/by-project/
573
573
 
574
574
  Options:
575
575
  - `--facets` - Add 'by_source' to the response: how many matching observations each source holds. Costs one extra grouped query, so it is opt-in — ask for it when you need to know this workspace's actual mix rather than assume one.
576
576
  - `--ids` - Comma-separated observation UUIDs
577
+ - `--limit` - Projects per page (default 100, cap 200)
578
+ - `--offset` - Project page offset (default 0)
577
579
  - `--order` - Sort key. Defaults to -occurred_at when project, since or until is given, because a window is a question about world time, and to -observed_at otherwise, because the stream is a work queue ordered by when Current learned of things.
578
580
  - `--project` - Filter by project UUID
579
581
  - `--revisions` - Observations are immutable, so an edited Chatter post is a second row sharing payload.record_key. 'all' (default) returns every revision, which is what the project audit log shows. 'current' returns only the latest revision of each post or comment, which is what a count of what people said means.
580
582
  - `--since` - Keep observations that happened at or after this instant. Bounds occurred_at (when it happened in the world), not observed_at (when Current learned of it). ISO-8601; a bare date means the START of that day. A value with no offset is read in the workspace's timezone when exactly one workspace is in scope, otherwise UTC.
583
+ - `--sort` - Project order. '-count' (default) puts the busiest first. 'latest_occurred_at' puts the quietest first: the projects whose most recent matching activity is oldest.
581
584
  - `--source` - Keep only observations from this source; repeat to accept several. Common names work as well as the stored value: 'chatter' finds 'sitetracker_feed'. An unknown source is refused with the recorded ones named, because an empty page would read as 'nothing happened'.
582
585
  - `--status` - Filter by status (pending/ingested)
583
586
  - `--until` - Keep observations that happened at or before this instant, inclusive. A bare date means the END of that day, so since=2026-09-01&until=2026-09-14 is the fourteen days a person means by that.
@@ -1195,6 +1198,8 @@ Vendors across the caller's workspaces. Any member can create and edit.
1195
1198
  GET /api/vendors/vendors/
1196
1199
 
1197
1200
  Options:
1201
+ - `--limit` - Max vendors per page (default 25, cap 100)
1202
+ - `--offset` - Page offset (default 0)
1198
1203
  - `--project` - Filter by linked project UUID
1199
1204
  - `--workspace` - Filter by workspace UUID
1200
1205
 
@@ -1367,15 +1372,18 @@ Options:
1367
1372
 
1368
1373
  ### current workflows runs list
1369
1374
 
1370
- Run history for workflows in the caller's workspaces, with step
1371
- transitions inline. POST creates a run of a WorkflowDefinition and
1372
- dispatches it. Runs on the same project execute concurrently.
1375
+ An offset/limit page. A run carries its transitions inline, so the
1376
+ unpaged history was the largest payload this API could return and
1377
+ grew without bound; a reader now sees a page and the true ``total``
1378
+ rather than whatever fit.
1373
1379
 
1374
1380
  GET /api/workflows/runs/
1375
1381
 
1376
1382
  Options:
1377
1383
  - `--archived` - Filter by archived state. Defaults to false (hides archived runs).
1378
1384
  - `--definition` - Filter by definition UUID
1385
+ - `--limit` - Max runs per page (default 25, cap 100)
1386
+ - `--offset` - Page offset (default 0)
1379
1387
  - `--project` - Filter by project UUID
1380
1388
  - `--workflow` - Filter by workflow UUID
1381
1389
  - `--workspace` - Filter by workspace UUID
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.53"
3
+ version = "0.1.55"
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