@daytonaio/api-client 0.14.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 +19 -4
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +383 -279
- package/api/docker-registry-api.ts +714 -504
- package/api/images-api.ts +580 -318
- package/api/nodes-api.ts +250 -213
- package/api/organizations-api.ts +2390 -0
- package/api/preview-api.ts +326 -0
- package/api/toolbox-api.ts +4532 -2915
- package/api/users-api.ts +335 -373
- package/api/workspace-api.ts +1506 -893
- package/api.ts +10 -11
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.d.ts +32 -16
- package/dist/api/api-keys-api.js +92 -73
- package/dist/api/docker-registry-api.d.ts +72 -44
- package/dist/api/docker-registry-api.js +182 -138
- package/dist/api/images-api.d.ts +74 -16
- package/dist/api/images-api.js +181 -73
- package/dist/api/nodes-api.js +37 -47
- package/dist/api/organizations-api.d.ts +856 -0
- package/dist/api/organizations-api.js +1746 -0
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +266 -0
- package/dist/api/toolbox-api.d.ts +292 -144
- package/dist/api/toolbox-api.js +914 -623
- package/dist/api/users-api.d.ts +9 -47
- package/dist/api/users-api.js +57 -144
- package/dist/api/workspace-api.d.ts +199 -101
- package/dist/api/workspace-api.js +469 -280
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -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.d.ts +32 -16
- package/dist/esm/api/api-keys-api.js +93 -74
- package/dist/esm/api/docker-registry-api.d.ts +72 -44
- package/dist/esm/api/docker-registry-api.js +183 -139
- package/dist/esm/api/images-api.d.ts +74 -16
- package/dist/esm/api/images-api.js +182 -74
- package/dist/esm/api/nodes-api.js +38 -48
- package/dist/esm/api/organizations-api.d.ts +856 -0
- package/dist/esm/api/organizations-api.js +1739 -0
- 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.d.ts +292 -144
- package/dist/esm/api/toolbox-api.js +915 -624
- package/dist/esm/api/users-api.d.ts +9 -47
- package/dist/esm/api/users-api.js +58 -145
- package/dist/esm/api/workspace-api.d.ts +199 -101
- package/dist/esm/api/workspace-api.js +470 -281
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -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 +19 -4
- package/dist/esm/models/api-key-list.js +8 -1
- package/dist/esm/models/api-key-response.d.ts +19 -4
- package/dist/esm/models/api-key-response.js +8 -1
- 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 +16 -1
- package/dist/esm/models/create-api-key.js +8 -1
- package/dist/esm/models/create-docker-registry.d.ts +9 -9
- package/dist/esm/models/create-docker-registry.js +2 -2
- 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 +47 -0
- package/dist/esm/models/create-organization-invitation.js +17 -0
- package/dist/esm/models/create-organization-quota.d.ts +84 -0
- package/dist/esm/models/create-organization-role.d.ts +45 -0
- package/dist/esm/models/create-organization-role.js +21 -0
- package/dist/esm/models/create-organization.d.ts +90 -0
- package/dist/esm/models/create-organization.js +14 -0
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +14 -56
- 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 +12 -12
- package/dist/esm/models/docker-registry.js +2 -2
- 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 +17 -1
- package/dist/esm/models/index.js +17 -1
- 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 +97 -0
- package/dist/esm/models/organization-invitation.js +23 -0
- package/dist/esm/models/organization-role.d.ts +69 -0
- package/dist/esm/models/organization-role.js +21 -0
- package/dist/esm/models/organization-user.d.ts +72 -0
- package/dist/esm/models/organization-user.js +17 -0
- package/dist/esm/models/organization.d.ts +54 -0
- package/dist/esm/models/organization.js +14 -0
- 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 +24 -0
- package/dist/esm/models/update-assigned-organization-roles.js +14 -0
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +41 -0
- package/dist/esm/models/update-organization-invitation.js +17 -0
- package/dist/esm/models/update-organization-member-role.d.ts +29 -0
- package/dist/esm/models/update-organization-member-role.js +17 -0
- package/dist/esm/models/update-organization-quota.d.ts +84 -0
- package/dist/esm/models/update-organization-quota.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +45 -0
- package/dist/esm/models/update-organization-role.js +21 -0
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +30 -0
- package/dist/esm/models/user-public-key.js +14 -0
- package/dist/esm/models/user.d.ts +43 -0
- package/dist/esm/models/user.js +14 -0
- 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 +19 -4
- package/dist/models/api-key-list.js +9 -0
- package/dist/models/api-key-response.d.ts +19 -4
- package/dist/models/api-key-response.js +9 -0
- 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 +16 -1
- package/dist/models/create-api-key.js +9 -0
- package/dist/models/create-docker-registry.d.ts +9 -9
- package/dist/models/create-docker-registry.js +2 -2
- 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 +47 -0
- package/dist/models/create-organization-invitation.js +20 -0
- package/dist/models/create-organization-quota.d.ts +84 -0
- package/dist/models/create-organization-role.d.ts +45 -0
- package/dist/models/create-organization-role.js +24 -0
- package/dist/models/create-organization.d.ts +90 -0
- package/dist/models/create-organization.js +15 -0
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +14 -56
- 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 +12 -12
- package/dist/models/docker-registry.js +2 -2
- 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 +17 -1
- package/dist/models/index.js +17 -1
- 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 +97 -0
- package/dist/models/organization-invitation.js +26 -0
- package/dist/models/organization-role.d.ts +69 -0
- package/dist/models/organization-role.js +24 -0
- package/dist/models/organization-user.d.ts +72 -0
- package/dist/models/organization-user.js +20 -0
- package/dist/models/organization.d.ts +54 -0
- package/dist/models/organization.js +15 -0
- 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 +24 -0
- package/dist/models/update-assigned-organization-roles.js +15 -0
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +41 -0
- package/dist/models/update-organization-invitation.js +20 -0
- package/dist/models/update-organization-member-role.d.ts +29 -0
- package/dist/models/update-organization-member-role.js +20 -0
- package/dist/models/update-organization-quota.d.ts +84 -0
- package/dist/models/update-organization-quota.js +15 -0
- package/dist/models/update-organization-role.d.ts +45 -0
- package/dist/models/update-organization-role.js +24 -0
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +30 -0
- package/dist/models/user-public-key.js +15 -0
- package/dist/models/user.d.ts +43 -0
- package/dist/models/user.js +15 -0
- 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 +36 -22
- package/models/api-key-response.ts +37 -22
- 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 +24 -10
- 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 +53 -0
- package/models/create-organization-quota.ts +87 -0
- package/models/create-organization-role.ts +51 -0
- package/models/create-organization.ts +93 -0
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +41 -81
- 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 -54
- 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 +108 -0
- package/models/organization-role.ts +75 -0
- package/models/organization-user.ts +80 -0
- package/models/organization.ts +57 -0
- 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 +27 -0
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +47 -0
- package/models/update-organization-member-role.ts +35 -0
- package/models/update-organization-quota.ts +87 -0
- package/models/update-organization-role.ts +51 -0
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +33 -0
- package/models/user.ts +49 -0
- 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/dist/esm/models/update-user-quota-dto.d.ts +0 -84
- package/dist/models/update-user-quota-dto.d.ts +0 -84
- package/git_push.sh +0 -57
- package/models/update-user-quota-dto.ts +0 -90
- /package/dist/esm/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
- /package/dist/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
|
@@ -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, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from '../common';
|
|
27
18
|
// @ts-ignore
|
|
28
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
20
|
/**
|
|
@@ -36,10 +27,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
36
27
|
*
|
|
37
28
|
* @summary Create API key
|
|
38
29
|
* @param {CreateApiKey} createApiKey
|
|
30
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
39
31
|
* @param {*} [options] Override http request option.
|
|
40
32
|
* @throws {RequiredError}
|
|
41
33
|
*/
|
|
42
|
-
createApiKey:
|
|
34
|
+
createApiKey: async (createApiKey, xDaytonaOrganizationID, options = {}) => {
|
|
43
35
|
// verify required parameter 'createApiKey' is not null or undefined
|
|
44
36
|
assertParamExists('createApiKey', 'createApiKey', createApiKey);
|
|
45
37
|
const localVarPath = `/api-keys`;
|
|
@@ -54,8 +46,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
54
46
|
const localVarQueryParameter = {};
|
|
55
47
|
// authentication oauth2 required
|
|
56
48
|
// oauth required
|
|
57
|
-
|
|
49
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
58
50
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
51
|
+
if (xDaytonaOrganizationID != null) {
|
|
52
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
53
|
+
}
|
|
59
54
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
55
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
56
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -64,19 +59,19 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
64
59
|
url: toPathString(localVarUrlObj),
|
|
65
60
|
options: localVarRequestOptions,
|
|
66
61
|
};
|
|
67
|
-
}
|
|
62
|
+
},
|
|
68
63
|
/**
|
|
69
64
|
*
|
|
70
65
|
* @summary Delete API key
|
|
71
66
|
* @param {string} name
|
|
67
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
72
68
|
* @param {*} [options] Override http request option.
|
|
73
69
|
* @throws {RequiredError}
|
|
74
70
|
*/
|
|
75
|
-
deleteApiKey:
|
|
71
|
+
deleteApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
76
72
|
// verify required parameter 'name' is not null or undefined
|
|
77
73
|
assertParamExists('deleteApiKey', 'name', name);
|
|
78
|
-
const localVarPath = `/api-keys/{name}`
|
|
79
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
74
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
80
75
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
81
76
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
82
77
|
let baseOptions;
|
|
@@ -88,7 +83,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
88
83
|
const localVarQueryParameter = {};
|
|
89
84
|
// authentication oauth2 required
|
|
90
85
|
// oauth required
|
|
91
|
-
|
|
86
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
87
|
+
if (xDaytonaOrganizationID != null) {
|
|
88
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
89
|
+
}
|
|
92
90
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
91
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
92
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -96,19 +94,19 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
96
94
|
url: toPathString(localVarUrlObj),
|
|
97
95
|
options: localVarRequestOptions,
|
|
98
96
|
};
|
|
99
|
-
}
|
|
97
|
+
},
|
|
100
98
|
/**
|
|
101
99
|
*
|
|
102
100
|
* @summary Get API key
|
|
103
101
|
* @param {string} name
|
|
102
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
104
103
|
* @param {*} [options] Override http request option.
|
|
105
104
|
* @throws {RequiredError}
|
|
106
105
|
*/
|
|
107
|
-
getApiKey:
|
|
106
|
+
getApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
108
107
|
// verify required parameter 'name' is not null or undefined
|
|
109
108
|
assertParamExists('getApiKey', 'name', name);
|
|
110
|
-
const localVarPath = `/api-keys/{name}`
|
|
111
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
109
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
112
110
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
111
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
114
112
|
let baseOptions;
|
|
@@ -120,7 +118,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
120
118
|
const localVarQueryParameter = {};
|
|
121
119
|
// authentication oauth2 required
|
|
122
120
|
// oauth required
|
|
123
|
-
|
|
121
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
122
|
+
if (xDaytonaOrganizationID != null) {
|
|
123
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
124
|
+
}
|
|
124
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
127
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -128,14 +129,15 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
128
129
|
url: toPathString(localVarUrlObj),
|
|
129
130
|
options: localVarRequestOptions,
|
|
130
131
|
};
|
|
131
|
-
}
|
|
132
|
+
},
|
|
132
133
|
/**
|
|
133
134
|
*
|
|
134
135
|
* @summary List API keys
|
|
136
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
135
137
|
* @param {*} [options] Override http request option.
|
|
136
138
|
* @throws {RequiredError}
|
|
137
139
|
*/
|
|
138
|
-
listApiKeys:
|
|
140
|
+
listApiKeys: async (xDaytonaOrganizationID, options = {}) => {
|
|
139
141
|
const localVarPath = `/api-keys`;
|
|
140
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
141
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -148,7 +150,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
148
150
|
const localVarQueryParameter = {};
|
|
149
151
|
// authentication oauth2 required
|
|
150
152
|
// oauth required
|
|
151
|
-
|
|
153
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
154
|
+
if (xDaytonaOrganizationID != null) {
|
|
155
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
156
|
+
}
|
|
152
157
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
153
158
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
159
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -156,7 +161,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
156
161
|
url: toPathString(localVarUrlObj),
|
|
157
162
|
options: localVarRequestOptions,
|
|
158
163
|
};
|
|
159
|
-
}
|
|
164
|
+
},
|
|
160
165
|
};
|
|
161
166
|
};
|
|
162
167
|
/**
|
|
@@ -170,64 +175,60 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
170
175
|
*
|
|
171
176
|
* @summary Create API key
|
|
172
177
|
* @param {CreateApiKey} createApiKey
|
|
178
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
173
179
|
* @param {*} [options] Override http request option.
|
|
174
180
|
* @throws {RequiredError}
|
|
175
181
|
*/
|
|
176
|
-
createApiKey(createApiKey, options) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
183
|
-
});
|
|
182
|
+
async createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
183
|
+
var _a, _b, _c;
|
|
184
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
|
|
185
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
186
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
187
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
184
188
|
},
|
|
185
189
|
/**
|
|
186
190
|
*
|
|
187
191
|
* @summary Delete API key
|
|
188
192
|
* @param {string} name
|
|
193
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
189
194
|
* @param {*} [options] Override http request option.
|
|
190
195
|
* @throws {RequiredError}
|
|
191
196
|
*/
|
|
192
|
-
deleteApiKey(name, options) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
199
|
-
});
|
|
197
|
+
async deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
198
|
+
var _a, _b, _c;
|
|
199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
|
|
200
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
201
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
203
|
},
|
|
201
204
|
/**
|
|
202
205
|
*
|
|
203
206
|
* @summary Get API key
|
|
204
207
|
* @param {string} name
|
|
208
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
205
209
|
* @param {*} [options] Override http request option.
|
|
206
210
|
* @throws {RequiredError}
|
|
207
211
|
*/
|
|
208
|
-
getApiKey(name, options) {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
215
|
-
});
|
|
212
|
+
async getApiKey(name, xDaytonaOrganizationID, options) {
|
|
213
|
+
var _a, _b, _c;
|
|
214
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
|
|
215
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
216
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.getApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
217
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
216
218
|
},
|
|
217
219
|
/**
|
|
218
220
|
*
|
|
219
221
|
* @summary List API keys
|
|
222
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
220
223
|
* @param {*} [options] Override http request option.
|
|
221
224
|
* @throws {RequiredError}
|
|
222
225
|
*/
|
|
223
|
-
listApiKeys(options) {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
230
|
-
});
|
|
226
|
+
async listApiKeys(xDaytonaOrganizationID, options) {
|
|
227
|
+
var _a, _b, _c;
|
|
228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
|
|
229
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
230
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.listApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
231
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
231
232
|
},
|
|
232
233
|
};
|
|
233
234
|
};
|
|
@@ -242,40 +243,46 @@ export const ApiKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
242
243
|
*
|
|
243
244
|
* @summary Create API key
|
|
244
245
|
* @param {CreateApiKey} createApiKey
|
|
246
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
245
247
|
* @param {*} [options] Override http request option.
|
|
246
248
|
* @throws {RequiredError}
|
|
247
249
|
*/
|
|
248
|
-
createApiKey(createApiKey, options) {
|
|
249
|
-
return localVarFp
|
|
250
|
+
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
251
|
+
return localVarFp
|
|
252
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
253
|
+
.then((request) => request(axios, basePath));
|
|
250
254
|
},
|
|
251
255
|
/**
|
|
252
256
|
*
|
|
253
257
|
* @summary Delete API key
|
|
254
258
|
* @param {string} name
|
|
259
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
255
260
|
* @param {*} [options] Override http request option.
|
|
256
261
|
* @throws {RequiredError}
|
|
257
262
|
*/
|
|
258
|
-
deleteApiKey(name, options) {
|
|
259
|
-
return localVarFp.deleteApiKey(name, options).then((request) => request(axios, basePath));
|
|
263
|
+
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
264
|
+
return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
260
265
|
},
|
|
261
266
|
/**
|
|
262
267
|
*
|
|
263
268
|
* @summary Get API key
|
|
264
269
|
* @param {string} name
|
|
270
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
265
271
|
* @param {*} [options] Override http request option.
|
|
266
272
|
* @throws {RequiredError}
|
|
267
273
|
*/
|
|
268
|
-
getApiKey(name, options) {
|
|
269
|
-
return localVarFp.getApiKey(name, options).then((request) => request(axios, basePath));
|
|
274
|
+
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
275
|
+
return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
270
276
|
},
|
|
271
277
|
/**
|
|
272
278
|
*
|
|
273
279
|
* @summary List API keys
|
|
280
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
274
281
|
* @param {*} [options] Override http request option.
|
|
275
282
|
* @throws {RequiredError}
|
|
276
283
|
*/
|
|
277
|
-
listApiKeys(options) {
|
|
278
|
-
return localVarFp.listApiKeys(options).then((request) => request(axios, basePath));
|
|
284
|
+
listApiKeys(xDaytonaOrganizationID, options) {
|
|
285
|
+
return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
279
286
|
},
|
|
280
287
|
};
|
|
281
288
|
};
|
|
@@ -290,43 +297,55 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
290
297
|
*
|
|
291
298
|
* @summary Create API key
|
|
292
299
|
* @param {CreateApiKey} createApiKey
|
|
300
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
293
301
|
* @param {*} [options] Override http request option.
|
|
294
302
|
* @throws {RequiredError}
|
|
295
303
|
* @memberof ApiKeysApi
|
|
296
304
|
*/
|
|
297
|
-
createApiKey(createApiKey, options) {
|
|
298
|
-
return ApiKeysApiFp(this.configuration)
|
|
305
|
+
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
306
|
+
return ApiKeysApiFp(this.configuration)
|
|
307
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
308
|
+
.then((request) => request(this.axios, this.basePath));
|
|
299
309
|
}
|
|
300
310
|
/**
|
|
301
311
|
*
|
|
302
312
|
* @summary Delete API key
|
|
303
313
|
* @param {string} name
|
|
314
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
304
315
|
* @param {*} [options] Override http request option.
|
|
305
316
|
* @throws {RequiredError}
|
|
306
317
|
* @memberof ApiKeysApi
|
|
307
318
|
*/
|
|
308
|
-
deleteApiKey(name, options) {
|
|
309
|
-
return ApiKeysApiFp(this.configuration)
|
|
319
|
+
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
320
|
+
return ApiKeysApiFp(this.configuration)
|
|
321
|
+
.deleteApiKey(name, xDaytonaOrganizationID, options)
|
|
322
|
+
.then((request) => request(this.axios, this.basePath));
|
|
310
323
|
}
|
|
311
324
|
/**
|
|
312
325
|
*
|
|
313
326
|
* @summary Get API key
|
|
314
327
|
* @param {string} name
|
|
328
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
315
329
|
* @param {*} [options] Override http request option.
|
|
316
330
|
* @throws {RequiredError}
|
|
317
331
|
* @memberof ApiKeysApi
|
|
318
332
|
*/
|
|
319
|
-
getApiKey(name, options) {
|
|
320
|
-
return ApiKeysApiFp(this.configuration)
|
|
333
|
+
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
334
|
+
return ApiKeysApiFp(this.configuration)
|
|
335
|
+
.getApiKey(name, xDaytonaOrganizationID, options)
|
|
336
|
+
.then((request) => request(this.axios, this.basePath));
|
|
321
337
|
}
|
|
322
338
|
/**
|
|
323
339
|
*
|
|
324
340
|
* @summary List API keys
|
|
341
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
325
342
|
* @param {*} [options] Override http request option.
|
|
326
343
|
* @throws {RequiredError}
|
|
327
344
|
* @memberof ApiKeysApi
|
|
328
345
|
*/
|
|
329
|
-
listApiKeys(options) {
|
|
330
|
-
return ApiKeysApiFp(this.configuration)
|
|
346
|
+
listApiKeys(xDaytonaOrganizationID, options) {
|
|
347
|
+
return ApiKeysApiFp(this.configuration)
|
|
348
|
+
.listApiKeys(xDaytonaOrganizationID, options)
|
|
349
|
+
.then((request) => request(this.axios, this.basePath));
|
|
331
350
|
}
|
|
332
351
|
}
|