@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/users-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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
|
|
26
17
|
const axios_1 = require("axios");
|
|
@@ -42,7 +33,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
42
33
|
* @param {*} [options] Override http request option.
|
|
43
34
|
* @throws {RequiredError}
|
|
44
35
|
*/
|
|
45
|
-
createUser:
|
|
36
|
+
createUser: async (createUser, options = {}) => {
|
|
46
37
|
// verify required parameter 'createUser' is not null or undefined
|
|
47
38
|
(0, common_1.assertParamExists)('createUser', 'createUser', createUser);
|
|
48
39
|
const localVarPath = `/users`;
|
|
@@ -57,7 +48,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
57
48
|
const localVarQueryParameter = {};
|
|
58
49
|
// authentication oauth2 required
|
|
59
50
|
// oauth required
|
|
60
|
-
|
|
51
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
61
52
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
53
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -67,14 +58,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
67
58
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
59
|
options: localVarRequestOptions,
|
|
69
60
|
};
|
|
70
|
-
}
|
|
61
|
+
},
|
|
71
62
|
/**
|
|
72
63
|
*
|
|
73
64
|
* @summary Get authenticated user
|
|
74
65
|
* @param {*} [options] Override http request option.
|
|
75
66
|
* @throws {RequiredError}
|
|
76
67
|
*/
|
|
77
|
-
getAuthenticatedUser:
|
|
68
|
+
getAuthenticatedUser: async (options = {}) => {
|
|
78
69
|
const localVarPath = `/users/me`;
|
|
79
70
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
71
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -87,7 +78,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
87
78
|
const localVarQueryParameter = {};
|
|
88
79
|
// authentication oauth2 required
|
|
89
80
|
// oauth required
|
|
90
|
-
|
|
81
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
91
82
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
92
83
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
84
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -95,14 +86,14 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
95
86
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
96
87
|
options: localVarRequestOptions,
|
|
97
88
|
};
|
|
98
|
-
}
|
|
89
|
+
},
|
|
99
90
|
/**
|
|
100
91
|
*
|
|
101
92
|
* @summary List all users
|
|
102
93
|
* @param {*} [options] Override http request option.
|
|
103
94
|
* @throws {RequiredError}
|
|
104
95
|
*/
|
|
105
|
-
listUsers:
|
|
96
|
+
listUsers: async (options = {}) => {
|
|
106
97
|
const localVarPath = `/users`;
|
|
107
98
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
108
99
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -115,7 +106,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
115
106
|
const localVarQueryParameter = {};
|
|
116
107
|
// authentication oauth2 required
|
|
117
108
|
// oauth required
|
|
118
|
-
|
|
109
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
119
110
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
112
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -123,7 +114,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
123
114
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
115
|
options: localVarRequestOptions,
|
|
125
116
|
};
|
|
126
|
-
}
|
|
117
|
+
},
|
|
127
118
|
/**
|
|
128
119
|
*
|
|
129
120
|
* @summary Regenerate user key pair
|
|
@@ -131,11 +122,10 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
131
122
|
* @param {*} [options] Override http request option.
|
|
132
123
|
* @throws {RequiredError}
|
|
133
124
|
*/
|
|
134
|
-
regenerateKeyPair:
|
|
125
|
+
regenerateKeyPair: async (id, options = {}) => {
|
|
135
126
|
// verify required parameter 'id' is not null or undefined
|
|
136
127
|
(0, common_1.assertParamExists)('regenerateKeyPair', 'id', id);
|
|
137
|
-
const localVarPath = `/users/{id}/regenerate-key-pair`
|
|
138
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
128
|
+
const localVarPath = `/users/{id}/regenerate-key-pair`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
139
129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
140
130
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
141
131
|
let baseOptions;
|
|
@@ -147,7 +137,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
147
137
|
const localVarQueryParameter = {};
|
|
148
138
|
// authentication oauth2 required
|
|
149
139
|
// oauth required
|
|
150
|
-
|
|
140
|
+
await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
151
141
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
152
142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
143
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -155,7 +145,7 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
155
145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
156
146
|
options: localVarRequestOptions,
|
|
157
147
|
};
|
|
158
|
-
}
|
|
148
|
+
},
|
|
159
149
|
};
|
|
160
150
|
};
|
|
161
151
|
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
@@ -173,14 +163,12 @@ const UsersApiFp = function (configuration) {
|
|
|
173
163
|
* @param {*} [options] Override http request option.
|
|
174
164
|
* @throws {RequiredError}
|
|
175
165
|
*/
|
|
176
|
-
createUser(createUser, options) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
183
|
-
});
|
|
166
|
+
async createUser(createUser, options) {
|
|
167
|
+
var _a, _b, _c;
|
|
168
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUser, options);
|
|
169
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
170
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.createUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
171
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
184
172
|
},
|
|
185
173
|
/**
|
|
186
174
|
*
|
|
@@ -188,14 +176,12 @@ const UsersApiFp = function (configuration) {
|
|
|
188
176
|
* @param {*} [options] Override http request option.
|
|
189
177
|
* @throws {RequiredError}
|
|
190
178
|
*/
|
|
191
|
-
getAuthenticatedUser(options) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
198
|
-
});
|
|
179
|
+
async getAuthenticatedUser(options) {
|
|
180
|
+
var _a, _b, _c;
|
|
181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthenticatedUser(options);
|
|
182
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
183
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.getAuthenticatedUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
184
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
199
185
|
},
|
|
200
186
|
/**
|
|
201
187
|
*
|
|
@@ -203,14 +189,12 @@ const UsersApiFp = function (configuration) {
|
|
|
203
189
|
* @param {*} [options] Override http request option.
|
|
204
190
|
* @throws {RequiredError}
|
|
205
191
|
*/
|
|
206
|
-
listUsers(options) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
213
|
-
});
|
|
192
|
+
async listUsers(options) {
|
|
193
|
+
var _a, _b, _c;
|
|
194
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options);
|
|
195
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
196
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.listUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
197
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
214
198
|
},
|
|
215
199
|
/**
|
|
216
200
|
*
|
|
@@ -219,14 +203,12 @@ const UsersApiFp = function (configuration) {
|
|
|
219
203
|
* @param {*} [options] Override http request option.
|
|
220
204
|
* @throws {RequiredError}
|
|
221
205
|
*/
|
|
222
|
-
regenerateKeyPair(id, options) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
229
|
-
});
|
|
206
|
+
async regenerateKeyPair(id, options) {
|
|
207
|
+
var _a, _b, _c;
|
|
208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateKeyPair(id, options);
|
|
209
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
210
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.regenerateKeyPair']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
211
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
230
212
|
},
|
|
231
213
|
};
|
|
232
214
|
};
|
|
@@ -295,7 +277,9 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
295
277
|
* @memberof UsersApi
|
|
296
278
|
*/
|
|
297
279
|
createUser(createUser, options) {
|
|
298
|
-
return (0, exports.UsersApiFp)(this.configuration)
|
|
280
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
281
|
+
.createUser(createUser, options)
|
|
282
|
+
.then((request) => request(this.axios, this.basePath));
|
|
299
283
|
}
|
|
300
284
|
/**
|
|
301
285
|
*
|
|
@@ -305,7 +289,9 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
305
289
|
* @memberof UsersApi
|
|
306
290
|
*/
|
|
307
291
|
getAuthenticatedUser(options) {
|
|
308
|
-
return (0, exports.UsersApiFp)(this.configuration)
|
|
292
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
293
|
+
.getAuthenticatedUser(options)
|
|
294
|
+
.then((request) => request(this.axios, this.basePath));
|
|
309
295
|
}
|
|
310
296
|
/**
|
|
311
297
|
*
|
|
@@ -315,7 +301,9 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
315
301
|
* @memberof UsersApi
|
|
316
302
|
*/
|
|
317
303
|
listUsers(options) {
|
|
318
|
-
return (0, exports.UsersApiFp)(this.configuration)
|
|
304
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
305
|
+
.listUsers(options)
|
|
306
|
+
.then((request) => request(this.axios, this.basePath));
|
|
319
307
|
}
|
|
320
308
|
/**
|
|
321
309
|
*
|
|
@@ -326,7 +314,9 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
326
314
|
* @memberof UsersApi
|
|
327
315
|
*/
|
|
328
316
|
regenerateKeyPair(id, options) {
|
|
329
|
-
return (0, exports.UsersApiFp)(this.configuration)
|
|
317
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
318
|
+
.regenerateKeyPair(id, options)
|
|
319
|
+
.then((request) => request(this.axios, this.basePath));
|
|
330
320
|
}
|
|
331
321
|
}
|
|
332
322
|
exports.UsersApi = UsersApi;
|
|
@@ -13,6 +13,7 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import type { CreateWorkspace } from '../models';
|
|
16
|
+
import type { PortPreviewUrl } from '../models';
|
|
16
17
|
import type { Workspace } from '../models';
|
|
17
18
|
import type { WorkspaceLabels } from '../models';
|
|
18
19
|
/**
|
|
@@ -57,6 +58,16 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
57
58
|
* @throws {RequiredError}
|
|
58
59
|
*/
|
|
59
60
|
deleteWorkspace: (workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @summary Get preview URL for a workspace port
|
|
64
|
+
* @param {string} workspaceId ID of the workspace
|
|
65
|
+
* @param {number} port Port number to get preview URL for
|
|
66
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
getPortPreviewUrl: (workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
71
|
/**
|
|
61
72
|
*
|
|
62
73
|
* @summary Get workspace details
|
|
@@ -72,10 +83,11 @@ export declare const WorkspaceApiAxiosParamCreator: (configuration?: Configurati
|
|
|
72
83
|
* @summary List all workspaces
|
|
73
84
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
74
85
|
* @param {boolean} [verbose] Include verbose output
|
|
86
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
75
87
|
* @param {*} [options] Override http request option.
|
|
76
88
|
* @throws {RequiredError}
|
|
77
89
|
*/
|
|
78
|
-
listWorkspaces: (xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
90
|
+
listWorkspaces: (xDaytonaOrganizationID?: string, verbose?: boolean, labels?: object, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
91
|
/**
|
|
80
92
|
*
|
|
81
93
|
* @summary Replace workspace labels
|
|
@@ -177,6 +189,16 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
177
189
|
* @throws {RequiredError}
|
|
178
190
|
*/
|
|
179
191
|
deleteWorkspace(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @summary Get preview URL for a workspace port
|
|
195
|
+
* @param {string} workspaceId ID of the workspace
|
|
196
|
+
* @param {number} port Port number to get preview URL for
|
|
197
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getPortPreviewUrl(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortPreviewUrl>>;
|
|
180
202
|
/**
|
|
181
203
|
*
|
|
182
204
|
* @summary Get workspace details
|
|
@@ -192,10 +214,11 @@ export declare const WorkspaceApiFp: (configuration?: Configuration) => {
|
|
|
192
214
|
* @summary List all workspaces
|
|
193
215
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
194
216
|
* @param {boolean} [verbose] Include verbose output
|
|
217
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
195
218
|
* @param {*} [options] Override http request option.
|
|
196
219
|
* @throws {RequiredError}
|
|
197
220
|
*/
|
|
198
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>>;
|
|
221
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: object, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>>;
|
|
199
222
|
/**
|
|
200
223
|
*
|
|
201
224
|
* @summary Replace workspace labels
|
|
@@ -297,6 +320,16 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
297
320
|
* @throws {RequiredError}
|
|
298
321
|
*/
|
|
299
322
|
deleteWorkspace(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @summary Get preview URL for a workspace port
|
|
326
|
+
* @param {string} workspaceId ID of the workspace
|
|
327
|
+
* @param {number} port Port number to get preview URL for
|
|
328
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
329
|
+
* @param {*} [options] Override http request option.
|
|
330
|
+
* @throws {RequiredError}
|
|
331
|
+
*/
|
|
332
|
+
getPortPreviewUrl(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<PortPreviewUrl>;
|
|
300
333
|
/**
|
|
301
334
|
*
|
|
302
335
|
* @summary Get workspace details
|
|
@@ -312,10 +345,11 @@ export declare const WorkspaceApiFactory: (configuration?: Configuration, basePa
|
|
|
312
345
|
* @summary List all workspaces
|
|
313
346
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
314
347
|
* @param {boolean} [verbose] Include verbose output
|
|
348
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
315
349
|
* @param {*} [options] Override http request option.
|
|
316
350
|
* @throws {RequiredError}
|
|
317
351
|
*/
|
|
318
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>>;
|
|
352
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: object, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>>;
|
|
319
353
|
/**
|
|
320
354
|
*
|
|
321
355
|
* @summary Replace workspace labels
|
|
@@ -423,6 +457,17 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
423
457
|
* @memberof WorkspaceApi
|
|
424
458
|
*/
|
|
425
459
|
deleteWorkspace(workspaceId: string, force: boolean, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary Get preview URL for a workspace port
|
|
463
|
+
* @param {string} workspaceId ID of the workspace
|
|
464
|
+
* @param {number} port Port number to get preview URL for
|
|
465
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
* @memberof WorkspaceApi
|
|
469
|
+
*/
|
|
470
|
+
getPortPreviewUrl(workspaceId: string, port: number, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PortPreviewUrl, any>>;
|
|
426
471
|
/**
|
|
427
472
|
*
|
|
428
473
|
* @summary Get workspace details
|
|
@@ -439,11 +484,12 @@ export declare class WorkspaceApi extends BaseAPI {
|
|
|
439
484
|
* @summary List all workspaces
|
|
440
485
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
441
486
|
* @param {boolean} [verbose] Include verbose output
|
|
487
|
+
* @param {object} [labels] Filter workspaces by labels
|
|
442
488
|
* @param {*} [options] Override http request option.
|
|
443
489
|
* @throws {RequiredError}
|
|
444
490
|
* @memberof WorkspaceApi
|
|
445
491
|
*/
|
|
446
|
-
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace[], any>>;
|
|
492
|
+
listWorkspaces(xDaytonaOrganizationID?: string, verbose?: boolean, labels?: object, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Workspace[], any>>;
|
|
447
493
|
/**
|
|
448
494
|
*
|
|
449
495
|
* @summary Replace workspace labels
|