@realtimex/sdk 2.0.52 → 2.0.54

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 CHANGED
@@ -145,6 +145,30 @@ export interface CancelThreadWakeOptions extends RealtimeXRequestOptions {
145
145
  body?: CancelThreadWakeBody;
146
146
  }
147
147
 
148
+ export type ChannelActParams = {
149
+ control: string;
150
+ };
151
+ export type ChannelActQuery = Record<string, never>;
152
+ export type ChannelActHeaders = {
153
+ "x-app-id"?: string;
154
+ };
155
+ export type ChannelActBody = {
156
+ argsJson?: string;
157
+ limit?: number;
158
+ before?: string;
159
+ query?: string;
160
+ name?: string;
161
+ message?: string;
162
+ context?: string;
163
+ };
164
+ export type ChannelActResponse = Record<string, unknown>;
165
+ export interface ChannelActOptions extends RealtimeXRequestOptions {
166
+ params?: ChannelActParams;
167
+ query?: ChannelActQuery;
168
+ headers?: ChannelActHeaders & Record<string, string>;
169
+ body?: ChannelActBody;
170
+ }
171
+
148
172
  export type ChatRichContentContainmentParams = Record<string, never>;
149
173
  export type ChatRichContentContainmentQuery = Record<string, never>;
150
174
  export type ChatRichContentContainmentHeaders = Record<string, never>;
@@ -1309,6 +1333,7 @@ export type ListBrowserWatchesParams = Record<string, never>;
1309
1333
  export type ListBrowserWatchesQuery = {
1310
1334
  key?: string;
1311
1335
  includeResolved?: boolean;
1336
+ includeIncoming?: boolean;
1312
1337
  limit?: number;
1313
1338
  cursor?: string;
1314
1339
  };
@@ -2527,6 +2552,16 @@ export type SetBrowserWatchBody = {
2527
2552
  excerptChars?: number;
2528
2553
  reason: string;
2529
2554
  context?: Record<string, unknown>;
2555
+ route?: {
2556
+ dispatchMode: "send_to_thread" | "trigger_agent" | "trigger_flow" | "record_only";
2557
+ workspaceId?: number;
2558
+ workspaceSlug?: string;
2559
+ threadId?: number;
2560
+ threadSlug?: string;
2561
+ triggerFlowId?: string;
2562
+ };
2563
+ includePayloadPreview?: boolean;
2564
+ authorizationRequestId?: string;
2530
2565
  };
2531
2566
  export type SetBrowserWatchResponse = unknown;
