@daytonaio/api-client 0.17.1 → 0.18.0-alpha.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.
- package/.openapi-generator/FILES +8 -0
- package/api/images-api.ts +207 -0
- package/api/object-storage-api.ts +161 -0
- package/api/volumes-api.ts +584 -0
- package/api.ts +2 -0
- package/dist/api/images-api.d.ts +75 -0
- package/dist/api/images-api.js +164 -0
- package/dist/api/object-storage-api.d.ts +74 -0
- package/dist/api/object-storage-api.js +140 -0
- package/dist/api/volumes-api.d.ts +227 -0
- package/dist/api/volumes-api.js +465 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/images-api.d.ts +75 -0
- package/dist/esm/api/images-api.js +164 -0
- package/dist/esm/api/object-storage-api.d.ts +74 -0
- package/dist/esm/api/object-storage-api.js +133 -0
- package/dist/esm/api/volumes-api.d.ts +227 -0
- package/dist/esm/api/volumes-api.js +458 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/api-key-list.d.ts +3 -0
- package/dist/esm/models/api-key-list.js +3 -0
- package/dist/esm/models/api-key-response.d.ts +3 -0
- package/dist/esm/models/api-key-response.js +3 -0
- package/dist/esm/models/build-image.d.ts +31 -0
- package/dist/esm/models/build-image.js +14 -0
- package/dist/esm/models/create-api-key.d.ts +3 -0
- package/dist/esm/models/create-api-key.js +3 -0
- package/dist/esm/models/create-build-info.d.ts +30 -0
- package/dist/esm/models/create-build-info.js +14 -0
- package/dist/esm/models/create-organization-role.d.ts +3 -0
- package/dist/esm/models/create-organization-role.js +3 -0
- package/dist/esm/models/create-user.d.ts +6 -0
- package/dist/esm/models/create-volume.d.ts +24 -0
- package/dist/esm/models/create-volume.js +14 -0
- package/dist/esm/models/create-workspace.d.ts +14 -0
- package/dist/esm/models/image-state.d.ts +2 -0
- package/dist/esm/models/image-state.js +2 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/esm/models/organization-role.d.ts +3 -0
- package/dist/esm/models/organization-role.js +3 -0
- package/dist/esm/models/storage-access-dto.d.ts +54 -0
- package/dist/esm/models/storage-access-dto.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +3 -0
- package/dist/esm/models/update-organization-role.js +3 -0
- package/dist/esm/models/volume-dto.d.ts +70 -0
- package/dist/esm/models/volume-dto.js +22 -0
- package/dist/esm/models/volume-mount-dto.d.ts +30 -0
- package/dist/esm/models/volume-mount-dto.js +2 -0
- package/dist/esm/models/workspace-state.d.ts +2 -0
- package/dist/esm/models/workspace-state.js +2 -0
- package/dist/esm/models/workspace-volume.d.ts +30 -0
- package/dist/esm/models/workspace-volume.js +14 -0
- package/dist/esm/models/workspace.d.ts +8 -1
- package/dist/models/api-key-list.d.ts +3 -0
- package/dist/models/api-key-list.js +3 -0
- package/dist/models/api-key-response.d.ts +3 -0
- package/dist/models/api-key-response.js +3 -0
- package/dist/models/build-image.d.ts +31 -0
- package/dist/models/build-image.js +15 -0
- package/dist/models/create-api-key.d.ts +3 -0
- package/dist/models/create-api-key.js +3 -0
- package/dist/models/create-build-info.d.ts +30 -0
- package/dist/models/create-build-info.js +15 -0
- package/dist/models/create-organization-role.d.ts +3 -0
- package/dist/models/create-organization-role.js +3 -0
- package/dist/models/create-user.d.ts +6 -0
- package/dist/models/create-volume.d.ts +24 -0
- package/dist/models/create-volume.js +15 -0
- package/dist/models/create-workspace.d.ts +14 -0
- package/dist/models/image-state.d.ts +2 -0
- package/dist/models/image-state.js +2 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/models/organization-role.d.ts +3 -0
- package/dist/models/organization-role.js +3 -0
- package/dist/models/storage-access-dto.d.ts +54 -0
- package/dist/models/storage-access-dto.js +15 -0
- package/dist/models/update-organization-role.d.ts +3 -0
- package/dist/models/update-organization-role.js +3 -0
- package/dist/models/volume-dto.d.ts +70 -0
- package/dist/models/volume-dto.js +25 -0
- package/dist/models/volume-mount-dto.d.ts +30 -0
- package/dist/models/volume-mount-dto.js +3 -0
- package/dist/models/workspace-state.d.ts +2 -0
- package/dist/models/workspace-state.js +2 -0
- package/dist/models/workspace-volume.d.ts +30 -0
- package/dist/models/workspace-volume.js +15 -0
- package/dist/models/workspace.d.ts +8 -1
- package/models/api-key-list.ts +3 -0
- package/models/api-key-response.ts +3 -0
- package/models/build-image.ts +37 -0
- package/models/create-api-key.ts +3 -0
- package/models/create-build-info.ts +33 -0
- package/models/create-organization-role.ts +3 -0
- package/models/create-user.ts +6 -0
- package/models/create-volume.ts +27 -0
- package/models/create-workspace.ts +19 -0
- package/models/image-state.ts +2 -0
- package/models/index.ts +6 -0
- package/models/organization-role.ts +3 -0
- package/models/storage-access-dto.ts +57 -0
- package/models/update-organization-role.ts +3 -0
- package/models/volume-dto.ts +75 -0
- package/models/volume-mount-dto.ts +33 -0
- package/models/workspace-state.ts +2 -0
- package/models/workspace-volume.ts +33 -0
- package/models/workspace.ts +10 -1
- package/package.json +1 -1
|
@@ -0,0 +1,227 @@
|
|
|
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 { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { CreateVolume } from '../models';
|
|
16
|
+
import type { VolumeDto } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* VolumesApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const VolumesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary Create a new volume
|
|
25
|
+
* @param {CreateVolume} createVolume
|
|
26
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
createVolume: (createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Delete volume
|
|
34
|
+
* @param {string} volumeId ID of the volume
|
|
35
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
deleteVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @summary Get volume details
|
|
43
|
+
* @param {string} volumeId ID of the volume
|
|
44
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
getVolume: (volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Get volume details by name
|
|
52
|
+
* @param {string} name Name of the volume
|
|
53
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
getVolumeByName: (name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @summary List all volumes
|
|
61
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
62
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
listVolumes: (xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* VolumesApi - functional programming interface
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const VolumesApiFp: (configuration?: Configuration) => {
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @summary Create a new volume
|
|
76
|
+
* @param {CreateVolume} createVolume
|
|
77
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @summary Delete volume
|
|
85
|
+
* @param {string} volumeId ID of the volume
|
|
86
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Get volume details
|
|
94
|
+
* @param {string} volumeId ID of the volume
|
|
95
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
96
|
+
* @param {*} [options] Override http request option.
|
|
97
|
+
* @throws {RequiredError}
|
|
98
|
+
*/
|
|
99
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @summary Get volume details by name
|
|
103
|
+
* @param {string} name Name of the volume
|
|
104
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VolumeDto>>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @summary List all volumes
|
|
112
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
113
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<VolumeDto>>>;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* VolumesApi - factory interface
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export declare const VolumesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @summary Create a new volume
|
|
127
|
+
* @param {CreateVolume} createVolume
|
|
128
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
*/
|
|
132
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary Delete volume
|
|
136
|
+
* @param {string} volumeId ID of the volume
|
|
137
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
* @summary Get volume details
|
|
145
|
+
* @param {string} volumeId ID of the volume
|
|
146
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Get volume details by name
|
|
154
|
+
* @param {string} name Name of the volume
|
|
155
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<VolumeDto>;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @summary List all volumes
|
|
163
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
164
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<VolumeDto>>;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* VolumesApi - object-oriented interface
|
|
172
|
+
* @export
|
|
173
|
+
* @class VolumesApi
|
|
174
|
+
* @extends {BaseAPI}
|
|
175
|
+
*/
|
|
176
|
+
export declare class VolumesApi extends BaseAPI {
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @summary Create a new volume
|
|
180
|
+
* @param {CreateVolume} createVolume
|
|
181
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
* @memberof VolumesApi
|
|
185
|
+
*/
|
|
186
|
+
createVolume(createVolume: CreateVolume, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Delete volume
|
|
190
|
+
* @param {string} volumeId ID of the volume
|
|
191
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof VolumesApi
|
|
195
|
+
*/
|
|
196
|
+
deleteVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @summary Get volume details
|
|
200
|
+
* @param {string} volumeId ID of the volume
|
|
201
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
* @memberof VolumesApi
|
|
205
|
+
*/
|
|
206
|
+
getVolume(volumeId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @summary Get volume details by name
|
|
210
|
+
* @param {string} name Name of the volume
|
|
211
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
* @memberof VolumesApi
|
|
215
|
+
*/
|
|
216
|
+
getVolumeByName(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto, any>>;
|
|
217
|
+
/**
|
|
218
|
+
*
|
|
219
|
+
* @summary List all volumes
|
|
220
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
221
|
+
* @param {boolean} [includeDeleted] Include deleted volumes in the response
|
|
222
|
+
* @param {*} [options] Override http request option.
|
|
223
|
+
* @throws {RequiredError}
|
|
224
|
+
* @memberof VolumesApi
|
|
225
|
+
*/
|
|
226
|
+
listVolumes(xDaytonaOrganizationID?: string, includeDeleted?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VolumeDto[], any>>;
|
|
227
|
+
}
|