@daytonaio/api-client 0.178.0 → 0.180.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.
Files changed (45) hide show
  1. package/package.json +1 -1
  2. package/src/api/sandbox-api.d.ts +135 -47
  3. package/src/api/sandbox-api.js +205 -53
  4. package/src/api/sandbox-api.js.map +1 -1
  5. package/src/api/webhooks-api.d.ts +36 -0
  6. package/src/api/webhooks-api.js +74 -0
  7. package/src/api/webhooks-api.js.map +1 -1
  8. package/src/api.d.ts +0 -1
  9. package/src/api.js +0 -1
  10. package/src/api.js.map +1 -1
  11. package/src/models/index.d.ts +5 -5
  12. package/src/models/index.js +5 -5
  13. package/src/models/index.js.map +1 -1
  14. package/src/models/{workspace-port-preview-url.d.ts → list-sandboxes-response.d.ts} +6 -5
  15. package/src/models/{paginated-sandboxes.js → list-sandboxes-response.js} +1 -1
  16. package/src/models/list-sandboxes-response.js.map +1 -0
  17. package/src/models/{paginated-sandboxes.d.ts → paginated-sandboxes-deprecated.d.ts} +1 -1
  18. package/src/models/{workspace-port-preview-url.js → paginated-sandboxes-deprecated.js} +1 -1
  19. package/src/models/paginated-sandboxes-deprecated.js.map +1 -0
  20. package/src/models/region-quota.d.ts +4 -0
  21. package/src/models/region-usage-overview.d.ts +5 -0
  22. package/src/models/{workspace.d.ts → sandbox-list-item.d.ts} +35 -89
  23. package/src/models/{create-workspace.js → sandbox-list-item.js} +9 -7
  24. package/src/models/sandbox-list-item.js.map +1 -0
  25. package/src/models/sandbox-list-sort-direction.d.ts +17 -0
  26. package/src/models/{sandbox-info.js → sandbox-list-sort-direction.js} +7 -1
  27. package/src/models/sandbox-list-sort-direction.js.map +1 -0
  28. package/src/models/sandbox-list-sort-field.d.ts +21 -0
  29. package/src/models/sandbox-list-sort-field.js +26 -0
  30. package/src/models/sandbox-list-sort-field.js.map +1 -0
  31. package/src/models/sandbox-state.d.ts +0 -3
  32. package/src/models/sandbox-state.js +0 -3
  33. package/src/models/sandbox-state.js.map +1 -1
  34. package/src/models/update-organization-region-quota.d.ts +4 -0
  35. package/src/api/workspace-api.d.ts +0 -634
  36. package/src/api/workspace-api.js +0 -1206
  37. package/src/api/workspace-api.js.map +0 -1
  38. package/src/models/create-workspace.d.ts +0 -93
  39. package/src/models/create-workspace.js.map +0 -1
  40. package/src/models/paginated-sandboxes.js.map +0 -1
  41. package/src/models/sandbox-info.d.ts +0 -26
  42. package/src/models/sandbox-info.js.map +0 -1
  43. package/src/models/workspace-port-preview-url.js.map +0 -1
  44. package/src/models/workspace.js +0 -39
  45. package/src/models/workspace.js.map +0 -1
