@orangefox-recovery/foxclient 5.4.0 → 6.0.4

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 (212) hide show
  1. package/.openapi-generator/FILES +20 -22
  2. package/README.md +29 -37
  3. package/dist/apis/DeviceApi.d.ts +89 -107
  4. package/dist/apis/DeviceApi.js +60 -71
  5. package/dist/apis/PasteApi.d.ts +33 -39
  6. package/dist/apis/PasteApi.js +23 -27
  7. package/dist/apis/ReleaseApi.d.ts +145 -143
  8. package/dist/apis/ReleaseApi.js +108 -95
  9. package/dist/apis/ReportApi.d.ts +64 -0
  10. package/dist/apis/ReportApi.js +89 -0
  11. package/dist/apis/StatsApi.d.ts +19 -19
  12. package/dist/apis/StatsApi.js +14 -14
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/esm/apis/DeviceApi.d.ts +89 -107
  16. package/dist/esm/apis/DeviceApi.js +61 -72
  17. package/dist/esm/apis/PasteApi.d.ts +33 -39
  18. package/dist/esm/apis/PasteApi.js +24 -28
  19. package/dist/esm/apis/ReleaseApi.d.ts +145 -143
  20. package/dist/esm/apis/ReleaseApi.js +109 -96
  21. package/dist/esm/apis/ReportApi.d.ts +64 -0
  22. package/dist/esm/apis/ReportApi.js +85 -0
  23. package/dist/esm/apis/StatsApi.d.ts +19 -19
  24. package/dist/esm/apis/StatsApi.js +15 -15
  25. package/dist/esm/apis/index.d.ts +1 -0
  26. package/dist/esm/apis/index.js +1 -0
  27. package/dist/esm/models/DeviceResponse.d.ts +33 -29
  28. package/dist/esm/models/DeviceResponse.js +34 -26
  29. package/dist/esm/models/ErrorResponse.d.ts +32 -0
  30. package/dist/esm/models/ErrorResponse.js +43 -0
  31. package/dist/esm/models/GlobalStatsResponse.d.ts +52 -0
  32. package/dist/esm/models/{GlobalStatsAggregationModel.js → GlobalStatsResponse.js} +14 -14
  33. package/dist/esm/models/ListResponseReleaseResponse.d.ts +8 -8
  34. package/dist/esm/models/ListResponseReleaseResponse.js +8 -7
  35. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  36. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +114 -0
  37. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +8 -8
  38. package/dist/esm/models/ListResponseShortDeviceResponse.js +8 -7
  39. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  40. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +85 -0
  41. package/dist/esm/models/ListResponseString.d.ts +38 -0
  42. package/dist/esm/models/ListResponseString.js +47 -0
  43. package/dist/esm/models/MaintainerShortResponse.d.ts +50 -0
  44. package/dist/esm/models/MaintainerShortResponse.js +55 -0
  45. package/dist/esm/models/NewReportRequest.d.ts +58 -0
  46. package/dist/esm/models/NewReportRequest.js +55 -0
  47. package/dist/esm/models/PasteInput.d.ts +3 -3
  48. package/dist/esm/models/PasteInput.js +2 -2
  49. package/dist/esm/models/PasteResponse.d.ts +50 -0
  50. package/dist/esm/models/PasteResponse.js +53 -0
  51. package/dist/esm/models/RecoveryImgResponse.d.ts +6 -6
  52. package/dist/esm/models/RecoveryImgResponse.js +6 -6
  53. package/dist/esm/models/ReleaseGroupsResponse.d.ts +2 -2
  54. package/dist/esm/models/ReleaseGroupsResponse.js +2 -2
  55. package/dist/esm/models/ReleaseResponse.d.ts +46 -42
  56. package/dist/esm/models/ReleaseResponse.js +45 -44
  57. package/dist/esm/models/ShortDeviceResponse.d.ts +29 -25
  58. package/dist/esm/models/ShortDeviceResponse.js +26 -18
  59. package/dist/esm/models/ShortReleaseResponse.d.ts +31 -27
  60. package/dist/esm/models/ShortReleaseResponse.js +35 -32
  61. package/dist/esm/models/TokenResponse.d.ts +38 -0
  62. package/dist/esm/models/TokenResponse.js +47 -0
  63. package/dist/esm/models/index.d.ts +9 -11
  64. package/dist/esm/models/index.js +9 -11
  65. package/dist/esm/runtime.d.ts +2 -2
  66. package/dist/esm/runtime.js +2 -2
  67. package/dist/models/DeviceResponse.d.ts +33 -29
  68. package/dist/models/DeviceResponse.js +34 -26
  69. package/dist/models/ErrorResponse.d.ts +32 -0
  70. package/dist/models/ErrorResponse.js +50 -0
  71. package/dist/models/GlobalStatsResponse.d.ts +52 -0
  72. package/dist/models/GlobalStatsResponse.js +62 -0
  73. package/dist/models/ListResponseReleaseResponse.d.ts +8 -8
  74. package/dist/models/ListResponseReleaseResponse.js +8 -7
  75. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +155 -0
  76. package/dist/models/ListResponseReleaseResponseDataInner.js +121 -0
  77. package/dist/models/ListResponseShortDeviceResponse.d.ts +8 -8
  78. package/dist/models/ListResponseShortDeviceResponse.js +8 -7
  79. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +98 -0
  80. package/dist/models/ListResponseShortDeviceResponseDataInner.js +92 -0
  81. package/dist/models/ListResponseString.d.ts +38 -0
  82. package/dist/models/ListResponseString.js +54 -0
  83. package/dist/models/MaintainerShortResponse.d.ts +50 -0
  84. package/dist/models/MaintainerShortResponse.js +62 -0
  85. package/dist/models/NewReportRequest.d.ts +58 -0
  86. package/dist/models/NewReportRequest.js +62 -0
  87. package/dist/models/PasteInput.d.ts +3 -3
  88. package/dist/models/PasteInput.js +2 -2
  89. package/dist/models/PasteResponse.d.ts +50 -0
  90. package/dist/models/PasteResponse.js +60 -0
  91. package/dist/models/RecoveryImgResponse.d.ts +6 -6
  92. package/dist/models/RecoveryImgResponse.js +6 -6
  93. package/dist/models/ReleaseGroupsResponse.d.ts +2 -2
  94. package/dist/models/ReleaseGroupsResponse.js +2 -2
  95. package/dist/models/ReleaseResponse.d.ts +46 -42
  96. package/dist/models/ReleaseResponse.js +45 -44
  97. package/dist/models/ShortDeviceResponse.d.ts +29 -25
  98. package/dist/models/ShortDeviceResponse.js +26 -18
  99. package/dist/models/ShortReleaseResponse.d.ts +31 -27
  100. package/dist/models/ShortReleaseResponse.js +35 -32
  101. package/dist/models/TokenResponse.d.ts +38 -0
  102. package/dist/models/TokenResponse.js +54 -0
  103. package/dist/models/index.d.ts +9 -11
  104. package/dist/models/index.js +9 -11
  105. package/dist/runtime.d.ts +2 -2
  106. package/dist/runtime.js +2 -2
  107. package/docs/DeviceApi.md +83 -90
  108. package/docs/DeviceResponse.md +19 -17
  109. package/docs/{LocationInner.md → ErrorResponse.md} +6 -4
  110. package/docs/{GlobalStatsAggregationModel.md → GlobalStatsResponse.md} +6 -6
  111. package/docs/ListResponseReleaseResponse.md +2 -2
  112. package/docs/ListResponseReleaseResponseDataInner.md +74 -0
  113. package/docs/ListResponseShortDeviceResponse.md +2 -2
  114. package/docs/ListResponseShortDeviceResponseDataInner.md +56 -0
  115. package/docs/{ListResponseStr.md → ListResponseString.md} +6 -6
  116. package/docs/{MaintainerShortModel.md → MaintainerShortResponse.md} +9 -7
  117. package/docs/{HTTPValidationError.md → NewReportRequest.md} +14 -6
  118. package/docs/PasteApi.md +25 -29
  119. package/docs/{PasteOutput.md → PasteResponse.md} +7 -7
  120. package/docs/RecoveryImgResponse.md +2 -2
  121. package/docs/ReleaseApi.md +176 -118
  122. package/docs/ReleaseResponse.md +28 -26
  123. package/docs/ReportApi.md +84 -0
  124. package/docs/ShortDeviceResponse.md +14 -12
  125. package/docs/ShortReleaseResponse.md +22 -20
  126. package/docs/StatsApi.md +10 -10
  127. package/docs/{ReleasesSort.md → TokenResponse.md} +8 -4
  128. package/package.json +3 -12
  129. package/src/apis/DeviceApi.ts +130 -148
  130. package/src/apis/PasteApi.ts +47 -53
  131. package/src/apis/ReleaseApi.ts +237 -228
  132. package/src/apis/ReportApi.ts +139 -0
  133. package/src/apis/StatsApi.ts +28 -25
  134. package/src/apis/index.ts +1 -0
  135. package/src/models/DeviceResponse.ts +65 -55
  136. package/src/models/ErrorResponse.ts +66 -0
  137. package/src/models/GlobalStatsResponse.ts +93 -0
  138. package/src/models/ListResponseReleaseResponse.ts +17 -16
  139. package/src/models/ListResponseReleaseResponseDataInner.ts +249 -0
  140. package/src/models/ListResponseShortDeviceResponse.ts +17 -16
  141. package/src/models/ListResponseShortDeviceResponseDataInner.ts +164 -0
  142. package/src/models/ListResponseString.ts +75 -0
  143. package/src/models/MaintainerShortResponse.ts +93 -0
  144. package/src/models/NewReportRequest.ts +100 -0
  145. package/src/models/PasteInput.ts +3 -3
  146. package/src/models/PasteResponse.ts +92 -0
  147. package/src/models/RecoveryImgResponse.ts +9 -9
  148. package/src/models/ReleaseGroupsResponse.ts +2 -2
  149. package/src/models/ReleaseResponse.ts +85 -86
  150. package/src/models/ShortDeviceResponse.ts +50 -40
  151. package/src/models/ShortReleaseResponse.ts +62 -64
  152. package/src/models/TokenResponse.ts +75 -0
  153. package/src/models/index.ts +9 -11
  154. package/src/runtime.ts +2 -2
  155. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +0 -52
  156. package/dist/esm/models/HTTPValidationError.d.ts +0 -33
  157. package/dist/esm/models/HTTPValidationError.js +0 -42
  158. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +0 -39
  159. package/dist/esm/models/ListResponseShortReleaseResponse.js +0 -47
  160. package/dist/esm/models/ListResponseStr.d.ts +0 -38
  161. package/dist/esm/models/ListResponseStr.js +0 -46
  162. package/dist/esm/models/LocationInner.d.ts +0 -26
  163. package/dist/esm/models/LocationInner.js +0 -31
  164. package/dist/esm/models/MaintainerShortModel.d.ts +0 -44
  165. package/dist/esm/models/MaintainerShortModel.js +0 -51
  166. package/dist/esm/models/PasteOutput.d.ts +0 -50
  167. package/dist/esm/models/PasteOutput.js +0 -53
  168. package/dist/esm/models/ReleaseType.d.ts +0 -26
  169. package/dist/esm/models/ReleaseType.js +0 -44
  170. package/dist/esm/models/ReleasesSort.d.ts +0 -25
  171. package/dist/esm/models/ReleasesSort.js +0 -43
  172. package/dist/esm/models/ResponseGetReleases.d.ts +0 -41
  173. package/dist/esm/models/ResponseGetReleases.js +0 -46
  174. package/dist/esm/models/ValidationError.d.ts +0 -57
  175. package/dist/esm/models/ValidationError.js +0 -56
  176. package/dist/models/GlobalStatsAggregationModel.d.ts +0 -52
  177. package/dist/models/GlobalStatsAggregationModel.js +0 -62
  178. package/dist/models/HTTPValidationError.d.ts +0 -33
  179. package/dist/models/HTTPValidationError.js +0 -49
  180. package/dist/models/ListResponseShortReleaseResponse.d.ts +0 -39
  181. package/dist/models/ListResponseShortReleaseResponse.js +0 -54
  182. package/dist/models/ListResponseStr.d.ts +0 -38
  183. package/dist/models/ListResponseStr.js +0 -53
  184. package/dist/models/LocationInner.d.ts +0 -26
  185. package/dist/models/LocationInner.js +0 -38
  186. package/dist/models/MaintainerShortModel.d.ts +0 -44
  187. package/dist/models/MaintainerShortModel.js +0 -58
  188. package/dist/models/PasteOutput.d.ts +0 -50
  189. package/dist/models/PasteOutput.js +0 -60
  190. package/dist/models/ReleaseType.d.ts +0 -26
  191. package/dist/models/ReleaseType.js +0 -52
  192. package/dist/models/ReleasesSort.d.ts +0 -25
  193. package/dist/models/ReleasesSort.js +0 -51
  194. package/dist/models/ResponseGetReleases.d.ts +0 -41
  195. package/dist/models/ResponseGetReleases.js +0 -53
  196. package/dist/models/ValidationError.d.ts +0 -57
  197. package/dist/models/ValidationError.js +0 -63
  198. package/docs/ListResponseShortReleaseResponse.md +0 -36
  199. package/docs/ReleaseType.md +0 -32
  200. package/docs/ResponseGetReleases.md +0 -36
  201. package/docs/ValidationError.md +0 -42
  202. package/src/models/GlobalStatsAggregationModel.ts +0 -93
  203. package/src/models/HTTPValidationError.ts +0 -73
  204. package/src/models/ListResponseShortReleaseResponse.ts +0 -82
  205. package/src/models/ListResponseStr.ts +0 -74
  206. package/src/models/LocationInner.ts +0 -46
  207. package/src/models/MaintainerShortModel.ts +0 -84
  208. package/src/models/PasteOutput.ts +0 -92
  209. package/src/models/ReleaseType.ts +0 -54
  210. package/src/models/ReleasesSort.ts +0 -53
  211. package/src/models/ResponseGetReleases.ts +0 -96
  212. package/src/models/ValidationError.ts +0 -108
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Fox API
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.
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.4.0
5
+ * The version of the OpenAPI document: 6.0.4
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { MaintainerShortModel } from './MaintainerShortModel';
12
+ import type { MaintainerShortResponse } from './MaintainerShortResponse';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -17,73 +17,77 @@ import type { MaintainerShortModel } from './MaintainerShortModel';
17
17
  */
18
18
  export interface DeviceResponse {
19
19
  /**
20
- * Device codename, legacy
20
+ *
21
21
  * @type {string}
22
22
  * @memberof DeviceResponse
23
- * @deprecated
24
23
  */
25
- codename: string;
24
+ legacyId: string;
26
25
  /**
27
- * Model name of device, does not include the OEM part, legacy
26
+ *
28
27
  * @type {string}
29
28
  * @memberof DeviceResponse
30
- * @deprecated
31
29
  */
32
- modelName: string;
30
+ codename: string;
33
31
  /**
34
32
  *
35
- * @type {string}
33
+ * @type {Array<string>}
36
34
  * @memberof DeviceResponse
37
35
  */
38
- oemName: string;
36
+ codenames: Array<string>;
39
37
  /**
40
38
  *
41
39
  * @type {string}
42
40
  * @memberof DeviceResponse
43
41
  */
44
- id: string;
42
+ featuredText?: string;
45
43
  /**
46
44
  *
47
- * @type {Array<string>}
45
+ * @type {string}
48
46
  * @memberof DeviceResponse
49
47
  */
50
- codenames: Array<string>;
48
+ fullName: string;
51
49
  /**
52
50
  *
53
- * @type {Array<string>}
51
+ * @type {string}
54
52
  * @memberof DeviceResponse
55
53
  */
56
- modelNames: Array<string>;
54
+ id: string;
57
55
  /**
58
56
  *
59
57
  * @type {boolean}
60
58
  * @memberof DeviceResponse
61
59
  */
62
- supported: boolean;
60
+ isFeatured: boolean;
63
61
  /**
64
62
  *
65
- * @type {boolean}
63
+ * @type {string}
66
64
  * @memberof DeviceResponse
67
65
  */
68
- isFeatured?: boolean;
66
+ modelName: string;
67
+ /**
68
+ *
69
+ * @type {Array<string>}
70
+ * @memberof DeviceResponse
71
+ */
72
+ modelNames: Array<string>;
69
73
  /**
70
74
  *
71
75
  * @type {string}
72
76
  * @memberof DeviceResponse
73
77
  */
74
- featuredText?: string | null;
78
+ oemName: string;
75
79
  /**
76
80
  *
77
- * @type {MaintainerShortModel}
81
+ * @type {boolean}
78
82
  * @memberof DeviceResponse
79
83
  */
80
- maintainer: MaintainerShortModel;
84
+ supported: boolean;
81
85
  /**
82
86
  *
83
87
  * @type {string}
84
88
  * @memberof DeviceResponse
85
89
  */
86
- notes?: string | null;
90
+ url: string;
87
91
  /**
88
92
  *
89
93
  * @type {string}
@@ -91,17 +95,17 @@ export interface DeviceResponse {
91
95
  */
92
96
  deviceTree?: string | null;
93
97
  /**
94
- * Full name of device / devices, legacy
95
- * @type {string}
98
+ *
99
+ * @type {MaintainerShortResponse}
96
100
  * @memberof DeviceResponse
97
101
  */
98
- readonly fullName: string;
102
+ maintainer: MaintainerShortResponse;
99
103
  /**
100
- * URL of the device on the official website
104
+ *
101
105
  * @type {string}
102
106
  * @memberof DeviceResponse
103
107
  */
104
- readonly url: string;
108
+ notes?: string | null;
105
109
  }
