current-cli 0.1.54__tar.gz → 0.1.56__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.54
3
+ Version: 0.1.56
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:
@@ -5888,6 +5910,10 @@ components:
5888
5910
  type: array
5889
5911
  items:
5890
5912
  $ref: '#/components/schemas/SourceReview'
5913
+ proposed_sources:
5914
+ type: array
5915
+ items:
5916
+ $ref: '#/components/schemas/ProposedSource'
5891
5917
  related_shipments:
5892
5918
  type: array
5893
5919
  items:
@@ -5908,6 +5934,7 @@ components:
5908
5934
  - attachments
5909
5935
  - conflicts
5910
5936
  - proposals
5937
+ - proposed_sources
5911
5938
  - related_shipments
5912
5939
  - set
5913
5940
  - sources
@@ -7067,6 +7094,52 @@ components:
7067
7094
  - reason
7068
7095
  - type
7069
7096
  - version
7097
+ ProposedSource:
7098
+ type: object
7099
+ description: |-
7100
+ A shipment's packing list proposed as belonging to this invoice. Shown
7101
+ beside the invoice so a person can compare and decide; its values are not
7102
+ part of the invoice (conflicts, exports) until the match is accepted.
7103
+ properties:
7104
+ document:
7105
+ type: string
7106
+ format: uuid
7107
+ extraction:
7108
+ type: string
7109
+ format: uuid
7110
+ filename:
7111
+ type: string
7112
+ prefix:
7113
+ type: string
7114
+ source_path:
7115
+ type: string
7116
+ record: {}
7117
+ checks:
7118
+ type: array
7119
+ items:
7120
+ $ref: '#/components/schemas/ArithmeticCheck'
7121
+ relationship:
7122
+ type: string
7123
+ format: uuid
7124
+ version:
7125
+ type: integer
7126
+ reason:
7127
+ type: string
7128
+ set:
7129
+ type: string
7130
+ format: uuid
7131
+ required:
7132
+ - checks
7133
+ - document
7134
+ - extraction
7135
+ - filename
7136
+ - prefix
7137
+ - reason
7138
+ - record
7139
+ - relationship
7140
+ - set
7141
+ - source_path
7142
+ - version
7070
7143
  ProviderInfo:
7071
7144
  type: object
7072
7145
  properties:
@@ -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.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.54"
3
+ version = "0.1.56"
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