@daytonaio/api-client 0.103.0-rc.2 → 0.103.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/api-keys-api.d.ts +6 -6
- package/src/api/audit-api.d.ts +3 -3
- package/src/api/default-api.d.ts +7 -7
- package/src/api/docker-registry-api.d.ts +7 -7
- package/src/api/health-api.d.ts +1 -1
- package/src/api/object-storage-api.d.ts +1 -1
- package/src/api/organizations-api.d.ts +26 -26
- package/src/api/preview-api.d.ts +5 -5
- package/src/api/runners-api.d.ts +5 -5
- package/src/api/sandbox-api.d.ts +18 -18
- package/src/api/snapshots-api.d.ts +9 -9
- package/src/api/toolbox-api.d.ts +140 -60
- package/src/api/toolbox-api.js +158 -0
- package/src/api/toolbox-api.js.map +1 -1
- package/src/api/users-api.d.ts +9 -9
- package/src/api/volumes-api.d.ts +5 -5
- package/src/api/webhooks-api.d.ts +6 -6
- package/src/api/workspace-api.d.ts +14 -14
- package/src/models/index.d.ts +2 -0
- package/src/models/index.js +2 -0
- package/src/models/index.js.map +1 -1
- package/src/models/user-home-dir-response.d.ts +24 -0
- package/src/models/user-home-dir-response.js +4 -0
- package/src/models/user-home-dir-response.js.map +1 -0
- package/src/models/work-dir-response.d.ts +24 -0
- package/src/models/work-dir-response.js +4 -0
- package/src/models/work-dir-response.js.map +1 -0
package/src/api/toolbox-api.js
CHANGED
|
@@ -740,6 +740,7 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
740
740
|
* @param {string} sandboxId
|
|
741
741
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
742
742
|
* @param {*} [options] Override http request option.
|
|
743
|
+
* @deprecated
|
|
743
744
|
* @throws {RequiredError}
|
|
744
745
|
*/
|
|
745
746
|
getProjectDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
@@ -905,6 +906,42 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
905
906
|
options: localVarRequestOptions,
|
|
906
907
|
};
|
|
907
908
|
},
|
|
909
|
+
/**
|
|
910
|
+
*
|
|
911
|
+
* @summary Get sandbox user home dir
|
|
912
|
+
* @param {string} sandboxId
|
|
913
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
914
|
+
* @param {*} [options] Override http request option.
|
|
915
|
+
* @throws {RequiredError}
|
|
916
|
+
*/
|
|
917
|
+
getUserHomeDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
918
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
919
|
+
(0, common_1.assertParamExists)('getUserHomeDir', 'sandboxId', sandboxId);
|
|
920
|
+
const localVarPath = `/toolbox/{sandboxId}/toolbox/user-home-dir`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
922
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
923
|
+
let baseOptions;
|
|
924
|
+
if (configuration) {
|
|
925
|
+
baseOptions = configuration.baseOptions;
|
|
926
|
+
}
|
|
927
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
928
|
+
const localVarHeaderParameter = {};
|
|
929
|
+
const localVarQueryParameter = {};
|
|
930
|
+
// authentication bearer required
|
|
931
|
+
// http bearer authentication required
|
|
932
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
933
|
+
// authentication oauth2 required
|
|
934
|
+
if (xDaytonaOrganizationID != null) {
|
|
935
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
936
|
+
}
|
|
937
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
939
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
940
|
+
return {
|
|
941
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
942
|
+
options: localVarRequestOptions,
|
|
943
|
+
};
|
|
944
|
+
},
|
|
908
945
|
/**
|
|
909
946
|
* Get list of open windows
|
|
910
947
|
* @summary Get windows
|
|
@@ -941,6 +978,42 @@ const ToolboxApiAxiosParamCreator = function (configuration) {
|
|
|
941
978
|
options: localVarRequestOptions,
|
|
942
979
|
};
|
|
943
980
|
},
|
|
981
|
+
/**
|
|
982
|
+
*
|
|
983
|
+
* @summary Get sandbox work-dir
|
|
984
|
+
* @param {string} sandboxId
|
|
985
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
986
|
+
* @param {*} [options] Override http request option.
|
|
987
|
+
* @throws {RequiredError}
|
|
988
|
+
*/
|
|
989
|
+
getWorkDir: async (sandboxId, xDaytonaOrganizationID, options = {}) => {
|
|
990
|
+
// verify required parameter 'sandboxId' is not null or undefined
|
|
991
|
+
(0, common_1.assertParamExists)('getWorkDir', 'sandboxId', sandboxId);
|
|
992
|
+
const localVarPath = `/toolbox/{sandboxId}/toolbox/work-dir`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
|
|
993
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
994
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
995
|
+
let baseOptions;
|
|
996
|
+
if (configuration) {
|
|
997
|
+
baseOptions = configuration.baseOptions;
|
|
998
|
+
}
|
|
999
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1000
|
+
const localVarHeaderParameter = {};
|
|
1001
|
+
const localVarQueryParameter = {};
|
|
1002
|
+
// authentication bearer required
|
|
1003
|
+
// http bearer authentication required
|
|
1004
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1005
|
+
// authentication oauth2 required
|
|
1006
|
+
if (xDaytonaOrganizationID != null) {
|
|
1007
|
+
localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
|
|
1008
|
+
}
|
|
1009
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1010
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1011
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1012
|
+
return {
|
|
1013
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1014
|
+
options: localVarRequestOptions,
|
|
1015
|
+
};
|
|
1016
|
+
},
|
|
944
1017
|
/**
|
|
945
1018
|
* Add files to git commit
|
|
946
1019
|
* @summary Add files
|
|
@@ -2883,6 +2956,7 @@ const ToolboxApiFp = function (configuration) {
|
|
|
2883
2956
|
* @param {string} sandboxId
|
|
2884
2957
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
2885
2958
|
* @param {*} [options] Override http request option.
|
|
2959
|
+
* @deprecated
|
|
2886
2960
|
* @throws {RequiredError}
|
|
2887
2961
|
*/
|
|
2888
2962
|
async getProjectDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
@@ -2939,6 +3013,20 @@ const ToolboxApiFp = function (configuration) {
|
|
|
2939
3013
|
const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getSessionCommandLogs']?.[localVarOperationServerIndex]?.url;
|
|
2940
3014
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2941
3015
|
},
|
|
3016
|
+
/**
|
|
3017
|
+
*
|
|
3018
|
+
* @summary Get sandbox user home dir
|
|
3019
|
+
* @param {string} sandboxId
|
|
3020
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3021
|
+
* @param {*} [options] Override http request option.
|
|
3022
|
+
* @throws {RequiredError}
|
|
3023
|
+
*/
|
|
3024
|
+
async getUserHomeDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
3025
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserHomeDir(sandboxId, xDaytonaOrganizationID, options);
|
|
3026
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3027
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getUserHomeDir']?.[localVarOperationServerIndex]?.url;
|
|
3028
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3029
|
+
},
|
|
2942
3030
|
/**
|
|
2943
3031
|
* Get list of open windows
|
|
2944
3032
|
* @summary Get windows
|
|
@@ -2953,6 +3041,20 @@ const ToolboxApiFp = function (configuration) {
|
|
|
2953
3041
|
const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getWindows']?.[localVarOperationServerIndex]?.url;
|
|
2954
3042
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2955
3043
|
},
|
|
3044
|
+
/**
|
|
3045
|
+
*
|
|
3046
|
+
* @summary Get sandbox work-dir
|
|
3047
|
+
* @param {string} sandboxId
|
|
3048
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3049
|
+
* @param {*} [options] Override http request option.
|
|
3050
|
+
* @throws {RequiredError}
|
|
3051
|
+
*/
|
|
3052
|
+
async getWorkDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
3053
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWorkDir(sandboxId, xDaytonaOrganizationID, options);
|
|
3054
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3055
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ToolboxApi.getWorkDir']?.[localVarOperationServerIndex]?.url;
|
|
3056
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3057
|
+
},
|
|
2956
3058
|
/**
|
|
2957
3059
|
* Add files to git commit
|
|
2958
3060
|
* @summary Add files
|
|
@@ -3799,6 +3901,7 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
3799
3901
|
* @param {string} sandboxId
|
|
3800
3902
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3801
3903
|
* @param {*} [options] Override http request option.
|
|
3904
|
+
* @deprecated
|
|
3802
3905
|
* @throws {RequiredError}
|
|
3803
3906
|
*/
|
|
3804
3907
|
getProjectDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
@@ -3851,6 +3954,19 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
3851
3954
|
.getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
|
|
3852
3955
|
.then((request) => request(axios, basePath));
|
|
3853
3956
|
},
|
|
3957
|
+
/**
|
|
3958
|
+
*
|
|
3959
|
+
* @summary Get sandbox user home dir
|
|
3960
|
+
* @param {string} sandboxId
|
|
3961
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3962
|
+
* @param {*} [options] Override http request option.
|
|
3963
|
+
* @throws {RequiredError}
|
|
3964
|
+
*/
|
|
3965
|
+
getUserHomeDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
3966
|
+
return localVarFp
|
|
3967
|
+
.getUserHomeDir(sandboxId, xDaytonaOrganizationID, options)
|
|
3968
|
+
.then((request) => request(axios, basePath));
|
|
3969
|
+
},
|
|
3854
3970
|
/**
|
|
3855
3971
|
* Get list of open windows
|
|
3856
3972
|
* @summary Get windows
|
|
@@ -3864,6 +3980,19 @@ const ToolboxApiFactory = function (configuration, basePath, axios) {
|
|
|
3864
3980
|
.getWindows(sandboxId, xDaytonaOrganizationID, options)
|
|
3865
3981
|
.then((request) => request(axios, basePath));
|
|
3866
3982
|
},
|
|
3983
|
+
/**
|
|
3984
|
+
*
|
|
3985
|
+
* @summary Get sandbox work-dir
|
|
3986
|
+
* @param {string} sandboxId
|
|
3987
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
3988
|
+
* @param {*} [options] Override http request option.
|
|
3989
|
+
* @throws {RequiredError}
|
|
3990
|
+
*/
|
|
3991
|
+
getWorkDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
3992
|
+
return localVarFp
|
|
3993
|
+
.getWorkDir(sandboxId, xDaytonaOrganizationID, options)
|
|
3994
|
+
.then((request) => request(axios, basePath));
|
|
3995
|
+
},
|
|
3867
3996
|
/**
|
|
3868
3997
|
* Add files to git commit
|
|
3869
3998
|
* @summary Add files
|
|
@@ -4689,6 +4818,7 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
4689
4818
|
* @param {string} sandboxId
|
|
4690
4819
|
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
4691
4820
|
* @param {*} [options] Override http request option.
|
|
4821
|
+
* @deprecated
|
|
4692
4822
|
* @throws {RequiredError}
|
|
4693
4823
|
* @memberof ToolboxApi
|
|
4694
4824
|
*/
|
|
@@ -4745,6 +4875,20 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
4745
4875
|
.getSessionCommandLogs(sandboxId, sessionId, commandId, xDaytonaOrganizationID, follow, options)
|
|
4746
4876
|
.then((request) => request(this.axios, this.basePath));
|
|
4747
4877
|
}
|
|
4878
|
+
/**
|
|
4879
|
+
*
|
|
4880
|
+
* @summary Get sandbox user home dir
|
|
4881
|
+
* @param {string} sandboxId
|
|
4882
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
4883
|
+
* @param {*} [options] Override http request option.
|
|
4884
|
+
* @throws {RequiredError}
|
|
4885
|
+
* @memberof ToolboxApi
|
|
4886
|
+
*/
|
|
4887
|
+
getUserHomeDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
4888
|
+
return (0, exports.ToolboxApiFp)(this.configuration)
|
|
4889
|
+
.getUserHomeDir(sandboxId, xDaytonaOrganizationID, options)
|
|
4890
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4891
|
+
}
|
|
4748
4892
|
/**
|
|
4749
4893
|
* Get list of open windows
|
|
4750
4894
|
* @summary Get windows
|
|
@@ -4759,6 +4903,20 @@ class ToolboxApi extends base_1.BaseAPI {
|
|
|
4759
4903
|
.getWindows(sandboxId, xDaytonaOrganizationID, options)
|
|
4760
4904
|
.then((request) => request(this.axios, this.basePath));
|
|
4761
4905
|
}
|
|
4906
|
+
/**
|
|
4907
|
+
*
|
|
4908
|
+
* @summary Get sandbox work-dir
|
|
4909
|
+
* @param {string} sandboxId
|
|
4910
|
+
* @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
|
|
4911
|
+
* @param {*} [options] Override http request option.
|
|
4912
|
+
* @throws {RequiredError}
|
|
4913
|
+
* @memberof ToolboxApi
|
|
4914
|
+
*/
|
|
4915
|
+
getWorkDir(sandboxId, xDaytonaOrganizationID, options) {
|
|
4916
|
+
return (0, exports.ToolboxApiFp)(this.configuration)
|
|
4917
|
+
.getWorkDir(sandboxId, xDaytonaOrganizationID, options)
|
|
4918
|
+
.then((request) => request(this.axios, this.basePath));
|
|
4919
|
+
}
|
|
4762
4920
|
/**
|
|
4763
4921
|
* Add files to git commit
|
|
4764
4922
|
* @summary Add files
|