@orangefox-recovery/foxclient 5.2.8 → 5.3.2

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