@daytonaio/api-client 0.6.0 → 0.6.2
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.
- package/.openapi-generator/FILES +10 -0
- package/README.md +2 -2
- package/api/toolbox-api.ts +40 -22
- package/dist/api/toolbox-api.d.ts +42 -33
- package/dist/esm/api/toolbox-api.d.ts +42 -33
- package/dist/esm/models/file-info.d.ts +66 -0
- package/dist/esm/models/file-info.js +14 -0
- package/dist/esm/models/file-status.d.ts +42 -0
- package/dist/esm/models/file-status.js +14 -0
- package/dist/esm/models/git-commit-info.d.ts +48 -0
- package/dist/esm/models/git-commit-info.js +14 -0
- package/dist/esm/models/git-commit-response.d.ts +24 -0
- package/dist/esm/models/git-commit-response.js +14 -0
- package/dist/esm/models/git-status.d.ts +49 -0
- package/dist/esm/models/git-status.js +14 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/esm/models/list-branch-response.d.ts +24 -0
- package/dist/esm/models/list-branch-response.js +14 -0
- package/dist/esm/models/match.d.ts +36 -0
- package/dist/esm/models/match.js +14 -0
- package/dist/esm/models/project-dir-response.d.ts +24 -0
- package/dist/esm/models/project-dir-response.js +14 -0
- package/dist/esm/models/replace-result.d.ts +36 -0
- package/dist/esm/models/replace-result.js +14 -0
- package/dist/esm/models/search-files-response.d.ts +24 -0
- package/dist/esm/models/search-files-response.js +14 -0
- package/dist/models/file-info.d.ts +66 -0
- package/dist/models/file-info.js +15 -0
- package/dist/models/file-status.d.ts +42 -0
- package/dist/models/file-status.js +15 -0
- package/dist/models/git-commit-info.d.ts +48 -0
- package/dist/models/git-commit-info.js +15 -0
- package/dist/models/git-commit-response.d.ts +24 -0
- package/dist/models/git-commit-response.js +15 -0
- package/dist/models/git-status.d.ts +49 -0
- package/dist/models/git-status.js +15 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/list-branch-response.d.ts +24 -0
- package/dist/models/list-branch-response.js +15 -0
- package/dist/models/match.d.ts +36 -0
- package/dist/models/match.js +15 -0
- package/dist/models/project-dir-response.d.ts +24 -0
- package/dist/models/project-dir-response.js +15 -0
- package/dist/models/replace-result.d.ts +36 -0
- package/dist/models/replace-result.js +15 -0
- package/dist/models/search-files-response.d.ts +24 -0
- package/dist/models/search-files-response.js +15 -0
- package/models/file-info.ts +72 -0
- package/models/file-status.ts +48 -0
- package/models/git-commit-info.ts +54 -0
- package/models/git-commit-response.ts +30 -0
- package/models/git-status.ts +57 -0
- package/models/index.ts +10 -0
- package/models/list-branch-response.ts +30 -0
- package/models/match.ts +42 -0
- package/models/project-dir-response.ts +30 -0
- package/models/replace-result.ts +42 -0
- package/models/search-files-response.ts +30 -0
- package/package.json +1 -1
|
@@ -14,12 +14,21 @@ 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';
|
|
23
|
+
import type { GitCommitResponse } from '../models';
|
|
21
24
|
import type { GitRepoRequest } from '../models';
|
|
25
|
+
import type { GitStatus } from '../models';
|
|
26
|
+
import type { ListBranchResponse } from '../models';
|
|
27
|
+
import type { Match } from '../models';
|
|
28
|
+
import type { ProjectDirResponse } from '../models';
|
|
22
29
|
import type { ReplaceRequest } from '../models';
|
|
30
|
+
import type { ReplaceResult } from '../models';
|
|
31
|
+
import type { SearchFilesResponse } from '../models';
|
|
23
32
|
/**
|
|
24
33
|
* ToolboxApi - axios parameter creator
|
|
25
34
|
* @export
|
|
@@ -263,7 +272,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
263
272
|
* @param {*} [options] Override http request option.
|
|
264
273
|
* @throws {RequiredError}
|
|
265
274
|
*/
|
|
266
|
-
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
275
|
+
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
|
|
267
276
|
/**
|
|
268
277
|
* Execute command synchronously inside workspace
|
|
269
278
|
* @summary Execute command
|
|
@@ -282,7 +291,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
282
291
|
* @param {*} [options] Override http request option.
|
|
283
292
|
* @throws {RequiredError}
|
|
284
293
|
*/
|
|
285
|
-
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
294
|
+
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Match>>>;
|
|
286
295
|
/**
|
|
287
296
|
* Get file info inside workspace
|
|
288
297
|
* @summary Get file info
|
|
@@ -291,7 +300,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
291
300
|
* @param {*} [options] Override http request option.
|
|
292
301
|
* @throws {RequiredError}
|
|
293
302
|
*/
|
|
294
|
-
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
303
|
+
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FileInfo>>;
|
|
295
304
|
/**
|
|
296
305
|
*
|
|
297
306
|
* @summary Get workspace project dir
|
|
@@ -299,7 +308,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
299
308
|
* @param {*} [options] Override http request option.
|
|
300
309
|
* @throws {RequiredError}
|
|
301
310
|
*/
|
|
302
|
-
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
311
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectDirResponse>>;
|
|
303
312
|
/**
|
|
304
313
|
* Add files to git commit
|
|
305
314
|
* @summary Add files
|
|
@@ -326,7 +335,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
326
335
|
* @param {*} [options] Override http request option.
|
|
327
336
|
* @throws {RequiredError}
|
|
328
337
|
*/
|
|
329
|
-
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
338
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>>;
|
|
330
339
|
/**
|
|
331
340
|
* Create branch on git repository
|
|
332
341
|
* @summary Create branch
|
|
@@ -344,7 +353,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
344
353
|
* @param {*} [options] Override http request option.
|
|
345
354
|
* @throws {RequiredError}
|
|
346
355
|
*/
|
|
347
|
-
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
356
|
+
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GitCommitInfo>>>;
|
|
348
357
|
/**
|
|
349
358
|
* Get status from git repository
|
|
350
359
|
* @summary Get git status
|
|
@@ -353,7 +362,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
353
362
|
* @param {*} [options] Override http request option.
|
|
354
363
|
* @throws {RequiredError}
|
|
355
364
|
*/
|
|
356
|
-
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
365
|
+
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitStatus>>;
|
|
357
366
|
/**
|
|
358
367
|
* Get branch list from git repository
|
|
359
368
|
* @summary Get branch list
|
|
@@ -362,7 +371,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
362
371
|
* @param {*} [options] Override http request option.
|
|
363
372
|
* @throws {RequiredError}
|
|
364
373
|
*/
|
|
365
|
-
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
374
|
+
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBranchResponse>>;
|
|
366
375
|
/**
|
|
367
376
|
* Pull changes from remote
|
|
368
377
|
* @summary Pull changes
|
|
@@ -389,7 +398,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
389
398
|
* @param {*} [options] Override http request option.
|
|
390
399
|
* @throws {RequiredError}
|
|
391
400
|
*/
|
|
392
|
-
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
401
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FileInfo>>>;
|
|
393
402
|
/**
|
|
394
403
|
* Move file inside workspace
|
|
395
404
|
* @summary Move file
|
|
@@ -408,7 +417,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
408
417
|
* @param {*} [options] Override http request option.
|
|
409
418
|
* @throws {RequiredError}
|
|
410
419
|
*/
|
|
411
|
-
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
420
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReplaceResult>>>;
|
|
412
421
|
/**
|
|
413
422
|
* Search for files inside workspace
|
|
414
423
|
* @summary Search files
|
|
@@ -418,7 +427,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
|
|
|
418
427
|
* @param {*} [options] Override http request option.
|
|
419
428
|
* @throws {RequiredError}
|
|
420
429
|
*/
|
|
421
|
-
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
430
|
+
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SearchFilesResponse>>;
|
|
422
431
|
/**
|
|
423
432
|
* Set file owner/group/permissions inside workspace
|
|
424
433
|
* @summary Set file permissions
|
|
@@ -474,7 +483,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
474
483
|
* @param {*} [options] Override http request option.
|
|
475
484
|
* @throws {RequiredError}
|
|
476
485
|
*/
|
|
477
|
-
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
486
|
+
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
|
|
478
487
|
/**
|
|
479
488
|
* Execute command synchronously inside workspace
|
|
480
489
|
* @summary Execute command
|
|
@@ -493,7 +502,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
493
502
|
* @param {*} [options] Override http request option.
|
|
494
503
|
* @throws {RequiredError}
|
|
495
504
|
*/
|
|
496
|
-
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
505
|
+
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Match>>;
|
|
497
506
|
/**
|
|
498
507
|
* Get file info inside workspace
|
|
499
508
|
* @summary Get file info
|
|
@@ -502,7 +511,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
502
511
|
* @param {*} [options] Override http request option.
|
|
503
512
|
* @throws {RequiredError}
|
|
504
513
|
*/
|
|
505
|
-
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
514
|
+
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<FileInfo>;
|
|
506
515
|
/**
|
|
507
516
|
*
|
|
508
517
|
* @summary Get workspace project dir
|
|
@@ -510,7 +519,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
510
519
|
* @param {*} [options] Override http request option.
|
|
511
520
|
* @throws {RequiredError}
|
|
512
521
|
*/
|
|
513
|
-
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
522
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectDirResponse>;
|
|
514
523
|
/**
|
|
515
524
|
* Add files to git commit
|
|
516
525
|
* @summary Add files
|
|
@@ -537,7 +546,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
537
546
|
* @param {*} [options] Override http request option.
|
|
538
547
|
* @throws {RequiredError}
|
|
539
548
|
*/
|
|
540
|
-
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
549
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitResponse>;
|
|
541
550
|
/**
|
|
542
551
|
* Create branch on git repository
|
|
543
552
|
* @summary Create branch
|
|
@@ -555,7 +564,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
555
564
|
* @param {*} [options] Override http request option.
|
|
556
565
|
* @throws {RequiredError}
|
|
557
566
|
*/
|
|
558
|
-
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
567
|
+
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GitCommitInfo>>;
|
|
559
568
|
/**
|
|
560
569
|
* Get status from git repository
|
|
561
570
|
* @summary Get git status
|
|
@@ -564,7 +573,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
564
573
|
* @param {*} [options] Override http request option.
|
|
565
574
|
* @throws {RequiredError}
|
|
566
575
|
*/
|
|
567
|
-
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
576
|
+
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<GitStatus>;
|
|
568
577
|
/**
|
|
569
578
|
* Get branch list from git repository
|
|
570
579
|
* @summary Get branch list
|
|
@@ -573,7 +582,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
573
582
|
* @param {*} [options] Override http request option.
|
|
574
583
|
* @throws {RequiredError}
|
|
575
584
|
*/
|
|
576
|
-
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
585
|
+
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): AxiosPromise<ListBranchResponse>;
|
|
577
586
|
/**
|
|
578
587
|
* Pull changes from remote
|
|
579
588
|
* @summary Pull changes
|
|
@@ -600,7 +609,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
600
609
|
* @param {*} [options] Override http request option.
|
|
601
610
|
* @throws {RequiredError}
|
|
602
611
|
*/
|
|
603
|
-
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
612
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<FileInfo>>;
|
|
604
613
|
/**
|
|
605
614
|
* Move file inside workspace
|
|
606
615
|
* @summary Move file
|
|
@@ -619,7 +628,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
619
628
|
* @param {*} [options] Override http request option.
|
|
620
629
|
* @throws {RequiredError}
|
|
621
630
|
*/
|
|
622
|
-
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
631
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReplaceResult>>;
|
|
623
632
|
/**
|
|
624
633
|
* Search for files inside workspace
|
|
625
634
|
* @summary Search files
|
|
@@ -629,7 +638,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
|
|
|
629
638
|
* @param {*} [options] Override http request option.
|
|
630
639
|
* @throws {RequiredError}
|
|
631
640
|
*/
|
|
632
|
-
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
641
|
+
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): AxiosPromise<SearchFilesResponse>;
|
|
633
642
|
/**
|
|
634
643
|
* Set file owner/group/permissions inside workspace
|
|
635
644
|
* @summary Set file permissions
|
|
@@ -690,7 +699,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
690
699
|
* @throws {RequiredError}
|
|
691
700
|
* @memberof ToolboxApi
|
|
692
701
|
*/
|
|
693
|
-
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
702
|
+
downloadFile(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any>>;
|
|
694
703
|
/**
|
|
695
704
|
* Execute command synchronously inside workspace
|
|
696
705
|
* @summary Execute command
|
|
@@ -711,7 +720,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
711
720
|
* @throws {RequiredError}
|
|
712
721
|
* @memberof ToolboxApi
|
|
713
722
|
*/
|
|
714
|
-
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
723
|
+
findInFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Match[], any>>;
|
|
715
724
|
/**
|
|
716
725
|
* Get file info inside workspace
|
|
717
726
|
* @summary Get file info
|
|
@@ -721,7 +730,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
721
730
|
* @throws {RequiredError}
|
|
722
731
|
* @memberof ToolboxApi
|
|
723
732
|
*/
|
|
724
|
-
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
733
|
+
getFileInfo(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo, any>>;
|
|
725
734
|
/**
|
|
726
735
|
*
|
|
727
736
|
* @summary Get workspace project dir
|
|
@@ -730,7 +739,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
730
739
|
* @throws {RequiredError}
|
|
731
740
|
* @memberof ToolboxApi
|
|
732
741
|
*/
|
|
733
|
-
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
742
|
+
getProjectDir(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectDirResponse, any>>;
|
|
734
743
|
/**
|
|
735
744
|
* Add files to git commit
|
|
736
745
|
* @summary Add files
|
|
@@ -760,7 +769,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
760
769
|
* @throws {RequiredError}
|
|
761
770
|
* @memberof ToolboxApi
|
|
762
771
|
*/
|
|
763
|
-
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
772
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitResponse, any>>;
|
|
764
773
|
/**
|
|
765
774
|
* Create branch on git repository
|
|
766
775
|
* @summary Create branch
|
|
@@ -780,7 +789,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
780
789
|
* @throws {RequiredError}
|
|
781
790
|
* @memberof ToolboxApi
|
|
782
791
|
*/
|
|
783
|
-
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
792
|
+
gitGetHistory(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitInfo[], any>>;
|
|
784
793
|
/**
|
|
785
794
|
* Get status from git repository
|
|
786
795
|
* @summary Get git status
|
|
@@ -790,7 +799,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
790
799
|
* @throws {RequiredError}
|
|
791
800
|
* @memberof ToolboxApi
|
|
792
801
|
*/
|
|
793
|
-
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
802
|
+
gitGetStatus(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitStatus, any>>;
|
|
794
803
|
/**
|
|
795
804
|
* Get branch list from git repository
|
|
796
805
|
* @summary Get branch list
|
|
@@ -800,7 +809,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
800
809
|
* @throws {RequiredError}
|
|
801
810
|
* @memberof ToolboxApi
|
|
802
811
|
*/
|
|
803
|
-
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
812
|
+
gitListBranches(workspaceId: string, path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBranchResponse, any>>;
|
|
804
813
|
/**
|
|
805
814
|
* Pull changes from remote
|
|
806
815
|
* @summary Pull changes
|
|
@@ -830,7 +839,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
830
839
|
* @throws {RequiredError}
|
|
831
840
|
* @memberof ToolboxApi
|
|
832
841
|
*/
|
|
833
|
-
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
842
|
+
listFiles(workspaceId: string, path?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FileInfo[], any>>;
|
|
834
843
|
/**
|
|
835
844
|
* Move file inside workspace
|
|
836
845
|
* @summary Move file
|
|
@@ -851,7 +860,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
851
860
|
* @throws {RequiredError}
|
|
852
861
|
* @memberof ToolboxApi
|
|
853
862
|
*/
|
|
854
|
-
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
863
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReplaceResult[], any>>;
|
|
855
864
|
/**
|
|
856
865
|
* Search for files inside workspace
|
|
857
866
|
* @summary Search files
|
|
@@ -862,7 +871,7 @@ export declare class ToolboxApi extends BaseAPI {
|
|
|
862
871
|
* @throws {RequiredError}
|
|
863
872
|
* @memberof ToolboxApi
|
|
864
873
|
*/
|
|
865
|
-
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
874
|
+
searchFiles(workspaceId: string, path: string, pattern: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SearchFilesResponse, any>>;
|
|
866
875
|
/**
|
|
867
876
|
* Set file owner/group/permissions inside workspace
|
|
868
877
|
* @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 {};
|
|
@@ -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 GitCommitResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GitCommitResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GitCommitResponse
|
|
22
|
+
*/
|
|
23
|
+
'hash': string;
|
|
24
|
+
}
|
|
@@ -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,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,22 @@ 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';
|
|
17
|
+
export * from './git-commit-response';
|
|
14
18
|
export * from './git-repo-request';
|
|
19
|
+
export * from './git-status';
|
|
20
|
+
export * from './list-branch-response';
|
|
21
|
+
export * from './match';
|
|
22
|
+
export * from './project-dir-response';
|
|
15
23
|
export * from './replace-request';
|
|
24
|
+
export * from './replace-result';
|
|
25
|
+
export * from './search-files-response';
|
|
16
26
|
export * from './update-docker-registry';
|
|
17
27
|
export * from './workspace';
|
|
18
28
|
export * from './workspace-info';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -7,12 +7,22 @@ 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';
|
|
17
|
+
export * from './git-commit-response';
|
|
14
18
|
export * from './git-repo-request';
|
|
19
|
+
export * from './git-status';
|
|
20
|
+
export * from './list-branch-response';
|
|
21
|
+
export * from './match';
|
|
22
|
+
export * from './project-dir-response';
|
|
15
23
|
export * from './replace-request';
|
|
24
|
+
export * from './replace-result';
|
|
25
|
+
export * from './search-files-response';
|
|
16
26
|
export * from './update-docker-registry';
|
|
17
27
|
export * from './workspace';
|
|
18
28
|
export * from './workspace-info';
|