@100xprompt/sdk 0.0.0-dev-202607191034

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 (103) hide show
  1. package/dist/client.d.ts +7 -0
  2. package/dist/client.js +25 -0
  3. package/dist/gen/client/client.gen.d.ts +2 -0
  4. package/dist/gen/client/client.gen.js +225 -0
  5. package/dist/gen/client/index.d.ts +8 -0
  6. package/dist/gen/client/index.js +6 -0
  7. package/dist/gen/client/types.gen.d.ts +117 -0
  8. package/dist/gen/client/types.gen.js +2 -0
  9. package/dist/gen/client/utils.gen.d.ts +33 -0
  10. package/dist/gen/client/utils.gen.js +226 -0
  11. package/dist/gen/client.gen.d.ts +12 -0
  12. package/dist/gen/client.gen.js +3 -0
  13. package/dist/gen/core/auth.gen.d.ts +18 -0
  14. package/dist/gen/core/auth.gen.js +14 -0
  15. package/dist/gen/core/bodySerializer.gen.d.ts +25 -0
  16. package/dist/gen/core/bodySerializer.gen.js +57 -0
  17. package/dist/gen/core/params.gen.d.ts +43 -0
  18. package/dist/gen/core/params.gen.js +102 -0
  19. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/gen/core/pathSerializer.gen.js +106 -0
  21. package/dist/gen/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/dist/gen/core/queryKeySerializer.gen.js +93 -0
  23. package/dist/gen/core/serverSentEvents.gen.d.ts +71 -0
  24. package/dist/gen/core/serverSentEvents.gen.js +131 -0
  25. package/dist/gen/core/types.gen.d.ts +78 -0
  26. package/dist/gen/core/types.gen.js +2 -0
  27. package/dist/gen/core/utils.gen.d.ts +19 -0
  28. package/dist/gen/core/utils.gen.js +87 -0
  29. package/dist/gen/sdk.gen.d.ts +1014 -0
  30. package/dist/gen/sdk.gen.js +1932 -0
  31. package/dist/gen/types.gen.d.ts +4238 -0
  32. package/dist/gen/types.gen.js +2 -0
  33. package/dist/index.d.ts +10 -0
  34. package/dist/index.js +16 -0
  35. package/dist/server.d.ts +23 -0
  36. package/dist/server.js +94 -0
  37. package/dist/v2/client.d.ts +7 -0
  38. package/dist/v2/client.js +73 -0
  39. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  40. package/dist/v2/gen/client/client.gen.js +225 -0
  41. package/dist/v2/gen/client/index.d.ts +8 -0
  42. package/dist/v2/gen/client/index.js +6 -0
  43. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  44. package/dist/v2/gen/client/types.gen.js +2 -0
  45. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  46. package/dist/v2/gen/client/utils.gen.js +226 -0
  47. package/dist/v2/gen/client.gen.d.ts +12 -0
  48. package/dist/v2/gen/client.gen.js +3 -0
  49. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  50. package/dist/v2/gen/core/auth.gen.js +14 -0
  51. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  52. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  53. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  54. package/dist/v2/gen/core/params.gen.js +102 -0
  55. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  56. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  57. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  58. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  59. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  60. package/dist/v2/gen/core/serverSentEvents.gen.js +131 -0
  61. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  62. package/dist/v2/gen/core/types.gen.js +2 -0
  63. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  64. package/dist/v2/gen/core/utils.gen.js +87 -0
  65. package/dist/v2/gen/gen/client/client.gen.d.ts +2 -0
  66. package/dist/v2/gen/gen/client/client.gen.js +225 -0
  67. package/dist/v2/gen/gen/client/index.d.ts +8 -0
  68. package/dist/v2/gen/gen/client/index.js +6 -0
  69. package/dist/v2/gen/gen/client/types.gen.d.ts +117 -0
  70. package/dist/v2/gen/gen/client/types.gen.js +2 -0
  71. package/dist/v2/gen/gen/client/utils.gen.d.ts +33 -0
  72. package/dist/v2/gen/gen/client/utils.gen.js +226 -0
  73. package/dist/v2/gen/gen/client.gen.d.ts +12 -0
  74. package/dist/v2/gen/gen/client.gen.js +3 -0
  75. package/dist/v2/gen/gen/core/auth.gen.d.ts +18 -0
  76. package/dist/v2/gen/gen/core/auth.gen.js +14 -0
  77. package/dist/v2/gen/gen/core/bodySerializer.gen.d.ts +25 -0
  78. package/dist/v2/gen/gen/core/bodySerializer.gen.js +57 -0
  79. package/dist/v2/gen/gen/core/params.gen.d.ts +43 -0
  80. package/dist/v2/gen/gen/core/params.gen.js +102 -0
  81. package/dist/v2/gen/gen/core/pathSerializer.gen.d.ts +33 -0
  82. package/dist/v2/gen/gen/core/pathSerializer.gen.js +106 -0
  83. package/dist/v2/gen/gen/core/queryKeySerializer.gen.d.ts +18 -0
  84. package/dist/v2/gen/gen/core/queryKeySerializer.gen.js +93 -0
  85. package/dist/v2/gen/gen/core/serverSentEvents.gen.d.ts +71 -0
  86. package/dist/v2/gen/gen/core/serverSentEvents.gen.js +131 -0
  87. package/dist/v2/gen/gen/core/types.gen.d.ts +78 -0
  88. package/dist/v2/gen/gen/core/types.gen.js +2 -0
  89. package/dist/v2/gen/gen/core/utils.gen.d.ts +19 -0
  90. package/dist/v2/gen/gen/core/utils.gen.js +87 -0
  91. package/dist/v2/gen/gen/sdk.gen.d.ts +1013 -0
  92. package/dist/v2/gen/gen/sdk.gen.js +1931 -0
  93. package/dist/v2/gen/gen/types.gen.d.ts +4246 -0
  94. package/dist/v2/gen/gen/types.gen.js +2 -0
  95. package/dist/v2/gen/sdk.gen.d.ts +1014 -0
  96. package/dist/v2/gen/sdk.gen.js +1932 -0
  97. package/dist/v2/gen/types.gen.d.ts +4238 -0
  98. package/dist/v2/gen/types.gen.js +2 -0
  99. package/dist/v2/index.d.ts +10 -0
  100. package/dist/v2/index.js +16 -0
  101. package/dist/v2/server.d.ts +23 -0
  102. package/dist/v2/server.js +94 -0
  103. package/package.json +51 -0
@@ -0,0 +1,1931 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { client } from "./client.gen.js";
3
+ import { buildClientParams } from "./client/index.js";
4
+ class HeyApiClient {
5
+ client;
6
+ constructor(args) {
7
+ this.client = args?.client ?? client;
8
+ }
9
+ }
10
+ class HeyApiRegistry {
11
+ defaultKey = "default";
12
+ instances = new Map();
13
+ get(key) {
14
+ const instance = this.instances.get(key ?? this.defaultKey);
15
+ if (!instance) {
16
+ throw new Error(`No SDK client found. Create one with "new X100PromptClient()" to fix this error.`);
17
+ }
18
+ return instance;
19
+ }
20
+ set(value, key) {
21
+ this.instances.set(key ?? this.defaultKey, value);
22
+ }
23
+ }
24
+ export class Global extends HeyApiClient {
25
+ /**
26
+ * Get health
27
+ *
28
+ * Get health information about the 100XPrompt server.
29
+ */
30
+ health(options) {
31
+ return (options?.client ?? this.client).get({
32
+ url: "/global/health",
33
+ ...options,
34
+ });
35
+ }
36
+ /**
37
+ * Get global events
38
+ *
39
+ * Subscribe to global events from the 100XPrompt system using server-sent events.
40
+ */
41
+ event(options) {
42
+ return (options?.client ?? this.client).sse.get({
43
+ url: "/global/event",
44
+ ...options,
45
+ });
46
+ }
47
+ /**
48
+ * Dispose instance
49
+ *
50
+ * Clean up and dispose all 100XPrompt instances, releasing all resources.
51
+ */
52
+ dispose(options) {
53
+ return (options?.client ?? this.client).post({
54
+ url: "/global/dispose",
55
+ ...options,
56
+ });
57
+ }
58
+ }
59
+ export class Project extends HeyApiClient {
60
+ /**
61
+ * List all projects
62
+ *
63
+ * Get a list of projects that have been opened with 100XPrompt.
64
+ */
65
+ list(parameters, options) {
66
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
67
+ return (options?.client ?? this.client).get({
68
+ url: "/project",
69
+ ...options,
70
+ ...params,
71
+ });
72
+ }
73
+ /**
74
+ * Get current project
75
+ *
76
+ * Retrieve the currently active project that 100XPrompt is working with.
77
+ */
78
+ current(parameters, options) {
79
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
80
+ return (options?.client ?? this.client).get({
81
+ url: "/project/current",
82
+ ...options,
83
+ ...params,
84
+ });
85
+ }
86
+ /**
87
+ * Update project
88
+ *
89
+ * Update project properties such as name, icon and color.
90
+ */
91
+ update(parameters, options) {
92
+ const params = buildClientParams([parameters], [
93
+ {
94
+ args: [
95
+ { in: "path", key: "projectID" },
96
+ { in: "query", key: "directory" },
97
+ { in: "body", key: "name" },
98
+ { in: "body", key: "icon" },
99
+ ],
100
+ },
101
+ ]);
102
+ return (options?.client ?? this.client).patch({
103
+ url: "/project/{projectID}",
104
+ ...options,
105
+ ...params,
106
+ headers: {
107
+ "Content-Type": "application/json",
108
+ ...options?.headers,
109
+ ...params.headers,
110
+ },
111
+ });
112
+ }
113
+ }
114
+ export class Pty extends HeyApiClient {
115
+ /**
116
+ * List PTY sessions
117
+ *
118
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by 100XPrompt.
119
+ */
120
+ list(parameters, options) {
121
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
122
+ return (options?.client ?? this.client).get({
123
+ url: "/pty",
124
+ ...options,
125
+ ...params,
126
+ });
127
+ }
128
+ /**
129
+ * Create PTY session
130
+ *
131
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
132
+ */
133
+ create(parameters, options) {
134
+ const params = buildClientParams([parameters], [
135
+ {
136
+ args: [
137
+ { in: "query", key: "directory" },
138
+ { in: "body", key: "command" },
139
+ { in: "body", key: "args" },
140
+ { in: "body", key: "cwd" },
141
+ { in: "body", key: "title" },
142
+ { in: "body", key: "env" },
143
+ ],
144
+ },
145
+ ]);
146
+ return (options?.client ?? this.client).post({
147
+ url: "/pty",
148
+ ...options,
149
+ ...params,
150
+ headers: {
151
+ "Content-Type": "application/json",
152
+ ...options?.headers,
153
+ ...params.headers,
154
+ },
155
+ });
156
+ }
157
+ /**
158
+ * Remove PTY session
159
+ *
160
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
161
+ */
162
+ remove(parameters, options) {
163
+ const params = buildClientParams([parameters], [
164
+ {
165
+ args: [
166
+ { in: "path", key: "ptyID" },
167
+ { in: "query", key: "directory" },
168
+ ],
169
+ },
170
+ ]);
171
+ return (options?.client ?? this.client).delete({
172
+ url: "/pty/{ptyID}",
173
+ ...options,
174
+ ...params,
175
+ });
176
+ }
177
+ /**
178
+ * Get PTY session
179
+ *
180
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
181
+ */
182
+ get(parameters, options) {
183
+ const params = buildClientParams([parameters], [
184
+ {
185
+ args: [
186
+ { in: "path", key: "ptyID" },
187
+ { in: "query", key: "directory" },
188
+ ],
189
+ },
190
+ ]);
191
+ return (options?.client ?? this.client).get({
192
+ url: "/pty/{ptyID}",
193
+ ...options,
194
+ ...params,
195
+ });
196
+ }
197
+ /**
198
+ * Update PTY session
199
+ *
200
+ * Update properties of an existing pseudo-terminal (PTY) session.
201
+ */
202
+ update(parameters, options) {
203
+ const params = buildClientParams([parameters], [
204
+ {
205
+ args: [
206
+ { in: "path", key: "ptyID" },
207
+ { in: "query", key: "directory" },
208
+ { in: "body", key: "title" },
209
+ { in: "body", key: "size" },
210
+ ],
211
+ },
212
+ ]);
213
+ return (options?.client ?? this.client).put({
214
+ url: "/pty/{ptyID}",
215
+ ...options,
216
+ ...params,
217
+ headers: {
218
+ "Content-Type": "application/json",
219
+ ...options?.headers,
220
+ ...params.headers,
221
+ },
222
+ });
223
+ }
224
+ /**
225
+ * Connect to PTY session
226
+ *
227
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
228
+ */
229
+ connect(parameters, options) {
230
+ const params = buildClientParams([parameters], [
231
+ {
232
+ args: [
233
+ { in: "path", key: "ptyID" },
234
+ { in: "query", key: "directory" },
235
+ ],
236
+ },
237
+ ]);
238
+ return (options?.client ?? this.client).get({
239
+ url: "/pty/{ptyID}/connect",
240
+ ...options,
241
+ ...params,
242
+ });
243
+ }
244
+ }
245
+ export class Config extends HeyApiClient {
246
+ /**
247
+ * Get configuration
248
+ *
249
+ * Retrieve the current 100XPrompt configuration settings and preferences.
250
+ */
251
+ get(parameters, options) {
252
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
253
+ return (options?.client ?? this.client).get({
254
+ url: "/config",
255
+ ...options,
256
+ ...params,
257
+ });
258
+ }
259
+ /**
260
+ * Update configuration
261
+ *
262
+ * Update 100XPrompt configuration settings and preferences.
263
+ */
264
+ update(parameters, options) {
265
+ const params = buildClientParams([parameters], [
266
+ {
267
+ args: [
268
+ { in: "query", key: "directory" },
269
+ { key: "config", map: "body" },
270
+ ],
271
+ },
272
+ ]);
273
+ return (options?.client ?? this.client).patch({
274
+ url: "/config",
275
+ ...options,
276
+ ...params,
277
+ headers: {
278
+ "Content-Type": "application/json",
279
+ ...options?.headers,
280
+ ...params.headers,
281
+ },
282
+ });
283
+ }
284
+ /**
285
+ * List config providers
286
+ *
287
+ * Get a list of all configured AI providers and their default models.
288
+ */
289
+ providers(parameters, options) {
290
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
291
+ return (options?.client ?? this.client).get({
292
+ url: "/config/providers",
293
+ ...options,
294
+ ...params,
295
+ });
296
+ }
297
+ }
298
+ export class Tool extends HeyApiClient {
299
+ /**
300
+ * List tool IDs
301
+ *
302
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
303
+ */
304
+ ids(parameters, options) {
305
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
306
+ return (options?.client ?? this.client).get({
307
+ url: "/experimental/tool/ids",
308
+ ...options,
309
+ ...params,
310
+ });
311
+ }
312
+ /**
313
+ * List tools
314
+ *
315
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
316
+ */
317
+ list(parameters, options) {
318
+ const params = buildClientParams([parameters], [
319
+ {
320
+ args: [
321
+ { in: "query", key: "directory" },
322
+ { in: "query", key: "provider" },
323
+ { in: "query", key: "model" },
324
+ ],
325
+ },
326
+ ]);
327
+ return (options?.client ?? this.client).get({
328
+ url: "/experimental/tool",
329
+ ...options,
330
+ ...params,
331
+ });
332
+ }
333
+ }
334
+ export class Instance extends HeyApiClient {
335
+ /**
336
+ * Dispose instance
337
+ *
338
+ * Clean up and dispose the current 100XPrompt instance, releasing all resources.
339
+ */
340
+ dispose(parameters, options) {
341
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
342
+ return (options?.client ?? this.client).post({
343
+ url: "/instance/dispose",
344
+ ...options,
345
+ ...params,
346
+ });
347
+ }
348
+ }
349
+ export class Path extends HeyApiClient {
350
+ /**
351
+ * Get paths
352
+ *
353
+ * Retrieve the current working directory and related path information for the 100XPrompt instance.
354
+ */
355
+ get(parameters, options) {
356
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
357
+ return (options?.client ?? this.client).get({
358
+ url: "/path",
359
+ ...options,
360
+ ...params,
361
+ });
362
+ }
363
+ }
364
+ export class Worktree extends HeyApiClient {
365
+ /**
366
+ * List worktrees
367
+ *
368
+ * List all sandbox worktrees for the current project.
369
+ */
370
+ list(parameters, options) {
371
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
372
+ return (options?.client ?? this.client).get({
373
+ url: "/experimental/worktree",
374
+ ...options,
375
+ ...params,
376
+ });
377
+ }
378
+ /**
379
+ * Create worktree
380
+ *
381
+ * Create a new git worktree for the current project.
382
+ */
383
+ create(parameters, options) {
384
+ const params = buildClientParams([parameters], [
385
+ {
386
+ args: [
387
+ { in: "query", key: "directory" },
388
+ { key: "worktreeCreateInput", map: "body" },
389
+ ],
390
+ },
391
+ ]);
392
+ return (options?.client ?? this.client).post({
393
+ url: "/experimental/worktree",
394
+ ...options,
395
+ ...params,
396
+ headers: {
397
+ "Content-Type": "application/json",
398
+ ...options?.headers,
399
+ ...params.headers,
400
+ },
401
+ });
402
+ }
403
+ }
404
+ export class Vcs extends HeyApiClient {
405
+ /**
406
+ * Get VCS info
407
+ *
408
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
409
+ */
410
+ get(parameters, options) {
411
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
412
+ return (options?.client ?? this.client).get({
413
+ url: "/vcs",
414
+ ...options,
415
+ ...params,
416
+ });
417
+ }
418
+ }
419
+ export class Session extends HeyApiClient {
420
+ /**
421
+ * List sessions
422
+ *
423
+ * Get a list of all 100XPrompt sessions, sorted by most recently updated.
424
+ */
425
+ list(parameters, options) {
426
+ const params = buildClientParams([parameters], [
427
+ {
428
+ args: [
429
+ { in: "query", key: "directory" },
430
+ { in: "query", key: "start" },
431
+ { in: "query", key: "search" },
432
+ { in: "query", key: "limit" },
433
+ ],
434
+ },
435
+ ]);
436
+ return (options?.client ?? this.client).get({
437
+ url: "/session",
438
+ ...options,
439
+ ...params,
440
+ });
441
+ }
442
+ /**
443
+ * Create session
444
+ *
445
+ * Create a new 100XPrompt session for interacting with AI assistants and managing conversations.
446
+ */
447
+ create(parameters, options) {
448
+ const params = buildClientParams([parameters], [
449
+ {
450
+ args: [
451
+ { in: "query", key: "directory" },
452
+ { in: "body", key: "parentID" },
453
+ { in: "body", key: "title" },
454
+ { in: "body", key: "permission" },
455
+ ],
456
+ },
457
+ ]);
458
+ return (options?.client ?? this.client).post({
459
+ url: "/session",
460
+ ...options,
461
+ ...params,
462
+ headers: {
463
+ "Content-Type": "application/json",
464
+ ...options?.headers,
465
+ ...params.headers,
466
+ },
467
+ });
468
+ }
469
+ /**
470
+ * Get session status
471
+ *
472
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
473
+ */
474
+ status(parameters, options) {
475
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
476
+ return (options?.client ?? this.client).get({
477
+ url: "/session/status",
478
+ ...options,
479
+ ...params,
480
+ });
481
+ }
482
+ /**
483
+ * Delete session
484
+ *
485
+ * Delete a session and permanently remove all associated data, including messages and history.
486
+ */
487
+ delete(parameters, options) {
488
+ const params = buildClientParams([parameters], [
489
+ {
490
+ args: [
491
+ { in: "path", key: "sessionID" },
492
+ { in: "query", key: "directory" },
493
+ ],
494
+ },
495
+ ]);
496
+ return (options?.client ?? this.client).delete({
497
+ url: "/session/{sessionID}",
498
+ ...options,
499
+ ...params,
500
+ });
501
+ }
502
+ /**
503
+ * Get session
504
+ *
505
+ * Retrieve detailed information about a specific 100XPrompt session.
506
+ */
507
+ get(parameters, options) {
508
+ const params = buildClientParams([parameters], [
509
+ {
510
+ args: [
511
+ { in: "path", key: "sessionID" },
512
+ { in: "query", key: "directory" },
513
+ ],
514
+ },
515
+ ]);
516
+ return (options?.client ?? this.client).get({
517
+ url: "/session/{sessionID}",
518
+ ...options,
519
+ ...params,
520
+ });
521
+ }
522
+ /**
523
+ * Update session
524
+ *
525
+ * Update properties of an existing session, such as title or other metadata.
526
+ */
527
+ update(parameters, options) {
528
+ const params = buildClientParams([parameters], [
529
+ {
530
+ args: [
531
+ { in: "path", key: "sessionID" },
532
+ { in: "query", key: "directory" },
533
+ { in: "body", key: "title" },
534
+ { in: "body", key: "time" },
535
+ ],
536
+ },
537
+ ]);
538
+ return (options?.client ?? this.client).patch({
539
+ url: "/session/{sessionID}",
540
+ ...options,
541
+ ...params,
542
+ headers: {
543
+ "Content-Type": "application/json",
544
+ ...options?.headers,
545
+ ...params.headers,
546
+ },
547
+ });
548
+ }
549
+ /**
550
+ * Get session children
551
+ *
552
+ * Retrieve all child sessions that were forked from the specified parent session.
553
+ */
554
+ children(parameters, options) {
555
+ const params = buildClientParams([parameters], [
556
+ {
557
+ args: [
558
+ { in: "path", key: "sessionID" },
559
+ { in: "query", key: "directory" },
560
+ ],
561
+ },
562
+ ]);
563
+ return (options?.client ?? this.client).get({
564
+ url: "/session/{sessionID}/children",
565
+ ...options,
566
+ ...params,
567
+ });
568
+ }
569
+ /**
570
+ * Get session todos
571
+ *
572
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
573
+ */
574
+ todo(parameters, options) {
575
+ const params = buildClientParams([parameters], [
576
+ {
577
+ args: [
578
+ { in: "path", key: "sessionID" },
579
+ { in: "query", key: "directory" },
580
+ ],
581
+ },
582
+ ]);
583
+ return (options?.client ?? this.client).get({
584
+ url: "/session/{sessionID}/todo",
585
+ ...options,
586
+ ...params,
587
+ });
588
+ }
589
+ /**
590
+ * Initialize session
591
+ *
592
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
593
+ */
594
+ init(parameters, options) {
595
+ const params = buildClientParams([parameters], [
596
+ {
597
+ args: [
598
+ { in: "path", key: "sessionID" },
599
+ { in: "query", key: "directory" },
600
+ { in: "body", key: "modelID" },
601
+ { in: "body", key: "providerID" },
602
+ { in: "body", key: "messageID" },
603
+ ],
604
+ },
605
+ ]);
606
+ return (options?.client ?? this.client).post({
607
+ url: "/session/{sessionID}/init",
608
+ ...options,
609
+ ...params,
610
+ headers: {
611
+ "Content-Type": "application/json",
612
+ ...options?.headers,
613
+ ...params.headers,
614
+ },
615
+ });
616
+ }
617
+ /**
618
+ * Fork session
619
+ *
620
+ * Create a new session by forking an existing session at a specific message point.
621
+ */
622
+ fork(parameters, options) {
623
+ const params = buildClientParams([parameters], [
624
+ {
625
+ args: [
626
+ { in: "path", key: "sessionID" },
627
+ { in: "query", key: "directory" },
628
+ { in: "body", key: "messageID" },
629
+ ],
630
+ },
631
+ ]);
632
+ return (options?.client ?? this.client).post({
633
+ url: "/session/{sessionID}/fork",
634
+ ...options,
635
+ ...params,
636
+ headers: {
637
+ "Content-Type": "application/json",
638
+ ...options?.headers,
639
+ ...params.headers,
640
+ },
641
+ });
642
+ }
643
+ /**
644
+ * Abort session
645
+ *
646
+ * Abort an active session and stop any ongoing AI processing or command execution.
647
+ */
648
+ abort(parameters, options) {
649
+ const params = buildClientParams([parameters], [
650
+ {
651
+ args: [
652
+ { in: "path", key: "sessionID" },
653
+ { in: "query", key: "directory" },
654
+ ],
655
+ },
656
+ ]);
657
+ return (options?.client ?? this.client).post({
658
+ url: "/session/{sessionID}/abort",
659
+ ...options,
660
+ ...params,
661
+ });
662
+ }
663
+ /**
664
+ * Unshare session
665
+ *
666
+ * Remove the shareable link for a session, making it private again.
667
+ */
668
+ unshare(parameters, options) {
669
+ const params = buildClientParams([parameters], [
670
+ {
671
+ args: [
672
+ { in: "path", key: "sessionID" },
673
+ { in: "query", key: "directory" },
674
+ ],
675
+ },
676
+ ]);
677
+ return (options?.client ?? this.client).delete({
678
+ url: "/session/{sessionID}/share",
679
+ ...options,
680
+ ...params,
681
+ });
682
+ }
683
+ /**
684
+ * Share session
685
+ *
686
+ * Create a shareable link for a session, allowing others to view the conversation.
687
+ */
688
+ share(parameters, options) {
689
+ const params = buildClientParams([parameters], [
690
+ {
691
+ args: [
692
+ { in: "path", key: "sessionID" },
693
+ { in: "query", key: "directory" },
694
+ ],
695
+ },
696
+ ]);
697
+ return (options?.client ?? this.client).post({
698
+ url: "/session/{sessionID}/share",
699
+ ...options,
700
+ ...params,
701
+ });
702
+ }
703
+ /**
704
+ * Get session diff
705
+ *
706
+ * Get all file changes (diffs) made during this session.
707
+ */
708
+ diff(parameters, options) {
709
+ const params = buildClientParams([parameters], [
710
+ {
711
+ args: [
712
+ { in: "path", key: "sessionID" },
713
+ { in: "query", key: "directory" },
714
+ { in: "query", key: "messageID" },
715
+ ],
716
+ },
717
+ ]);
718
+ return (options?.client ?? this.client).get({
719
+ url: "/session/{sessionID}/diff",
720
+ ...options,
721
+ ...params,
722
+ });
723
+ }
724
+ /**
725
+ * Summarize session
726
+ *
727
+ * Generate a concise summary of the session using AI compaction to preserve key information.
728
+ */
729
+ summarize(parameters, options) {
730
+ const params = buildClientParams([parameters], [
731
+ {
732
+ args: [
733
+ { in: "path", key: "sessionID" },
734
+ { in: "query", key: "directory" },
735
+ { in: "body", key: "providerID" },
736
+ { in: "body", key: "modelID" },
737
+ { in: "body", key: "auto" },
738
+ ],
739
+ },
740
+ ]);
741
+ return (options?.client ?? this.client).post({
742
+ url: "/session/{sessionID}/summarize",
743
+ ...options,
744
+ ...params,
745
+ headers: {
746
+ "Content-Type": "application/json",
747
+ ...options?.headers,
748
+ ...params.headers,
749
+ },
750
+ });
751
+ }
752
+ /**
753
+ * Get session messages
754
+ *
755
+ * Retrieve all messages in a session, including user prompts and AI responses.
756
+ */
757
+ messages(parameters, options) {
758
+ const params = buildClientParams([parameters], [
759
+ {
760
+ args: [
761
+ { in: "path", key: "sessionID" },
762
+ { in: "query", key: "directory" },
763
+ { in: "query", key: "limit" },
764
+ ],
765
+ },
766
+ ]);
767
+ return (options?.client ?? this.client).get({
768
+ url: "/session/{sessionID}/message",
769
+ ...options,
770
+ ...params,
771
+ });
772
+ }
773
+ /**
774
+ * Send message
775
+ *
776
+ * Create and send a new message to a session, streaming the AI response.
777
+ */
778
+ prompt(parameters, options) {
779
+ const params = buildClientParams([parameters], [
780
+ {
781
+ args: [
782
+ { in: "path", key: "sessionID" },
783
+ { in: "query", key: "directory" },
784
+ { in: "body", key: "messageID" },
785
+ { in: "body", key: "model" },
786
+ { in: "body", key: "agent" },
787
+ { in: "body", key: "noReply" },
788
+ { in: "body", key: "tools" },
789
+ { in: "body", key: "system" },
790
+ { in: "body", key: "variant" },
791
+ { in: "body", key: "parts" },
792
+ ],
793
+ },
794
+ ]);
795
+ return (options?.client ?? this.client).post({
796
+ url: "/session/{sessionID}/message",
797
+ ...options,
798
+ ...params,
799
+ headers: {
800
+ "Content-Type": "application/json",
801
+ ...options?.headers,
802
+ ...params.headers,
803
+ },
804
+ });
805
+ }
806
+ /**
807
+ * Get message
808
+ *
809
+ * Retrieve a specific message from a session by its message ID.
810
+ */
811
+ message(parameters, options) {
812
+ const params = buildClientParams([parameters], [
813
+ {
814
+ args: [
815
+ { in: "path", key: "sessionID" },
816
+ { in: "path", key: "messageID" },
817
+ { in: "query", key: "directory" },
818
+ ],
819
+ },
820
+ ]);
821
+ return (options?.client ?? this.client).get({
822
+ url: "/session/{sessionID}/message/{messageID}",
823
+ ...options,
824
+ ...params,
825
+ });
826
+ }
827
+ /**
828
+ * Send async message
829
+ *
830
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
831
+ */
832
+ promptAsync(parameters, options) {
833
+ const params = buildClientParams([parameters], [
834
+ {
835
+ args: [
836
+ { in: "path", key: "sessionID" },
837
+ { in: "query", key: "directory" },
838
+ { in: "body", key: "messageID" },
839
+ { in: "body", key: "model" },
840
+ { in: "body", key: "agent" },
841
+ { in: "body", key: "noReply" },
842
+ { in: "body", key: "tools" },
843
+ { in: "body", key: "system" },
844
+ { in: "body", key: "variant" },
845
+ { in: "body", key: "parts" },
846
+ ],
847
+ },
848
+ ]);
849
+ return (options?.client ?? this.client).post({
850
+ url: "/session/{sessionID}/prompt_async",
851
+ ...options,
852
+ ...params,
853
+ headers: {
854
+ "Content-Type": "application/json",
855
+ ...options?.headers,
856
+ ...params.headers,
857
+ },
858
+ });
859
+ }
860
+ /**
861
+ * Send command
862
+ *
863
+ * Send a new command to a session for execution by the AI assistant.
864
+ */
865
+ command(parameters, options) {
866
+ const params = buildClientParams([parameters], [
867
+ {
868
+ args: [
869
+ { in: "path", key: "sessionID" },
870
+ { in: "query", key: "directory" },
871
+ { in: "body", key: "messageID" },
872
+ { in: "body", key: "agent" },
873
+ { in: "body", key: "model" },
874
+ { in: "body", key: "arguments" },
875
+ { in: "body", key: "command" },
876
+ { in: "body", key: "variant" },
877
+ { in: "body", key: "parts" },
878
+ ],
879
+ },
880
+ ]);
881
+ return (options?.client ?? this.client).post({
882
+ url: "/session/{sessionID}/command",
883
+ ...options,
884
+ ...params,
885
+ headers: {
886
+ "Content-Type": "application/json",
887
+ ...options?.headers,
888
+ ...params.headers,
889
+ },
890
+ });
891
+ }
892
+ /**
893
+ * Run shell command
894
+ *
895
+ * Execute a shell command within the session context and return the AI's response.
896
+ */
897
+ shell(parameters, options) {
898
+ const params = buildClientParams([parameters], [
899
+ {
900
+ args: [
901
+ { in: "path", key: "sessionID" },
902
+ { in: "query", key: "directory" },
903
+ { in: "body", key: "agent" },
904
+ { in: "body", key: "model" },
905
+ { in: "body", key: "command" },
906
+ ],
907
+ },
908
+ ]);
909
+ return (options?.client ?? this.client).post({
910
+ url: "/session/{sessionID}/shell",
911
+ ...options,
912
+ ...params,
913
+ headers: {
914
+ "Content-Type": "application/json",
915
+ ...options?.headers,
916
+ ...params.headers,
917
+ },
918
+ });
919
+ }
920
+ /**
921
+ * Revert message
922
+ *
923
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
924
+ */
925
+ revert(parameters, options) {
926
+ const params = buildClientParams([parameters], [
927
+ {
928
+ args: [
929
+ { in: "path", key: "sessionID" },
930
+ { in: "query", key: "directory" },
931
+ { in: "body", key: "messageID" },
932
+ { in: "body", key: "partID" },
933
+ ],
934
+ },
935
+ ]);
936
+ return (options?.client ?? this.client).post({
937
+ url: "/session/{sessionID}/revert",
938
+ ...options,
939
+ ...params,
940
+ headers: {
941
+ "Content-Type": "application/json",
942
+ ...options?.headers,
943
+ ...params.headers,
944
+ },
945
+ });
946
+ }
947
+ /**
948
+ * Restore reverted messages
949
+ *
950
+ * Restore all previously reverted messages in a session.
951
+ */
952
+ unrevert(parameters, options) {
953
+ const params = buildClientParams([parameters], [
954
+ {
955
+ args: [
956
+ { in: "path", key: "sessionID" },
957
+ { in: "query", key: "directory" },
958
+ ],
959
+ },
960
+ ]);
961
+ return (options?.client ?? this.client).post({
962
+ url: "/session/{sessionID}/unrevert",
963
+ ...options,
964
+ ...params,
965
+ });
966
+ }
967
+ }
968
+ export class Part extends HeyApiClient {
969
+ /**
970
+ * Delete a part from a message
971
+ */
972
+ delete(parameters, options) {
973
+ const params = buildClientParams([parameters], [
974
+ {
975
+ args: [
976
+ { in: "path", key: "sessionID" },
977
+ { in: "path", key: "messageID" },
978
+ { in: "path", key: "partID" },
979
+ { in: "query", key: "directory" },
980
+ ],
981
+ },
982
+ ]);
983
+ return (options?.client ?? this.client).delete({
984
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
985
+ ...options,
986
+ ...params,
987
+ });
988
+ }
989
+ /**
990
+ * Update a part in a message
991
+ */
992
+ update(parameters, options) {
993
+ const params = buildClientParams([parameters], [
994
+ {
995
+ args: [
996
+ { in: "path", key: "sessionID" },
997
+ { in: "path", key: "messageID" },
998
+ { in: "path", key: "partID" },
999
+ { in: "query", key: "directory" },
1000
+ { key: "part", map: "body" },
1001
+ ],
1002
+ },
1003
+ ]);
1004
+ return (options?.client ?? this.client).patch({
1005
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
1006
+ ...options,
1007
+ ...params,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...options?.headers,
1011
+ ...params.headers,
1012
+ },
1013
+ });
1014
+ }
1015
+ }
1016
+ export class Permission extends HeyApiClient {
1017
+ /**
1018
+ * Respond to permission
1019
+ *
1020
+ * Approve or deny a permission request from the AI assistant.
1021
+ *
1022
+ * @deprecated
1023
+ */
1024
+ respond(parameters, options) {
1025
+ const params = buildClientParams([parameters], [
1026
+ {
1027
+ args: [
1028
+ { in: "path", key: "sessionID" },
1029
+ { in: "path", key: "permissionID" },
1030
+ { in: "query", key: "directory" },
1031
+ { in: "body", key: "response" },
1032
+ ],
1033
+ },
1034
+ ]);
1035
+ return (options?.client ?? this.client).post({
1036
+ url: "/session/{sessionID}/permissions/{permissionID}",
1037
+ ...options,
1038
+ ...params,
1039
+ headers: {
1040
+ "Content-Type": "application/json",
1041
+ ...options?.headers,
1042
+ ...params.headers,
1043
+ },
1044
+ });
1045
+ }
1046
+ /**
1047
+ * Respond to permission request
1048
+ *
1049
+ * Approve or deny a permission request from the AI assistant.
1050
+ */
1051
+ reply(parameters, options) {
1052
+ const params = buildClientParams([parameters], [
1053
+ {
1054
+ args: [
1055
+ { in: "path", key: "requestID" },
1056
+ { in: "query", key: "directory" },
1057
+ { in: "body", key: "reply" },
1058
+ { in: "body", key: "message" },
1059
+ ],
1060
+ },
1061
+ ]);
1062
+ return (options?.client ?? this.client).post({
1063
+ url: "/permission/{requestID}/reply",
1064
+ ...options,
1065
+ ...params,
1066
+ headers: {
1067
+ "Content-Type": "application/json",
1068
+ ...options?.headers,
1069
+ ...params.headers,
1070
+ },
1071
+ });
1072
+ }
1073
+ /**
1074
+ * List pending permissions
1075
+ *
1076
+ * Get all pending permission requests across all sessions.
1077
+ */
1078
+ list(parameters, options) {
1079
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1080
+ return (options?.client ?? this.client).get({
1081
+ url: "/permission",
1082
+ ...options,
1083
+ ...params,
1084
+ });
1085
+ }
1086
+ }
1087
+ export class Question extends HeyApiClient {
1088
+ /**
1089
+ * List pending questions
1090
+ *
1091
+ * Get all pending question requests across all sessions.
1092
+ */
1093
+ list(parameters, options) {
1094
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1095
+ return (options?.client ?? this.client).get({
1096
+ url: "/question",
1097
+ ...options,
1098
+ ...params,
1099
+ });
1100
+ }
1101
+ /**
1102
+ * Reply to question request
1103
+ *
1104
+ * Provide answers to a question request from the AI assistant.
1105
+ */
1106
+ reply(parameters, options) {
1107
+ const params = buildClientParams([parameters], [
1108
+ {
1109
+ args: [
1110
+ { in: "path", key: "requestID" },
1111
+ { in: "query", key: "directory" },
1112
+ { in: "body", key: "answers" },
1113
+ ],
1114
+ },
1115
+ ]);
1116
+ return (options?.client ?? this.client).post({
1117
+ url: "/question/{requestID}/reply",
1118
+ ...options,
1119
+ ...params,
1120
+ headers: {
1121
+ "Content-Type": "application/json",
1122
+ ...options?.headers,
1123
+ ...params.headers,
1124
+ },
1125
+ });
1126
+ }
1127
+ /**
1128
+ * Reject question request
1129
+ *
1130
+ * Reject a question request from the AI assistant.
1131
+ */
1132
+ reject(parameters, options) {
1133
+ const params = buildClientParams([parameters], [
1134
+ {
1135
+ args: [
1136
+ { in: "path", key: "requestID" },
1137
+ { in: "query", key: "directory" },
1138
+ ],
1139
+ },
1140
+ ]);
1141
+ return (options?.client ?? this.client).post({
1142
+ url: "/question/{requestID}/reject",
1143
+ ...options,
1144
+ ...params,
1145
+ });
1146
+ }
1147
+ }
1148
+ export class Command extends HeyApiClient {
1149
+ /**
1150
+ * List commands
1151
+ *
1152
+ * Get a list of all available commands in the 100XPrompt system.
1153
+ */
1154
+ list(parameters, options) {
1155
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1156
+ return (options?.client ?? this.client).get({
1157
+ url: "/command",
1158
+ ...options,
1159
+ ...params,
1160
+ });
1161
+ }
1162
+ }
1163
+ export class Oauth extends HeyApiClient {
1164
+ /**
1165
+ * OAuth authorize
1166
+ *
1167
+ * Initiate OAuth authorization for a specific AI provider to get an authorization URL.
1168
+ */
1169
+ authorize(parameters, options) {
1170
+ const params = buildClientParams([parameters], [
1171
+ {
1172
+ args: [
1173
+ { in: "path", key: "providerID" },
1174
+ { in: "query", key: "directory" },
1175
+ { in: "body", key: "method" },
1176
+ ],
1177
+ },
1178
+ ]);
1179
+ return (options?.client ?? this.client).post({
1180
+ url: "/provider/{providerID}/oauth/authorize",
1181
+ ...options,
1182
+ ...params,
1183
+ headers: {
1184
+ "Content-Type": "application/json",
1185
+ ...options?.headers,
1186
+ ...params.headers,
1187
+ },
1188
+ });
1189
+ }
1190
+ /**
1191
+ * OAuth callback
1192
+ *
1193
+ * Handle the OAuth callback from a provider after user authorization.
1194
+ */
1195
+ callback(parameters, options) {
1196
+ const params = buildClientParams([parameters], [
1197
+ {
1198
+ args: [
1199
+ { in: "path", key: "providerID" },
1200
+ { in: "query", key: "directory" },
1201
+ { in: "body", key: "method" },
1202
+ { in: "body", key: "code" },
1203
+ ],
1204
+ },
1205
+ ]);
1206
+ return (options?.client ?? this.client).post({
1207
+ url: "/provider/{providerID}/oauth/callback",
1208
+ ...options,
1209
+ ...params,
1210
+ headers: {
1211
+ "Content-Type": "application/json",
1212
+ ...options?.headers,
1213
+ ...params.headers,
1214
+ },
1215
+ });
1216
+ }
1217
+ }
1218
+ export class Provider extends HeyApiClient {
1219
+ /**
1220
+ * List providers
1221
+ *
1222
+ * Get a list of all available AI providers, including both available and connected ones.
1223
+ */
1224
+ list(parameters, options) {
1225
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1226
+ return (options?.client ?? this.client).get({
1227
+ url: "/provider",
1228
+ ...options,
1229
+ ...params,
1230
+ });
1231
+ }
1232
+ /**
1233
+ * Get provider auth methods
1234
+ *
1235
+ * Retrieve available authentication methods for all AI providers.
1236
+ */
1237
+ auth(parameters, options) {
1238
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1239
+ return (options?.client ?? this.client).get({
1240
+ url: "/provider/auth",
1241
+ ...options,
1242
+ ...params,
1243
+ });
1244
+ }
1245
+ oauth = new Oauth({ client: this.client });
1246
+ }
1247
+ export class Find extends HeyApiClient {
1248
+ /**
1249
+ * Find text
1250
+ *
1251
+ * Search for text patterns across files in the project using ripgrep.
1252
+ */
1253
+ text(parameters, options) {
1254
+ const params = buildClientParams([parameters], [
1255
+ {
1256
+ args: [
1257
+ { in: "query", key: "directory" },
1258
+ { in: "query", key: "pattern" },
1259
+ ],
1260
+ },
1261
+ ]);
1262
+ return (options?.client ?? this.client).get({
1263
+ url: "/find",
1264
+ ...options,
1265
+ ...params,
1266
+ });
1267
+ }
1268
+ /**
1269
+ * Find files
1270
+ *
1271
+ * Search for files or directories by name or pattern in the project directory.
1272
+ */
1273
+ files(parameters, options) {
1274
+ const params = buildClientParams([parameters], [
1275
+ {
1276
+ args: [
1277
+ { in: "query", key: "directory" },
1278
+ { in: "query", key: "query" },
1279
+ { in: "query", key: "dirs" },
1280
+ { in: "query", key: "type" },
1281
+ { in: "query", key: "limit" },
1282
+ ],
1283
+ },
1284
+ ]);
1285
+ return (options?.client ?? this.client).get({
1286
+ url: "/find/file",
1287
+ ...options,
1288
+ ...params,
1289
+ });
1290
+ }
1291
+ /**
1292
+ * Find symbols
1293
+ *
1294
+ * Search for workspace symbols like functions, classes, and variables using LSP.
1295
+ */
1296
+ symbols(parameters, options) {
1297
+ const params = buildClientParams([parameters], [
1298
+ {
1299
+ args: [
1300
+ { in: "query", key: "directory" },
1301
+ { in: "query", key: "query" },
1302
+ ],
1303
+ },
1304
+ ]);
1305
+ return (options?.client ?? this.client).get({
1306
+ url: "/find/symbol",
1307
+ ...options,
1308
+ ...params,
1309
+ });
1310
+ }
1311
+ }
1312
+ export class File extends HeyApiClient {
1313
+ /**
1314
+ * List files
1315
+ *
1316
+ * List files and directories in a specified path.
1317
+ */
1318
+ list(parameters, options) {
1319
+ const params = buildClientParams([parameters], [
1320
+ {
1321
+ args: [
1322
+ { in: "query", key: "directory" },
1323
+ { in: "query", key: "path" },
1324
+ ],
1325
+ },
1326
+ ]);
1327
+ return (options?.client ?? this.client).get({
1328
+ url: "/file",
1329
+ ...options,
1330
+ ...params,
1331
+ });
1332
+ }
1333
+ /**
1334
+ * Read file
1335
+ *
1336
+ * Read the content of a specified file.
1337
+ */
1338
+ read(parameters, options) {
1339
+ const params = buildClientParams([parameters], [
1340
+ {
1341
+ args: [
1342
+ { in: "query", key: "directory" },
1343
+ { in: "query", key: "path" },
1344
+ ],
1345
+ },
1346
+ ]);
1347
+ return (options?.client ?? this.client).get({
1348
+ url: "/file/content",
1349
+ ...options,
1350
+ ...params,
1351
+ });
1352
+ }
1353
+ /**
1354
+ * Get file status
1355
+ *
1356
+ * Get the git status of all files in the project.
1357
+ */
1358
+ status(parameters, options) {
1359
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1360
+ return (options?.client ?? this.client).get({
1361
+ url: "/file/status",
1362
+ ...options,
1363
+ ...params,
1364
+ });
1365
+ }
1366
+ }
1367
+ export class App extends HeyApiClient {
1368
+ /**
1369
+ * Write log
1370
+ *
1371
+ * Write a log entry to the server logs with specified level and metadata.
1372
+ */
1373
+ log(parameters, options) {
1374
+ const params = buildClientParams([parameters], [
1375
+ {
1376
+ args: [
1377
+ { in: "query", key: "directory" },
1378
+ { in: "body", key: "service" },
1379
+ { in: "body", key: "level" },
1380
+ { in: "body", key: "message" },
1381
+ { in: "body", key: "extra" },
1382
+ ],
1383
+ },
1384
+ ]);
1385
+ return (options?.client ?? this.client).post({
1386
+ url: "/log",
1387
+ ...options,
1388
+ ...params,
1389
+ headers: {
1390
+ "Content-Type": "application/json",
1391
+ ...options?.headers,
1392
+ ...params.headers,
1393
+ },
1394
+ });
1395
+ }
1396
+ /**
1397
+ * List agents
1398
+ *
1399
+ * Get a list of all available AI agents in the 100XPrompt system.
1400
+ */
1401
+ agents(parameters, options) {
1402
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1403
+ return (options?.client ?? this.client).get({
1404
+ url: "/agent",
1405
+ ...options,
1406
+ ...params,
1407
+ });
1408
+ }
1409
+ }
1410
+ export class Auth extends HeyApiClient {
1411
+ /**
1412
+ * Remove MCP OAuth
1413
+ *
1414
+ * Remove OAuth credentials for an MCP server
1415
+ */
1416
+ remove(parameters, options) {
1417
+ const params = buildClientParams([parameters], [
1418
+ {
1419
+ args: [
1420
+ { in: "path", key: "name" },
1421
+ { in: "query", key: "directory" },
1422
+ ],
1423
+ },
1424
+ ]);
1425
+ return (options?.client ?? this.client).delete({
1426
+ url: "/mcp/{name}/auth",
1427
+ ...options,
1428
+ ...params,
1429
+ });
1430
+ }
1431
+ /**
1432
+ * Start MCP OAuth
1433
+ *
1434
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
1435
+ */
1436
+ start(parameters, options) {
1437
+ const params = buildClientParams([parameters], [
1438
+ {
1439
+ args: [
1440
+ { in: "path", key: "name" },
1441
+ { in: "query", key: "directory" },
1442
+ ],
1443
+ },
1444
+ ]);
1445
+ return (options?.client ?? this.client).post({
1446
+ url: "/mcp/{name}/auth",
1447
+ ...options,
1448
+ ...params,
1449
+ });
1450
+ }
1451
+ /**
1452
+ * Complete MCP OAuth
1453
+ *
1454
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
1455
+ */
1456
+ callback(parameters, options) {
1457
+ const params = buildClientParams([parameters], [
1458
+ {
1459
+ args: [
1460
+ { in: "path", key: "name" },
1461
+ { in: "query", key: "directory" },
1462
+ { in: "body", key: "code" },
1463
+ ],
1464
+ },
1465
+ ]);
1466
+ return (options?.client ?? this.client).post({
1467
+ url: "/mcp/{name}/auth/callback",
1468
+ ...options,
1469
+ ...params,
1470
+ headers: {
1471
+ "Content-Type": "application/json",
1472
+ ...options?.headers,
1473
+ ...params.headers,
1474
+ },
1475
+ });
1476
+ }
1477
+ /**
1478
+ * Authenticate MCP OAuth
1479
+ *
1480
+ * Start OAuth flow and wait for callback (opens browser)
1481
+ */
1482
+ authenticate(parameters, options) {
1483
+ const params = buildClientParams([parameters], [
1484
+ {
1485
+ args: [
1486
+ { in: "path", key: "name" },
1487
+ { in: "query", key: "directory" },
1488
+ ],
1489
+ },
1490
+ ]);
1491
+ return (options?.client ?? this.client).post({
1492
+ url: "/mcp/{name}/auth/authenticate",
1493
+ ...options,
1494
+ ...params,
1495
+ });
1496
+ }
1497
+ /**
1498
+ * Set auth credentials
1499
+ *
1500
+ * Set authentication credentials
1501
+ */
1502
+ set(parameters, options) {
1503
+ const params = buildClientParams([parameters], [
1504
+ {
1505
+ args: [
1506
+ { in: "path", key: "providerID" },
1507
+ { in: "query", key: "directory" },
1508
+ { key: "auth", map: "body" },
1509
+ ],
1510
+ },
1511
+ ]);
1512
+ return (options?.client ?? this.client).put({
1513
+ url: "/auth/{providerID}",
1514
+ ...options,
1515
+ ...params,
1516
+ headers: {
1517
+ "Content-Type": "application/json",
1518
+ ...options?.headers,
1519
+ ...params.headers,
1520
+ },
1521
+ });
1522
+ }
1523
+ }
1524
+ export class Mcp extends HeyApiClient {
1525
+ /**
1526
+ * Get MCP status
1527
+ *
1528
+ * Get the status of all Model Context Protocol (MCP) servers.
1529
+ */
1530
+ status(parameters, options) {
1531
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1532
+ return (options?.client ?? this.client).get({
1533
+ url: "/mcp",
1534
+ ...options,
1535
+ ...params,
1536
+ });
1537
+ }
1538
+ /**
1539
+ * Add MCP server
1540
+ *
1541
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
1542
+ */
1543
+ add(parameters, options) {
1544
+ const params = buildClientParams([parameters], [
1545
+ {
1546
+ args: [
1547
+ { in: "query", key: "directory" },
1548
+ { in: "body", key: "name" },
1549
+ { in: "body", key: "config" },
1550
+ ],
1551
+ },
1552
+ ]);
1553
+ return (options?.client ?? this.client).post({
1554
+ url: "/mcp",
1555
+ ...options,
1556
+ ...params,
1557
+ headers: {
1558
+ "Content-Type": "application/json",
1559
+ ...options?.headers,
1560
+ ...params.headers,
1561
+ },
1562
+ });
1563
+ }
1564
+ /**
1565
+ * Connect an MCP server
1566
+ */
1567
+ connect(parameters, options) {
1568
+ const params = buildClientParams([parameters], [
1569
+ {
1570
+ args: [
1571
+ { in: "path", key: "name" },
1572
+ { in: "query", key: "directory" },
1573
+ ],
1574
+ },
1575
+ ]);
1576
+ return (options?.client ?? this.client).post({
1577
+ url: "/mcp/{name}/connect",
1578
+ ...options,
1579
+ ...params,
1580
+ });
1581
+ }
1582
+ /**
1583
+ * Disconnect an MCP server
1584
+ */
1585
+ disconnect(parameters, options) {
1586
+ const params = buildClientParams([parameters], [
1587
+ {
1588
+ args: [
1589
+ { in: "path", key: "name" },
1590
+ { in: "query", key: "directory" },
1591
+ ],
1592
+ },
1593
+ ]);
1594
+ return (options?.client ?? this.client).post({
1595
+ url: "/mcp/{name}/disconnect",
1596
+ ...options,
1597
+ ...params,
1598
+ });
1599
+ }
1600
+ auth = new Auth({ client: this.client });
1601
+ }
1602
+ export class Resource extends HeyApiClient {
1603
+ /**
1604
+ * Get MCP resources
1605
+ *
1606
+ * Get all available MCP resources from connected servers. Optionally filter by name.
1607
+ */
1608
+ list(parameters, options) {
1609
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1610
+ return (options?.client ?? this.client).get({
1611
+ url: "/experimental/resource",
1612
+ ...options,
1613
+ ...params,
1614
+ });
1615
+ }
1616
+ }
1617
+ export class Experimental extends HeyApiClient {
1618
+ resource = new Resource({ client: this.client });
1619
+ }
1620
+ export class Lsp extends HeyApiClient {
1621
+ /**
1622
+ * Get LSP status
1623
+ *
1624
+ * Get LSP server status
1625
+ */
1626
+ status(parameters, options) {
1627
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1628
+ return (options?.client ?? this.client).get({
1629
+ url: "/lsp",
1630
+ ...options,
1631
+ ...params,
1632
+ });
1633
+ }
1634
+ }
1635
+ export class Formatter extends HeyApiClient {
1636
+ /**
1637
+ * Get formatter status
1638
+ *
1639
+ * Get formatter status
1640
+ */
1641
+ status(parameters, options) {
1642
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1643
+ return (options?.client ?? this.client).get({
1644
+ url: "/formatter",
1645
+ ...options,
1646
+ ...params,
1647
+ });
1648
+ }
1649
+ }
1650
+ export class Control extends HeyApiClient {
1651
+ /**
1652
+ * Get next TUI request
1653
+ *
1654
+ * Retrieve the next TUI (Terminal User Interface) request from the queue for processing.
1655
+ */
1656
+ next(parameters, options) {
1657
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1658
+ return (options?.client ?? this.client).get({
1659
+ url: "/tui/control/next",
1660
+ ...options,
1661
+ ...params,
1662
+ });
1663
+ }
1664
+ /**
1665
+ * Submit TUI response
1666
+ *
1667
+ * Submit a response to the TUI request queue to complete a pending request.
1668
+ */
1669
+ response(parameters, options) {
1670
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }, { in: "body" }] }]);
1671
+ return (options?.client ?? this.client).post({
1672
+ url: "/tui/control/response",
1673
+ ...options,
1674
+ ...params,
1675
+ headers: {
1676
+ "Content-Type": "application/json",
1677
+ ...options?.headers,
1678
+ ...params.headers,
1679
+ },
1680
+ });
1681
+ }
1682
+ }
1683
+ export class Tui extends HeyApiClient {
1684
+ /**
1685
+ * Append TUI prompt
1686
+ *
1687
+ * Append prompt to the TUI
1688
+ */
1689
+ appendPrompt(parameters, options) {
1690
+ const params = buildClientParams([parameters], [
1691
+ {
1692
+ args: [
1693
+ { in: "query", key: "directory" },
1694
+ { in: "body", key: "text" },
1695
+ ],
1696
+ },
1697
+ ]);
1698
+ return (options?.client ?? this.client).post({
1699
+ url: "/tui/append-prompt",
1700
+ ...options,
1701
+ ...params,
1702
+ headers: {
1703
+ "Content-Type": "application/json",
1704
+ ...options?.headers,
1705
+ ...params.headers,
1706
+ },
1707
+ });
1708
+ }
1709
+ /**
1710
+ * Open help dialog
1711
+ *
1712
+ * Open the help dialog in the TUI to display user assistance information.
1713
+ */
1714
+ openHelp(parameters, options) {
1715
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1716
+ return (options?.client ?? this.client).post({
1717
+ url: "/tui/open-help",
1718
+ ...options,
1719
+ ...params,
1720
+ });
1721
+ }
1722
+ /**
1723
+ * Open sessions dialog
1724
+ *
1725
+ * Open the session dialog
1726
+ */
1727
+ openSessions(parameters, options) {
1728
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1729
+ return (options?.client ?? this.client).post({
1730
+ url: "/tui/open-sessions",
1731
+ ...options,
1732
+ ...params,
1733
+ });
1734
+ }
1735
+ /**
1736
+ * Open themes dialog
1737
+ *
1738
+ * Open the theme dialog
1739
+ */
1740
+ openThemes(parameters, options) {
1741
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1742
+ return (options?.client ?? this.client).post({
1743
+ url: "/tui/open-themes",
1744
+ ...options,
1745
+ ...params,
1746
+ });
1747
+ }
1748
+ /**
1749
+ * Open models dialog
1750
+ *
1751
+ * Open the model dialog
1752
+ */
1753
+ openModels(parameters, options) {
1754
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1755
+ return (options?.client ?? this.client).post({
1756
+ url: "/tui/open-models",
1757
+ ...options,
1758
+ ...params,
1759
+ });
1760
+ }
1761
+ /**
1762
+ * Submit TUI prompt
1763
+ *
1764
+ * Submit the prompt
1765
+ */
1766
+ submitPrompt(parameters, options) {
1767
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1768
+ return (options?.client ?? this.client).post({
1769
+ url: "/tui/submit-prompt",
1770
+ ...options,
1771
+ ...params,
1772
+ });
1773
+ }
1774
+ /**
1775
+ * Clear TUI prompt
1776
+ *
1777
+ * Clear the prompt
1778
+ */
1779
+ clearPrompt(parameters, options) {
1780
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1781
+ return (options?.client ?? this.client).post({
1782
+ url: "/tui/clear-prompt",
1783
+ ...options,
1784
+ ...params,
1785
+ });
1786
+ }
1787
+ /**
1788
+ * Execute TUI command
1789
+ *
1790
+ * Execute a TUI command (e.g. agent_cycle)
1791
+ */
1792
+ executeCommand(parameters, options) {
1793
+ const params = buildClientParams([parameters], [
1794
+ {
1795
+ args: [
1796
+ { in: "query", key: "directory" },
1797
+ { in: "body", key: "command" },
1798
+ ],
1799
+ },
1800
+ ]);
1801
+ return (options?.client ?? this.client).post({
1802
+ url: "/tui/execute-command",
1803
+ ...options,
1804
+ ...params,
1805
+ headers: {
1806
+ "Content-Type": "application/json",
1807
+ ...options?.headers,
1808
+ ...params.headers,
1809
+ },
1810
+ });
1811
+ }
1812
+ /**
1813
+ * Show TUI toast
1814
+ *
1815
+ * Show a toast notification in the TUI
1816
+ */
1817
+ showToast(parameters, options) {
1818
+ const params = buildClientParams([parameters], [
1819
+ {
1820
+ args: [
1821
+ { in: "query", key: "directory" },
1822
+ { in: "body", key: "title" },
1823
+ { in: "body", key: "message" },
1824
+ { in: "body", key: "variant" },
1825
+ { in: "body", key: "duration" },
1826
+ ],
1827
+ },
1828
+ ]);
1829
+ return (options?.client ?? this.client).post({
1830
+ url: "/tui/show-toast",
1831
+ ...options,
1832
+ ...params,
1833
+ headers: {
1834
+ "Content-Type": "application/json",
1835
+ ...options?.headers,
1836
+ ...params.headers,
1837
+ },
1838
+ });
1839
+ }
1840
+ /**
1841
+ * Publish TUI event
1842
+ *
1843
+ * Publish a TUI event
1844
+ */
1845
+ publish(parameters, options) {
1846
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }, { in: "body" }] }]);
1847
+ return (options?.client ?? this.client).post({
1848
+ url: "/tui/publish",
1849
+ ...options,
1850
+ ...params,
1851
+ headers: {
1852
+ "Content-Type": "application/json",
1853
+ ...options?.headers,
1854
+ ...params.headers,
1855
+ },
1856
+ });
1857
+ }
1858
+ /**
1859
+ * Select session
1860
+ *
1861
+ * Navigate the TUI to display the specified session.
1862
+ */
1863
+ selectSession(parameters, options) {
1864
+ const params = buildClientParams([parameters], [
1865
+ {
1866
+ args: [
1867
+ { in: "query", key: "directory" },
1868
+ { in: "body", key: "sessionID" },
1869
+ ],
1870
+ },
1871
+ ]);
1872
+ return (options?.client ?? this.client).post({
1873
+ url: "/tui/select-session",
1874
+ ...options,
1875
+ ...params,
1876
+ headers: {
1877
+ "Content-Type": "application/json",
1878
+ ...options?.headers,
1879
+ ...params.headers,
1880
+ },
1881
+ });
1882
+ }
1883
+ control = new Control({ client: this.client });
1884
+ }
1885
+ export class Event extends HeyApiClient {
1886
+ /**
1887
+ * Subscribe to events
1888
+ *
1889
+ * Get events
1890
+ */
1891
+ subscribe(parameters, options) {
1892
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1893
+ return (options?.client ?? this.client).sse.get({
1894
+ url: "/event",
1895
+ ...options,
1896
+ ...params,
1897
+ });
1898
+ }
1899
+ }
1900
+ export class X100PromptClient extends HeyApiClient {
1901
+ static __registry = new HeyApiRegistry();
1902
+ constructor(args) {
1903
+ super(args);
1904
+ X100PromptClient.__registry.set(this, args?.key);
1905
+ }
1906
+ global = new Global({ client: this.client });
1907
+ project = new Project({ client: this.client });
1908
+ pty = new Pty({ client: this.client });
1909
+ config = new Config({ client: this.client });
1910
+ tool = new Tool({ client: this.client });
1911
+ instance = new Instance({ client: this.client });
1912
+ path = new Path({ client: this.client });
1913
+ worktree = new Worktree({ client: this.client });
1914
+ vcs = new Vcs({ client: this.client });
1915
+ session = new Session({ client: this.client });
1916
+ part = new Part({ client: this.client });
1917
+ permission = new Permission({ client: this.client });
1918
+ question = new Question({ client: this.client });
1919
+ command = new Command({ client: this.client });
1920
+ provider = new Provider({ client: this.client });
1921
+ find = new Find({ client: this.client });
1922
+ file = new File({ client: this.client });
1923
+ app = new App({ client: this.client });
1924
+ mcp = new Mcp({ client: this.client });
1925
+ experimental = new Experimental({ client: this.client });
1926
+ lsp = new Lsp({ client: this.client });
1927
+ formatter = new Formatter({ client: this.client });
1928
+ tui = new Tui({ client: this.client });
1929
+ auth = new Auth({ client: this.client });
1930
+ event = new Event({ client: this.client });
1931
+ }