current-cli 0.1.38__tar.gz → 0.1.40__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.38
3
+ Version: 0.1.40
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
@@ -1834,6 +1834,34 @@ paths:
1834
1834
  responses:
1835
1835
  '204':
1836
1836
  description: No response body
1837
+ /api/projects/projects/{id}/closeout/:
1838
+ get:
1839
+ operationId: projects_projects_closeout_retrieve
1840
+ description: |-
1841
+ The project's current closeout review — the review.json a
1842
+ closeout workflow run wrote to workspace storage, parsed and
1843
+ validated server-side. ``review`` is null when no run has written
1844
+ one yet.
1845
+ parameters:
1846
+ - in: path
1847
+ name: id
1848
+ schema:
1849
+ type: string
1850
+ format: uuid
1851
+ description: A UUID string identifying this project.
1852
+ required: true
1853
+ tags:
1854
+ - projects
1855
+ security:
1856
+ - MessagingJobTokenAuth: []
1857
+ - tokenAuth: []
1858
+ responses:
1859
+ '200':
1860
+ content:
1861
+ application/json:
1862
+ schema:
1863
+ $ref: '#/components/schemas/CloseoutResponse'
1864
+ description: ''
1837
1865
  /api/projects/projects/{id}/feed/:
1838
1866
  get:
1839
1867
  operationId: projects_projects_feed_retrieve
@@ -2008,6 +2036,150 @@ paths:
2008
2036
  schema:
2009
2037
  $ref: '#/components/schemas/ProjectSearchResponse'
2010
2038
  description: ''
2039
+ /api/reactions/reactions/:
2040
+ get:
2041
+ operationId: reactions_reactions_list
2042
+ description: |-
2043
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
2044
+ output.
2045
+
2046
+ Reads are author-only: a member sees the reactions they gave, and never
2047
+ anyone else's. Feedback on the platform's own output is candid only when
2048
+ the member knows their colleagues are not reading it, and no surface
2049
+ shows another member's reaction. Aggregate sentiment is a reporting
2050
+ question, answered off the table directly rather than through this
2051
+ endpoint.
2052
+
2053
+ Create for any member of the workspace — every submission is a new row
2054
+ (see ``Reaction``). No update or delete: a changed mind is a new
2055
+ reaction, not an edit to the old one.
2056
+ parameters:
2057
+ - name: limit
2058
+ required: false
2059
+ in: query
2060
+ description: Number of results to return per page.
2061
+ schema:
2062
+ type: integer
2063
+ - name: offset
2064
+ required: false
2065
+ in: query
2066
+ description: The initial index from which to return the results.
2067
+ schema:
2068
+ type: integer
2069
+ - in: query
2070
+ name: project
2071
+ schema:
2072
+ type: string
2073
+ description: Filter by project UUID
2074
+ - in: query
2075
+ name: subject_id
2076
+ schema:
2077
+ type: string
2078
+ description: Filter by subject id
2079
+ - in: query
2080
+ name: subject_type
2081
+ schema:
2082
+ type: string
2083
+ description: Filter by subject type
2084
+ - in: query
2085
+ name: subject_version
2086
+ schema:
2087
+ type: string
2088
+ description: Filter by subject version
2089
+ - in: query
2090
+ name: workspace
2091
+ schema:
2092
+ type: string
2093
+ description: Filter by workspace UUID
2094
+ tags:
2095
+ - reactions
2096
+ security:
2097
+ - MessagingJobTokenAuth: []
2098
+ - tokenAuth: []
2099
+ responses:
2100
+ '200':
2101
+ content:
2102
+ application/json:
2103
+ schema:
2104
+ $ref: '#/components/schemas/PaginatedReactionList'
2105
+ description: ''
2106
+ post:
2107
+ operationId: reactions_reactions_create
2108
+ description: |-
2109
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
2110
+ output.
2111
+
2112
+ Reads are author-only: a member sees the reactions they gave, and never
2113
+ anyone else's. Feedback on the platform's own output is candid only when
2114
+ the member knows their colleagues are not reading it, and no surface
2115
+ shows another member's reaction. Aggregate sentiment is a reporting
2116
+ question, answered off the table directly rather than through this
2117
+ endpoint.
2118
+
2119
+ Create for any member of the workspace — every submission is a new row
2120
+ (see ``Reaction``). No update or delete: a changed mind is a new
2121
+ reaction, not an edit to the old one.
2122
+ tags:
2123
+ - reactions
2124
+ requestBody:
2125
+ content:
2126
+ application/json:
2127
+ schema:
2128
+ $ref: '#/components/schemas/ReactionCreateRequest'
2129
+ application/x-www-form-urlencoded:
2130
+ schema:
2131
+ $ref: '#/components/schemas/ReactionCreateRequest'
2132
+ multipart/form-data:
2133
+ schema:
2134
+ $ref: '#/components/schemas/ReactionCreateRequest'
2135
+ required: true
2136
+ security:
2137
+ - MessagingJobTokenAuth: []
2138
+ - tokenAuth: []
2139
+ responses:
2140
+ '201':
2141
+ content:
2142
+ application/json:
2143
+ schema:
2144
+ $ref: '#/components/schemas/ReactionCreate'
2145
+ description: ''
2146
+ /api/reactions/reactions/{id}/:
2147
+ get:
2148
+ operationId: reactions_reactions_retrieve
2149
+ description: |-
2150
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
2151
+ output.
2152
+
2153
+ Reads are author-only: a member sees the reactions they gave, and never
2154
+ anyone else's. Feedback on the platform's own output is candid only when
2155
+ the member knows their colleagues are not reading it, and no surface
2156
+ shows another member's reaction. Aggregate sentiment is a reporting
2157
+ question, answered off the table directly rather than through this
2158
+ endpoint.
2159
+
2160
+ Create for any member of the workspace — every submission is a new row
2161
+ (see ``Reaction``). No update or delete: a changed mind is a new
2162
+ reaction, not an edit to the old one.
2163
+ parameters:
2164
+ - in: path
2165
+ name: id
2166
+ schema:
2167
+ type: string
2168
+ format: uuid
2169
+ description: A UUID string identifying this reaction.
2170
+ required: true
2171
+ tags:
2172
+ - reactions
2173
+ security:
2174
+ - MessagingJobTokenAuth: []
2175
+ - tokenAuth: []
2176
+ responses:
2177
+ '200':
2178
+ content:
2179
+ application/json:
2180
+ schema:
2181
+ $ref: '#/components/schemas/Reaction'
2182
+ description: ''
2011
2183
  /api/tasks/tasks/:
2012
2184
  get:
2013
2185
  operationId: tasks_tasks_list
@@ -3596,6 +3768,17 @@ components:
3596
3768
  - client_secret
3597
3769
  - login_host
3598
3770
  - workspace
3771
+ CloseoutResponse:
3772
+ type: object
3773
+ description: |-
3774
+ Response of the project closeout endpoint: the validated review
3775
+ document (the ``core.review.ReviewDocument`` contract), or null when no
3776
+ closeout run has written one yet.
3777
+ properties:
3778
+ review:
3779
+ nullable: true
3780
+ required:
3781
+ - review
3599
3782
  ColorEnum:
3600
3783
  enum:
3601
3784
  - neutral
@@ -4627,6 +4810,29 @@ components:
4627
4810
  type: array
4628
4811
  items:
4629
4812
  $ref: '#/components/schemas/Observation'
4813
+ PaginatedReactionList:
4814
+ type: object
4815
+ required:
4816
+ - count
4817
+ - results
4818
+ properties:
4819
+ count:
4820
+ type: integer
4821
+ example: 123
4822
+ next:
4823
+ type: string
4824
+ nullable: true
4825
+ format: uri
4826
+ example: http://api.example.org/accounts/?offset=400&limit=100
4827
+ previous:
4828
+ type: string
4829
+ nullable: true
4830
+ format: uri
4831
+ example: http://api.example.org/accounts/?offset=200&limit=100
4832
+ results:
4833
+ type: array
4834
+ items:
4835
+ $ref: '#/components/schemas/Reaction'
4630
4836
  PatchedContactRequest:
4631
4837
  type: object
4632
4838
  properties:
@@ -5120,6 +5326,144 @@ components:
5120
5326
  payload: {}
5121
5327
  required:
5122
5328
  - workspace
5329
+ Reaction:
5330
+ type: object
5331
+ description: |-
5332
+ Read shape for a reaction. Everything is written once at creation and
5333
+ never edited, so every field is read-only here.
5334
+ properties:
5335
+ id:
5336
+ type: string
5337
+ format: uuid
5338
+ readOnly: true
5339
+ workspace:
5340
+ type: string
5341
+ format: uuid
5342
+ readOnly: true
5343
+ project:
5344
+ type: string
5345
+ format: uuid
5346
+ readOnly: true
5347
+ nullable: true
5348
+ subject_type:
5349
+ type: string
5350
+ readOnly: true
5351
+ subject_id:
5352
+ type: string
5353
+ readOnly: true
5354
+ subject_version:
5355
+ type: string
5356
+ readOnly: true
5357
+ sentiment:
5358
+ allOf:
5359
+ - $ref: '#/components/schemas/SentimentEnum'
5360
+ readOnly: true
5361
+ reason:
5362
+ type: string
5363
+ readOnly: true
5364
+ comment:
5365
+ type: string
5366
+ readOnly: true
5367
+ user_email:
5368
+ type: string
5369
+ readOnly: true
5370
+ user_name:
5371
+ type: string
5372
+ readOnly: true
5373
+ created_at:
5374
+ type: string
5375
+ format: date-time
5376
+ readOnly: true
5377
+ required:
5378
+ - comment
5379
+ - created_at
5380
+ - id
5381
+ - project
5382
+ - reason
5383
+ - sentiment
5384
+ - subject_id
5385
+ - subject_type
5386
+ - subject_version
5387
+ - user_email
5388
+ - user_name
5389
+ - workspace
5390
+ ReactionCreate:
5391
+ type: object
5392
+ description: |-
5393
+ Write shape: the member names the workspace, the subject, and their
5394
+ sentiment. ``user`` is never client-settable — the view fills it in from
5395
+ the request.
5396
+ properties:
5397
+ id:
5398
+ type: string
5399
+ format: uuid
5400
+ readOnly: true
5401
+ workspace:
5402
+ type: string
5403
+ format: uuid
5404
+ project:
5405
+ type: string
5406
+ format: uuid
5407
+ nullable: true
5408
+ subject_type:
5409
+ type: string
5410
+ maxLength: 32
5411
+ subject_id:
5412
+ type: string
5413
+ maxLength: 512
5414
+ subject_version:
5415
+ type: string
5416
+ maxLength: 64
5417
+ sentiment:
5418
+ $ref: '#/components/schemas/SentimentEnum'
5419
+ reason:
5420
+ type: string
5421
+ maxLength: 32
5422
+ comment:
5423
+ type: string
5424
+ required:
5425
+ - id
5426
+ - sentiment
5427
+ - subject_id
5428
+ - subject_type
5429
+ - workspace
5430
+ ReactionCreateRequest:
5431
+ type: object
5432
+ description: |-
5433
+ Write shape: the member names the workspace, the subject, and their
5434
+ sentiment. ``user`` is never client-settable — the view fills it in from
5435
+ the request.
5436
+ properties:
5437
+ workspace:
5438
+ type: string
5439
+ format: uuid
5440
+ project:
5441
+ type: string
5442
+ format: uuid
5443
+ nullable: true
5444
+ subject_type:
5445
+ type: string
5446
+ minLength: 1
5447
+ maxLength: 32
5448
+ subject_id:
5449
+ type: string
5450
+ minLength: 1
5451
+ maxLength: 512
5452
+ subject_version:
5453
+ type: string
5454
+ maxLength: 64
5455
+ sentiment:
5456
+ $ref: '#/components/schemas/SentimentEnum'
5457
+ reason:
5458
+ type: string
5459
+ maxLength: 32
5460
+ comment:
5461
+ type: string
5462
+ required:
5463
+ - sentiment
5464
+ - subject_id
5465
+ - subject_type
5466
+ - workspace
5123
5467
  RequestMagicLinkRequest:
