@daytonaio/toolbox-api-client 0.168.0 → 0.170.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/package.json +1 -1
- package/src/api/computer-use-api.d.ts +0 -34
- package/src/api/computer-use-api.js +28 -34
- package/src/api/computer-use-api.js.map +1 -1
- package/src/api/file-system-api.d.ts +0 -19
- package/src/api/file-system-api.js +8 -19
- package/src/api/file-system-api.js.map +1 -1
- package/src/api/git-api.d.ts +0 -17
- package/src/api/git-api.js +4 -17
- package/src/api/git-api.js.map +1 -1
- package/src/api/info-api.d.ts +0 -9
- package/src/api/info-api.js +3 -9
- package/src/api/info-api.js.map +1 -1
- package/src/api/interpreter-api.d.ts +0 -10
- package/src/api/interpreter-api.js +4 -10
- package/src/api/interpreter-api.js.map +1 -1
- package/src/api/lsp-api.d.ts +0 -13
- package/src/api/lsp-api.js +3 -13
- package/src/api/lsp-api.js.map +1 -1
- package/src/api/port-api.d.ts +0 -8
- package/src/api/port-api.js +2 -8
- package/src/api/port-api.js.map +1 -1
- package/src/api/process-api.d.ts +0 -24
- package/src/api/process-api.js +14 -24
- package/src/api/process-api.js.map +1 -1
- package/src/api/server-api.d.ts +0 -7
- package/src/api/server-api.js +1 -7
- package/src/api/server-api.js.map +1 -1
- package/src/base.d.ts +0 -24
- package/src/base.js +0 -19
- package/src/base.js.map +1 -1
- package/src/common.d.ts +4 -35
- package/src/common.js +16 -38
- package/src/common.js.map +1 -1
- package/src/configuration.d.ts +24 -17
- package/src/configuration.js +12 -18
- package/src/configuration.js.map +1 -1
- package/src/models/chart-element.d.ts +0 -90
- package/src/models/chart.d.ts +0 -65
- package/src/models/code-run-artifacts.d.ts +0 -10
- package/src/models/code-run-request.d.ts +0 -27
- package/src/models/code-run-response.d.ts +0 -20
- package/src/models/command.d.ts +0 -20
- package/src/models/completion-context.d.ts +0 -15
- package/src/models/completion-item.d.ts +0 -40
- package/src/models/completion-list.d.ts +0 -15
- package/src/models/computer-use-start-response.d.ts +0 -15
- package/src/models/computer-use-status-response.d.ts +0 -10
- package/src/models/computer-use-stop-response.d.ts +0 -15
- package/src/models/create-context-request.d.ts +0 -15
- package/src/models/create-session-request.d.ts +0 -10
- package/src/models/display-info-response.d.ts +0 -10
- package/src/models/display-info.d.ts +0 -35
- package/src/models/execute-request.d.ts +0 -16
- package/src/models/execute-response.d.ts +0 -15
- package/src/models/file-info.d.ts +0 -45
- package/src/models/file-status.d.ts +0 -25
- package/src/models/files-download-request.d.ts +0 -10
- package/src/models/git-add-request.d.ts +0 -12
- package/src/models/git-branch-request.d.ts +0 -15
- package/src/models/git-checkout-request.d.ts +0 -15
- package/src/models/git-clone-request.d.ts +0 -35
- package/src/models/git-commit-info.d.ts +0 -30
- package/src/models/git-commit-request.d.ts +0 -30
- package/src/models/git-commit-response.d.ts +0 -10
- package/src/models/git-delete-branch-request.d.ts +0 -15
- package/src/models/git-repo-request.d.ts +0 -20
- package/src/models/git-status.d.ts +0 -30
- package/src/models/initialize-request.d.ts +0 -10
- package/src/models/interpreter-context.d.ts +0 -30
- package/src/models/is-port-in-use-response.d.ts +0 -10
- package/src/models/keyboard-hotkey-request.d.ts +0 -7
- package/src/models/keyboard-press-request.d.ts +0 -12
- package/src/models/keyboard-type-request.d.ts +0 -12
- package/src/models/list-branch-response.d.ts +0 -10
- package/src/models/list-contexts-response.d.ts +0 -10
- package/src/models/list-recordings-response.d.ts +0 -10
- package/src/models/lsp-completion-params.d.ts +0 -30
- package/src/models/lsp-document-request.d.ts +0 -20
- package/src/models/lsp-location.d.ts +0 -15
- package/src/models/lsp-position.d.ts +0 -15
- package/src/models/lsp-range.d.ts +0 -15
- package/src/models/lsp-server-request.d.ts +0 -15
- package/src/models/lsp-symbol.d.ts +0 -20
- package/src/models/match.d.ts +0 -20
- package/src/models/mouse-click-request.d.ts +0 -22
- package/src/models/mouse-click-response.d.ts +0 -15
- package/src/models/mouse-drag-request.d.ts +0 -30
- package/src/models/mouse-drag-response.d.ts +0 -15
- package/src/models/mouse-move-request.d.ts +0 -15
- package/src/models/mouse-position-response.d.ts +0 -15
- package/src/models/mouse-scroll-request.d.ts +0 -22
- package/src/models/port-list.d.ts +0 -10
- package/src/models/position.d.ts +0 -15
- package/src/models/process-errors-response.d.ts +0 -15
- package/src/models/process-logs-response.d.ts +0 -15
- package/src/models/process-restart-response.d.ts +0 -15
- package/src/models/process-status-response.d.ts +0 -15
- package/src/models/process-status.d.ts +0 -25
- package/src/models/pty-create-request.d.ts +0 -32
- package/src/models/pty-create-response.d.ts +0 -10
- package/src/models/pty-list-response.d.ts +0 -10
- package/src/models/pty-resize-request.d.ts +0 -15
- package/src/models/pty-session-info.d.ts +0 -42
- package/src/models/recording.d.ts +0 -45
- package/src/models/replace-request.d.ts +0 -20
- package/src/models/replace-result.d.ts +0 -20
- package/src/models/screenshot-response.d.ts +0 -20
- package/src/models/scroll-response.d.ts +0 -10
- package/src/models/search-files-response.d.ts +0 -10
- package/src/models/session-command-logs-response.d.ts +0 -20
- package/src/models/session-execute-request.d.ts +0 -25
- package/src/models/session-execute-response.d.ts +0 -30
- package/src/models/session-send-input-request.d.ts +0 -10
- package/src/models/session.d.ts +0 -15
- package/src/models/start-recording-request.d.ts +0 -10
- package/src/models/status.d.ts +1 -5
- package/src/models/status.js +2 -6
- package/src/models/status.js.map +1 -1
- package/src/models/stop-recording-request.d.ts +0 -10
- package/src/models/user-home-dir-response.d.ts +0 -10
- package/src/models/window-info.d.ts +0 -40
- package/src/models/windows-response.d.ts +0 -10
- package/src/models/work-dir-response.d.ts +0 -10
package/src/api/server-api.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import { type RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import type { InitializeRequest } from '../models';
|
|
16
16
|
/**
|
|
17
17
|
* ServerApi - axios parameter creator
|
|
18
|
-
* @export
|
|
19
18
|
*/
|
|
20
19
|
export declare const ServerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
20
|
/**
|
|
@@ -29,7 +28,6 @@ export declare const ServerApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29
28
|
};
|
|
30
29
|
/**
|
|
31
30
|
* ServerApi - functional programming interface
|
|
32
|
-
* @export
|
|
33
31
|
*/
|
|
34
32
|
export declare const ServerApiFp: (configuration?: Configuration) => {
|
|
35
33
|
/**
|
|
@@ -45,7 +43,6 @@ export declare const ServerApiFp: (configuration?: Configuration) => {
|
|
|
45
43
|
};
|
|
46
44
|
/**
|
|
47
45
|
* ServerApi - factory interface
|
|
48
|
-
* @export
|
|
49
46
|
*/
|
|
50
47
|
export declare const ServerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
48
|
/**
|
|
@@ -61,9 +58,6 @@ export declare const ServerApiFactory: (configuration?: Configuration, basePath?
|
|
|
61
58
|
};
|
|
62
59
|
/**
|
|
63
60
|
* ServerApi - object-oriented interface
|
|
64
|
-
* @export
|
|
65
|
-
* @class ServerApi
|
|
66
|
-
* @extends {BaseAPI}
|
|
67
61
|
*/
|
|
68
62
|
export declare class ServerApi extends BaseAPI {
|
|
69
63
|
/**
|
|
@@ -72,7 +66,6 @@ export declare class ServerApi extends BaseAPI {
|
|
|
72
66
|
* @param {InitializeRequest} request Initialization request
|
|
73
67
|
* @param {*} [options] Override http request option.
|
|
74
68
|
* @throws {RequiredError}
|
|
75
|
-
* @memberof ServerApi
|
|
76
69
|
*/
|
|
77
70
|
initialize(request: InitializeRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<{
|
|
78
71
|
[key: string]: string;
|
package/src/api/server-api.js
CHANGED
|
@@ -22,7 +22,6 @@ const common_1 = require("../common");
|
|
|
22
22
|
const base_1 = require("../base");
|
|
23
23
|
/**
|
|
24
24
|
* ServerApi - axios parameter creator
|
|
25
|
-
* @export
|
|
26
25
|
*/
|
|
27
26
|
const ServerApiAxiosParamCreator = function (configuration) {
|
|
28
27
|
return {
|
|
@@ -47,6 +46,7 @@ const ServerApiAxiosParamCreator = function (configuration) {
|
|
|
47
46
|
const localVarHeaderParameter = {};
|
|
48
47
|
const localVarQueryParameter = {};
|
|
49
48
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
49
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
50
50
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
51
51
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
52
52
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -61,7 +61,6 @@ const ServerApiAxiosParamCreator = function (configuration) {
|
|
|
61
61
|
exports.ServerApiAxiosParamCreator = ServerApiAxiosParamCreator;
|
|
62
62
|
/**
|
|
63
63
|
* ServerApi - functional programming interface
|
|
64
|
-
* @export
|
|
65
64
|
*/
|
|
66
65
|
const ServerApiFp = function (configuration) {
|
|
67
66
|
const localVarAxiosParamCreator = (0, exports.ServerApiAxiosParamCreator)(configuration);
|
|
@@ -84,7 +83,6 @@ const ServerApiFp = function (configuration) {
|
|
|
84
83
|
exports.ServerApiFp = ServerApiFp;
|
|
85
84
|
/**
|
|
86
85
|
* ServerApi - factory interface
|
|
87
|
-
* @export
|
|
88
86
|
*/
|
|
89
87
|
const ServerApiFactory = function (configuration, basePath, axios) {
|
|
90
88
|
const localVarFp = (0, exports.ServerApiFp)(configuration);
|
|
@@ -104,9 +102,6 @@ const ServerApiFactory = function (configuration, basePath, axios) {
|
|
|
104
102
|
exports.ServerApiFactory = ServerApiFactory;
|
|
105
103
|
/**
|
|
106
104
|
* ServerApi - object-oriented interface
|
|
107
|
-
* @export
|
|
108
|
-
* @class ServerApi
|
|
109
|
-
* @extends {BaseAPI}
|
|
110
105
|
*/
|
|
111
106
|
class ServerApi extends base_1.BaseAPI {
|
|
112
107
|
/**
|
|
@@ -115,7 +110,6 @@ class ServerApi extends base_1.BaseAPI {
|
|
|
115
110
|
* @param {InitializeRequest} request Initialization request
|
|
116
111
|
* @param {*} [options] Override http request option.
|
|
117
112
|
* @throws {RequiredError}
|
|
118
|
-
* @memberof ServerApi
|
|
119
113
|
*/
|
|
120
114
|
initialize(request, options) {
|
|
121
115
|
return (0, exports.ServerApiFp)(this.configuration).initialize(request, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-api.js","sourceRoot":"","sources":["../../../../../libs/toolbox-api-client/src/api/server-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,
|
|
1
|
+
{"version":3,"file":"server-api.js","sourceRoot":"","sources":["../../../../../libs/toolbox-api-client/src/api/server-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAgC;AAChC,yDAAyD;AACzD,aAAa;AACb,sCAAkQ;AAClQ,aAAa;AACb,kCAAsH;AAGtH;;GAEG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC7E,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,KAAK,EAAE,OAA0B,EAAE,UAAiC,EAAE,EAAwB,EAAE;YACxG,+DAA+D;YAC/D,IAAA,0BAAiB,EAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAA;YACnD,MAAM,YAAY,GAAG,OAAO,CAAC;YAC7B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAC;YAC7D,IAAI,WAAW,CAAC;YAChB,IAAI,aAAa,EAAE,CAAC;gBAChB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC5C,CAAC;YAED,MAAM,sBAAsB,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,EAAC,CAAC;YAC7E,MAAM,uBAAuB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E,CAAC,IAAA,8BAAqB,EAAC,iBAAiB,EAAE,eAAW,EAAE,gBAAS,EAAE,aAAa,CAAC,CAAC,KAAK,EAAE,+BAA+B,IAAI,QAAQ,CAAC,CAAC;QACpK,CAAC;KACJ,CAAA;AACL,CAAC,CAAC;AAjBW,QAAA,WAAW,eAiBtB;AAEF;;GAEG;AACI,MAAM,gBAAgB,GAAG,UAAU,aAA6B,EAAE,QAAiB,EAAE,KAAqB;IAC7G,MAAM,UAAU,GAAG,IAAA,mBAAW,EAAC,aAAa,CAAC,CAAA;IAC7C,OAAO;QACH;;;;;;WAMG;QACH,UAAU,CAAC,OAA0B,EAAE,OAA+B;YAClE,OAAO,UAAU,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QAC/F,CAAC;KACJ,CAAC;AACN,CAAC,CAAC;AAdW,QAAA,gBAAgB,oBAc3B;AAEF;;GAEG;AACH,MAAa,SAAU,SAAQ,cAAO;IAClC;;;;;;OAMG;IACI,UAAU,CAAC,OAA0B,EAAE,OAA+B;QACzE,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9H,CAAC;CACJ;AAXD,8BAWC"}
|
package/src/base.d.ts
CHANGED
|
@@ -12,42 +12,22 @@
|
|
|
12
12
|
import type { Configuration } from './configuration';
|
|
13
13
|
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
export declare const BASE_PATH: string;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const COLLECTION_FORMATS: {
|
|
20
16
|
csv: string;
|
|
21
17
|
ssv: string;
|
|
22
18
|
tsv: string;
|
|
23
19
|
pipes: string;
|
|
24
20
|
};
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @export
|
|
28
|
-
* @interface RequestArgs
|
|
29
|
-
*/
|
|
30
21
|
export interface RequestArgs {
|
|
31
22
|
url: string;
|
|
32
23
|
options: RawAxiosRequestConfig;
|
|
33
24
|
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
* @class BaseAPI
|
|
38
|
-
*/
|
|
39
25
|
export declare class BaseAPI {
|
|
40
26
|
protected basePath: string;
|
|
41
27
|
protected axios: AxiosInstance;
|
|
42
28
|
protected configuration: Configuration | undefined;
|
|
43
29
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
30
|
}
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class RequiredError
|
|
49
|
-
* @extends {Error}
|
|
50
|
-
*/
|
|
51
31
|
export declare class RequiredError extends Error {
|
|
52
32
|
field: string;
|
|
53
33
|
constructor(field: string, msg?: string);
|
|
@@ -58,9 +38,5 @@ interface ServerMap {
|
|
|
58
38
|
description: string;
|
|
59
39
|
}[];
|
|
60
40
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
41
|
export declare const operationServerMap: ServerMap;
|
|
66
42
|
export {};
|
package/src/base.js
CHANGED
|
@@ -16,21 +16,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
17
17
|
const axios_1 = require("axios");
|
|
18
18
|
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
19
|
exports.COLLECTION_FORMATS = {
|
|
24
20
|
csv: ",",
|
|
25
21
|
ssv: " ",
|
|
26
22
|
tsv: "\t",
|
|
27
23
|
pipes: "|",
|
|
28
24
|
};
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @class BaseAPI
|
|
33
|
-
*/
|
|
34
25
|
class BaseAPI {
|
|
35
26
|
basePath;
|
|
36
27
|
axios;
|
|
@@ -46,12 +37,6 @@ class BaseAPI {
|
|
|
46
37
|
}
|
|
47
38
|
exports.BaseAPI = BaseAPI;
|
|
48
39
|
;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @export
|
|
52
|
-
* @class RequiredError
|
|
53
|
-
* @extends {Error}
|
|
54
|
-
*/
|
|
55
40
|
class RequiredError extends Error {
|
|
56
41
|
field;
|
|
57
42
|
constructor(field, msg) {
|
|
@@ -61,9 +46,5 @@ class RequiredError extends Error {
|
|
|
61
46
|
}
|
|
62
47
|
}
|
|
63
48
|
exports.RequiredError = RequiredError;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @export
|
|
67
|
-
*/
|
|
68
49
|
exports.operationServerMap = {};
|
|
69
50
|
//# sourceMappingURL=base.js.map
|
package/src/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAOH,iCAAgC;AAEnB,QAAA,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAOH,iCAAgC;AAEnB,QAAA,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEnD,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAOF,MAAa,OAAO;IAGqC;IAAwC;IAFnF,aAAa,CAA4B;IAEnD,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,QAAQ,CAAC;QACvD,CAAC;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF,MAAa,aAAc,SAAQ,KAAK;IACjB;IAAnB,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QAE5B,IAAI,CAAC,IAAI,GAAG,eAAe,CAAA;IAC/B,CAAC;CACJ;AALD,sCAKC;AASY,QAAA,kBAAkB,GAAc,EAC5C,CAAA"}
|
package/src/common.d.ts
CHANGED
|
@@ -12,54 +12,23 @@
|
|
|
12
12
|
import type { Configuration } from "./configuration";
|
|
13
13
|
import type { RequestArgs } from "./base";
|
|
14
14
|
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
*/
|
|
19
15
|
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
16
|
/**
|
|
21
17
|
*
|
|
22
18
|
* @throws {RequiredError}
|
|
23
|
-
* @export
|
|
24
19
|
*/
|
|
25
20
|
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
21
|
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
*/
|
|
35
22
|
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
23
|
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @export
|
|
44
|
-
*/
|
|
45
24
|
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @export
|
|
49
|
-
*/
|
|
50
25
|
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
26
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
27
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
28
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
29
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
54
30
|
*/
|
|
31
|
+
export declare const replaceWithSerializableTypeIfNeeded: (key: string, value: any) => any;
|
|
55
32
|
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @export
|
|
59
|
-
*/
|
|
60
33
|
export declare const toPathString: (url: URL) => string;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
*/
|
|
65
34
|
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/src/common.js
CHANGED
|
@@ -13,17 +13,12 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
16
|
+
exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.replaceWithSerializableTypeIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
17
17
|
const base_1 = require("./base");
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
18
|
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
23
19
|
/**
|
|
24
20
|
*
|
|
25
21
|
* @throws {RequiredError}
|
|
26
|
-
* @export
|
|
27
22
|
*/
|
|
28
23
|
const assertParamExists = function (functionName, paramName, paramValue) {
|
|
29
24
|
if (paramValue === null || paramValue === undefined) {
|
|
@@ -31,10 +26,6 @@ const assertParamExists = function (functionName, paramName, paramValue) {
|
|
|
31
26
|
}
|
|
32
27
|
};
|
|
33
28
|
exports.assertParamExists = assertParamExists;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @export
|
|
37
|
-
*/
|
|
38
29
|
const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
39
30
|
if (configuration && configuration.apiKey) {
|
|
40
31
|
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
@@ -44,20 +35,12 @@ const setApiKeyToObject = async function (object, keyParamName, configuration) {
|
|
|
44
35
|
}
|
|
45
36
|
};
|
|
46
37
|
exports.setApiKeyToObject = setApiKeyToObject;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
38
|
const setBasicAuthToObject = function (object, configuration) {
|
|
52
39
|
if (configuration && (configuration.username || configuration.password)) {
|
|
53
40
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
54
41
|
}
|
|
55
42
|
};
|
|
56
43
|
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @export
|
|
60
|
-
*/
|
|
61
44
|
const setBearerAuthToObject = async function (object, configuration) {
|
|
62
45
|
if (configuration && configuration.accessToken) {
|
|
63
46
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
@@ -67,10 +50,6 @@ const setBearerAuthToObject = async function (object, configuration) {
|
|
|
67
50
|
}
|
|
68
51
|
};
|
|
69
52
|
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @export
|
|
73
|
-
*/
|
|
74
53
|
const setOAuthToObject = async function (object, name, scopes, configuration) {
|
|
75
54
|
if (configuration && configuration.accessToken) {
|
|
76
55
|
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
@@ -84,7 +63,7 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
84
63
|
if (parameter == null)
|
|
85
64
|
return;
|
|
86
65
|
if (typeof parameter === "object") {
|
|
87
|
-
if (Array.isArray(parameter)) {
|
|
66
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
88
67
|
parameter.forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
89
68
|
}
|
|
90
69
|
else {
|
|
@@ -100,10 +79,6 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
|
100
79
|
}
|
|
101
80
|
}
|
|
102
81
|
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @export
|
|
106
|
-
*/
|
|
107
82
|
const setSearchParams = function (url, ...objects) {
|
|
108
83
|
const searchParams = new URLSearchParams(url.search);
|
|
109
84
|
setFlattenedQueryParams(searchParams, objects);
|
|
@@ -111,31 +86,34 @@ const setSearchParams = function (url, ...objects) {
|
|
|
111
86
|
};
|
|
112
87
|
exports.setSearchParams = setSearchParams;
|
|
113
88
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
89
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
90
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
91
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
116
92
|
*/
|
|
93
|
+
// @ts-ignore
|
|
94
|
+
const replaceWithSerializableTypeIfNeeded = function (key, value) {
|
|
95
|
+
if (value instanceof Set) {
|
|
96
|
+
return Array.from(value);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
exports.replaceWithSerializableTypeIfNeeded = replaceWithSerializableTypeIfNeeded;
|
|
117
103
|
const serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
118
104
|
const nonString = typeof value !== 'string';
|
|
119
105
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
120
106
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
121
107
|
: nonString;
|
|
122
108
|
return needsSerialization
|
|
123
|
-
? JSON.stringify(value !== undefined ? value : {})
|
|
109
|
+
? JSON.stringify(value !== undefined ? value : {}, exports.replaceWithSerializableTypeIfNeeded)
|
|
124
110
|
: (value || "");
|
|
125
111
|
};
|
|
126
112
|
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @export
|
|
130
|
-
*/
|
|
131
113
|
const toPathString = function (url) {
|
|
132
114
|
return url.pathname + url.search + url.hash;
|
|
133
115
|
};
|
|
134
116
|
exports.toPathString = toPathString;
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
117
|
const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
140
118
|
return (axios = globalAxios, basePath = BASE_PATH) => {
|
|
141
119
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
|
package/src/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/common.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAKH,iCAAuC;AAE1B,QAAA,cAAc,GAAG,qBAAqB,CAAA;AAEnD;;;GAGG;AACI,MAAM,iBAAiB,GAAG,UAAU,YAAoB,EAAE,SAAiB,EAAE,UAAmB;IACnG,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAClD,MAAM,IAAI,oBAAa,CAAC,SAAS,EAAE,sBAAsB,SAAS,uCAAuC,YAAY,GAAG,CAAC,CAAC;IAC9H,CAAC;AACL,CAAC,CAAA;AAJY,QAAA,iBAAiB,qBAI7B;AAEM,MAAM,iBAAiB,GAAG,KAAK,WAAW,MAAW,EAAE,YAAoB,EAAE,aAA6B;IAC7G,IAAI,aAAa,IAAI,aAAa,CAAC,MAAM,EAAE,CAAC;QACxC,MAAM,mBAAmB,GAAG,OAAO,aAAa,CAAC,MAAM,KAAK,UAAU;YAClE,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC,YAAY,CAAC;YAC1C,CAAC,CAAC,MAAM,aAAa,CAAC,MAAM,CAAC;QACjC,MAAM,CAAC,YAAY,CAAC,GAAG,mBAAmB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,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,QAAQ,IAAI,QAAQ,CAAC,GAAG,SAAS,CAAC,GAAG,EAAC,CAAC;QAC1I,OAAO,KAAK,CAAC,OAAO,CAAO,gBAAgB,CAAC,CAAC;IACjD,CAAC,CAAC;AACN,CAAC,CAAA;AALY,QAAA,qBAAqB,yBAKjC"}
|
package/src/configuration.d.ts
CHANGED
|
@@ -9,11 +9,23 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
interface AWSv4Configuration {
|
|
13
|
+
options?: {
|
|
14
|
+
region?: string;
|
|
15
|
+
service?: string;
|
|
16
|
+
};
|
|
17
|
+
credentials?: {
|
|
18
|
+
accessKeyId?: string;
|
|
19
|
+
secretAccessKey?: string;
|
|
20
|
+
sessionToken?: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
12
23
|
export interface ConfigurationParameters {
|
|
13
24
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
25
|
username?: string;
|
|
15
26
|
password?: string;
|
|
16
27
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
28
|
+
awsv4?: AWSv4Configuration;
|
|
17
29
|
basePath?: string;
|
|
18
30
|
serverIndex?: number;
|
|
19
31
|
baseOptions?: any;
|
|
@@ -23,49 +35,43 @@ export declare class Configuration {
|
|
|
23
35
|
/**
|
|
24
36
|
* parameter for apiKey security
|
|
25
37
|
* @param name security name
|
|
26
|
-
* @memberof Configuration
|
|
27
38
|
*/
|
|
28
39
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
29
40
|
/**
|
|
30
41
|
* parameter for basic security
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Configuration
|
|
34
42
|
*/
|
|
35
43
|
username?: string;
|
|
36
44
|
/**
|
|
37
45
|
* parameter for basic security
|
|
38
|
-
*
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof Configuration
|
|
41
46
|
*/
|
|
42
47
|
password?: string;
|
|
43
48
|
/**
|
|
44
49
|
* parameter for oauth2 security
|
|
45
50
|
* @param name security name
|
|
46
51
|
* @param scopes oauth2 scope
|
|
47
|
-
* @memberof Configuration
|
|
48
52
|
*/
|
|
49
53
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* @
|
|
55
|
+
* parameter for aws4 signature security
|
|
56
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
57
|
+
* @param {string} options.region - aws region
|
|
58
|
+
* @param {string} options.service - name of the service.
|
|
59
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
60
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
61
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
54
62
|
* @memberof Configuration
|
|
55
63
|
*/
|
|
64
|
+
awsv4?: AWSv4Configuration;
|
|
65
|
+
/**
|
|
66
|
+
* override base path
|
|
67
|
+
*/
|
|
56
68
|
basePath?: string;
|
|
57
69
|
/**
|
|
58
70
|
* override server index
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof Configuration
|
|
62
71
|
*/
|
|
63
72
|
serverIndex?: number;
|
|
64
73
|
/**
|
|
65
74
|
* base options for axios calls
|
|
66
|
-
*
|
|
67
|
-
* @type {any}
|
|
68
|
-
* @memberof Configuration
|
|
69
75
|
*/
|
|
70
76
|
baseOptions?: any;
|
|
71
77
|
/**
|
|
@@ -89,3 +95,4 @@ export declare class Configuration {
|
|
|
89
95
|
*/
|
|
90
96
|
isJsonMime(mime: string): boolean;
|
|
91
97
|
}
|
|
98
|
+
export {};
|
package/src/configuration.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
3
|
/**
|
|
5
4
|
* Daytona Toolbox API
|
|
6
5
|
* Daytona Toolbox API
|
|
@@ -19,49 +18,43 @@ class Configuration {
|
|
|
19
18
|
/**
|
|
20
19
|
* parameter for apiKey security
|
|
21
20
|
* @param name security name
|
|
22
|
-
* @memberof Configuration
|
|
23
21
|
*/
|
|
24
22
|
apiKey;
|
|
25
23
|
/**
|
|
26
24
|
* parameter for basic security
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof Configuration
|
|
30
25
|
*/
|
|
31
26
|
username;
|
|
32
27
|
/**
|
|
33
28
|
* parameter for basic security
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof Configuration
|
|
37
29
|
*/
|
|
38
30
|
password;
|
|
39
31
|
/**
|
|
40
32
|
* parameter for oauth2 security
|
|
41
33
|
* @param name security name
|
|
42
34
|
* @param scopes oauth2 scope
|
|
43
|
-
* @memberof Configuration
|
|
44
35
|
*/
|
|
45
36
|
accessToken;
|
|
46
37
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* @
|
|
38
|
+
* parameter for aws4 signature security
|
|
39
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
40
|
+
* @param {string} options.region - aws region
|
|
41
|
+
* @param {string} options.service - name of the service.
|
|
42
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
43
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
44
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
50
45
|
* @memberof Configuration
|
|
51
46
|
*/
|
|
47
|
+
awsv4;
|
|
48
|
+
/**
|
|
49
|
+
* override base path
|
|
50
|
+
*/
|
|
52
51
|
basePath;
|
|
53
52
|
/**
|
|
54
53
|
* override server index
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof Configuration
|
|
58
54
|
*/
|
|
59
55
|
serverIndex;
|
|
60
56
|
/**
|
|
61
57
|
* base options for axios calls
|
|
62
|
-
*
|
|
63
|
-
* @type {any}
|
|
64
|
-
* @memberof Configuration
|
|
65
58
|
*/
|
|
66
59
|
baseOptions;
|
|
67
60
|
/**
|
|
@@ -77,6 +70,7 @@ class Configuration {
|
|
|
77
70
|
this.username = param.username;
|
|
78
71
|
this.password = param.password;
|
|
79
72
|
this.accessToken = param.accessToken;
|
|
73
|
+
this.awsv4 = param.awsv4;
|
|
80
74
|
this.basePath = param.basePath;
|
|
81
75
|
this.serverIndex = param.serverIndex;
|
|
82
76
|
this.baseOptions = {
|
package/src/configuration.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../../libs/toolbox-api-client/src/configuration.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAEH,+CAA+C;AA0B/C,MAAa,aAAa;IACtB;;;OAGG;IACH,MAAM,CAA+F;IACrG;;OAEG;IACH,QAAQ,CAAU;IAClB;;OAEG;IACH,QAAQ,CAAU;IAClB;;;;OAIG;IACH,WAAW,CAAuI;IAClJ;;;;;;;;;OASG;IACH,KAAK,CAAsB;IAC3B;;OAEG;IACH,QAAQ,CAAU;IAClB;;OAEG;IACH,WAAW,CAAU;IACrB;;OAEG;IACH,WAAW,CAAO;IAClB;;;;;;OAMG;IACH,YAAY,CAAiB;IAE7B,YAAY,QAAiC,EAAE;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI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