@blankline/dropstone-sdk 1.0.8

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 (80) hide show
  1. package/README.md +146 -0
  2. package/dist/api.d.ts +118 -0
  3. package/dist/api.js +125 -0
  4. package/dist/client.d.ts +7 -0
  5. package/dist/client.js +51 -0
  6. package/dist/gen/client/client.gen.d.ts +2 -0
  7. package/dist/gen/client/client.gen.js +165 -0
  8. package/dist/gen/client/index.d.ts +7 -0
  9. package/dist/gen/client/index.js +5 -0
  10. package/dist/gen/client/types.gen.d.ts +127 -0
  11. package/dist/gen/client/types.gen.js +2 -0
  12. package/dist/gen/client/utils.gen.d.ts +38 -0
  13. package/dist/gen/client/utils.gen.js +226 -0
  14. package/dist/gen/client.gen.d.ts +12 -0
  15. package/dist/gen/client.gen.js +5 -0
  16. package/dist/gen/core/auth.gen.d.ts +18 -0
  17. package/dist/gen/core/auth.gen.js +14 -0
  18. package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
  19. package/dist/gen/core/bodySerializer.gen.js +57 -0
  20. package/dist/gen/core/params.gen.d.ts +33 -0
  21. package/dist/gen/core/params.gen.js +89 -0
  22. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  23. package/dist/gen/core/pathSerializer.gen.js +106 -0
  24. package/dist/gen/core/queryKeySerializer.gen.d.ts +18 -0
  25. package/dist/gen/core/queryKeySerializer.gen.js +93 -0
  26. package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
  27. package/dist/gen/core/serverSentEvents.gen.js +117 -0
  28. package/dist/gen/core/types.gen.d.ts +78 -0
  29. package/dist/gen/core/types.gen.js +2 -0
  30. package/dist/gen/core/utils.gen.d.ts +14 -0
  31. package/dist/gen/core/utils.gen.js +69 -0
  32. package/dist/gen/sdk.gen.d.ts +403 -0
  33. package/dist/gen/sdk.gen.js +881 -0
  34. package/dist/gen/types.gen.d.ts +3380 -0
  35. package/dist/gen/types.gen.js +2 -0
  36. package/dist/index.d.ts +11 -0
  37. package/dist/index.js +17 -0
  38. package/dist/process.d.ts +3 -0
  39. package/dist/process.js +33 -0
  40. package/dist/server.d.ts +23 -0
  41. package/dist/server.js +105 -0
  42. package/dist/v2/client.d.ts +8 -0
  43. package/dist/v2/client.js +96 -0
  44. package/dist/v2/data.d.ts +9 -0
  45. package/dist/v2/data.js +22 -0
  46. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  47. package/dist/v2/gen/client/client.gen.js +232 -0
  48. package/dist/v2/gen/client/index.d.ts +8 -0
  49. package/dist/v2/gen/client/index.js +6 -0
  50. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  51. package/dist/v2/gen/client/types.gen.js +2 -0
  52. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  53. package/dist/v2/gen/client/utils.gen.js +226 -0
  54. package/dist/v2/gen/client.gen.d.ts +12 -0
  55. package/dist/v2/gen/client.gen.js +3 -0
  56. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  57. package/dist/v2/gen/core/auth.gen.js +14 -0
  58. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  59. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  60. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  61. package/dist/v2/gen/core/params.gen.js +102 -0
  62. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  63. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  64. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  65. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  66. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  67. package/dist/v2/gen/core/serverSentEvents.gen.js +133 -0
  68. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  69. package/dist/v2/gen/core/types.gen.js +2 -0
  70. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  71. package/dist/v2/gen/core/utils.gen.js +87 -0
  72. package/dist/v2/gen/sdk.gen.d.ts +1549 -0
  73. package/dist/v2/gen/sdk.gen.js +3146 -0
  74. package/dist/v2/gen/types.gen.d.ts +5749 -0
  75. package/dist/v2/gen/types.gen.js +2 -0
  76. package/dist/v2/index.d.ts +11 -0
  77. package/dist/v2/index.js +17 -0
  78. package/dist/v2/server.d.ts +23 -0
  79. package/dist/v2/server.js +105 -0
  80. package/package.json +86 -0