106
110
  /**
107
111
  * Check if a given object implements the DeviceResponse interface.
@@ -110,4 +114,4 @@ export declare function instanceOfDeviceResponse(value: object): value is Device
110
114
  export declare function DeviceResponseFromJSON(json: any): DeviceResponse;
111
115
  export declare function DeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceResponse;
112
116
  export declare function DeviceResponseToJSON(json: any): DeviceResponse;
113
- export declare function DeviceResponseToJSONTyped(value?: Omit<DeviceResponse, 'fullName' | 'url'> | null, ignoreDiscriminator?: boolean): any;
117
+ export declare function DeviceResponseToJSONTyped(value?: DeviceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -2,40 +2,44 @@
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 30 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.4.0
7
+ * The version of the OpenAPI document: 6.0.4
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { MaintainerShortModelFromJSON, MaintainerShortModelToJSON, } from './MaintainerShortModel';
14
+ import { MaintainerShortResponseFromJSON, MaintainerShortResponseToJSON, } from './MaintainerShortResponse';
15
15
  /**
16
16
  * Check if a given object implements the DeviceResponse interface.
17
17
  */
18
18
  export function instanceOfDeviceResponse(value) {
19
+ if (!('legacyId' in value) || value['legacyId'] === undefined)
20
+ return false;
19
21
  if (!('codename' in value) || value['codename'] === undefined)
20
22
  return false;
21
- if (!('modelName' in value) || value['modelName'] === undefined)
23
+ if (!('codenames' in value) || value['codenames'] === undefined)
22
24
  return false;
23
- if (!('oemName' in value) || value['oemName'] === undefined)
25
+ if (!('fullName' in value) || value['fullName'] === undefined)
24
26
  return false;
25
27
  if (!('id' in value) || value['id'] === undefined)
26
28
  return false;
27
- if (!('codenames' in value) || value['codenames'] === undefined)
29
+ if (!('isFeatured' in value) || value['isFeatured'] === undefined)
28
30
  return false;
29
- if (!('modelNames' in value) || value['modelNames'] === undefined)
31
+ if (!('modelName' in value) || value['modelName'] === undefined)
30
32
  return false;
31
- if (!('supported' in value) || value['supported'] === undefined)
33
+ if (!('modelNames' in value) || value['modelNames'] === undefined)
32
34
  return false;
33
- if (!('maintainer' in value) || value['maintainer'] === undefined)
35
+ if (!('oemName' in value) || value['oemName'] === undefined)
34
36
  return false;
35
- if (!('fullName' in value) || value['fullName'] === undefined)
37
+ if (!('supported' in value) || value['supported'] === undefined)
36
38
  return false;
37
39
  if (!('url' in value) || value['url'] === undefined)
38
40
  return false;
41
+ if (!('maintainer' in value) || value['maintainer'] === undefined)
42
+ return false;
39
43
  return true;
40
44
  }