2532
2567
  export interface SetBrowserWatchOptions extends RealtimeXRequestOptions {
@@ -3453,6 +3488,9 @@ export declare class RealtimeXClient {
3453
3488
  /** Cancel a scheduled wake-up of the thread of the calling agent session by key. Cancelling an already cancelled key succeeds. A wake that is being delivered cannot be retracted. A wake with uncertain delivery can only be released with acknowledgeUnknown after checking the thread. */
3454
3489
  cancelThreadWake(options?: CancelThreadWakeOptions): Promise<CancelThreadWakeResponse>;
3455
3490
  cancelThreadWake(body: CancelThreadWakeBody, options?: Omit<CancelThreadWakeOptions, 'body'>): Promise<CancelThreadWakeResponse>;
3491
+ /** Run one control of the external chat this terminal answers (Zalo Personal first): channel-act list shows the controls of this chat with their level, channel-act describe --name <control> shows the arguments of one control, and channel-act <name> runs it with --args-json and the flags below. Open controls (free, chat-write) run right away; ask controls run after the terminal permission prompt; user ids take cu_ and zm_ handles; history pages back with --before <next_before>. Posting text stays on send-channel-message. Run it from the channel-linked terminal, so --context is optional. Errors: 400 invalid arguments (details and schema) or a control that cannot be called safely (CHANNEL_ACT_UNAVAILABLE), 403 an account-wide list on an account that serves other workspaces (CHANNEL_ACT_ISOLATED), 404 no such control (a hint names the right one) or no linked chat, 409 channel stopped, 429 rate limited (wait retry_after seconds), 502 the channel refused. */
3492
+ channelAct(options?: ChannelActOptions): Promise<ChannelActResponse>;
3493
+ channelAct(control: string, body: ChannelActBody, options?: Omit<ChannelActOptions, 'params' | 'body'>): Promise<ChannelActResponse>;
3456
3494
  /** Measure chat rich-content containment in the owned Electron renderer. */
3457
3495
  chatRichContentContainment(options?: ChatRichContentContainmentOptions): Promise<ChatRichContentContainmentResponse>;
3458
3496
  chatRichContentContainment(body: ChatRichContentContainmentBody, options?: Omit<ChatRichContentContainmentOptions, 'body'>): Promise<ChatRichContentContainmentResponse>;
@@ -3599,7 +3637,7 @@ export declare class RealtimeXClient {
3599
3637
  listBrowserProfiles(options?: ListBrowserProfilesOptions): Promise<ListBrowserProfilesResponse>;
3600
3638
  /** List registered RealTimeX Browser sessions and their live runtime state. */
3601
3639
  listBrowserSessions(options?: ListBrowserSessionsOptions): Promise<ListBrowserSessionsResponse>;
3602
- /** List the browser watches of the thread of the calling agent session, newest first: open ones, or all with includeResolved=true. Each shows its publicId and name on the Webhooks & Events page, its state (paused when the person paused it there), why it is suspended, coverage gaps and recent fires. Page excerpts are never listed. */
3640
+ /** List the browser watches of the thread of the calling agent session, newest first: open ones, or all with includeResolved=true. Each shows its publicId and name on the Webhooks & Events page, its state (paused when the person paused it there), why it is suspended, coverage gaps and recent fires, where it delivers (route) and, for one that delivers elsewhere, its approval. With includeIncoming=true, incoming lists the watches set by another thread */
3603
3641
  listBrowserWatches(options?: ListBrowserWatchesOptions): Promise<ListBrowserWatchesResponse>;
3604
3642
  listBrowserWatches(query?: ListBrowserWatchesQuery, options?: Omit<ListBrowserWatchesOptions, 'query'>): Promise<ListBrowserWatchesResponse>;
3605
3643
  /** List the members of the group chat this terminal is answering, as names and handles to tag with @[Name](handle) in send-channel-message. Run it from the channel-linked terminal, so --context is optional. Handles are cu_<id> (the same as sender_handle) or zm_<id> (this chat only). Errors: 400 not a group chat or the channel has no mentions, 404 no linked chat, 409 channel stopped, 503 member list unavailable (try again later). */
@@ -3763,7 +3801,7 @@ export declare class RealtimeXClient {
3763
3801
  /** Send one message directly to an exact live terminal session. Requires local terminal-session or desktop-app authentication. */
3764
3802
  sendTerminalSessionMessage(options?: SendTerminalSessionMessageOptions): Promise<SendTerminalSessionMessageResponse>;
3765
3803
  sendTerminalSessionMessage(sessionId: string, body: SendTerminalSessionMessageBody, options?: Omit<SendTerminalSessionMessageOptions, 'params' | 'body'>): Promise<SendTerminalSessionMessageResponse>;
3766
- /** Watch one RealTimeX Browser tab for a condition and wake the thread of the calling agent session when it occurs, until a deadline. The host observes the tab; waiting costs no turns. kind dom watches rendered elements (CSS selector, optional text, appears or changes); kind url watches the tab address. Name the tab by its id from list-browser-sessions. Setting an existing key replaces that watch. The watch is a Webhooks & Events endpoint the person sees and can pause or remove; it always wakes your own thread. The wake sends nothing by itself and grants no new permission. Pair it with a thread wake at the deadline. Errors: 400 invalid input or selector, 403 not a thread-bound agent session, thread wakes off, or a route field (WATCH_ROUTE_NOT_ALLOWED), 404 session or tab not found, 409 tab ambiguous or not observable, key busy or uncertain, or paused by the person, 429 limits, 503 desktop or browser unavailable. */
3804
+ /** Watch one RealTimeX Browser tab for a condition and wake the thread of the calling agent session when it occurs, until a deadline. The host observes the tab; waiting costs no turns. kind dom watches rendered elements (CSS selector, optional text, appears or changes); kind url watches the tab address. Name the tab by its id from list-browser-sessions. Setting an existing key replaces that watch. The watch is a Webhooks & Events endpoint the person sees and can pause or remove. It wakes your own thread; to deliver to another thread, a workspace */
3767
3805
  setBrowserWatch(options?: SetBrowserWatchOptions): Promise<SetBrowserWatchResponse>;
3768
3806
  setBrowserWatch(body: SetBrowserWatchBody, options?: Omit<SetBrowserWatchOptions, 'body'>): Promise<SetBrowserWatchResponse>;
3769
3807
  /** Set a workspace default agent from the desktop workspace chat settings UI. */
package/index.js CHANGED
@@ -67,6 +67,18 @@ const operations = {
67
67
  "headerParams": [],
68
68
  "hasBody": true
69
69
  },
70
+ "channelAct": {
71
+ "method": "POST",
72
+ "path": "/channel-act/{control}",
73
+ "pathParams": [
74
+ "control"
75
+ ],
76
+ "queryParams": [],
77
+ "headerParams": [
78
+ "x-app-id"
79
+ ],
80
+ "hasBody": true
81
+ },
70
82
  "chatRichContentContainment": {
71
83
  "method": "POST",
72
84
  "path": "/chat-rich-content-containment",
@@ -656,6 +668,7 @@ const operations = {
656
668
  "queryParams": [
657
669
  "key",
658
670
  "includeResolved",
671
+ "includeIncoming",
659
672
  "limit",
660
673
  "cursor"
661
674
  ],
@@ -2182,6 +2195,13 @@ class RealtimeXClient {
2182
2195
  );
2183
2196
  }
2184
2197
 
2198
+ channelAct(...args) {
2199
+ return this.request(
2200
+ "channelAct",
2201
+ normalizeOperationOptions(operations["channelAct"], args)
2202
+ );
2203
+ }
2204
+
2185
2205
  chatRichContentContainment(...args) {
2186
2206
  return this.request(
2187
2207
  "chatRichContentContainment",
@@ -3271,5 +3291,5 @@ module.exports = {
3271
3291
  createRealtimeXClient,
3272
3292
  createRealtimeXWebhookClient,
3273
3293
  operations,
3274
- version: "2.0.52",
3294
+ version: "2.0.54",
3275
3295
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "2.0.52",
3
+ "version": "2.0.54",
4
4
  "description": "RealtimeX runtime SDK package and moderator agent skill assets.",
5
5
  "private": false,
6
6
  "main": "./index.js",
@@ -15,16 +15,16 @@ List, publish, inspect, pause, resume, and revoke RealTimeX workspace artifacts.
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Run RealTimeX automation workflows and guided automation-flow commands, includin
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ List, create, start, stop, delete and show tabs of named RealTimeX browser sessi
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, configure, start, stop, and delete RealTimeX chat channels, approve pair
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -39,6 +39,10 @@ realtimex-pp-cli prepare --agent
39
39
 
40
40
  - `realtimex-pp-cli approve-channel-pairing-code <code>` — Approve one pending channel pairing code by visible 6-digit code or database id.
41
41
 
42
+ **channel-act** — Manage channel act
43
+
44
+ - `realtimex-pp-cli channel-act <control>` — Run one control of the external chat this terminal answers (Zalo Personal first)
45
+
42
46
  **complete-channel-setup** — Manage complete channel setup
43
47
 
44
48
  - `realtimex-pp-cli complete-channel-setup <channelId>` — Complete channel setup
@@ -15,16 +15,16 @@ Run advisory decision-model judgments, list decision batteries, and calibrate ba
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX Delegate scope bindings, policy drafts and compiler jobs, activ
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Configure RealTimeX heartbeat scheduling, agents, active hours, timezone, autopi
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, inspect, configure, start, stop, restart, and delete RealTimeX Local App
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Use this router to select the smallest RealTimeX skill that owns the requested o
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX plugins and agent skills, including configuration, enablement,
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage encrypted Login, Card, Identity, SSH key and Secure note items, tags and
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX terminal agents, terminal sessions, session messages, and idle
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Create, inspect, update, test, and delete RealTimeX public webhook endpoints and
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -15,16 +15,16 @@ Manage RealTimeX workspaces, threads, messages, workspace personality, LLM confi
15
15
 
16
16
  ## CLI setup
17
17
 
18
- This skill uses `realtimex-pp-cli` version 2.0.52. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.54. Before using its commands:
19
19
 
20
20
  ```bash
21
21
  realtimex-pp-cli --version
22
22
  ```
23
23
 
24
- If it is missing or does not report `realtimex-pp-cli 2.0.52`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.54`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.52
27
+ npm install -g @realtimex/pp-cli@2.0.54
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first: