@pixelml/sdk 0.0.0-dev-202512250746 → 0.0.0-dev-202512260319

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/package.json +2 -5
  2. package/dist/client.d.ts +0 -7
  3. package/dist/client.js +0 -25
  4. package/dist/gen/client/client.gen.d.ts +0 -2
  5. package/dist/gen/client/client.gen.js +0 -165
  6. package/dist/gen/client/index.d.ts +0 -7
  7. package/dist/gen/client/index.js +0 -5
  8. package/dist/gen/client/types.gen.d.ts +0 -127
  9. package/dist/gen/client/types.gen.js +0 -2
  10. package/dist/gen/client/utils.gen.d.ts +0 -38
  11. package/dist/gen/client/utils.gen.js +0 -226
  12. package/dist/gen/client.gen.d.ts +0 -12
  13. package/dist/gen/client.gen.js +0 -5
  14. package/dist/gen/core/auth.gen.d.ts +0 -18
  15. package/dist/gen/core/auth.gen.js +0 -14
  16. package/dist/gen/core/bodySerializer.gen.d.ts +0 -17
  17. package/dist/gen/core/bodySerializer.gen.js +0 -57
  18. package/dist/gen/core/params.gen.d.ts +0 -33
  19. package/dist/gen/core/params.gen.js +0 -89
  20. package/dist/gen/core/pathSerializer.gen.d.ts +0 -33
  21. package/dist/gen/core/pathSerializer.gen.js +0 -106
  22. package/dist/gen/core/serverSentEvents.gen.d.ts +0 -59
  23. package/dist/gen/core/serverSentEvents.gen.js +0 -117
  24. package/dist/gen/core/types.gen.d.ts +0 -78
  25. package/dist/gen/core/types.gen.js +0 -2
  26. package/dist/gen/core/utils.gen.d.ts +0 -14
  27. package/dist/gen/core/utils.gen.js +0 -69
  28. package/dist/gen/sdk.gen.d.ts +0 -403
  29. package/dist/gen/sdk.gen.js +0 -881
  30. package/dist/gen/types.gen.d.ts +0 -3368
  31. package/dist/gen/types.gen.js +0 -2
  32. package/dist/index.d.ts +0 -10
  33. package/dist/index.js +0 -16
  34. package/dist/server.d.ts +0 -23
  35. package/dist/server.js +0 -91
  36. package/dist/v2/client.d.ts +0 -7
  37. package/dist/v2/client.js +0 -25
  38. package/dist/v2/gen/client/client.gen.d.ts +0 -2
  39. package/dist/v2/gen/client/client.gen.js +0 -225
  40. package/dist/v2/gen/client/index.d.ts +0 -8
  41. package/dist/v2/gen/client/index.js +0 -6
  42. package/dist/v2/gen/client/types.gen.d.ts +0 -117
  43. package/dist/v2/gen/client/types.gen.js +0 -2
  44. package/dist/v2/gen/client/utils.gen.d.ts +0 -33
  45. package/dist/v2/gen/client/utils.gen.js +0 -226
  46. package/dist/v2/gen/client.gen.d.ts +0 -12
  47. package/dist/v2/gen/client.gen.js +0 -3
  48. package/dist/v2/gen/core/auth.gen.d.ts +0 -18
  49. package/dist/v2/gen/core/auth.gen.js +0 -14
  50. package/dist/v2/gen/core/bodySerializer.gen.d.ts +0 -25
  51. package/dist/v2/gen/core/bodySerializer.gen.js +0 -57
  52. package/dist/v2/gen/core/params.gen.d.ts +0 -43
  53. package/dist/v2/gen/core/params.gen.js +0 -102
  54. package/dist/v2/gen/core/pathSerializer.gen.d.ts +0 -33
  55. package/dist/v2/gen/core/pathSerializer.gen.js +0 -106
  56. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +0 -18
  57. package/dist/v2/gen/core/queryKeySerializer.gen.js +0 -93
  58. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +0 -71
  59. package/dist/v2/gen/core/serverSentEvents.gen.js +0 -131
  60. package/dist/v2/gen/core/types.gen.d.ts +0 -78
  61. package/dist/v2/gen/core/types.gen.js +0 -2
  62. package/dist/v2/gen/core/utils.gen.d.ts +0 -19
  63. package/dist/v2/gen/core/utils.gen.js +0 -87
  64. package/dist/v2/gen/sdk.gen.d.ts +0 -902
  65. package/dist/v2/gen/sdk.gen.js +0 -1726
  66. package/dist/v2/gen/types.gen.d.ts +0 -3719
  67. package/dist/v2/gen/types.gen.js +0 -2
  68. package/dist/v2/index.d.ts +0 -10
  69. package/dist/v2/index.js +0 -16
  70. package/dist/v2/server.d.ts +0 -23
  71. package/dist/v2/server.js +0 -91
