@orangefox-recovery/foxclient 5.2.0 → 5.2.1

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/docs/DeviceApi.md CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *https://api.orangefox.download*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getDeviceDevicesGetGet**](#getdevicedevicesgetget) | **GET** /devices/get | Get Device|
8
- |[**getDeviceShortDevicesDeviceIdGet**](#getdeviceshortdevicesdeviceidget) | **GET** /devices/{device_id} | Get Device Short|
9
- |[**getDevicesDevicesGet**](#getdevicesdevicesget) | **GET** /devices/ | Get Devices|
10
- |[**getOemsListOemsGet**](#getoemslistoemsget) | **GET** /oems/ | Get Oems List|
7
+ |[**getDevice**](#getdevice) | **GET** /devices/get | Get Device|
8
+ |[**getDeviceDeprecated**](#getdevicedeprecated) | **GET** /devices/{device_id} | Get Device Short|
9
+ |[**getDevices**](#getdevices) | **GET** /devices/ | Get Devices|
10
+ |[**getOems**](#getoems) | **GET** /oems/ | Get Oems|
11
11
 
12
- # **getDeviceDevicesGetGet**
13
- > DeviceResponse getDeviceDevicesGetGet()
12
+ # **getDevice**
13
+ > DeviceResponse getDevice()
14
14
 
15
15
  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.
16
16
 
@@ -31,7 +31,7 @@ let deviceId: ; // (optional) (default to undefined)
31
31
  let id: ; //Filter by Device ID (deprecated) (optional) (default to undefined)
32
32
  let codename: string; //Not recommended to use when you can (optional) (default to undefined)
33
33
 
34
- const { status, data } = await apiInstance.getDeviceDevicesGetGet(
34
+ const { status, data } = await apiInstance.getDevice(
35
35
  deviceId,
36
36
  id,
37
37
  codename
@@ -71,8 +71,8 @@ No authorization required
71
71
 
72
72
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
73
73
 
74
- # **getDeviceShortDevicesDeviceIdGet**
75
- > DeviceResponse getDeviceShortDevicesDeviceIdGet()
74
+ # **getDeviceDeprecated**
75
+ > DeviceResponse getDeviceDeprecated()
76
76
 
77
77
  Gets device info using device ID.
78
78
 
@@ -89,7 +89,7 @@ const apiInstance = new DeviceApi(configuration);
89
89
 
90
90
  let deviceId: string; // (default to undefined)
91
91
 
92
- const { status, data } = await apiInstance.getDeviceShortDevicesDeviceIdGet(
92
+ const { status, data } = await apiInstance.getDeviceDeprecated(
93
93
  deviceId
94
94
  );
95
95
  ```
@@ -124,8 +124,8 @@ No authorization required
124
124
 
125
125
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
126
126
 
127
- # **getDevicesDevicesGet**
128
- > ListResponseShortDeviceResponse getDevicesDevicesGet()
127
+ # **getDevices**
128
+ > ListResponseShortDeviceResponse getDevices()
129
129
 
130
130
  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.
131
131
 
@@ -152,7 +152,7 @@ let hasReleases: boolean; //Filter by has releases status (optional) (default to
152
152
  let skip: number; //Skip query results (optional) (default to undefined)
153
153
  let limit: number; //Limit query results (0 means unlimited) (optional) (default to undefined)
154
154
 
155
- const { status, data } = await apiInstance.getDevicesDevicesGet(
155
+ const { status, data } = await apiInstance.getDevices(
156
156
  id,
157
157
  id2,
158
158
  oemName,
@@ -207,8 +207,8 @@ No authorization required
207
207
 
208
208
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
209
209
 
210
- # **getOemsListOemsGet**
211
- > ListResponseStr getOemsListOemsGet()
210
+ # **getOems**
211
+ > ListResponseStr getOems()
212
212
 
213
213
  Lists all OEM names
214
214
 
@@ -223,7 +223,7 @@ import {
223
223
  const configuration = new Configuration();
224
224
  const apiInstance = new DeviceApi(configuration);
225
225
 
226
- const { status, data } = await apiInstance.getOemsListOemsGet();
226
+ const { status, data } = await apiInstance.getOems();
227
227
  ```
228
228
 
229
229
  ### Parameters
@@ -4,13 +4,13 @@ All URIs are relative to *https://api.orangefox.download*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getReleaseReleasesGetGet**](#getreleasereleasesgetget) | **GET** /releases/get | Get Release|
8
- |[**getReleaseShortReleasesReleaseIdGet**](#getreleaseshortreleasesreleaseidget) | **GET** /releases/{release_id} | Get Release Short|
9
- |[**getReleasesReleasesGet**](#getreleasesreleasesget) | **GET** /releases/ | Get Releases|
10
- |[**getUpdatesUpdatesLastKnownIdGet**](#getupdatesupdateslastknownidget) | **GET** /updates/{last_known_id} | Get Updates|
7
+ |[**getRelease**](#getrelease) | **GET** /releases/get | Get Release|
8
+ |[**getReleaseDeprecated**](#getreleasedeprecated) | **GET** /releases/{release_id} | Get Release Short|
9
+ |[**getReleases**](#getreleases) | **GET** /releases/ | Get Releases|
10
+ |[**getUpdatesDeprecated**](#getupdatesdeprecated) | **GET** /updates/{last_known_id} | Get Updates|
11
11
 
12
- # **getReleaseReleasesGetGet**
13
- > ReleaseResponse getReleaseReleasesGetGet()
12
+ # **getRelease**
13
+ > ReleaseResponse getRelease()
14
14
 
15
15
  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!
16
16
 
@@ -32,7 +32,7 @@ let id: ; //Release ID (deprecated) (optional) (default to undefined)
32
32
  let buildId: string; //Build ID, `ro.build.fox_id` prop (optional) (default to undefined)
33
33
  let filename: string; // (optional) (default to undefined)
34
34
 
35
- const { status, data } = await apiInstance.getReleaseReleasesGetGet(
35
+ const { status, data } = await apiInstance.getRelease(
36
36
  releaseId,
37
37
  id,
38
38
  buildId,
@@ -72,8 +72,8 @@ No authorization required
72
72
 
73
73
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
74
74
 
75
- # **getReleaseShortReleasesReleaseIdGet**
76
- > ReleaseResponse getReleaseShortReleasesReleaseIdGet()
75
+ # **getReleaseDeprecated**
76
+ > ReleaseResponse getReleaseDeprecated()
77
77
 
78
78
  Gets release information using the release ID, nothing to discuss really.
79
79
 
@@ -90,7 +90,7 @@ const apiInstance = new ReleaseApi(configuration);
90
90
 
91
91
  let releaseId: any; // (default to undefined)
92
92
 
93
- const { status, data } = await apiInstance.getReleaseShortReleasesReleaseIdGet(
93
+ const { status, data } = await apiInstance.getReleaseDeprecated(
94
94
  releaseId
95
95
  );
96
96
  ```
@@ -124,8 +124,8 @@ No authorization required
124
124
 
125
125
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
126
126
 
127
- # **getReleasesReleasesGet**
128
- > ResponseGetReleasesReleasesGet getReleasesReleasesGet()
127
+ # **getReleases**
128
+ > ResponseGetReleases getReleases()
129
129
 
130
130
  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.
131
131
 
@@ -158,7 +158,7 @@ let group: boolean; //Group releases by version + variant. This will change the
158
158
  let skip: number; //Skip query results (optional) (default to undefined)
159
159
  let limit: number; //Limit query results (0 means unlimited) (optional) (default to undefined)
160
160
 
161
- const { status, data } = await apiInstance.getReleasesReleasesGet(
161
+ const { status, data } = await apiInstance.getReleases(
162
162
  id,
163
163
  id2,
164
164
  buildId,
@@ -202,7 +202,7 @@ const { status, data } = await apiInstance.getReleasesReleasesGet(
202
202
 
203
203
  ### Return type
204
204
 
205
- **ResponseGetReleasesReleasesGet**
205
+ **ResponseGetReleases**
206
206
 
207
207
  ### Authorization
208
208
 
@@ -223,8 +223,8 @@ No authorization required
223
223
 
224
224
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
225
225
 
226
- # **getUpdatesUpdatesLastKnownIdGet**
227
- > ListResponseShortReleaseResponse getUpdatesUpdatesLastKnownIdGet()
226
+ # **getUpdatesDeprecated**
227
+ > ListResponseShortReleaseResponse getUpdatesDeprecated()
228
228
 
229
229
  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!
230
230
 
@@ -246,7 +246,7 @@ let releaseType: Array<ReleaseType>; //Filter by release type (legacy) (optional
246
246
  let skip: number; //Skip query results (optional) (default to undefined)
247
247
  let limit: number; //Limit query results (0 means unlimited) (optional) (default to undefined)
248
248
 
249
- const { status, data } = await apiInstance.getUpdatesUpdatesLastKnownIdGet(
249
+ const { status, data } = await apiInstance.getUpdatesDeprecated(
250
250
  lastKnownId,
251
251
  deviceId,
252
252
  type,
@@ -1,4 +1,4 @@
1
- # ResponseGetReleasesReleasesGet
1
+ # ResponseGetReleases
2
2
 
3
3
 
4
4
  ## Properties
@@ -11,9 +11,9 @@ Name | Type | Description | Notes
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import { ResponseGetReleasesReleasesGet } from '@orangefox-recovery/foxclient';
14
+ import { ResponseGetReleases } from '@orangefox-recovery/foxclient';
15
15
 
16
- const instance: ResponseGetReleasesReleasesGet = {
16
+ const instance: ResponseGetReleases = {
17
17
  data,
18
18
  count,
19
19
  };
package/docs/StatsApi.md CHANGED
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.orangefox.download*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**publicStatsStatsGet**](#publicstatsstatsget) | **GET** /stats/ | Public Stats|
7
+ |[**getPublicStats**](#getpublicstats) | **GET** /stats/ | Public Stats|
8
8
 
9
- # **publicStatsStatsGet**
10
- > GlobalStatsAggregationModel publicStatsStatsGet()
9
+ # **getPublicStats**
10
+ > GlobalStatsAggregationModel getPublicStats()
11
11
 
12
12
  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.
13
13
 
@@ -22,7 +22,7 @@ import {
22
22
  const configuration = new Configuration();
23
23
  const apiInstance = new StatsApi(configuration);
24
24
 
25
- const { status, data } = await apiInstance.publicStatsStatsGet();
25
+ const { status, data } = await apiInstance.getPublicStats();
26
26
  ```
27
27
 
28
28
  ### Parameters
package/index.ts CHANGED
@@ -2,9 +2,9 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Fox API
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 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
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.2.0
7
+ * The version of the OpenAPI document: 5.2.1
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangefox-recovery/foxclient",
3
- "version": "5.2.0",
3
+ "version": "5.2.1",
4
4
  "description": "OpenAPI client for @orangefox-recovery/foxclient",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {