@realtimex/sdk 2.0.34 → 2.0.35

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
@@ -12,6 +12,27 @@ export type ChatRequest = {
12
12
  max_tokens?: number;
13
13
  };
14
14
 
15
+ export type ActivateDelegatePolicyParams = {
16
+ instanceId: string;
17
+ candidateId: string;
18
+ };
19
+ export type ActivateDelegatePolicyQuery = Record<string, never>;
20
+ export type ActivateDelegatePolicyHeaders = Record<string, never>;
21
+ export type ActivateDelegatePolicyBody = {
22
+ expectedDraftRevision: number;
23
+ expectedPolicyVersion: string;
24
+ expectedAuthorityEpoch: number;
25
+ expectedAgentConfigRevision: number;
26
+ confirmInstanceId: string;
27
+ };
28
+ export type ActivateDelegatePolicyResponse = Record<string, unknown>;
29
+ export interface ActivateDelegatePolicyOptions extends RealtimeXRequestOptions {
30
+ params?: ActivateDelegatePolicyParams;
31
+ query?: ActivateDelegatePolicyQuery;
32
+ headers?: ActivateDelegatePolicyHeaders & Record<string, string>;
33
+ body?: ActivateDelegatePolicyBody;
34
+ }
35
+
15
36
  export type ApproveChannelPairingCodeParams = {
16
37
  code: string;
17
38
  };
@@ -28,6 +49,50 @@ export interface ApproveChannelPairingCodeOptions extends RealtimeXRequestOption
28
49
  body?: ApproveChannelPairingCodeBody;
29
50
  }
30
51
 
52
+ export type ArchiveActiveThreadSpaParams = Record<string, never>;
53
+ export type ArchiveActiveThreadSpaQuery = Record<string, never>;
54
+ export type ArchiveActiveThreadSpaHeaders = Record<string, never>;
55
+ export type ArchiveActiveThreadSpaBody = {
56
+ cdpUrl?: string;
57
+ mainAppUrl?: string;
58
+ workspaceSlug?: string;
59
+ settleMs?: number;
60
+ memorySampleMs?: number;
61
+ stageTimeoutMs?: number;
62
+ memoryRatioLimit?: number;
63
+ samplingSource?: string;
64
+ artifactPath?: string;
65
+ screenshotDir?: string;
66
+ updateLogPath?: string;
67
+ recordVideo?: boolean;
68
+ timeoutMs?: number;
69
+ confirmDestructive?: boolean;
70
+ };
71
+ export type ArchiveActiveThreadSpaResponse = Record<string, unknown>;
72
+ export interface ArchiveActiveThreadSpaOptions extends RealtimeXRequestOptions {
73
+ params?: ArchiveActiveThreadSpaParams;
74
+ query?: ArchiveActiveThreadSpaQuery;
75
+ headers?: ArchiveActiveThreadSpaHeaders & Record<string, string>;
76
+ body?: ArchiveActiveThreadSpaBody;
77
+ }
78
+
79
+ export type CancelDelegateCompilerJobParams = {
80
+ instanceId: string;
81
+ jobId: string;
82
+ };
83
+ export type CancelDelegateCompilerJobQuery = Record<string, never>;
84
+ export type CancelDelegateCompilerJobHeaders = Record<string, never>;
85
+ export type CancelDelegateCompilerJobBody = {
86
+ reason?: string;
87
+ };
88
+ export type CancelDelegateCompilerJobResponse = Record<string, unknown>;
89
+ export interface CancelDelegateCompilerJobOptions extends RealtimeXRequestOptions {
90
+ params?: CancelDelegateCompilerJobParams;
91
+ query?: CancelDelegateCompilerJobQuery;
92
+ headers?: CancelDelegateCompilerJobHeaders & Record<string, string>;
93
+ body?: CancelDelegateCompilerJobBody;
94
+ }
95
+
31
96
  export type ChatWithTerminalAgentParams = Record<string, never>;
32
97
  export type ChatWithTerminalAgentQuery = Record<string, never>;
33
98
  export type ChatWithTerminalAgentHeaders = Record<string, never>;
@@ -82,6 +147,41 @@ export interface ClearWorkspaceDefaultAgentOptions extends RealtimeXRequestOptio
82
147
  body?: ClearWorkspaceDefaultAgentBody;
83
148
  }
84
149
 
150
+ export type CompanionHostCapabilityRenameParams = Record<string, never>;
151
+ export type CompanionHostCapabilityRenameQuery = Record<string, never>;
152
+ export type CompanionHostCapabilityRenameHeaders = Record<string, never>;
153
+ export type CompanionHostCapabilityRenameBody = {
154
+ cdpUrl?: string;
155
+ mainAppUrl?: string;
156
+ artifactPath?: string;
157
+ screenshotDir?: string;
158
+ timeoutMs?: number;
159
+ recordVideo?: boolean;
160
+ confirmDestructive?: boolean;
161
+ };
162
+ export type CompanionHostCapabilityRenameResponse = Record<string, unknown>;
163
+ export interface CompanionHostCapabilityRenameOptions extends RealtimeXRequestOptions {
164
+ params?: CompanionHostCapabilityRenameParams;
165
+ query?: CompanionHostCapabilityRenameQuery;
166
+ headers?: CompanionHostCapabilityRenameHeaders & Record<string, string>;
167
+ body?: CompanionHostCapabilityRenameBody;
168
+ }
169
+
170
+ export type CompileDelegatePolicyParams = {
171
+ instanceId: string;
172
+ revision: number;
173
+ };
174
+ export type CompileDelegatePolicyQuery = Record<string, never>;
175
+ export type CompileDelegatePolicyHeaders = Record<string, never>;
176
+ export type CompileDelegatePolicyBody = unknown;
177
+ export type CompileDelegatePolicyResponse = Record<string, unknown>;
178
+ export interface CompileDelegatePolicyOptions extends RealtimeXRequestOptions {
179
+ params?: CompileDelegatePolicyParams;
180
+ query?: CompileDelegatePolicyQuery;
181
+ headers?: CompileDelegatePolicyHeaders & Record<string, string>;
182
+ body?: CompileDelegatePolicyBody;
183
+ }
184
+
85
185
  export type ConfigurePluginParams = {
86
186
  pluginId: string;
87
187
  };
@@ -264,6 +364,26 @@ export interface CreateWorkspaceAgentSkillOptions extends RealtimeXRequestOption
264
364
  body?: CreateWorkspaceAgentSkillBody;
265
365
  }
266
366
 
367
+ export type DelegateRulesAuthoringParams = Record<string, never>;
368
+ export type DelegateRulesAuthoringQuery = Record<string, never>;
369
+ export type DelegateRulesAuthoringHeaders = Record<string, never>;
370
+ export type DelegateRulesAuthoringBody = {
371
+ cdpUrl?: string;
372
+ mainAppUrl?: string;
373
+ workspaceSlug?: string;
374
+ artifactPath?: string;
375
+ screenshotDir?: string;
376
+ timeoutMs?: number;
377
+ confirmDestructive?: boolean;
378
+ };
379
+ export type DelegateRulesAuthoringResponse = Record<string, unknown>;
380
+ export interface DelegateRulesAuthoringOptions extends RealtimeXRequestOptions {
381
+ params?: DelegateRulesAuthoringParams;
382
+ query?: DelegateRulesAuthoringQuery;
383
+ headers?: DelegateRulesAuthoringHeaders & Record<string, string>;
384
+ body?: DelegateRulesAuthoringBody;
385
+ }
386
+
267
387
  export type DeleteBrowserSessionParams = {
268
388
  sessionName: string;
269
389
  };
@@ -395,6 +515,25 @@ export interface DisableWorkspaceAgentSkillOptions extends RealtimeXRequestOptio
395
515
  body?: DisableWorkspaceAgentSkillBody;
396
516
  }
397
517
 
518
+ export type DogfoodCompanionScoutParams = Record<string, never>;
519
+ export type DogfoodCompanionScoutQuery = Record<string, never>;
520
+ export type DogfoodCompanionScoutHeaders = Record<string, never>;
521
+ export type DogfoodCompanionScoutBody = {
522
+ workspaceSlug?: string;
523
+ focusIntent?: string;
524
+ cdpUrl?: string;
525
+ artifactPath?: string;
526
+ timeoutMs?: number;
527
+ confirmDestructive?: boolean;
528
+ };
529
+ export type DogfoodCompanionScoutResponse = Record<string, unknown>;
530
+ export interface DogfoodCompanionScoutOptions extends RealtimeXRequestOptions {
531
+ params?: DogfoodCompanionScoutParams;
532
+ query?: DogfoodCompanionScoutQuery;
533
+ headers?: DogfoodCompanionScoutHeaders & Record<string, string>;
534
+ body?: DogfoodCompanionScoutBody;
535
+ }
536
+
398
537
  export type EnablePluginParams = {
399
538
  pluginId: string;
400
539
  };
