@daytonaio/api-client 0.6.1 → 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.
@@ -31,6 +31,7 @@ models/git-branch-request.ts
31
31
  models/git-clone-request.ts
32
32
  models/git-commit-info.ts
33
33
  models/git-commit-request.ts
34
+ models/git-commit-response.ts
34
35
  models/git-repo-request.ts
35
36
  models/git-status.ts
36
37
  models/index.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @daytonaio/api-client@0.6.1
1
+ ## @daytonaio/api-client@0.6.2
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @daytonaio/api-client@0.6.1 --save
39
+ npm install @daytonaio/api-client@0.6.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -38,6 +38,8 @@ import type { GitCommitInfo } from '../models';
38
38
  // @ts-ignore
39
39
  import type { GitCommitRequest } from '../models';
40
40
  // @ts-ignore
41
+ import type { GitCommitResponse } from '../models';
42
+ // @ts-ignore
41
43
  import type { GitRepoRequest } from '../models';
42
44
  // @ts-ignore
43
45
  import type { GitStatus } from '../models';
@@ -1235,7 +1237,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1235
1237
  * @param {*} [options] Override http request option.
1236
1238
  * @throws {RequiredError}
1237
1239
  */
1238
- async gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitRequest>> {
1240
+ async gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>> {
1239
1241
  const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
1240
1242
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1241
1243
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
@@ -1533,7 +1535,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
1533
1535
  * @param {*} [options] Override http request option.
1534
1536
  * @throws {RequiredError}
1535
1537
  */
1536
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitRequest> {
1538
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitResponse> {
1537
1539
  return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
1538
1540
  },
1539
1541
  /**
@@ -20,6 +20,7 @@ import type { GitBranchRequest } from '../models';
20
20
  import type { GitCloneRequest } from '../models';
21
21
  import type { GitCommitInfo } from '../models';
22
22
  import type { GitCommitRequest } from '../models';
23
+ import type { GitCommitResponse } from '../models';
23
24
  import type { GitRepoRequest } from '../models';
24
25
  import type { GitStatus } from '../models';
25
26
  import type { ListBranchResponse } from '../models';
@@ -334,7 +335,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
334
335
  * @param {*} [options] Override http request option.
335
336
  * @throws {RequiredError}
336
337
  */
337
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitRequest>>;
338
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>>;
338
339
  /**
339
340
  * Create branch on git repository
340
341
  * @summary Create branch
@@ -545,7 +546,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
545
546
  * @param {*} [options] Override http request option.
546
547
  * @throws {RequiredError}
547
548
  */
548
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitRequest>;
549
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitResponse>;
549
550
  /**
550
551
  * Create branch on git repository
551
552
  * @summary Create branch
@@ -768,7 +769,7 @@ export declare class ToolboxApi extends BaseAPI {
768
769
  * @throws {RequiredError}
769
770
  * @memberof ToolboxApi
770
771
  */
771
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitRequest, any>>;
772
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitResponse, any>>;
772
773
  /**
773
774
  * Create branch on git repository
774
775
  * @summary Create branch
@@ -20,6 +20,7 @@ import type { GitBranchRequest } from '../models';
20
20
  import type { GitCloneRequest } from '../models';
21
21
  import type { GitCommitInfo } from '../models';
22
22
  import type { GitCommitRequest } from '../models';
23
+ import type { GitCommitResponse } from '../models';
23
24
  import type { GitRepoRequest } from '../models';
24
25
  import type { GitStatus } from '../models';
25
26
  import type { ListBranchResponse } from '../models';
@@ -334,7 +335,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
334
335
  * @param {*} [options] Override http request option.
335
336
  * @throws {RequiredError}
336
337
  */
337
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitRequest>>;
338
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>>;
338
339
  /**
339
340
  * Create branch on git repository
340
341
  * @summary Create branch
@@ -545,7 +546,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
545
546
  * @param {*} [options] Override http request option.
546
547
  * @throws {RequiredError}
547
548
  */
548
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitRequest>;
549
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitResponse>;
549
550
  /**
550
551
  * Create branch on git repository
551
552
  * @summary Create branch
@@ -768,7 +769,7 @@ export declare class ToolboxApi extends BaseAPI {
768
769
  * @throws {RequiredError}
769
770
  * @memberof ToolboxApi
770
771
  */
771
- gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitRequest, any>>;
772
+ gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitResponse, any>>;
772
773
  /**
773
774
  * Create branch on git repository
774
775
  * @summary Create branch
@@ -20,5 +20,23 @@ export interface GitCommitRequest {
20
20
  * @type {string}
21
21
  * @memberof GitCommitRequest
22
22
  */
23
- 'hash': string;
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;
24
42
  }
@@ -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 {};
@@ -14,6 +14,7 @@ export * from './git-branch-request';
14
14
  export * from './git-clone-request';
15
15
  export * from './git-commit-info';
16
16
  export * from './git-commit-request';
17
+ export * from './git-commit-response';
17
18
  export * from './git-repo-request';
18
19
  export * from './git-status';
19
20
  export * from './list-branch-response';
@@ -14,6 +14,7 @@ export * from './git-branch-request';
14
14
  export * from './git-clone-request';
15
15
  export * from './git-commit-info';
16
16
  export * from './git-commit-request';
17
+ export * from './git-commit-response';
17
18
  export * from './git-repo-request';
18
19
  export * from './git-status';
19
20
  export * from './list-branch-response';
@@ -20,5 +20,23 @@ export interface GitCommitRequest {
20
20
  * @type {string}
21
21
  * @memberof GitCommitRequest
22
22
  */
23
- 'hash': string;
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;
24
42
  }
@@ -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,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,7 @@ export * from './git-branch-request';
14
14
  export * from './git-clone-request';
15
15
  export * from './git-commit-info';
16
16
  export * from './git-commit-request';
17
+ export * from './git-commit-response';
17
18
  export * from './git-repo-request';
18
19
  export * from './git-status';
19
20
  export * from './list-branch-response';
@@ -30,6 +30,7 @@ __exportStar(require("./git-branch-request"), exports);
30
30
  __exportStar(require("./git-clone-request"), exports);
31
31
  __exportStar(require("./git-commit-info"), exports);
32
32
  __exportStar(require("./git-commit-request"), exports);
33
+ __exportStar(require("./git-commit-response"), exports);
33
34
  __exportStar(require("./git-repo-request"), exports);
34
35
  __exportStar(require("./git-status"), exports);
35
36
  __exportStar(require("./list-branch-response"), exports);
@@ -25,6 +25,24 @@ export interface GitCommitRequest {
25
25
  * @type {string}
26
26
  * @memberof GitCommitRequest
27
27
  */
28
- 'hash': string;
28
+ 'path': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof GitCommitRequest
33
+ */
34
+ 'message': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof GitCommitRequest
39
+ */
40
+ 'author': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof GitCommitRequest
45
+ */
46
+ 'email': string;
29
47
  }
30
48
 
@@ -0,0 +1,30 @@
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
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GitCommitResponse
21
+ */
22
+ export interface GitCommitResponse {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof GitCommitResponse
27
+ */
28
+ 'hash': string;
29
+ }
30
+
package/models/index.ts CHANGED
@@ -14,6 +14,7 @@ export * from './git-branch-request';
14
14
  export * from './git-clone-request';
15
15
  export * from './git-commit-info';
16
16
  export * from './git-commit-request';
17
+ export * from './git-commit-response';
17
18
  export * from './git-repo-request';
18
19
  export * from './git-status';
19
20
  export * from './list-branch-response';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {