@realtimex/sdk 2.0.49 → 2.0.51

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
@@ -1321,6 +1321,24 @@ export interface ListBrowserWatchesOptions extends RealtimeXRequestOptions {
1321
1321
  body?: ListBrowserWatchesBody;
1322
1322
  }
1323
1323
 
1324
+ export type ListChannelMembersParams = Record<string, never>;
1325
+ export type ListChannelMembersQuery = {
1326
+ query?: string;
1327
+ limit?: number;
1328
+ context?: string;
1329
+ };
1330
+ export type ListChannelMembersHeaders = {
1331
+ "x-app-id"?: string;
1332
+ };
1333
+ export type ListChannelMembersBody = unknown;
1334
+ export type ListChannelMembersResponse = Record<string, unknown>;
1335
+ export interface ListChannelMembersOptions extends RealtimeXRequestOptions {
1336
+ params?: ListChannelMembersParams;
1337
+ query?: ListChannelMembersQuery;
1338
+ headers?: ListChannelMembersHeaders & Record<string, string>;
1339
+ body?: ListChannelMembersBody;
1340
+ }
1341
+
1324
1342
  export type ListChannelsParams = Record<string, never>;
1325
1343
  export type ListChannelsQuery = Record<string, never>;
1326
1344
  export type ListChannelsHeaders = {
@@ -2397,6 +2415,8 @@ export type SendChannelMessageBody = {
2397
2415
  context?: string;
2398
2416
  idempotencyKey?: string;
2399
2417
  replyTo?: string;
2418
+ thread?: string;
2419
+ chat?: string;
2400
2420
  };
2401
2421
  export type SendChannelMessageResponse = Record<string, unknown>;
2402
2422
  export interface SendChannelMessageOptions extends RealtimeXRequestOptions {
@@ -3580,6 +3600,9 @@ export declare class RealtimeXClient {
3580
3600
  /** 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. */
3581
3601
  listBrowserWatches(options?: ListBrowserWatchesOptions): Promise<ListBrowserWatchesResponse>;
3582
3602
  listBrowserWatches(query?: ListBrowserWatchesQuery, options?: Omit<ListBrowserWatchesOptions, 'query'>): Promise<ListBrowserWatchesResponse>;
3603
+ /** 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). */
3604
+ listChannelMembers(options?: ListChannelMembersOptions): Promise<ListChannelMembersResponse>;
3605
+ listChannelMembers(query?: ListChannelMembersQuery, options?: Omit<ListChannelMembersOptions, 'query'>): Promise<ListChannelMembersResponse>;
3583
3606
  /** List configured chat channels. Use returned channel ids with update-channel. */
3584
3607
  listChannels(options?: ListChannelsOptions): Promise<ListChannelsResponse>;
3585
3608
  /** List host and workspace batteries with the fitted status for the active model; no model call. */
@@ -3726,7 +3749,7 @@ export declare class RealtimeXClient {
3726
3749
  /** Send one local file to the external chat that this terminal is answering. Run it from the channel-linked terminal with --file-path <absolute path>: the target chat comes from your terminal session, so --context is optional. Send one file per command. Channels that cannot send files return an error. contentBase64 with fileName remains available when no local path exists. */
3727
3750
  sendChannelFile(options?: SendChannelFileOptions): Promise<SendChannelFileResponse>;
3728
3751
  sendChannelFile(body: SendChannelFileBody, options?: Omit<SendChannelFileOptions, 'body'>): Promise<SendChannelFileResponse>;
3729
- /** Post one message to the external chat (Zalo, Telegram, ...) that this terminal is answering. Run it from the channel-linked terminal: the target chat comes from your terminal session, so --context is optional. Pass multi-line text with a quoted heredoc: --text "$(cat <<"EOF" ... EOF)". Send one message per command. Staying silent is fine when no reply is useful. To reply with a quote, add --reply-to with a ref from <external_user_context> (message.ref or reply_to.ref) or "current" (channels that support it; text messages only). Errors: 400 invalid ref or message that cannot be quoted, 404 no linked chat, 409 channel stopped, 413 text over 8000 characters, 429 rate limited (wait retry_after seconds). */
3752
+ /** Post one message to the external chat (Zalo, Telegram, ...) that this terminal is answering. Run it from the channel-linked terminal: the target chat comes from your terminal session, so --context is optional. Pass multi-line text with a quoted heredoc: --text "$(cat <<"EOF" ... EOF)". Send one message per command. Staying silent is fine when no reply is useful. To reply with a quote, add --reply-to with a ref from <external_user_context> (message.ref or reply_to.ref) or "current" (channels that support it; text messages only). In a group chat, tag members with @[Name] or @[Name](handle) in the text (see list-channel-members); a plain @Name is not a tag. To post owner-approved text word for word to the chat another thread of this workspace serves, add --thread <workspace>/<thread> (and --chat when that thread serves several chats; Zalo Personal and WhatsApp chats for now): RealTimeX posts it as one message, shows it in that thread as an owner post and returns status delivered, failed or delivery_unknown; it needs the workspace setting "Agents in this workspace may post to its channel chats" and is not available from a terminal that answers a chat. Errors: 400 unknown or ambiguous mention (lists candidates; nothing posted), 400 invalid ref or message that cannot be quoted, 403 --thread setting off (CHANNEL_CROSS_THREAD_POST_DISABLED) or another workspace (CHANNEL_CONTEXT_CALLER_MISMATCH), 404 no linked chat, 409 channel stopped or CHAT_AMBIGUOUS (lists candidates), 413 text over 8000 characters or, with --thread, over the channel */
3730
3753
  sendChannelMessage(options?: SendChannelMessageOptions): Promise<SendChannelMessageResponse>;
3731
3754
  sendChannelMessage(body: SendChannelMessageBody, options?: Omit<SendChannelMessageOptions, 'body'>): Promise<SendChannelMessageResponse>;
3732
3755
  /** Add (--emoji) or remove (--remove) your reaction on one message of the external chat this terminal is answering. Name the message with --message: a ref from <external_user_context> (message.ref or reply_to.ref) or "current" for the message of this turn. Run it from the channel-linked terminal, so --context is optional. Errors: 400 invalid ref or unsupported emoji (the error lists the supported ones), 404 no linked chat or no current message, 409 channel stopped, 429 rate limited (wait retry_after seconds). */
package/index.js CHANGED
@@ -662,6 +662,20 @@ const operations = {
662
662
  "headerParams": [],
663
663
  "hasBody": false
664
664
  },
665
+ "listChannelMembers": {
666
+ "method": "GET",
667
+ "path": "/list-channel-members",
668
+ "pathParams": [],
669
+ "queryParams": [
670
+ "query",
671
+ "limit",
672
+ "context"
673
+ ],
674
+ "headerParams": [
675
+ "x-app-id"
676
+ ],
677
+ "hasBody": false
678
+ },
665
679
  "listChannels": {
666
680
  "method": "GET",
667
681
  "path": "/list-channels",
@@ -2553,6 +2567,13 @@ class RealtimeXClient {
2553
2567
  );
2554
2568
  }
2555
2569
 
2570
+ listChannelMembers(...args) {
2571
+ return this.request(
2572
+ "listChannelMembers",
2573
+ normalizeOperationOptions(operations["listChannelMembers"], args)
2574
+ );
2575
+ }
2576
+
2556
2577
  listChannels(...args) {
2557
2578
  return this.request(
2558
2579
  "listChannels",
@@ -3250,5 +3271,5 @@ module.exports = {
3250
3271
  createRealtimeXClient,
3251
3272
  createRealtimeXWebhookClient,
3252
3273
  operations,
3253
- version: "2.0.49",
3274
+ version: "2.0.51",
3254
3275
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "2.0.49",
3
+ "version": "2.0.51",
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first:
@@ -59,6 +59,10 @@ realtimex-pp-cli prepare --agent
59
59
 
60
60
  - `realtimex-pp-cli ignore-channel-pairing-code <code>` — Ignore one pending channel access request by visible 6-digit code or database id.
61
61
 
62
+ **list-channel-members** — Manage list channel members
63
+
64
+ - `realtimex-pp-cli list-channel-members` — List the members of the group chat this terminal is answering, as names and handles to tag with @[Name](handle)
65
+
62
66
  **list-channels** — Manage list channels
63
67
 
64
68
  - `realtimex-pp-cli list-channels` — List configured chat channels. Use returned channel ids with update-channel.
@@ -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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
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.49. Before using its commands:
18
+ This skill uses `realtimex-pp-cli` version 2.0.51. 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.49`, install the pinned version:
24
+ If it is missing or does not report `realtimex-pp-cli 2.0.51`, install the pinned version:
25
25
 
26
26
  ```bash
27
- npm install -g @realtimex/pp-cli@2.0.49
27
+ npm install -g @realtimex/pp-cli@2.0.51
28
28
  ```
29
29
 
30
30
  For requests about the current workspace or thread, resolve context first: