@daytonaio/api-client 0.15.0 → 0.16.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 +3 -3
- package/.openapi-generator/VERSION +1 -1
- package/.openapi-generator-ignore +7 -0
- package/api/api-keys-api.ts +396 -324
- package/api/docker-registry-api.ts +703 -549
- package/api/images-api.ts +576 -346
- package/api/nodes-api.ts +250 -213
- package/api/organizations-api.ts +2203 -1671
- package/api/preview-api.ts +326 -0
- package/api/toolbox-api.ts +4507 -3186
- package/api/users-api.ts +317 -271
- package/api/workspace-api.ts +1482 -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 +54 -63
- package/dist/api/docker-registry-api.js +102 -107
- package/dist/api/images-api.d.ts +42 -0
- package/dist/api/images-api.js +146 -66
- package/dist/api/nodes-api.js +37 -47
- package/dist/api/organizations-api.js +341 -336
- package/dist/api/preview-api.d.ts +143 -0
- package/dist/api/preview-api.js +266 -0
- package/dist/api/toolbox-api.js +601 -569
- package/dist/api/users-api.js +49 -59
- package/dist/api/workspace-api.d.ts +50 -4
- package/dist/api/workspace-api.js +291 -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 +55 -64
- package/dist/esm/api/docker-registry-api.js +103 -108
- package/dist/esm/api/images-api.d.ts +42 -0
- package/dist/esm/api/images-api.js +147 -67
- package/dist/esm/api/nodes-api.js +38 -48
- package/dist/esm/api/organizations-api.js +342 -337
- package/dist/esm/api/preview-api.d.ts +143 -0
- package/dist/esm/api/preview-api.js +259 -0
- package/dist/esm/api/toolbox-api.js +602 -570
- package/dist/esm/api/users-api.js +50 -60
- package/dist/esm/api/workspace-api.d.ts +50 -4
- package/dist/esm/api/workspace-api.js +292 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- 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 +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/esm/models/organization-user.js +1 -1
- package/dist/esm/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/esm/models/workspace-labels.d.ts +1 -1
- package/dist/esm/models/workspace-state.d.ts +1 -1
- package/dist/esm/models/workspace-state.js +1 -1
- package/dist/esm/models/workspace.d.ts +19 -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 +8 -2
- 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 +12 -12
- 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 +16 -16
- 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 +20 -14
- package/dist/models/image-state.d.ts +1 -1
- package/dist/models/image-state.js +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-branch-response.d.ts +1 -1
- 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-user.d.ts +11 -11
- package/dist/models/organization-user.js +1 -1
- package/dist/models/organization.d.ts +8 -8
- 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 +3 -3
- package/dist/models/workspace-labels.d.ts +1 -1
- package/dist/models/workspace-state.d.ts +1 -1
- package/dist/models/workspace-state.js +1 -1
- package/dist/models/workspace.d.ts +19 -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 +74 -77
- package/models/create-session-request.ts +8 -11
- package/models/create-user.ts +39 -28
- package/models/create-workspace.ts +96 -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 +70 -68
- package/models/list-branch-response.ts +8 -11
- 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-user.ts +55 -58
- package/models/organization.ts +38 -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 +20 -23
- package/models/workspace-labels.ts +8 -11
- package/models/workspace-state.ts +19 -24
- package/models/workspace.ts +119 -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/images-api.ts
CHANGED
|
@@ -5,408 +5,638 @@
|
|
|
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 { CreateImage } from '../models'
|
|
35
|
+
import type { CreateImage } from '../models'
|
|
26
36
|
// @ts-ignore
|
|
27
|
-
import type { ImageDto } from '../models'
|
|
37
|
+
import type { ImageDto } from '../models'
|
|
28
38
|
// @ts-ignore
|
|
29
|
-
import type { PaginatedImagesDto } from '../models'
|
|
39
|
+
import type { PaginatedImagesDto } from '../models'
|
|
30
40
|
// @ts-ignore
|
|
31
|
-
import type {
|
|
41
|
+
import type { SetImageGeneralStatus } from '../models'
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
import type { ToggleState } from '../models'
|
|
32
44
|
/**
|
|
33
45
|
* ImagesApi - axios parameter creator
|
|
34
46
|
* @export
|
|
35
47
|
*/
|
|
36
48
|
export const ImagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
49
|
+
return {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary Create a new image
|
|
53
|
+
* @param {CreateImage} createImage
|
|
54
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
createImage: async (
|
|
59
|
+
createImage: CreateImage,
|
|
60
|
+
xDaytonaOrganizationID?: string,
|
|
61
|
+
options: RawAxiosRequestConfig = {},
|
|
62
|
+
): Promise<RequestArgs> => {
|
|
63
|
+
// verify required parameter 'createImage' is not null or undefined
|
|
64
|
+
assertParamExists('createImage', 'createImage', createImage)
|
|
65
|
+
const localVarPath = `/images`
|
|
66
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
67
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
68
|
+
let baseOptions
|
|
69
|
+
if (configuration) {
|
|
70
|
+
baseOptions = configuration.baseOptions
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options }
|
|
74
|
+
const localVarHeaderParameter = {} as any
|
|
75
|
+
const localVarQueryParameter = {} as any
|
|
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(createImage, localVarRequestOptions, configuration)
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
url: toPathString(localVarUrlObj),
|
|
93
|
+
options: localVarRequestOptions,
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary List all images
|
|
99
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
100
|
+
* @param {number} [limit] Number of items per page
|
|
101
|
+
* @param {number} [page] Page number
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
getAllImages: async (
|
|
106
|
+
xDaytonaOrganizationID?: string,
|
|
107
|
+
limit?: number,
|
|
108
|
+
page?: number,
|
|
109
|
+
options: RawAxiosRequestConfig = {},
|
|
110
|
+
): Promise<RequestArgs> => {
|
|
111
|
+
const localVarPath = `/images`
|
|
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: 'GET', ...baseOptions, ...options }
|
|
120
|
+
const localVarHeaderParameter = {} as any
|
|
121
|
+
const localVarQueryParameter = {} as any
|
|
122
|
+
|
|
123
|
+
// authentication oauth2 required
|
|
124
|
+
// oauth required
|
|
125
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
126
|
+
|
|
127
|
+
if (limit !== undefined) {
|
|
128
|
+
localVarQueryParameter['limit'] = limit
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (page !== undefined) {
|
|
132
|
+
localVarQueryParameter['page'] = page
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (xDaytonaOrganizationID != null) {
|
|
136
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
137
|
+
}
|
|
138
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
url: toPathString(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @summary Delete image
|
|
150
|
+
* @param {string} id Image ID
|
|
151
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
removeImage: async (
|
|
156
|
+
id: string,
|
|
157
|
+
xDaytonaOrganizationID?: string,
|
|
158
|
+
options: RawAxiosRequestConfig = {},
|
|
159
|
+
): Promise<RequestArgs> => {
|
|
160
|
+
// verify required parameter 'id' is not null or undefined
|
|
161
|
+
assertParamExists('removeImage', 'id', id)
|
|
162
|
+
const localVarPath = `/images/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
164
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
165
|
+
let baseOptions
|
|
166
|
+
if (configuration) {
|
|
167
|
+
baseOptions = configuration.baseOptions
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options }
|
|
171
|
+
const localVarHeaderParameter = {} as any
|
|
172
|
+
const localVarQueryParameter = {} as any
|
|
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 Set image general status
|
|
193
|
+
* @param {string} id Image ID
|
|
194
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
195
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
setImageGeneralStatus: async (
|
|
200
|
+
id: string,
|
|
201
|
+
setImageGeneralStatus: SetImageGeneralStatus,
|
|
202
|
+
xDaytonaOrganizationID?: string,
|
|
203
|
+
options: RawAxiosRequestConfig = {},
|
|
204
|
+
): Promise<RequestArgs> => {
|
|
205
|
+
// verify required parameter 'id' is not null or undefined
|
|
206
|
+
assertParamExists('setImageGeneralStatus', 'id', id)
|
|
207
|
+
// verify required parameter 'setImageGeneralStatus' is not null or undefined
|
|
208
|
+
assertParamExists('setImageGeneralStatus', 'setImageGeneralStatus', setImageGeneralStatus)
|
|
209
|
+
const localVarPath = `/images/{id}/general`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
212
|
+
let baseOptions
|
|
213
|
+
if (configuration) {
|
|
214
|
+
baseOptions = configuration.baseOptions
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
|
|
218
|
+
const localVarHeaderParameter = {} as any
|
|
219
|
+
const localVarQueryParameter = {} as any
|
|
220
|
+
|
|
221
|
+
// authentication oauth2 required
|
|
222
|
+
// oauth required
|
|
223
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
224
|
+
|
|
225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
226
|
+
|
|
227
|
+
if (xDaytonaOrganizationID != null) {
|
|
228
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
229
|
+
}
|
|
230
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
231
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
232
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
233
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setImageGeneralStatus, localVarRequestOptions, configuration)
|
|
234
|
+
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Toggle image state
|
|
243
|
+
* @param {string} id Image ID
|
|
244
|
+
* @param {ToggleState} toggleState
|
|
245
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
toggleImageState: async (
|
|
250
|
+
id: string,
|
|
251
|
+
toggleState: ToggleState,
|
|
252
|
+
xDaytonaOrganizationID?: string,
|
|
253
|
+
options: RawAxiosRequestConfig = {},
|
|
254
|
+
): Promise<RequestArgs> => {
|
|
255
|
+
// verify required parameter 'id' is not null or undefined
|
|
256
|
+
assertParamExists('toggleImageState', 'id', id)
|
|
257
|
+
// verify required parameter 'toggleState' is not null or undefined
|
|
258
|
+
assertParamExists('toggleImageState', 'toggleState', toggleState)
|
|
259
|
+
const localVarPath = `/images/{id}/toggle`.replace(`{${'id'}}`, encodeURIComponent(String(id)))
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
|
|
262
|
+
let baseOptions
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options }
|
|
268
|
+
const localVarHeaderParameter = {} as any
|
|
269
|
+
const localVarQueryParameter = {} as any
|
|
270
|
+
|
|
271
|
+
// authentication oauth2 required
|
|
272
|
+
// oauth required
|
|
273
|
+
await setOAuthToObject(localVarHeaderParameter, 'oauth2', ['openid', 'profile', 'email'], configuration)
|
|
274
|
+
|
|
275
|
+
localVarHeaderParameter['Content-Type'] = 'application/json'
|
|
276
|
+
|
|
277
|
+
if (xDaytonaOrganizationID != null) {
|
|
278
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID)
|
|
279
|
+
}
|
|
280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter)
|
|
281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
|
|
282
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
|
|
283
|
+
localVarRequestOptions.data = serializeDataIfNeeded(toggleState, localVarRequestOptions, configuration)
|
|
284
|
+
|
|
285
|
+
return {
|
|
286
|
+
url: toPathString(localVarUrlObj),
|
|
287
|
+
options: localVarRequestOptions,
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
}
|
|
291
|
+
}
|
|
226
292
|
|
|
227
293
|
/**
|
|
228
294
|
* ImagesApi - functional programming interface
|
|
229
295
|
* @export
|
|
230
296
|
*/
|
|
231
|
-
export const ImagesApiFp = function(configuration?: Configuration) {
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
297
|
+
export const ImagesApiFp = function (configuration?: Configuration) {
|
|
298
|
+
const localVarAxiosParamCreator = ImagesApiAxiosParamCreator(configuration)
|
|
299
|
+
return {
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary Create a new image
|
|
303
|
+
* @param {CreateImage} createImage
|
|
304
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
async createImage(
|
|
309
|
+
createImage: CreateImage,
|
|
310
|
+
xDaytonaOrganizationID?: string,
|
|
311
|
+
options?: RawAxiosRequestConfig,
|
|
312
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createImage(
|
|
314
|
+
createImage,
|
|
315
|
+
xDaytonaOrganizationID,
|
|
316
|
+
options,
|
|
317
|
+
)
|
|
318
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
319
|
+
const localVarOperationServerBasePath =
|
|
320
|
+
operationServerMap['ImagesApi.createImage']?.[localVarOperationServerIndex]?.url
|
|
321
|
+
return (axios, basePath) =>
|
|
322
|
+
createRequestFunction(
|
|
323
|
+
localVarAxiosArgs,
|
|
324
|
+
globalAxios,
|
|
325
|
+
BASE_PATH,
|
|
326
|
+
configuration,
|
|
327
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @summary List all images
|
|
332
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
333
|
+
* @param {number} [limit] Number of items per page
|
|
334
|
+
* @param {number} [page] Page number
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
async getAllImages(
|
|
339
|
+
xDaytonaOrganizationID?: string,
|
|
340
|
+
limit?: number,
|
|
341
|
+
page?: number,
|
|
342
|
+
options?: RawAxiosRequestConfig,
|
|
343
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedImagesDto>> {
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAllImages(
|
|
345
|
+
xDaytonaOrganizationID,
|
|
346
|
+
limit,
|
|
347
|
+
page,
|
|
348
|
+
options,
|
|
349
|
+
)
|
|
350
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
351
|
+
const localVarOperationServerBasePath =
|
|
352
|
+
operationServerMap['ImagesApi.getAllImages']?.[localVarOperationServerIndex]?.url
|
|
353
|
+
return (axios, basePath) =>
|
|
354
|
+
createRequestFunction(
|
|
355
|
+
localVarAxiosArgs,
|
|
356
|
+
globalAxios,
|
|
357
|
+
BASE_PATH,
|
|
358
|
+
configuration,
|
|
359
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
360
|
+
},
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Delete image
|
|
364
|
+
* @param {string} id Image ID
|
|
365
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
async removeImage(
|
|
370
|
+
id: string,
|
|
371
|
+
xDaytonaOrganizationID?: string,
|
|
372
|
+
options?: RawAxiosRequestConfig,
|
|
373
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
374
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeImage(id, xDaytonaOrganizationID, options)
|
|
375
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
376
|
+
const localVarOperationServerBasePath =
|
|
377
|
+
operationServerMap['ImagesApi.removeImage']?.[localVarOperationServerIndex]?.url
|
|
378
|
+
return (axios, basePath) =>
|
|
379
|
+
createRequestFunction(
|
|
380
|
+
localVarAxiosArgs,
|
|
381
|
+
globalAxios,
|
|
382
|
+
BASE_PATH,
|
|
383
|
+
configuration,
|
|
384
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
*
|
|
388
|
+
* @summary Set image general status
|
|
389
|
+
* @param {string} id Image ID
|
|
390
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
391
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
async setImageGeneralStatus(
|
|
396
|
+
id: string,
|
|
397
|
+
setImageGeneralStatus: SetImageGeneralStatus,
|
|
398
|
+
xDaytonaOrganizationID?: string,
|
|
399
|
+
options?: RawAxiosRequestConfig,
|
|
400
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setImageGeneralStatus(
|
|
402
|
+
id,
|
|
403
|
+
setImageGeneralStatus,
|
|
404
|
+
xDaytonaOrganizationID,
|
|
405
|
+
options,
|
|
406
|
+
)
|
|
407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
408
|
+
const localVarOperationServerBasePath =
|
|
409
|
+
operationServerMap['ImagesApi.setImageGeneralStatus']?.[localVarOperationServerIndex]?.url
|
|
410
|
+
return (axios, basePath) =>
|
|
411
|
+
createRequestFunction(
|
|
412
|
+
localVarAxiosArgs,
|
|
413
|
+
globalAxios,
|
|
414
|
+
BASE_PATH,
|
|
415
|
+
configuration,
|
|
416
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @summary Toggle image state
|
|
421
|
+
* @param {string} id Image ID
|
|
422
|
+
* @param {ToggleState} toggleState
|
|
423
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
async toggleImageState(
|
|
428
|
+
id: string,
|
|
429
|
+
toggleState: ToggleState,
|
|
430
|
+
xDaytonaOrganizationID?: string,
|
|
431
|
+
options?: RawAxiosRequestConfig,
|
|
432
|
+
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImageDto>> {
|
|
433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.toggleImageState(
|
|
434
|
+
id,
|
|
435
|
+
toggleState,
|
|
436
|
+
xDaytonaOrganizationID,
|
|
437
|
+
options,
|
|
438
|
+
)
|
|
439
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0
|
|
440
|
+
const localVarOperationServerBasePath =
|
|
441
|
+
operationServerMap['ImagesApi.toggleImageState']?.[localVarOperationServerIndex]?.url
|
|
442
|
+
return (axios, basePath) =>
|
|
443
|
+
createRequestFunction(
|
|
444
|
+
localVarAxiosArgs,
|
|
445
|
+
globalAxios,
|
|
446
|
+
BASE_PATH,
|
|
447
|
+
configuration,
|
|
448
|
+
)(axios, localVarOperationServerBasePath || basePath)
|
|
449
|
+
},
|
|
450
|
+
}
|
|
451
|
+
}
|
|
294
452
|
|
|
295
453
|
/**
|
|
296
454
|
* ImagesApi - factory interface
|
|
297
455
|
* @export
|
|
298
456
|
*/
|
|
299
457
|
export const ImagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
*
|
|
304
|
-
* @summary Create a new image
|
|
305
|
-
* @param {CreateImage} createImage
|
|
306
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
307
|
-
* @param {*} [options] Override http request option.
|
|
308
|
-
* @throws {RequiredError}
|
|
309
|
-
*/
|
|
310
|
-
createImage(createImage: CreateImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto> {
|
|
311
|
-
return localVarFp.createImage(createImage, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
312
|
-
},
|
|
313
|
-
/**
|
|
314
|
-
*
|
|
315
|
-
* @summary List all images
|
|
316
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
317
|
-
* @param {number} [limit] Number of items per page
|
|
318
|
-
* @param {number} [page] Page number
|
|
319
|
-
* @param {*} [options] Override http request option.
|
|
320
|
-
* @throws {RequiredError}
|
|
321
|
-
*/
|
|
322
|
-
getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedImagesDto> {
|
|
323
|
-
return localVarFp.getAllImages(xDaytonaOrganizationID, limit, page, options).then((request) => request(axios, basePath));
|
|
324
|
-
},
|
|
325
|
-
/**
|
|
326
|
-
*
|
|
327
|
-
* @summary Delete image
|
|
328
|
-
* @param {string} id Image ID
|
|
329
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
330
|
-
* @param {*} [options] Override http request option.
|
|
331
|
-
* @throws {RequiredError}
|
|
332
|
-
*/
|
|
333
|
-
removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
334
|
-
return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
335
|
-
},
|
|
336
|
-
/**
|
|
337
|
-
*
|
|
338
|
-
* @summary Toggle image state
|
|
339
|
-
* @param {string} id Image ID
|
|
340
|
-
* @param {ToggleState} toggleState
|
|
341
|
-
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
342
|
-
* @param {*} [options] Override http request option.
|
|
343
|
-
* @throws {RequiredError}
|
|
344
|
-
*/
|
|
345
|
-
toggleImageState(id: string, toggleState: ToggleState, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<ImageDto> {
|
|
346
|
-
return localVarFp.toggleImageState(id, toggleState, xDaytonaOrganizationID, options).then((request) => request(axios, basePath));
|
|
347
|
-
},
|
|
348
|
-
};
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* ImagesApi - object-oriented interface
|
|
353
|
-
* @export
|
|
354
|
-
* @class ImagesApi
|
|
355
|
-
* @extends {BaseAPI}
|
|
356
|
-
*/
|
|
357
|
-
export class ImagesApi extends BaseAPI {
|
|
458
|
+
const localVarFp = ImagesApiFp(configuration)
|
|
459
|
+
return {
|
|
358
460
|
/**
|
|
359
|
-
*
|
|
461
|
+
*
|
|
360
462
|
* @summary Create a new image
|
|
361
|
-
* @param {CreateImage} createImage
|
|
463
|
+
* @param {CreateImage} createImage
|
|
362
464
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
363
465
|
* @param {*} [options] Override http request option.
|
|
364
466
|
* @throws {RequiredError}
|
|
365
|
-
* @memberof ImagesApi
|
|
366
467
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
468
|
+
createImage(
|
|
469
|
+
createImage: CreateImage,
|
|
470
|
+
xDaytonaOrganizationID?: string,
|
|
471
|
+
options?: RawAxiosRequestConfig,
|
|
472
|
+
): AxiosPromise<ImageDto> {
|
|
473
|
+
return localVarFp
|
|
474
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
475
|
+
.then((request) => request(axios, basePath))
|
|
476
|
+
},
|
|
371
477
|
/**
|
|
372
|
-
*
|
|
478
|
+
*
|
|
373
479
|
* @summary List all images
|
|
374
480
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
375
481
|
* @param {number} [limit] Number of items per page
|
|
376
482
|
* @param {number} [page] Page number
|
|
377
483
|
* @param {*} [options] Override http request option.
|
|
378
484
|
* @throws {RequiredError}
|
|
379
|
-
* @memberof ImagesApi
|
|
380
485
|
*/
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
486
|
+
getAllImages(
|
|
487
|
+
xDaytonaOrganizationID?: string,
|
|
488
|
+
limit?: number,
|
|
489
|
+
page?: number,
|
|
490
|
+
options?: RawAxiosRequestConfig,
|
|
491
|
+
): AxiosPromise<PaginatedImagesDto> {
|
|
492
|
+
return localVarFp
|
|
493
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
494
|
+
.then((request) => request(axios, basePath))
|
|
495
|
+
},
|
|
385
496
|
/**
|
|
386
|
-
*
|
|
497
|
+
*
|
|
387
498
|
* @summary Delete image
|
|
388
499
|
* @param {string} id Image ID
|
|
389
500
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
390
501
|
* @param {*} [options] Override http request option.
|
|
391
502
|
* @throws {RequiredError}
|
|
392
|
-
* @memberof ImagesApi
|
|
393
503
|
*/
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
|
|
504
|
+
removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
505
|
+
return localVarFp.removeImage(id, xDaytonaOrganizationID, options).then((request) => request(axios, basePath))
|
|
506
|
+
},
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @summary Set image general status
|
|
510
|
+
* @param {string} id Image ID
|
|
511
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
512
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
setImageGeneralStatus(
|
|
517
|
+
id: string,
|
|
518
|
+
setImageGeneralStatus: SetImageGeneralStatus,
|
|
519
|
+
xDaytonaOrganizationID?: string,
|
|
520
|
+
options?: RawAxiosRequestConfig,
|
|
521
|
+
): AxiosPromise<ImageDto> {
|
|
522
|
+
return localVarFp
|
|
523
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
524
|
+
.then((request) => request(axios, basePath))
|
|
525
|
+
},
|
|
398
526
|
/**
|
|
399
|
-
*
|
|
527
|
+
*
|
|
400
528
|
* @summary Toggle image state
|
|
401
529
|
* @param {string} id Image ID
|
|
402
|
-
* @param {ToggleState} toggleState
|
|
530
|
+
* @param {ToggleState} toggleState
|
|
403
531
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
404
532
|
* @param {*} [options] Override http request option.
|
|
405
533
|
* @throws {RequiredError}
|
|
406
|
-
* @memberof ImagesApi
|
|
407
534
|
*/
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
535
|
+
toggleImageState(
|
|
536
|
+
id: string,
|
|
537
|
+
toggleState: ToggleState,
|
|
538
|
+
xDaytonaOrganizationID?: string,
|
|
539
|
+
options?: RawAxiosRequestConfig,
|
|
540
|
+
): AxiosPromise<ImageDto> {
|
|
541
|
+
return localVarFp
|
|
542
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
543
|
+
.then((request) => request(axios, basePath))
|
|
544
|
+
},
|
|
545
|
+
}
|
|
411
546
|
}
|
|
412
547
|
|
|
548
|
+
/**
|
|
549
|
+
* ImagesApi - object-oriented interface
|
|
550
|
+
* @export
|
|
551
|
+
* @class ImagesApi
|
|
552
|
+
* @extends {BaseAPI}
|
|
553
|
+
*/
|
|
554
|
+
export class ImagesApi extends BaseAPI {
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @summary Create a new image
|
|
558
|
+
* @param {CreateImage} createImage
|
|
559
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
* @memberof ImagesApi
|
|
563
|
+
*/
|
|
564
|
+
public createImage(createImage: CreateImage, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
565
|
+
return ImagesApiFp(this.configuration)
|
|
566
|
+
.createImage(createImage, xDaytonaOrganizationID, options)
|
|
567
|
+
.then((request) => request(this.axios, this.basePath))
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
* @summary List all images
|
|
573
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
574
|
+
* @param {number} [limit] Number of items per page
|
|
575
|
+
* @param {number} [page] Page number
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
* @memberof ImagesApi
|
|
579
|
+
*/
|
|
580
|
+
public getAllImages(xDaytonaOrganizationID?: string, limit?: number, page?: number, options?: RawAxiosRequestConfig) {
|
|
581
|
+
return ImagesApiFp(this.configuration)
|
|
582
|
+
.getAllImages(xDaytonaOrganizationID, limit, page, options)
|
|
583
|
+
.then((request) => request(this.axios, this.basePath))
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @summary Delete image
|
|
589
|
+
* @param {string} id Image ID
|
|
590
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
* @memberof ImagesApi
|
|
594
|
+
*/
|
|
595
|
+
public removeImage(id: string, xDaytonaOrganizationID?: string, options?: RawAxiosRequestConfig) {
|
|
596
|
+
return ImagesApiFp(this.configuration)
|
|
597
|
+
.removeImage(id, xDaytonaOrganizationID, options)
|
|
598
|
+
.then((request) => request(this.axios, this.basePath))
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @summary Set image general status
|
|
604
|
+
* @param {string} id Image ID
|
|
605
|
+
* @param {SetImageGeneralStatus} setImageGeneralStatus
|
|
606
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
* @memberof ImagesApi
|
|
610
|
+
*/
|
|
611
|
+
public setImageGeneralStatus(
|
|
612
|
+
id: string,
|
|
613
|
+
setImageGeneralStatus: SetImageGeneralStatus,
|
|
614
|
+
xDaytonaOrganizationID?: string,
|
|
615
|
+
options?: RawAxiosRequestConfig,
|
|
616
|
+
) {
|
|
617
|
+
return ImagesApiFp(this.configuration)
|
|
618
|
+
.setImageGeneralStatus(id, setImageGeneralStatus, xDaytonaOrganizationID, options)
|
|
619
|
+
.then((request) => request(this.axios, this.basePath))
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @summary Toggle image state
|
|
625
|
+
* @param {string} id Image ID
|
|
626
|
+
* @param {ToggleState} toggleState
|
|
627
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
* @memberof ImagesApi
|
|
631
|
+
*/
|
|
632
|
+
public toggleImageState(
|
|
633
|
+
id: string,
|
|
634
|
+
toggleState: ToggleState,
|
|
635
|
+
xDaytonaOrganizationID?: string,
|
|
636
|
+
options?: RawAxiosRequestConfig,
|
|
637
|
+
) {
|
|
638
|
+
return ImagesApiFp(this.configuration)
|
|
639
|
+
.toggleImageState(id, toggleState, xDaytonaOrganizationID, options)
|
|
640
|
+
.then((request) => request(this.axios, this.basePath))
|
|
641
|
+
}
|
|
642
|
+
}
|