@hopcoderx/sdk 1.0.1

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