@daytonaio/api-client 0.17.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 +0 -1
- package/api/workspace-api.ts +9 -13
- package/dist/api/api-keys-api.js +57 -40
- package/dist/api/docker-registry-api.js +93 -70
- package/dist/api/images-api.js +69 -50
- package/dist/api/nodes-api.js +45 -30
- package/dist/api/organizations-api.js +309 -250
- package/dist/api/preview-api.js +41 -26
- package/dist/api/toolbox-api.js +441 -360
- package/dist/api/users-api.js +53 -36
- package/dist/api/workspace-api.d.ts +8 -9
- package/dist/api/workspace-api.js +170 -137
- package/dist/common.js +34 -19
- package/dist/esm/api/api-keys-api.js +57 -40
- package/dist/esm/api/docker-registry-api.js +93 -70
- package/dist/esm/api/images-api.js +69 -50
- package/dist/esm/api/nodes-api.js +45 -30
- package/dist/esm/api/organizations-api.js +309 -250
- package/dist/esm/api/preview-api.js +41 -26
- package/dist/esm/api/toolbox-api.js +441 -360
- package/dist/esm/api/users-api.js +53 -36
- package/dist/esm/api/workspace-api.d.ts +8 -9
- package/dist/esm/api/workspace-api.js +170 -137
- package/dist/esm/common.js +34 -19
- package/dist/esm/models/index.d.ts +0 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/models/index.ts +0 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +0 -26
- package/dist/esm/models/list-workspaces-labels-parameter.js +0 -14
- package/dist/models/list-workspaces-labels-parameter.d.ts +0 -26
- package/dist/models/list-workspaces-labels-parameter.js +0 -15
- package/models/list-workspaces-labels-parameter.ts +0 -27
package/dist/api/preview-api.js
CHANGED
|
@@ -12,6 +12,15 @@
|
|
|
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
|
+
};
|
|
15
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
25
|
exports.PreviewApi = exports.PreviewApiFactory = exports.PreviewApiFp = exports.PreviewApiAxiosParamCreator = void 0;
|
|
17
26
|
const axios_1 = require("axios");
|
|
@@ -33,7 +42,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
33
42
|
* @param {*} [options] Override http request option.
|
|
34
43
|
* @throws {RequiredError}
|
|
35
44
|
*/
|
|
36
|
-
hasWorkspaceAccess:
|
|
45
|
+
hasWorkspaceAccess: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
37
46
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
38
47
|
(0, common_1.assertParamExists)('hasWorkspaceAccess', 'workspaceId', workspaceId);
|
|
39
48
|
const localVarPath = `/preview/{workspaceId}/access`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -48,10 +57,10 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
48
57
|
const localVarQueryParameter = {};
|
|
49
58
|
// authentication bearer required
|
|
50
59
|
// http bearer authentication required
|
|
51
|
-
|
|
60
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
52
61
|
// authentication oauth2 required
|
|
53
62
|
// oauth required
|
|
54
|
-
|
|
63
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
55
64
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
56
65
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57
66
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -59,7 +68,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
59
68
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
69
|
options: localVarRequestOptions,
|
|
61
70
|
};
|
|
62
|
-
},
|
|
71
|
+
}),
|
|
63
72
|
/**
|
|
64
73
|
*
|
|
65
74
|
* @summary Check if workspace auth token is valid
|
|
@@ -68,7 +77,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
68
77
|
* @param {*} [options] Override http request option.
|
|
69
78
|
* @throws {RequiredError}
|
|
70
79
|
*/
|
|
71
|
-
isValidAuthToken:
|
|
80
|
+
isValidAuthToken: (workspaceId_1, authToken_1, ...args_1) => __awaiter(this, [workspaceId_1, authToken_1, ...args_1], void 0, function* (workspaceId, authToken, options = {}) {
|
|
72
81
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
73
82
|
(0, common_1.assertParamExists)('isValidAuthToken', 'workspaceId', workspaceId);
|
|
74
83
|
// verify required parameter 'authToken' is not null or undefined
|
|
@@ -92,7 +101,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
92
101
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
93
102
|
options: localVarRequestOptions,
|
|
94
103
|
};
|
|
95
|
-
},
|
|
104
|
+
}),
|
|
96
105
|
/**
|
|
97
106
|
*
|
|
98
107
|
* @summary Check if workspace is public
|
|
@@ -100,7 +109,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
100
109
|
* @param {*} [options] Override http request option.
|
|
101
110
|
* @throws {RequiredError}
|
|
102
111
|
*/
|
|
103
|
-
isWorkspacePublic:
|
|
112
|
+
isWorkspacePublic: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
|
|
104
113
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
105
114
|
(0, common_1.assertParamExists)('isWorkspacePublic', 'workspaceId', workspaceId);
|
|
106
115
|
const localVarPath = `/preview/{workspaceId}/public`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
|
|
@@ -120,7 +129,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
|
|
|
120
129
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
121
130
|
options: localVarRequestOptions,
|
|
122
131
|
};
|
|
123
|
-
},
|
|
132
|
+
}),
|
|
124
133
|
};
|
|
125
134
|
};
|
|
126
135
|
exports.PreviewApiAxiosParamCreator = PreviewApiAxiosParamCreator;
|
|
@@ -138,12 +147,14 @@ const PreviewApiFp = function (configuration) {
|
|
|
138
147
|
* @param {*} [options] Override http request option.
|
|
139
148
|
* @throws {RequiredError}
|
|
140
149
|
*/
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
150
|
+
hasWorkspaceAccess(workspaceId, options) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
var _a, _b, _c;
|
|
153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.hasWorkspaceAccess(workspaceId, options);
|
|
154
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
155
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.hasWorkspaceAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
156
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
157
|
+
});
|
|
147
158
|
},
|
|
148
159
|
/**
|
|
149
160
|
*
|
|
@@ -153,12 +164,14 @@ const PreviewApiFp = function (configuration) {
|
|
|
153
164
|
* @param {*} [options] Override http request option.
|
|
154
165
|
* @throws {RequiredError}
|
|
155
166
|
*/
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
167
|
+
isValidAuthToken(workspaceId, authToken, options) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
var _a, _b, _c;
|
|
170
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.isValidAuthToken(workspaceId, authToken, options);
|
|
171
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
172
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isValidAuthToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
173
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
174
|
+
});
|
|
162
175
|
},
|
|
163
176
|
/**
|
|
164
177
|
*
|
|
@@ -167,12 +180,14 @@ const PreviewApiFp = function (configuration) {
|
|
|
167
180
|
* @param {*} [options] Override http request option.
|
|
168
181
|
* @throws {RequiredError}
|
|
169
182
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
183
|
+
isWorkspacePublic(workspaceId, options) {
|
|
184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
var _a, _b, _c;
|
|
186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.isWorkspacePublic(workspaceId, options);
|
|
187
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
188
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isWorkspacePublic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
189
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
190
|
+
});
|
|
176
191
|
},
|
|
177
192
|
};
|
|
178
193
|
};
|