@daytonaio/api-client 0.130.0 → 0.131.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/admin-api.d.ts +208 -0
- package/src/api/admin-api.js +404 -0
- package/src/api/admin-api.js.map +1 -0
- package/src/api/docker-registry-api.d.ts +8 -4
- package/src/api/docker-registry-api.js +14 -7
- package/src/api/docker-registry-api.js.map +1 -1
- package/src/api/jobs-api.d.ts +197 -0
- package/src/api/jobs-api.js +371 -0
- package/src/api/jobs-api.js.map +1 -0
- package/src/api/organizations-api.d.ts +222 -0
- package/src/api/organizations-api.js +454 -0
- package/src/api/organizations-api.js.map +1 -1
- package/src/api/preview-api.d.ts +37 -0
- package/src/api/preview-api.js +74 -0
- package/src/api/preview-api.js.map +1 -1
- package/src/api/regions-api.d.ts +8 -16
- package/src/api/regions-api.js +13 -29
- package/src/api/regions-api.js.map +1 -1
- package/src/api/runners-api.d.ts +177 -22
- package/src/api/runners-api.js +338 -25
- package/src/api/runners-api.js.map +1 -1
- package/src/api/sandbox-api.d.ts +171 -0
- package/src/api/sandbox-api.js +342 -0
- package/src/api/sandbox-api.js.map +1 -1
- package/src/api/snapshots-api.d.ts +46 -4
- package/src/api/snapshots-api.js +85 -4
- package/src/api/snapshots-api.js.map +1 -1
- package/src/api.d.ts +2 -0
- package/src/api.js +2 -0
- package/src/api.js.map +1 -1
- package/src/models/admin-create-runner.d.ts +78 -0
- package/src/models/admin-create-runner.js +4 -0
- package/src/models/admin-create-runner.js.map +1 -0
- package/src/models/api-key-list.d.ts +5 -0
- package/src/models/api-key-list.js +5 -0
- package/src/models/api-key-list.js.map +1 -1
- package/src/models/api-key-response.d.ts +5 -0
- package/src/models/api-key-response.js +5 -0
- package/src/models/api-key-response.js.map +1 -1
- package/src/models/build-info.d.ts +6 -0
- package/src/models/create-api-key.d.ts +5 -0
- package/src/models/create-api-key.js +5 -0
- package/src/models/create-api-key.js.map +1 -1
- package/src/models/create-organization-role.d.ts +5 -0
- package/src/models/create-organization-role.js +5 -0
- package/src/models/create-organization-role.js.map +1 -1
- package/src/models/create-region-response.d.ts +48 -0
- package/src/models/create-region-response.js +4 -0
- package/src/models/create-region-response.js.map +1 -0
- package/src/models/create-region.d.ts +42 -0
- package/src/models/create-region.js +4 -0
- package/src/models/create-region.js.map +1 -0
- package/src/models/create-runner-response.d.ts +30 -0
- package/src/models/create-runner-response.js +4 -0
- package/src/models/create-runner-response.js.map +1 -0
- package/src/models/create-runner.d.ts +2 -68
- package/src/models/create-runner.js +0 -6
- package/src/models/create-runner.js.map +1 -1
- package/src/models/create-snapshot.d.ts +6 -0
- package/src/models/index.d.ts +18 -0
- package/src/models/index.js +18 -0
- package/src/models/index.js.map +1 -1
- package/src/models/job-status.d.ts +23 -0
- package/src/models/job-status.js +27 -0
- package/src/models/job-status.js.map +1 -0
- package/src/models/job-type.d.ts +30 -0
- package/src/models/job-type.js +34 -0
- package/src/models/job-type.js.map +1 -0
- package/src/models/job.d.ts +88 -0
- package/src/models/job.js +22 -0
- package/src/models/job.js.map +1 -0
- package/src/models/organization-role.d.ts +5 -0
- package/src/models/organization-role.js +5 -0
- package/src/models/organization-role.js.map +1 -1
- package/src/models/paginated-jobs.d.ts +43 -0
- package/src/models/paginated-jobs.js +16 -0
- package/src/models/paginated-jobs.js.map +1 -0
- package/src/models/poll-jobs-response.d.ts +25 -0
- package/src/models/poll-jobs-response.js +16 -0
- package/src/models/poll-jobs-response.js.map +1 -0
- package/src/models/regenerate-api-key-response.d.ts +24 -0
- package/src/models/regenerate-api-key-response.js +4 -0
- package/src/models/regenerate-api-key-response.js.map +1 -0
- package/src/models/region-type.d.ts +22 -0
- package/src/models/region-type.js +26 -0
- package/src/models/region-type.js.map +1 -0
- package/src/models/region.d.ts +19 -0
- package/src/models/region.js +12 -0
- package/src/models/region.js.map +1 -1
- package/src/models/runner-full.d.ts +210 -0
- package/src/models/runner-full.js +16 -0
- package/src/models/runner-full.js.map +1 -0
- package/src/models/runner-health-metrics.d.ts +84 -0
- package/src/models/runner-health-metrics.js +4 -0
- package/src/models/runner-health-metrics.js.map +1 -0
- package/src/models/runner-healthcheck.d.ts +49 -0
- package/src/models/runner-healthcheck.js +16 -0
- package/src/models/runner-healthcheck.js.map +1 -0
- package/src/models/runner-snapshot-dto.d.ts +1 -1
- package/src/models/runner.d.ts +27 -12
- package/src/models/sandbox.d.ts +6 -0
- package/src/models/sandbox.js.map +1 -1
- package/src/models/signed-port-preview-url.d.ts +42 -0
- package/src/models/signed-port-preview-url.js +4 -0
- package/src/models/signed-port-preview-url.js.map +1 -0
- package/src/models/snapshot-dto.d.ts +18 -0
- package/src/models/ssh-access-dto.d.ts +6 -0
- package/src/models/toolbox-proxy-url.d.ts +24 -0
- package/src/models/toolbox-proxy-url.js +4 -0
- package/src/models/toolbox-proxy-url.js.map +1 -0
- package/src/models/update-job-status.d.ts +37 -0
- package/src/models/update-job-status.js +16 -0
- package/src/models/update-job-status.js.map +1 -0
- package/src/models/update-organization-role.d.ts +5 -0
- package/src/models/update-organization-role.js +5 -0
- package/src/models/update-organization-role.js.map +1 -1
- package/src/models/update-sandbox-state-dto.d.ts +6 -0
- package/src/models/update-sandbox-state-dto.js.map +1 -1
- package/src/models/url.d.ts +24 -0
- package/src/models/url.js +4 -0
- package/src/models/url.js.map +1 -0
- package/src/models/workspace.d.ts +6 -0
- package/src/models/workspace.js.map +1 -1
|
@@ -203,6 +203,44 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
203
203
|
options: localVarRequestOptions,
|
|
204
204
|
};
|
|
205
205
|
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary Create a new region
|
|
209
|
+
* @param {CreateRegion} createRegion
|
|
210
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
211
|
+
* @param {*} [options] Override http request option.
|
|
212
|
+
* @throws {RequiredError}
|
|
213
|
+
*/
|
|
214
|
+
createRegion: async (createRegion, xDaytonaOrganizationID, options = {}) => {
|
|
215
|
+
// verify required parameter 'createRegion' is not null or undefined
|
|
216
|
+
(0, common_1.assertParamExists)('createRegion', 'createRegion', createRegion);
|
|
217
|
+
const localVarPath = `/regions`;
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
225
|
+
const localVarHeaderParameter = {};
|
|
226
|
+
const localVarQueryParameter = {};
|
|
227
|
+
// authentication bearer required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
230
|
+
// authentication oauth2 required
|
|
231
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
232
|
+
if (xDaytonaOrganizationID != null) {
|
|
233
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
234
|
+
}
|
|
235
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
238
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRegion, localVarRequestOptions, configuration);
|
|
239
|
+
return {
|
|
240
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
241
|
+
options: localVarRequestOptions,
|
|
242
|
+
};
|
|
243
|
+
},
|
|
206
244
|
/**
|
|
207
245
|
*
|
|
208
246
|
* @summary Decline organization invitation
|
|
@@ -341,6 +379,42 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
341
379
|
options: localVarRequestOptions,
|
|
342
380
|
};
|
|
343
381
|
},
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @summary Delete a region
|
|
385
|
+
* @param {string} id Region ID
|
|
386
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
deleteRegion: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
391
|
+
// verify required parameter 'id' is not null or undefined
|
|
392
|
+
(0, common_1.assertParamExists)('deleteRegion', 'id', id);
|
|
393
|
+
const localVarPath = `/regions/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
394
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
395
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
396
|
+
let baseOptions;
|
|
397
|
+
if (configuration) {
|
|
398
|
+
baseOptions = configuration.baseOptions;
|
|
399
|
+
}
|
|
400
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
401
|
+
const localVarHeaderParameter = {};
|
|
402
|
+
const localVarQueryParameter = {};
|
|
403
|
+
// authentication bearer required
|
|
404
|
+
// http bearer authentication required
|
|
405
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
406
|
+
// authentication oauth2 required
|
|
407
|
+
if (xDaytonaOrganizationID != null) {
|
|
408
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
409
|
+
}
|
|
410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
413
|
+
return {
|
|
414
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
415
|
+
options: localVarRequestOptions,
|
|
416
|
+
};
|
|
417
|
+
},
|
|
344
418
|
/**
|
|
345
419
|
*
|
|
346
420
|
* @summary Get organization by ID
|
|
@@ -466,6 +540,42 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
466
540
|
options: localVarRequestOptions,
|
|
467
541
|
};
|
|
468
542
|
},
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @summary Get region by ID
|
|
546
|
+
* @param {string} id Region ID
|
|
547
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
getRegionById: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
552
|
+
// verify required parameter 'id' is not null or undefined
|
|
553
|
+
(0, common_1.assertParamExists)('getRegionById', 'id', id);
|
|
554
|
+
const localVarPath = `/regions/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
555
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
556
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
557
|
+
let baseOptions;
|
|
558
|
+
if (configuration) {
|
|
559
|
+
baseOptions = configuration.baseOptions;
|
|
560
|
+
}
|
|
561
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
562
|
+
const localVarHeaderParameter = {};
|
|
563
|
+
const localVarQueryParameter = {};
|
|
564
|
+
// authentication bearer required
|
|
565
|
+
// http bearer authentication required
|
|
566
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
567
|
+
// authentication oauth2 required
|
|
568
|
+
if (xDaytonaOrganizationID != null) {
|
|
569
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
570
|
+
}
|
|
571
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
572
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
573
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
574
|
+
return {
|
|
575
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
576
|
+
options: localVarRequestOptions,
|
|
577
|
+
};
|
|
578
|
+
},
|
|
469
579
|
/**
|
|
470
580
|
*
|
|
471
581
|
* @summary Get region quota by sandbox ID
|
|
@@ -530,6 +640,39 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
530
640
|
options: localVarRequestOptions,
|
|
531
641
|
};
|
|
532
642
|
},
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @summary List all available regions for the organization
|
|
646
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
647
|
+
* @param {*} [options] Override http request option.
|
|
648
|
+
* @throws {RequiredError}
|
|
649
|
+
*/
|
|
650
|
+
listAvailableRegions: async (xDaytonaOrganizationID, options = {}) => {
|
|
651
|
+
const localVarPath = `/regions`;
|
|
652
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
653
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
654
|
+
let baseOptions;
|
|
655
|
+
if (configuration) {
|
|
656
|
+
baseOptions = configuration.baseOptions;
|
|
657
|
+
}
|
|
658
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
659
|
+
const localVarHeaderParameter = {};
|
|
660
|
+
const localVarQueryParameter = {};
|
|
661
|
+
// authentication bearer required
|
|
662
|
+
// http bearer authentication required
|
|
663
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
664
|
+
// authentication oauth2 required
|
|
665
|
+
if (xDaytonaOrganizationID != null) {
|
|
666
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
667
|
+
}
|
|
668
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
670
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
671
|
+
return {
|
|
672
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
673
|
+
options: localVarRequestOptions,
|
|
674
|
+
};
|
|
675
|
+
},
|
|
533
676
|
/**
|
|
534
677
|
*
|
|
535
678
|
* @summary List pending organization invitations
|
|
@@ -684,6 +827,78 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
684
827
|
options: localVarRequestOptions,
|
|
685
828
|
};
|
|
686
829
|
},
|
|
830
|
+
/**
|
|
831
|
+
*
|
|
832
|
+
* @summary Regenerate proxy API key for a region
|
|
833
|
+
* @param {string} id Region ID
|
|
834
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
regenerateProxyApiKey: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
839
|
+
// verify required parameter 'id' is not null or undefined
|
|
840
|
+
(0, common_1.assertParamExists)('regenerateProxyApiKey', 'id', id);
|
|
841
|
+
const localVarPath = `/regions/{id}/regenerate-proxy-api-key`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
842
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
843
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
844
|
+
let baseOptions;
|
|
845
|
+
if (configuration) {
|
|
846
|
+
baseOptions = configuration.baseOptions;
|
|
847
|
+
}
|
|
848
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
849
|
+
const localVarHeaderParameter = {};
|
|
850
|
+
const localVarQueryParameter = {};
|
|
851
|
+
// authentication bearer required
|
|
852
|
+
// http bearer authentication required
|
|
853
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
854
|
+
// authentication oauth2 required
|
|
855
|
+
if (xDaytonaOrganizationID != null) {
|
|
856
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
857
|
+
}
|
|
858
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
860
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
861
|
+
return {
|
|
862
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
863
|
+
options: localVarRequestOptions,
|
|
864
|
+
};
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary Regenerate SSH gateway API key for a region
|
|
869
|
+
* @param {string} id Region ID
|
|
870
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
regenerateSshGatewayApiKey: async (id, xDaytonaOrganizationID, options = {}) => {
|
|
875
|
+
// verify required parameter 'id' is not null or undefined
|
|
876
|
+
(0, common_1.assertParamExists)('regenerateSshGatewayApiKey', 'id', id);
|
|
877
|
+
const localVarPath = `/regions/{id}/regenerate-ssh-gateway-api-key`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
878
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
879
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
880
|
+
let baseOptions;
|
|
881
|
+
if (configuration) {
|
|
882
|
+
baseOptions = configuration.baseOptions;
|
|
883
|
+
}
|
|
884
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
885
|
+
const localVarHeaderParameter = {};
|
|
886
|
+
const localVarQueryParameter = {};
|
|
887
|
+
// authentication bearer required
|
|
888
|
+
// http bearer authentication required
|
|
889
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
890
|
+
// authentication oauth2 required
|
|
891
|
+
if (xDaytonaOrganizationID != null) {
|
|
892
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
893
|
+
}
|
|
894
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
895
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
896
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
897
|
+
return {
|
|
898
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
899
|
+
options: localVarRequestOptions,
|
|
900
|
+
};
|
|
901
|
+
},
|
|
687
902
|
/**
|
|
688
903
|
*
|
|
689
904
|
* @summary Set default region for organization
|
|
@@ -1108,6 +1323,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1108
1323
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.createOrganizationRole']?.[localVarOperationServerIndex]?.url;
|
|
1109
1324
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1110
1325
|
},
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @summary Create a new region
|
|
1329
|
+
* @param {CreateRegion} createRegion
|
|
1330
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
async createRegion(createRegion, xDaytonaOrganizationID, options) {
|
|
1335
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createRegion(createRegion, xDaytonaOrganizationID, options);
|
|
1336
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1337
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.createRegion']?.[localVarOperationServerIndex]?.url;
|
|
1338
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1339
|
+
},
|
|
1111
1340
|
/**
|
|
1112
1341
|
*
|
|
1113
1342
|
* @summary Decline organization invitation
|
|
@@ -1162,6 +1391,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1162
1391
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.deleteOrganizationRole']?.[localVarOperationServerIndex]?.url;
|
|
1163
1392
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1164
1393
|
},
|
|
1394
|
+
/**
|
|
1395
|
+
*
|
|
1396
|
+
* @summary Delete a region
|
|
1397
|
+
* @param {string} id Region ID
|
|
1398
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1399
|
+
* @param {*} [options] Override http request option.
|
|
1400
|
+
* @throws {RequiredError}
|
|
1401
|
+
*/
|
|
1402
|
+
async deleteRegion(id, xDaytonaOrganizationID, options) {
|
|
1403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRegion(id, xDaytonaOrganizationID, options);
|
|
1404
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1405
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.deleteRegion']?.[localVarOperationServerIndex]?.url;
|
|
1406
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1407
|
+
},
|
|
1165
1408
|
/**
|
|
1166
1409
|
*
|
|
1167
1410
|
* @summary Get organization by ID
|
|
@@ -1213,6 +1456,20 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1213
1456
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getOrganizationUsageOverview']?.[localVarOperationServerIndex]?.url;
|
|
1214
1457
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1215
1458
|
},
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* @summary Get region by ID
|
|
1462
|
+
* @param {string} id Region ID
|
|
1463
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1464
|
+
* @param {*} [options] Override http request option.
|
|
1465
|
+
* @throws {RequiredError}
|
|
1466
|
+
*/
|
|
1467
|
+
async getRegionById(id, xDaytonaOrganizationID, options) {
|
|
1468
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionById(id, xDaytonaOrganizationID, options);
|
|
1469
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1470
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getRegionById']?.[localVarOperationServerIndex]?.url;
|
|
1471
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1472
|
+
},
|
|
1216
1473
|
/**
|
|
1217
1474
|
*
|
|
1218
1475
|
* @summary Get region quota by sandbox ID
|
|
@@ -1239,6 +1496,19 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1239
1496
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.leaveOrganization']?.[localVarOperationServerIndex]?.url;
|
|
1240
1497
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1241
1498
|
},
|
|
1499
|
+
/**
|
|
1500
|
+
*
|
|
1501
|
+
* @summary List all available regions for the organization
|
|
1502
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
*/
|
|
1506
|
+
async listAvailableRegions(xDaytonaOrganizationID, options) {
|
|
1507
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableRegions(xDaytonaOrganizationID, options);
|
|
1508
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1509
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.listAvailableRegions']?.[localVarOperationServerIndex]?.url;
|
|
1510
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1511
|
+
},
|
|
1242
1512
|
/**
|
|
1243
1513
|
*
|
|
1244
1514
|
* @summary List pending organization invitations
|
|
@@ -1302,6 +1572,34 @@ const OrganizationsApiFp = function (configuration) {
|
|
|
1302
1572
|
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.listOrganizations']?.[localVarOperationServerIndex]?.url;
|
|
1303
1573
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1304
1574
|
},
|
|
1575
|
+
/**
|
|
1576
|
+
*
|
|
1577
|
+
* @summary Regenerate proxy API key for a region
|
|
1578
|
+
* @param {string} id Region ID
|
|
1579
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1580
|
+
* @param {*} [options] Override http request option.
|
|
1581
|
+
* @throws {RequiredError}
|
|
1582
|
+
*/
|
|
1583
|
+
async regenerateProxyApiKey(id, xDaytonaOrganizationID, options) {
|
|
1584
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateProxyApiKey(id, xDaytonaOrganizationID, options);
|
|
1585
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1586
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.regenerateProxyApiKey']?.[localVarOperationServerIndex]?.url;
|
|
1587
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1588
|
+
},
|
|
1589
|
+
/**
|
|
1590
|
+
*
|
|
1591
|
+
* @summary Regenerate SSH gateway API key for a region
|
|
1592
|
+
* @param {string} id Region ID
|
|
1593
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1594
|
+
* @param {*} [options] Override http request option.
|
|
1595
|
+
* @throws {RequiredError}
|
|
1596
|
+
*/
|
|
1597
|
+
async regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options) {
|
|
1598
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options);
|
|
1599
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1600
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.regenerateSshGatewayApiKey']?.[localVarOperationServerIndex]?.url;
|
|
1601
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1602
|
+
},
|
|
1305
1603
|
/**
|
|
1306
1604
|
*
|
|
1307
1605
|
* @summary Set default region for organization
|
|
@@ -1501,6 +1799,19 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1501
1799
|
.createOrganizationRole(organizationId, createOrganizationRole, options)
|
|
1502
1800
|
.then((request) => request(axios, basePath));
|
|
1503
1801
|
},
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @summary Create a new region
|
|
1805
|
+
* @param {CreateRegion} createRegion
|
|
1806
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1807
|
+
* @param {*} [options] Override http request option.
|
|
1808
|
+
* @throws {RequiredError}
|
|
1809
|
+
*/
|
|
1810
|
+
createRegion(createRegion, xDaytonaOrganizationID, options) {
|
|
1811
|
+
return localVarFp
|
|
1812
|
+
.createRegion(createRegion, xDaytonaOrganizationID, options)
|
|
1813
|
+
.then((request) => request(axios, basePath));
|
|
1814
|
+
},
|
|
1504
1815
|
/**
|
|
1505
1816
|
*
|
|
1506
1817
|
* @summary Decline organization invitation
|
|
@@ -1547,6 +1858,17 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1547
1858
|
.deleteOrganizationRole(organizationId, roleId, options)
|
|
1548
1859
|
.then((request) => request(axios, basePath));
|
|
1549
1860
|
},
|
|
1861
|
+
/**
|
|
1862
|
+
*
|
|
1863
|
+
* @summary Delete a region
|
|
1864
|
+
* @param {string} id Region ID
|
|
1865
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1866
|
+
* @param {*} [options] Override http request option.
|
|
1867
|
+
* @throws {RequiredError}
|
|
1868
|
+
*/
|
|
1869
|
+
deleteRegion(id, xDaytonaOrganizationID, options) {
|
|
1870
|
+
return localVarFp.deleteRegion(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
1871
|
+
},
|
|
1550
1872
|
/**
|
|
1551
1873
|
*
|
|
1552
1874
|
* @summary Get organization by ID
|
|
@@ -1590,6 +1912,17 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1590
1912
|
.getOrganizationUsageOverview(organizationId, options)
|
|
1591
1913
|
.then((request) => request(axios, basePath));
|
|
1592
1914
|
},
|
|
1915
|
+
/**
|
|
1916
|
+
*
|
|
1917
|
+
* @summary Get region by ID
|
|
1918
|
+
* @param {string} id Region ID
|
|
1919
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1920
|
+
* @param {*} [options] Override http request option.
|
|
1921
|
+
* @throws {RequiredError}
|
|
1922
|
+
*/
|
|
1923
|
+
getRegionById(id, xDaytonaOrganizationID, options) {
|
|
1924
|
+
return localVarFp.getRegionById(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
1925
|
+
},
|
|
1593
1926
|
/**
|
|
1594
1927
|
*
|
|
1595
1928
|
* @summary Get region quota by sandbox ID
|
|
@@ -1610,6 +1943,18 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1610
1943
|
leaveOrganization(organizationId, options) {
|
|
1611
1944
|
return localVarFp.leaveOrganization(organizationId, options).then((request) => request(axios, basePath));
|
|
1612
1945
|
},
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @summary List all available regions for the organization
|
|
1949
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
1950
|
+
* @param {*} [options] Override http request option.
|
|
1951
|
+
* @throws {RequiredError}
|
|
1952
|
+
*/
|
|
1953
|
+
listAvailableRegions(xDaytonaOrganizationID, options) {
|
|
1954
|
+
return localVarFp
|
|
1955
|
+
.listAvailableRegions(xDaytonaOrganizationID, options)
|
|
1956
|
+
.then((request) => request(axios, basePath));
|
|
1957
|
+
},
|
|
1613
1958
|
/**
|
|
1614
1959
|
*
|
|
1615
1960
|
* @summary List pending organization invitations
|
|
@@ -1660,6 +2005,32 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1660
2005
|
listOrganizations(options) {
|
|
1661
2006
|
return localVarFp.listOrganizations(options).then((request) => request(axios, basePath));
|
|
1662
2007
|
},
|
|
2008
|
+
/**
|
|
2009
|
+
*
|
|
2010
|
+
* @summary Regenerate proxy API key for a region
|
|
2011
|
+
* @param {string} id Region ID
|
|
2012
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
*/
|
|
2016
|
+
regenerateProxyApiKey(id, xDaytonaOrganizationID, options) {
|
|
2017
|
+
return localVarFp
|
|
2018
|
+
.regenerateProxyApiKey(id, xDaytonaOrganizationID, options)
|
|
2019
|
+
.then((request) => request(axios, basePath));
|
|
2020
|
+
},
|
|
2021
|
+
/**
|
|
2022
|
+
*
|
|
2023
|
+
* @summary Regenerate SSH gateway API key for a region
|
|
2024
|
+
* @param {string} id Region ID
|
|
2025
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2026
|
+
* @param {*} [options] Override http request option.
|
|
2027
|
+
* @throws {RequiredError}
|
|
2028
|
+
*/
|
|
2029
|
+
regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options) {
|
|
2030
|
+
return localVarFp
|
|
2031
|
+
.regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options)
|
|
2032
|
+
.then((request) => request(axios, basePath));
|
|
2033
|
+
},
|
|
1663
2034
|
/**
|
|
1664
2035
|
*
|
|
1665
2036
|
* @summary Set default region for organization
|
|
@@ -1856,6 +2227,20 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1856
2227
|
.createOrganizationRole(organizationId, createOrganizationRole, options)
|
|
1857
2228
|
.then((request) => request(this.axios, this.basePath));
|
|
1858
2229
|
}
|
|
2230
|
+
/**
|
|
2231
|
+
*
|
|
2232
|
+
* @summary Create a new region
|
|
2233
|
+
* @param {CreateRegion} createRegion
|
|
2234
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
* @memberof OrganizationsApi
|
|
2238
|
+
*/
|
|
2239
|
+
createRegion(createRegion, xDaytonaOrganizationID, options) {
|
|
2240
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2241
|
+
.createRegion(createRegion, xDaytonaOrganizationID, options)
|
|
2242
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2243
|
+
}
|
|
1859
2244
|
/**
|
|
1860
2245
|
*
|
|
1861
2246
|
* @summary Decline organization invitation
|
|
@@ -1910,6 +2295,20 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1910
2295
|
.deleteOrganizationRole(organizationId, roleId, options)
|
|
1911
2296
|
.then((request) => request(this.axios, this.basePath));
|
|
1912
2297
|
}
|
|
2298
|
+
/**
|
|
2299
|
+
*
|
|
2300
|
+
* @summary Delete a region
|
|
2301
|
+
* @param {string} id Region ID
|
|
2302
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2303
|
+
* @param {*} [options] Override http request option.
|
|
2304
|
+
* @throws {RequiredError}
|
|
2305
|
+
* @memberof OrganizationsApi
|
|
2306
|
+
*/
|
|
2307
|
+
deleteRegion(id, xDaytonaOrganizationID, options) {
|
|
2308
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2309
|
+
.deleteRegion(id, xDaytonaOrganizationID, options)
|
|
2310
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2311
|
+
}
|
|
1913
2312
|
/**
|
|
1914
2313
|
*
|
|
1915
2314
|
* @summary Get organization by ID
|
|
@@ -1961,6 +2360,20 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1961
2360
|
.getOrganizationUsageOverview(organizationId, options)
|
|
1962
2361
|
.then((request) => request(this.axios, this.basePath));
|
|
1963
2362
|
}
|
|
2363
|
+
/**
|
|
2364
|
+
*
|
|
2365
|
+
* @summary Get region by ID
|
|
2366
|
+
* @param {string} id Region ID
|
|
2367
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2368
|
+
* @param {*} [options] Override http request option.
|
|
2369
|
+
* @throws {RequiredError}
|
|
2370
|
+
* @memberof OrganizationsApi
|
|
2371
|
+
*/
|
|
2372
|
+
getRegionById(id, xDaytonaOrganizationID, options) {
|
|
2373
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2374
|
+
.getRegionById(id, xDaytonaOrganizationID, options)
|
|
2375
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2376
|
+
}
|
|
1964
2377
|
/**
|
|
1965
2378
|
*
|
|
1966
2379
|
* @summary Get region quota by sandbox ID
|
|
@@ -1987,6 +2400,19 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
1987
2400
|
.leaveOrganization(organizationId, options)
|
|
1988
2401
|
.then((request) => request(this.axios, this.basePath));
|
|
1989
2402
|
}
|
|
2403
|
+
/**
|
|
2404
|
+
*
|
|
2405
|
+
* @summary List all available regions for the organization
|
|
2406
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2407
|
+
* @param {*} [options] Override http request option.
|
|
2408
|
+
* @throws {RequiredError}
|
|
2409
|
+
* @memberof OrganizationsApi
|
|
2410
|
+
*/
|
|
2411
|
+
listAvailableRegions(xDaytonaOrganizationID, options) {
|
|
2412
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2413
|
+
.listAvailableRegions(xDaytonaOrganizationID, options)
|
|
2414
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2415
|
+
}
|
|
1990
2416
|
/**
|
|
1991
2417
|
*
|
|
1992
2418
|
* @summary List pending organization invitations
|
|
@@ -2050,6 +2476,34 @@ class OrganizationsApi extends base_1.BaseAPI {
|
|
|
2050
2476
|
.listOrganizations(options)
|
|
2051
2477
|
.then((request) => request(this.axios, this.basePath));
|
|
2052
2478
|
}
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @summary Regenerate proxy API key for a region
|
|
2482
|
+
* @param {string} id Region ID
|
|
2483
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2484
|
+
* @param {*} [options] Override http request option.
|
|
2485
|
+
* @throws {RequiredError}
|
|
2486
|
+
* @memberof OrganizationsApi
|
|
2487
|
+
*/
|
|
2488
|
+
regenerateProxyApiKey(id, xDaytonaOrganizationID, options) {
|
|
2489
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2490
|
+
.regenerateProxyApiKey(id, xDaytonaOrganizationID, options)
|
|
2491
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2492
|
+
}
|
|
2493
|
+
/**
|
|
2494
|
+
*
|
|
2495
|
+
* @summary Regenerate SSH gateway API key for a region
|
|
2496
|
+
* @param {string} id Region ID
|
|
2497
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2498
|
+
* @param {*} [options] Override http request option.
|
|
2499
|
+
* @throws {RequiredError}
|
|
2500
|
+
* @memberof OrganizationsApi
|
|
2501
|
+
*/
|
|
2502
|
+
regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options) {
|
|
2503
|
+
return (0, exports.OrganizationsApiFp)(this.configuration)
|
|
2504
|
+
.regenerateSshGatewayApiKey(id, xDaytonaOrganizationID, options)
|
|
2505
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2506
|
+
}
|
|
2053
2507
|
/**
|
|
2054
2508
|
*
|
|
2055
2509
|
* @summary Set default region for organization
|