@daytonaio/api-client 0.16.0 → 0.17.1
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 +1 -0
- package/api/api-keys-api.ts +16 -0
- package/api/docker-registry-api.ts +28 -0
- package/api/images-api.ts +20 -0
- package/api/nodes-api.ts +12 -0
- package/api/organizations-api.ts +301 -0
- package/api/preview-api.ts +4 -0
- package/api/toolbox-api.ts +144 -0
- package/api/workspace-api.ts +61 -11
- package/dist/api/api-keys-api.js +65 -36
- package/dist/api/docker-registry-api.js +107 -63
- package/dist/api/images-api.js +79 -45
- package/dist/api/nodes-api.js +51 -27
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +485 -207
- package/dist/api/preview-api.js +43 -25
- package/dist/api/toolbox-api.js +513 -324
- package/dist/api/users-api.js +53 -36
- package/dist/api/workspace-api.d.ts +8 -8
- package/dist/api/workspace-api.js +196 -124
- package/dist/common.js +34 -19
- package/dist/esm/api/api-keys-api.js +66 -37
- package/dist/esm/api/docker-registry-api.js +108 -64
- package/dist/esm/api/images-api.js +80 -46
- package/dist/esm/api/nodes-api.js +52 -28
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +486 -208
- package/dist/esm/api/preview-api.js +44 -26
- package/dist/esm/api/toolbox-api.js +514 -325
- package/dist/esm/api/users-api.js +53 -36
- package/dist/esm/api/workspace-api.d.ts +8 -8
- package/dist/esm/api/workspace-api.js +197 -125
- package/dist/esm/common.js +34 -19
- package/dist/esm/models/create-image.d.ts +2 -2
- package/dist/esm/models/create-organization.d.ts +0 -66
- package/dist/esm/models/create-workspace.d.ts +0 -12
- package/dist/esm/models/image-dto.d.ts +2 -2
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization.d.ts +24 -0
- package/dist/esm/models/workspace-info.d.ts +2 -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 +7 -0
- package/dist/models/create-image.d.ts +2 -2
- package/dist/models/create-organization.d.ts +0 -66
- package/dist/models/create-workspace.d.ts +0 -12
- package/dist/models/image-dto.d.ts +2 -2
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization.d.ts +24 -0
- package/dist/models/workspace-info.d.ts +2 -1
- package/dist/models/workspace-state.d.ts +1 -1
- package/dist/models/workspace-state.js +1 -1
- package/dist/models/workspace.d.ts +7 -0
- package/models/create-image.ts +2 -2
- package/models/create-organization.ts +0 -66
- package/models/create-workspace.ts +0 -12
- package/models/image-dto.ts +2 -2
- package/models/index.ts +1 -0
- package/models/organization-suspension.ts +33 -0
- package/models/organization.ts +24 -0
- package/models/workspace-info.ts +2 -1
- package/models/workspace-state.ts +1 -1
- package/models/workspace.ts +7 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -11,10 +11,19 @@
|
|
|
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
|
+
};
|
|
14
23
|
import globalAxios from 'axios';
|
|
15
24
|
// Some imports not used depending on template conditions
|
|
16
25
|
// @ts-ignore
|
|
17
|
-
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, toPathString, createRequestFunction, } from '../common';
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, toPathString, createRequestFunction, } from '../common';
|
|
18
27
|
// @ts-ignore
|
|
19
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
20
29
|
/**
|
|
@@ -30,7 +39,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
30
39
|
* @param {*} [options] Override http request option.
|
|
31
40
|
* @throws {RequiredError}
|
|
32
41
|
*/
|
|
33
|
-
hasWorkspaceAccess:
|
|
42
|
+
hasWorkspaceAccess: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
34
43
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
35
44
|
assertParamExists('hasWorkspaceAccess', 'workspaceId', workspaceId);
|
|
36
45
|
const localVarPath = `/preview/{workspaceId}/access`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -43,9 +52,12 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
43
52
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
44
53
|
const localVarHeaderParameter = {};
|
|
45
54
|
const localVarQueryParameter = {};
|
|
55
|
+
// authentication bearer required
|
|
56
|
+
// http bearer authentication required
|
|
57
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
46
58
|
// authentication oauth2 required
|
|
47
59
|
// oauth required
|
|
48
|
-
|
|
60
|
+
yield setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
49
61
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
50
62
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
51
63
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -53,7 +65,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
53
65
|
url: toPathString(localVarUrlObj),
|
|
54
66
|
options: localVarRequestOptions,
|
|
55
67
|
};
|
|
56
|
-
},
|
|
68
|
+
}),
|
|
57
69
|
/**
|
|
58
70
|
*
|
|
59
71
|
* @summary Check if workspace auth token is valid
|
|
@@ -62,7 +74,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
62
74
|
* @param {*} [options] Override http request option.
|
|
63
75
|
* @throws {RequiredError}
|
|
64
76
|
*/
|
|
65
|
-
isValidAuthToken:
|
|
77
|
+
isValidAuthToken: (workspaceId_1, authToken_1, ...args_1) => __awaiter(this, [workspaceId_1, authToken_1, ...args_1], void 0, function* (workspaceId, authToken, options = {}) {
|
|
66
78
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
67
79
|
assertParamExists('isValidAuthToken', 'workspaceId', workspaceId);
|
|
68
80
|
// verify required parameter 'authToken' is not null or undefined
|
|
@@ -86,7 +98,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
86
98
|
url: toPathString(localVarUrlObj),
|
|
87
99
|
options: localVarRequestOptions,
|
|
88
100
|
};
|
|
89
|
-
},
|
|
101
|
+
}),
|
|
90
102
|
/**
|
|
91
103
|
*
|
|
92
104
|
* @summary Check if workspace is public
|
|
@@ -94,7 +106,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
94
106
|
* @param {*} [options] Override http request option.
|
|
95
107
|
* @throws {RequiredError}
|
|
96
108
|
*/
|
|
97
|
-
isWorkspacePublic:
|
|
109
|
+
isWorkspacePublic: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
98
110
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
99
111
|
assertParamExists('isWorkspacePublic', 'workspaceId', workspaceId);
|
|
100
112
|
const localVarPath = `/preview/{workspaceId}/public`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -114,7 +126,7 @@ export const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
114
126
|
url: toPathString(localVarUrlObj),
|
|
115
127
|
options: localVarRequestOptions,
|
|
116
128
|
};
|
|
117
|
-
},
|
|
129
|
+
}),
|
|
118
130
|
};
|
|
119
131
|
};
|
|
120
132
|
/**
|
|
@@ -131,12 +143,14 @@ export const PreviewApiFp = function (configuration) {
|
|
|
131
143
|
* @param {*} [options] Override http request option.
|
|
132
144
|
* @throws {RequiredError}
|
|
133
145
|
*/
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
146
|
+
hasWorkspaceAccess(workspaceId, options) {
|
|
147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
var _a, _b, _c;
|
|
149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.hasWorkspaceAccess(workspaceId, options);
|
|
150
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
151
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PreviewApi.hasWorkspaceAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
153
|
+
});
|
|
140
154
|
},
|
|
141
155
|
/**
|
|
142
156
|
*
|
|
@@ -146,12 +160,14 @@ export const PreviewApiFp = function (configuration) {
|
|
|
146
160
|
* @param {*} [options] Override http request option.
|
|
147
161
|
* @throws {RequiredError}
|
|
148
162
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
163
|
+
isValidAuthToken(workspaceId, authToken, options) {
|
|
164
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
var _a, _b, _c;
|
|
166
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.isValidAuthToken(workspaceId, authToken, options);
|
|
167
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
168
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PreviewApi.isValidAuthToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
169
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
170
|
+
});
|
|
155
171
|
},
|
|
156
172
|
/**
|
|
157
173
|
*
|
|
@@ -160,12 +176,14 @@ export const PreviewApiFp = function (configuration) {
|
|
|
160
176
|
* @param {*} [options] Override http request option.
|
|
161
177
|
* @throws {RequiredError}
|
|
162
178
|
*/
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
179
|
+
isWorkspacePublic(workspaceId, options) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
var _a, _b, _c;
|
|
182
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.isWorkspacePublic(workspaceId, options);
|
|
183
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
184
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PreviewApi.isWorkspacePublic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
185
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
186
|
+
});
|
|
169
187
|
},
|
|
170
188
|
};
|
|
171
189
|
};
|