current-cli 0.1.51__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.51
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
@@ -3155,6 +3333,46 @@ paths:
3155
3333
  schema:
3156
3334
  $ref: '#/components/schemas/AttachmentResult'
3157
3335
  description: ''
3336
+ /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/source/:
3337
+ post:
3338
+ operationId: supplier_documents_workspaces_sets_attachments_source_create
3339
+ parameters:
3340
+ - in: path
3341
+ name: set_id
3342
+ schema:
3343
+ type: string
3344
+ format: uuid
3345
+ required: true
3346
+ - in: path
3347
+ name: workspace_id
3348
+ schema:
3349
+ type: string
3350
+ format: uuid
3351
+ required: true
3352
+ tags:
3353
+ - supplier-documents
3354
+ requestBody:
3355
+ content:
3356
+ application/json:
3357
+ schema:
3358
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3359
+ application/x-www-form-urlencoded:
3360
+ schema:
3361
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3362
+ multipart/form-data:
3363
+ schema:
3364
+ $ref: '#/components/schemas/ExistingSourceAttachmentInputRequest'
3365
+ required: true
3366
+ security:
3367
+ - MessagingJobTokenAuth: []
3368
+ - tokenAuth: []
3369
+ responses:
3370
+ '201':
3371
+ content:
3372
+ application/json:
3373
+ schema:
3374
+ $ref: '#/components/schemas/AttachmentResult'
3375
+ description: ''
3158
3376
  /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/:
3159
3377
  get:
3160
3378
  operationId: supplier_documents_workspaces_sets_review_retrieve
@@ -4678,6 +4896,28 @@ components:
4678
4896
  - password
4679
4897
  - username
4680
4898
  - workspace
4899
+ ArithmeticCheck:
4900
+ type: object
4901
+ properties:
4902
+ check:
4903
+ type: string
4904
+ stated:
4905
+ type: number
4906
+ format: double
4907
+ calculated:
4908
+ type: number
4909
+ format: double
4910
+ difference:
4911
+ type: number
4912
+ format: double
4913
+ result:
4914
+ $ref: '#/components/schemas/ResultEnum'
4915
+ required:
4916
+ - calculated
4917
+ - check
4918
+ - difference
4919
+ - result
4920
+ - stated
4681
4921
  AttachRequestRequest:
4682
4922
  type: object
4683
4923
  properties:
@@ -5116,6 +5356,9 @@ components:
5116
5356
  filename:
5117
5357
  type: string
5118
5358
  readOnly: true
5359
+ source_path:
5360
+ type: string
5361
+ readOnly: true
5119
5362
  created_at:
5120
5363
  type: string
5121
5364
  format: date-time
@@ -5125,6 +5368,7 @@ components:
5125
5368
  - filename
5126
5369
  - id
5127
5370
  - sha256
5371
+ - source_path
5128
5372
  - workspace
5129
5373
  DocumentDecisionEnum:
5130
5374
  enum:
@@ -5220,6 +5464,19 @@ components:
5220
5464
  type: string
5221
5465
  required:
5222
5466
  - detail
5467
+ ExistingSourceAttachmentInputRequest:
5468
+ type: object
5469
+ properties:
5470
+ document:
5471
+ type: string
5472
+ format: uuid
5473
+ reason:
5474
+ type: string
5475
+ minLength: 1
5476
+ maxLength: 2048
5477
+ required:
5478
+ - document
5479
+ - reason
5223
5480
  Extraction:
5224
5481
  type: object
5225
5482
  properties:
@@ -6054,6 +6311,11 @@ components:
6054
6311
  type: string
6055
6312
  format: uuid
6056
6313
  readOnly: true
6314
+ project:
6315
+ type: string
6316
+ format: uuid
6317
+ readOnly: true
6318
+ nullable: true
6057
6319
  source:
6058
6320
  type: string
6059
6321
  readOnly: true
@@ -6090,6 +6352,7 @@ components:
6090
6352
  - observed_at
6091
6353
  - occurred_at
6092
6354
  - payload
6355
+ - project
6093
6356
  - source
6094
6357
  - status
6095
6358
  - workspace
@@ -7100,6 +7363,14 @@ components:
7100
7363
  required:
7101
7364
  - action
7102
7365
  - version
7366
+ ResultEnum:
7367
+ enum:
7368
+ - match
7369
+ - mismatch
7370
+ type: string
7371
+ description: |-
7372
+ * `match` - match
7373
+ * `mismatch` - mismatch
7103
7374
  RevertRequestRequest:
7104
7375
  type: object
7105
7376
  properties:
@@ -7402,7 +7673,12 @@ components:
7402
7673
  source_path:
7403
7674
  type: string
7404
7675
  record: {}
7676
+ checks:
7677
+ type: array
7678
+ items:
7679
+ $ref: '#/components/schemas/ArithmeticCheck'
7405
7680
  required:
7681
+ - checks
7406
7682
  - document
7407
7683
  - extraction
7408
7684
  - filename
@@ -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>
@@ -1075,6 +1117,13 @@ POST /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments
1075
1117
  Options:
1076
1118
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1077
1119
 
1120
+ ### current supplier-documents workspaces sets attachments source create <workspace_id> <set_id>
1121
+
1122
+ POST /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/attachments/source/
1123
+
1124
+ Options:
1125
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
1126
+
1078
1127
  ### current supplier-documents workspaces sets review retrieve <workspace_id> <set_id>
1079
1128
 
1080
1129
  GET /api/supplier-documents/workspaces/{workspace_id}/sets/{set_id}/review/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.51"
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