current-cli 0.1.27__tar.gz → 0.1.28__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.4
2
2
  Name: current-cli
3
- Version: 0.1.27
3
+ Version: 0.1.28
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
@@ -744,6 +744,45 @@ paths:
744
744
  schema:
745
745
  $ref: '#/components/schemas/ManifestResponse'
746
746
  description: ''
747
+ /api/integrations/messaging/history/:
748
+ post:
749
+ operationId: integrations_messaging_history
750
+ description: |-
751
+ What was already said in this conversation, oldest last.
752
+
753
+ The agent is dispatched with one message and no memory of the last
754
+ one, so without this every turn answers out of context — "send it to
755
+ the same person" has no referent. Neither provider will give the
756
+ history back (see ``integrations.transcript``), so this reads current's
757
+ own ledger: the messages people sent the bot, and the replies the bot
758
+ sent them.
759
+
760
+ Unlike the send paths this needs no anti-spoofing guard. It only ever
761
+ reads the calling workspace's own observations, so a forged
762
+ conversation id reads nothing rather than reaching another tenant.
763
+ tags:
764
+ - integrations
765
+ requestBody:
766
+ content:
767
+ application/json:
768
+ schema:
769
+ $ref: '#/components/schemas/MessagingHistoryRequestRequest'
770
+ application/x-www-form-urlencoded:
771
+ schema:
772
+ $ref: '#/components/schemas/MessagingHistoryRequestRequest'
773
+ multipart/form-data:
774
+ schema:
775
+ $ref: '#/components/schemas/MessagingHistoryRequestRequest'
776
+ required: true
777
+ security:
778
+ - MessagingJobTokenAuth: []
779
+ responses:
780
+ '200':
781
+ content:
782
+ application/json:
783
+ schema:
784
+ $ref: '#/components/schemas/MessagingHistoryResponse'
785
+ description: ''
747
786
  /api/integrations/messaging/react/:
748
787
  post:
749
788
  operationId: integrations_messaging_react
@@ -1460,6 +1499,41 @@ paths:
1460
1499
  schema:
1461
1500
  $ref: '#/components/schemas/Project'
1462
1501
  description: ''
1502
+ /api/projects/projects/search/:
1503
+ get:
1504
+ operationId: projects_projects_search_retrieve
1505
+ description: |-
1506
+ Find projects by their current field values (see state.search_projects).
1507
+
1508
+ Compact on purpose: the full project list serializes every field
1509
+ value of every project — megabytes at production scale — which no
1510
+ chat agent or picker can consume. A hit carries just enough to
1511
+ choose a project and fetch its detail.
1512
+ parameters:
1513
+ - in: query
1514
+ name: q
1515
+ schema:
1516
+ type: string
1517
+ description: Case-insensitive regular expression; a plain word searches as
1518
+ a keyword
1519
+ required: true
1520
+ - in: query
1521
+ name: workspace
1522
+ schema:
1523
+ type: string
1524
+ description: Filter by workspace UUID
1525
+ tags:
1526
+ - projects
1527
+ security:
1528
+ - MessagingJobTokenAuth: []
1529
+ - tokenAuth: []
1530
+ responses:
1531
+ '200':
1532
+ content:
1533
+ application/json:
1534
+ schema:
1535
+ $ref: '#/components/schemas/ProjectSearchResponse'
1536
+ description: ''
1463
1537
  /api/tasks/tasks/:
1464
1538
  get:
1465
1539
  operationId: tasks_tasks_list
@@ -3583,6 +3657,24 @@ components:
3583
3657
  - role
3584
3658
  - workspace_id
3585
3659
  - workspace_name
3660
+ MessagingHistoryRequestRequest:
3661
+ type: object
3662
+ properties:
3663
+ workspace:
3664
+ type: string
3665
+ format: uuid
3666
+ reply_ref: {}
3667
+ limit:
3668
+ type: integer
3669
+ required:
3670
+ - reply_ref
3671
+ - workspace
3672
+ MessagingHistoryResponse:
3673
+ type: object
3674
+ properties:
3675
+ messages: {}
3676
+ required:
3677
+ - messages
3586
3678
  MessagingOk:
