@realtimex/sdk 2.0.35 → 2.0.37

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,27 +12,6 @@ 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
-
36
15
  export type ApproveChannelPairingCodeParams = {
37
16
  code: string;
38
17
  };
@@ -76,21 +55,22 @@ export interface ArchiveActiveThreadSpaOptions extends RealtimeXRequestOptions {
76
55
  body?: ArchiveActiveThreadSpaBody;
77
56
  }
78
57
 
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;
58
+ export type ChatRichContentContainmentParams = Record<string, never>;
59
+ export type ChatRichContentContainmentQuery = Record<string, never>;
60
+ export type ChatRichContentContainmentHeaders = Record<string, never>;
61
+ export type ChatRichContentContainmentBody = {
62
+ cdpUrl?: string;
63
+ artifactPath?: string;
64
+ screenshotDir?: string;
65
+ timeoutMs?: number;
66
+ confirmDestructive?: boolean;
87
67
  };
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;
68
+ export type ChatRichContentContainmentResponse = Record<string, unknown>;
69
+ export interface ChatRichContentContainmentOptions extends RealtimeXRequestOptions {
70
+ params?: ChatRichContentContainmentParams;
71
+ query?: ChatRichContentContainmentQuery;
72
+ headers?: ChatRichContentContainmentHeaders & Record<string, string>;
73
+ body?: ChatRichContentContainmentBody;
94
74
  }
95
75
 
96
76
  export type ChatWithTerminalAgentParams = Record<string, never>;
@@ -167,21 +147,6 @@ export interface CompanionHostCapabilityRenameOptions extends RealtimeXRequestOp
167
147
  body?: CompanionHostCapabilityRenameBody;
168
148
  }
169
149
 
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
-
185
150
  export type ConfigurePluginParams = {
186
151
  pluginId: string;
187
152
  };
@@ -274,6 +239,29 @@ export interface CreateLocalAppOptions extends RealtimeXRequestOptions {
274
239
  body?: CreateLocalAppBody;
275
240
  }
276
241
 
242
+ export type CreateSecretParams = Record<string, never>;
243
+ export type CreateSecretQuery = Record<string, never>;
244
+ export type CreateSecretHeaders = Record<string, never>;
245
+ export type CreateSecretBody = {
246
+ name: string;
247
+ value?: string;
248
+ kind?: "secret" | "login";
249
+ username?: string;
250
+ password?: string;
251
+ loginUrl?: string;
252
+ allowedOrigins?: Array<string>;
253
+ description?: string;
254
+ enabled?: boolean;
255
+ workspaceSlugs?: Array<string> | null;
256
+ };
257
+ export type CreateSecretResponse = Record<string, unknown>;
258
+ export interface CreateSecretOptions extends RealtimeXRequestOptions {
259
+ params?: CreateSecretParams;
260
+ query?: CreateSecretQuery;
261
+ headers?: CreateSecretHeaders & Record<string, string>;
262
+ body?: CreateSecretBody;
263
+ }
264
+
277
265
  export type CreateThreadParams = {
278
266
  workspaceSlug: string;
279
267
  };
@@ -364,24 +352,24 @@ export interface CreateWorkspaceAgentSkillOptions extends RealtimeXRequestOption
364
352
  body?: CreateWorkspaceAgentSkillBody;
365
353
  }
366
354
 
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;
355
+ export type DelegateHumanTaskFixtureParams = Record<string, never>;
356
+ export type DelegateHumanTaskFixtureQuery = Record<string, never>;
357
+ export type DelegateHumanTaskFixtureHeaders = Record<string, never>;
358
+ export type DelegateHumanTaskFixtureBody = {
373
359
  workspaceSlug?: string;
360
+ threadSlug?: string;
361
+ storageUser?: string;
362
+ terminalStatus?: string;
374
363
  artifactPath?: string;
375
- screenshotDir?: string;
376
364
  timeoutMs?: number;
377
365
  confirmDestructive?: boolean;
378
366
  };
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;
367
+ export type DelegateHumanTaskFixtureResponse = Record<string, unknown>;
368
+ export interface DelegateHumanTaskFixtureOptions extends RealtimeXRequestOptions {
369
+ params?: DelegateHumanTaskFixtureParams;
370
+ query?: DelegateHumanTaskFixtureQuery;
371
+ headers?: DelegateHumanTaskFixtureHeaders & Record<string, string>;
372
+ body?: DelegateHumanTaskFixtureBody;
385
373
  }
386
374
 
