@nikcli-ai/sdk 0.0.6

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 (81) hide show
  1. package/dist/client.d.ts +7 -0
  2. package/dist/client.js +25 -0
  3. package/dist/cloud/client.d.ts +45 -0
  4. package/dist/cloud/client.js +125 -0
  5. package/dist/cloud/index.d.ts +2 -0
  6. package/dist/cloud/index.js +2 -0
  7. package/dist/cloud/types.d.ts +100 -0
  8. package/dist/cloud/types.js +1 -0
  9. package/dist/crypto/e2e.d.ts +30 -0
  10. package/dist/crypto/e2e.js +172 -0
  11. package/dist/crypto/index.d.ts +1 -0
  12. package/dist/crypto/index.js +1 -0
  13. package/dist/gen/client/client.gen.d.ts +2 -0
  14. package/dist/gen/client/client.gen.js +165 -0
  15. package/dist/gen/client/index.d.ts +7 -0
  16. package/dist/gen/client/index.js +5 -0
  17. package/dist/gen/client/types.gen.d.ts +127 -0
  18. package/dist/gen/client/types.gen.js +2 -0
  19. package/dist/gen/client/utils.gen.d.ts +38 -0
  20. package/dist/gen/client/utils.gen.js +226 -0
  21. package/dist/gen/client.gen.d.ts +12 -0
  22. package/dist/gen/client.gen.js +5 -0
  23. package/dist/gen/core/auth.gen.d.ts +18 -0
  24. package/dist/gen/core/auth.gen.js +14 -0
  25. package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
  26. package/dist/gen/core/bodySerializer.gen.js +57 -0
  27. package/dist/gen/core/params.gen.d.ts +33 -0
  28. package/dist/gen/core/params.gen.js +89 -0
  29. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  30. package/dist/gen/core/pathSerializer.gen.js +106 -0
  31. package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
  32. package/dist/gen/core/serverSentEvents.gen.js +117 -0
  33. package/dist/gen/core/types.gen.d.ts +78 -0
  34. package/dist/gen/core/types.gen.js +2 -0
  35. package/dist/gen/core/utils.gen.d.ts +14 -0
  36. package/dist/gen/core/utils.gen.js +69 -0
  37. package/dist/gen/sdk.gen.d.ts +403 -0
  38. package/dist/gen/sdk.gen.js +881 -0
  39. package/dist/gen/types.gen.d.ts +3380 -0
  40. package/dist/gen/types.gen.js +2 -0
  41. package/dist/index.d.ts +12 -0
  42. package/dist/index.js +18 -0
  43. package/dist/server.d.ts +23 -0
  44. package/dist/server.js +94 -0
  45. package/dist/v2/client.d.ts +8 -0
  46. package/dist/v2/client.js +33 -0
  47. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  48. package/dist/v2/gen/client/client.gen.js +232 -0
  49. package/dist/v2/gen/client/index.d.ts +8 -0
  50. package/dist/v2/gen/client/index.js +6 -0
  51. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  52. package/dist/v2/gen/client/types.gen.js +2 -0
  53. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  54. package/dist/v2/gen/client/utils.gen.js +226 -0
  55. package/dist/v2/gen/client.gen.d.ts +12 -0
  56. package/dist/v2/gen/client.gen.js +3 -0
  57. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  58. package/dist/v2/gen/core/auth.gen.js +14 -0
  59. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  60. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  61. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  62. package/dist/v2/gen/core/params.gen.js +102 -0
  63. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  64. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  65. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  66. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  67. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  68. package/dist/v2/gen/core/serverSentEvents.gen.js +133 -0
  69. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  70. package/dist/v2/gen/core/types.gen.js +2 -0
  71. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  72. package/dist/v2/gen/core/utils.gen.js +87 -0
  73. package/dist/v2/gen/sdk.gen.d.ts +1781 -0
  74. package/dist/v2/gen/sdk.gen.js +3653 -0
  75. package/dist/v2/gen/types.gen.d.ts +6272 -0
  76. package/dist/v2/gen/types.gen.js +2 -0
  77. package/dist/v2/index.d.ts +10 -0
  78. package/dist/v2/index.js +16 -0
  79. package/dist/v2/server.d.ts +23 -0
  80. package/dist/v2/server.js +94 -0
  81. package/package.json +45 -0
