@daytonaio/api-client 0.4.0 → 0.5.0

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.
Files changed (89) hide show
  1. package/.openapi-generator/FILES +4 -8
  2. package/README.md +2 -2
  3. package/api/api-keys-api.ts +353 -0
  4. package/api/default-api.ts +36 -3313
  5. package/api/docker-registry-api.ts +108 -108
  6. package/api/nodes-api.ts +274 -0
  7. package/api/users-api.ts +274 -0
  8. package/api/workspace-api.ts +760 -0
  9. package/api.ts +4 -0
  10. package/dist/api/api-keys-api.d.ts +171 -0
  11. package/dist/api/api-keys-api.js +339 -0
  12. package/dist/api/default-api.d.ts +15 -1454
  13. package/dist/api/default-api.js +43 -3090
  14. package/dist/api/docker-registry-api.d.ts +64 -64
  15. package/dist/api/docker-registry-api.js +108 -108
  16. package/dist/api/nodes-api.d.ts +135 -0
  17. package/dist/api/nodes-api.js +270 -0
  18. package/dist/api/users-api.d.ts +135 -0
  19. package/dist/api/users-api.js +270 -0
  20. package/dist/api/workspace-api.d.ts +356 -0
  21. package/dist/api/workspace-api.js +722 -0
  22. package/dist/api.d.ts +4 -0
  23. package/dist/api.js +4 -0
  24. package/dist/esm/api/api-keys-api.d.ts +171 -0
  25. package/dist/esm/api/api-keys-api.js +332 -0
  26. package/dist/esm/api/default-api.d.ts +15 -1454
  27. package/dist/esm/api/default-api.js +41 -3088
  28. package/dist/esm/api/docker-registry-api.d.ts +64 -64
  29. package/dist/esm/api/docker-registry-api.js +108 -108
  30. package/dist/esm/api/nodes-api.d.ts +135 -0
  31. package/dist/esm/api/nodes-api.js +263 -0
  32. package/dist/esm/api/users-api.d.ts +135 -0
  33. package/dist/esm/api/users-api.js +263 -0
  34. package/dist/esm/api/workspace-api.d.ts +356 -0
  35. package/dist/esm/api/workspace-api.js +715 -0
  36. package/dist/esm/api.d.ts +4 -0
  37. package/dist/esm/api.js +4 -0
  38. package/dist/esm/models/create-workspace-dto.d.ts +1 -1
  39. package/dist/esm/models/index.d.ts +0 -8
  40. package/dist/esm/models/index.js +0 -8
  41. package/dist/esm/models/workspace-dto.d.ts +14 -0
  42. package/dist/models/create-workspace-dto.d.ts +1 -1
  43. package/dist/models/index.d.ts +0 -8
  44. package/dist/models/index.js +0 -8
  45. package/dist/models/workspace-dto.d.ts +14 -0
  46. package/models/create-workspace-dto.ts +1 -1
  47. package/models/index.ts +0 -8
  48. package/models/workspace-dto.ts +12 -0
  49. package/package.json +1 -1
  50. package/dist/esm/models/execute-request-dto.d.ts +0 -30
  51. package/dist/esm/models/execute-request-dto.js +0 -14
  52. package/dist/esm/models/execute-response-dto.d.ts +0 -30
  53. package/dist/esm/models/execute-response-dto.js +0 -14
  54. package/dist/esm/models/git-add-request-dto.d.ts +0 -30
  55. package/dist/esm/models/git-add-request-dto.js +0 -14
  56. package/dist/esm/models/git-branch-request-dto.d.ts +0 -30
  57. package/dist/esm/models/git-branch-request-dto.js +0 -14
  58. package/dist/esm/models/git-clone-request-dto.d.ts +0 -54
  59. package/dist/esm/models/git-clone-request-dto.js +0 -14
  60. package/dist/esm/models/git-commit-request-dto.d.ts +0 -42
  61. package/dist/esm/models/git-commit-request-dto.js +0 -14
  62. package/dist/esm/models/git-repo-request-dto.d.ts +0 -36
  63. package/dist/esm/models/git-repo-request-dto.js +0 -14
  64. package/dist/esm/models/replace-request-dto.d.ts +0 -36
  65. package/dist/esm/models/replace-request-dto.js +0 -14
  66. package/dist/models/execute-request-dto.d.ts +0 -30
  67. package/dist/models/execute-request-dto.js +0 -15
  68. package/dist/models/execute-response-dto.d.ts +0 -30
  69. package/dist/models/execute-response-dto.js +0 -15
  70. package/dist/models/git-add-request-dto.d.ts +0 -30
  71. package/dist/models/git-add-request-dto.js +0 -15
  72. package/dist/models/git-branch-request-dto.d.ts +0 -30
  73. package/dist/models/git-branch-request-dto.js +0 -15
  74. package/dist/models/git-clone-request-dto.d.ts +0 -54
  75. package/dist/models/git-clone-request-dto.js +0 -15
  76. package/dist/models/git-commit-request-dto.d.ts +0 -42
  77. package/dist/models/git-commit-request-dto.js +0 -15
  78. package/dist/models/git-repo-request-dto.d.ts +0 -36
  79. package/dist/models/git-repo-request-dto.js +0 -15
  80. package/dist/models/replace-request-dto.d.ts +0 -36
  81. package/dist/models/replace-request-dto.js +0 -15
  82. package/models/execute-request-dto.ts +0 -36
  83. package/models/execute-response-dto.ts +0 -36
  84. package/models/git-add-request-dto.ts +0 -36
  85. package/models/git-branch-request-dto.ts +0 -36
  86. package/models/git-clone-request-dto.ts +0 -60
  87. package/models/git-commit-request-dto.ts +0 -48
  88. package/models/git-repo-request-dto.ts +0 -42
  89. package/models/replace-request-dto.ts +0 -42
@@ -0,0 +1,356 @@
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 { CreateWorkspaceDto } from '../models';
16
+ import type { WorkspaceDto } from '../models';
17
+ import type { WorkspaceLabelsDto } from '../models';
18
+ /**
19
+ * WorkspaceApi - axios parameter creator
20
+ * @export
21
+ */
22
+ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configuration) => {
23
+ /**
24
+ *
25
+ * @summary Create workspace snapshot
26
+ * @param {string} workspaceId
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ createSnapshot: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ *
33
+ * @summary Create a new workspace
34
+ * @param {CreateWorkspaceDto} createWorkspaceDto
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ createWorkspace: (createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ *
41
+ * @summary Delete workspace
42
+ * @param {string} workspaceId
43
+ * @param {boolean} force
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ deleteWorkspace: (workspaceId: string, force: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @summary Get workspace details
51
+ * @param {string} workspaceId
52
+ * @param {boolean} [verbose] Include verbose output
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ getWorkspace: (workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ *
59
+ * @summary List all workspaces
60
+ * @param {boolean} [verbose] Include verbose output
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ listWorkspaces: (verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
+ /**
66
+ *
67
+ * @summary Replace workspace labels
68
+ * @param {string} workspaceId
69
+ * @param {WorkspaceLabelsDto} workspaceLabelsDto
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ replaceLabels: (workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
+ /**
75
+ *
76
+ * @summary Start workspace
77
+ * @param {string} workspaceId
78
+ * @param {*} [options] Override http request option.
79
+ * @throws {RequiredError}
80
+ */
81
+ startWorkspace: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
82
+ /**
83
+ *
84
+ * @summary Stop workspace
85
+ * @param {string} workspaceId
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ stopWorkspace: (workspaceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ *
92
+ * @summary Update public status
93
+ * @param {string} workspaceId ID of the workspace
94
+ * @param {boolean} isPublic Public status to set
95
+ * @param {*} [options] Override http request option.
96
+ * @throws {RequiredError}
97
+ */
98
+ updatePublicStatus: (workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
99
+ };
100
+ /**
101
+ * WorkspaceApi - functional programming interface
102
+ * @export
103
+ */
104
+ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
105
+ /**
106
+ *
107
+ * @summary Create workspace snapshot
108
+ * @param {string} workspaceId
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>>;
113
+ /**
114
+ *
115
+ * @summary Create a new workspace
116
+ * @param {CreateWorkspaceDto} createWorkspaceDto
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ createWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>>;
121
+ /**
122
+ *
123
+ * @summary Delete workspace
124
+ * @param {string} workspaceId
125
+ * @param {boolean} force
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ deleteWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
130
+ /**
131
+ *
132
+ * @summary Get workspace details
133
+ * @param {string} workspaceId
134
+ * @param {boolean} [verbose] Include verbose output
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceDto>>;
139
+ /**
140
+ *
141
+ * @summary List all workspaces
142
+ * @param {boolean} [verbose] Include verbose output
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<WorkspaceDto>>>;
147
+ /**
148
+ *
149
+ * @summary Replace workspace labels
150
+ * @param {string} workspaceId
151
+ * @param {WorkspaceLabelsDto} workspaceLabelsDto
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ replaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabelsDto>>;
156
+ /**
157
+ *
158
+ * @summary Start workspace
159
+ * @param {string} workspaceId
160
+ * @param {*} [options] Override http request option.
161
+ * @throws {RequiredError}
162
+ */
163
+ startWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
164
+ /**
165
+ *
166
+ * @summary Stop workspace
167
+ * @param {string} workspaceId
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ stopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
172
+ /**
173
+ *
174
+ * @summary Update public status
175
+ * @param {string} workspaceId ID of the workspace
176
+ * @param {boolean} isPublic Public status to set
177
+ * @param {*} [options] Override http request option.
178
+ * @throws {RequiredError}
179
+ */
180
+ updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
181
+ };
182
+ /**
183
+ * WorkspaceApi - factory interface
184
+ * @export
185
+ */
186
+ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
187
+ /**
188
+ *
189
+ * @summary Create workspace snapshot
190
+ * @param {string} workspaceId
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto>;
195
+ /**
196
+ *
197
+ * @summary Create a new workspace
198
+ * @param {CreateWorkspaceDto} createWorkspaceDto
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ createWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto>;
203
+ /**
204
+ *
205
+ * @summary Delete workspace
206
+ * @param {string} workspaceId
207
+ * @param {boolean} force
208
+ * @param {*} [options] Override http request option.
209
+ * @throws {RequiredError}
210
+ */
211
+ deleteWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
212
+ /**
213
+ *
214
+ * @summary Get workspace details
215
+ * @param {string} workspaceId
216
+ * @param {boolean} [verbose] Include verbose output
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceDto>;
221
+ /**
222
+ *
223
+ * @summary List all workspaces
224
+ * @param {boolean} [verbose] Include verbose output
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<WorkspaceDto>>;
229
+ /**
230
+ *
231
+ * @summary Replace workspace labels
232
+ * @param {string} workspaceId
233
+ * @param {WorkspaceLabelsDto} workspaceLabelsDto
234
+ * @param {*} [options] Override http request option.
235
+ * @throws {RequiredError}
236
+ */
237
+ replaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabelsDto>;
238
+ /**
239
+ *
240
+ * @summary Start workspace
241
+ * @param {string} workspaceId
242
+ * @param {*} [options] Override http request option.
243
+ * @throws {RequiredError}
244
+ */
245
+ startWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
246
+ /**
247
+ *
248
+ * @summary Stop workspace
249
+ * @param {string} workspaceId
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ stopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
254
+ /**
255
+ *
256
+ * @summary Update public status
257
+ * @param {string} workspaceId ID of the workspace
258
+ * @param {boolean} isPublic Public status to set
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
263
+ };
264
+ /**
265
+ * WorkspaceApi - object-oriented interface
266
+ * @export
267
+ * @class WorkspaceApi
268
+ * @extends {BaseAPI}
269
+ */
270
+ export declare class WorkspaceApi extends BaseAPI {
271
+ /**
272
+ *
273
+ * @summary Create workspace snapshot
274
+ * @param {string} workspaceId
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ * @memberof WorkspaceApi
278
+ */
279
+ createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceDto, any>>;
280
+ /**
281
+ *
282
+ * @summary Create a new workspace
283
+ * @param {CreateWorkspaceDto} createWorkspaceDto
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ * @memberof WorkspaceApi
287
+ */
288
+ createWorkspace(createWorkspaceDto: CreateWorkspaceDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceDto, any>>;
289
+ /**
290
+ *
291
+ * @summary Delete workspace
292
+ * @param {string} workspaceId
293
+ * @param {boolean} force
294
+ * @param {*} [options] Override http request option.
295
+ * @throws {RequiredError}
296
+ * @memberof WorkspaceApi
297
+ */
298
+ deleteWorkspace(workspaceId: string, force: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
299
+ /**
300
+ *
301
+ * @summary Get workspace details
302
+ * @param {string} workspaceId
303
+ * @param {boolean} [verbose] Include verbose output
304
+ * @param {*} [options] Override http request option.
305
+ * @throws {RequiredError}
306
+ * @memberof WorkspaceApi
307
+ */
308
+ getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceDto, any>>;
309
+ /**
310
+ *
311
+ * @summary List all workspaces
312
+ * @param {boolean} [verbose] Include verbose output
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ * @memberof WorkspaceApi
316
+ */
317
+ listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceDto[], any>>;
318
+ /**
319
+ *
320
+ * @summary Replace workspace labels
321
+ * @param {string} workspaceId
322
+ * @param {WorkspaceLabelsDto} workspaceLabelsDto
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ * @memberof WorkspaceApi
326
+ */
327
+ replaceLabels(workspaceId: string, workspaceLabelsDto: WorkspaceLabelsDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspaceLabelsDto, any>>;
328
+ /**
329
+ *
330
+ * @summary Start workspace
331
+ * @param {string} workspaceId
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ * @memberof WorkspaceApi
335
+ */
336
+ startWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
337
+ /**
338
+ *
339
+ * @summary Stop workspace
340
+ * @param {string} workspaceId
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ * @memberof WorkspaceApi
344
+ */
345
+ stopWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
346
+ /**
347
+ *
348
+ * @summary Update public status
349
+ * @param {string} workspaceId ID of the workspace
350
+ * @param {boolean} isPublic Public status to set
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ * @memberof WorkspaceApi
354
+ */
355
+ updatePublicStatus(workspaceId: string, isPublic: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
356
+ }