@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.
Files changed (42) hide show
  1. package/package.json +1 -1
  2. package/src/api/admin-api.d.ts +424 -0
  3. package/src/api/admin-api.js +848 -0
  4. package/src/api/admin-api.js.map +1 -1
  5. package/src/api/audit-api.d.ts +0 -49
  6. package/src/api/audit-api.js +0 -99
  7. package/src/api/audit-api.js.map +1 -1
  8. package/src/api/docker-registry-api.d.ts +0 -37
  9. package/src/api/docker-registry-api.js +0 -74
  10. package/src/api/docker-registry-api.js.map +1 -1
  11. package/src/api/health-api.js +3 -0
  12. package/src/api/health-api.js.map +1 -1
  13. package/src/api/organizations-api.d.ts +0 -67
  14. package/src/api/organizations-api.js +0 -134
  15. package/src/api/organizations-api.js.map +1 -1
  16. package/src/api/preview-api.js +12 -0
  17. package/src/api/preview-api.js.map +1 -1
  18. package/src/api/regions-api.js +0 -4
  19. package/src/api/regions-api.js.map +1 -1
  20. package/src/api/sandbox-api.d.ts +76 -0
  21. package/src/api/sandbox-api.js +148 -0
  22. package/src/api/sandbox-api.js.map +1 -1
  23. package/src/api/snapshots-api.d.ts +0 -79
  24. package/src/api/snapshots-api.js +0 -158
  25. package/src/api/snapshots-api.js.map +1 -1
  26. package/src/api/users-api.d.ts +0 -129
  27. package/src/api/users-api.js +0 -262
  28. package/src/api/users-api.js.map +1 -1
  29. package/src/api/webhooks-api.d.ts +0 -154
  30. package/src/api/webhooks-api.js +2 -300
  31. package/src/api/webhooks-api.js.map +1 -1
  32. package/src/models/{webhook-controller-get-status200-response.d.ts → admin-get-webhook-status200-response.d.ts} +3 -3
  33. package/src/models/{webhook-controller-get-status200-response.js → admin-get-webhook-status200-response.js} +1 -1
  34. package/src/models/admin-get-webhook-status200-response.js.map +1 -0
  35. package/src/models/create-docker-registry.d.ts +0 -19
  36. package/src/models/create-docker-registry.js +0 -7
  37. package/src/models/create-docker-registry.js.map +1 -1
  38. package/src/models/create-snapshot.d.ts +0 -6
  39. package/src/models/index.d.ts +1 -1
  40. package/src/models/index.js +1 -1
  41. package/src/models/index.js.map +1 -1
  42. package/src/models/webhook-controller-get-status200-response.js.map +0 -1
@@ -27,7 +27,6 @@ import type { OrganizationUser } from '../models';
27
27
  import type { OtelConfig } from '../models';
28
28
  import type { RegenerateApiKeyResponse } from '../models';
29
29
  import type { Region } from '../models';
30
- import type { RegionQuota } from '../models';
31
30
  import type { SnapshotManagerCredentials } from '../models';
32
31
  import type { UpdateOrganizationDefaultRegion } from '../models';
33
32
  import type { UpdateOrganizationInvitation } from '../models';
@@ -144,14 +143,6 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
144
143
  * @throws {RequiredError}
145
144
  */
