@daytonaio/api-client 0.6.0 → 0.6.1

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 (59) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +2 -2
  3. package/api/toolbox-api.ts +38 -22
  4. package/dist/api/toolbox-api.d.ts +41 -33
  5. package/dist/esm/api/toolbox-api.d.ts +41 -33
  6. package/dist/esm/models/file-info.d.ts +66 -0
  7. package/dist/esm/models/file-info.js +14 -0
  8. package/dist/esm/models/file-status.d.ts +42 -0
  9. package/dist/esm/models/file-status.js +14 -0
  10. package/dist/esm/models/git-commit-info.d.ts +48 -0
  11. package/dist/esm/models/git-commit-info.js +14 -0
  12. package/dist/esm/models/git-commit-request.d.ts +1 -19
  13. package/dist/esm/models/git-status.d.ts +49 -0
  14. package/dist/esm/models/git-status.js +14 -0
  15. package/dist/esm/models/index.d.ts +9 -0
  16. package/dist/esm/models/index.js +9 -0
  17. package/dist/esm/models/list-branch-response.d.ts +24 -0
  18. package/dist/esm/models/list-branch-response.js +14 -0
  19. package/dist/esm/models/match.d.ts +36 -0
  20. package/dist/esm/models/match.js +14 -0
  21. package/dist/esm/models/project-dir-response.d.ts +24 -0
  22. package/dist/esm/models/project-dir-response.js +14 -0
  23. package/dist/esm/models/replace-result.d.ts +36 -0
  24. package/dist/esm/models/replace-result.js +14 -0
  25. package/dist/esm/models/search-files-response.d.ts +24 -0
  26. package/dist/esm/models/search-files-response.js +14 -0
  27. package/dist/models/file-info.d.ts +66 -0
  28. package/dist/models/file-info.js +15 -0
  29. package/dist/models/file-status.d.ts +42 -0
  30. package/dist/models/file-status.js +15 -0
  31. package/dist/models/git-commit-info.d.ts +48 -0
  32. package/dist/models/git-commit-info.js +15 -0
  33. package/dist/models/git-commit-request.d.ts +1 -19
  34. package/dist/models/git-status.d.ts +49 -0
  35. package/dist/models/git-status.js +15 -0
  36. package/dist/models/index.d.ts +9 -0
  37. package/dist/models/index.js +9 -0
  38. package/dist/models/list-branch-response.d.ts +24 -0
  39. package/dist/models/list-branch-response.js +15 -0
  40. package/dist/models/match.d.ts +36 -0
  41. package/dist/models/match.js +15 -0
  42. package/dist/models/project-dir-response.d.ts +24 -0
  43. package/dist/models/project-dir-response.js +15 -0
  44. package/dist/models/replace-result.d.ts +36 -0
  45. package/dist/models/replace-result.js +15 -0
  46. package/dist/models/search-files-response.d.ts +24 -0
  47. package/dist/models/search-files-response.js +15 -0
  48. package/models/file-info.ts +72 -0
  49. package/models/file-status.ts +48 -0
  50. package/models/git-commit-info.ts +54 -0
  51. package/models/git-commit-request.ts +1 -19
  52. package/models/git-status.ts +57 -0
  53. package/models/index.ts +9 -0
  54. package/models/list-branch-response.ts +30 -0
  55. package/models/match.ts +42 -0
  56. package/models/project-dir-response.ts +30 -0
  57. package/models/replace-result.ts +42 -0
  58. package/models/search-files-response.ts +30 -0
  59. package/package.json +1 -1
@@ -14,12 +14,20 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { ExecuteRequest } from '../models';
16
16
  import type { ExecuteResponse } from '../models';
17
+ import type { FileInfo } from '../models';
17
18
  import type { GitAddRequest } from '../models';
18
19
  import type { GitBranchRequest } from '../models';
19
20
  import type { GitCloneRequest } from '../models';
21
+ import type { GitCommitInfo } from '../models';
20
22
  import type { GitCommitRequest } from '../models';
21
23
  import type { GitRepoRequest } from '../models';
24
+ import type { GitStatus } from '../models';
25
+ import type { ListBranchResponse } from '../models';
26
+ import type { Match } from '../models';
27
+ import type { ProjectDirResponse } from '../models';
22
28
  import type { ReplaceRequest } from '../models';
29
+ import type { ReplaceResult } from '../models';
30
+ import type { SearchFilesResponse } from '../models';
23
31
  /**
24
32
  * ToolboxApi - axios parameter creator
25
33
  * @export
@@ -263,7 +271,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
263
271
  * @param {*} [options] Override http request option.
264
272
  * @throws {RequiredError}
265
273
  */
