@reigncode/sdk 1.2.26 → 1.2.29

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