146
145
  getOrganization: (organizationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
147
- /**
148
- *
149
- * @summary Get organization by sandbox ID
150
- * @param {string} sandboxId Sandbox ID
151
- * @param {*} [options] Override http request option.
152
- * @throws {RequiredError}
153
- */
154
- getOrganizationBySandboxId: (sandboxId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
155
146
  /**
156
147
  *
157
148
  * @summary Get count of organization invitations for authenticated user
@@ -184,14 +175,6 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
184
175
  * @throws {RequiredError}
185
176
  */
186
177
  getRegionById: (id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
187
- /**
188
- *
189
- * @summary Get region quota by sandbox ID
190
- * @param {string} sandboxId Sandbox ID
191
- * @param {*} [options] Override http request option.
192
- * @throws {RequiredError}
193
- */
194
- getRegionQuotaBySandboxId: (sandboxId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
195
178
  /**
196
179
  *
197
180
  * @summary Leave organization
@@ -487,14 +470,6 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
487
470
  * @throws {RequiredError}
488
471
  */
489
472
  getOrganization(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>>;
490
- /**
491
- *
492
- * @summary Get organization by sandbox ID
493
- * @param {string} sandboxId Sandbox ID
494
- * @param {*} [options] Override http request option.
495
- * @throws {RequiredError}
496
- */
497
- getOrganizationBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Organization>>;
498
473
  /**
499
474
  *
500
475
  * @summary Get count of organization invitations for authenticated user
@@ -527,14 +502,6 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
527
502
  * @throws {RequiredError}
528
503
  */
529
504
  getRegionById(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Region>>;
530
- /**
531
- *
532
- * @summary Get region quota by sandbox ID
533
- * @param {string} sandboxId Sandbox ID
534
- * @param {*} [options] Override http request option.
535
- * @throws {RequiredError}
536
- */
537
- getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegionQuota>>;
538
505
  /**
539
506
  *
540
507
  * @summary Leave organization
@@ -830,14 +797,6 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
830
797
  * @throws {RequiredError}
831
798
  */
832
799
  getOrganization(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Organization>;
833
- /**
834
- *
835
- * @summary Get organization by sandbox ID
836
- * @param {string} sandboxId Sandbox ID
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- */
840
- getOrganizationBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): AxiosPromise<Organization>;
841
800
  /**
842
801
  *
843
802
  * @summary Get count of organization invitations for authenticated user
@@ -870,14 +829,6 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
870
829
  * @throws {RequiredError}
871
830
  */
872
831
  getRegionById(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Region>;
873
- /**
874
- *
875
- * @summary Get region quota by sandbox ID
876
- * @param {string} sandboxId Sandbox ID
877
- * @param {*} [options] Override http request option.
878
- * @throws {RequiredError}
879
- */
880
- getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): AxiosPromise<RegionQuota>;
881
832
  /**
882
833
  *
883
834
  * @summary Leave organization
@@ -1187,15 +1138,6 @@ export declare class OrganizationsApi extends BaseAPI {
1187
1138
  * @memberof OrganizationsApi
1188
1139
  */
1189
1140
  getOrganization(organizationId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization, any, {}>>;
1190
- /**
1191
- *
1192
- * @summary Get organization by sandbox ID
1193
- * @param {string} sandboxId Sandbox ID
1194
- * @param {*} [options] Override http request option.
1195
- * @throws {RequiredError}
1196
- * @memberof OrganizationsApi
1197
- */
1198
- getOrganizationBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Organization, any, {}>>;
1199
1141
  /**
1200
1142
  *
1201
1143
  * @summary Get count of organization invitations for authenticated user
@@ -1232,15 +1174,6 @@ export declare class OrganizationsApi extends BaseAPI {
1232
1174
  * @memberof OrganizationsApi
1233
1175
  */
1234
1176
  getRegionById(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Region, any, {}>>;
1235
- /**
1236
- *
1237
- * @summary Get region quota by sandbox ID
1238
- * @param {string} sandboxId Sandbox ID
1239
- * @param {*} [options] Override http request option.
1240
- * @throws {RequiredError}
1241
- * @memberof OrganizationsApi
1242
- */
1243
- getRegionQuotaBySandboxId(sandboxId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<RegionQuota, any, {}>>;
1244
1177
  /**
1245
1178
  *
1246
1179
  * @summary Leave organization
@@ -454,39 +454,6 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
454
454
  options: localVarRequestOptions,
455
455
  };
456
456
  },
457
- /**
458
- *
459
- * @summary Get organization by sandbox ID
460
- * @param {string} sandboxId Sandbox ID
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- getOrganizationBySandboxId: async (sandboxId, options = {}) => {
465
- // verify required parameter 'sandboxId' is not null or undefined
466
- (0, common_1.assertParamExists)('getOrganizationBySandboxId', 'sandboxId', sandboxId);
467
- const localVarPath = `/organizations/by-sandbox-id/{sandboxId}`
468
- .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
469
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
471
- let baseOptions;
472
- if (configuration) {
473
- baseOptions = configuration.baseOptions;
474
- }
475
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
476
- const localVarHeaderParameter = {};
477
- const localVarQueryParameter = {};
478
- // authentication bearer required
479
- // http bearer authentication required
480
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
481
- // authentication oauth2 required
482
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
483
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
484
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
485
- return {
486
- url: (0, common_1.toPathString)(localVarUrlObj),
487
- options: localVarRequestOptions,
488
- };
489
- },
490
457
  /**
491
458
  *
492
459
  * @summary Get count of organization invitations for authenticated user
@@ -619,39 +586,6 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
619
586
  options: localVarRequestOptions,
620
587
  };
621
588
  },
622
- /**
623
- *
624
- * @summary Get region quota by sandbox ID
625
- * @param {string} sandboxId Sandbox ID
626
- * @param {*} [options] Override http request option.
627
- * @throws {RequiredError}
628
- */
629
- getRegionQuotaBySandboxId: async (sandboxId, options = {}) => {
630
- // verify required parameter 'sandboxId' is not null or undefined
631
- (0, common_1.assertParamExists)('getRegionQuotaBySandboxId', 'sandboxId', sandboxId);
632
- const localVarPath = `/organizations/region-quota/by-sandbox-id/{sandboxId}`
633
- .replace(`{${"sandboxId"}}`, encodeURIComponent(String(sandboxId)));
634
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
635
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
636
- let baseOptions;
637
- if (configuration) {
638
- baseOptions = configuration.baseOptions;
639
- }
640
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
641
- const localVarHeaderParameter = {};
642
- const localVarQueryParameter = {};
643
- // authentication bearer required
644
- // http bearer authentication required
645
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
646
- // authentication oauth2 required
647
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
648
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
649
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
650
- return {
651
- url: (0, common_1.toPathString)(localVarUrlObj),
652
- options: localVarRequestOptions,
653
- };
654
- },
655
589
  /**
656
590
  *
657
591
  * @summary Leave organization
@@ -1588,19 +1522,6 @@ const OrganizationsApiFp = function (configuration) {
1588
1522
  const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getOrganization']?.[localVarOperationServerIndex]?.url;
1589
1523
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1590
1524
  },
1591
- /**
1592
- *
1593
- * @summary Get organization by sandbox ID
1594
- * @param {string} sandboxId Sandbox ID
1595
- * @param {*} [options] Override http request option.
1596
- * @throws {RequiredError}
1597
- */
1598
- async getOrganizationBySandboxId(sandboxId, options) {
1599
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationBySandboxId(sandboxId, options);
1600
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1601
- const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getOrganizationBySandboxId']?.[localVarOperationServerIndex]?.url;
1602
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1603
- },
1604
1525
  /**
1605
1526
  *
1606
1527
  * @summary Get count of organization invitations for authenticated user
@@ -1653,19 +1574,6 @@ const OrganizationsApiFp = function (configuration) {
1653
1574
  const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getRegionById']?.[localVarOperationServerIndex]?.url;
1654
1575
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1655
1576
  },
1656
- /**
1657
- *
1658
- * @summary Get region quota by sandbox ID
1659
- * @param {string} sandboxId Sandbox ID
1660
- * @param {*} [options] Override http request option.
1661
- * @throws {RequiredError}
1662
- */
1663
- async getRegionQuotaBySandboxId(sandboxId, options) {
1664
- const localVarAxiosArgs = await localVarAxiosParamCreator.getRegionQuotaBySandboxId(sandboxId, options);
1665
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1666
- const localVarOperationServerBasePath = base_1.operationServerMap['OrganizationsApi.getRegionQuotaBySandboxId']?.[localVarOperationServerIndex]?.url;
1667
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1668
- },
1669
1577
  /**
1670
1578
  *
1671
1579
  * @summary Leave organization
@@ -2092,16 +2000,6 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
2092
2000
  getOrganization(organizationId, options) {
2093
2001
  return localVarFp.getOrganization(organizationId, options).then((request) => request(axios, basePath));
2094
2002
  },
2095
- /**
2096
- *
2097
- * @summary Get organization by sandbox ID
2098
- * @param {string} sandboxId Sandbox ID
2099
- * @param {*} [options] Override http request option.
2100
- * @throws {RequiredError}
2101
- */
2102
- getOrganizationBySandboxId(sandboxId, options) {
2103
- return localVarFp.getOrganizationBySandboxId(sandboxId, options).then((request) => request(axios, basePath));
2104
- },
2105
2003
  /**
2106
2004
  *
2107
2005
  * @summary Get count of organization invitations for authenticated user
@@ -2142,16 +2040,6 @@ const OrganizationsApiFactory = function (configuration, basePath, axios) {
2142
2040
  getRegionById(id, xDaytonaOrganizationID, options) {
2143
2041
  return localVarFp.getRegionById(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
2144
2042
  },
2145
- /**
2146
- *
2147
- * @summary Get region quota by sandbox ID
2148
- * @param {string} sandboxId Sandbox ID
2149
- * @param {*} [options] Override http request option.
2150
- * @throws {RequiredError}
2151
- */
2152
- getRegionQuotaBySandboxId(sandboxId, options) {
2153
- return localVarFp.getRegionQuotaBySandboxId(sandboxId, options).then((request) => request(axios, basePath));
2154
- },
2155
2043
  /**
2156
2044
  *
2157
2045
  * @summary Leave organization
@@ -2527,17 +2415,6 @@ class OrganizationsApi extends base_1.BaseAPI {
2527
2415
  getOrganization(organizationId, options) {
2528
2416
  return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(organizationId, options).then((request) => request(this.axios, this.basePath));
2529
2417
  }
2530
- /**
2531
- *
2532
- * @summary Get organization by sandbox ID
2533
- * @param {string} sandboxId Sandbox ID
2534
- * @param {*} [options] Override http request option.
2535
- * @throws {RequiredError}
2536
- * @memberof OrganizationsApi
2537
- */
2538
- getOrganizationBySandboxId(sandboxId, options) {
2539
- return (0, exports.OrganizationsApiFp)(this.configuration).getOrganizationBySandboxId(sandboxId, options).then((request) => request(this.axios, this.basePath));
2540
- }
2541
2418
  /**
2542
2419
  *
2543
2420
  * @summary Get count of organization invitations for authenticated user
@@ -2582,17 +2459,6 @@ class OrganizationsApi extends base_1.BaseAPI {
2582
2459
  getRegionById(id, xDaytonaOrganizationID, options) {
2583
2460
  return (0, exports.OrganizationsApiFp)(this.configuration).getRegionById(id, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
2584
2461
  }
2585
- /**
2586
- *
2587
- * @summary Get region quota by sandbox ID
2588
- * @param {string} sandboxId Sandbox ID
2589
- * @param {*} [options] Override http request option.
2590
- * @throws {RequiredError}
2591
- * @memberof OrganizationsApi
2592
- */
2593
- getRegionQuotaBySandboxId(sandboxId, options) {
2594
- return (0, exports.OrganizationsApiFp)(this.configuration).getRegionQuotaBySandboxId(sandboxId, options).then((request) => request(this.axios, this.basePath));
2595
- }
2596
2462
  /**
2597
2463
  *
2598
2464
  * @summary Leave organization