@@ -445,6 +584,109 @@ export interface GetArtifactOptions extends RealtimeXRequestOptions {
445
584
  body?: GetArtifactBody;
446
585
  }
447
586
 
587
+ export type GetDelegateParams = {
588
+ instanceId: string;
589
+ };
590
+ export type GetDelegateQuery = Record<string, never>;
591
+ export type GetDelegateHeaders = Record<string, never>;
592
+ export type GetDelegateBody = unknown;
593
+ export type GetDelegateResponse = Record<string, unknown>;
594
+ export interface GetDelegateOptions extends RealtimeXRequestOptions {
595
+ params?: GetDelegateParams;
596
+ query?: GetDelegateQuery;
597
+ headers?: GetDelegateHeaders & Record<string, string>;
598
+ body?: GetDelegateBody;
599
+ }
600
+
601
+ export type GetDelegateCompilerJobParams = {
602
+ instanceId: string;
603
+ jobId: string;
604
+ };
605
+ export type GetDelegateCompilerJobQuery = Record<string, never>;
606
+ export type GetDelegateCompilerJobHeaders = Record<string, never>;
607
+ export type GetDelegateCompilerJobBody = unknown;
608
+ export type GetDelegateCompilerJobResponse = Record<string, unknown>;
609
+ export interface GetDelegateCompilerJobOptions extends RealtimeXRequestOptions {
610
+ params?: GetDelegateCompilerJobParams;
611
+ query?: GetDelegateCompilerJobQuery;
612
+ headers?: GetDelegateCompilerJobHeaders & Record<string, string>;
613
+ body?: GetDelegateCompilerJobBody;
614
+ }
615
+
616
+ export type GetDelegateDecisionParams = {
617
+ instanceId: string;
618
+ decisionId: string;
619
+ };
620
+ export type GetDelegateDecisionQuery = Record<string, never>;
621
+ export type GetDelegateDecisionHeaders = Record<string, never>;
622
+ export type GetDelegateDecisionBody = unknown;
623
+ export type GetDelegateDecisionResponse = Record<string, unknown>;
624
+ export interface GetDelegateDecisionOptions extends RealtimeXRequestOptions {
625
+ params?: GetDelegateDecisionParams;
626
+ query?: GetDelegateDecisionQuery;
627
+ headers?: GetDelegateDecisionHeaders & Record<string, string>;
628
+ body?: GetDelegateDecisionBody;
629
+ }
630
+
631
+ export type GetDelegateExecutionParams = {
632
+ instanceId: string;
633
+ executionId: string;
634
+ };
635
+ export type GetDelegateExecutionQuery = Record<string, never>;
636
+ export type GetDelegateExecutionHeaders = Record<string, never>;
637
+ export type GetDelegateExecutionBody = unknown;
638
+ export type GetDelegateExecutionResponse = Record<string, unknown>;
639
+ export interface GetDelegateExecutionOptions extends RealtimeXRequestOptions {
640
+ params?: GetDelegateExecutionParams;
641
+ query?: GetDelegateExecutionQuery;
642
+ headers?: GetDelegateExecutionHeaders & Record<string, string>;
643
+ body?: GetDelegateExecutionBody;
644
+ }
645
+
646
+ export type GetDelegatePolicyCandidateParams = {
647
+ instanceId: string;
648
+ candidateId: string;
649
+ };
650
+ export type GetDelegatePolicyCandidateQuery = Record<string, never>;
651
+ export type GetDelegatePolicyCandidateHeaders = Record<string, never>;
652
+ export type GetDelegatePolicyCandidateBody = unknown;
653
+ export type GetDelegatePolicyCandidateResponse = Record<string, unknown>;
654
+ export interface GetDelegatePolicyCandidateOptions extends RealtimeXRequestOptions {
655
+ params?: GetDelegatePolicyCandidateParams;
656
+ query?: GetDelegatePolicyCandidateQuery;
657
+ headers?: GetDelegatePolicyCandidateHeaders & Record<string, string>;
658
+ body?: GetDelegatePolicyCandidateBody;
659
+ }
660
+
661
+ export type GetDelegatePolicyDraftParams = {
662
+ instanceId: string;
663
+ };
664
+ export type GetDelegatePolicyDraftQuery = Record<string, never>;
665
+ export type GetDelegatePolicyDraftHeaders = Record<string, never>;
666
+ export type GetDelegatePolicyDraftBody = unknown;
667
+ export type GetDelegatePolicyDraftResponse = Record<string, unknown>;
668
+ export interface GetDelegatePolicyDraftOptions extends RealtimeXRequestOptions {
669
+ params?: GetDelegatePolicyDraftParams;
670
+ query?: GetDelegatePolicyDraftQuery;
671
+ headers?: GetDelegatePolicyDraftHeaders & Record<string, string>;
672
+ body?: GetDelegatePolicyDraftBody;
673
+ }
674
+
675
+ export type GetDelegatePolicyVersionParams = {
676
+ instanceId: string;
677
+ version: number;
678
+ };
679
+ export type GetDelegatePolicyVersionQuery = Record<string, never>;
680
+ export type GetDelegatePolicyVersionHeaders = Record<string, never>;
681
+ export type GetDelegatePolicyVersionBody = unknown;
682
+ export type GetDelegatePolicyVersionResponse = Record<string, unknown>;
683
+ export interface GetDelegatePolicyVersionOptions extends RealtimeXRequestOptions {
684
+ params?: GetDelegatePolicyVersionParams;
685
+ query?: GetDelegatePolicyVersionQuery;
686
+ headers?: GetDelegatePolicyVersionHeaders & Record<string, string>;
687
+ body?: GetDelegatePolicyVersionBody;
688
+ }
689
+
448
690
  export type GetLocalAppParams = {
449
691
  appId: string;
450
692
  };
@@ -665,6 +907,56 @@ export interface ListChannelsOptions extends RealtimeXRequestOptions {
665
907
  body?: ListChannelsBody;
666
908
  }
667
909
 
910
+ export type ListDelegateCompilerJobsParams = {
911
+ instanceId: string;
912
+ };
913
+ export type ListDelegateCompilerJobsQuery = {
914
+ limit?: number;
915
+ };
916
+ export type ListDelegateCompilerJobsHeaders = Record<string, never>;
917
+ export type ListDelegateCompilerJobsBody = unknown;
918
+ export type ListDelegateCompilerJobsResponse = Record<string, unknown>;
919
+ export interface ListDelegateCompilerJobsOptions extends RealtimeXRequestOptions {
920
+ params?: ListDelegateCompilerJobsParams;
921
+ query?: ListDelegateCompilerJobsQuery;
922
+ headers?: ListDelegateCompilerJobsHeaders & Record<string, string>;
923
+ body?: ListDelegateCompilerJobsBody;
924
+ }
925
+
926
+ export type ListDelegateExecutionsParams = {
927
+ instanceId: string;
928
+ };
929
+ export type ListDelegateExecutionsQuery = {
930
+ limit?: number;
931
+ cursor?: string;
932
+ outstanding?: boolean;
933
+ };
934
+ export type ListDelegateExecutionsHeaders = Record<string, never>;
935
+ export type ListDelegateExecutionsBody = unknown;
936
+ export type ListDelegateExecutionsResponse = Record<string, unknown>;
937
+ export interface ListDelegateExecutionsOptions extends RealtimeXRequestOptions {
938
+ params?: ListDelegateExecutionsParams;
939
+ query?: ListDelegateExecutionsQuery;
940
+ headers?: ListDelegateExecutionsHeaders & Record<string, string>;
941
+ body?: ListDelegateExecutionsBody;
942
+ }
943
+
944
+ export type ListDelegatePolicyVersionsParams = {
945
+ instanceId: string;
946
+ };
947
+ export type ListDelegatePolicyVersionsQuery = {
948
+ limit?: number;
949
+ };
950
+ export type ListDelegatePolicyVersionsHeaders = Record<string, never>;
951
+ export type ListDelegatePolicyVersionsBody = unknown;
952
+ export type ListDelegatePolicyVersionsResponse = Record<string, unknown>;
953
+ export interface ListDelegatePolicyVersionsOptions extends RealtimeXRequestOptions {
954
+ params?: ListDelegatePolicyVersionsParams;
955
+ query?: ListDelegatePolicyVersionsQuery;
956
+ headers?: ListDelegatePolicyVersionsHeaders & Record<string, string>;
957
+ body?: ListDelegatePolicyVersionsBody;
958
+ }
959
+
668
960
  export type ListLlmModelsParams = {
669
961
  provider: string;
670
962
  };
