@daytonaio/api-client 0.131.0-rc.1 → 0.131.0-rc.2
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/package.json +1 -1
- package/src/api/docker-registry-api.d.ts +4 -8
- package/src/api/docker-registry-api.js +7 -14
- package/src/api/docker-registry-api.js.map +1 -1
- package/src/api/organizations-api.d.ts +0 -222
- package/src/api/organizations-api.js +0 -454
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/preview-api.d.ts +0 -37
- package/src/api/preview-api.js +0 -74
- package/src/api/preview-api.js.map +1 -1
- package/src/api/regions-api.d.ts +16 -8
- package/src/api/regions-api.js +29 -13
- package/src/api/regions-api.js.map +1 -1
- package/src/api/runners-api.d.ts +22 -177
- package/src/api/runners-api.js +25 -338
- package/src/api/runners-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +0 -171
- package/src/api/sandbox-api.js +0 -342
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +4 -46
- package/src/api/snapshots-api.js +4 -85
- package/src/api/snapshots-api.js.map +1 -1
- package/src/api.d.ts +0 -2
- package/src/api.js +0 -2
- package/src/api.js.map +1 -1
- package/src/models/api-key-list.d.ts +0 -5
- package/src/models/api-key-list.js +0 -5
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +0 -5
- package/src/models/api-key-response.js +0 -5
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/build-info.d.ts +0 -6
- package/src/models/create-api-key.d.ts +0 -5
- package/src/models/create-api-key.js +0 -5
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/create-organization-role.d.ts +0 -5
- package/src/models/create-organization-role.js +0 -5
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/create-runner.d.ts +68 -2
- package/src/models/create-runner.js +6 -0
- package/src/models/create-runner.js.map +1 -1
- package/src/models/create-snapshot.d.ts +0 -6
- package/src/models/index.d.ts +0 -18
- package/src/models/index.js +0 -18
- package/src/models/index.js.map +1 -1
- package/src/models/organization-role.d.ts +0 -5
- package/src/models/organization-role.js +0 -5
- package/src/models/organization-role.js.map +1 -1
- package/src/models/region.d.ts +0 -19
- package/src/models/region.js +0 -12
- package/src/models/region.js.map +1 -1
- package/src/models/runner-snapshot-dto.d.ts +1 -1
- package/src/models/runner.d.ts +12 -27
- package/src/models/sandbox.d.ts +0 -6
- package/src/models/sandbox.js.map +1 -1
- package/src/models/snapshot-dto.d.ts +0 -18
- package/src/models/ssh-access-dto.d.ts +0 -6
- package/src/models/update-organization-role.d.ts +0 -5
- package/src/models/update-organization-role.js +0 -5
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/update-sandbox-state-dto.d.ts +0 -6
- package/src/models/update-sandbox-state-dto.js.map +1 -1
- package/src/models/workspace.d.ts +0 -6
- package/src/models/workspace.js.map +1 -1
- package/src/api/admin-api.d.ts +0 -208
- package/src/api/admin-api.js +0 -404
- package/src/api/admin-api.js.map +0 -1
- package/src/api/jobs-api.d.ts +0 -197
- package/src/api/jobs-api.js +0 -371
- package/src/api/jobs-api.js.map +0 -1
- package/src/models/admin-create-runner.d.ts +0 -78
- package/src/models/admin-create-runner.js +0 -4
- package/src/models/admin-create-runner.js.map +0 -1
- package/src/models/create-region-response.d.ts +0 -48
- package/src/models/create-region-response.js +0 -4
- package/src/models/create-region-response.js.map +0 -1
- package/src/models/create-region.d.ts +0 -42
- package/src/models/create-region.js +0 -4
- package/src/models/create-region.js.map +0 -1
- package/src/models/create-runner-response.d.ts +0 -30
- package/src/models/create-runner-response.js +0 -4
- package/src/models/create-runner-response.js.map +0 -1
- package/src/models/job-status.d.ts +0 -23
- package/src/models/job-status.js +0 -27
- package/src/models/job-status.js.map +0 -1
- package/src/models/job-type.d.ts +0 -30
- package/src/models/job-type.js +0 -34
- package/src/models/job-type.js.map +0 -1
- package/src/models/job.d.ts +0 -88
- package/src/models/job.js +0 -22
- package/src/models/job.js.map +0 -1
- package/src/models/paginated-jobs.d.ts +0 -43
- package/src/models/paginated-jobs.js +0 -16
- package/src/models/paginated-jobs.js.map +0 -1
- package/src/models/poll-jobs-response.d.ts +0 -25
- package/src/models/poll-jobs-response.js +0 -16
- package/src/models/poll-jobs-response.js.map +0 -1
- package/src/models/regenerate-api-key-response.d.ts +0 -24
- package/src/models/regenerate-api-key-response.js +0 -4
- package/src/models/regenerate-api-key-response.js.map +0 -1
- package/src/models/region-type.d.ts +0 -22
- package/src/models/region-type.js +0 -26
- package/src/models/region-type.js.map +0 -1
- package/src/models/runner-full.d.ts +0 -210
- package/src/models/runner-full.js +0 -16
- package/src/models/runner-full.js.map +0 -1
- package/src/models/runner-health-metrics.d.ts +0 -84
- package/src/models/runner-health-metrics.js +0 -4
- package/src/models/runner-health-metrics.js.map +0 -1
- package/src/models/runner-healthcheck.d.ts +0 -49
- package/src/models/runner-healthcheck.js +0 -16
- package/src/models/runner-healthcheck.js.map +0 -1
- package/src/models/signed-port-preview-url.d.ts +0 -42
- package/src/models/signed-port-preview-url.js +0 -4
- package/src/models/signed-port-preview-url.js.map +0 -1
- package/src/models/toolbox-proxy-url.d.ts +0 -24
- package/src/models/toolbox-proxy-url.js +0 -4
- package/src/models/toolbox-proxy-url.js.map +0 -1
- package/src/models/update-job-status.d.ts +0 -37
- package/src/models/update-job-status.js +0 -16
- package/src/models/update-job-status.js.map +0 -1
- package/src/models/url.d.ts +0 -24
- package/src/models/url.js +0 -4
- package/src/models/url.js.map +0 -1
package/src/api/admin-api.js
DELETED
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Daytona
|
|
6
|
-
* Daytona AI platform API Docs
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
* Contact: support@daytona.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AdminApi = exports.AdminApiFactory = exports.AdminApiFp = exports.AdminApiAxiosParamCreator = void 0;
|
|
17
|
-
const axios_1 = require("axios");
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
const common_1 = require("../common");
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
const base_1 = require("../base");
|
|
23
|
-
/**
|
|
24
|
-
* AdminApi - axios parameter creator
|
|
25
|
-
* @export
|
|
26
|
-
*/
|
|
27
|
-
const AdminApiAxiosParamCreator = function (configuration) {
|
|
28
|
-
return {
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @summary Create runner
|
|
32
|
-
* @param {AdminCreateRunner} adminCreateRunner
|
|
33
|
-
* @param {*} [options] Override http request option.
|
|
34
|
-
* @throws {RequiredError}
|
|
35
|
-
*/
|
|
36
|
-
adminCreateRunner: async (adminCreateRunner, options = {}) => {
|
|
37
|
-
// verify required parameter 'adminCreateRunner' is not null or undefined
|
|
38
|
-
(0, common_1.assertParamExists)('adminCreateRunner', 'adminCreateRunner', adminCreateRunner);
|
|
39
|
-
const localVarPath = `/admin/runners`;
|
|
40
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
41
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
42
|
-
let baseOptions;
|
|
43
|
-
if (configuration) {
|
|
44
|
-
baseOptions = configuration.baseOptions;
|
|
45
|
-
}
|
|
46
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
47
|
-
const localVarHeaderParameter = {};
|
|
48
|
-
const localVarQueryParameter = {};
|
|
49
|
-
// authentication bearer required
|
|
50
|
-
// http bearer authentication required
|
|
51
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
52
|
-
// authentication oauth2 required
|
|
53
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
57
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminCreateRunner, localVarRequestOptions, configuration);
|
|
58
|
-
return {
|
|
59
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
-
options: localVarRequestOptions,
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @summary Delete runner
|
|
66
|
-
* @param {string} id Runner ID
|
|
67
|
-
* @param {*} [options] Override http request option.
|
|
68
|
-
* @throws {RequiredError}
|
|
69
|
-
*/
|
|
70
|
-
adminDeleteRunner: async (id, options = {}) => {
|
|
71
|
-
// verify required parameter 'id' is not null or undefined
|
|
72
|
-
(0, common_1.assertParamExists)('adminDeleteRunner', 'id', id);
|
|
73
|
-
const localVarPath = `/admin/runners/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
74
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
75
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
76
|
-
let baseOptions;
|
|
77
|
-
if (configuration) {
|
|
78
|
-
baseOptions = configuration.baseOptions;
|
|
79
|
-
}
|
|
80
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
81
|
-
const localVarHeaderParameter = {};
|
|
82
|
-
const localVarQueryParameter = {};
|
|
83
|
-
// authentication bearer required
|
|
84
|
-
// http bearer authentication required
|
|
85
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
86
|
-
// authentication oauth2 required
|
|
87
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
88
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
90
|
-
return {
|
|
91
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
92
|
-
options: localVarRequestOptions,
|
|
93
|
-
};
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @summary Get runner by ID
|
|
98
|
-
* @param {string} id Runner ID
|
|
99
|
-
* @param {*} [options] Override http request option.
|
|
100
|
-
* @throws {RequiredError}
|
|
101
|
-
*/
|
|
102
|
-
adminGetRunnerById: async (id, options = {}) => {
|
|
103
|
-
// verify required parameter 'id' is not null or undefined
|
|
104
|
-
(0, common_1.assertParamExists)('adminGetRunnerById', 'id', id);
|
|
105
|
-
const localVarPath = `/admin/runners/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
106
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
108
|
-
let baseOptions;
|
|
109
|
-
if (configuration) {
|
|
110
|
-
baseOptions = configuration.baseOptions;
|
|
111
|
-
}
|
|
112
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
113
|
-
const localVarHeaderParameter = {};
|
|
114
|
-
const localVarQueryParameter = {};
|
|
115
|
-
// authentication bearer required
|
|
116
|
-
// http bearer authentication required
|
|
117
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
118
|
-
// authentication oauth2 required
|
|
119
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
122
|
-
return {
|
|
123
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
124
|
-
options: localVarRequestOptions,
|
|
125
|
-
};
|
|
126
|
-
},
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary List all runners
|
|
130
|
-
* @param {string} [regionId] Filter runners by region ID
|
|
131
|
-
* @param {*} [options] Override http request option.
|
|
132
|
-
* @throws {RequiredError}
|
|
133
|
-
*/
|
|
134
|
-
adminListRunners: async (regionId, options = {}) => {
|
|
135
|
-
const localVarPath = `/admin/runners`;
|
|
136
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
138
|
-
let baseOptions;
|
|
139
|
-
if (configuration) {
|
|
140
|
-
baseOptions = configuration.baseOptions;
|
|
141
|
-
}
|
|
142
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
143
|
-
const localVarHeaderParameter = {};
|
|
144
|
-
const localVarQueryParameter = {};
|
|
145
|
-
// authentication bearer required
|
|
146
|
-
// http bearer authentication required
|
|
147
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
148
|
-
// authentication oauth2 required
|
|
149
|
-
if (regionId !== undefined) {
|
|
150
|
-
localVarQueryParameter['regionId'] = regionId;
|
|
151
|
-
}
|
|
152
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
153
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
154
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
155
|
-
return {
|
|
156
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
157
|
-
options: localVarRequestOptions,
|
|
158
|
-
};
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @summary Update runner scheduling status
|
|
163
|
-
* @param {string} id
|
|
164
|
-
* @param {*} [options] Override http request option.
|
|
165
|
-
* @throws {RequiredError}
|
|
166
|
-
*/
|
|
167
|
-
adminUpdateRunnerScheduling: async (id, options = {}) => {
|
|
168
|
-
// verify required parameter 'id' is not null or undefined
|
|
169
|
-
(0, common_1.assertParamExists)('adminUpdateRunnerScheduling', 'id', id);
|
|
170
|
-
const localVarPath = `/admin/runners/{id}/scheduling`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
171
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
173
|
-
let baseOptions;
|
|
174
|
-
if (configuration) {
|
|
175
|
-
baseOptions = configuration.baseOptions;
|
|
176
|
-
}
|
|
177
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
178
|
-
const localVarHeaderParameter = {};
|
|
179
|
-
const localVarQueryParameter = {};
|
|
180
|
-
// authentication bearer required
|
|
181
|
-
// http bearer authentication required
|
|
182
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
183
|
-
// authentication oauth2 required
|
|
184
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
187
|
-
return {
|
|
188
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
-
options: localVarRequestOptions,
|
|
190
|
-
};
|
|
191
|
-
},
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
exports.AdminApiAxiosParamCreator = AdminApiAxiosParamCreator;
|
|
195
|
-
/**
|
|
196
|
-
* AdminApi - functional programming interface
|
|
197
|
-
* @export
|
|
198
|
-
*/
|
|
199
|
-
const AdminApiFp = function (configuration) {
|
|
200
|
-
const localVarAxiosParamCreator = (0, exports.AdminApiAxiosParamCreator)(configuration);
|
|
201
|
-
return {
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @summary Create runner
|
|
205
|
-
* @param {AdminCreateRunner} adminCreateRunner
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
async adminCreateRunner(adminCreateRunner, options) {
|
|
210
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminCreateRunner(adminCreateRunner, options);
|
|
211
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
212
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminCreateRunner']?.[localVarOperationServerIndex]?.url;
|
|
213
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
214
|
-
},
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @summary Delete runner
|
|
218
|
-
* @param {string} id Runner ID
|
|
219
|
-
* @param {*} [options] Override http request option.
|
|
220
|
-
* @throws {RequiredError}
|
|
221
|
-
*/
|
|
222
|
-
async adminDeleteRunner(id, options) {
|
|
223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminDeleteRunner(id, options);
|
|
224
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
225
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminDeleteRunner']?.[localVarOperationServerIndex]?.url;
|
|
226
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
227
|
-
},
|
|
228
|
-
/**
|
|
229
|
-
*
|
|
230
|
-
* @summary Get runner by ID
|
|
231
|
-
* @param {string} id Runner ID
|
|
232
|
-
* @param {*} [options] Override http request option.
|
|
233
|
-
* @throws {RequiredError}
|
|
234
|
-
*/
|
|
235
|
-
async adminGetRunnerById(id, options) {
|
|
236
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetRunnerById(id, options);
|
|
237
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
238
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetRunnerById']?.[localVarOperationServerIndex]?.url;
|
|
239
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
240
|
-
},
|
|
241
|
-
/**
|
|
242
|
-
*
|
|
243
|
-
* @summary List all runners
|
|
244
|
-
* @param {string} [regionId] Filter runners by region ID
|
|
245
|
-
* @param {*} [options] Override http request option.
|
|
246
|
-
* @throws {RequiredError}
|
|
247
|
-
*/
|
|
248
|
-
async adminListRunners(regionId, options) {
|
|
249
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminListRunners(regionId, options);
|
|
250
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
251
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminListRunners']?.[localVarOperationServerIndex]?.url;
|
|
252
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
253
|
-
},
|
|
254
|
-
/**
|
|
255
|
-
*
|
|
256
|
-
* @summary Update runner scheduling status
|
|
257
|
-
* @param {string} id
|
|
258
|
-
* @param {*} [options] Override http request option.
|
|
259
|
-
* @throws {RequiredError}
|
|
260
|
-
*/
|
|
261
|
-
async adminUpdateRunnerScheduling(id, options) {
|
|
262
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.adminUpdateRunnerScheduling(id, options);
|
|
263
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
264
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminUpdateRunnerScheduling']?.[localVarOperationServerIndex]?.url;
|
|
265
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
266
|
-
},
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
exports.AdminApiFp = AdminApiFp;
|
|
270
|
-
/**
|
|
271
|
-
* AdminApi - factory interface
|
|
272
|
-
* @export
|
|
273
|
-
*/
|
|
274
|
-
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
275
|
-
const localVarFp = (0, exports.AdminApiFp)(configuration);
|
|
276
|
-
return {
|
|
277
|
-
/**
|
|
278
|
-
*
|
|
279
|
-
* @summary Create runner
|
|
280
|
-
* @param {AdminCreateRunner} adminCreateRunner
|
|
281
|
-
* @param {*} [options] Override http request option.
|
|
282
|
-
* @throws {RequiredError}
|
|
283
|
-
*/
|
|
284
|
-
adminCreateRunner(adminCreateRunner, options) {
|
|
285
|
-
return localVarFp.adminCreateRunner(adminCreateRunner, options).then((request) => request(axios, basePath));
|
|
286
|
-
},
|
|
287
|
-
/**
|
|
288
|
-
*
|
|
289
|
-
* @summary Delete runner
|
|
290
|
-
* @param {string} id Runner ID
|
|
291
|
-
* @param {*} [options] Override http request option.
|
|
292
|
-
* @throws {RequiredError}
|
|
293
|
-
*/
|
|
294
|
-
adminDeleteRunner(id, options) {
|
|
295
|
-
return localVarFp.adminDeleteRunner(id, options).then((request) => request(axios, basePath));
|
|
296
|
-
},
|
|
297
|
-
/**
|
|
298
|
-
*
|
|
299
|
-
* @summary Get runner by ID
|
|
300
|
-
* @param {string} id Runner ID
|
|
301
|
-
* @param {*} [options] Override http request option.
|
|
302
|
-
* @throws {RequiredError}
|
|
303
|
-
*/
|
|
304
|
-
adminGetRunnerById(id, options) {
|
|
305
|
-
return localVarFp.adminGetRunnerById(id, options).then((request) => request(axios, basePath));
|
|
306
|
-
},
|
|
307
|
-
/**
|
|
308
|
-
*
|
|
309
|
-
* @summary List all runners
|
|
310
|
-
* @param {string} [regionId] Filter runners by region ID
|
|
311
|
-
* @param {*} [options] Override http request option.
|
|
312
|
-
* @throws {RequiredError}
|
|
313
|
-
*/
|
|
314
|
-
adminListRunners(regionId, options) {
|
|
315
|
-
return localVarFp.adminListRunners(regionId, options).then((request) => request(axios, basePath));
|
|
316
|
-
},
|
|
317
|
-
/**
|
|
318
|
-
*
|
|
319
|
-
* @summary Update runner scheduling status
|
|
320
|
-
* @param {string} id
|
|
321
|
-
* @param {*} [options] Override http request option.
|
|
322
|
-
* @throws {RequiredError}
|
|
323
|
-
*/
|
|
324
|
-
adminUpdateRunnerScheduling(id, options) {
|
|
325
|
-
return localVarFp.adminUpdateRunnerScheduling(id, options).then((request) => request(axios, basePath));
|
|
326
|
-
},
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
exports.AdminApiFactory = AdminApiFactory;
|
|
330
|
-
/**
|
|
331
|
-
* AdminApi - object-oriented interface
|
|
332
|
-
* @export
|
|
333
|
-
* @class AdminApi
|
|
334
|
-
* @extends {BaseAPI}
|
|
335
|
-
*/
|
|
336
|
-
class AdminApi extends base_1.BaseAPI {
|
|
337
|
-
/**
|
|
338
|
-
*
|
|
339
|
-
* @summary Create runner
|
|
340
|
-
* @param {AdminCreateRunner} adminCreateRunner
|
|
341
|
-
* @param {*} [options] Override http request option.
|
|
342
|
-
* @throws {RequiredError}
|
|
343
|
-
* @memberof AdminApi
|
|
344
|
-
*/
|
|
345
|
-
adminCreateRunner(adminCreateRunner, options) {
|
|
346
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
347
|
-
.adminCreateRunner(adminCreateRunner, options)
|
|
348
|
-
.then((request) => request(this.axios, this.basePath));
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
*
|
|
352
|
-
* @summary Delete runner
|
|
353
|
-
* @param {string} id Runner ID
|
|
354
|
-
* @param {*} [options] Override http request option.
|
|
355
|
-
* @throws {RequiredError}
|
|
356
|
-
* @memberof AdminApi
|
|
357
|
-
*/
|
|
358
|
-
adminDeleteRunner(id, options) {
|
|
359
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
360
|
-
.adminDeleteRunner(id, options)
|
|
361
|
-
.then((request) => request(this.axios, this.basePath));
|
|
362
|
-
}
|
|
363
|
-
/**
|
|
364
|
-
*
|
|
365
|
-
* @summary Get runner by ID
|
|
366
|
-
* @param {string} id Runner ID
|
|
367
|
-
* @param {*} [options] Override http request option.
|
|
368
|
-
* @throws {RequiredError}
|
|
369
|
-
* @memberof AdminApi
|
|
370
|
-
*/
|
|
371
|
-
adminGetRunnerById(id, options) {
|
|
372
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
373
|
-
.adminGetRunnerById(id, options)
|
|
374
|
-
.then((request) => request(this.axios, this.basePath));
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
*
|
|
378
|
-
* @summary List all runners
|
|
379
|
-
* @param {string} [regionId] Filter runners by region ID
|
|
380
|
-
* @param {*} [options] Override http request option.
|
|
381
|
-
* @throws {RequiredError}
|
|
382
|
-
* @memberof AdminApi
|
|
383
|
-
*/
|
|
384
|
-
adminListRunners(regionId, options) {
|
|
385
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
386
|
-
.adminListRunners(regionId, options)
|
|
387
|
-
.then((request) => request(this.axios, this.basePath));
|
|
388
|
-
}
|
|
389
|
-
/**
|
|
390
|
-
*
|
|
391
|
-
* @summary Update runner scheduling status
|
|
392
|
-
* @param {string} id
|
|
393
|
-
* @param {*} [options] Override http request option.
|
|
394
|
-
* @throws {RequiredError}
|
|
395
|
-
* @memberof AdminApi
|
|
396
|
-
*/
|
|
397
|
-
adminUpdateRunnerScheduling(id, options) {
|
|
398
|
-
return (0, exports.AdminApiFp)(this.configuration)
|
|
399
|
-
.adminUpdateRunnerScheduling(id, options)
|
|
400
|
-
.then((request) => request(this.axios, this.basePath));
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
exports.AdminApi = AdminApi;
|
|
404
|
-
//# sourceMappingURL=admin-api.js.map
|
package/src/api/admin-api.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-api.js","sourceRoot":"","sources":["../../../../../libs/api-client/src/api/admin-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,iCAA+B;AAC/B,yDAAyD;AACzD,aAAa;AACb,sCAWkB;AAClB,aAAa;AACb,kCAAqH;AAOrH;;;GAGG;AACI,MAAM,yBAAyB,GAAG,UAAU,aAA6B;IAC9E,OAAO;QACL;;;;;;WAMG;QACH,iBAAiB,EAAE,KAAK,EACtB,iBAAoC,EACpC,UAAiC,EAAE,EACb,EAAE;YACxB,yEAAyE;YACzE,IAAA,0BAAiB,EAAC,mBAAmB,EAAE,mBAAmB,EAAE,iBAAiB,CAAC,CAAA;YAC9E,MAAM,YAAY,GAAG,gBAAgB,CAAA;YACrC,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAA;YAC5D,IAAI,WAAW,CAAA;YACf,IAAI,aAAa,EAAE,CAAC;gBAClB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;YACzC,CAAC;YAED,MAAM,sBAAsB,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,EAAE,CAAA;YAC7E,MAAM,uBAAuB,GAAG,EAAS,CAAA;YACzC,MAAM,sBAAsB,GAAG,EAAS,CAAA;YAExC,iCAAiC;YACjC,sCAAsC;YACtC,MAAM,IAAA,8BAAqB,EAAC,uBAAuB,EAAE,aAAa,CAAC,CAAA;YAEnE,iCAAiC;YAEjC,uBAAuB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAA;YAE5D,IAAA,wBAAe,EAAC,cAAc,E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support@daytona.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type { Job } from '../models';
|
|
16
|
-
import type { JobStatus } from '../models';
|
|
17
|
-
import type { PaginatedJobs } from '../models';
|
|
18
|
-
import type { PollJobsResponse } from '../models';
|
|
19
|
-
import type { UpdateJobStatus } from '../models';
|
|
20
|
-
/**
|
|
21
|
-
* JobsApi - axios parameter creator
|
|
22
|
-
* @export
|
|
23
|
-
*/
|
|
24
|
-
export declare const JobsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @summary Get job details
|
|
28
|
-
* @param {string} jobId ID of the job
|
|
29
|
-
* @param {*} [options] Override http request option.
|
|
30
|
-
* @throws {RequiredError}
|
|
31
|
-
*/
|
|
32
|
-
getJob: (jobId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
-
/**
|
|
34
|
-
* Returns a paginated list of jobs for the runner, optionally filtered by status.
|
|
35
|
-
* @summary List jobs for the runner
|
|
36
|
-
* @param {number} [page] Page number of the results
|
|
37
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 100, max: 500)
|
|
38
|
-
* @param {JobStatus} [status] Filter jobs by status
|
|
39
|
-
* @param {number} [offset] Number of jobs to skip for pagination (default: 0)
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
listJobs: (page?: number, limit?: number, status?: JobStatus, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
-
/**
|
|
45
|
-
* Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
|
|
46
|
-
* @summary Long poll for jobs
|
|
47
|
-
* @param {number} [timeout] Timeout in seconds for long polling (default: 30, max: 60)
|
|
48
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 10, max: 100)
|
|
49
|
-
* @param {*} [options] Override http request option.
|
|
50
|
-
* @throws {RequiredError}
|
|
51
|
-
*/
|
|
52
|
-
pollJobs: (timeout?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @summary Update job status
|
|
56
|
-
* @param {string} jobId ID of the job
|
|
57
|
-
* @param {UpdateJobStatus} updateJobStatus
|
|
58
|
-
* @param {*} [options] Override http request option.
|
|
59
|
-
* @throws {RequiredError}
|
|
60
|
-
*/
|
|
61
|
-
updateJobStatus: (jobId: string, updateJobStatus: UpdateJobStatus, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* JobsApi - functional programming interface
|
|
65
|
-
* @export
|
|
66
|
-
*/
|
|
67
|
-
export declare const JobsApiFp: (configuration?: Configuration) => {
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @summary Get job details
|
|
71
|
-
* @param {string} jobId ID of the job
|
|
72
|
-
* @param {*} [options] Override http request option.
|
|
73
|
-
* @throws {RequiredError}
|
|
74
|
-
*/
|
|
75
|
-
getJob(jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>>;
|
|
76
|
-
/**
|
|
77
|
-
* Returns a paginated list of jobs for the runner, optionally filtered by status.
|
|
78
|
-
* @summary List jobs for the runner
|
|
79
|
-
* @param {number} [page] Page number of the results
|
|
80
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 100, max: 500)
|
|
81
|
-
* @param {JobStatus} [status] Filter jobs by status
|
|
82
|
-
* @param {number} [offset] Number of jobs to skip for pagination (default: 0)
|
|
83
|
-
* @param {*} [options] Override http request option.
|
|
84
|
-
* @throws {RequiredError}
|
|
85
|
-
*/
|
|
86
|
-
listJobs(page?: number, limit?: number, status?: JobStatus, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedJobs>>;
|
|
87
|
-
/**
|
|
88
|
-
* Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
|
|
89
|
-
* @summary Long poll for jobs
|
|
90
|
-
* @param {number} [timeout] Timeout in seconds for long polling (default: 30, max: 60)
|
|
91
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 10, max: 100)
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
pollJobs(timeout?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PollJobsResponse>>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @summary Update job status
|
|
99
|
-
* @param {string} jobId ID of the job
|
|
100
|
-
* @param {UpdateJobStatus} updateJobStatus
|
|
101
|
-
* @param {*} [options] Override http request option.
|
|
102
|
-
* @throws {RequiredError}
|
|
103
|
-
*/
|
|
104
|
-
updateJobStatus(jobId: string, updateJobStatus: UpdateJobStatus, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Job>>;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* JobsApi - factory interface
|
|
108
|
-
* @export
|
|
109
|
-
*/
|
|
110
|
-
export declare const JobsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @summary Get job details
|
|
114
|
-
* @param {string} jobId ID of the job
|
|
115
|
-
* @param {*} [options] Override http request option.
|
|
116
|
-
* @throws {RequiredError}
|
|
117
|
-
*/
|
|
118
|
-
getJob(jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<Job>;
|
|
119
|
-
/**
|
|
120
|
-
* Returns a paginated list of jobs for the runner, optionally filtered by status.
|
|
121
|
-
* @summary List jobs for the runner
|
|
122
|
-
* @param {number} [page] Page number of the results
|
|
123
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 100, max: 500)
|
|
124
|
-
* @param {JobStatus} [status] Filter jobs by status
|
|
125
|
-
* @param {number} [offset] Number of jobs to skip for pagination (default: 0)
|
|
126
|
-
* @param {*} [options] Override http request option.
|
|
127
|
-
* @throws {RequiredError}
|
|
128
|
-
*/
|
|
129
|
-
listJobs(page?: number, limit?: number, status?: JobStatus, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedJobs>;
|
|
130
|
-
/**
|
|
131
|
-
* Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
|
|
132
|
-
* @summary Long poll for jobs
|
|
133
|
-
* @param {number} [timeout] Timeout in seconds for long polling (default: 30, max: 60)
|
|
134
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 10, max: 100)
|
|
135
|
-
* @param {*} [options] Override http request option.
|
|
136
|
-
* @throws {RequiredError}
|
|
137
|
-
*/
|
|
138
|
-
pollJobs(timeout?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<PollJobsResponse>;
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @summary Update job status
|
|
142
|
-
* @param {string} jobId ID of the job
|
|
143
|
-
* @param {UpdateJobStatus} updateJobStatus
|
|
144
|
-
* @param {*} [options] Override http request option.
|
|
145
|
-
* @throws {RequiredError}
|
|
146
|
-
*/
|
|
147
|
-
updateJobStatus(jobId: string, updateJobStatus: UpdateJobStatus, options?: RawAxiosRequestConfig): AxiosPromise<Job>;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* JobsApi - object-oriented interface
|
|
151
|
-
* @export
|
|
152
|
-
* @class JobsApi
|
|
153
|
-
* @extends {BaseAPI}
|
|
154
|
-
*/
|
|
155
|
-
export declare class JobsApi extends BaseAPI {
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @summary Get job details
|
|
159
|
-
* @param {string} jobId ID of the job
|
|
160
|
-
* @param {*} [options] Override http request option.
|
|
161
|
-
* @throws {RequiredError}
|
|
162
|
-
* @memberof JobsApi
|
|
163
|
-
*/
|
|
164
|
-
getJob(jobId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
|
|
165
|
-
/**
|
|
166
|
-
* Returns a paginated list of jobs for the runner, optionally filtered by status.
|
|
167
|
-
* @summary List jobs for the runner
|
|
168
|
-
* @param {number} [page] Page number of the results
|
|
169
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 100, max: 500)
|
|
170
|
-
* @param {JobStatus} [status] Filter jobs by status
|
|
171
|
-
* @param {number} [offset] Number of jobs to skip for pagination (default: 0)
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
* @memberof JobsApi
|
|
175
|
-
*/
|
|
176
|
-
listJobs(page?: number, limit?: number, status?: JobStatus, offset?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedJobs, any>>;
|
|
177
|
-
/**
|
|
178
|
-
* Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds.
|
|
179
|
-
* @summary Long poll for jobs
|
|
180
|
-
* @param {number} [timeout] Timeout in seconds for long polling (default: 30, max: 60)
|
|
181
|
-
* @param {number} [limit] Maximum number of jobs to return (default: 10, max: 100)
|
|
182
|
-
* @param {*} [options] Override http request option.
|
|
183
|
-
* @throws {RequiredError}
|
|
184
|
-
* @memberof JobsApi
|
|
185
|
-
*/
|
|
186
|
-
pollJobs(timeout?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PollJobsResponse, any>>;
|
|
187
|
-
/**
|
|
188
|
-
*
|
|
189
|
-
* @summary Update job status
|
|
190
|
-
* @param {string} jobId ID of the job
|
|
191
|
-
* @param {UpdateJobStatus} updateJobStatus
|
|
192
|
-
* @param {*} [options] Override http request option.
|
|
193
|
-
* @throws {RequiredError}
|
|
194
|
-
* @memberof JobsApi
|
|
195
|
-
*/
|
|
196
|
-
updateJobStatus(jobId: string, updateJobStatus: UpdateJobStatus, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Job, any>>;
|
|
197
|
-
}
|