266
- downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
274
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
267
275
  /**
268
276
  * Execute command synchronously inside workspace
269
277
  * @summary Execute command
@@ -282,7 +290,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
282
290
  * @param {*} [options] Override http request option.
283
291
  * @throws {RequiredError}
284
292
  */
285
- findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
293
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Match>>>;
286
294
  /**
287
295
  * Get file info inside workspace
288
296
  * @summary Get file info
@@ -291,7 +299,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
291
299
  * @param {*} [options] Override http request option.
292
300
  * @throws {RequiredError}
293
301
  */
294
- getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
302
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileInfo>>;
295
303
  /**
296
304
  *
297
305
  * @summary Get workspace project dir
@@ -299,7 +307,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
299
307
  * @param {*} [options] Override http request option.
300
308
  * @throws {RequiredError}
301
309
  */
302
- getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
310
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
303
311
  /**
304
312
  * Add files to git commit
305
313
  * @summary Add files
@@ -326,7 +334,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
326
334
  * @param {*} [options] Override http request option.
327
335
  * @throws {RequiredError}
328
336
  */
329
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
337
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitRequest>>;
330
338
  /**
331
339
  * Create branch on git repository
332
340
  * @summary Create branch
@@ -344,7 +352,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
344
352
  * @param {*} [options] Override http request option.
345
353
  * @throws {RequiredError}
346
354
  */
347
- gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
355
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GitCommitInfo>>>;
348
356
  /**
349
357
  * Get status from git repository
350
358
  * @summary Get git status
@@ -353,7 +361,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
353
361
  * @param {*} [options] Override http request option.
354
362
  * @throws {RequiredError}
355
363
  */
356
- gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
364
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitStatus>>;
357
365
  /**
358
366
  * Get branch list from git repository
359
367
  * @summary Get branch list
@@ -362,7 +370,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
362
370
  * @param {*} [options] Override http request option.
363
371
  * @throws {RequiredError}
364
372
  */
365
- gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
373
+ gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBranchResponse>>;
366
374
  /**
367
375
  * Pull changes from remote
368
376
  * @summary Pull changes
@@ -389,7 +397,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
389
397
  * @param {*} [options] Override http request option.
390
398
  * @throws {RequiredError}
391
399
  */
392
- listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
400
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>>;
393
401
  /**
394
402
  * Move file inside workspace
395
403
  * @summary Move file
@@ -408,7 +416,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
408
416
  * @param {*} [options] Override http request option.
409
417
  * @throws {RequiredError}
410
418
  */
411
- replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
419
+ replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReplaceResult>>>;
412
420
  /**
413
421
  * Search for files inside workspace
414
422
  * @summary Search files
@@ -418,7 +426,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
418
426
  * @param {*} [options] Override http request option.
419
427
  * @throws {RequiredError}
420
428
  */
421
- searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
429
+ searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchFilesResponse>>;
422
430
  /**
423
431
  * Set file owner/group/permissions inside workspace
424
432
  * @summary Set file permissions
@@ -474,7 +482,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
474
482
  * @param {*} [options] Override http request option.
475
483
  * @throws {RequiredError}
476
484
  */
477
- downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
485
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
478
486
  /**
479
487
  * Execute command synchronously inside workspace
480
488
  * @summary Execute command
@@ -493,7 +501,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
493
501
  * @param {*} [options] Override http request option.
494
502
  * @throws {RequiredError}
495
503
  */
496
- findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
504
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Match>>;
497
505
  /**
498
506
  * Get file info inside workspace
499
507
  * @summary Get file info
@@ -502,7 +510,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
502
510
  * @param {*} [options] Override http request option.
503
511
  * @throws {RequiredError}
504
512
  */
505
- getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
513
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<FileInfo>;
506
514
  /**
507
515
  *
508
516
  * @summary Get workspace project dir
@@ -510,7 +518,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
510
518
  * @param {*} [options] Override http request option.
511
519
  * @throws {RequiredError}
512
520
  */
513
- getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
521
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
514
522
  /**
515
523
  * Add files to git commit
516
524
  * @summary Add files
@@ -537,7 +545,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
537
545
  * @param {*} [options] Override http request option.
538
546
  * @throws {RequiredError}
539
547
  */
540
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
548
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitRequest>;
541
549
  /**
542
550
  * Create branch on git repository
543
551
  * @summary Create branch
@@ -555,7 +563,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
555
563
  * @param {*} [options] Override http request option.
556
564
  * @throws {RequiredError}
557
565
  */
558
- gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
566
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GitCommitInfo>>;
559
567
  /**
560
568
  * Get status from git repository
561
569
  * @summary Get git status
@@ -564,7 +572,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
564
572
  * @param {*} [options] Override http request option.
565
573
  * @throws {RequiredError}
566
574
  */
