car-runtime 0.29.0 → 0.30.0
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.
- package/index.d.ts +48 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -554,6 +554,54 @@ export class CarRuntime {
|
|
|
554
554
|
*/
|
|
555
555
|
registerModel(schemaJson: string): Promise<string>;
|
|
556
556
|
|
|
557
|
+
/**
|
|
558
|
+
* `messaging.config.get` — read the multi-channel approval-transport config
|
|
559
|
+
* for one channel (enabled flag, allowlisted handles, whether a pairing is
|
|
560
|
+
* in flight). Host/local-auth gated on the daemon.
|
|
561
|
+
*
|
|
562
|
+
* `requestJson` is an optional `{ channel? }` selector — `channel` is
|
|
563
|
+
* `"imessage"` | `"slack"`, default `"imessage"`. Pass `"{}"` or omit it for
|
|
564
|
+
* the iMessage (back-compat) channel.
|
|
565
|
+
*
|
|
566
|
+
* Returns `MessagingConfigView` JSON. The view always carries a `channel`
|
|
567
|
+
* key naming which channel it describes (`"imessage"` | `"slack"`).
|
|
568
|
+
*/
|
|
569
|
+
messagingConfigGet(requestJson?: string): Promise<string>;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* `messaging.config.set` — mutate one channel's approval-transport config.
|
|
573
|
+
* The ONLY allowlist/config-mutation path; host/local-auth gated.
|
|
574
|
+
* `requestJson` is a `MessagingConfigSetRequest`
|
|
575
|
+
* (`{ channel?, enabled?, allowlisted_handles?, add_handles?, remove_handles?,
|
|
576
|
+
* bot_token?, app_token? }`).
|
|
577
|
+
* `channel` is `"imessage"` | `"slack"`, default `"imessage"` when absent
|
|
578
|
+
* (back-compat). For `channel: "slack"`, supplying BOTH `bot_token` (`xoxb-`)
|
|
579
|
+
* and `app_token` (`xapp-`) provisions them into the OS keychain (MC-9) and
|
|
580
|
+
* persists only a keychain reference into the config — the bearer values are
|
|
581
|
+
* never stored on disk nor echoed back.
|
|
582
|
+
* Returns the updated `MessagingConfigView` JSON (with its `channel` key).
|
|
583
|
+
*/
|
|
584
|
+
messagingConfigSet(requestJson: string): Promise<string>;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* `messaging.pairing.start` — mint a fresh high-entropy pairing code for one
|
|
588
|
+
* channel to display ONLY in the local UI; the paired device sends it back
|
|
589
|
+
* to bind its handle. Host/local-auth gated.
|
|
590
|
+
*
|
|
591
|
+
* `requestJson` is an optional `{ channel? }` selector (`"imessage"` |
|
|
592
|
+
* `"slack"`, default `"imessage"`). Returns `MessagingPairingStartResponse`
|
|
593
|
+
* JSON (`{ pairing_code, config }`).
|
|
594
|
+
*/
|
|
595
|
+
messagingPairingStart(requestJson?: string): Promise<string>;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* `messaging.pairing.status` — whether a pairing is in flight on one channel
|
|
599
|
+
* and (host gated) the active code. `requestJson` is an optional
|
|
600
|
+
* `{ channel? }` selector (`"imessage"` | `"slack"`, default `"imessage"`).
|
|
601
|
+
* Returns `MessagingPairingStatusResponse` JSON.
|
|
602
|
+
*/
|
|
603
|
+
messagingPairingStatus(requestJson?: string): Promise<string>;
|
|
604
|
+
|
|
557
605
|
/**
|
|
558
606
|
* Recommend models for this machine + intent. `useCase`/`tier` are
|
|
559
607
|
* snake_case enum values (e.g. "coding", "most_capable"); `cloudOk` lets
|