@daytonaio/api-client 0.16.0 → 0.17.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 (71) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/api/api-keys-api.ts +16 -0
  3. package/api/docker-registry-api.ts +28 -0
  4. package/api/images-api.ts +20 -0
  5. package/api/nodes-api.ts +12 -0
  6. package/api/organizations-api.ts +301 -0
  7. package/api/preview-api.ts +4 -0
  8. package/api/toolbox-api.ts +144 -0
  9. package/api/workspace-api.ts +62 -8
  10. package/dist/api/api-keys-api.js +12 -0
  11. package/dist/api/docker-registry-api.js +21 -0
  12. package/dist/api/images-api.js +15 -0
  13. package/dist/api/nodes-api.js +9 -0
  14. package/dist/api/organizations-api.d.ts +71 -0
  15. package/dist/api/organizations-api.js +219 -0
  16. package/dist/api/preview-api.js +3 -0
  17. package/dist/api/toolbox-api.js +108 -0
  18. package/dist/api/workspace-api.d.ts +9 -8
  19. package/dist/api/workspace-api.js +43 -4
  20. package/dist/esm/api/api-keys-api.js +13 -1
  21. package/dist/esm/api/docker-registry-api.js +22 -1
  22. package/dist/esm/api/images-api.js +16 -1
  23. package/dist/esm/api/nodes-api.js +10 -1
  24. package/dist/esm/api/organizations-api.d.ts +71 -0
  25. package/dist/esm/api/organizations-api.js +220 -1
  26. package/dist/esm/api/preview-api.js +4 -1
  27. package/dist/esm/api/toolbox-api.js +109 -1
  28. package/dist/esm/api/workspace-api.d.ts +9 -8
  29. package/dist/esm/api/workspace-api.js +44 -5
  30. package/dist/esm/models/create-image.d.ts +2 -2
  31. package/dist/esm/models/create-organization.d.ts +0 -66
  32. package/dist/esm/models/create-workspace.d.ts +0 -12
  33. package/dist/esm/models/image-dto.d.ts +2 -2
  34. package/dist/esm/models/index.d.ts +2 -0
  35. package/dist/esm/models/index.js +2 -0
  36. package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
  37. package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
  38. package/dist/esm/models/organization-suspension.d.ts +30 -0
  39. package/dist/esm/models/organization-suspension.js +14 -0
  40. package/dist/esm/models/organization.d.ts +24 -0
  41. package/dist/esm/models/workspace-info.d.ts +2 -1
  42. package/dist/esm/models/workspace-state.d.ts +1 -1
  43. package/dist/esm/models/workspace-state.js +1 -1
  44. package/dist/esm/models/workspace.d.ts +7 -0
  45. package/dist/models/create-image.d.ts +2 -2
  46. package/dist/models/create-organization.d.ts +0 -66
  47. package/dist/models/create-workspace.d.ts +0 -12
  48. package/dist/models/image-dto.d.ts +2 -2
  49. package/dist/models/index.d.ts +2 -0
  50. package/dist/models/index.js +2 -0
  51. package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
  52. package/dist/models/list-workspaces-labels-parameter.js +15 -0
  53. package/dist/models/organization-suspension.d.ts +30 -0
  54. package/dist/models/organization-suspension.js +15 -0
  55. package/dist/models/organization.d.ts +24 -0
  56. package/dist/models/workspace-info.d.ts +2 -1
  57. package/dist/models/workspace-state.d.ts +1 -1
  58. package/dist/models/workspace-state.js +1 -1
  59. package/dist/models/workspace.d.ts +7 -0
  60. package/models/create-image.ts +2 -2
  61. package/models/create-organization.ts +0 -66
  62. package/models/create-workspace.ts +0 -12
  63. package/models/image-dto.ts +2 -2
  64. package/models/index.ts +2 -0
  65. package/models/list-workspaces-labels-parameter.ts +27 -0
  66. package/models/organization-suspension.ts +33 -0
  67. package/models/organization.ts +24 -0
  68. package/models/workspace-info.ts +2 -1
  69. package/models/workspace-state.ts +1 -1
  70. package/models/workspace.ts +7 -0
  71. package/package.json +1 -1
