@daytonaio/api-client 0.13.0 → 0.14.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 (78) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/api/docker-registry-api.ts +68 -0
  4. package/api/users-api.ts +84 -0
  5. package/api/workspace-api.ts +73 -0
  6. package/dist/api/docker-registry-api.d.ts +30 -0
  7. package/dist/api/docker-registry-api.js +62 -0
  8. package/dist/api/users-api.d.ts +38 -0
  9. package/dist/api/users-api.js +77 -0
  10. package/dist/api/workspace-api.d.ts +33 -0
  11. package/dist/api/workspace-api.js +69 -0
  12. package/dist/common.d.ts +1 -1
  13. package/dist/esm/api/docker-registry-api.d.ts +30 -0
  14. package/dist/esm/api/docker-registry-api.js +62 -0
  15. package/dist/esm/api/users-api.d.ts +38 -0
  16. package/dist/esm/api/users-api.js +77 -0
  17. package/dist/esm/api/workspace-api.d.ts +33 -0
  18. package/dist/esm/api/workspace-api.js +69 -0
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/models/create-docker-registry.d.ts +19 -0
  21. package/dist/esm/models/create-docker-registry.js +6 -1
  22. package/dist/esm/models/create-node.d.ts +72 -0
  23. package/dist/esm/models/create-node.js +10 -1
  24. package/dist/esm/models/create-user.d.ts +66 -0
  25. package/dist/esm/models/create-workspace.d.ts +6 -6
  26. package/dist/esm/models/create-workspace.js +6 -6
  27. package/dist/esm/models/docker-registry.d.ts +13 -0
  28. package/dist/esm/models/docker-registry.js +6 -1
  29. package/dist/esm/models/image-dto.d.ts +3 -11
  30. package/dist/esm/models/image-dto.js +1 -8
  31. package/dist/esm/models/image-state.d.ts +26 -0
  32. package/dist/esm/models/image-state.js +27 -0
  33. package/dist/esm/models/index.d.ts +4 -0
  34. package/dist/esm/models/index.js +4 -0
  35. package/dist/esm/models/registry-push-access-dto.d.ts +54 -0
  36. package/dist/esm/models/registry-push-access-dto.js +14 -0
  37. package/dist/esm/models/update-user-quota-dto.d.ts +84 -0
  38. package/dist/esm/models/update-user-quota-dto.js +14 -0
  39. package/dist/esm/models/workspace-state.d.ts +33 -0
  40. package/dist/esm/models/workspace-state.js +34 -0
  41. package/dist/esm/models/workspace.d.ts +12 -3
  42. package/dist/esm/models/workspace.js +7 -1
  43. package/dist/models/create-docker-registry.d.ts +19 -0
  44. package/dist/models/create-docker-registry.js +7 -0
  45. package/dist/models/create-node.d.ts +72 -0
  46. package/dist/models/create-node.js +11 -0
  47. package/dist/models/create-user.d.ts +66 -0
  48. package/dist/models/create-workspace.d.ts +6 -6
  49. package/dist/models/create-workspace.js +6 -6
  50. package/dist/models/docker-registry.d.ts +13 -0
  51. package/dist/models/docker-registry.js +7 -0
  52. package/dist/models/image-dto.d.ts +3 -11
  53. package/dist/models/image-dto.js +0 -9
  54. package/dist/models/image-state.d.ts +26 -0
  55. package/dist/models/image-state.js +30 -0
  56. package/dist/models/index.d.ts +4 -0
  57. package/dist/models/index.js +4 -0
  58. package/dist/models/registry-push-access-dto.d.ts +54 -0
  59. package/dist/models/registry-push-access-dto.js +15 -0
  60. package/dist/models/update-user-quota-dto.d.ts +84 -0
  61. package/dist/models/update-user-quota-dto.js +15 -0
  62. package/dist/models/workspace-state.d.ts +33 -0
  63. package/dist/models/workspace-state.js +37 -0
  64. package/dist/models/workspace.d.ts +12 -3
  65. package/dist/models/workspace.js +8 -0
  66. package/models/create-docker-registry.ts +22 -0
  67. package/models/create-node.ts +76 -0
  68. package/models/create-user.ts +66 -0
  69. package/models/create-workspace.ts +6 -6
  70. package/models/docker-registry.ts +16 -0
  71. package/models/image-dto.ts +5 -12
  72. package/models/image-state.ts +36 -0
  73. package/models/index.ts +4 -0
  74. package/models/registry-push-access-dto.ts +60 -0
  75. package/models/update-user-quota-dto.ts +90 -0
  76. package/models/workspace-state.ts +43 -0
  77. package/models/workspace.ts +17 -3
  78. package/package.json +1 -1
