@daytonaio/api-client 0.163.0 → 0.164.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/package.json +1 -1
- package/src/api/admin-api.d.ts +424 -0
- package/src/api/admin-api.js +848 -0
- package/src/api/admin-api.js.map +1 -1
- package/src/api/audit-api.d.ts +0 -49
- package/src/api/audit-api.js +0 -99
- package/src/api/audit-api.js.map +1 -1
- package/src/api/docker-registry-api.d.ts +0 -37
- package/src/api/docker-registry-api.js +0 -74
- package/src/api/docker-registry-api.js.map +1 -1
- package/src/api/health-api.js +3 -0
- package/src/api/health-api.js.map +1 -1
- package/src/api/organizations-api.d.ts +0 -67
- package/src/api/organizations-api.js +0 -134
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/preview-api.js +12 -0
- package/src/api/preview-api.js.map +1 -1
- package/src/api/regions-api.js +0 -4
- package/src/api/regions-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +76 -0
- package/src/api/sandbox-api.js +148 -0
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +0 -79
- package/src/api/snapshots-api.js +0 -158
- package/src/api/snapshots-api.js.map +1 -1
- package/src/api/users-api.d.ts +0 -129
- package/src/api/users-api.js +0 -262
- package/src/api/users-api.js.map +1 -1
- package/src/api/webhooks-api.d.ts +0 -154
- package/src/api/webhooks-api.js +2 -300
- package/src/api/webhooks-api.js.map +1 -1
- package/src/models/{webhook-controller-get-status200-response.d.ts → admin-get-webhook-status200-response.d.ts} +3 -3
- package/src/models/{webhook-controller-get-status200-response.js → admin-get-webhook-status200-response.js} +1 -1
- package/src/models/admin-get-webhook-status200-response.js.map +1 -0
- package/src/models/create-docker-registry.d.ts +0 -19
- package/src/models/create-docker-registry.js +0 -7
- package/src/models/create-docker-registry.js.map +1 -1
- package/src/models/create-snapshot.d.ts +0 -6
- package/src/models/index.d.ts +1 -1
- package/src/models/index.js +1 -1
- package/src/models/index.js.map +1 -1
- package/src/models/webhook-controller-get-status200-response.js.map +0 -1
package/src/api/admin-api.js
CHANGED
|
@@ -26,6 +26,41 @@ const base_1 = require("../base");
|
|
|
26
26
|
*/
|
|
27
27
|
const AdminApiAxiosParamCreator = function (configuration) {
|
|
28
28
|
return {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @summary Check if an image can be cleaned up
|
|
32
|
+
* @param {string} imageName Image name with tag to check
|
|
33
|
+
* @param {*} [options] Override http request option.
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
*/
|
|
36
|
+
adminCanCleanupImage: async (imageName, options = {}) => {
|
|
37
|
+
// verify required parameter 'imageName' is not null or undefined
|
|
38
|
+
(0, common_1.assertParamExists)('adminCanCleanupImage', 'imageName', imageName);
|
|
39
|
+
const localVarPath = `/admin/snapshots/can-cleanup-image`;
|
|
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: 'GET', ...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
|
+
if (imageName !== undefined) {
|
|
54
|
+
localVarQueryParameter['imageName'] = imageName;
|
|
55
|
+
}
|
|
56
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
59
|
+
return {
|
|
60
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
61
|
+
options: localVarRequestOptions,
|
|
62
|
+
};
|
|
63
|
+
},
|
|
29
64
|
/**
|
|
30
65
|
*
|
|
31
66
|
* @summary Create runner
|
|
@@ -60,6 +95,40 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
60
95
|
options: localVarRequestOptions,
|
|
61
96
|
};
|
|
62
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @summary Create user
|
|
101
|
+
* @param {CreateUser} createUser
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
adminCreateUser: async (createUser, options = {}) => {
|
|
106
|
+
// verify required parameter 'createUser' is not null or undefined
|
|
107
|
+
(0, common_1.assertParamExists)('adminCreateUser', 'createUser', createUser);
|
|
108
|
+
const localVarPath = `/admin/users`;
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
// authentication bearer required
|
|
119
|
+
// http bearer authentication required
|
|
120
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
121
|
+
// authentication oauth2 required
|
|
122
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
123
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
126
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUser, localVarRequestOptions, configuration);
|
|
127
|
+
return {
|
|
128
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
};
|
|
131
|
+
},
|
|
63
132
|
/**
|
|
64
133
|
*
|
|
65
134
|
* @summary Delete runner
|
|
@@ -93,6 +162,96 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
93
162
|
options: localVarRequestOptions,
|
|
94
163
|
};
|
|
95
164
|
},
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @summary Get all audit logs
|
|
168
|
+
* @param {number} [page] Page number of the results
|
|
169
|
+
* @param {number} [limit] Number of results per page
|
|
170
|
+
* @param {Date} [from] From date (ISO 8601 format)
|
|
171
|
+
* @param {Date} [to] To date (ISO 8601 format)
|
|
172
|
+
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
adminGetAllAuditLogs: async (page, limit, from, to, nextToken, options = {}) => {
|
|
177
|
+
const localVarPath = `/admin/audit`;
|
|
178
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
179
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
180
|
+
let baseOptions;
|
|
181
|
+
if (configuration) {
|
|
182
|
+
baseOptions = configuration.baseOptions;
|
|
183
|
+
}
|
|
184
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
185
|
+
const localVarHeaderParameter = {};
|
|
186
|
+
const localVarQueryParameter = {};
|
|
187
|
+
// authentication bearer required
|
|
188
|
+
// http bearer authentication required
|
|
189
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
190
|
+
// authentication oauth2 required
|
|
191
|
+
if (page !== undefined) {
|
|
192
|
+
localVarQueryParameter['page'] = page;
|
|
193
|
+
}
|
|
194
|
+
if (limit !== undefined) {
|
|
195
|
+
localVarQueryParameter['limit'] = limit;
|
|
196
|
+
}
|
|
197
|
+
if (from !== undefined) {
|
|
198
|
+
localVarQueryParameter['from'] = (from instanceof Date) ?
|
|
199
|
+
from.toISOString() :
|
|
200
|
+
from;
|
|
201
|
+
}
|
|
202
|
+
if (to !== undefined) {
|
|
203
|
+
localVarQueryParameter['to'] = (to instanceof Date) ?
|
|
204
|
+
to.toISOString() :
|
|
205
|
+
to;
|
|
206
|
+
}
|
|
207
|
+
if (nextToken !== undefined) {
|
|
208
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
209
|
+
}
|
|
210
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
212
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
213
|
+
return {
|
|
214
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @summary Get delivery attempts for a webhook message
|
|
221
|
+
* @param {string} organizationId
|
|
222
|
+
* @param {string} messageId
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
adminGetMessageAttempts: async (organizationId, messageId, options = {}) => {
|
|
227
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
228
|
+
(0, common_1.assertParamExists)('adminGetMessageAttempts', 'organizationId', organizationId);
|
|
229
|
+
// verify required parameter 'messageId' is not null or undefined
|
|
230
|
+
(0, common_1.assertParamExists)('adminGetMessageAttempts', 'messageId', messageId);
|
|
231
|
+
const localVarPath = `/admin/webhooks/organizations/{organizationId}/messages/{messageId}/attempts`
|
|
232
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
233
|
+
.replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
|
|
234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
|
+
let baseOptions;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
}
|
|
240
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
241
|
+
const localVarHeaderParameter = {};
|
|
242
|
+
const localVarQueryParameter = {};
|
|
243
|
+
// authentication bearer required
|
|
244
|
+
// http bearer authentication required
|
|
245
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
246
|
+
// authentication oauth2 required
|
|
247
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
250
|
+
return {
|
|
251
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
252
|
+
options: localVarRequestOptions,
|
|
253
|
+
};
|
|
254
|
+
},
|
|
96
255
|
/**
|
|
97
256
|
*
|
|
98
257
|
* @summary Get runner by ID
|
|
@@ -126,6 +285,101 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
126
285
|
options: localVarRequestOptions,
|
|
127
286
|
};
|
|
128
287
|
},
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Get user by ID
|
|
291
|
+
* @param {string} id
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
adminGetUser: async (id, options = {}) => {
|
|
296
|
+
// verify required parameter 'id' is not null or undefined
|
|
297
|
+
(0, common_1.assertParamExists)('adminGetUser', 'id', id);
|
|
298
|
+
const localVarPath = `/admin/users/{id}`
|
|
299
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
301
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
302
|
+
let baseOptions;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
307
|
+
const localVarHeaderParameter = {};
|
|
308
|
+
const localVarQueryParameter = {};
|
|
309
|
+
// authentication bearer required
|
|
310
|
+
// http bearer authentication required
|
|
311
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
312
|
+
// authentication oauth2 required
|
|
313
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
314
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
315
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
316
|
+
return {
|
|
317
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
318
|
+
options: localVarRequestOptions,
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @summary Get webhook service status
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
adminGetWebhookStatus: async (options = {}) => {
|
|
328
|
+
const localVarPath = `/admin/webhooks/status`;
|
|
329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
330
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
+
let baseOptions;
|
|
332
|
+
if (configuration) {
|
|
333
|
+
baseOptions = configuration.baseOptions;
|
|
334
|
+
}
|
|
335
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
336
|
+
const localVarHeaderParameter = {};
|
|
337
|
+
const localVarQueryParameter = {};
|
|
338
|
+
// authentication bearer required
|
|
339
|
+
// http bearer authentication required
|
|
340
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
341
|
+
// authentication oauth2 required
|
|
342
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
343
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
344
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
345
|
+
return {
|
|
346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
347
|
+
options: localVarRequestOptions,
|
|
348
|
+
};
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @summary Initialize webhooks for an organization
|
|
353
|
+
* @param {string} organizationId
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
adminInitializeWebhooks: async (organizationId, options = {}) => {
|
|
358
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
359
|
+
(0, common_1.assertParamExists)('adminInitializeWebhooks', 'organizationId', organizationId);
|
|
360
|
+
const localVarPath = `/admin/webhooks/organizations/{organizationId}/initialize`
|
|
361
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
362
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
363
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
364
|
+
let baseOptions;
|
|
365
|
+
if (configuration) {
|
|
366
|
+
baseOptions = configuration.baseOptions;
|
|
367
|
+
}
|
|
368
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
369
|
+
const localVarHeaderParameter = {};
|
|
370
|
+
const localVarQueryParameter = {};
|
|
371
|
+
// authentication bearer required
|
|
372
|
+
// http bearer authentication required
|
|
373
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
374
|
+
// authentication oauth2 required
|
|
375
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
376
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
377
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
378
|
+
return {
|
|
379
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
380
|
+
options: localVarRequestOptions,
|
|
381
|
+
};
|
|
382
|
+
},
|
|
129
383
|
/**
|
|
130
384
|
*
|
|
131
385
|
* @summary List all runners
|
|
@@ -159,6 +413,35 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
159
413
|
options: localVarRequestOptions,
|
|
160
414
|
};
|
|
161
415
|
},
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary List all users
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
*/
|
|
422
|
+
adminListUsers: async (options = {}) => {
|
|
423
|
+
const localVarPath = `/admin/users`;
|
|
424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
425
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
426
|
+
let baseOptions;
|
|
427
|
+
if (configuration) {
|
|
428
|
+
baseOptions = configuration.baseOptions;
|
|
429
|
+
}
|
|
430
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
431
|
+
const localVarHeaderParameter = {};
|
|
432
|
+
const localVarQueryParameter = {};
|
|
433
|
+
// authentication bearer required
|
|
434
|
+
// http bearer authentication required
|
|
435
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
436
|
+
// authentication oauth2 required
|
|
437
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
440
|
+
return {
|
|
441
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
442
|
+
options: localVarRequestOptions,
|
|
443
|
+
};
|
|
444
|
+
},
|
|
162
445
|
/**
|
|
163
446
|
*
|
|
164
447
|
* @summary Recover sandbox from error state as an admin
|
|
@@ -192,6 +475,148 @@ const AdminApiAxiosParamCreator = function (configuration) {
|
|
|
192
475
|
options: localVarRequestOptions,
|
|
193
476
|
};
|
|
194
477
|
},
|
|
478
|
+
/**
|
|
479
|
+
*
|
|
480
|
+
* @summary Regenerate user key pair
|
|
481
|
+
* @param {string} id
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
adminRegenerateKeyPair: async (id, options = {}) => {
|
|
486
|
+
// verify required parameter 'id' is not null or undefined
|
|
487
|
+
(0, common_1.assertParamExists)('adminRegenerateKeyPair', 'id', id);
|
|
488
|
+
const localVarPath = `/admin/users/{id}/regenerate-key-pair`
|
|
489
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
491
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
492
|
+
let baseOptions;
|
|
493
|
+
if (configuration) {
|
|
494
|
+
baseOptions = configuration.baseOptions;
|
|
495
|
+
}
|
|
496
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
497
|
+
const localVarHeaderParameter = {};
|
|
498
|
+
const localVarQueryParameter = {};
|
|
499
|
+
// authentication bearer required
|
|
500
|
+
// http bearer authentication required
|
|
501
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
502
|
+
// authentication oauth2 required
|
|
503
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
504
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
505
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
506
|
+
return {
|
|
507
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
508
|
+
options: localVarRequestOptions,
|
|
509
|
+
};
|
|
510
|
+
},
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @summary Send a webhook message to an organization
|
|
514
|
+
* @param {string} organizationId
|
|
515
|
+
* @param {SendWebhookDto} sendWebhookDto
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
*/
|
|
519
|
+
adminSendWebhook: async (organizationId, sendWebhookDto, options = {}) => {
|
|
520
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
521
|
+
(0, common_1.assertParamExists)('adminSendWebhook', 'organizationId', organizationId);
|
|
522
|
+
// verify required parameter 'sendWebhookDto' is not null or undefined
|
|
523
|
+
(0, common_1.assertParamExists)('adminSendWebhook', 'sendWebhookDto', sendWebhookDto);
|
|
524
|
+
const localVarPath = `/admin/webhooks/organizations/{organizationId}/send`
|
|
525
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
526
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
527
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
528
|
+
let baseOptions;
|
|
529
|
+
if (configuration) {
|
|
530
|
+
baseOptions = configuration.baseOptions;
|
|
531
|
+
}
|
|
532
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
533
|
+
const localVarHeaderParameter = {};
|
|
534
|
+
const localVarQueryParameter = {};
|
|
535
|
+
// authentication bearer required
|
|
536
|
+
// http bearer authentication required
|
|
537
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
538
|
+
// authentication oauth2 required
|
|
539
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
540
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
541
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
542
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
543
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendWebhookDto, localVarRequestOptions, configuration);
|
|
544
|
+
return {
|
|
545
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
546
|
+
options: localVarRequestOptions,
|
|
547
|
+
};
|
|
548
|
+
},
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @summary Set default registry
|
|
552
|
+
* @param {string} id ID of the docker registry
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
adminSetDefaultRegistry: async (id, options = {}) => {
|
|
557
|
+
// verify required parameter 'id' is not null or undefined
|
|
558
|
+
(0, common_1.assertParamExists)('adminSetDefaultRegistry', 'id', id);
|
|
559
|
+
const localVarPath = `/admin/docker-registry/{id}/set-default`
|
|
560
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
562
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
563
|
+
let baseOptions;
|
|
564
|
+
if (configuration) {
|
|
565
|
+
baseOptions = configuration.baseOptions;
|
|
566
|
+
}
|
|
567
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
568
|
+
const localVarHeaderParameter = {};
|
|
569
|
+
const localVarQueryParameter = {};
|
|
570
|
+
// authentication bearer required
|
|
571
|
+
// http bearer authentication required
|
|
572
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
573
|
+
// authentication oauth2 required
|
|
574
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
576
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
577
|
+
return {
|
|
578
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
579
|
+
options: localVarRequestOptions,
|
|
580
|
+
};
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Set snapshot general status
|
|
585
|
+
* @param {string} id Snapshot ID
|
|
586
|
+
* @param {SetSnapshotGeneralStatusDto} setSnapshotGeneralStatusDto
|
|
587
|
+
* @param {*} [options] Override http request option.
|
|
588
|
+
* @throws {RequiredError}
|
|
589
|
+
*/
|
|
590
|
+
adminSetSnapshotGeneralStatus: async (id, setSnapshotGeneralStatusDto, options = {}) => {
|
|
591
|
+
// verify required parameter 'id' is not null or undefined
|
|
592
|
+
(0, common_1.assertParamExists)('adminSetSnapshotGeneralStatus', 'id', id);
|
|
593
|
+
// verify required parameter 'setSnapshotGeneralStatusDto' is not null or undefined
|
|
594
|
+
(0, common_1.assertParamExists)('adminSetSnapshotGeneralStatus', 'setSnapshotGeneralStatusDto', setSnapshotGeneralStatusDto);
|
|
595
|
+
const localVarPath = `/admin/snapshots/{id}/general`
|
|
596
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
597
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
598
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
599
|
+
let baseOptions;
|
|
600
|
+
if (configuration) {
|
|
601
|
+
baseOptions = configuration.baseOptions;
|
|
602
|
+
}
|
|
603
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
604
|
+
const localVarHeaderParameter = {};
|
|
605
|
+
const localVarQueryParameter = {};
|
|
606
|
+
// authentication bearer required
|
|
607
|
+
// http bearer authentication required
|
|
608
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
609
|
+
// authentication oauth2 required
|
|
610
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
611
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
612
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
613
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
614
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setSnapshotGeneralStatusDto, localVarRequestOptions, configuration);
|
|
615
|
+
return {
|
|
616
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
617
|
+
options: localVarRequestOptions,
|
|
618
|
+
};
|
|
619
|
+
},
|
|
195
620
|
/**
|
|
196
621
|
*
|
|
197
622
|
* @summary Update runner scheduling status
|
|
@@ -235,6 +660,19 @@ exports.AdminApiAxiosParamCreator = AdminApiAxiosParamCreator;
|
|
|
235
660
|
const AdminApiFp = function (configuration) {
|
|
236
661
|
const localVarAxiosParamCreator = (0, exports.AdminApiAxiosParamCreator)(configuration);
|
|
237
662
|
return {
|
|
663
|
+
/**
|
|
664
|
+
*
|
|
665
|
+
* @summary Check if an image can be cleaned up
|
|
666
|
+
* @param {string} imageName Image name with tag to check
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
async adminCanCleanupImage(imageName, options) {
|
|
671
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminCanCleanupImage(imageName, options);
|
|
672
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
673
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminCanCleanupImage']?.[localVarOperationServerIndex]?.url;
|
|
674
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
675
|
+
},
|
|
238
676
|
/**
|
|
239
677
|
*
|
|
240
678
|
* @summary Create runner
|
|
@@ -248,6 +686,19 @@ const AdminApiFp = function (configuration) {
|
|
|
248
686
|
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminCreateRunner']?.[localVarOperationServerIndex]?.url;
|
|
249
687
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
250
688
|
},
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @summary Create user
|
|
692
|
+
* @param {CreateUser} createUser
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
*/
|
|
696
|
+
async adminCreateUser(createUser, options) {
|
|
697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminCreateUser(createUser, options);
|
|
698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
699
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminCreateUser']?.[localVarOperationServerIndex]?.url;
|
|
700
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
701
|
+
},
|
|
251
702
|
/**
|
|
252
703
|
*
|
|
253
704
|
* @summary Delete runner
|
|
@@ -261,6 +712,37 @@ const AdminApiFp = function (configuration) {
|
|
|
261
712
|
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminDeleteRunner']?.[localVarOperationServerIndex]?.url;
|
|
262
713
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
263
714
|
},
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @summary Get all audit logs
|
|
718
|
+
* @param {number} [page] Page number of the results
|
|
719
|
+
* @param {number} [limit] Number of results per page
|
|
720
|
+
* @param {Date} [from] From date (ISO 8601 format)
|
|
721
|
+
* @param {Date} [to] To date (ISO 8601 format)
|
|
722
|
+
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
723
|
+
* @param {*} [options] Override http request option.
|
|
724
|
+
* @throws {RequiredError}
|
|
725
|
+
*/
|
|
726
|
+
async adminGetAllAuditLogs(page, limit, from, to, nextToken, options) {
|
|
727
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetAllAuditLogs(page, limit, from, to, nextToken, options);
|
|
728
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
729
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetAllAuditLogs']?.[localVarOperationServerIndex]?.url;
|
|
730
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
731
|
+
},
|
|
732
|
+
/**
|
|
733
|
+
*
|
|
734
|
+
* @summary Get delivery attempts for a webhook message
|
|
735
|
+
* @param {string} organizationId
|
|
736
|
+
* @param {string} messageId
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
async adminGetMessageAttempts(organizationId, messageId, options) {
|
|
741
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetMessageAttempts(organizationId, messageId, options);
|
|
742
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
743
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetMessageAttempts']?.[localVarOperationServerIndex]?.url;
|
|
744
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
745
|
+
},
|
|
264
746
|
/**
|
|
265
747
|
*
|
|
266
748
|
* @summary Get runner by ID
|
|
@@ -274,6 +756,44 @@ const AdminApiFp = function (configuration) {
|
|
|
274
756
|
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetRunnerById']?.[localVarOperationServerIndex]?.url;
|
|
275
757
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
276
758
|
},
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @summary Get user by ID
|
|
762
|
+
* @param {string} id
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @throws {RequiredError}
|
|
765
|
+
*/
|
|
766
|
+
async adminGetUser(id, options) {
|
|
767
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetUser(id, options);
|
|
768
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
769
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetUser']?.[localVarOperationServerIndex]?.url;
|
|
770
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
771
|
+
},
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
* @summary Get webhook service status
|
|
775
|
+
* @param {*} [options] Override http request option.
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
async adminGetWebhookStatus(options) {
|
|
779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminGetWebhookStatus(options);
|
|
780
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
781
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminGetWebhookStatus']?.[localVarOperationServerIndex]?.url;
|
|
782
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
783
|
+
},
|
|
784
|
+
/**
|
|
785
|
+
*
|
|
786
|
+
* @summary Initialize webhooks for an organization
|
|
787
|
+
* @param {string} organizationId
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
*/
|
|
791
|
+
async adminInitializeWebhooks(organizationId, options) {
|
|
792
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminInitializeWebhooks(organizationId, options);
|
|
793
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
794
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminInitializeWebhooks']?.[localVarOperationServerIndex]?.url;
|
|
795
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
796
|
+
},
|
|
277
797
|
/**
|
|
278
798
|
*
|
|
279
799
|
* @summary List all runners
|
|
@@ -287,6 +807,18 @@ const AdminApiFp = function (configuration) {
|
|
|
287
807
|
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminListRunners']?.[localVarOperationServerIndex]?.url;
|
|
288
808
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
289
809
|
},
|
|
810
|
+
/**
|
|
811
|
+
*
|
|
812
|
+
* @summary List all users
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
async adminListUsers(options) {
|
|
817
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminListUsers(options);
|
|
818
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
819
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminListUsers']?.[localVarOperationServerIndex]?.url;
|
|
820
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
821
|
+
},
|
|
290
822
|
/**
|
|
291
823
|
*
|
|
292
824
|
* @summary Recover sandbox from error state as an admin
|
|
@@ -300,6 +832,60 @@ const AdminApiFp = function (configuration) {
|
|
|
300
832
|
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminRecoverSandbox']?.[localVarOperationServerIndex]?.url;
|
|
301
833
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
302
834
|
},
|
|
835
|
+
/**
|
|
836
|
+
*
|
|
837
|
+
* @summary Regenerate user key pair
|
|
838
|
+
* @param {string} id
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
async adminRegenerateKeyPair(id, options) {
|
|
843
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminRegenerateKeyPair(id, options);
|
|
844
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
845
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminRegenerateKeyPair']?.[localVarOperationServerIndex]?.url;
|
|
846
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
847
|
+
},
|
|
848
|
+
/**
|
|
849
|
+
*
|
|
850
|
+
* @summary Send a webhook message to an organization
|
|
851
|
+
* @param {string} organizationId
|
|
852
|
+
* @param {SendWebhookDto} sendWebhookDto
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
async adminSendWebhook(organizationId, sendWebhookDto, options) {
|
|
857
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSendWebhook(organizationId, sendWebhookDto, options);
|
|
858
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
859
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminSendWebhook']?.[localVarOperationServerIndex]?.url;
|
|
860
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
861
|
+
},
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary Set default registry
|
|
865
|
+
* @param {string} id ID of the docker registry
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
async adminSetDefaultRegistry(id, options) {
|
|
870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSetDefaultRegistry(id, options);
|
|
871
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
872
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminSetDefaultRegistry']?.[localVarOperationServerIndex]?.url;
|
|
873
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
874
|
+
},
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @summary Set snapshot general status
|
|
878
|
+
* @param {string} id Snapshot ID
|
|
879
|
+
* @param {SetSnapshotGeneralStatusDto} setSnapshotGeneralStatusDto
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
async adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options) {
|
|
884
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options);
|
|
885
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
886
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AdminApi.adminSetSnapshotGeneralStatus']?.[localVarOperationServerIndex]?.url;
|
|
887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
888
|
+
},
|
|
303
889
|
/**
|
|
304
890
|
*
|
|
305
891
|
* @summary Update runner scheduling status
|
|
@@ -323,6 +909,16 @@ exports.AdminApiFp = AdminApiFp;
|
|
|
323
909
|
const AdminApiFactory = function (configuration, basePath, axios) {
|
|
324
910
|
const localVarFp = (0, exports.AdminApiFp)(configuration);
|
|
325
911
|
return {
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* @summary Check if an image can be cleaned up
|
|
915
|
+
* @param {string} imageName Image name with tag to check
|
|
916
|
+
* @param {*} [options] Override http request option.
|
|
917
|
+
* @throws {RequiredError}
|
|
918
|
+
*/
|
|
919
|
+
adminCanCleanupImage(imageName, options) {
|
|
920
|
+
return localVarFp.adminCanCleanupImage(imageName, options).then((request) => request(axios, basePath));
|
|
921
|
+
},
|
|
326
922
|
/**
|
|
327
923
|
*
|
|
328
924
|
* @summary Create runner
|
|
@@ -333,6 +929,16 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
333
929
|
adminCreateRunner(adminCreateRunner, options) {
|
|
334
930
|
return localVarFp.adminCreateRunner(adminCreateRunner, options).then((request) => request(axios, basePath));
|
|
335
931
|
},
|
|
932
|
+
/**
|
|
933
|
+
*
|
|
934
|
+
* @summary Create user
|
|
935
|
+
* @param {CreateUser} createUser
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
adminCreateUser(createUser, options) {
|
|
940
|
+
return localVarFp.adminCreateUser(createUser, options).then((request) => request(axios, basePath));
|
|
941
|
+
},
|
|
336
942
|
/**
|
|
337
943
|
*
|
|
338
944
|
* @summary Delete runner
|
|
@@ -343,6 +949,31 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
343
949
|
adminDeleteRunner(id, options) {
|
|
344
950
|
return localVarFp.adminDeleteRunner(id, options).then((request) => request(axios, basePath));
|
|
345
951
|
},
|
|
952
|
+
/**
|
|
953
|
+
*
|
|
954
|
+
* @summary Get all audit logs
|
|
955
|
+
* @param {number} [page] Page number of the results
|
|
956
|
+
* @param {number} [limit] Number of results per page
|
|
957
|
+
* @param {Date} [from] From date (ISO 8601 format)
|
|
958
|
+
* @param {Date} [to] To date (ISO 8601 format)
|
|
959
|
+
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
960
|
+
* @param {*} [options] Override http request option.
|
|
961
|
+
* @throws {RequiredError}
|
|
962
|
+
*/
|
|
963
|
+
adminGetAllAuditLogs(page, limit, from, to, nextToken, options) {
|
|
964
|
+
return localVarFp.adminGetAllAuditLogs(page, limit, from, to, nextToken, options).then((request) => request(axios, basePath));
|
|
965
|
+
},
|
|
966
|
+
/**
|
|
967
|
+
*
|
|
968
|
+
* @summary Get delivery attempts for a webhook message
|
|
969
|
+
* @param {string} organizationId
|
|
970
|
+
* @param {string} messageId
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
adminGetMessageAttempts(organizationId, messageId, options) {
|
|
975
|
+
return localVarFp.adminGetMessageAttempts(organizationId, messageId, options).then((request) => request(axios, basePath));
|
|
976
|
+
},
|
|
346
977
|
/**
|
|
347
978
|
*
|
|
348
979
|
* @summary Get runner by ID
|
|
@@ -353,6 +984,35 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
353
984
|
adminGetRunnerById(id, options) {
|
|
354
985
|
return localVarFp.adminGetRunnerById(id, options).then((request) => request(axios, basePath));
|
|
355
986
|
},
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @summary Get user by ID
|
|
990
|
+
* @param {string} id
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
adminGetUser(id, options) {
|
|
995
|
+
return localVarFp.adminGetUser(id, options).then((request) => request(axios, basePath));
|
|
996
|
+
},
|
|
997
|
+
/**
|
|
998
|
+
*
|
|
999
|
+
* @summary Get webhook service status
|
|
1000
|
+
* @param {*} [options] Override http request option.
|
|
1001
|
+
* @throws {RequiredError}
|
|
1002
|
+
*/
|
|
1003
|
+
adminGetWebhookStatus(options) {
|
|
1004
|
+
return localVarFp.adminGetWebhookStatus(options).then((request) => request(axios, basePath));
|
|
1005
|
+
},
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @summary Initialize webhooks for an organization
|
|
1009
|
+
* @param {string} organizationId
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
adminInitializeWebhooks(organizationId, options) {
|
|
1014
|
+
return localVarFp.adminInitializeWebhooks(organizationId, options).then((request) => request(axios, basePath));
|
|
1015
|
+
},
|
|
356
1016
|
/**
|
|
357
1017
|
*
|
|
358
1018
|
* @summary List all runners
|
|
@@ -363,6 +1023,15 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
363
1023
|
adminListRunners(regionId, options) {
|
|
364
1024
|
return localVarFp.adminListRunners(regionId, options).then((request) => request(axios, basePath));
|
|
365
1025
|
},
|
|
1026
|
+
/**
|
|
1027
|
+
*
|
|
1028
|
+
* @summary List all users
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
adminListUsers(options) {
|
|
1033
|
+
return localVarFp.adminListUsers(options).then((request) => request(axios, basePath));
|
|
1034
|
+
},
|
|
366
1035
|
/**
|
|
367
1036
|
*
|
|
368
1037
|
* @summary Recover sandbox from error state as an admin
|
|
@@ -373,6 +1042,48 @@ const AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
373
1042
|
adminRecoverSandbox(sandboxId, options) {
|
|
374
1043
|
return localVarFp.adminRecoverSandbox(sandboxId, options).then((request) => request(axios, basePath));
|
|
375
1044
|
},
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @summary Regenerate user key pair
|
|
1048
|
+
* @param {string} id
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
adminRegenerateKeyPair(id, options) {
|
|
1053
|
+
return localVarFp.adminRegenerateKeyPair(id, options).then((request) => request(axios, basePath));
|
|
1054
|
+
},
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
* @summary Send a webhook message to an organization
|
|
1058
|
+
* @param {string} organizationId
|
|
1059
|
+
* @param {SendWebhookDto} sendWebhookDto
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
adminSendWebhook(organizationId, sendWebhookDto, options) {
|
|
1064
|
+
return localVarFp.adminSendWebhook(organizationId, sendWebhookDto, options).then((request) => request(axios, basePath));
|
|
1065
|
+
},
|
|
1066
|
+
/**
|
|
1067
|
+
*
|
|
1068
|
+
* @summary Set default registry
|
|
1069
|
+
* @param {string} id ID of the docker registry
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
*/
|
|
1073
|
+
adminSetDefaultRegistry(id, options) {
|
|
1074
|
+
return localVarFp.adminSetDefaultRegistry(id, options).then((request) => request(axios, basePath));
|
|
1075
|
+
},
|
|
1076
|
+
/**
|
|
1077
|
+
*
|
|
1078
|
+
* @summary Set snapshot general status
|
|
1079
|
+
* @param {string} id Snapshot ID
|
|
1080
|
+
* @param {SetSnapshotGeneralStatusDto} setSnapshotGeneralStatusDto
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
*/
|
|
1084
|
+
adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options) {
|
|
1085
|
+
return localVarFp.adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options).then((request) => request(axios, basePath));
|
|
1086
|
+
},
|
|
376
1087
|
/**
|
|
377
1088
|
*
|
|
378
1089
|
* @summary Update runner scheduling status
|
|
@@ -393,6 +1104,17 @@ exports.AdminApiFactory = AdminApiFactory;
|
|
|
393
1104
|
* @extends {BaseAPI}
|
|
394
1105
|
*/
|
|
395
1106
|
class AdminApi extends base_1.BaseAPI {
|
|
1107
|
+
/**
|
|
1108
|
+
*
|
|
1109
|
+
* @summary Check if an image can be cleaned up
|
|
1110
|
+
* @param {string} imageName Image name with tag to check
|
|
1111
|
+
* @param {*} [options] Override http request option.
|
|
1112
|
+
* @throws {RequiredError}
|
|
1113
|
+
* @memberof AdminApi
|
|
1114
|
+
*/
|
|
1115
|
+
adminCanCleanupImage(imageName, options) {
|
|
1116
|
+
return (0, exports.AdminApiFp)(this.configuration).adminCanCleanupImage(imageName, options).then((request) => request(this.axios, this.basePath));
|
|
1117
|
+
}
|
|
396
1118
|
/**
|
|
397
1119
|
*
|
|
398
1120
|
* @summary Create runner
|
|
@@ -404,6 +1126,17 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
404
1126
|
adminCreateRunner(adminCreateRunner, options) {
|
|
405
1127
|
return (0, exports.AdminApiFp)(this.configuration).adminCreateRunner(adminCreateRunner, options).then((request) => request(this.axios, this.basePath));
|
|
406
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
* @summary Create user
|
|
1132
|
+
* @param {CreateUser} createUser
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
* @memberof AdminApi
|
|
1136
|
+
*/
|
|
1137
|
+
adminCreateUser(createUser, options) {
|
|
1138
|
+
return (0, exports.AdminApiFp)(this.configuration).adminCreateUser(createUser, options).then((request) => request(this.axios, this.basePath));
|
|
1139
|
+
}
|
|
407
1140
|
/**
|
|
408
1141
|
*
|
|
409
1142
|
* @summary Delete runner
|
|
@@ -415,6 +1148,33 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
415
1148
|
adminDeleteRunner(id, options) {
|
|
416
1149
|
return (0, exports.AdminApiFp)(this.configuration).adminDeleteRunner(id, options).then((request) => request(this.axios, this.basePath));
|
|
417
1150
|
}
|
|
1151
|
+
/**
|
|
1152
|
+
*
|
|
1153
|
+
* @summary Get all audit logs
|
|
1154
|
+
* @param {number} [page] Page number of the results
|
|
1155
|
+
* @param {number} [limit] Number of results per page
|
|
1156
|
+
* @param {Date} [from] From date (ISO 8601 format)
|
|
1157
|
+
* @param {Date} [to] To date (ISO 8601 format)
|
|
1158
|
+
* @param {string} [nextToken] Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
1159
|
+
* @param {*} [options] Override http request option.
|
|
1160
|
+
* @throws {RequiredError}
|
|
1161
|
+
* @memberof AdminApi
|
|
1162
|
+
*/
|
|
1163
|
+
adminGetAllAuditLogs(page, limit, from, to, nextToken, options) {
|
|
1164
|
+
return (0, exports.AdminApiFp)(this.configuration).adminGetAllAuditLogs(page, limit, from, to, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
*
|
|
1168
|
+
* @summary Get delivery attempts for a webhook message
|
|
1169
|
+
* @param {string} organizationId
|
|
1170
|
+
* @param {string} messageId
|
|
1171
|
+
* @param {*} [options] Override http request option.
|
|
1172
|
+
* @throws {RequiredError}
|
|
1173
|
+
* @memberof AdminApi
|
|
1174
|
+
*/
|
|
1175
|
+
adminGetMessageAttempts(organizationId, messageId, options) {
|
|
1176
|
+
return (0, exports.AdminApiFp)(this.configuration).adminGetMessageAttempts(organizationId, messageId, options).then((request) => request(this.axios, this.basePath));
|
|
1177
|
+
}
|
|
418
1178
|
/**
|
|
419
1179
|
*
|
|
420
1180
|
* @summary Get runner by ID
|
|
@@ -426,6 +1186,38 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
426
1186
|
adminGetRunnerById(id, options) {
|
|
427
1187
|
return (0, exports.AdminApiFp)(this.configuration).adminGetRunnerById(id, options).then((request) => request(this.axios, this.basePath));
|
|
428
1188
|
}
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @summary Get user by ID
|
|
1192
|
+
* @param {string} id
|
|
1193
|
+
* @param {*} [options] Override http request option.
|
|
1194
|
+
* @throws {RequiredError}
|
|
1195
|
+
* @memberof AdminApi
|
|
1196
|
+
*/
|
|
1197
|
+
adminGetUser(id, options) {
|
|
1198
|
+
return (0, exports.AdminApiFp)(this.configuration).adminGetUser(id, options).then((request) => request(this.axios, this.basePath));
|
|
1199
|
+
}
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* @summary Get webhook service status
|
|
1203
|
+
* @param {*} [options] Override http request option.
|
|
1204
|
+
* @throws {RequiredError}
|
|
1205
|
+
* @memberof AdminApi
|
|
1206
|
+
*/
|
|
1207
|
+
adminGetWebhookStatus(options) {
|
|
1208
|
+
return (0, exports.AdminApiFp)(this.configuration).adminGetWebhookStatus(options).then((request) => request(this.axios, this.basePath));
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
*
|
|
1212
|
+
* @summary Initialize webhooks for an organization
|
|
1213
|
+
* @param {string} organizationId
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
* @memberof AdminApi
|
|
1217
|
+
*/
|
|
1218
|
+
adminInitializeWebhooks(organizationId, options) {
|
|
1219
|
+
return (0, exports.AdminApiFp)(this.configuration).adminInitializeWebhooks(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
1220
|
+
}
|
|
429
1221
|
/**
|
|
430
1222
|
*
|
|
431
1223
|
* @summary List all runners
|
|
@@ -437,6 +1229,16 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
437
1229
|
adminListRunners(regionId, options) {
|
|
438
1230
|
return (0, exports.AdminApiFp)(this.configuration).adminListRunners(regionId, options).then((request) => request(this.axios, this.basePath));
|
|
439
1231
|
}
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
* @summary List all users
|
|
1235
|
+
* @param {*} [options] Override http request option.
|
|
1236
|
+
* @throws {RequiredError}
|
|
1237
|
+
* @memberof AdminApi
|
|
1238
|
+
*/
|
|
1239
|
+
adminListUsers(options) {
|
|
1240
|
+
return (0, exports.AdminApiFp)(this.configuration).adminListUsers(options).then((request) => request(this.axios, this.basePath));
|
|
1241
|
+
}
|
|
440
1242
|
/**
|
|
441
1243
|
*
|
|
442
1244
|
* @summary Recover sandbox from error state as an admin
|
|
@@ -448,6 +1250,52 @@ class AdminApi extends base_1.BaseAPI {
|
|
|
448
1250
|
adminRecoverSandbox(sandboxId, options) {
|
|
449
1251
|
return (0, exports.AdminApiFp)(this.configuration).adminRecoverSandbox(sandboxId, options).then((request) => request(this.axios, this.basePath));
|
|
450
1252
|
}
|
|
1253
|
+
/**
|
|
1254
|
+
*
|
|
1255
|
+
* @summary Regenerate user key pair
|
|
1256
|
+
* @param {string} id
|
|
1257
|
+
* @param {*} [options] Override http request option.
|
|
1258
|
+
* @throws {RequiredError}
|
|
1259
|
+
* @memberof AdminApi
|
|
1260
|
+
*/
|
|
1261
|
+
adminRegenerateKeyPair(id, options) {
|
|
1262
|
+
return (0, exports.AdminApiFp)(this.configuration).adminRegenerateKeyPair(id, options).then((request) => request(this.axios, this.basePath));
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @summary Send a webhook message to an organization
|
|
1267
|
+
* @param {string} organizationId
|
|
1268
|
+
* @param {SendWebhookDto} sendWebhookDto
|
|
1269
|
+
* @param {*} [options] Override http request option.
|
|
1270
|
+
* @throws {RequiredError}
|
|
1271
|
+
* @memberof AdminApi
|
|
1272
|
+
*/
|
|
1273
|
+
adminSendWebhook(organizationId, sendWebhookDto, options) {
|
|
1274
|
+
return (0, exports.AdminApiFp)(this.configuration).adminSendWebhook(organizationId, sendWebhookDto, options).then((request) => request(this.axios, this.basePath));
|
|
1275
|
+
}
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
* @summary Set default registry
|
|
1279
|
+
* @param {string} id ID of the docker registry
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @throws {RequiredError}
|
|
1282
|
+
* @memberof AdminApi
|
|
1283
|
+
*/
|
|
1284
|
+
adminSetDefaultRegistry(id, options) {
|
|
1285
|
+
return (0, exports.AdminApiFp)(this.configuration).adminSetDefaultRegistry(id, options).then((request) => request(this.axios, this.basePath));
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
*
|
|
1289
|
+
* @summary Set snapshot general status
|
|
1290
|
+
* @param {string} id Snapshot ID
|
|
1291
|
+
* @param {SetSnapshotGeneralStatusDto} setSnapshotGeneralStatusDto
|
|
1292
|
+
* @param {*} [options] Override http request option.
|
|
1293
|
+
* @throws {RequiredError}
|
|
1294
|
+
* @memberof AdminApi
|
|
1295
|
+
*/
|
|
1296
|
+
adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options) {
|
|
1297
|
+
return (0, exports.AdminApiFp)(this.configuration).adminSetSnapshotGeneralStatus(id, setSnapshotGeneralStatusDto, options).then((request) => request(this.axios, this.basePath));
|
|
1298
|
+
}
|
|
451
1299
|
/**
|
|
452
1300
|
*
|
|
453
1301
|
* @summary Update runner scheduling status
|