@@ -1,634 +0,0 @@
1
- /**
2
- * Daytona
3
- * Daytona AI platform API Docs
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: support@daytona.com
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 { CreateWorkspace } from '../models';
16
- import type { SandboxLabels } from '../models';
17
- import type { Workspace } from '../models';
18
- import type { WorkspacePortPreviewUrl } from '../models';
19
- /**
20
- * WorkspaceApi - axios parameter creator
21
- */
22
- export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configuration) => {
23
- /**
24
- *
25
- * @summary [DEPRECATED] Archive workspace
26
- * @param {string} workspaceId
27
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
28
- * @param {*} [options] Override http request option.
29
- * @deprecated
30
- * @throws {RequiredError}
31
- */
32
- archiveWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33
- /**
34
- *
35
- * @summary [DEPRECATED] Create workspace backup
36
- * @param {string} workspaceId ID of the workspace
37
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
38
- * @param {*} [options] Override http request option.
39
- * @deprecated
40
- * @throws {RequiredError}
41
- */
42
- createBackupWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
43
- /**
44
- *
45
- * @summary [DEPRECATED] Create a new workspace
46
- * @param {CreateWorkspace} createWorkspace
47
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
48
- * @param {*} [options] Override http request option.
49
- * @deprecated
50
- * @throws {RequiredError}
51
- */
52
- createWorkspaceDeprecated: (createWorkspace: CreateWorkspace, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
- /**
54
- *
55
- * @summary [DEPRECATED] Delete workspace
56
- * @param {string} workspaceId ID of the workspace
57
- * @param {boolean} force
58
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
59
- * @param {*} [options] Override http request option.
60
- * @deprecated
61
- * @throws {RequiredError}
62
- */
63
- deleteWorkspaceDeprecated: (workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
64
- /**
65
- *
66
- * @summary [DEPRECATED] Get build logs
67
- * @param {string} workspaceId ID of the workspace
68
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
69
- * @param {boolean} [follow] Whether to follow the logs stream
70
- * @param {*} [options] Override http request option.
71
- * @deprecated
72
- * @throws {RequiredError}
73
- */
74
- getBuildLogsWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
75
- /**
76
- *
77
- * @summary [DEPRECATED] Get preview URL for a workspace port
78
- * @param {string} workspaceId ID of the workspace
79
- * @param {number} port Port number to get preview URL for
80
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
81
- * @param {*} [options] Override http request option.
82
- * @deprecated
83
- * @throws {RequiredError}
84
- */
85
- getPortPreviewUrlWorkspaceDeprecated: (workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
86
- /**
87
- *
88
- * @summary [DEPRECATED] Get workspace details
89
- * @param {string} workspaceId ID of the workspace
90
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
91
- * @param {boolean} [verbose] Include verbose output
92
- * @param {*} [options] Override http request option.
93
- * @deprecated
94
- * @throws {RequiredError}
95
- */
96
- getWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
97
- /**
98
- *
99
- * @summary [DEPRECATED] List all workspaces
100
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
101
- * @param {boolean} [verbose] Include verbose output
102
- * @param {string} [labels] JSON encoded labels to filter by
103
- * @param {*} [options] Override http request option.
104
- * @deprecated
105
- * @throws {RequiredError}
106
- */
107
- listWorkspacesDeprecated: (xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
108
- /**
109
- *
110
- * @summary [DEPRECATED] Replace workspace labels
111
- * @param {string} workspaceId ID of the workspace
112
- * @param {SandboxLabels} sandboxLabels
113
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
114
- * @param {*} [options] Override http request option.
115
- * @deprecated
116
- * @throws {RequiredError}
117
- */
118
- replaceLabelsWorkspaceDeprecated: (workspaceId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
119
- /**
120
- *
121
- * @summary [DEPRECATED] Set workspace auto-archive interval
122
- * @param {string} workspaceId ID of the workspace
123
- * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
124
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
125
- * @param {*} [options] Override http request option.
126
- * @deprecated
127
- * @throws {RequiredError}
128
- */
129
- setAutoArchiveIntervalWorkspaceDeprecated: (workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
130
- /**
131
- *
132
- * @summary [DEPRECATED] Set workspace auto-stop interval
133
- * @param {string} workspaceId ID of the workspace
134
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
135
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
136
- * @param {*} [options] Override http request option.
137
- * @deprecated
138
- * @throws {RequiredError}
139
- */
140
- setAutostopIntervalWorkspaceDeprecated: (workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
141
- /**
142
- *
143
- * @summary [DEPRECATED] Start workspace
144
- * @param {string} workspaceId ID of the workspace
145
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
146
- * @param {*} [options] Override http request option.
147
- * @deprecated
148
- * @throws {RequiredError}
149
- */
150
- startWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
151
- /**
152
- *
153
- * @summary [DEPRECATED] Stop workspace
154
- * @param {string} workspaceId ID of the workspace
155
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
156
- * @param {*} [options] Override http request option.
157
- * @deprecated
158
- * @throws {RequiredError}
159
- */
160
- stopWorkspaceDeprecated: (workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
161
- /**
162
- *
163
- * @summary [DEPRECATED] Update public status
164
- * @param {string} workspaceId ID of the workspace
165
- * @param {boolean} isPublic Public status to set
166
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
167
- * @param {*} [options] Override http request option.
168
- * @deprecated
169
- * @throws {RequiredError}
170
- */
171
- updatePublicStatusWorkspaceDeprecated: (workspaceId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
172
- };
173
- /**
174
- * WorkspaceApi - functional programming interface
175
- */
176
- export declare const WorkspaceApiFp: (configuration?: Configuration) => {
177
- /**
178
- *
179
- * @summary [DEPRECATED] Archive workspace
180
- * @param {string} workspaceId
181
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
182
- * @param {*} [options] Override http request option.
183
- * @deprecated
184
- * @throws {RequiredError}
185
- */
186
- archiveWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
187
- /**
188
- *
189
- * @summary [DEPRECATED] Create workspace backup
190
- * @param {string} workspaceId ID of the workspace
191
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
192
- * @param {*} [options] Override http request option.
193
- * @deprecated
194
- * @throws {RequiredError}
195
- */
196
- createBackupWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
197
- /**
198
- *
199
- * @summary [DEPRECATED] Create a new workspace
200
- * @param {CreateWorkspace} createWorkspace
201
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
202
- * @param {*} [options] Override http request option.
203
- * @deprecated
204
- * @throws {RequiredError}
205
- */
206
- createWorkspaceDeprecated(createWorkspace: CreateWorkspace, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
207
- /**
208
- *
209
- * @summary [DEPRECATED] Delete workspace
210
- * @param {string} workspaceId ID of the workspace
211
- * @param {boolean} force
212
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
213
- * @param {*} [options] Override http request option.
214
- * @deprecated
215
- * @throws {RequiredError}
216
- */
217
- deleteWorkspaceDeprecated(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
218
- /**
219
- *
220
- * @summary [DEPRECATED] Get build logs
221
- * @param {string} workspaceId ID of the workspace
222
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
223
- * @param {boolean} [follow] Whether to follow the logs stream
224
- * @param {*} [options] Override http request option.
225
- * @deprecated
226
- * @throws {RequiredError}
227
- */
228
- getBuildLogsWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
229
- /**
230
- *
231
- * @summary [DEPRECATED] Get preview URL for a workspace port
232
- * @param {string} workspaceId ID of the workspace
233
- * @param {number} port Port number to get preview URL for
234
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
235
- * @param {*} [options] Override http request option.
236
- * @deprecated
237
- * @throws {RequiredError}
238
- */
239
- getPortPreviewUrlWorkspaceDeprecated(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspacePortPreviewUrl>>;
240
- /**
241
- *
242
- * @summary [DEPRECATED] Get workspace details
243
- * @param {string} workspaceId ID of the workspace
244
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
245
- * @param {boolean} [verbose] Include verbose output
246
- * @param {*} [options] Override http request option.
247
- * @deprecated
248
- * @throws {RequiredError}
249
- */
250
- getWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>>;
251
- /**
252
- *
253
- * @summary [DEPRECATED] List all workspaces
254
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
255
- * @param {boolean} [verbose] Include verbose output
256
- * @param {string} [labels] JSON encoded labels to filter by
257
- * @param {*} [options] Override http request option.
258
- * @deprecated
259
- * @throws {RequiredError}
260
- */
261
- listWorkspacesDeprecated(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>>;
262
- /**
263
- *
264
- * @summary [DEPRECATED] Replace workspace labels
265
- * @param {string} workspaceId ID of the workspace
266
- * @param {SandboxLabels} sandboxLabels
267
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
268
- * @param {*} [options] Override http request option.
269
- * @deprecated
270
- * @throws {RequiredError}
271
- */
272
- replaceLabelsWorkspaceDeprecated(workspaceId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SandboxLabels>>;
273
- /**
274
- *
275
- * @summary [DEPRECATED] Set workspace auto-archive interval
276
- * @param {string} workspaceId ID of the workspace
277
- * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
278
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
279
- * @param {*} [options] Override http request option.
280
- * @deprecated
281
- * @throws {RequiredError}
282
- */
283
- setAutoArchiveIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
284
- /**
285
- *
286
- * @summary [DEPRECATED] Set workspace auto-stop interval
287
- * @param {string} workspaceId ID of the workspace
288
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
289
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
290
- * @param {*} [options] Override http request option.
291
- * @deprecated
292
- * @throws {RequiredError}
293
- */
294
- setAutostopIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
295
- /**
296
- *
297
- * @summary [DEPRECATED] Start workspace
298
- * @param {string} workspaceId ID of the workspace
299
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
300
- * @param {*} [options] Override http request option.
301
- * @deprecated
302
- * @throws {RequiredError}
303
- */
304
- startWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
305
- /**
306
- *
307
- * @summary [DEPRECATED] Stop workspace
308
- * @param {string} workspaceId ID of the workspace
309
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
310
- * @param {*} [options] Override http request option.
311
- * @deprecated
312
- * @throws {RequiredError}
313
- */
314
- stopWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
315
- /**
316
- *
317
- * @summary [DEPRECATED] Update public status
318
- * @param {string} workspaceId ID of the workspace
319
- * @param {boolean} isPublic Public status to set
320
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
321
- * @param {*} [options] Override http request option.
322
- * @deprecated
323
- * @throws {RequiredError}
324
- */
325
- updatePublicStatusWorkspaceDeprecated(workspaceId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
326
- };
327
- /**
328
- * WorkspaceApi - factory interface
329
- */
330
- export declare const WorkspaceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
331
- /**
332
- *
333
- * @summary [DEPRECATED] Archive workspace
334
- * @param {string} workspaceId
335
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
336
- * @param {*} [options] Override http request option.
337
- * @deprecated
338
- * @throws {RequiredError}
339
- */
340
- archiveWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
341
- /**
342
- *
343
- * @summary [DEPRECATED] Create workspace backup
344
- * @param {string} workspaceId ID of the workspace
345
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
346
- * @param {*} [options] Override http request option.
347
- * @deprecated
348
- * @throws {RequiredError}
349
- */
350
- createBackupWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
351
- /**
352
- *
353
- * @summary [DEPRECATED] Create a new workspace
354
- * @param {CreateWorkspace} createWorkspace
355
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
356
- * @param {*} [options] Override http request option.
357
- * @deprecated
358
- * @throws {RequiredError}
359
- */
360
- createWorkspaceDeprecated(createWorkspace: CreateWorkspace, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
361
- /**
362
- *
363
- * @summary [DEPRECATED] Delete workspace
364
- * @param {string} workspaceId ID of the workspace
365
- * @param {boolean} force
366
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
367
- * @param {*} [options] Override http request option.
368
- * @deprecated
369
- * @throws {RequiredError}
370
- */
371
- deleteWorkspaceDeprecated(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
372
- /**
373
- *
374
- * @summary [DEPRECATED] Get build logs
375
- * @param {string} workspaceId ID of the workspace
376
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
377
- * @param {boolean} [follow] Whether to follow the logs stream
378
- * @param {*} [options] Override http request option.
379
- * @deprecated
380
- * @throws {RequiredError}
381
- */
382
- getBuildLogsWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
383
- /**
384
- *
385
- * @summary [DEPRECATED] Get preview URL for a workspace port
386
- * @param {string} workspaceId ID of the workspace
387
- * @param {number} port Port number to get preview URL for
388
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
389
- * @param {*} [options] Override http request option.
390
- * @deprecated
391
- * @throws {RequiredError}
392
- */
393
- getPortPreviewUrlWorkspaceDeprecated(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<WorkspacePortPreviewUrl>;
394
- /**
395
- *
396
- * @summary [DEPRECATED] Get workspace details
397
- * @param {string} workspaceId ID of the workspace
398
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
399
- * @param {boolean} [verbose] Include verbose output
400
- * @param {*} [options] Override http request option.
401
- * @deprecated
402
- * @throws {RequiredError}
403
- */
404
- getWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Workspace>;
405
- /**
406
- *
407
- * @summary [DEPRECATED] List all workspaces
408
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
409
- * @param {boolean} [verbose] Include verbose output
410
- * @param {string} [labels] JSON encoded labels to filter by
411
- * @param {*} [options] Override http request option.
412
- * @deprecated
413
- * @throws {RequiredError}
414
- */
415
- listWorkspacesDeprecated(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>>;
416
- /**
417
- *
418
- * @summary [DEPRECATED] Replace workspace labels
419
- * @param {string} workspaceId ID of the workspace
420
- * @param {SandboxLabels} sandboxLabels
421
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
422
- * @param {*} [options] Override http request option.
423
- * @deprecated
424
- * @throws {RequiredError}
425
- */
426
- replaceLabelsWorkspaceDeprecated(workspaceId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<SandboxLabels>;
427
- /**
428
- *
429
- * @summary [DEPRECATED] Set workspace auto-archive interval
430
- * @param {string} workspaceId ID of the workspace
431
- * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
432
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
433
- * @param {*} [options] Override http request option.
434
- * @deprecated
435
- * @throws {RequiredError}
436
- */
437
- setAutoArchiveIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
438
- /**
439
- *
440
- * @summary [DEPRECATED] Set workspace auto-stop interval
441
- * @param {string} workspaceId ID of the workspace
442
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
443
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
444
- * @param {*} [options] Override http request option.
445
- * @deprecated
446
- * @throws {RequiredError}
447
- */
448
- setAutostopIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
449
- /**
450
- *
451
- * @summary [DEPRECATED] Start workspace
452
- * @param {string} workspaceId ID of the workspace
453
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
454
- * @param {*} [options] Override http request option.
455
- * @deprecated
456
- * @throws {RequiredError}
457
- */
458
- startWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
459
- /**
460
- *
461
- * @summary [DEPRECATED] Stop workspace
462
- * @param {string} workspaceId ID of the workspace
463
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
464
- * @param {*} [options] Override http request option.
465
- * @deprecated
466
- * @throws {RequiredError}
467
- */
468
- stopWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
469
- /**
470
- *
471
- * @summary [DEPRECATED] Update public status
472
- * @param {string} workspaceId ID of the workspace
473
- * @param {boolean} isPublic Public status to set
474
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
475
- * @param {*} [options] Override http request option.
476
- * @deprecated
477
- * @throws {RequiredError}
478
- */
479
- updatePublicStatusWorkspaceDeprecated(workspaceId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
480
- };
481
- /**
482
- * WorkspaceApi - object-oriented interface
483
- */
484
- export declare class WorkspaceApi extends BaseAPI {
485
- /**
486
- *
487
- * @summary [DEPRECATED] Archive workspace
488
- * @param {string} workspaceId
489
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
490
- * @param {*} [options] Override http request option.
491
- * @deprecated
492
- * @throws {RequiredError}
493
- */
494
- archiveWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
495
- /**
496
- *
497
- * @summary [DEPRECATED] Create workspace backup
498
- * @param {string} workspaceId ID of the workspace
499
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
500
- * @param {*} [options] Override http request option.
501
- * @deprecated
502
- * @throws {RequiredError}
503
- */
504
- createBackupWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any, {}>>;
505
- /**
506
- *
507
- * @summary [DEPRECATED] Create a new workspace
508
- * @param {CreateWorkspace} createWorkspace
509
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
510
- * @param {*} [options] Override http request option.
511
- * @deprecated
512
- * @throws {RequiredError}
513
- */
514
- createWorkspaceDeprecated(createWorkspace: CreateWorkspace, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any, {}>>;
515
- /**
516
- *
517
- * @summary [DEPRECATED] Delete workspace
518
- * @param {string} workspaceId ID of the workspace
519
- * @param {boolean} force
520
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
521
- * @param {*} [options] Override http request option.
522
- * @deprecated
523
- * @throws {RequiredError}
524
- */
525
- deleteWorkspaceDeprecated(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
526
- /**
527
- *
528
- * @summary [DEPRECATED] Get build logs
529
- * @param {string} workspaceId ID of the workspace
530
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
531
- * @param {boolean} [follow] Whether to follow the logs stream
532
- * @param {*} [options] Override http request option.
533
- * @deprecated
534
- * @throws {RequiredError}
535
- */
536
- getBuildLogsWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
537
- /**
538
- *
539
- * @summary [DEPRECATED] Get preview URL for a workspace port
540
- * @param {string} workspaceId ID of the workspace
541
- * @param {number} port Port number to get preview URL for
542
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
543
- * @param {*} [options] Override http request option.
544
- * @deprecated
545
- * @throws {RequiredError}
546
- */
547
- getPortPreviewUrlWorkspaceDeprecated(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WorkspacePortPreviewUrl, any, {}>>;
548
- /**
549
- *
550
- * @summary [DEPRECATED] Get workspace details
551
- * @param {string} workspaceId ID of the workspace
552
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
553
- * @param {boolean} [verbose] Include verbose output
554
- * @param {*} [options] Override http request option.
555
- * @deprecated
556
- * @throws {RequiredError}
557
- */
558
- getWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace, any, {}>>;
559
- /**
560
- *
561
- * @summary [DEPRECATED] List all workspaces
562
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
563
- * @param {boolean} [verbose] Include verbose output
564
- * @param {string} [labels] JSON encoded labels to filter by
565
- * @param {*} [options] Override http request option.
566
- * @deprecated
567
- * @throws {RequiredError}
568
- */
569
- listWorkspacesDeprecated(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace[], any, {}>>;
570
- /**
571
- *
572
- * @summary [DEPRECATED] Replace workspace labels
573
- * @param {string} workspaceId ID of the workspace
574
- * @param {SandboxLabels} sandboxLabels
575
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
576
- * @param {*} [options] Override http request option.
577
- * @deprecated
578
- * @throws {RequiredError}
579
- */
580
- replaceLabelsWorkspaceDeprecated(workspaceId: string, sandboxLabels: SandboxLabels, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SandboxLabels, any, {}>>;
581
- /**
582
- *
583
- * @summary [DEPRECATED] Set workspace auto-archive interval
584
- * @param {string} workspaceId ID of the workspace
585
- * @param {number} interval Auto-archive interval in minutes (0 means the maximum interval will be used)
586
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
587
- * @param {*} [options] Override http request option.
588
- * @deprecated
589
- * @throws {RequiredError}
590
- */
591
- setAutoArchiveIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
592
- /**
593
- *
594
- * @summary [DEPRECATED] Set workspace auto-stop interval
595
- * @param {string} workspaceId ID of the workspace
596
- * @param {number} interval Auto-stop interval in minutes (0 to disable)
597
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
598
- * @param {*} [options] Override http request option.
599
- * @deprecated
600
- * @throws {RequiredError}
601
- */
602
- setAutostopIntervalWorkspaceDeprecated(workspaceId: string, interval: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
603
- /**
604
- *
605
- * @summary [DEPRECATED] Start workspace
606
- * @param {string} workspaceId ID of the workspace
607
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
608
- * @param {*} [options] Override http request option.
609
- * @deprecated
610
- * @throws {RequiredError}
611
- */
612
- startWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
613
- /**
614
- *
615
- * @summary [DEPRECATED] Stop workspace
616
- * @param {string} workspaceId ID of the workspace
617
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
618
- * @param {*} [options] Override http request option.
619
- * @deprecated
620
- * @throws {RequiredError}
621
- */
622
- stopWorkspaceDeprecated(workspaceId: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
623
- /**
624
- *
625
- * @summary [DEPRECATED] Update public status
626
- * @param {string} workspaceId ID of the workspace
627
- * @param {boolean} isPublic Public status to set
628
- * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
629
- * @param {*} [options] Override http request option.
630
- * @deprecated
631
- * @throws {RequiredError}
632
- */
633
- updatePublicStatusWorkspaceDeprecated(workspaceId: string, isPublic: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
634
- }