@@ -42,6 +42,7 @@ models/git-commit-response.ts
42
42
  models/git-repo-request.ts
43
43
  models/git-status.ts
44
44
  models/image-dto.ts
45
+ models/image-state.ts
45
46
  models/index.ts
46
47
  models/list-branch-response.ts
47
48
  models/lsp-completion-params.ts
@@ -54,6 +55,7 @@ models/paginated-images-dto.ts
54
55
  models/position.ts
55
56
  models/project-dir-response.ts
56
57
  models/range.ts
58
+ models/registry-push-access-dto.ts
57
59
  models/replace-request.ts
58
60
  models/replace-result.ts
59
61
  models/search-files-response.ts
@@ -62,9 +64,11 @@ models/session-execute-response.ts
62
64
  models/session.ts
63
65
  models/toggle-state.ts
64
66
  models/update-docker-registry.ts
67
+ models/update-user-quota-dto.ts
65
68
  models/usage-overview.ts
66
69
  models/workspace-info.ts
67
70
  models/workspace-labels.ts
71
+ models/workspace-state.ts
68
72
  models/workspace.ts
69
73
  package.json
70
74
  tsconfig.esm.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @daytonaio/api-client@0.13.0
1
+ ## @daytonaio/api-client@0.14.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @daytonaio/api-client@0.13.0 --save
39
+ npm install @daytonaio/api-client@0.14.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -26,6 +26,8 @@ import type { CreateDockerRegistry } from '../models';
26
26
  // @ts-ignore
27
27
  import type { DockerRegistry } from '../models';
28
28
  // @ts-ignore
29
+ import type { RegistryPushAccessDto } from '../models';
30
+ // @ts-ignore
29
31
  import type { UpdateDockerRegistry } from '../models';
