@realtimex/sdk 2.0.35 → 2.0.36

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,24 @@ 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
+ description?: string;
249
+ enabled?: boolean;
250
+ workspaceSlugs?: Array<string> | null;
251
+ };
252
+ export type CreateSecretResponse = Record<string, unknown>;
253
+ export interface CreateSecretOptions extends RealtimeXRequestOptions {
254
+ params?: CreateSecretParams;
255
+ query?: CreateSecretQuery;
256
+ headers?: CreateSecretHeaders & Record<string, string>;
257
+ body?: CreateSecretBody;
258
+ }
259
+
277
260
  export type CreateThreadParams = {
278
261
  workspaceSlug: string;
279
262
  };
@@ -364,26 +347,6 @@ export interface CreateWorkspaceAgentSkillOptions extends RealtimeXRequestOption
364
347
  body?: CreateWorkspaceAgentSkillBody;
365
348
  }
366
349
 
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
-
387
350
  export type DeleteBrowserSessionParams = {
388
351
  sessionName: string;
389
352
  };
@@ -432,6 +395,20 @@ export interface DeleteLocalAppOptions extends RealtimeXRequestOptions {
432
395
  body?: DeleteLocalAppBody;
433
396
  }
434
397
 
398
+ export type DeleteSecretParams = {
399
+ id: string;
400
+ };
401
+ export type DeleteSecretQuery = Record<string, never>;
402
+ export type DeleteSecretHeaders = Record<string, never>;
403
+ export type DeleteSecretBody = unknown;
404
+ export type DeleteSecretResponse = Record<string, unknown>;
405
+ export interface DeleteSecretOptions extends RealtimeXRequestOptions {
406
+ params?: DeleteSecretParams;
407
+ query?: DeleteSecretQuery;
408
+ headers?: DeleteSecretHeaders & Record<string, string>;
409
+ body?: DeleteSecretBody;
410
+ }
411
+
435
412
  export type DeleteThreadParams = {
436
413
  workspaceSlug: string;
437
414
  threadSlug: string;
@@ -584,107 +561,19 @@ export interface GetArtifactOptions extends RealtimeXRequestOptions {
584
561
  body?: GetArtifactBody;
585
562
  }
586
563
 
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;
564
+ export type GetDelegateMandateParams = Record<string, never>;
565
+ export type GetDelegateMandateQuery = {
566
+ scopeKind: "global" | "project" | "workspace";
567
+ scopeId: string;
568
+ };
569
+ export type GetDelegateMandateHeaders = Record<string, never>;
570
+ export type GetDelegateMandateBody = unknown;
571
+ export type GetDelegateMandateResponse = Record<string, unknown>;
572
+ export interface GetDelegateMandateOptions extends RealtimeXRequestOptions {
573
+ params?: GetDelegateMandateParams;
574
+ query?: GetDelegateMandateQuery;
575
+ headers?: GetDelegateMandateHeaders & Record<string, string>;
576
+ body?: GetDelegateMandateBody;
688
577
  }
689
578
 
690
579
  export type GetLocalAppParams = {
@@ -747,6 +636,20 @@ export interface GetPluginOptions extends RealtimeXRequestOptions {
747
636
  body?: GetPluginBody;
748
637
  }
749
638
 
639
+ export type GetSecretParams = {
640
+ id: string;
641
+ };
642
+ export type GetSecretQuery = Record<string, never>;
643
+ export type GetSecretHeaders = Record<string, never>;
644
+ export type GetSecretBody = unknown;
645
+ export type GetSecretResponse = Record<string, unknown>;
646
+ export interface GetSecretOptions extends RealtimeXRequestOptions {
647
+ params?: GetSecretParams;
648
+ query?: GetSecretQuery;
649
+ headers?: GetSecretHeaders & Record<string, string>;
650
+ body?: GetSecretBody;
651
+ }
652
+
750
653
  export type GetTerminalSessionContextParams = {
751
654
  sessionId: string;
752
655
  };
@@ -907,56 +810,6 @@ export interface ListChannelsOptions extends RealtimeXRequestOptions {
907
810
  body?: ListChannelsBody;
908
811
  }
909
812
 
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
813
  export type ListLlmModelsParams = {
961
814
  provider: string;
962
815
  };
@@ -1013,6 +866,39 @@ export interface ListPluginsOptions extends RealtimeXRequestOptions {
1013
866
  body?: ListPluginsBody;
1014
867
  }
1015
868
 
869
+ export type ListSecretsParams = Record<string, never>;
870
+ export type ListSecretsQuery = Record<string, never>;
871
+ export type ListSecretsHeaders = Record<string, never>;
872
+ export type ListSecretsBody = unknown;
873
+ export type ListSecretsResponse = Record<string, unknown>;
874
+ export interface ListSecretsOptions extends RealtimeXRequestOptions {
875
+ params?: ListSecretsParams;
876
+ query?: ListSecretsQuery;
877
+ headers?: ListSecretsHeaders & Record<string, string>;
878
+ body?: ListSecretsBody;
879
+ }
880
+
881
+ export type ListSecretUsageParams = {
882
+ id: string;
883
+ };
884
+ export type ListSecretUsageQuery = {
885
+ page?: number;
886
+ pageSize?: number;
887
+ workspaceSlug?: string;
888
+ threadSlug?: string;
889
+ sessionId?: string;
890
+ executable?: string;
891
+ };
892
+ export type ListSecretUsageHeaders = Record<string, never>;
893
+ export type ListSecretUsageBody = unknown;
894
+ export type ListSecretUsageResponse = Record<string, unknown>;
895
+ export interface ListSecretUsageOptions extends RealtimeXRequestOptions {
896
+ params?: ListSecretUsageParams;
897
+ query?: ListSecretUsageQuery;
898
+ headers?: ListSecretUsageHeaders & Record<string, string>;
899
+ body?: ListSecretUsageBody;
900
+ }
901
+
1016
902
  export type ListTerminalAgentsParams = Record<string, never>;
1017
903
  export type ListTerminalAgentsQuery = Record<string, never>;
1018
904
  export type ListTerminalAgentsHeaders = {
@@ -1217,6 +1103,34 @@ export interface PauseArtifactOptions extends RealtimeXRequestOptions {
1217
1103
  body?: PauseArtifactBody;
1218
1104
  }
1219
1105
 
1106
+ export type PostCliDelegateRunsRunIdDecisionParams = {
1107
+ runId: string;
1108
+ };
1109
+ export type PostCliDelegateRunsRunIdDecisionQuery = Record<string, never>;
1110
+ export type PostCliDelegateRunsRunIdDecisionHeaders = Record<string, never>;
1111
+ export type PostCliDelegateRunsRunIdDecisionBody = unknown;
1112
+ export type PostCliDelegateRunsRunIdDecisionResponse = Record<string, unknown>;
1113
+ export interface PostCliDelegateRunsRunIdDecisionOptions extends RealtimeXRequestOptions {
1114
+ params?: PostCliDelegateRunsRunIdDecisionParams;
1115
+ query?: PostCliDelegateRunsRunIdDecisionQuery;
1116
+ headers?: PostCliDelegateRunsRunIdDecisionHeaders & Record<string, string>;
1117
+ body?: PostCliDelegateRunsRunIdDecisionBody;
1118
+ }
1119
+
1120
+ export type PostCliDelegateRunsRunIdEvidenceParams = {
1121
+ runId: string;
1122
+ };
1123
+ export type PostCliDelegateRunsRunIdEvidenceQuery = Record<string, never>;
1124
+ export type PostCliDelegateRunsRunIdEvidenceHeaders = Record<string, never>;
1125
+ export type PostCliDelegateRunsRunIdEvidenceBody = unknown;
1126
+ export type PostCliDelegateRunsRunIdEvidenceResponse = Record<string, unknown>;
1127
+ export interface PostCliDelegateRunsRunIdEvidenceOptions extends RealtimeXRequestOptions {
1128
+ params?: PostCliDelegateRunsRunIdEvidenceParams;
1129
+ query?: PostCliDelegateRunsRunIdEvidenceQuery;
1130
+ headers?: PostCliDelegateRunsRunIdEvidenceHeaders & Record<string, string>;
1131
+ body?: PostCliDelegateRunsRunIdEvidenceBody;
1132
+ }
1133
+
1220
1134
  export type PrepareParams = Record<string, never>;
1221
1135
  export type PrepareQuery = {
1222
1136
  workspaceSlug?: string;
@@ -1285,21 +1199,21 @@ export interface PromoteWorkspaceAgentSkillOptions extends RealtimeXRequestOptio
1285
1199
  body?: PromoteWorkspaceAgentSkillBody;
1286
1200
  }
1287
1201
 
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;
1202
+ export type ProposeDelegateMandateParams = {
1203
+ authorityId: string;
1204
+ };
1205
+ export type ProposeDelegateMandateQuery = Record<string, never>;
1206
+ export type ProposeDelegateMandateHeaders = Record<string, never>;
1207
+ export type ProposeDelegateMandateBody = {
1208
+ markdown: string;
1209
+ expectedRevision: number;
1296
1210
  };
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;
1211
+ export type ProposeDelegateMandateResponse = Record<string, unknown>;
1212
+ export interface ProposeDelegateMandateOptions extends RealtimeXRequestOptions {
1213
+ params?: ProposeDelegateMandateParams;
1214
+ query?: ProposeDelegateMandateQuery;
1215
+ headers?: ProposeDelegateMandateHeaders & Record<string, string>;
1216
+ body?: ProposeDelegateMandateBody;
1303
1217
  }
1304
1218
 
1305
1219
  export type PublishArtifactParams = {
@@ -1393,7 +1307,7 @@ export interface RenameWorkspaceOptions extends RealtimeXRequestOptions {
1393
1307
 
1394
1308
  export type ResolveDelegateParams = Record<string, never>;
1395
1309
  export type ResolveDelegateQuery = {
1396
- scopeKind: "global-topology" | "project-topology" | "workspace-team";
1310
+ scopeKind: "global" | "project" | "workspace";
1397
1311
  scopeId: string;
1398
1312
  };
1399
1313
  export type ResolveDelegateHeaders = Record<string, never>;
@@ -1456,22 +1370,6 @@ export interface ResumeArtifactOptions extends RealtimeXRequestOptions {
1456
1370
  body?: ResumeArtifactBody;
1457
1371
  }
1458
1372
 
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
1373
  export type ResumeLatestTerminalSessionParams = Record<string, never>;
1476
1374
  export type ResumeLatestTerminalSessionQuery = Record<string, never>;
1477
1375
  export type ResumeLatestTerminalSessionHeaders = {
@@ -1510,21 +1408,6 @@ export interface ResumeTerminalSessionOptions extends RealtimeXRequestOptions {
1510
1408
  body?: ResumeTerminalSessionBody;
1511
1409
  }
1512
1410
 
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
1411
  export type RevokeArtifactParams = {
1529
1412
  artifactId: string;
1530
1413
  };
@@ -1541,23 +1424,6 @@ export interface RevokeArtifactOptions extends RealtimeXRequestOptions {
1541
1424
  body?: RevokeArtifactBody;
1542
1425
  }
1543
1426
 
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
1427
  export type RunAutomationFlowParams = {
1562
1428
  command: string;
1563
1429
  };
@@ -1597,33 +1463,6 @@ export interface RunAutomationWorkflowOptions extends RealtimeXRequestOptions {
1597
1463
  body?: RunAutomationWorkflowBody;
1598
1464
  }
1599
1465
 
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
1466
  export type SendChannelFileParams = Record<string, never>;
1628
1467
  export type SendChannelFileQuery = Record<string, never>;
1629
1468
  export type SendChannelFileHeaders = {
@@ -1978,24 +1817,6 @@ export interface SetWorkspaceDefaultAgentOptions extends RealtimeXRequestOptions
1978
1817
  body?: SetWorkspaceDefaultAgentBody;
1979
1818
  }
1980
1819
 
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
1820
  export type StartBrowserSessionParams = {
2000
1821
  sessionName: string;
2001
1822
  };
@@ -2108,23 +1929,6 @@ export interface StopThreadTerminalSessionOptions extends RealtimeXRequestOption
2108
1929
  body?: StopThreadTerminalSessionBody;
2109
1930
  }
2110
1931
 
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
1932
  export type TerminateTerminalSessionParams = {
2129
1933
  sessionId: string;
2130
1934
  };
@@ -2238,6 +2042,26 @@ export interface UpdateLocalAppOptions extends RealtimeXRequestOptions {
2238
2042
  body?: UpdateLocalAppBody;
2239
2043
  }
2240
2044
 
2045
+ export type UpdateSecretParams = {
2046
+ id: string;
2047
+ };
2048
+ export type UpdateSecretQuery = Record<string, never>;
2049
+ export type UpdateSecretHeaders = Record<string, never>;
2050
+ export type UpdateSecretBody = {
2051
+ name?: string;
2052
+ value?: string;
2053
+ description?: string;
2054
+ enabled?: boolean;
2055
+ workspaceSlugs?: Array<string> | null;
2056
+ };
2057
+ export type UpdateSecretResponse = Record<string, unknown>;
2058
+ export interface UpdateSecretOptions extends RealtimeXRequestOptions {
2059
+ params?: UpdateSecretParams;
2060
+ query?: UpdateSecretQuery;
2061
+ headers?: UpdateSecretHeaders & Record<string, string>;
2062
+ body?: UpdateSecretBody;
2063
+ }
2064
+
2241
2065
  export type UpdateWebhookEndpointParams = {
2242
2066
  endpointId: string;
2243
2067
  };
@@ -2275,6 +2099,23 @@ export interface UpdateWebhookEndpointOptions extends RealtimeXRequestOptions {
2275
2099
  body?: UpdateWebhookEndpointBody;
2276
2100
  }
2277
2101
 
2102
+ export type WorkspaceAvatarAcceptanceParams = Record<string, never>;
2103
+ export type WorkspaceAvatarAcceptanceQuery = Record<string, never>;
2104
+ export type WorkspaceAvatarAcceptanceHeaders = Record<string, never>;
2105
+ export type WorkspaceAvatarAcceptanceBody = {
2106
+ historyCount?: number;
2107
+ artifactPath?: string;
2108
+ timeoutMs?: number;
2109
+ confirmDestructive?: boolean;
2110
+ };
2111
+ export type WorkspaceAvatarAcceptanceResponse = Record<string, unknown>;
2112
+ export interface WorkspaceAvatarAcceptanceOptions extends RealtimeXRequestOptions {
2113
+ params?: WorkspaceAvatarAcceptanceParams;
2114
+ query?: WorkspaceAvatarAcceptanceQuery;
2115
+ headers?: WorkspaceAvatarAcceptanceHeaders & Record<string, string>;
2116
+ body?: WorkspaceAvatarAcceptanceBody;
2117
+ }
2118
+
2278
2119
  export type WorkspaceShellLayoutParams = Record<string, never>;
2279
2120
  export type WorkspaceShellLayoutQuery = Record<string, never>;
2280
2121
  export type WorkspaceShellLayoutHeaders = Record<string, never>;
@@ -2379,17 +2220,15 @@ export declare class RealtimeXWebhookClient {
2379
2220
  export declare class RealtimeXClient {
2380
2221
  constructor(options?: RealtimeXClientOptions);
2381
2222
  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
2223
  /** Approve one pending channel pairing code by visible 6-digit code or database id. Works for telegram, discord, and zalo channel pairing requests. */
2386
2224
  approveChannelPairingCode(options?: ApproveChannelPairingCodeOptions): Promise<ApproveChannelPairingCodeResponse>;
2387
2225
  approveChannelPairingCode(code: string, options?: Omit<ApproveChannelPairingCodeOptions, 'params'>): Promise<ApproveChannelPairingCodeResponse>;
2388
2226
  /** Verify archive and global-search thread navigation stay in one Electron renderer without eager TTS workers or runaway renderer RSS. */
2389
2227
  archiveActiveThreadSpa(options?: ArchiveActiveThreadSpaOptions): Promise<ArchiveActiveThreadSpaResponse>;
2390
2228
  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>;
2229
+ /** Measure chat rich-content containment in the owned Electron renderer. */
2230
+ chatRichContentContainment(options?: ChatRichContentContainmentOptions): Promise<ChatRichContentContainmentResponse>;
2231
+ chatRichContentContainment(body: ChatRichContentContainmentBody, options?: Omit<ChatRichContentContainmentOptions, 'body'>): Promise<ChatRichContentContainmentResponse>;
2393
2232
  /** Guide a user through sending a chat message to the terminal agent. */
2394
2233
  chatWithTerminalAgent(options?: ChatWithTerminalAgentOptions): Promise<ChatWithTerminalAgentResponse>;
2395
2234
  chatWithTerminalAgent(body: ChatWithTerminalAgentBody, options?: Omit<ChatWithTerminalAgentOptions, 'body'>): Promise<ChatWithTerminalAgentResponse>;
@@ -2399,9 +2238,6 @@ export declare class RealtimeXClient {
2399
2238
  /** Verify Companion host-capability rename preview, navigation cancellation, confirmation, and terminal-session isolation. */
2400
2239
  companionHostCapabilityRename(options?: CompanionHostCapabilityRenameOptions): Promise<CompanionHostCapabilityRenameResponse>;
2401
2240
  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
2241
  /** 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
2242
  configurePlugin(options?: ConfigurePluginOptions): Promise<ConfigurePluginResponse>;
2407
2243
  configurePlugin(pluginId: string, body: ConfigurePluginBody, options?: Omit<ConfigurePluginOptions, 'params' | 'body'>): Promise<ConfigurePluginResponse>;
@@ -2413,6 +2249,8 @@ export declare class RealtimeXClient {
2413
2249
  createChannel(workspaceSlug: string, body: CreateChannelBody, options?: Omit<CreateChannelOptions, 'params' | 'body'>): Promise<CreateChannelResponse>;
2414
2250
  createLocalApp(options?: CreateLocalAppOptions): Promise<CreateLocalAppResponse>;
2415
2251
  createLocalApp(body: CreateLocalAppBody, options?: Omit<CreateLocalAppOptions, 'body'>): Promise<CreateLocalAppResponse>;
2252
+ createSecret(options?: CreateSecretOptions): Promise<CreateSecretResponse>;
2253
+ createSecret(body: CreateSecretBody, options?: Omit<CreateSecretOptions, 'body'>): Promise<CreateSecretResponse>;
2416
2254
  /** Create a thread in one workspace. The name is optional but recommended. */
2417
2255
  createThread(options?: CreateThreadOptions): Promise<CreateThreadResponse>;
2418
2256
  createThread(workspaceSlug: string, body: CreateThreadBody, options?: Omit<CreateThreadOptions, 'params' | 'body'>): Promise<CreateThreadResponse>;
@@ -2425,9 +2263,6 @@ export declare class RealtimeXClient {
2425
2263
  /** 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
2264
  createWorkspaceAgentSkill(options?: CreateWorkspaceAgentSkillOptions): Promise<CreateWorkspaceAgentSkillResponse>;
2427
2265
  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>;
2431
2266
  /** Delete a stopped named RealTimeX Browser session and its isolated profile. */
2432
2267
  deleteBrowserSession(options?: DeleteBrowserSessionOptions): Promise<DeleteBrowserSessionResponse>;
2433
2268
  deleteBrowserSession(sessionName: string, options?: Omit<DeleteBrowserSessionOptions, 'params'>): Promise<DeleteBrowserSessionResponse>;
@@ -2436,6 +2271,8 @@ export declare class RealtimeXClient {
2436
2271
  deleteChannel(channelId: string, options?: Omit<DeleteChannelOptions, 'params'>): Promise<DeleteChannelResponse>;
2437
2272
  deleteLocalApp(options?: DeleteLocalAppOptions): Promise<DeleteLocalAppResponse>;
2438
2273
  deleteLocalApp(appId: string, body: DeleteLocalAppBody, options?: Omit<DeleteLocalAppOptions, 'params' | 'body'>): Promise<DeleteLocalAppResponse>;
2274
+ deleteSecret(options?: DeleteSecretOptions): Promise<DeleteSecretResponse>;
2275
+ deleteSecret(id: string, options?: Omit<DeleteSecretOptions, 'params'>): Promise<DeleteSecretResponse>;
2439
2276
  /** Delete one thread by exact workspace slug and exact thread slug. */
2440
2277
  deleteThread(options?: DeleteThreadOptions): Promise<DeleteThreadResponse>;
2441
2278
  deleteThread(params: DeleteThreadParams, options?: Omit<DeleteThreadOptions, 'params'>): Promise<DeleteThreadResponse>;
@@ -2463,21 +2300,8 @@ export declare class RealtimeXClient {
2463
2300
  /** Get one public artifact by artifact id. */
2464
2301
  getArtifact(options?: GetArtifactOptions): Promise<GetArtifactResponse>;
2465
2302
  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>;
2303
+ getDelegateMandate(options?: GetDelegateMandateOptions): Promise<GetDelegateMandateResponse>;
2304
+ getDelegateMandate(query?: GetDelegateMandateQuery, options?: Omit<GetDelegateMandateOptions, 'query'>): Promise<GetDelegateMandateResponse>;
2481
2305
  getLocalApp(options?: GetLocalAppOptions): Promise<GetLocalAppResponse>;
2482
2306
  getLocalApp(appId: string, options?: Omit<GetLocalAppOptions, 'params'>): Promise<GetLocalAppResponse>;
2483
2307
  /** Read bounded recent desktop logs. Each entry is capped at 4 KiB and secret-bearing configuration is omitted. */
@@ -2488,6 +2312,8 @@ export declare class RealtimeXClient {
2488
2312
  /** 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
2313
  getPlugin(options?: GetPluginOptions): Promise<GetPluginResponse>;
2490
2314
  getPlugin(pluginId: string, options?: Omit<GetPluginOptions, 'params'>): Promise<GetPluginResponse>;
2315
+ getSecret(options?: GetSecretOptions): Promise<GetSecretResponse>;
2316
+ getSecret(id: string, options?: Omit<GetSecretOptions, 'params'>): Promise<GetSecretResponse>;
2491
2317
  /** Read a bounded, sanitized tail of the PTY output for one exact live terminal runtime session. */
2492
2318
  getTerminalSessionContext(options?: GetTerminalSessionContextOptions): Promise<GetTerminalSessionContextResponse>;
2493
2319
  getTerminalSessionContext(sessionId: string, options?: Omit<GetTerminalSessionContextOptions, 'params'>): Promise<GetTerminalSessionContextResponse>;
@@ -2515,13 +2341,6 @@ export declare class RealtimeXClient {
2515
2341
  listBrowserSessions(options?: ListBrowserSessionsOptions): Promise<ListBrowserSessionsResponse>;
2516
2342
  /** List configured chat channels. Use returned channel ids with update-channel. */
2517
2343
  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
2344
  /** List models for one provider id. Use an exact model id from this response when configuring workspace or thread LLM settings. */
2526
2345
  listLlmModels(options?: ListLlmModelsOptions): Promise<ListLlmModelsResponse>;
2527
2346
  listLlmModels(provider: string, options?: Omit<ListLlmModelsOptions, 'params'>): Promise<ListLlmModelsResponse>;
@@ -2530,6 +2349,9 @@ export declare class RealtimeXClient {
2530
2349
  listLocalApps(options?: ListLocalAppsOptions): Promise<ListLocalAppsResponse>;
2531
2350
  /** List installed plugins with enabled state and runtime load status. Use returned ids with enable-plugin, disable-plugin, and reload-plugin. */
2532
2351
  listPlugins(options?: ListPluginsOptions): Promise<ListPluginsResponse>;
2352
+ listSecrets(options?: ListSecretsOptions): Promise<ListSecretsResponse>;
2353
+ listSecretUsage(options?: ListSecretUsageOptions): Promise<ListSecretUsageResponse>;
2354
+ listSecretUsage(id: string, options?: Omit<ListSecretUsageOptions, 'params'>): Promise<ListSecretUsageResponse>;
2533
2355
  /** List terminal CLI agents that can be used with open-terminal-session. This is the same compact agent catalog returned by prepare.agents. */
2534
2356
  listTerminalAgents(options?: ListTerminalAgentsOptions): Promise<ListTerminalAgentsResponse>;
2535
2357
  /** 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 +2385,18 @@ export declare class RealtimeXClient {
2563
2385
  /** Pause one published artifact by artifact id. Paused artifacts remain listed but stop serving publicly. */
2564
2386
  pauseArtifact(options?: PauseArtifactOptions): Promise<PauseArtifactResponse>;
2565
2387
  pauseArtifact(artifactId: string, options?: Omit<PauseArtifactOptions, 'params'>): Promise<PauseArtifactResponse>;
2388
+ postCliDelegateRunsRunIdDecision(options?: PostCliDelegateRunsRunIdDecisionOptions): Promise<PostCliDelegateRunsRunIdDecisionResponse>;
2389
+ postCliDelegateRunsRunIdDecision(runId: string, options?: Omit<PostCliDelegateRunsRunIdDecisionOptions, 'params'>): Promise<PostCliDelegateRunsRunIdDecisionResponse>;
2390
+ postCliDelegateRunsRunIdEvidence(options?: PostCliDelegateRunsRunIdEvidenceOptions): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2391
+ postCliDelegateRunsRunIdEvidence(runId: string, options?: Omit<PostCliDelegateRunsRunIdEvidenceOptions, 'params'>): Promise<PostCliDelegateRunsRunIdEvidenceResponse>;
2566
2392
  /** 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
2393
  prepare(options?: PrepareOptions): Promise<PrepareResponse>;
2568
2394
  prepare(query?: PrepareQuery, options?: Omit<PrepareOptions, 'query'>): Promise<PrepareResponse>;
2569
2395
  /** Promote one workspace-owned agent skill to a global managed skill by copying its files into a new global skill row. */
2570
2396
  promoteWorkspaceAgentSkill(options?: PromoteWorkspaceAgentSkillOptions): Promise<PromoteWorkspaceAgentSkillResponse>;
2571
2397
  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>;
2398
+ proposeDelegateMandate(options?: ProposeDelegateMandateOptions): Promise<ProposeDelegateMandateResponse>;
2399
+ proposeDelegateMandate(authorityId: string, body: ProposeDelegateMandateBody, options?: Omit<ProposeDelegateMandateOptions, 'params' | 'body'>): Promise<ProposeDelegateMandateResponse>;
2575
2400
  /** Publish a browser-viewable file or folder under a workspace artifacts directory. artifactPath is relative to that workspace artifacts directory. */
2576
2401
  publishArtifact(options?: PublishArtifactOptions): Promise<PublishArtifactResponse>;
2577
2402
  publishArtifact(workspaceSlug: string, body: PublishArtifactBody, options?: Omit<PublishArtifactOptions, 'params' | 'body'>): Promise<PublishArtifactResponse>;
@@ -2587,7 +2412,6 @@ export declare class RealtimeXClient {
2587
2412
  /** Rename one workspace by exact workspace slug. Only the name is changed. */
2588
2413
  renameWorkspace(options?: RenameWorkspaceOptions): Promise<RenameWorkspaceResponse>;
2589
2414
  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
2415
  resolveDelegate(options?: ResolveDelegateOptions): Promise<ResolveDelegateResponse>;
2592
2416
  resolveDelegate(query?: ResolveDelegateQuery, options?: Omit<ResolveDelegateOptions, 'query'>): Promise<ResolveDelegateResponse>;
2593
2417
  /** Send one constrained response action to an exact idle terminal session only when its PTY event sequence is unchanged. */
@@ -2598,31 +2422,21 @@ export declare class RealtimeXClient {
2598
2422
  /** Resume one paused artifact by artifact id. */
2599
2423
  resumeArtifact(options?: ResumeArtifactOptions): Promise<ResumeArtifactResponse>;
2600
2424
  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
2425
  /** Resume the latest terminal runtime session for one exact thread. workspaceSlug and threadSlug are required in the body or query string. */
2604
2426
  resumeLatestTerminalSession(options?: ResumeLatestTerminalSessionOptions): Promise<ResumeLatestTerminalSessionResponse>;
2605
2427
  resumeLatestTerminalSession(body: ResumeLatestTerminalSessionBody, options?: Omit<ResumeLatestTerminalSessionOptions, 'body'>): Promise<ResumeLatestTerminalSessionResponse>;
2606
2428
  /** 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
2429
  resumeTerminalSession(options?: ResumeTerminalSessionOptions): Promise<ResumeTerminalSessionResponse>;
2608
2430
  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
2431
  /** Revoke one artifact by artifact id. Revoked artifacts stop serving publicly and are hidden from list-artifacts by default. */
2613
2432
  revokeArtifact(options?: RevokeArtifactOptions): Promise<RevokeArtifactResponse>;
2614
2433
  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
2434
  /** Run one app automation flow or scenario exposed via flowMetadata.cli.enabled=true. The command is the flowMetadata.cli.command value. */
2618
2435
  runAutomationFlow(options?: RunAutomationFlowOptions): Promise<RunAutomationFlowResponse>;
2619
2436
  runAutomationFlow(command: string, body: RunAutomationFlowBody, options?: Omit<RunAutomationFlowOptions, 'params' | 'body'>): Promise<RunAutomationFlowResponse>;
2620
2437
  /** Run any app automation flow or scenario exposed via flowMetadata.cli.enabled=true by passing workflowName. */
2621
2438
  runAutomationWorkflow(options?: RunAutomationWorkflowOptions): Promise<RunAutomationWorkflowResponse>;
2622
2439
  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
2440
  /** 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
2441
  sendChannelFile(options?: SendChannelFileOptions): Promise<SendChannelFileResponse>;
2628
2442
  sendChannelFile(body: SendChannelFileBody, options?: Omit<SendChannelFileOptions, 'body'>): Promise<SendChannelFileResponse>;
@@ -2667,8 +2481,6 @@ export declare class RealtimeXClient {
2667
2481
  /** Set the default CLI agent for a workspace. Use prepare first to find a valid agent canonical/providerId and optional modelId. */
2668
2482
  setWorkspaceDefaultAgent(options?: SetWorkspaceDefaultAgentOptions): Promise<SetWorkspaceDefaultAgentResponse>;
2669
2483
  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
2484
  /** Start an existing named RealTimeX Browser session, optionally opening an absolute HTTP or HTTPS URL. */
2673
2485
  startBrowserSession(options?: StartBrowserSessionOptions): Promise<StartBrowserSessionResponse>;
2674
2486
  startBrowserSession(sessionName: string, body: StartBrowserSessionBody, options?: Omit<StartBrowserSessionOptions, 'params' | 'body'>): Promise<StartBrowserSessionResponse>;
@@ -2687,8 +2499,6 @@ export declare class RealtimeXClient {
2687
2499
  stopLocalApp(appId: string, body: StopLocalAppBody, options?: Omit<StopLocalAppOptions, 'params' | 'body'>): Promise<StopLocalAppResponse>;
2688
2500
  /** 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
2501
  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
2502
  /** Terminate a terminal runtime session by detaching any controller and closing the underlying PTY session. */
2693
2503
  terminateTerminalSession(options?: TerminateTerminalSessionOptions): Promise<TerminateTerminalSessionResponse>;
2694
2504
  terminateTerminalSession(sessionId: string, options?: Omit<TerminateTerminalSessionOptions, 'params'>): Promise<TerminateTerminalSessionResponse>;
@@ -2706,9 +2516,14 @@ export declare class RealtimeXClient {
2706
2516
  updateChannel(channelId: string, body: UpdateChannelBody, options?: Omit<UpdateChannelOptions, 'params' | 'body'>): Promise<UpdateChannelResponse>;
2707
2517
  updateLocalApp(options?: UpdateLocalAppOptions): Promise<UpdateLocalAppResponse>;
2708
2518
  updateLocalApp(appId: string, body: UpdateLocalAppBody, options?: Omit<UpdateLocalAppOptions, 'params' | 'body'>): Promise<UpdateLocalAppResponse>;
2519
+ updateSecret(options?: UpdateSecretOptions): Promise<UpdateSecretResponse>;
2520
+ updateSecret(id: string, body: UpdateSecretBody, options?: Omit<UpdateSecretOptions, 'params' | 'body'>): Promise<UpdateSecretResponse>;
2709
2521
  /** Update a visible webhook endpoint. Passing secret rotates it; the value is never returned. */
2710
2522
  updateWebhookEndpoint(options?: UpdateWebhookEndpointOptions): Promise<UpdateWebhookEndpointResponse>;
2711
2523
  updateWebhookEndpoint(endpointId: string, body: UpdateWebhookEndpointBody, options?: Omit<UpdateWebhookEndpointOptions, 'params' | 'body'>): Promise<UpdateWebhookEndpointResponse>;
2524
+ /** Exercise deterministic Bloub approval, failed-turn, and persisted-history acceptance fixtures. */
2525
+ workspaceAvatarAcceptance(options?: WorkspaceAvatarAcceptanceOptions): Promise<WorkspaceAvatarAcceptanceResponse>;
2526
+ workspaceAvatarAcceptance(body: WorkspaceAvatarAcceptanceBody, options?: Omit<WorkspaceAvatarAcceptanceOptions, 'body'>): Promise<WorkspaceAvatarAcceptanceResponse>;
2712
2527
  /** Verify workspace navigation, title-bar containment, Files dock behavior, and action contrast at desktop and compact viewports. */
2713
2528
  workspaceShellLayout(options?: WorkspaceShellLayoutOptions): Promise<WorkspaceShellLayoutResponse>;
2714
2529
  workspaceShellLayout(body: WorkspaceShellLayoutBody, options?: Omit<WorkspaceShellLayoutOptions, 'body'>): Promise<WorkspaceShellLayoutResponse>;