@daytonaio/api-client 0.15.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.
- package/.openapi-generator/FILES +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
|
@@ -12,15 +12,6 @@
|
|
|
12
12
|
* https://openapi-generator.tech
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
16
|
exports.DockerRegistryApi = exports.DockerRegistryApiFactory = exports.DockerRegistryApiFp = exports.DockerRegistryApiAxiosParamCreator = void 0;
|
|
26
17
|
const axios_1 = require("axios");
|
|
@@ -43,7 +34,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
43
34
|
* @param {*} [options] Override http request option.
|
|
44
35
|
* @throws {RequiredError}
|
|
45
36
|
*/
|
|
46
|
-
createRegistry:
|
|
37
|
+
createRegistry: async (createDockerRegistry, xDaytonaOrganizationID, options = {}) => {
|
|
47
38
|
// verify required parameter 'createDockerRegistry' is not null or undefined
|
|
48
39
|
(0, common_1.assertParamExists)('createRegistry', 'createDockerRegistry', createDockerRegistry);
|
|
49
40
|
const localVarPath = `/docker-registry`;
|
|
@@ -56,13 +47,16 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
56
47
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
57
48
|
const localVarHeaderParameter = {};
|
|
58
49
|
const localVarQueryParameter = {};
|
|
50
|
+
// authentication bearer required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
59
53
|
// authentication oauth2 required
|
|
60
54
|
// oauth required
|
|
61
|
-
|
|
55
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
56
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
57
|
if (xDaytonaOrganizationID != null) {
|
|
63
58
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
64
59
|
}
|
|
65
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
66
60
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
61
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
62
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -71,7 +65,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
71
65
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
72
66
|
options: localVarRequestOptions,
|
|
73
67
|
};
|
|
74
|
-
}
|
|
68
|
+
},
|
|
75
69
|
/**
|
|
76
70
|
*
|
|
77
71
|
* @summary Delete registry
|
|
@@ -80,11 +74,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
80
74
|
* @param {*} [options] Override http request option.
|
|
81
75
|
* @throws {RequiredError}
|
|
82
76
|
*/
|
|
83
|
-
deleteRegistry:
|
|
77
|
+
deleteRegistry: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
84
78
|
// verify required parameter 'id' is not null or undefined
|
|
85
79
|
(0, common_1.assertParamExists)('deleteRegistry', 'id', id);
|
|
86
|
-
const localVarPath = `/docker-registry/{id}`
|
|
87
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
80
|
+
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
88
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
82
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
90
83
|
let baseOptions;
|
|
@@ -94,9 +87,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
94
87
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
95
88
|
const localVarHeaderParameter = {};
|
|
96
89
|
const localVarQueryParameter = {};
|
|
90
|
+
// authentication bearer required
|
|
91
|
+
// http bearer authentication required
|
|
92
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
97
93
|
// authentication oauth2 required
|
|
98
94
|
// oauth required
|
|
99
|
-
|
|
95
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
100
96
|
if (xDaytonaOrganizationID != null) {
|
|
101
97
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
102
98
|
}
|
|
@@ -107,7 +103,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
107
103
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
108
104
|
options: localVarRequestOptions,
|
|
109
105
|
};
|
|
110
|
-
}
|
|
106
|
+
},
|
|
111
107
|
/**
|
|
112
108
|
*
|
|
113
109
|
* @summary Get registry
|
|
@@ -116,11 +112,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
116
112
|
* @param {*} [options] Override http request option.
|
|
117
113
|
* @throws {RequiredError}
|
|
118
114
|
*/
|
|
119
|
-
getRegistry:
|
|
115
|
+
getRegistry: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
120
116
|
// verify required parameter 'id' is not null or undefined
|
|
121
117
|
(0, common_1.assertParamExists)('getRegistry', 'id', id);
|
|
122
|
-
const localVarPath = `/docker-registry/{id}`
|
|
123
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
118
|
+
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
124
119
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
120
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
121
|
let baseOptions;
|
|
@@ -130,9 +125,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
130
125
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
131
126
|
const localVarHeaderParameter = {};
|
|
132
127
|
const localVarQueryParameter = {};
|
|
128
|
+
// authentication bearer required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
133
131
|
// authentication oauth2 required
|
|
134
132
|
// oauth required
|
|
135
|
-
|
|
133
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
136
134
|
if (xDaytonaOrganizationID != null) {
|
|
137
135
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
138
136
|
}
|
|
@@ -143,7 +141,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
143
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
142
|
options: localVarRequestOptions,
|
|
145
143
|
};
|
|
146
|
-
}
|
|
144
|
+
},
|
|
147
145
|
/**
|
|
148
146
|
*
|
|
149
147
|
* @summary Get temporary registry access for pushing images
|
|
@@ -151,7 +149,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
151
149
|
* @param {*} [options] Override http request option.
|
|
152
150
|
* @throws {RequiredError}
|
|
153
151
|
*/
|
|
154
|
-
getTransientPushAccess:
|
|
152
|
+
getTransientPushAccess: async (xDaytonaOrganizationID, options = {}) => {
|
|
155
153
|
const localVarPath = `/docker-registry/registry-push-access`;
|
|
156
154
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
155
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -162,9 +160,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
162
160
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
163
161
|
const localVarHeaderParameter = {};
|
|
164
162
|
const localVarQueryParameter = {};
|
|
163
|
+
// authentication bearer required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
165
166
|
// authentication oauth2 required
|
|
166
167
|
// oauth required
|
|
167
|
-
|
|
168
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
168
169
|
if (xDaytonaOrganizationID != null) {
|
|
169
170
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
170
171
|
}
|
|
@@ -175,7 +176,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
175
176
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
177
|
options: localVarRequestOptions,
|
|
177
178
|
};
|
|
178
|
-
}
|
|
179
|
+
},
|
|
179
180
|
/**
|
|
180
181
|
*
|
|
181
182
|
* @summary List registries
|
|
@@ -183,7 +184,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
183
184
|
* @param {*} [options] Override http request option.
|
|
184
185
|
* @throws {RequiredError}
|
|
185
186
|
*/
|
|
186
|
-
listRegistries:
|
|
187
|
+
listRegistries: async (xDaytonaOrganizationID, options = {}) => {
|
|
187
188
|
const localVarPath = `/docker-registry`;
|
|
188
189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
189
190
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -194,9 +195,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
194
195
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
195
196
|
const localVarHeaderParameter = {};
|
|
196
197
|
const localVarQueryParameter = {};
|
|
198
|
+
// authentication bearer required
|
|
199
|
+
// http bearer authentication required
|
|
200
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
197
201
|
// authentication oauth2 required
|
|
198
202
|
// oauth required
|
|
199
|
-
|
|
203
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
200
204
|
if (xDaytonaOrganizationID != null) {
|
|
201
205
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
202
206
|
}
|
|
@@ -207,7 +211,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
207
211
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
208
212
|
options: localVarRequestOptions,
|
|
209
213
|
};
|
|
210
|
-
}
|
|
214
|
+
},
|
|
211
215
|
/**
|
|
212
216
|
*
|
|
213
217
|
* @summary Set default registry
|
|
@@ -216,11 +220,10 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
216
220
|
* @param {*} [options] Override http request option.
|
|
217
221
|
* @throws {RequiredError}
|
|
218
222
|
*/
|
|
219
|
-
setDefaultRegistry:
|
|
223
|
+
setDefaultRegistry: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
220
224
|
// verify required parameter 'id' is not null or undefined
|
|
221
225
|
(0, common_1.assertParamExists)('setDefaultRegistry', 'id', id);
|
|
222
|
-
const localVarPath = `/docker-registry/{id}/set-default`
|
|
223
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
226
|
+
const localVarPath = `/docker-registry/{id}/set-default`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
224
227
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
225
228
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
226
229
|
let baseOptions;
|
|
@@ -230,9 +233,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
230
233
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
231
234
|
const localVarHeaderParameter = {};
|
|
232
235
|
const localVarQueryParameter = {};
|
|
236
|
+
// authentication bearer required
|
|
237
|
+
// http bearer authentication required
|
|
238
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
233
239
|
// authentication oauth2 required
|
|
234
240
|
// oauth required
|
|
235
|
-
|
|
241
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
236
242
|
if (xDaytonaOrganizationID != null) {
|
|
237
243
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
238
244
|
}
|
|
@@ -243,7 +249,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
243
249
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
244
250
|
options: localVarRequestOptions,
|
|
245
251
|
};
|
|
246
|
-
}
|
|
252
|
+
},
|
|
247
253
|
/**
|
|
248
254
|
*
|
|
249
255
|
* @summary Update registry
|
|
@@ -253,13 +259,12 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
253
259
|
* @param {*} [options] Override http request option.
|
|
254
260
|
* @throws {RequiredError}
|
|
255
261
|
*/
|
|
256
|
-
updateRegistry:
|
|
262
|
+
updateRegistry: async (id, updateDockerRegistry, xDaytonaOrganizationID, options = {}) => {
|
|
257
263
|
// verify required parameter 'id' is not null or undefined
|
|
258
264
|
(0, common_1.assertParamExists)('updateRegistry', 'id', id);
|
|
259
265
|
// verify required parameter 'updateDockerRegistry' is not null or undefined
|
|
260
266
|
(0, common_1.assertParamExists)('updateRegistry', 'updateDockerRegistry', updateDockerRegistry);
|
|
261
|
-
const localVarPath = `/docker-registry/{id}`
|
|
262
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
267
|
+
const localVarPath = `/docker-registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
263
268
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
264
269
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
265
270
|
let baseOptions;
|
|
@@ -269,13 +274,16 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
269
274
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
270
275
|
const localVarHeaderParameter = {};
|
|
271
276
|
const localVarQueryParameter = {};
|
|
277
|
+
// authentication bearer required
|
|
278
|
+
// http bearer authentication required
|
|
279
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
272
280
|
// authentication oauth2 required
|
|
273
281
|
// oauth required
|
|
274
|
-
|
|
282
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
283
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
275
284
|
if (xDaytonaOrganizationID != null) {
|
|
276
285
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
277
286
|
}
|
|
278
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
279
287
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
280
288
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
281
289
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -284,7 +292,7 @@ const DockerRegistryApiAxiosParamCreator = function (configuration) {
|
|
|
284
292
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
285
293
|
options: localVarRequestOptions,
|
|
286
294
|
};
|
|
287
|
-
}
|
|
295
|
+
},
|
|
288
296
|
};
|
|
289
297
|
};
|
|
290
298
|
exports.DockerRegistryApiAxiosParamCreator = DockerRegistryApiAxiosParamCreator;
|
|
@@ -303,14 +311,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
303
311
|
* @param {*} [options] Override http request option.
|
|
304
312
|
* @throws {RequiredError}
|
|
305
313
|
*/
|
|
306
|
-
createRegistry(createDockerRegistry, xDaytonaOrganizationID, options) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
313
|
-
});
|
|
314
|
+
async createRegistry(createDockerRegistry, xDaytonaOrganizationID, options) {
|
|
315
|
+
var _a, _b, _c;
|
|
316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options);
|
|
317
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
318
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.createRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
319
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
314
320
|
},
|
|
315
321
|
/**
|
|
316
322
|
*
|
|
@@ -320,14 +326,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
320
326
|
* @param {*} [options] Override http request option.
|
|
321
327
|
* @throws {RequiredError}
|
|
322
328
|
*/
|
|
323
|
-
deleteRegistry(id, xDaytonaOrganizationID, options) {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
330
|
-
});
|
|
329
|
+
async deleteRegistry(id, xDaytonaOrganizationID, options) {
|
|
330
|
+
var _a, _b, _c;
|
|
331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRegistry(id, xDaytonaOrganizationID, options);
|
|
332
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
333
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.deleteRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
334
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
331
335
|
},
|
|
332
336
|
/**
|
|
333
337
|
*
|
|
@@ -337,14 +341,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
337
341
|
* @param {*} [options] Override http request option.
|
|
338
342
|
* @throws {RequiredError}
|
|
339
343
|
*/
|
|
340
|
-
getRegistry(id, xDaytonaOrganizationID, options) {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
-
});
|
|
344
|
+
async getRegistry(id, xDaytonaOrganizationID, options) {
|
|
345
|
+
var _a, _b, _c;
|
|
346
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegistry(id, xDaytonaOrganizationID, options);
|
|
347
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
348
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.getRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
349
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
348
350
|
},
|
|
349
351
|
/**
|
|
350
352
|
*
|
|
@@ -353,14 +355,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
353
355
|
* @param {*} [options] Override http request option.
|
|
354
356
|
* @throws {RequiredError}
|
|
355
357
|
*/
|
|
356
|
-
getTransientPushAccess(xDaytonaOrganizationID, options) {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
363
|
-
});
|
|
358
|
+
async getTransientPushAccess(xDaytonaOrganizationID, options) {
|
|
359
|
+
var _a, _b, _c;
|
|
360
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getTransientPushAccess(xDaytonaOrganizationID, options);
|
|
361
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
362
|
+
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;
|
|
363
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
366
|
*
|
|
@@ -369,14 +369,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
369
369
|
* @param {*} [options] Override http request option.
|
|
370
370
|
* @throws {RequiredError}
|
|
371
371
|
*/
|
|
372
|
-
listRegistries(xDaytonaOrganizationID, options) {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
379
|
-
});
|
|
372
|
+
async listRegistries(xDaytonaOrganizationID, options) {
|
|
373
|
+
var _a, _b, _c;
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listRegistries(xDaytonaOrganizationID, options);
|
|
375
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
376
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.listRegistries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
377
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
378
|
},
|
|
381
379
|
/**
|
|
382
380
|
*
|
|
@@ -386,14 +384,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
386
384
|
* @param {*} [options] Override http request option.
|
|
387
385
|
* @throws {RequiredError}
|
|
388
386
|
*/
|
|
389
|
-
setDefaultRegistry(id, xDaytonaOrganizationID, options) {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
396
|
-
});
|
|
387
|
+
async setDefaultRegistry(id, xDaytonaOrganizationID, options) {
|
|
388
|
+
var _a, _b, _c;
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setDefaultRegistry(id, xDaytonaOrganizationID, options);
|
|
390
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
391
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.setDefaultRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
392
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
397
393
|
},
|
|
398
394
|
/**
|
|
399
395
|
*
|
|
@@ -404,14 +400,12 @@ const DockerRegistryApiFp = function (configuration) {
|
|
|
404
400
|
* @param {*} [options] Override http request option.
|
|
405
401
|
* @throws {RequiredError}
|
|
406
402
|
*/
|
|
407
|
-
updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options) {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
414
|
-
});
|
|
403
|
+
async updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options) {
|
|
404
|
+
var _a, _b, _c;
|
|
405
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options);
|
|
406
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
407
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DockerRegistryApi.updateRegistry']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
408
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
415
409
|
},
|
|
416
410
|
};
|
|
417
411
|
};
|
|
@@ -432,7 +426,9 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
432
426
|
* @throws {RequiredError}
|
|
433
427
|
*/
|
|
434
428
|
createRegistry(createDockerRegistry, xDaytonaOrganizationID, options) {
|
|
435
|
-
return localVarFp
|
|
429
|
+
return localVarFp
|
|
430
|
+
.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options)
|
|
431
|
+
.then((request) => request(axios, basePath));
|
|
436
432
|
},
|
|
437
433
|
/**
|
|
438
434
|
*
|
|
@@ -464,7 +460,9 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
464
460
|
* @throws {RequiredError}
|
|
465
461
|
*/
|
|
466
462
|
getTransientPushAccess(xDaytonaOrganizationID, options) {
|
|
467
|
-
return localVarFp
|
|
463
|
+
return localVarFp
|
|
464
|
+
.getTransientPushAccess(xDaytonaOrganizationID, options)
|
|
465
|
+
.then((request) => request(axios, basePath));
|
|
468
466
|
},
|
|
469
467
|
/**
|
|
470
468
|
*
|
|
@@ -485,7 +483,9 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
485
483
|
* @throws {RequiredError}
|
|
486
484
|
*/
|
|
487
485
|
setDefaultRegistry(id, xDaytonaOrganizationID, options) {
|
|
488
|
-
return localVarFp
|
|
486
|
+
return localVarFp
|
|
487
|
+
.setDefaultRegistry(id, xDaytonaOrganizationID, options)
|
|
488
|
+
.then((request) => request(axios, basePath));
|
|
489
489
|
},
|
|
490
490
|
/**
|
|
491
491
|
*
|
|
@@ -497,7 +497,9 @@ const DockerRegistryApiFactory = function (configuration, basePath, axios) {
|
|
|
497
497
|
* @throws {RequiredError}
|
|
498
498
|
*/
|
|
499
499
|
updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options) {
|
|
500
|
-
return localVarFp
|
|
500
|
+
return localVarFp
|
|
501
|
+
.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options)
|
|
502
|
+
.then((request) => request(axios, basePath));
|
|
501
503
|
},
|
|
502
504
|
};
|
|
503
505
|
};
|
|
@@ -519,7 +521,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
519
521
|
* @memberof DockerRegistryApi
|
|
520
522
|
*/
|
|
521
523
|
createRegistry(createDockerRegistry, xDaytonaOrganizationID, options) {
|
|
522
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
524
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
525
|
+
.createRegistry(createDockerRegistry, xDaytonaOrganizationID, options)
|
|
526
|
+
.then((request) => request(this.axios, this.basePath));
|
|
523
527
|
}
|
|
524
528
|
/**
|
|
525
529
|
*
|
|
@@ -531,7 +535,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
531
535
|
* @memberof DockerRegistryApi
|
|
532
536
|
*/
|
|
533
537
|
deleteRegistry(id, xDaytonaOrganizationID, options) {
|
|
534
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
538
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
539
|
+
.deleteRegistry(id, xDaytonaOrganizationID, options)
|
|
540
|
+
.then((request) => request(this.axios, this.basePath));
|
|
535
541
|
}
|
|
536
542
|
/**
|
|
537
543
|
*
|
|
@@ -543,7 +549,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
543
549
|
* @memberof DockerRegistryApi
|
|
544
550
|
*/
|
|
545
551
|
getRegistry(id, xDaytonaOrganizationID, options) {
|
|
546
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
552
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
553
|
+
.getRegistry(id, xDaytonaOrganizationID, options)
|
|
554
|
+
.then((request) => request(this.axios, this.basePath));
|
|
547
555
|
}
|
|
548
556
|
/**
|
|
549
557
|
*
|
|
@@ -554,7 +562,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
554
562
|
* @memberof DockerRegistryApi
|
|
555
563
|
*/
|
|
556
564
|
getTransientPushAccess(xDaytonaOrganizationID, options) {
|
|
557
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
565
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
566
|
+
.getTransientPushAccess(xDaytonaOrganizationID, options)
|
|
567
|
+
.then((request) => request(this.axios, this.basePath));
|
|
558
568
|
}
|
|
559
569
|
/**
|
|
560
570
|
*
|
|
@@ -565,7 +575,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
565
575
|
* @memberof DockerRegistryApi
|
|
566
576
|
*/
|
|
567
577
|
listRegistries(xDaytonaOrganizationID, options) {
|
|
568
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
578
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
579
|
+
.listRegistries(xDaytonaOrganizationID, options)
|
|
580
|
+
.then((request) => request(this.axios, this.basePath));
|
|
569
581
|
}
|
|
570
582
|
/**
|
|
571
583
|
*
|
|
@@ -577,7 +589,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
577
589
|
* @memberof DockerRegistryApi
|
|
578
590
|
*/
|
|
579
591
|
setDefaultRegistry(id, xDaytonaOrganizationID, options) {
|
|
580
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
592
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
593
|
+
.setDefaultRegistry(id, xDaytonaOrganizationID, options)
|
|
594
|
+
.then((request) => request(this.axios, this.basePath));
|
|
581
595
|
}
|
|
582
596
|
/**
|
|
583
597
|
*
|
|
@@ -590,7 +604,9 @@ class DockerRegistryApi extends base_1.BaseAPI {
|
|
|
590
604
|
* @memberof DockerRegistryApi
|
|
591
605
|
*/
|
|
592
606
|
updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options) {
|
|
593
|
-
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
607
|
+
return (0, exports.DockerRegistryApiFp)(this.configuration)
|
|
608
|
+
.updateRegistry(id, updateDockerRegistry, xDaytonaOrganizationID, options)
|
|
609
|
+
.then((request) => request(this.axios, this.basePath));
|
|
594
610
|
}
|
|
595
611
|
}
|
|
596
612
|
exports.DockerRegistryApi = DockerRegistryApi;
|
package/dist/api/images-api.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import type { CreateImage } from '../models';
|
|
16
16
|
import type { ImageDto } from '../models';
|
|
17
17
|
import type { PaginatedImagesDto } from '../models';
|
|
18
|
+
import type { SetImageGeneralStatus } from '../models';
|
|
18
19
|
import type { ToggleState } from '../models';
|
|
19
20
|
/**
|
|
20
21
|
* ImagesApi - axios parameter creator
|
|
@@ -49,6 +50,16 @@ export declare const ImagesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
49
50
|
* @throws {RequiredError}
|
|
50
51
|
*/
|
|
51
52
|
removeImage: (id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @summary Set image general status
|
|
56
|
+
* @param {string} id Image ID
|
|
57
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
58
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
59
|
+
* @param {*} [options] Override http request option.
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
*/
|
|
62
|
+
setImageGeneralStatus: (id: string, setImageGeneralStatus: SetImageGeneralStatus, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
63
|
/**
|
|
53
64
|
*
|
|
54
65
|
* @summary Toggle image state
|
|
@@ -93,6 +104,16 @@ export declare const ImagesApiFp: (configuration?: Configuration) => {
|
|
|
93
104
|
* @throws {RequiredError}
|
|
94
105
|
*/
|
|
95
106
|
removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @summary Set image general status
|
|
110
|
+
* @param {string} id Image ID
|
|
111
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
112
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
setImageGeneralStatus(id: string, setImageGeneralStatus: SetImageGeneralStatus, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>>;
|
|
96
117
|
/**
|
|
97
118
|
*
|
|
98
119
|
* @summary Toggle image state
|
|
@@ -137,6 +158,16 @@ export declare const ImagesApiFactory: (configuration?: Configuration, basePath?
|
|
|
137
158
|
* @throws {RequiredError}
|
|
138
159
|
*/
|
|
139
160
|
removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @summary Set image general status
|
|
164
|
+
* @param {string} id Image ID
|
|
165
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
166
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
setImageGeneralStatus(id: string, setImageGeneralStatus: SetImageGeneralStatus, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto>;
|
|
140
171
|
/**
|
|
141
172
|
*
|
|
142
173
|
* @summary Toggle image state
|
|
@@ -186,6 +217,17 @@ export declare class ImagesApi extends BaseAPI {
|
|
|
186
217
|
* @memberof ImagesApi
|
|
187
218
|
*/
|
|
188
219
|
removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @summary Set image general status
|
|
223
|
+
* @param {string} id Image ID
|
|
224
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
225
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
* @memberof ImagesApi
|
|
229
|
+
*/
|
|
230
|
+
setImageGeneralStatus(id: string, setImageGeneralStatus: SetImageGeneralStatus, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImageDto, any>>;
|
|
189
231
|
/**
|
|
190
232
|
*
|
|
191
233
|
* @summary Toggle image state
|