@ericsanchezok/synergy-sdk 0.0.0-dev-202601171118

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.
Files changed (71) hide show
  1. package/dist/client.d.ts +11 -0
  2. package/dist/client.js +27 -0
  3. package/dist/gen/client/client.gen.d.ts +2 -0
  4. package/dist/gen/client/client.gen.js +165 -0
  5. package/dist/gen/client/index.d.ts +7 -0
  6. package/dist/gen/client/index.js +5 -0
  7. package/dist/gen/client/types.gen.d.ts +127 -0
  8. package/dist/gen/client/types.gen.js +2 -0
  9. package/dist/gen/client/utils.gen.d.ts +38 -0
  10. package/dist/gen/client/utils.gen.js +226 -0
  11. package/dist/gen/client.gen.d.ts +12 -0
  12. package/dist/gen/client.gen.js +5 -0
  13. package/dist/gen/core/auth.gen.d.ts +18 -0
  14. package/dist/gen/core/auth.gen.js +14 -0
  15. package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
  16. package/dist/gen/core/bodySerializer.gen.js +57 -0
  17. package/dist/gen/core/params.gen.d.ts +33 -0
  18. package/dist/gen/core/params.gen.js +89 -0
  19. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/gen/core/pathSerializer.gen.js +106 -0
  21. package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
  22. package/dist/gen/core/serverSentEvents.gen.js +117 -0
  23. package/dist/gen/core/types.gen.d.ts +78 -0
  24. package/dist/gen/core/types.gen.js +2 -0
  25. package/dist/gen/core/utils.gen.d.ts +14 -0
  26. package/dist/gen/core/utils.gen.js +69 -0
  27. package/dist/gen/sdk.gen.d.ts +403 -0
  28. package/dist/gen/sdk.gen.js +881 -0
  29. package/dist/gen/types.gen.d.ts +3372 -0
  30. package/dist/gen/types.gen.js +2 -0
  31. package/dist/index.d.ts +12 -0
  32. package/dist/index.js +18 -0
  33. package/dist/server.d.ts +27 -0
  34. package/dist/server.js +98 -0
  35. package/dist/v2/client.d.ts +11 -0
  36. package/dist/v2/client.js +29 -0
  37. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  38. package/dist/v2/gen/client/client.gen.js +225 -0
  39. package/dist/v2/gen/client/index.d.ts +8 -0
  40. package/dist/v2/gen/client/index.js +6 -0
  41. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  42. package/dist/v2/gen/client/types.gen.js +2 -0
  43. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  44. package/dist/v2/gen/client/utils.gen.js +226 -0
  45. package/dist/v2/gen/client.gen.d.ts +12 -0
  46. package/dist/v2/gen/client.gen.js +3 -0
  47. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  48. package/dist/v2/gen/core/auth.gen.js +14 -0
  49. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  50. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  51. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  52. package/dist/v2/gen/core/params.gen.js +102 -0
  53. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  54. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  55. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  56. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  57. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  58. package/dist/v2/gen/core/serverSentEvents.gen.js +131 -0
  59. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  60. package/dist/v2/gen/core/types.gen.js +2 -0
  61. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  62. package/dist/v2/gen/core/utils.gen.js +87 -0
  63. package/dist/v2/gen/sdk.gen.d.ts +1096 -0
  64. package/dist/v2/gen/sdk.gen.js +2107 -0
  65. package/dist/v2/gen/types.gen.d.ts +4502 -0
  66. package/dist/v2/gen/types.gen.js +2 -0
  67. package/dist/v2/index.d.ts +12 -0
  68. package/dist/v2/index.js +18 -0
  69. package/dist/v2/server.d.ts +27 -0
  70. package/dist/v2/server.js +98 -0
  71. package/package.json +57 -0