30
32
  /**
31
33
  * DockerRegistryApi - axios parameter creator
@@ -140,6 +142,40 @@ export const DockerRegistryApiAxiosParamCreator = function (configuration?: Conf
140
142
 
141
143
 
142
144
 
145
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
146
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
148
+
149
+ return {
150
+ url: toPathString(localVarUrlObj),
151
+ options: localVarRequestOptions,
152
+ };
153
+ },
154
+ /**
155
+ *
156
+ * @summary Get temporary registry access for pushing images
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ getTransientPushAccess: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
161
+ const localVarPath = `/docker-registry/registry-push-access`;
162
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
163
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
164
+ let baseOptions;
165
+ if (configuration) {
166
+ baseOptions = configuration.baseOptions;
167
+ }
168
+
169
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
170
+ const localVarHeaderParameter = {} as any;
171
+ const localVarQueryParameter = {} as any;
172
+
173
+ // authentication oauth2 required
174
+ // oauth required
175
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
176
+
177
+
178
+
143
179
  setSearchParams(localVarUrlObj, localVarQueryParameter);
144
180
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
181
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -314,6 +350,18 @@ export const DockerRegistryApiFp = function(configuration?: Configuration) {
314
350
  const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.getRegistry']?.[localVarOperationServerIndex]?.url;
315
351
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
316
352
  },
353
+ /**
354
+ *
355
+ * @summary Get temporary registry access for pushing images
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegistryPushAccessDto>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientPushAccess(options);
361
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
362
+ const localVarOperationServerBasePath = operationServerMap['DockerRegistryApi.getTransientPushAccess']?.[localVarOperationServerIndex]?.url;
363
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
364
+ },
317
365
  /**
318
366
  *
319
367
  * @summary List registries
@@ -393,6 +441,15 @@ export const DockerRegistryApiFactory = function (configuration?: Configuration,
393
441
  getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry> {
394
442
  return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
395
443
  },
444
+ /**
445
+ *
446
+ * @summary Get temporary registry access for pushing images
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ getTransientPushAccess(options?: RawAxiosRequestConfig): AxiosPromise<RegistryPushAccessDto> {
451
+ return localVarFp.getTransientPushAccess(options).then((request) => request(axios, basePath));
452
+ },
396
453
  /**
397
454
  *
398
455
  * @summary List registries
@@ -469,6 +526,17 @@ export class DockerRegistryApi extends BaseAPI {
469
526
  return DockerRegistryApiFp(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
470
527
  }
471
528
 
529
+ /**
530
+ *
531
+ * @summary Get temporary registry access for pushing images
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ * @memberof DockerRegistryApi
535
+ */
536
+ public getTransientPushAccess(options?: RawAxiosRequestConfig) {
537
+ return DockerRegistryApiFp(this.configuration).getTransientPushAccess(options).then((request) => request(this.axios, this.basePath));
538
+ }
539
+
472
540
  /**
473
541
  *
474
542
  * @summary List registries
package/api/users-api.ts CHANGED
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { CreateUser } from '../models';
26
26
  // @ts-ignore
27
+ import type { UpdateUserQuotaDto } from '../models';
28
+ // @ts-ignore
27
29
  import type { UsageOverview } from '../models';
28
30
  /**
29
31
  * UsersApi - axios parameter creator
@@ -172,6 +174,50 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
172
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
174
176
 
177
+ return {
178
+ url: toPathString(localVarUrlObj),
179
+ options: localVarRequestOptions,
180
+ };
181
+ },
182
+ /**
183
+ *
184
+ * @summary Update user quota
185
+ * @param {string} id
186
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ updateUserQuota: async (id: string, updateUserQuotaDto: UpdateUserQuotaDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
191
+ // verify required parameter 'id' is not null or undefined
192
+ assertParamExists('updateUserQuota', 'id', id)
193
+ // verify required parameter 'updateUserQuotaDto' is not null or undefined
194
+ assertParamExists('updateUserQuota', 'updateUserQuotaDto', updateUserQuotaDto)
195
+ const localVarPath = `/users/{id}/quota`
196
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+
204
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
205
+ const localVarHeaderParameter = {} as any;
206
+ const localVarQueryParameter = {} as any;
207
+
208
+ // authentication oauth2 required
209
+ // oauth required
210
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
211
+
212
+
213
+
214
+ localVarHeaderParameter['Content-Type'] = 'application/json';
215
+
216
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
217
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
219
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserQuotaDto, localVarRequestOptions, configuration)
220
+
175
221
  return {
176
222
  url: toPathString(localVarUrlObj),
177
223
  options: localVarRequestOptions,
@@ -237,6 +283,20 @@ export const UsersApiFp = function(configuration?: Configuration) {
237
283
  const localVarOperationServerBasePath = operationServerMap['UsersApi.regenerateKeyPair']?.[localVarOperationServerIndex]?.url;
238
284
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
239
285
  },
286
+ /**
287
+ *
288
+ * @summary Update user quota
289
+ * @param {string} id
290
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ async updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserQuota(id, updateUserQuotaDto, options);
296
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
297
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.updateUserQuota']?.[localVarOperationServerIndex]?.url;
298
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
299
+ },
240
300
  }
241
301
  };
242
302
 
@@ -285,6 +345,17 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
285
345
  regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
286
346
  return localVarFp.regenerateKeyPair(id, options).then((request) => request(axios, basePath));
287
347
  },
348
+ /**
349
+ *
350
+ * @summary Update user quota
351
+ * @param {string} id
352
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): AxiosPromise<void> {
357
+ return localVarFp.updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(axios, basePath));
358
+ },
288
359
  };
289
360
  };
290
361
 
@@ -340,5 +411,18 @@ export class UsersApi extends BaseAPI {
340
411
  public regenerateKeyPair(id: string, options?: RawAxiosRequestConfig) {
341
412
  return UsersApiFp(this.configuration).regenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
342
413
  }
414
+
415
+ /**
416
+ *
417
+ * @summary Update user quota
418
+ * @param {string} id
419
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ * @memberof UsersApi
423
+ */
424
+ public updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig) {
425
+ return UsersApiFp(this.configuration).updateUserQuota(id, updateUserQuotaDto, options).then((request) => request(this.axios, this.basePath));
426
+ }
343
427
  }
344
428
 
@@ -33,6 +33,44 @@ import type { WorkspaceLabels } from '../models';
33
33
  */
