@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 +2 -2
- package/api/toolbox-api.ts +2 -2
- package/dist/api/toolbox-api.d.ts +3 -3
- package/dist/esm/api/toolbox-api.d.ts +3 -3
- package/dist/esm/models/execute-request.d.ts +6 -0
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/session.d.ts +1 -1
- package/dist/esm/models/workspace.d.ts +8 -8
- package/dist/models/execute-request.d.ts +6 -0
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/session.d.ts +1 -1
- package/dist/models/workspace.d.ts +8 -8
- package/models/execute-request.ts +6 -0
- package/models/execute-response.ts +2 -2
- package/models/session.ts +1 -1
- package/models/workspace.ts +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.9.
|
|
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.
|
|
39
|
+
npm install @daytonaio/api-client@0.9.8 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/toolbox-api.ts
CHANGED
|
@@ -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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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}
|
|
@@ -79,47 +79,47 @@ export interface Workspace {
|
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof Workspace
|
|
81
81
|
*/
|
|
82
|
-
'cpu'
|
|
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'
|
|
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'
|
|
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'
|
|
100
|
+
'disk'?: number;
|
|
101
101
|
/**
|
|
102
102
|
* The state of the workspace
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof Workspace
|
|
105
105
|
*/
|
|
106
|
-
'state'
|
|
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'
|
|
112
|
+
'errorReason'?: string;
|
|
113
113
|
/**
|
|
114
114
|
* The state of the snapshot
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof Workspace
|
|
117
117
|
*/
|
|
118
|
-
'snapshotState'
|
|
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'
|
|
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}
|
package/dist/models/session.d.ts
CHANGED
|
@@ -79,47 +79,47 @@ export interface Workspace {
|
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof Workspace
|
|
81
81
|
*/
|
|
82
|
-
'cpu'
|
|
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'
|
|
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'
|
|
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'
|
|
100
|
+
'disk'?: number;
|
|
101
101
|
/**
|
|
102
102
|
* The state of the workspace
|
|
103
103
|
* @type {string}
|
|
104
104
|
* @memberof Workspace
|
|
105
105
|
*/
|
|
106
|
-
'state'
|
|
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'
|
|
112
|
+
'errorReason'?: string;
|
|
113
113
|
/**
|
|
114
114
|
* The state of the snapshot
|
|
115
115
|
* @type {string}
|
|
116
116
|
* @memberof Workspace
|
|
117
117
|
*/
|
|
118
|
-
'snapshotState'
|
|
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'
|
|
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}
|
package/models/session.ts
CHANGED
package/models/workspace.ts
CHANGED
|
@@ -82,48 +82,48 @@ export interface Workspace {
|
|
|
82
82
|
* @type {number}
|
|
83
83
|
* @memberof Workspace
|
|
84
84
|
*/
|
|
85
|
-
'cpu'
|
|
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'
|
|
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'
|
|
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'
|
|
103
|
+
'disk'?: number;
|
|
104
104
|
/**
|
|
105
105
|
* The state of the workspace
|
|
106
106
|
* @type {string}
|
|
107
107
|
* @memberof Workspace
|
|
108
108
|
*/
|
|
109
|
-
'state'
|
|
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'
|
|
115
|
+
'errorReason'?: string;
|
|
116
116
|
/**
|
|
117
117
|
* The state of the snapshot
|
|
118
118
|
* @type {string}
|
|
119
119
|
* @memberof Workspace
|
|
120
120
|
*/
|
|
121
|
-
'snapshotState'
|
|
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'
|
|
127
|
+
'snapshotCreatedAt'?: string;
|
|
128
128
|
}
|
|
129
129
|
|