current-cli 0.1.52__tar.gz → 0.1.53__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.52
3
+ Version: 0.1.53
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
@@ -1482,7 +1482,23 @@ paths:
1482
1482
  quick-capture (source=user). No update or delete — content is immutable
1483
1483
  and annotations belong to agents. ``project=`` is the project audit log,
1484
1484
  newest happening first.
1485
+
1486
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
1487
+ activity in one window of world time; ``by-project`` answers "which
1488
+ projects" over that same window in one call, instead of paging every row
1489
+ and grouping them by eye. Page size is capped at 200 whatever you ask
1490
+ for.
1485
1491
  parameters:
1492
+ - in: query
1493
+ name: facets
1494
+ schema:
1495
+ type: string
1496
+ enum:
1497
+ - source
1498
+ description: 'Add ''by_source'' to the response: how many matching observations
1499
+ each source holds. Costs one extra grouped query, so it is opt-in — ask
1500
+ for it when you need to know this workspace''s actual mix rather than assume
1501
+ one.'
1486
1502
  - in: query
1487
1503
  name: ids
1488
1504
  schema:
@@ -1500,16 +1516,67 @@ paths:
1500
1516
  description: The initial index from which to return the results.
1501
1517
  schema:
1502
1518
  type: integer
1519
+ - in: query
1520
+ name: order
1521
+ schema:
1522
+ type: string
1523
+ enum:
1524
+ - -observed_at
1525
+ - -occurred_at
1526
+ - observed_at
1527
+ - occurred_at
1528
+ description: Sort key. Defaults to -occurred_at when project, since or until
1529
+ is given, because a window is a question about world time, and to -observed_at
1530
+ otherwise, because the stream is a work queue ordered by when Current learned
1531
+ of things.
1503
1532
  - in: query
1504
1533
  name: project
1505
1534
  schema:
1506
1535
  type: string
1507
1536
  description: Filter by project UUID
1537
+ - in: query
1538
+ name: revisions
1539
+ schema:
1540
+ type: string
1541
+ enum:
1542
+ - all
1543
+ - current
1544
+ description: Observations are immutable, so an edited Chatter post is a second
1545
+ row sharing payload.record_key. 'all' (default) returns every revision,
1546
+ which is what the project audit log shows. 'current' returns only the latest
1547
+ revision of each post or comment, which is what a count of what people said
1548
+ means.
1549
+ - in: query
1550
+ name: since
1551
+ schema:
1552
+ type: string
1553
+ description: Keep observations that happened at or after this instant. Bounds
1554
+ occurred_at (when it happened in the world), not observed_at (when Current
1555
+ learned of it). ISO-8601; a bare date means the START of that day. A value
1556
+ with no offset is read in the workspace's timezone when exactly one workspace
1557
+ is in scope, otherwise UTC.
1558
+ - in: query
1559
+ name: source
1560
+ schema:
1561
+ type: array
1562
+ items:
1563
+ type: string
1564
+ description: 'Keep only observations from this source; repeat to accept several.
1565
+ Common names work as well as the stored value: ''chatter'' finds ''sitetracker_feed''.
1566
+ An unknown source is refused with the recorded ones named, because an empty
1567
+ page would read as ''nothing happened''.'
1508
1568
  - in: query
1509
1569
  name: status
1510
1570
  schema:
1511
1571
  type: string
1512
1572
  description: Filter by status (pending/ingested)
1573
+ - in: query
1574
+ name: until
1575
+ schema:
1576
+ type: string
1577
+ description: Keep observations that happened at or before this instant, inclusive.
1578
+ A bare date means the END of that day, so since=2026-09-01&until=2026-09-14
1579
+ is the fourteen days a person means by that.
1513
1580
  - in: query
1514
1581
  name: workspace
1515
1582
  schema:
@@ -1534,6 +1601,12 @@ paths:
1534
1601
  quick-capture (source=user). No update or delete — content is immutable
1535
1602
  and annotations belong to agents. ``project=`` is the project audit log,
1536
1603
  newest happening first.
1604
+
1605
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
1606
+ activity in one window of world time; ``by-project`` answers "which
1607
+ projects" over that same window in one call, instead of paging every row
1608
+ and grouping them by eye. Page size is capped at 200 whatever you ask
1609
+ for.
1537
1610
  tags:
1538
1611
  - observations
1539
1612
  requestBody:
@@ -1566,6 +1639,12 @@ paths:
1566
1639
  quick-capture (source=user). No update or delete — content is immutable
1567
1640
  and annotations belong to agents. ``project=`` is the project audit log,
1568
1641
  newest happening first.
1642
+
1643
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
1644
+ activity in one window of world time; ``by-project`` answers "which
1645
+ projects" over that same window in one call, instead of paging every row
1646
+ and grouping them by eye. Page size is capped at 200 whatever you ask
1647
+ for.
1569
1648
  parameters:
1570
1649
  - in: path
1571
1650
  name: id
@@ -1586,6 +1665,105 @@ paths:
1586
1665
  schema:
1587
1666
  $ref: '#/components/schemas/Observation'
1588
1667
  description: ''
1668
+ /api/observations/observations/by-project/:
1669
+ get:
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.
1677
+ parameters:
1678
+ - in: query
1679
+ name: facets
1680
+ schema:
1681
+ type: string
1682
+ enum:
1683
+ - source
1684
+ description: 'Add ''by_source'' to the response: how many matching observations
1685
+ each source holds. Costs one extra grouped query, so it is opt-in — ask
1686
+ for it when you need to know this workspace''s actual mix rather than assume
1687
+ one.'
1688
+ - in: query
1689
+ name: ids
1690
+ schema:
1691
+ type: string
1692
+ description: Comma-separated observation UUIDs
1693
+ - in: query
1694
+ name: order
1695
+ schema:
1696
+ type: string
1697
+ enum:
1698
+ - -observed_at
1699
+ - -occurred_at
1700
+ - observed_at
1701
+ - occurred_at
1702
+ description: Sort key. Defaults to -occurred_at when project, since or until
1703
+ is given, because a window is a question about world time, and to -observed_at
1704
+ otherwise, because the stream is a work queue ordered by when Current learned
1705
+ of things.
1706
+ - in: query
1707
+ name: project
1708
+ schema:
1709
+ type: string
1710
+ description: Filter by project UUID
1711
+ - in: query
1712
+ name: revisions
1713
+ schema:
1714
+ type: string
1715
+ enum:
1716
+ - all
1717
+ - current
1718
+ description: Observations are immutable, so an edited Chatter post is a second
1719
+ row sharing payload.record_key. 'all' (default) returns every revision,
1720
+ which is what the project audit log shows. 'current' returns only the latest
1721
+ revision of each post or comment, which is what a count of what people said
1722
+ means.
1723
+ - in: query
1724
+ name: since
1725
+ schema:
1726
+ type: string
1727
+ description: Keep observations that happened at or after this instant. Bounds
1728
+ occurred_at (when it happened in the world), not observed_at (when Current
1729
+ learned of it). ISO-8601; a bare date means the START of that day. A value
1730
+ with no offset is read in the workspace's timezone when exactly one workspace
1731
+ is in scope, otherwise UTC.
1732
+ - in: query
1733
+ name: source
1734
+ schema:
1735
+ type: array
1736
+ items:
1737
+ type: string
1738
+ description: 'Keep only observations from this source; repeat to accept several.
1739
+ Common names work as well as the stored value: ''chatter'' finds ''sitetracker_feed''.
1740
+ An unknown source is refused with the recorded ones named, because an empty
1741
+ page would read as ''nothing happened''.'
1742
+ - in: query
1743
+ name: status
1744
+ schema:
1745
+ type: string
1746
+ description: Filter by status (pending/ingested)
1747
+ - in: query
1748
+ name: until
1749
+ schema:
1750
+ type: string
1751
+ description: Keep observations that happened at or before this instant, inclusive.
1752
+ A bare date means the END of that day, so since=2026-09-01&until=2026-09-14
1753
+ is the fourteen days a person means by that.
1754
+ - in: query
1755
+ name: workspace
1756
+ schema:
1757
+ type: string
1758
+ description: Filter by workspace UUID
1759
+ tags:
1760
+ - observations
1761
+ security:
1762
+ - MessagingJobTokenAuth: []
1763
+ - tokenAuth: []
1764
+ responses:
1765
+ '200':
1766
+ description: No response body
1589
1767
  /api/projects/field-definitions/:
1590
1768
  get:
1591
1769
  operationId: projects_field_definitions_list
@@ -6133,6 +6311,11 @@ components:
6133
6311
  type: string
6134
6312
  format: uuid
6135
6313
  readOnly: true
6314
+ project:
6315
+ type: string
6316
+ format: uuid
6317
+ readOnly: true
6318
+ nullable: true
6136
6319
  source:
6137
6320
  type: string
6138
6321
  readOnly: true
@@ -6169,6 +6352,7 @@ components:
6169
6352
  - observed_at
6170
6353
  - occurred_at
6171
6354
  - payload
6355
+ - project
6172
6356
  - source
6173
6357
  - status
6174
6358
  - workspace
@@ -565,6 +565,24 @@ Sign in with a magic link and store the auth token.
565
565
 
566
566
  Invalidate the auth token on the server and forget it locally.
567
567
 
568
+ ### current observations by-project retrieve
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.
571
+
572
+ GET /api/observations/observations/by-project/
573
+
574
+ Options:
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
+ - `--ids` - Comma-separated observation UUIDs
577
+ - `--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
+ - `--project` - Filter by project UUID
579
+ - `--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
+ - `--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.
581
+ - `--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
+ - `--status` - Filter by status (pending/ingested)
583
+ - `--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.
584
+ - `--workspace` - Filter by workspace UUID
585
+
568
586
  ### current observations create
569
587
 
570
588
  The workspace observation stream. List/retrieve for members; create is
@@ -572,6 +590,12 @@ quick-capture (source=user). No update or delete — content is immutable
572
590
  and annotations belong to agents. ``project=`` is the project audit log,
573
591
  newest happening first.
574
592
 
593
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
594
+ activity in one window of world time; ``by-project`` answers "which
595
+ projects" over that same window in one call, instead of paging every row
596
+ and grouping them by eye. Page size is capped at 200 whatever you ask
597
+ for.
598
+
575
599
  POST /api/observations/observations/
576
600
 
577
601
  Options:
@@ -584,14 +608,26 @@ quick-capture (source=user). No update or delete — content is immutable
584
608
  and annotations belong to agents. ``project=`` is the project audit log,
585
609
  newest happening first.
586
610
 
611
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
612
+ activity in one window of world time; ``by-project`` answers "which
613
+ projects" over that same window in one call, instead of paging every row
614
+ and grouping them by eye. Page size is capped at 200 whatever you ask
615
+ for.
616
+
587
617
  GET /api/observations/observations/
588
618
 
589
619
  Options:
620
+ - `--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.
590
621
  - `--ids` - Comma-separated observation UUIDs
591
622
  - `--limit` - Number of results to return per page.
592
623
  - `--offset` - The initial index from which to return the results.
624
+ - `--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.
593
625
  - `--project` - Filter by project UUID
626
+ - `--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.
627
+ - `--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.
628
+ - `--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'.
594
629
  - `--status` - Filter by status (pending/ingested)
630
+ - `--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.
595
631
  - `--workspace` - Filter by workspace UUID
596
632
 
597
633
  ### current observations retrieve <id>
@@ -601,6 +637,12 @@ quick-capture (source=user). No update or delete — content is immutable
601
637
  and annotations belong to agents. ``project=`` is the project audit log,
602
638
  newest happening first.
603
639
 
640
+ ``source``, ``since`` and ``until`` narrow the stream to one kind of
641
+ activity in one window of world time; ``by-project`` answers "which
642
+ projects" over that same window in one call, instead of paging every row
643
+ and grouping them by eye. Page size is capped at 200 whatever you ask
644
+ for.
645
+
604
646
  GET /api/observations/observations/{id}/
605
647
 
606
648
  ### current projects closeout retrieve <id>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.52"
3
+ version = "0.1.53"
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