@orangefox-recovery/foxinternalclient 5.3.2 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -2
- package/.openapi-generator/VERSION +1 -1
- package/README.md +18 -5
- package/dist/apis/DeviceApi.d.ts +66 -9
- package/dist/apis/DeviceApi.js +60 -23
- package/dist/apis/FoxFactoryApi.d.ts +115 -3
- package/dist/apis/FoxFactoryApi.js +141 -53
- package/dist/apis/GitlabApi.d.ts +13 -1
- package/dist/apis/GitlabApi.js +14 -5
- package/dist/apis/InternalApi.d.ts +496 -4
- package/dist/apis/InternalApi.js +594 -108
- package/dist/apis/PasteApi.d.ts +23 -1
- package/dist/apis/PasteApi.js +29 -11
- package/dist/apis/ReleaseApi.d.ts +76 -5
- package/dist/apis/ReleaseApi.js +60 -22
- package/dist/apis/StatsApi.d.ts +11 -1
- package/dist/apis/StatsApi.js +15 -6
- package/dist/esm/apis/DeviceApi.d.ts +66 -9
- package/dist/esm/apis/DeviceApi.js +60 -23
- package/dist/esm/apis/FoxFactoryApi.d.ts +115 -3
- package/dist/esm/apis/FoxFactoryApi.js +141 -53
- package/dist/esm/apis/GitlabApi.d.ts +13 -1
- package/dist/esm/apis/GitlabApi.js +14 -5
- package/dist/esm/apis/InternalApi.d.ts +496 -4
- package/dist/esm/apis/InternalApi.js +595 -109
- package/dist/esm/apis/PasteApi.d.ts +23 -1
- package/dist/esm/apis/PasteApi.js +29 -11
- package/dist/esm/apis/ReleaseApi.d.ts +76 -5
- package/dist/esm/apis/ReleaseApi.js +60 -22
- package/dist/esm/apis/StatsApi.d.ts +11 -1
- package/dist/esm/apis/StatsApi.js +15 -6
- 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 +1 -1
- package/dist/esm/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskShortResponse.js +1 -1
- package/dist/esm/models/DeviceInternalResponse.d.ts +2 -2
- package/dist/esm/models/DeviceInternalResponse.js +1 -1
- package/dist/esm/models/DeviceResponse.d.ts +2 -2
- package/dist/esm/models/DeviceResponse.js +1 -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/LocationInner.d.ts +26 -0
- package/dist/esm/models/{ValidationErrorLocInner.js → LocationInner.js} +9 -9
- 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 +1 -1
- 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/PasskeyCredentialResponse.d.ts +68 -0
- package/dist/esm/models/PasskeyCredentialResponse.js +61 -0
- package/dist/esm/models/PasskeyOptionsResponse.d.ts +40 -0
- package/dist/esm/models/PasskeyOptionsResponse.js +47 -0
- package/dist/esm/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
- package/dist/esm/models/PasskeyRegisterOptionsRequest.js +43 -0
- package/dist/esm/models/PasskeyVerifyRequest.d.ts +46 -0
- package/dist/esm/models/PasskeyVerifyRequest.js +49 -0
- package/dist/esm/models/PasswordConfirmationBody.d.ts +32 -0
- package/dist/esm/models/PasswordConfirmationBody.js +43 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/esm/models/ReleaseInternalResponse.js +1 -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 +1 -1
- package/dist/esm/models/ReleaseResponse.js +1 -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/RenamePasskeyBody.d.ts +32 -0
- package/dist/esm/models/RenamePasskeyBody.js +41 -0
- package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
- package/dist/esm/models/ResponseGetReleases.js +1 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +2 -2
- package/dist/esm/models/ShortDeviceResponse.js +1 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ShortReleaseResponse.js +1 -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 +16 -4
- package/dist/esm/models/ValidationError.js +8 -4
- package/dist/esm/models/index.d.ts +7 -1
- package/dist/esm/models/index.js +7 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +16 -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 +1 -1
- package/dist/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/models/BuildTaskShortResponse.js +1 -1
- package/dist/models/DeviceInternalResponse.d.ts +2 -2
- package/dist/models/DeviceInternalResponse.js +1 -1
- package/dist/models/DeviceResponse.d.ts +2 -2
- package/dist/models/DeviceResponse.js +1 -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/LocationInner.d.ts +26 -0
- package/dist/models/LocationInner.js +38 -0
- 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 +1 -1
- 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/PasskeyCredentialResponse.d.ts +68 -0
- package/dist/models/PasskeyCredentialResponse.js +68 -0
- package/dist/models/PasskeyOptionsResponse.d.ts +40 -0
- package/dist/models/PasskeyOptionsResponse.js +54 -0
- package/dist/models/PasskeyRegisterOptionsRequest.d.ts +32 -0
- package/dist/models/PasskeyRegisterOptionsRequest.js +50 -0
- package/dist/models/PasskeyVerifyRequest.d.ts +46 -0
- package/dist/models/PasskeyVerifyRequest.js +56 -0
- package/dist/models/PasswordConfirmationBody.d.ts +32 -0
- package/dist/models/PasswordConfirmationBody.js +50 -0
- 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 +1 -1
- 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 +1 -1
- package/dist/models/ReleaseInternalResponse.js +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +1 -1
- package/dist/models/ReleaseResponse.js +1 -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/RenamePasskeyBody.d.ts +32 -0
- package/dist/models/RenamePasskeyBody.js +48 -0
- package/dist/models/ResponseGetReleases.d.ts +1 -1
- package/dist/models/ResponseGetReleases.js +1 -1
- package/dist/models/ShortDeviceResponse.d.ts +2 -2
- package/dist/models/ShortDeviceResponse.js +1 -1
- package/dist/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/models/ShortReleaseResponse.js +1 -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 +16 -4
- package/dist/models/ValidationError.js +8 -4
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +16 -1
- package/docs/DeviceApi.md +2 -2
- package/docs/FoxFactoryApi.md +3 -3
- package/docs/InternalApi.md +474 -11
- package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
- package/docs/PasskeyCredentialResponse.md +46 -0
- package/docs/PasskeyOptionsResponse.md +36 -0
- package/docs/PasskeyRegisterOptionsRequest.md +34 -0
- package/docs/PasskeyVerifyRequest.md +38 -0
- package/docs/PasswordConfirmationBody.md +34 -0
- package/docs/ReleaseApi.md +1 -1
- package/docs/RenamePasskeyBody.md +34 -0
- package/docs/ValidationError.md +5 -1
- package/package.json +1 -2
- package/src/apis/DeviceApi.ts +104 -27
- package/src/apis/FoxFactoryApi.ts +215 -55
- package/src/apis/GitlabApi.ts +22 -5
- package/src/apis/InternalApi.ts +1016 -115
- package/src/apis/PasteApi.ts +43 -11
- package/src/apis/ReleaseApi.ts +115 -24
- package/src/apis/StatsApi.ts +21 -6
- package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +1 -1
- package/src/models/BuildStatusEnum.ts +1 -1
- package/src/models/BuildTaskResponse.ts +1 -1
- package/src/models/BuildTaskShortResponse.ts +1 -1
- package/src/models/DeviceInternalResponse.ts +2 -2
- package/src/models/DeviceResponse.ts +2 -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/{ValidationErrorLocInner.ts → LocationInner.ts} +11 -11
- package/src/models/LogListResponse.ts +1 -1
- package/src/models/LogResponse.ts +1 -1
- package/src/models/MaintainerShortModel.ts +1 -1
- package/src/models/NewBuildTaskBody.ts +1 -1
- package/src/models/NewDeviceBody.ts +1 -1
- package/src/models/PasskeyCredentialResponse.ts +117 -0
- package/src/models/PasskeyOptionsResponse.ts +75 -0
- package/src/models/PasskeyRegisterOptionsRequest.ts +66 -0
- package/src/models/PasskeyVerifyRequest.ts +83 -0
- package/src/models/PasswordConfirmationBody.ts +66 -0
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteOutput.ts +1 -1
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseInternalResponse.ts +1 -1
- package/src/models/ReleaseInternalResponsePropValue.ts +1 -1
- package/src/models/ReleaseResponse.ts +1 -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/RenamePasskeyBody.ts +65 -0
- package/src/models/ResponseGetReleases.ts +1 -1
- package/src/models/ShortDeviceResponse.ts +2 -2
- package/src/models/ShortReleaseResponse.ts +1 -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 +27 -11
- package/src/models/index.ts +7 -1
- package/src/runtime.ts +19 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
- package/dist/models/ValidationErrorLocInner.d.ts +0 -26
- package/dist/models/ValidationErrorLocInner.js +0 -38
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 5.4.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -40,7 +40,16 @@ export interface GetDevicesRequest {
|
|
|
40
40
|
*/
|
|
41
41
|
export interface DeviceApiInterface {
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Creates request options for getDevice without sending the request
|
|
44
|
+
* @param {string} [deviceId]
|
|
45
|
+
* @param {string} [id] Filter by Device ID (deprecated)
|
|
46
|
+
* @param {string} [codename] Not recommended to use when you can
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
* @memberof DeviceApiInterface
|
|
49
|
+
*/
|
|
50
|
+
getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
|
|
51
|
+
/**
|
|
52
|
+
* 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.
|
|
44
53
|
* @summary Get Device
|
|
45
54
|
* @param {string} [deviceId]
|
|
46
55
|
* @param {string} [id] Filter by Device ID (deprecated)
|
|
@@ -51,10 +60,18 @@ export interface DeviceApiInterface {
|
|
|
51
60
|
*/
|
|
52
61
|
getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
|
|
53
62
|
/**
|
|
54
|
-
* 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
|
|
63
|
+
* 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.
|
|
55
64
|
* Get Device
|
|
56
65
|
*/
|
|
57
66
|
getDevice(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Creates request options for getDeviceDeprecated without sending the request
|
|
69
|
+
* @param {string} deviceId
|
|
70
|
+
* @deprecated
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
* @memberof DeviceApiInterface
|
|
73
|
+
*/
|
|
74
|
+
getDeviceDeprecatedRequestOpts(requestParameters: GetDeviceDeprecatedRequest): Promise<runtime.RequestOpts>;
|
|
58
75
|
/**
|
|
59
76
|
* Gets device info using device ID.
|
|
60
77
|
* @summary Get Device Short
|
|
@@ -72,7 +89,24 @@ export interface DeviceApiInterface {
|
|
|
72
89
|
*/
|
|
73
90
|
getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
|
|
74
91
|
/**
|
|
75
|
-
*
|
|
92
|
+
* Creates request options for getDevices without sending the request
|
|
93
|
+
* @param {Array<string>} [id] Filter by Device IDs
|
|
94
|
+
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
95
|
+
* @param {Array<string>} [oemName] Filter by OEM names
|
|
96
|
+
* @param {Array<string>} [codename] Filter by device codenames
|
|
97
|
+
* @param {Array<string>} [modelName] Filter by model names
|
|
98
|
+
* @param {boolean} [supported] Supported status
|
|
99
|
+
* @param {Array<string>} [maintainer] Filter by maintainer ID
|
|
100
|
+
* @param {boolean} [freezed] Filter by Freezed status
|
|
101
|
+
* @param {boolean} [hasReleases] Filter by has releases status
|
|
102
|
+
* @param {number} [skip] Skip query results
|
|
103
|
+
* @param {number} [limit] Limit query results (0 means unlimited)
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
* @memberof DeviceApiInterface
|
|
106
|
+
*/
|
|
107
|
+
getDevicesRequestOpts(requestParameters: GetDevicesRequest): Promise<runtime.RequestOpts>;
|
|
108
|
+
/**
|
|
109
|
+
* 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.
|
|
76
110
|
* @summary Get Devices
|
|
77
111
|
* @param {Array<string>} [id] Filter by Device IDs
|
|
78
112
|
* @param {Array<string>} [id2] Filter by Device IDs (deprecated)
|
|
@@ -91,10 +125,16 @@ export interface DeviceApiInterface {
|
|
|
91
125
|
*/
|
|
92
126
|
getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
|
|
93
127
|
/**
|
|
94
|
-
* 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,
|
|
128
|
+
* 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.
|
|
95
129
|
* Get Devices
|
|
96
130
|
*/
|
|
97
131
|
getDevices(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Creates request options for getOems without sending the request
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
* @memberof DeviceApiInterface
|
|
136
|
+
*/
|
|
137
|
+
getOemsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
98
138
|
/**
|
|
99
139
|
* Lists all OEM names
|
|
100
140
|
* @summary Get Oems
|
|
@@ -114,15 +154,24 @@ export interface DeviceApiInterface {
|
|
|
114
154
|
*/
|
|
115
155
|
export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
116
156
|
/**
|
|
117
|
-
*
|
|
157
|
+
* Creates request options for getDevice without sending the request
|
|
158
|
+
*/
|
|
159
|
+
getDeviceRequestOpts(requestParameters: GetDeviceRequest): Promise<runtime.RequestOpts>;
|
|
160
|
+
/**
|
|
161
|
+
* 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.
|
|
118
162
|
* Get Device
|
|
119
163
|
*/
|
|
120
164
|
getDeviceRaw(requestParameters: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeviceResponse>>;
|
|
121
165
|
/**
|
|
122
|
-
* 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
|
|
166
|
+
* 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.
|
|
123
167
|
* Get Device
|
|
124
168
|
*/
|
|
125
169
|
getDevice(requestParameters?: GetDeviceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Creates request options for getDeviceDeprecated without sending the request
|
|
172
|
+
* @deprecated
|
|
173
|
+
*/
|
|
174
|
+
getDeviceDeprecatedRequestOpts(requestParameters: GetDeviceDeprecatedRequest): Promise<runtime.RequestOpts>;
|
|
126
175
|
/**
|
|
127
176
|
* Gets device info using device ID.
|
|
128
177
|
* Get Device Short
|
|
@@ -136,15 +185,23 @@ export declare class DeviceApi extends runtime.BaseAPI implements DeviceApiInter
|
|
|
136
185
|
*/
|
|
137
186
|
getDeviceDeprecated(requestParameters: GetDeviceDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeviceResponse>;
|
|
138
187
|
/**
|
|
139
|
-
*
|
|
188
|
+
* Creates request options for getDevices without sending the request
|
|
189
|
+
*/
|
|
190
|
+
getDevicesRequestOpts(requestParameters: GetDevicesRequest): Promise<runtime.RequestOpts>;
|
|
191
|
+
/**
|
|
192
|
+
* 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.
|
|
140
193
|
* Get Devices
|
|
141
194
|
*/
|
|
142
195
|
getDevicesRaw(requestParameters: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortDeviceResponse>>;
|
|
143
196
|
/**
|
|
144
|
-
* 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,
|
|
197
|
+
* 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.
|
|
145
198
|
* Get Devices
|
|
146
199
|
*/
|
|
147
200
|
getDevices(requestParameters?: GetDevicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseShortDeviceResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* Creates request options for getOems without sending the request
|
|
203
|
+
*/
|
|
204
|
+
getOemsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
148
205
|
/**
|
|
149
206
|
* Lists all OEM names
|
|
150
207
|
* Get Oems
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 5.4.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,10 +27,9 @@ import { DeviceResponseFromJSON, ListResponseShortDeviceResponseFromJSON, ListRe
|
|
|
27
27
|
*/
|
|
28
28
|
export class DeviceApi extends runtime.BaseAPI {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* Get Device
|
|
30
|
+
* Creates request options for getDevice without sending the request
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
getDeviceRequestOpts(requestParameters) {
|
|
34
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
34
|
const queryParameters = {};
|
|
36
35
|
if (requestParameters['deviceId'] != null) {
|
|
@@ -44,17 +43,27 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
44
43
|
}
|
|
45
44
|
const headerParameters = {};
|
|
46
45
|
let urlPath = `/devices/get`;
|
|
47
|
-
|
|
46
|
+
return {
|
|
48
47
|
path: urlPath,
|
|
49
48
|
method: 'GET',
|
|
50
49
|
headers: headerParameters,
|
|
51
50
|
query: queryParameters,
|
|
52
|
-
}
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 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.
|
|
56
|
+
* Get Device
|
|
57
|
+
*/
|
|
58
|
+
getDeviceRaw(requestParameters, initOverrides) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const requestOptions = yield this.getDeviceRequestOpts(requestParameters);
|
|
61
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
53
62
|
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceResponseFromJSON(jsonValue));
|
|
54
63
|
});
|
|
55
64
|
}
|
|
56
65
|
/**
|
|
57
|
-
* 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
|
|
66
|
+
* 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.
|
|
58
67
|
* Get Device
|
|
59
68
|
*/
|
|
60
69
|
getDevice() {
|
|
@@ -64,11 +73,10 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
64
73
|
});
|
|
65
74
|
}
|
|
66
75
|
/**
|
|
67
|
-
*
|
|
68
|
-
* Get Device Short
|
|
76
|
+
* Creates request options for getDeviceDeprecated without sending the request
|
|
69
77
|
* @deprecated
|
|
70
78
|
*/
|
|
71
|
-
|
|
79
|
+
getDeviceDeprecatedRequestOpts(requestParameters) {
|
|
72
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
73
81
|
if (requestParameters['deviceId'] == null) {
|
|
74
82
|
throw new runtime.RequiredError('deviceId', 'Required parameter "deviceId" was null or undefined when calling getDeviceDeprecated().');
|
|
@@ -77,12 +85,23 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
77
85
|
const headerParameters = {};
|
|
78
86
|
let urlPath = `/devices/{device_id}`;
|
|
79
87
|
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
80
|
-
|
|
88
|
+
return {
|
|
81
89
|
path: urlPath,
|
|
82
90
|
method: 'GET',
|
|
83
91
|
headers: headerParameters,
|
|
84
92
|
query: queryParameters,
|
|
85
|
-
}
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets device info using device ID.
|
|
98
|
+
* Get Device Short
|
|
99
|
+
* @deprecated
|
|
100
|
+
*/
|
|
101
|
+
getDeviceDeprecatedRaw(requestParameters, initOverrides) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const requestOptions = yield this.getDeviceDeprecatedRequestOpts(requestParameters);
|
|
104
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
86
105
|
return new runtime.JSONApiResponse(response, (jsonValue) => DeviceResponseFromJSON(jsonValue));
|
|
87
106
|
});
|
|
88
107
|
}
|
|
@@ -98,10 +117,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
98
117
|
});
|
|
99
118
|
}
|
|
100
119
|
/**
|
|
101
|
-
*
|
|
102
|
-
* Get Devices
|
|
120
|
+
* Creates request options for getDevices without sending the request
|
|
103
121
|
*/
|
|
104
|
-
|
|
122
|
+
getDevicesRequestOpts(requestParameters) {
|
|
105
123
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
124
|
const queryParameters = {};
|
|
107
125
|
if (requestParameters['id'] != null) {
|
|
@@ -139,17 +157,27 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
139
157
|
}
|
|
140
158
|
const headerParameters = {};
|
|
141
159
|
let urlPath = `/devices/`;
|
|
142
|
-
|
|
160
|
+
return {
|
|
143
161
|
path: urlPath,
|
|
144
162
|
method: 'GET',
|
|
145
163
|
headers: headerParameters,
|
|
146
164
|
query: queryParameters,
|
|
147
|
-
}
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* 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.
|
|
170
|
+
* Get Devices
|
|
171
|
+
*/
|
|
172
|
+
getDevicesRaw(requestParameters, initOverrides) {
|
|
173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
174
|
+
const requestOptions = yield this.getDevicesRequestOpts(requestParameters);
|
|
175
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
148
176
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseShortDeviceResponseFromJSON(jsonValue));
|
|
149
177
|
});
|
|
150
178
|
}
|
|
151
179
|
/**
|
|
152
|
-
* 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,
|
|
180
|
+
* 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.
|
|
153
181
|
* Get Devices
|
|
154
182
|
*/
|
|
155
183
|
getDevices() {
|
|
@@ -159,20 +187,29 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
159
187
|
});
|
|
160
188
|
}
|
|
161
189
|
/**
|
|
162
|
-
*
|
|
163
|
-
* Get Oems
|
|
190
|
+
* Creates request options for getOems without sending the request
|
|
164
191
|
*/
|
|
165
|
-
|
|
192
|
+
getOemsRequestOpts() {
|
|
166
193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
194
|
const queryParameters = {};
|
|
168
195
|
const headerParameters = {};
|
|
169
196
|
let urlPath = `/oems/`;
|
|
170
|
-
|
|
197
|
+
return {
|
|
171
198
|
path: urlPath,
|
|
172
199
|
method: 'GET',
|
|
173
200
|
headers: headerParameters,
|
|
174
201
|
query: queryParameters,
|
|
175
|
-
}
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Lists all OEM names
|
|
207
|
+
* Get Oems
|
|
208
|
+
*/
|
|
209
|
+
getOemsRaw(initOverrides) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
const requestOptions = yield this.getOemsRequestOpts();
|
|
212
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
176
213
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseStrFromJSON(jsonValue));
|
|
177
214
|
});
|
|
178
215
|
}
|
|
@@ -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.
|
|
5
|
+
* The version of the OpenAPI document: 5.4.0
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -38,7 +38,7 @@ export interface UpdateWorkerStatusFactoryUpdateStatusPostRequest {
|
|
|
38
38
|
}
|
|
39
39
|
export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
|
|
40
40
|
taskId: string;
|
|
41
|
-
artifact:
|
|
41
|
+
artifact: string;
|
|
42
42
|
md5Hash: string;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
@@ -48,6 +48,13 @@ export interface UploadArtifactFactoryTaskIdArtifactPostRequest {
|
|
|
48
48
|
* @interface FoxFactoryApiInterface
|
|
49
49
|
*/
|
|
50
50
|
export interface FoxFactoryApiInterface {
|
|
51
|
+
/**
|
|
52
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
53
|
+
* @param {string} taskId
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
* @memberof FoxFactoryApiInterface
|
|
56
|
+
*/
|
|
57
|
+
cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest): Promise<runtime.RequestOpts>;
|
|
51
58
|
/**
|
|
52
59
|
* Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
53
60
|
* @summary Cancel Task
|
|
@@ -62,6 +69,13 @@ export interface FoxFactoryApiInterface {
|
|
|
62
69
|
* Cancel Task
|
|
63
70
|
*/
|
|
64
71
|
cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
74
|
+
* @param {string} taskId
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
* @memberof FoxFactoryApiInterface
|
|
77
|
+
*/
|
|
78
|
+
deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest): Promise<runtime.RequestOpts>;
|
|
65
79
|
/**
|
|
66
80
|
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
67
81
|
* @summary Delete Task
|
|
@@ -76,6 +90,13 @@ export interface FoxFactoryApiInterface {
|
|
|
76
90
|
* Delete Task
|
|
77
91
|
*/
|
|
78
92
|
deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
95
|
+
* @param {string} taskId
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
* @memberof FoxFactoryApiInterface
|
|
98
|
+
*/
|
|
99
|
+
downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest): Promise<runtime.RequestOpts>;
|
|
79
100
|
/**
|
|
80
101
|
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
81
102
|
* @summary Download Artifact
|
|
@@ -90,6 +111,12 @@ export interface FoxFactoryApiInterface {
|
|
|
90
111
|
* Download Artifact
|
|
91
112
|
*/
|
|
92
113
|
downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
* @memberof FoxFactoryApiInterface
|
|
118
|
+
*/
|
|
119
|
+
factoryStatusFactoryStatusGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
93
120
|
/**
|
|
94
121
|
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
95
122
|
* @summary Factory Status
|
|
@@ -103,6 +130,13 @@ export interface FoxFactoryApiInterface {
|
|
|
103
130
|
* Factory Status
|
|
104
131
|
*/
|
|
105
132
|
factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
135
|
+
* @param {string} taskId
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
* @memberof FoxFactoryApiInterface
|
|
138
|
+
*/
|
|
139
|
+
getTaskFactoryTaskIdGetRequestOpts(requestParameters: GetTaskFactoryTaskIdGetRequest): Promise<runtime.RequestOpts>;
|
|
106
140
|
/**
|
|
107
141
|
* Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
|
|
108
142
|
* @summary Get Task
|
|
@@ -117,6 +151,13 @@ export interface FoxFactoryApiInterface {
|
|
|
117
151
|
* Get Task
|
|
118
152
|
*/
|
|
119
153
|
getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
156
|
+
* @param {string} [deviceId]
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
* @memberof FoxFactoryApiInterface
|
|
159
|
+
*/
|
|
160
|
+
listTasksFactoryGetRequestOpts(requestParameters: ListTasksFactoryGetRequest): Promise<runtime.RequestOpts>;
|
|
120
161
|
/**
|
|
121
162
|
* Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
|
|
122
163
|
* @summary List Tasks
|
|
@@ -131,6 +172,13 @@ export interface FoxFactoryApiInterface {
|
|
|
131
172
|
* List Tasks
|
|
132
173
|
*/
|
|
133
174
|
listTasksFactoryGet(requestParameters: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
177
|
+
* @param {NewBuildTaskBody} newBuildTaskBody
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
* @memberof FoxFactoryApiInterface
|
|
180
|
+
*/
|
|
181
|
+
newTaskFactoryPostRequestOpts(requestParameters: NewTaskFactoryPostRequest): Promise<runtime.RequestOpts>;
|
|
134
182
|
/**
|
|
135
183
|
* Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
|
|
136
184
|
* @summary New Task
|
|
@@ -145,6 +193,14 @@ export interface FoxFactoryApiInterface {
|
|
|
145
193
|
* New Task
|
|
146
194
|
*/
|
|
147
195
|
newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
196
|
+
/**
|
|
197
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
198
|
+
* @param {string} taskId
|
|
199
|
+
* @param {TaskUpdateBody} taskUpdateBody
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
* @memberof FoxFactoryApiInterface
|
|
202
|
+
*/
|
|
203
|
+
updateTaskFactoryTaskIdPatchRequestOpts(requestParameters: UpdateTaskFactoryTaskIdPatchRequest): Promise<runtime.RequestOpts>;
|
|
148
204
|
/**
|
|
149
205
|
* Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
|
|
150
206
|
* @summary Update Task
|
|
@@ -160,6 +216,13 @@ export interface FoxFactoryApiInterface {
|
|
|
160
216
|
* Update Task
|
|
161
217
|
*/
|
|
162
218
|
updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
219
|
+
/**
|
|
220
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
221
|
+
* @param {string} body
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
* @memberof FoxFactoryApiInterface
|
|
224
|
+
*/
|
|
225
|
+
updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest): Promise<runtime.RequestOpts>;
|
|
163
226
|
/**
|
|
164
227
|
* Endpoint for FoxFactory worker to update its status.
|
|
165
228
|
* @summary Update Worker Status
|
|
@@ -174,11 +237,20 @@ export interface FoxFactoryApiInterface {
|
|
|
174
237
|
* Update Worker Status
|
|
175
238
|
*/
|
|
176
239
|
updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
242
|
+
* @param {string} taskId
|
|
243
|
+
* @param {string} artifact
|
|
244
|
+
* @param {string} md5Hash
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
* @memberof FoxFactoryApiInterface
|
|
247
|
+
*/
|
|
248
|
+
uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest): Promise<runtime.RequestOpts>;
|
|
177
249
|
/**
|
|
178
250
|
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
179
251
|
* @summary Upload Artifact
|
|
180
252
|
* @param {string} taskId
|
|
181
|
-
* @param {
|
|
253
|
+
* @param {string} artifact
|
|
182
254
|
* @param {string} md5Hash
|
|
183
255
|
* @param {*} [options] Override http request option.
|
|
184
256
|
* @throws {RequiredError}
|
|
@@ -195,6 +267,10 @@ export interface FoxFactoryApiInterface {
|
|
|
195
267
|
*
|
|
196
268
|
*/
|
|
197
269
|
export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInterface {
|
|
270
|
+
/**
|
|
271
|
+
* Creates request options for cancelTaskFactoryTaskIdCancelPost without sending the request
|
|
272
|
+
*/
|
|
273
|
+
cancelTaskFactoryTaskIdCancelPostRequestOpts(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest): Promise<runtime.RequestOpts>;
|
|
198
274
|
/**
|
|
199
275
|
* Cancels a build task given its identifier. The task\'s status is updated to indicate that it is in the process of cancellation. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
200
276
|
* Cancel Task
|
|
@@ -205,6 +281,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
205
281
|
* Cancel Task
|
|
206
282
|
*/
|
|
207
283
|
cancelTaskFactoryTaskIdCancelPost(requestParameters: CancelTaskFactoryTaskIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
284
|
+
/**
|
|
285
|
+
* Creates request options for deleteTaskFactoryTaskIdDelete without sending the request
|
|
286
|
+
*/
|
|
287
|
+
deleteTaskFactoryTaskIdDeleteRequestOpts(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest): Promise<runtime.RequestOpts>;
|
|
208
288
|
/**
|
|
209
289
|
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
210
290
|
* Delete Task
|
|
@@ -215,6 +295,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
215
295
|
* Delete Task
|
|
216
296
|
*/
|
|
217
297
|
deleteTaskFactoryTaskIdDelete(requestParameters: DeleteTaskFactoryTaskIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
298
|
+
/**
|
|
299
|
+
* Creates request options for downloadArtifactFactoryTaskIdArtifactGet without sending the request
|
|
300
|
+
*/
|
|
301
|
+
downloadArtifactFactoryTaskIdArtifactGetRequestOpts(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest): Promise<runtime.RequestOpts>;
|
|
218
302
|
/**
|
|
219
303
|
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
220
304
|
* Download Artifact
|
|
@@ -225,6 +309,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
225
309
|
* Download Artifact
|
|
226
310
|
*/
|
|
227
311
|
downloadArtifactFactoryTaskIdArtifactGet(requestParameters: DownloadArtifactFactoryTaskIdArtifactGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
312
|
+
/**
|
|
313
|
+
* Creates request options for factoryStatusFactoryStatusGet without sending the request
|
|
314
|
+
*/
|
|
315
|
+
factoryStatusFactoryStatusGetRequestOpts(): Promise<runtime.RequestOpts>;
|
|
228
316
|
/**
|
|
229
317
|
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
230
318
|
* Factory Status
|
|
@@ -235,6 +323,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
235
323
|
* Factory Status
|
|
236
324
|
*/
|
|
237
325
|
factoryStatusFactoryStatusGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FFStatusResponse>;
|
|
326
|
+
/**
|
|
327
|
+
* Creates request options for getTaskFactoryTaskIdGet without sending the request
|
|
328
|
+
*/
|
|
329
|
+
getTaskFactoryTaskIdGetRequestOpts(requestParameters: GetTaskFactoryTaskIdGetRequest): Promise<runtime.RequestOpts>;
|
|
238
330
|
/**
|
|
239
331
|
* Retrieves the details of a specific build task. This endpoint allows a user to fetch detailed information about a build task by its ID. Access to this endpoint is restricted to users with the \'maintainer\' or \'foxworker\' roles. Depending on the user\'s roles, returned task details may differ. Admin users will receive all task details, while others will have some fields excluded.
|
|
240
332
|
* Get Task
|
|
@@ -245,6 +337,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
245
337
|
* Get Task
|
|
246
338
|
*/
|
|
247
339
|
getTaskFactoryTaskIdGet(requestParameters: GetTaskFactoryTaskIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BuildTaskResponse>;
|
|
340
|
+
/**
|
|
341
|
+
* Creates request options for listTasksFactoryGet without sending the request
|
|
342
|
+
*/
|
|
343
|
+
listTasksFactoryGetRequestOpts(requestParameters: ListTasksFactoryGetRequest): Promise<runtime.RequestOpts>;
|
|
248
344
|
/**
|
|
249
345
|
* Get a list of all build tasks. This endpoint retrieves all build tasks from the database and returns them as a list of abbreviated responses. Parameters: device_id (ObjectId, optional): Filter tasks by device ID
|
|
250
346
|
* List Tasks
|
|
@@ -255,6 +351,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
255
351
|
* List Tasks
|
|
256
352
|
*/
|
|
257
353
|
listTasksFactoryGet(requestParameters?: ListTasksFactoryGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListResponseBuildTaskShortResponse>;
|
|
354
|
+
/**
|
|
355
|
+
* Creates request options for newTaskFactoryPost without sending the request
|
|
356
|
+
*/
|
|
357
|
+
newTaskFactoryPostRequestOpts(requestParameters: NewTaskFactoryPostRequest): Promise<runtime.RequestOpts>;
|
|
258
358
|
/**
|
|
259
359
|
* Handles the creation of a new build task including validations for the device existence and its connection to GitLab. It initializes a new task with a pending status and the required details, then saves it to the database before returning the task model.
|
|
260
360
|
* New Task
|
|
@@ -265,6 +365,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
265
365
|
* New Task
|
|
266
366
|
*/
|
|
267
367
|
newTaskFactoryPost(requestParameters: NewTaskFactoryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
368
|
+
/**
|
|
369
|
+
* Creates request options for updateTaskFactoryTaskIdPatch without sending the request
|
|
370
|
+
*/
|
|
371
|
+
updateTaskFactoryTaskIdPatchRequestOpts(requestParameters: UpdateTaskFactoryTaskIdPatchRequest): Promise<runtime.RequestOpts>;
|
|
268
372
|
/**
|
|
269
373
|
* Updates an existing build task by its unique identifier. The function allows updates to the task\'s status and logs. If the task\'s status is set to a value indicating completion, the finished timestamp is also updated. Allowed only for foxworker users.
|
|
270
374
|
* Update Task
|
|
@@ -275,6 +379,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
275
379
|
* Update Task
|
|
276
380
|
*/
|
|
277
381
|
updateTaskFactoryTaskIdPatch(requestParameters: UpdateTaskFactoryTaskIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
382
|
+
/**
|
|
383
|
+
* Creates request options for updateWorkerStatusFactoryUpdateStatusPost without sending the request
|
|
384
|
+
*/
|
|
385
|
+
updateWorkerStatusFactoryUpdateStatusPostRequestOpts(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest): Promise<runtime.RequestOpts>;
|
|
278
386
|
/**
|
|
279
387
|
* Endpoint for FoxFactory worker to update its status.
|
|
280
388
|
* Update Worker Status
|
|
@@ -285,6 +393,10 @@ export declare class FoxFactoryApi extends runtime.BaseAPI implements FoxFactory
|
|
|
285
393
|
* Update Worker Status
|
|
286
394
|
*/
|
|
287
395
|
updateWorkerStatusFactoryUpdateStatusPost(requestParameters: UpdateWorkerStatusFactoryUpdateStatusPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
|
|
396
|
+
/**
|
|
397
|
+
* Creates request options for uploadArtifactFactoryTaskIdArtifactPost without sending the request
|
|
398
|
+
*/
|
|
399
|
+
uploadArtifactFactoryTaskIdArtifactPostRequestOpts(requestParameters: UploadArtifactFactoryTaskIdArtifactPostRequest): Promise<runtime.RequestOpts>;
|
|
288
400
|
/**
|
|
289
401
|
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
290
402
|
* Upload Artifact
|