41
45
  export function DeviceResponseFromJSON(json) {
@@ -46,20 +50,21 @@ export function DeviceResponseFromJSONTyped(json, ignoreDiscriminator) {
46
50
  return json;
47
51
  }
48
52
  return {
53
+ 'legacyId': json['_id'],
49
54
  'codename': json['codename'],
50
- 'modelName': json['model_name'],
51
- 'oemName': json['oem_name'],
52
- 'id': json['id'],
53
55
  'codenames': json['codenames'],
54
- 'modelNames': json['model_names'],
55
- 'supported': json['supported'],
56
- 'isFeatured': json['is_featured'] == null ? undefined : json['is_featured'],
57
56
  'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
58
- 'maintainer': MaintainerShortModelFromJSON(json['maintainer']),
59
- 'notes': json['notes'] == null ? undefined : json['notes'],
60
- 'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
61
57
  'fullName': json['full_name'],
58
+ 'id': json['id'],
59
+ 'isFeatured': json['is_featured'],
60
+ 'modelName': json['model_name'],
61
+ 'modelNames': json['model_names'],
62
+ 'oemName': json['oem_name'],
63
+ 'supported': json['supported'],
62
64
  'url': json['url'],
65
+ 'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
66
+ 'maintainer': MaintainerShortResponseFromJSON(json['maintainer']),
67
+ 'notes': json['notes'] == null ? undefined : json['notes'],
63
68
  };
64
69
  }
