@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
|
@@ -11,19 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
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
14
|
import globalAxios from 'axios';
|
|
24
15
|
// Some imports not used depending on template conditions
|
|
25
16
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from '../common';
|
|
27
18
|
// @ts-ignore
|
|
28
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
20
|
/**
|
|
@@ -40,7 +31,7 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
40
31
|
* @param {*} [options] Override http request option.
|
|
41
32
|
* @throws {RequiredError}
|
|
42
33
|
*/
|
|
43
|
-
createImage:
|
|
34
|
+
createImage: async (createImage, xDaytonaOrganizationID, options = {}) => {
|
|
44
35
|
// verify required parameter 'createImage' is not null or undefined
|
|
45
36
|
assertParamExists('createImage', 'createImage', createImage);
|
|
46
37
|
const localVarPath = `/images`;
|
|
@@ -53,13 +44,16 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
53
44
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
45
|
const localVarHeaderParameter = {};
|
|
55
46
|
const localVarQueryParameter = {};
|
|
47
|
+
// authentication bearer required
|
|
48
|
+
// http bearer authentication required
|
|
49
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
56
50
|
// authentication oauth2 required
|
|
57
51
|
// oauth required
|
|
58
|
-
|
|
52
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
53
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
59
54
|
if (xDaytonaOrganizationID != null) {
|
|
60
55
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
61
56
|
}
|
|
62
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63
57
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
58
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
59
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -68,7 +62,7 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
68
62
|
url: toPathString(localVarUrlObj),
|
|
69
63
|
options: localVarRequestOptions,
|
|
70
64
|
};
|
|
71
|
-
}
|
|
65
|
+
},
|
|
72
66
|
/**
|
|
73
67
|
*
|
|
74
68
|
* @summary List all images
|
|
@@ -78,7 +72,7 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
78
72
|
* @param {*} [options] Override http request option.
|
|
79
73
|
* @throws {RequiredError}
|
|
80
74
|
*/
|
|
81
|
-
getAllImages:
|
|
75
|
+
getAllImages: async (xDaytonaOrganizationID, limit, page, options = {}) => {
|
|
82
76
|
const localVarPath = `/images`;
|
|
83
77
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
78
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -89,9 +83,12 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
89
83
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
90
84
|
const localVarHeaderParameter = {};
|
|
91
85
|
const localVarQueryParameter = {};
|
|
86
|
+
// authentication bearer required
|
|
87
|
+
// http bearer authentication required
|
|
88
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
92
89
|
// authentication oauth2 required
|
|
93
90
|
// oauth required
|
|
94
|
-
|
|
91
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
95
92
|
if (limit !== undefined) {
|
|
96
93
|
localVarQueryParameter['limit'] = limit;
|
|
97
94
|
}
|
|
@@ -108,7 +105,7 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
108
105
|
url: toPathString(localVarUrlObj),
|
|
109
106
|
options: localVarRequestOptions,
|
|
110
107
|
};
|
|
111
|
-
}
|
|
108
|
+
},
|
|
112
109
|
/**
|
|
113
110
|
*
|
|
114
111
|
* @summary Delete image
|
|
@@ -117,11 +114,10 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
117
114
|
* @param {*} [options] Override http request option.
|
|
118
115
|
* @throws {RequiredError}
|
|
119
116
|
*/
|
|
120
|
-
removeImage:
|
|
117
|
+
removeImage: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
121
118
|
// verify required parameter 'id' is not null or undefined
|
|
122
119
|
assertParamExists('removeImage', 'id', id);
|
|
123
|
-
const localVarPath = `/images/{id}`
|
|
124
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
120
|
+
const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
125
121
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
122
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
123
|
let baseOptions;
|
|
@@ -131,9 +127,12 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
131
127
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
132
128
|
const localVarHeaderParameter = {};
|
|
133
129
|
const localVarQueryParameter = {};
|
|
130
|
+
// authentication bearer required
|
|
131
|
+
// http bearer authentication required
|
|
132
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
134
133
|
// authentication oauth2 required
|
|
135
134
|
// oauth required
|
|
136
|
-
|
|
135
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
137
136
|
if (xDaytonaOrganizationID != null) {
|
|
138
137
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
139
138
|
}
|
|
@@ -144,7 +143,50 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
144
143
|
url: toPathString(localVarUrlObj),
|
|
145
144
|
options: localVarRequestOptions,
|
|
146
145
|
};
|
|
147
|
-
}
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @summary Set image general status
|
|
150
|
+
* @param {string} id Image ID
|
|
151
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
152
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
153
|
+
* @param {*} [options] Override http request option.
|
|
154
|
+
* @throws {RequiredError}
|
|
155
|
+
*/
|
|
156
|
+
setImageGeneralStatus: async (id, setImageGeneralStatus, xDaytonaOrganizationID, options = {}) => {
|
|
157
|
+
// verify required parameter 'id' is not null or undefined
|
|
158
|
+
assertParamExists('setImageGeneralStatus', 'id', id);
|
|
159
|
+
// verify required parameter 'setImageGeneralStatus' is not null or undefined
|
|
160
|
+
assertParamExists('setImageGeneralStatus', 'setImageGeneralStatus', setImageGeneralStatus);
|
|
161
|
+
const localVarPath = `/images/{id}/general`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
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
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
169
|
+
const localVarHeaderParameter = {};
|
|
170
|
+
const localVarQueryParameter = {};
|
|
171
|
+
// authentication bearer required
|
|
172
|
+
// http bearer authentication required
|
|
173
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
174
|
+
// authentication oauth2 required
|
|
175
|
+
// oauth required
|
|
176
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
177
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
178
|
+
if (xDaytonaOrganizationID != null) {
|
|
179
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
180
|
+
}
|
|
181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
183
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
184
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setImageGeneralStatus, localVarRequestOptions, configuration);
|
|
185
|
+
return {
|
|
186
|
+
url: toPathString(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
148
190
|
/**
|
|
149
191
|
*
|
|
150
192
|
* @summary Toggle image state
|
|
@@ -154,13 +196,12 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
154
196
|
* @param {*} [options] Override http request option.
|
|
155
197
|
* @throws {RequiredError}
|
|
156
198
|
*/
|
|
157
|
-
toggleImageState:
|
|
199
|
+
toggleImageState: async (id, toggleState, xDaytonaOrganizationID, options = {}) => {
|
|
158
200
|
// verify required parameter 'id' is not null or undefined
|
|
159
201
|
assertParamExists('toggleImageState', 'id', id);
|
|
160
202
|
// verify required parameter 'toggleState' is not null or undefined
|
|
161
203
|
assertParamExists('toggleImageState', 'toggleState', toggleState);
|
|
162
|
-
const localVarPath = `/images/{id}/toggle`
|
|
163
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
204
|
+
const localVarPath = `/images/{id}/toggle`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
164
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
207
|
let baseOptions;
|
|
@@ -170,13 +211,16 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
170
211
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
171
212
|
const localVarHeaderParameter = {};
|
|
172
213
|
const localVarQueryParameter = {};
|
|
214
|
+
// authentication bearer required
|
|
215
|
+
// http bearer authentication required
|
|
216
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
173
217
|
// authentication oauth2 required
|
|
174
218
|
// oauth required
|
|
175
|
-
|
|
219
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
220
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
176
221
|
if (xDaytonaOrganizationID != null) {
|
|
177
222
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
178
223
|
}
|
|
179
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
180
224
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
225
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
226
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -185,7 +229,7 @@ export const ImagesApiAxiosParamCreator = function (configuration) {
|
|
|
185
229
|
url: toPathString(localVarUrlObj),
|
|
186
230
|
options: localVarRequestOptions,
|
|
187
231
|
};
|
|
188
|
-
}
|
|
232
|
+
},
|
|
189
233
|
};
|
|
190
234
|
};
|
|
191
235
|
/**
|
|
@@ -203,14 +247,12 @@ export const ImagesApiFp = function (configuration) {
|
|
|
203
247
|
* @param {*} [options] Override http request option.
|
|
204
248
|
* @throws {RequiredError}
|
|
205
249
|
*/
|
|
206
|
-
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
|
-
});
|
|
250
|
+
async createImage(createImage, xDaytonaOrganizationID, options) {
|
|
251
|
+
var _a, _b, _c;
|
|
252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createImage(createImage, xDaytonaOrganizationID, options);
|
|
253
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
254
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.createImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
255
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
214
256
|
},
|
|
215
257
|
/**
|
|
216
258
|
*
|
|
@@ -221,14 +263,12 @@ export const ImagesApiFp = function (configuration) {
|
|
|
221
263
|
* @param {*} [options] Override http request option.
|
|
222
264
|
* @throws {RequiredError}
|
|
223
265
|
*/
|
|
224
|
-
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
231
|
-
});
|
|
266
|
+
async getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
267
|
+
var _a, _b, _c;
|
|
268
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImages(xDaytonaOrganizationID, limit, page, options);
|
|
269
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
270
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.getAllImages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
232
272
|
},
|
|
233
273
|
/**
|
|
234
274
|
*
|
|
@@ -238,14 +278,28 @@ export const ImagesApiFp = function (configuration) {
|
|
|
238
278
|
* @param {*} [options] Override http request option.
|
|
239
279
|
* @throws {RequiredError}
|
|
240
280
|
*/
|
|
241
|
-
removeImage(id, xDaytonaOrganizationID, options) {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
281
|
+
async removeImage(id, xDaytonaOrganizationID, options) {
|
|
282
|
+
var _a, _b, _c;
|
|
283
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options);
|
|
284
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
285
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.removeImage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
286
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Set image general status
|
|
291
|
+
* @param {string} id Image ID
|
|
292
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
293
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
async setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
298
|
+
var _a, _b, _c;
|
|
299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options);
|
|
300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
301
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.setImageGeneralStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
249
303
|
},
|
|
250
304
|
/**
|
|
251
305
|
*
|
|
@@ -256,14 +310,12 @@ export const ImagesApiFp = function (configuration) {
|
|
|
256
310
|
* @param {*} [options] Override http request option.
|
|
257
311
|
* @throws {RequiredError}
|
|
258
312
|
*/
|
|
259
|
-
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
266
|
-
});
|
|
313
|
+
async toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
314
|
+
var _a, _b, _c;
|
|
315
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleImageState(id, toggleState, xDaytonaOrganizationID, options);
|
|
316
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
317
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImagesApi.toggleImageState']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
318
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
267
319
|
},
|
|
268
320
|
};
|
|
269
321
|
};
|
|
@@ -283,7 +335,9 @@ export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
283
335
|
* @throws {RequiredError}
|
|
284
336
|
*/
|
|
285
337
|
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
286
|
-
return localVarFp
|
|
338
|
+
return localVarFp
|
|
339
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
340
|
+
.then((request) => request(axios, basePath));
|
|
287
341
|
},
|
|
288
342
|
/**
|
|
289
343
|
*
|
|
@@ -295,7 +349,9 @@ export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
295
349
|
* @throws {RequiredError}
|
|
296
350
|
*/
|
|
297
351
|
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
298
|
-
return localVarFp
|
|
352
|
+
return localVarFp
|
|
353
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
354
|
+
.then((request) => request(axios, basePath));
|
|
299
355
|
},
|
|
300
356
|
/**
|
|
301
357
|
*
|
|
@@ -308,6 +364,20 @@ export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
308
364
|
removeImage(id, xDaytonaOrganizationID, options) {
|
|
309
365
|
return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
310
366
|
},
|
|
367
|
+
/**
|
|
368
|
+
*
|
|
369
|
+
* @summary Set image general status
|
|
370
|
+
* @param {string} id Image ID
|
|
371
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
372
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
377
|
+
return localVarFp
|
|
378
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
379
|
+
.then((request) => request(axios, basePath));
|
|
380
|
+
},
|
|
311
381
|
/**
|
|
312
382
|
*
|
|
313
383
|
* @summary Toggle image state
|
|
@@ -318,7 +388,9 @@ export const ImagesApiFactory = function (configuration, basePath, axios) {
|
|
|
318
388
|
* @throws {RequiredError}
|
|
319
389
|
*/
|
|
320
390
|
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
321
|
-
return localVarFp
|
|
391
|
+
return localVarFp
|
|
392
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
393
|
+
.then((request) => request(axios, basePath));
|
|
322
394
|
},
|
|
323
395
|
};
|
|
324
396
|
};
|
|
@@ -339,7 +411,9 @@ export class ImagesApi extends BaseAPI {
|
|
|
339
411
|
* @memberof ImagesApi
|
|
340
412
|
*/
|
|
341
413
|
createImage(createImage, xDaytonaOrganizationID, options) {
|
|
342
|
-
return ImagesApiFp(this.configuration)
|
|
414
|
+
return ImagesApiFp(this.configuration)
|
|
415
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
416
|
+
.then((request) => request(this.axios, this.basePath));
|
|
343
417
|
}
|
|
344
418
|
/**
|
|
345
419
|
*
|
|
@@ -352,7 +426,9 @@ export class ImagesApi extends BaseAPI {
|
|
|
352
426
|
* @memberof ImagesApi
|
|
353
427
|
*/
|
|
354
428
|
getAllImages(xDaytonaOrganizationID, limit, page, options) {
|
|
355
|
-
return ImagesApiFp(this.configuration)
|
|
429
|
+
return ImagesApiFp(this.configuration)
|
|
430
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
431
|
+
.then((request) => request(this.axios, this.basePath));
|
|
356
432
|
}
|
|
357
433
|
/**
|
|
358
434
|
*
|
|
@@ -364,7 +440,24 @@ export class ImagesApi extends BaseAPI {
|
|
|
364
440
|
* @memberof ImagesApi
|
|
365
441
|
*/
|
|
366
442
|
removeImage(id, xDaytonaOrganizationID, options) {
|
|
367
|
-
return ImagesApiFp(this.configuration)
|
|
443
|
+
return ImagesApiFp(this.configuration)
|
|
444
|
+
.removeImage(id, xDaytonaOrganizationID, options)
|
|
445
|
+
.then((request) => request(this.axios, this.basePath));
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
*
|
|
449
|
+
* @summary Set image general status
|
|
450
|
+
* @param {string} id Image ID
|
|
451
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
452
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
* @memberof ImagesApi
|
|
456
|
+
*/
|
|
457
|
+
setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options) {
|
|
458
|
+
return ImagesApiFp(this.configuration)
|
|
459
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
460
|
+
.then((request) => request(this.axios, this.basePath));
|
|
368
461
|
}
|
|
369
462
|
/**
|
|
370
463
|
*
|
|
@@ -377,6 +470,8 @@ export class ImagesApi extends BaseAPI {
|
|
|
377
470
|
* @memberof ImagesApi
|
|
378
471
|
*/
|
|
379
472
|
toggleImageState(id, toggleState, xDaytonaOrganizationID, options) {
|
|
380
|
-
return ImagesApiFp(this.configuration)
|
|
473
|
+
return ImagesApiFp(this.configuration)
|
|
474
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
475
|
+
.then((request) => request(this.axios, this.basePath));
|
|
381
476
|
}
|
|
382
477
|
}
|