34
34
  export const WorkspaceApiAxiosParamCreator = function (configuration?: Configuration) {
35
35
  return {
36
+ /**
37
+ *
38
+ * @summary Archive workspace
39
+ * @param {string} workspaceId
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ archiveWorkspace: async (workspaceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'workspaceId' is not null or undefined
45
+ assertParamExists('archiveWorkspace', 'workspaceId', workspaceId)
46
+ const localVarPath = `/workspace/{workspaceId}/archive`
47
+ .replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+
55
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
56
+ const localVarHeaderParameter = {} as any;
57
+ const localVarQueryParameter = {} as any;
58
+
59
+ // authentication oauth2 required
60
+ // oauth required
61
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
62
+
63
+
64
+
65
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
66
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
68
+
69
+ return {
70
+ url: toPathString(localVarUrlObj),
71
+ options: localVarRequestOptions,
72
+ };
73
+ },
36
74
  /**
37
75
  *
38
76
  * @summary Create workspace snapshot
@@ -495,6 +533,19 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
495
533
  export const WorkspaceApiFp = function(configuration?: Configuration) {
496
534
  const localVarAxiosParamCreator = WorkspaceApiAxiosParamCreator(configuration)
497
535
  return {
536
+ /**
537
+ *
538
+ * @summary Archive workspace
539
+ * @param {string} workspaceId
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ async archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
544
+ const localVarAxiosArgs = await localVarAxiosParamCreator.archiveWorkspace(workspaceId, options);
545
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
546
+ const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.archiveWorkspace']?.[localVarOperationServerIndex]?.url;
547
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
548
+ },
498
549
  /**
499
550
  *
500
551
  * @summary Create workspace snapshot
@@ -653,6 +704,16 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
653
704
  export const WorkspaceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
654
705
  const localVarFp = WorkspaceApiFp(configuration)
655
706
  return {
707
+ /**
708
+ *
709
+ * @summary Archive workspace
710
+ * @param {string} workspaceId
711
+ * @param {*} [options] Override http request option.
712
+ * @throws {RequiredError}
713
+ */
714
+ archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
715
+ return localVarFp.archiveWorkspace(workspaceId, options).then((request) => request(axios, basePath));
716
+ },
656
717
  /**
657
718
  *
658
719
  * @summary Create workspace snapshot
@@ -778,6 +839,18 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
778
839
  * @extends {BaseAPI}
779
840
  */
780
841
  export class WorkspaceApi extends BaseAPI {
842
+ /**
843
+ *
844
+ * @summary Archive workspace
845
+ * @param {string} workspaceId
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ * @memberof WorkspaceApi
849
+ */
850
+ public archiveWorkspace(workspaceId: string, options?: RawAxiosRequestConfig) {
851
+ return WorkspaceApiFp(this.configuration).archiveWorkspace(workspaceId, options).then((request) => request(this.axios, this.basePath));
852
+ }
853
+
781
854
  /**
782
855
  *
783
856
  * @summary Create workspace snapshot
@@ -14,6 +14,7 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { CreateDockerRegistry } from '../models';
16
16
  import type { DockerRegistry } from '../models';
17
+ import type { RegistryPushAccessDto } from '../models';
17
18
  import type { UpdateDockerRegistry } from '../models';
18
19
  /**
19
20
  * DockerRegistryApi - axios parameter creator
@@ -44,6 +45,13 @@ export declare const DockerRegistryApiAxiosParamCreator: (configuration?: Config
44
45
  * @throws {RequiredError}
45
46
  */
46
47
  getRegistry: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @summary Get temporary registry access for pushing images
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ getTransientPushAccess: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
47
55
  /**
48
56
  *
49
57
  * @summary List registries
@@ -98,6 +106,13 @@ export declare const DockerRegistryApiFp: (configuration?: Configuration) => {
98
106
  * @throws {RequiredError}
99
107
  */
100
108
  getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerRegistry>>;
109
+ /**
110
+ *
111
+ * @summary Get temporary registry access for pushing images
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegistryPushAccessDto>>;
101
116
  /**
102
117
  *
103
118
  * @summary List registries
@@ -152,6 +167,13 @@ export declare const DockerRegistryApiFactory: (configuration?: Configuration, b
152
167
  * @throws {RequiredError}
153
168
  */
154
169
  getRegistry(id: string, options?: RawAxiosRequestConfig): AxiosPromise<DockerRegistry>;
170
+ /**
171
+ *
172
+ * @summary Get temporary registry access for pushing images
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ getTransientPushAccess(options?: RawAxiosRequestConfig): AxiosPromise<RegistryPushAccessDto>;
155
177
  /**
156
178
  *
157
179
  * @summary List registries
@@ -211,6 +233,14 @@ export declare class DockerRegistryApi extends BaseAPI {
211
233
  * @memberof DockerRegistryApi
212
234
  */
213
235
  getRegistry(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerRegistry, any>>;
236
+ /**
237
+ *
238
+ * @summary Get temporary registry access for pushing images
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ * @memberof DockerRegistryApi
242
+ */
243
+ getTransientPushAccess(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegistryPushAccessDto, any>>;
214
244
  /**
215
245
  *
216
246
  * @summary List registries
@@ -132,6 +132,34 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
132
132
  options: localVarRequestOptions,
133
133
  };
134
134
  }),
135
+ /**
136
+ *
137
+ * @summary Get temporary registry access for pushing images
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getTransientPushAccess: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
142
+ const localVarPath = `/docker-registry/registry-push-access`;
143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
144
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
145
+ let baseOptions;
146
+ if (configuration) {
147
+ baseOptions = configuration.baseOptions;
148
+ }
149
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
150
+ const localVarHeaderParameter = {};
151
+ const localVarQueryParameter = {};
152
+ // authentication oauth2 required
153
+ // oauth required
154
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
155
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
+ return {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ }),
135
163
  /**
136
164
  *
137
165
  * @summary List registries
@@ -287,6 +315,21 @@ const DockerRegistryApiFp = function (configuration) {
287
315
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
288
316
  });
289
317
  },
318
+ /**
319
+ *
320
+ * @summary Get temporary registry access for pushing images
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ getTransientPushAccess(options) {
325
+ return __awaiter(this, void 0, void 0, function* () {
326
+ var _a, _b, _c;
327
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getTransientPushAccess(options);
328
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
329
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getTransientPushAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
330
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
331
+ });
332
+ },
290
333
  /**
291
334
  *
292
335
  * @summary List registries
@@ -375,6 +418,15 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
375
418
  getRegistry(id, options) {
376
419
  return localVarFp.getRegistry(id, options).then((request) => request(axios, basePath));
377
420
  },
421
+ /**
422
+ *
423
+ * @summary Get temporary registry access for pushing images
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ getTransientPushAccess(options) {
428
+ return localVarFp.getTransientPushAccess(options).then((request) => request(axios, basePath));
429
+ },
378
430
  /**
379
431
  *
380
432
  * @summary List registries
@@ -448,6 +500,16 @@ class DockerRegistryApi extends base_1.BaseAPI {
448
500
  getRegistry(id, options) {
449
501
  return (0, exports.DockerRegistryApiFp)(this.configuration).getRegistry(id, options).then((request) => request(this.axios, this.basePath));
450
502
  }
503
+ /**
504
+ *
505
+ * @summary Get temporary registry access for pushing images
506
+ * @param {*} [options] Override http request option.
507
+ * @throws {RequiredError}
508
+ * @memberof DockerRegistryApi
509
+ */
510
+ getTransientPushAccess(options) {
511
+ return (0, exports.DockerRegistryApiFp)(this.configuration).getTransientPushAccess(options).then((request) => request(this.axios, this.basePath));
512
+ }
451
513
  /**
452
514
  *
453
515
  * @summary List registries
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { CreateUser } from '../models';
16
+ import type { UpdateUserQuotaDto } from '../models';
16
17
  import type { UsageOverview } from '../models';
17
18
  /**
18
19
  * UsersApi - axios parameter creator
@@ -49,6 +50,15 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
49
50
  * @throws {RequiredError}
50
51
  */
51
52
  regenerateKeyPair: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ *
55
+ * @summary Update user quota
56
+ * @param {string} id
57
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ updateUserQuota: (id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
52
62
  };
53
63
  /**
54
64
  * UsersApi - functional programming interface
@@ -85,6 +95,15 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
85
95
  * @throws {RequiredError}
86
96
  */
87
97
  regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
98
+ /**
99
+ *
100
+ * @summary Update user quota
101
+ * @param {string} id
102
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
88
107
  };
89
108
  /**
90
109
  * UsersApi - factory interface
@@ -121,6 +140,15 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
121
140
  * @throws {RequiredError}
122
141
  */
123
142
  regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
143
+ /**
144
+ *
145
+ * @summary Update user quota
146
+ * @param {string} id
147
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): AxiosPromise<void>;
124
152
  };
125
153
  /**
126
154
  * UsersApi - object-oriented interface
@@ -163,4 +191,14 @@ export declare class UsersApi extends BaseAPI {
163
191
  * @memberof UsersApi
164
192
  */
165
193
  regenerateKeyPair(id: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
194
+ /**
195
+ *
196
+ * @summary Update user quota
197
+ * @param {string} id
198
+ * @param {UpdateUserQuotaDto} updateUserQuotaDto
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ * @memberof UsersApi
202
+ */
203
+ updateUserQuota(id: string, updateUserQuotaDto: UpdateUserQuotaDto, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
166
204
  }