65
70
  export function DeviceResponseToJSON(json) {
@@ -70,17 +75,20 @@ export function DeviceResponseToJSONTyped(value, ignoreDiscriminator = false) {
70
75
  return value;
71
76
  }
72
77
  return {
78
+ '_id': value['legacyId'],
73
79
  'codename': value['codename'],
74
- 'model_name': value['modelName'],
75
- 'oem_name': value['oemName'],
76
- 'id': value['id'],
77
80
  'codenames': value['codenames'],
81
+ 'featured_text': value['featuredText'],
82
+ 'full_name': value['fullName'],
83
+ 'id': value['id'],
84
+ 'is_featured': value['isFeatured'],
85
+ 'model_name': value['modelName'],
78
86
  'model_names': value['modelNames'],
87
+ 'oem_name': value['oemName'],
79
88
  'supported': value['supported'],
80
- 'is_featured': value['isFeatured'],
81
- 'featured_text': value['featuredText'],
82
- 'maintainer': MaintainerShortModelToJSON(value['maintainer']),
83
- 'notes': value['notes'],
89
+ 'url': value['url'],
84
90
  'device_tree': value['deviceTree'],
91
+ 'maintainer': MaintainerShortResponseToJSON(value['maintainer']),
92
+ 'notes': value['notes'],
85
93
  };
86
94
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Fox API
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
+ *
5
+ * The version of the OpenAPI document: 6.0.4
6
+ * Contact: admin@orangefox.tech
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ErrorResponse
16
+ */
17
+ export interface ErrorResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ErrorResponse
22
+ */
23
+ detail: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ErrorResponse interface.
27
+ */
28
+ export declare function instanceOfErrorResponse(value: object): value is ErrorResponse;
29
+ export declare function ErrorResponseFromJSON(json: any): ErrorResponse;
30
+ export declare function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse;
31
+ export declare function ErrorResponseToJSON(json: any): ErrorResponse;
32
+ export declare function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
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 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
+ *
7
+ * The version of the OpenAPI document: 6.0.4
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the ErrorResponse interface.
16
+ */
17
+ export function instanceOfErrorResponse(value) {
18
+ if (!('detail' in value) || value['detail'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ErrorResponseFromJSON(json) {
23
+ return ErrorResponseFromJSONTyped(json, false);
24
+ }
25
+ export function ErrorResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'detail': json['detail'],
31
+ };
32
+ }
33
+ export function ErrorResponseToJSON(json) {
34
+ return ErrorResponseToJSONTyped(json, false);
35
+ }
36
+ export function ErrorResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'detail': value['detail'],
42
+ };
43
+ }
@@ -0,0 +1,52 @@
1
+ /**
2
+ * Fox API
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
+ *
5
+ * The version of the OpenAPI document: 6.0.4
6
+ * Contact: admin@orangefox.tech
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GlobalStatsResponse
16
+ */
17
+ export interface GlobalStatsResponse {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GlobalStatsResponse
22
+ */
23
+ count: number;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: number; }}
27
+ * @memberof GlobalStatsResponse
28
+ */
29
+ days: {
30
+ [key: string]: number;
31
+ };
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof GlobalStatsResponse
36
+ */
37
+ deviceCount: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof GlobalStatsResponse
42
+ */
43
+ releaseCount: number;
44
+ }
45
+ /**
46
+ * Check if a given object implements the GlobalStatsResponse interface.
47
+ */
48
+ export declare function instanceOfGlobalStatsResponse(value: object): value is GlobalStatsResponse;
49
+ export declare function GlobalStatsResponseFromJSON(json: any): GlobalStatsResponse;
50
+ export declare function GlobalStatsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalStatsResponse;
51
+ export declare function GlobalStatsResponseToJSON(json: any): GlobalStatsResponse;
52
+ export declare function GlobalStatsResponseToJSONTyped(value?: GlobalStatsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -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 30 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.4.0
7
+ * The version of the OpenAPI document: 6.0.4
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -12,44 +12,44 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Check if a given object implements the GlobalStatsAggregationModel interface.
15
+ * Check if a given object implements the GlobalStatsResponse interface.
16
16
  */
17
- export function instanceOfGlobalStatsAggregationModel(value) {
17
+ export function instanceOfGlobalStatsResponse(value) {
18
18
  if (!('count' in value) || value['count'] === undefined)
19
19
  return false;
20
+ if (!('days' in value) || value['days'] === undefined)
21
+ return false;
20
22
  if (!('deviceCount' in value) || value['deviceCount'] === undefined)
21
23
  return false;
22
24
  if (!('releaseCount' in value) || value['releaseCount'] === undefined)
23
25
  return false;
24
- if (!('days' in value) || value['days'] === undefined)
25
- return false;
26
26
  return true;
27
27
  }
28
- export function GlobalStatsAggregationModelFromJSON(json) {
29
- return GlobalStatsAggregationModelFromJSONTyped(json, false);
28
+ export function GlobalStatsResponseFromJSON(json) {
29
+ return GlobalStatsResponseFromJSONTyped(json, false);
30
30
  }
31
- export function GlobalStatsAggregationModelFromJSONTyped(json, ignoreDiscriminator) {
31
+ export function GlobalStatsResponseFromJSONTyped(json, ignoreDiscriminator) {
32
32
  if (json == null) {
33
33
  return json;
34
34
  }
35
35
  return {
36
36
  'count': json['count'],
37
+ 'days': json['days'],
37
38
  'deviceCount': json['deviceCount'],
38
39
  'releaseCount': json['releaseCount'],
39
- 'days': json['days'],
40
40
  };
41
41
  }
42
- export function GlobalStatsAggregationModelToJSON(json) {
43
- return GlobalStatsAggregationModelToJSONTyped(json, false);
42
+ export function GlobalStatsResponseToJSON(json) {
43
+ return GlobalStatsResponseToJSONTyped(json, false);
44
44
  }
45
- export function GlobalStatsAggregationModelToJSONTyped(value, ignoreDiscriminator = false) {
45
+ export function GlobalStatsResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  if (value == null) {
47
47
  return value;
48
48
  }
49
49
  return {
50
50
  'count': value['count'],
51
+ 'days': value['days'],
51
52
  'deviceCount': value['deviceCount'],
52
53
  'releaseCount': value['releaseCount'],
53
- 'days': value['days'],
54
54
  };
55
55
  }
@@ -1,15 +1,15 @@
1
1
  /**
2
2
  * Fox API
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.
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.4.0
5
+ * The version of the OpenAPI document: 6.0.4
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ReleaseResponse } from './ReleaseResponse';
12
+ import type { ListResponseReleaseResponseDataInner } from './ListResponseReleaseResponseDataInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,16 +18,16 @@ import type { ReleaseResponse } from './ReleaseResponse';
18
18
  export interface ListResponseReleaseResponse {
19
19
  /**
20
20
  *
21
- * @type {Array<ReleaseResponse>}
21
+ * @type {number}
22
22
  * @memberof ListResponseReleaseResponse
23
23
  */
24
- data: Array<ReleaseResponse>;
24
+ count: number;
25
25
  /**
26
26
  *
27
- * @type {number}
27
+ * @type {Array<ListResponseReleaseResponseDataInner>}
28
28
  * @memberof ListResponseReleaseResponse
29
29
  */
30
- readonly count: number;
30
+ data: Array<ListResponseReleaseResponseDataInner>;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the ListResponseReleaseResponse interface.
@@ -36,4 +36,4 @@ export declare function instanceOfListResponseReleaseResponse(value: object): va
36
36
  export declare function ListResponseReleaseResponseFromJSON(json: any): ListResponseReleaseResponse;
37
37
  export declare function ListResponseReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseReleaseResponse;
38
38
  export declare function ListResponseReleaseResponseToJSON(json: any): ListResponseReleaseResponse;
39
- export declare function ListResponseReleaseResponseToJSONTyped(value?: Omit<ListResponseReleaseResponse, 'count'> | null, ignoreDiscriminator?: boolean): any;
39
+ export declare function ListResponseReleaseResponseToJSONTyped(value?: ListResponseReleaseResponse | null, ignoreDiscriminator?: boolean): any;
@@ -2,24 +2,24 @@
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 30 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.4.0
7
+ * The version of the OpenAPI document: 6.0.4
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { ReleaseResponseFromJSON, ReleaseResponseToJSON, } from './ReleaseResponse';
14
+ import { ListResponseReleaseResponseDataInnerFromJSON, ListResponseReleaseResponseDataInnerToJSON, } from './ListResponseReleaseResponseDataInner';
15
15
  /**
16
16
  * Check if a given object implements the ListResponseReleaseResponse interface.
17
17
  */
18
18
  export function instanceOfListResponseReleaseResponse(value) {
19
- if (!('data' in value) || value['data'] === undefined)
20
- return false;
21
19
  if (!('count' in value) || value['count'] === undefined)
22
20
  return false;
21
+ if (!('data' in value) || value['data'] === undefined)
22
+ return false;
23
23
  return true;
24
24
  }
25
25
  export function ListResponseReleaseResponseFromJSON(json) {
@@ -30,8 +30,8 @@ export function ListResponseReleaseResponseFromJSONTyped(json, ignoreDiscriminat
30
30
  return json;
31
31
  }
32
32
  return {
33
- 'data': (json['data'].map(ReleaseResponseFromJSON)),
34
33
  'count': json['count'],
34
+ 'data': (json['data'].map(ListResponseReleaseResponseDataInnerFromJSON)),
35
35
  };
36
36
  }
37
37
  export function ListResponseReleaseResponseToJSON(json) {
@@ -42,6 +42,7 @@ export function ListResponseReleaseResponseToJSONTyped(value, ignoreDiscriminato
42
42
  return value;
43
43
  }
44
44
  return {
45
- 'data': (value['data'].map(ReleaseResponseToJSON)),
45
+ 'count': value['count'],
46
+ 'data': (value['data'].map(ListResponseReleaseResponseDataInnerToJSON)),
46
47
  };
47
48
  }