@daytonaio/api-client 0.1.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 (122) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/DefaultApi.d.ts +551 -0
  6. package/dist/apis/DefaultApi.js +1645 -0
  7. package/dist/apis/DockerRegistryApi.d.ts +90 -0
  8. package/dist/apis/DockerRegistryApi.js +257 -0
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +20 -0
  11. package/dist/esm/apis/DefaultApi.d.ts +551 -0
  12. package/dist/esm/apis/DefaultApi.js +1641 -0
  13. package/dist/esm/apis/DockerRegistryApi.d.ts +90 -0
  14. package/dist/esm/apis/DockerRegistryApi.js +253 -0
  15. package/dist/esm/apis/index.d.ts +2 -0
  16. package/dist/esm/apis/index.js +4 -0
  17. package/dist/esm/index.d.ts +3 -0
  18. package/dist/esm/index.js +5 -0
  19. package/dist/esm/models/ApiKeyListDto.d.ts +44 -0
  20. package/dist/esm/models/ApiKeyListDto.js +51 -0
  21. package/dist/esm/models/ApiKeyResponseDto.d.ts +44 -0
  22. package/dist/esm/models/ApiKeyResponseDto.js +51 -0
  23. package/dist/esm/models/CreateApiKeyDto.d.ts +32 -0
  24. package/dist/esm/models/CreateApiKeyDto.js +43 -0
  25. package/dist/esm/models/CreateDockerRegistryDto.d.ts +62 -0
  26. package/dist/esm/models/CreateDockerRegistryDto.js +61 -0
  27. package/dist/esm/models/CreateWorkspaceDto.d.ts +64 -0
  28. package/dist/esm/models/CreateWorkspaceDto.js +63 -0
  29. package/dist/esm/models/ExecuteRequestDto.d.ts +38 -0
  30. package/dist/esm/models/ExecuteRequestDto.js +45 -0
  31. package/dist/esm/models/ExecuteResponseDto.d.ts +38 -0
  32. package/dist/esm/models/ExecuteResponseDto.js +47 -0
  33. package/dist/esm/models/GitAddRequestDto.d.ts +38 -0
  34. package/dist/esm/models/GitAddRequestDto.js +47 -0
  35. package/dist/esm/models/GitBranchRequestDto.d.ts +38 -0
  36. package/dist/esm/models/GitBranchRequestDto.js +47 -0
  37. package/dist/esm/models/GitCloneRequestDto.d.ts +62 -0
  38. package/dist/esm/models/GitCloneRequestDto.js +55 -0
  39. package/dist/esm/models/GitCommitRequestDto.d.ts +50 -0
  40. package/dist/esm/models/GitCommitRequestDto.js +55 -0
  41. package/dist/esm/models/GitRepoRequestDto.d.ts +44 -0
  42. package/dist/esm/models/GitRepoRequestDto.js +47 -0
  43. package/dist/esm/models/ReplaceRequestDto.d.ts +44 -0
  44. package/dist/esm/models/ReplaceRequestDto.js +51 -0
  45. package/dist/esm/models/UpdateDockerRegistryDto.d.ts +62 -0
  46. package/dist/esm/models/UpdateDockerRegistryDto.js +51 -0
  47. package/dist/esm/models/WorkspaceDto.d.ts +71 -0
  48. package/dist/esm/models/WorkspaceDto.js +66 -0
  49. package/dist/esm/models/WorkspaceInfoDto.d.ts +44 -0
  50. package/dist/esm/models/WorkspaceInfoDto.js +49 -0
  51. package/dist/esm/models/WorkspaceLabelsDto.d.ts +34 -0
  52. package/dist/esm/models/WorkspaceLabelsDto.js +43 -0
  53. package/dist/esm/models/index.d.ts +17 -0
  54. package/dist/esm/models/index.js +19 -0
  55. package/dist/esm/runtime.d.ts +181 -0
  56. package/dist/esm/runtime.js +326 -0
  57. package/dist/index.d.ts +3 -0
  58. package/dist/index.js +21 -0
  59. package/dist/models/ApiKeyListDto.d.ts +44 -0
  60. package/dist/models/ApiKeyListDto.js +59 -0
  61. package/dist/models/ApiKeyResponseDto.d.ts +44 -0
  62. package/dist/models/ApiKeyResponseDto.js +59 -0
  63. package/dist/models/CreateApiKeyDto.d.ts +32 -0
  64. package/dist/models/CreateApiKeyDto.js +51 -0
  65. package/dist/models/CreateDockerRegistryDto.d.ts +62 -0
  66. package/dist/models/CreateDockerRegistryDto.js +69 -0
  67. package/dist/models/CreateWorkspaceDto.d.ts +64 -0
  68. package/dist/models/CreateWorkspaceDto.js +71 -0
  69. package/dist/models/ExecuteRequestDto.d.ts +38 -0
  70. package/dist/models/ExecuteRequestDto.js +53 -0
  71. package/dist/models/ExecuteResponseDto.d.ts +38 -0
  72. package/dist/models/ExecuteResponseDto.js +55 -0
  73. package/dist/models/GitAddRequestDto.d.ts +38 -0
  74. package/dist/models/GitAddRequestDto.js +55 -0
  75. package/dist/models/GitBranchRequestDto.d.ts +38 -0
  76. package/dist/models/GitBranchRequestDto.js +55 -0
  77. package/dist/models/GitCloneRequestDto.d.ts +62 -0
  78. package/dist/models/GitCloneRequestDto.js +63 -0
  79. package/dist/models/GitCommitRequestDto.d.ts +50 -0
  80. package/dist/models/GitCommitRequestDto.js +63 -0
  81. package/dist/models/GitRepoRequestDto.d.ts +44 -0
  82. package/dist/models/GitRepoRequestDto.js +55 -0
  83. package/dist/models/ReplaceRequestDto.d.ts +44 -0
  84. package/dist/models/ReplaceRequestDto.js +59 -0
  85. package/dist/models/UpdateDockerRegistryDto.d.ts +62 -0
  86. package/dist/models/UpdateDockerRegistryDto.js +59 -0
  87. package/dist/models/WorkspaceDto.d.ts +71 -0
  88. package/dist/models/WorkspaceDto.js +74 -0
  89. package/dist/models/WorkspaceInfoDto.d.ts +44 -0
  90. package/dist/models/WorkspaceInfoDto.js +57 -0
  91. package/dist/models/WorkspaceLabelsDto.d.ts +34 -0
  92. package/dist/models/WorkspaceLabelsDto.js +51 -0
  93. package/dist/models/index.d.ts +17 -0
  94. package/dist/models/index.js +35 -0
  95. package/dist/runtime.d.ts +181 -0
  96. package/dist/runtime.js +341 -0
  97. package/package.json +22 -0
  98. package/src/apis/DefaultApi.ts +2380 -0
  99. package/src/apis/DockerRegistryApi.ts +318 -0
  100. package/src/apis/index.ts +4 -0
  101. package/src/index.ts +5 -0
  102. package/src/models/ApiKeyListDto.ts +84 -0
  103. package/src/models/ApiKeyResponseDto.ts +84 -0
  104. package/src/models/CreateApiKeyDto.ts +66 -0
  105. package/src/models/CreateDockerRegistryDto.ts +110 -0
  106. package/src/models/CreateWorkspaceDto.ts +111 -0
  107. package/src/models/ExecuteRequestDto.ts +74 -0
  108. package/src/models/ExecuteResponseDto.ts +75 -0
  109. package/src/models/GitAddRequestDto.ts +75 -0
  110. package/src/models/GitBranchRequestDto.ts +75 -0
  111. package/src/models/GitCloneRequestDto.ts +107 -0
  112. package/src/models/GitCommitRequestDto.ts +93 -0
  113. package/src/models/GitRepoRequestDto.ts +82 -0
  114. package/src/models/ReplaceRequestDto.ts +84 -0
  115. package/src/models/UpdateDockerRegistryDto.ts +105 -0
  116. package/src/models/WorkspaceDto.ts +127 -0
  117. package/src/models/WorkspaceInfoDto.ts +83 -0
  118. package/src/models/WorkspaceLabelsDto.ts +66 -0
  119. package/src/models/index.ts +19 -0
  120. package/src/runtime.ts +426 -0
  121. package/tsconfig.esm.json +7 -0
  122. package/tsconfig.json +16 -0