5124
5468
  type: object
5125
5469
  properties:
@@ -5301,6 +5645,14 @@ components:
5301
5645
  - occurred_at
5302
5646
  - sender
5303
5647
  - source
5648
+ SentimentEnum:
5649
+ enum:
5650
+ - up
5651
+ - down
5652
+ type: string
5653
+ description: |-
5654
+ * `up` - Thumbs up
5655
+ * `down` - Thumbs down
5304
5656
  SlackChannel:
5305
5657
  type: object
5306
5658
  properties:
@@ -561,6 +561,15 @@ newest happening first.
561
561
 
562
562
  GET /api/observations/observations/{id}/
563
563
 
564
+ ### current projects closeout retrieve <id>
565
+
566
+ The project's current closeout review — the review.json a
567
+ closeout workflow run wrote to workspace storage, parsed and
568
+ validated server-side. ``review`` is null when no run has written
569
+ one yet.
570
+
571
+ GET /api/projects/projects/{id}/closeout/
572
+
564
573
  ### current projects create
565
574
 
566
575
  Projects across the caller's workspaces. Any member can create a
@@ -733,6 +742,72 @@ PUT /api/projects/projects/{id}/
733
742
  Options:
734
743
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
735
744
 
745
+ ### current reactions create
746
+
747
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
748
+ output.
749
+
750
+ Reads are author-only: a member sees the reactions they gave, and never
751
+ anyone else's. Feedback on the platform's own output is candid only when
752
+ the member knows their colleagues are not reading it, and no surface
753
+ shows another member's reaction. Aggregate sentiment is a reporting
754
+ question, answered off the table directly rather than through this
755
+ endpoint.
756
+
757
+ Create for any member of the workspace — every submission is a new row
758
+ (see ``Reaction``). No update or delete: a changed mind is a new
759
+ reaction, not an edit to the old one.
760
+
761
+ POST /api/reactions/reactions/
762
+
763
+ Options:
764
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
765
+
766
+ ### current reactions list
767
+
768
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
769
+ output.
770
+
771
+ Reads are author-only: a member sees the reactions they gave, and never
772
+ anyone else's. Feedback on the platform's own output is candid only when
773
+ the member knows their colleagues are not reading it, and no surface
774
+ shows another member's reaction. Aggregate sentiment is a reporting
775
+ question, answered off the table directly rather than through this
776
+ endpoint.
777
+
778
+ Create for any member of the workspace — every submission is a new row
779
+ (see ``Reaction``). No update or delete: a changed mind is a new
780
+ reaction, not an edit to the old one.
781
+
782
+ GET /api/reactions/reactions/
783
+
784
+ Options:
785
+ - `--limit` - Number of results to return per page.
786
+ - `--offset` - The initial index from which to return the results.
787
+ - `--project` - Filter by project UUID
788
+ - `--subject-id` - Filter by subject id
789
+ - `--subject-type` - Filter by subject type
790
+ - `--subject-version` - Filter by subject version
791
+ - `--workspace` - Filter by workspace UUID
792
+
793
+ ### current reactions retrieve <id>
794
+
795
+ Thumbs up/down (+ optional reason and comment) on a piece of platform
796
+ output.
797
+
798
+ Reads are author-only: a member sees the reactions they gave, and never
799
+ anyone else's. Feedback on the platform's own output is candid only when
800
+ the member knows their colleagues are not reading it, and no surface
801
+ shows another member's reaction. Aggregate sentiment is a reporting
802
+ question, answered off the table directly rather than through this
803
+ endpoint.
804
+
805
+ Create for any member of the workspace — every submission is a new row
806
+ (see ``Reaction``). No update or delete: a changed mind is a new
807
+ reaction, not an edit to the old one.
808
+
809
+ GET /api/reactions/reactions/{id}/
810
+
736
811
  ### current tasks create
737
812
 
738
813
  The caller's personal todos. Incomplete tasks sort before completed ones.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.38"
3
+ version = "0.1.40"
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