@@ -829,6 +1121,63 @@ export interface ListWorkspacesOptions extends RealtimeXRequestOptions {
829
1121
  body?: ListWorkspacesBody;
830
1122
  }
831
1123
 
1124
+ export type LoopBackgroundHandoffOrderE2eParams = Record<string, never>;
1125
+ export type LoopBackgroundHandoffOrderE2eQuery = Record<string, never>;
1126
+ export type LoopBackgroundHandoffOrderE2eHeaders = Record<string, never>;
1127
+ export type LoopBackgroundHandoffOrderE2eBody = {
1128
+ timeoutMs?: number;
1129
+ fixtureLogPath?: string;
1130
+ logPath?: string;
1131
+ recordVideo?: boolean;
1132
+ videoPath?: string;
1133
+ confirmDestructive?: boolean;
1134
+ };
1135
+ export type LoopBackgroundHandoffOrderE2eResponse = Record<string, unknown>;
1136
+ export interface LoopBackgroundHandoffOrderE2eOptions extends RealtimeXRequestOptions {
1137
+ params?: LoopBackgroundHandoffOrderE2eParams;
1138
+ query?: LoopBackgroundHandoffOrderE2eQuery;
1139
+ headers?: LoopBackgroundHandoffOrderE2eHeaders & Record<string, string>;
1140
+ body?: LoopBackgroundHandoffOrderE2eBody;
1141
+ }
1142
+
1143
+ export type LoopColdHandoffE2eParams = Record<string, never>;
1144
+ export type LoopColdHandoffE2eQuery = Record<string, never>;
1145
+ export type LoopColdHandoffE2eHeaders = Record<string, never>;
1146
+ export type LoopColdHandoffE2eBody = {
1147
+ timeoutMs?: number;
1148
+ fixtureLogPath?: string;
1149
+ logPath?: string;
1150
+ recordVideo?: boolean;
1151
+ videoPath?: string;
1152
+ confirmDestructive?: boolean;
1153
+ };
1154
+ export type LoopColdHandoffE2eResponse = Record<string, unknown>;
1155
+ export interface LoopColdHandoffE2eOptions extends RealtimeXRequestOptions {
1156
+ params?: LoopColdHandoffE2eParams;
1157
+ query?: LoopColdHandoffE2eQuery;
1158
+ headers?: LoopColdHandoffE2eHeaders & Record<string, string>;
1159
+ body?: LoopColdHandoffE2eBody;
1160
+ }
1161
+
1162
+ export type LoopLiveHandoffOrderE2eParams = Record<string, never>;
1163
+ export type LoopLiveHandoffOrderE2eQuery = Record<string, never>;
1164
+ export type LoopLiveHandoffOrderE2eHeaders = Record<string, never>;
1165
+ export type LoopLiveHandoffOrderE2eBody = {
1166
+ timeoutMs?: number;
1167
+ fixtureLogPath?: string;
1168
+ logPath?: string;
1169
+ recordVideo?: boolean;
1170
+ videoPath?: string;
1171
+ confirmDestructive?: boolean;
1172
+ };
1173
+ export type LoopLiveHandoffOrderE2eResponse = Record<string, unknown>;
1174
+ export interface LoopLiveHandoffOrderE2eOptions extends RealtimeXRequestOptions {
1175
+ params?: LoopLiveHandoffOrderE2eParams;
1176
+ query?: LoopLiveHandoffOrderE2eQuery;
1177
+ headers?: LoopLiveHandoffOrderE2eHeaders & Record<string, string>;
1178
+ body?: LoopLiveHandoffOrderE2eBody;
1179
+ }
1180
+
832
1181
  export type OpenTerminalSessionParams = Record<string, never>;
833
1182
  export type OpenTerminalSessionQuery = Record<string, never>;
834
1183
  export type OpenTerminalSessionHeaders = {
@@ -936,6 +1285,23 @@ export interface PromoteWorkspaceAgentSkillOptions extends RealtimeXRequestOptio
936
1285
  body?: PromoteWorkspaceAgentSkillBody;
937
1286
  }
938
1287
 
1288
+ export type ProvisionDelegateParams = Record<string, never>;
1289
+ export type ProvisionDelegateQuery = Record<string, never>;
1290
+ export type ProvisionDelegateHeaders = Record<string, never>;
1291
+ export type ProvisionDelegateBody = {
1292
+ scopeKind: "global-topology" | "project-topology" | "workspace-team";
1293
+ scopeId: string;
1294
+ rebindFromInstanceId?: string;
1295
+ confirmInstanceId?: string;
1296
+ };
1297
+ export type ProvisionDelegateResponse = Record<string, unknown>;
1298
+ export interface ProvisionDelegateOptions extends RealtimeXRequestOptions {
1299
+ params?: ProvisionDelegateParams;
1300
+ query?: ProvisionDelegateQuery;
1301
+ headers?: ProvisionDelegateHeaders & Record<string, string>;
1302
+ body?: ProvisionDelegateBody;
1303
+ }
1304
+
939
1305
  export type PublishArtifactParams = {
940
1306
  workspaceSlug: string;
941
1307
  };
@@ -1025,6 +1391,21 @@ export interface RenameWorkspaceOptions extends RealtimeXRequestOptions {
1025
1391
  body?: RenameWorkspaceBody;
1026
1392
  }
1027
1393
 
1394
+ export type ResolveDelegateParams = Record<string, never>;
1395
+ export type ResolveDelegateQuery = {
1396
+ scopeKind: "global-topology" | "project-topology" | "workspace-team";
1397
+ scopeId: string;
1398
+ };
1399
+ export type ResolveDelegateHeaders = Record<string, never>;
1400
+ export type ResolveDelegateBody = unknown;
1401
+ export type ResolveDelegateResponse = Record<string, unknown>;
1402
+ export interface ResolveDelegateOptions extends RealtimeXRequestOptions {
1403
+ params?: ResolveDelegateParams;
1404
+ query?: ResolveDelegateQuery;
1405
+ headers?: ResolveDelegateHeaders & Record<string, string>;
1406
+ body?: ResolveDelegateBody;
1407
+ }
1408
+
1028
1409
  export type RespondTerminalIdlePromptParams = {
1029
1410
  sessionId: string;
1030
1411
  };
@@ -1033,7 +1414,7 @@ export type RespondTerminalIdlePromptHeaders = {
1033
1414
  "x-app-id"?: string;
1034
1415
  };
1035
1416
  export type RespondTerminalIdlePromptBody = {
1036
- responseAction: "confirm-selected-option" | "confirm-persistent-workspace-trust" | "cancel-prompt";
1417
+ responseAction: "confirm-selected-option" | "confirm-persistent-workspace-trust" | "select-claude-workspace-trust" | "cancel-prompt";
1037
1418
  expectedEventSeq: number;
1038
1419
  dispatchKey: string;
1039
1420
  };
@@ -1075,6 +1456,22 @@ export interface ResumeArtifactOptions extends RealtimeXRequestOptions {
1075
1456
  body?: ResumeArtifactBody;
1076
1457
  }
1077
1458
 
1459
+ export type ResumeDelegateParams = {
1460
+ instanceId: string;
1461
+ };
1462
+ export type ResumeDelegateQuery = Record<string, never>;
1463
+ export type ResumeDelegateHeaders = Record<string, never>;
1464
+ export type ResumeDelegateBody = {
1465
+ reason?: string;
1466
+ };
1467
+ export type ResumeDelegateResponse = Record<string, unknown>;
1468
+ export interface ResumeDelegateOptions extends RealtimeXRequestOptions {
1469
+ params?: ResumeDelegateParams;
1470
+ query?: ResumeDelegateQuery;
1471
+ headers?: ResumeDelegateHeaders & Record<string, string>;
1472
+ body?: ResumeDelegateBody;
1473
+ }
1474
+
1078
1475
  export type ResumeLatestTerminalSessionParams = Record<string, never>;