@@ -0,0 +1,90 @@
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 * as runtime from '../runtime';
13
+ import type { CreateDockerRegistryDto, UpdateDockerRegistryDto } from '../models/index';
14
+ export interface DockerRegistryControllerCreateRequest {
15
+ createDockerRegistryDto: CreateDockerRegistryDto;
16
+ }
17
+ export interface DockerRegistryControllerFindOneRequest {
18
+ id: string;
19
+ }
20
+ export interface DockerRegistryControllerRemoveRequest {
21
+ id: string;
22
+ }
23
+ export interface DockerRegistryControllerSetDefaultRequest {
24
+ id: string;
25
+ }
26
+ export interface DockerRegistryControllerUpdateRequest {
27
+ id: string;
28
+ updateDockerRegistryDto: UpdateDockerRegistryDto;
29
+ }
30
+ /**
31
+ *
32
+ */
33
+ export declare class DockerRegistryApi extends runtime.BaseAPI {
34
+ /**
35
+ * Create a new docker registry
36
+ */
37
+ dockerRegistryControllerCreateRaw(requestParameters: DockerRegistryControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
38
+ /**
39
+ * Create a new docker registry
40
+ */
41
+ dockerRegistryControllerCreate(requestParameters: DockerRegistryControllerCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
42
+ /**
43
+ * Get all docker registries
44
+ */
45
+ dockerRegistryControllerFindAllRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<object>>>;
46
+ /**
47
+ * Get all docker registries
48
+ */
49
+ dockerRegistryControllerFindAll(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<object>>;
50
+ /**
51
+ * Get a docker registry by id
52
+ */
53
+ dockerRegistryControllerFindOneRaw(requestParameters: DockerRegistryControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
54
+ /**
55
+ * Get a docker registry by id
56
+ */
57
+ dockerRegistryControllerFindOne(requestParameters: DockerRegistryControllerFindOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
58
+ /**
59
+ * Get the default docker registry
60
+ */
61
+ dockerRegistryControllerGetDefaultRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
62
+ /**
63
+ * Get the default docker registry
64
+ */
65
+ dockerRegistryControllerGetDefault(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
66
+ /**
67
+ * Delete a docker registry
68
+ */
69
+ dockerRegistryControllerRemoveRaw(requestParameters: DockerRegistryControllerRemoveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
+ /**
71
+ * Delete a docker registry
72
+ */
73
+ dockerRegistryControllerRemove(requestParameters: DockerRegistryControllerRemoveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
74
+ /**
75
+ * Set a docker registry as default
76
+ */
77
+ dockerRegistryControllerSetDefaultRaw(requestParameters: DockerRegistryControllerSetDefaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
78
+ /**
79
+ * Set a docker registry as default
80
+ */
81
+ dockerRegistryControllerSetDefault(requestParameters: DockerRegistryControllerSetDefaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
82
+ /**
83
+ * Update a docker registry
84
+ */
85
+ dockerRegistryControllerUpdateRaw(requestParameters: DockerRegistryControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
86
+ /**
87
+ * Update a docker registry
88
+ */
89
+ dockerRegistryControllerUpdate(requestParameters: DockerRegistryControllerUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
90
+ }
@@ -0,0 +1,253 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { CreateDockerRegistryDtoToJSON, UpdateDockerRegistryDtoToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class DockerRegistryApi extends runtime.BaseAPI {
29
+ /**
30
+ * Create a new docker registry
31
+ */
32
+ dockerRegistryControllerCreateRaw(requestParameters, initOverrides) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ if (requestParameters['createDockerRegistryDto'] == null) {
35
+ throw new runtime.RequiredError('createDockerRegistryDto', 'Required parameter "createDockerRegistryDto" was null or undefined when calling dockerRegistryControllerCreate().');
36
+ }
37
+ const queryParameters = {};
38
+ const headerParameters = {};
39
+ headerParameters['Content-Type'] = 'application/json';
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ // oauth required
42
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
43
+ }
44
+ const response = yield this.request({
45
+ path: `/docker-registry`,
46
+ method: 'POST',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ body: CreateDockerRegistryDtoToJSON(requestParameters['createDockerRegistryDto']),
50
+ }, initOverrides);
51
+ return new runtime.JSONApiResponse(response);
52
+ });
53
+ }
54
+ /**
55
+ * Create a new docker registry
56
+ */
57
+ dockerRegistryControllerCreate(requestParameters, initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const response = yield this.dockerRegistryControllerCreateRaw(requestParameters, initOverrides);
60
+ return yield response.value();
61
+ });
62
+ }
63
+ /**
64
+ * Get all docker registries
65
+ */
66
+ dockerRegistryControllerFindAllRaw(initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const queryParameters = {};
69
+ const headerParameters = {};
70
+ if (this.configuration && this.configuration.accessToken) {
71
+ // oauth required
72
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
73
+ }
74
+ const response = yield this.request({
75
+ path: `/docker-registry`,
76
+ method: 'GET',
77
+ headers: headerParameters,
78
+ query: queryParameters,
79
+ }, initOverrides);
80
+ return new runtime.JSONApiResponse(response);
81
+ });
82
+ }
83
+ /**
84
+ * Get all docker registries
85
+ */
86
+ dockerRegistryControllerFindAll(initOverrides) {
87
+ return __awaiter(this, void 0, void 0, function* () {
88
+ const response = yield this.dockerRegistryControllerFindAllRaw(initOverrides);
89
+ return yield response.value();
90
+ });
91
+ }
92
+ /**
93
+ * Get a docker registry by id
94
+ */
95
+ dockerRegistryControllerFindOneRaw(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ if (requestParameters['id'] == null) {
98
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dockerRegistryControllerFindOne().');
99
+ }
100
+ const queryParameters = {};
101
+ const headerParameters = {};
102
+ if (this.configuration && this.configuration.accessToken) {
103
+ // oauth required
104
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
105
+ }
106
+ const response = yield this.request({
107
+ path: `/docker-registry/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
108
+ method: 'GET',
109
+ headers: headerParameters,
110
+ query: queryParameters,
111
+ }, initOverrides);
112
+ return new runtime.JSONApiResponse(response);
113
+ });
114
+ }
115
+ /**
116
+ * Get a docker registry by id
117
+ */
118
+ dockerRegistryControllerFindOne(requestParameters, initOverrides) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const response = yield this.dockerRegistryControllerFindOneRaw(requestParameters, initOverrides);
121
+ return yield response.value();
122
+ });
123
+ }
124
+ /**
125
+ * Get the default docker registry
126
+ */
127
+ dockerRegistryControllerGetDefaultRaw(initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const queryParameters = {};
130
+ const headerParameters = {};
131
+ if (this.configuration && this.configuration.accessToken) {
132
+ // oauth required
133
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
134
+ }
135
+ const response = yield this.request({
136
+ path: `/docker-registry/default`,
137
+ method: 'GET',
138
+ headers: headerParameters,
139
+ query: queryParameters,
140
+ }, initOverrides);
141
+ return new runtime.JSONApiResponse(response);
142
+ });
143
+ }
144
+ /**
145
+ * Get the default docker registry
146
+ */
147
+ dockerRegistryControllerGetDefault(initOverrides) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ const response = yield this.dockerRegistryControllerGetDefaultRaw(initOverrides);
150
+ return yield response.value();
151
+ });
152
+ }
153
+ /**
154
+ * Delete a docker registry
155
+ */
156
+ dockerRegistryControllerRemoveRaw(requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ if (requestParameters['id'] == null) {
159
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dockerRegistryControllerRemove().');
160
+ }
161
+ const queryParameters = {};
162
+ const headerParameters = {};
163
+ if (this.configuration && this.configuration.accessToken) {
164
+ // oauth required
165
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
166
+ }
167
+ const response = yield this.request({
168
+ path: `/docker-registry/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
169
+ method: 'DELETE',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ }, initOverrides);
173
+ return new runtime.VoidApiResponse(response);
174
+ });
175
+ }
176
+ /**
177
+ * Delete a docker registry
178
+ */
179
+ dockerRegistryControllerRemove(requestParameters, initOverrides) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ yield this.dockerRegistryControllerRemoveRaw(requestParameters, initOverrides);
182
+ });
183
+ }
184
+ /**
185
+ * Set a docker registry as default
186
+ */
187
+ dockerRegistryControllerSetDefaultRaw(requestParameters, initOverrides) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters['id'] == null) {
190
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dockerRegistryControllerSetDefault().');
191
+ }
192
+ const queryParameters = {};
193
+ const headerParameters = {};
194
+ if (this.configuration && this.configuration.accessToken) {
195
+ // oauth required
196
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
197
+ }
198
+ const response = yield this.request({
199
+ path: `/docker-registry/{id}/set-default`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
200
+ method: 'POST',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ }, initOverrides);
204
+ return new runtime.JSONApiResponse(response);
205
+ });
206
+ }
207
+ /**
208
+ * Set a docker registry as default
209
+ */
210
+ dockerRegistryControllerSetDefault(requestParameters, initOverrides) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ const response = yield this.dockerRegistryControllerSetDefaultRaw(requestParameters, initOverrides);
213
+ return yield response.value();
214
+ });
215
+ }
216
+ /**
217
+ * Update a docker registry
218
+ */
219
+ dockerRegistryControllerUpdateRaw(requestParameters, initOverrides) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ if (requestParameters['id'] == null) {
222
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dockerRegistryControllerUpdate().');
223
+ }
224
+ if (requestParameters['updateDockerRegistryDto'] == null) {
225
+ throw new runtime.RequiredError('updateDockerRegistryDto', 'Required parameter "updateDockerRegistryDto" was null or undefined when calling dockerRegistryControllerUpdate().');
226
+ }
227
+ const queryParameters = {};
228
+ const headerParameters = {};
229
+ headerParameters['Content-Type'] = 'application/json';
230
+ if (this.configuration && this.configuration.accessToken) {
231
+ // oauth required
232
+ headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2", ["openid", "profile", "email"]);
233
+ }
234
+ const response = yield this.request({
235
+ path: `/docker-registry/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
236
+ method: 'PATCH',
237
+ headers: headerParameters,
238
+ query: queryParameters,
239
+ body: UpdateDockerRegistryDtoToJSON(requestParameters['updateDockerRegistryDto']),
240
+ }, initOverrides);
241
+ return new runtime.JSONApiResponse(response);
242
+ });
243
+ }
244
+ /**
245
+ * Update a docker registry
246
+ */
247
+ dockerRegistryControllerUpdate(requestParameters, initOverrides) {
248
+ return __awaiter(this, void 0, void 0, function* () {
249
+ const response = yield this.dockerRegistryControllerUpdateRaw(requestParameters, initOverrides);
250
+ return yield response.value();
251
+ });
252
+ }
253
+ }
@@ -0,0 +1,2 @@
1
+ export * from './DefaultApi';
2
+ export * from './DockerRegistryApi';
@@ -0,0 +1,4 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './DefaultApi';
4
+ export * from './DockerRegistryApi';
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,44 @@
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 ApiKeyListDto
16
+ */
17
+ export interface ApiKeyListDto {
18
+ /**
19
+ * The name of the API key
20
+ * @type {string}
21
+ * @memberof ApiKeyListDto
22
+ */
23
+ name: string;
24
+ /**
25
+ * The masked API key value
26
+ * @type {string}
27
+ * @memberof ApiKeyListDto
28
+ */
29
+ value: string;
30
+ /**
31
+ * When the API key was created
32
+ * @type {Date}
33
+ * @memberof ApiKeyListDto
34
+ */
35
+ createdAt: Date;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ApiKeyListDto interface.
39
+ */
40
+ export declare function instanceOfApiKeyListDto(value: object): value is ApiKeyListDto;
41
+ export declare function ApiKeyListDtoFromJSON(json: any): ApiKeyListDto;
42
+ export declare function ApiKeyListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyListDto;
43
+ export declare function ApiKeyListDtoToJSON(json: any): ApiKeyListDto;
44
+ export declare function ApiKeyListDtoToJSONTyped(value?: ApiKeyListDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ /**
15
+ * Check if a given object implements the ApiKeyListDto interface.
16
+ */
17
+ export function instanceOfApiKeyListDto(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ApiKeyListDtoFromJSON(json) {
27
+ return ApiKeyListDtoFromJSONTyped(json, false);
28
+ }
29
+ export function ApiKeyListDtoFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'],
35
+ 'value': json['value'],
36
+ 'createdAt': (new Date(json['createdAt'])),
37
+ };
38
+ }
39
+ export function ApiKeyListDtoToJSON(json) {
40
+ return ApiKeyListDtoToJSONTyped(json, false);
41
+ }
42
+ export function ApiKeyListDtoToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'name': value['name'],
48
+ 'value': value['value'],
49
+ 'createdAt': ((value['createdAt']).toISOString()),
50
+ };
51
+ }
@@ -0,0 +1,44 @@
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 ApiKeyResponseDto
16
+ */
17
+ export interface ApiKeyResponseDto {
18
+ /**
19
+ * The name of the API key
20
+ * @type {string}
21
+ * @memberof ApiKeyResponseDto
22
+ */
23
+ name: string;
24
+ /**
25
+ * The API key value
26
+ * @type {string}
27
+ * @memberof ApiKeyResponseDto
28
+ */
29
+ value: string;
30
+ /**
31
+ * When the API key was created
32
+ * @type {Date}
33
+ * @memberof ApiKeyResponseDto
34
+ */
35
+ createdAt: Date;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ApiKeyResponseDto interface.
39
+ */
40
+ export declare function instanceOfApiKeyResponseDto(value: object): value is ApiKeyResponseDto;
41
+ export declare function ApiKeyResponseDtoFromJSON(json: any): ApiKeyResponseDto;
42
+ export declare function ApiKeyResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyResponseDto;
43
+ export declare function ApiKeyResponseDtoToJSON(json: any): ApiKeyResponseDto;
44
+ export declare function ApiKeyResponseDtoToJSONTyped(value?: ApiKeyResponseDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ /**
15
+ * Check if a given object implements the ApiKeyResponseDto interface.
16
+ */
17
+ export function instanceOfApiKeyResponseDto(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('value' in value) || value['value'] === undefined)
21
+ return false;
22
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function ApiKeyResponseDtoFromJSON(json) {
27
+ return ApiKeyResponseDtoFromJSONTyped(json, false);
28
+ }
29
+ export function ApiKeyResponseDtoFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'],
35
+ 'value': json['value'],
36
+ 'createdAt': (new Date(json['createdAt'])),
37
+ };
38
+ }
39
+ export function ApiKeyResponseDtoToJSON(json) {
40
+ return ApiKeyResponseDtoToJSONTyped(json, false);
41
+ }
42
+ export function ApiKeyResponseDtoToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'name': value['name'],
48
+ 'value': value['value'],
49
+ 'createdAt': ((value['createdAt']).toISOString()),
50
+ };
51
+ }
@@ -0,0 +1,32 @@
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 CreateApiKeyDto
16
+ */
17
+ export interface CreateApiKeyDto {
18
+ /**
19
+ * The name of the API key
20
+ * @type {string}
21
+ * @memberof CreateApiKeyDto
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateApiKeyDto interface.
27
+ */
28
+ export declare function instanceOfCreateApiKeyDto(value: object): value is CreateApiKeyDto;
29
+ export declare function CreateApiKeyDtoFromJSON(json: any): CreateApiKeyDto;
30
+ export declare function CreateApiKeyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiKeyDto;
31
+ export declare function CreateApiKeyDtoToJSON(json: any): CreateApiKeyDto;
32
+ export declare function CreateApiKeyDtoToJSONTyped(value?: CreateApiKeyDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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
+ /**
15
+ * Check if a given object implements the CreateApiKeyDto interface.
16
+ */
17
+ export function instanceOfCreateApiKeyDto(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function CreateApiKeyDtoFromJSON(json) {
23
+ return CreateApiKeyDtoFromJSONTyped(json, false);
24
+ }
25
+ export function CreateApiKeyDtoFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ };
32
+ }
33
+ export function CreateApiKeyDtoToJSON(json) {
34
+ return CreateApiKeyDtoToJSONTyped(json, false);
35
+ }
36
+ export function CreateApiKeyDtoToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ };
43
+ }