@@ -21,70 +21,4 @@ export interface CreateOrganization {
21
21
  * @memberof CreateOrganization
22
22
  */
23
23
  name: string;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof CreateOrganization
28
- */
29
- totalCpuQuota?: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof CreateOrganization
34
- */
35
- totalMemoryQuota?: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof CreateOrganization
40
- */
41
- totalDiskQuota?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof CreateOrganization
46
- */
47
- maxCpuPerWorkspace?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof CreateOrganization
52
- */
53
- maxMemoryPerWorkspace?: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof CreateOrganization
58
- */
59
- maxDiskPerWorkspace?: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof CreateOrganization
64
- */
65
- maxConcurrentWorkspaces?: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof CreateOrganization
70
- */
71
- workspaceQuota?: number;
72
- /**
73
- *
74
- * @type {number}
75
- * @memberof CreateOrganization
76
- */
77
- imageQuota?: number;
78
- /**
79
- *
80
- * @type {number}
81
- * @memberof CreateOrganization
82
- */
83
- maxImageSize?: number;
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof CreateOrganization
88
- */
89
- totalImageSize?: number;
90
24
  }
@@ -15,18 +15,6 @@
15
15
  * @interface CreateWorkspace
16
16
  */
17
17
  export interface CreateWorkspace {
18
- /**
19
- * The ID of the workspace
20
- * @type {string}
21
- * @memberof CreateWorkspace
22
- */
23
- id?: string;
24
- /**
25
- * The name of the workspace
26
- * @type {string}
27
- * @memberof CreateWorkspace
28
- */
29
- name?: string;
30
18
  /**
31
19
  * The image used for the workspace
32
20
  * @type {string}
@@ -60,10 +60,10 @@ export interface ImageDto {
60
60
  size: number | null;
61
61
  /**
62
62
  *
63
- * @type {string}
63
+ * @type {Array<string>}
64
64
  * @memberof ImageDto
65
65
  */
66
- entrypoint: string | null;
66
+ entrypoint: Array<string> | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -31,6 +31,7 @@ export * from './git-status';
31
31
  export * from './image-dto';
32
32
  export * from './image-state';
33
33
  export * from './list-branch-response';
34
+ export * from './list-workspaces-labels-parameter';
34
35
  export * from './lsp-completion-params';
35
36
  export * from './lsp-document-request';
36
37
  export * from './lsp-location';
@@ -40,6 +41,7 @@ export * from './match';
40
41
  export * from './organization';
41
42
  export * from './organization-invitation';
42
43
  export * from './organization-role';
44
+ export * from './organization-suspension';
43
45
  export * from './organization-user';
44
46
  export * from './paginated-images-dto';
45
47
  export * from './port-preview-url';
@@ -31,6 +31,7 @@ export * from './git-status';
31
31
  export * from './image-dto';
32
32
  export * from './image-state';
33
33
  export * from './list-branch-response';
34
+ export * from './list-workspaces-labels-parameter';
34
35
  export * from './lsp-completion-params';
35
36
  export * from './lsp-document-request';
36
37
  export * from './lsp-location';
@@ -40,6 +41,7 @@ export * from './match';
40
41
  export * from './organization';
41
42
  export * from './organization-invitation';
42
43
  export * from './organization-role';
44
+ export * from './organization-suspension';
43
45
  export * from './organization-user';
44
46
  export * from './paginated-images-dto';
45
47
  export * from './port-preview-url';
@@ -0,0 +1,26 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListWorkspacesLabelsParameter
16
+ */
17
+ export interface ListWorkspacesLabelsParameter {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof ListWorkspacesLabelsParameter
22
+ */
23
+ labels?: {
24
+ [key: string]: any;
25
+ };
26
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationSuspension
16
+ */
17
+ export interface OrganizationSuspension {
18
+ /**
19
+ * Suspension reason
20
+ * @type {string}
21
+ * @memberof OrganizationSuspension
22
+ */
23
+ reason: string;
24
+ /**
25
+ * Suspension until
26
+ * @type {Date}
27
+ * @memberof OrganizationSuspension
28
+ */
29
+ until: Date;
30
+ }
@@ -0,0 +1,14 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Daytona Workspaces
5
+ * Daytona Workspaces API Docs
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export {};
@@ -51,4 +51,28 @@ export interface Organization {
51
51
  * @memberof Organization
52
52
  */
53
53
  updatedAt: Date;
54
+ /**
55
+ * Suspended flag
56
+ * @type {boolean}
57
+ * @memberof Organization
58
+ */
59
+ suspended: boolean;
60
+ /**
61
+ * Suspended at
62
+ * @type {Date}
63
+ * @memberof Organization
64
+ */
65
+ suspendedAt: Date;
66
+ /**
67
+ * Suspended reason
68
+ * @type {string}
69
+ * @memberof Organization
70
+ */
71
+ suspensionReason: string;
72
+ /**
73
+ * Suspended until
74
+ * @type {Date}
75
+ * @memberof Organization
76
+ */
77
+ suspendedUntil: Date;
54
78
  }
@@ -22,9 +22,10 @@ export interface WorkspaceInfo {
22
22
  */
23
23
  created: string;
24
24
  /**
25
- * The name of the workspace
25
+ * Deprecated: The name of the workspace
26
26
  * @type {string}
27
27
  * @memberof WorkspaceInfo
28
+ * @deprecated
28
29
  */
29
30
  name: string;
30
31
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * The state of the workspace
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- *
15
+ * The state of the workspace
16
16
  * @export
17
17
  * @enum {string}
18
18
  */
@@ -27,8 +27,15 @@ export interface Workspace {
27
27
  * The name of the workspace
28
28
  * @type {string}
29
29
  * @memberof Workspace
30
+ * @deprecated
30
31
  */
31
32
  name: string;
33
+ /**
34
+ * The organization ID of the workspace
35
+ * @type {string}
36
+ * @memberof Workspace
37
+ */
38
+ organizationId: string;
32
39
  /**
33
40
  * The image used for the workspace
34
41
  * @type {string}
@@ -23,10 +23,10 @@ export interface CreateImage {
23
23
  name: string;
24
24
  /**
25
25
  * The entrypoint command for the image
26
- * @type {string}
26
+ * @type {Array<string>}
27
27
  * @memberof CreateImage
28
28
  */
29
- entrypoint?: string;
29
+ entrypoint?: Array<string>;
30
30
  /**
31
31
  * Whether the image is general
32
32
  * @type {boolean}
@@ -21,70 +21,4 @@ export interface CreateOrganization {
21
21
  * @memberof CreateOrganization
22
22
  */
23
23
  name: string;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof CreateOrganization
28
- */
29
- totalCpuQuota?: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof CreateOrganization
34
- */
35
- totalMemoryQuota?: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof CreateOrganization
40
- */
41
- totalDiskQuota?: number;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof CreateOrganization
46
- */
47
- maxCpuPerWorkspace?: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof CreateOrganization
52
- */
53
- maxMemoryPerWorkspace?: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof CreateOrganization
58
- */
59
- maxDiskPerWorkspace?: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof CreateOrganization
64
- */
65
- maxConcurrentWorkspaces?: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof CreateOrganization
70
- */
71
- workspaceQuota?: number;
72
- /**
73
- *
74
- * @type {number}
75
- * @memberof CreateOrganization
76
- */
77
- imageQuota?: number;
78
- /**
79
- *
80
- * @type {number}
81
- * @memberof CreateOrganization
82
- */
83
- maxImageSize?: number;
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof CreateOrganization
88
- */
89
- totalImageSize?: number;
90
24
  }
@@ -15,18 +15,6 @@
15
15
  * @interface CreateWorkspace
16
16
  */
17
17
  export interface CreateWorkspace {
18
- /**
19
- * The ID of the workspace
20
- * @type {string}
21
- * @memberof CreateWorkspace
22
- */
23
- id?: string;
24
- /**
25
- * The name of the workspace
26
- * @type {string}
27
- * @memberof CreateWorkspace
28
- */
29
- name?: string;
30
18
  /**
31
19
  * The image used for the workspace
32
20
  * @type {string}
@@ -60,10 +60,10 @@ export interface ImageDto {
60
60
  size: number | null;
61
61
  /**
62
62
  *
63
- * @type {string}
63
+ * @type {Array<string>}
64
64
  * @memberof ImageDto
65
65
  */
66
- entrypoint: string | null;
66
+ entrypoint: Array<string> | null;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -31,6 +31,7 @@ export * from './git-status';
31
31
  export * from './image-dto';
32
32
  export * from './image-state';
33
33
  export * from './list-branch-response';
34
+ export * from './list-workspaces-labels-parameter';
34
35
  export * from './lsp-completion-params';
35
36
  export * from './lsp-document-request';
36
37
  export * from './lsp-location';
@@ -40,6 +41,7 @@ export * from './match';
40
41
  export * from './organization';
41
42
  export * from './organization-invitation';
42
43
  export * from './organization-role';
44
+ export * from './organization-suspension';
43
45
  export * from './organization-user';
44
46
  export * from './paginated-images-dto';
45
47
  export * from './port-preview-url';
@@ -47,6 +47,7 @@ __exportStar(require("./git-status"), exports);
47
47
  __exportStar(require("./image-dto"), exports);
48
48
  __exportStar(require("./image-state"), exports);
49
49
  __exportStar(require("./list-branch-response"), exports);
50
+ __exportStar(require("./list-workspaces-labels-parameter"), exports);
50
51
  __exportStar(require("./lsp-completion-params"), exports);
51
52
  __exportStar(require("./lsp-document-request"), exports);
52
53
  __exportStar(require("./lsp-location"), exports);
@@ -56,6 +57,7 @@ __exportStar(require("./match"), exports);
56
57
  __exportStar(require("./organization"), exports);
57
58
  __exportStar(require("./organization-invitation"), exports);
58
59
  __exportStar(require("./organization-role"), exports);
60
+ __exportStar(require("./organization-suspension"), exports);
59
61
  __exportStar(require("./organization-user"), exports);
60
62
  __exportStar(require("./paginated-images-dto"), exports);
61
63
  __exportStar(require("./port-preview-url"), exports);
@@ -0,0 +1,26 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ListWorkspacesLabelsParameter
16
+ */
17
+ export interface ListWorkspacesLabelsParameter {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: any; }}
21
+ * @memberof ListWorkspacesLabelsParameter
22
+ */
23
+ labels?: {
24
+ [key: string]: any;
25
+ };
26
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface OrganizationSuspension
16
+ */
17
+ export interface OrganizationSuspension {
18
+ /**
19
+ * Suspension reason
20
+ * @type {string}
21
+ * @memberof OrganizationSuspension
22
+ */
23
+ reason: string;
24
+ /**
25
+ * Suspension until
26
+ * @type {Date}
27
+ * @memberof OrganizationSuspension
28
+ */
29
+ until: Date;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona Workspaces
6
+ * Daytona Workspaces API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,4 +51,28 @@ export interface Organization {
51
51
  * @memberof Organization
52
52
  */
53
53
  updatedAt: Date;
54
+ /**
55
+ * Suspended flag
56
+ * @type {boolean}
57
+ * @memberof Organization
58
+ */
59
+ suspended: boolean;
60
+ /**
61
+ * Suspended at
62
+ * @type {Date}
63
+ * @memberof Organization
64
+ */
65
+ suspendedAt: Date;
66
+ /**
67
+ * Suspended reason
68
+ * @type {string}
69
+ * @memberof Organization
70
+ */
71
+ suspensionReason: string;
72
+ /**
73
+ * Suspended until
74
+ * @type {Date}
75
+ * @memberof Organization
76
+ */
77
+ suspendedUntil: Date;
54
78
  }
@@ -22,9 +22,10 @@ export interface WorkspaceInfo {
22
22
  */
23
23
  created: string;
24
24
  /**
25
- * The name of the workspace
25
+ * Deprecated: The name of the workspace
26
26
  * @type {string}
27
27
  * @memberof WorkspaceInfo
28
+ * @deprecated
28
29
  */
29
30
  name: string;
30
31
  /**
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * The state of the workspace
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WorkspaceState = void 0;
17
17
  /**
18
- *
18
+ * The state of the workspace
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
@@ -27,8 +27,15 @@ export interface Workspace {
27
27
  * The name of the workspace
28
28
  * @type {string}
29
29
  * @memberof Workspace
30
+ * @deprecated
30
31
  */
31
32
  name: string;
33
+ /**
34
+ * The organization ID of the workspace
35
+ * @type {string}
36
+ * @memberof Workspace
37
+ */
38
+ organizationId: string;
32
39
  /**
33
40
  * The image used for the workspace
34
41
  * @type {string}
@@ -26,10 +26,10 @@ export interface CreateImage {
26
26
  name: string
27
27
  /**
28
28
  * The entrypoint command for the image
29
- * @type {string}
29
+ * @type {Array<string>}
30
30
  * @memberof CreateImage
31
31
  */
32
- entrypoint?: string
32
+ entrypoint?: Array<string>
33
33
  /**
34
34
  * Whether the image is general
35
35
  * @type {boolean}