567
- gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
575
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<GitStatus>;
568
576
  /**
569
577
  * Get branch list from git repository
570
578
  * @summary Get branch list
@@ -573,7 +581,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
573
581
  * @param {*} [options] Override http request option.
574
582
  * @throws {RequiredError}
575
583
  */
576
- gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
584
+ gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<ListBranchResponse>;
577
585
  /**
578
586
  * Pull changes from remote
579
587
  * @summary Pull changes
@@ -600,7 +608,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
600
608
  * @param {*} [options] Override http request option.
601
609
  * @throws {RequiredError}
602
610
  */
603
- listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
611
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>>;
604
612
  /**
605
613
  * Move file inside workspace
606
614
  * @summary Move file
@@ -619,7 +627,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
619
627
  * @param {*} [options] Override http request option.
620
628
  * @throws {RequiredError}
621
629
  */
622
- replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
630
+ replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReplaceResult>>;
623
631
  /**
624
632
  * Search for files inside workspace
625
633
  * @summary Search files
@@ -629,7 +637,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
629
637
  * @param {*} [options] Override http request option.
630
638
  * @throws {RequiredError}
631
639
  */
632
- searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
640
+ searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<SearchFilesResponse>;
633
641
  /**
634
642
  * Set file owner/group/permissions inside workspace
635
643
  * @summary Set file permissions
@@ -690,7 +698,7 @@ export declare class ToolboxApi extends BaseAPI {
690
698
  * @throws {RequiredError}
691
699
  * @memberof ToolboxApi
692
700
  */
693
- downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
701
+ downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
694
702
  /**
695
703
  * Execute command synchronously inside workspace
696
704
  * @summary Execute command
@@ -711,7 +719,7 @@ export declare class ToolboxApi extends BaseAPI {
711
719
  * @throws {RequiredError}
712
720
  * @memberof ToolboxApi
713
721
  */
714
- findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
722
+ findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Match[], any>>;
715
723
  /**
716
724
  * Get file info inside workspace
717
725
  * @summary Get file info
@@ -721,7 +729,7 @@ export declare class ToolboxApi extends BaseAPI {
721
729
  * @throws {RequiredError}
722
730
  * @memberof ToolboxApi
723
731
  */
724
- getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
732
+ getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo, any>>;
725
733
  /**
726
734
  *
727
735
  * @summary Get workspace project dir
@@ -730,7 +738,7 @@ export declare class ToolboxApi extends BaseAPI {
730
738
  * @throws {RequiredError}
731
739
  * @memberof ToolboxApi
732
740
  */
733
- getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
741
+ getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
734
742
  /**
735
743
  * Add files to git commit
736
744
  * @summary Add files
@@ -760,7 +768,7 @@ export declare class ToolboxApi extends BaseAPI {
760
768
  * @throws {RequiredError}
761
769
  * @memberof ToolboxApi
762
770
  */
763
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
771
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitRequest, any>>;
764
772
  /**
765
773
  * Create branch on git repository
766
774
  * @summary Create branch
@@ -780,7 +788,7 @@ export declare class ToolboxApi extends BaseAPI {
780
788
  * @throws {RequiredError}
781
789
  * @memberof ToolboxApi
782
790
  */
783
- gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
791
+ gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitInfo[], any>>;
784
792
  /**
785
793
  * Get status from git repository
786
794
  * @summary Get git status
@@ -790,7 +798,7 @@ export declare class ToolboxApi extends BaseAPI {
790
798
  * @throws {RequiredError}
791
799
  * @memberof ToolboxApi
792
800
  */
793
- gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
801
+ gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitStatus, any>>;
794
802
  /**
795
803
  * Get branch list from git repository
796
804
  * @summary Get branch list
@@ -800,7 +808,7 @@ export declare class ToolboxApi extends BaseAPI {
800
808
  * @throws {RequiredError}
801
809
  * @memberof ToolboxApi
802
810
  */
803
- gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
811
+ gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBranchResponse, any>>;
804
812
  /**
805
813
  * Pull changes from remote
806
814
  * @summary Pull changes
@@ -830,7 +838,7 @@ export declare class ToolboxApi extends BaseAPI {
830
838
  * @throws {RequiredError}
831
839
  * @memberof ToolboxApi
832
840
  */
833
- listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
841
+ listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo[], any>>;
834
842
  /**
835
843
  * Move file inside workspace
836
844
  * @summary Move file
@@ -851,7 +859,7 @@ export declare class ToolboxApi extends BaseAPI {
851
859
  * @throws {RequiredError}
852
860
  * @memberof ToolboxApi
853
861
  */
