@daytonaio/api-client 0.15.0 → 0.17.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 +5 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +412 -324
- package/api/docker-registry-api.ts +731 -549
- package/api/images-api.ts +596 -346
- package/api/nodes-api.ts +259 -210
- package/api/organizations-api.ts +2504 -1671
- package/api/preview-api.ts +330 -0
- package/api/toolbox-api.ts +4651 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1536 -969
- package/api.ts +10 -12
- package/base.ts +35 -30
- package/common.ts +78 -66
- package/configuration.ts +102 -89
- package/dist/api/api-keys-api.js +66 -63
- package/dist/api/docker-registry-api.js +123 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +161 -66
- package/dist/api/nodes-api.js +46 -47
- package/dist/api/organizations-api.d.ts +71 -0
- package/dist/api/organizations-api.js +560 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +269 -0
- package/dist/api/toolbox-api.js +709 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +51 -4
- package/dist/api/workspace-api.js +330 -190
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.js +6 -7
- package/dist/common.d.ts +3 -3
- package/dist/common.js +27 -45
- package/dist/configuration.js +2 -1
- package/dist/esm/api/api-keys-api.js +67 -64
- package/dist/esm/api/docker-registry-api.js +124 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +162 -67
- package/dist/esm/api/nodes-api.js +47 -48
- package/dist/esm/api/organizations-api.d.ts +71 -0
- package/dist/esm/api/organizations-api.js +561 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +262 -0
- package/dist/esm/api/toolbox-api.js +710 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +51 -4
- package/dist/esm/api/workspace-api.js +331 -191
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/base.js +6 -7
- package/dist/esm/common.d.ts +3 -3
- package/dist/esm/common.js +28 -46
- package/dist/esm/configuration.js +2 -1
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/models/api-key-list.d.ts +12 -12
- package/dist/esm/models/api-key-list.js +6 -6
- package/dist/esm/models/api-key-response.d.ts +12 -12
- package/dist/esm/models/api-key-response.js +6 -6
- package/dist/esm/models/command.d.ts +3 -3
- package/dist/esm/models/completion-context.d.ts +2 -2
- package/dist/esm/models/completion-item.d.ts +7 -7
- package/dist/esm/models/completion-list.d.ts +2 -2
- package/dist/esm/models/create-api-key.d.ts +9 -9
- package/dist/esm/models/create-api-key.js +6 -6
- package/dist/esm/models/create-docker-registry.d.ts +8 -8
- package/dist/esm/models/create-docker-registry.js +1 -1
- package/dist/esm/models/create-image.d.ts +9 -3
- package/dist/esm/models/create-node.d.ts +13 -13
- package/dist/esm/models/create-node.js +2 -2
- package/dist/esm/models/create-organization-invitation.d.ts +6 -6
- package/dist/esm/models/create-organization-invitation.js +1 -1
- package/dist/esm/models/create-organization-quota.d.ts +11 -11
- package/dist/esm/models/create-organization-role.d.ts +10 -10
- package/dist/esm/models/create-organization-role.js +6 -6
- package/dist/esm/models/create-organization.d.ts +1 -67
- package/dist/esm/models/create-session-request.d.ts +1 -1
- package/dist/esm/models/create-user.d.ts +15 -4
- package/dist/esm/models/create-user.js +4 -1
- package/dist/esm/models/create-workspace.d.ts +14 -26
- package/dist/esm/models/create-workspace.js +2 -2
- package/dist/esm/models/docker-registry.d.ts +11 -11
- package/dist/esm/models/docker-registry.js +1 -1
- package/dist/esm/models/execute-request.d.ts +3 -3
- package/dist/esm/models/execute-response.d.ts +2 -2
- package/dist/esm/models/file-info.d.ts +8 -8
- package/dist/esm/models/file-status.d.ts +4 -4
- package/dist/esm/models/git-add-request.d.ts +2 -2
- package/dist/esm/models/git-branch-request.d.ts +2 -2
- package/dist/esm/models/git-clone-request.d.ts +6 -6
- package/dist/esm/models/git-commit-info.d.ts +5 -5
- package/dist/esm/models/git-commit-request.d.ts +4 -4
- package/dist/esm/models/git-commit-response.d.ts +1 -1
- package/dist/esm/models/git-repo-request.d.ts +3 -3
- package/dist/esm/models/git-status.d.ts +4 -4
- package/dist/esm/models/image-dto.d.ts +21 -15
- package/dist/esm/models/image-state.d.ts +1 -1
- package/dist/esm/models/image-state.js +1 -1
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- package/dist/esm/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/esm/models/list-workspaces-labels-parameter.js +14 -0
- package/dist/esm/models/lsp-completion-params.d.ts +5 -5
- package/dist/esm/models/lsp-document-request.d.ts +3 -3
- package/dist/esm/models/lsp-location.d.ts +2 -2
- package/dist/esm/models/lsp-server-request.d.ts +2 -2
- package/dist/esm/models/lsp-symbol.d.ts +3 -3
- package/dist/esm/models/match.d.ts +3 -3
- package/dist/esm/models/organization-invitation.d.ts +21 -15
- package/dist/esm/models/organization-invitation.js +2 -2
- package/dist/esm/models/organization-role.d.ts +16 -16
- package/dist/esm/models/organization-role.js +6 -6
- package/dist/esm/models/organization-suspension.d.ts +30 -0
- package/dist/esm/models/organization-suspension.js +14 -0
- package/dist/esm/models/organization-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +31 -7
- package/dist/esm/models/paginated-images-dto.d.ts +4 -4
- package/dist/esm/models/port-preview-url.d.ts +30 -0
- package/dist/esm/models/port-preview-url.js +14 -0
- package/dist/esm/models/position.d.ts +2 -2
- package/dist/esm/models/project-dir-response.d.ts +1 -1
- package/dist/esm/models/range.d.ts +2 -2
- package/dist/esm/models/registry-push-access-dto.d.ts +6 -6
- package/dist/esm/models/replace-request.d.ts +3 -3
- package/dist/esm/models/replace-result.d.ts +3 -3
- package/dist/esm/models/search-files-response.d.ts +1 -1
- package/dist/esm/models/session-execute-request.d.ts +9 -2
- package/dist/esm/models/session-execute-response.d.ts +3 -3
- package/dist/esm/models/session.d.ts +2 -2
- package/dist/esm/models/set-image-general-status.d.ts +24 -0
- package/dist/esm/models/set-image-general-status.js +14 -0
- package/dist/esm/models/toggle-state.d.ts +1 -1
- package/dist/esm/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/esm/models/update-docker-registry.d.ts +3 -3
- package/dist/esm/models/update-organization-invitation.d.ts +5 -5
- package/dist/esm/models/update-organization-invitation.js +1 -1
- package/dist/esm/models/update-organization-member-role.d.ts +2 -2
- package/dist/esm/models/update-organization-member-role.js +1 -1
- package/dist/esm/models/update-organization-quota.d.ts +11 -11
- package/dist/esm/models/update-organization-role.d.ts +10 -10
- package/dist/esm/models/update-organization-role.js +6 -6
- package/dist/esm/models/usage-overview.d.ts +15 -15
- package/dist/esm/models/user-public-key.d.ts +2 -2
- package/dist/esm/models/user.d.ts +4 -4
- package/dist/esm/models/workspace-info.d.ts +5 -4
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +2 -2
- package/dist/esm/models/workspace-state.js +2 -2
- package/dist/esm/models/workspace.d.ts +26 -19
- package/dist/esm/models/workspace.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/models/api-key-list.d.ts +12 -12
- package/dist/models/api-key-list.js +6 -6
- package/dist/models/api-key-response.d.ts +12 -12
- package/dist/models/api-key-response.js +6 -6
- package/dist/models/command.d.ts +3 -3
- package/dist/models/completion-context.d.ts +2 -2
- package/dist/models/completion-item.d.ts +7 -7
- package/dist/models/completion-list.d.ts +2 -2
- package/dist/models/create-api-key.d.ts +9 -9
- package/dist/models/create-api-key.js +6 -6
- package/dist/models/create-docker-registry.d.ts +8 -8
- package/dist/models/create-docker-registry.js +1 -1
- package/dist/models/create-image.d.ts +9 -3
- package/dist/models/create-node.d.ts +13 -13
- package/dist/models/create-node.js +2 -2
- package/dist/models/create-organization-invitation.d.ts +6 -6
- package/dist/models/create-organization-invitation.js +1 -1
- package/dist/models/create-organization-quota.d.ts +11 -11
- package/dist/models/create-organization-role.d.ts +10 -10
- package/dist/models/create-organization-role.js +6 -6
- package/dist/models/create-organization.d.ts +1 -67
- package/dist/models/create-session-request.d.ts +1 -1
- package/dist/models/create-user.d.ts +15 -4
- package/dist/models/create-user.js +5 -0
- package/dist/models/create-workspace.d.ts +14 -26
- package/dist/models/create-workspace.js +2 -2
- package/dist/models/docker-registry.d.ts +11 -11
- package/dist/models/docker-registry.js +1 -1
- package/dist/models/execute-request.d.ts +3 -3
- package/dist/models/execute-response.d.ts +2 -2
- package/dist/models/file-info.d.ts +8 -8
- package/dist/models/file-status.d.ts +4 -4
- package/dist/models/git-add-request.d.ts +2 -2
- package/dist/models/git-branch-request.d.ts +2 -2
- package/dist/models/git-clone-request.d.ts +6 -6
- package/dist/models/git-commit-info.d.ts +5 -5
- package/dist/models/git-commit-request.d.ts +4 -4
- package/dist/models/git-commit-response.d.ts +1 -1
- package/dist/models/git-repo-request.d.ts +3 -3
- package/dist/models/git-status.d.ts +4 -4
- package/dist/models/image-dto.d.ts +21 -15
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- package/dist/models/list-workspaces-labels-parameter.d.ts +26 -0
- package/dist/models/list-workspaces-labels-parameter.js +15 -0
- package/dist/models/lsp-completion-params.d.ts +5 -5
- package/dist/models/lsp-document-request.d.ts +3 -3
- package/dist/models/lsp-location.d.ts +2 -2
- package/dist/models/lsp-server-request.d.ts +2 -2
- package/dist/models/lsp-symbol.d.ts +3 -3
- package/dist/models/match.d.ts +3 -3
- package/dist/models/organization-invitation.d.ts +21 -15
- package/dist/models/organization-invitation.js +2 -2
- package/dist/models/organization-role.d.ts +16 -16
- package/dist/models/organization-role.js +6 -6
- package/dist/models/organization-suspension.d.ts +30 -0
- package/dist/models/organization-suspension.js +15 -0
- package/dist/models/organization-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +31 -7
- package/dist/models/paginated-images-dto.d.ts +4 -4
- package/dist/models/port-preview-url.d.ts +30 -0
- package/dist/models/port-preview-url.js +15 -0
- package/dist/models/position.d.ts +2 -2
- package/dist/models/project-dir-response.d.ts +1 -1
- package/dist/models/range.d.ts +2 -2
- package/dist/models/registry-push-access-dto.d.ts +6 -6
- package/dist/models/replace-request.d.ts +3 -3
- package/dist/models/replace-result.d.ts +3 -3
- package/dist/models/search-files-response.d.ts +1 -1
- package/dist/models/session-execute-request.d.ts +9 -2
- package/dist/models/session-execute-response.d.ts +3 -3
- package/dist/models/session.d.ts +2 -2
- package/dist/models/set-image-general-status.d.ts +24 -0
- package/dist/models/set-image-general-status.js +15 -0
- package/dist/models/toggle-state.d.ts +1 -1
- package/dist/models/update-assigned-organization-roles.d.ts +1 -1
- package/dist/models/update-docker-registry.d.ts +3 -3
- package/dist/models/update-organization-invitation.d.ts +5 -5
- package/dist/models/update-organization-invitation.js +1 -1
- package/dist/models/update-organization-member-role.d.ts +2 -2
- package/dist/models/update-organization-member-role.js +1 -1
- package/dist/models/update-organization-quota.d.ts +11 -11
- package/dist/models/update-organization-role.d.ts +10 -10
- package/dist/models/update-organization-role.js +6 -6
- package/dist/models/usage-overview.d.ts +15 -15
- package/dist/models/user-public-key.d.ts +2 -2
- package/dist/models/user.d.ts +4 -4
- package/dist/models/workspace-info.d.ts +5 -4
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +2 -2
- package/dist/models/workspace-state.js +2 -2
- package/dist/models/workspace.d.ts +26 -19
- package/dist/models/workspace.js +1 -1
- package/index.ts +4 -5
- package/models/api-key-list.ts +34 -38
- package/models/api-key-response.ts +35 -38
- package/models/command.ts +20 -23
- package/models/completion-context.ts +14 -17
- package/models/completion-item.ts +44 -47
- package/models/completion-list.ts +15 -17
- package/models/create-api-key.ts +22 -26
- package/models/create-docker-registry.ts +51 -54
- package/models/create-image.ts +20 -17
- package/models/create-node.ts +78 -82
- package/models/create-organization-invitation.ts +31 -34
- package/models/create-organization-quota.ts +68 -71
- package/models/create-organization-role.ts +29 -32
- package/models/create-organization.ts +8 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +84 -100
- package/models/docker-registry.ts +57 -60
- package/models/execute-request.ts +20 -23
- package/models/execute-response.ts +14 -17
- package/models/file-info.ts +50 -53
- package/models/file-status.ts +26 -29
- package/models/git-add-request.ts +14 -17
- package/models/git-branch-request.ts +14 -17
- package/models/git-clone-request.ts +38 -41
- package/models/git-commit-info.ts +32 -35
- package/models/git-commit-request.ts +26 -29
- package/models/git-commit-response.ts +8 -11
- package/models/git-repo-request.ts +20 -23
- package/models/git-status.ts +33 -35
- package/models/image-dto.ts +75 -73
- package/models/image-state.ts +12 -17
- package/models/index.ts +72 -68
- package/models/list-branch-response.ts +8 -11
- package/models/list-workspaces-labels-parameter.ts +27 -0
- package/models/lsp-completion-params.ts +34 -36
- package/models/lsp-document-request.ts +20 -23
- package/models/lsp-location.ts +15 -17
- package/models/lsp-server-request.ts +14 -17
- package/models/lsp-symbol.ts +21 -23
- package/models/match.ts +20 -23
- package/models/organization-invitation.ts +81 -76
- package/models/organization-role.ts +53 -56
- package/models/organization-suspension.ts +33 -0
- package/models/organization-user.ts +55 -58
- package/models/organization.ts +62 -41
- package/models/paginated-images-dto.ts +27 -29
- package/models/port-preview-url.ts +33 -0
- package/models/position.ts +14 -17
- package/models/project-dir-response.ts +8 -11
- package/models/range.ts +15 -17
- package/models/registry-push-access-dto.ts +38 -41
- package/models/replace-request.ts +20 -23
- package/models/replace-result.ts +20 -23
- package/models/search-files-response.ts +8 -11
- package/models/session-execute-request.ts +21 -17
- package/models/session-execute-response.ts +20 -23
- package/models/session.ts +15 -17
- package/models/set-image-general-status.ts +27 -0
- package/models/toggle-state.ts +8 -11
- package/models/update-assigned-organization-roles.ts +8 -11
- package/models/update-docker-registry.ts +20 -23
- package/models/update-organization-invitation.ts +25 -28
- package/models/update-organization-member-role.ts +13 -16
- package/models/update-organization-quota.ts +68 -71
- package/models/update-organization-role.ts +29 -32
- package/models/usage-overview.ts +92 -95
- package/models/user-public-key.ts +14 -17
- package/models/user.ts +27 -29
- package/models/workspace-info.ts +21 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +126 -122
- package/package.json +2 -2
- package/project.json +49 -0
- package/tsconfig.json +3 -8
- package/README.md +0 -46
- package/git_push.sh +0 -57
package/dist/api.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './api/docker-registry-api';
|
|
|
14
14
|
export * from './api/images-api';
|
|
15
15
|
export * from './api/nodes-api';
|
|
16
16
|
export * from './api/organizations-api';
|
|
17
|
+
export * from './api/preview-api';
|
|
17
18
|
export * from './api/toolbox-api';
|
|
18
19
|
export * from './api/users-api';
|
|
19
20
|
export * from './api/workspace-api';
|
package/dist/api.js
CHANGED
|
@@ -32,6 +32,7 @@ __exportStar(require("./api/docker-registry-api"), exports);
|
|
|
32
32
|
__exportStar(require("./api/images-api"), exports);
|
|
33
33
|
__exportStar(require("./api/nodes-api"), exports);
|
|
34
34
|
__exportStar(require("./api/organizations-api"), exports);
|
|
35
|
+
__exportStar(require("./api/preview-api"), exports);
|
|
35
36
|
__exportStar(require("./api/toolbox-api"), exports);
|
|
36
37
|
__exportStar(require("./api/users-api"), exports);
|
|
37
38
|
__exportStar(require("./api/workspace-api"), exports);
|
package/dist/base.js
CHANGED
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
|
-
exports.BASE_PATH =
|
|
18
|
+
exports.BASE_PATH = 'http://localhost'.replace(/\/+$/, '');
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @export
|
|
22
22
|
*/
|
|
23
23
|
exports.COLLECTION_FORMATS = {
|
|
24
|
-
csv:
|
|
25
|
-
ssv:
|
|
26
|
-
tsv:
|
|
27
|
-
pipes:
|
|
24
|
+
csv: ',',
|
|
25
|
+
ssv: ' ',
|
|
26
|
+
tsv: '\t',
|
|
27
|
+
pipes: '|',
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
@@ -43,7 +43,6 @@ class BaseAPI {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.BaseAPI = BaseAPI;
|
|
46
|
-
;
|
|
47
46
|
/**
|
|
48
47
|
*
|
|
49
48
|
* @export
|
|
@@ -54,7 +53,7 @@ class RequiredError extends Error {
|
|
|
54
53
|
constructor(field, msg) {
|
|
55
54
|
super(msg);
|
|
56
55
|
this.field = field;
|
|
57
|
-
this.name =
|
|
56
|
+
this.name = 'RequiredError';
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
exports.RequiredError = RequiredError;
|
package/dist/common.d.ts
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { Configuration } from
|
|
13
|
-
import type { RequestArgs } from
|
|
12
|
+
import type { Configuration } from './configuration';
|
|
13
|
+
import type { RequestArgs } from './base';
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
62
62
|
*
|
|
63
63
|
* @export
|
|
64
64
|
*/
|
|
65
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -12,15 +12,6 @@
|
|
|
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
|
-
};
|
|
24
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
16
|
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
26
17
|
const base_1 = require("./base");
|
|
@@ -44,15 +35,11 @@ exports.assertParamExists = assertParamExists;
|
|
|
44
35
|
*
|
|
45
36
|
* @export
|
|
46
37
|
*/
|
|
47
|
-
const setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
: yield configuration.apiKey;
|
|
53
|
-
object[keyParamName] = localVarApiKeyValue;
|
|
54
|
-
}
|
|
55
|
-
});
|
|
38
|
+
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
|
+
if (configuration && configuration.apiKey) {
|
|
40
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function' ? await configuration.apiKey(keyParamName) : await configuration.apiKey;
|
|
41
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
42
|
+
}
|
|
56
43
|
};
|
|
57
44
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
58
45
|
/**
|
|
@@ -61,7 +48,7 @@ exports.setApiKeyToObject = setApiKeyToObject;
|
|
|
61
48
|
*/
|
|
62
49
|
const setBasicAuthToObject = function (object, configuration) {
|
|
63
50
|
if (configuration && (configuration.username || configuration.password)) {
|
|
64
|
-
object[
|
|
51
|
+
object['auth'] = { username: configuration.username, password: configuration.password };
|
|
65
52
|
}
|
|
66
53
|
};
|
|
67
54
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
@@ -69,41 +56,38 @@ exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
|
69
56
|
*
|
|
70
57
|
* @export
|
|
71
58
|
*/
|
|
72
|
-
const setBearerAuthToObject = function (object, configuration) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
});
|
|
59
|
+
const setBearerAuthToObject = async function (object, configuration) {
|
|
60
|
+
if (configuration && configuration.accessToken) {
|
|
61
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
62
|
+
? await configuration.accessToken()
|
|
63
|
+
: await configuration.accessToken;
|
|
64
|
+
object['Authorization'] = 'Bearer ' + accessToken;
|
|
65
|
+
}
|
|
81
66
|
};
|
|
82
67
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
83
68
|
/**
|
|
84
69
|
*
|
|
85
70
|
* @export
|
|
86
71
|
*/
|
|
87
|
-
const setOAuthToObject = function (object, name, scopes, configuration) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
});
|
|
72
|
+
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
73
|
+
if (configuration && configuration.accessToken) {
|
|
74
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
75
|
+
? await configuration.accessToken(name, scopes)
|
|
76
|
+
: await configuration.accessToken;
|
|
77
|
+
object['Authorization'] = 'Bearer ' + localVarAccessTokenValue;
|
|
78
|
+
}
|
|
96
79
|
};
|
|
97
80
|
exports.setOAuthToObject = setOAuthToObject;
|
|
98
|
-
function setFlattenedQueryParams(urlSearchParams, parameter, key =
|
|
81
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = '') {
|
|
99
82
|
if (parameter == null)
|
|
100
83
|
return;
|
|
101
|
-
if (typeof parameter ===
|
|
84
|
+
if (typeof parameter === 'object') {
|
|
102
85
|
if (Array.isArray(parameter)) {
|
|
103
|
-
|
|
86
|
+
;
|
|
87
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
104
88
|
}
|
|
105
89
|
else {
|
|
106
|
-
Object.keys(parameter).forEach(currentKey => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
90
|
+
Object.keys(parameter).forEach((currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`));
|
|
107
91
|
}
|
|
108
92
|
}
|
|
109
93
|
else {
|
|
@@ -134,9 +118,7 @@ const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
|
134
118
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
135
119
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
136
120
|
: nonString;
|
|
137
|
-
return needsSerialization
|
|
138
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
139
|
-
: (value || "");
|
|
121
|
+
return needsSerialization ? JSON.stringify(value !== undefined ? value : {}) : value || '';
|
|
140
122
|
};
|
|
141
123
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
142
124
|
/**
|
|
@@ -154,7 +136,7 @@ exports.toPathString = toPathString;
|
|
|
154
136
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
155
137
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
156
138
|
var _a;
|
|
157
|
-
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
|
|
139
|
+
const axiosRequestArgs = Object.assign(Object.assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : ((_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath)) + axiosArgs.url });
|
|
158
140
|
return axios.request(axiosRequestArgs);
|
|
159
141
|
};
|
|
160
142
|
};
|
package/dist/configuration.js
CHANGED
|
@@ -16,13 +16,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.Configuration = void 0;
|
|
17
17
|
class Configuration {
|
|
18
18
|
constructor(param = {}) {
|
|
19
|
+
var _a;
|
|
19
20
|
this.apiKey = param.apiKey;
|
|
20
21
|
this.username = param.username;
|
|
21
22
|
this.password = param.password;
|
|
22
23
|
this.accessToken = param.accessToken;
|
|
23
24
|
this.basePath = param.basePath;
|
|
24
25
|
this.serverIndex = param.serverIndex;
|
|
25
|
-
this.baseOptions = param.baseOptions;
|
|
26
|
+
this.baseOptions = Object.assign({ headers: Object.assign(Object.assign({}, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers), { 'User-Agent': 'OpenAPI-Generator/0.0.0-dev/typescript-axios' }) }, param.baseOptions);
|
|
26
27
|
this.formDataCtor = param.formDataCtor;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
@@ -11,19 +11,10 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
14
|
import globalAxios from 'axios';
|
|
24
15
|
// Some imports not used depending on template conditions
|
|
25
16
|
// @ts-ignore
|
|
26
|
-
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from '../common';
|
|
27
18
|
// @ts-ignore
|
|
28
19
|
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
20
|
/**
|
|
@@ -40,7 +31,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
40
31
|
* @param {*} [options] Override http request option.
|
|
41
32
|
* @throws {RequiredError}
|
|
42
33
|
*/
|
|
43
|
-
createApiKey:
|
|
34
|
+
createApiKey: async (createApiKey, xDaytonaOrganizationID, options = {}) => {
|
|
44
35
|
// verify required parameter 'createApiKey' is not null or undefined
|
|
45
36
|
assertParamExists('createApiKey', 'createApiKey', createApiKey);
|
|
46
37
|
const localVarPath = `/api-keys`;
|
|
@@ -53,13 +44,16 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
53
44
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
54
45
|
const localVarHeaderParameter = {};
|
|
55
46
|
const localVarQueryParameter = {};
|
|
47
|
+
// authentication bearer required
|
|
48
|
+
// http bearer authentication required
|
|
49
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
56
50
|
// authentication oauth2 required
|
|
57
51
|
// oauth required
|
|
58
|
-
|
|
52
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
53
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
59
54
|
if (xDaytonaOrganizationID != null) {
|
|
60
55
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
61
56
|
}
|
|
62
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
63
57
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
58
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
59
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -68,7 +62,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
68
62
|
url: toPathString(localVarUrlObj),
|
|
69
63
|
options: localVarRequestOptions,
|
|
70
64
|
};
|
|
71
|
-
}
|
|
65
|
+
},
|
|
72
66
|
/**
|
|
73
67
|
*
|
|
74
68
|
* @summary Delete API key
|
|
@@ -77,11 +71,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
77
71
|
* @param {*} [options] Override http request option.
|
|
78
72
|
* @throws {RequiredError}
|
|
79
73
|
*/
|
|
80
|
-
deleteApiKey:
|
|
74
|
+
deleteApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
81
75
|
// verify required parameter 'name' is not null or undefined
|
|
82
76
|
assertParamExists('deleteApiKey', 'name', name);
|
|
83
|
-
const localVarPath = `/api-keys/{name}`
|
|
84
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
77
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
85
78
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
79
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
87
80
|
let baseOptions;
|
|
@@ -91,9 +84,12 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
91
84
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
92
85
|
const localVarHeaderParameter = {};
|
|
93
86
|
const localVarQueryParameter = {};
|
|
87
|
+
// authentication bearer required
|
|
88
|
+
// http bearer authentication required
|
|
89
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
94
90
|
// authentication oauth2 required
|
|
95
91
|
// oauth required
|
|
96
|
-
|
|
92
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
97
93
|
if (xDaytonaOrganizationID != null) {
|
|
98
94
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
99
95
|
}
|
|
@@ -104,7 +100,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
104
100
|
url: toPathString(localVarUrlObj),
|
|
105
101
|
options: localVarRequestOptions,
|
|
106
102
|
};
|
|
107
|
-
}
|
|
103
|
+
},
|
|
108
104
|
/**
|
|
109
105
|
*
|
|
110
106
|
* @summary Get API key
|
|
@@ -113,11 +109,10 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
113
109
|
* @param {*} [options] Override http request option.
|
|
114
110
|
* @throws {RequiredError}
|
|
115
111
|
*/
|
|
116
|
-
getApiKey:
|
|
112
|
+
getApiKey: async (name, xDaytonaOrganizationID, options = {}) => {
|
|
117
113
|
// verify required parameter 'name' is not null or undefined
|
|
118
114
|
assertParamExists('getApiKey', 'name', name);
|
|
119
|
-
const localVarPath = `/api-keys/{name}`
|
|
120
|
-
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
115
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)));
|
|
121
116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
123
118
|
let baseOptions;
|
|
@@ -127,9 +122,12 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
127
122
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
128
123
|
const localVarHeaderParameter = {};
|
|
129
124
|
const localVarQueryParameter = {};
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
130
128
|
// authentication oauth2 required
|
|
131
129
|
// oauth required
|
|
132
|
-
|
|
130
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
133
131
|
if (xDaytonaOrganizationID != null) {
|
|
134
132
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
135
133
|
}
|
|
@@ -140,7 +138,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
140
138
|
url: toPathString(localVarUrlObj),
|
|
141
139
|
options: localVarRequestOptions,
|
|
142
140
|
};
|
|
143
|
-
}
|
|
141
|
+
},
|
|
144
142
|
/**
|
|
145
143
|
*
|
|
146
144
|
* @summary List API keys
|
|
@@ -148,7 +146,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
148
146
|
* @param {*} [options] Override http request option.
|
|
149
147
|
* @throws {RequiredError}
|
|
150
148
|
*/
|
|
151
|
-
listApiKeys:
|
|
149
|
+
listApiKeys: async (xDaytonaOrganizationID, options = {}) => {
|
|
152
150
|
const localVarPath = `/api-keys`;
|
|
153
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -159,9 +157,12 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
159
157
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
160
158
|
const localVarHeaderParameter = {};
|
|
161
159
|
const localVarQueryParameter = {};
|
|
160
|
+
// authentication bearer required
|
|
161
|
+
// http bearer authentication required
|
|
162
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
162
163
|
// authentication oauth2 required
|
|
163
164
|
// oauth required
|
|
164
|
-
|
|
165
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration);
|
|
165
166
|
if (xDaytonaOrganizationID != null) {
|
|
166
167
|
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
167
168
|
}
|
|
@@ -172,7 +173,7 @@ export const ApiKeysApiAxiosParamCreator = function (configuration) {
|
|
|
172
173
|
url: toPathString(localVarUrlObj),
|
|
173
174
|
options: localVarRequestOptions,
|
|
174
175
|
};
|
|
175
|
-
}
|
|
176
|
+
},
|
|
176
177
|
};
|
|
177
178
|
};
|
|
178
179
|
/**
|
|
@@ -190,14 +191,12 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
190
191
|
* @param {*} [options] Override http request option.
|
|
191
192
|
* @throws {RequiredError}
|
|
192
193
|
*/
|
|
193
|
-
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
200
|
-
});
|
|
194
|
+
async createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
195
|
+
var _a, _b, _c;
|
|
196
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(createApiKey, xDaytonaOrganizationID, options);
|
|
197
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
198
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
201
200
|
},
|
|
202
201
|
/**
|
|
203
202
|
*
|
|
@@ -207,14 +206,12 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
207
206
|
* @param {*} [options] Override http request option.
|
|
208
207
|
* @throws {RequiredError}
|
|
209
208
|
*/
|
|
210
|
-
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
217
|
-
});
|
|
209
|
+
async deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
210
|
+
var _a, _b, _c;
|
|
211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options);
|
|
212
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
213
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
214
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
218
215
|
},
|
|
219
216
|
/**
|
|
220
217
|
*
|
|
@@ -224,14 +221,12 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
224
221
|
* @param {*} [options] Override http request option.
|
|
225
222
|
* @throws {RequiredError}
|
|
226
223
|
*/
|
|
227
|
-
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
234
|
-
});
|
|
224
|
+
async getApiKey(name, xDaytonaOrganizationID, options) {
|
|
225
|
+
var _a, _b, _c;
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options);
|
|
227
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
228
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.getApiKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
229
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
235
230
|
},
|
|
236
231
|
/**
|
|
237
232
|
*
|
|
@@ -240,14 +235,12 @@ export const ApiKeysApiFp = function (configuration) {
|
|
|
240
235
|
* @param {*} [options] Override http request option.
|
|
241
236
|
* @throws {RequiredError}
|
|
242
237
|
*/
|
|
243
|
-
listApiKeys(xDaytonaOrganizationID, options) {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
250
|
-
});
|
|
238
|
+
async listApiKeys(xDaytonaOrganizationID, options) {
|
|
239
|
+
var _a, _b, _c;
|
|
240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options);
|
|
241
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
242
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApiKeysApi.listApiKeys']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
243
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
251
244
|
},
|
|
252
245
|
};
|
|
253
246
|
};
|
|
@@ -267,7 +260,9 @@ export const ApiKeysApiFactory = function (configuration, basePath, axios) {
|
|
|
267
260
|
* @throws {RequiredError}
|
|
268
261
|
*/
|
|
269
262
|
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
270
|
-
return localVarFp
|
|
263
|
+
return localVarFp
|
|
264
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
265
|
+
.then((request) => request(axios, basePath));
|
|
271
266
|
},
|
|
272
267
|
/**
|
|
273
268
|
*
|
|
@@ -320,7 +315,9 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
320
315
|
* @memberof ApiKeysApi
|
|
321
316
|
*/
|
|
322
317
|
createApiKey(createApiKey, xDaytonaOrganizationID, options) {
|
|
323
|
-
return ApiKeysApiFp(this.configuration)
|
|
318
|
+
return ApiKeysApiFp(this.configuration)
|
|
319
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
320
|
+
.then((request) => request(this.axios, this.basePath));
|
|
324
321
|
}
|
|
325
322
|
/**
|
|
326
323
|
*
|
|
@@ -332,7 +329,9 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
332
329
|
* @memberof ApiKeysApi
|
|
333
330
|
*/
|
|
334
331
|
deleteApiKey(name, xDaytonaOrganizationID, options) {
|
|
335
|
-
return ApiKeysApiFp(this.configuration)
|
|
332
|
+
return ApiKeysApiFp(this.configuration)
|
|
333
|
+
.deleteApiKey(name, xDaytonaOrganizationID, options)
|
|
334
|
+
.then((request) => request(this.axios, this.basePath));
|
|
336
335
|
}
|
|
337
336
|
/**
|
|
338
337
|
*
|
|
@@ -344,7 +343,9 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
344
343
|
* @memberof ApiKeysApi
|
|
345
344
|
*/
|
|
346
345
|
getApiKey(name, xDaytonaOrganizationID, options) {
|
|
347
|
-
return ApiKeysApiFp(this.configuration)
|
|
346
|
+
return ApiKeysApiFp(this.configuration)
|
|
347
|
+
.getApiKey(name, xDaytonaOrganizationID, options)
|
|
348
|
+
.then((request) => request(this.axios, this.basePath));
|
|
348
349
|
}
|
|
349
350
|
/**
|
|
350
351
|
*
|
|
@@ -355,6 +356,8 @@ export class ApiKeysApi extends BaseAPI {
|
|
|
355
356
|
* @memberof ApiKeysApi
|
|
356
357
|
*/
|
|
357
358
|
listApiKeys(xDaytonaOrganizationID, options) {
|
|
358
|
-
return ApiKeysApiFp(this.configuration)
|
|
359
|
+
return ApiKeysApiFp(this.configuration)
|
|
360
|
+
.listApiKeys(xDaytonaOrganizationID, options)
|
|
361
|
+
.then((request) => request(this.axios, this.basePath));
|
|
359
362
|
}
|
|
360
363
|
}
|