@@ -1,881 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { client as _heyApiClient } from "./client.gen.js";
3
- class _HeyApiClient {
4
- _client = _heyApiClient;
5
- constructor(args) {
6
- if (args?.client) {
7
- this._client = args.client;
8
- }
9
- }
10
- }
11
- class Global extends _HeyApiClient {
12
- /**
13
- * Get events
14
- */
15
- event(options) {
16
- return (options?.client ?? this._client).get.sse({
17
- url: "/global/event",
18
- ...options,
19
- });
20
- }
21
- }
22
- class Project extends _HeyApiClient {
23
- /**
24
- * List all projects
25
- */
26
- list(options) {
27
- return (options?.client ?? this._client).get({
28
- url: "/project",
29
- ...options,
30
- });
31
- }
32
- /**
33
- * Get the current project
34
- */
35
- current(options) {
36
- return (options?.client ?? this._client).get({
37
- url: "/project/current",
38
- ...options,
39
- });
40
- }
41
- }
42
- class Pty extends _HeyApiClient {
43
- /**
44
- * List all PTY sessions
45
- */
46
- list(options) {
47
- return (options?.client ?? this._client).get({
48
- url: "/pty",
49
- ...options,
50
- });
51
- }
52
- /**
53
- * Create a new PTY session
54
- */
55
- create(options) {
56
- return (options?.client ?? this._client).post({
57
- url: "/pty",
58
- ...options,
59
- headers: {
60
- "Content-Type": "application/json",
61
- ...options?.headers,
62
- },
63
- });
64
- }
65
- /**
66
- * Remove a PTY session
67
- */
68
- remove(options) {
69
- return (options.client ?? this._client).delete({
70
- url: "/pty/{id}",
71
- ...options,
72
- });
73
- }
74
- /**
75
- * Get PTY session info
76
- */
77
- get(options) {
78
- return (options.client ?? this._client).get({
79
- url: "/pty/{id}",
80
- ...options,
81
- });
82
- }
83
- /**
84
- * Update PTY session
85
- */
86
- update(options) {
87
- return (options.client ?? this._client).put({
88
- url: "/pty/{id}",
89
- ...options,
90
- headers: {
91
- "Content-Type": "application/json",
92
- ...options.headers,
93
- },
94
- });
95
- }
96
- /**
97
- * Connect to a PTY session
98
- */
99
- connect(options) {
100
- return (options.client ?? this._client).get({
101
- url: "/pty/{id}/connect",
102
- ...options,
103
- });
104
- }
105
- }
106
- class Config extends _HeyApiClient {
107
- /**
108
- * Get config info
109
- */
110
- get(options) {
111
- return (options?.client ?? this._client).get({
112
- url: "/config",
113
- ...options,
114
- });
115
- }
116
- /**
117
- * Update config
118
- */
119
- update(options) {
120
- return (options?.client ?? this._client).patch({
121
- url: "/config",
122
- ...options,
123
- headers: {
124
- "Content-Type": "application/json",
125
- ...options?.headers,
126
- },
127
- });
128
- }
129
- /**
130
- * List all providers
131
- */
132
- providers(options) {
133
- return (options?.client ?? this._client).get({
134
- url: "/config/providers",
135
- ...options,
136
- });
137
- }
138
- }
139
- class Tool extends _HeyApiClient {
140
- /**
141
- * List all tool IDs (including built-in and dynamically registered)
142
- */
143
- ids(options) {
144
- return (options?.client ?? this._client).get({
145
- url: "/experimental/tool/ids",
146
- ...options,
147
- });
148
- }
149
- /**
150
- * List tools with JSON schema parameters for a provider/model
151
- */
152
- list(options) {
153
- return (options.client ?? this._client).get({
154
- url: "/experimental/tool",
155
- ...options,
156
- });
157
- }
158
- }
159
- class Instance extends _HeyApiClient {
160
- /**
161
- * Dispose the current instance
162
- */
163
- dispose(options) {
164
- return (options?.client ?? this._client).post({
165
- url: "/instance/dispose",
166
- ...options,
167
- });
168
- }
169
- }
170
- class Path extends _HeyApiClient {
171
- /**
172
- * Get the current path
173
- */
174
- get(options) {
175
- return (options?.client ?? this._client).get({
176
- url: "/path",
177
- ...options,
178
- });
179
- }
180
- }
181
- class Vcs extends _HeyApiClient {
182
- /**
183
- * Get VCS info for the current instance
184
- */
185
- get(options) {
186
- return (options?.client ?? this._client).get({
187
- url: "/vcs",
188
- ...options,
189
- });
190
- }
191
- }
192
- class Session extends _HeyApiClient {
193
- /**
194
- * List all sessions
195
- */
196
- list(options) {
197
- return (options?.client ?? this._client).get({
198
- url: "/session",
199
- ...options,
200
- });
201
- }
202
- /**
203
- * Create a new session
204
- */
205
- create(options) {
206
- return (options?.client ?? this._client).post({
207
- url: "/session",
208
- ...options,
209
- headers: {
210
- "Content-Type": "application/json",
211
- ...options?.headers,
212
- },
213
- });
214
- }
215
- /**
216
- * Get session status
217
- */
218
- status(options) {
219
- return (options?.client ?? this._client).get({
220
- url: "/session/status",
221
- ...options,
222
- });
223
- }
224
- /**
225
- * Delete a session and all its data
226
- */
227
- delete(options) {
228
- return (options.client ?? this._client).delete({
229
- url: "/session/{id}",
230
- ...options,
231
- });
232
- }
233
- /**
234
- * Get session
235
- */
236
- get(options) {
237
- return (options.client ?? this._client).get({
238
- url: "/session/{id}",
239
- ...options,
240
- });
241
- }
242
- /**
243
- * Update session properties
244
- */
245
- update(options) {
246
- return (options.client ?? this._client).patch({
247
- url: "/session/{id}",
248
- ...options,
249
- headers: {
250
- "Content-Type": "application/json",
251
- ...options.headers,
252
- },
253
- });
254
- }
255
- /**
256
- * Get a session's children
257
- */
258
- children(options) {
259
- return (options.client ?? this._client).get({
260
- url: "/session/{id}/children",
261
- ...options,
262
- });
263
- }
264
- /**
265
- * Get the todo list for a session
266
- */
267
- todo(options) {
268
- return (options.client ?? this._client).get({
269
- url: "/session/{id}/todo",
270
- ...options,
271
- });
272
- }
273
- /**
274
- * Analyze the app and create an AGENTS.md file
275
- */
276
- init(options) {
277
- return (options.client ?? this._client).post({
278
- url: "/session/{id}/init",
279
- ...options,
280
- headers: {
281
- "Content-Type": "application/json",
282
- ...options.headers,
283
- },
284
- });
285
- }
286
- /**
287
- * Fork an existing session at a specific message
288
- */
289
- fork(options) {
290
- return (options.client ?? this._client).post({
291
- url: "/session/{id}/fork",
292
- ...options,
293
- headers: {
294
- "Content-Type": "application/json",
295
- ...options.headers,
296
- },
297
- });
298
- }
299
- /**
300
- * Abort a session
301
- */
302
- abort(options) {
303
- return (options.client ?? this._client).post({
304
- url: "/session/{id}/abort",
305
- ...options,
306
- });
307
- }
308
- /**
309
- * Unshare the session
310
- */
311
- unshare(options) {
312
- return (options.client ?? this._client).delete({
313
- url: "/session/{id}/share",
314
- ...options,
315
- });
316
- }
317
- /**
318
- * Share a session
319
- */
320
- share(options) {
321
- return (options.client ?? this._client).post({
322
- url: "/session/{id}/share",
323
- ...options,
324
- });
325
- }
326
- /**
327
- * Get the diff for this session
328
- */
329
- diff(options) {
330
- return (options.client ?? this._client).get({
331
- url: "/session/{id}/diff",
332
- ...options,
333
- });
334
- }
335
- /**
336
- * Summarize the session
337
- */
338
- summarize(options) {
339
- return (options.client ?? this._client).post({
340
- url: "/session/{id}/summarize",
341
- ...options,
342
- headers: {
343
- "Content-Type": "application/json",
344
- ...options.headers,
345
- },
346
- });
347
- }
348
- /**
349
- * List messages for a session
350
- */
351
- messages(options) {
352
- return (options.client ?? this._client).get({
353
- url: "/session/{id}/message",
354
- ...options,
355
- });
356
- }
357
- /**
358
- * Create and send a new message to a session
359
- */
360
- prompt(options) {
361
- return (options.client ?? this._client).post({
362
- url: "/session/{id}/message",
363
- ...options,
364
- headers: {
365
- "Content-Type": "application/json",
366
- ...options.headers,
367
- },
368
- });
369
- }
370
- /**
371
- * Get a message from a session
372
- */
373
- message(options) {
374
- return (options.client ?? this._client).get({
375
- url: "/session/{id}/message/{messageID}",
376
- ...options,
377
- });
378
- }
379
- /**
380
- * Create and send a new message to a session, start if needed and return immediately
381
- */
382
- promptAsync(options) {
383
- return (options.client ?? this._client).post({
384
- url: "/session/{id}/prompt_async",
385
- ...options,
386
- headers: {
387
- "Content-Type": "application/json",
388
- ...options.headers,
389
- },
390
- });
391
- }
392
- /**
393
- * Send a new command to a session
394
- */
395
- command(options) {
396
- return (options.client ?? this._client).post({
397
- url: "/session/{id}/command",
398
- ...options,
399
- headers: {
400
- "Content-Type": "application/json",
401
- ...options.headers,
402
- },
403
- });
404
- }
405
- /**
406
- * Run a shell command
407
- */
408
- shell(options) {
409
- return (options.client ?? this._client).post({
410
- url: "/session/{id}/shell",
411
- ...options,
412
- headers: {
413
- "Content-Type": "application/json",
414
- ...options.headers,
415
- },
416
- });
417
- }
418
- /**
419
- * Revert a message
420
- */
421
- revert(options) {
422
- return (options.client ?? this._client).post({
423
- url: "/session/{id}/revert",
424
- ...options,
425
- headers: {
426
- "Content-Type": "application/json",
427
- ...options.headers,
428
- },
429
- });
430
- }
431
- /**
432
- * Restore all reverted messages
433
- */
434
- unrevert(options) {
435
- return (options.client ?? this._client).post({
436
- url: "/session/{id}/unrevert",
437
- ...options,
438
- });
439
- }
440
- }
441
- class Command extends _HeyApiClient {
442
- /**
443
- * List all commands
444
- */
445
- list(options) {
446
- return (options?.client ?? this._client).get({
447
- url: "/command",
448
- ...options,
449
- });
450
- }
451
- }
452
- class Oauth extends _HeyApiClient {
453
- /**
454
- * Authorize a provider using OAuth
455
- */
456
- authorize(options) {
457
- return (options.client ?? this._client).post({
458
- url: "/provider/{id}/oauth/authorize",
459
- ...options,
460
- headers: {
461
- "Content-Type": "application/json",
462
- ...options.headers,
463
- },
464
- });
465
- }
466
- /**
467
- * Handle OAuth callback for a provider
468
- */
469
- callback(options) {
470
- return (options.client ?? this._client).post({
471
- url: "/provider/{id}/oauth/callback",
472
- ...options,
473
- headers: {
474
- "Content-Type": "application/json",
475
- ...options.headers,
476
- },
477
- });
478
- }
479
- }
480
- class Provider extends _HeyApiClient {
481
- /**
482
- * List all providers
483
- */
484
- list(options) {
485
- return (options?.client ?? this._client).get({
486
- url: "/provider",
487
- ...options,
488
- });
489
- }
490
- /**
491
- * Get provider authentication methods
492
- */
493
- auth(options) {
494
- return (options?.client ?? this._client).get({
495
- url: "/provider/auth",
496
- ...options,
497
- });
498
- }
499
- oauth = new Oauth({ client: this._client });
500
- }
501
- class Find extends _HeyApiClient {
502
- /**
503
- * Find text in files
504
- */
505
- text(options) {
506
- return (options.client ?? this._client).get({
507
- url: "/find",
508
- ...options,
509
- });
510
- }
511
- /**
512
- * Find files
513
- */
514
- files(options) {
515
- return (options.client ?? this._client).get({
516
- url: "/find/file",
517
- ...options,
518
- });
519
- }
520
- /**
521
- * Find workspace symbols
522
- */
523
- symbols(options) {
524
- return (options.client ?? this._client).get({
525
- url: "/find/symbol",
526
- ...options,
527
- });
528
- }
529
- }
530
- class File extends _HeyApiClient {
531
- /**
532
- * List files and directories
533
- */
534
- list(options) {
535
- return (options.client ?? this._client).get({
536
- url: "/file",
537
- ...options,
538
- });
539
- }
540
- /**
541
- * Read a file
542
- */
543
- read(options) {
544
- return (options.client ?? this._client).get({
545
- url: "/file/content",
546
- ...options,
547
- });
548
- }
549
- /**
550
- * Get file status
551
- */
552
- status(options) {
553
- return (options?.client ?? this._client).get({
554
- url: "/file/status",
555
- ...options,
556
- });
557
- }
558
- }
559
- class App extends _HeyApiClient {
560
- /**
561
- * Write a log entry to the server logs
562
- */
563
- log(options) {
564
- return (options?.client ?? this._client).post({
565
- url: "/log",
566
- ...options,
567
- headers: {
568
- "Content-Type": "application/json",
569
- ...options?.headers,
570
- },
571
- });
572
- }
573
- /**
574
- * List all agents
575
- */
576
- agents(options) {
577
- return (options?.client ?? this._client).get({
578
- url: "/agent",
579
- ...options,
580
- });
581
- }
582
- }
583
- class Auth extends _HeyApiClient {
584
- /**
585
- * Remove OAuth credentials for an MCP server
586
- */
587
- remove(options) {
588
- return (options.client ?? this._client).delete({
589
- url: "/mcp/{name}/auth",
590
- ...options,
591
- });
592
- }
593
- /**
594
- * Start OAuth authentication flow for an MCP server
595
- */
596
- start(options) {
597
- return (options.client ?? this._client).post({
598
- url: "/mcp/{name}/auth",
599
- ...options,
600
- });
601
- }
602
- /**
603
- * Complete OAuth authentication with authorization code
604
- */
605
- callback(options) {
606
- return (options.client ?? this._client).post({
607
- url: "/mcp/{name}/auth/callback",
608
- ...options,
609
- headers: {
610
- "Content-Type": "application/json",
611
- ...options.headers,
612
- },
613
- });
614
- }
615
- /**
616
- * Start OAuth flow and wait for callback (opens browser)
617
- */
618
- authenticate(options) {
619
- return (options.client ?? this._client).post({
620
- url: "/mcp/{name}/auth/authenticate",
621
- ...options,
622
- });
623
- }
624
- /**
625
- * Set authentication credentials
626
- */
627
- set(options) {
628
- return (options.client ?? this._client).put({
629
- url: "/auth/{id}",
630
- ...options,
631
- headers: {
632
- "Content-Type": "application/json",
633
- ...options.headers,
634
- },
635
- });
636
- }
637
- }
638
- class Mcp extends _HeyApiClient {
639
- /**
640
- * Get MCP server status
641
- */
642
- status(options) {
643
- return (options?.client ?? this._client).get({
644
- url: "/mcp",
645
- ...options,
646
- });
647
- }
648
- /**
649
- * Add MCP server dynamically
650
- */
651
- add(options) {
652
- return (options?.client ?? this._client).post({
653
- url: "/mcp",
654
- ...options,
655
- headers: {
656
- "Content-Type": "application/json",
657
- ...options?.headers,
658
- },
659
- });
660
- }
661
- /**
662
- * Connect an MCP server
663
- */
664
- connect(options) {
665
- return (options.client ?? this._client).post({
666
- url: "/mcp/{name}/connect",
667
- ...options,
668
- });
669
- }
670
- /**
671
- * Disconnect an MCP server
672
- */
673
- disconnect(options) {
674
- return (options.client ?? this._client).post({
675
- url: "/mcp/{name}/disconnect",
676
- ...options,
677
- });
678
- }
679
- auth = new Auth({ client: this._client });
680
- }
681
- class Lsp extends _HeyApiClient {
682
- /**
683
- * Get LSP server status
684
- */
685
- status(options) {
686
- return (options?.client ?? this._client).get({
687
- url: "/lsp",
688
- ...options,
689
- });
690
- }
691
- }
692
- class Formatter extends _HeyApiClient {
693
- /**
694
- * Get formatter status
695
- */
696
- status(options) {
697
- return (options?.client ?? this._client).get({
698
- url: "/formatter",
699
- ...options,
700
- });
701
- }
702
- }
703
- class Control extends _HeyApiClient {
704
- /**
705
- * Get the next TUI request from the queue
706
- */
707
- next(options) {
708
- return (options?.client ?? this._client).get({
709
- url: "/tui/control/next",
710
- ...options,
711
- });
712
- }
713
- /**
714
- * Submit a response to the TUI request queue
715
- */
716
- response(options) {
717
- return (options?.client ?? this._client).post({
718
- url: "/tui/control/response",
719
- ...options,
720
- headers: {
721
- "Content-Type": "application/json",
722
- ...options?.headers,
723
- },
724
- });
725
- }
726
- }
727
- class Tui extends _HeyApiClient {
728
- /**
729
- * Append prompt to the TUI
730
- */
731
- appendPrompt(options) {
732
- return (options?.client ?? this._client).post({
733
- url: "/tui/append-prompt",
734
- ...options,
735
- headers: {
736
- "Content-Type": "application/json",
737
- ...options?.headers,
738
- },
739
- });
740
- }
741
- /**
742
- * Open the help dialog
743
- */
744
- openHelp(options) {
745
- return (options?.client ?? this._client).post({
746
- url: "/tui/open-help",
747
- ...options,
748
- });
749
- }
750
- /**
751
- * Open the session dialog
752
- */
753
- openSessions(options) {
754
- return (options?.client ?? this._client).post({
755
- url: "/tui/open-sessions",
756
- ...options,
757
- });
758
- }
759
- /**
760
- * Open the theme dialog
761
- */
762
- openThemes(options) {
763
- return (options?.client ?? this._client).post({
764
- url: "/tui/open-themes",
765
- ...options,
766
- });
767
- }
768
- /**
769
- * Open the model dialog
770
- */
771
- openModels(options) {
772
- return (options?.client ?? this._client).post({
773
- url: "/tui/open-models",
774
- ...options,
775
- });
776
- }
777
- /**
778
- * Submit the prompt
779
- */
780
- submitPrompt(options) {
781
- return (options?.client ?? this._client).post({
782
- url: "/tui/submit-prompt",
783
- ...options,
784
- });
785
- }
786
- /**
787
- * Clear the prompt
788
- */
789
- clearPrompt(options) {
790
- return (options?.client ?? this._client).post({
791
- url: "/tui/clear-prompt",
792
- ...options,
793
- });
794
- }
795
- /**
796
- * Execute a TUI command (e.g. agent_cycle)
797
- */
798
- executeCommand(options) {
799
- return (options?.client ?? this._client).post({
800
- url: "/tui/execute-command",
801
- ...options,
802
- headers: {
803
- "Content-Type": "application/json",
804
- ...options?.headers,
805
- },
806
- });
807
- }
808
- /**
809
- * Show a toast notification in the TUI
810
- */
811
- showToast(options) {
812
- return (options?.client ?? this._client).post({
813
- url: "/tui/show-toast",
814
- ...options,
815
- headers: {
816
- "Content-Type": "application/json",
817
- ...options?.headers,
818
- },
819
- });
820
- }
821
- /**
822
- * Publish a TUI event
823
- */
824
- publish(options) {
825
- return (options?.client ?? this._client).post({
826
- url: "/tui/publish",
827
- ...options,
828
- headers: {
829
- "Content-Type": "application/json",
830
- ...options?.headers,
831
- },
832
- });
833
- }
834
- control = new Control({ client: this._client });
835
- }
836
- class Event extends _HeyApiClient {
837
- /**
838
- * Get events
839
- */
840
- subscribe(options) {
841
- return (options?.client ?? this._client).get.sse({
842
- url: "/event",
843
- ...options,
844
- });
845
- }
846
- }
847
- export class ClawClient extends _HeyApiClient {
848
- /**
849
- * Respond to a permission request
850
- */
851
- postSessionIdPermissionsPermissionId(options) {
852
- return (options.client ?? this._client).post({
853
- url: "/session/{id}/permissions/{permissionID}",
854
- ...options,
855
- headers: {
856
- "Content-Type": "application/json",
857
- ...options.headers,
858
- },
859
- });
860
- }
861
- global = new Global({ client: this._client });
862
- project = new Project({ client: this._client });
863
- pty = new Pty({ client: this._client });
864
- config = new Config({ client: this._client });
865
- tool = new Tool({ client: this._client });
866
- instance = new Instance({ client: this._client });
867
- path = new Path({ client: this._client });
868
- vcs = new Vcs({ client: this._client });
869
- session = new Session({ client: this._client });
870
- command = new Command({ client: this._client });
871
- provider = new Provider({ client: this._client });
872
- find = new Find({ client: this._client });
873
- file = new File({ client: this._client });
874
- app = new App({ client: this._client });
875
- mcp = new Mcp({ client: this._client });
876
- lsp = new Lsp({ client: this._client });
877
- formatter = new Formatter({ client: this._client });
878
- tui = new Tui({ client: this._client });
879
- auth = new Auth({ client: this._client });
880
- event = new Event({ client: this._client });
881
- }