@daytonaio/api-client 0.14.0 → 0.15.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/.openapi-generator/FILES +16 -1
- package/README.md +2 -2
- package/api/api-keys-api.ts +60 -28
- package/api/docker-registry-api.ts +121 -65
- package/api/images-api.ts +60 -28
- package/api/organizations-api.ts +1858 -0
- package/api/toolbox-api.ts +548 -252
- package/api/users-api.ts +14 -98
- package/api/workspace-api.ts +268 -168
- package/api.ts +1 -0
- package/dist/api/api-keys-api.d.ts +32 -16
- package/dist/api/api-keys-api.js +56 -28
- package/dist/api/docker-registry-api.d.ts +72 -44
- package/dist/api/docker-registry-api.js +114 -65
- package/dist/api/images-api.d.ts +32 -16
- package/dist/api/images-api.js +56 -28
- package/dist/api/organizations-api.d.ts +856 -0
- package/dist/api/organizations-api.js +1741 -0
- package/dist/api/toolbox-api.d.ts +292 -144
- package/dist/api/toolbox-api.js +511 -252
- package/dist/api/users-api.d.ts +9 -47
- package/dist/api/users-api.js +13 -90
- package/dist/api/workspace-api.d.ts +153 -101
- package/dist/api/workspace-api.js +257 -169
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/api-keys-api.d.ts +32 -16
- package/dist/esm/api/api-keys-api.js +56 -28
- package/dist/esm/api/docker-registry-api.d.ts +72 -44
- package/dist/esm/api/docker-registry-api.js +114 -65
- package/dist/esm/api/images-api.d.ts +32 -16
- package/dist/esm/api/images-api.js +56 -28
- package/dist/esm/api/organizations-api.d.ts +856 -0
- package/dist/esm/api/organizations-api.js +1734 -0
- package/dist/esm/api/toolbox-api.d.ts +292 -144
- package/dist/esm/api/toolbox-api.js +511 -252
- package/dist/esm/api/users-api.d.ts +9 -47
- package/dist/esm/api/users-api.js +13 -90
- package/dist/esm/api/workspace-api.d.ts +153 -101
- package/dist/esm/api/workspace-api.js +257 -169
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/api-key-list.d.ts +15 -0
- package/dist/esm/models/api-key-list.js +8 -1
- package/dist/esm/models/api-key-response.d.ts +15 -0
- package/dist/esm/models/api-key-response.js +8 -1
- package/dist/esm/models/create-api-key.d.ts +15 -0
- package/dist/esm/models/create-api-key.js +8 -1
- package/dist/esm/models/create-docker-registry.d.ts +1 -1
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-organization-invitation.d.ts +47 -0
- package/dist/esm/models/create-organization-invitation.js +17 -0
- package/dist/esm/models/create-organization-quota.d.ts +84 -0
- package/dist/esm/models/create-organization-role.d.ts +45 -0
- package/dist/esm/models/create-organization-role.js +21 -0
- package/dist/esm/models/create-organization.d.ts +90 -0
- package/dist/esm/models/create-organization.js +14 -0
- package/dist/esm/models/create-user.d.ts +5 -58
- package/dist/esm/models/docker-registry.d.ts +1 -1
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/image-dto.d.ts +1 -1
- package/dist/esm/models/index.d.ts +15 -1
- package/dist/esm/models/index.js +15 -1
- package/dist/esm/models/organization-invitation.d.ts +91 -0
- package/dist/esm/models/organization-invitation.js +23 -0
- package/dist/esm/models/organization-role.d.ts +69 -0
- package/dist/esm/models/organization-role.js +21 -0
- package/dist/esm/models/organization-user.d.ts +72 -0
- package/dist/esm/models/organization-user.js +17 -0
- package/dist/esm/models/organization.d.ts +54 -0
- package/dist/esm/models/organization.js +14 -0
- package/dist/esm/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/esm/models/update-assigned-organization-roles.js +14 -0
- package/dist/esm/models/update-organization-invitation.d.ts +41 -0
- package/dist/esm/models/update-organization-invitation.js +17 -0
- package/dist/esm/models/update-organization-member-role.d.ts +29 -0
- package/dist/esm/models/update-organization-member-role.js +17 -0
- package/dist/esm/models/{update-user-quota-dto.d.ts → update-organization-quota.d.ts} +13 -13
- package/dist/esm/models/update-organization-quota.js +14 -0
- package/dist/esm/models/update-organization-role.d.ts +45 -0
- package/dist/esm/models/update-organization-role.js +21 -0
- package/dist/esm/models/user-public-key.d.ts +30 -0
- package/dist/esm/models/user-public-key.js +14 -0
- package/dist/esm/models/user.d.ts +43 -0
- package/dist/esm/models/user.js +14 -0
- package/dist/models/api-key-list.d.ts +15 -0
- package/dist/models/api-key-list.js +9 -0
- package/dist/models/api-key-response.d.ts +15 -0
- package/dist/models/api-key-response.js +9 -0
- package/dist/models/create-api-key.d.ts +15 -0
- package/dist/models/create-api-key.js +9 -0
- package/dist/models/create-docker-registry.d.ts +1 -1
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-organization-invitation.d.ts +47 -0
- package/dist/models/create-organization-invitation.js +20 -0
- package/dist/models/create-organization-quota.d.ts +84 -0
- package/dist/models/create-organization-role.d.ts +45 -0
- package/dist/models/create-organization-role.js +24 -0
- package/dist/models/create-organization.d.ts +90 -0
- package/dist/models/create-organization.js +15 -0
- package/dist/models/create-user.d.ts +5 -58
- package/dist/models/docker-registry.d.ts +1 -1
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/image-dto.d.ts +1 -1
- package/dist/models/index.d.ts +15 -1
- package/dist/models/index.js +15 -1
- package/dist/models/organization-invitation.d.ts +91 -0
- package/dist/models/organization-invitation.js +26 -0
- package/dist/models/organization-role.d.ts +69 -0
- package/dist/models/organization-role.js +24 -0
- package/dist/models/organization-user.d.ts +72 -0
- package/dist/models/organization-user.js +20 -0
- package/dist/models/organization.d.ts +54 -0
- package/dist/models/organization.js +15 -0
- package/dist/models/update-assigned-organization-roles.d.ts +24 -0
- package/dist/models/update-assigned-organization-roles.js +15 -0
- package/dist/models/update-organization-invitation.d.ts +41 -0
- package/dist/models/update-organization-invitation.js +20 -0
- package/dist/models/update-organization-member-role.d.ts +29 -0
- package/dist/models/update-organization-member-role.js +20 -0
- package/dist/models/{update-user-quota-dto.d.ts → update-organization-quota.d.ts} +13 -13
- package/dist/models/update-organization-quota.js +15 -0
- package/dist/models/update-organization-role.d.ts +45 -0
- package/dist/models/update-organization-role.js +24 -0
- package/dist/models/user-public-key.d.ts +30 -0
- package/dist/models/user-public-key.js +15 -0
- package/dist/models/user.d.ts +43 -0
- package/dist/models/user.js +15 -0
- package/models/api-key-list.ts +18 -0
- package/models/api-key-response.ts +18 -0
- package/models/create-api-key.ts +18 -0
- package/models/create-docker-registry.ts +1 -1
- package/models/create-organization-invitation.ts +56 -0
- package/models/create-organization-quota.ts +90 -0
- package/models/create-organization-role.ts +54 -0
- package/models/create-organization.ts +96 -0
- package/models/create-user.ts +7 -58
- package/models/docker-registry.ts +1 -1
- package/models/image-dto.ts +1 -1
- package/models/index.ts +15 -1
- package/models/organization-invitation.ts +103 -0
- package/models/organization-role.ts +78 -0
- package/models/organization-user.ts +83 -0
- package/models/organization.ts +60 -0
- package/models/update-assigned-organization-roles.ts +30 -0
- package/models/update-organization-invitation.ts +50 -0
- package/models/update-organization-member-role.ts +38 -0
- package/models/{update-user-quota-dto.ts → update-organization-quota.ts} +13 -13
- package/models/update-organization-role.ts +54 -0
- package/models/user-public-key.ts +36 -0
- package/models/user.ts +51 -0
- package/package.json +1 -1
- /package/dist/esm/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
- /package/dist/models/{update-user-quota-dto.js → create-organization-quota.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -7,6 +7,7 @@ api/api-keys-api.ts
|
|
|
7
7
|
api/docker-registry-api.ts
|
|
8
8
|
api/images-api.ts
|
|
9
9
|
api/nodes-api.ts
|
|
10
|
+
api/organizations-api.ts
|
|
10
11
|
api/toolbox-api.ts
|
|
11
12
|
api/users-api.ts
|
|
12
13
|
api/workspace-api.ts
|
|
@@ -25,6 +26,10 @@ models/create-api-key.ts
|
|
|
25
26
|
models/create-docker-registry.ts
|
|
26
27
|
models/create-image.ts
|
|
27
28
|
models/create-node.ts
|
|
29
|
+
models/create-organization-invitation.ts
|
|
30
|
+
models/create-organization-quota.ts
|
|
31
|
+
models/create-organization-role.ts
|
|
32
|
+
models/create-organization.ts
|
|
28
33
|
models/create-session-request.ts
|
|
29
34
|
models/create-user.ts
|
|
30
35
|
models/create-workspace.ts
|
|
@@ -51,6 +56,10 @@ models/lsp-location.ts
|
|
|
51
56
|
models/lsp-server-request.ts
|
|
52
57
|
models/lsp-symbol.ts
|
|
53
58
|
models/match.ts
|
|
59
|
+
models/organization-invitation.ts
|
|
60
|
+
models/organization-role.ts
|
|
61
|
+
models/organization-user.ts
|
|
62
|
+
models/organization.ts
|
|
54
63
|
models/paginated-images-dto.ts
|
|
55
64
|
models/position.ts
|
|
56
65
|
models/project-dir-response.ts
|
|
@@ -63,9 +72,15 @@ models/session-execute-request.ts
|
|
|
63
72
|
models/session-execute-response.ts
|
|
64
73
|
models/session.ts
|
|
65
74
|
models/toggle-state.ts
|
|
75
|
+
models/update-assigned-organization-roles.ts
|
|
66
76
|
models/update-docker-registry.ts
|
|
67
|
-
models/update-
|
|
77
|
+
models/update-organization-invitation.ts
|
|
78
|
+
models/update-organization-member-role.ts
|
|
79
|
+
models/update-organization-quota.ts
|
|
80
|
+
models/update-organization-role.ts
|
|
68
81
|
models/usage-overview.ts
|
|
82
|
+
models/user-public-key.ts
|
|
83
|
+
models/user.ts
|
|
69
84
|
models/workspace-info.ts
|
|
70
85
|
models/workspace-labels.ts
|
|
71
86
|
models/workspace-state.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @daytonaio/api-client@0.
|
|
1
|
+
## @daytonaio/api-client@0.15.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @daytonaio/api-client@0.
|
|
39
|
+
npm install @daytonaio/api-client@0.15.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api/api-keys-api.ts
CHANGED
|
@@ -37,10 +37,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
37
37
|
*
|
|
38
38
|
* @summary Create API key
|
|
39
39
|
* @param {CreateApiKey} createApiKey
|
|
40
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
40
41
|
* @param {*} [options] Override http request option.
|
|
41
42
|
* @throws {RequiredError}
|
|
42
43
|
*/
|
|
43
|
-
createApiKey: async (createApiKey: CreateApiKey, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
createApiKey: async (createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
45
|
// verify required parameter 'createApiKey' is not null or undefined
|
|
45
46
|
assertParamExists('createApiKey', 'createApiKey', createApiKey)
|
|
46
47
|
const localVarPath = `/api-keys`;
|
|
@@ -59,6 +60,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
59
60
|
// oauth required
|
|
60
61
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
61
62
|
|
|
63
|
+
if (xDaytonaOrganizationID != null) {
|
|
64
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
65
|
+
}
|
|
66
|
+
|
|
62
67
|
|
|
63
68
|
|
|
64
69
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -77,10 +82,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
77
82
|
*
|
|
78
83
|
* @summary Delete API key
|
|
79
84
|
* @param {string} name
|
|
85
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
80
86
|
* @param {*} [options] Override http request option.
|
|
81
87
|
* @throws {RequiredError}
|
|
82
88
|
*/
|
|
83
|
-
deleteApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
89
|
+
deleteApiKey: async (name: string, xDaytonaOrganizationID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
84
90
|
// verify required parameter 'name' is not null or undefined
|
|
85
91
|
assertParamExists('deleteApiKey', 'name', name)
|
|
86
92
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -100,6 +106,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
100
106
|
// oauth required
|
|
101
107
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
102
108
|
|
|
109
|
+
if (xDaytonaOrganizationID != null) {
|
|
110
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
111
|
+
}
|
|
112
|
+
|
|
103
113
|
|
|
104
114
|
|
|
105
115
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -115,10 +125,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
115
125
|
*
|
|
116
126
|
* @summary Get API key
|
|
117
127
|
* @param {string} name
|
|
128
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
118
129
|
* @param {*} [options] Override http request option.
|
|
119
130
|
* @throws {RequiredError}
|
|
120
131
|
*/
|
|
121
|
-
getApiKey: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
132
|
+
getApiKey: async (name: string, xDaytonaOrganizationID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
122
133
|
// verify required parameter 'name' is not null or undefined
|
|
123
134
|
assertParamExists('getApiKey', 'name', name)
|
|
124
135
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -138,6 +149,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
138
149
|
// oauth required
|
|
139
150
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
140
151
|
|
|
152
|
+
if (xDaytonaOrganizationID != null) {
|
|
153
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
154
|
+
}
|
|
155
|
+
|
|
141
156
|
|
|
142
157
|
|
|
143
158
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,10 +167,11 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
152
167
|
/**
|
|
153
168
|
*
|
|
154
169
|
* @summary List API keys
|
|
170
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
155
171
|
* @param {*} [options] Override http request option.
|
|
156
172
|
* @throws {RequiredError}
|
|
157
173
|
*/
|
|
158
|
-
listApiKeys: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
174
|
+
listApiKeys: async (xDaytonaOrganizationID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
159
175
|
const localVarPath = `/api-keys`;
|
|
160
176
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
177
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -172,6 +188,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
172
188
|
// oauth required
|
|
173
189
|
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration)
|
|
174
190
|
|
|
191
|
+
if (xDaytonaOrganizationID != null) {
|
|
192
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
193
|
+
}
|
|
194
|
+
|
|
175
195
|
|
|
176
196
|
|
|
177
197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -197,11 +217,12 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
|
197
217
|
*
|
|
198
218
|
* @summary Create API key
|
|
199
219
|
* @param {CreateApiKey} createApiKey
|
|
220
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
200
221
|
* @param {*} [options] Override http request option.
|
|
201
222
|
* @throws {RequiredError}
|
|
202
223
|
*/
|
|
203
|
-
async createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>> {
|
|
204
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, options);
|
|
224
|
+
async createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>> {
|
|
225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
|
|
205
226
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
206
227
|
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.createApiKey']?.[localVarOperationServerIndex]?.url;
|
|
207
228
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -210,11 +231,12 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
|
210
231
|
*
|
|
211
232
|
* @summary Delete API key
|
|
212
233
|
* @param {string} name
|
|
234
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
213
235
|
* @param {*} [options] Override http request option.
|
|
214
236
|
* @throws {RequiredError}
|
|
215
237
|
*/
|
|
216
|
-
async deleteApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
217
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, options);
|
|
238
|
+
async deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
239
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
|
|
218
240
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
219
241
|
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.deleteApiKey']?.[localVarOperationServerIndex]?.url;
|
|
220
242
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -223,11 +245,12 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
|
223
245
|
*
|
|
224
246
|
* @summary Get API key
|
|
225
247
|
* @param {string} name
|
|
248
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
226
249
|
* @param {*} [options] Override http request option.
|
|
227
250
|
* @throws {RequiredError}
|
|
228
251
|
*/
|
|
229
|
-
async getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>> {
|
|
230
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, options);
|
|
252
|
+
async getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>> {
|
|
253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
|
|
231
254
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
232
255
|
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.getApiKey']?.[localVarOperationServerIndex]?.url;
|
|
233
256
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -235,11 +258,12 @@ export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
|
235
258
|
/**
|
|
236
259
|
*
|
|
237
260
|
* @summary List API keys
|
|
261
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
238
262
|
* @param {*} [options] Override http request option.
|
|
239
263
|
* @throws {RequiredError}
|
|
240
264
|
*/
|
|
241
|
-
async listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>> {
|
|
242
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(options);
|
|
265
|
+
async listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>> {
|
|
266
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
|
|
243
267
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
244
268
|
const localVarOperationServerBasePath = operationServerMap['ApiKeysApi.listApiKeys']?.[localVarOperationServerIndex]?.url;
|
|
245
269
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -258,40 +282,44 @@ export const ApiKeysApiFactory = function (configuration?: Configuration, basePa
|
|
|
258
282
|
*
|
|
259
283
|
* @summary Create API key
|
|
260
284
|
* @param {CreateApiKey} createApiKey
|
|
285
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
261
286
|
* @param {*} [options] Override http request option.
|
|
262
287
|
* @throws {RequiredError}
|
|
263
288
|
*/
|
|
264
|
-
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse> {
|
|
265
|
-
return localVarFp.createApiKey(createApiKey, options).then((request) => request(axios, basePath));
|
|
289
|
+
createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse> {
|
|
290
|
+
return localVarFp.createApiKey(createApiKey, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
266
291
|
},
|
|
267
292
|
/**
|
|
268
293
|
*
|
|
269
294
|
* @summary Delete API key
|
|
270
295
|
* @param {string} name
|
|
296
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
271
297
|
* @param {*} [options] Override http request option.
|
|
272
298
|
* @throws {RequiredError}
|
|
273
299
|
*/
|
|
274
|
-
deleteApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
275
|
-
return localVarFp.deleteApiKey(name, options).then((request) => request(axios, basePath));
|
|
300
|
+
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
301
|
+
return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
276
302
|
},
|
|
277
303
|
/**
|
|
278
304
|
*
|
|
279
305
|
* @summary Get API key
|
|
280
306
|
* @param {string} name
|
|
307
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
281
308
|
* @param {*} [options] Override http request option.
|
|
282
309
|
* @throws {RequiredError}
|
|
283
310
|
*/
|
|
284
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList> {
|
|
285
|
-
return localVarFp.getApiKey(name, options).then((request) => request(axios, basePath));
|
|
311
|
+
getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList> {
|
|
312
|
+
return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
286
313
|
},
|
|
287
314
|
/**
|
|
288
315
|
*
|
|
289
316
|
* @summary List API keys
|
|
317
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
290
318
|
* @param {*} [options] Override http request option.
|
|
291
319
|
* @throws {RequiredError}
|
|
292
320
|
*/
|
|
293
|
-
listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>> {
|
|
294
|
-
return localVarFp.listApiKeys(options).then((request) => request(axios, basePath));
|
|
321
|
+
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>> {
|
|
322
|
+
return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
295
323
|
},
|
|
296
324
|
};
|
|
297
325
|
};
|
|
@@ -307,47 +335,51 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
307
335
|
*
|
|
308
336
|
* @summary Create API key
|
|
309
337
|
* @param {CreateApiKey} createApiKey
|
|
338
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
310
339
|
* @param {*} [options] Override http request option.
|
|
311
340
|
* @throws {RequiredError}
|
|
312
341
|
* @memberof ApiKeysApi
|
|
313
342
|
*/
|
|
314
|
-
public createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig) {
|
|
315
|
-
return ApiKeysApiFp(this.configuration).createApiKey(createApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
343
|
+
public createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
344
|
+
return ApiKeysApiFp(this.configuration).createApiKey(createApiKey, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
316
345
|
}
|
|
317
346
|
|
|
318
347
|
/**
|
|
319
348
|
*
|
|
320
349
|
* @summary Delete API key
|
|
321
350
|
* @param {string} name
|
|
351
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
322
352
|
* @param {*} [options] Override http request option.
|
|
323
353
|
* @throws {RequiredError}
|
|
324
354
|
* @memberof ApiKeysApi
|
|
325
355
|
*/
|
|
326
|
-
public deleteApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
327
|
-
return ApiKeysApiFp(this.configuration).deleteApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
356
|
+
public deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
357
|
+
return ApiKeysApiFp(this.configuration).deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
328
358
|
}
|
|
329
359
|
|
|
330
360
|
/**
|
|
331
361
|
*
|
|
332
362
|
* @summary Get API key
|
|
333
363
|
* @param {string} name
|
|
364
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
334
365
|
* @param {*} [options] Override http request option.
|
|
335
366
|
* @throws {RequiredError}
|
|
336
367
|
* @memberof ApiKeysApi
|
|
337
368
|
*/
|
|
338
|
-
public getApiKey(name: string, options?: RawAxiosRequestConfig) {
|
|
339
|
-
return ApiKeysApiFp(this.configuration).getApiKey(name, options).then((request) => request(this.axios, this.basePath));
|
|
369
|
+
public getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
370
|
+
return ApiKeysApiFp(this.configuration).getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
340
371
|
}
|
|
341
372
|
|
|
342
373
|
/**
|
|
343
374
|
*
|
|
344
375
|
* @summary List API keys
|
|
376
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
345
377
|
* @param {*} [options] Override http request option.
|
|
346
378
|
* @throws {RequiredError}
|
|
347
379
|
* @memberof ApiKeysApi
|
|
348
380
|
*/
|
|
349
|
-
public listApiKeys(options?: RawAxiosRequestConfig) {
|
|
350
|
-
return ApiKeysApiFp(this.configuration).listApiKeys(options).then((request) => request(this.axios, this.basePath));
|
|
381
|
+
public listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
382
|
+
return ApiKeysApiFp(this.configuration).listApiKeys(xDaytonaOrganizationID, options).then((request) => request(this.axios, this.basePath));
|
|
351
383
|
}
|
|
352
384
|
}
|
|
353
385
|
|