@orangefox-recovery/foxinternalclient 5.3.3 → 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 +1 -1
- package/dist/esm/models/DeviceInternalResponse.js +1 -1
- package/dist/esm/models/DeviceResponse.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/models/DeviceInternalResponse.js +1 -1
- package/dist/models/DeviceResponse.d.ts +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/models/DeviceResponse.ts +1 -1
- 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 +1 -1
- 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
package/src/apis/PasteApi.ts
CHANGED
|
@@ -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).
|
|
@@ -43,6 +43,14 @@ export interface GetPastePastePasteIdGetRequest {
|
|
|
43
43
|
* @interface PasteApiInterface
|
|
44
44
|
*/
|
|
45
45
|
export interface PasteApiInterface {
|
|
46
|
+
/**
|
|
47
|
+
* Creates request options for createPastePastePost without sending the request
|
|
48
|
+
* @param {PasteInput} pasteInput
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
* @memberof PasteApiInterface
|
|
51
|
+
*/
|
|
52
|
+
createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts>;
|
|
53
|
+
|
|
46
54
|
/**
|
|
47
55
|
* Create a new paste.
|
|
48
56
|
* @summary Create Paste
|
|
@@ -59,6 +67,14 @@ export interface PasteApiInterface {
|
|
|
59
67
|
*/
|
|
60
68
|
createPastePastePost(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PasteOutput>;
|
|
61
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for getPastePastePasteIdGet without sending the request
|
|
72
|
+
* @param {string} pasteId
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof PasteApiInterface
|
|
75
|
+
*/
|
|
76
|
+
getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts>;
|
|
77
|
+
|
|
62
78
|
/**
|
|
63
79
|
* Get a paste by ID.
|
|
64
80
|
* @summary Get Paste
|
|
@@ -83,10 +99,9 @@ export interface PasteApiInterface {
|
|
|
83
99
|
export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
84
100
|
|
|
85
101
|
/**
|
|
86
|
-
*
|
|
87
|
-
* Create Paste
|
|
102
|
+
* Creates request options for createPastePastePost without sending the request
|
|
88
103
|
*/
|
|
89
|
-
async
|
|
104
|
+
async createPastePastePostRequestOpts(requestParameters: CreatePastePastePostRequest): Promise<runtime.RequestOpts> {
|
|
90
105
|
if (requestParameters['pasteInput'] == null) {
|
|
91
106
|
throw new runtime.RequiredError(
|
|
92
107
|
'pasteInput',
|
|
@@ -103,13 +118,22 @@ export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
|
103
118
|
|
|
104
119
|
let urlPath = `/paste/`;
|
|
105
120
|
|
|
106
|
-
|
|
121
|
+
return {
|
|
107
122
|
path: urlPath,
|
|
108
123
|
method: 'POST',
|
|
109
124
|
headers: headerParameters,
|
|
110
125
|
query: queryParameters,
|
|
111
126
|
body: PasteInputToJSON(requestParameters['pasteInput']),
|
|
112
|
-
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Create a new paste.
|
|
132
|
+
* Create Paste
|
|
133
|
+
*/
|
|
134
|
+
async createPastePastePostRaw(requestParameters: CreatePastePastePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>> {
|
|
135
|
+
const requestOptions = await this.createPastePastePostRequestOpts(requestParameters);
|
|
136
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
113
137
|
|
|
114
138
|
return new runtime.JSONApiResponse(response, (jsonValue) => PasteOutputFromJSON(jsonValue));
|
|
115
139
|
}
|
|
@@ -124,10 +148,9 @@ export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
|
124
148
|
}
|
|
125
149
|
|
|
126
150
|
/**
|
|
127
|
-
*
|
|
128
|
-
* Get Paste
|
|
151
|
+
* Creates request options for getPastePastePasteIdGet without sending the request
|
|
129
152
|
*/
|
|
130
|
-
async
|
|
153
|
+
async getPastePastePasteIdGetRequestOpts(requestParameters: GetPastePastePasteIdGetRequest): Promise<runtime.RequestOpts> {
|
|
131
154
|
if (requestParameters['pasteId'] == null) {
|
|
132
155
|
throw new runtime.RequiredError(
|
|
133
156
|
'pasteId',
|
|
@@ -143,12 +166,21 @@ export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
|
143
166
|
let urlPath = `/paste/{paste_id}`;
|
|
144
167
|
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
145
168
|
|
|
146
|
-
|
|
169
|
+
return {
|
|
147
170
|
path: urlPath,
|
|
148
171
|
method: 'GET',
|
|
149
172
|
headers: headerParameters,
|
|
150
173
|
query: queryParameters,
|
|
151
|
-
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Get a paste by ID.
|
|
179
|
+
* Get Paste
|
|
180
|
+
*/
|
|
181
|
+
async getPastePastePasteIdGetRaw(requestParameters: GetPastePastePasteIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PasteOutput>> {
|
|
182
|
+
const requestOptions = await this.getPastePastePasteIdGetRequestOpts(requestParameters);
|
|
183
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
152
184
|
|
|
153
185
|
return new runtime.JSONApiResponse(response, (jsonValue) => PasteOutputFromJSON(jsonValue));
|
|
154
186
|
}
|
package/src/apis/ReleaseApi.ts
CHANGED
|
@@ -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).
|
|
@@ -83,6 +83,17 @@ export interface GetUpdatesDeprecatedRequest {
|
|
|
83
83
|
* @interface ReleaseApiInterface
|
|
84
84
|
*/
|
|
85
85
|
export interface ReleaseApiInterface {
|
|
86
|
+
/**
|
|
87
|
+
* Creates request options for getRelease without sending the request
|
|
88
|
+
* @param {string} [releaseId] Release ID
|
|
89
|
+
* @param {string} [id] Release ID (deprecated)
|
|
90
|
+
* @param {string} [buildId] Build ID, `ro.build.fox_id` prop
|
|
91
|
+
* @param {string} [filename]
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof ReleaseApiInterface
|
|
94
|
+
*/
|
|
95
|
+
getReleaseRequestOpts(requestParameters: GetReleaseRequest): Promise<runtime.RequestOpts>;
|
|
96
|
+
|
|
86
97
|
/**
|
|
87
98
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
88
99
|
* @summary Get Release
|
|
@@ -102,6 +113,15 @@ export interface ReleaseApiInterface {
|
|
|
102
113
|
*/
|
|
103
114
|
getRelease(requestParameters: GetReleaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReleaseResponse>;
|
|
104
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Creates request options for getReleaseDeprecated without sending the request
|
|
118
|
+
* @param {string} releaseId
|
|
119
|
+
* @deprecated
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
* @memberof ReleaseApiInterface
|
|
122
|
+
*/
|
|
123
|
+
getReleaseDeprecatedRequestOpts(requestParameters: GetReleaseDeprecatedRequest): Promise<runtime.RequestOpts>;
|
|
124
|
+
|
|
105
125
|
/**
|
|
106
126
|
* Gets release information using the release ID, nothing to discuss really.
|
|
107
127
|
* @summary Get Release Short
|
|
@@ -121,7 +141,30 @@ export interface ReleaseApiInterface {
|
|
|
121
141
|
getReleaseDeprecated(requestParameters: GetReleaseDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReleaseResponse>;
|
|
122
142
|
|
|
123
143
|
/**
|
|
124
|
-
*
|
|
144
|
+
* Creates request options for getReleases without sending the request
|
|
145
|
+
* @param {Array<string>} [id] Filter by Release IDs
|
|
146
|
+
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
147
|
+
* @param {Array<string>} [buildId] Filter by Build IDs
|
|
148
|
+
* @param {Array<string>} [deviceId] Filter by Device IDs
|
|
149
|
+
* @param {Array<string>} [maintainerId] Filter by Maintainer IDs
|
|
150
|
+
* @param {Array<string>} [codename] Filter by device codenames
|
|
151
|
+
* @param {Array<string>} [version] Filter by release version
|
|
152
|
+
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
153
|
+
* @param {boolean} [archived] Filter by the archived status
|
|
154
|
+
* @param {boolean} [freezed] Filter by the freezed status
|
|
155
|
+
* @param {string} [afterReleaseId] Show releases after the provided one
|
|
156
|
+
* @param {number} [afterDate] Show releases after the provided timestamp
|
|
157
|
+
* @param {ReleasesSort} [sort] Sort mode
|
|
158
|
+
* @param {boolean} [group] Group releases by version + variant. This will change the response!
|
|
159
|
+
* @param {number} [skip] Skip query results
|
|
160
|
+
* @param {number} [limit] Limit query results (0 means unlimited)
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
* @memberof ReleaseApiInterface
|
|
163
|
+
*/
|
|
164
|
+
getReleasesRequestOpts(requestParameters: GetReleasesRequest): Promise<runtime.RequestOpts>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
125
168
|
* @summary Get Releases
|
|
126
169
|
* @param {Array<string>} [id] Filter by Release IDs
|
|
127
170
|
* @param {Array<string>} [id2] Filter by Release IDs (deprecated)
|
|
@@ -146,11 +189,25 @@ export interface ReleaseApiInterface {
|
|
|
146
189
|
getReleasesRaw(requestParameters: GetReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseGetReleases>>;
|
|
147
190
|
|
|
148
191
|
/**
|
|
149
|
-
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one
|
|
192
|
+
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
150
193
|
* Get Releases
|
|
151
194
|
*/
|
|
152
195
|
getReleases(requestParameters: GetReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseGetReleases>;
|
|
153
196
|
|
|
197
|
+
/**
|
|
198
|
+
* Creates request options for getUpdatesDeprecated without sending the request
|
|
199
|
+
* @param {string} lastKnownId
|
|
200
|
+
* @param {Array<string>} [deviceId] Filter by device ID
|
|
201
|
+
* @param {Array<ReleaseType>} [type] Filter by release type
|
|
202
|
+
* @param {Array<ReleaseType>} [releaseType] Filter by release type (legacy)
|
|
203
|
+
* @param {number} [skip] Skip query results
|
|
204
|
+
* @param {number} [limit] Limit query results (0 means unlimited)
|
|
205
|
+
* @deprecated
|
|
206
|
+
* @throws {RequiredError}
|
|
207
|
+
* @memberof ReleaseApiInterface
|
|
208
|
+
*/
|
|
209
|
+
getUpdatesDeprecatedRequestOpts(requestParameters: GetUpdatesDeprecatedRequest): Promise<runtime.RequestOpts>;
|
|
210
|
+
|
|
154
211
|
/**
|
|
155
212
|
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
156
213
|
* @summary Get Updates
|
|
@@ -182,10 +239,9 @@ export interface ReleaseApiInterface {
|
|
|
182
239
|
export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
183
240
|
|
|
184
241
|
/**
|
|
185
|
-
*
|
|
186
|
-
* Get Release
|
|
242
|
+
* Creates request options for getRelease without sending the request
|
|
187
243
|
*/
|
|
188
|
-
async
|
|
244
|
+
async getReleaseRequestOpts(requestParameters: GetReleaseRequest): Promise<runtime.RequestOpts> {
|
|
189
245
|
const queryParameters: any = {};
|
|
190
246
|
|
|
191
247
|
if (requestParameters['releaseId'] != null) {
|
|
@@ -209,12 +265,21 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
209
265
|
|
|
210
266
|
let urlPath = `/releases/get`;
|
|
211
267
|
|
|
212
|
-
|
|
268
|
+
return {
|
|
213
269
|
path: urlPath,
|
|
214
270
|
method: 'GET',
|
|
215
271
|
headers: headerParameters,
|
|
216
272
|
query: queryParameters,
|
|
217
|
-
}
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
278
|
+
* Get Release
|
|
279
|
+
*/
|
|
280
|
+
async getReleaseRaw(requestParameters: GetReleaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReleaseResponse>> {
|
|
281
|
+
const requestOptions = await this.getReleaseRequestOpts(requestParameters);
|
|
282
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
218
283
|
|
|
219
284
|
return new runtime.JSONApiResponse(response, (jsonValue) => ReleaseResponseFromJSON(jsonValue));
|
|
220
285
|
}
|
|
@@ -229,11 +294,10 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
229
294
|
}
|
|
230
295
|
|
|
231
296
|
/**
|
|
232
|
-
*
|
|
233
|
-
* Get Release Short
|
|
297
|
+
* Creates request options for getReleaseDeprecated without sending the request
|
|
234
298
|
* @deprecated
|
|
235
299
|
*/
|
|
236
|
-
async
|
|
300
|
+
async getReleaseDeprecatedRequestOpts(requestParameters: GetReleaseDeprecatedRequest): Promise<runtime.RequestOpts> {
|
|
237
301
|
if (requestParameters['releaseId'] == null) {
|
|
238
302
|
throw new runtime.RequiredError(
|
|
239
303
|
'releaseId',
|
|
@@ -249,12 +313,22 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
249
313
|
let urlPath = `/releases/{release_id}`;
|
|
250
314
|
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
251
315
|
|
|
252
|
-
|
|
316
|
+
return {
|
|
253
317
|
path: urlPath,
|
|
254
318
|
method: 'GET',
|
|
255
319
|
headers: headerParameters,
|
|
256
320
|
query: queryParameters,
|
|
257
|
-
}
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Gets release information using the release ID, nothing to discuss really.
|
|
326
|
+
* Get Release Short
|
|
327
|
+
* @deprecated
|
|
328
|
+
*/
|
|
329
|
+
async getReleaseDeprecatedRaw(requestParameters: GetReleaseDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReleaseResponse>> {
|
|
330
|
+
const requestOptions = await this.getReleaseDeprecatedRequestOpts(requestParameters);
|
|
331
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
258
332
|
|
|
259
333
|
return new runtime.JSONApiResponse(response, (jsonValue) => ReleaseResponseFromJSON(jsonValue));
|
|
260
334
|
}
|
|
@@ -270,10 +344,9 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
270
344
|
}
|
|
271
345
|
|
|
272
346
|
/**
|
|
273
|
-
*
|
|
274
|
-
* Get Releases
|
|
347
|
+
* Creates request options for getReleases without sending the request
|
|
275
348
|
*/
|
|
276
|
-
async
|
|
349
|
+
async getReleasesRequestOpts(requestParameters: GetReleasesRequest): Promise<runtime.RequestOpts> {
|
|
277
350
|
const queryParameters: any = {};
|
|
278
351
|
|
|
279
352
|
if (requestParameters['id'] != null) {
|
|
@@ -345,18 +418,27 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
345
418
|
|
|
346
419
|
let urlPath = `/releases/`;
|
|
347
420
|
|
|
348
|
-
|
|
421
|
+
return {
|
|
349
422
|
path: urlPath,
|
|
350
423
|
method: 'GET',
|
|
351
424
|
headers: headerParameters,
|
|
352
425
|
query: queryParameters,
|
|
353
|
-
}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
431
|
+
* Get Releases
|
|
432
|
+
*/
|
|
433
|
+
async getReleasesRaw(requestParameters: GetReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseGetReleases>> {
|
|
434
|
+
const requestOptions = await this.getReleasesRequestOpts(requestParameters);
|
|
435
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
354
436
|
|
|
355
437
|
return new runtime.JSONApiResponse(response, (jsonValue) => ResponseGetReleasesFromJSON(jsonValue));
|
|
356
438
|
}
|
|
357
439
|
|
|
358
440
|
/**
|
|
359
|
-
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one
|
|
441
|
+
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
360
442
|
* Get Releases
|
|
361
443
|
*/
|
|
362
444
|
async getReleases(requestParameters: GetReleasesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseGetReleases> {
|
|
@@ -365,11 +447,10 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
365
447
|
}
|
|
366
448
|
|
|
367
449
|
/**
|
|
368
|
-
*
|
|
369
|
-
* Get Updates
|
|
450
|
+
* Creates request options for getUpdatesDeprecated without sending the request
|
|
370
451
|
* @deprecated
|
|
371
452
|
*/
|
|
372
|
-
async
|
|
453
|
+
async getUpdatesDeprecatedRequestOpts(requestParameters: GetUpdatesDeprecatedRequest): Promise<runtime.RequestOpts> {
|
|
373
454
|
if (requestParameters['lastKnownId'] == null) {
|
|
374
455
|
throw new runtime.RequiredError(
|
|
375
456
|
'lastKnownId',
|
|
@@ -405,12 +486,22 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
405
486
|
let urlPath = `/updates/{last_known_id}`;
|
|
406
487
|
urlPath = urlPath.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId'])));
|
|
407
488
|
|
|
408
|
-
|
|
489
|
+
return {
|
|
409
490
|
path: urlPath,
|
|
410
491
|
method: 'GET',
|
|
411
492
|
headers: headerParameters,
|
|
412
493
|
query: queryParameters,
|
|
413
|
-
}
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Get updates method. Returns all new releases with release IDs. For example, \"/updates/<id>\" will return a list of all releases that were created after. You can also use \"device_id\" or / and \"release_type\" params. The first one will filter releases by specific devices, the second one will filter by release type. This can be useful, for example, if you want to notify users only with stable releases for this specific device. Warning: This method is obsolete! Please use /release/?after_release_id= instead!
|
|
499
|
+
* Get Updates
|
|
500
|
+
* @deprecated
|
|
501
|
+
*/
|
|
502
|
+
async getUpdatesDeprecatedRaw(requestParameters: GetUpdatesDeprecatedRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListResponseShortReleaseResponse>> {
|
|
503
|
+
const requestOptions = await this.getUpdatesDeprecatedRequestOpts(requestParameters);
|
|
504
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
414
505
|
|
|
415
506
|
return new runtime.JSONApiResponse(response, (jsonValue) => ListResponseShortReleaseResponseFromJSON(jsonValue));
|
|
416
507
|
}
|
package/src/apis/StatsApi.ts
CHANGED
|
@@ -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).
|
|
@@ -29,6 +29,13 @@ import {
|
|
|
29
29
|
* @interface StatsApiInterface
|
|
30
30
|
*/
|
|
31
31
|
export interface StatsApiInterface {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getPublicStats without sending the request
|
|
34
|
+
* @throws {RequiredError}
|
|
35
|
+
* @memberof StatsApiInterface
|
|
36
|
+
*/
|
|
37
|
+
getPublicStatsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
38
|
+
|
|
32
39
|
/**
|
|
33
40
|
* Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
|
|
34
41
|
* @summary Public Stats
|
|
@@ -52,10 +59,9 @@ export interface StatsApiInterface {
|
|
|
52
59
|
export class StatsApi extends runtime.BaseAPI implements StatsApiInterface {
|
|
53
60
|
|
|
54
61
|
/**
|
|
55
|
-
*
|
|
56
|
-
* Public Stats
|
|
62
|
+
* Creates request options for getPublicStats without sending the request
|
|
57
63
|
*/
|
|
58
|
-
async
|
|
64
|
+
async getPublicStatsRequestOpts(): Promise<runtime.RequestOpts> {
|
|
59
65
|
const queryParameters: any = {};
|
|
60
66
|
|
|
61
67
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -63,12 +69,21 @@ export class StatsApi extends runtime.BaseAPI implements StatsApiInterface {
|
|
|
63
69
|
|
|
64
70
|
let urlPath = `/stats/`;
|
|
65
71
|
|
|
66
|
-
|
|
72
|
+
return {
|
|
67
73
|
path: urlPath,
|
|
68
74
|
method: 'GET',
|
|
69
75
|
headers: headerParameters,
|
|
70
76
|
query: queryParameters,
|
|
71
|
-
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
|
|
82
|
+
* Public Stats
|
|
83
|
+
*/
|
|
84
|
+
async getPublicStatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalStatsAggregationModel>> {
|
|
85
|
+
const requestOptions = await this.getPublicStatsRequestOpts();
|
|
86
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
72
87
|
|
|
73
88
|
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalStatsAggregationModelFromJSON(jsonValue));
|
|
74
89
|
}
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|
|
@@ -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).
|