@daytonaio/api-client 0.15.0 → 0.16.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 +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +396 -324
- package/api/docker-registry-api.ts +703 -549
- package/api/images-api.ts +576 -346
- package/api/nodes-api.ts +250 -213
- package/api/organizations-api.ts +2203 -1671
- package/api/preview-api.ts +326 -0
- package/api/toolbox-api.ts +4507 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1482 -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 +54 -63
- package/dist/api/docker-registry-api.js +102 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +146 -66
- package/dist/api/nodes-api.js +37 -47
- package/dist/api/organizations-api.js +341 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +266 -0
- package/dist/api/toolbox-api.js +601 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +50 -4
- package/dist/api/workspace-api.js +291 -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 +55 -64
- package/dist/esm/api/docker-registry-api.js +103 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +147 -67
- package/dist/esm/api/nodes-api.js +38 -48
- package/dist/esm/api/organizations-api.js +342 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +259 -0
- package/dist/esm/api/toolbox-api.js +602 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +50 -4
- package/dist/esm/api/workspace-api.js +292 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- 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 +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +1 -1
- package/dist/esm/models/workspace-state.js +1 -1
- package/dist/esm/models/workspace.d.ts +19 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +1 -1
- package/dist/models/workspace-state.js +1 -1
- package/dist/models/workspace.d.ts +19 -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 +74 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +96 -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 +70 -68
- package/models/list-branch-response.ts +8 -11
- 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-user.ts +55 -58
- package/models/organization.ts +38 -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 +20 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +119 -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
package/dist/api/api-keys-api.js
CHANGED
|
@@ -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.ApiKeysApi = exports.ApiKeysApiFactory = exports.ApiKeysApiFp = exports.ApiKeysApiAxiosParamCreator = void 0;
|
|
26
17
|
const axios_1 = require("axios");
|
|
@@ -43,7 +34,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
43
34
|
* @param {*} [options] Override http request option.
|
|
44
35
|
* @throws {RequiredError}
|
|
45
36
|
*/
|
|
46
|
-
createApiKey:
|
|
37
|
+
createApiKey: async (createApiKey, xDaytonaOrganizationID, options = {}) => {
|
|
47
38
|
// verify required parameter 'createApiKey' is not null or undefined
|
|
48
39
|
(0, common_1.assertParamExists)('createApiKey', 'createApiKey', createApiKey);
|
|
49
40
|
const localVarPath = `/api-keys`;
|
|
@@ -58,11 +49,11 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
58
49
|
const localVarQueryParameter = {};
|
|
59
50
|
// authentication oauth2 required
|
|
60
51
|
// oauth required
|
|
61
|
-
|
|
52
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
53
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
54
|
if (xDaytonaOrganizationID != null) {
|
|
63
55
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
64
56
|
}
|
|
65
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
66
57
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
58
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
59
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -71,7 +62,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
71
62
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
72
63
|
options: localVarRequestOptions,
|
|
73
64
|
};
|
|
74
|
-
}
|
|
65
|
+
},
|
|
75
66
|
/**
|
|
76
67
|
*
|
|
77
68
|
* @summary Delete API key
|
|
@@ -80,11 +71,10 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
80
71
|
* @param {*} [options] Override http request option.
|
|
81
72
|
* @throws {RequiredError}
|
|
82
73
|
*/
|
|
83
|
-
deleteApiKey:
|
|
74
|
+
deleteApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
84
75
|
// verify required parameter 'name' is not null or undefined
|
|
85
76
|
(0, common_1.assertParamExists)('deleteApiKey', 'name', name);
|
|
86
|
-
const localVarPath = `/api-keys/{name}`
|
|
87
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
77
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
88
78
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
79
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
90
80
|
let baseOptions;
|
|
@@ -96,7 +86,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
96
86
|
const localVarQueryParameter = {};
|
|
97
87
|
// authentication oauth2 required
|
|
98
88
|
// oauth required
|
|
99
|
-
|
|
89
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
100
90
|
if (xDaytonaOrganizationID != null) {
|
|
101
91
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
102
92
|
}
|
|
@@ -107,7 +97,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
107
97
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
108
98
|
options: localVarRequestOptions,
|
|
109
99
|
};
|
|
110
|
-
}
|
|
100
|
+
},
|
|
111
101
|
/**
|
|
112
102
|
*
|
|
113
103
|
* @summary Get API key
|
|
@@ -116,11 +106,10 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
116
106
|
* @param {*} [options] Override http request option.
|
|
117
107
|
* @throws {RequiredError}
|
|
118
108
|
*/
|
|
119
|
-
getApiKey:
|
|
109
|
+
getApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
120
110
|
// verify required parameter 'name' is not null or undefined
|
|
121
111
|
(0, common_1.assertParamExists)('getApiKey', 'name', name);
|
|
122
|
-
const localVarPath = `/api-keys/{name}`
|
|
123
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
112
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
124
113
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
114
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
115
|
let baseOptions;
|
|
@@ -132,7 +121,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
132
121
|
const localVarQueryParameter = {};
|
|
133
122
|
// authentication oauth2 required
|
|
134
123
|
// oauth required
|
|
135
|
-
|
|
124
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
136
125
|
if (xDaytonaOrganizationID != null) {
|
|
137
126
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
138
127
|
}
|
|
@@ -143,7 +132,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
143
132
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
133
|
options: localVarRequestOptions,
|
|
145
134
|
};
|
|
146
|
-
}
|
|
135
|
+
},
|
|
147
136
|
/**
|
|
148
137
|
*
|
|
149
138
|
* @summary List API keys
|
|
@@ -151,7 +140,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
151
140
|
* @param {*} [options] Override http request option.
|
|
152
141
|
* @throws {RequiredError}
|
|
153
142
|
*/
|
|
154
|
-
listApiKeys:
|
|
143
|
+
listApiKeys: async (xDaytonaOrganizationID, options = {}) => {
|
|
155
144
|
const localVarPath = `/api-keys`;
|
|
156
145
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
146
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -164,7 +153,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
164
153
|
const localVarQueryParameter = {};
|
|
165
154
|
// authentication oauth2 required
|
|
166
155
|
// oauth required
|
|
167
|
-
|
|
156
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
168
157
|
if (xDaytonaOrganizationID != null) {
|
|
169
158
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
170
159
|
}
|
|
@@ -175,7 +164,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
175
164
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
176
165
|
options: localVarRequestOptions,
|
|
177
166
|
};
|
|
178
|
-
}
|
|
167
|
+
},
|
|
179
168
|
};
|
|
180
169
|
};
|
|
181
170
|
exports.ApiKeysApiAxiosParamCreator = ApiKeysApiAxiosParamCreator;
|
|
@@ -194,14 +183,12 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
194
183
|
* @param {*} [options] Override http request option.
|
|
195
184
|
* @throws {RequiredError}
|
|
196
185
|
*/
|
|
197
|
-
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
204
|
-
});
|
|
186
|
+
async createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
187
|
+
var _a, _b, _c;
|
|
188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
|
|
189
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
190
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
191
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
205
192
|
},
|
|
206
193
|
/**
|
|
207
194
|
*
|
|
@@ -211,14 +198,12 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
211
198
|
* @param {*} [options] Override http request option.
|
|
212
199
|
* @throws {RequiredError}
|
|
213
200
|
*/
|
|
214
|
-
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
221
|
-
});
|
|
201
|
+
async deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
202
|
+
var _a, _b, _c;
|
|
203
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
|
|
204
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
205
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
206
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
222
207
|
},
|
|
223
208
|
/**
|
|
224
209
|
*
|
|
@@ -228,14 +213,12 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
228
213
|
* @param {*} [options] Override http request option.
|
|
229
214
|
* @throws {RequiredError}
|
|
230
215
|
*/
|
|
231
|
-
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
238
|
-
});
|
|
216
|
+
async getApiKey(name, xDaytonaOrganizationID, options) {
|
|
217
|
+
var _a, _b, _c;
|
|
218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
|
|
219
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
220
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.getApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
221
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
239
222
|
},
|
|
240
223
|
/**
|
|
241
224
|
*
|
|
@@ -244,14 +227,12 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
244
227
|
* @param {*} [options] Override http request option.
|
|
245
228
|
* @throws {RequiredError}
|
|
246
229
|
*/
|
|
247
|
-
listApiKeys(xDaytonaOrganizationID, options) {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
254
|
-
});
|
|
230
|
+
async listApiKeys(xDaytonaOrganizationID, options) {
|
|
231
|
+
var _a, _b, _c;
|
|
232
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
|
|
233
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
234
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.listApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
235
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
255
236
|
},
|
|
256
237
|
};
|
|
257
238
|
};
|
|
@@ -272,7 +253,9 @@ const ApiKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
272
253
|
* @throws {RequiredError}
|
|
273
254
|
*/
|
|
274
255
|
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
275
|
-
return localVarFp
|
|
256
|
+
return localVarFp
|
|
257
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
258
|
+
.then((request) => request(axios, basePath));
|
|
276
259
|
},
|
|
277
260
|
/**
|
|
278
261
|
*
|
|
@@ -326,7 +309,9 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
326
309
|
* @memberof ApiKeysApi
|
|
327
310
|
*/
|
|
328
311
|
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
329
|
-
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
312
|
+
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
313
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
314
|
+
.then((request) => request(this.axios, this.basePath));
|
|
330
315
|
}
|
|
331
316
|
/**
|
|
332
317
|
*
|
|
@@ -338,7 +323,9 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
338
323
|
* @memberof ApiKeysApi
|
|
339
324
|
*/
|
|
340
325
|
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
341
|
-
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
326
|
+
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
327
|
+
.deleteApiKey(name, xDaytonaOrganizationID, options)
|
|
328
|
+
.then((request) => request(this.axios, this.basePath));
|
|
342
329
|
}
|
|
343
330
|
/**
|
|
344
331
|
*
|
|
@@ -350,7 +337,9 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
350
337
|
* @memberof ApiKeysApi
|
|
351
338
|
*/
|
|
352
339
|
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
353
|
-
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
340
|
+
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
341
|
+
.getApiKey(name, xDaytonaOrganizationID, options)
|
|
342
|
+
.then((request) => request(this.axios, this.basePath));
|
|
354
343
|
}
|
|
355
344
|
/**
|
|
356
345
|
*
|
|
@@ -361,7 +350,9 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
361
350
|
* @memberof ApiKeysApi
|
|
362
351
|
*/
|
|
363
352
|
listApiKeys(xDaytonaOrganizationID, options) {
|
|
364
|
-
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
353
|
+
return (0, exports.ApiKeysApiFp)(this.configuration)
|
|
354
|
+
.listApiKeys(xDaytonaOrganizationID, options)
|
|
355
|
+
.then((request) => request(this.axios, this.basePath));
|
|
365
356
|
}
|
|
366
357
|
}
|
|
367
358
|
exports.ApiKeysApi = ApiKeysApi;
|