@daytonaio/api-client 0.9.0 → 0.9.8

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @daytonaio/api-client@0.9.0
1
+ ## @daytonaio/api-client@0.9.8
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.9.0 --save
39
+ npm install @daytonaio/api-client@0.9.8 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -1693,7 +1693,7 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
1693
1693
  * @param {*} [options] Override http request option.
1694
1694
  * @throws {RequiredError}
1695
1695
  */
1696
- async createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>> {
1696
+ async createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1697
1697
  const localVarAxiosArgs = await localVarAxiosParamCreator.createSession(workspaceId, createSessionRequest, options);
1698
1698
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1699
1699
  const localVarOperationServerBasePath = operationServerMap['ToolboxApi.createSession']?.[localVarOperationServerIndex]?.url;
@@ -2188,7 +2188,7 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
2188
2188
  * @param {*} [options] Override http request option.
2189
2189
  * @throws {RequiredError}
2190
2190
  */
2191
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session> {
2191
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2192
2192
  return localVarFp.createSession(workspaceId, createSessionRequest, options).then((request) => request(axios, basePath));
2193
2193
  },
2194
2194
  /**
@@ -385,7 +385,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
385
385
  * @param {*} [options] Override http request option.
386
386
  * @throws {RequiredError}
387
387
  */
388
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
388
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
389
389
  /**
390
390
  * Delete file inside workspace
391
391
  * @summary Delete file
@@ -709,7 +709,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
709
709
  * @param {*} [options] Override http request option.
710
710
  * @throws {RequiredError}
711
711
  */
712
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
712
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
713
713
  /**
714
714
  * Delete file inside workspace
715
715
  * @summary Delete file
@@ -1037,7 +1037,7 @@ export declare class ToolboxApi extends BaseAPI {
1037
1037
  * @throws {RequiredError}
1038
1038
  * @memberof ToolboxApi
1039
1039
  */
1040
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
1040
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1041
1041
  /**
1042
1042
  * Delete file inside workspace
1043
1043
  * @summary Delete file
@@ -385,7 +385,7 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
385
385
  * @param {*} [options] Override http request option.
386
386
  * @throws {RequiredError}
387
387
  */
388
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Session>>;
388
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
389
389
  /**
390
390
  * Delete file inside workspace
391
391
  * @summary Delete file
@@ -709,7 +709,7 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
709
709
  * @param {*} [options] Override http request option.
710
710
  * @throws {RequiredError}
711
711
  */
712
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Session>;
712
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
713
713
  /**
714
714
  * Delete file inside workspace
715
715
  * @summary Delete file
@@ -1037,7 +1037,7 @@ export declare class ToolboxApi extends BaseAPI {
1037
1037
  * @throws {RequiredError}
1038
1038
  * @memberof ToolboxApi
1039
1039
  */
1040
- createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Session, any>>;
1040
+ createSession(workspaceId: string, createSessionRequest: CreateSessionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1041
1041
  /**
1042
1042
  * Delete file inside workspace
1043
1043
  * @summary Delete file
@@ -21,6 +21,12 @@ export interface ExecuteRequest {
21
21
  * @memberof ExecuteRequest
22
22
  */
23
23
  'command': string;
24
+ /**
25
+ * Current working directory
26
+ * @type {string}
27
+ * @memberof ExecuteRequest
28
+ */
29
+ 'cwd'?: string;
24
30
  /**
25
31
  * Timeout in seconds, defaults to 10 seconds
26
32
  * @type {number}
@@ -16,11 +16,11 @@
16
16
  */
17
17
  export interface ExecuteResponse {
18
18
  /**
19
- * Response code
19
+ * Exit code
20
20
  * @type {number}
21
21
  * @memberof ExecuteResponse
22
22
  */
23
- 'code': number;
23
+ 'exitCode': number;
24
24
  /**
25
25
  * Command output
26
26
  * @type {string}
@@ -27,5 +27,5 @@ export interface Session {
27
27
  * @type {Array<Command>}
28
28
  * @memberof Session
29
29
  */
30
- 'commands': Array<Command>;
30
+ 'commands': Array<Command> | null;
31
31
  }
@@ -79,47 +79,47 @@ export interface Workspace {
79
79
  * @type {number}
80
80
  * @memberof Workspace
81
81
  */
82
- 'cpu': number;
82
+ 'cpu'?: number;
83
83
  /**
84
84
  * The GPU quota for the workspace
85
85
  * @type {number}
86
86
  * @memberof Workspace
87
87
  */
88
- 'gpu': number;
88
+ 'gpu'?: number;
89
89
  /**
90
90
  * The memory quota for the workspace
91
91
  * @type {number}
92
92
  * @memberof Workspace
93
93
  */
94
- 'memory': number;
94
+ 'memory'?: number;
95
95
  /**
96
96
  * The disk quota for the workspace
97
97
  * @type {number}
98
98
  * @memberof Workspace
99
99
  */
100
- 'disk': number;
100
+ 'disk'?: number;
101
101
  /**
102
102
  * The state of the workspace
103
103
  * @type {string}
104
104
  * @memberof Workspace
105
105
  */
106
- 'state': string;
106
+ 'state'?: string;
107
107
  /**
108
108
  * The error reason of the workspace
109
109
  * @type {string}
110
110
  * @memberof Workspace
111
111
  */
112
- 'errorReason': string;
112
+ 'errorReason'?: string;
113
113
  /**
114
114
  * The state of the snapshot
115
115
  * @type {string}
116
116
  * @memberof Workspace
117
117
  */
118
- 'snapshotState': string;
118
+ 'snapshotState'?: string;
119
119
  /**
120
120
  * The creation timestamp of the last snapshot
121
121
  * @type {string}
122
122
  * @memberof Workspace
123
123
  */
124
- 'snapshotCreatedAt': string;
124
+ 'snapshotCreatedAt'?: string;
125
125
  }
@@ -21,6 +21,12 @@ export interface ExecuteRequest {
21
21
  * @memberof ExecuteRequest
22
22
  */
23
23
  'command': string;
24
+ /**
25
+ * Current working directory
26
+ * @type {string}
27
+ * @memberof ExecuteRequest
28
+ */
29
+ 'cwd'?: string;
24
30
  /**
25
31
  * Timeout in seconds, defaults to 10 seconds
26
32
  * @type {number}
@@ -16,11 +16,11 @@
16
16
  */
17
17
  export interface ExecuteResponse {
18
18
  /**
19
- * Response code
19
+ * Exit code
20
20
  * @type {number}
21
21
  * @memberof ExecuteResponse
22
22
  */
23
- 'code': number;
23
+ 'exitCode': number;
24
24
  /**
25
25
  * Command output
26
26
  * @type {string}
@@ -27,5 +27,5 @@ export interface Session {
27
27
  * @type {Array<Command>}
28
28
  * @memberof Session
29
29
  */
30
- 'commands': Array<Command>;
30
+ 'commands': Array<Command> | null;
31
31
  }
@@ -79,47 +79,47 @@ export interface Workspace {
79
79
  * @type {number}
80
80
  * @memberof Workspace
81
81
  */
82
- 'cpu': number;
82
+ 'cpu'?: number;
83
83
  /**
84
84
  * The GPU quota for the workspace
85
85
  * @type {number}
86
86
  * @memberof Workspace
87
87
  */
88
- 'gpu': number;
88
+ 'gpu'?: number;
89
89
  /**
90
90
  * The memory quota for the workspace
91
91
  * @type {number}
92
92
  * @memberof Workspace
93
93
  */
94
- 'memory': number;
94
+ 'memory'?: number;
95
95
  /**
96
96
  * The disk quota for the workspace
97
97
  * @type {number}
98
98
  * @memberof Workspace
99
99
  */
100
- 'disk': number;
100
+ 'disk'?: number;
101
101
  /**
102
102
  * The state of the workspace
103
103
  * @type {string}
104
104
  * @memberof Workspace
105
105
  */
106
- 'state': string;
106
+ 'state'?: string;
107
107
  /**
108
108
  * The error reason of the workspace
109
109
  * @type {string}
110
110
  * @memberof Workspace
111
111
  */
112
- 'errorReason': string;
112
+ 'errorReason'?: string;
113
113
  /**
114
114
  * The state of the snapshot
115
115
  * @type {string}
116
116
  * @memberof Workspace
117
117
  */
118
- 'snapshotState': string;
118
+ 'snapshotState'?: string;
119
119
  /**
120
120
  * The creation timestamp of the last snapshot
121
121
  * @type {string}
122
122
  * @memberof Workspace
123
123
  */
124
- 'snapshotCreatedAt': string;
124
+ 'snapshotCreatedAt'?: string;
125
125
  }
@@ -26,6 +26,12 @@ export interface ExecuteRequest {
26
26
  * @memberof ExecuteRequest
27
27
  */
28
28
  'command': string;
29
+ /**
30
+ * Current working directory
31
+ * @type {string}
32
+ * @memberof ExecuteRequest
33
+ */
34
+ 'cwd'?: string;
29
35
  /**
30
36
  * Timeout in seconds, defaults to 10 seconds
31
37
  * @type {number}
@@ -21,11 +21,11 @@
21
21
  */
22
22
  export interface ExecuteResponse {
23
23
  /**
24
- * Response code
24
+ * Exit code
25
25
  * @type {number}
26
26
  * @memberof ExecuteResponse
27
27
  */
28
- 'code': number;
28
+ 'exitCode': number;
29
29
  /**
30
30
  * Command output
31
31
  * @type {string}
package/models/session.ts CHANGED
@@ -34,6 +34,6 @@ export interface Session {
34
34
  * @type {Array<Command>}
35
35
  * @memberof Session
36
36
  */
37
- 'commands': Array<Command>;
37
+ 'commands': Array<Command> | null;
38
38
  }
39
39
 
@@ -82,48 +82,48 @@ export interface Workspace {
82
82
  * @type {number}
83
83
  * @memberof Workspace
84
84
  */
85
- 'cpu': number;
85
+ 'cpu'?: number;
86
86
  /**
87
87
  * The GPU quota for the workspace
88
88
  * @type {number}
89
89
  * @memberof Workspace
90
90
  */
91
- 'gpu': number;
91
+ 'gpu'?: number;
92
92
  /**
93
93
  * The memory quota for the workspace
94
94
  * @type {number}
95
95
  * @memberof Workspace
96
96
  */
97
- 'memory': number;
97
+ 'memory'?: number;
98
98
  /**
99
99
  * The disk quota for the workspace
100
100
  * @type {number}
101
101
  * @memberof Workspace
102
102
  */
103
- 'disk': number;
103
+ 'disk'?: number;
104
104
  /**
105
105
  * The state of the workspace
106
106
  * @type {string}
107
107
  * @memberof Workspace
108
108
  */
109
- 'state': string;
109
+ 'state'?: string;
110
110
  /**
111
111
  * The error reason of the workspace
112
112
  * @type {string}
113
113
  * @memberof Workspace
114
114
  */
115
- 'errorReason': string;
115
+ 'errorReason'?: string;
116
116
  /**
117
117
  * The state of the snapshot
118
118
  * @type {string}
119
119
  * @memberof Workspace
120
120
  */
121
- 'snapshotState': string;
121
+ 'snapshotState'?: string;
122
122
  /**
123
123
  * The creation timestamp of the last snapshot
124
124
  * @type {string}
125
125
  * @memberof Workspace
126
126
  */
127
- 'snapshotCreatedAt': string;
127
+ 'snapshotCreatedAt'?: string;
128
128
  }
129
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.9.0",
3
+ "version": "0.9.8",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {