@daytonaio/api-client 0.5.2 → 0.6.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 +20 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +120 -120
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
package/api/users-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import globalAxios from 'axios';
|
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { CreateUser } from '../models';
|
|
24
26
|
/**
|
|
25
27
|
* UsersApi - axios parameter creator
|
|
26
28
|
* @export
|
|
@@ -30,13 +32,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
32
34
|
* @summary Create user
|
|
33
|
-
* @param {
|
|
35
|
+
* @param {CreateUser} createUser
|
|
34
36
|
* @param {*} [options] Override http request option.
|
|
35
37
|
* @throws {RequiredError}
|
|
36
38
|
*/
|
|
37
|
-
createUser: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('createUser', '
|
|
39
|
+
createUser: async (createUser: CreateUser, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
// verify required parameter 'createUser' is not null or undefined
|
|
41
|
+
assertParamExists('createUser', 'createUser', createUser)
|
|
40
42
|
const localVarPath = `/users`;
|
|
41
43
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
44
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -60,7 +62,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
60
62
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
61
63
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
62
64
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
63
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
65
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createUser, localVarRequestOptions, configuration)
|
|
64
66
|
|
|
65
67
|
return {
|
|
66
68
|
url: toPathString(localVarUrlObj),
|
|
@@ -152,12 +154,12 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
152
154
|
/**
|
|
153
155
|
*
|
|
154
156
|
* @summary Create user
|
|
155
|
-
* @param {
|
|
157
|
+
* @param {CreateUser} createUser
|
|
156
158
|
* @param {*} [options] Override http request option.
|
|
157
159
|
* @throws {RequiredError}
|
|
158
160
|
*/
|
|
159
|
-
async createUser(
|
|
160
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(
|
|
161
|
+
async createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(createUser, options);
|
|
161
163
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
162
164
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.createUser']?.[localVarOperationServerIndex]?.url;
|
|
163
165
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -200,12 +202,12 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
200
202
|
/**
|
|
201
203
|
*
|
|
202
204
|
* @summary Create user
|
|
203
|
-
* @param {
|
|
205
|
+
* @param {CreateUser} createUser
|
|
204
206
|
* @param {*} [options] Override http request option.
|
|
205
207
|
* @throws {RequiredError}
|
|
206
208
|
*/
|
|
207
|
-
createUser(
|
|
208
|
-
return localVarFp.createUser(
|
|
209
|
+
createUser(createUser: CreateUser, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
210
|
+
return localVarFp.createUser(createUser, options).then((request) => request(axios, basePath));
|
|
209
211
|
},
|
|
210
212
|
/**
|
|
211
213
|
*
|
|
@@ -239,13 +241,13 @@ export class UsersApi extends BaseAPI {
|
|
|
239
241
|
/**
|
|
240
242
|
*
|
|
241
243
|
* @summary Create user
|
|
242
|
-
* @param {
|
|
244
|
+
* @param {CreateUser} createUser
|
|
243
245
|
* @param {*} [options] Override http request option.
|
|
244
246
|
* @throws {RequiredError}
|
|
245
247
|
* @memberof UsersApi
|
|
246
248
|
*/
|
|
247
|
-
public createUser(
|
|
248
|
-
return UsersApiFp(this.configuration).createUser(
|
|
249
|
+
public createUser(createUser: CreateUser, options?: RawAxiosRequestConfig) {
|
|
250
|
+
return UsersApiFp(this.configuration).createUser(createUser, options).then((request) => request(this.axios, this.basePath));
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
/**
|
package/api/workspace-api.ts
CHANGED
|
@@ -22,11 +22,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import type {
|
|
25
|
+
import type { CreateWorkspace } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
27
|
+
import type { Workspace } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import type {
|
|
29
|
+
import type { WorkspaceLabels } from '../models';
|
|
30
30
|
/**
|
|
31
31
|
* WorkspaceApi - axios parameter creator
|
|
32
32
|
* @export
|
|
@@ -74,13 +74,13 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @summary Create a new workspace
|
|
77
|
-
* @param {
|
|
77
|
+
* @param {CreateWorkspace} createWorkspace
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
createWorkspace: async (
|
|
82
|
-
// verify required parameter '
|
|
83
|
-
assertParamExists('createWorkspace', '
|
|
81
|
+
createWorkspace: async (createWorkspace: CreateWorkspace, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
82
|
+
// verify required parameter 'createWorkspace' is not null or undefined
|
|
83
|
+
assertParamExists('createWorkspace', 'createWorkspace', createWorkspace)
|
|
84
84
|
const localVarPath = `/workspace`;
|
|
85
85
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
86
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -104,7 +104,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
104
104
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
105
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
106
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
107
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
107
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createWorkspace, localVarRequestOptions, configuration)
|
|
108
108
|
|
|
109
109
|
return {
|
|
110
110
|
url: toPathString(localVarUrlObj),
|
|
@@ -242,15 +242,15 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
242
242
|
*
|
|
243
243
|
* @summary Replace workspace labels
|
|
244
244
|
* @param {string} workspaceId
|
|
245
|
-
* @param {
|
|
245
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
|
-
replaceLabels: async (workspaceId: string,
|
|
249
|
+
replaceLabels: async (workspaceId: string, workspaceLabels: WorkspaceLabels, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
250
250
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
251
251
|
assertParamExists('replaceLabels', 'workspaceId', workspaceId)
|
|
252
|
-
// verify required parameter '
|
|
253
|
-
assertParamExists('replaceLabels', '
|
|
252
|
+
// verify required parameter 'workspaceLabels' is not null or undefined
|
|
253
|
+
assertParamExists('replaceLabels', 'workspaceLabels', workspaceLabels)
|
|
254
254
|
const localVarPath = `/workspace/{workspaceId}/labels`
|
|
255
255
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
256
256
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -275,7 +275,7 @@ export const WorkspaceApiAxiosParamCreator = function (configuration?: Configura
|
|
|
275
275
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
276
276
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
277
277
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
278
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
278
|
+
localVarRequestOptions.data = serializeDataIfNeeded(workspaceLabels, localVarRequestOptions, configuration)
|
|
279
279
|
|
|
280
280
|
return {
|
|
281
281
|
url: toPathString(localVarUrlObj),
|
|
@@ -417,7 +417,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
417
417
|
* @param {*} [options] Override http request option.
|
|
418
418
|
* @throws {RequiredError}
|
|
419
419
|
*/
|
|
420
|
-
async createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
420
|
+
async createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
421
421
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createSnapshot(workspaceId, options);
|
|
422
422
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
423
423
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.createSnapshot']?.[localVarOperationServerIndex]?.url;
|
|
@@ -426,12 +426,12 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
426
426
|
/**
|
|
427
427
|
*
|
|
428
428
|
* @summary Create a new workspace
|
|
429
|
-
* @param {
|
|
429
|
+
* @param {CreateWorkspace} createWorkspace
|
|
430
430
|
* @param {*} [options] Override http request option.
|
|
431
431
|
* @throws {RequiredError}
|
|
432
432
|
*/
|
|
433
|
-
async createWorkspace(
|
|
434
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(
|
|
433
|
+
async createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
434
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createWorkspace(createWorkspace, options);
|
|
435
435
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
436
436
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.createWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
437
437
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -458,7 +458,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
458
458
|
* @param {*} [options] Override http request option.
|
|
459
459
|
* @throws {RequiredError}
|
|
460
460
|
*/
|
|
461
|
-
async getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
461
|
+
async getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Workspace>> {
|
|
462
462
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkspace(workspaceId, verbose, options);
|
|
463
463
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
464
464
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.getWorkspace']?.[localVarOperationServerIndex]?.url;
|
|
@@ -471,7 +471,7 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
471
471
|
* @param {*} [options] Override http request option.
|
|
472
472
|
* @throws {RequiredError}
|
|
473
473
|
*/
|
|
474
|
-
async listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
474
|
+
async listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Workspace>>> {
|
|
475
475
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listWorkspaces(verbose, options);
|
|
476
476
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
477
477
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.listWorkspaces']?.[localVarOperationServerIndex]?.url;
|
|
@@ -481,12 +481,12 @@ export const WorkspaceApiFp = function(configuration?: Configuration) {
|
|
|
481
481
|
*
|
|
482
482
|
* @summary Replace workspace labels
|
|
483
483
|
* @param {string} workspaceId
|
|
484
|
-
* @param {
|
|
484
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
485
485
|
* @param {*} [options] Override http request option.
|
|
486
486
|
* @throws {RequiredError}
|
|
487
487
|
*/
|
|
488
|
-
async replaceLabels(workspaceId: string,
|
|
489
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(workspaceId,
|
|
488
|
+
async replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkspaceLabels>> {
|
|
489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceLabels(workspaceId, workspaceLabels, options);
|
|
490
490
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
491
491
|
const localVarOperationServerBasePath = operationServerMap['WorkspaceApi.replaceLabels']?.[localVarOperationServerIndex]?.url;
|
|
492
492
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -548,18 +548,18 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
548
548
|
* @param {*} [options] Override http request option.
|
|
549
549
|
* @throws {RequiredError}
|
|
550
550
|
*/
|
|
551
|
-
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
551
|
+
createSnapshot(workspaceId: string, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
552
552
|
return localVarFp.createSnapshot(workspaceId, options).then((request) => request(axios, basePath));
|
|
553
553
|
},
|
|
554
554
|
/**
|
|
555
555
|
*
|
|
556
556
|
* @summary Create a new workspace
|
|
557
|
-
* @param {
|
|
557
|
+
* @param {CreateWorkspace} createWorkspace
|
|
558
558
|
* @param {*} [options] Override http request option.
|
|
559
559
|
* @throws {RequiredError}
|
|
560
560
|
*/
|
|
561
|
-
createWorkspace(
|
|
562
|
-
return localVarFp.createWorkspace(
|
|
561
|
+
createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
562
|
+
return localVarFp.createWorkspace(createWorkspace, options).then((request) => request(axios, basePath));
|
|
563
563
|
},
|
|
564
564
|
/**
|
|
565
565
|
*
|
|
@@ -580,7 +580,7 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
580
580
|
* @param {*} [options] Override http request option.
|
|
581
581
|
* @throws {RequiredError}
|
|
582
582
|
*/
|
|
583
|
-
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
583
|
+
getWorkspace(workspaceId: string, verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Workspace> {
|
|
584
584
|
return localVarFp.getWorkspace(workspaceId, verbose, options).then((request) => request(axios, basePath));
|
|
585
585
|
},
|
|
586
586
|
/**
|
|
@@ -590,19 +590,19 @@ export const WorkspaceApiFactory = function (configuration?: Configuration, base
|
|
|
590
590
|
* @param {*} [options] Override http request option.
|
|
591
591
|
* @throws {RequiredError}
|
|
592
592
|
*/
|
|
593
|
-
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
593
|
+
listWorkspaces(verbose?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Workspace>> {
|
|
594
594
|
return localVarFp.listWorkspaces(verbose, options).then((request) => request(axios, basePath));
|
|
595
595
|
},
|
|
596
596
|
/**
|
|
597
597
|
*
|
|
598
598
|
* @summary Replace workspace labels
|
|
599
599
|
* @param {string} workspaceId
|
|
600
|
-
* @param {
|
|
600
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
601
601
|
* @param {*} [options] Override http request option.
|
|
602
602
|
* @throws {RequiredError}
|
|
603
603
|
*/
|
|
604
|
-
replaceLabels(workspaceId: string,
|
|
605
|
-
return localVarFp.replaceLabels(workspaceId,
|
|
604
|
+
replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig): AxiosPromise<WorkspaceLabels> {
|
|
605
|
+
return localVarFp.replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(axios, basePath));
|
|
606
606
|
},
|
|
607
607
|
/**
|
|
608
608
|
*
|
|
@@ -660,13 +660,13 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
660
660
|
/**
|
|
661
661
|
*
|
|
662
662
|
* @summary Create a new workspace
|
|
663
|
-
* @param {
|
|
663
|
+
* @param {CreateWorkspace} createWorkspace
|
|
664
664
|
* @param {*} [options] Override http request option.
|
|
665
665
|
* @throws {RequiredError}
|
|
666
666
|
* @memberof WorkspaceApi
|
|
667
667
|
*/
|
|
668
|
-
public createWorkspace(
|
|
669
|
-
return WorkspaceApiFp(this.configuration).createWorkspace(
|
|
668
|
+
public createWorkspace(createWorkspace: CreateWorkspace, options?: RawAxiosRequestConfig) {
|
|
669
|
+
return WorkspaceApiFp(this.configuration).createWorkspace(createWorkspace, options).then((request) => request(this.axios, this.basePath));
|
|
670
670
|
}
|
|
671
671
|
|
|
672
672
|
/**
|
|
@@ -711,13 +711,13 @@ export class WorkspaceApi extends BaseAPI {
|
|
|
711
711
|
*
|
|
712
712
|
* @summary Replace workspace labels
|
|
713
713
|
* @param {string} workspaceId
|
|
714
|
-
* @param {
|
|
714
|
+
* @param {WorkspaceLabels} workspaceLabels
|
|
715
715
|
* @param {*} [options] Override http request option.
|
|
716
716
|
* @throws {RequiredError}
|
|
717
717
|
* @memberof WorkspaceApi
|
|
718
718
|
*/
|
|
719
|
-
public replaceLabels(workspaceId: string,
|
|
720
|
-
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId,
|
|
719
|
+
public replaceLabels(workspaceId: string, workspaceLabels: WorkspaceLabels, options?: RawAxiosRequestConfig) {
|
|
720
|
+
return WorkspaceApiFp(this.configuration).replaceLabels(workspaceId, workspaceLabels, options).then((request) => request(this.axios, this.basePath));
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
/**
|
package/api.ts
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
15
|
+
import type { ApiKeyList } from '../models';
|
|
16
|
+
import type { ApiKeyResponse } from '../models';
|
|
17
|
+
import type { CreateApiKey } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* ApiKeysApi - axios parameter creator
|
|
20
20
|
* @export
|
|
@@ -23,11 +23,11 @@ export declare const ApiKeysApiAxiosParamCreator: (configuration?: Configuration
|
|
|
23
23
|
/**
|
|
24
24
|
*
|
|
25
25
|
* @summary Create API key
|
|
26
|
-
* @param {
|
|
26
|
+
* @param {CreateApiKey} createApiKey
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
createApiKey: (
|
|
30
|
+
createApiKey: (createApiKey: CreateApiKey, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
33
|
* @summary Delete API key
|
|
@@ -60,11 +60,11 @@ export declare const ApiKeysApiFp: (configuration?: Configuration) => {
|
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @summary Create API key
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {CreateApiKey} createApiKey
|
|
64
64
|
* @param {*} [options] Override http request option.
|
|
65
65
|
* @throws {RequiredError}
|
|
66
66
|
*/
|
|
67
|
-
createApiKey(
|
|
67
|
+
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>>;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @summary Delete API key
|
|
@@ -80,14 +80,14 @@ export declare const ApiKeysApiFp: (configuration?: Configuration) => {
|
|
|
80
80
|
* @param {*} [options] Override http request option.
|
|
81
81
|
* @throws {RequiredError}
|
|
82
82
|
*/
|
|
83
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
83
|
+
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>>;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @summary List API keys
|
|
87
87
|
* @param {*} [options] Override http request option.
|
|
88
88
|
* @throws {RequiredError}
|
|
89
89
|
*/
|
|
90
|
-
listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
90
|
+
listApiKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>>;
|
|
91
91
|
};
|
|
92
92
|
/**
|
|
93
93
|
* ApiKeysApi - factory interface
|
|
@@ -97,11 +97,11 @@ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath
|
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
99
|
* @summary Create API key
|
|
100
|
-
* @param {
|
|
100
|
+
* @param {CreateApiKey} createApiKey
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
*/
|
|
104
|
-
createApiKey(
|
|
104
|
+
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse>;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @summary Delete API key
|
|
@@ -117,14 +117,14 @@ export declare const ApiKeysApiFactory: (configuration?: Configuration, basePath
|
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
119
|
*/
|
|
120
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
120
|
+
getApiKey(name: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList>;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
* @summary List API keys
|
|
124
124
|
* @param {*} [options] Override http request option.
|
|
125
125
|
* @throws {RequiredError}
|
|
126
126
|
*/
|
|
127
|
-
listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<
|
|
127
|
+
listApiKeys(options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>>;
|
|
128
128
|
};
|
|
129
129
|
/**
|
|
130
130
|
* ApiKeysApi - object-oriented interface
|
|
@@ -136,12 +136,12 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @summary Create API key
|
|
139
|
-
* @param {
|
|
139
|
+
* @param {CreateApiKey} createApiKey
|
|
140
140
|
* @param {*} [options] Override http request option.
|
|
141
141
|
* @throws {RequiredError}
|
|
142
142
|
* @memberof ApiKeysApi
|
|
143
143
|
*/
|
|
144
|
-
createApiKey(
|
|
144
|
+
createApiKey(createApiKey: CreateApiKey, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyResponse, any>>;
|
|
145
145
|
/**
|
|
146
146
|
*
|
|
147
147
|
* @summary Delete API key
|
|
@@ -159,7 +159,7 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
* @memberof ApiKeysApi
|
|
161
161
|
*/
|
|
162
|
-
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
162
|
+
getApiKey(name: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList, any>>;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @summary List API keys
|
|
@@ -167,5 +167,5 @@ export declare class ApiKeysApi extends BaseAPI {
|
|
|
167
167
|
* @throws {RequiredError}
|
|
168
168
|
* @memberof ApiKeysApi
|
|
169
169
|
*/
|
|
170
|
-
listApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
170
|
+
listApiKeys(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApiKeyList[], any>>;
|
|
171
171
|
}
|
package/dist/api/api-keys-api.js
CHANGED
|
@@ -38,13 +38,13 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @summary Create API key
|
|
41
|
-
* @param {
|
|
41
|
+
* @param {CreateApiKey} createApiKey
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
createApiKey: (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
(0, common_1.assertParamExists)('createApiKey', '
|
|
45
|
+
createApiKey: (createApiKey_1, ...args_1) => __awaiter(this, [createApiKey_1, ...args_1], void 0, function* (createApiKey, options = {}) {
|
|
46
|
+
// verify required parameter 'createApiKey' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('createApiKey', 'createApiKey', createApiKey);
|
|
48
48
|
const localVarPath = `/api-keys`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -62,7 +62,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
62
62
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
63
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
64
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
65
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApiKey, localVarRequestOptions, configuration);
|
|
66
66
|
return {
|
|
67
67
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
68
|
options: localVarRequestOptions,
|
|
@@ -75,7 +75,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
deleteApiKey: (name_1, ...
|
|
78
|
+
deleteApiKey: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
|
|
79
79
|
// verify required parameter 'name' is not null or undefined
|
|
80
80
|
(0, common_1.assertParamExists)('deleteApiKey', 'name', name);
|
|
81
81
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -107,7 +107,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
* @param {*} [options] Override http request option.
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
*/
|
|
110
|
-
getApiKey: (
|
|
110
|
+
getApiKey: (name_1, ...args_1) => __awaiter(this, [name_1, ...args_1], void 0, function* (name, options = {}) {
|
|
111
111
|
// verify required parameter 'name' is not null or undefined
|
|
112
112
|
(0, common_1.assertParamExists)('getApiKey', 'name', name);
|
|
113
113
|
const localVarPath = `/api-keys/{name}`
|
|
@@ -138,7 +138,7 @@ const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
listApiKeys: (...
|
|
141
|
+
listApiKeys: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
142
142
|
const localVarPath = `/api-keys`;
|
|
143
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
144
144
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -173,14 +173,14 @@ const ApiKeysApiFp = function (configuration) {
|
|
|
173
173
|
/**
|
|
174
174
|
*
|
|
175
175
|
* @summary Create API key
|
|
176
|
-
* @param {
|
|
176
|
+
* @param {CreateApiKey} createApiKey
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
178
178
|
* @throws {RequiredError}
|
|
179
179
|
*/
|
|
180
|
-
createApiKey(
|
|
180
|
+
createApiKey(createApiKey, options) {
|
|
181
181
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
182
|
var _a, _b, _c;
|
|
183
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(
|
|
183
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(createApiKey, options);
|
|
184
184
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
185
185
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
186
186
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -246,12 +246,12 @@ const ApiKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
246
246
|
/**
|
|
247
247
|
*
|
|
248
248
|
* @summary Create API key
|
|
249
|
-
* @param {
|
|
249
|
+
* @param {CreateApiKey} createApiKey
|
|
250
250
|
* @param {*} [options] Override http request option.
|
|
251
251
|
* @throws {RequiredError}
|
|
252
252
|
*/
|
|
253
|
-
createApiKey(
|
|
254
|
-
return localVarFp.createApiKey(
|
|
253
|
+
createApiKey(createApiKey, options) {
|
|
254
|
+
return localVarFp.createApiKey(createApiKey, options).then((request) => request(axios, basePath));
|
|
255
255
|
},
|
|
256
256
|
/**
|
|
257
257
|
*
|
|
@@ -295,13 +295,13 @@ class ApiKeysApi extends base_1.BaseAPI {
|
|
|
295
295
|
/**
|
|
296
296
|
*
|
|
297
297
|
* @summary Create API key
|
|
298
|
-
* @param {
|
|
298
|
+
* @param {CreateApiKey} createApiKey
|
|
299
299
|
* @param {*} [options] Override http request option.
|
|
300
300
|
* @throws {RequiredError}
|
|
301
301
|
* @memberof ApiKeysApi
|
|
302
302
|
*/
|
|
303
|
-
createApiKey(
|
|
304
|
-
return (0, exports.ApiKeysApiFp)(this.configuration).createApiKey(
|
|
303
|
+
createApiKey(createApiKey, options) {
|
|
304
|
+
return (0, exports.ApiKeysApiFp)(this.configuration).createApiKey(createApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
305
305
|
}
|
|
306
306
|
/**
|
|
307
307
|
*
|
|
@@ -13,10 +13,10 @@ import type { Configuration } from '../configuration';
|
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* AppApi - axios parameter creator
|
|
17
17
|
* @export
|
|
18
18
|
*/
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const AppApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @param {*} [options] Override http request option.
|
|
@@ -25,10 +25,10 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
25
25
|
appControllerGetHello: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* AppApi - functional programming interface
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export declare const
|
|
31
|
+
export declare const AppApiFp: (configuration?: Configuration) => {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
@@ -37,10 +37,10 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
37
37
|
appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* AppApi - factory interface
|
|
41
41
|
* @export
|
|
42
42
|
*/
|
|
43
|
-
export declare const
|
|
43
|
+
export declare const AppApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @param {*} [options] Override http request option.
|
|
@@ -49,17 +49,17 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
49
49
|
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* AppApi - object-oriented interface
|
|
53
53
|
* @export
|
|
54
|
-
* @class
|
|
54
|
+
* @class AppApi
|
|
55
55
|
* @extends {BaseAPI}
|
|
56
56
|
*/
|
|
57
|
-
export declare class
|
|
57
|
+
export declare class AppApi extends BaseAPI {
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @param {*} [options] Override http request option.
|
|
61
61
|
* @throws {RequiredError}
|
|
62
|
-
* @memberof
|
|
62
|
+
* @memberof AppApi
|
|
63
63
|
*/
|
|
64
64
|
appControllerGetHello(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
65
65
|
}
|