387
375
  export type DeleteBrowserSessionParams = {
@@ -432,6 +420,20 @@ export interface DeleteLocalAppOptions extends RealtimeXRequestOptions {
432
420
  body?: DeleteLocalAppBody;
433
421
  }
434
422
 
423
+ export type DeleteSecretParams = {
424
+ id: string;
425
+ };
426
+ export type DeleteSecretQuery = Record<string, never>;
427
+ export type DeleteSecretHeaders = Record<string, never>;
428
+ export type DeleteSecretBody = unknown;
429
+ export type DeleteSecretResponse = Record<string, unknown>;
430
+ export interface DeleteSecretOptions extends RealtimeXRequestOptions {
431
+ params?: DeleteSecretParams;
432
+ query?: DeleteSecretQuery;
433
+ headers?: DeleteSecretHeaders & Record<string, string>;
434
+ body?: DeleteSecretBody;
435
+ }
436
+
435
437
  export type DeleteThreadParams = {
436
438
  workspaceSlug: string;
437
439
  threadSlug: string;
@@ -584,107 +586,19 @@ export interface GetArtifactOptions extends RealtimeXRequestOptions {
584
586
  body?: GetArtifactBody;
585
587
  }
586
588
 
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;
589
+ export type GetDelegateMandateParams = Record<string, never>;
590
+ export type GetDelegateMandateQuery = {
591
+ scopeKind: "global" | "project" | "workspace";
592
+ scopeId: string;
593
+ };
594
+ export type GetDelegateMandateHeaders = Record<string, never>;
595
+ export type GetDelegateMandateBody = unknown;
596
+ export type GetDelegateMandateResponse = Record<string, unknown>;
597
+ export interface GetDelegateMandateOptions extends RealtimeXRequestOptions {
598
+ params?: GetDelegateMandateParams;
599
+ query?: GetDelegateMandateQuery;
600
+ headers?: GetDelegateMandateHeaders & Record<string, string>;
601
+ body?: GetDelegateMandateBody;
688
602
  }
689
603
 
690
604
  export type GetLocalAppParams = {
@@ -747,6 +661,20 @@ export interface GetPluginOptions extends RealtimeXRequestOptions {
747
661
  body?: GetPluginBody;
748
662
  }
749
663
 
664
+ export type GetSecretParams = {
665
+ id: string;
666
+ };
667
+ export type GetSecretQuery = Record<string, never>;
668
+ export type GetSecretHeaders = Record<string, never>;
669
+ export type GetSecretBody = unknown;
670
+ export type GetSecretResponse = Record<string, unknown>;
671
+ export interface GetSecretOptions extends RealtimeXRequestOptions {
672
+ params?: GetSecretParams;
673
+ query?: GetSecretQuery;
674
+ headers?: GetSecretHeaders & Record<string, string>;
675
+ body?: GetSecretBody;
676
+ }
677
+
750
678
  export type GetTerminalSessionContextParams = {
751
679
  sessionId: string;
752
680
  };
@@ -907,56 +835,6 @@ export interface ListChannelsOptions extends RealtimeXRequestOptions {
907
835
  body?: ListChannelsBody;
908
836
  }
909
837
 
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
-
960
838
  export type ListLlmModelsParams = {
961
839
  provider: string;
962
840
  };
@@ -1013,6 +891,39 @@ export interface ListPluginsOptions extends RealtimeXRequestOptions {
1013
891
  body?: ListPluginsBody;
1014
892
  }
1015
893
 
894
+ export type ListSecretsParams = Record<string, never>;
895
+ export type ListSecretsQuery = Record<string, never>;
896
+ export type ListSecretsHeaders = Record<string, never>;
897
+ export type ListSecretsBody = unknown;
898
+ export type ListSecretsResponse = Record<string, unknown>;
899
+ export interface ListSecretsOptions extends RealtimeXRequestOptions {
900
+ params?: ListSecretsParams;
901
+ query?: ListSecretsQuery;
902
+ headers?: ListSecretsHeaders & Record<string, string>;
903
+ body?: ListSecretsBody;
904
+ }
905
+
906
+ export type ListSecretUsageParams = {
907
+ id: string;
908
+ };
909
+ export type ListSecretUsageQuery = {
910
+ page?: number;
911
+ pageSize?: number;
912
+ workspaceSlug?: string;
913
+ threadSlug?: string;
914
+ sessionId?: string;
915
+ executable?: string;
916
+ };
917
+ export type ListSecretUsageHeaders = Record<string, never>;
918
+ export type ListSecretUsageBody = unknown;
919
+ export type ListSecretUsageResponse = Record<string, unknown>;
920
+ export interface ListSecretUsageOptions extends RealtimeXRequestOptions {
921
+ params?: ListSecretUsageParams;
922
+ query?: ListSecretUsageQuery;
923
+ headers?: ListSecretUsageHeaders & Record<string, string>;
924
+ body?: ListSecretUsageBody;
925
+ }
926
+
1016
927
  export type ListTerminalAgentsParams = Record<string, never>;
1017
928
  export type ListTerminalAgentsQuery = Record<string, never>;
1018
929
  export type ListTerminalAgentsHeaders = {
@@ -1217,6 +1128,62 @@ export interface PauseArtifactOptions extends RealtimeXRequestOptions {
1217
1128
  body?: PauseArtifactBody;
1218
1129
  }
1219
1130
 
1131
+ export type PostCliDelegateConsultationsConsultationIdReplyParams = {
1132
+ consultationId: string;
1133
+ };
1134
+ export type PostCliDelegateConsultationsConsultationIdReplyQuery = Record<string, never>;
1135
+ export type PostCliDelegateConsultationsConsultationIdReplyHeaders = Record<string, never>;
1136
+ export type PostCliDelegateConsultationsConsultationIdReplyBody = unknown;
1137
+ export type PostCliDelegateConsultationsConsultationIdReplyResponse = Record<string, unknown>;
1138
+ export interface PostCliDelegateConsultationsConsultationIdReplyOptions extends RealtimeXRequestOptions {
1139
+ params?: PostCliDelegateConsultationsConsultationIdReplyParams;
1140
+ query?: PostCliDelegateConsultationsConsultationIdReplyQuery;
1141
+ headers?: PostCliDelegateConsultationsConsultationIdReplyHeaders & Record<string, string>;
1142
+ body?: PostCliDelegateConsultationsConsultationIdReplyBody;
1143
+ }
1144
+
1145
+ export type PostCliDelegateRunsRunIdConsultationsParams = {
1146
+ runId: string;
1147
+ };
1148
+ export type PostCliDelegateRunsRunIdConsultationsQuery = Record<string, never>;
1149
+ export type PostCliDelegateRunsRunIdConsultationsHeaders = Record<string, never>;
1150
+ export type PostCliDelegateRunsRunIdConsultationsBody = unknown;
1151
+ export type PostCliDelegateRunsRunIdConsultationsResponse = Record<string, unknown>;
1152
+ export interface PostCliDelegateRunsRunIdConsultationsOptions extends RealtimeXRequestOptions {
1153
+ params?: PostCliDelegateRunsRunIdConsultationsParams;
1154
+ query?: PostCliDelegateRunsRunIdConsultationsQuery;
1155
+ headers?: PostCliDelegateRunsRunIdConsultationsHeaders & Record<string, string>;
1156
+ body?: PostCliDelegateRunsRunIdConsultationsBody;
1157
+ }
1158
+
1159
+ export type PostCliDelegateRunsRunIdDecisionParams = {
1160
+ runId: string;
1161
+ };
1162
+ export type PostCliDelegateRunsRunIdDecisionQuery = Record<string, never>;
1163
+ export type PostCliDelegateRunsRunIdDecisionHeaders = Record<string, never>;
1164
+ export type PostCliDelegateRunsRunIdDecisionBody = unknown;
1165
+ export type PostCliDelegateRunsRunIdDecisionResponse = Record<string, unknown>;
1166
+ export interface PostCliDelegateRunsRunIdDecisionOptions extends RealtimeXRequestOptions {
1167
+ params?: PostCliDelegateRunsRunIdDecisionParams;
1168
+ query?: PostCliDelegateRunsRunIdDecisionQuery;
1169
+ headers?: PostCliDelegateRunsRunIdDecisionHeaders & Record<string, string>;
1170
+ body?: PostCliDelegateRunsRunIdDecisionBody;
1171
+ }
1172
+
1173
+ export type PostCliDelegateRunsRunIdEvidenceParams = {
1174
+ runId: string;
1175
+ };
1176
+ export type PostCliDelegateRunsRunIdEvidenceQuery = Record<string, never>;
1177
+ export type PostCliDelegateRunsRunIdEvidenceHeaders = Record<string, never>;
1178
+ export type PostCliDelegateRunsRunIdEvidenceBody = unknown;
1179
+ export type PostCliDelegateRunsRunIdEvidenceResponse = Record<string, unknown>;
1180
+ export interface PostCliDelegateRunsRunIdEvidenceOptions extends RealtimeXRequestOptions {
1181
+ params?: PostCliDelegateRunsRunIdEvidenceParams;
1182
+ query?: PostCliDelegateRunsRunIdEvidenceQuery;
1183
+ headers?: PostCliDelegateRunsRunIdEvidenceHeaders & Record<string, string>;
1184
+ body?: PostCliDelegateRunsRunIdEvidenceBody;
1185
+ }
1186
+
1220
1187
  export type PrepareParams = Record<string, never>;
1221
1188
  export type PrepareQuery = {
1222
1189
  workspaceSlug?: string;
@@ -1285,21 +1252,21 @@ export interface PromoteWorkspaceAgentSkillOptions extends RealtimeXRequestOptio
1285
1252
  body?: PromoteWorkspaceAgentSkillBody;
1286
1253
  }
1287
1254
 
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;
1255
+ export type ProposeDelegateMandateParams = {
1256
+ authorityId: string;
1257
+ };
1258
+ export type ProposeDelegateMandateQuery = Record<string, never>;
1259
+ export type ProposeDelegateMandateHeaders = Record<string, never>;
1260
+ export type ProposeDelegateMandateBody = {
1261
+ markdown: string;
1262
+ expectedRevision: number;
1296
1263
  };
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;
1264
+ export type ProposeDelegateMandateResponse = Record<string, unknown>;
1265
+ export interface ProposeDelegateMandateOptions extends RealtimeXRequestOptions {
1266
+ params?: ProposeDelegateMandateParams;
1267
+ query?: ProposeDelegateMandateQuery;
1268
+ headers?: ProposeDelegateMandateHeaders & Record<string, string>;
1269
+ body?: ProposeDelegateMandateBody;
1303
1270
  }
1304
1271
 
1305
1272
  export type PublishArtifactParams = {
@@ -1393,7 +1360,7 @@ export interface RenameWorkspaceOptions extends RealtimeXRequestOptions {
1393
1360
 
1394
1361
  export type ResolveDelegateParams = Record<string, never>;
1395
1362
  export type ResolveDelegateQuery = {
1396
- scopeKind: "global-topology" | "project-topology" | "workspace-team";
1363
+ scopeKind: "global" | "project" | "workspace";
1397
1364
  scopeId: string;
1398
1365
  };
1399
1366
  export type ResolveDelegateHeaders = Record<string, never>;
@@ -1456,22 +1423,6 @@ export interface ResumeArtifactOptions extends RealtimeXRequestOptions {
1456
1423
  body?: ResumeArtifactBody;
1457
1424
  }
1458
1425
 
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
-
1475
1426
  export type ResumeLatestTerminalSessionParams = Record<string, never>;
1476
1427
  export type ResumeLatestTerminalSessionQuery = Record<string, never>;
1477
1428
  export type ResumeLatestTerminalSessionHeaders = {
@@ -1510,21 +1461,6 @@ export interface ResumeTerminalSessionOptions extends RealtimeXRequestOptions {
1510
1461
  body?: ResumeTerminalSessionBody;
1511
1462
  }
1512
1463
 
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
-
1528
1464
  export type RevokeArtifactParams = {
1529
1465
  artifactId: string;
1530
1466
  };
@@ -1541,23 +1477,6 @@ export interface RevokeArtifactOptions extends RealtimeXRequestOptions {
1541
1477
  body?: RevokeArtifactBody;
1542
1478
  }
1543
1479
 
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
-
1561
1480
  export type RunAutomationFlowParams = {
1562
1481
  command: string;
1563
1482
  };
@@ -1597,33 +1516,6 @@ export interface RunAutomationWorkflowOptions extends RealtimeXRequestOptions {
1597
1516
  body?: RunAutomationWorkflowBody;
1598
1517
  }
1599
1518
 
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
-
1627
1519
  export type SendChannelFileParams = Record<string, never>;
1628
1520
  export type SendChannelFileQuery = Record<string, never>;
1629
1521
  export type SendChannelFileHeaders = {
@@ -1656,15 +1548,6 @@ export type SendMessageHeaders = {
1656
1548
  };
1657
1549
  export type SendMessageBody = {
1658
1550
  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
- };
1668
1551
  attachments?: Array<Record<string, unknown>>;
1669
1552
  webSearchEnabled?: boolean;
1670
1553
  broadcastThreadEvents?: boolean;
@@ -1691,15 +1574,6 @@ export type SendTerminalSessionMessageHeaders = {
1691
1574
  };
1692
1575
  export type SendTerminalSessionMessageBody = {
1693
1576
  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
- };
1703
1577
  attachments?: Array<Record<string, unknown>>;
1704
1578
  webSearchEnabled?: boolean;
1705
1579
  broadcastThreadEvents?: boolean;
@@ -1978,24 +1852,6 @@ export interface SetWorkspaceDefaultAgentOptions extends RealtimeXRequestOptions
1978
1852
  body?: SetWorkspaceDefaultAgentBody;
1979
1853
  }
1980
1854
 
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
-
1999
1855
  export type StartBrowserSessionParams = {
2000
1856
  sessionName: string;
2001
1857
  };
@@ -2108,23 +1964,6 @@ export interface StopThreadTerminalSessionOptions extends RealtimeXRequestOption
2108
1964
  body?: StopThreadTerminalSessionBody;
2109
1965
  }
2110
1966
 
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
-
2128
1967
  export type TerminateTerminalSessionParams = {
2129
1968
  sessionId: string;
2130
1969
  };
@@ -2238,6 +2077,31 @@ export interface UpdateLocalAppOptions extends RealtimeXRequestOptions {
2238
2077
  body?: UpdateLocalAppBody;
2239
2078
  }
2240
2079
 
2080
+ export type UpdateSecretParams = {
2081
+ id: string;
2082
+ };
2083
+ export type UpdateSecretQuery = Record<string, never>;
2084
+ export type UpdateSecretHeaders = Record<string, never>;
2085
+ export type UpdateSecretBody = {
2086
+ name?: string;
2087
+ value?: string;
2088
+ kind?: "secret" | "login";
2089
+ username?: string;
2090
+ password?: string;
2091
+ loginUrl?: string;
2092
+ allowedOrigins?: Array<string>;
2093
+ description?: string;
2094
+ enabled?: boolean;
2095
+ workspaceSlugs?: Array<string> | null;
2096
+ };
2097
+ export type UpdateSecretResponse = Record<string, unknown>;
2098
+ export interface UpdateSecretOptions extends RealtimeXRequestOptions {
2099
+ params?: UpdateSecretParams;
2100
+ query?: UpdateSecretQuery;
2101
+ headers?: UpdateSecretHeaders & Record<string, string>;
2102
+ body?: UpdateSecretBody;
2103
+ }
2104
+
2241
2105
  export type UpdateWebhookEndpointParams = {
2242
2106
  endpointId: string;
2243
2107
  };
@@ -2275,6 +2139,23 @@ export interface UpdateWebhookEndpointOptions extends RealtimeXRequestOptions {
2275
2139
  body?: UpdateWebhookEndpointBody;
2276
2140
  }
2277
2141
 
2142
+ export type WorkspaceAvatarAcceptanceParams = Record<string, never>;
2143
+ export type WorkspaceAvatarAcceptanceQuery = Record<string, never>;
2144
+ export type WorkspaceAvatarAcceptanceHeaders = Record<string, never>;
2145
+ export type WorkspaceAvatarAcceptanceBody = {
2146
+ historyCount?: number;
2147
+ artifactPath?: string;
2148
+ timeoutMs?: number;
2149
+ confirmDestructive?: boolean;
2150
+ };
2151
+ export type WorkspaceAvatarAcceptanceResponse = Record<string, unknown>;
2152
+ export interface WorkspaceAvatarAcceptanceOptions extends RealtimeXRequestOptions {
2153
+ params?: WorkspaceAvatarAcceptanceParams;
2154
+ query?: WorkspaceAvatarAcceptanceQuery;
2155
+ headers?: WorkspaceAvatarAcceptanceHeaders & Record<string, string>;
2156
+ body?: WorkspaceAvatarAcceptanceBody;
2157
+ }
2158
+
2278
2159
  export type WorkspaceShellLayoutParams = Record<string, never>;
2279
2160
  export type WorkspaceShellLayoutQuery = Record<string, never>;
2280
2161
  export type WorkspaceShellLayoutHeaders = Record<string, never>;
@@ -2379,17 +2260,15 @@ export declare class RealtimeXWebhookClient {
2379
2260
  export declare class RealtimeXClient {
2380
2261
  constructor(options?: RealtimeXClientOptions);
2381
2262
  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>;
2385
2263
  /** Approve one pending channel pairing code by visible 6-digit code or database id. Works for telegram, discord, and zalo channel pairing requests. */
2386
2264
  approveChannelPairingCode(options?: ApproveChannelPairingCodeOptions): Promise<ApproveChannelPairingCodeResponse>;
2387
2265
  approveChannelPairingCode(code: string, options?: Omit<ApproveChannelPairingCodeOptions, 'params'>): Promise<ApproveChannelPairingCodeResponse>;
2388
2266
  /** Verify archive and global-search thread navigation stay in one Electron renderer without eager TTS workers or runaway renderer RSS. */
2389
2267
  archiveActiveThreadSpa(options?: ArchiveActiveThreadSpaOptions): Promise<ArchiveActiveThreadSpaResponse>;
2390
2268
  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>;
2269
+ /** Measure chat rich-content containment in the owned Electron renderer. */
2270
+ chatRichContentContainment(options?: ChatRichContentContainmentOptions): Promise<ChatRichContentContainmentResponse>;
2271
+ chatRichContentContainment(body: ChatRichContentContainmentBody, options?: Omit<ChatRichContentContainmentOptions, 'body'>): Promise<ChatRichContentContainmentResponse>;
2393
2272
  /** Guide a user through sending a chat message to the terminal agent. */
2394
2273
  chatWithTerminalAgent(options?: ChatWithTerminalAgentOptions): Promise<ChatWithTerminalAgentResponse>;
2395
2274
  chatWithTerminalAgent(body: ChatWithTerminalAgentBody, options?: Omit<ChatWithTerminalAgentOptions, 'body'>): Promise<ChatWithTerminalAgentResponse>;
@@ -2399,9 +2278,6 @@ export declare class RealtimeXClient {
2399
2278
  /** Verify Companion host-capability rename preview, navigation cancellation, confirmation, and terminal-session isolation. */
2400
2279
  companionHostCapabilityRename(options?: CompanionHostCapabilityRenameOptions): Promise<CompanionHostCapabilityRenameResponse>;
2401
2280
  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
2281
  /** 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. */
2406
2282
  configurePlugin(options?: ConfigurePluginOptions): Promise<ConfigurePluginResponse>;
2407
2283
  configurePlugin(pluginId: string, body: ConfigurePluginBody, options?: Omit<ConfigurePluginOptions, 'params' | 'body'>): Promise<ConfigurePluginResponse>;
@@ -2413,6 +2289,8 @@ export declare class RealtimeXClient {
2413
2289
  createChannel(workspaceSlug: string, body: CreateChannelBody, options?: Omit<CreateChannelOptions, 'params' | 'body'>): Promise<CreateChannelResponse>;
2414
2290
  createLocalApp(options?: CreateLocalAppOptions): Promise<CreateLocalAppResponse>;
2415
2291
  createLocalApp(body: CreateLocalAppBody, options?: Omit<CreateLocalAppOptions, 'body'>): Promise<CreateLocalAppResponse>;
2292
+ createSecret(options?: CreateSecretOptions): Promise<CreateSecretResponse>;
2293
+ createSecret(body: CreateSecretBody, options?: Omit<CreateSecretOptions, 'body'>): Promise<CreateSecretResponse>;
2416
2294
  /** Create a thread in one workspace. The name is optional but recommended. */
2417
2295
  createThread(options?: CreateThreadOptions): Promise<CreateThreadResponse>;
2418
2296
  createThread(workspaceSlug: string, body: CreateThreadBody, options?: Omit<CreateThreadOptions, 'params' | 'body'>): Promise<CreateThreadResponse>;
@@ -2425,9 +2303,9 @@ export declare class RealtimeXClient {
2425
2303
  /** Create a managed agent skill owned by one workspace. Terminal agents should use this instead of writing final skill content into runtime skill directories. */
2426
2304
  createWorkspaceAgentSkill(options?: CreateWorkspaceAgentSkillOptions): Promise<CreateWorkspaceAgentSkillResponse>;
2427
2305
  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>;
2306
+ /** Create and deliver a valid synthetic Delegate Human-authorization task in an isolated development runtime. */
2307
+ delegateHumanTaskFixture(options?: DelegateHumanTaskFixtureOptions): Promise<DelegateHumanTaskFixtureResponse>;
2308
+ delegateHumanTaskFixture(body: DelegateHumanTaskFixtureBody, options?: Omit<DelegateHumanTaskFixtureOptions, 'body'>): Promise<DelegateHumanTaskFixtureResponse>;
2431
2309
  /** Delete a stopped named RealTimeX Browser session and its isolated profile. */
2432
2310
  deleteBrowserSession(options?: DeleteBrowserSessionOptions): Promise<DeleteBrowserSessionResponse>;
2433
2311
  deleteBrowserSession(sessionName: string, options?: Omit<DeleteBrowserSessionOptions, 'params'>): Promise<DeleteBrowserSessionResponse>;
@@ -2436,6 +2314,8 @@ export declare class RealtimeXClient {
2436
2314
  deleteChannel(channelId: string, options?: Omit<DeleteChannelOptions, 'params'>): Promise<DeleteChannelResponse>;
2437
2315
  deleteLocalApp(options?: DeleteLocalAppOptions): Promise<DeleteLocalAppResponse>;
2438
2316
  deleteLocalApp(appId: string, body: DeleteLocalAppBody, options?: Omit<DeleteLocalAppOptions, 'params' | 'body'>): Promise<DeleteLocalAppResponse>;
2317
+ deleteSecret(options?: DeleteSecretOptions): Promise<DeleteSecretResponse>;
2318
+ deleteSecret(id: string, options?: Omit<DeleteSecretOptions, 'params'>): Promise<DeleteSecretResponse>;
2439
2319
  /** Delete one thread by exact workspace slug and exact thread slug. */
2440
2320
  deleteThread(options?: DeleteThreadOptions): Promise<DeleteThreadResponse>;
2441
2321
  deleteThread(params: DeleteThreadParams, options?: Omit<DeleteThreadOptions, 'params'>): Promise<DeleteThreadResponse>;
@@ -2463,21 +2343,8 @@ export declare class RealtimeXClient {
2463
2343
  /** Get one public artifact by artifact id. */
2464
2344
  getArtifact(options?: GetArtifactOptions): Promise<GetArtifactResponse>;
2465
2345
  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>;
2346
+ getDelegateMandate(options?: GetDelegateMandateOptions): Promise<GetDelegateMandateResponse>;
2347
+ getDelegateMandate(query?: GetDelegateMandateQuery, options?: Omit<GetDelegateMandateOptions, 'query'>): Promise<GetDelegateMandateResponse>;
2481
2348
  getLocalApp(options?: GetLocalAppOptions): Promise<GetLocalAppResponse>;
2482
2349
  getLocalApp(appId: string, options?: Omit<GetLocalAppOptions, 'params'>): Promise<GetLocalAppResponse>;
2483
2350
  /** Read bounded recent desktop logs. Each entry is capped at 4 KiB and secret-bearing configuration is omitted. */
@@ -2488,6 +2355,8 @@ export declare class RealtimeXClient {
2488
2355
  /** 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. */
2489
2356
  getPlugin(options?: GetPluginOptions): Promise<GetPluginResponse>;
2490
2357
  getPlugin(pluginId: string, options?: Omit<GetPluginOptions, 'params'>): Promise<GetPluginResponse>;
2358
+ getSecret(options?: GetSecretOptions): Promise<GetSecretResponse>;
2359
+ getSecret(id: string, options?: Omit<GetSecretOptions, 'params'>): Promise<GetSecretResponse>;
2491
2360
  /** Read a bounded, sanitized tail of the PTY output for one exact live terminal runtime session. */
2492
2361
  getTerminalSessionContext(options?: GetTerminalSessionContextOptions): Promise<GetTerminalSessionContextResponse>;
2493
2362
  getTerminalSessionContext(sessionId: string, options?: Omit<GetTerminalSessionContextOptions, 'params'>): Promise<GetTerminalSessionContextResponse>;
@@ -2515,13 +2384,6 @@ export declare class RealtimeXClient {
2515
2384
  listBrowserSessions(options?: ListBrowserSessionsOptions): Promise<ListBrowserSessionsResponse>;
2516
2385
  /** List configured chat channels. Use returned channel ids with update-channel. */
2517
2386
  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>;
2525
2387
  /** List models for one provider id. Use an exact model id from this response when configuring workspace or thread LLM settings. */
2526
2388
  listLlmModels(options?: ListLlmModelsOptions): Promise<ListLlmModelsResponse>;
2527
2389
  listLlmModels(provider: string, options?: Omit<ListLlmModelsOptions, 'params'>): Promise<ListLlmModelsResponse>;
@@ -2530,6 +2392,9 @@ export declare class RealtimeXClient {
2530
2392
  listLocalApps(options?: ListLocalAppsOptions): Promise<ListLocalAppsResponse>;
2531
2393
  /** List installed plugins with enabled state and runtime load status. Use returned ids with enable-plugin, disable-plugin, and reload-plugin. */
2532
2394
  listPlugins(options?: ListPluginsOptions): Promise<ListPluginsResponse>;
2395
+ listSecrets(options?: ListSecretsOptions): Promise<ListSecretsResponse>;
2396
+ listSecretUsage(options?: ListSecretUsageOptions): Promise<ListSecretUsageResponse>;
2397
+ listSecretUsage(id: string, options?: Omit<ListSecretUsageOptions, 'params'>): Promise<ListSecretUsageResponse>;
2533
2398
  /** List terminal CLI agents that can be used with open-terminal-session. This is the same compact agent catalog returned by prepare.agents. */
2534
2399
  listTerminalAgents(options?: ListTerminalAgentsOptions): Promise<ListTerminalAgentsResponse>;
2535
2400
  /** 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. */
@@ -2563,15 +2428,22 @@ export declare class RealtimeXClient {
2563
2428
  /** Pause one published artifact by artifact id. Paused artifacts remain listed but stop serving publicly. */
2564
2429
  pauseArtifact(options?: PauseArtifactOptions): Promise<PauseArtifactResponse>;
2565
2430
  pauseArtifact(artifactId: string, options?: Omit<PauseArtifactOptions, 'params'>): Promise<PauseArtifactResponse>;
2431
+ postCliDelegateConsultationsConsultationIdReply(options?: PostCliDelegateConsultationsConsultationIdReplyOptions): Promise<PostCliDelegateConsultationsConsultationIdReplyResponse>;
2432
+ postCliDelegateConsultationsConsultationIdReply(consultationId: string, options?: Omit<PostCliDelegateConsultationsConsultationIdReplyOptions, 'params'>): Promise<PostCliDelegateConsultationsConsultationIdReplyResponse>;
2433
+ postCliDelegateRunsRunIdConsultations(options?: PostCliDelegateRunsRunIdConsultationsOptions): Promise<PostCliDelegateRunsRunIdConsultationsResponse>;
2434
+ postCliDelegateRunsRunIdConsultations(runId: string, options?: Omit<PostCliDelegateRunsRunIdConsultationsOptions, 'params'>): Promise<PostCliDelegateRunsRunIdConsultationsResponse>;
2435
+ postCliDelegateRunsRunIdDecision(options?: PostCliDelegateRunsRunIdDecisionOptions): Promise<PostCliDelegateRunsRunIdDecisionResponse>;
2436
+ postCliDelegateRunsRunIdDecision(runId: string, options?: Omit<PostCliDelegateRunsRunIdDecisionOptions, 'params'>): Promise<PostCliDelegateRunsRunIdDecisionResponse>;
2437
+ postCliDelegateRunsRunIdEvidence(options?: PostCliDelegateRunsRunIdEvidenceOptions): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2438
+ postCliDelegateRunsRunIdEvidence(runId: string, options?: Omit<PostCliDelegateRunsRunIdEvidenceOptions, 'params'>): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2566
2439
  /** 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. */
2567
2440
  prepare(options?: PrepareOptions): Promise<PrepareResponse>;
2568
2441
  prepare(query?: PrepareQuery, options?: Omit<PrepareOptions, 'query'>): Promise<PrepareResponse>;
2569
2442
  /** Promote one workspace-owned agent skill to a global managed skill by copying its files into a new global skill row. */
2570
2443
  promoteWorkspaceAgentSkill(options?: PromoteWorkspaceAgentSkillOptions): Promise<PromoteWorkspaceAgentSkillResponse>;
2571
2444
  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>;
2445
+ proposeDelegateMandate(options?: ProposeDelegateMandateOptions): Promise<ProposeDelegateMandateResponse>;
2446
+ proposeDelegateMandate(authorityId: string, body: ProposeDelegateMandateBody, options?: Omit<ProposeDelegateMandateOptions, 'params' | 'body'>): Promise<ProposeDelegateMandateResponse>;
2575
2447
  /** Publish a browser-viewable file or folder under a workspace artifacts directory. artifactPath is relative to that workspace artifacts directory. */
2576
2448
  publishArtifact(options?: PublishArtifactOptions): Promise<PublishArtifactResponse>;
2577
2449
  publishArtifact(workspaceSlug: string, body: PublishArtifactBody, options?: Omit<PublishArtifactOptions, 'params' | 'body'>): Promise<PublishArtifactResponse>;
@@ -2587,7 +2459,6 @@ export declare class RealtimeXClient {
2587
2459
  /** Rename one workspace by exact workspace slug. Only the name is changed. */
2588
2460
  renameWorkspace(options?: RenameWorkspaceOptions): Promise<RenameWorkspaceResponse>;
2589
2461
  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
2462
  resolveDelegate(options?: ResolveDelegateOptions): Promise<ResolveDelegateResponse>;
2592
2463
  resolveDelegate(query?: ResolveDelegateQuery, options?: Omit<ResolveDelegateOptions, 'query'>): Promise<ResolveDelegateResponse>;
2593
2464
  /** Send one constrained response action to an exact idle terminal session only when its PTY event sequence is unchanged. */
@@ -2598,31 +2469,21 @@ export declare class RealtimeXClient {
2598
2469
  /** Resume one paused artifact by artifact id. */
2599
2470
  resumeArtifact(options?: ResumeArtifactOptions): Promise<ResumeArtifactResponse>;
2600
2471
  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>;
2603
2472
  /** Resume the latest terminal runtime session for one exact thread. workspaceSlug and threadSlug are required in the body or query string. */
2604
2473
  resumeLatestTerminalSession(options?: ResumeLatestTerminalSessionOptions): Promise<ResumeLatestTerminalSessionResponse>;
2605
2474
  resumeLatestTerminalSession(body: ResumeLatestTerminalSessionBody, options?: Omit<ResumeLatestTerminalSessionOptions, 'body'>): Promise<ResumeLatestTerminalSessionResponse>;
2606
2475
  /** 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. */
2607
2476
  resumeTerminalSession(options?: ResumeTerminalSessionOptions): Promise<ResumeTerminalSessionResponse>;
2608
2477
  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>;
2612
2478
  /** Revoke one artifact by artifact id. Revoked artifacts stop serving publicly and are hidden from list-artifacts by default. */
2613
2479
  revokeArtifact(options?: RevokeArtifactOptions): Promise<RevokeArtifactResponse>;
2614
2480
  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>;
2617
2481
  /** Run one app automation flow or scenario exposed via flowMetadata.cli.enabled=true. The command is the flowMetadata.cli.command value. */
2618
2482
  runAutomationFlow(options?: RunAutomationFlowOptions): Promise<RunAutomationFlowResponse>;
2619
2483
  runAutomationFlow(command: string, body: RunAutomationFlowBody, options?: Omit<RunAutomationFlowOptions, 'params' | 'body'>): Promise<RunAutomationFlowResponse>;
2620
2484
  /** Run any app automation flow or scenario exposed via flowMetadata.cli.enabled=true by passing workflowName. */
2621
2485
  runAutomationWorkflow(options?: RunAutomationWorkflowOptions): Promise<RunAutomationWorkflowResponse>;
2622
2486
  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>;
2626
2487
  /** 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. */
2627
2488
  sendChannelFile(options?: SendChannelFileOptions): Promise<SendChannelFileResponse>;
2628
2489
  sendChannelFile(body: SendChannelFileBody, options?: Omit<SendChannelFileOptions, 'body'>): Promise<SendChannelFileResponse>;
@@ -2667,8 +2528,6 @@ export declare class RealtimeXClient {
2667
2528
  /** Set the default CLI agent for a workspace. Use prepare first to find a valid agent canonical/providerId and optional modelId. */
2668
2529
  setWorkspaceDefaultAgent(options?: SetWorkspaceDefaultAgentOptions): Promise<SetWorkspaceDefaultAgentResponse>;
2669
2530
  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>;
2672
2531
  /** Start an existing named RealTimeX Browser session, optionally opening an absolute HTTP or HTTPS URL. */
2673
2532
  startBrowserSession(options?: StartBrowserSessionOptions): Promise<StartBrowserSessionResponse>;
2674
2533
  startBrowserSession(sessionName: string, body: StartBrowserSessionBody, options?: Omit<StartBrowserSessionOptions, 'params' | 'body'>): Promise<StartBrowserSessionResponse>;
@@ -2687,8 +2546,6 @@ export declare class RealtimeXClient {
2687
2546
  stopLocalApp(appId: string, body: StopLocalAppBody, options?: Omit<StopLocalAppOptions, 'params' | 'body'>): Promise<StopLocalAppResponse>;
2688
2547
  /** 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. */
2689
2548
  stopThreadTerminalSession(options?: StopThreadTerminalSessionOptions): Promise<StopThreadTerminalSessionResponse>;
2690
- suspendDelegate(options?: SuspendDelegateOptions): Promise<SuspendDelegateResponse>;
2691
- suspendDelegate(instanceId: string, body: SuspendDelegateBody, options?: Omit<SuspendDelegateOptions, 'params' | 'body'>): Promise<SuspendDelegateResponse>;
2692
2549
  /** Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session. */
2693
2550
  terminateTerminalSession(options?: TerminateTerminalSessionOptions): Promise<TerminateTerminalSessionResponse>;
2694
2551
  terminateTerminalSession(sessionId: string, options?: Omit<TerminateTerminalSessionOptions, 'params'>): Promise<TerminateTerminalSessionResponse>;
@@ -2706,9 +2563,14 @@ export declare class RealtimeXClient {
2706
2563
  updateChannel(channelId: string, body: UpdateChannelBody, options?: Omit<UpdateChannelOptions, 'params' | 'body'>): Promise<UpdateChannelResponse>;
2707
2564
  updateLocalApp(options?: UpdateLocalAppOptions): Promise<UpdateLocalAppResponse>;
2708
2565
  updateLocalApp(appId: string, body: UpdateLocalAppBody, options?: Omit<UpdateLocalAppOptions, 'params' | 'body'>): Promise<UpdateLocalAppResponse>;
2566
+ updateSecret(options?: UpdateSecretOptions): Promise<UpdateSecretResponse>;
2567
+ updateSecret(id: string, body: UpdateSecretBody, options?: Omit<UpdateSecretOptions, 'params' | 'body'>): Promise<UpdateSecretResponse>;
2709
2568
  /** Update a visible webhook endpoint. Passing secret rotates it; the value is never returned. */
2710
2569
  updateWebhookEndpoint(options?: UpdateWebhookEndpointOptions): Promise<UpdateWebhookEndpointResponse>;
2711
2570
  updateWebhookEndpoint(endpointId: string, body: UpdateWebhookEndpointBody, options?: Omit<UpdateWebhookEndpointOptions, 'params' | 'body'>): Promise<UpdateWebhookEndpointResponse>;
2571
+ /** Exercise deterministic Bloub approval, failed-turn, and persisted-history acceptance fixtures. */
2572
+ workspaceAvatarAcceptance(options?: WorkspaceAvatarAcceptanceOptions): Promise<WorkspaceAvatarAcceptanceResponse>;
2573
+ workspaceAvatarAcceptance(body: WorkspaceAvatarAcceptanceBody, options?: Omit<WorkspaceAvatarAcceptanceOptions, 'body'>): Promise<WorkspaceAvatarAcceptanceResponse>;
2712
2574
  /** Verify workspace navigation, title-bar containment, Files dock behavior, and action contrast at desktop and compact viewports. */
2713
2575
  workspaceShellLayout(options?: WorkspaceShellLayoutOptions): Promise<WorkspaceShellLayoutResponse>;
2714
2576
  workspaceShellLayout(body: WorkspaceShellLayoutBody, options?: Omit<WorkspaceShellLayoutOptions, 'body'>): Promise<WorkspaceShellLayoutResponse>;