@orangefox-recovery/foxinternalclient 5.3.0 → 5.3.3
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 +54 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +199 -28
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +10 -5
- package/dist/apis/FoxFactoryApi.d.ts +1 -1
- package/dist/apis/FoxFactoryApi.js +27 -11
- package/dist/apis/GitlabApi.d.ts +1 -1
- package/dist/apis/GitlabApi.js +4 -2
- package/dist/apis/InternalApi.d.ts +25 -1
- package/dist/apis/InternalApi.js +98 -21
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +6 -3
- package/dist/apis/ReleaseApi.d.ts +1 -1
- package/dist/apis/ReleaseApi.js +11 -5
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +3 -2
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +10 -5
- package/dist/esm/apis/FoxFactoryApi.d.ts +1 -1
- package/dist/esm/apis/FoxFactoryApi.js +27 -11
- package/dist/esm/apis/GitlabApi.d.ts +1 -1
- package/dist/esm/apis/GitlabApi.js +4 -2
- package/dist/esm/apis/InternalApi.d.ts +25 -1
- package/dist/esm/apis/InternalApi.js +98 -21
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +6 -3
- package/dist/esm/apis/ReleaseApi.d.ts +1 -1
- package/dist/esm/apis/ReleaseApi.js +11 -5
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +3 -2
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/esm/models/BuildStatusEnum.d.ts +1 -1
- package/dist/esm/models/BuildStatusEnum.js +1 -1
- package/dist/esm/models/BuildTaskResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskResponse.js +3 -3
- package/dist/esm/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskShortResponse.js +3 -3
- package/dist/esm/models/DeviceInternalResponse.d.ts +14 -2
- package/dist/esm/models/DeviceInternalResponse.js +5 -1
- package/dist/esm/models/DeviceResponse.d.ts +14 -2
- package/dist/esm/models/DeviceResponse.js +5 -1
- package/dist/esm/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/esm/models/DeviceStatsResponse.js +1 -1
- package/dist/esm/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/esm/models/DeviceUpdateBody.js +1 -1
- package/dist/esm/models/FFStatusEnum.d.ts +1 -1
- package/dist/esm/models/FFStatusEnum.js +1 -1
- package/dist/esm/models/FFStatusResponse.d.ts +1 -1
- package/dist/esm/models/FFStatusResponse.js +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/esm/models/HTTPValidationError.d.ts +1 -1
- package/dist/esm/models/HTTPValidationError.js +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseStr.d.ts +1 -1
- package/dist/esm/models/ListResponseStr.js +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.js +1 -1
- package/dist/esm/models/LogListResponse.d.ts +1 -1
- package/dist/esm/models/LogListResponse.js +1 -1
- package/dist/esm/models/LogResponse.d.ts +1 -1
- package/dist/esm/models/LogResponse.js +2 -2
- package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
- package/dist/esm/models/MaintainerShortModel.js +1 -1
- package/dist/esm/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/esm/models/NewBuildTaskBody.js +1 -1
- package/dist/esm/models/NewDeviceBody.d.ts +1 -1
- package/dist/esm/models/NewDeviceBody.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteOutput.d.ts +1 -1
- package/dist/esm/models/PasteOutput.js +2 -2
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
- package/dist/esm/models/ReleaseInternalResponse.d.ts +13 -1
- package/dist/esm/models/ReleaseInternalResponse.js +7 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/esm/models/ReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ReleaseResponse.js +7 -1
- package/dist/esm/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseStatsResponse.js +1 -1
- package/dist/esm/models/ReleaseType.d.ts +1 -1
- package/dist/esm/models/ReleaseType.js +1 -1
- package/dist/esm/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/esm/models/ReleaseUpdateBody.js +1 -1
- package/dist/esm/models/ReleasesSort.d.ts +1 -1
- package/dist/esm/models/ReleasesSort.js +1 -1
- package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
- package/dist/esm/models/ResponseGetReleases.js +1 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +14 -2
- package/dist/esm/models/ShortDeviceResponse.js +5 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ShortReleaseResponse.js +7 -1
- package/dist/esm/models/TaskUpdateBody.d.ts +1 -1
- package/dist/esm/models/TaskUpdateBody.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UserGitlab.d.ts +1 -1
- package/dist/esm/models/UserGitlab.js +1 -1
- package/dist/esm/models/UserInternalResponse.d.ts +1 -1
- package/dist/esm/models/UserInternalResponse.js +1 -1
- package/dist/esm/models/UserMail.d.ts +1 -1
- package/dist/esm/models/UserMail.js +1 -1
- package/dist/esm/models/UserShortResponse.d.ts +1 -1
- package/dist/esm/models/UserShortResponse.js +1 -1
- package/dist/esm/models/UserTelegram.d.ts +1 -1
- package/dist/esm/models/UserTelegram.js +1 -1
- package/dist/esm/models/UserUpdateBody.d.ts +1 -1
- package/dist/esm/models/UserUpdateBody.js +1 -1
- package/dist/esm/models/ValidationError.d.ts +1 -1
- package/dist/esm/models/ValidationError.js +1 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/esm/models/ValidationErrorLocInner.js +1 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/models/BuildStatusEnum.d.ts +1 -1
- package/dist/models/BuildStatusEnum.js +1 -1
- package/dist/models/BuildTaskResponse.d.ts +1 -1
- package/dist/models/BuildTaskResponse.js +3 -3
- package/dist/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/models/BuildTaskShortResponse.js +3 -3
- package/dist/models/DeviceInternalResponse.d.ts +14 -2
- package/dist/models/DeviceInternalResponse.js +5 -1
- package/dist/models/DeviceResponse.d.ts +14 -2
- package/dist/models/DeviceResponse.js +5 -1
- package/dist/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/models/DeviceStatsResponse.js +1 -1
- package/dist/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/models/DeviceUpdateBody.js +1 -1
- package/dist/models/FFStatusEnum.d.ts +1 -1
- package/dist/models/FFStatusEnum.js +1 -1
- package/dist/models/FFStatusResponse.d.ts +1 -1
- package/dist/models/FFStatusResponse.js +1 -1
- package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/models/HTTPValidationError.d.ts +1 -1
- package/dist/models/HTTPValidationError.js +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/models/ListResponseStr.d.ts +1 -1
- package/dist/models/ListResponseStr.js +1 -1
- package/dist/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/models/ListResponseUserShortResponse.js +1 -1
- package/dist/models/LogListResponse.d.ts +1 -1
- package/dist/models/LogListResponse.js +1 -1
- package/dist/models/LogResponse.d.ts +1 -1
- package/dist/models/LogResponse.js +2 -2
- package/dist/models/MaintainerShortModel.d.ts +1 -1
- package/dist/models/MaintainerShortModel.js +1 -1
- package/dist/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/models/NewBuildTaskBody.js +1 -1
- package/dist/models/NewDeviceBody.d.ts +1 -1
- package/dist/models/NewDeviceBody.js +1 -1
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteOutput.d.ts +1 -1
- package/dist/models/PasteOutput.js +2 -2
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -1
- package/dist/models/ReleaseInternalResponse.d.ts +13 -1
- package/dist/models/ReleaseInternalResponse.js +7 -1
- package/dist/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +13 -1
- package/dist/models/ReleaseResponse.js +7 -1
- package/dist/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/models/ReleaseStatsResponse.js +1 -1
- package/dist/models/ReleaseType.d.ts +1 -1
- package/dist/models/ReleaseType.js +1 -1
- package/dist/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/models/ReleaseUpdateBody.js +1 -1
- package/dist/models/ReleasesSort.d.ts +1 -1
- package/dist/models/ReleasesSort.js +1 -1
- package/dist/models/ResponseGetReleases.d.ts +1 -1
- package/dist/models/ResponseGetReleases.js +1 -1
- package/dist/models/ShortDeviceResponse.d.ts +14 -2
- package/dist/models/ShortDeviceResponse.js +5 -1
- package/dist/models/ShortReleaseResponse.d.ts +13 -1
- package/dist/models/ShortReleaseResponse.js +7 -1
- package/dist/models/TaskUpdateBody.d.ts +1 -1
- package/dist/models/TaskUpdateBody.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UserGitlab.d.ts +1 -1
- package/dist/models/UserGitlab.js +1 -1
- package/dist/models/UserInternalResponse.d.ts +1 -1
- package/dist/models/UserInternalResponse.js +1 -1
- package/dist/models/UserMail.d.ts +1 -1
- package/dist/models/UserMail.js +1 -1
- package/dist/models/UserShortResponse.d.ts +1 -1
- package/dist/models/UserShortResponse.js +1 -1
- package/dist/models/UserTelegram.d.ts +1 -1
- package/dist/models/UserTelegram.js +1 -1
- package/dist/models/UserUpdateBody.d.ts +1 -1
- package/dist/models/UserUpdateBody.js +1 -1
- package/dist/models/ValidationError.d.ts +1 -1
- package/dist/models/ValidationError.js +1 -1
- package/dist/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/models/ValidationErrorLocInner.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/BodyChangePasswordProfileChangePasswordPost.md +36 -0
- package/docs/BuildStatusEnum.md +32 -0
- package/docs/BuildTaskResponse.md +56 -0
- package/docs/BuildTaskShortResponse.md +52 -0
- package/docs/DeviceApi.md +315 -0
- package/docs/DeviceInternalResponse.md +64 -0
- package/docs/DeviceResponse.md +60 -0
- package/docs/DeviceStatsResponse.md +38 -0
- package/docs/DeviceUpdateBody.md +44 -0
- package/docs/FFStatusEnum.md +32 -0
- package/docs/FFStatusResponse.md +34 -0
- package/docs/FoxFactoryApi.md +758 -0
- package/docs/GitlabApi.md +78 -0
- package/docs/GlobalStatsAggregationModel.md +40 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/InternalApi.md +1608 -0
- package/docs/ListResponseBuildTaskShortResponse.md +36 -0
- package/docs/ListResponseReleaseResponse.md +36 -0
- package/docs/ListResponseShortDeviceResponse.md +36 -0
- package/docs/ListResponseShortReleaseResponse.md +36 -0
- package/docs/ListResponseStr.md +36 -0
- package/docs/ListResponseUserShortResponse.md +36 -0
- package/docs/LogListResponse.md +40 -0
- package/docs/LogResponse.md +50 -0
- package/docs/MaintainerShortModel.md +38 -0
- package/docs/NewBuildTaskBody.md +42 -0
- package/docs/NewDeviceBody.md +40 -0
- package/docs/PasteApi.md +149 -0
- package/docs/PasteInput.md +34 -0
- package/docs/PasteOutput.md +40 -0
- package/docs/RecoveryImgResponse.md +36 -0
- package/docs/ReleaseApi.md +354 -0
- package/docs/ReleaseGroupsResponse.md +34 -0
- package/docs/ReleaseInternalResponse.md +78 -0
- package/docs/ReleaseInternalResponsePropValue.md +32 -0
- package/docs/ReleaseResponse.md +72 -0
- package/docs/ReleaseStatsResponse.md +38 -0
- package/docs/ReleaseType.md +32 -0
- package/docs/ReleaseUpdateBody.md +40 -0
- package/docs/ReleasesSort.md +32 -0
- package/docs/ResponseGetReleases.md +36 -0
- package/docs/ShortDeviceResponse.md +54 -0
- package/docs/ShortReleaseResponse.md +60 -0
- package/docs/StatsApi.md +69 -0
- package/docs/TaskUpdateBody.md +36 -0
- package/docs/TokenResponse.md +36 -0
- package/docs/UserGitlab.md +34 -0
- package/docs/UserInternalResponse.md +52 -0
- package/docs/UserMail.md +34 -0
- package/docs/UserShortResponse.md +40 -0
- package/docs/UserTelegram.md +34 -0
- package/docs/UserUpdateBody.md +42 -0
- package/docs/ValidationError.md +38 -0
- package/docs/ValidationErrorLocInner.md +32 -0
- package/package.json +5 -2
- package/src/apis/DeviceApi.ts +18 -5
- package/src/apis/FoxFactoryApi.ts +47 -11
- package/src/apis/GitlabApi.ts +6 -2
- package/src/apis/InternalApi.ts +165 -21
- package/src/apis/PasteApi.ts +10 -3
- package/src/apis/ReleaseApi.ts +19 -5
- package/src/apis/StatsApi.ts +5 -2
- package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +1 -1
- package/src/models/BuildStatusEnum.ts +1 -1
- package/src/models/BuildTaskResponse.ts +3 -3
- package/src/models/BuildTaskShortResponse.ts +3 -3
- package/src/models/DeviceInternalResponse.ts +18 -2
- package/src/models/DeviceResponse.ts +18 -2
- package/src/models/DeviceStatsResponse.ts +1 -1
- package/src/models/DeviceUpdateBody.ts +1 -1
- package/src/models/FFStatusEnum.ts +1 -1
- package/src/models/FFStatusResponse.ts +1 -1
- package/src/models/GlobalStatsAggregationModel.ts +1 -1
- package/src/models/HTTPValidationError.ts +1 -1
- package/src/models/ListResponseBuildTaskShortResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortReleaseResponse.ts +1 -1
- package/src/models/ListResponseStr.ts +1 -1
- package/src/models/ListResponseUserShortResponse.ts +1 -1
- package/src/models/LogListResponse.ts +1 -1
- package/src/models/LogResponse.ts +2 -2
- package/src/models/MaintainerShortModel.ts +1 -1
- package/src/models/NewBuildTaskBody.ts +1 -1
- package/src/models/NewDeviceBody.ts +1 -1
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteOutput.ts +2 -2
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseInternalResponse.ts +18 -1
- package/src/models/ReleaseInternalResponsePropValue.ts +1 -1
- package/src/models/ReleaseResponse.ts +18 -1
- package/src/models/ReleaseStatsResponse.ts +1 -1
- package/src/models/ReleaseType.ts +1 -1
- package/src/models/ReleaseUpdateBody.ts +1 -1
- package/src/models/ReleasesSort.ts +1 -1
- package/src/models/ResponseGetReleases.ts +1 -1
- package/src/models/ShortDeviceResponse.ts +18 -2
- package/src/models/ShortReleaseResponse.ts +18 -1
- package/src/models/TaskUpdateBody.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UserGitlab.ts +1 -1
- package/src/models/UserInternalResponse.ts +1 -1
- package/src/models/UserMail.ts +1 -1
- package/src/models/UserShortResponse.ts +1 -1
- package/src/models/UserTelegram.ts +1 -1
- package/src/models/UserUpdateBody.ts +1 -1
- package/src/models/ValidationError.ts +1 -1
- package/src/models/ValidationErrorLocInner.ts +1 -1
- package/src/runtime.ts +1 -1
package/dist/apis/InternalApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,8 +41,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/profile/change_password`;
|
|
44
45
|
const response = yield this.request({
|
|
45
|
-
path:
|
|
46
|
+
path: urlPath,
|
|
46
47
|
method: 'POST',
|
|
47
48
|
headers: headerParameters,
|
|
48
49
|
query: queryParameters,
|
|
@@ -88,8 +89,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
88
89
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
90
|
}
|
|
90
91
|
}
|
|
92
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
93
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
91
94
|
const response = yield this.request({
|
|
92
|
-
path:
|
|
95
|
+
path: urlPath,
|
|
93
96
|
method: 'DELETE',
|
|
94
97
|
headers: headerParameters,
|
|
95
98
|
query: queryParameters,
|
|
@@ -112,6 +115,52 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
112
115
|
return yield response.value();
|
|
113
116
|
});
|
|
114
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Delete Device
|
|
120
|
+
*/
|
|
121
|
+
deleteDeviceInternalDevicesDeviceIdDeleteRaw(requestParameters, initOverrides) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
if (requestParameters['deviceId'] == null) {
|
|
124
|
+
throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling deleteDeviceInternalDevicesDeviceIdDelete().');
|
|
125
|
+
}
|
|
126
|
+
const queryParameters = {};
|
|
127
|
+
const headerParameters = {};
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
// oauth required
|
|
130
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("oauth2_password", []);
|
|
131
|
+
}
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
const token = this.configuration.accessToken;
|
|
134
|
+
const tokenString = yield token("bearer_auth", []);
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
140
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
141
|
+
const response = yield this.request({
|
|
142
|
+
path: urlPath,
|
|
143
|
+
method: 'DELETE',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
}, initOverrides);
|
|
147
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
148
|
+
return new runtime.JSONApiResponse(response);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return new runtime.TextApiResponse(response);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Delete Device
|
|
157
|
+
*/
|
|
158
|
+
deleteDeviceInternalDevicesDeviceIdDelete(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const response = yield this.deleteDeviceInternalDevicesDeviceIdDeleteRaw(requestParameters, initOverrides);
|
|
161
|
+
return yield response.value();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
115
164
|
/**
|
|
116
165
|
* Delete a paste by ID. Requires admin permissions.
|
|
117
166
|
* Delete Paste
|
|
@@ -134,8 +183,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
134
183
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
184
|
}
|
|
136
185
|
}
|
|
186
|
+
let urlPath = `/internal/paste/{paste_id}`;
|
|
187
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
137
188
|
const response = yield this.request({
|
|
138
|
-
path:
|
|
189
|
+
path: urlPath,
|
|
139
190
|
method: 'DELETE',
|
|
140
191
|
headers: headerParameters,
|
|
141
192
|
query: queryParameters,
|
|
@@ -173,8 +224,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
173
224
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
174
225
|
}
|
|
175
226
|
}
|
|
227
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
228
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
176
229
|
const response = yield this.request({
|
|
177
|
-
path:
|
|
230
|
+
path: urlPath,
|
|
178
231
|
method: 'DELETE',
|
|
179
232
|
headers: headerParameters,
|
|
180
233
|
query: queryParameters,
|
|
@@ -222,8 +275,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
222
275
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
223
276
|
}
|
|
224
277
|
}
|
|
278
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
279
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
225
280
|
const response = yield this.request({
|
|
226
|
-
path:
|
|
281
|
+
path: urlPath,
|
|
227
282
|
method: 'PUT',
|
|
228
283
|
headers: headerParameters,
|
|
229
284
|
query: queryParameters,
|
|
@@ -268,8 +323,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
268
323
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
269
324
|
}
|
|
270
325
|
}
|
|
326
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
327
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
271
328
|
const response = yield this.request({
|
|
272
|
-
path:
|
|
329
|
+
path: urlPath,
|
|
273
330
|
method: 'GET',
|
|
274
331
|
headers: headerParameters,
|
|
275
332
|
query: queryParameters,
|
|
@@ -323,8 +380,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
323
380
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
324
381
|
}
|
|
325
382
|
}
|
|
383
|
+
let urlPath = `/internal/logs/`;
|
|
326
384
|
const response = yield this.request({
|
|
327
|
-
path:
|
|
385
|
+
path: urlPath,
|
|
328
386
|
method: 'GET',
|
|
329
387
|
headers: headerParameters,
|
|
330
388
|
query: queryParameters,
|
|
@@ -364,8 +422,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
364
422
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
365
423
|
}
|
|
366
424
|
}
|
|
425
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
426
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
367
427
|
const response = yield this.request({
|
|
368
|
-
path:
|
|
428
|
+
path: urlPath,
|
|
369
429
|
method: 'GET',
|
|
370
430
|
headers: headerParameters,
|
|
371
431
|
query: queryParameters,
|
|
@@ -405,8 +465,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
405
465
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
406
466
|
}
|
|
407
467
|
}
|
|
468
|
+
let urlPath = `/internal/releases/{release_id}/dl`;
|
|
469
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
408
470
|
const response = yield this.request({
|
|
409
|
-
path:
|
|
471
|
+
path: urlPath,
|
|
410
472
|
method: 'GET',
|
|
411
473
|
headers: headerParameters,
|
|
412
474
|
query: queryParameters,
|
|
@@ -450,8 +512,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
450
512
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
451
513
|
}
|
|
452
514
|
}
|
|
515
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
516
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
453
517
|
const response = yield this.request({
|
|
454
|
-
path:
|
|
518
|
+
path: urlPath,
|
|
455
519
|
method: 'GET',
|
|
456
520
|
headers: headerParameters,
|
|
457
521
|
query: queryParameters,
|
|
@@ -487,8 +551,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
487
551
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
488
552
|
}
|
|
489
553
|
}
|
|
554
|
+
let urlPath = `/internal/paste/`;
|
|
490
555
|
const response = yield this.request({
|
|
491
|
-
path:
|
|
556
|
+
path: urlPath,
|
|
492
557
|
method: 'GET',
|
|
493
558
|
headers: headerParameters,
|
|
494
559
|
query: queryParameters,
|
|
@@ -524,8 +589,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
524
589
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
525
590
|
}
|
|
526
591
|
}
|
|
592
|
+
let urlPath = `/internal/users/`;
|
|
527
593
|
const response = yield this.request({
|
|
528
|
-
path:
|
|
594
|
+
path: urlPath,
|
|
529
595
|
method: 'GET',
|
|
530
596
|
headers: headerParameters,
|
|
531
597
|
query: queryParameters,
|
|
@@ -604,8 +670,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
604
670
|
if (requestParameters['clientSecret'] != null) {
|
|
605
671
|
formParams.append('client_secret', requestParameters['clientSecret']);
|
|
606
672
|
}
|
|
673
|
+
let urlPath = `/auth/login`;
|
|
607
674
|
const response = yield this.request({
|
|
608
|
-
path:
|
|
675
|
+
path: urlPath,
|
|
609
676
|
method: 'POST',
|
|
610
677
|
headers: headerParameters,
|
|
611
678
|
query: queryParameters,
|
|
@@ -646,8 +713,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
646
713
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
647
714
|
}
|
|
648
715
|
}
|
|
716
|
+
let urlPath = `/auth/logout`;
|
|
649
717
|
const response = yield this.request({
|
|
650
|
-
path:
|
|
718
|
+
path: urlPath,
|
|
651
719
|
method: 'POST',
|
|
652
720
|
headers: headerParameters,
|
|
653
721
|
query: queryParameters,
|
|
@@ -692,8 +760,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
692
760
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
693
761
|
}
|
|
694
762
|
}
|
|
763
|
+
let urlPath = `/internal/devices/`;
|
|
695
764
|
const response = yield this.request({
|
|
696
|
-
path:
|
|
765
|
+
path: urlPath,
|
|
697
766
|
method: 'POST',
|
|
698
767
|
headers: headerParameters,
|
|
699
768
|
query: queryParameters,
|
|
@@ -782,8 +851,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
782
851
|
if (requestParameters['force'] != null) {
|
|
783
852
|
formParams.append('force', requestParameters['force']);
|
|
784
853
|
}
|
|
854
|
+
let urlPath = `/internal/releases/`;
|
|
785
855
|
const response = yield this.request({
|
|
786
|
-
path:
|
|
856
|
+
path: urlPath,
|
|
787
857
|
method: 'POST',
|
|
788
858
|
headers: headerParameters,
|
|
789
859
|
query: queryParameters,
|
|
@@ -823,8 +893,9 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
823
893
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
824
894
|
}
|
|
825
895
|
}
|
|
896
|
+
let urlPath = `/auth/renew`;
|
|
826
897
|
const response = yield this.request({
|
|
827
|
-
path:
|
|
898
|
+
path: urlPath,
|
|
828
899
|
method: 'POST',
|
|
829
900
|
headers: headerParameters,
|
|
830
901
|
query: queryParameters,
|
|
@@ -872,8 +943,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
872
943
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
873
944
|
}
|
|
874
945
|
}
|
|
946
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
947
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
875
948
|
const response = yield this.request({
|
|
876
|
-
path:
|
|
949
|
+
path: urlPath,
|
|
877
950
|
method: 'PUT',
|
|
878
951
|
headers: headerParameters,
|
|
879
952
|
query: queryParameters,
|
|
@@ -922,8 +995,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
922
995
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
923
996
|
}
|
|
924
997
|
}
|
|
998
|
+
let urlPath = `/internal/paste/{paste_id}`;
|
|
999
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
925
1000
|
const response = yield this.request({
|
|
926
|
-
path:
|
|
1001
|
+
path: urlPath,
|
|
927
1002
|
method: 'PUT',
|
|
928
1003
|
headers: headerParameters,
|
|
929
1004
|
query: queryParameters,
|
|
@@ -967,8 +1042,10 @@ class InternalApi extends runtime.BaseAPI {
|
|
|
967
1042
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
968
1043
|
}
|
|
969
1044
|
}
|
|
1045
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
1046
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
970
1047
|
const response = yield this.request({
|
|
971
|
-
path:
|
|
1048
|
+
path: urlPath,
|
|
972
1049
|
method: 'PUT',
|
|
973
1050
|
headers: headerParameters,
|
|
974
1051
|
query: queryParameters,
|
package/dist/apis/PasteApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/PasteApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,8 +41,9 @@ class PasteApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/paste/`;
|
|
44
45
|
const response = yield this.request({
|
|
45
|
-
path:
|
|
46
|
+
path: urlPath,
|
|
46
47
|
method: 'POST',
|
|
47
48
|
headers: headerParameters,
|
|
48
49
|
query: queryParameters,
|
|
@@ -72,8 +73,10 @@ class PasteApi extends runtime.BaseAPI {
|
|
|
72
73
|
}
|
|
73
74
|
const queryParameters = {};
|
|
74
75
|
const headerParameters = {};
|
|
76
|
+
let urlPath = `/paste/{paste_id}`;
|
|
77
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
75
78
|
const response = yield this.request({
|
|
76
|
-
path:
|
|
79
|
+
path: urlPath,
|
|
77
80
|
method: 'GET',
|
|
78
81
|
headers: headerParameters,
|
|
79
82
|
query: queryParameters,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/ReleaseApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,8 +49,9 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
49
49
|
queryParameters['filename'] = requestParameters['filename'];
|
|
50
50
|
}
|
|
51
51
|
const headerParameters = {};
|
|
52
|
+
let urlPath = `/releases/get`;
|
|
52
53
|
const response = yield this.request({
|
|
53
|
-
path:
|
|
54
|
+
path: urlPath,
|
|
54
55
|
method: 'GET',
|
|
55
56
|
headers: headerParameters,
|
|
56
57
|
query: queryParameters,
|
|
@@ -80,8 +81,10 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
80
81
|
}
|
|
81
82
|
const queryParameters = {};
|
|
82
83
|
const headerParameters = {};
|
|
84
|
+
let urlPath = `/releases/{release_id}`;
|
|
85
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
83
86
|
const response = yield this.request({
|
|
84
|
-
path:
|
|
87
|
+
path: urlPath,
|
|
85
88
|
method: 'GET',
|
|
86
89
|
headers: headerParameters,
|
|
87
90
|
query: queryParameters,
|
|
@@ -156,8 +159,9 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
156
159
|
queryParameters['limit'] = requestParameters['limit'];
|
|
157
160
|
}
|
|
158
161
|
const headerParameters = {};
|
|
162
|
+
let urlPath = `/releases/`;
|
|
159
163
|
const response = yield this.request({
|
|
160
|
-
path:
|
|
164
|
+
path: urlPath,
|
|
161
165
|
method: 'GET',
|
|
162
166
|
headers: headerParameters,
|
|
163
167
|
query: queryParameters,
|
|
@@ -202,8 +206,10 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
202
206
|
queryParameters['limit'] = requestParameters['limit'];
|
|
203
207
|
}
|
|
204
208
|
const headerParameters = {};
|
|
209
|
+
let urlPath = `/updates/{last_known_id}`;
|
|
210
|
+
urlPath = urlPath.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId'])));
|
|
205
211
|
const response = yield this.request({
|
|
206
|
-
path:
|
|
212
|
+
path: urlPath,
|
|
207
213
|
method: 'GET',
|
|
208
214
|
headers: headerParameters,
|
|
209
215
|
query: queryParameters,
|
package/dist/apis/StatsApi.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/apis/StatsApi.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
6
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,9 @@ class StatsApi extends runtime.BaseAPI {
|
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const queryParameters = {};
|
|
39
39
|
const headerParameters = {};
|
|
40
|
+
let urlPath = `/stats/`;
|
|
40
41
|
const response = yield this.request({
|
|
41
|
-
path:
|
|
42
|
+
path: urlPath,
|
|
42
43
|
method: 'GET',
|
|
43
44
|
headers: headerParameters,
|
|
44
45
|
query: queryParameters,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,8 +43,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
43
43
|
queryParameters['codename'] = requestParameters['codename'];
|
|
44
44
|
}
|
|
45
45
|
const headerParameters = {};
|
|
46
|
+
let urlPath = `/devices/get`;
|
|
46
47
|
const response = yield this.request({
|
|
47
|
-
path:
|
|
48
|
+
path: urlPath,
|
|
48
49
|
method: 'GET',
|
|
49
50
|
headers: headerParameters,
|
|
50
51
|
query: queryParameters,
|
|
@@ -74,8 +75,10 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
74
75
|
}
|
|
75
76
|
const queryParameters = {};
|
|
76
77
|
const headerParameters = {};
|
|
78
|
+
let urlPath = `/devices/{device_id}`;
|
|
79
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
77
80
|
const response = yield this.request({
|
|
78
|
-
path:
|
|
81
|
+
path: urlPath,
|
|
79
82
|
method: 'GET',
|
|
80
83
|
headers: headerParameters,
|
|
81
84
|
query: queryParameters,
|
|
@@ -135,8 +138,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
135
138
|
queryParameters['limit'] = requestParameters['limit'];
|
|
136
139
|
}
|
|
137
140
|
const headerParameters = {};
|
|
141
|
+
let urlPath = `/devices/`;
|
|
138
142
|
const response = yield this.request({
|
|
139
|
-
path:
|
|
143
|
+
path: urlPath,
|
|
140
144
|
method: 'GET',
|
|
141
145
|
headers: headerParameters,
|
|
142
146
|
query: queryParameters,
|
|
@@ -162,8 +166,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
162
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
167
|
const queryParameters = {};
|
|
164
168
|
const headerParameters = {};
|
|
169
|
+
let urlPath = `/oems/`;
|
|
165
170
|
const response = yield this.request({
|
|
166
|
-
path:
|
|
171
|
+
path: urlPath,
|
|
167
172
|
method: 'GET',
|
|
168
173
|
headers: headerParameters,
|
|
169
174
|
query: queryParameters,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -48,8 +48,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
48
48
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
let urlPath = `/factory/{task_id}/cancel`;
|
|
52
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
51
53
|
const response = yield this.request({
|
|
52
|
-
path:
|
|
54
|
+
path: urlPath,
|
|
53
55
|
method: 'POST',
|
|
54
56
|
headers: headerParameters,
|
|
55
57
|
query: queryParameters,
|
|
@@ -89,8 +91,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
89
91
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
94
|
+
let urlPath = `/factory/{task_id}`;
|
|
95
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
92
96
|
const response = yield this.request({
|
|
93
|
-
path:
|
|
97
|
+
path: urlPath,
|
|
94
98
|
method: 'DELETE',
|
|
95
99
|
headers: headerParameters,
|
|
96
100
|
query: queryParameters,
|
|
@@ -135,8 +139,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
135
139
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
140
|
}
|
|
137
141
|
}
|
|
142
|
+
let urlPath = `/factory/{task_id}/artifact`;
|
|
143
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
138
144
|
const response = yield this.request({
|
|
139
|
-
path:
|
|
145
|
+
path: urlPath,
|
|
140
146
|
method: 'GET',
|
|
141
147
|
headers: headerParameters,
|
|
142
148
|
query: queryParameters,
|
|
@@ -178,8 +184,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
178
184
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
179
185
|
}
|
|
180
186
|
}
|
|
187
|
+
let urlPath = `/factory/status`;
|
|
181
188
|
const response = yield this.request({
|
|
182
|
-
path:
|
|
189
|
+
path: urlPath,
|
|
183
190
|
method: 'GET',
|
|
184
191
|
headers: headerParameters,
|
|
185
192
|
query: queryParameters,
|
|
@@ -219,8 +226,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
219
226
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
220
227
|
}
|
|
221
228
|
}
|
|
229
|
+
let urlPath = `/factory/{task_id}`;
|
|
230
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
222
231
|
const response = yield this.request({
|
|
223
|
-
path:
|
|
232
|
+
path: urlPath,
|
|
224
233
|
method: 'GET',
|
|
225
234
|
headers: headerParameters,
|
|
226
235
|
query: queryParameters,
|
|
@@ -260,8 +269,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
260
269
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
261
270
|
}
|
|
262
271
|
}
|
|
272
|
+
let urlPath = `/factory/`;
|
|
263
273
|
const response = yield this.request({
|
|
264
|
-
path:
|
|
274
|
+
path: urlPath,
|
|
265
275
|
method: 'GET',
|
|
266
276
|
headers: headerParameters,
|
|
267
277
|
query: queryParameters,
|
|
@@ -302,8 +312,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
302
312
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
303
313
|
}
|
|
304
314
|
}
|
|
315
|
+
let urlPath = `/factory/`;
|
|
305
316
|
const response = yield this.request({
|
|
306
|
-
path:
|
|
317
|
+
path: urlPath,
|
|
307
318
|
method: 'POST',
|
|
308
319
|
headers: headerParameters,
|
|
309
320
|
query: queryParameters,
|
|
@@ -353,8 +364,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
353
364
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
354
365
|
}
|
|
355
366
|
}
|
|
367
|
+
let urlPath = `/factory/{task_id}`;
|
|
368
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
356
369
|
const response = yield this.request({
|
|
357
|
-
path:
|
|
370
|
+
path: urlPath,
|
|
358
371
|
method: 'PATCH',
|
|
359
372
|
headers: headerParameters,
|
|
360
373
|
query: queryParameters,
|
|
@@ -401,8 +414,9 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
401
414
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
402
415
|
}
|
|
403
416
|
}
|
|
417
|
+
let urlPath = `/factory/update_status`;
|
|
404
418
|
const response = yield this.request({
|
|
405
|
-
path:
|
|
419
|
+
path: urlPath,
|
|
406
420
|
method: 'POST',
|
|
407
421
|
headers: headerParameters,
|
|
408
422
|
query: queryParameters,
|
|
@@ -475,8 +489,10 @@ export class FoxFactoryApi extends runtime.BaseAPI {
|
|
|
475
489
|
if (requestParameters['md5Hash'] != null) {
|
|
476
490
|
formParams.append('md5_hash', requestParameters['md5Hash']);
|
|
477
491
|
}
|
|
492
|
+
let urlPath = `/factory/{task_id}/artifact`;
|
|
493
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
478
494
|
const response = yield this.request({
|
|
479
|
-
path:
|
|
495
|
+
path: urlPath,
|
|
480
496
|
method: 'POST',
|
|
481
497
|
headers: headerParameters,
|
|
482
498
|
query: queryParameters,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Fox API
|
|
3
3
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|