@daytonaio/api-client 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +16 -1
- package/README.md +2 -2
- package/api/toolbox-api.ts +1149 -104
- package/api/users-api.ts +68 -0
- package/api/workspace-api.ts +78 -0
- package/api.ts +0 -1
- package/dist/api/toolbox-api.d.ts +473 -0
- package/dist/api/toolbox-api.js +967 -1
- package/dist/api/users-api.d.ts +30 -0
- package/dist/api/users-api.js +62 -0
- package/dist/api/workspace-api.d.ts +33 -0
- package/dist/api/workspace-api.js +73 -0
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/esm/api/toolbox-api.d.ts +473 -0
- package/dist/esm/api/toolbox-api.js +967 -1
- package/dist/esm/api/users-api.d.ts +30 -0
- package/dist/esm/api/users-api.js +62 -0
- package/dist/esm/api/workspace-api.d.ts +33 -0
- package/dist/esm/api/workspace-api.js +73 -0
- package/dist/esm/api.d.ts +0 -1
- package/dist/esm/api.js +0 -1
- package/dist/esm/models/command.d.ts +42 -0
- package/dist/esm/models/command.js +14 -0
- package/dist/esm/models/completion-context.d.ts +30 -0
- package/dist/esm/models/completion-context.js +14 -0
- package/dist/esm/models/completion-item.d.ts +60 -0
- package/dist/esm/models/completion-item.js +14 -0
- package/dist/esm/models/completion-list.d.ts +31 -0
- package/dist/esm/models/completion-list.js +14 -0
- package/dist/esm/models/create-session-request.d.ts +24 -0
- package/dist/esm/models/create-session-request.js +14 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/esm/models/lsp-completion-params.d.ts +50 -0
- package/dist/esm/models/lsp-completion-params.js +14 -0
- package/dist/esm/models/lsp-document-request.d.ts +36 -0
- package/dist/esm/models/lsp-document-request.js +14 -0
- package/dist/esm/models/lsp-location.d.ts +31 -0
- package/dist/esm/models/lsp-location.js +14 -0
- package/dist/esm/models/lsp-server-request.d.ts +30 -0
- package/dist/esm/models/lsp-server-request.js +14 -0
- package/dist/esm/models/lsp-symbol.d.ts +37 -0
- package/dist/esm/models/lsp-symbol.js +14 -0
- package/dist/esm/models/position.d.ts +30 -0
- package/dist/esm/models/position.js +14 -0
- package/dist/esm/models/range.d.ts +31 -0
- package/dist/esm/models/range.js +14 -0
- package/dist/esm/models/session-execute-request.d.ts +30 -0
- package/dist/esm/models/session-execute-request.js +14 -0
- package/dist/esm/models/session-execute-response.d.ts +36 -0
- package/dist/esm/models/session-execute-response.js +14 -0
- package/dist/esm/models/session.d.ts +31 -0
- package/dist/esm/models/session.js +14 -0
- package/dist/esm/models/usage-overview.d.ts +84 -0
- package/dist/esm/models/usage-overview.js +14 -0
- package/dist/models/command.d.ts +42 -0
- package/dist/models/command.js +15 -0
- package/dist/models/completion-context.d.ts +30 -0
- package/dist/models/completion-context.js +15 -0
- package/dist/models/completion-item.d.ts +60 -0
- package/dist/models/completion-item.js +15 -0
- package/dist/models/completion-list.d.ts +31 -0
- package/dist/models/completion-list.js +15 -0
- package/dist/models/create-session-request.d.ts +24 -0
- package/dist/models/create-session-request.js +15 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/dist/models/lsp-completion-params.d.ts +50 -0
- package/dist/models/lsp-completion-params.js +15 -0
- package/dist/models/lsp-document-request.d.ts +36 -0
- package/dist/models/lsp-document-request.js +15 -0
- package/dist/models/lsp-location.d.ts +31 -0
- package/dist/models/lsp-location.js +15 -0
- package/dist/models/lsp-server-request.d.ts +30 -0
- package/dist/models/lsp-server-request.js +15 -0
- package/dist/models/lsp-symbol.d.ts +37 -0
- package/dist/models/lsp-symbol.js +15 -0
- package/dist/models/position.d.ts +30 -0
- package/dist/models/position.js +15 -0
- package/dist/models/range.d.ts +31 -0
- package/dist/models/range.js +15 -0
- package/dist/models/session-execute-request.d.ts +30 -0
- package/dist/models/session-execute-request.js +15 -0
- package/dist/models/session-execute-response.d.ts +36 -0
- package/dist/models/session-execute-response.js +15 -0
- package/dist/models/session.d.ts +31 -0
- package/dist/models/session.js +15 -0
- package/dist/models/usage-overview.d.ts +84 -0
- package/dist/models/usage-overview.js +15 -0
- package/models/command.ts +48 -0
- package/models/completion-context.ts +36 -0
- package/models/completion-item.ts +66 -0
- package/models/completion-list.ts +39 -0
- package/models/create-session-request.ts +30 -0
- package/models/index.ts +16 -0
- package/models/lsp-completion-params.ts +60 -0
- package/models/lsp-document-request.ts +42 -0
- package/models/lsp-location.ts +39 -0
- package/models/lsp-server-request.ts +36 -0
- package/models/lsp-symbol.ts +45 -0
- package/models/position.ts +36 -0
- package/models/range.ts +39 -0
- package/models/session-execute-request.ts +36 -0
- package/models/session-execute-response.ts +42 -0
- package/models/session.ts +39 -0
- package/models/usage-overview.ts +90 -0
- package/package.json +1 -1
- package/api/app-api.ts +0 -118
- package/dist/api/app-api.d.ts +0 -65
- package/dist/api/app-api.js +0 -124
- package/dist/esm/api/app-api.d.ts +0 -65
- package/dist/esm/api/app-api.js +0 -117
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { LspLocation } from './lsp-location';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface LspSymbol
|
|
24
|
+
*/
|
|
25
|
+
export interface LspSymbol {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof LspSymbol
|
|
30
|
+
*/
|
|
31
|
+
'kind': number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {LspLocation}
|
|
35
|
+
* @memberof LspSymbol
|
|
36
|
+
*/
|
|
37
|
+
'location': LspLocation;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof LspSymbol
|
|
42
|
+
*/
|
|
43
|
+
'name': string;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Position
|
|
21
|
+
*/
|
|
22
|
+
export interface Position {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof Position
|
|
27
|
+
*/
|
|
28
|
+
'line': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof Position
|
|
33
|
+
*/
|
|
34
|
+
'character': number;
|
|
35
|
+
}
|
|
36
|
+
|
package/models/range.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { Position } from './position';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Range
|
|
24
|
+
*/
|
|
25
|
+
export interface Range {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Position}
|
|
29
|
+
* @memberof Range
|
|
30
|
+
*/
|
|
31
|
+
'start': Position;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Position}
|
|
35
|
+
* @memberof Range
|
|
36
|
+
*/
|
|
37
|
+
'end': Position;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SessionExecuteRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface SessionExecuteRequest {
|
|
23
|
+
/**
|
|
24
|
+
* The command to execute
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SessionExecuteRequest
|
|
27
|
+
*/
|
|
28
|
+
'command': string;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to execute the command asynchronously
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof SessionExecuteRequest
|
|
33
|
+
*/
|
|
34
|
+
'async'?: boolean;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SessionExecuteResponse
|
|
21
|
+
*/
|
|
22
|
+
export interface SessionExecuteResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the executed command
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SessionExecuteResponse
|
|
27
|
+
*/
|
|
28
|
+
'cmdId'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The output of the executed command
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof SessionExecuteResponse
|
|
33
|
+
*/
|
|
34
|
+
'output'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The exit code of the executed command
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof SessionExecuteResponse
|
|
39
|
+
*/
|
|
40
|
+
'exitCode'?: number;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { Command } from './command';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Session
|
|
24
|
+
*/
|
|
25
|
+
export interface Session {
|
|
26
|
+
/**
|
|
27
|
+
* The ID of the session
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Session
|
|
30
|
+
*/
|
|
31
|
+
'sessionId': string;
|
|
32
|
+
/**
|
|
33
|
+
* The list of commands executed in this session
|
|
34
|
+
* @type {Array<Command>}
|
|
35
|
+
* @memberof Session
|
|
36
|
+
*/
|
|
37
|
+
'commands': Array<Command>;
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Daytona Workspaces
|
|
5
|
+
* Daytona Workspaces API Docs
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface UsageOverview
|
|
21
|
+
*/
|
|
22
|
+
export interface UsageOverview {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof UsageOverview
|
|
27
|
+
*/
|
|
28
|
+
'totalCpuQuota': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof UsageOverview
|
|
33
|
+
*/
|
|
34
|
+
'totalGpuQuota': number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof UsageOverview
|
|
39
|
+
*/
|
|
40
|
+
'totalMemoryQuota': number;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof UsageOverview
|
|
45
|
+
*/
|
|
46
|
+
'totalDiskQuota': number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof UsageOverview
|
|
51
|
+
*/
|
|
52
|
+
'totalWorkspaceQuota': number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof UsageOverview
|
|
57
|
+
*/
|
|
58
|
+
'concurrentWorkspaceQuota': number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof UsageOverview
|
|
63
|
+
*/
|
|
64
|
+
'currentCpuUsage': number;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof UsageOverview
|
|
69
|
+
*/
|
|
70
|
+
'currentMemoryUsage': number;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof UsageOverview
|
|
75
|
+
*/
|
|
76
|
+
'currentDiskUsage': number;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof UsageOverview
|
|
81
|
+
*/
|
|
82
|
+
'currentWorkspaces': number;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof UsageOverview
|
|
87
|
+
*/
|
|
88
|
+
'concurrentWorkspaces': number;
|
|
89
|
+
}
|
|
90
|
+
|
package/package.json
CHANGED
package/api/app-api.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Daytona Workspaces
|
|
5
|
-
* Daytona Workspaces API Docs
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from '../configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
-
import globalAxios from 'axios';
|
|
19
|
-
// Some imports not used depending on template conditions
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
-
/**
|
|
25
|
-
* AppApi - axios parameter creator
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const AppApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
29
|
-
return {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {*} [options] Override http request option.
|
|
33
|
-
* @throws {RequiredError}
|
|
34
|
-
*/
|
|
35
|
-
appControllerGetHello: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36
|
-
const localVarPath = `/`;
|
|
37
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
39
|
-
let baseOptions;
|
|
40
|
-
if (configuration) {
|
|
41
|
-
baseOptions = configuration.baseOptions;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
45
|
-
const localVarHeaderParameter = {} as any;
|
|
46
|
-
const localVarQueryParameter = {} as any;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
51
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
53
|
-
|
|
54
|
-
return {
|
|
55
|
-
url: toPathString(localVarUrlObj),
|
|
56
|
-
options: localVarRequestOptions,
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* AppApi - functional programming interface
|
|
64
|
-
* @export
|
|
65
|
-
*/
|
|
66
|
-
export const AppApiFp = function(configuration?: Configuration) {
|
|
67
|
-
const localVarAxiosParamCreator = AppApiAxiosParamCreator(configuration)
|
|
68
|
-
return {
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @param {*} [options] Override http request option.
|
|
72
|
-
* @throws {RequiredError}
|
|
73
|
-
*/
|
|
74
|
-
async appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
75
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.appControllerGetHello(options);
|
|
76
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
77
|
-
const localVarOperationServerBasePath = operationServerMap['AppApi.appControllerGetHello']?.[localVarOperationServerIndex]?.url;
|
|
78
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
79
|
-
},
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* AppApi - factory interface
|
|
85
|
-
* @export
|
|
86
|
-
*/
|
|
87
|
-
export const AppApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
88
|
-
const localVarFp = AppApiFp(configuration)
|
|
89
|
-
return {
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
96
|
-
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
97
|
-
},
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* AppApi - object-oriented interface
|
|
103
|
-
* @export
|
|
104
|
-
* @class AppApi
|
|
105
|
-
* @extends {BaseAPI}
|
|
106
|
-
*/
|
|
107
|
-
export class AppApi extends BaseAPI {
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @param {*} [options] Override http request option.
|
|
111
|
-
* @throws {RequiredError}
|
|
112
|
-
* @memberof AppApi
|
|
113
|
-
*/
|
|
114
|
-
public appControllerGetHello(options?: RawAxiosRequestConfig) {
|
|
115
|
-
return AppApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
package/dist/api/app-api.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Daytona Workspaces
|
|
3
|
-
* Daytona Workspaces API Docs
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Configuration } from '../configuration';
|
|
13
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
/**
|
|
16
|
-
* AppApi - axios parameter creator
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
|
-
export declare const AppApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @param {*} [options] Override http request option.
|
|
23
|
-
* @throws {RequiredError}
|
|
24
|
-
*/
|
|
25
|
-
appControllerGetHello: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* AppApi - functional programming interface
|
|
29
|
-
* @export
|
|
30
|
-
*/
|
|
31
|
-
export declare const AppApiFp: (configuration?: Configuration) => {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param {*} [options] Override http request option.
|
|
35
|
-
* @throws {RequiredError}
|
|
36
|
-
*/
|
|
37
|
-
appControllerGetHello(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* AppApi - factory interface
|
|
41
|
-
* @export
|
|
42
|
-
*/
|
|
43
|
-
export declare const AppApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param {*} [options] Override http request option.
|
|
47
|
-
* @throws {RequiredError}
|
|
48
|
-
*/
|
|
49
|
-
appControllerGetHello(options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* AppApi - object-oriented interface
|
|
53
|
-
* @export
|
|
54
|
-
* @class AppApi
|
|
55
|
-
* @extends {BaseAPI}
|
|
56
|
-
*/
|
|
57
|
-
export declare class AppApi extends BaseAPI {
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @throws {RequiredError}
|
|
62
|
-
* @memberof AppApi
|
|
63
|
-
*/
|
|
64
|
-
appControllerGetHello(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
65
|
-
}
|
package/dist/api/app-api.js
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Daytona Workspaces
|
|
6
|
-
* Daytona Workspaces API Docs
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.AppApi = exports.AppApiFactory = exports.AppApiFp = exports.AppApiAxiosParamCreator = void 0;
|
|
26
|
-
const axios_1 = require("axios");
|
|
27
|
-
// Some imports not used depending on template conditions
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
const common_1 = require("../common");
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
const base_1 = require("../base");
|
|
32
|
-
/**
|
|
33
|
-
* AppApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
const AppApiAxiosParamCreator = function (configuration) {
|
|
37
|
-
return {
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @param {*} [options] Override http request option.
|
|
41
|
-
* @throws {RequiredError}
|
|
42
|
-
*/
|
|
43
|
-
appControllerGetHello: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
44
|
-
const localVarPath = `/`;
|
|
45
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
47
|
-
let baseOptions;
|
|
48
|
-
if (configuration) {
|
|
49
|
-
baseOptions = configuration.baseOptions;
|
|
50
|
-
}
|
|
51
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
52
|
-
const localVarHeaderParameter = {};
|
|
53
|
-
const localVarQueryParameter = {};
|
|
54
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
55
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
57
|
-
return {
|
|
58
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
59
|
-
options: localVarRequestOptions,
|
|
60
|
-
};
|
|
61
|
-
}),
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
exports.AppApiAxiosParamCreator = AppApiAxiosParamCreator;
|
|
65
|
-
/**
|
|
66
|
-
* AppApi - functional programming interface
|
|
67
|
-
* @export
|
|
68
|
-
*/
|
|
69
|
-
const AppApiFp = function (configuration) {
|
|
70
|
-
const localVarAxiosParamCreator = (0, exports.AppApiAxiosParamCreator)(configuration);
|
|
71
|
-
return {
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @param {*} [options] Override http request option.
|
|
75
|
-
* @throws {RequiredError}
|
|
76
|
-
*/
|
|
77
|
-
appControllerGetHello(options) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
var _a, _b, _c;
|
|
80
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.appControllerGetHello(options);
|
|
81
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
82
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AppApi.appControllerGetHello']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
83
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
exports.AppApiFp = AppApiFp;
|
|
89
|
-
/**
|
|
90
|
-
* AppApi - factory interface
|
|
91
|
-
* @export
|
|
92
|
-
*/
|
|
93
|
-
const AppApiFactory = function (configuration, basePath, axios) {
|
|
94
|
-
const localVarFp = (0, exports.AppApiFp)(configuration);
|
|
95
|
-
return {
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @param {*} [options] Override http request option.
|
|
99
|
-
* @throws {RequiredError}
|
|
100
|
-
*/
|
|
101
|
-
appControllerGetHello(options) {
|
|
102
|
-
return localVarFp.appControllerGetHello(options).then((request) => request(axios, basePath));
|
|
103
|
-
},
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
exports.AppApiFactory = AppApiFactory;
|
|
107
|
-
/**
|
|
108
|
-
* AppApi - object-oriented interface
|
|
109
|
-
* @export
|
|
110
|
-
* @class AppApi
|
|
111
|
-
* @extends {BaseAPI}
|
|
112
|
-
*/
|
|
113
|
-
class AppApi extends base_1.BaseAPI {
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @param {*} [options] Override http request option.
|
|
117
|
-
* @throws {RequiredError}
|
|
118
|
-
* @memberof AppApi
|
|
119
|
-
*/
|
|
120
|
-
appControllerGetHello(options) {
|
|
121
|
-
return (0, exports.AppApiFp)(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
exports.AppApi = AppApi;
|