@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/api/api-keys-api.ts
CHANGED
|
@@ -5,381 +5,469 @@
|
|
|
5
5
|
* Daytona Workspaces API Docs
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
import type {
|
|
17
|
-
import
|
|
18
|
-
import globalAxios from 'axios';
|
|
15
|
+
import type { Configuration } from '../configuration'
|
|
16
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'
|
|
17
|
+
import globalAxios from 'axios'
|
|
19
18
|
// Some imports not used depending on template conditions
|
|
20
19
|
// @ts-ignore
|
|
21
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
DUMMY_BASE_URL,
|
|
22
|
+
assertParamExists,
|
|
23
|
+
setApiKeyToObject,
|
|
24
|
+
setBasicAuthToObject,
|
|
25
|
+
setBearerAuthToObject,
|
|
26
|
+
setOAuthToObject,
|
|
27
|
+
setSearchParams,
|
|
28
|
+
serializeDataIfNeeded,
|
|
29
|
+
toPathString,
|
|
30
|
+
createRequestFunction,
|
|
31
|
+
} from '../common'
|
|
22
32
|
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
33
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'
|
|
24
34
|
// @ts-ignore
|
|
25
|
-
import type { ApiKeyList } from '../models'
|
|
35
|
+
import type { ApiKeyList } from '../models'
|
|
26
36
|
// @ts-ignore
|
|
27
|
-
import type { ApiKeyResponse } from '../models'
|
|
37
|
+
import type { ApiKeyResponse } from '../models'
|
|
28
38
|
// @ts-ignore
|
|
29
|
-
import type { CreateApiKey } from '../models'
|
|
39
|
+
import type { CreateApiKey } from '../models'
|
|
30
40
|
/**
|
|
31
41
|
* ApiKeysApi - axios parameter creator
|
|
32
42
|
* @export
|
|
33
43
|
*/
|
|
34
44
|
export const ApiKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
45
|
+
return {
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @summary Create API key
|
|
49
|
+
* @param {CreateApiKey} createApiKey
|
|
50
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
createApiKey: async (
|
|
55
|
+
createApiKey: CreateApiKey,
|
|
56
|
+
xDaytonaOrganizationID?: string,
|
|
57
|
+
options: RawAxiosRequestConfig = {},
|
|
58
|
+
): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'createApiKey' is not null or undefined
|
|
60
|
+
assertParamExists('createApiKey', 'createApiKey', createApiKey)
|
|
61
|
+
const localVarPath = `/api-keys`
|
|
62
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
63
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
64
|
+
let baseOptions
|
|
65
|
+
if (configuration) {
|
|
66
|
+
baseOptions = configuration.baseOptions
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
70
|
+
const localVarHeaderParameter = {} as any
|
|
71
|
+
const localVarQueryParameter = {} as any
|
|
72
|
+
|
|
73
|
+
// authentication bearer required
|
|
74
|
+
// http bearer authentication required
|
|
75
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
|
+
|
|
77
|
+
// authentication oauth2 required
|
|
78
|
+
// oauth required
|
|
79
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
80
|
+
|
|
81
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
82
|
+
|
|
83
|
+
if (xDaytonaOrganizationID != null) {
|
|
84
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
85
|
+
}
|
|
86
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
87
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
88
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
89
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createApiKey, localVarRequestOptions, configuration)
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Delete API key
|
|
99
|
+
* @param {string} name
|
|
100
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
deleteApiKey: async (
|
|
105
|
+
name: string,
|
|
106
|
+
xDaytonaOrganizationID?: string,
|
|
107
|
+
options: RawAxiosRequestConfig = {},
|
|
108
|
+
): Promise<RequestArgs> => {
|
|
109
|
+
// verify required parameter 'name' is not null or undefined
|
|
110
|
+
assertParamExists('deleteApiKey', 'name', name)
|
|
111
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
|
112
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
113
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
114
|
+
let baseOptions
|
|
115
|
+
if (configuration) {
|
|
116
|
+
baseOptions = configuration.baseOptions
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
120
|
+
const localVarHeaderParameter = {} as any
|
|
121
|
+
const localVarQueryParameter = {} as any
|
|
122
|
+
|
|
123
|
+
// authentication bearer required
|
|
124
|
+
// http bearer authentication required
|
|
125
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
|
+
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
// oauth required
|
|
129
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
130
|
+
|
|
131
|
+
if (xDaytonaOrganizationID != null) {
|
|
132
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
133
|
+
}
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
136
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @summary Get API key
|
|
146
|
+
* @param {string} name
|
|
147
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
getApiKey: async (
|
|
152
|
+
name: string,
|
|
153
|
+
xDaytonaOrganizationID?: string,
|
|
154
|
+
options: RawAxiosRequestConfig = {},
|
|
155
|
+
): Promise<RequestArgs> => {
|
|
156
|
+
// verify required parameter 'name' is not null or undefined
|
|
157
|
+
assertParamExists('getApiKey', 'name', name)
|
|
158
|
+
const localVarPath = `/api-keys/{name}`.replace(`{${'name'}}`, encodeURIComponent(String(name)))
|
|
159
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
161
|
+
let baseOptions
|
|
162
|
+
if (configuration) {
|
|
163
|
+
baseOptions = configuration.baseOptions
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
167
|
+
const localVarHeaderParameter = {} as any
|
|
168
|
+
const localVarQueryParameter = {} as any
|
|
169
|
+
|
|
170
|
+
// authentication bearer required
|
|
171
|
+
// http bearer authentication required
|
|
172
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
173
|
+
|
|
174
|
+
// authentication oauth2 required
|
|
175
|
+
// oauth required
|
|
176
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
177
|
+
|
|
178
|
+
if (xDaytonaOrganizationID != null) {
|
|
179
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
180
|
+
}
|
|
181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
183
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
url: toPathString(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @summary List API keys
|
|
193
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
*/
|
|
197
|
+
listApiKeys: async (xDaytonaOrganizationID?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
198
|
+
const localVarPath = `/api-keys`
|
|
199
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
200
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
201
|
+
let baseOptions
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options }
|
|
207
|
+
const localVarHeaderParameter = {} as any
|
|
208
|
+
const localVarQueryParameter = {} as any
|
|
209
|
+
|
|
210
|
+
// authentication bearer required
|
|
211
|
+
// http bearer authentication required
|
|
212
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
|
+
|
|
214
|
+
// authentication oauth2 required
|
|
215
|
+
// oauth required
|
|
216
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
217
|
+
|
|
218
|
+
if (xDaytonaOrganizationID != null) {
|
|
219
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
220
|
+
}
|
|
221
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
223
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
224
|
+
|
|
225
|
+
return {
|
|
226
|
+
url: toPathString(localVarUrlObj),
|
|
227
|
+
options: localVarRequestOptions,
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
}
|
|
231
|
+
}
|
|
208
232
|
|
|
209
233
|
/**
|
|
210
234
|
* ApiKeysApi - functional programming interface
|
|
211
235
|
* @export
|
|
212
236
|
*/
|
|
213
|
-
export const ApiKeysApiFp = function(configuration?: Configuration) {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
237
|
+
export const ApiKeysApiFp = function (configuration?: Configuration) {
|
|
238
|
+
const localVarAxiosParamCreator = ApiKeysApiAxiosParamCreator(configuration)
|
|
239
|
+
return {
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Create API key
|
|
243
|
+
* @param {CreateApiKey} createApiKey
|
|
244
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
async createApiKey(
|
|
249
|
+
createApiKey: CreateApiKey,
|
|
250
|
+
xDaytonaOrganizationID?: string,
|
|
251
|
+
options?: RawAxiosRequestConfig,
|
|
252
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyResponse>> {
|
|
253
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createApiKey(
|
|
254
|
+
createApiKey,
|
|
255
|
+
xDaytonaOrganizationID,
|
|
256
|
+
options,
|
|
257
|
+
)
|
|
258
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
259
|
+
const localVarOperationServerBasePath =
|
|
260
|
+
operationServerMap['ApiKeysApi.createApiKey']?.[localVarOperationServerIndex]?.url
|
|
261
|
+
return (axios, basePath) =>
|
|
262
|
+
createRequestFunction(
|
|
263
|
+
localVarAxiosArgs,
|
|
264
|
+
globalAxios,
|
|
265
|
+
BASE_PATH,
|
|
266
|
+
configuration,
|
|
267
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
268
|
+
},
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @summary Delete API key
|
|
272
|
+
* @param {string} name
|
|
273
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
async deleteApiKey(
|
|
278
|
+
name: string,
|
|
279
|
+
xDaytonaOrganizationID?: string,
|
|
280
|
+
options?: RawAxiosRequestConfig,
|
|
281
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(name, xDaytonaOrganizationID, options)
|
|
283
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
284
|
+
const localVarOperationServerBasePath =
|
|
285
|
+
operationServerMap['ApiKeysApi.deleteApiKey']?.[localVarOperationServerIndex]?.url
|
|
286
|
+
return (axios, basePath) =>
|
|
287
|
+
createRequestFunction(
|
|
288
|
+
localVarAxiosArgs,
|
|
289
|
+
globalAxios,
|
|
290
|
+
BASE_PATH,
|
|
291
|
+
configuration,
|
|
292
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
293
|
+
},
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @summary Get API key
|
|
297
|
+
* @param {string} name
|
|
298
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
async getApiKey(
|
|
303
|
+
name: string,
|
|
304
|
+
xDaytonaOrganizationID?: string,
|
|
305
|
+
options?: RawAxiosRequestConfig,
|
|
306
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyList>> {
|
|
307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(name, xDaytonaOrganizationID, options)
|
|
308
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
309
|
+
const localVarOperationServerBasePath =
|
|
310
|
+
operationServerMap['ApiKeysApi.getApiKey']?.[localVarOperationServerIndex]?.url
|
|
311
|
+
return (axios, basePath) =>
|
|
312
|
+
createRequestFunction(
|
|
313
|
+
localVarAxiosArgs,
|
|
314
|
+
globalAxios,
|
|
315
|
+
BASE_PATH,
|
|
316
|
+
configuration,
|
|
317
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @summary List API keys
|
|
322
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
async listApiKeys(
|
|
327
|
+
xDaytonaOrganizationID?: string,
|
|
328
|
+
options?: RawAxiosRequestConfig,
|
|
329
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyList>>> {
|
|
330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(xDaytonaOrganizationID, options)
|
|
331
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
332
|
+
const localVarOperationServerBasePath =
|
|
333
|
+
operationServerMap['ApiKeysApi.listApiKeys']?.[localVarOperationServerIndex]?.url
|
|
334
|
+
return (axios, basePath) =>
|
|
335
|
+
createRequestFunction(
|
|
336
|
+
localVarAxiosArgs,
|
|
337
|
+
globalAxios,
|
|
338
|
+
BASE_PATH,
|
|
339
|
+
configuration,
|
|
340
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
341
|
+
},
|
|
342
|
+
}
|
|
343
|
+
}
|
|
273
344
|
|
|
274
345
|
/**
|
|
275
346
|
* ApiKeysApi - factory interface
|
|
276
347
|
* @export
|
|
277
348
|
*/
|
|
278
349
|
export const ApiKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
*
|
|
283
|
-
* @summary Create API key
|
|
284
|
-
* @param {CreateApiKey} createApiKey
|
|
285
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
286
|
-
* @param {*} [options] Override http request option.
|
|
287
|
-
* @throws {RequiredError}
|
|
288
|
-
*/
|
|
289
|
-
createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyResponse> {
|
|
290
|
-
return localVarFp.createApiKey(createApiKey, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
291
|
-
},
|
|
292
|
-
/**
|
|
293
|
-
*
|
|
294
|
-
* @summary Delete API key
|
|
295
|
-
* @param {string} name
|
|
296
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
297
|
-
* @param {*} [options] Override http request option.
|
|
298
|
-
* @throws {RequiredError}
|
|
299
|
-
*/
|
|
300
|
-
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
301
|
-
return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
302
|
-
},
|
|
303
|
-
/**
|
|
304
|
-
*
|
|
305
|
-
* @summary Get API key
|
|
306
|
-
* @param {string} name
|
|
307
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
308
|
-
* @param {*} [options] Override http request option.
|
|
309
|
-
* @throws {RequiredError}
|
|
310
|
-
*/
|
|
311
|
-
getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyList> {
|
|
312
|
-
return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
313
|
-
},
|
|
314
|
-
/**
|
|
315
|
-
*
|
|
316
|
-
* @summary List API keys
|
|
317
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
318
|
-
* @param {*} [options] Override http request option.
|
|
319
|
-
* @throws {RequiredError}
|
|
320
|
-
*/
|
|
321
|
-
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>> {
|
|
322
|
-
return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
323
|
-
},
|
|
324
|
-
};
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* ApiKeysApi - object-oriented interface
|
|
329
|
-
* @export
|
|
330
|
-
* @class ApiKeysApi
|
|
331
|
-
* @extends {BaseAPI}
|
|
332
|
-
*/
|
|
333
|
-
export class ApiKeysApi extends BaseAPI {
|
|
350
|
+
const localVarFp = ApiKeysApiFp(configuration)
|
|
351
|
+
return {
|
|
334
352
|
/**
|
|
335
|
-
*
|
|
353
|
+
*
|
|
336
354
|
* @summary Create API key
|
|
337
|
-
* @param {CreateApiKey} createApiKey
|
|
355
|
+
* @param {CreateApiKey} createApiKey
|
|
338
356
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
339
357
|
* @param {*} [options] Override http request option.
|
|
340
358
|
* @throws {RequiredError}
|
|
341
|
-
* @memberof ApiKeysApi
|
|
342
359
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
360
|
+
createApiKey(
|
|
361
|
+
createApiKey: CreateApiKey,
|
|
362
|
+
xDaytonaOrganizationID?: string,
|
|
363
|
+
options?: RawAxiosRequestConfig,
|
|
364
|
+
): AxiosPromise<ApiKeyResponse> {
|
|
365
|
+
return localVarFp
|
|
366
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
367
|
+
.then((request) => request(axios, basePath))
|
|
368
|
+
},
|
|
347
369
|
/**
|
|
348
|
-
*
|
|
370
|
+
*
|
|
349
371
|
* @summary Delete API key
|
|
350
|
-
* @param {string} name
|
|
372
|
+
* @param {string} name
|
|
351
373
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
352
374
|
* @param {*} [options] Override http request option.
|
|
353
375
|
* @throws {RequiredError}
|
|
354
|
-
* @memberof ApiKeysApi
|
|
355
376
|
*/
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
}
|
|
359
|
-
|
|
377
|
+
deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
378
|
+
return localVarFp.deleteApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
379
|
+
},
|
|
360
380
|
/**
|
|
361
|
-
*
|
|
381
|
+
*
|
|
362
382
|
* @summary Get API key
|
|
363
|
-
* @param {string} name
|
|
383
|
+
* @param {string} name
|
|
364
384
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
365
385
|
* @param {*} [options] Override http request option.
|
|
366
386
|
* @throws {RequiredError}
|
|
367
|
-
* @memberof ApiKeysApi
|
|
368
387
|
*/
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
388
|
+
getApiKey(
|
|
389
|
+
name: string,
|
|
390
|
+
xDaytonaOrganizationID?: string,
|
|
391
|
+
options?: RawAxiosRequestConfig,
|
|
392
|
+
): AxiosPromise<ApiKeyList> {
|
|
393
|
+
return localVarFp.getApiKey(name, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
394
|
+
},
|
|
373
395
|
/**
|
|
374
|
-
*
|
|
396
|
+
*
|
|
375
397
|
* @summary List API keys
|
|
376
398
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
377
399
|
* @param {*} [options] Override http request option.
|
|
378
400
|
* @throws {RequiredError}
|
|
379
|
-
* @memberof ApiKeysApi
|
|
380
401
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
402
|
+
listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyList>> {
|
|
403
|
+
return localVarFp.listApiKeys(xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
404
|
+
},
|
|
405
|
+
}
|
|
384
406
|
}
|
|
385
407
|
|
|
408
|
+
/**
|
|
409
|
+
* ApiKeysApi - object-oriented interface
|
|
410
|
+
* @export
|
|
411
|
+
* @class ApiKeysApi
|
|
412
|
+
* @extends {BaseAPI}
|
|
413
|
+
*/
|
|
414
|
+
export class ApiKeysApi extends BaseAPI {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @summary Create API key
|
|
418
|
+
* @param {CreateApiKey} createApiKey
|
|
419
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
* @memberof ApiKeysApi
|
|
423
|
+
*/
|
|
424
|
+
public createApiKey(createApiKey: CreateApiKey, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
425
|
+
return ApiKeysApiFp(this.configuration)
|
|
426
|
+
.createApiKey(createApiKey, xDaytonaOrganizationID, options)
|
|
427
|
+
.then((request) => request(this.axios, this.basePath))
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @summary Delete API key
|
|
433
|
+
* @param {string} name
|
|
434
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
* @memberof ApiKeysApi
|
|
438
|
+
*/
|
|
439
|
+
public deleteApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
440
|
+
return ApiKeysApiFp(this.configuration)
|
|
441
|
+
.deleteApiKey(name, xDaytonaOrganizationID, options)
|
|
442
|
+
.then((request) => request(this.axios, this.basePath))
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
*
|
|
447
|
+
* @summary Get API key
|
|
448
|
+
* @param {string} name
|
|
449
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
450
|
+
* @param {*} [options] Override http request option.
|
|
451
|
+
* @throws {RequiredError}
|
|
452
|
+
* @memberof ApiKeysApi
|
|
453
|
+
*/
|
|
454
|
+
public getApiKey(name: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
455
|
+
return ApiKeysApiFp(this.configuration)
|
|
456
|
+
.getApiKey(name, xDaytonaOrganizationID, options)
|
|
457
|
+
.then((request) => request(this.axios, this.basePath))
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary List API keys
|
|
463
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof ApiKeysApi
|
|
467
|
+
*/
|
|
468
|
+
public listApiKeys(xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
469
|
+
return ApiKeysApiFp(this.configuration)
|
|
470
|
+
.listApiKeys(xDaytonaOrganizationID, options)
|
|
471
|
+
.then((request) => request(this.axios, this.basePath))
|
|
472
|
+
}
|
|
473
|
+
}
|