@daytonaio/api-client 0.16.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/api/api-keys-api.ts +16 -0
  3. package/api/docker-registry-api.ts +28 -0
  4. package/api/images-api.ts +20 -0
  5. package/api/nodes-api.ts +12 -0
  6. package/api/organizations-api.ts +301 -0
  7. package/api/preview-api.ts +4 -0
  8. package/api/toolbox-api.ts +144 -0
  9. package/api/workspace-api.ts +61 -11
  10. package/dist/api/api-keys-api.js +65 -36
  11. package/dist/api/docker-registry-api.js +107 -63
  12. package/dist/api/images-api.js +79 -45
  13. package/dist/api/nodes-api.js +51 -27
  14. package/dist/api/organizations-api.d.ts +71 -0
  15. package/dist/api/organizations-api.js +485 -207
  16. package/dist/api/preview-api.js +43 -25
  17. package/dist/api/toolbox-api.js +513 -324
  18. package/dist/api/users-api.js +53 -36
  19. package/dist/api/workspace-api.d.ts +8 -8
  20. package/dist/api/workspace-api.js +196 -124
  21. package/dist/common.js +34 -19
  22. package/dist/esm/api/api-keys-api.js +66 -37
  23. package/dist/esm/api/docker-registry-api.js +108 -64
  24. package/dist/esm/api/images-api.js +80 -46
  25. package/dist/esm/api/nodes-api.js +52 -28
  26. package/dist/esm/api/organizations-api.d.ts +71 -0
  27. package/dist/esm/api/organizations-api.js +486 -208
  28. package/dist/esm/api/preview-api.js +44 -26
  29. package/dist/esm/api/toolbox-api.js +514 -325
  30. package/dist/esm/api/users-api.js +53 -36
  31. package/dist/esm/api/workspace-api.d.ts +8 -8
  32. package/dist/esm/api/workspace-api.js +197 -125
  33. package/dist/esm/common.js +34 -19
  34. package/dist/esm/models/create-image.d.ts +2 -2
  35. package/dist/esm/models/create-organization.d.ts +0 -66
  36. package/dist/esm/models/create-workspace.d.ts +0 -12
  37. package/dist/esm/models/image-dto.d.ts +2 -2
  38. package/dist/esm/models/index.d.ts +1 -0
  39. package/dist/esm/models/index.js +1 -0
  40. package/dist/esm/models/organization-suspension.d.ts +30 -0
  41. package/dist/esm/models/organization-suspension.js +14 -0
  42. package/dist/esm/models/organization.d.ts +24 -0
  43. package/dist/esm/models/workspace-info.d.ts +2 -1
  44. package/dist/esm/models/workspace-state.d.ts +1 -1
  45. package/dist/esm/models/workspace-state.js +1 -1
  46. package/dist/esm/models/workspace.d.ts +7 -0
  47. package/dist/models/create-image.d.ts +2 -2
  48. package/dist/models/create-organization.d.ts +0 -66
  49. package/dist/models/create-workspace.d.ts +0 -12
  50. package/dist/models/image-dto.d.ts +2 -2
  51. package/dist/models/index.d.ts +1 -0
  52. package/dist/models/index.js +1 -0
  53. package/dist/models/organization-suspension.d.ts +30 -0
  54. package/dist/models/organization-suspension.js +15 -0
  55. package/dist/models/organization.d.ts +24 -0
  56. package/dist/models/workspace-info.d.ts +2 -1
  57. package/dist/models/workspace-state.d.ts +1 -1
  58. package/dist/models/workspace-state.js +1 -1
  59. package/dist/models/workspace.d.ts +7 -0
  60. package/models/create-image.ts +2 -2
  61. package/models/create-organization.ts +0 -66
  62. package/models/create-workspace.ts +0 -12
  63. package/models/image-dto.ts +2 -2
  64. package/models/index.ts +1 -0
  65. package/models/organization-suspension.ts +33 -0
  66. package/models/organization.ts +24 -0
  67. package/models/workspace-info.ts +2 -1
  68. package/models/workspace-state.ts +1 -1
  69. package/models/workspace.ts +7 -0
  70. package/package.json +1 -1
  71. package/tsconfig.json +1 -1
@@ -12,6 +12,15 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
15
24
  Object.defineProperty(exports, "__esModule", { value: true });
16
25
  exports.PreviewApi = exports.PreviewApiFactory = exports.PreviewApiFp = exports.PreviewApiAxiosParamCreator = void 0;
17
26
  const axios_1 = require("axios");
@@ -33,7 +42,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
33
42
  * @param {*} [options] Override http request option.
34
43
  * @throws {RequiredError}
35
44
  */
36
- hasWorkspaceAccess: async (workspaceId, options = {}) => {
45
+ hasWorkspaceAccess: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
37
46
  // verify required parameter 'workspaceId' is not null or undefined
38
47
  (0, common_1.assertParamExists)('hasWorkspaceAccess', 'workspaceId', workspaceId);
39
48
  const localVarPath = `/preview/{workspaceId}/access`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -46,9 +55,12 @@ const PreviewApiAxiosParamCreator = function (configuration) {
46
55
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
47
56
  const localVarHeaderParameter = {};
48
57
  const localVarQueryParameter = {};
58
+ // authentication bearer required
59
+ // http bearer authentication required
60
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
49
61
  // authentication oauth2 required
50
62
  // oauth required
51
- await (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
63
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
52
64
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
53
65
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54
66
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -56,7 +68,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
56
68
  url: (0, common_1.toPathString)(localVarUrlObj),
57
69
  options: localVarRequestOptions,
58
70
  };
59
- },
71
+ }),
60
72
  /**
61
73
  *
62
74
  * @summary Check if workspace auth token is valid
@@ -65,7 +77,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
65
77
  * @param {*} [options] Override http request option.
66
78
  * @throws {RequiredError}
67
79
  */
68
- isValidAuthToken: async (workspaceId, authToken, options = {}) => {
80
+ isValidAuthToken: (workspaceId_1, authToken_1, ...args_1) => __awaiter(this, [workspaceId_1, authToken_1, ...args_1], void 0, function* (workspaceId, authToken, options = {}) {
69
81
  // verify required parameter 'workspaceId' is not null or undefined
70
82
  (0, common_1.assertParamExists)('isValidAuthToken', 'workspaceId', workspaceId);
71
83
  // verify required parameter 'authToken' is not null or undefined
@@ -89,7 +101,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
89
101
  url: (0, common_1.toPathString)(localVarUrlObj),
90
102
  options: localVarRequestOptions,
91
103
  };
92
- },
104
+ }),
93
105
  /**
94
106
  *
95
107
  * @summary Check if workspace is public
@@ -97,7 +109,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
97
109
  * @param {*} [options] Override http request option.
98
110
  * @throws {RequiredError}
99
111
  */
100
- isWorkspacePublic: async (workspaceId, options = {}) => {
112
+ isWorkspacePublic: (workspaceId_1, ...args_1) => __awaiter(this, [workspaceId_1, ...args_1], void 0, function* (workspaceId, options = {}) {
101
113
  // verify required parameter 'workspaceId' is not null or undefined
102
114
  (0, common_1.assertParamExists)('isWorkspacePublic', 'workspaceId', workspaceId);
103
115
  const localVarPath = `/preview/{workspaceId}/public`.replace(`{${'workspaceId'}}`, encodeURIComponent(String(workspaceId)));
@@ -117,7 +129,7 @@ const PreviewApiAxiosParamCreator = function (configuration) {
117
129
  url: (0, common_1.toPathString)(localVarUrlObj),
118
130
  options: localVarRequestOptions,
119
131
  };
120
- },
132
+ }),
121
133
  };
122
134
  };
123
135
  exports.PreviewApiAxiosParamCreator = PreviewApiAxiosParamCreator;
@@ -135,12 +147,14 @@ const PreviewApiFp = function (configuration) {
135
147
  * @param {*} [options] Override http request option.
136
148
  * @throws {RequiredError}
137
149
  */
138
- async hasWorkspaceAccess(workspaceId, options) {
139
- var _a, _b, _c;
140
- const localVarAxiosArgs = await localVarAxiosParamCreator.hasWorkspaceAccess(workspaceId, options);
141
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
142
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.hasWorkspaceAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
143
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
150
+ hasWorkspaceAccess(workspaceId, options) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ var _a, _b, _c;
153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.hasWorkspaceAccess(workspaceId, options);
154
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
155
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.hasWorkspaceAccess']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
156
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
157
+ });
144
158
  },
145
159
  /**
146
160
  *
@@ -150,12 +164,14 @@ const PreviewApiFp = function (configuration) {
150
164
  * @param {*} [options] Override http request option.
151
165
  * @throws {RequiredError}
152
166
  */
153
- async isValidAuthToken(workspaceId, authToken, options) {
154
- var _a, _b, _c;
155
- const localVarAxiosArgs = await localVarAxiosParamCreator.isValidAuthToken(workspaceId, authToken, options);
156
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
157
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isValidAuthToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
158
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
167
+ isValidAuthToken(workspaceId, authToken, options) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ var _a, _b, _c;
170
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.isValidAuthToken(workspaceId, authToken, options);
171
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
172
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isValidAuthToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
173
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
174
+ });
159
175
  },
160
176
  /**
161
177
  *
@@ -164,12 +180,14 @@ const PreviewApiFp = function (configuration) {
164
180
  * @param {*} [options] Override http request option.
165
181
  * @throws {RequiredError}
166
182
  */
167
- async isWorkspacePublic(workspaceId, options) {
168
- var _a, _b, _c;
169
- const localVarAxiosArgs = await localVarAxiosParamCreator.isWorkspacePublic(workspaceId, options);
170
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
171
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isWorkspacePublic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
172
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
183
+ isWorkspacePublic(workspaceId, options) {
184
+ return __awaiter(this, void 0, void 0, function* () {
185
+ var _a, _b, _c;
186
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.isWorkspacePublic(workspaceId, options);
187
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
188
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreviewApi.isWorkspacePublic']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
189
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
+ });
173
191
  },
174
192
  };
175
193
  };