@@ -0,0 +1,1781 @@
1
+ import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
+ import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth7, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DbeditListResponses, DbeditReplyErrors, DbeditReplyResponses, DbEditRequest, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, MobileAuthTokenCreateResponses, MobileAuthTokenListResponses, MobileAuthTokenRevokeResponses, MobileBootstrapResponses, MobileCommandListResponses, MobileGithubAuthRemoveResponses, MobileGithubAuthSetErrors, MobileGithubAuthSetResponses, MobileGithubBranchesResponses, MobileGithubDeviceAuthPollInput, MobileGithubImportErrors, MobileGithubImportRequest, MobileGithubImportResponses, MobileGithubImportsResponses, MobileGithubOauthDevicePollErrors, MobileGithubOauthDevicePollResponses, MobileGithubOauthDeviceStartErrors, MobileGithubOauthDeviceStartResponses, MobileGithubPublishInput, MobileGithubReposResponses, MobileGithubSessionCleanupErrors, MobileGithubSessionCleanupResponses, MobileGithubSessionCreateErrors, MobileGithubSessionCreateInput, MobileGithubSessionCreateResponses, MobileGithubSessionPublishErrors, MobileGithubSessionPublishResponses, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobileSessionAbortResponses, MobileSessionCommandErrors, MobileSessionCommandInput, MobileSessionCommandListErrors, MobileSessionCommandListResponses, MobileSessionCommandResponses, MobileSessionCreateErrors, MobileSessionCreateInput, MobileSessionCreateResponses, MobileSessionDetailErrors, MobileSessionDetailResponses, MobileSessionDiffResponses, MobileSessionListResponses, MobileSessionMessageErrors, MobileSessionMessageResponses, MobileSessionRenameResponses, MobileSessionStreamResponses, MobileWorktreeCreateErrors, MobileWorktreeCreateResponses, MobileWorktreeRemoveResponses, MobileWorktreeResetResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiSetErrors, ProviderApiSetResponses, ProviderAuthRemoveResponses, 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, SessionGithub, 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 Global extends HeyApiClient {
29
+ /**
30
+ * Get health
31
+ *
32
+ * Get health information about the Nikcli 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 Nikcli 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 Nikcli 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 Nikcli.
53
+ */
54
+ list<ThrowOnError extends boolean = false>(parameters?: {
55
+ directory?: string;
56
+ workspace?: string;
57
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectListResponses, unknown, ThrowOnError, "fields">;
58
+ /**
59
+ * Get current project
60
+ *
61
+ * Retrieve the currently active project that Nikcli is working with.
62
+ */
63
+ current<ThrowOnError extends boolean = false>(parameters?: {
64
+ directory?: string;
65
+ workspace?: string;
66
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
67
+ /**
68
+ * Update project
69
+ *
70
+ * Update project properties such as name, icon and color.
71
+ */
72
+ update<ThrowOnError extends boolean = false>(parameters: {
73
+ projectID: string;
74
+ directory?: string;
75
+ workspace?: string;
76
+ name?: string;
77
+ icon?: {
78
+ url?: string;
79
+ override?: string;
80
+ color?: string;
81
+ };
82
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
83
+ }
84
+ export declare class Pty extends HeyApiClient {
85
+ /**
86
+ * List PTY sessions
87
+ *
88
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by Nikcli.
89
+ */
90
+ list<ThrowOnError extends boolean = false>(parameters?: {
91
+ directory?: string;
92
+ workspace?: string;
93
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyListResponses, unknown, ThrowOnError, "fields">;
94
+ /**
95
+ * Create PTY session
96
+ *
97
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
98
+ */
99
+ create<ThrowOnError extends boolean = false>(parameters?: {
100
+ directory?: string;
101
+ workspace?: string;
102
+ command?: string;
103
+ args?: Array<string>;
104
+ cwd?: string;
105
+ title?: string;
106
+ env?: {
107
+ [key: string]: string;
108
+ };
109
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyCreateResponses, PtyCreateErrors, ThrowOnError, "fields">;
110
+ /**
111
+ * Remove PTY session
112
+ *
113
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
114
+ */
115
+ remove<ThrowOnError extends boolean = false>(parameters: {
116
+ ptyID: string;
117
+ directory?: string;
118
+ workspace?: 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
+ workspace?: string;
129
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyGetResponses, PtyGetErrors, ThrowOnError, "fields">;
130
+ /**
131
+ * Update PTY session
132
+ *
133
+ * Update properties of an existing pseudo-terminal (PTY) session.
134
+ */
135
+ update<ThrowOnError extends boolean = false>(parameters: {
136
+ ptyID: string;
137
+ directory?: string;
138
+ workspace?: string;
139
+ title?: string;
140
+ size?: {
141
+ rows: number;
142
+ cols: number;
143
+ };
144
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyUpdateResponses, PtyUpdateErrors, ThrowOnError, "fields">;
145
+ /**
146
+ * Connect to PTY session
147
+ *
148
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
149
+ */
150
+ connect<ThrowOnError extends boolean = false>(parameters: {
151
+ ptyID: string;
152
+ directory?: string;
153
+ workspace?: string;
154
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
155
+ }
156
+ export declare class Config extends HeyApiClient {
157
+ /**
158
+ * Get configuration
159
+ *
160
+ * Retrieve the current Nikcli configuration settings and preferences.
161
+ */
162
+ get<ThrowOnError extends boolean = false>(parameters?: {
163
+ directory?: string;
164
+ workspace?: string;
165
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigGetResponses, unknown, ThrowOnError, "fields">;
166
+ /**
167
+ * Update configuration
168
+ *
169
+ * Update Nikcli configuration settings and preferences.
170
+ */
171
+ update<ThrowOnError extends boolean = false>(parameters?: {
172
+ directory?: string;
173
+ workspace?: string;
174
+ config?: Config2;
175
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
176
+ /**
177
+ * List config providers
178
+ *
179
+ * Get a list of all configured AI providers and their default models.
180
+ */
181
+ providers<ThrowOnError extends boolean = false>(parameters?: {
182
+ directory?: string;
183
+ workspace?: string;
184
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigProvidersResponses, unknown, ThrowOnError, "fields">;
185
+ }
186
+ export declare class Tool extends HeyApiClient {
187
+ /**
188
+ * List tool IDs
189
+ *
190
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
191
+ */
192
+ ids<ThrowOnError extends boolean = false>(parameters?: {
193
+ directory?: string;
194
+ workspace?: string;
195
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolIdsResponses, ToolIdsErrors, ThrowOnError, "fields">;
196
+ /**
197
+ * List tools
198
+ *
199
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
200
+ */
201
+ list<ThrowOnError extends boolean = false>(parameters: {
202
+ directory?: string;
203
+ workspace?: string;
204
+ provider: string;
205
+ model: string;
206
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ToolListResponses, ToolListErrors, ThrowOnError, "fields">;
207
+ }
208
+ export declare class Worktree extends HeyApiClient {
209
+ /**
210
+ * Remove worktree
211
+ *
212
+ * Remove a git worktree and delete its branch.
213
+ */
214
+ remove<ThrowOnError extends boolean = false>(parameters?: {
215
+ directory?: string;
216
+ workspace?: string;
217
+ worktreeRemoveInput?: WorktreeRemoveInput;
218
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeRemoveResponses, WorktreeRemoveErrors, ThrowOnError, "fields">;
219
+ /**
220
+ * List worktrees
221
+ *
222
+ * List all sandbox worktrees for the current project.
223
+ */
224
+ list<ThrowOnError extends boolean = false>(parameters?: {
225
+ directory?: string;
226
+ workspace?: string;
227
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeListResponses, unknown, ThrowOnError, "fields">;
228
+ /**
229
+ * Create worktree
230
+ *
231
+ * Create a new git worktree for the current project.
232
+ */
233
+ create<ThrowOnError extends boolean = false>(parameters?: {
234
+ directory?: string;
235
+ workspace?: string;
236
+ worktreeCreateInput?: WorktreeCreateInput;
237
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeCreateResponses, WorktreeCreateErrors, ThrowOnError, "fields">;
238
+ /**
239
+ * Reset worktree
240
+ *
241
+ * Reset a worktree branch to the primary default branch.
242
+ */
243
+ reset<ThrowOnError extends boolean = false>(parameters?: {
244
+ directory?: string;
245
+ workspace?: string;
246
+ worktreeResetInput?: WorktreeResetInput;
247
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<WorktreeResetResponses, WorktreeResetErrors, ThrowOnError, "fields">;
248
+ }
249
+ export declare class Workspace extends HeyApiClient {
250
+ /**
251
+ * Remove workspace
252
+ *
253
+ * Remove an existing workspace.
254
+ */
255
+ remove<ThrowOnError extends boolean = false>(parameters: {
256
+ id: string;
257
+ directory?: string;
258
+ workspace?: string;
259
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRemoveErrors, ThrowOnError, "fields">;
260
+ /**
261
+ * Create workspace
262
+ *
263
+ * Create a workspace for the current project.
264
+ */
265
+ create<ThrowOnError extends boolean = false>(parameters: {
266
+ id: string;
267
+ directory?: string;
268
+ workspace?: string;
269
+ branch?: string | null;
270
+ config?: {
271
+ directory: string;
272
+ type: "worktree";
273
+ } | {
274
+ directory: string;
275
+ type: "container";
276
+ runtime: "docker" | "podman";
277
+ image: string;
278
+ containerName: string;
279
+ port: number;
280
+ serverUrl: string;
281
+ };
282
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceCreateErrors, ThrowOnError, "fields">;
283
+ /**
284
+ * List workspaces
285
+ *
286
+ * List all workspaces.
287
+ */
288
+ list<ThrowOnError extends boolean = false>(parameters?: {
289
+ directory?: string;
290
+ workspace?: string;
291
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceListResponses, unknown, ThrowOnError, "fields">;
292
+ }
293
+ export declare class Resource extends HeyApiClient {
294
+ /**
295
+ * Get MCP resources
296
+ *
297
+ * Get all available MCP resources from connected servers. Optionally filter by name.
298
+ */
299
+ list<ThrowOnError extends boolean = false>(parameters?: {
300
+ directory?: string;
301
+ workspace?: string;
302
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalResourceListResponses, unknown, ThrowOnError, "fields">;
303
+ }
304
+ export declare class Experimental extends HeyApiClient {
305
+ private _workspace?;
306
+ get workspace(): Workspace;
307
+ private _resource?;
308
+ get resource(): Resource;
309
+ }
310
+ export declare class Session extends HeyApiClient {
311
+ /**
312
+ * List sessions
313
+ *
314
+ * Get a list of all Nikcli sessions, sorted by most recently updated.
315
+ */
316
+ list<ThrowOnError extends boolean = false>(parameters?: {
317
+ directory?: string;
318
+ workspace?: string;
319
+ roots?: boolean;
320
+ start?: number;
321
+ search?: string;
322
+ limit?: number;
323
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionListResponses, unknown, ThrowOnError, "fields">;
324
+ /**
325
+ * Create session
326
+ *
327
+ * Create a new Nikcli session for interacting with AI assistants and managing conversations.
328
+ */
329
+ create<ThrowOnError extends boolean = false>(parameters?: {
330
+ directory?: string;
331
+ workspace?: string;
332
+ parentID?: string;
333
+ title?: string;
334
+ permission?: PermissionRuleset;
335
+ skills?: Array<string>;
336
+ github?: SessionGithub;
337
+ workspaceID?: string;
338
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCreateResponses, SessionCreateErrors, ThrowOnError, "fields">;
339
+ /**
340
+ * Get session status
341
+ *
342
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
343
+ */
344
+ status<ThrowOnError extends boolean = false>(parameters?: {
345
+ directory?: string;
346
+ workspace?: string;
347
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionStatusResponses, SessionStatusErrors, ThrowOnError, "fields">;
348
+ /**
349
+ * Delete session
350
+ *
351
+ * Delete a session and permanently remove all associated data, including messages and history.
352
+ */
353
+ delete<ThrowOnError extends boolean = false>(parameters: {
354
+ sessionID: string;
355
+ directory?: string;
356
+ workspace?: string;
357
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteResponses, SessionDeleteErrors, ThrowOnError, "fields">;
358
+ /**
359
+ * Get session
360
+ *
361
+ * Retrieve detailed information about a specific Nikcli session.
362
+ */
363
+ get<ThrowOnError extends boolean = false>(parameters: {
364
+ sessionID: string;
365
+ directory?: string;
366
+ workspace?: string;
367
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionGetResponses, SessionGetErrors, ThrowOnError, "fields">;
368
+ /**
369
+ * Update session
370
+ *
371
+ * Update properties of an existing session, such as title or other metadata.
372
+ */
373
+ update<ThrowOnError extends boolean = false>(parameters: {
374
+ sessionID: string;
375
+ directory?: string;
376
+ workspace?: string;
377
+ title?: string;
378
+ time?: {
379
+ archived?: number;
380
+ };
381
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError, "fields">;
382
+ /**
383
+ * Get session children
384
+ *
385
+ * Retrieve all child sessions that were forked from the specified parent session.
386
+ */
387
+ children<ThrowOnError extends boolean = false>(parameters: {
388
+ sessionID: string;
389
+ directory?: string;
390
+ workspace?: string;
391
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionChildrenResponses, SessionChildrenErrors, ThrowOnError, "fields">;
392
+ /**
393
+ * Get session todos
394
+ *
395
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
396
+ */
397
+ todo<ThrowOnError extends boolean = false>(parameters: {
398
+ sessionID: string;
399
+ directory?: string;
400
+ workspace?: string;
401
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionTodoResponses, SessionTodoErrors, ThrowOnError, "fields">;
402
+ /**
403
+ * Initialize session
404
+ *
405
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
406
+ */
407
+ init<ThrowOnError extends boolean = false>(parameters: {
408
+ sessionID: string;
409
+ directory?: string;
410
+ workspace?: string;
411
+ modelID?: string;
412
+ providerID?: string;
413
+ messageID?: string;
414
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionInitResponses, SessionInitErrors, ThrowOnError, "fields">;
415
+ /**
416
+ * Fork session
417
+ *
418
+ * Create a new session by forking an existing session at a specific message point.
419
+ */
420
+ fork<ThrowOnError extends boolean = false>(parameters: {
421
+ sessionID: string;
422
+ directory?: string;
423
+ workspace?: string;
424
+ messageID?: string;
425
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionForkResponses, unknown, ThrowOnError, "fields">;
426
+ /**
427
+ * Abort session
428
+ *
429
+ * Abort an active session and stop any ongoing AI processing or command execution.
430
+ */
431
+ abort<ThrowOnError extends boolean = false>(parameters: {
432
+ sessionID: string;
433
+ directory?: string;
434
+ workspace?: string;
435
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
436
+ /**
437
+ * Unshare session
438
+ *
439
+ * Remove the shareable link for a session, making it private again.
440
+ */
441
+ unshare<ThrowOnError extends boolean = false>(parameters: {
442
+ sessionID: string;
443
+ directory?: string;
444
+ workspace?: string;
445
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError, "fields">;
446
+ /**
447
+ * Share session
448
+ *
449
+ * Create a shareable link for a session, allowing others to view the conversation.
450
+ */
451
+ share<ThrowOnError extends boolean = false>(parameters: {
452
+ sessionID: string;
453
+ directory?: string;
454
+ workspace?: string;
455
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
456
+ /**
457
+ * Get message diff
458
+ *
459
+ * Get the file changes (diff) that resulted from a specific user message in the session.
460
+ */
461
+ diff<ThrowOnError extends boolean = false>(parameters: {
462
+ sessionID: string;
463
+ directory?: string;
464
+ workspace?: string;
465
+ messageID?: string;
466
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDiffResponses, unknown, ThrowOnError, "fields">;
467
+ /**
468
+ * Summarize session
469
+ *
470
+ * Generate a concise summary of the session using AI compaction to preserve key information.
471
+ */
472
+ summarize<ThrowOnError extends boolean = false>(parameters: {
473
+ sessionID: string;
474
+ directory?: string;
475
+ workspace?: string;
476
+ providerID?: string;
477
+ modelID?: string;
478
+ auto?: boolean;
479
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
480
+ /**
481
+ * Get session messages
482
+ *
483
+ * Retrieve all messages in a session, including user prompts and AI responses.
484
+ */
485
+ messages<ThrowOnError extends boolean = false>(parameters: {
486
+ sessionID: string;
487
+ directory?: string;
488
+ workspace?: string;
489
+ limit?: number;
490
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
491
+ /**
492
+ * Send message
493
+ *
494
+ * Create and send a new message to a session, streaming the AI response.
495
+ */
496
+ prompt<ThrowOnError extends boolean = false>(parameters: {
497
+ sessionID: string;
498
+ directory?: string;
499
+ workspace?: string;
500
+ messageID?: string;
501
+ model?: {
502
+ providerID: string;
503
+ modelID: string;
504
+ };
505
+ agent?: string;
506
+ noReply?: boolean;
507
+ tools?: {
508
+ [key: string]: boolean;
509
+ };
510
+ format?: OutputFormat;
511
+ system?: string;
512
+ variant?: string;
513
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
514
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
515
+ /**
516
+ * Get message
517
+ *
518
+ * Retrieve a specific message from a session by its message ID.
519
+ */
520
+ message<ThrowOnError extends boolean = false>(parameters: {
521
+ sessionID: string;
522
+ messageID: string;
523
+ directory?: string;
524
+ workspace?: string;
525
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses, SessionMessageErrors, ThrowOnError, "fields">;
526
+ /**
527
+ * Send async message
528
+ *
529
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
530
+ */
531
+ promptAsync<ThrowOnError extends boolean = false>(parameters: {
532
+ sessionID: string;
533
+ directory?: string;
534
+ workspace?: string;
535
+ messageID?: string;
536
+ model?: {
537
+ providerID: string;
538
+ modelID: string;
539
+ };
540
+ agent?: string;
541
+ noReply?: boolean;
542
+ tools?: {
543
+ [key: string]: boolean;
544
+ };
545
+ format?: OutputFormat;
546
+ system?: string;
547
+ variant?: string;
548
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
549
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
550
+ /**
551
+ * Send command
552
+ *
553
+ * Send a new command to a session for execution by the AI assistant.
554
+ */
555
+ command<ThrowOnError extends boolean = false>(parameters: {
556
+ sessionID: string;
557
+ directory?: string;
558
+ workspace?: string;
559
+ messageID?: string;
560
+ agent?: string;
561
+ model?: string;
562
+ arguments?: string;
563
+ command?: string;
564
+ variant?: string;
565
+ parts?: Array<{
566
+ id?: string;
567
+ type: "file";
568
+ mime: string;
569
+ filename?: string;
570
+ url: string;
571
+ source?: FilePartSource;
572
+ }>;
573
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
574
+ /**
575
+ * Run shell command
576
+ *
577
+ * Execute a shell command within the session context and return the AI's response.
578
+ */
579
+ shell<ThrowOnError extends boolean = false>(parameters: {
580
+ sessionID: string;
581
+ directory?: string;
582
+ workspace?: string;
583
+ agent?: string;
584
+ model?: {
585
+ providerID: string;
586
+ modelID: string;
587
+ };
588
+ command?: string;
589
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
590
+ /**
591
+ * Revert message
592
+ *
593
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
594
+ */
595
+ revert<ThrowOnError extends boolean = false>(parameters: {
596
+ sessionID: string;
597
+ directory?: string;
598
+ workspace?: string;
599
+ messageID?: string;
600
+ partID?: string;
601
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
602
+ /**
603
+ * Restore reverted messages
604
+ *
605
+ * Restore all previously reverted messages in a session.
606
+ */
607
+ unrevert<ThrowOnError extends boolean = false>(parameters: {
608
+ sessionID: string;
609
+ directory?: string;
610
+ workspace?: string;
611
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
612
+ }
613
+ export declare class Part extends HeyApiClient {
614
+ /**
615
+ * Delete a part from a message
616
+ */
617
+ delete<ThrowOnError extends boolean = false>(parameters: {
618
+ sessionID: string;
619
+ messageID: string;
620
+ partID: string;
621
+ directory?: string;
622
+ workspace?: string;
623
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartDeleteResponses, PartDeleteErrors, ThrowOnError, "fields">;
624
+ /**
625
+ * Update a part in a message
626
+ */
627
+ update<ThrowOnError extends boolean = false>(parameters: {
628
+ sessionID: string;
629
+ messageID: string;
630
+ partID: string;
631
+ directory?: string;
632
+ workspace?: string;
633
+ part?: Part2;
634
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PartUpdateResponses, PartUpdateErrors, ThrowOnError, "fields">;
635
+ }
636
+ export declare class Permission extends HeyApiClient {
637
+ /**
638
+ * Respond to permission
639
+ *
640
+ * Approve or deny a permission request from the AI assistant.
641
+ *
642
+ * @deprecated
643
+ */
644
+ respond<ThrowOnError extends boolean = false>(parameters: {
645
+ sessionID: string;
646
+ permissionID: string;
647
+ directory?: string;
648
+ workspace?: string;
649
+ response?: "once" | "always" | "reject";
650
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionRespondResponses, PermissionRespondErrors, ThrowOnError, "fields">;
651
+ /**
652
+ * Respond to permission request
653
+ *
654
+ * Approve or deny a permission request from the AI assistant.
655
+ */
656
+ reply<ThrowOnError extends boolean = false>(parameters: {
657
+ requestID: string;
658
+ directory?: string;
659
+ workspace?: string;
660
+ reply?: "once" | "always" | "reject";
661
+ message?: string;
662
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionReplyResponses, PermissionReplyErrors, ThrowOnError, "fields">;
663
+ /**
664
+ * List pending permissions
665
+ *
666
+ * Get all pending permission requests across all sessions.
667
+ */
668
+ list<ThrowOnError extends boolean = false>(parameters?: {
669
+ directory?: string;
670
+ workspace?: string;
671
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PermissionListResponses, unknown, ThrowOnError, "fields">;
672
+ }
673
+ export declare class Dbedit extends HeyApiClient {
674
+ /**
675
+ * Respond to database edit request
676
+ *
677
+ * Accept, edit, or reject a database edit request from the AI assistant.
678
+ */
679
+ reply<ThrowOnError extends boolean = false>(parameters: {
680
+ requestID: string;
681
+ directory?: string;
682
+ workspace?: string;
683
+ reply?: "accept" | "edit" | "reject";
684
+ modified?: DbEditRequest;
685
+ message?: string;
686
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<DbeditReplyResponses, DbeditReplyErrors, ThrowOnError, "fields">;
687
+ /**
688
+ * List pending DB edits
689
+ *
690
+ * Get all pending database edit requests across all sessions.
691
+ */
692
+ list<ThrowOnError extends boolean = false>(parameters?: {
693
+ directory?: string;
694
+ workspace?: string;
695
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<DbeditListResponses, unknown, ThrowOnError, "fields">;
696
+ }
697
+ export declare class Question extends HeyApiClient {
698
+ /**
699
+ * List pending questions
700
+ *
701
+ * Get all pending question requests across all sessions.
702
+ */
703
+ list<ThrowOnError extends boolean = false>(parameters?: {
704
+ directory?: string;
705
+ workspace?: string;
706
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionListResponses, unknown, ThrowOnError, "fields">;
707
+ /**
708
+ * Reply to question request
709
+ *
710
+ * Provide answers to a question request from the AI assistant.
711
+ */
712
+ reply<ThrowOnError extends boolean = false>(parameters: {
713
+ requestID: string;
714
+ directory?: string;
715
+ workspace?: string;
716
+ answers?: Array<QuestionAnswer>;
717
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionReplyResponses, QuestionReplyErrors, ThrowOnError, "fields">;
718
+ /**
719
+ * Reject question request
720
+ *
721
+ * Reject a question request from the AI assistant.
722
+ */
723
+ reject<ThrowOnError extends boolean = false>(parameters: {
724
+ requestID: string;
725
+ directory?: string;
726
+ workspace?: string;
727
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<QuestionRejectResponses, QuestionRejectErrors, ThrowOnError, "fields">;
728
+ }
729
+ export declare class Api extends HeyApiClient {
730
+ /**
731
+ * Set provider API key
732
+ *
733
+ * Store an API key for a provider and refresh the current instance cache.
734
+ */
735
+ set<ThrowOnError extends boolean = false>(parameters: {
736
+ providerID: string;
737
+ directory?: string;
738
+ workspace?: string;
739
+ key?: string;
740
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderApiSetResponses, ProviderApiSetErrors, ThrowOnError, "fields">;
741
+ }
742
+ export declare class Auth extends HeyApiClient {
743
+ /**
744
+ * Remove provider credentials
745
+ *
746
+ * Remove stored credentials for a provider and refresh the current instance cache.
747
+ */
748
+ remove<ThrowOnError extends boolean = false>(parameters: {
749
+ providerID: string;
750
+ directory?: string;
751
+ workspace?: string;
752
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthRemoveResponses, unknown, ThrowOnError, "fields">;
753
+ }
754
+ export declare class Oauth extends HeyApiClient {
755
+ /**
756
+ * OAuth authorize
757
+ *
758
+ * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
759
+ */
760
+ authorize<ThrowOnError extends boolean = false>(parameters: {
761
+ providerID: string;
762
+ directory?: string;
763
+ workspace?: string;
764
+ method?: number;
765
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ThrowOnError, "fields">;
766
+ /**
767
+ * OAuth callback
768
+ *
769
+ * Handle the OAuth callback from a provider after user authorization.
770
+ */
771
+ callback<ThrowOnError extends boolean = false>(parameters: {
772
+ providerID: string;
773
+ directory?: string;
774
+ workspace?: string;
775
+ method?: number;
776
+ code?: string;
777
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, ThrowOnError, "fields">;
778
+ }
779
+ export declare class Provider extends HeyApiClient {
780
+ /**
781
+ * List providers
782
+ *
783
+ * Get a list of all available AI providers, including both available and connected ones.
784
+ */
785
+ list<ThrowOnError extends boolean = false>(parameters?: {
786
+ directory?: string;
787
+ workspace?: string;
788
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderListResponses, unknown, ThrowOnError, "fields">;
789
+ /**
790
+ * Get provider auth methods
791
+ *
792
+ * Retrieve available authentication methods for all AI providers.
793
+ */
794
+ auth<ThrowOnError extends boolean = false>(parameters?: {
795
+ directory?: string;
796
+ workspace?: string;
797
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderAuthResponses, unknown, ThrowOnError, "fields">;
798
+ private _api?;
799
+ get api(): Api;
800
+ private _auth?;
801
+ get auth2(): Auth;
802
+ private _oauth?;
803
+ get oauth(): Oauth;
804
+ }
805
+ export declare class Token extends HeyApiClient {
806
+ /**
807
+ * List mobile auth tokens
808
+ *
809
+ * List all active mobile Bearer tokens.
810
+ */
811
+ list<ThrowOnError extends boolean = false>(parameters?: {
812
+ directory?: string;
813
+ workspace?: string;
814
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileAuthTokenListResponses, unknown, ThrowOnError, "fields">;
815
+ /**
816
+ * Create mobile auth token
817
+ *
818
+ * Exchange valid Basic auth credentials for a long-lived mobile Bearer token.
819
+ */
820
+ create<ThrowOnError extends boolean = false>(parameters?: {
821
+ directory?: string;
822
+ workspace?: string;
823
+ name?: string;
824
+ expiresInDays?: number;
825
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileAuthTokenCreateResponses, unknown, ThrowOnError, "fields">;
826
+ /**
827
+ * Revoke mobile auth token
828
+ *
829
+ * Revoke a previously issued mobile Bearer token.
830
+ */
831
+ revoke<ThrowOnError extends boolean = false>(parameters: {
832
+ id: string;
833
+ directory?: string;
834
+ workspace?: string;
835
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileAuthTokenRevokeResponses, unknown, ThrowOnError, "fields">;
836
+ }
837
+ export declare class Auth2 extends HeyApiClient {
838
+ private _token?;
839
+ get token(): Token;
840
+ }
841
+ export declare class Stash extends HeyApiClient {
842
+ /**
843
+ * List prompt stash for mobile
844
+ *
845
+ * Return reusable prompt snippets stored on the Nikcli host.
846
+ */
847
+ list<ThrowOnError extends boolean = false>(parameters?: {
848
+ directory?: string;
849
+ workspace?: string;
850
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileMemoryStashListResponses, unknown, ThrowOnError, "fields">;
851
+ /**
852
+ * Create prompt stash entry
853
+ *
854
+ * Save a reusable prompt snippet on the Nikcli host.
855
+ */
856
+ create<ThrowOnError extends boolean = false>(parameters?: {
857
+ directory?: string;
858
+ workspace?: string;
859
+ mobilePromptStashCreateInput?: MobilePromptStashCreateInput;
860
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileMemoryStashCreateResponses, MobileMemoryStashCreateErrors, ThrowOnError, "fields">;
861
+ /**
862
+ * Delete prompt stash entry
863
+ *
864
+ * Remove a reusable prompt snippet from the Nikcli host.
865
+ */
866
+ delete<ThrowOnError extends boolean = false>(parameters: {
867
+ id: string;
868
+ directory?: string;
869
+ workspace?: string;
870
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileMemoryStashDeleteResponses, MobileMemoryStashDeleteErrors, ThrowOnError, "fields">;
871
+ }
872
+ export declare class Memory extends HeyApiClient {
873
+ /**
874
+ * List prompt history for mobile
875
+ *
876
+ * Return recent prompt history stored on the Nikcli host.
877
+ */
878
+ history<ThrowOnError extends boolean = false>(parameters?: {
879
+ directory?: string;
880
+ workspace?: string;
881
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileMemoryHistoryResponses, unknown, ThrowOnError, "fields">;
882
+ /**
883
+ * Search prompt memories for mobile
884
+ *
885
+ * Search across stored session messages for memory-like prompt context from mobile.
886
+ */
887
+ search<ThrowOnError extends boolean = false>(parameters: {
888
+ directory?: string;
889
+ workspace?: string;
890
+ query: string;
891
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileMemorySearchResponses, unknown, ThrowOnError, "fields">;
892
+ private _stash?;
893
+ get stash(): Stash;
894
+ }
895
+ export declare class Command extends HeyApiClient {
896
+ /**
897
+ * List mobile commands
898
+ *
899
+ * Return command metadata safe for the mobile command palette and slash autocomplete.
900
+ */
901
+ list<ThrowOnError extends boolean = false>(parameters?: {
902
+ directory?: string;
903
+ workspace?: string;
904
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileCommandListResponses, unknown, ThrowOnError, "fields">;
905
+ }
906
+ export declare class Project2 extends HeyApiClient {
907
+ /**
908
+ * List local projects for mobile
909
+ *
910
+ * Return local projects and sandboxes visible to the connected Nikcli host.
911
+ */
912
+ list<ThrowOnError extends boolean = false>(parameters?: {
913
+ directory?: string;
914
+ workspace?: string;
915
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileProjectListResponses, unknown, ThrowOnError, "fields">;
916
+ }
917
+ export declare class Device extends HeyApiClient {
918
+ /**
919
+ * Start GitHub OAuth device flow
920
+ *
921
+ * Start a GitHub device authorization flow and return the verification code for mobile sign-in.
922
+ */
923
+ start<ThrowOnError extends boolean = false>(parameters?: {
924
+ directory?: string;
925
+ workspace?: string;
926
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubOauthDeviceStartResponses, MobileGithubOauthDeviceStartErrors, ThrowOnError, "fields">;
927
+ /**
928
+ * Poll GitHub OAuth device flow
929
+ *
930
+ * Poll GitHub device authorization status and persist the approved token on the host.
931
+ */
932
+ poll<ThrowOnError extends boolean = false>(parameters?: {
933
+ directory?: string;
934
+ workspace?: string;
935
+ mobileGithubDeviceAuthPollInput?: MobileGithubDeviceAuthPollInput;
936
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubOauthDevicePollResponses, MobileGithubOauthDevicePollErrors, ThrowOnError, "fields">;
937
+ }
938
+ export declare class Oauth2 extends HeyApiClient {
939
+ private _device?;
940
+ get device(): Device;
941
+ }
942
+ export declare class Auth3 extends HeyApiClient {
943
+ /**
944
+ * Remove stored GitHub token for mobile
945
+ *
946
+ * Delete the mobile GitHub token from the Nikcli host.
947
+ */
948
+ remove<ThrowOnError extends boolean = false>(parameters?: {
949
+ directory?: string;
950
+ workspace?: string;
951
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubAuthRemoveResponses, unknown, ThrowOnError, "fields">;
952
+ /**
953
+ * Store GitHub token for mobile
954
+ *
955
+ * Persist a GitHub token on the Nikcli host for mobile repo access.
956
+ */
957
+ set<ThrowOnError extends boolean = false>(parameters?: {
958
+ directory?: string;
959
+ workspace?: string;
960
+ token?: string;
961
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubAuthSetResponses, MobileGithubAuthSetErrors, ThrowOnError, "fields">;
962
+ }
963
+ export declare class Session2 extends HeyApiClient {
964
+ /**
965
+ * Create GitHub-backed mobile session
966
+ *
967
+ * Import a GitHub repo if needed, create an isolated worktree from a base branch, and start a session there.
968
+ */
969
+ create<ThrowOnError extends boolean = false>(parameters?: {
970
+ directory?: string;
971
+ workspace?: string;
972
+ mobileGithubSessionCreateInput?: MobileGithubSessionCreateInput;
973
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubSessionCreateResponses, MobileGithubSessionCreateErrors, ThrowOnError, "fields">;
974
+ /**
975
+ * Publish GitHub session
976
+ *
977
+ * Commit the current worktree, push the session branch, and create or reuse a pull request.
978
+ */
979
+ publish<ThrowOnError extends boolean = false>(parameters: {
980
+ sessionID: string;
981
+ directory?: string;
982
+ workspace?: string;
983
+ mobileGithubPublishInput?: MobileGithubPublishInput;
984
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubSessionPublishResponses, MobileGithubSessionPublishErrors, ThrowOnError, "fields">;
985
+ /**
986
+ * Cleanup GitHub session worktree
987
+ *
988
+ * Remove the isolated worktree created for a GitHub-backed mobile session.
989
+ */
990
+ cleanup<ThrowOnError extends boolean = false>(parameters: {
991
+ sessionID: string;
992
+ directory?: string;
993
+ workspace?: string;
994
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubSessionCleanupResponses, MobileGithubSessionCleanupErrors, ThrowOnError, "fields">;
995
+ }
996
+ export declare class Github extends HeyApiClient {
997
+ /**
998
+ * List GitHub repositories for mobile
999
+ *
1000
+ * List repositories available to the stored GitHub connector token.
1001
+ */
1002
+ repos<ThrowOnError extends boolean = false>(parameters?: {
1003
+ directory?: string;
1004
+ workspace?: string;
1005
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubReposResponses, unknown, ThrowOnError, "fields">;
1006
+ /**
1007
+ * List GitHub branches for mobile
1008
+ *
1009
+ * List branches for a GitHub repository available to the stored mobile GitHub token.
1010
+ */
1011
+ branches<ThrowOnError extends boolean = false>(parameters: {
1012
+ owner: string;
1013
+ repo: string;
1014
+ directory?: string;
1015
+ workspace?: string;
1016
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubBranchesResponses, unknown, ThrowOnError, "fields">;
1017
+ /**
1018
+ * List imported GitHub repos for mobile
1019
+ *
1020
+ * List GitHub repositories that have already been cloned into the Nikcli host cache.
1021
+ */
1022
+ imports<ThrowOnError extends boolean = false>(parameters?: {
1023
+ directory?: string;
1024
+ workspace?: string;
1025
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubImportsResponses, unknown, ThrowOnError, "fields">;
1026
+ /**
1027
+ * Import GitHub repo into Nikcli host
1028
+ *
1029
+ * Clone or refresh a repository from the connected GitHub account into the managed host cache.
1030
+ */
1031
+ import<ThrowOnError extends boolean = false>(parameters?: {
1032
+ directory?: string;
1033
+ workspace?: string;
1034
+ mobileGithubImportRequest?: MobileGithubImportRequest;
1035
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileGithubImportResponses, MobileGithubImportErrors, ThrowOnError, "fields">;
1036
+ private _oauth?;
1037
+ get oauth(): Oauth2;
1038
+ private _auth?;
1039
+ get auth(): Auth3;
1040
+ private _session?;
1041
+ get session(): Session2;
1042
+ }
1043
+ export declare class Command2 extends HeyApiClient {
1044
+ /**
1045
+ * List session commands for mobile
1046
+ *
1047
+ * Return command metadata resolved in the current session context for mobile slash autocomplete.
1048
+ */
1049
+ list<ThrowOnError extends boolean = false>(parameters: {
1050
+ sessionID: string;
1051
+ directory?: string;
1052
+ workspace?: string;
1053
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionCommandListResponses, MobileSessionCommandListErrors, ThrowOnError, "fields">;
1054
+ }
1055
+ export declare class Session3 extends HeyApiClient {
1056
+ /**
1057
+ * List mobile sessions
1058
+ *
1059
+ * Return mobile-friendly session summaries with current status.
1060
+ */
1061
+ list<ThrowOnError extends boolean = false>(parameters?: {
1062
+ directory?: string;
1063
+ workspace?: string;
1064
+ limit?: number;
1065
+ search?: string;
1066
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionListResponses, unknown, ThrowOnError, "fields">;
1067
+ /**
1068
+ * Create mobile session
1069
+ *
1070
+ * Create a new session for the mobile app.
1071
+ */
1072
+ create<ThrowOnError extends boolean = false>(parameters?: {
1073
+ directory?: string;
1074
+ workspace?: string;
1075
+ mobileSessionCreateInput?: MobileSessionCreateInput;
1076
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionCreateResponses, MobileSessionCreateErrors, ThrowOnError, "fields">;
1077
+ /**
1078
+ * Get mobile session detail
1079
+ *
1080
+ * Return a session, its messages, status, and pending permissions.
1081
+ */
1082
+ detail<ThrowOnError extends boolean = false>(parameters: {
1083
+ sessionID: string;
1084
+ directory?: string;
1085
+ workspace?: string;
1086
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionDetailResponses, MobileSessionDetailErrors, ThrowOnError, "fields">;
1087
+ /**
1088
+ * Get session diff for mobile
1089
+ *
1090
+ * Return file diffs for a specific message in a session.
1091
+ */
1092
+ diff<ThrowOnError extends boolean = false>(parameters: {
1093
+ sessionID: string;
1094
+ messageID: string;
1095
+ directory?: string;
1096
+ workspace?: string;
1097
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionDiffResponses, unknown, ThrowOnError, "fields">;
1098
+ /**
1099
+ * Run mobile session command
1100
+ *
1101
+ * Execute a slash-style command against the current session.
1102
+ */
1103
+ command<ThrowOnError extends boolean = false>(parameters: {
1104
+ sessionID: string;
1105
+ directory?: string;
1106
+ workspace?: string;
1107
+ mobileSessionCommandInput?: MobileSessionCommandInput;
1108
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionCommandResponses, MobileSessionCommandErrors, ThrowOnError, "fields">;
1109
+ /**
1110
+ * Send mobile session message
1111
+ *
1112
+ * Queue a message for a session and rely on the session stream for realtime updates.
1113
+ */
1114
+ message<ThrowOnError extends boolean = false>(parameters: {
1115
+ sessionID: string;
1116
+ directory?: string;
1117
+ workspace?: string;
1118
+ messageID?: string;
1119
+ model?: {
1120
+ providerID: string;
1121
+ modelID: string;
1122
+ };
1123
+ agent?: string;
1124
+ noReply?: boolean;
1125
+ tools?: {
1126
+ [key: string]: boolean;
1127
+ };
1128
+ format?: OutputFormat;
1129
+ system?: string;
1130
+ variant?: string;
1131
+ parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
1132
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionMessageResponses, MobileSessionMessageErrors, ThrowOnError, "fields">;
1133
+ /**
1134
+ * Abort mobile session
1135
+ *
1136
+ * Abort the active run for a session.
1137
+ */
1138
+ abort<ThrowOnError extends boolean = false>(parameters: {
1139
+ sessionID: string;
1140
+ directory?: string;
1141
+ workspace?: string;
1142
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionAbortResponses, unknown, ThrowOnError, "fields">;
1143
+ /**
1144
+ * Stream mobile session events
1145
+ *
1146
+ * Subscribe to session-scoped realtime events for the mobile chat UI.
1147
+ */
1148
+ stream<ThrowOnError extends boolean = false>(parameters: {
1149
+ sessionID: string;
1150
+ directory?: string;
1151
+ workspace?: string;
1152
+ }, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<MobileSessionStreamResponses, unknown>>;
1153
+ /**
1154
+ * Rename a session
1155
+ *
1156
+ * Update the title of an existing session.
1157
+ */
1158
+ rename<ThrowOnError extends boolean = false>(parameters: {
1159
+ sessionID: string;
1160
+ directory?: string;
1161
+ workspace?: string;
1162
+ title?: string;
1163
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileSessionRenameResponses, unknown, ThrowOnError, "fields">;
1164
+ private _command?;
1165
+ get command2(): Command2;
1166
+ }
1167
+ export declare class Permission2 extends HeyApiClient {
1168
+ /**
1169
+ * Respond to permission from mobile
1170
+ *
1171
+ * Approve, always approve, or reject a pending permission request.
1172
+ */
1173
+ respond<ThrowOnError extends boolean = false>(parameters: {
1174
+ sessionID: string;
1175
+ permissionID: string;
1176
+ directory?: string;
1177
+ workspace?: string;
1178
+ response?: "once" | "always" | "reject";
1179
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobilePermissionRespondResponses, unknown, ThrowOnError, "fields">;
1180
+ }
1181
+ export declare class Worktree2 extends HeyApiClient {
1182
+ /**
1183
+ * Remove mobile worktree
1184
+ *
1185
+ * Remove an existing worktree sandbox.
1186
+ */
1187
+ remove<ThrowOnError extends boolean = false>(parameters?: {
1188
+ directory?: string;
1189
+ workspace?: string;
1190
+ worktreeRemoveInput?: WorktreeRemoveInput;
1191
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileWorktreeRemoveResponses, unknown, ThrowOnError, "fields">;
1192
+ /**
1193
+ * Create mobile worktree
1194
+ *
1195
+ * Create a git worktree for sandboxed mobile work.
1196
+ */
1197
+ create<ThrowOnError extends boolean = false>(parameters?: {
1198
+ directory?: string;
1199
+ workspace?: string;
1200
+ worktreeCreateInput?: WorktreeCreateInput;
1201
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileWorktreeCreateResponses, MobileWorktreeCreateErrors, ThrowOnError, "fields">;
1202
+ /**
1203
+ * Reset mobile worktree
1204
+ *
1205
+ * Reset a worktree back to the default branch state.
1206
+ */
1207
+ reset<ThrowOnError extends boolean = false>(parameters?: {
1208
+ directory?: string;
1209
+ workspace?: string;
1210
+ worktreeResetInput?: WorktreeResetInput;
1211
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileWorktreeResetResponses, unknown, ThrowOnError, "fields">;
1212
+ }
1213
+ export declare class Mobile extends HeyApiClient {
1214
+ /**
1215
+ * Get mobile bootstrap payload
1216
+ *
1217
+ * Return the current mobile bootstrap state for the connected host.
1218
+ */
1219
+ bootstrap<ThrowOnError extends boolean = false>(parameters?: {
1220
+ directory?: string;
1221
+ workspace?: string;
1222
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<MobileBootstrapResponses, unknown, ThrowOnError, "fields">;
1223
+ private _auth?;
1224
+ get auth(): Auth2;
1225
+ private _memory?;
1226
+ get memory(): Memory;
1227
+ private _command?;
1228
+ get command(): Command;
1229
+ private _project?;
1230
+ get project(): Project2;
1231
+ private _github?;
1232
+ get github(): Github;
1233
+ private _session?;
1234
+ get session(): Session3;
1235
+ private _permission?;
1236
+ get permission(): Permission2;
1237
+ private _worktree?;
1238
+ get worktree(): Worktree2;
1239
+ }
1240
+ export declare class Find extends HeyApiClient {
1241
+ /**
1242
+ * Find text
1243
+ *
1244
+ * Search for text patterns across files in the project using ripgrep.
1245
+ */
1246
+ text<ThrowOnError extends boolean = false>(parameters: {
1247
+ directory?: string;
1248
+ workspace?: string;
1249
+ pattern: string;
1250
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindTextResponses, unknown, ThrowOnError, "fields">;
1251
+ /**
1252
+ * Find files
1253
+ *
1254
+ * Search for files or directories by name or pattern in the project directory.
1255
+ */
1256
+ files<ThrowOnError extends boolean = false>(parameters: {
1257
+ directory?: string;
1258
+ workspace?: string;
1259
+ query: string;
1260
+ dirs?: "true" | "false";
1261
+ type?: "file" | "directory";
1262
+ limit?: number;
1263
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindFilesResponses, unknown, ThrowOnError, "fields">;
1264
+ /**
1265
+ * Find symbols
1266
+ *
1267
+ * Search for workspace symbols like functions, classes, and variables using LSP.
1268
+ */
1269
+ symbols<ThrowOnError extends boolean = false>(parameters: {
1270
+ directory?: string;
1271
+ workspace?: string;
1272
+ query: string;
1273
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
1274
+ }
1275
+ export declare class File extends HeyApiClient {
1276
+ /**
1277
+ * List files
1278
+ *
1279
+ * List files and directories in a specified path.
1280
+ */
1281
+ list<ThrowOnError extends boolean = false>(parameters: {
1282
+ directory?: string;
1283
+ workspace?: string;
1284
+ path: string;
1285
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileListResponses, unknown, ThrowOnError, "fields">;
1286
+ /**
1287
+ * Read file
1288
+ *
1289
+ * Read the content of a specified file.
1290
+ */
1291
+ read<ThrowOnError extends boolean = false>(parameters: {
1292
+ directory?: string;
1293
+ workspace?: string;
1294
+ path: string;
1295
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileReadResponses, unknown, ThrowOnError, "fields">;
1296
+ /**
1297
+ * Get file status
1298
+ *
1299
+ * Get the git status of all files in the project.
1300
+ */
1301
+ status<ThrowOnError extends boolean = false>(parameters?: {
1302
+ directory?: string;
1303
+ workspace?: string;
1304
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
1305
+ }
1306
+ export declare class Auth4 extends HeyApiClient {
1307
+ /**
1308
+ * Remove connector credentials
1309
+ *
1310
+ * Remove stored credentials for a connector.
1311
+ */
1312
+ remove<ThrowOnError extends boolean = false>(parameters: {
1313
+ name: string;
1314
+ directory?: string;
1315
+ workspace?: string;
1316
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConnectorsAuthRemoveResponses, ConnectorsAuthRemoveErrors, ThrowOnError, "fields">;
1317
+ /**
1318
+ * Set connector credentials
1319
+ *
1320
+ * Store credentials for a connector.
1321
+ */
1322
+ set<ThrowOnError extends boolean = false>(parameters: {
1323
+ name: string;
1324
+ directory?: string;
1325
+ workspace?: string;
1326
+ token?: string;
1327
+ botToken?: string;
1328
+ apiKey?: string;
1329
+ teamId?: string;
1330
+ expiresAt?: number;
1331
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConnectorsAuthSetResponses, ConnectorsAuthSetErrors, ThrowOnError, "fields">;
1332
+ }
1333
+ export declare class Connectors extends HeyApiClient {
1334
+ /**
1335
+ * Get connectors status
1336
+ *
1337
+ * Get the status of all configured external service connectors.
1338
+ */
1339
+ status<ThrowOnError extends boolean = false>(parameters?: {
1340
+ directory?: string;
1341
+ workspace?: string;
1342
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConnectorsStatusResponses, unknown, ThrowOnError, "fields">;
1343
+ /**
1344
+ * Invalidate connector cache
1345
+ *
1346
+ * Clear connector status and tools cache. Optionally invalidate a specific connector.
1347
+ */
1348
+ invalidate<ThrowOnError extends boolean = false>(parameters?: {
1349
+ directory?: string;
1350
+ workspace?: string;
1351
+ name?: string;
1352
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConnectorsInvalidateResponses, unknown, ThrowOnError, "fields">;
1353
+ private _auth?;
1354
+ get auth(): Auth4;
1355
+ }
1356
+ export declare class Auth5 extends HeyApiClient {
1357
+ /**
1358
+ * Remove MCP OAuth
1359
+ *
1360
+ * Remove OAuth credentials for an MCP server
1361
+ */
1362
+ remove<ThrowOnError extends boolean = false>(parameters: {
1363
+ name: string;
1364
+ directory?: string;
1365
+ workspace?: string;
1366
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthRemoveResponses, McpAuthRemoveErrors, ThrowOnError, "fields">;
1367
+ /**
1368
+ * Start MCP OAuth
1369
+ *
1370
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
1371
+ */
1372
+ start<ThrowOnError extends boolean = false>(parameters: {
1373
+ name: string;
1374
+ directory?: string;
1375
+ workspace?: string;
1376
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthStartResponses, McpAuthStartErrors, ThrowOnError, "fields">;
1377
+ /**
1378
+ * Complete MCP OAuth
1379
+ *
1380
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
1381
+ */
1382
+ callback<ThrowOnError extends boolean = false>(parameters: {
1383
+ name: string;
1384
+ directory?: string;
1385
+ workspace?: string;
1386
+ code?: string;
1387
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthCallbackResponses, McpAuthCallbackErrors, ThrowOnError, "fields">;
1388
+ /**
1389
+ * Authenticate MCP OAuth
1390
+ *
1391
+ * Start OAuth flow and wait for callback (opens browser)
1392
+ */
1393
+ authenticate<ThrowOnError extends boolean = false>(parameters: {
1394
+ name: string;
1395
+ directory?: string;
1396
+ workspace?: string;
1397
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, ThrowOnError, "fields">;
1398
+ }
1399
+ export declare class Mcp extends HeyApiClient {
1400
+ /**
1401
+ * Get MCP status
1402
+ *
1403
+ * Get the status of all Model Context Protocol (MCP) servers.
1404
+ */
1405
+ status<ThrowOnError extends boolean = false>(parameters?: {
1406
+ directory?: string;
1407
+ workspace?: string;
1408
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpStatusResponses, unknown, ThrowOnError, "fields">;
1409
+ /**
1410
+ * Add MCP server
1411
+ *
1412
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
1413
+ */
1414
+ add<ThrowOnError extends boolean = false>(parameters?: {
1415
+ directory?: string;
1416
+ workspace?: string;
1417
+ name?: string;
1418
+ config?: McpLocalConfig | McpRemoteConfig;
1419
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpAddResponses, McpAddErrors, ThrowOnError, "fields">;
1420
+ /**
1421
+ * Connect an MCP server
1422
+ */
1423
+ connect<ThrowOnError extends boolean = false>(parameters: {
1424
+ name: string;
1425
+ directory?: string;
1426
+ workspace?: string;
1427
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpConnectResponses, unknown, ThrowOnError, "fields">;
1428
+ /**
1429
+ * Disconnect an MCP server
1430
+ */
1431
+ disconnect<ThrowOnError extends boolean = false>(parameters: {
1432
+ name: string;
1433
+ directory?: string;
1434
+ workspace?: string;
1435
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
1436
+ private _auth?;
1437
+ get auth(): Auth5;
1438
+ }
1439
+ export declare class Control extends HeyApiClient {
1440
+ /**
1441
+ * Get next TUI request
1442
+ *
1443
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1444
+ */
1445
+ next<ThrowOnError extends boolean = false>(parameters?: {
1446
+ directory?: string;
1447
+ workspace?: string;
1448
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
1449
+ /**
1450
+ * Submit TUI response
1451
+ *
1452
+ * Submit a response to the TUI request queue to complete a pending request.
1453
+ */
1454
+ response<ThrowOnError extends boolean = false>(parameters?: {
1455
+ directory?: string;
1456
+ workspace?: string;
1457
+ body?: unknown;
1458
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
1459
+ }
1460
+ export declare class Tui extends HeyApiClient {
1461
+ /**
1462
+ * Append TUI prompt
1463
+ *
1464
+ * Append prompt to the TUI
1465
+ */
1466
+ appendPrompt<ThrowOnError extends boolean = false>(parameters?: {
1467
+ directory?: string;
1468
+ workspace?: string;
1469
+ text?: string;
1470
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
1471
+ /**
1472
+ * Open help dialog
1473
+ *
1474
+ * Open the help dialog in the TUI to display user assistance information.
1475
+ */
1476
+ openHelp<ThrowOnError extends boolean = false>(parameters?: {
1477
+ directory?: string;
1478
+ workspace?: string;
1479
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
1480
+ /**
1481
+ * Open sessions dialog
1482
+ *
1483
+ * Open the session dialog
1484
+ */
1485
+ openSessions<ThrowOnError extends boolean = false>(parameters?: {
1486
+ directory?: string;
1487
+ workspace?: string;
1488
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
1489
+ /**
1490
+ * Open themes dialog
1491
+ *
1492
+ * Open the theme dialog
1493
+ */
1494
+ openThemes<ThrowOnError extends boolean = false>(parameters?: {
1495
+ directory?: string;
1496
+ workspace?: string;
1497
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
1498
+ /**
1499
+ * Open models dialog
1500
+ *
1501
+ * Open the model dialog
1502
+ */
1503
+ openModels<ThrowOnError extends boolean = false>(parameters?: {
1504
+ directory?: string;
1505
+ workspace?: string;
1506
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
1507
+ /**
1508
+ * Submit TUI prompt
1509
+ *
1510
+ * Submit the prompt
1511
+ */
1512
+ submitPrompt<ThrowOnError extends boolean = false>(parameters?: {
1513
+ directory?: string;
1514
+ workspace?: string;
1515
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
1516
+ /**
1517
+ * Clear TUI prompt
1518
+ *
1519
+ * Clear the prompt
1520
+ */
1521
+ clearPrompt<ThrowOnError extends boolean = false>(parameters?: {
1522
+ directory?: string;
1523
+ workspace?: string;
1524
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
1525
+ /**
1526
+ * Execute TUI command
1527
+ *
1528
+ * Execute a TUI command (e.g. agent_cycle)
1529
+ */
1530
+ executeCommand<ThrowOnError extends boolean = false>(parameters?: {
1531
+ directory?: string;
1532
+ workspace?: string;
1533
+ command?: string;
1534
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
1535
+ /**
1536
+ * Show TUI toast
1537
+ *
1538
+ * Show a toast notification in the TUI
1539
+ */
1540
+ showToast<ThrowOnError extends boolean = false>(parameters?: {
1541
+ directory?: string;
1542
+ workspace?: string;
1543
+ title?: string;
1544
+ message?: string;
1545
+ variant?: "info" | "success" | "warning" | "error";
1546
+ duration?: number;
1547
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
1548
+ /**
1549
+ * Publish TUI event
1550
+ *
1551
+ * Publish a TUI event
1552
+ */
1553
+ publish<ThrowOnError extends boolean = false>(parameters?: {
1554
+ directory?: string;
1555
+ workspace?: string;
1556
+ body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
1557
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
1558
+ /**
1559
+ * Select session
1560
+ *
1561
+ * Navigate the TUI to display the specified session.
1562
+ */
1563
+ selectSession<ThrowOnError extends boolean = false>(parameters?: {
1564
+ directory?: string;
1565
+ workspace?: string;
1566
+ sessionID?: string;
1567
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSelectSessionResponses, TuiSelectSessionErrors, ThrowOnError, "fields">;
1568
+ private _control?;
1569
+ get control(): Control;
1570
+ }
1571
+ export declare class Instance extends HeyApiClient {
1572
+ /**
1573
+ * Dispose instance
1574
+ *
1575
+ * Clean up and dispose the current Nikcli instance, releasing all resources.
1576
+ */
1577
+ dispose<ThrowOnError extends boolean = false>(parameters?: {
1578
+ directory?: string;
1579
+ workspace?: string;
1580
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<InstanceDisposeResponses, unknown, ThrowOnError, "fields">;
1581
+ }
1582
+ export declare class Path extends HeyApiClient {
1583
+ /**
1584
+ * Get paths
1585
+ *
1586
+ * Retrieve the current working directory and related path information for the Nikcli instance.
1587
+ */
1588
+ get<ThrowOnError extends boolean = false>(parameters?: {
1589
+ directory?: string;
1590
+ workspace?: string;
1591
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
1592
+ }
1593
+ export declare class Vcs extends HeyApiClient {
1594
+ /**
1595
+ * Get VCS info
1596
+ *
1597
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
1598
+ */
1599
+ get<ThrowOnError extends boolean = false>(parameters?: {
1600
+ directory?: string;
1601
+ workspace?: string;
1602
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<VcsGetResponses, unknown, ThrowOnError, "fields">;
1603
+ }
1604
+ export declare class Command3 extends HeyApiClient {
1605
+ /**
1606
+ * List commands
1607
+ *
1608
+ * Get a list of all available commands in the Nikcli system.
1609
+ */
1610
+ list<ThrowOnError extends boolean = false>(parameters?: {
1611
+ directory?: string;
1612
+ workspace?: string;
1613
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<CommandListResponses, unknown, ThrowOnError, "fields">;
1614
+ }
1615
+ export declare class App extends HeyApiClient {
1616
+ /**
1617
+ * Write log
1618
+ *
1619
+ * Write a log entry to the server logs with specified level and metadata.
1620
+ */
1621
+ log<ThrowOnError extends boolean = false>(parameters?: {
1622
+ directory?: string;
1623
+ workspace?: string;
1624
+ service?: string;
1625
+ level?: "debug" | "info" | "error" | "warn";
1626
+ message?: string;
1627
+ extra?: {
1628
+ [key: string]: unknown;
1629
+ };
1630
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
1631
+ /**
1632
+ * List agents
1633
+ *
1634
+ * Get a list of all available AI agents in the Nikcli system.
1635
+ */
1636
+ agents<ThrowOnError extends boolean = false>(parameters?: {
1637
+ directory?: string;
1638
+ workspace?: string;
1639
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
1640
+ /**
1641
+ * List skills
1642
+ *
1643
+ * Get a list of all available skills in the Nikcli system.
1644
+ */
1645
+ skills<ThrowOnError extends boolean = false>(parameters?: {
1646
+ directory?: string;
1647
+ workspace?: string;
1648
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppSkillsResponses, unknown, ThrowOnError, "fields">;
1649
+ }
1650
+ export declare class Lsp extends HeyApiClient {
1651
+ /**
1652
+ * Get LSP status
1653
+ *
1654
+ * Get LSP server status
1655
+ */
1656
+ status<ThrowOnError extends boolean = false>(parameters?: {
1657
+ directory?: string;
1658
+ workspace?: string;
1659
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<LspStatusResponses, unknown, ThrowOnError, "fields">;
1660
+ }
1661
+ export declare class Formatter extends HeyApiClient {
1662
+ /**
1663
+ * Get formatter status
1664
+ *
1665
+ * Get formatter status
1666
+ */
1667
+ status<ThrowOnError extends boolean = false>(parameters?: {
1668
+ directory?: string;
1669
+ workspace?: string;
1670
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
1671
+ }
1672
+ export declare class Auth6 extends HeyApiClient {
1673
+ /**
1674
+ * Remove auth credentials
1675
+ *
1676
+ * Remove stored authentication credentials for a provider
1677
+ */
1678
+ remove<ThrowOnError extends boolean = false>(parameters: {
1679
+ providerID: string;
1680
+ directory?: string;
1681
+ workspace?: string;
1682
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError, "fields">;
1683
+ /**
1684
+ * Set auth credentials
1685
+ *
1686
+ * Set authentication credentials
1687
+ */
1688
+ set<ThrowOnError extends boolean = false>(parameters: {
1689
+ providerID: string;
1690
+ directory?: string;
1691
+ workspace?: string;
1692
+ auth?: Auth7;
1693
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
1694
+ }
1695
+ export declare class Event extends HeyApiClient {
1696
+ /**
1697
+ * Subscribe to events
1698
+ *
1699
+ * Get events
1700
+ */
1701
+ subscribe<ThrowOnError extends boolean = false>(parameters?: {
1702
+ directory?: string;
1703
+ workspace?: string;
1704
+ }, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
1705
+ }
1706
+ export declare class NikcliClient extends HeyApiClient {
1707
+ static readonly __registry: HeyApiRegistry<NikcliClient>;
1708
+ constructor(args?: {
1709
+ client?: Client;
1710
+ key?: string;
1711
+ });
1712
+ getSShareId<ThrowOnError extends boolean = false>(parameters: {
1713
+ shareID: string;
1714
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetSShareIdResponses, unknown, ThrowOnError, "fields">;
1715
+ getShareShareId<ThrowOnError extends boolean = false>(parameters: {
1716
+ shareID: string;
1717
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetShareShareIdResponses, unknown, ThrowOnError, "fields">;
1718
+ getApiShareShareId<ThrowOnError extends boolean = false>(parameters: {
1719
+ shareID: string;
1720
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiShareShareIdResponses, unknown, ThrowOnError, "fields">;
1721
+ getApiShareShareIdData<ThrowOnError extends boolean = false>(parameters: {
1722
+ shareID: string;
1723
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GetApiShareShareIdDataResponses, unknown, ThrowOnError, "fields">;
1724
+ private _global?;
1725
+ get global(): Global;
1726
+ private _project?;
1727
+ get project(): Project;
1728
+ private _pty?;
1729
+ get pty(): Pty;
1730
+ private _config?;
1731
+ get config(): Config;
1732
+ private _tool?;
1733
+ get tool(): Tool;
1734
+ private _worktree?;
1735
+ get worktree(): Worktree;
1736
+ private _experimental?;
1737
+ get experimental(): Experimental;
1738
+ private _session?;
1739
+ get session(): Session;
1740
+ private _part?;
1741
+ get part(): Part;
1742
+ private _permission?;
1743
+ get permission(): Permission;
1744
+ private _dbedit?;
1745
+ get dbedit(): Dbedit;
1746
+ private _question?;
1747
+ get question(): Question;
1748
+ private _provider?;
1749
+ get provider(): Provider;
1750
+ private _mobile?;
1751
+ get mobile(): Mobile;
1752
+ private _find?;
1753
+ get find(): Find;
1754
+ private _file?;
1755
+ get file(): File;
1756
+ private _connectors?;
1757
+ get connectors(): Connectors;
1758
+ private _mcp?;
1759
+ get mcp(): Mcp;
1760
+ private _tui?;
1761
+ get tui(): Tui;
1762
+ private _instance?;
1763
+ get instance(): Instance;
1764
+ private _path?;
1765
+ get path(): Path;
1766
+ private _vcs?;
1767
+ get vcs(): Vcs;
1768
+ private _command?;
1769
+ get command(): Command3;
1770
+ private _app?;
1771
+ get app(): App;
1772
+ private _lsp?;
1773
+ get lsp(): Lsp;
1774
+ private _formatter?;
1775
+ get formatter(): Formatter;
1776
+ private _auth?;
1777
+ get auth(): Auth6;
1778
+ private _event?;
1779
+ get event(): Event;
1780
+ }
1781
+ export {};