current-cli 0.1.20__tar.gz → 0.1.22__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.
@@ -21,3 +21,6 @@ uv.lock
21
21
  # Node
22
22
  node_modules/
23
23
  dist/
24
+
25
+ # Storybook build output
26
+ storybook-static/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: current-cli
3
- Version: 0.1.20
3
+ Version: 0.1.22
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
@@ -586,6 +586,100 @@ paths:
586
586
  items:
587
587
  $ref: '#/components/schemas/ProviderInfo'
588
588
  description: ''
589
+ /api/integrations/messaging/react/:
590
+ post:
591
+ operationId: integrations_messaging_react
592
+ description: Add an emoji reaction to the message a reply_ref points at.
593
+ tags:
594
+ - integrations
595
+ requestBody:
596
+ content:
597
+ application/json:
598
+ schema:
599
+ $ref: '#/components/schemas/MessagingReactRequestRequest'
600
+ application/x-www-form-urlencoded:
601
+ schema:
602
+ $ref: '#/components/schemas/MessagingReactRequestRequest'
603
+ multipart/form-data:
604
+ schema:
605
+ $ref: '#/components/schemas/MessagingReactRequestRequest'
606
+ required: true
607
+ security:
608
+ - tokenAuth: []
609
+ responses:
610
+ '200':
611
+ content:
612
+ application/json:
613
+ schema:
614
+ $ref: '#/components/schemas/MessagingOk'
615
+ description: ''
616
+ /api/integrations/messaging/respond/:
617
+ post:
618
+ operationId: integrations_messaging_respond
619
+ description: Send a text reply into the conversation a reply_ref points at.
620
+ tags:
621
+ - integrations
622
+ requestBody:
623
+ content:
624
+ application/json:
625
+ schema:
626
+ $ref: '#/components/schemas/MessagingRespondRequestRequest'
627
+ application/x-www-form-urlencoded:
628
+ schema:
629
+ $ref: '#/components/schemas/MessagingRespondRequestRequest'
630
+ multipart/form-data:
631
+ schema:
632
+ $ref: '#/components/schemas/MessagingRespondRequestRequest'
633
+ required: true
634
+ security:
635
+ - tokenAuth: []
636
+ responses:
637
+ '200':
638
+ content:
639
+ application/json:
640
+ schema:
641
+ $ref: '#/components/schemas/MessagingOk'
642
+ description: ''
643
+ /api/integrations/messaging/stream/:
644
+ post:
645
+ operationId: integrations_messaging_stream
646
+ description: |-
647
+ Live progress UI for a sandbox agent run; the final reply is NOT part
648
+ of it — the agent posts that as a normal message through the respond
649
+ endpoint afterwards.
650
+
651
+ Slack: ``start`` opens a "thinking steps" streaming message in the
652
+ thread (plan mode: task cards grouped under one card), ``append``
653
+ streams task_update/plan_update chunks into it, ``stop`` settles it.
654
+
655
+ Teams: ``start`` sends one Adaptive Card (compact status header plus a
656
+ toggleable activity section) and returns its activity id as ``ts``;
657
+ ``append``/``stop`` replace the card in full, rebuilt from the chunks —
658
+ the sandbox always sends its complete state, so the relay stays
659
+ stateless.
660
+ tags:
661
+ - integrations
662
+ requestBody:
663
+ content:
664
+ application/json:
665
+ schema:
666
+ $ref: '#/components/schemas/MessagingStreamRequestRequest'
667
+ application/x-www-form-urlencoded:
668
+ schema:
669
+ $ref: '#/components/schemas/MessagingStreamRequestRequest'
670
+ multipart/form-data:
671
+ schema:
672
+ $ref: '#/components/schemas/MessagingStreamRequestRequest'
673
+ required: true
674
+ security:
675
+ - tokenAuth: []
676
+ responses:
677
+ '200':
678
+ content:
679
+ application/json:
680
+ schema:
681
+ $ref: '#/components/schemas/MessagingStreamResponse'
682
+ description: ''
589
683
  /api/integrations/teams/app-package/:
590
684
  get:
591
685
  operationId: integrations_teams_app_package
@@ -1568,7 +1662,13 @@ paths:
1568
1662
  description: |-
1569
1663
  Upsert a rendered workflow definition into a workspace and seed its
1570
1664
  record types (from the definition's ``emits[]`` plus the built-ins).
1571
- Existing workspace schemas are never overwritten.
1665
+
1666
+ A definition owns the schemas of the types it declares, so re-applying
1667
+ updates them: the schema lives in the workflow repo and evolves with
1668
+ the steps that stage the records, and a workspace pinned to the schema
1669
+ of the *first* apply 422s every staged record the moment the two
1670
+ drift (a renamed required property is enough). Built-in types and
1671
+ emits that carry no schema never overwrite anything.
1572
1672
  tags:
1573
1673
  - workflows
1574
1674
  requestBody:
@@ -2611,6 +2711,16 @@ components:
2611
2711
  - role
2612
2712
  - workspace_id
2613
2713
  - workspace_name
2714
+ ActionEnum:
2715
+ enum:
2716
+ - start
2717
+ - append
2718
+ - stop
2719
+ type: string
2720
+ description: |-
2721
+ * `start` - start
2722
+ * `append` - append
2723
+ * `stop` - stop
2614
2724
  ApiUserConnectRequestRequest:
2615
2725
  type: object
2616
2726
  description: |-
@@ -2914,6 +3024,16 @@ components:
2914
3024
  format: uuid
2915
3025
  required:
2916
3026
  - workspace
3027
+ EmojiEnum:
3028
+ enum:
3029
+ - eyes
3030
+ - heart
3031
+ - thumbsup
3032
+ type: string
3033
+ description: |-
3034
+ * `eyes` - eyes
3035
+ * `heart` - heart
3036
+ * `thumbsup` - thumbsup
2917
3037
  ErrorDetail:
2918
3038
  type: object
2919
3039
  properties:
@@ -3213,6 +3333,66 @@ components:
3213
3333
  - role
3214
3334
  - workspace_id
3215
3335
  - workspace_name
3336
+ MessagingOk:
3337
+ type: object
3338
+ properties:
3339
+ ok:
3340
+ type: boolean
3341
+ required:
3342
+ - ok
3343
+ MessagingReactRequestRequest:
3344
+ type: object
3345
+ properties:
3346
+ workspace:
3347
+ type: string
3348
+ format: uuid
3349
+ reply_ref: {}
3350
+ emoji:
3351
+ $ref: '#/components/schemas/EmojiEnum'
3352
+ required:
3353
+ - emoji
3354
+ - reply_ref
3355
+ - workspace
3356
+ MessagingRespondRequestRequest:
3357
+ type: object
3358
+ properties:
3359
+ workspace:
3360
+ type: string
3361
+ format: uuid
3362
+ reply_ref: {}
3363
+ text:
3364
+ type: string
3365
+ minLength: 1
3366
+ required:
3367
+ - reply_ref
3368
+ - text
3369
+ - workspace
3370
+ MessagingStreamRequestRequest:
3371
+ type: object
3372
+ properties:
3373
+ workspace:
3374
+ type: string
3375
+ format: uuid
3376
+ reply_ref: {}
3377
+ action:
3378
+ $ref: '#/components/schemas/ActionEnum'
3379
+ ts:
3380
+ type: string
3381
+ chunks: {}
3382
+ required:
3383
+ - action
3384
+ - reply_ref
3385
+ - workspace
3386
+ MessagingStreamResponse:
3387
+ type: object
3388
+ properties:
3389
+ ok:
3390
+ type: boolean
3391
+ ts:
3392
+ type: string
3393
+ required:
3394
+ - ok
3395
+ - ts
3216
3396
  Observation:
3217
3397
  type: object
3218
3398
  description: |-
@@ -233,6 +233,45 @@ powers the approval-routing FYI picker.
233
233
 
234
234
  GET /api/integrations/connections/{id}/teams-conversations/
235
235
 
236
+ ### current integrations messaging react post
237
+
238
+ Add an emoji reaction to the message a reply_ref points at.
239
+
240
+ POST /api/integrations/messaging/react/
241
+
242
+ Options:
243
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
244
+
245
+ ### current integrations messaging respond post
246
+
247
+ Send a text reply into the conversation a reply_ref points at.
248
+
249
+ POST /api/integrations/messaging/respond/
250
+
251
+ Options:
252
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
253
+
254
+ ### current integrations messaging stream post
255
+
256
+ Live progress UI for a sandbox agent run; the final reply is NOT part
257
+ of it — the agent posts that as a normal message through the respond
258
+ endpoint afterwards.
259
+
260
+ Slack: ``start`` opens a "thinking steps" streaming message in the
261
+ thread (plan mode: task cards grouped under one card), ``append``
262
+ streams task_update/plan_update chunks into it, ``stop`` settles it.
263
+
264
+ Teams: ``start`` sends one Adaptive Card (compact status header plus a
265
+ toggleable activity section) and returns its activity id as ``ts``;
266
+ ``append``/``stop`` replace the card in full, rebuilt from the chunks —
267
+ the sandbox always sends its complete state, so the relay stays
268
+ stateless.
269
+
270
+ POST /api/integrations/messaging/stream/
271
+
272
+ Options:
273
+ - `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
274
+
236
275
  ### current integrations teams app-package get
237
276
 
238
277
  Download the Teams app package (manifest + icons) as a zip.
@@ -535,7 +574,13 @@ Options:
535
574
 
536
575
  Upsert a rendered workflow definition into a workspace and seed its
537
576
  record types (from the definition's ``emits[]`` plus the built-ins).
538
- Existing workspace schemas are never overwritten.
577
+
578
+ A definition owns the schemas of the types it declares, so re-applying
579
+ updates them: the schema lives in the workflow repo and evolves with
580
+ the steps that stage the records, and a workspace pinned to the schema
581
+ of the *first* apply 422s every staged record the moment the two
582
+ drift (a renamed required property is enough). Built-in types and
583
+ emits that carry no schema never overwrite anything.
539
584
 
540
585
  POST /api/workflows/definitions/apply/
541
586
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "current-cli"
3
- version = "0.1.20"
3
+ version = "0.1.22"
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