@realtimex/sdk 2.0.58 → 2.0.60

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
@@ -372,7 +372,7 @@ export type CreateChannelBody = {
372
372
  pauseTag?: string;
373
373
  appId?: string;
374
374
  appSecret?: string;
375
- dmPolicy?: "open" | "pairing" | "disabled";
375
+ dmPolicy?: "open" | "pairing" | "allowlist" | "disabled";
376
376
  thread_id?: number;
377
377
  threadId?: number;
378
378
  agentGuidance?: string;
@@ -1363,6 +1363,42 @@ export interface ListBrowserWatchesOptions extends RealtimeXRequestOptions {
1363
1363
  body?: ListBrowserWatchesBody;
1364
1364
  }
1365
1365
 
1366
+ export type ListChannelFriendsParams = {
1367
+ channelId: string;
1368
+ };
1369
+ export type ListChannelFriendsQuery = {
1370
+ q?: string;
1371
+ };
1372
+ export type ListChannelFriendsHeaders = {
1373
+ "x-app-id"?: string;
1374
+ };
1375
+ export type ListChannelFriendsBody = unknown;
1376
+ export type ListChannelFriendsResponse = Record<string, unknown>;
1377
+ export interface ListChannelFriendsOptions extends RealtimeXRequestOptions {
1378
+ params?: ListChannelFriendsParams;
1379
+ query?: ListChannelFriendsQuery;
1380
+ headers?: ListChannelFriendsHeaders & Record<string, string>;
1381
+ body?: ListChannelFriendsBody;
1382
+ }
1383
+
1384
+ export type ListChannelGroupsParams = {
1385
+ channelId: string;
1386
+ };
1387
+ export type ListChannelGroupsQuery = {
1388
+ q?: string;
1389
+ };
1390
+ export type ListChannelGroupsHeaders = {
1391
+ "x-app-id"?: string;
1392
+ };
1393
+ export type ListChannelGroupsBody = unknown;
1394
+ export type ListChannelGroupsResponse = Record<string, unknown>;
1395
+ export interface ListChannelGroupsOptions extends RealtimeXRequestOptions {
1396
+ params?: ListChannelGroupsParams;
1397
+ query?: ListChannelGroupsQuery;
1398
+ headers?: ListChannelGroupsHeaders & Record<string, string>;
1399
+ body?: ListChannelGroupsBody;
1400
+ }
1401
+
1366
1402
  export type ListChannelMembersParams = Record<string, never>;
1367
1403
  export type ListChannelMembersQuery = {
1368
1404
  query?: string;
@@ -1381,6 +1417,43 @@ export interface ListChannelMembersOptions extends RealtimeXRequestOptions {
1381
1417
  body?: ListChannelMembersBody;
1382
1418
  }
1383
1419
 
1420
+ export type ListChannelPeopleParams = {
1421
+ channelId: string;
1422
+ };
1423
+ export type ListChannelPeopleQuery = {
1424
+ q?: string;
1425
+ scope?: string;
1426
+ limit?: number;
1427
+ offset?: number;
1428
+ };
1429
+ export type ListChannelPeopleHeaders = {
1430
+ "x-app-id"?: string;
1431
+ };
1432
+ export type ListChannelPeopleBody = unknown;
1433
+ export type ListChannelPeopleResponse = Record<string, unknown>;
1434
+ export interface ListChannelPeopleOptions extends RealtimeXRequestOptions {
1435
+ params?: ListChannelPeopleParams;
1436
+ query?: ListChannelPeopleQuery;
1437
+ headers?: ListChannelPeopleHeaders & Record<string, string>;
1438
+ body?: ListChannelPeopleBody;
1439
+ }
1440
+
1441
+ export type ListChannelRequestsParams = {
1442
+ channelId: string;
1443
+ };
1444
+ export type ListChannelRequestsQuery = Record<string, never>;
1445
+ export type ListChannelRequestsHeaders = {
1446
+ "x-app-id"?: string;
1447
+ };
1448
+ export type ListChannelRequestsBody = unknown;
1449
+ export type ListChannelRequestsResponse = Record<string, unknown>;
1450
+ export interface ListChannelRequestsOptions extends RealtimeXRequestOptions {
1451
+ params?: ListChannelRequestsParams;
1452
+ query?: ListChannelRequestsQuery;
1453
+ headers?: ListChannelRequestsHeaders & Record<string, string>;
1454
+ body?: ListChannelRequestsBody;
1455
+ }
1456
+
1384
1457
  export type ListChannelsParams = Record<string, never>;
1385
1458
  export type ListChannelsQuery = Record<string, never>;
1386
1459
  export type ListChannelsHeaders = {
@@ -1804,6 +1877,23 @@ export interface PauseArtifactOptions extends RealtimeXRequestOptions {
1804
1877
  body?: PauseArtifactBody;
1805
1878
  }
1806
1879
 
1880
+ export type PauseChannelPersonParams = {
1881
+ channelId: string;
1882
+ userId: string;
1883
+ };
1884
+ export type PauseChannelPersonQuery = Record<string, never>;
1885
+ export type PauseChannelPersonHeaders = {
1886
+ "x-app-id"?: string;
1887
+ };
1888
+ export type PauseChannelPersonBody = unknown;
1889
+ export type PauseChannelPersonResponse = Record<string, unknown>;
1890
+ export interface PauseChannelPersonOptions extends RealtimeXRequestOptions {
1891
+ params?: PauseChannelPersonParams;
1892
+ query?: PauseChannelPersonQuery;
1893
+ headers?: PauseChannelPersonHeaders & Record<string, string>;
1894
+ body?: PauseChannelPersonBody;
1895
+ }
1896
+
1807
1897
  export type PeerConnectionFixtureParams = Record<string, never>;
1808
1898
  export type PeerConnectionFixtureQuery = Record<string, never>;
1809
1899
  export type PeerConnectionFixtureHeaders = Record<string, never>;
@@ -1909,22 +1999,6 @@ export interface PostCliDelegateSubmissionsLookupOptions extends RealtimeXReques
1909
1999
  body?: PostCliDelegateSubmissionsLookupBody;
1910
2000
  }
1911
2001
 
1912
- export type PostCliReplaceChannelTokenChannelIdParams = {
1913
- channelId: string;
1914
- };
1915
- export type PostCliReplaceChannelTokenChannelIdQuery = Record<string, never>;
1916
- export type PostCliReplaceChannelTokenChannelIdHeaders = {
1917
- "x-app-id"?: string;
1918
- };
1919
- export type PostCliReplaceChannelTokenChannelIdBody = unknown;
1920
- export type PostCliReplaceChannelTokenChannelIdResponse = Record<string, unknown>;
1921
- export interface PostCliReplaceChannelTokenChannelIdOptions extends RealtimeXRequestOptions {
1922
- params?: PostCliReplaceChannelTokenChannelIdParams;
1923
- query?: PostCliReplaceChannelTokenChannelIdQuery;
1924
- headers?: PostCliReplaceChannelTokenChannelIdHeaders & Record<string, string>;
1925
- body?: PostCliReplaceChannelTokenChannelIdBody;
1926
- }
1927
-
1928
2002
  export type PostV1DelegatesMandateAuthoringParams = Record<string, never>;
1929
2003
  export type PostV1DelegatesMandateAuthoringQuery = Record<string, never>;
1930
2004
  export type PostV1DelegatesMandateAuthoringHeaders = Record<string, never>;
@@ -2061,6 +2135,22 @@ export interface ReadMemoryOptions extends RealtimeXRequestOptions {
2061
2135
  body?: ReadMemoryBody;
2062
2136
  }
2063
2137
 
2138
+ export type RejectChannelPairingCodeParams = {
2139
+ code: string;
2140
+ };
2141
+ export type RejectChannelPairingCodeQuery = Record<string, never>;
2142
+ export type RejectChannelPairingCodeHeaders = {
2143
+ "x-app-id"?: string;
2144
+ };
2145
+ export type RejectChannelPairingCodeBody = unknown;
2146
+ export type RejectChannelPairingCodeResponse = Record<string, unknown>;
2147
+ export interface RejectChannelPairingCodeOptions extends RealtimeXRequestOptions {
2148
+ params?: RejectChannelPairingCodeParams;
2149
+ query?: RejectChannelPairingCodeQuery;
2150
+ headers?: RejectChannelPairingCodeHeaders & Record<string, string>;
2151
+ body?: RejectChannelPairingCodeBody;
2152
+ }
2153
+
2064
2154
  export type ReloadAgentSkillsParams = Record<string, never>;
2065
2155
  export type ReloadAgentSkillsQuery = Record<string, never>;
2066
2156
  export type ReloadAgentSkillsHeaders = {
@@ -2093,6 +2183,23 @@ export interface ReloadPluginOptions extends RealtimeXRequestOptions {
2093
2183
  body?: ReloadPluginBody;
2094
2184
  }
2095
2185
 
2186
+ export type RemoveChannelPersonParams = {
2187
+ channelId: string;
2188
+ userId: string;
2189
+ };
2190
+ export type RemoveChannelPersonQuery = Record<string, never>;
2191
+ export type RemoveChannelPersonHeaders = {
2192
+ "x-app-id"?: string;
2193
+ };
2194
+ export type RemoveChannelPersonBody = unknown;
2195
+ export type RemoveChannelPersonResponse = Record<string, unknown>;
2196
+ export interface RemoveChannelPersonOptions extends RealtimeXRequestOptions {
2197
+ params?: RemoveChannelPersonParams;
2198
+ query?: RemoveChannelPersonQuery;
2199
+ headers?: RemoveChannelPersonHeaders & Record<string, string>;
2200
+ body?: RemoveChannelPersonBody;
2201
+ }
2202
+
2096
2203
  export type RenameThreadParams = {
2097
2204
  workspaceSlug: string;
2098
2205
  threadSlug: string;
@@ -2130,6 +2237,28 @@ export interface RenameWorkspaceOptions extends RealtimeXRequestOptions {
2130
2237
  body?: RenameWorkspaceBody;
2131
2238
  }
2132
2239
 
2240
+ export type ReplaceChannelTokenParams = {
2241
+ channelId: string;
2242
+ };
2243
+ export type ReplaceChannelTokenQuery = Record<string, never>;
2244
+ export type ReplaceChannelTokenHeaders = {
2245
+ "x-app-id"?: string;
2246
+ };
2247
+ export type ReplaceChannelTokenBody = {
2248
+ botToken?: string;
2249
+ appToken?: string;
2250
+ pageAccessToken?: string;
2251
+ appSecret?: string;
2252
+ config?: Record<string, unknown>;
2253
+ };
2254
+ export type ReplaceChannelTokenResponse = Record<string, unknown>;
2255
+ export interface ReplaceChannelTokenOptions extends RealtimeXRequestOptions {
2256
+ params?: ReplaceChannelTokenParams;
2257
+ query?: ReplaceChannelTokenQuery;
2258
+ headers?: ReplaceChannelTokenHeaders & Record<string, string>;
2259
+ body?: ReplaceChannelTokenBody;
2260
+ }
2261
+
2133
2262
  export type ResendHumanQuestionParams = {
2134
2263
  requestId: string;
2135
2264
  };
@@ -2316,6 +2445,23 @@ export interface ResumeArtifactOptions extends RealtimeXRequestOptions {
2316
2445
  body?: ResumeArtifactBody;
2317
2446
  }
2318
2447
 
2448
+ export type ResumeChannelPersonParams = {
2449
+ channelId: string;
2450
+ userId: string;
2451
+ };
2452
+ export type ResumeChannelPersonQuery = Record<string, never>;
2453
+ export type ResumeChannelPersonHeaders = {
2454
+ "x-app-id"?: string;
2455
+ };
2456
+ export type ResumeChannelPersonBody = unknown;
2457
+ export type ResumeChannelPersonResponse = Record<string, unknown>;
2458
+ export interface ResumeChannelPersonOptions extends RealtimeXRequestOptions {
2459
+ params?: ResumeChannelPersonParams;
2460
+ query?: ResumeChannelPersonQuery;
2461
+ headers?: ResumeChannelPersonHeaders & Record<string, string>;
2462
+ body?: ResumeChannelPersonBody;
2463
+ }
2464
+
2319
2465
  export type ResumeLatestTerminalSessionParams = Record<string, never>;
2320
2466
  export type ResumeLatestTerminalSessionQuery = Record<string, never>;
2321
2467
  export type ResumeLatestTerminalSessionHeaders = {
@@ -2587,6 +2733,60 @@ export interface SetBrowserWatchOptions extends RealtimeXRequestOptions {
2587
2733
  body?: SetBrowserWatchBody;
2588
2734
  }
2589
2735
 
2736
+ export type SetChannelAccessParams = {
2737
+ channelId: string;
2738
+ };
2739
+ export type SetChannelAccessQuery = Record<string, never>;
2740
+ export type SetChannelAccessHeaders = {
2741
+ "x-app-id"?: string;
2742
+ };
2743
+ export type SetChannelAccessBody = {
2744
+ dmPolicy?: "open" | "pairing" | "allowlist" | "disabled";
2745
+ groupPolicy?: "open" | "allowlist" | "disabled";
2746
+ requireMention?: boolean;
2747
+ replyMode?: "mention" | "always" | "agent";
2748
+ addAllowFrom?: Array<string>;
2749
+ removeAllowFrom?: Array<string>;
2750
+ addTrustedMembers?: Array<string>;
2751
+ removeTrustedMembers?: Array<string>;
2752
+ approvedPeople?: "keep" | "pause";
2753
+ selfChatMode?: boolean;
2754
+ };
2755
+ export type SetChannelAccessResponse = Record<string, unknown>;
2756
+ export interface SetChannelAccessOptions extends RealtimeXRequestOptions {
2757
+ params?: SetChannelAccessParams;
2758
+ query?: SetChannelAccessQuery;
2759
+ headers?: SetChannelAccessHeaders & Record<string, string>;
2760
+ body?: SetChannelAccessBody;
2761
+ }
2762
+
2763
+ export type SetChannelChatParams = {
2764
+ channelId: string;
2765
+ };
2766
+ export type SetChannelChatQuery = Record<string, never>;
2767
+ export type SetChannelChatHeaders = {
2768
+ "x-app-id"?: string;
2769
+ };
2770
+ export type SetChannelChatBody = {
2771
+ chatType: "group" | "dm";
2772
+ chatId: string;
2773
+ allow?: boolean;
2774
+ replyMode?: "mention" | "always" | "agent";
2775
+ guidance?: string;
2776
+ clearGuidance?: boolean;
2777
+ picked?: boolean;
2778
+ routeWorkspaceId?: number;
2779
+ routeThreadId?: number;
2780
+ clearRoute?: boolean;
2781
+ };
2782
+ export type SetChannelChatResponse = Record<string, unknown>;
2783
+ export interface SetChannelChatOptions extends RealtimeXRequestOptions {
2784
+ params?: SetChannelChatParams;
2785
+ query?: SetChannelChatQuery;
2786
+ headers?: SetChannelChatHeaders & Record<string, string>;
2787
+ body?: SetChannelChatBody;
2788
+ }
2789
+
2590
2790
  export type SetDefaultWorkspaceAgentParams = Record<string, never>;
2591
2791
  export type SetDefaultWorkspaceAgentQuery = Record<string, never>;
2592
2792
  export type SetDefaultWorkspaceAgentHeaders = Record<string, never>;
@@ -3213,6 +3413,22 @@ export interface TriggerWorkspaceHeartbeatTasksOptions extends RealtimeXRequestO
3213
3413
  body?: TriggerWorkspaceHeartbeatTasksBody;
3214
3414
  }
3215
3415
 
3416
+ export type UnignoreChannelPairingCodeParams = {
3417
+ code: string;
3418
+ };
3419
+ export type UnignoreChannelPairingCodeQuery = Record<string, never>;
3420
+ export type UnignoreChannelPairingCodeHeaders = {
3421
+ "x-app-id"?: string;
3422
+ };
3423
+ export type UnignoreChannelPairingCodeBody = unknown;
3424
+ export type UnignoreChannelPairingCodeResponse = Record<string, unknown>;
3425
+ export interface UnignoreChannelPairingCodeOptions extends RealtimeXRequestOptions {
3426
+ params?: UnignoreChannelPairingCodeParams;
3427
+ query?: UnignoreChannelPairingCodeQuery;
3428
+ headers?: UnignoreChannelPairingCodeHeaders & Record<string, string>;
3429
+ body?: UnignoreChannelPairingCodeBody;
3430
+ }
3431
+
3216
3432
  export type UpdateChannelParams = {
3217
3433
  channelId: string;
3218
3434
  };
@@ -3234,6 +3450,20 @@ export type UpdateChannelBody = {
3234
3450
  maxFileUploadMb?: number;
3235
3451
  ttsEnabled?: boolean;
3236
3452
  tts_enabled?: boolean;
3453
+ dmPolicy?: "open" | "pairing" | "allowlist" | "disabled";
3454
+ workspaceId?: number;
3455
+ agentTurnBudgetPerHour?: number;
3456
+ chatBurst?: number;
3457
+ chatPerMinute?: number;
3458
+ accountPerMinute?: number;
3459
+ humanPacing?: boolean;
3460
+ pacingMinDelayMs?: number;
3461
+ pacingMaxDelayMs?: number;
3462
+ pacingScaleWithLength?: boolean;
3463
+ naturalSplitting?: boolean;
3464
+ enableSlashCommands?: Array<string>;
3465
+ disableSlashCommands?: Array<string>;
3466
+ dismissAccessNotice?: boolean;
3237
3467
  settings?: {
3238
3468
  deliveryMode?: "agent" | "platform";
3239
3469
  ownerMessages?: boolean;
@@ -3248,6 +3478,30 @@ export interface UpdateChannelOptions extends RealtimeXRequestOptions {
3248
3478
  body?: UpdateChannelBody;
3249
3479
  }
3250
3480
 
3481
+ export type UpdateChannelGroupRuleParams = {
3482
+ channelId: string;
3483
+ };
3484
+ export type UpdateChannelGroupRuleQuery = Record<string, never>;
3485
+ export type UpdateChannelGroupRuleHeaders = {
3486
+ "x-app-id"?: string;
3487
+ };
3488
+ export type UpdateChannelGroupRuleBody = {
3489
+ key: string;
3490
+ action: "update" | "remove" | "apply";
3491
+ allow?: boolean;
3492
+ replyMode?: "mention" | "always" | "agent";
3493
+ guidance?: string;
3494
+ clearGuidance?: boolean;
3495
+ targetGroupId?: string;
3496
+ };
3497
+ export type UpdateChannelGroupRuleResponse = Record<string, unknown>;
3498
+ export interface UpdateChannelGroupRuleOptions extends RealtimeXRequestOptions {
3499
+ params?: UpdateChannelGroupRuleParams;
3500
+ query?: UpdateChannelGroupRuleQuery;
3501
+ headers?: UpdateChannelGroupRuleHeaders & Record<string, string>;
3502
+ body?: UpdateChannelGroupRuleBody;
3503
+ }
3504
+
3251
3505
  export type UpdateLocalAppParams = {
3252
3506
  appId: string;
3253
3507
  };
@@ -3659,9 +3913,21 @@ export declare class RealtimeXClient {
3659
3913
  /** 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 */
3660
3914
  listBrowserWatches(options?: ListBrowserWatchesOptions): Promise<ListBrowserWatchesResponse>;
3661
3915
  listBrowserWatches(query?: ListBrowserWatchesQuery, options?: Omit<ListBrowserWatchesOptions, 'query'>): Promise<ListBrowserWatchesResponse>;
3916
+ /** List the friends or contacts of a Zalo Personal or WhatsApp account by name, with the ids to use in set-channel-access --add-allow-from or set-channel-chat --chat-type dm --chat-id. Errors: 400 another channel type (CHANNEL_TYPE_UNSUPPORTED) or the account is not logged in, 404 no such channel. */
3917
+ listChannelFriends(options?: ListChannelFriendsOptions): Promise<ListChannelFriendsResponse>;
3918
+ listChannelFriends(channelId: string, options?: Omit<ListChannelFriendsOptions, 'params'>): Promise<ListChannelFriendsResponse>;
3919
+ /** List the groups of a Zalo Personal or WhatsApp account by name, with the ids to use in set-channel-chat --chat-type group --chat-id. Errors: 400 another channel type (CHANNEL_TYPE_UNSUPPORTED) or the account is not logged in, 404 no such channel. */
3920
+ listChannelGroups(options?: ListChannelGroupsOptions): Promise<ListChannelGroupsResponse>;
3921
+ listChannelGroups(channelId: string, options?: Omit<ListChannelGroupsOptions, 'params'>): Promise<ListChannelGroupsResponse>;
3662
3922
  /** 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). */
3663
3923
  listChannelMembers(options?: ListChannelMembersOptions): Promise<ListChannelMembersResponse>;
3664
3924
  listChannelMembers(query?: ListChannelMembersQuery, options?: Omit<ListChannelMembersOptions, 'query'>): Promise<ListChannelMembersResponse>;
3925
+ /** List the people of one channel: each with an id (for pause-channel-person, resume-channel-person and remove-channel-person), name, platform id, whether they can use the agent (authorized), how they got access (access_source: direct or group), when they were last seen and, on personal accounts, the allowed groups they use. Without filters every person is returned; --q, --scope, --limit or --offset return one page sorted by latest activity. Errors: 404 no such channel, or one in a workspace this caller cannot reach. */
3926
+ listChannelPeople(options?: ListChannelPeopleOptions): Promise<ListChannelPeopleResponse>;
3927
+ listChannelPeople(channelId: string, options?: Omit<ListChannelPeopleOptions, 'params'>): Promise<ListChannelPeopleResponse>;
3928
+ /** List the pending access requests of one channel (codes, with the sender name and when they expire) and the ignored senders. Approve, ignore or reject a request by its code or id. Errors: 404 no such channel, or one in a workspace this caller cannot reach. */
3929
+ listChannelRequests(options?: ListChannelRequestsOptions): Promise<ListChannelRequestsResponse>;
3930
+ listChannelRequests(channelId: string, options?: Omit<ListChannelRequestsOptions, 'params'>): Promise<ListChannelRequestsResponse>;
3665
3931
  /** List configured chat channels. Use returned channel ids with update-channel. */
3666
3932
  listChannels(options?: ListChannelsOptions): Promise<ListChannelsResponse>;
3667
3933
  /** List host and workspace batteries with the fitted status for the active model; no model call. */
@@ -3722,6 +3988,9 @@ export declare class RealtimeXClient {
3722
3988
  /** Pause one published artifact by artifact id. Paused artifacts remain listed but stop serving publicly. */
3723
3989
  pauseArtifact(options?: PauseArtifactOptions): Promise<PauseArtifactResponse>;
3724
3990
  pauseArtifact(artifactId: string, options?: Omit<PauseArtifactOptions, 'params'>): Promise<PauseArtifactResponse>;
3991
+ /** Pause one person of a channel (id from list-channel-people): they stay on the list but can no longer use the agent until resumed. A person already paused is left as is (unchanged: true). Errors: 404 no such channel or person. */
3992
+ pauseChannelPerson(options?: PauseChannelPersonOptions): Promise<PauseChannelPersonResponse>;
3993
+ pauseChannelPerson(params: PauseChannelPersonParams, options?: Omit<PauseChannelPersonOptions, 'params'>): Promise<PauseChannelPersonResponse>;
3725
3994
  /** Put an isolated development runtime into one desktop-connection state for the #2671 thread-reference item. */
3726
3995
  peerConnectionFixture(options?: PeerConnectionFixtureOptions): Promise<PeerConnectionFixtureResponse>;
3727
3996
  peerConnectionFixture(body: PeerConnectionFixtureBody, options?: Omit<PeerConnectionFixtureOptions, 'body'>): Promise<PeerConnectionFixtureResponse>;
@@ -3737,8 +4006,6 @@ export declare class RealtimeXClient {
3737
4006
  postCliDelegateRunsRunIdEvidence(options?: PostCliDelegateRunsRunIdEvidenceOptions): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
3738
4007
  postCliDelegateRunsRunIdEvidence(runId: string, options?: Omit<PostCliDelegateRunsRunIdEvidenceOptions, 'params'>): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
3739
4008
  postCliDelegateSubmissionsLookup(options?: PostCliDelegateSubmissionsLookupOptions): Promise<PostCliDelegateSubmissionsLookupResponse>;
3740
- postCliReplaceChannelTokenChannelId(options?: PostCliReplaceChannelTokenChannelIdOptions): Promise<PostCliReplaceChannelTokenChannelIdResponse>;
3741
- postCliReplaceChannelTokenChannelId(channelId: string, options?: Omit<PostCliReplaceChannelTokenChannelIdOptions, 'params'>): Promise<PostCliReplaceChannelTokenChannelIdResponse>;
3742
4009
  /** Legacy conversational mandate authoring */
3743
4010
  postV1DelegatesMandateAuthoring(options?: PostV1DelegatesMandateAuthoringOptions): Promise<PostV1DelegatesMandateAuthoringResponse>;
3744
4011
  /** Return compact workspace, thread, current workspace/thread, LLM provider, model, and CLI agent context before choosing arguments. Managed RealtimeX terminal authentication supplies the current route automatically; workspaceSlug and threadSlug remain optional compatibility inputs for other callers. */
@@ -3754,18 +4021,27 @@ export declare class RealtimeXClient {
3754
4021
  publishArtifact(workspaceSlug: string, body: PublishArtifactBody, options?: Omit<PublishArtifactOptions, 'params' | 'body'>): Promise<PublishArtifactResponse>;
3755
4022
  readMemory(options?: ReadMemoryOptions): Promise<ReadMemoryResponse>;
3756
4023
  readMemory(query?: ReadMemoryQuery, options?: Omit<ReadMemoryOptions, 'query'>): Promise<ReadMemoryResponse>;
4024
+ /** Reject one pending channel access request by its visible 6-digit code or its id from list-channel-requests. The sender can ask again later; use ignore-channel-pairing-code to stop new requests from them. Errors: 404 no such request in a channel this caller can reach, 409 several pending requests share the code (use the id). */
4025
+ rejectChannelPairingCode(options?: RejectChannelPairingCodeOptions): Promise<RejectChannelPairingCodeResponse>;
4026
+ rejectChannelPairingCode(code: string, options?: Omit<RejectChannelPairingCodeOptions, 'params'>): Promise<RejectChannelPairingCodeResponse>;
3757
4027
  /** Force reload all enabled agent skills into one workspace working directory. Pass workspaceSlug; agents should pass the current RTX_WORKSPACE_SLUG when reloading the current workspace. This updates files, not necessarily the live CLI inventory. In QA, Claude Code 2.1.263 detected additions after startup but retained removed skills, including skills from disabled plugins, until a new session started; changes during the folder-trust prompt could also be missed. Start a new session for an accurate inventory in those cases. Gemini CLI 0.59.0 required /skills reload. Codex and Qwen live refresh was not verified in the QA environment. */
3758
4028
  reloadAgentSkills(options?: ReloadAgentSkillsOptions): Promise<ReloadAgentSkillsResponse>;
3759
4029
  reloadAgentSkills(body: ReloadAgentSkillsBody, options?: Omit<ReloadAgentSkillsOptions, 'body'>): Promise<ReloadAgentSkillsResponse>;
3760
4030
  /** Reload one enabled plugin in runtime. Disabled plugins must be enabled before reload. */
3761
4031
  reloadPlugin(options?: ReloadPluginOptions): Promise<ReloadPluginResponse>;
3762
4032
  reloadPlugin(pluginId: string, options?: Omit<ReloadPluginOptions, 'params'>): Promise<ReloadPluginResponse>;
4033
+ /** Remove one person from a channel (id from list-channel-people), as Settings › Channels › People does: their private chat ends and they must ask again; their group threads are kept. Errors: 404 no such channel or person. */
4034
+ removeChannelPerson(options?: RemoveChannelPersonOptions): Promise<RemoveChannelPersonResponse>;
4035
+ removeChannelPerson(params: RemoveChannelPersonParams, options?: Omit<RemoveChannelPersonOptions, 'params'>): Promise<RemoveChannelPersonResponse>;
3763
4036
  /** Rename one thread by exact workspace slug and exact thread slug. Only the name is changed. */
3764
4037
  renameThread(options?: RenameThreadOptions): Promise<RenameThreadResponse>;
3765
4038
  renameThread(params: RenameThreadParams, body: RenameThreadBody, options?: Omit<RenameThreadOptions, 'params' | 'body'>): Promise<RenameThreadResponse>;
3766
4039
  /** Rename one workspace by exact workspace slug. Only the name is changed. */
3767
4040
  renameWorkspace(options?: RenameWorkspaceOptions): Promise<RenameWorkspaceResponse>;
3768
4041
  renameWorkspace(workspaceSlug: string, body: RenameWorkspaceBody, options?: Omit<RenameWorkspaceOptions, 'params' | 'body'>): Promise<RenameWorkspaceResponse>;
4042
+ /** Replace the credentials of one channel (Telegram, Discord or Zalo bot token; Messenger or Pancake page token and app secret). Write-only: the values are never returned or logged. It waits for the owner on the desktop when run from a terminal answering an external chat. Errors: 400 invalid or rejected token, 404 no such channel, or one in a workspace this caller cannot reach. */
4043
+ replaceChannelToken(options?: ReplaceChannelTokenOptions): Promise<ReplaceChannelTokenResponse>;
4044
+ replaceChannelToken(channelId: string, body: ReplaceChannelTokenBody, options?: Omit<ReplaceChannelTokenOptions, 'params' | 'body'>): Promise<ReplaceChannelTokenResponse>;
3769
4045
  resendHumanQuestion(options?: ResendHumanQuestionOptions): Promise<ResendHumanQuestionResponse>;
3770
4046
  resendHumanQuestion(requestId: string, options?: Omit<ResendHumanQuestionOptions, 'params'>): Promise<ResendHumanQuestionResponse>;
3771
4047
  /** Clear the saved selection and every workspace setting of one plugin in one workspace. This includes secrets set in Workspace Settings. Workspace-activated plugins return to off; others return to the global setting. Requires yes=true. */
@@ -3788,6 +4064,9 @@ export declare class RealtimeXClient {
3788
4064
  /** Resume one paused artifact by artifact id. */
3789
4065
  resumeArtifact(options?: ResumeArtifactOptions): Promise<ResumeArtifactResponse>;
3790
4066
  resumeArtifact(artifactId: string, options?: Omit<ResumeArtifactOptions, 'params'>): Promise<ResumeArtifactResponse>;
4067
+ /** Let one paused person of a channel (id from list-channel-people) use the agent again. This widens access: from a terminal answering an external chat it waits for the owner on the desktop. A person already active is left as is (unchanged: true). Errors: 404 no such channel or person. */
4068
+ resumeChannelPerson(options?: ResumeChannelPersonOptions): Promise<ResumeChannelPersonResponse>;
4069
+ resumeChannelPerson(params: ResumeChannelPersonParams, options?: Omit<ResumeChannelPersonOptions, 'params'>): Promise<ResumeChannelPersonResponse>;
3791
4070
  /** Resume the latest terminal runtime session for one exact thread. workspaceSlug and threadSlug are required in the body or query string. */
3792
4071
  resumeLatestTerminalSession(options?: ResumeLatestTerminalSessionOptions): Promise<ResumeLatestTerminalSessionResponse>;
3793
4072
  resumeLatestTerminalSession(body: ResumeLatestTerminalSessionBody, options?: Omit<ResumeLatestTerminalSessionOptions, 'body'>): Promise<ResumeLatestTerminalSessionResponse>;
@@ -3823,6 +4102,12 @@ export declare class RealtimeXClient {
3823
4102
  /** 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 */
3824
4103
  setBrowserWatch(options?: SetBrowserWatchOptions): Promise<SetBrowserWatchResponse>;
3825
4104
  setBrowserWatch(body: SetBrowserWatchBody, options?: Omit<SetBrowserWatchOptions, 'body'>): Promise<SetBrowserWatchResponse>;
4105
+ /** Set who can use one channel, as Settings › Channels › Who can use it does. Only the fields you pass change. Private chats (dmPolicy): open (anyone), pairing (people I approve; not on Pancake), allowlist (only people I pick) or disabled. On Zalo Personal and WhatsApp also: groups (groupPolicy open, allowlist = only groups I turn on, or disabled), requireMention and replyMode for groups, the picked people (addAllowFrom/removeAllowFrom, ids from list-channel-friends) and the trusted members whose new groups turn on automatically (addTrustedMembers/removeTrustedMembers). Switching to allowlist while people can use the agent privately needs approvedPeople keep (they join the list) or pause. Pancake also takes its picked conversations (addAllowFrom/removeAllowFrom, Pancake conversation ids); anyone else who messages the page is ignored. Other channel types take dmPolicy only. Anything that may widen access (any policy but disabled, adding people or members, mentions not required, replies to every message) waits for the owner on the desktop when run from a terminal answering an external chat. Errors: 400 invalid value or a setting this channel type does not have, 404 no such channel, 409 approvedPeople needed. */
4106
+ setChannelAccess(options?: SetChannelAccessOptions): Promise<SetChannelAccessResponse>;
4107
+ setChannelAccess(channelId: string, body: SetChannelAccessBody, options?: Omit<SetChannelAccessOptions, 'params' | 'body'>): Promise<SetChannelAccessResponse>;
4108
+ /** Change one chat of a Zalo Personal or WhatsApp channel, as the Chats tab does. Name it with chatType (group or dm) and chatId (from list-channel-groups or list-channel-friends). For a group: allow (turn it on or off), replyMode and guidance (or clearGuidance). For a private chat: picked (on or off the list under only people I pick). For either: routeWorkspaceId and routeThreadId send the chat to that workspace or thread; clearRoute sends it back to the channel\'s own. Only the fields you pass change. Turning a group on, picking a person, replies to every message and any route change wait for the owner on the desktop when run from a terminal answering an external chat. Errors: 400 invalid chat or field (CHANNEL_TYPE_UNSUPPORTED for other channel types), 403 a route into or out of a workspace this session cannot reach (ISOLATED_WORKSPACE_CROSSING_REFUSED), 404 no such channel, 409 picked while the channel does not use only people I pick. */
4109
+ setChannelChat(options?: SetChannelChatOptions): Promise<SetChannelChatResponse>;
4110
+ setChannelChat(channelId: string, body: SetChannelChatBody, options?: Omit<SetChannelChatOptions, 'params' | 'body'>): Promise<SetChannelChatResponse>;
3826
4111
  /** Set a workspace default agent from the desktop workspace chat settings UI. */
3827
4112
  setDefaultWorkspaceAgent(options?: SetDefaultWorkspaceAgentOptions): Promise<SetDefaultWorkspaceAgentResponse>;
3828
4113
  setDefaultWorkspaceAgent(body: SetDefaultWorkspaceAgentBody, options?: Omit<SetDefaultWorkspaceAgentOptions, 'body'>): Promise<SetDefaultWorkspaceAgentResponse>;
@@ -3898,9 +4183,15 @@ export declare class RealtimeXClient {
3898
4183
  /** Trigger specified HEARTBEAT.md task names for a workspace immediately. */
3899
4184
  triggerWorkspaceHeartbeatTasks(options?: TriggerWorkspaceHeartbeatTasksOptions): Promise<TriggerWorkspaceHeartbeatTasksResponse>;
3900
4185
  triggerWorkspaceHeartbeatTasks(workspaceSlug: string, body: TriggerWorkspaceHeartbeatTasksBody, options?: Omit<TriggerWorkspaceHeartbeatTasksOptions, 'params' | 'body'>): Promise<TriggerWorkspaceHeartbeatTasksResponse>;
3901
- /** Update one chat channel by exact channel id. Only channel writable fields are changed. */
4186
+ /** Stop ignoring one sender: their ignored access request (by id from list-channel-requests, under ignored) is removed, so they can ask for access again. This widens who can reach the owner: from a terminal answering an external chat it waits for the owner on the desktop. Errors: 404 no such request in a channel this caller can reach. */
4187
+ unignoreChannelPairingCode(options?: UnignoreChannelPairingCodeOptions): Promise<UnignoreChannelPairingCodeResponse>;
4188
+ unignoreChannelPairingCode(code: string, options?: Omit<UnignoreChannelPairingCodeOptions, 'params'>): Promise<UnignoreChannelPairingCodeResponse>;
4189
+ /** Update one chat channel by exact channel id. Only the fields you pass change; every other setting, the token and the account session keep their values. Limits keep the server floors and ceilings: an out-of-range value returns 400 LIMIT_OUT_OF_RANGE with the allowed min and max, and nothing is saved. From a terminal answering an external chat, a change that may widen access or loosen a limit (dmPolicy other than disabled, workspaceId, a rate limit, the turn budget, pacing or splitting off, enabling slash commands, approvalPrompts chat) waits for the owner on the desktop. Errors: 400 invalid value or nothing to update, 403 a move into or out of a client-isolated workspace (desktop owner only), 404 no such channel, or one in a workspace this caller cannot reach, 409 a move while a Take over runs. */
3902
4190
  updateChannel(options?: UpdateChannelOptions): Promise<UpdateChannelResponse>;
3903
4191
  updateChannel(channelId: string, body: UpdateChannelBody, options?: Omit<UpdateChannelOptions, 'params' | 'body'>): Promise<UpdateChannelResponse>;
4192
+ /** Change one group name rule of a Zalo Personal or WhatsApp channel (the rules under get-channel policies.groups whose key is a name pattern, not a group id). action update sets allow, replyMode or guidance (or clearGuidance); remove deletes the rule; apply copies the rule onto one group (targetGroupId) and deletes the rule. Removing or applying a rule, turning it on and replies to every message wait for the owner on the desktop when run from a terminal answering an external chat. Errors: 400 invalid rule (CHANNEL_TYPE_UNSUPPORTED for other channel types), 404 no such channel or rule. */
4193
+ updateChannelGroupRule(options?: UpdateChannelGroupRuleOptions): Promise<UpdateChannelGroupRuleResponse>;
4194
+ updateChannelGroupRule(channelId: string, body: UpdateChannelGroupRuleBody, options?: Omit<UpdateChannelGroupRuleOptions, 'params' | 'body'>): Promise<UpdateChannelGroupRuleResponse>;
3904
4195
  updateLocalApp(options?: UpdateLocalAppOptions): Promise<UpdateLocalAppResponse>;
3905
4196
  updateLocalApp(appId: string, body: UpdateLocalAppBody, options?: Omit<UpdateLocalAppOptions, 'params' | 'body'>): Promise<UpdateLocalAppResponse>;
3906
4197
  updateSecret(options?: UpdateSecretOptions): Promise<UpdateSecretResponse>;