@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
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
package/dist/runtime.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/runtime.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).
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# BodyChangePasswordProfileChangePasswordPost
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`oldPassword` | string
|
|
10
|
+
`newPassword` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { BodyChangePasswordProfileChangePasswordPost } from '@orangefox-recovery/foxinternalclient'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"oldPassword": null,
|
|
20
|
+
"newPassword": null,
|
|
21
|
+
} satisfies BodyChangePasswordProfileChangePasswordPost
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as BodyChangePasswordProfileChangePasswordPost
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# BuildStatusEnum
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { BuildStatusEnum } from '@orangefox-recovery/foxinternalclient'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies BuildStatusEnum
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as BuildStatusEnum
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
# BuildTaskResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`startedById` | string
|
|
11
|
+
`device` | [ShortDeviceResponse](ShortDeviceResponse.md)
|
|
12
|
+
`status` | [BuildStatusEnum](BuildStatusEnum.md)
|
|
13
|
+
`version` | string
|
|
14
|
+
`type` | [ReleaseType](ReleaseType.md)
|
|
15
|
+
`variant` | string
|
|
16
|
+
`startedAt` | Date
|
|
17
|
+
`finishedAt` | Date
|
|
18
|
+
`hasArtifact` | boolean
|
|
19
|
+
`environment` | { [key: string]: string; }
|
|
20
|
+
`logs` | Array<string>
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { BuildTaskResponse } from '@orangefox-recovery/foxinternalclient'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"id": null,
|
|
30
|
+
"startedById": null,
|
|
31
|
+
"device": null,
|
|
32
|
+
"status": null,
|
|
33
|
+
"version": null,
|
|
34
|
+
"type": null,
|
|
35
|
+
"variant": null,
|
|
36
|
+
"startedAt": null,
|
|
37
|
+
"finishedAt": null,
|
|
38
|
+
"hasArtifact": null,
|
|
39
|
+
"environment": null,
|
|
40
|
+
"logs": null,
|
|
41
|
+
} satisfies BuildTaskResponse
|
|
42
|
+
|
|
43
|
+
console.log(example)
|
|
44
|
+
|
|
45
|
+
// Convert the instance to a JSON string
|
|
46
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
47
|
+
console.log(exampleJSON)
|
|
48
|
+
|
|
49
|
+
// Parse the JSON string back to an object
|
|
50
|
+
const exampleParsed = JSON.parse(exampleJSON) as BuildTaskResponse
|
|
51
|
+
console.log(exampleParsed)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
# BuildTaskShortResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`startedById` | string
|
|
11
|
+
`device` | [ShortDeviceResponse](ShortDeviceResponse.md)
|
|
12
|
+
`status` | [BuildStatusEnum](BuildStatusEnum.md)
|
|
13
|
+
`version` | string
|
|
14
|
+
`type` | [ReleaseType](ReleaseType.md)
|
|
15
|
+
`variant` | string
|
|
16
|
+
`startedAt` | Date
|
|
17
|
+
`finishedAt` | Date
|
|
18
|
+
`hasArtifact` | boolean
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import type { BuildTaskShortResponse } from '@orangefox-recovery/foxinternalclient'
|
|
24
|
+
|
|
25
|
+
// TODO: Update the object below with actual values
|
|
26
|
+
const example = {
|
|
27
|
+
"id": null,
|
|
28
|
+
"startedById": null,
|
|
29
|
+
"device": null,
|
|
30
|
+
"status": null,
|
|
31
|
+
"version": null,
|
|
32
|
+
"type": null,
|
|
33
|
+
"variant": null,
|
|
34
|
+
"startedAt": null,
|
|
35
|
+
"finishedAt": null,
|
|
36
|
+
"hasArtifact": null,
|
|
37
|
+
} satisfies BuildTaskShortResponse
|
|
38
|
+
|
|
39
|
+
console.log(example)
|
|
40
|
+
|
|
41
|
+
// Convert the instance to a JSON string
|
|
42
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
+
console.log(exampleJSON)
|
|
44
|
+
|
|
45
|
+
// Parse the JSON string back to an object
|
|
46
|
+
const exampleParsed = JSON.parse(exampleJSON) as BuildTaskShortResponse
|
|
47
|
+
console.log(exampleParsed)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
# DeviceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getDevice**](DeviceApi.md#getdevice) | **GET** /devices/get | Get Device |
|
|
8
|
+
| [**getDeviceDeprecated**](DeviceApi.md#getdevicedeprecated) | **GET** /devices/{device_id} | Get Device Short |
|
|
9
|
+
| [**getDevices**](DeviceApi.md#getdevices) | **GET** /devices/ | Get Devices |
|
|
10
|
+
| [**getOems**](DeviceApi.md#getoems) | **GET** /oems/ | Get Oems |
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## getDevice
|
|
15
|
+
|
|
16
|
+
> DeviceResponse getDevice(deviceId, id, codename)
|
|
17
|
+
|
|
18
|
+
Get Device
|
|
19
|
+
|
|
20
|
+
Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import {
|
|
26
|
+
Configuration,
|
|
27
|
+
DeviceApi,
|
|
28
|
+
} from '@orangefox-recovery/foxinternalclient';
|
|
29
|
+
import type { GetDeviceRequest } from '@orangefox-recovery/foxinternalclient';
|
|
30
|
+
|
|
31
|
+
async function example() {
|
|
32
|
+
console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
|
|
33
|
+
const api = new DeviceApi();
|
|
34
|
+
|
|
35
|
+
const body = {
|
|
36
|
+
// string (optional)
|
|
37
|
+
deviceId: deviceId_example,
|
|
38
|
+
// string | Filter by Device ID (deprecated) (optional)
|
|
39
|
+
id: id_example,
|
|
40
|
+
// string | Not recommended to use when you can (optional)
|
|
41
|
+
codename: codename_example,
|
|
42
|
+
} satisfies GetDeviceRequest;
|
|
43
|
+
|
|
44
|
+
try {
|
|
45
|
+
const data = await api.getDevice(body);
|
|
46
|
+
console.log(data);
|
|
47
|
+
} catch (error) {
|
|
48
|
+
console.error(error);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Run the test
|
|
53
|
+
example().catch(console.error);
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Parameters
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
| Name | Type | Description | Notes |
|
|
60
|
+
|------------- | ------------- | ------------- | -------------|
|
|
61
|
+
| **deviceId** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
62
|
+
| **id** | `string` | Filter by Device ID (deprecated) | [Optional] [Defaults to `undefined`] |
|
|
63
|
+
| **codename** | `string` | Not recommended to use when you can | [Optional] [Defaults to `undefined`] |
|
|
64
|
+
|
|
65
|
+
### Return type
|
|
66
|
+
|
|
67
|
+
[**DeviceResponse**](DeviceResponse.md)
|
|
68
|
+
|
|
69
|
+
### Authorization
|
|
70
|
+
|
|
71
|
+
No authorization required
|
|
72
|
+
|
|
73
|
+
### HTTP request headers
|
|
74
|
+
|
|
75
|
+
- **Content-Type**: Not defined
|
|
76
|
+
- **Accept**: `application/json`
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### HTTP response details
|
|
80
|
+
| Status code | Description | Response headers |
|
|
81
|
+
|-------------|-------------|------------------|
|
|
82
|
+
| **200** | Successful Response | - |
|
|
83
|
+
| **404** | Item not found | - |
|
|
84
|
+
| **400** | Bad request | - |
|
|
85
|
+
| **422** | Validation Error | - |
|
|
86
|
+
|
|
87
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## getDeviceDeprecated
|
|
91
|
+
|
|
92
|
+
> DeviceResponse getDeviceDeprecated(deviceId)
|
|
93
|
+
|
|
94
|
+
Get Device Short
|
|
95
|
+
|
|
96
|
+
Gets device info using device ID.
|
|
97
|
+
|
|
98
|
+
### Example
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import {
|
|
102
|
+
Configuration,
|
|
103
|
+
DeviceApi,
|
|
104
|
+
} from '@orangefox-recovery/foxinternalclient';
|
|
105
|
+
import type { GetDeviceDeprecatedRequest } from '@orangefox-recovery/foxinternalclient';
|
|
106
|
+
|
|
107
|
+
async function example() {
|
|
108
|
+
console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
|
|
109
|
+
const api = new DeviceApi();
|
|
110
|
+
|
|
111
|
+
const body = {
|
|
112
|
+
// string
|
|
113
|
+
deviceId: deviceId_example,
|
|
114
|
+
} satisfies GetDeviceDeprecatedRequest;
|
|
115
|
+
|
|
116
|
+
try {
|
|
117
|
+
const data = await api.getDeviceDeprecated(body);
|
|
118
|
+
console.log(data);
|
|
119
|
+
} catch (error) {
|
|
120
|
+
console.error(error);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// Run the test
|
|
125
|
+
example().catch(console.error);
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
### Parameters
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
| Name | Type | Description | Notes |
|
|
132
|
+
|------------- | ------------- | ------------- | -------------|
|
|
133
|
+
| **deviceId** | `string` | | [Defaults to `undefined`] |
|
|
134
|
+
|
|
135
|
+
### Return type
|
|
136
|
+
|
|
137
|
+
[**DeviceResponse**](DeviceResponse.md)
|
|
138
|
+
|
|
139
|
+
### Authorization
|
|
140
|
+
|
|
141
|
+
No authorization required
|
|
142
|
+
|
|
143
|
+
### HTTP request headers
|
|
144
|
+
|
|
145
|
+
- **Content-Type**: Not defined
|
|
146
|
+
- **Accept**: `application/json`
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
### HTTP response details
|
|
150
|
+
| Status code | Description | Response headers |
|
|
151
|
+
|-------------|-------------|------------------|
|
|
152
|
+
| **200** | Successful Response | - |
|
|
153
|
+
| **404** | Item not found | - |
|
|
154
|
+
| **422** | Validation Error | - |
|
|
155
|
+
|
|
156
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## getDevices
|
|
160
|
+
|
|
161
|
+
> ListResponseShortDeviceResponse getDevices(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit)
|
|
162
|
+
|
|
163
|
+
Get Devices
|
|
164
|
+
|
|
165
|
+
Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
166
|
+
|
|
167
|
+
### Example
|
|
168
|
+
|
|
169
|
+
```ts
|
|
170
|
+
import {
|
|
171
|
+
Configuration,
|
|
172
|
+
DeviceApi,
|
|
173
|
+
} from '@orangefox-recovery/foxinternalclient';
|
|
174
|
+
import type { GetDevicesRequest } from '@orangefox-recovery/foxinternalclient';
|
|
175
|
+
|
|
176
|
+
async function example() {
|
|
177
|
+
console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
|
|
178
|
+
const api = new DeviceApi();
|
|
179
|
+
|
|
180
|
+
const body = {
|
|
181
|
+
// Array<string> | Filter by Device IDs (optional)
|
|
182
|
+
id: ...,
|
|
183
|
+
// Array<string> | Filter by Device IDs (deprecated) (optional)
|
|
184
|
+
id2: ...,
|
|
185
|
+
// Array<string> | Filter by OEM names (optional)
|
|
186
|
+
oemName: ...,
|
|
187
|
+
// Array<string> | Filter by device codenames (optional)
|
|
188
|
+
codename: ...,
|
|
189
|
+
// Array<string> | Filter by model names (optional)
|
|
190
|
+
modelName: ...,
|
|
191
|
+
// boolean | Supported status (optional)
|
|
192
|
+
supported: true,
|
|
193
|
+
// Array<string> | Filter by maintainer ID (optional)
|
|
194
|
+
maintainer: ...,
|
|
195
|
+
// boolean | Filter by Freezed status (optional)
|
|
196
|
+
freezed: true,
|
|
197
|
+
// boolean | Filter by has releases status (optional)
|
|
198
|
+
hasReleases: true,
|
|
199
|
+
// number | Skip query results (optional)
|
|
200
|
+
skip: 56,
|
|
201
|
+
// number | Limit query results (0 means unlimited) (optional)
|
|
202
|
+
limit: 56,
|
|
203
|
+
} satisfies GetDevicesRequest;
|
|
204
|
+
|
|
205
|
+
try {
|
|
206
|
+
const data = await api.getDevices(body);
|
|
207
|
+
console.log(data);
|
|
208
|
+
} catch (error) {
|
|
209
|
+
console.error(error);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// Run the test
|
|
214
|
+
example().catch(console.error);
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
| Name | Type | Description | Notes |
|
|
221
|
+
|------------- | ------------- | ------------- | -------------|
|
|
222
|
+
| **id** | `Array<string>` | Filter by Device IDs | [Optional] |
|
|
223
|
+
| **id2** | `Array<string>` | Filter by Device IDs (deprecated) | [Optional] |
|
|
224
|
+
| **oemName** | `Array<string>` | Filter by OEM names | [Optional] |
|
|
225
|
+
| **codename** | `Array<string>` | Filter by device codenames | [Optional] |
|
|
226
|
+
| **modelName** | `Array<string>` | Filter by model names | [Optional] |
|
|
227
|
+
| **supported** | `boolean` | Supported status | [Optional] [Defaults to `undefined`] |
|
|
228
|
+
| **maintainer** | `Array<string>` | Filter by maintainer ID | [Optional] |
|
|
229
|
+
| **freezed** | `boolean` | Filter by Freezed status | [Optional] [Defaults to `undefined`] |
|
|
230
|
+
| **hasReleases** | `boolean` | Filter by has releases status | [Optional] [Defaults to `undefined`] |
|
|
231
|
+
| **skip** | `number` | Skip query results | [Optional] [Defaults to `undefined`] |
|
|
232
|
+
| **limit** | `number` | Limit query results (0 means unlimited) | [Optional] [Defaults to `undefined`] |
|
|
233
|
+
|
|
234
|
+
### Return type
|
|
235
|
+
|
|
236
|
+
[**ListResponseShortDeviceResponse**](ListResponseShortDeviceResponse.md)
|
|
237
|
+
|
|
238
|
+
### Authorization
|
|
239
|
+
|
|
240
|
+
No authorization required
|
|
241
|
+
|
|
242
|
+
### HTTP request headers
|
|
243
|
+
|
|
244
|
+
- **Content-Type**: Not defined
|
|
245
|
+
- **Accept**: `application/json`
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
### HTTP response details
|
|
249
|
+
| Status code | Description | Response headers |
|
|
250
|
+
|-------------|-------------|------------------|
|
|
251
|
+
| **200** | Successful Response | - |
|
|
252
|
+
| **404** | Item not found | - |
|
|
253
|
+
| **422** | Validation Error | - |
|
|
254
|
+
|
|
255
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
## getOems
|
|
259
|
+
|
|
260
|
+
> ListResponseStr getOems()
|
|
261
|
+
|
|
262
|
+
Get Oems
|
|
263
|
+
|
|
264
|
+
Lists all OEM names
|
|
265
|
+
|
|
266
|
+
### Example
|
|
267
|
+
|
|
268
|
+
```ts
|
|
269
|
+
import {
|
|
270
|
+
Configuration,
|
|
271
|
+
DeviceApi,
|
|
272
|
+
} from '@orangefox-recovery/foxinternalclient';
|
|
273
|
+
import type { GetOemsRequest } from '@orangefox-recovery/foxinternalclient';
|
|
274
|
+
|
|
275
|
+
async function example() {
|
|
276
|
+
console.log("🚀 Testing @orangefox-recovery/foxinternalclient SDK...");
|
|
277
|
+
const api = new DeviceApi();
|
|
278
|
+
|
|
279
|
+
try {
|
|
280
|
+
const data = await api.getOems();
|
|
281
|
+
console.log(data);
|
|
282
|
+
} catch (error) {
|
|
283
|
+
console.error(error);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// Run the test
|
|
288
|
+
example().catch(console.error);
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Parameters
|
|
292
|
+
|
|
293
|
+
This endpoint does not need any parameter.
|
|
294
|
+
|
|
295
|
+
### Return type
|
|
296
|
+
|
|
297
|
+
[**ListResponseStr**](ListResponseStr.md)
|
|
298
|
+
|
|
299
|
+
### Authorization
|
|
300
|
+
|
|
301
|
+
No authorization required
|
|
302
|
+
|
|
303
|
+
### HTTP request headers
|
|
304
|
+
|
|
305
|
+
- **Content-Type**: Not defined
|
|
306
|
+
- **Accept**: `application/json`
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
### HTTP response details
|
|
310
|
+
| Status code | Description | Response headers |
|
|
311
|
+
|-------------|-------------|------------------|
|
|
312
|
+
| **200** | Successful Response | - |
|
|
313
|
+
|
|
314
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
315
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
|
|
2
|
+
# DeviceInternalResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`codename` | string
|
|
10
|
+
`modelName` | string
|
|
11
|
+
`oemName` | string
|
|
12
|
+
`id` | string
|
|
13
|
+
`codenames` | Array<string>
|
|
14
|
+
`modelNames` | Array<string>
|
|
15
|
+
`supported` | boolean
|
|
16
|
+
`isFeatured` | boolean
|
|
17
|
+
`featuredText` | string
|
|
18
|
+
`maintainer` | [MaintainerShortModel](MaintainerShortModel.md)
|
|
19
|
+
`notes` | string
|
|
20
|
+
`deviceTree` | string
|
|
21
|
+
`stats` | [DeviceStatsResponse](DeviceStatsResponse.md)
|
|
22
|
+
`freezed` | boolean
|
|
23
|
+
`fullName` | string
|
|
24
|
+
`url` | string
|
|
25
|
+
|
|
26
|
+
## Example
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import type { DeviceInternalResponse } from '@orangefox-recovery/foxinternalclient'
|
|
30
|
+
|
|
31
|
+
// TODO: Update the object below with actual values
|
|
32
|
+
const example = {
|
|
33
|
+
"codename": null,
|
|
34
|
+
"modelName": null,
|
|
35
|
+
"oemName": null,
|
|
36
|
+
"id": null,
|
|
37
|
+
"codenames": null,
|
|
38
|
+
"modelNames": null,
|
|
39
|
+
"supported": null,
|
|
40
|
+
"isFeatured": null,
|
|
41
|
+
"featuredText": null,
|
|
42
|
+
"maintainer": null,
|
|
43
|
+
"notes": null,
|
|
44
|
+
"deviceTree": null,
|
|
45
|
+
"stats": null,
|
|
46
|
+
"freezed": null,
|
|
47
|
+
"fullName": null,
|
|
48
|
+
"url": null,
|
|
49
|
+
} satisfies DeviceInternalResponse
|
|
50
|
+
|
|
51
|
+
console.log(example)
|
|
52
|
+
|
|
53
|
+
// Convert the instance to a JSON string
|
|
54
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
55
|
+
console.log(exampleJSON)
|
|
56
|
+
|
|
57
|
+
// Parse the JSON string back to an object
|
|
58
|
+
const exampleParsed = JSON.parse(exampleJSON) as DeviceInternalResponse
|
|
59
|
+
console.log(exampleParsed)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
63
|
+
|
|
64
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# DeviceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`codename` | string
|
|
10
|
+
`modelName` | string
|
|
11
|
+
`oemName` | string
|
|
12
|
+
`id` | string
|
|
13
|
+
`codenames` | Array<string>
|
|
14
|
+
`modelNames` | Array<string>
|
|
15
|
+
`supported` | boolean
|
|
16
|
+
`isFeatured` | boolean
|
|
17
|
+
`featuredText` | string
|
|
18
|
+
`maintainer` | [MaintainerShortModel](MaintainerShortModel.md)
|
|
19
|
+
`notes` | string
|
|
20
|
+
`deviceTree` | string
|
|
21
|
+
`fullName` | string
|
|
22
|
+
`url` | string
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { DeviceResponse } from '@orangefox-recovery/foxinternalclient'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"codename": null,
|
|
32
|
+
"modelName": null,
|
|
33
|
+
"oemName": null,
|
|
34
|
+
"id": null,
|
|
35
|
+
"codenames": null,
|
|
36
|
+
"modelNames": null,
|
|
37
|
+
"supported": null,
|
|
38
|
+
"isFeatured": null,
|
|
39
|
+
"featuredText": null,
|
|
40
|
+
"maintainer": null,
|
|
41
|
+
"notes": null,
|
|
42
|
+
"deviceTree": null,
|
|
43
|
+
"fullName": null,
|
|
44
|
+
"url": null,
|
|
45
|
+
} satisfies DeviceResponse
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as DeviceResponse
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|