@jonsoc/sdk 1.1.34 → 1.1.46

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