@@ -0,0 +1,3146 @@
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 DropstoneClient()" 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 Auth extends HeyApiClient {
25
+ /**
26
+ * Remove auth credentials
27
+ *
28
+ * Remove authentication credentials
29
+ */
30
+ remove(parameters, options) {
31
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
32
+ return (options?.client ?? this.client).delete({
33
+ url: "/auth/{providerID}",
34
+ ...options,
35
+ ...params,
36
+ });
37
+ }
38
+ /**
39
+ * Set auth credentials
40
+ *
41
+ * Set authentication credentials
42
+ */
43
+ set(parameters, options) {
44
+ const params = buildClientParams([parameters], [
45
+ {
46
+ args: [
47
+ { in: "path", key: "providerID" },
48
+ { key: "auth", map: "body" },
49
+ ],
50
+ },
51
+ ]);
52
+ return (options?.client ?? this.client).put({
53
+ url: "/auth/{providerID}",
54
+ ...options,
55
+ ...params,
56
+ headers: {
57
+ "Content-Type": "application/json",
58
+ ...options?.headers,
59
+ ...params.headers,
60
+ },
61
+ });
62
+ }
63
+ }
64
+ export class App extends HeyApiClient {
65
+ /**
66
+ * Write log
67
+ *
68
+ * Write a log entry to the server logs with specified level and metadata.
69
+ */
70
+ log(parameters, options) {
71
+ const params = buildClientParams([parameters], [
72
+ {
73
+ args: [
74
+ { in: "query", key: "directory" },
75
+ { in: "query", key: "workspace" },
76
+ { in: "body", key: "service" },
77
+ { in: "body", key: "level" },
78
+ { in: "body", key: "message" },
79
+ { in: "body", key: "extra" },
80
+ ],
81
+ },
82
+ ]);
83
+ return (options?.client ?? this.client).post({
84
+ url: "/log",
85
+ ...options,
86
+ ...params,
87
+ headers: {
88
+ "Content-Type": "application/json",
89
+ ...options?.headers,
90
+ ...params.headers,
91
+ },
92
+ });
93
+ }
94
+ /**
95
+ * List agents
96
+ *
97
+ * Get a list of all available AI agents in the Dropstone system.
98
+ */
99
+ agents(parameters, options) {
100
+ const params = buildClientParams([parameters], [
101
+ {
102
+ args: [
103
+ { in: "query", key: "directory" },
104
+ { in: "query", key: "workspace" },
105
+ ],
106
+ },
107
+ ]);
108
+ return (options?.client ?? this.client).get({
109
+ url: "/agent",
110
+ ...options,
111
+ ...params,
112
+ });
113
+ }
114
+ /**
115
+ * List skills
116
+ *
117
+ * Get a list of all available skills in the Dropstone system.
118
+ */
119
+ skills(parameters, options) {
120
+ const params = buildClientParams([parameters], [
121
+ {
122
+ args: [
123
+ { in: "query", key: "directory" },
124
+ { in: "query", key: "workspace" },
125
+ ],
126
+ },
127
+ ]);
128
+ return (options?.client ?? this.client).get({
129
+ url: "/skill",
130
+ ...options,
131
+ ...params,
132
+ });
133
+ }
134
+ }
135
+ export class Config extends HeyApiClient {
136
+ /**
137
+ * Get global configuration
138
+ *
139
+ * Retrieve the current global Dropstone configuration settings and preferences.
140
+ */
141
+ get(options) {
142
+ return (options?.client ?? this.client).get({
143
+ url: "/global/config",
144
+ ...options,
145
+ });
146
+ }
147
+ /**
148
+ * Update global configuration
149
+ *
150
+ * Update global Dropstone configuration settings and preferences.
151
+ */
152
+ update(parameters, options) {
153
+ const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
154
+ return (options?.client ?? this.client).patch({
155
+ url: "/global/config",
156
+ ...options,
157
+ ...params,
158
+ headers: {
159
+ "Content-Type": "application/json",
160
+ ...options?.headers,
161
+ ...params.headers,
162
+ },
163
+ });
164
+ }
165
+ }
166
+ export class Global extends HeyApiClient {
167
+ /**
168
+ * Get health
169
+ *
170
+ * Get health information about the Dropstone server.
171
+ */
172
+ health(options) {
173
+ return (options?.client ?? this.client).get({
174
+ url: "/global/health",
175
+ ...options,
176
+ });
177
+ }
178
+ /**
179
+ * Get global events
180
+ *
181
+ * Subscribe to global events from the Dropstone system using server-sent events.
182
+ */
183
+ event(options) {
184
+ return (options?.client ?? this.client).sse.get({
185
+ url: "/global/event",
186
+ ...options,
187
+ });
188
+ }
189
+ /**
190
+ * Dispose instance
191
+ *
192
+ * Clean up and dispose all Dropstone instances, releasing all resources.
193
+ */
194
+ dispose(options) {
195
+ return (options?.client ?? this.client).post({
196
+ url: "/global/dispose",
197
+ ...options,
198
+ });
199
+ }
200
+ /**
201
+ * Upgrade dropstone
202
+ *
203
+ * Upgrade dropstone to the specified version or latest if not specified.
204
+ */
205
+ upgrade(parameters, options) {
206
+ const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]);
207
+ return (options?.client ?? this.client).post({
208
+ url: "/global/upgrade",
209
+ ...options,
210
+ ...params,
211
+ headers: {
212
+ "Content-Type": "application/json",
213
+ ...options?.headers,
214
+ ...params.headers,
215
+ },
216
+ });
217
+ }
218
+ _config;
219
+ get config() {
220
+ return (this._config ??= new Config({ client: this.client }));
221
+ }
222
+ }
223
+ export class Event extends HeyApiClient {
224
+ /**
225
+ * Subscribe to events
226
+ *
227
+ * Get events
228
+ */
229
+ subscribe(parameters, options) {
230
+ const params = buildClientParams([parameters], [
231
+ {
232
+ args: [
233
+ { in: "query", key: "directory" },
234
+ { in: "query", key: "workspace" },
235
+ ],
236
+ },
237
+ ]);
238
+ return (options?.client ?? this.client).sse.get({
239
+ url: "/event",
240
+ ...options,
241
+ ...params,
242
+ });
243
+ }
244
+ }
245
+ export class Config2 extends HeyApiClient {
246
+ /**
247
+ * Get configuration
248
+ *
249
+ * Retrieve the current Dropstone configuration settings and preferences.
250
+ */
251
+ get(parameters, options) {
252
+ const params = buildClientParams([parameters], [
253
+ {
254
+ args: [
255
+ { in: "query", key: "directory" },
256
+ { in: "query", key: "workspace" },
257
+ ],
258
+ },
259
+ ]);
260
+ return (options?.client ?? this.client).get({
261
+ url: "/config",
262
+ ...options,
263
+ ...params,
264
+ });
265
+ }
266
+ /**
267
+ * Update configuration
268
+ *
269
+ * Update Dropstone configuration settings and preferences.
270
+ */
271
+ update(parameters, options) {
272
+ const params = buildClientParams([parameters], [
273
+ {
274
+ args: [
275
+ { in: "query", key: "directory" },
276
+ { in: "query", key: "workspace" },
277
+ { key: "config", map: "body" },
278
+ ],
279
+ },
280
+ ]);
281
+ return (options?.client ?? this.client).patch({
282
+ url: "/config",
283
+ ...options,
284
+ ...params,
285
+ headers: {
286
+ "Content-Type": "application/json",
287
+ ...options?.headers,
288
+ ...params.headers,
289
+ },
290
+ });
291
+ }
292
+ /**
293
+ * List config providers
294
+ *
295
+ * Get a list of all configured AI providers and their default models.
296
+ */
297
+ providers(parameters, options) {
298
+ const params = buildClientParams([parameters], [
299
+ {
300
+ args: [
301
+ { in: "query", key: "directory" },
302
+ { in: "query", key: "workspace" },
303
+ ],
304
+ },
305
+ ]);
306
+ return (options?.client ?? this.client).get({
307
+ url: "/config/providers",
308
+ ...options,
309
+ ...params,
310
+ });
311
+ }
312
+ }
313
+ export class Console extends HeyApiClient {
314
+ /**
315
+ * Get active Console provider metadata
316
+ *
317
+ * Get the active Console org name and the set of provider IDs managed by that Console org.
318
+ */
319
+ get(parameters, options) {
320
+ const params = buildClientParams([parameters], [
321
+ {
322
+ args: [
323
+ { in: "query", key: "directory" },
324
+ { in: "query", key: "workspace" },
325
+ ],
326
+ },
327
+ ]);
328
+ return (options?.client ?? this.client).get({
329
+ url: "/experimental/console",
330
+ ...options,
331
+ ...params,
332
+ });
333
+ }
334
+ /**
335
+ * List switchable Console orgs
336
+ *
337
+ * Get the available Console orgs across logged-in accounts, including the current active org.
338
+ */
339
+ listOrgs(parameters, options) {
340
+ const params = buildClientParams([parameters], [
341
+ {
342
+ args: [
343
+ { in: "query", key: "directory" },
344
+ { in: "query", key: "workspace" },
345
+ ],
346
+ },
347
+ ]);
348
+ return (options?.client ?? this.client).get({
349
+ url: "/experimental/console/orgs",
350
+ ...options,
351
+ ...params,
352
+ });
353
+ }
354
+ /**
355
+ * Switch active Console org
356
+ *
357
+ * Persist a new active Console account/org selection for the current local Dropstone state.
358
+ */
359
+ switchOrg(parameters, options) {
360
+ const params = buildClientParams([parameters], [
361
+ {
362
+ args: [
363
+ { in: "query", key: "directory" },
364
+ { in: "query", key: "workspace" },
365
+ { in: "body", key: "accountID" },
366
+ { in: "body", key: "orgID" },
367
+ ],
368
+ },
369
+ ]);
370
+ return (options?.client ?? this.client).post({
371
+ url: "/experimental/console/switch",
372
+ ...options,
373
+ ...params,
374
+ headers: {
375
+ "Content-Type": "application/json",
376
+ ...options?.headers,
377
+ ...params.headers,
378
+ },
379
+ });
380
+ }
381
+ }
382
+ export class Session extends HeyApiClient {
383
+ /**
384
+ * List sessions
385
+ *
386
+ * Get a list of all Dropstone sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
387
+ */
388
+ list(parameters, options) {
389
+ const params = buildClientParams([parameters], [
390
+ {
391
+ args: [
392
+ { in: "query", key: "directory" },
393
+ { in: "query", key: "workspace" },
394
+ { in: "query", key: "roots" },
395
+ { in: "query", key: "start" },
396
+ { in: "query", key: "cursor" },
397
+ { in: "query", key: "search" },
398
+ { in: "query", key: "limit" },
399
+ { in: "query", key: "archived" },
400
+ ],
401
+ },
402
+ ]);
403
+ return (options?.client ?? this.client).get({
404
+ url: "/experimental/session",
405
+ ...options,
406
+ ...params,
407
+ });
408
+ }
409
+ }
410
+ export class Resource extends HeyApiClient {
411
+ /**
412
+ * Get MCP resources
413
+ *
414
+ * Get all available MCP resources from connected servers. Optionally filter by name.
415
+ */
416
+ list(parameters, options) {
417
+ const params = buildClientParams([parameters], [
418
+ {
419
+ args: [
420
+ { in: "query", key: "directory" },
421
+ { in: "query", key: "workspace" },
422
+ ],
423
+ },
424
+ ]);
425
+ return (options?.client ?? this.client).get({
426
+ url: "/experimental/resource",
427
+ ...options,
428
+ ...params,
429
+ });
430
+ }
431
+ }
432
+ export class Adapter extends HeyApiClient {
433
+ /**
434
+ * List workspace adapters
435
+ *
436
+ * List all available workspace adapters for the current project.
437
+ */
438
+ list(parameters, options) {
439
+ const params = buildClientParams([parameters], [
440
+ {
441
+ args: [
442
+ { in: "query", key: "directory" },
443
+ { in: "query", key: "workspace" },
444
+ ],
445
+ },
446
+ ]);
447
+ return (options?.client ?? this.client).get({
448
+ url: "/experimental/workspace/adapter",
449
+ ...options,
450
+ ...params,
451
+ });
452
+ }
453
+ }
454
+ export class Workspace extends HeyApiClient {
455
+ /**
456
+ * List workspaces
457
+ *
458
+ * List all workspaces.
459
+ */
460
+ list(parameters, options) {
461
+ const params = buildClientParams([parameters], [
462
+ {
463
+ args: [
464
+ { in: "query", key: "directory" },
465
+ { in: "query", key: "workspace" },
466
+ ],
467
+ },
468
+ ]);
469
+ return (options?.client ?? this.client).get({
470
+ url: "/experimental/workspace",
471
+ ...options,
472
+ ...params,
473
+ });
474
+ }
475
+ /**
476
+ * Create workspace
477
+ *
478
+ * Create a workspace for the current project.
479
+ */
480
+ create(parameters, options) {
481
+ const params = buildClientParams([parameters], [
482
+ {
483
+ args: [
484
+ { in: "query", key: "directory" },
485
+ { in: "query", key: "workspace" },
486
+ { in: "body", key: "id" },
487
+ { in: "body", key: "type" },
488
+ { in: "body", key: "branch" },
489
+ { in: "body", key: "extra" },
490
+ ],
491
+ },
492
+ ]);
493
+ return (options?.client ?? this.client).post({
494
+ url: "/experimental/workspace",
495
+ ...options,
496
+ ...params,
497
+ headers: {
498
+ "Content-Type": "application/json",
499
+ ...options?.headers,
500
+ ...params.headers,
501
+ },
502
+ });
503
+ }
504
+ /**
505
+ * Workspace status
506
+ *
507
+ * Get connection status for workspaces in the current project.
508
+ */
509
+ status(parameters, options) {
510
+ const params = buildClientParams([parameters], [
511
+ {
512
+ args: [
513
+ { in: "query", key: "directory" },
514
+ { in: "query", key: "workspace" },
515
+ ],
516
+ },
517
+ ]);
518
+ return (options?.client ?? this.client).get({
519
+ url: "/experimental/workspace/status",
520
+ ...options,
521
+ ...params,
522
+ });
523
+ }
524
+ /**
525
+ * Remove workspace
526
+ *
527
+ * Remove an existing workspace.
528
+ */
529
+ remove(parameters, options) {
530
+ const params = buildClientParams([parameters], [
531
+ {
532
+ args: [
533
+ { in: "path", key: "id" },
534
+ { in: "query", key: "directory" },
535
+ { in: "query", key: "workspace" },
536
+ ],
537
+ },
538
+ ]);
539
+ return (options?.client ?? this.client).delete({
540
+ url: "/experimental/workspace/{id}",
541
+ ...options,
542
+ ...params,
543
+ });
544
+ }
545
+ /**
546
+ * Warp session into workspace
547
+ *
548
+ * Move a session's sync history into the target workspace, or detach it to the local project.
549
+ */
550
+ warp(parameters, options) {
551
+ const params = buildClientParams([parameters], [
552
+ {
553
+ args: [
554
+ { in: "query", key: "directory" },
555
+ { in: "query", key: "workspace" },
556
+ { in: "body", key: "id" },
557
+ { in: "body", key: "sessionID" },
558
+ { in: "body", key: "copyChanges" },
559
+ ],
560
+ },
561
+ ]);
562
+ return (options?.client ?? this.client).post({
563
+ url: "/experimental/workspace/warp",
564
+ ...options,
565
+ ...params,
566
+ headers: {
567
+ "Content-Type": "application/json",
568
+ ...options?.headers,
569
+ ...params.headers,
570
+ },
571
+ });
572
+ }
573
+ _adapter;
574
+ get adapter() {
575
+ return (this._adapter ??= new Adapter({ client: this.client }));
576
+ }
577
+ }
578
+ export class Experimental extends HeyApiClient {
579
+ _console;
580
+ get console() {
581
+ return (this._console ??= new Console({ client: this.client }));
582
+ }
583
+ _session;
584
+ get session() {
585
+ return (this._session ??= new Session({ client: this.client }));
586
+ }
587
+ _resource;
588
+ get resource() {
589
+ return (this._resource ??= new Resource({ client: this.client }));
590
+ }
591
+ _workspace;
592
+ get workspace() {
593
+ return (this._workspace ??= new Workspace({ client: this.client }));
594
+ }
595
+ }
596
+ export class Tool extends HeyApiClient {
597
+ /**
598
+ * List tools
599
+ *
600
+ * Get a list of available tools with their JSON schema parameters for a specific provider and model combination.
601
+ */
602
+ list(parameters, options) {
603
+ const params = buildClientParams([parameters], [
604
+ {
605
+ args: [
606
+ { in: "query", key: "directory" },
607
+ { in: "query", key: "workspace" },
608
+ { in: "query", key: "provider" },
609
+ { in: "query", key: "model" },
610
+ ],
611
+ },
612
+ ]);
613
+ return (options?.client ?? this.client).get({
614
+ url: "/experimental/tool",
615
+ ...options,
616
+ ...params,
617
+ });
618
+ }
619
+ /**
620
+ * List tool IDs
621
+ *
622
+ * Get a list of all available tool IDs, including both built-in tools and dynamically registered tools.
623
+ */
624
+ ids(parameters, options) {
625
+ const params = buildClientParams([parameters], [
626
+ {
627
+ args: [
628
+ { in: "query", key: "directory" },
629
+ { in: "query", key: "workspace" },
630
+ ],
631
+ },
632
+ ]);
633
+ return (options?.client ?? this.client).get({
634
+ url: "/experimental/tool/ids",
635
+ ...options,
636
+ ...params,
637
+ });
638
+ }
639
+ }
640
+ export class Worktree extends HeyApiClient {
641
+ /**
642
+ * Remove worktree
643
+ *
644
+ * Remove a git worktree and delete its branch.
645
+ */
646
+ remove(parameters, options) {
647
+ const params = buildClientParams([parameters], [
648
+ {
649
+ args: [
650
+ { in: "query", key: "directory" },
651
+ { in: "query", key: "workspace" },
652
+ { key: "worktreeRemoveInput", map: "body" },
653
+ ],
654
+ },
655
+ ]);
656
+ return (options?.client ?? this.client).delete({
657
+ url: "/experimental/worktree",
658
+ ...options,
659
+ ...params,
660
+ headers: {
661
+ "Content-Type": "application/json",
662
+ ...options?.headers,
663
+ ...params.headers,
664
+ },
665
+ });
666
+ }
667
+ /**
668
+ * List worktrees
669
+ *
670
+ * List all sandbox worktrees for the current project.
671
+ */
672
+ list(parameters, options) {
673
+ const params = buildClientParams([parameters], [
674
+ {
675
+ args: [
676
+ { in: "query", key: "directory" },
677
+ { in: "query", key: "workspace" },
678
+ ],
679
+ },
680
+ ]);
681
+ return (options?.client ?? this.client).get({
682
+ url: "/experimental/worktree",
683
+ ...options,
684
+ ...params,
685
+ });
686
+ }
687
+ /**
688
+ * Create worktree
689
+ *
690
+ * Create a new git worktree for the current project and run any configured startup scripts.
691
+ */
692
+ create(parameters, options) {
693
+ const params = buildClientParams([parameters], [
694
+ {
695
+ args: [
696
+ { in: "query", key: "directory" },
697
+ { in: "query", key: "workspace" },
698
+ { key: "worktreeCreateInput", map: "body" },
699
+ ],
700
+ },
701
+ ]);
702
+ return (options?.client ?? this.client).post({
703
+ url: "/experimental/worktree",
704
+ ...options,
705
+ ...params,
706
+ headers: {
707
+ "Content-Type": "application/json",
708
+ ...options?.headers,
709
+ ...params.headers,
710
+ },
711
+ });
712
+ }
713
+ /**
714
+ * Reset worktree
715
+ *
716
+ * Reset a worktree branch to the primary default branch.
717
+ */
718
+ reset(parameters, options) {
719
+ const params = buildClientParams([parameters], [
720
+ {
721
+ args: [
722
+ { in: "query", key: "directory" },
723
+ { in: "query", key: "workspace" },
724
+ { key: "worktreeResetInput", map: "body" },
725
+ ],
726
+ },
727
+ ]);
728
+ return (options?.client ?? this.client).post({
729
+ url: "/experimental/worktree/reset",
730
+ ...options,
731
+ ...params,
732
+ headers: {
733
+ "Content-Type": "application/json",
734
+ ...options?.headers,
735
+ ...params.headers,
736
+ },
737
+ });
738
+ }
739
+ }
740
+ export class Find extends HeyApiClient {
741
+ /**
742
+ * Find text
743
+ *
744
+ * Search for text patterns across files in the project using ripgrep.
745
+ */
746
+ text(parameters, options) {
747
+ const params = buildClientParams([parameters], [
748
+ {
749
+ args: [
750
+ { in: "query", key: "directory" },
751
+ { in: "query", key: "workspace" },
752
+ { in: "query", key: "pattern" },
753
+ ],
754
+ },
755
+ ]);
756
+ return (options?.client ?? this.client).get({
757
+ url: "/find",
758
+ ...options,
759
+ ...params,
760
+ });
761
+ }
762
+ /**
763
+ * Find files
764
+ *
765
+ * Search for files or directories by name or pattern in the project directory.
766
+ */
767
+ files(parameters, options) {
768
+ const params = buildClientParams([parameters], [
769
+ {
770
+ args: [
771
+ { in: "query", key: "directory" },
772
+ { in: "query", key: "workspace" },
773
+ { in: "query", key: "query" },
774
+ { in: "query", key: "dirs" },
775
+ { in: "query", key: "type" },
776
+ { in: "query", key: "limit" },
777
+ ],
778
+ },
779
+ ]);
780
+ return (options?.client ?? this.client).get({
781
+ url: "/find/file",
782
+ ...options,
783
+ ...params,
784
+ });
785
+ }
786
+ /**
787
+ * Find symbols
788
+ *
789
+ * Search for workspace symbols like functions, classes, and variables using LSP.
790
+ */
791
+ symbols(parameters, options) {
792
+ const params = buildClientParams([parameters], [
793
+ {
794
+ args: [
795
+ { in: "query", key: "directory" },
796
+ { in: "query", key: "workspace" },
797
+ { in: "query", key: "query" },
798
+ ],
799
+ },
800
+ ]);
801
+ return (options?.client ?? this.client).get({
802
+ url: "/find/symbol",
803
+ ...options,
804
+ ...params,
805
+ });
806
+ }
807
+ }
808
+ export class File extends HeyApiClient {
809
+ /**
810
+ * List files
811
+ *
812
+ * List files and directories in a specified path.
813
+ */
814
+ list(parameters, options) {
815
+ const params = buildClientParams([parameters], [
816
+ {
817
+ args: [
818
+ { in: "query", key: "directory" },
819
+ { in: "query", key: "workspace" },
820
+ { in: "query", key: "path" },
821
+ ],
822
+ },
823
+ ]);
824
+ return (options?.client ?? this.client).get({
825
+ url: "/file",
826
+ ...options,
827
+ ...params,
828
+ });
829
+ }
830
+ /**
831
+ * Read file
832
+ *
833
+ * Read the content of a specified file.
834
+ */
835
+ read(parameters, options) {
836
+ const params = buildClientParams([parameters], [
837
+ {
838
+ args: [
839
+ { in: "query", key: "directory" },
840
+ { in: "query", key: "workspace" },
841
+ { in: "query", key: "path" },
842
+ ],
843
+ },
844
+ ]);
845
+ return (options?.client ?? this.client).get({
846
+ url: "/file/content",
847
+ ...options,
848
+ ...params,
849
+ });
850
+ }
851
+ /**
852
+ * Get file status
853
+ *
854
+ * Get the git status of all files in the project.
855
+ */
856
+ status(parameters, options) {
857
+ const params = buildClientParams([parameters], [
858
+ {
859
+ args: [
860
+ { in: "query", key: "directory" },
861
+ { in: "query", key: "workspace" },
862
+ ],
863
+ },
864
+ ]);
865
+ return (options?.client ?? this.client).get({
866
+ url: "/file/status",
867
+ ...options,
868
+ ...params,
869
+ });
870
+ }
871
+ }
872
+ export class Instance extends HeyApiClient {
873
+ /**
874
+ * Dispose instance
875
+ *
876
+ * Clean up and dispose the current Dropstone instance, releasing all resources.
877
+ */
878
+ dispose(parameters, options) {
879
+ const params = buildClientParams([parameters], [
880
+ {
881
+ args: [
882
+ { in: "query", key: "directory" },
883
+ { in: "query", key: "workspace" },
884
+ ],
885
+ },
886
+ ]);
887
+ return (options?.client ?? this.client).post({
888
+ url: "/instance/dispose",
889
+ ...options,
890
+ ...params,
891
+ });
892
+ }
893
+ }
894
+ export class Path extends HeyApiClient {
895
+ /**
896
+ * Get paths
897
+ *
898
+ * Retrieve the current working directory and related path information for the Dropstone instance.
899
+ */
900
+ get(parameters, options) {
901
+ const params = buildClientParams([parameters], [
902
+ {
903
+ args: [
904
+ { in: "query", key: "directory" },
905
+ { in: "query", key: "workspace" },
906
+ ],
907
+ },
908
+ ]);
909
+ return (options?.client ?? this.client).get({
910
+ url: "/path",
911
+ ...options,
912
+ ...params,
913
+ });
914
+ }
915
+ }
916
+ export class Diff extends HeyApiClient {
917
+ /**
918
+ * Get raw VCS diff
919
+ *
920
+ * Retrieve a raw patch for current uncommitted changes.
921
+ */
922
+ raw(parameters, options) {
923
+ const params = buildClientParams([parameters], [
924
+ {
925
+ args: [
926
+ { in: "query", key: "directory" },
927
+ { in: "query", key: "workspace" },
928
+ ],
929
+ },
930
+ ]);
931
+ return (options?.client ?? this.client).get({
932
+ url: "/vcs/diff/raw",
933
+ ...options,
934
+ ...params,
935
+ });
936
+ }
937
+ }
938
+ export class Vcs extends HeyApiClient {
939
+ /**
940
+ * Get VCS info
941
+ *
942
+ * Retrieve version control system (VCS) information for the current project, such as git branch.
943
+ */
944
+ get(parameters, options) {
945
+ const params = buildClientParams([parameters], [
946
+ {
947
+ args: [
948
+ { in: "query", key: "directory" },
949
+ { in: "query", key: "workspace" },
950
+ ],
951
+ },
952
+ ]);
953
+ return (options?.client ?? this.client).get({
954
+ url: "/vcs",
955
+ ...options,
956
+ ...params,
957
+ });
958
+ }
959
+ /**
960
+ * Get VCS status
961
+ *
962
+ * Retrieve changed files in the current working tree without patches.
963
+ */
964
+ status(parameters, options) {
965
+ const params = buildClientParams([parameters], [
966
+ {
967
+ args: [
968
+ { in: "query", key: "directory" },
969
+ { in: "query", key: "workspace" },
970
+ ],
971
+ },
972
+ ]);
973
+ return (options?.client ?? this.client).get({
974
+ url: "/vcs/status",
975
+ ...options,
976
+ ...params,
977
+ });
978
+ }
979
+ /**
980
+ * Get VCS diff
981
+ *
982
+ * Retrieve the current git diff for the working tree or against the default branch.
983
+ */
984
+ diff(parameters, options) {
985
+ const params = buildClientParams([parameters], [
986
+ {
987
+ args: [
988
+ { in: "query", key: "directory" },
989
+ { in: "query", key: "workspace" },
990
+ { in: "query", key: "mode" },
991
+ ],
992
+ },
993
+ ]);
994
+ return (options?.client ?? this.client).get({
995
+ url: "/vcs/diff",
996
+ ...options,
997
+ ...params,
998
+ });
999
+ }
1000
+ /**
1001
+ * Apply VCS patch
1002
+ *
1003
+ * Apply a raw patch to the current working tree.
1004
+ */
1005
+ apply(parameters, options) {
1006
+ const params = buildClientParams([parameters], [
1007
+ {
1008
+ args: [
1009
+ { in: "query", key: "directory" },
1010
+ { in: "query", key: "workspace" },
1011
+ { in: "body", key: "patch" },
1012
+ ],
1013
+ },
1014
+ ]);
1015
+ return (options?.client ?? this.client).post({
1016
+ url: "/vcs/apply",
1017
+ ...options,
1018
+ ...params,
1019
+ headers: {
1020
+ "Content-Type": "application/json",
1021
+ ...options?.headers,
1022
+ ...params.headers,
1023
+ },
1024
+ });
1025
+ }
1026
+ _diff;
1027
+ get diff2() {
1028
+ return (this._diff ??= new Diff({ client: this.client }));
1029
+ }
1030
+ }
1031
+ export class Command extends HeyApiClient {
1032
+ /**
1033
+ * List commands
1034
+ *
1035
+ * Get a list of all available commands in the Dropstone system.
1036
+ */
1037
+ list(parameters, options) {
1038
+ const params = buildClientParams([parameters], [
1039
+ {
1040
+ args: [
1041
+ { in: "query", key: "directory" },
1042
+ { in: "query", key: "workspace" },
1043
+ ],
1044
+ },
1045
+ ]);
1046
+ return (options?.client ?? this.client).get({
1047
+ url: "/command",
1048
+ ...options,
1049
+ ...params,
1050
+ });
1051
+ }
1052
+ }
1053
+ export class Lsp extends HeyApiClient {
1054
+ /**
1055
+ * Get LSP status
1056
+ *
1057
+ * Get LSP server status
1058
+ */
1059
+ status(parameters, options) {
1060
+ const params = buildClientParams([parameters], [
1061
+ {
1062
+ args: [
1063
+ { in: "query", key: "directory" },
1064
+ { in: "query", key: "workspace" },
1065
+ ],
1066
+ },
1067
+ ]);
1068
+ return (options?.client ?? this.client).get({
1069
+ url: "/lsp",
1070
+ ...options,
1071
+ ...params,
1072
+ });
1073
+ }
1074
+ }
1075
+ export class Formatter extends HeyApiClient {
1076
+ /**
1077
+ * Get formatter status
1078
+ *
1079
+ * Get formatter status
1080
+ */
1081
+ status(parameters, options) {
1082
+ const params = buildClientParams([parameters], [
1083
+ {
1084
+ args: [
1085
+ { in: "query", key: "directory" },
1086
+ { in: "query", key: "workspace" },
1087
+ ],
1088
+ },
1089
+ ]);
1090
+ return (options?.client ?? this.client).get({
1091
+ url: "/formatter",
1092
+ ...options,
1093
+ ...params,
1094
+ });
1095
+ }
1096
+ }
1097
+ export class Auth2 extends HeyApiClient {
1098
+ /**
1099
+ * Remove MCP OAuth
1100
+ *
1101
+ * Remove OAuth credentials for an MCP server.
1102
+ */
1103
+ remove(parameters, options) {
1104
+ const params = buildClientParams([parameters], [
1105
+ {
1106
+ args: [
1107
+ { in: "path", key: "name" },
1108
+ { in: "query", key: "directory" },
1109
+ { in: "query", key: "workspace" },
1110
+ ],
1111
+ },
1112
+ ]);
1113
+ return (options?.client ?? this.client).delete({
1114
+ url: "/mcp/{name}/auth",
1115
+ ...options,
1116
+ ...params,
1117
+ });
1118
+ }
1119
+ /**
1120
+ * Start MCP OAuth
1121
+ *
1122
+ * Start OAuth authentication flow for a Model Context Protocol (MCP) server.
1123
+ */
1124
+ start(parameters, options) {
1125
+ const params = buildClientParams([parameters], [
1126
+ {
1127
+ args: [
1128
+ { in: "path", key: "name" },
1129
+ { in: "query", key: "directory" },
1130
+ { in: "query", key: "workspace" },
1131
+ ],
1132
+ },
1133
+ ]);
1134
+ return (options?.client ?? this.client).post({
1135
+ url: "/mcp/{name}/auth",
1136
+ ...options,
1137
+ ...params,
1138
+ });
1139
+ }
1140
+ /**
1141
+ * Complete MCP OAuth
1142
+ *
1143
+ * Complete OAuth authentication for a Model Context Protocol (MCP) server using the authorization code.
1144
+ */
1145
+ callback(parameters, options) {
1146
+ const params = buildClientParams([parameters], [
1147
+ {
1148
+ args: [
1149
+ { in: "path", key: "name" },
1150
+ { in: "query", key: "directory" },
1151
+ { in: "query", key: "workspace" },
1152
+ { in: "body", key: "code" },
1153
+ ],
1154
+ },
1155
+ ]);
1156
+ return (options?.client ?? this.client).post({
1157
+ url: "/mcp/{name}/auth/callback",
1158
+ ...options,
1159
+ ...params,
1160
+ headers: {
1161
+ "Content-Type": "application/json",
1162
+ ...options?.headers,
1163
+ ...params.headers,
1164
+ },
1165
+ });
1166
+ }
1167
+ /**
1168
+ * Authenticate MCP OAuth
1169
+ *
1170
+ * Start OAuth flow and wait for callback (opens browser).
1171
+ */
1172
+ authenticate(parameters, options) {
1173
+ const params = buildClientParams([parameters], [
1174
+ {
1175
+ args: [
1176
+ { in: "path", key: "name" },
1177
+ { in: "query", key: "directory" },
1178
+ { in: "query", key: "workspace" },
1179
+ ],
1180
+ },
1181
+ ]);
1182
+ return (options?.client ?? this.client).post({
1183
+ url: "/mcp/{name}/auth/authenticate",
1184
+ ...options,
1185
+ ...params,
1186
+ });
1187
+ }
1188
+ }
1189
+ export class Mcp extends HeyApiClient {
1190
+ /**
1191
+ * Get MCP status
1192
+ *
1193
+ * Get the status of all Model Context Protocol (MCP) servers.
1194
+ */
1195
+ status(parameters, options) {
1196
+ const params = buildClientParams([parameters], [
1197
+ {
1198
+ args: [
1199
+ { in: "query", key: "directory" },
1200
+ { in: "query", key: "workspace" },
1201
+ ],
1202
+ },
1203
+ ]);
1204
+ return (options?.client ?? this.client).get({
1205
+ url: "/mcp",
1206
+ ...options,
1207
+ ...params,
1208
+ });
1209
+ }
1210
+ /**
1211
+ * Add MCP server
1212
+ *
1213
+ * Dynamically add a new Model Context Protocol (MCP) server to the system.
1214
+ */
1215
+ add(parameters, options) {
1216
+ const params = buildClientParams([parameters], [
1217
+ {
1218
+ args: [
1219
+ { in: "query", key: "directory" },
1220
+ { in: "query", key: "workspace" },
1221
+ { in: "body", key: "name" },
1222
+ { in: "body", key: "config" },
1223
+ ],
1224
+ },
1225
+ ]);
1226
+ return (options?.client ?? this.client).post({
1227
+ url: "/mcp",
1228
+ ...options,
1229
+ ...params,
1230
+ headers: {
1231
+ "Content-Type": "application/json",
1232
+ ...options?.headers,
1233
+ ...params.headers,
1234
+ },
1235
+ });
1236
+ }
1237
+ /**
1238
+ * Connect an MCP server.
1239
+ */
1240
+ connect(parameters, options) {
1241
+ const params = buildClientParams([parameters], [
1242
+ {
1243
+ args: [
1244
+ { in: "path", key: "name" },
1245
+ { in: "query", key: "directory" },
1246
+ { in: "query", key: "workspace" },
1247
+ ],
1248
+ },
1249
+ ]);
1250
+ return (options?.client ?? this.client).post({
1251
+ url: "/mcp/{name}/connect",
1252
+ ...options,
1253
+ ...params,
1254
+ });
1255
+ }
1256
+ /**
1257
+ * Disconnect an MCP server.
1258
+ */
1259
+ disconnect(parameters, options) {
1260
+ const params = buildClientParams([parameters], [
1261
+ {
1262
+ args: [
1263
+ { in: "path", key: "name" },
1264
+ { in: "query", key: "directory" },
1265
+ { in: "query", key: "workspace" },
1266
+ ],
1267
+ },
1268
+ ]);
1269
+ return (options?.client ?? this.client).post({
1270
+ url: "/mcp/{name}/disconnect",
1271
+ ...options,
1272
+ ...params,
1273
+ });
1274
+ }
1275
+ _auth;
1276
+ get auth() {
1277
+ return (this._auth ??= new Auth2({ client: this.client }));
1278
+ }
1279
+ }
1280
+ export class Project extends HeyApiClient {
1281
+ /**
1282
+ * List all projects
1283
+ *
1284
+ * Get a list of projects that have been opened with Dropstone.
1285
+ */
1286
+ list(parameters, options) {
1287
+ const params = buildClientParams([parameters], [
1288
+ {
1289
+ args: [
1290
+ { in: "query", key: "directory" },
1291
+ { in: "query", key: "workspace" },
1292
+ ],
1293
+ },
1294
+ ]);
1295
+ return (options?.client ?? this.client).get({
1296
+ url: "/project",
1297
+ ...options,
1298
+ ...params,
1299
+ });
1300
+ }
1301
+ /**
1302
+ * Get current project
1303
+ *
1304
+ * Retrieve the currently active project that Dropstone is working with.
1305
+ */
1306
+ current(parameters, options) {
1307
+ const params = buildClientParams([parameters], [
1308
+ {
1309
+ args: [
1310
+ { in: "query", key: "directory" },
1311
+ { in: "query", key: "workspace" },
1312
+ ],
1313
+ },
1314
+ ]);
1315
+ return (options?.client ?? this.client).get({
1316
+ url: "/project/current",
1317
+ ...options,
1318
+ ...params,
1319
+ });
1320
+ }
1321
+ /**
1322
+ * Initialize git repository
1323
+ *
1324
+ * Create a git repository for the current project and return the refreshed project info.
1325
+ */
1326
+ initGit(parameters, options) {
1327
+ const params = buildClientParams([parameters], [
1328
+ {
1329
+ args: [
1330
+ { in: "query", key: "directory" },
1331
+ { in: "query", key: "workspace" },
1332
+ ],
1333
+ },
1334
+ ]);
1335
+ return (options?.client ?? this.client).post({
1336
+ url: "/project/git/init",
1337
+ ...options,
1338
+ ...params,
1339
+ });
1340
+ }
1341
+ /**
1342
+ * Update project
1343
+ *
1344
+ * Update project properties such as name, icon, and commands.
1345
+ */
1346
+ update(parameters, options) {
1347
+ const params = buildClientParams([parameters], [
1348
+ {
1349
+ args: [
1350
+ { in: "path", key: "projectID" },
1351
+ { in: "query", key: "directory" },
1352
+ { in: "query", key: "workspace" },
1353
+ { in: "body", key: "name" },
1354
+ { in: "body", key: "icon" },
1355
+ { in: "body", key: "commands" },
1356
+ ],
1357
+ },
1358
+ ]);
1359
+ return (options?.client ?? this.client).patch({
1360
+ url: "/project/{projectID}",
1361
+ ...options,
1362
+ ...params,
1363
+ headers: {
1364
+ "Content-Type": "application/json",
1365
+ ...options?.headers,
1366
+ ...params.headers,
1367
+ },
1368
+ });
1369
+ }
1370
+ }
1371
+ export class Pty extends HeyApiClient {
1372
+ /**
1373
+ * List available shells
1374
+ *
1375
+ * Get a list of available shells on the system.
1376
+ */
1377
+ shells(parameters, options) {
1378
+ const params = buildClientParams([parameters], [
1379
+ {
1380
+ args: [
1381
+ { in: "query", key: "directory" },
1382
+ { in: "query", key: "workspace" },
1383
+ ],
1384
+ },
1385
+ ]);
1386
+ return (options?.client ?? this.client).get({
1387
+ url: "/pty/shells",
1388
+ ...options,
1389
+ ...params,
1390
+ });
1391
+ }
1392
+ /**
1393
+ * List PTY sessions
1394
+ *
1395
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by Dropstone.
1396
+ */
1397
+ list(parameters, options) {
1398
+ const params = buildClientParams([parameters], [
1399
+ {
1400
+ args: [
1401
+ { in: "query", key: "directory" },
1402
+ { in: "query", key: "workspace" },
1403
+ ],
1404
+ },
1405
+ ]);
1406
+ return (options?.client ?? this.client).get({
1407
+ url: "/pty",
1408
+ ...options,
1409
+ ...params,
1410
+ });
1411
+ }
1412
+ /**
1413
+ * Create PTY session
1414
+ *
1415
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
1416
+ */
1417
+ create(parameters, options) {
1418
+ const params = buildClientParams([parameters], [
1419
+ {
1420
+ args: [
1421
+ { in: "query", key: "directory" },
1422
+ { in: "query", key: "workspace" },
1423
+ { in: "body", key: "command" },
1424
+ { in: "body", key: "args" },
1425
+ { in: "body", key: "cwd" },
1426
+ { in: "body", key: "title" },
1427
+ { in: "body", key: "env" },
1428
+ ],
1429
+ },
1430
+ ]);
1431
+ return (options?.client ?? this.client).post({
1432
+ url: "/pty",
1433
+ ...options,
1434
+ ...params,
1435
+ headers: {
1436
+ "Content-Type": "application/json",
1437
+ ...options?.headers,
1438
+ ...params.headers,
1439
+ },
1440
+ });
1441
+ }
1442
+ /**
1443
+ * Remove PTY session
1444
+ *
1445
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
1446
+ */
1447
+ remove(parameters, options) {
1448
+ const params = buildClientParams([parameters], [
1449
+ {
1450
+ args: [
1451
+ { in: "path", key: "ptyID" },
1452
+ { in: "query", key: "directory" },
1453
+ { in: "query", key: "workspace" },
1454
+ ],
1455
+ },
1456
+ ]);
1457
+ return (options?.client ?? this.client).delete({
1458
+ url: "/pty/{ptyID}",
1459
+ ...options,
1460
+ ...params,
1461
+ });
1462
+ }
1463
+ /**
1464
+ * Get PTY session
1465
+ *
1466
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
1467
+ */
1468
+ get(parameters, options) {
1469
+ const params = buildClientParams([parameters], [
1470
+ {
1471
+ args: [
1472
+ { in: "path", key: "ptyID" },
1473
+ { in: "query", key: "directory" },
1474
+ { in: "query", key: "workspace" },
1475
+ ],
1476
+ },
1477
+ ]);
1478
+ return (options?.client ?? this.client).get({
1479
+ url: "/pty/{ptyID}",
1480
+ ...options,
1481
+ ...params,
1482
+ });
1483
+ }
1484
+ /**
1485
+ * Update PTY session
1486
+ *
1487
+ * Update properties of an existing pseudo-terminal (PTY) session.
1488
+ */
1489
+ update(parameters, options) {
1490
+ const params = buildClientParams([parameters], [
1491
+ {
1492
+ args: [
1493
+ { in: "path", key: "ptyID" },
1494
+ { in: "query", key: "directory" },
1495
+ { in: "query", key: "workspace" },
1496
+ { in: "body", key: "title" },
1497
+ { in: "body", key: "size" },
1498
+ ],
1499
+ },
1500
+ ]);
1501
+ return (options?.client ?? this.client).put({
1502
+ url: "/pty/{ptyID}",
1503
+ ...options,
1504
+ ...params,
1505
+ headers: {
1506
+ "Content-Type": "application/json",
1507
+ ...options?.headers,
1508
+ ...params.headers,
1509
+ },
1510
+ });
1511
+ }
1512
+ /**
1513
+ * Create PTY WebSocket token
1514
+ *
1515
+ * Create a short-lived ticket for opening a PTY WebSocket connection.
1516
+ */
1517
+ connectToken(parameters, options) {
1518
+ const params = buildClientParams([parameters], [
1519
+ {
1520
+ args: [
1521
+ { in: "path", key: "ptyID" },
1522
+ { in: "query", key: "directory" },
1523
+ { in: "query", key: "workspace" },
1524
+ ],
1525
+ },
1526
+ ]);
1527
+ return (options?.client ?? this.client).post({
1528
+ url: "/pty/{ptyID}/connect-token",
1529
+ ...options,
1530
+ ...params,
1531
+ });
1532
+ }
1533
+ /**
1534
+ * Connect to PTY session
1535
+ *
1536
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
1537
+ */
1538
+ connect(parameters, options) {
1539
+ const params = buildClientParams([parameters], [
1540
+ {
1541
+ args: [
1542
+ { in: "path", key: "ptyID" },
1543
+ { in: "query", key: "directory" },
1544
+ { in: "query", key: "workspace" },
1545
+ ],
1546
+ },
1547
+ ]);
1548
+ return (options?.client ?? this.client).get({
1549
+ url: "/pty/{ptyID}/connect",
1550
+ ...options,
1551
+ ...params,
1552
+ });
1553
+ }
1554
+ }
1555
+ export class Question extends HeyApiClient {
1556
+ /**
1557
+ * List pending questions
1558
+ *
1559
+ * Get all pending question requests across all sessions.
1560
+ */
1561
+ list(parameters, options) {
1562
+ const params = buildClientParams([parameters], [
1563
+ {
1564
+ args: [
1565
+ { in: "query", key: "directory" },
1566
+ { in: "query", key: "workspace" },
1567
+ ],
1568
+ },
1569
+ ]);
1570
+ return (options?.client ?? this.client).get({
1571
+ url: "/question",
1572
+ ...options,
1573
+ ...params,
1574
+ });
1575
+ }
1576
+ /**
1577
+ * Reply to question request
1578
+ *
1579
+ * Provide answers to a question request from the AI assistant.
1580
+ */
1581
+ reply(parameters, options) {
1582
+ const params = buildClientParams([parameters], [
1583
+ {
1584
+ args: [
1585
+ { in: "path", key: "requestID" },
1586
+ { in: "query", key: "directory" },
1587
+ { in: "query", key: "workspace" },
1588
+ { in: "body", key: "answers" },
1589
+ ],
1590
+ },
1591
+ ]);
1592
+ return (options?.client ?? this.client).post({
1593
+ url: "/question/{requestID}/reply",
1594
+ ...options,
1595
+ ...params,
1596
+ headers: {
1597
+ "Content-Type": "application/json",
1598
+ ...options?.headers,
1599
+ ...params.headers,
1600
+ },
1601
+ });
1602
+ }
1603
+ /**
1604
+ * Reject question request
1605
+ *
1606
+ * Reject a question request from the AI assistant.
1607
+ */
1608
+ reject(parameters, options) {
1609
+ const params = buildClientParams([parameters], [
1610
+ {
1611
+ args: [
1612
+ { in: "path", key: "requestID" },
1613
+ { in: "query", key: "directory" },
1614
+ { in: "query", key: "workspace" },
1615
+ ],
1616
+ },
1617
+ ]);
1618
+ return (options?.client ?? this.client).post({
1619
+ url: "/question/{requestID}/reject",
1620
+ ...options,
1621
+ ...params,
1622
+ });
1623
+ }
1624
+ }
1625
+ export class Permission extends HeyApiClient {
1626
+ /**
1627
+ * List pending permissions
1628
+ *
1629
+ * Get all pending permission requests across all sessions.
1630
+ */
1631
+ list(parameters, options) {
1632
+ const params = buildClientParams([parameters], [
1633
+ {
1634
+ args: [
1635
+ { in: "query", key: "directory" },
1636
+ { in: "query", key: "workspace" },
1637
+ ],
1638
+ },
1639
+ ]);
1640
+ return (options?.client ?? this.client).get({
1641
+ url: "/permission",
1642
+ ...options,
1643
+ ...params,
1644
+ });
1645
+ }
1646
+ /**
1647
+ * Respond to permission request
1648
+ *
1649
+ * Approve or deny a permission request from the AI assistant.
1650
+ */
1651
+ reply(parameters, options) {
1652
+ const params = buildClientParams([parameters], [
1653
+ {
1654
+ args: [
1655
+ { in: "path", key: "requestID" },
1656
+ { in: "query", key: "directory" },
1657
+ { in: "query", key: "workspace" },
1658
+ { in: "body", key: "reply" },
1659
+ { in: "body", key: "message" },
1660
+ ],
1661
+ },
1662
+ ]);
1663
+ return (options?.client ?? this.client).post({
1664
+ url: "/permission/{requestID}/reply",
1665
+ ...options,
1666
+ ...params,
1667
+ headers: {
1668
+ "Content-Type": "application/json",
1669
+ ...options?.headers,
1670
+ ...params.headers,
1671
+ },
1672
+ });
1673
+ }
1674
+ /**
1675
+ * Respond to permission
1676
+ *
1677
+ * Approve or deny a permission request from the AI assistant.
1678
+ *
1679
+ * @deprecated
1680
+ */
1681
+ respond(parameters, options) {
1682
+ const params = buildClientParams([parameters], [
1683
+ {
1684
+ args: [
1685
+ { in: "path", key: "sessionID" },
1686
+ { in: "path", key: "permissionID" },
1687
+ { in: "query", key: "directory" },
1688
+ { in: "query", key: "workspace" },
1689
+ { in: "body", key: "response" },
1690
+ ],
1691
+ },
1692
+ ]);
1693
+ return (options?.client ?? this.client).post({
1694
+ url: "/session/{sessionID}/permissions/{permissionID}",
1695
+ ...options,
1696
+ ...params,
1697
+ headers: {
1698
+ "Content-Type": "application/json",
1699
+ ...options?.headers,
1700
+ ...params.headers,
1701
+ },
1702
+ });
1703
+ }
1704
+ }
1705
+ export class Oauth extends HeyApiClient {
1706
+ /**
1707
+ * Start OAuth authorization
1708
+ *
1709
+ * Start the OAuth authorization flow for a provider.
1710
+ */
1711
+ authorize(parameters, options) {
1712
+ const params = buildClientParams([parameters], [
1713
+ {
1714
+ args: [
1715
+ { in: "path", key: "providerID" },
1716
+ { in: "query", key: "directory" },
1717
+ { in: "query", key: "workspace" },
1718
+ { in: "body", key: "method" },
1719
+ { in: "body", key: "inputs" },
1720
+ ],
1721
+ },
1722
+ ]);
1723
+ return (options?.client ?? this.client).post({
1724
+ url: "/provider/{providerID}/oauth/authorize",
1725
+ ...options,
1726
+ ...params,
1727
+ headers: {
1728
+ "Content-Type": "application/json",
1729
+ ...options?.headers,
1730
+ ...params.headers,
1731
+ },
1732
+ });
1733
+ }
1734
+ /**
1735
+ * Handle OAuth callback
1736
+ *
1737
+ * Handle the OAuth callback from a provider after user authorization.
1738
+ */
1739
+ callback(parameters, options) {
1740
+ const params = buildClientParams([parameters], [
1741
+ {
1742
+ args: [
1743
+ { in: "path", key: "providerID" },
1744
+ { in: "query", key: "directory" },
1745
+ { in: "query", key: "workspace" },
1746
+ { in: "body", key: "method" },
1747
+ { in: "body", key: "code" },
1748
+ ],
1749
+ },
1750
+ ]);
1751
+ return (options?.client ?? this.client).post({
1752
+ url: "/provider/{providerID}/oauth/callback",
1753
+ ...options,
1754
+ ...params,
1755
+ headers: {
1756
+ "Content-Type": "application/json",
1757
+ ...options?.headers,
1758
+ ...params.headers,
1759
+ },
1760
+ });
1761
+ }
1762
+ }
1763
+ export class Provider extends HeyApiClient {
1764
+ /**
1765
+ * List providers
1766
+ *
1767
+ * Get a list of all available AI providers, including both available and connected ones.
1768
+ */
1769
+ list(parameters, options) {
1770
+ const params = buildClientParams([parameters], [
1771
+ {
1772
+ args: [
1773
+ { in: "query", key: "directory" },
1774
+ { in: "query", key: "workspace" },
1775
+ ],
1776
+ },
1777
+ ]);
1778
+ return (options?.client ?? this.client).get({
1779
+ url: "/provider",
1780
+ ...options,
1781
+ ...params,
1782
+ });
1783
+ }
1784
+ /**
1785
+ * Get provider auth methods
1786
+ *
1787
+ * Retrieve available authentication methods for all AI providers.
1788
+ */
1789
+ auth(parameters, options) {
1790
+ const params = buildClientParams([parameters], [
1791
+ {
1792
+ args: [
1793
+ { in: "query", key: "directory" },
1794
+ { in: "query", key: "workspace" },
1795
+ ],
1796
+ },
1797
+ ]);
1798
+ return (options?.client ?? this.client).get({
1799
+ url: "/provider/auth",
1800
+ ...options,
1801
+ ...params,
1802
+ });
1803
+ }
1804
+ _oauth;
1805
+ get oauth() {
1806
+ return (this._oauth ??= new Oauth({ client: this.client }));
1807
+ }
1808
+ }
1809
+ export class Session2 extends HeyApiClient {
1810
+ /**
1811
+ * List sessions
1812
+ *
1813
+ * Get a list of all Dropstone sessions, sorted by most recently updated.
1814
+ */
1815
+ list(parameters, options) {
1816
+ const params = buildClientParams([parameters], [
1817
+ {
1818
+ args: [
1819
+ { in: "query", key: "directory" },
1820
+ { in: "query", key: "workspace" },
1821
+ { in: "query", key: "scope" },
1822
+ { in: "query", key: "path" },
1823
+ { in: "query", key: "roots" },
1824
+ { in: "query", key: "start" },
1825
+ { in: "query", key: "search" },
1826
+ { in: "query", key: "limit" },
1827
+ ],
1828
+ },
1829
+ ]);
1830
+ return (options?.client ?? this.client).get({
1831
+ url: "/session",
1832
+ ...options,
1833
+ ...params,
1834
+ });
1835
+ }
1836
+ /**
1837
+ * Create session
1838
+ *
1839
+ * Create a new Dropstone session for interacting with AI assistants and managing conversations.
1840
+ */
1841
+ create(parameters, options) {
1842
+ const params = buildClientParams([parameters], [
1843
+ {
1844
+ args: [
1845
+ { in: "query", key: "directory" },
1846
+ { in: "query", key: "workspace" },
1847
+ { in: "body", key: "parentID" },
1848
+ { in: "body", key: "title" },
1849
+ { in: "body", key: "agent" },
1850
+ { in: "body", key: "model" },
1851
+ { in: "body", key: "permission" },
1852
+ { in: "body", key: "workspaceID" },
1853
+ ],
1854
+ },
1855
+ ]);
1856
+ return (options?.client ?? this.client).post({
1857
+ url: "/session",
1858
+ ...options,
1859
+ ...params,
1860
+ headers: {
1861
+ "Content-Type": "application/json",
1862
+ ...options?.headers,
1863
+ ...params.headers,
1864
+ },
1865
+ });
1866
+ }
1867
+ /**
1868
+ * Get session status
1869
+ *
1870
+ * Retrieve the current status of all sessions, including active, idle, and completed states.
1871
+ */
1872
+ status(parameters, options) {
1873
+ const params = buildClientParams([parameters], [
1874
+ {
1875
+ args: [
1876
+ { in: "query", key: "directory" },
1877
+ { in: "query", key: "workspace" },
1878
+ ],
1879
+ },
1880
+ ]);
1881
+ return (options?.client ?? this.client).get({
1882
+ url: "/session/status",
1883
+ ...options,
1884
+ ...params,
1885
+ });
1886
+ }
1887
+ /**
1888
+ * Delete session
1889
+ *
1890
+ * Delete a session and permanently remove all associated data, including messages and history.
1891
+ */
1892
+ delete(parameters, options) {
1893
+ const params = buildClientParams([parameters], [
1894
+ {
1895
+ args: [
1896
+ { in: "path", key: "sessionID" },
1897
+ { in: "query", key: "directory" },
1898
+ { in: "query", key: "workspace" },
1899
+ ],
1900
+ },
1901
+ ]);
1902
+ return (options?.client ?? this.client).delete({
1903
+ url: "/session/{sessionID}",
1904
+ ...options,
1905
+ ...params,
1906
+ });
1907
+ }
1908
+ /**
1909
+ * Get session
1910
+ *
1911
+ * Retrieve detailed information about a specific Dropstone session.
1912
+ */
1913
+ get(parameters, options) {
1914
+ const params = buildClientParams([parameters], [
1915
+ {
1916
+ args: [
1917
+ { in: "path", key: "sessionID" },
1918
+ { in: "query", key: "directory" },
1919
+ { in: "query", key: "workspace" },
1920
+ ],
1921
+ },
1922
+ ]);
1923
+ return (options?.client ?? this.client).get({
1924
+ url: "/session/{sessionID}",
1925
+ ...options,
1926
+ ...params,
1927
+ });
1928
+ }
1929
+ /**
1930
+ * Update session
1931
+ *
1932
+ * Update properties of an existing session, such as title or other metadata.
1933
+ */
1934
+ update(parameters, options) {
1935
+ const params = buildClientParams([parameters], [
1936
+ {
1937
+ args: [
1938
+ { in: "path", key: "sessionID" },
1939
+ { in: "query", key: "directory" },
1940
+ { in: "query", key: "workspace" },
1941
+ { in: "body", key: "title" },
1942
+ { in: "body", key: "permission" },
1943
+ { in: "body", key: "time" },
1944
+ ],
1945
+ },
1946
+ ]);
1947
+ return (options?.client ?? this.client).patch({
1948
+ url: "/session/{sessionID}",
1949
+ ...options,
1950
+ ...params,
1951
+ headers: {
1952
+ "Content-Type": "application/json",
1953
+ ...options?.headers,
1954
+ ...params.headers,
1955
+ },
1956
+ });
1957
+ }
1958
+ /**
1959
+ * Get session children
1960
+ *
1961
+ * Retrieve all child sessions that were forked from the specified parent session.
1962
+ */
1963
+ children(parameters, options) {
1964
+ const params = buildClientParams([parameters], [
1965
+ {
1966
+ args: [
1967
+ { in: "path", key: "sessionID" },
1968
+ { in: "query", key: "directory" },
1969
+ { in: "query", key: "workspace" },
1970
+ ],
1971
+ },
1972
+ ]);
1973
+ return (options?.client ?? this.client).get({
1974
+ url: "/session/{sessionID}/children",
1975
+ ...options,
1976
+ ...params,
1977
+ });
1978
+ }
1979
+ /**
1980
+ * Get session todos
1981
+ *
1982
+ * Retrieve the todo list associated with a specific session, showing tasks and action items.
1983
+ */
1984
+ todo(parameters, options) {
1985
+ const params = buildClientParams([parameters], [
1986
+ {
1987
+ args: [
1988
+ { in: "path", key: "sessionID" },
1989
+ { in: "query", key: "directory" },
1990
+ { in: "query", key: "workspace" },
1991
+ ],
1992
+ },
1993
+ ]);
1994
+ return (options?.client ?? this.client).get({
1995
+ url: "/session/{sessionID}/todo",
1996
+ ...options,
1997
+ ...params,
1998
+ });
1999
+ }
2000
+ /**
2001
+ * Get message diff
2002
+ *
2003
+ * Get the file changes (diff) that resulted from a specific user message in the session.
2004
+ */
2005
+ diff(parameters, options) {
2006
+ const params = buildClientParams([parameters], [
2007
+ {
2008
+ args: [
2009
+ { in: "path", key: "sessionID" },
2010
+ { in: "query", key: "directory" },
2011
+ { in: "query", key: "workspace" },
2012
+ { in: "query", key: "messageID" },
2013
+ ],
2014
+ },
2015
+ ]);
2016
+ return (options?.client ?? this.client).get({
2017
+ url: "/session/{sessionID}/diff",
2018
+ ...options,
2019
+ ...params,
2020
+ });
2021
+ }
2022
+ /**
2023
+ * Get session messages
2024
+ *
2025
+ * Retrieve all messages in a session, including user prompts and AI responses.
2026
+ */
2027
+ messages(parameters, options) {
2028
+ const params = buildClientParams([parameters], [
2029
+ {
2030
+ args: [
2031
+ { in: "path", key: "sessionID" },
2032
+ { in: "query", key: "directory" },
2033
+ { in: "query", key: "workspace" },
2034
+ { in: "query", key: "limit" },
2035
+ { in: "query", key: "before" },
2036
+ ],
2037
+ },
2038
+ ]);
2039
+ return (options?.client ?? this.client).get({
2040
+ url: "/session/{sessionID}/message",
2041
+ ...options,
2042
+ ...params,
2043
+ });
2044
+ }
2045
+ /**
2046
+ * Send message
2047
+ *
2048
+ * Create and send a new message to a session, streaming the AI response.
2049
+ */
2050
+ prompt(parameters, options) {
2051
+ const params = buildClientParams([parameters], [
2052
+ {
2053
+ args: [
2054
+ { in: "path", key: "sessionID" },
2055
+ { in: "query", key: "directory" },
2056
+ { in: "query", key: "workspace" },
2057
+ { in: "body", key: "messageID" },
2058
+ { in: "body", key: "model" },
2059
+ { in: "body", key: "agent" },
2060
+ { in: "body", key: "noReply" },
2061
+ { in: "body", key: "tools" },
2062
+ { in: "body", key: "format" },
2063
+ { in: "body", key: "system" },
2064
+ { in: "body", key: "variant" },
2065
+ { in: "body", key: "parts" },
2066
+ ],
2067
+ },
2068
+ ]);
2069
+ return (options?.client ?? this.client).post({
2070
+ url: "/session/{sessionID}/message",
2071
+ ...options,
2072
+ ...params,
2073
+ headers: {
2074
+ "Content-Type": "application/json",
2075
+ ...options?.headers,
2076
+ ...params.headers,
2077
+ },
2078
+ });
2079
+ }
2080
+ /**
2081
+ * Delete message
2082
+ *
2083
+ * Permanently delete a specific message and all of its parts from a session without reverting file changes.
2084
+ */
2085
+ deleteMessage(parameters, options) {
2086
+ const params = buildClientParams([parameters], [
2087
+ {
2088
+ args: [
2089
+ { in: "path", key: "sessionID" },
2090
+ { in: "path", key: "messageID" },
2091
+ { in: "query", key: "directory" },
2092
+ { in: "query", key: "workspace" },
2093
+ ],
2094
+ },
2095
+ ]);
2096
+ return (options?.client ?? this.client).delete({
2097
+ url: "/session/{sessionID}/message/{messageID}",
2098
+ ...options,
2099
+ ...params,
2100
+ });
2101
+ }
2102
+ /**
2103
+ * Get message
2104
+ *
2105
+ * Retrieve a specific message from a session by its message ID.
2106
+ */
2107
+ message(parameters, options) {
2108
+ const params = buildClientParams([parameters], [
2109
+ {
2110
+ args: [
2111
+ { in: "path", key: "sessionID" },
2112
+ { in: "path", key: "messageID" },
2113
+ { in: "query", key: "directory" },
2114
+ { in: "query", key: "workspace" },
2115
+ ],
2116
+ },
2117
+ ]);
2118
+ return (options?.client ?? this.client).get({
2119
+ url: "/session/{sessionID}/message/{messageID}",
2120
+ ...options,
2121
+ ...params,
2122
+ });
2123
+ }
2124
+ /**
2125
+ * Fork session
2126
+ *
2127
+ * Create a new session by forking an existing session at a specific message point.
2128
+ */
2129
+ fork(parameters, options) {
2130
+ const params = buildClientParams([parameters], [
2131
+ {
2132
+ args: [
2133
+ { in: "path", key: "sessionID" },
2134
+ { in: "query", key: "directory" },
2135
+ { in: "query", key: "workspace" },
2136
+ { in: "body", key: "messageID" },
2137
+ ],
2138
+ },
2139
+ ]);
2140
+ return (options?.client ?? this.client).post({
2141
+ url: "/session/{sessionID}/fork",
2142
+ ...options,
2143
+ ...params,
2144
+ headers: {
2145
+ "Content-Type": "application/json",
2146
+ ...options?.headers,
2147
+ ...params.headers,
2148
+ },
2149
+ });
2150
+ }
2151
+ /**
2152
+ * Abort session
2153
+ *
2154
+ * Abort an active session and stop any ongoing AI processing or command execution.
2155
+ */
2156
+ abort(parameters, options) {
2157
+ const params = buildClientParams([parameters], [
2158
+ {
2159
+ args: [
2160
+ { in: "path", key: "sessionID" },
2161
+ { in: "query", key: "directory" },
2162
+ { in: "query", key: "workspace" },
2163
+ ],
2164
+ },
2165
+ ]);
2166
+ return (options?.client ?? this.client).post({
2167
+ url: "/session/{sessionID}/abort",
2168
+ ...options,
2169
+ ...params,
2170
+ });
2171
+ }
2172
+ /**
2173
+ * Initialize session
2174
+ *
2175
+ * Analyze the current application and create an AGENTS.md file with project-specific agent configurations.
2176
+ */
2177
+ init(parameters, options) {
2178
+ const params = buildClientParams([parameters], [
2179
+ {
2180
+ args: [
2181
+ { in: "path", key: "sessionID" },
2182
+ { in: "query", key: "directory" },
2183
+ { in: "query", key: "workspace" },
2184
+ { in: "body", key: "modelID" },
2185
+ { in: "body", key: "providerID" },
2186
+ { in: "body", key: "messageID" },
2187
+ ],
2188
+ },
2189
+ ]);
2190
+ return (options?.client ?? this.client).post({
2191
+ url: "/session/{sessionID}/init",
2192
+ ...options,
2193
+ ...params,
2194
+ headers: {
2195
+ "Content-Type": "application/json",
2196
+ ...options?.headers,
2197
+ ...params.headers,
2198
+ },
2199
+ });
2200
+ }
2201
+ /**
2202
+ * Unshare session
2203
+ *
2204
+ * Remove the shareable link for a session, making it private again.
2205
+ */
2206
+ unshare(parameters, options) {
2207
+ const params = buildClientParams([parameters], [
2208
+ {
2209
+ args: [
2210
+ { in: "path", key: "sessionID" },
2211
+ { in: "query", key: "directory" },
2212
+ { in: "query", key: "workspace" },
2213
+ ],
2214
+ },
2215
+ ]);
2216
+ return (options?.client ?? this.client).delete({
2217
+ url: "/session/{sessionID}/share",
2218
+ ...options,
2219
+ ...params,
2220
+ });
2221
+ }
2222
+ /**
2223
+ * Share session
2224
+ *
2225
+ * Create a shareable link for a session, allowing others to view the conversation.
2226
+ */
2227
+ share(parameters, options) {
2228
+ const params = buildClientParams([parameters], [
2229
+ {
2230
+ args: [
2231
+ { in: "path", key: "sessionID" },
2232
+ { in: "query", key: "directory" },
2233
+ { in: "query", key: "workspace" },
2234
+ ],
2235
+ },
2236
+ ]);
2237
+ return (options?.client ?? this.client).post({
2238
+ url: "/session/{sessionID}/share",
2239
+ ...options,
2240
+ ...params,
2241
+ });
2242
+ }
2243
+ /**
2244
+ * Summarize session
2245
+ *
2246
+ * Generate a concise summary of the session using AI compaction to preserve key information.
2247
+ */
2248
+ summarize(parameters, options) {
2249
+ const params = buildClientParams([parameters], [
2250
+ {
2251
+ args: [
2252
+ { in: "path", key: "sessionID" },
2253
+ { in: "query", key: "directory" },
2254
+ { in: "query", key: "workspace" },
2255
+ { in: "body", key: "providerID" },
2256
+ { in: "body", key: "modelID" },
2257
+ { in: "body", key: "auto" },
2258
+ ],
2259
+ },
2260
+ ]);
2261
+ return (options?.client ?? this.client).post({
2262
+ url: "/session/{sessionID}/summarize",
2263
+ ...options,
2264
+ ...params,
2265
+ headers: {
2266
+ "Content-Type": "application/json",
2267
+ ...options?.headers,
2268
+ ...params.headers,
2269
+ },
2270
+ });
2271
+ }
2272
+ /**
2273
+ * Send async message
2274
+ *
2275
+ * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
2276
+ */
2277
+ promptAsync(parameters, options) {
2278
+ const params = buildClientParams([parameters], [
2279
+ {
2280
+ args: [
2281
+ { in: "path", key: "sessionID" },
2282
+ { in: "query", key: "directory" },
2283
+ { in: "query", key: "workspace" },
2284
+ { in: "body", key: "messageID" },
2285
+ { in: "body", key: "model" },
2286
+ { in: "body", key: "agent" },
2287
+ { in: "body", key: "noReply" },
2288
+ { in: "body", key: "tools" },
2289
+ { in: "body", key: "format" },
2290
+ { in: "body", key: "system" },
2291
+ { in: "body", key: "variant" },
2292
+ { in: "body", key: "parts" },
2293
+ ],
2294
+ },
2295
+ ]);
2296
+ return (options?.client ?? this.client).post({
2297
+ url: "/session/{sessionID}/prompt_async",
2298
+ ...options,
2299
+ ...params,
2300
+ headers: {
2301
+ "Content-Type": "application/json",
2302
+ ...options?.headers,
2303
+ ...params.headers,
2304
+ },
2305
+ });
2306
+ }
2307
+ /**
2308
+ * Send command
2309
+ *
2310
+ * Send a new command to a session for execution by the AI assistant.
2311
+ */
2312
+ command(parameters, options) {
2313
+ const params = buildClientParams([parameters], [
2314
+ {
2315
+ args: [
2316
+ { in: "path", key: "sessionID" },
2317
+ { in: "query", key: "directory" },
2318
+ { in: "query", key: "workspace" },
2319
+ { in: "body", key: "messageID" },
2320
+ { in: "body", key: "agent" },
2321
+ { in: "body", key: "model" },
2322
+ { in: "body", key: "arguments" },
2323
+ { in: "body", key: "command" },
2324
+ { in: "body", key: "variant" },
2325
+ { in: "body", key: "parts" },
2326
+ ],
2327
+ },
2328
+ ]);
2329
+ return (options?.client ?? this.client).post({
2330
+ url: "/session/{sessionID}/command",
2331
+ ...options,
2332
+ ...params,
2333
+ headers: {
2334
+ "Content-Type": "application/json",
2335
+ ...options?.headers,
2336
+ ...params.headers,
2337
+ },
2338
+ });
2339
+ }
2340
+ /**
2341
+ * Run shell command
2342
+ *
2343
+ * Execute a shell command within the session context and return the AI's response.
2344
+ */
2345
+ shell(parameters, options) {
2346
+ const params = buildClientParams([parameters], [
2347
+ {
2348
+ args: [
2349
+ { in: "path", key: "sessionID" },
2350
+ { in: "query", key: "directory" },
2351
+ { in: "query", key: "workspace" },
2352
+ { in: "body", key: "messageID" },
2353
+ { in: "body", key: "agent" },
2354
+ { in: "body", key: "model" },
2355
+ { in: "body", key: "command" },
2356
+ ],
2357
+ },
2358
+ ]);
2359
+ return (options?.client ?? this.client).post({
2360
+ url: "/session/{sessionID}/shell",
2361
+ ...options,
2362
+ ...params,
2363
+ headers: {
2364
+ "Content-Type": "application/json",
2365
+ ...options?.headers,
2366
+ ...params.headers,
2367
+ },
2368
+ });
2369
+ }
2370
+ /**
2371
+ * Revert message
2372
+ *
2373
+ * Revert a specific message in a session, undoing its effects and restoring the previous state.
2374
+ */
2375
+ revert(parameters, options) {
2376
+ const params = buildClientParams([parameters], [
2377
+ {
2378
+ args: [
2379
+ { in: "path", key: "sessionID" },
2380
+ { in: "query", key: "directory" },
2381
+ { in: "query", key: "workspace" },
2382
+ { in: "body", key: "messageID" },
2383
+ { in: "body", key: "partID" },
2384
+ ],
2385
+ },
2386
+ ]);
2387
+ return (options?.client ?? this.client).post({
2388
+ url: "/session/{sessionID}/revert",
2389
+ ...options,
2390
+ ...params,
2391
+ headers: {
2392
+ "Content-Type": "application/json",
2393
+ ...options?.headers,
2394
+ ...params.headers,
2395
+ },
2396
+ });
2397
+ }
2398
+ /**
2399
+ * Restore reverted messages
2400
+ *
2401
+ * Restore all previously reverted messages in a session.
2402
+ */
2403
+ unrevert(parameters, options) {
2404
+ const params = buildClientParams([parameters], [
2405
+ {
2406
+ args: [
2407
+ { in: "path", key: "sessionID" },
2408
+ { in: "query", key: "directory" },
2409
+ { in: "query", key: "workspace" },
2410
+ ],
2411
+ },
2412
+ ]);
2413
+ return (options?.client ?? this.client).post({
2414
+ url: "/session/{sessionID}/unrevert",
2415
+ ...options,
2416
+ ...params,
2417
+ });
2418
+ }
2419
+ }
2420
+ export class Part extends HeyApiClient {
2421
+ /**
2422
+ * Delete a part from a message.
2423
+ */
2424
+ delete(parameters, options) {
2425
+ const params = buildClientParams([parameters], [
2426
+ {
2427
+ args: [
2428
+ { in: "path", key: "sessionID" },
2429
+ { in: "path", key: "messageID" },
2430
+ { in: "path", key: "partID" },
2431
+ { in: "query", key: "directory" },
2432
+ { in: "query", key: "workspace" },
2433
+ ],
2434
+ },
2435
+ ]);
2436
+ return (options?.client ?? this.client).delete({
2437
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
2438
+ ...options,
2439
+ ...params,
2440
+ });
2441
+ }
2442
+ /**
2443
+ * Update a part in a message.
2444
+ */
2445
+ update(parameters, options) {
2446
+ const params = buildClientParams([parameters], [
2447
+ {
2448
+ args: [
2449
+ { in: "path", key: "sessionID" },
2450
+ { in: "path", key: "messageID" },
2451
+ { in: "path", key: "partID" },
2452
+ { in: "query", key: "directory" },
2453
+ { in: "query", key: "workspace" },
2454
+ { key: "part", map: "body" },
2455
+ ],
2456
+ },
2457
+ ]);
2458
+ return (options?.client ?? this.client).patch({
2459
+ url: "/session/{sessionID}/message/{messageID}/part/{partID}",
2460
+ ...options,
2461
+ ...params,
2462
+ headers: {
2463
+ "Content-Type": "application/json",
2464
+ ...options?.headers,
2465
+ ...params.headers,
2466
+ },
2467
+ });
2468
+ }
2469
+ }
2470
+ export class History extends HeyApiClient {
2471
+ /**
2472
+ * List sync events
2473
+ *
2474
+ * List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.
2475
+ */
2476
+ list(parameters, options) {
2477
+ const params = buildClientParams([parameters], [
2478
+ {
2479
+ args: [
2480
+ { in: "query", key: "directory" },
2481
+ { in: "query", key: "workspace" },
2482
+ { key: "body", map: "body" },
2483
+ ],
2484
+ },
2485
+ ]);
2486
+ return (options?.client ?? this.client).post({
2487
+ url: "/sync/history",
2488
+ ...options,
2489
+ ...params,
2490
+ headers: {
2491
+ "Content-Type": "application/json",
2492
+ ...options?.headers,
2493
+ ...params.headers,
2494
+ },
2495
+ });
2496
+ }
2497
+ }
2498
+ export class Sync extends HeyApiClient {
2499
+ /**
2500
+ * Start workspace sync
2501
+ *
2502
+ * Start sync loops for workspaces in the current project that have active sessions.
2503
+ */
2504
+ start(parameters, options) {
2505
+ const params = buildClientParams([parameters], [
2506
+ {
2507
+ args: [
2508
+ { in: "query", key: "directory" },
2509
+ { in: "query", key: "workspace" },
2510
+ ],
2511
+ },
2512
+ ]);
2513
+ return (options?.client ?? this.client).post({
2514
+ url: "/sync/start",
2515
+ ...options,
2516
+ ...params,
2517
+ });
2518
+ }
2519
+ /**
2520
+ * Replay sync events
2521
+ *
2522
+ * Validate and replay a complete sync event history.
2523
+ */
2524
+ replay(parameters, options) {
2525
+ const params = buildClientParams([parameters], [
2526
+ {
2527
+ args: [
2528
+ {
2529
+ in: "query",
2530
+ key: "query_directory",
2531
+ map: "directory",
2532
+ },
2533
+ { in: "query", key: "workspace" },
2534
+ {
2535
+ in: "body",
2536
+ key: "body_directory",
2537
+ map: "directory",
2538
+ },
2539
+ { in: "body", key: "events" },
2540
+ ],
2541
+ },
2542
+ ]);
2543
+ return (options?.client ?? this.client).post({
2544
+ url: "/sync/replay",
2545
+ ...options,
2546
+ ...params,
2547
+ headers: {
2548
+ "Content-Type": "application/json",
2549
+ ...options?.headers,
2550
+ ...params.headers,
2551
+ },
2552
+ });
2553
+ }
2554
+ /**
2555
+ * Steal session into workspace
2556
+ *
2557
+ * Update a session to belong to the current workspace through the sync event system.
2558
+ */
2559
+ steal(parameters, options) {
2560
+ const params = buildClientParams([parameters], [
2561
+ {
2562
+ args: [
2563
+ { in: "query", key: "directory" },
2564
+ { in: "query", key: "workspace" },
2565
+ { in: "body", key: "sessionID" },
2566
+ ],
2567
+ },
2568
+ ]);
2569
+ return (options?.client ?? this.client).post({
2570
+ url: "/sync/steal",
2571
+ ...options,
2572
+ ...params,
2573
+ headers: {
2574
+ "Content-Type": "application/json",
2575
+ ...options?.headers,
2576
+ ...params.headers,
2577
+ },
2578
+ });
2579
+ }
2580
+ _history;
2581
+ get history() {
2582
+ return (this._history ??= new History({ client: this.client }));
2583
+ }
2584
+ }
2585
+ export class Session3 extends HeyApiClient {
2586
+ /**
2587
+ * List v2 sessions
2588
+ *
2589
+ * Retrieve sessions in the requested order. Items keep that order across pages; use cursor.next or cursor.previous to move through the ordered list.
2590
+ */
2591
+ list(parameters, options) {
2592
+ const params = buildClientParams([parameters], [
2593
+ {
2594
+ args: [
2595
+ { in: "query", key: "directory" },
2596
+ { in: "query", key: "workspace" },
2597
+ ],
2598
+ },
2599
+ ]);
2600
+ return (options?.client ?? this.client).get({
2601
+ url: "/api/session",
2602
+ ...options,
2603
+ ...params,
2604
+ });
2605
+ }
2606
+ /**
2607
+ * Send v2 message
2608
+ *
2609
+ * Create a v2 session message and queue it for the agent loop.
2610
+ */
2611
+ prompt(parameters, options) {
2612
+ const params = buildClientParams([parameters], [
2613
+ {
2614
+ args: [
2615
+ { in: "path", key: "sessionID" },
2616
+ { in: "query", key: "directory" },
2617
+ { in: "query", key: "workspace" },
2618
+ { in: "body", key: "prompt" },
2619
+ { in: "body", key: "delivery" },
2620
+ ],
2621
+ },
2622
+ ]);
2623
+ return (options?.client ?? this.client).post({
2624
+ url: "/api/session/{sessionID}/prompt",
2625
+ ...options,
2626
+ ...params,
2627
+ headers: {
2628
+ "Content-Type": "application/json",
2629
+ ...options?.headers,
2630
+ ...params.headers,
2631
+ },
2632
+ });
2633
+ }
2634
+ /**
2635
+ * Compact v2 session
2636
+ *
2637
+ * Compact a v2 session conversation.
2638
+ */
2639
+ compact(parameters, options) {
2640
+ const params = buildClientParams([parameters], [
2641
+ {
2642
+ args: [
2643
+ { in: "path", key: "sessionID" },
2644
+ { in: "query", key: "directory" },
2645
+ { in: "query", key: "workspace" },
2646
+ ],
2647
+ },
2648
+ ]);
2649
+ return (options?.client ?? this.client).post({
2650
+ url: "/api/session/{sessionID}/compact",
2651
+ ...options,
2652
+ ...params,
2653
+ });
2654
+ }
2655
+ /**
2656
+ * Wait for v2 session
2657
+ *
2658
+ * Wait for a v2 session agent loop to become idle.
2659
+ */
2660
+ wait(parameters, options) {
2661
+ const params = buildClientParams([parameters], [
2662
+ {
2663
+ args: [
2664
+ { in: "path", key: "sessionID" },
2665
+ { in: "query", key: "directory" },
2666
+ { in: "query", key: "workspace" },
2667
+ ],
2668
+ },
2669
+ ]);
2670
+ return (options?.client ?? this.client).post({
2671
+ url: "/api/session/{sessionID}/wait",
2672
+ ...options,
2673
+ ...params,
2674
+ });
2675
+ }
2676
+ /**
2677
+ * Get v2 session context
2678
+ *
2679
+ * Retrieve the active context messages for a v2 session (all messages after the last compaction).
2680
+ */
2681
+ context(parameters, options) {
2682
+ const params = buildClientParams([parameters], [
2683
+ {
2684
+ args: [
2685
+ { in: "path", key: "sessionID" },
2686
+ { in: "query", key: "directory" },
2687
+ { in: "query", key: "workspace" },
2688
+ ],
2689
+ },
2690
+ ]);
2691
+ return (options?.client ?? this.client).get({
2692
+ url: "/api/session/{sessionID}/context",
2693
+ ...options,
2694
+ ...params,
2695
+ });
2696
+ }
2697
+ /**
2698
+ * Get v2 session messages
2699
+ *
2700
+ * Retrieve projected v2 messages for a session. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline.
2701
+ */
2702
+ messages(parameters, options) {
2703
+ const params = buildClientParams([parameters], [
2704
+ {
2705
+ args: [
2706
+ { in: "path", key: "sessionID" },
2707
+ { in: "query", key: "directory" },
2708
+ { in: "query", key: "workspace" },
2709
+ ],
2710
+ },
2711
+ ]);
2712
+ return (options?.client ?? this.client).get({
2713
+ url: "/api/session/{sessionID}/message",
2714
+ ...options,
2715
+ ...params,
2716
+ });
2717
+ }
2718
+ }
2719
+ export class V2 extends HeyApiClient {
2720
+ _session;
2721
+ get session() {
2722
+ return (this._session ??= new Session3({ client: this.client }));
2723
+ }
2724
+ }
2725
+ export class Control extends HeyApiClient {
2726
+ /**
2727
+ * Get next TUI request
2728
+ *
2729
+ * Retrieve the next TUI request from the queue for processing.
2730
+ */
2731
+ next(parameters, options) {
2732
+ const params = buildClientParams([parameters], [
2733
+ {
2734
+ args: [
2735
+ { in: "query", key: "directory" },
2736
+ { in: "query", key: "workspace" },
2737
+ ],
2738
+ },
2739
+ ]);
2740
+ return (options?.client ?? this.client).get({
2741
+ url: "/tui/control/next",
2742
+ ...options,
2743
+ ...params,
2744
+ });
2745
+ }
2746
+ /**
2747
+ * Submit TUI response
2748
+ *
2749
+ * Submit a response to the TUI request queue to complete a pending request.
2750
+ */
2751
+ response(parameters, options) {
2752
+ const params = buildClientParams([parameters], [
2753
+ {
2754
+ args: [
2755
+ { in: "query", key: "directory" },
2756
+ { in: "query", key: "workspace" },
2757
+ { key: "body", map: "body" },
2758
+ ],
2759
+ },
2760
+ ]);
2761
+ return (options?.client ?? this.client).post({
2762
+ url: "/tui/control/response",
2763
+ ...options,
2764
+ ...params,
2765
+ headers: {
2766
+ "Content-Type": "application/json",
2767
+ ...options?.headers,
2768
+ ...params.headers,
2769
+ },
2770
+ });
2771
+ }
2772
+ }
2773
+ export class Tui extends HeyApiClient {
2774
+ /**
2775
+ * Append TUI prompt
2776
+ *
2777
+ * Append prompt to the TUI.
2778
+ */
2779
+ appendPrompt(parameters, options) {
2780
+ const params = buildClientParams([parameters], [
2781
+ {
2782
+ args: [
2783
+ { in: "query", key: "directory" },
2784
+ { in: "query", key: "workspace" },
2785
+ { in: "body", key: "text" },
2786
+ ],
2787
+ },
2788
+ ]);
2789
+ return (options?.client ?? this.client).post({
2790
+ url: "/tui/append-prompt",
2791
+ ...options,
2792
+ ...params,
2793
+ headers: {
2794
+ "Content-Type": "application/json",
2795
+ ...options?.headers,
2796
+ ...params.headers,
2797
+ },
2798
+ });
2799
+ }
2800
+ /**
2801
+ * Open help dialog
2802
+ *
2803
+ * Open the help dialog in the TUI to display user assistance information.
2804
+ */
2805
+ openHelp(parameters, options) {
2806
+ const params = buildClientParams([parameters], [
2807
+ {
2808
+ args: [
2809
+ { in: "query", key: "directory" },
2810
+ { in: "query", key: "workspace" },
2811
+ ],
2812
+ },
2813
+ ]);
2814
+ return (options?.client ?? this.client).post({
2815
+ url: "/tui/open-help",
2816
+ ...options,
2817
+ ...params,
2818
+ });
2819
+ }
2820
+ /**
2821
+ * Open sessions dialog
2822
+ *
2823
+ * Open the session dialog.
2824
+ */
2825
+ openSessions(parameters, options) {
2826
+ const params = buildClientParams([parameters], [
2827
+ {
2828
+ args: [
2829
+ { in: "query", key: "directory" },
2830
+ { in: "query", key: "workspace" },
2831
+ ],
2832
+ },
2833
+ ]);
2834
+ return (options?.client ?? this.client).post({
2835
+ url: "/tui/open-sessions",
2836
+ ...options,
2837
+ ...params,
2838
+ });
2839
+ }
2840
+ /**
2841
+ * Open themes dialog
2842
+ *
2843
+ * Open the theme dialog.
2844
+ */
2845
+ openThemes(parameters, options) {
2846
+ const params = buildClientParams([parameters], [
2847
+ {
2848
+ args: [
2849
+ { in: "query", key: "directory" },
2850
+ { in: "query", key: "workspace" },
2851
+ ],
2852
+ },
2853
+ ]);
2854
+ return (options?.client ?? this.client).post({
2855
+ url: "/tui/open-themes",
2856
+ ...options,
2857
+ ...params,
2858
+ });
2859
+ }
2860
+ /**
2861
+ * Open models dialog
2862
+ *
2863
+ * Open the model dialog.
2864
+ */
2865
+ openModels(parameters, options) {
2866
+ const params = buildClientParams([parameters], [
2867
+ {
2868
+ args: [
2869
+ { in: "query", key: "directory" },
2870
+ { in: "query", key: "workspace" },
2871
+ ],
2872
+ },
2873
+ ]);
2874
+ return (options?.client ?? this.client).post({
2875
+ url: "/tui/open-models",
2876
+ ...options,
2877
+ ...params,
2878
+ });
2879
+ }
2880
+ /**
2881
+ * Submit TUI prompt
2882
+ *
2883
+ * Submit the prompt.
2884
+ */
2885
+ submitPrompt(parameters, options) {
2886
+ const params = buildClientParams([parameters], [
2887
+ {
2888
+ args: [
2889
+ { in: "query", key: "directory" },
2890
+ { in: "query", key: "workspace" },
2891
+ ],
2892
+ },
2893
+ ]);
2894
+ return (options?.client ?? this.client).post({
2895
+ url: "/tui/submit-prompt",
2896
+ ...options,
2897
+ ...params,
2898
+ });
2899
+ }
2900
+ /**
2901
+ * Clear TUI prompt
2902
+ *
2903
+ * Clear the prompt.
2904
+ */
2905
+ clearPrompt(parameters, options) {
2906
+ const params = buildClientParams([parameters], [
2907
+ {
2908
+ args: [
2909
+ { in: "query", key: "directory" },
2910
+ { in: "query", key: "workspace" },
2911
+ ],
2912
+ },
2913
+ ]);
2914
+ return (options?.client ?? this.client).post({
2915
+ url: "/tui/clear-prompt",
2916
+ ...options,
2917
+ ...params,
2918
+ });
2919
+ }
2920
+ /**
2921
+ * Execute TUI command
2922
+ *
2923
+ * Execute a TUI command.
2924
+ */
2925
+ executeCommand(parameters, options) {
2926
+ const params = buildClientParams([parameters], [
2927
+ {
2928
+ args: [
2929
+ { in: "query", key: "directory" },
2930
+ { in: "query", key: "workspace" },
2931
+ { in: "body", key: "command" },
2932
+ ],
2933
+ },
2934
+ ]);
2935
+ return (options?.client ?? this.client).post({
2936
+ url: "/tui/execute-command",
2937
+ ...options,
2938
+ ...params,
2939
+ headers: {
2940
+ "Content-Type": "application/json",
2941
+ ...options?.headers,
2942
+ ...params.headers,
2943
+ },
2944
+ });
2945
+ }
2946
+ /**
2947
+ * Show TUI toast
2948
+ *
2949
+ * Show a toast notification in the TUI.
2950
+ */
2951
+ showToast(parameters, options) {
2952
+ const params = buildClientParams([parameters], [
2953
+ {
2954
+ args: [
2955
+ { in: "query", key: "directory" },
2956
+ { in: "query", key: "workspace" },
2957
+ { in: "body", key: "title" },
2958
+ { in: "body", key: "message" },
2959
+ { in: "body", key: "variant" },
2960
+ { in: "body", key: "duration" },
2961
+ ],
2962
+ },
2963
+ ]);
2964
+ return (options?.client ?? this.client).post({
2965
+ url: "/tui/show-toast",
2966
+ ...options,
2967
+ ...params,
2968
+ headers: {
2969
+ "Content-Type": "application/json",
2970
+ ...options?.headers,
2971
+ ...params.headers,
2972
+ },
2973
+ });
2974
+ }
2975
+ /**
2976
+ * Publish TUI event
2977
+ *
2978
+ * Publish a TUI event.
2979
+ */
2980
+ publish(parameters, options) {
2981
+ const params = buildClientParams([parameters], [
2982
+ {
2983
+ args: [
2984
+ { in: "query", key: "directory" },
2985
+ { in: "query", key: "workspace" },
2986
+ { key: "body", map: "body" },
2987
+ ],
2988
+ },
2989
+ ]);
2990
+ return (options?.client ?? this.client).post({
2991
+ url: "/tui/publish",
2992
+ ...options,
2993
+ ...params,
2994
+ headers: {
2995
+ "Content-Type": "application/json",
2996
+ ...options?.headers,
2997
+ ...params.headers,
2998
+ },
2999
+ });
3000
+ }
3001
+ /**
3002
+ * Select session
3003
+ *
3004
+ * Navigate the TUI to display the specified session.
3005
+ */
3006
+ selectSession(parameters, options) {
3007
+ const params = buildClientParams([parameters], [
3008
+ {
3009
+ args: [
3010
+ { in: "query", key: "directory" },
3011
+ { in: "query", key: "workspace" },
3012
+ { in: "body", key: "sessionID" },
3013
+ ],
3014
+ },
3015
+ ]);
3016
+ return (options?.client ?? this.client).post({
3017
+ url: "/tui/select-session",
3018
+ ...options,
3019
+ ...params,
3020
+ headers: {
3021
+ "Content-Type": "application/json",
3022
+ ...options?.headers,
3023
+ ...params.headers,
3024
+ },
3025
+ });
3026
+ }
3027
+ _control;
3028
+ get control() {
3029
+ return (this._control ??= new Control({ client: this.client }));
3030
+ }
3031
+ }
3032
+ export class DropstoneClient extends HeyApiClient {
3033
+ static __registry = new HeyApiRegistry();
3034
+ constructor(args) {
3035
+ super(args);
3036
+ DropstoneClient.__registry.set(this, args?.key);
3037
+ }
3038
+ _auth;
3039
+ get auth() {
3040
+ return (this._auth ??= new Auth({ client: this.client }));
3041
+ }
3042
+ _app;
3043
+ get app() {
3044
+ return (this._app ??= new App({ client: this.client }));
3045
+ }
3046
+ _global;
3047
+ get global() {
3048
+ return (this._global ??= new Global({ client: this.client }));
3049
+ }
3050
+ _event;
3051
+ get event() {
3052
+ return (this._event ??= new Event({ client: this.client }));
3053
+ }
3054
+ _config;
3055
+ get config() {
3056
+ return (this._config ??= new Config2({ client: this.client }));
3057
+ }
3058
+ _experimental;
3059
+ get experimental() {
3060
+ return (this._experimental ??= new Experimental({ client: this.client }));
3061
+ }
3062
+ _tool;
3063
+ get tool() {
3064
+ return (this._tool ??= new Tool({ client: this.client }));
3065
+ }
3066
+ _worktree;
3067
+ get worktree() {
3068
+ return (this._worktree ??= new Worktree({ client: this.client }));
3069
+ }
3070
+ _find;
3071
+ get find() {
3072
+ return (this._find ??= new Find({ client: this.client }));
3073
+ }
3074
+ _file;
3075
+ get file() {
3076
+ return (this._file ??= new File({ client: this.client }));
3077
+ }
3078
+ _instance;
3079
+ get instance() {
3080
+ return (this._instance ??= new Instance({ client: this.client }));
3081
+ }
3082
+ _path;
3083
+ get path() {
3084
+ return (this._path ??= new Path({ client: this.client }));
3085
+ }
3086
+ _vcs;
3087
+ get vcs() {
3088
+ return (this._vcs ??= new Vcs({ client: this.client }));
3089
+ }
3090
+ _command;
3091
+ get command() {
3092
+ return (this._command ??= new Command({ client: this.client }));
3093
+ }
3094
+ _lsp;
3095
+ get lsp() {
3096
+ return (this._lsp ??= new Lsp({ client: this.client }));
3097
+ }
3098
+ _formatter;
3099
+ get formatter() {
3100
+ return (this._formatter ??= new Formatter({ client: this.client }));
3101
+ }
3102
+ _mcp;
3103
+ get mcp() {
3104
+ return (this._mcp ??= new Mcp({ client: this.client }));
3105
+ }
3106
+ _project;
3107
+ get project() {
3108
+ return (this._project ??= new Project({ client: this.client }));
3109
+ }
3110
+ _pty;
3111
+ get pty() {
3112
+ return (this._pty ??= new Pty({ client: this.client }));
3113
+ }
3114
+ _question;
3115
+ get question() {
3116
+ return (this._question ??= new Question({ client: this.client }));
3117
+ }
3118
+ _permission;
3119
+ get permission() {
3120
+ return (this._permission ??= new Permission({ client: this.client }));
3121
+ }
3122
+ _provider;
3123
+ get provider() {
3124
+ return (this._provider ??= new Provider({ client: this.client }));
3125
+ }
3126
+ _session;
3127
+ get session() {
3128
+ return (this._session ??= new Session2({ client: this.client }));
3129
+ }
3130
+ _part;
3131
+ get part() {
3132
+ return (this._part ??= new Part({ client: this.client }));
3133
+ }
3134
+ _sync;
3135
+ get sync() {
3136
+ return (this._sync ??= new Sync({ client: this.client }));
3137
+ }
3138
+ _v2;
3139
+ get v2() {
3140
+ return (this._v2 ??= new V2({ client: this.client }));
3141
+ }
3142
+ _tui;
3143
+ get tui() {
3144
+ return (this._tui ??= new Tui({ client: this.client }));
3145
+ }
3146
+ }