3587
3679
  type: object
3588
3680
  properties:
@@ -4137,6 +4229,56 @@ components:
4137
4229
  fields: {}
4138
4230
  required:
4139
4231
  - workspace
4232
+ ProjectSearchMatch:
4233
+ type: object
4234
+ description: One field whose current value matched the search pattern.
4235
+ properties:
4236
+ field:
4237
+ type: string
4238
+ value:
4239
+ type: string
4240
+ required:
4241
+ - field
4242
+ - value
4243
+ ProjectSearchResponse:
4244
+ type: object
4245
+ description: |-
4246
+ ``count`` is the total number of matching projects; ``results`` is
4247
+ capped (see ``state.SEARCH_RESULT_LIMIT``), name-field hits first.
4248
+ properties:
4249
+ count:
4250
+ type: integer
4251
+ results:
4252
+ type: array
4253
+ items:
4254
+ $ref: '#/components/schemas/ProjectSearchResult'
4255
+ required:
4256
+ - count
4257
+ - results
4258
+ ProjectSearchResult:
4259
+ type: object
4260
+ description: 'One project hit: identity plus the fields that matched.'
4261
+ properties:
4262
+ id:
4263
+ type: string
4264
+ format: uuid
4265
+ workspace:
4266
+ type: string
4267
+ format: uuid
4268
+ name:
4269
+ type: string
4270
+ status:
4271
+ type: string
4272
+ matched:
4273
+ type: array
4274
+ items:
4275
+ $ref: '#/components/schemas/ProjectSearchMatch'
4276
+ required:
4277
+ - id
4278
+ - matched
4279
+ - name
4280
+ - status
4281
+ - workspace
4140
4282
  PromoteRequestRequest:
4141
4283
  type: object
4142
4284
  properties:
@@ -284,6 +284,26 @@ messaging-job endpoint uses.
284
284
 
285
285
  POST /api/integrations/messaging/files/manifest/
286
286
 
287
+ ### current integrations messaging history post
288
+
289
+ What was already said in this conversation, oldest last.
290
+
291
+ The agent is dispatched with one message and no memory of the last
292
+ one, so without this every turn answers out of context — "send it to
293
+ the same person" has no referent. Neither provider will give the
294
+ history back (see ``integrations.transcript``), so this reads current's
295
+ own ledger: the messages people sent the bot, and the replies the bot
296
+ sent them.
297
+
298
+ Unlike the send paths this needs no anti-spoofing guard. It only ever
299
+ reads the calling workspace's own observations, so a forged
300
+ conversation id reads nothing rather than reaching another tenant.
301
+
302
+ POST /api/integrations/messaging/history/
303
+
304
+ Options:
305
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
306
+
287
307
  ### current integrations messaging react post
288
308
 
289
309
  Add an emoji reaction to the message a reply_ref points at.
@@ -517,6 +537,21 @@ POST /api/projects/projects/{id}/revert/
517
537
  Options:
518
538
  - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
519
539
 
540
+ ### current projects search retrieve
541
+
542
+ Find projects by their current field values (see state.search_projects).
543
+
544
+ Compact on purpose: the full project list serializes every field
545
+ value of every project — megabytes at production scale — which no
546
+ chat agent or picker can consume. A hit carries just enough to
547
+ choose a project and fetch its detail.
548
+
549
+ GET /api/projects/projects/search/
550
+
551
+ Options:
552
+ - `--q` - Case-insensitive regular expression; a plain word searches as a keyword
553
+ - `--workspace` - Filter by workspace UUID
554
+
520
555
  ### current projects update <id>
521
556
 
522
557
  Projects across the caller's workspaces. Any member can create and edit.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.27"
3
+ version = "0.1.28"
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