1079
1476
  export type ResumeLatestTerminalSessionQuery = Record<string, never>;
1080
1477
  export type ResumeLatestTerminalSessionHeaders = {
@@ -1113,6 +1510,21 @@ export interface ResumeTerminalSessionOptions extends RealtimeXRequestOptions {
1113
1510
  body?: ResumeTerminalSessionBody;
1114
1511
  }
1115
1512
 
1513
+ export type RetryDelegateCompilerJobParams = {
1514
+ instanceId: string;
1515
+ jobId: string;
1516
+ };
1517
+ export type RetryDelegateCompilerJobQuery = Record<string, never>;
1518
+ export type RetryDelegateCompilerJobHeaders = Record<string, never>;
1519
+ export type RetryDelegateCompilerJobBody = unknown;
1520
+ export type RetryDelegateCompilerJobResponse = Record<string, unknown>;
1521
+ export interface RetryDelegateCompilerJobOptions extends RealtimeXRequestOptions {
1522
+ params?: RetryDelegateCompilerJobParams;
1523
+ query?: RetryDelegateCompilerJobQuery;
1524
+ headers?: RetryDelegateCompilerJobHeaders & Record<string, string>;
1525
+ body?: RetryDelegateCompilerJobBody;
1526
+ }
1527
+
1116
1528
  export type RevokeArtifactParams = {
1117
1529
  artifactId: string;
1118
1530
  };
@@ -1129,6 +1541,23 @@ export interface RevokeArtifactOptions extends RealtimeXRequestOptions {
1129
1541
  body?: RevokeArtifactBody;
1130
1542
  }
1131
1543
 
1544
+ export type RevokeDelegateOutstandingParams = {
1545
+ instanceId: string;
1546
+ };
1547
+ export type RevokeDelegateOutstandingQuery = Record<string, never>;
1548
+ export type RevokeDelegateOutstandingHeaders = Record<string, never>;
1549
+ export type RevokeDelegateOutstandingBody = {
1550
+ confirmInstanceId: string;
1551
+ reason?: string;
1552
+ };
1553
+ export type RevokeDelegateOutstandingResponse = Record<string, unknown>;
1554
+ export interface RevokeDelegateOutstandingOptions extends RealtimeXRequestOptions {
1555
+ params?: RevokeDelegateOutstandingParams;
1556
+ query?: RevokeDelegateOutstandingQuery;
1557
+ headers?: RevokeDelegateOutstandingHeaders & Record<string, string>;
1558
+ body?: RevokeDelegateOutstandingBody;
1559
+ }
1560
+
1132
1561
  export type RunAutomationFlowParams = {
1133
1562
  command: string;
1134
1563
  };
@@ -1168,6 +1597,33 @@ export interface RunAutomationWorkflowOptions extends RealtimeXRequestOptions {
1168
1597
  body?: RunAutomationWorkflowBody;
1169
1598
  }
1170
1599
 
1600
+ export type SaveDelegatePolicyDraftParams = {
1601
+ instanceId: string;
1602
+ };
1603
+ export type SaveDelegatePolicyDraftQuery = Record<string, never>;
1604
+ export type SaveDelegatePolicyDraftHeaders = Record<string, never>;
1605
+ export type SaveDelegatePolicyDraftBody = {
1606
+ sources: Array<{
1607
+ id: string;
1608
+ text: string;
1609
+ enabled: boolean;
1610
+ }>;
1611
+ clarificationAnswers?: Array<{
1612
+ candidateId: string;
1613
+ questionId: string;
1614
+ optionId?: string | null;
1615
+ answer?: string | null;
1616
+ }>;
1617
+ expectedRevision: number;
1618
+ };
1619
+ export type SaveDelegatePolicyDraftResponse = Record<string, unknown>;
1620
+ export interface SaveDelegatePolicyDraftOptions extends RealtimeXRequestOptions {
1621
+ params?: SaveDelegatePolicyDraftParams;
1622
+ query?: SaveDelegatePolicyDraftQuery;
1623
+ headers?: SaveDelegatePolicyDraftHeaders & Record<string, string>;
1624
+ body?: SaveDelegatePolicyDraftBody;
1625
+ }
1626
+
1171
1627
  export type SendChannelFileParams = Record<string, never>;
1172
1628
  export type SendChannelFileQuery = Record<string, never>;
1173
1629
  export type SendChannelFileHeaders = {
@@ -1200,11 +1656,23 @@ export type SendMessageHeaders = {
1200
1656
  };
1201
1657
  export type SendMessageBody = {
1202
1658
  message: string;
1659
+ externalSource?: {
1660
+ type: string;
1661
+ origin: string;
1662
+ name?: string;
1663
+ participantName?: string;
1664
+ fromRole?: string;
1665
+ toRole?: string;
1666
+ loopId?: string;
1667
+ };
1203
1668
  attachments?: Array<Record<string, unknown>>;
1204
1669
  webSearchEnabled?: boolean;
1205
1670
  broadcastThreadEvents?: boolean;
1206
1671
  stripAgentPrefixForDelivery?: boolean;
1207
1672
  channelTurnId?: string;
1673
+ admission?: string;
1674
+ dataType?: string;
1675
+ data?: Record<string, unknown>;
1208
1676
  };
1209
1677
  export type SendMessageResponse = Record<string, unknown>;
1210
1678
  export interface SendMessageOptions extends RealtimeXRequestOptions {
@@ -1223,11 +1691,23 @@ export type SendTerminalSessionMessageHeaders = {
1223
1691
  };
1224
1692
  export type SendTerminalSessionMessageBody = {
1225
1693
  message: string;
1694
+ externalSource?: {
1695
+ type: string;
1696
+ origin: string;
1697
+ name?: string;
1698
+ participantName?: string;
1699
+ fromRole?: string;
1700
+ toRole?: string;
1701
+ loopId?: string;
1702
+ };
1226
1703
  attachments?: Array<Record<string, unknown>>;
1227
1704
  webSearchEnabled?: boolean;
1228
1705
  broadcastThreadEvents?: boolean;
1229
1706
  stripAgentPrefixForDelivery?: boolean;
1230
1707
  channelTurnId?: string;
1708
+ admission?: string;
1709
+ dataType?: string;
1710
+ data?: Record<string, unknown>;
1231
1711
  recordInChatHistory?: boolean;
1232
1712
  };
1233
1713
  export type SendTerminalSessionMessageResponse = Record<string, unknown>;
@@ -1498,6 +1978,24 @@ export interface SetWorkspaceDefaultAgentOptions extends RealtimeXRequestOptions
1498
1978
  body?: SetWorkspaceDefaultAgentBody;
1499
1979
  }
1500
1980
 
1981
+ export type SimulateDelegatePolicyParams = {
1982
+ instanceId: string;
1983
+ candidateId: string;
1984
+ };
1985
+ export type SimulateDelegatePolicyQuery = Record<string, never>;
1986
+ export type SimulateDelegatePolicyHeaders = Record<string, never>;
1987
+ export type SimulateDelegatePolicyBody = {
1988
+ scenarioId: string;
1989
+ factOverrides?: Array<Record<string, unknown>>;
1990
+ };
1991
+ export type SimulateDelegatePolicyResponse = Record<string, unknown>;
1992
+ export interface SimulateDelegatePolicyOptions extends RealtimeXRequestOptions {
1993
+ params?: SimulateDelegatePolicyParams;
1994
+ query?: SimulateDelegatePolicyQuery;
1995
+ headers?: SimulateDelegatePolicyHeaders & Record<string, string>;
1996
+ body?: SimulateDelegatePolicyBody;
1997
+ }
1998
+
1501
1999
  export type StartBrowserSessionParams = {
1502
2000
  sessionName: string;
1503
2001
  };
@@ -1610,6 +2108,23 @@ export interface StopThreadTerminalSessionOptions extends RealtimeXRequestOption
1610
2108
  body?: StopThreadTerminalSessionBody;
1611
2109
  }
1612
2110
 
2111
+ export type SuspendDelegateParams = {
2112
+ instanceId: string;
2113
+ };
2114
+ export type SuspendDelegateQuery = Record<string, never>;
2115
+ export type SuspendDelegateHeaders = Record<string, never>;
2116
+ export type SuspendDelegateBody = {
2117
+ confirmInstanceId: string;
2118
+ reason?: string;
2119
+ };
2120
+ export type SuspendDelegateResponse = Record<string, unknown>;
2121
+ export interface SuspendDelegateOptions extends RealtimeXRequestOptions {
2122
+ params?: SuspendDelegateParams;
2123
+ query?: SuspendDelegateQuery;
2124
+ headers?: SuspendDelegateHeaders & Record<string, string>;
2125
+ body?: SuspendDelegateBody;
2126
+ }
2127
+
1613
2128
  export type TerminateTerminalSessionParams = {
1614
2129
  sessionId: string;
1615
2130
  };
@@ -1864,16 +2379,30 @@ export declare class RealtimeXWebhookClient {
1864
2379
  export declare class RealtimeXClient {
1865
2380
  constructor(options?: RealtimeXClientOptions);
1866
2381
  request(operationName: string, options?: RealtimeXRequestOptions): Promise<unknown>;
2382
+ /** Activate a compiled candidate with exact optimistic revisions and explicit instance confirmation. expectedPolicyVersion is none or a positive integer string. */
2383
+ activateDelegatePolicy(options?: ActivateDelegatePolicyOptions): Promise<ActivateDelegatePolicyResponse>;
2384
+ activateDelegatePolicy(params: ActivateDelegatePolicyParams, body: ActivateDelegatePolicyBody, options?: Omit<ActivateDelegatePolicyOptions, 'params' | 'body'>): Promise<ActivateDelegatePolicyResponse>;
1867
2385
  /** Approve one pending channel pairing code by visible 6-digit code or database id. Works for telegram, discord, and zalo channel pairing requests. */
1868
2386
  approveChannelPairingCode(options?: ApproveChannelPairingCodeOptions): Promise<ApproveChannelPairingCodeResponse>;
1869
2387
  approveChannelPairingCode(code: string, options?: Omit<ApproveChannelPairingCodeOptions, 'params'>): Promise<ApproveChannelPairingCodeResponse>;
2388
+ /** Verify archive and global-search thread navigation stay in one Electron renderer without eager TTS workers or runaway renderer RSS. */
2389
+ archiveActiveThreadSpa(options?: ArchiveActiveThreadSpaOptions): Promise<ArchiveActiveThreadSpaResponse>;
2390
+ archiveActiveThreadSpa(body: ArchiveActiveThreadSpaBody, options?: Omit<ArchiveActiveThreadSpaOptions, 'body'>): Promise<ArchiveActiveThreadSpaResponse>;
2391
+ cancelDelegateCompilerJob(options?: CancelDelegateCompilerJobOptions): Promise<CancelDelegateCompilerJobResponse>;
2392
+ cancelDelegateCompilerJob(params: CancelDelegateCompilerJobParams, body: CancelDelegateCompilerJobBody, options?: Omit<CancelDelegateCompilerJobOptions, 'params' | 'body'>): Promise<CancelDelegateCompilerJobResponse>;
1870
2393
  /** Guide a user through sending a chat message to the terminal agent. */
1871
2394
  chatWithTerminalAgent(options?: ChatWithTerminalAgentOptions): Promise<ChatWithTerminalAgentResponse>;
1872
2395
  chatWithTerminalAgent(body: ChatWithTerminalAgentBody, options?: Omit<ChatWithTerminalAgentOptions, 'body'>): Promise<ChatWithTerminalAgentResponse>;
1873
2396
  /** Clear the default CLI agent from a workspace. */
1874
2397
  clearWorkspaceDefaultAgent(options?: ClearWorkspaceDefaultAgentOptions): Promise<ClearWorkspaceDefaultAgentResponse>;
1875
2398
  clearWorkspaceDefaultAgent(workspaceSlug: string, options?: Omit<ClearWorkspaceDefaultAgentOptions, 'params'>): Promise<ClearWorkspaceDefaultAgentResponse>;
1876
- /** Set non-secret configuration values for one installed plugin. Use a plugin id, name, or displayName from list-plugins. Password-type fields are refused and reported back for manual setup in the desktop settings UI. */
2399
+ /** Verify Companion host-capability rename preview, navigation cancellation, confirmation, and terminal-session isolation. */
2400
+ companionHostCapabilityRename(options?: CompanionHostCapabilityRenameOptions): Promise<CompanionHostCapabilityRenameResponse>;
2401
+ companionHostCapabilityRename(body: CompanionHostCapabilityRenameBody, options?: Omit<CompanionHostCapabilityRenameOptions, 'body'>): Promise<CompanionHostCapabilityRenameResponse>;
2402
+ /** Start a strictly idempotent compilation for one immutable draft revision. Poll the returned job instead of treating a timeout as permission to create another attempt. */
2403
+ compileDelegatePolicy(options?: CompileDelegatePolicyOptions): Promise<CompileDelegatePolicyResponse>;
2404
+ compileDelegatePolicy(params: CompileDelegatePolicyParams, options?: Omit<CompileDelegatePolicyOptions, 'params'>): Promise<CompileDelegatePolicyResponse>;
2405
+ /** Set non-secret global configuration values for one installed plugin. Use a plugin id, name, or displayName from list-plugins. Password fields are refused for manual global setup; workspace-owned fields are rejected and must be configured in Workspace Settings → Plugins. */
1877
2406
  configurePlugin(options?: ConfigurePluginOptions): Promise<ConfigurePluginResponse>;
1878
2407
  configurePlugin(pluginId: string, body: ConfigurePluginBody, options?: Omit<ConfigurePluginOptions, 'params' | 'body'>): Promise<ConfigurePluginResponse>;
1879
2408
  /** Create an isolated named RealTimeX Browser session. When url is supplied, start the session and open that URL. */
@@ -1896,6 +2425,9 @@ export declare class RealtimeXClient {
1896
2425
  /** Create a managed agent skill owned by one workspace. Terminal agents should use this instead of writing final skill content into runtime skill directories. */
1897
2426
  createWorkspaceAgentSkill(options?: CreateWorkspaceAgentSkillOptions): Promise<CreateWorkspaceAgentSkillResponse>;
1898
2427
  createWorkspaceAgentSkill(workspaceSlug: string, body: CreateWorkspaceAgentSkillBody, options?: Omit<CreateWorkspaceAgentSkillOptions, 'params' | 'body'>): Promise<CreateWorkspaceAgentSkillResponse>;
2428
+ /** Verify Delegate natural-language authoring, compilation states, simulation, activation CAS, and immutable history. */
2429
+ delegateRulesAuthoring(options?: DelegateRulesAuthoringOptions): Promise<DelegateRulesAuthoringResponse>;
2430
+ delegateRulesAuthoring(body: DelegateRulesAuthoringBody, options?: Omit<DelegateRulesAuthoringOptions, 'body'>): Promise<DelegateRulesAuthoringResponse>;
1899
2431
  /** Delete a stopped named RealTimeX Browser session and its isolated profile. */
1900
2432
  deleteBrowserSession(options?: DeleteBrowserSessionOptions): Promise<DeleteBrowserSessionResponse>;
1901
2433
  deleteBrowserSession(sessionName: string, options?: Omit<DeleteBrowserSessionOptions, 'params'>): Promise<DeleteBrowserSessionResponse>;
@@ -1919,6 +2451,9 @@ export declare class RealtimeXClient {
1919
2451
  /** Disable one agent skill in a workspace. Use a skill id, name, or displayName from list-workspace-agent-skills. */
1920
2452
  disableWorkspaceAgentSkill(options?: DisableWorkspaceAgentSkillOptions): Promise<DisableWorkspaceAgentSkillResponse>;
1921
2453
  disableWorkspaceAgentSkill(params: DisableWorkspaceAgentSkillParams, options?: Omit<DisableWorkspaceAgentSkillOptions, 'params'>): Promise<DisableWorkspaceAgentSkillResponse>;
2454
+ /** Preview and confirm one governed Dogfood Scout capability, prove confirmation idempotency, PM delivery, and requester notice. */
2455
+ dogfoodCompanionScout(options?: DogfoodCompanionScoutOptions): Promise<DogfoodCompanionScoutResponse>;
2456
+ dogfoodCompanionScout(body: DogfoodCompanionScoutBody, options?: Omit<DogfoodCompanionScoutOptions, 'body'>): Promise<DogfoodCompanionScoutResponse>;
1922
2457
  /** Enable one installed plugin globally and load it into runtime. Use a plugin id, name, or displayName from list-plugins. */
1923
2458
  enablePlugin(options?: EnablePluginOptions): Promise<EnablePluginResponse>;
1924
2459
  enablePlugin(pluginId: string, options?: Omit<EnablePluginOptions, 'params'>): Promise<EnablePluginResponse>;
@@ -1928,6 +2463,21 @@ export declare class RealtimeXClient {
1928
2463
  /** Get one public artifact by artifact id. */
1929
2464
  getArtifact(options?: GetArtifactOptions): Promise<GetArtifactResponse>;
1930
2465
  getArtifact(artifactId: string, options?: Omit<GetArtifactOptions, 'params'>): Promise<GetArtifactResponse>;
2466
+ /** Inspect one owned Delegate, including safe health, policy, runtime, recent decision, and execution state. */
2467
+ getDelegate(options?: GetDelegateOptions): Promise<GetDelegateResponse>;
2468
+ getDelegate(instanceId: string, options?: Omit<GetDelegateOptions, 'params'>): Promise<GetDelegateResponse>;
2469
+ getDelegateCompilerJob(options?: GetDelegateCompilerJobOptions): Promise<GetDelegateCompilerJobResponse>;
2470
+ getDelegateCompilerJob(params: GetDelegateCompilerJobParams, options?: Omit<GetDelegateCompilerJobOptions, 'params'>): Promise<GetDelegateCompilerJobResponse>;
2471
+ getDelegateDecision(options?: GetDelegateDecisionOptions): Promise<GetDelegateDecisionResponse>;
2472
+ getDelegateDecision(params: GetDelegateDecisionParams, options?: Omit<GetDelegateDecisionOptions, 'params'>): Promise<GetDelegateDecisionResponse>;
2473
+ getDelegateExecution(options?: GetDelegateExecutionOptions): Promise<GetDelegateExecutionResponse>;
2474
+ getDelegateExecution(params: GetDelegateExecutionParams, options?: Omit<GetDelegateExecutionOptions, 'params'>): Promise<GetDelegateExecutionResponse>;
2475
+ getDelegatePolicyCandidate(options?: GetDelegatePolicyCandidateOptions): Promise<GetDelegatePolicyCandidateResponse>;
2476
+ getDelegatePolicyCandidate(params: GetDelegatePolicyCandidateParams, options?: Omit<GetDelegatePolicyCandidateOptions, 'params'>): Promise<GetDelegatePolicyCandidateResponse>;
2477
+ getDelegatePolicyDraft(options?: GetDelegatePolicyDraftOptions): Promise<GetDelegatePolicyDraftResponse>;
2478
+ getDelegatePolicyDraft(instanceId: string, options?: Omit<GetDelegatePolicyDraftOptions, 'params'>): Promise<GetDelegatePolicyDraftResponse>;
2479
+ getDelegatePolicyVersion(options?: GetDelegatePolicyVersionOptions): Promise<GetDelegatePolicyVersionResponse>;
2480
+ getDelegatePolicyVersion(params: GetDelegatePolicyVersionParams, options?: Omit<GetDelegatePolicyVersionOptions, 'params'>): Promise<GetDelegatePolicyVersionResponse>;
1931
2481
  getLocalApp(options?: GetLocalAppOptions): Promise<GetLocalAppResponse>;
1932
2482
  getLocalApp(appId: string, options?: Omit<GetLocalAppOptions, 'params'>): Promise<GetLocalAppResponse>;
1933
2483
  /** Read bounded recent desktop logs. Each entry is capped at 4 KiB and secret-bearing configuration is omitted. */
@@ -1935,7 +2485,7 @@ export declare class RealtimeXClient {
1935
2485
  getLocalAppLogs(appId: string, options?: Omit<GetLocalAppLogsOptions, 'params'>): Promise<GetLocalAppLogsResponse>;
1936
2486
  getLocalAppStatus(options?: GetLocalAppStatusOptions): Promise<GetLocalAppStatusResponse>;
1937
2487
  getLocalAppStatus(appId: string, options?: Omit<GetLocalAppStatusOptions, 'params'>): Promise<GetLocalAppStatusResponse>;
1938
- /** Get one installed plugin with its config schema (keys, labels, types, defaults) and current non-secret configuration values. Secret (password-type) values are never returned; secretConfigState reports whether each one is set. Use a plugin id, name, or displayName from list-plugins. */
2488
+ /** Get one installed plugin with its global config schema and current non-secret global values. Secret values are never returned; secretConfigState reports whether each global secret is set. Workspace-owned fields are listed separately and must be configured in Workspace Settings → Plugins. */
1939
2489
  getPlugin(options?: GetPluginOptions): Promise<GetPluginResponse>;
1940
2490
  getPlugin(pluginId: string, options?: Omit<GetPluginOptions, 'params'>): Promise<GetPluginResponse>;
1941
2491
  /** Read a bounded, sanitized tail of the PTY output for one exact live terminal runtime session. */
@@ -1953,10 +2503,10 @@ export declare class RealtimeXClient {
1953
2503
  /** Verify the shared Project/global Goal kickoff composer, routing, attachment authorization, retry, preview, and responsive layouts. */
1954
2504
  goalKickoffComposer(options?: GoalKickoffComposerOptions): Promise<GoalKickoffComposerResponse>;
1955
2505
  goalKickoffComposer(body: GoalKickoffComposerBody, options?: Omit<GoalKickoffComposerOptions, 'body'>): Promise<GoalKickoffComposerResponse>;
1956
- /** Install a plugin from a local source directory on the same machine as the server. Pass an absolute path containing realtimex.plugin.json. Pass force=true to replace an already-installed version; its saved configuration (including secrets) is preserved. */
2506
+ /** Install a plugin from a local source directory on the same machine as the server. Pass an absolute path containing realtimex.plugin.json. Pass force=true to replace an already-installed version; its saved configuration (including secrets) is preserved. Workspace-owned setup is listed separately for Workspace Settings → Plugins. */
1957
2507
  installPlugin(options?: InstallPluginOptions): Promise<InstallPluginResponse>;
1958
2508
  installPlugin(body: InstallPluginBody, options?: Omit<InstallPluginOptions, 'body'>): Promise<InstallPluginResponse>;
1959
- /** List published agent skills. Use list-workspace-agent-skills to see enabled/disabled state for one workspace. */
2509
+ /** List available non-candidate agent skills. Use list-workspace-agent-skills to see enabled/disabled state for one workspace. */
1960
2510
  listAgentSkills(options?: ListAgentSkillsOptions): Promise<ListAgentSkillsResponse>;
1961
2511
  /** List public artifacts for one exact workspace slug. Revoked artifacts are hidden unless includeRevoked=true is passed. */
1962
2512
  listArtifacts(options?: ListArtifactsOptions): Promise<ListArtifactsResponse>;
@@ -1965,6 +2515,13 @@ export declare class RealtimeXClient {
1965
2515
  listBrowserSessions(options?: ListBrowserSessionsOptions): Promise<ListBrowserSessionsResponse>;
1966
2516
  /** List configured chat channels. Use returned channel ids with update-channel. */
1967
2517
  listChannels(options?: ListChannelsOptions): Promise<ListChannelsResponse>;
2518
+ listDelegateCompilerJobs(options?: ListDelegateCompilerJobsOptions): Promise<ListDelegateCompilerJobsResponse>;
2519
+ listDelegateCompilerJobs(instanceId: string, options?: Omit<ListDelegateCompilerJobsOptions, 'params'>): Promise<ListDelegateCompilerJobsResponse>;
2520
+ /** List a stable page of safe execution summaries. outstanding=true includes pending, claimed, and unknown executions before applying the limit. */
2521
+ listDelegateExecutions(options?: ListDelegateExecutionsOptions): Promise<ListDelegateExecutionsResponse>;
2522
+ listDelegateExecutions(instanceId: string, options?: Omit<ListDelegateExecutionsOptions, 'params'>): Promise<ListDelegateExecutionsResponse>;
2523
+ listDelegatePolicyVersions(options?: ListDelegatePolicyVersionsOptions): Promise<ListDelegatePolicyVersionsResponse>;
2524
+ listDelegatePolicyVersions(instanceId: string, options?: Omit<ListDelegatePolicyVersionsOptions, 'params'>): Promise<ListDelegatePolicyVersionsResponse>;
1968
2525
  /** List models for one provider id. Use an exact model id from this response when configuring workspace or thread LLM settings. */
1969
2526
  listLlmModels(options?: ListLlmModelsOptions): Promise<ListLlmModelsResponse>;
1970
2527
  listLlmModels(provider: string, options?: Omit<ListLlmModelsOptions, 'params'>): Promise<ListLlmModelsResponse>;
@@ -1975,7 +2532,7 @@ export declare class RealtimeXClient {
1975
2532
  listPlugins(options?: ListPluginsOptions): Promise<ListPluginsResponse>;
1976
2533
  /** List terminal CLI agents that can be used with open-terminal-session. This is the same compact agent catalog returned by prepare.agents. */
1977
2534
  listTerminalAgents(options?: ListTerminalAgentsOptions): Promise<ListTerminalAgentsResponse>;
1978
- /** List terminal runtime sessions known to the desktop app. Optionally filter by workspaceSlug and threadSlug. workspaceSlug is required when threadSlug is provided. */
2535
+ /** List terminal runtime sessions known to the desktop app. Optionally filter by workspaceSlug and threadSlug. workspaceSlug is required when threadSlug is provided. History-inclusive responses expose historyFreshness: current is fully caught up, refreshing serves the last complete publication while rebuilding, and degraded serves that publication after a refresh failure. A never-published or invalidated history scope returns retryable 503. */
1979
2536
  listTerminalSessions(options?: ListTerminalSessionsOptions): Promise<ListTerminalSessionsResponse>;
1980
2537
  listTerminalSessions(query?: ListTerminalSessionsQuery, options?: Omit<ListTerminalSessionsOptions, 'query'>): Promise<ListTerminalSessionsResponse>;
1981
2538
  /** List threads for one exact workspace slug. */
@@ -1986,11 +2543,20 @@ export declare class RealtimeXClient {
1986
2543
  listWebhookDeliveries(query?: ListWebhookDeliveriesQuery, options?: Omit<ListWebhookDeliveriesOptions, 'query'>): Promise<ListWebhookDeliveriesResponse>;
1987
2544
  /** List webhook endpoints visible to the authenticated user. Secrets are never returned. */
1988
2545
  listWebhookEndpoints(options?: ListWebhookEndpointsOptions): Promise<ListWebhookEndpointsResponse>;
1989
- /** List published agent skills with enabled/disabled state for one exact workspace slug. */
2546
+ /** List available non-candidate agent skills with enabled/disabled state for one exact workspace slug. */
1990
2547
  listWorkspaceAgentSkills(options?: ListWorkspaceAgentSkillsOptions): Promise<ListWorkspaceAgentSkillsResponse>;
1991
2548
  listWorkspaceAgentSkills(workspaceSlug: string, options?: Omit<ListWorkspaceAgentSkillsOptions, 'params'>): Promise<ListWorkspaceAgentSkillsResponse>;
1992
2549
  /** List all workspaces visible to the current API caller. Use this before choosing a workspace slug. */
1993
2550
  listWorkspaces(options?: ListWorkspacesOptions): Promise<ListWorkspacesResponse>;
2551
+ /** Verify handoff, reply, and card order after returning to a cached background thread. */
2552
+ loopBackgroundHandoffOrderE2e(options?: LoopBackgroundHandoffOrderE2eOptions): Promise<LoopBackgroundHandoffOrderE2eResponse>;
2553
+ loopBackgroundHandoffOrderE2e(body: LoopBackgroundHandoffOrderE2eBody, options?: Omit<LoopBackgroundHandoffOrderE2eOptions, 'body'>): Promise<LoopBackgroundHandoffOrderE2eResponse>;
2554
+ /** Prove a new Loops role thread cold-launches its workspace default terminal agent exactly once before canonical state advances. */
2555
+ loopColdHandoffE2e(options?: LoopColdHandoffE2eOptions): Promise<LoopColdHandoffE2eResponse>;
2556
+ loopColdHandoffE2e(body: LoopColdHandoffE2eBody, options?: Omit<LoopColdHandoffE2eOptions, 'body'>): Promise<LoopColdHandoffE2eResponse>;
2557
+ /** Prove a live loop handoff stays above its active terminal-session card and card-linked reply. */
2558
+ loopLiveHandoffOrderE2e(options?: LoopLiveHandoffOrderE2eOptions): Promise<LoopLiveHandoffOrderE2eResponse>;
2559
+ loopLiveHandoffOrderE2e(body: LoopLiveHandoffOrderE2eBody, options?: Omit<LoopLiveHandoffOrderE2eOptions, 'body'>): Promise<LoopLiveHandoffOrderE2eResponse>;
1994
2560
  /** Open a new desktop terminal session for one terminal CLI agent. Use list-terminal-agents or prepare.agents to choose agentName/providerId/modelId. workspaceSlug is required when threadSlug is provided. */
1995
2561
  openTerminalSession(options?: OpenTerminalSessionOptions): Promise<OpenTerminalSessionResponse>;
1996
2562
  openTerminalSession(body: OpenTerminalSessionBody, options?: Omit<OpenTerminalSessionOptions, 'body'>): Promise<OpenTerminalSessionResponse>;
@@ -2003,10 +2569,13 @@ export declare class RealtimeXClient {
2003
2569
  /** Promote one workspace-owned agent skill to a global managed skill by copying its files into a new global skill row. */
2004
2570
  promoteWorkspaceAgentSkill(options?: PromoteWorkspaceAgentSkillOptions): Promise<PromoteWorkspaceAgentSkillResponse>;
2005
2571
  promoteWorkspaceAgentSkill(params: PromoteWorkspaceAgentSkillParams, body: PromoteWorkspaceAgentSkillBody, options?: Omit<PromoteWorkspaceAgentSkillOptions, 'params' | 'body'>): Promise<PromoteWorkspaceAgentSkillResponse>;
2572
+ /** Provision and bind the authenticated user as the Delegate for an explicit scope. Rebinding requires the expected existing instance and matching confirmation. */
2573
+ provisionDelegate(options?: ProvisionDelegateOptions): Promise<ProvisionDelegateResponse>;
2574
+ provisionDelegate(body: ProvisionDelegateBody, options?: Omit<ProvisionDelegateOptions, 'body'>): Promise<ProvisionDelegateResponse>;
2006
2575
  /** Publish a browser-viewable file or folder under a workspace artifacts directory. artifactPath is relative to that workspace artifacts directory. */
2007
2576
  publishArtifact(options?: PublishArtifactOptions): Promise<PublishArtifactResponse>;
2008
2577
  publishArtifact(workspaceSlug: string, body: PublishArtifactBody, options?: Omit<PublishArtifactOptions, 'params' | 'body'>): Promise<PublishArtifactResponse>;
2009
- /** 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. After files are reloaded, the running agent must reload its own skill context before relying on updated skill instructions. */
2578
+ /** 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. */
2010
2579
  reloadAgentSkills(options?: ReloadAgentSkillsOptions): Promise<ReloadAgentSkillsResponse>;
2011
2580
  reloadAgentSkills(body: ReloadAgentSkillsBody, options?: Omit<ReloadAgentSkillsOptions, 'body'>): Promise<ReloadAgentSkillsResponse>;
2012
2581
  /** Reload one enabled plugin in runtime. Disabled plugins must be enabled before reload. */
@@ -2018,6 +2587,9 @@ export declare class RealtimeXClient {
2018
2587
  /** Rename one workspace by exact workspace slug. Only the name is changed. */
2019
2588
  renameWorkspace(options?: RenameWorkspaceOptions): Promise<RenameWorkspaceResponse>;
2020
2589
  renameWorkspace(workspaceSlug: string, body: RenameWorkspaceBody, options?: Omit<RenameWorkspaceOptions, 'params' | 'body'>): Promise<RenameWorkspaceResponse>;
2590
+ /** Resolve the authenticated user Delegate for an explicit supported consumer scope without provisioning it. */
2591
+ resolveDelegate(options?: ResolveDelegateOptions): Promise<ResolveDelegateResponse>;
2592
+ resolveDelegate(query?: ResolveDelegateQuery, options?: Omit<ResolveDelegateOptions, 'query'>): Promise<ResolveDelegateResponse>;
2021
2593
  /** Send one constrained response action to an exact idle terminal session only when its PTY event sequence is unchanged. */
2022
2594
  respondTerminalIdlePrompt(options?: RespondTerminalIdlePromptOptions): Promise<RespondTerminalIdlePromptResponse>;
2023
2595
  respondTerminalIdlePrompt(sessionId: string, body: RespondTerminalIdlePromptBody, options?: Omit<RespondTerminalIdlePromptOptions, 'params' | 'body'>): Promise<RespondTerminalIdlePromptResponse>;
@@ -2026,21 +2598,31 @@ export declare class RealtimeXClient {
2026
2598
  /** Resume one paused artifact by artifact id. */
2027
2599
  resumeArtifact(options?: ResumeArtifactOptions): Promise<ResumeArtifactResponse>;
2028
2600
  resumeArtifact(artifactId: string, options?: Omit<ResumeArtifactOptions, 'params'>): Promise<ResumeArtifactResponse>;
2601
+ resumeDelegate(options?: ResumeDelegateOptions): Promise<ResumeDelegateResponse>;
2602
+ resumeDelegate(instanceId: string, body: ResumeDelegateBody, options?: Omit<ResumeDelegateOptions, 'params' | 'body'>): Promise<ResumeDelegateResponse>;
2029
2603
  /** Resume the latest terminal runtime session for one exact thread. workspaceSlug and threadSlug are required in the body or query string. */
2030
2604
  resumeLatestTerminalSession(options?: ResumeLatestTerminalSessionOptions): Promise<ResumeLatestTerminalSessionResponse>;
2031
2605
  resumeLatestTerminalSession(body: ResumeLatestTerminalSessionBody, options?: Omit<ResumeLatestTerminalSessionOptions, 'body'>): Promise<ResumeLatestTerminalSessionResponse>;
2032
2606
  /** Resume a terminal runtime session by attaching a CLI controller. If the live session is closed or missing, historical resume metadata is used when available. */
2033
2607
  resumeTerminalSession(options?: ResumeTerminalSessionOptions): Promise<ResumeTerminalSessionResponse>;
2034
2608
  resumeTerminalSession(sessionId: string, body: ResumeTerminalSessionBody, options?: Omit<ResumeTerminalSessionOptions, 'params' | 'body'>): Promise<ResumeTerminalSessionResponse>;
2609
+ /** Create or return the one durable direct retry of an eligible terminal compiler job. */
2610
+ retryDelegateCompilerJob(options?: RetryDelegateCompilerJobOptions): Promise<RetryDelegateCompilerJobResponse>;
2611
+ retryDelegateCompilerJob(params: RetryDelegateCompilerJobParams, options?: Omit<RetryDelegateCompilerJobOptions, 'params'>): Promise<RetryDelegateCompilerJobResponse>;
2035
2612
  /** Revoke one artifact by artifact id. Revoked artifacts stop serving publicly and are hidden from list-artifacts by default. */
2036
2613
  revokeArtifact(options?: RevokeArtifactOptions): Promise<RevokeArtifactResponse>;
2037
2614
  revokeArtifact(artifactId: string, options?: Omit<RevokeArtifactOptions, 'params'>): Promise<RevokeArtifactResponse>;
2615
+ revokeDelegateOutstanding(options?: RevokeDelegateOutstandingOptions): Promise<RevokeDelegateOutstandingResponse>;
2616
+ revokeDelegateOutstanding(instanceId: string, body: RevokeDelegateOutstandingBody, options?: Omit<RevokeDelegateOutstandingOptions, 'params' | 'body'>): Promise<RevokeDelegateOutstandingResponse>;
2038
2617
  /** Run one app automation flow or scenario exposed via flowMetadata.cli.enabled=true. The command is the flowMetadata.cli.command value. */
2039
2618
  runAutomationFlow(options?: RunAutomationFlowOptions): Promise<RunAutomationFlowResponse>;
2040
2619
  runAutomationFlow(command: string, body: RunAutomationFlowBody, options?: Omit<RunAutomationFlowOptions, 'params' | 'body'>): Promise<RunAutomationFlowResponse>;
2041
2620
  /** Run any app automation flow or scenario exposed via flowMetadata.cli.enabled=true by passing workflowName. */
2042
2621
  runAutomationWorkflow(options?: RunAutomationWorkflowOptions): Promise<RunAutomationWorkflowResponse>;
2043
2622
  runAutomationWorkflow(body: RunAutomationWorkflowBody, options?: Omit<RunAutomationWorkflowOptions, 'body'>): Promise<RunAutomationWorkflowResponse>;
2623
+ /** Save a policy draft with an explicit optimistic revision. Use expectedRevision zero for the first save. */
2624
+ saveDelegatePolicyDraft(options?: SaveDelegatePolicyDraftOptions): Promise<SaveDelegatePolicyDraftResponse>;
2625
+ saveDelegatePolicyDraft(instanceId: string, body: SaveDelegatePolicyDraftBody, options?: Omit<SaveDelegatePolicyDraftOptions, 'params' | 'body'>): Promise<SaveDelegatePolicyDraftResponse>;
2044
2626
  /** Send one local CLI file back to an external channel using an explicit channel delivery context id. Channel-linked terminal agents should pass --context "$REALTIMEX_CHANNEL_DELIVERY_CONTEXT_ID". In desktop/local runtime the CLI should send an absolute filePath; contentBase64 remains available as fallback transport. */
2045
2627
  sendChannelFile(options?: SendChannelFileOptions): Promise<SendChannelFileResponse>;
2046
2628
  sendChannelFile(body: SendChannelFileBody, options?: Omit<SendChannelFileOptions, 'body'>): Promise<SendChannelFileResponse>;
@@ -2085,6 +2667,8 @@ export declare class RealtimeXClient {
2085
2667
  /** Set the default CLI agent for a workspace. Use prepare first to find a valid agent canonical/providerId and optional modelId. */
2086
2668
  setWorkspaceDefaultAgent(options?: SetWorkspaceDefaultAgentOptions): Promise<SetWorkspaceDefaultAgentResponse>;
2087
2669
  setWorkspaceDefaultAgent(workspaceSlug: string, body: SetWorkspaceDefaultAgentBody, options?: Omit<SetWorkspaceDefaultAgentOptions, 'params' | 'body'>): Promise<SetWorkspaceDefaultAgentResponse>;
2670
+ simulateDelegatePolicy(options?: SimulateDelegatePolicyOptions): Promise<SimulateDelegatePolicyResponse>;
2671
+ simulateDelegatePolicy(params: SimulateDelegatePolicyParams, body: SimulateDelegatePolicyBody, options?: Omit<SimulateDelegatePolicyOptions, 'params' | 'body'>): Promise<SimulateDelegatePolicyResponse>;
2088
2672
  /** Start an existing named RealTimeX Browser session, optionally opening an absolute HTTP or HTTPS URL. */
2089
2673
  startBrowserSession(options?: StartBrowserSessionOptions): Promise<StartBrowserSessionResponse>;
2090
2674
  startBrowserSession(sessionName: string, body: StartBrowserSessionBody, options?: Omit<StartBrowserSessionOptions, 'params' | 'body'>): Promise<StartBrowserSessionResponse>;
@@ -2103,6 +2687,8 @@ export declare class RealtimeXClient {
2103
2687
  stopLocalApp(appId: string, body: StopLocalAppBody, options?: Omit<StopLocalAppOptions, 'params' | 'body'>): Promise<StopLocalAppResponse>;
2104
2688
  /** Interrupt the selected or current chat-linked terminal session for one exact thread without closing the underlying terminal session. This uses the same stop dispatcher as channel /stop commands. */
2105
2689
  stopThreadTerminalSession(options?: StopThreadTerminalSessionOptions): Promise<StopThreadTerminalSessionResponse>;
2690
+ suspendDelegate(options?: SuspendDelegateOptions): Promise<SuspendDelegateResponse>;
2691
+ suspendDelegate(instanceId: string, body: SuspendDelegateBody, options?: Omit<SuspendDelegateOptions, 'params' | 'body'>): Promise<SuspendDelegateResponse>;
2106
2692
  /** Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session. */
2107
2693
  terminateTerminalSession(options?: TerminateTerminalSessionOptions): Promise<TerminateTerminalSessionResponse>;
2108
2694
  terminateTerminalSession(sessionId: string, options?: Omit<TerminateTerminalSessionOptions, 'params'>): Promise<TerminateTerminalSessionResponse>;