@daytonaio/api-client 0.26.0-rc.2 → 0.26.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daytonaio/api-client",
3
- "version": "0.26.0-rc.2",
3
+ "version": "0.26.0",
4
4
  "description": "OpenAPI client for @daytonaio/api-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Daytona
3
+ * Daytona AI platform API Docs
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: support@daytona.com
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
+ import type { HealthControllerCheck200Response } from '../models';
16
+ /**
17
+ * HealthApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const HealthApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ healthControllerCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * HealthApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const HealthApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ healthControllerCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthControllerCheck200Response>>;
39
+ };
40
+ /**
41
+ * HealthApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const HealthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ healthControllerCheck(options?: RawAxiosRequestConfig): AxiosPromise<HealthControllerCheck200Response>;
51
+ };
52
+ /**
53
+ * HealthApi - object-oriented interface
54
+ * @export
55
+ * @class HealthApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class HealthApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof HealthApi
64
+ */
65
+ healthControllerCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HealthControllerCheck200Response, any>>;
66
+ }
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Daytona
6
+ * Daytona AI platform API Docs
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: support@daytona.com
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.HealthApi = exports.HealthApiFactory = exports.HealthApiFp = exports.HealthApiAxiosParamCreator = void 0;
17
+ const axios_1 = require("axios");
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ const common_1 = require("../common");
21
+ // @ts-ignore
22
+ const base_1 = require("../base");
23
+ /**
24
+ * HealthApi - axios parameter creator
25
+ * @export
26
+ */
27
+ const HealthApiAxiosParamCreator = function (configuration) {
28
+ return {
29
+ /**
30
+ *
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ */
34
+ healthControllerCheck: async (options = {}) => {
35
+ const localVarPath = `/health`;
36
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
37
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
38
+ let baseOptions;
39
+ if (configuration) {
40
+ baseOptions = configuration.baseOptions;
41
+ }
42
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
43
+ const localVarHeaderParameter = {};
44
+ const localVarQueryParameter = {};
45
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
46
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
47
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
48
+ return {
49
+ url: (0, common_1.toPathString)(localVarUrlObj),
50
+ options: localVarRequestOptions,
51
+ };
52
+ },
53
+ };
54
+ };
55
+ exports.HealthApiAxiosParamCreator = HealthApiAxiosParamCreator;
56
+ /**
57
+ * HealthApi - functional programming interface
58
+ * @export
59
+ */
60
+ const HealthApiFp = function (configuration) {
61
+ const localVarAxiosParamCreator = (0, exports.HealthApiAxiosParamCreator)(configuration);
62
+ return {
63
+ /**
64
+ *
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ async healthControllerCheck(options) {
69
+ const localVarAxiosArgs = await localVarAxiosParamCreator.healthControllerCheck(options);
70
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
71
+ const localVarOperationServerBasePath = base_1.operationServerMap['HealthApi.healthControllerCheck']?.[localVarOperationServerIndex]?.url;
72
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
73
+ },
74
+ };
75
+ };
76
+ exports.HealthApiFp = HealthApiFp;
77
+ /**
78
+ * HealthApi - factory interface
79
+ * @export
80
+ */
81
+ const HealthApiFactory = function (configuration, basePath, axios) {
82
+ const localVarFp = (0, exports.HealthApiFp)(configuration);
83
+ return {
84
+ /**
85
+ *
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ healthControllerCheck(options) {
90
+ return localVarFp.healthControllerCheck(options).then((request) => request(axios, basePath));
91
+ },
92
+ };
93
+ };
94
+ exports.HealthApiFactory = HealthApiFactory;
95
+ /**
96
+ * HealthApi - object-oriented interface
97
+ * @export
98
+ * @class HealthApi
99
+ * @extends {BaseAPI}
100
+ */
101
+ class HealthApi extends base_1.BaseAPI {
102
+ /**
103
+ *
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ * @memberof HealthApi
107
+ */
108
+ healthControllerCheck(options) {
109
+ return (0, exports.HealthApiFp)(this.configuration)
110
+ .healthControllerCheck(options)
111
+ .then((request) => request(this.axios, this.basePath));
112
+ }
113
+ }
114
+ exports.HealthApi = HealthApi;
115
+ //# sourceMappingURL=health-api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health-api.js","sourceRoot":"","sources":["../../../../../libs/api-client/src/api/health-api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAIH,iCAA+B;AAC/B,yDAAyD;AACzD,aAAa;AACb,sCAWkB;AAClB,aAAa;AACb,kCAAqH;AAKrH;;;GAGG;AACI,MAAM,0BAA0B,GAAG,UAAU,aAA6B;IAC/E,OAAO;QACL;;;;WAIG;QACH,qBAAqB,EAAE,KAAK,EAAE,UAAiC,EAAE,EAAwB,EAAE;YACzF,MAAM,YAAY,GAAG,SAAS,CAAA;YAC9B,oFAAoF;YACpF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,YAAY,EAAE,uBAAc,CAAC,CAAA;YAC5D,IAAI,WAAW,CAAA;YACf,IAAI,aAAa,EAAE,CAAC;gBAClB,WAAW,GAAG,aAAa,CAAC,WAAW,CAAA;YACzC,CAAC;YAED,MAAM,sBAAsB,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,GAAG,OAAO,EAAE,CAAA;YAC5E,MAAM,uBAAuB,GAAG,EAAS,CAAA;YACzC,MAAM,sBAAsB,GAAG,EAAS,CAAA;YAExC,IAAA,wBAAe,EAAC,cAAc,EAAE,sBAAsB,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IAC7C,OAAO;QACL;;;;WAIG;QACH,qBAAqB,CAAC,OAA+B;YACnD,OAAO,UAAU,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAA;QAC9F,CAAC;KACF,CAAA;AACH,CAAC,CAAA;AAZY,QAAA,gBAAgB,oBAY5B;AAED;;;;;GAKG;AACH,MAAa,SAAU,SAAQ,cAAO;IACpC;;;;;OAKG;IACI,qBAAqB,CAAC,OAA+B;QAC1D,OAAO,IAAA,mBAAW,EAAC,IAAI,CAAC,aAAa,CAAC;aACnC,qBAAqB,CAAC,OAAO,CAAC;aAC9B,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC1D,CAAC;CACF;AAZD,8BAYC"}
@@ -62,7 +62,6 @@ import type { ReplaceResult } from '../models';
62
62
  import type { ScreenshotResponse } from '../models';
63
63
  import type { SearchFilesResponse } from '../models';
64
64
  import type { Session } from '../models';
65
- import type { SessionCommandLogsResponse } from '../models';
66
65
  import type { SessionExecuteRequest } from '../models';
67
66
  import type { SessionExecuteResponse } from '../models';
68
67
  import type { WindowsResponse } from '../models';
@@ -278,7 +277,7 @@ export declare const ToolboxApiAxiosParamCreator: (configuration?: Configuration
278
277
  * @param {string} sessionId
279
278
  * @param {string} commandId
280
279
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
281
- * @param {boolean} [follow] Whether to stream the logs
280
+ * @param {boolean} [follow]
282
281
  * @param {*} [options] Override http request option.
283
282
  * @throws {RequiredError}
284
283
  */
@@ -906,11 +905,11 @@ export declare const ToolboxApiFp: (configuration?: Configuration) => {
906
905
  * @param {string} sessionId
907
906
  * @param {string} commandId
908
907
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
909
- * @param {boolean} [follow] Whether to stream the logs
908
+ * @param {boolean} [follow]
910
909
  * @param {*} [options] Override http request option.
911
910
  * @throws {RequiredError}
912
911
  */
913
- getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionCommandLogsResponse>>;
912
+ getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
914
913
  /**
915
914
  * Get list of open windows
916
915
  * @summary Get windows
@@ -1534,11 +1533,11 @@ export declare const ToolboxApiFactory: (configuration?: Configuration, basePath
1534
1533
  * @param {string} sessionId
1535
1534
  * @param {string} commandId
1536
1535
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1537
- * @param {boolean} [follow] Whether to stream the logs
1536
+ * @param {boolean} [follow]
1538
1537
  * @param {*} [options] Override http request option.
1539
1538
  * @throws {RequiredError}
1540
1539
  */
1541
- getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<SessionCommandLogsResponse>;
1540
+ getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<string>;
1542
1541
  /**
1543
1542
  * Get list of open windows
1544
1543
  * @summary Get windows
@@ -2184,12 +2183,12 @@ export declare class ToolboxApi extends BaseAPI {
2184
2183
  * @param {string} sessionId
2185
2184
  * @param {string} commandId
2186
2185
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2187
- * @param {boolean} [follow] Whether to stream the logs
2186
+ * @param {boolean} [follow]
2188
2187
  * @param {*} [options] Override http request option.
2189
2188
  * @throws {RequiredError}
2190
2189
  * @memberof ToolboxApi
2191
2190
  */
2192
- getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionCommandLogsResponse, any>>;
2191
+ getSessionCommandLogs(sandboxId: string, sessionId: string, commandId: string, xDaytonaOrganizationID?: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any>>;
2193
2192
  /**
2194
2193
  * Get list of open windows
2195
2194
  * @summary Get windows
@@ -859,7 +859,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
859
859
  * @param {string} sessionId
860
860
  * @param {string} commandId
861
861
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
862
- * @param {boolean} [follow] Whether to stream the logs
862
+ * @param {boolean} [follow]
863
863
  * @param {*} [options] Override http request option.
864
864
  * @throws {RequiredError}
865
865
  */
@@ -2924,7 +2924,7 @@ const ToolboxApiFp = function (configuration) {
2924
2924
  * @param {string} sessionId
2925
2925
  * @param {string} commandId
2926
2926
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2927
- * @param {boolean} [follow] Whether to stream the logs
2927
+ * @param {boolean} [follow]
2928
2928
  * @param {*} [options] Override http request option.
2929
2929
  * @throws {RequiredError}
2930
2930
  */
@@ -3836,7 +3836,7 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
3836
3836
  * @param {string} sessionId
3837
3837
  * @param {string} commandId
3838
3838
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
3839
- * @param {boolean} [follow] Whether to stream the logs
3839
+ * @param {boolean} [follow]
3840
3840
  * @param {*} [options] Override http request option.
3841
3841
  * @throws {RequiredError}
3842
3842
  */
@@ -4728,7 +4728,7 @@ class ToolboxApi extends base_1.BaseAPI {
4728
4728
  * @param {string} sessionId
4729
4729
  * @param {string} commandId
4730
4730
  * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
4731
- * @param {boolean} [follow] Whether to stream the logs
4731
+ * @param {boolean} [follow]
4732
4732
  * @param {*} [options] Override http request option.
4733
4733
  * @throws {RequiredError}
4734
4734
  * @memberof ToolboxApi