@kilocode/sdk 7.2.20 → 7.2.22

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.
@@ -220,11 +220,11 @@ export class App extends HeyApiClient {
220
220
  });
221
221
  }
222
222
  }
223
- export class Project extends HeyApiClient {
223
+ export class Adaptor extends HeyApiClient {
224
224
  /**
225
- * List all projects
225
+ * List workspace adaptors
226
226
  *
227
- * Get a list of projects that have been opened with Kilo.
227
+ * List all available workspace adaptors for the current project.
228
228
  */
229
229
  list(parameters, options) {
230
230
  const params = buildClientParams([parameters], [
@@ -236,17 +236,19 @@ export class Project extends HeyApiClient {
236
236
  },
237
237
  ]);
238
238
  return (options?.client ?? this.client).get({
239
- url: "/project",
239
+ url: "/experimental/workspace/adaptor",
240
240
  ...options,
241
241
  ...params,
242
242
  });
243
243
  }
244
+ }
245
+ export class Workspace extends HeyApiClient {
244
246
  /**
245
- * Get current project
247
+ * List workspaces
246
248
  *
247
- * Retrieve the currently active project that Kilo is working with.
249
+ * List all workspaces.
248
250
  */
249
- current(parameters, options) {
251
+ list(parameters, options) {
250
252
  const params = buildClientParams([parameters], [
251
253
  {
252
254
  args: [
@@ -256,103 +258,99 @@ export class Project extends HeyApiClient {
256
258
  },
257
259
  ]);
258
260
  return (options?.client ?? this.client).get({
259
- url: "/project/current",
261
+ url: "/experimental/workspace",
260
262
  ...options,
261
263
  ...params,
262
264
  });
263
265
  }
264
266
  /**
265
- * Initialize git repository
267
+ * Create workspace
266
268
  *
267
- * Create a git repository for the current project and return the refreshed project info.
269
+ * Create a workspace for the current project.
268
270
  */
269
- initGit(parameters, options) {
271
+ create(parameters, options) {
270
272
  const params = buildClientParams([parameters], [
271
273
  {
272
274
  args: [
273
275
  { in: "query", key: "directory" },
274
276
  { in: "query", key: "workspace" },
277
+ { in: "body", key: "id" },
278
+ { in: "body", key: "type" },
279
+ { in: "body", key: "branch" },
280
+ { in: "body", key: "extra" },
275
281
  ],
276
282
  },
277
283
  ]);
278
284
  return (options?.client ?? this.client).post({
279
- url: "/project/git/init",
285
+ url: "/experimental/workspace",
280
286
  ...options,
281
287
  ...params,
288
+ headers: {
289
+ "Content-Type": "application/json",
290
+ ...options?.headers,
291
+ ...params.headers,
292
+ },
282
293
  });
283
294
  }
284
295
  /**
285
- * Update project
296
+ * Workspace status
286
297
  *
287
- * Update project properties such as name, icon, and commands.
298
+ * Get connection status for workspaces in the current project.
288
299
  */
289
- update(parameters, options) {
300
+ status(parameters, options) {
290
301
  const params = buildClientParams([parameters], [
291
302
  {
292
303
  args: [
293
- { in: "path", key: "projectID" },
294
304
  { in: "query", key: "directory" },
295
305
  { in: "query", key: "workspace" },
296
- { in: "body", key: "name" },
297
- { in: "body", key: "icon" },
298
- { in: "body", key: "commands" },
299
306
  ],
300
307
  },
301
308
  ]);
302
- return (options?.client ?? this.client).patch({
303
- url: "/project/{projectID}",
309
+ return (options?.client ?? this.client).get({
310
+ url: "/experimental/workspace/status",
304
311
  ...options,
305
312
  ...params,
306
- headers: {
307
- "Content-Type": "application/json",
308
- ...options?.headers,
309
- ...params.headers,
310
- },
311
313
  });
312
314
  }
313
- }
314
- export class Pty extends HeyApiClient {
315
315
  /**
316
- * List PTY sessions
316
+ * Remove workspace
317
317
  *
318
- * Get a list of all active pseudo-terminal (PTY) sessions managed by Kilo.
318
+ * Remove an existing workspace.
319
319
  */
320
- list(parameters, options) {
320
+ remove(parameters, options) {
321
321
  const params = buildClientParams([parameters], [
322
322
  {
323
323
  args: [
324
+ { in: "path", key: "id" },
324
325
  { in: "query", key: "directory" },
325
326
  { in: "query", key: "workspace" },
326
327
  ],
327
328
  },
328
329
  ]);
329
- return (options?.client ?? this.client).get({
330
- url: "/pty",
330
+ return (options?.client ?? this.client).delete({
331
+ url: "/experimental/workspace/{id}",
331
332
  ...options,
332
333
  ...params,
333
334
  });
334
335
  }
335
336
  /**
336
- * Create PTY session
337
+ * Restore session into workspace
337
338
  *
338
- * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
339
+ * Replay a session's sync events into the target workspace in batches.
339
340
  */
340
- create(parameters, options) {
341
+ sessionRestore(parameters, options) {
341
342
  const params = buildClientParams([parameters], [
342
343
  {
343
344
  args: [
345
+ { in: "path", key: "id" },
344
346
  { in: "query", key: "directory" },
345
347
  { in: "query", key: "workspace" },
346
- { in: "body", key: "command" },
347
- { in: "body", key: "args" },
348
- { in: "body", key: "cwd" },
349
- { in: "body", key: "title" },
350
- { in: "body", key: "env" },
348
+ { in: "body", key: "sessionID" },
351
349
  ],
352
350
  },
353
351
  ]);
354
352
  return (options?.client ?? this.client).post({
355
- url: "/pty",
353
+ url: "/experimental/workspace/{id}/session-restore",
356
354
  ...options,
357
355
  ...params,
358
356
  headers: {
@@ -362,67 +360,70 @@ export class Pty extends HeyApiClient {
362
360
  },
363
361
  });
364
362
  }
363
+ _adaptor;
364
+ get adaptor() {
365
+ return (this._adaptor ??= new Adaptor({ client: this.client }));
366
+ }
367
+ }
368
+ export class Console extends HeyApiClient {
365
369
  /**
366
- * Remove PTY session
370
+ * Get active Console provider metadata
367
371
  *
368
- * Remove and terminate a specific pseudo-terminal (PTY) session.
372
+ * Get the active Console org name and the set of provider IDs managed by that Console org.
369
373
  */
370
- remove(parameters, options) {
374
+ get(parameters, options) {
371
375
  const params = buildClientParams([parameters], [
372
376
  {
373
377
  args: [
374
- { in: "path", key: "ptyID" },
375
378
  { in: "query", key: "directory" },
376
379
  { in: "query", key: "workspace" },
377
380
  ],
378
381
  },
379
382
  ]);
380
- return (options?.client ?? this.client).delete({
381
- url: "/pty/{ptyID}",
383
+ return (options?.client ?? this.client).get({
384
+ url: "/experimental/console",
382
385
  ...options,
383
386
  ...params,
384
387
  });
385
388
  }
386
389
  /**
387
- * Get PTY session
390
+ * List switchable Console orgs
388
391
  *
389
- * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
392
+ * Get the available Console orgs across logged-in accounts, including the current active org.
390
393
  */
391
- get(parameters, options) {
394
+ listOrgs(parameters, options) {
392
395
  const params = buildClientParams([parameters], [
393
396
  {
394
397
  args: [
395
- { in: "path", key: "ptyID" },
396
398
  { in: "query", key: "directory" },
397
399
  { in: "query", key: "workspace" },
398
400
  ],
399
401
  },
400
402
  ]);
401
403
  return (options?.client ?? this.client).get({
402
- url: "/pty/{ptyID}",
404
+ url: "/experimental/console/orgs",
403
405
  ...options,
404
406
  ...params,
405
407
  });
406
408
  }
407
409
  /**
408
- * Update PTY session
410
+ * Switch active Console org
409
411
  *
410
- * Update properties of an existing pseudo-terminal (PTY) session.
412
+ * Persist a new active Console account/org selection for the current local Kilo state.
411
413
  */
412
- update(parameters, options) {
414
+ switchOrg(parameters, options) {
413
415
  const params = buildClientParams([parameters], [
414
416
  {
415
417
  args: [
416
- { in: "path", key: "ptyID" },
417
418
  { in: "query", key: "directory" },
418
419
  { in: "query", key: "workspace" },
419
- { in: "body", key: "title" },
420
- { in: "body", key: "size" },
420
+ { in: "body", key: "accountID" },
421
+ { in: "body", key: "orgID" },
421
422
  ],
422
423
  },
423
424
  ]);
424
- return (options?.client ?? this.client).put({
425
- url: "/pty/{ptyID}",
425
+ return (options?.client ?? this.client).post({
426
+ url: "/experimental/console/switch",
426
427
  ...options,
427
428
  ...params,
428
429
  headers: {
@@ -432,35 +433,44 @@ export class Pty extends HeyApiClient {
432
433
  },
433
434
  });
434
435
  }
436
+ }
437
+ export class Session extends HeyApiClient {
435
438
  /**
436
- * Connect to PTY session
439
+ * List sessions
437
440
  *
438
- * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
441
+ * Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
439
442
  */
440
- connect(parameters, options) {
443
+ list(parameters, options) {
441
444
  const params = buildClientParams([parameters], [
442
445
  {
443
446
  args: [
444
- { in: "path", key: "ptyID" },
445
447
  { in: "query", key: "directory" },
446
448
  { in: "query", key: "workspace" },
449
+ { in: "query", key: "projectID" },
450
+ { in: "query", key: "worktrees" },
451
+ { in: "query", key: "roots" },
452
+ { in: "query", key: "start" },
453
+ { in: "query", key: "cursor" },
454
+ { in: "query", key: "search" },
455
+ { in: "query", key: "limit" },
456
+ { in: "query", key: "archived" },
447
457
  ],
448
458
  },
449
459
  ]);
450
460
  return (options?.client ?? this.client).get({
451
- url: "/pty/{ptyID}/connect",
461
+ url: "/experimental/session",
452
462
  ...options,
453
463
  ...params,
454
464
  });
455
465
  }
456
466
  }
457
- export class Config2 extends HeyApiClient {
467
+ export class Resource extends HeyApiClient {
458
468
  /**
459
- * Get configuration
469
+ * Get MCP resources
460
470
  *
461
- * Retrieve the current Kilo configuration settings and preferences.
471
+ * Get all available MCP resources from connected servers. Optionally filter by name.
462
472
  */
463
- get(parameters, options) {
473
+ list(parameters, options) {
464
474
  const params = buildClientParams([parameters], [
465
475
  {
466
476
  args: [
@@ -470,43 +480,57 @@ export class Config2 extends HeyApiClient {
470
480
  },
471
481
  ]);
472
482
  return (options?.client ?? this.client).get({
473
- url: "/config",
483
+ url: "/experimental/resource",
474
484
  ...options,
475
485
  ...params,
476
486
  });
477
487
  }
488
+ }
489
+ export class Experimental extends HeyApiClient {
490
+ _workspace;
491
+ get workspace() {
492
+ return (this._workspace ??= new Workspace({ client: this.client }));
493
+ }
494
+ _console;
495
+ get console() {
496
+ return (this._console ??= new Console({ client: this.client }));
497
+ }
498
+ _session;
499
+ get session() {
500
+ return (this._session ??= new Session({ client: this.client }));
501
+ }
502
+ _resource;
503
+ get resource() {
504
+ return (this._resource ??= new Resource({ client: this.client }));
505
+ }
506
+ }
507
+ export class Project extends HeyApiClient {
478
508
  /**
479
- * Update configuration
509
+ * List all projects
480
510
  *
481
- * Update Kilo configuration settings and preferences.
511
+ * Get a list of projects that have been opened with Kilo.
482
512
  */
483
- update(parameters, options) {
513
+ list(parameters, options) {
484
514
  const params = buildClientParams([parameters], [
485
515
  {
486
516
  args: [
487
517
  { in: "query", key: "directory" },
488
518
  { in: "query", key: "workspace" },
489
- { key: "config", map: "body" },
490
519
  ],
491
520
  },
492
521
  ]);
493
- return (options?.client ?? this.client).patch({
494
- url: "/config",
522
+ return (options?.client ?? this.client).get({
523
+ url: "/project",
495
524
  ...options,
496
525
  ...params,
497
- headers: {
498
- "Content-Type": "application/json",
499
- ...options?.headers,
500
- ...params.headers,
501
- },
502
526
  });
503
527
  }
504
528
  /**
505
- * Get config warnings
529
+ * Get current project
506
530
  *
507
- * Get warnings generated during config loading (e.g., invalid JSON, schema errors).
531
+ * Retrieve the currently active project that Kilo is working with.
508
532
  */
509
- warnings(parameters, options) {
533
+ current(parameters, options) {
510
534
  const params = buildClientParams([parameters], [
511
535
  {
512
536
  args: [
@@ -516,17 +540,17 @@ export class Config2 extends HeyApiClient {
516
540
  },
517
541
  ]);
518
542
  return (options?.client ?? this.client).get({
519
- url: "/config/warnings",
543
+ url: "/project/current",
520
544
  ...options,
521
545
  ...params,
522
546
  });
523
547
  }
524
548
  /**
525
- * List config providers
549
+ * Initialize git repository
526
550
  *
527
- * Get a list of all configured AI providers and their default models.
551
+ * Create a git repository for the current project and return the refreshed project info.
528
552
  */
529
- providers(parameters, options) {
553
+ initGit(parameters, options) {
530
554
  const params = buildClientParams([parameters], [
531
555
  {
532
556
  args: [
@@ -535,40 +559,49 @@ export class Config2 extends HeyApiClient {
535
559
  ],
536
560
  },
537
561
  ]);
538
- return (options?.client ?? this.client).get({
539
- url: "/config/providers",
562
+ return (options?.client ?? this.client).post({
563
+ url: "/project/git/init",
540
564
  ...options,
541
565
  ...params,
542
566
  });
543
567
  }
544
- }
545
- export class Console extends HeyApiClient {
546
568
  /**
547
- * Get active Console provider metadata
569
+ * Update project
548
570
  *
549
- * Get the active Console org name and the set of provider IDs managed by that Console org.
571
+ * Update project properties such as name, icon, and commands.
550
572
  */
551
- get(parameters, options) {
573
+ update(parameters, options) {
552
574
  const params = buildClientParams([parameters], [
553
575
  {
554
576
  args: [
577
+ { in: "path", key: "projectID" },
555
578
  { in: "query", key: "directory" },
556
579
  { in: "query", key: "workspace" },
580
+ { in: "body", key: "name" },
581
+ { in: "body", key: "icon" },
582
+ { in: "body", key: "commands" },
557
583
  ],
558
584
  },
559
585
  ]);
560
- return (options?.client ?? this.client).get({
561
- url: "/experimental/console",
586
+ return (options?.client ?? this.client).patch({
587
+ url: "/project/{projectID}",
562
588
  ...options,
563
589
  ...params,
590
+ headers: {
591
+ "Content-Type": "application/json",
592
+ ...options?.headers,
593
+ ...params.headers,
594
+ },
564
595
  });
565
596
  }
597
+ }
598
+ export class Pty extends HeyApiClient {
566
599
  /**
567
- * List switchable Console orgs
600
+ * List PTY sessions
568
601
  *
569
- * Get the available Console orgs across logged-in accounts, including the current active org.
602
+ * Get a list of all active pseudo-terminal (PTY) sessions managed by Kilo.
570
603
  */
571
- listOrgs(parameters, options) {
604
+ list(parameters, options) {
572
605
  const params = buildClientParams([parameters], [
573
606
  {
574
607
  args: [
@@ -578,29 +611,32 @@ export class Console extends HeyApiClient {
578
611
  },
579
612
  ]);
580
613
  return (options?.client ?? this.client).get({
581
- url: "/experimental/console/orgs",
614
+ url: "/pty",
582
615
  ...options,
583
616
  ...params,
584
617
  });
585
618
  }
586
619
  /**
587
- * Switch active Console org
620
+ * Create PTY session
588
621
  *
589
- * Persist a new active Console account/org selection for the current local Kilo state.
622
+ * Create a new pseudo-terminal (PTY) session for running shell commands and processes.
590
623
  */
591
- switchOrg(parameters, options) {
624
+ create(parameters, options) {
592
625
  const params = buildClientParams([parameters], [
593
626
  {
594
627
  args: [
595
628
  { in: "query", key: "directory" },
596
629
  { in: "query", key: "workspace" },
597
- { in: "body", key: "accountID" },
598
- { in: "body", key: "orgID" },
630
+ { in: "body", key: "command" },
631
+ { in: "body", key: "args" },
632
+ { in: "body", key: "cwd" },
633
+ { in: "body", key: "title" },
634
+ { in: "body", key: "env" },
599
635
  ],
600
636
  },
601
637
  ]);
602
638
  return (options?.client ?? this.client).post({
603
- url: "/experimental/console/switch",
639
+ url: "/pty",
604
640
  ...options,
605
641
  ...params,
606
642
  headers: {
@@ -610,70 +646,67 @@ export class Console extends HeyApiClient {
610
646
  },
611
647
  });
612
648
  }
613
- }
614
- export class Adaptor extends HeyApiClient {
615
649
  /**
616
- * List workspace adaptors
650
+ * Remove PTY session
617
651
  *
618
- * List all available workspace adaptors for the current project.
652
+ * Remove and terminate a specific pseudo-terminal (PTY) session.
619
653
  */
620
- list(parameters, options) {
654
+ remove(parameters, options) {
621
655
  const params = buildClientParams([parameters], [
622
656
  {
623
657
  args: [
658
+ { in: "path", key: "ptyID" },
624
659
  { in: "query", key: "directory" },
625
660
  { in: "query", key: "workspace" },
626
661
  ],
627
662
  },
628
663
  ]);
629
- return (options?.client ?? this.client).get({
630
- url: "/experimental/workspace/adaptor",
664
+ return (options?.client ?? this.client).delete({
665
+ url: "/pty/{ptyID}",
631
666
  ...options,
632
667
  ...params,
633
668
  });
634
669
  }
635
- }
636
- export class Workspace extends HeyApiClient {
637
670
  /**
638
- * List workspaces
671
+ * Get PTY session
639
672
  *
640
- * List all workspaces.
673
+ * Retrieve detailed information about a specific pseudo-terminal (PTY) session.
641
674
  */
642
- list(parameters, options) {
675
+ get(parameters, options) {
643
676
  const params = buildClientParams([parameters], [
644
677
  {
645
678
  args: [
679
+ { in: "path", key: "ptyID" },
646
680
  { in: "query", key: "directory" },
647
681
  { in: "query", key: "workspace" },
648
682
  ],
649
683
  },
650
684
  ]);
651
685
  return (options?.client ?? this.client).get({
652
- url: "/experimental/workspace",
686
+ url: "/pty/{ptyID}",
653
687
  ...options,
654
688
  ...params,
655
689
  });
656
690
  }
657
691
  /**
658
- * Create workspace
692
+ * Update PTY session
659
693
  *
660
- * Create a workspace for the current project.
694
+ * Update properties of an existing pseudo-terminal (PTY) session.
661
695
  */
662
- create(parameters, options) {
696
+ update(parameters, options) {
663
697
  const params = buildClientParams([parameters], [
664
698
  {
665
699
  args: [
700
+ { in: "path", key: "ptyID" },
666
701
  { in: "query", key: "directory" },
667
702
  { in: "query", key: "workspace" },
668
- { in: "body", key: "id" },
669
- { in: "body", key: "type" },
670
- { in: "body", key: "branch" },
671
- { in: "body", key: "extra" },
703
+ { in: "body", key: "title" },
704
+ { in: "body", key: "size" },
672
705
  ],
673
706
  },
674
707
  ]);
675
- return (options?.client ?? this.client).post({
676
- url: "/experimental/workspace",
708
+ return (options?.client ?? this.client).put({
709
+ url: "/pty/{ptyID}",
677
710
  ...options,
678
711
  ...params,
679
712
  headers: {
@@ -684,88 +717,100 @@ export class Workspace extends HeyApiClient {
684
717
  });
685
718
  }
686
719
  /**
687
- * Workspace status
720
+ * Connect to PTY session
688
721
  *
689
- * Get connection status for workspaces in the current project.
722
+ * Establish a WebSocket connection to interact with a pseudo-terminal (PTY) session in real-time.
690
723
  */
691
- status(parameters, options) {
724
+ connect(parameters, options) {
692
725
  const params = buildClientParams([parameters], [
693
726
  {
694
727
  args: [
728
+ { in: "path", key: "ptyID" },
695
729
  { in: "query", key: "directory" },
696
730
  { in: "query", key: "workspace" },
697
731
  ],
698
732
  },
699
733
  ]);
700
734
  return (options?.client ?? this.client).get({
701
- url: "/experimental/workspace/status",
735
+ url: "/pty/{ptyID}/connect",
702
736
  ...options,
703
737
  ...params,
704
738
  });
705
739
  }
740
+ }
741
+ export class Config2 extends HeyApiClient {
706
742
  /**
707
- * Remove workspace
743
+ * Get configuration
708
744
  *
709
- * Remove an existing workspace.
745
+ * Retrieve the current Kilo configuration settings and preferences.
710
746
  */
711
- remove(parameters, options) {
747
+ get(parameters, options) {
712
748
  const params = buildClientParams([parameters], [
713
749
  {
714
750
  args: [
715
- { in: "path", key: "id" },
716
751
  { in: "query", key: "directory" },
717
752
  { in: "query", key: "workspace" },
718
753
  ],
719
754
  },
720
755
  ]);
721
- return (options?.client ?? this.client).delete({
722
- url: "/experimental/workspace/{id}",
756
+ return (options?.client ?? this.client).get({
757
+ url: "/config",
723
758
  ...options,
724
759
  ...params,
725
760
  });
726
761
  }
727
- _adaptor;
728
- get adaptor() {
729
- return (this._adaptor ??= new Adaptor({ client: this.client }));
762
+ /**
763
+ * Update configuration
764
+ *
765
+ * Update Kilo configuration settings and preferences.
766
+ */
767
+ update(parameters, options) {
768
+ const params = buildClientParams([parameters], [
769
+ {
770
+ args: [
771
+ { in: "query", key: "directory" },
772
+ { in: "query", key: "workspace" },
773
+ { key: "config", map: "body" },
774
+ ],
775
+ },
776
+ ]);
777
+ return (options?.client ?? this.client).patch({
778
+ url: "/config",
779
+ ...options,
780
+ ...params,
781
+ headers: {
782
+ "Content-Type": "application/json",
783
+ ...options?.headers,
784
+ ...params.headers,
785
+ },
786
+ });
730
787
  }
731
- }
732
- export class Session extends HeyApiClient {
733
788
  /**
734
- * List sessions
789
+ * Get config warnings
735
790
  *
736
- * Get a list of all Kilo sessions across projects, sorted by most recently updated. Archived sessions are excluded by default.
791
+ * Get warnings generated during config loading (e.g., invalid JSON, schema errors).
737
792
  */
738
- list(parameters, options) {
793
+ warnings(parameters, options) {
739
794
  const params = buildClientParams([parameters], [
740
795
  {
741
796
  args: [
742
797
  { in: "query", key: "directory" },
743
798
  { in: "query", key: "workspace" },
744
- { in: "query", key: "projectID" },
745
- { in: "query", key: "worktrees" },
746
- { in: "query", key: "roots" },
747
- { in: "query", key: "start" },
748
- { in: "query", key: "cursor" },
749
- { in: "query", key: "search" },
750
- { in: "query", key: "limit" },
751
- { in: "query", key: "archived" },
752
799
  ],
753
800
  },
754
801
  ]);
755
802
  return (options?.client ?? this.client).get({
756
- url: "/experimental/session",
803
+ url: "/config/warnings",
757
804
  ...options,
758
805
  ...params,
759
806
  });
760
807
  }
761
- }
762
- export class Resource extends HeyApiClient {
763
808
  /**
764
- * Get MCP resources
809
+ * List config providers
765
810
  *
766
- * Get all available MCP resources from connected servers. Optionally filter by name.
811
+ * Get a list of all configured AI providers and their default models.
767
812
  */
768
- list(parameters, options) {
813
+ providers(parameters, options) {
769
814
  const params = buildClientParams([parameters], [
770
815
  {
771
816
  args: [
@@ -775,30 +820,12 @@ export class Resource extends HeyApiClient {
775
820
  },
776
821
  ]);
777
822
  return (options?.client ?? this.client).get({
778
- url: "/experimental/resource",
823
+ url: "/config/providers",
779
824
  ...options,
780
825
  ...params,
781
826
  });
782
827
  }
783
828
  }
784
- export class Experimental extends HeyApiClient {
785
- _console;
786
- get console() {
787
- return (this._console ??= new Console({ client: this.client }));
788
- }
789
- _workspace;
790
- get workspace() {
791
- return (this._workspace ??= new Workspace({ client: this.client }));
792
- }
793
- _session;
794
- get session() {
795
- return (this._session ??= new Session({ client: this.client }));
796
- }
797
- _resource;
798
- get resource() {
799
- return (this._resource ??= new Resource({ client: this.client }));
800
- }
801
- }
802
829
  export class Tool extends HeyApiClient {
803
830
  /**
804
831
  * List tool IDs
@@ -2004,6 +2031,75 @@ export class Provider extends HeyApiClient {
2004
2031
  return (this._oauth ??= new Oauth({ client: this.client }));
2005
2032
  }
2006
2033
  }
2034
+ export class History extends HeyApiClient {
2035
+ /**
2036
+ * List sync events
2037
+ *
2038
+ * List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.
2039
+ */
2040
+ list(parameters, options) {
2041
+ const params = buildClientParams([parameters], [
2042
+ {
2043
+ args: [
2044
+ { in: "query", key: "directory" },
2045
+ { in: "query", key: "workspace" },
2046
+ { key: "body", map: "body" },
2047
+ ],
2048
+ },
2049
+ ]);
2050
+ return (options?.client ?? this.client).get({
2051
+ url: "/sync/history",
2052
+ ...options,
2053
+ ...params,
2054
+ headers: {
2055
+ "Content-Type": "application/json",
2056
+ ...options?.headers,
2057
+ ...params.headers,
2058
+ },
2059
+ });
2060
+ }
2061
+ }
2062
+ export class Sync extends HeyApiClient {
2063
+ /**
2064
+ * Replay sync events
2065
+ *
2066
+ * Validate and replay a complete sync event history.
2067
+ */
2068
+ replay(parameters, options) {
2069
+ const params = buildClientParams([parameters], [
2070
+ {
2071
+ args: [
2072
+ {
2073
+ in: "query",
2074
+ key: "query_directory",
2075
+ map: "directory",
2076
+ },
2077
+ { in: "query", key: "workspace" },
2078
+ {
2079
+ in: "body",
2080
+ key: "body_directory",
2081
+ map: "directory",
2082
+ },
2083
+ { in: "body", key: "events" },
2084
+ ],
2085
+ },
2086
+ ]);
2087
+ return (options?.client ?? this.client).post({
2088
+ url: "/sync/replay",
2089
+ ...options,
2090
+ ...params,
2091
+ headers: {
2092
+ "Content-Type": "application/json",
2093
+ ...options?.headers,
2094
+ ...params.headers,
2095
+ },
2096
+ });
2097
+ }
2098
+ _history;
2099
+ get history() {
2100
+ return (this._history ??= new History({ client: this.client }));
2101
+ }
2102
+ }
2007
2103
  export class Find extends HeyApiClient {
2008
2104
  /**
2009
2105
  * Find text
@@ -3585,6 +3681,10 @@ export class KiloClient extends HeyApiClient {
3585
3681
  get app() {
3586
3682
  return (this._app ??= new App({ client: this.client }));
3587
3683
  }
3684
+ _experimental;
3685
+ get experimental() {
3686
+ return (this._experimental ??= new Experimental({ client: this.client }));
3687
+ }
3588
3688
  _project;
3589
3689
  get project() {
3590
3690
  return (this._project ??= new Project({ client: this.client }));
@@ -3597,10 +3697,6 @@ export class KiloClient extends HeyApiClient {
3597
3697
  get config() {
3598
3698
  return (this._config ??= new Config2({ client: this.client }));
3599
3699
  }
3600
- _experimental;
3601
- get experimental() {
3602
- return (this._experimental ??= new Experimental({ client: this.client }));
3603
- }
3604
3700
  _tool;
3605
3701
  get tool() {
3606
3702
  return (this._tool ??= new Tool({ client: this.client }));
@@ -3629,6 +3725,10 @@ export class KiloClient extends HeyApiClient {
3629
3725
  get provider() {
3630
3726
  return (this._provider ??= new Provider({ client: this.client }));
3631
3727
  }
3728
+ _sync;
3729
+ get sync() {
3730
+ return (this._sync ??= new Sync({ client: this.client }));
3731
+ }
3632
3732
  _find;
3633
3733
  get find() {
3634
3734
  return (this._find ??= new Find({ client: this.client }));