@@ -0,0 +1,1096 @@
1
+ import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, CortexCancelErrors, CortexCancelResponses, CortexGetErrors, CortexGetResponses, CortexListErrors, CortexListResponses, CortexOutputErrors, CortexOutputResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionFeedbackDeleteErrors, SessionFeedbackDeleteResponses, SessionFeedbackGetErrors, SessionFeedbackGetResponses, SessionFeedbackListErrors, SessionFeedbackListResponses, SessionFeedbackSetErrors, SessionFeedbackSetResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses } from "./types.gen.js";
3
+ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
+ /**
5
+ * You can provide a client instance returned by `createClient()` instead of
6
+ * individual options. This might be also useful if you want to implement a
7
+ * custom client.
8
+ */
9
+ client?: Client;
10
+ /**
11
+ * You can pass arbitrary values through the `meta` object. This can be
12
+ * used to access values that aren't defined as part of the SDK function.
13
+ */
14
+ meta?: Record<string, unknown>;
15
+ };
16
+ declare class HeyApiClient {
17
+ protected client: Client;
18
+ constructor(args?: {
19
+ client?: Client;
20
+ });
21
+ }
22
+ declare class HeyApiRegistry<T> {
23
+ private readonly defaultKey;
24
+ private readonly instances;
25
+ get(key?: string): T;
26
+ set(value: T, key?: string): void;
27
+ }
28
+ export declare class Global extends HeyApiClient {
29
+ /**
30
+ * Get health
31
+ *
32
+ * Get health information about the Synergy server.
33
+ */
34
+ health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalHealthResponses, unknown, ThrowOnError, "fields">;
35
+ /**
36
+ * Get global events
37
+ *
38
+ * Subscribe to global events from the Synergy system using server-sent events.
39
+ */
40
+ event<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<GlobalEventResponses, unknown>>;
41
+ /**
42
+ * Dispose instance
43
+ *
44
+ * Clean up and dispose all Synergy instances, releasing all resources.
45
+ */
46
+ dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
47
+ }
48
+ export declare class Project extends HeyApiClient {
49
+ /**
50
+ * List all projects
51
+ *
52
+ * Get a list of projects that have been opened with Synergy.
53
+ */
54
+ list<ThrowOnError extends boolean = false>(parameters?: {
55
+ directory?: string;
56
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectListResponses, unknown, ThrowOnError, "fields">;
57
+ /**
58
+ * Get current project
59
+ *
60
+ * Retrieve the currently active project that Synergy is working with.
61
+ */
62
+ current<ThrowOnError extends boolean = false>(parameters?: {
63
+ directory?: string;
64
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
65
+ /**
66
+ * Update project
67
+ *
68
+ * Update project properties such as name, icon and color.
69
+ */
70
+ update<ThrowOnError extends boolean = false>(parameters: {
71
+ projectID: string;
72
+ directory?: string;
73
+ name?: string;
74
+ icon?: {
75
+ url?: string;
76
+ color?: string;
77
+ };
78
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
79
+ }
80
+ export declare class Pty extends HeyApiClient {
81
+ /**
82
+ * List PTY sessions
83
+ *
84
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by Synergy.
85
+ */
86
+ list<ThrowOnError extends boolean = false>(parameters?: {
87
+ directory?: string;
88
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyListResponses, unknown, ThrowOnError, "fields">;
89
+ /**
90
+ * Create PTY session
91
+ *
92
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
93
+ */
94
+ create<ThrowOnError extends boolean = false>(parameters?: {
95
+ directory?: string;
96
+ command?: string;
97
+ args?: Array<string>;
98
+ cwd?: string;
99
+ title?: string;
100
+ env?: {
101
+ [key: string]: string;
102
+ };
103
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyCreateResponses, PtyCreateErrors, ThrowOnError, "fields">;
104
+ /**
105
+ * Remove PTY session
106
+ *
107
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
108
+ */
109
+ remove<ThrowOnError extends boolean = false>(parameters: {
110
+ ptyID: string;
111
+ directory?: string;
112
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyRemoveResponses, PtyRemoveErrors, ThrowOnError, "fields">;
113
+ /**
114
+ * Get PTY session
115
+ *
116
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
117
+ */
118
+ get<ThrowOnError extends boolean = false>(parameters: {
119
+ ptyID: string;
120
+ directory?: string;
121
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyGetResponses, PtyGetErrors, ThrowOnError, "fields">;
122
+ /**
123
+ * Update PTY session
124
+ *
125
+ * Update properties of an existing pseudo-terminal (PTY) session.
126
+ */
127
+ update<ThrowOnError extends boolean = false>(parameters: {
128
+ ptyID: string;
129
+ directory?: string;
130
+ title?: string;
131
+ size?: {
132
+ rows: number;
133
+ cols: number;
134
+ };
135
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyUpdateResponses, PtyUpdateErrors, ThrowOnError, "fields">;
136
+ /**
137
+ * Connect to PTY session
138
+ *
139
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
140
+ */
141
+ connect<ThrowOnError extends boolean = false>(parameters: {
142
+ ptyID: string;
143
+ directory?: string;
144
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
145
+ }
146
+ export declare class Config extends HeyApiClient {
147
+ /**
148
+ * Get configuration
149
+ *
150
+ * Retrieve the current Synergy configuration settings and preferences.
151
+ */
152
+ get<ThrowOnError extends boolean = false>(parameters?: {
153
+ directory?: string;
154
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigGetResponses, unknown, ThrowOnError, "fields">;
155
+ /**
156
+ * Update configuration
157
+ *
158
+ * Update Synergy configuration settings and preferences.
159
+ */
160
+ update<ThrowOnError extends boolean = false>(parameters?: {
161
+ directory?: string;
162
+ config?: Config2;
163
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
164
+ /**
165
+ * List config providers
166
+ *
167
+ * Get a list of all configured AI providers and their default models.
168
+ */
169
+ providers<ThrowOnError extends boolean = false>(parameters?: {
170
+ directory?: string;
171
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigProvidersResponses, unknown, ThrowOnError, "fields">;
172
+ }
173
+ export declare class Tool extends HeyApiClient {
174
+ /**
175
+ * List tool IDs
176
+ *
177
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
178
+ */
179
+ ids<ThrowOnError extends boolean = false>(parameters?: {
180
+ directory?: string;
181
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolIdsResponses, ToolIdsErrors, ThrowOnError, "fields">;
182
+ /**
183
+ * List tools
184
+ *
185
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
186
+ */
187
+ list<ThrowOnError extends boolean = false>(parameters: {
188
+ directory?: string;
189
+ provider: string;
190
+ model: string;
191
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolListResponses, ToolListErrors, ThrowOnError, "fields">;
192
+ }
193
+ export declare class Instance extends HeyApiClient {
194
+ /**
195
+ * Dispose instance
196
+ *
197
+ * Clean up and dispose the current Synergy instance, releasing all resources.
198
+ */
199
+ dispose<ThrowOnError extends boolean = false>(parameters?: {
200
+ directory?: string;
201
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
202
+ }
203
+ export declare class Path extends HeyApiClient {
204
+ /**
205
+ * Get paths
206
+ *
207
+ * Retrieve the current working directory and related path information for the Synergy instance.
208
+ */
209
+ get<ThrowOnError extends boolean = false>(parameters?: {
210
+ directory?: string;
211
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
212
+ }
213
+ export declare class Worktree extends HeyApiClient {
214
+ /**
215
+ * List worktrees
216
+ *
217
+ * List all sandbox worktrees for the current project.
218
+ */
219
+ list<ThrowOnError extends boolean = false>(parameters?: {
220
+ directory?: string;
221
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeListResponses, unknown, ThrowOnError, "fields">;
222
+ /**
223
+ * Create worktree
224
+ *
225
+ * Create a new git worktree for the current project.
226
+ */
227
+ create<ThrowOnError extends boolean = false>(parameters?: {
228
+ directory?: string;
229
+ worktreeCreateInput?: WorktreeCreateInput;
230
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError, "fields">;
231
+ }
232
+ export declare class Vcs extends HeyApiClient {
233
+ /**
234
+ * Get VCS info
235
+ *
236
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
237
+ */
238
+ get<ThrowOnError extends boolean = false>(parameters?: {
239
+ directory?: string;
240
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
241
+ }
242
+ export declare class Feedback extends HeyApiClient {
243
+ /**
244
+ * List session feedback
245
+ *
246
+ * Get all feedback for a session.
247
+ */
248
+ list<ThrowOnError extends boolean = false>(parameters: {
249
+ sessionID: string;
250
+ directory?: string;
251
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFeedbackListResponses, SessionFeedbackListErrors, ThrowOnError, "fields">;
252
+ /**
253
+ * Set message feedback
254
+ *
255
+ * Rate an assistant message with thumbs up or down.
256
+ */
257
+ set<ThrowOnError extends boolean = false>(parameters: {
258
+ sessionID: string;
259
+ directory?: string;
260
+ userMessageID?: string;
261
+ assistantMessageID?: string;
262
+ rating?: "up" | "down";
263
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFeedbackSetResponses, SessionFeedbackSetErrors, ThrowOnError, "fields">;
264
+ /**
265
+ * Delete message feedback
266
+ *
267
+ * Remove feedback for a specific assistant message.
268
+ */
269
+ delete<ThrowOnError extends boolean = false>(parameters: {
270
+ sessionID: string;
271
+ messageID: string;
272
+ directory?: string;
273
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFeedbackDeleteResponses, SessionFeedbackDeleteErrors, ThrowOnError, "fields">;
274
+ /**
275
+ * Get message feedback
276
+ *
277
+ * Get feedback for a specific assistant message.
278
+ */
279
+ get<ThrowOnError extends boolean = false>(parameters: {
280
+ sessionID: string;
281
+ messageID: string;
282
+ directory?: string;
283
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFeedbackGetResponses, SessionFeedbackGetErrors, ThrowOnError, "fields">;
284
+ }
285
+ export declare class Session extends HeyApiClient {
286
+ /**
287
+ * List sessions
288
+ *
289
+ * Get a list of all Synergy sessions, sorted by most recently updated.
290
+ */
291
+ list<ThrowOnError extends boolean = false>(parameters?: {
292
+ directory?: string;
293
+ start?: number;
294
+ search?: string;
295
+ limit?: number;
296
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionListResponses, unknown, ThrowOnError, "fields">;
297
+ /**
298
+ * Create session
299
+ *
300
+ * Create a new Synergy session for interacting with AI assistants and managing conversations.
301
+ */
302
+ create<ThrowOnError extends boolean = false>(parameters?: {
303
+ directory?: string;
304
+ parentID?: string;
305
+ title?: string;
306
+ permission?: PermissionRuleset;
307
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
308
+ /**
309
+ * Get session status
310
+ *
311
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
312
+ */
313
+ status<ThrowOnError extends boolean = false>(parameters?: {
314
+ directory?: string;
315
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionStatusResponses, SessionStatusErrors, ThrowOnError, "fields">;
316
+ /**
317
+ * Delete session
318
+ *
319
+ * Delete a session and permanently remove all associated data, including messages and history.
320
+ */
321
+ delete<ThrowOnError extends boolean = false>(parameters: {
322
+ sessionID: string;
323
+ directory?: string;
324
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteResponses, SessionDeleteErrors, ThrowOnError, "fields">;
325
+ /**
326
+ * Get session
327
+ *
328
+ * Retrieve detailed information about a specific Synergy session.
329
+ */
330
+ get<ThrowOnError extends boolean = false>(parameters: {
331
+ sessionID: string;
332
+ directory?: string;
333
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionGetResponses, SessionGetErrors, ThrowOnError, "fields">;
334
+ /**
335
+ * Update session
336
+ *
337
+ * Update properties of an existing session, such as title or other metadata.
338
+ */
339
+ update<ThrowOnError extends boolean = false>(parameters: {
340
+ sessionID: string;
341
+ directory?: string;
342
+ title?: string;
343
+ time?: {
344
+ archived?: number;
345
+ };
346
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError, "fields">;
347
+ /**
348
+ * Get session children
349
+ *
350
+ * Retrieve all child sessions that were forked from the specified parent session.
351
+ */
352
+ children<ThrowOnError extends boolean = false>(parameters: {
353
+ sessionID: string;
354
+ directory?: string;
355
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionChildrenResponses, SessionChildrenErrors, ThrowOnError, "fields">;
356
+ /**
357
+ * Get session todos
358
+ *
359
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
360
+ */
361
+ todo<ThrowOnError extends boolean = false>(parameters: {
362
+ sessionID: string;
363
+ directory?: string;
364
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionTodoResponses, SessionTodoErrors, ThrowOnError, "fields">;
365
+ /**
366
+ * Initialize session
367
+ *
368
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
369
+ */
370
+ init<ThrowOnError extends boolean = false>(parameters: {
371
+ sessionID: string;
372
+ directory?: string;
373
+ modelID?: string;
374
+ providerID?: string;
375
+ messageID?: string;
376
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionInitResponses, SessionInitErrors, ThrowOnError, "fields">;
377
+ /**
378
+ * Fork session
379
+ *
380
+ * Create a new session by forking an existing session at a specific message point.
381
+ */
382
+ fork<ThrowOnError extends boolean = false>(parameters: {
383
+ sessionID: string;
384
+ directory?: string;
385
+ messageID?: string;
386
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionForkResponses, unknown, ThrowOnError, "fields">;
387
+ /**
388
+ * Abort session
389
+ *
390
+ * Abort an active session and stop any ongoing AI processing or command execution.
391
+ */
392
+ abort<ThrowOnError extends boolean = false>(parameters: {
393
+ sessionID: string;
394
+ directory?: string;
395
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
396
+ /**
397
+ * Unshare session
398
+ *
399
+ * Remove the shareable link for a session, making it private again.
400
+ */
401
+ unshare<ThrowOnError extends boolean = false>(parameters: {
402
+ sessionID: string;
403
+ directory?: string;
404
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError, "fields">;
405
+ /**
406
+ * Share session
407
+ *
408
+ * Create a shareable link for a session, allowing others to view the conversation.
409
+ */
410
+ share<ThrowOnError extends boolean = false>(parameters: {
411
+ sessionID: string;
412
+ directory?: string;
413
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
414
+ /**
415
+ * Get session diff
416
+ *
417
+ * Get all file changes (diffs) made during this session.
418
+ */
419
+ diff<ThrowOnError extends boolean = false>(parameters: {
420
+ sessionID: string;
421
+ directory?: string;
422
+ messageID?: string;
423
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDiffResponses, SessionDiffErrors, ThrowOnError, "fields">;
424
+ /**
425
+ * Summarize session
426
+ *
427
+ * Generate a concise summary of the session using AI compaction to preserve key information.
428
+ */
429
+ summarize<ThrowOnError extends boolean = false>(parameters: {
430
+ sessionID: string;
431
+ directory?: string;
432
+ providerID?: string;
433
+ modelID?: string;
434
+ auto?: boolean;
435
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
436
+ /**
437
+ * Get session messages
438
+ *
439
+ * Retrieve all messages in a session, including user prompts and AI responses.
440
+ */
441
+ messages<ThrowOnError extends boolean = false>(parameters: {
442
+ sessionID: string;
443
+ directory?: string;
444
+ limit?: number;
445
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
446
+ /**
447
+ * Send message
448
+ *
449
+ * Create and send a new message to a session, streaming the AI response.
450
+ */
451
+ prompt<ThrowOnError extends boolean = false>(parameters: {
452
+ sessionID: string;
453
+ directory?: string;
454
+ messageID?: string;
455
+ model?: {
456
+ providerID: string;
457
+ modelID: string;
458
+ };
459
+ agent?: string;
460
+ noReply?: boolean;
461
+ tools?: {
462
+ [key: string]: boolean;
463
+ };
464
+ system?: string;
465
+ variant?: string;
466
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
467
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
468
+ /**
469
+ * Get message
470
+ *
471
+ * Retrieve a specific message from a session by its message ID.
472
+ */
473
+ message<ThrowOnError extends boolean = false>(parameters: {
474
+ sessionID: string;
475
+ messageID: string;
476
+ directory?: string;
477
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses, SessionMessageErrors, ThrowOnError, "fields">;
478
+ /**
479
+ * Send async message
480
+ *
481
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
482
+ */
483
+ promptAsync<ThrowOnError extends boolean = false>(parameters: {
484
+ sessionID: string;
485
+ directory?: string;
486
+ messageID?: string;
487
+ model?: {
488
+ providerID: string;
489
+ modelID: string;
490
+ };
491
+ agent?: string;
492
+ noReply?: boolean;
493
+ tools?: {
494
+ [key: string]: boolean;
495
+ };
496
+ system?: string;
497
+ variant?: string;
498
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
499
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
500
+ /**
501
+ * Send command
502
+ *
503
+ * Send a new command to a session for execution by the AI assistant.
504
+ */
505
+ command<ThrowOnError extends boolean = false>(parameters: {
506
+ sessionID: string;
507
+ directory?: string;
508
+ messageID?: string;
509
+ agent?: string;
510
+ model?: string;
511
+ arguments?: string;
512
+ command?: string;
513
+ variant?: string;
514
+ parts?: Array<{
515
+ id?: string;
516
+ type: "file";
517
+ mime: string;
518
+ filename?: string;
519
+ url: string;
520
+ source?: FilePartSource;
521
+ }>;
522
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
523
+ /**
524
+ * Run shell command
525
+ *
526
+ * Execute a shell command within the session context and return the AI's response.
527
+ */
528
+ shell<ThrowOnError extends boolean = false>(parameters: {
529
+ sessionID: string;
530
+ directory?: string;
531
+ agent?: string;
532
+ model?: {
533
+ providerID: string;
534
+ modelID: string;
535
+ };
536
+ command?: string;
537
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
538
+ /**
539
+ * Revert message
540
+ *
541
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
542
+ */
543
+ revert<ThrowOnError extends boolean = false>(parameters: {
544
+ sessionID: string;
545
+ directory?: string;
546
+ messageID?: string;
547
+ partID?: string;
548
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
549
+ /**
550
+ * Restore reverted messages
551
+ *
552
+ * Restore all previously reverted messages in a session.
553
+ */
554
+ unrevert<ThrowOnError extends boolean = false>(parameters: {
555
+ sessionID: string;
556
+ directory?: string;
557
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
558
+ feedback: Feedback;
559
+ }
560
+ export declare class Part extends HeyApiClient {
561
+ /**
562
+ * Delete a part from a message
563
+ */
564
+ delete<ThrowOnError extends boolean = false>(parameters: {
565
+ sessionID: string;
566
+ messageID: string;
567
+ partID: string;
568
+ directory?: string;
569
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
570
+ /**
571
+ * Update a part in a message
572
+ */
573
+ update<ThrowOnError extends boolean = false>(parameters: {
574
+ sessionID: string;
575
+ messageID: string;
576
+ partID: string;
577
+ directory?: string;
578
+ part?: Part2;
579
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
580
+ }
581
+ export declare class Permission extends HeyApiClient {
582
+ /**
583
+ * Respond to permission
584
+ *
585
+ * Approve or deny a permission request from the AI assistant.
586
+ *
587
+ * @deprecated
588
+ */
589
+ respond<ThrowOnError extends boolean = false>(parameters: {
590
+ sessionID: string;
591
+ permissionID: string;
592
+ directory?: string;
593
+ response?: "once" | "always" | "reject";
594
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionRespondResponses, PermissionRespondErrors, ThrowOnError, "fields">;
595
+ /**
596
+ * Respond to permission request
597
+ *
598
+ * Approve or deny a permission request from the AI assistant.
599
+ */
600
+ reply<ThrowOnError extends boolean = false>(parameters: {
601
+ requestID: string;
602
+ directory?: string;
603
+ reply?: "once" | "always" | "reject";
604
+ message?: string;
605
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionReplyResponses, PermissionReplyErrors, ThrowOnError, "fields">;
606
+ /**
607
+ * List pending permissions
608
+ *
609
+ * Get all pending permission requests across all sessions.
610
+ */
611
+ list<ThrowOnError extends boolean = false>(parameters?: {
612
+ directory?: string;
613
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionListResponses, unknown, ThrowOnError, "fields">;
614
+ }
615
+ export declare class Question extends HeyApiClient {
616
+ /**
617
+ * List pending questions
618
+ *
619
+ * Get all pending question requests across all sessions.
620
+ */
621
+ list<ThrowOnError extends boolean = false>(parameters?: {
622
+ directory?: string;
623
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionListResponses, unknown, ThrowOnError, "fields">;
624
+ /**
625
+ * Reply to question request
626
+ *
627
+ * Provide answers to a question request from the AI assistant.
628
+ */
629
+ reply<ThrowOnError extends boolean = false>(parameters: {
630
+ requestID: string;
631
+ directory?: string;
632
+ answers?: Array<QuestionAnswer>;
633
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionReplyResponses, QuestionReplyErrors, ThrowOnError, "fields">;
634
+ /**
635
+ * Reject question request
636
+ *
637
+ * Reject a question request from the AI assistant.
638
+ */
639
+ reject<ThrowOnError extends boolean = false>(parameters: {
640
+ requestID: string;
641
+ directory?: string;
642
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
643
+ }
644
+ export declare class Cortex extends HeyApiClient {
645
+ /**
646
+ * List Cortex tasks
647
+ *
648
+ * List all background tasks, optionally filtered by session
649
+ */
650
+ list<ThrowOnError extends boolean = false>(parameters?: {
651
+ directory?: string;
652
+ sessionID?: string;
653
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CortexListResponses, CortexListErrors, ThrowOnError, "fields">;
654
+ /**
655
+ * Get Cortex task
656
+ *
657
+ * Get a specific background task by ID
658
+ */
659
+ get<ThrowOnError extends boolean = false>(parameters: {
660
+ taskID: string;
661
+ directory?: string;
662
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CortexGetResponses, CortexGetErrors, ThrowOnError, "fields">;
663
+ /**
664
+ * Get task output
665
+ *
666
+ * Get the output of a completed background task
667
+ */
668
+ output<ThrowOnError extends boolean = false>(parameters: {
669
+ taskID: string;
670
+ directory?: string;
671
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CortexOutputResponses, CortexOutputErrors, ThrowOnError, "fields">;
672
+ /**
673
+ * Cancel Cortex task
674
+ *
675
+ * Cancel a running background task
676
+ */
677
+ cancel<ThrowOnError extends boolean = false>(parameters: {
678
+ taskID: string;
679
+ directory?: string;
680
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CortexCancelResponses, CortexCancelErrors, ThrowOnError, "fields">;
681
+ }
682
+ export declare class Command extends HeyApiClient {
683
+ /**
684
+ * List commands
685
+ *
686
+ * Get a list of all available commands in the Synergy system.
687
+ */
688
+ list<ThrowOnError extends boolean = false>(parameters?: {
689
+ directory?: string;
690
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
691
+ }
692
+ export declare class Oauth extends HeyApiClient {
693
+ /**
694
+ * OAuth authorize
695
+ *
696
+ * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
697
+ */
698
+ authorize<ThrowOnError extends boolean = false>(parameters: {
699
+ providerID: string;
700
+ directory?: string;
701
+ method?: number;
702
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ThrowOnError, "fields">;
703
+ /**
704
+ * OAuth callback
705
+ *
706
+ * Handle the OAuth callback from a provider after user authorization.
707
+ */
708
+ callback<ThrowOnError extends boolean = false>(parameters: {
709
+ providerID: string;
710
+ directory?: string;
711
+ method?: number;
712
+ code?: string;
713
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, ThrowOnError, "fields">;
714
+ }
715
+ export declare class Provider extends HeyApiClient {
716
+ /**
717
+ * List providers
718
+ *
719
+ * Get a list of all available AI providers, including both available and connected ones.
720
+ */
721
+ list<ThrowOnError extends boolean = false>(parameters?: {
722
+ directory?: string;
723
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderListResponses, unknown, ThrowOnError, "fields">;
724
+ /**
725
+ * Get provider auth methods
726
+ *
727
+ * Retrieve available authentication methods for all AI providers.
728
+ */
729
+ auth<ThrowOnError extends boolean = false>(parameters?: {
730
+ directory?: string;
731
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthResponses, unknown, ThrowOnError, "fields">;
732
+ oauth: Oauth;
733
+ }
734
+ export declare class Find extends HeyApiClient {
735
+ /**
736
+ * Find text
737
+ *
738
+ * Search for text patterns across files in the project using ripgrep.
739
+ */
740
+ text<ThrowOnError extends boolean = false>(parameters: {
741
+ directory?: string;
742
+ pattern: string;
743
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
744
+ /**
745
+ * Find files
746
+ *
747
+ * Search for files or directories by name or pattern in the project directory.
748
+ */
749
+ files<ThrowOnError extends boolean = false>(parameters: {
750
+ directory?: string;
751
+ query: string;
752
+ dirs?: "true" | "false";
753
+ type?: "file" | "directory";
754
+ limit?: number;
755
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
756
+ /**
757
+ * Find symbols
758
+ *
759
+ * Search for workspace symbols like functions, classes, and variables using LSP.
760
+ */
761
+ symbols<ThrowOnError extends boolean = false>(parameters: {
762
+ directory?: string;
763
+ query: string;
764
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
765
+ }
766
+ export declare class File extends HeyApiClient {
767
+ /**
768
+ * List files
769
+ *
770
+ * List files and directories in a specified path.
771
+ */
772
+ list<ThrowOnError extends boolean = false>(parameters: {
773
+ directory?: string;
774
+ path: string;
775
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
776
+ /**
777
+ * Read file
778
+ *
779
+ * Read the content of a specified file.
780
+ */
781
+ read<ThrowOnError extends boolean = false>(parameters: {
782
+ directory?: string;
783
+ path: string;
784
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
785
+ /**
786
+ * Get file status
787
+ *
788
+ * Get the git status of all files in the project.
789
+ */
790
+ status<ThrowOnError extends boolean = false>(parameters?: {
791
+ directory?: string;
792
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
793
+ }
794
+ export declare class App extends HeyApiClient {
795
+ /**
796
+ * Write log
797
+ *
798
+ * Write a log entry to the server logs with specified level and metadata.
799
+ */
800
+ log<ThrowOnError extends boolean = false>(parameters?: {
801
+ directory?: string;
802
+ service?: string;
803
+ level?: "debug" | "info" | "error" | "warn";
804
+ message?: string;
805
+ extra?: {
806
+ [key: string]: unknown;
807
+ };
808
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
809
+ /**
810
+ * List agents
811
+ *
812
+ * Get a list of all available AI agents in the Synergy system.
813
+ */
814
+ agents<ThrowOnError extends boolean = false>(parameters?: {
815
+ directory?: string;
816
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
817
+ }
818
+ export declare class Auth extends HeyApiClient {
819
+ /**
820
+ * Remove MCP OAuth
821
+ *
822
+ * Remove OAuth credentials for an MCP server
823
+ */
824
+ remove<ThrowOnError extends boolean = false>(parameters: {
825
+ name: string;
826
+ directory?: string;
827
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthRemoveResponses, McpAuthRemoveErrors, ThrowOnError, "fields">;
828
+ /**
829
+ * Start MCP OAuth
830
+ *
831
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
832
+ */
833
+ start<ThrowOnError extends boolean = false>(parameters: {
834
+ name: string;
835
+ directory?: string;
836
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthStartResponses, McpAuthStartErrors, ThrowOnError, "fields">;
837
+ /**
838
+ * Complete MCP OAuth
839
+ *
840
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
841
+ */
842
+ callback<ThrowOnError extends boolean = false>(parameters: {
843
+ name: string;
844
+ directory?: string;
845
+ code?: string;
846
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthCallbackResponses, McpAuthCallbackErrors, ThrowOnError, "fields">;
847
+ /**
848
+ * Authenticate MCP OAuth
849
+ *
850
+ * Start OAuth flow and wait for callback (opens browser)
851
+ */
852
+ authenticate<ThrowOnError extends boolean = false>(parameters: {
853
+ name: string;
854
+ directory?: string;
855
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
856
+ /**
857
+ * Set auth credentials
858
+ *
859
+ * Set authentication credentials
860
+ */
861
+ set<ThrowOnError extends boolean = false>(parameters: {
862
+ providerID: string;
863
+ directory?: string;
864
+ auth?: Auth2;
865
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
866
+ }
867
+ export declare class Mcp extends HeyApiClient {
868
+ /**
869
+ * Get MCP status
870
+ *
871
+ * Get the status of all Model Context Protocol (MCP) servers.
872
+ */
873
+ status<ThrowOnError extends boolean = false>(parameters?: {
874
+ directory?: string;
875
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpStatusResponses, unknown, ThrowOnError, "fields">;
876
+ /**
877
+ * Add MCP server
878
+ *
879
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
880
+ */
881
+ add<ThrowOnError extends boolean = false>(parameters?: {
882
+ directory?: string;
883
+ name?: string;
884
+ config?: McpLocalConfig | McpRemoteConfig;
885
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAddResponses, McpAddErrors, ThrowOnError, "fields">;
886
+ /**
887
+ * Connect an MCP server
888
+ */
889
+ connect<ThrowOnError extends boolean = false>(parameters: {
890
+ name: string;
891
+ directory?: string;
892
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpConnectResponses, unknown, ThrowOnError, "fields">;
893
+ /**
894
+ * Disconnect an MCP server
895
+ */
896
+ disconnect<ThrowOnError extends boolean = false>(parameters: {
897
+ name: string;
898
+ directory?: string;
899
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
900
+ auth: Auth;
901
+ }
902
+ export declare class Resource extends HeyApiClient {
903
+ /**
904
+ * Get MCP resources
905
+ *
906
+ * Get all available MCP resources from connected servers. Optionally filter by name.
907
+ */
908
+ list<ThrowOnError extends boolean = false>(parameters?: {
909
+ directory?: string;
910
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalResourceListResponses, unknown, ThrowOnError, "fields">;
911
+ }
912
+ export declare class Experimental extends HeyApiClient {
913
+ resource: Resource;
914
+ }
915
+ export declare class Lsp extends HeyApiClient {
916
+ /**
917
+ * Get LSP status
918
+ *
919
+ * Get LSP server status
920
+ */
921
+ status<ThrowOnError extends boolean = false>(parameters?: {
922
+ directory?: string;
923
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
924
+ }
925
+ export declare class Formatter extends HeyApiClient {
926
+ /**
927
+ * Get formatter status
928
+ *
929
+ * Get formatter status
930
+ */
931
+ status<ThrowOnError extends boolean = false>(parameters?: {
932
+ directory?: string;
933
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
934
+ }
935
+ export declare class Control extends HeyApiClient {
936
+ /**
937
+ * Get next TUI request
938
+ *
939
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
940
+ */
941
+ next<ThrowOnError extends boolean = false>(parameters?: {
942
+ directory?: string;
943
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
944
+ /**
945
+ * Submit TUI response
946
+ *
947
+ * Submit a response to the TUI request queue to complete a pending request.
948
+ */
949
+ response<ThrowOnError extends boolean = false>(parameters?: {
950
+ directory?: string;
951
+ body?: unknown;
952
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
953
+ }
954
+ export declare class Tui extends HeyApiClient {
955
+ /**
956
+ * Append TUI prompt
957
+ *
958
+ * Append prompt to the TUI
959
+ */
960
+ appendPrompt<ThrowOnError extends boolean = false>(parameters?: {
961
+ directory?: string;
962
+ text?: string;
963
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
964
+ /**
965
+ * Open help dialog
966
+ *
967
+ * Open the help dialog in the TUI to display user assistance information.
968
+ */
969
+ openHelp<ThrowOnError extends boolean = false>(parameters?: {
970
+ directory?: string;
971
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
972
+ /**
973
+ * Open sessions dialog
974
+ *
975
+ * Open the session dialog
976
+ */
977
+ openSessions<ThrowOnError extends boolean = false>(parameters?: {
978
+ directory?: string;
979
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
980
+ /**
981
+ * Open themes dialog
982
+ *
983
+ * Open the theme dialog
984
+ */
985
+ openThemes<ThrowOnError extends boolean = false>(parameters?: {
986
+ directory?: string;
987
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
988
+ /**
989
+ * Open models dialog
990
+ *
991
+ * Open the model dialog
992
+ */
993
+ openModels<ThrowOnError extends boolean = false>(parameters?: {
994
+ directory?: string;
995
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
996
+ /**
997
+ * Submit TUI prompt
998
+ *
999
+ * Submit the prompt
1000
+ */
1001
+ submitPrompt<ThrowOnError extends boolean = false>(parameters?: {
1002
+ directory?: string;
1003
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
1004
+ /**
1005
+ * Clear TUI prompt
1006
+ *
1007
+ * Clear the prompt
1008
+ */
1009
+ clearPrompt<ThrowOnError extends boolean = false>(parameters?: {
1010
+ directory?: string;
1011
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
1012
+ /**
1013
+ * Execute TUI command
1014
+ *
1015
+ * Execute a TUI command (e.g. agent_cycle)
1016
+ */
1017
+ executeCommand<ThrowOnError extends boolean = false>(parameters?: {
1018
+ directory?: string;
1019
+ command?: string;
1020
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
1021
+ /**
1022
+ * Show TUI toast
1023
+ *
1024
+ * Show a toast notification in the TUI
1025
+ */
1026
+ showToast<ThrowOnError extends boolean = false>(parameters?: {
1027
+ directory?: string;
1028
+ title?: string;
1029
+ message?: string;
1030
+ variant?: "info" | "success" | "warning" | "error";
1031
+ duration?: number;
1032
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
1033
+ /**
1034
+ * Publish TUI event
1035
+ *
1036
+ * Publish a TUI event
1037
+ */
1038
+ publish<ThrowOnError extends boolean = false>(parameters?: {
1039
+ directory?: string;
1040
+ body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
1041
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
1042
+ /**
1043
+ * Select session
1044
+ *
1045
+ * Navigate the TUI to display the specified session.
1046
+ */
1047
+ selectSession<ThrowOnError extends boolean = false>(parameters?: {
1048
+ directory?: string;
1049
+ sessionID?: string;
1050
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
1051
+ control: Control;
1052
+ }
1053
+ export declare class Event extends HeyApiClient {
1054
+ /**
1055
+ * Subscribe to events
1056
+ *
1057
+ * Get events
1058
+ */
1059
+ subscribe<ThrowOnError extends boolean = false>(parameters?: {
1060
+ directory?: string;
1061
+ }, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
1062
+ }
1063
+ export declare class SynergyClient extends HeyApiClient {
1064
+ static readonly __registry: HeyApiRegistry<SynergyClient>;
1065
+ constructor(args?: {
1066
+ client?: Client;
1067
+ key?: string;
1068
+ });
1069
+ global: Global;
1070
+ project: Project;
1071
+ pty: Pty;
1072
+ config: Config;
1073
+ tool: Tool;
1074
+ instance: Instance;
1075
+ path: Path;
1076
+ worktree: Worktree;
1077
+ vcs: Vcs;
1078
+ session: Session;
1079
+ part: Part;
1080
+ permission: Permission;
1081
+ question: Question;
1082
+ cortex: Cortex;
1083
+ command: Command;
1084
+ provider: Provider;
1085
+ find: Find;
1086
+ file: File;
1087
+ app: App;
1088
+ mcp: Mcp;
1089
+ experimental: Experimental;
1090
+ lsp: Lsp;
1091
+ formatter: Formatter;
1092
+ tui: Tui;
1093
+ auth: Auth;
1094
+ event: Event;
1095
+ }
1096
+ export {};