854
- replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
862
+ replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReplaceResult[], any>>;
855
863
  /**
856
864
  * Search for files inside workspace
857
865
  * @summary Search files
@@ -862,7 +870,7 @@ export declare class ToolboxApi extends BaseAPI {
862
870
  * @throws {RequiredError}
863
871
  * @memberof ToolboxApi
864
872
  */
865
- searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
873
+ searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchFilesResponse, any>>;
866
874
  /**
867
875
  * Set file owner/group/permissions inside workspace
868
876
  * @summary Set file permissions
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FileInfo
16
+ */
17
+ export interface FileInfo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FileInfo
22
+ */
23
+ 'name': string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof FileInfo
28
+ */
29
+ 'isDir': boolean;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof FileInfo
34
+ */
35
+ 'size': number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FileInfo
40
+ */
41
+ 'modTime': string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof FileInfo
46
+ */
47
+ 'mode': string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof FileInfo
52
+ */
53
+ 'permissions': string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof FileInfo
58
+ */
59
+ 'owner': string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof FileInfo
64
+ */
65
+ 'group': string;
66
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FileStatus
16
+ */
17
+ export interface FileStatus {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof FileStatus
22
+ */
23
+ 'name': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof FileStatus
28
+ */
29
+ 'staging': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof FileStatus
34
+ */
35
+ 'worktree': string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof FileStatus
40
+ */
41
+ 'extra': string;
42
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GitCommitInfo
16
+ */
17
+ export interface GitCommitInfo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GitCommitInfo
22
+ */
23
+ 'hash': string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GitCommitInfo
28
+ */
29
+ 'message': string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GitCommitInfo
34
+ */
35
+ 'author': string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GitCommitInfo
40
+ */
41
+ 'email': string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GitCommitInfo
46
+ */
47
+ 'timestamp': string;
48
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -20,23 +20,5 @@ export interface GitCommitRequest {
20
20
  * @type {string}
21
21
  * @memberof GitCommitRequest
22
22
  */
23
- 'path': string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof GitCommitRequest
28
- */
29
- 'message': string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof GitCommitRequest
34
- */
35
- 'author': string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof GitCommitRequest
40
- */
41
- 'email': string;
23
+ 'hash': string;
42
24
  }
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FileStatus } from './file-status';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GitStatus
17
+ */
18
+ export interface GitStatus {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GitStatus
23
+ */
24
+ 'currentBranch': string;
25
+ /**
26
+ *
27
+ * @type {Array<FileStatus>}
28
+ * @memberof GitStatus
29
+ */
30
+ 'FileStatus[]': Array<FileStatus>;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GitStatus
35
+ */
36
+ 'ahead'?: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GitStatus
41
+ */
42
+ 'behind'?: number;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof GitStatus
47
+ */
48
+ 'branchPublished'?: boolean;
49
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -7,12 +7,21 @@ export * from './create-user';
7
7
  export * from './create-workspace';
8
8
  export * from './execute-request';
9
9
  export * from './execute-response';
10
+ export * from './file-info';
11
+ export * from './file-status';
10
12
  export * from './git-add-request';
11
13
  export * from './git-branch-request';
12
14
  export * from './git-clone-request';
15
+ export * from './git-commit-info';
13
16
  export * from './git-commit-request';
14
17
  export * from './git-repo-request';
18
+ export * from './git-status';
19
+ export * from './list-branch-response';
20
+ export * from './match';
21
+ export * from './project-dir-response';
15
22
  export * from './replace-request';
23
+ export * from './replace-result';
24
+ export * from './search-files-response';
16
25
  export * from './update-docker-registry';
17
26
  export * from './workspace';
18
27
  export * from './workspace-info';
@@ -7,12 +7,21 @@ export * from './create-user';
7
7
  export * from './create-workspace';
8
8
  export * from './execute-request';
9
9
  export * from './execute-response';
10
+ export * from './file-info';
11
+ export * from './file-status';
10
12
  export * from './git-add-request';
11
13
  export * from './git-branch-request';
12
14
  export * from './git-clone-request';
15
+ export * from './git-commit-info';
13
16
  export * from './git-commit-request';
14
17
  export * from './git-repo-request';
18
+ export * from './git-status';
19
+ export * from './list-branch-response';
20
+ export * from './match';
21
+ export * from './project-dir-response';
15
22
  export * from './replace-request';
23
+ export * from './replace-result';
24
+ export * from './search-files-response';
16
25
  export * from './update-docker-registry';
17
26
  export * from './workspace';
18
27
  export * from './workspace-info';
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Daytona Workspaces
3
+ * Daytona Workspaces API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListBranchResponse
16
+ */
17
+ export interface ListBranchResponse {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof ListBranchResponse
22
+ */
23
+ 'branches': Array<string>;
24
+ }