@orangefox-recovery/foxclient 5.4.0 → 6.0.5

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
@@ -2,55 +2,52 @@
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.5
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 { ReleaseTypeFromJSON, ReleaseTypeToJSON, } from './ReleaseType';
15
14
  import { RecoveryImgResponseFromJSON, RecoveryImgResponseToJSON, } from './RecoveryImgResponse';
16
15
  /**
17
16
  * Check if a given object implements the ReleaseResponse interface.
18
17
  */
19
18
  export function instanceOfReleaseResponse(value) {
20
- if (!('size' in value) || value['size'] === undefined)
21
- return false;
22
- if (!('id' in value) || value['id'] === undefined)
19
+ if (!('legacyId' in value) || value['legacyId'] === undefined)
23
20
  return false;
24
- if (!('filename' in value) || value['filename'] === undefined)
21
+ if (!('archived' in value) || value['archived'] === undefined)
25
22
  return false;
26
- if (!('variant' in value) || value['variant'] === undefined)
23
+ if (!('date' in value) || value['date'] === undefined)
27
24
  return false;
28
25
  if (!('deviceId' in value) || value['deviceId'] === undefined)
29
26
  return false;
30
- if (!('date' in value) || value['date'] === undefined)
27
+ if (!('filename' in value) || value['filename'] === undefined)
28
+ return false;
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('isFeatured' in value) || value['isFeatured'] === undefined)
31
32
  return false;
32
33
  if (!('md5' in value) || value['md5'] === undefined)
33
34
  return false;
34
- if (!('version' in value) || value['version'] === undefined)
35
+ if (!('size' in value) || value['size'] === undefined)
35
36
  return false;
36
37
  if (!('type' in value) || value['type'] === undefined)
37
38
  return false;
38
- if (!('archived' in value) || value['archived'] === undefined)
39
- return false;
40
- if (!('isFeatured' in value) || value['isFeatured'] === undefined)
39
+ if (!('variant' in value) || value['variant'] === undefined)
41
40
  return false;
42
- if (!('recoveryImg' in value) || value['recoveryImg'] === undefined)
41
+ if (!('version' in value) || value['version'] === undefined)
43
42
  return false;
44
43
  if (!('changelog' in value) || value['changelog'] === undefined)
45
44
  return false;
46
- if (!('bugs' in value) || value['bugs'] === undefined)
45
+ if (!('mirrors' in value) || value['mirrors'] === undefined)
47
46
  return false;
48
- if (!('notes' in value) || value['notes'] === undefined)
47
+ if (!('recoveryImg' in value) || value['recoveryImg'] === undefined)
49
48
  return false;
50
49
  if (!('url' in value) || value['url'] === undefined)
51
50
  return false;
52
- if (!('mirrors' in value) || value['mirrors'] === undefined)
53
- return false;
54
51
  return true;
55
52
  }
56
53
  export function ReleaseResponseFromJSON(json) {
@@ -61,26 +58,27 @@ export function ReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
61
58
  return json;
62
59
  }
63
60
  return {
64
- 'size': json['size'],
65
- 'id': json['id'],
61
+ 'legacyId': json['_id'],
62
+ 'archived': json['archived'],
66
63
  'buildId': json['build_id'] == null ? undefined : json['build_id'],
67
- 'filename': json['filename'],
68
- 'variant': json['variant'],
69
- 'deviceId': json['device_id'],
70
64
  'date': json['date'],
65
+ 'deviceId': json['device_id'],
66
+ 'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
67
+ 'filename': json['filename'],
68
+ 'id': json['id'],
69
+ 'isFeatured': json['is_featured'],
70
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
71
71
  'md5': json['md5'],
72
+ 'size': json['size'],
73
+ 'type': json['type'],
74
+ 'variant': json['variant'],
72
75
  'version': json['version'],
73
- 'type': ReleaseTypeFromJSON(json['type']),
74
- 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
75
- 'archived': json['archived'],
76
- 'isFeatured': json['is_featured'],
77
- 'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
78
- 'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
76
+ 'bugs': json['bugs'] == null ? undefined : json['bugs'],
79
77
  'changelog': json['changelog'],
80
- 'bugs': json['bugs'] == null ? null : json['bugs'],
81
- 'notes': json['notes'],
82
- 'url': json['url'],
83
78
  'mirrors': json['mirrors'],
79
+ 'notes': json['notes'] == null ? undefined : json['notes'],
80
+ 'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
81
+ 'url': json['url'],
84
82
  };
85
83
  }
86
84
  export function ReleaseResponseToJSON(json) {
@@ -91,23 +89,26 @@ export function ReleaseResponseToJSONTyped(value, ignoreDiscriminator = false) {
91
89
  return value;
92
90
  }
93
91
  return {
94
- 'size': value['size'],
95
- 'id': value['id'],
92
+ '_id': value['legacyId'],
93
+ 'archived': value['archived'],
96
94
  'build_id': value['buildId'],
97
- 'filename': value['filename'],
98
- 'variant': value['variant'],
99
- 'device_id': value['deviceId'],
100
95
  'date': value['date'],
96
+ 'device_id': value['deviceId'],
97
+ 'featured_text': value['featuredText'],
98
+ 'filename': value['filename'],
99
+ 'id': value['id'],
100
+ 'is_featured': value['isFeatured'],
101
+ 'maintainer_id': value['maintainerId'],
101
102
  'md5': value['md5'],
103
+ 'size': value['size'],
104
+ 'type': value['type'],
105
+ 'variant': value['variant'],
102
106
  'version': value['version'],
103
- 'type': ReleaseTypeToJSON(value['type']),
104
- 'maintainer_id': value['maintainerId'],
105
- 'archived': value['archived'],
106
- 'is_featured': value['isFeatured'],
107
- 'featured_text': value['featuredText'],
108
- 'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
109
- 'changelog': value['changelog'],
110
107
  'bugs': value['bugs'],
108
+ 'changelog': value['changelog'],
109
+ 'mirrors': value['mirrors'],
111
110
  'notes': value['notes'],
111
+ 'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
112
+ 'url': value['url'],
112
113
  };
113
114
  }
@@ -1,8 +1,8 @@
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.5
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -16,73 +16,77 @@
16
16
  */
17
17
  export interface ShortDeviceResponse {
18
18
  /**
19
- * Device codename, legacy
19
+ *
20
20
  * @type {string}
21
21
  * @memberof ShortDeviceResponse
22
- * @deprecated
23
22
  */
24
- codename: string;
23
+ legacyId: string;
25
24
  /**
26
- * Model name of device, does not include the OEM part, legacy
25
+ *
27
26
  * @type {string}
28
27
  * @memberof ShortDeviceResponse
29
- * @deprecated
30
28
  */
31
- modelName: string;
29
+ codename: string;
32
30
  /**
33
31
  *
34
- * @type {string}
32
+ * @type {Array<string>}
35
33
  * @memberof ShortDeviceResponse
36
34
  */
37
- oemName: string;
35
+ codenames: Array<string>;
38
36
  /**
39
37
  *
40
38
  * @type {string}
41
39
  * @memberof ShortDeviceResponse
42
40
  */
43
- id: string;
41
+ featuredText?: string | null;
44
42
  /**
45
43
  *
46
- * @type {Array<string>}
44
+ * @type {string}
47
45
  * @memberof ShortDeviceResponse
48
46
  */
49
- codenames: Array<string>;
47
+ fullName: string;
50
48
  /**
51
49
  *
52
- * @type {Array<string>}
50
+ * @type {string}
53
51
  * @memberof ShortDeviceResponse
54
52
  */
55
- modelNames: Array<string>;
53
+ id: string;
56
54
  /**
57
55
  *
58
56
  * @type {boolean}
59
57
  * @memberof ShortDeviceResponse
60
58
  */
61
- supported: boolean;
59
+ isFeatured: boolean;
62
60
  /**
63
61
  *
64
- * @type {boolean}
62
+ * @type {string}
65
63
  * @memberof ShortDeviceResponse
66
64
  */
67
- isFeatured?: boolean;
65
+ modelName: string;
68
66
  /**
69
67
  *
70
- * @type {string}
68
+ * @type {Array<string>}
71
69
  * @memberof ShortDeviceResponse
72
70
  */
73
- featuredText?: string | null;
71
+ modelNames: Array<string>;
74
72
  /**
75
- * Full name of device / devices, legacy
73
+ *
76
74
  * @type {string}
77
75
  * @memberof ShortDeviceResponse
78
76
  */
79
- readonly fullName: string;
77
+ oemName: string;
78
+ /**
79
+ *
80
+ * @type {boolean}
81
+ * @memberof ShortDeviceResponse
82
+ */
83
+ supported: boolean;
80
84
  /**
81
- * URL of the device on the official website
85
+ *
82
86
  * @type {string}
83
87
  * @memberof ShortDeviceResponse
84
88
  */
85
- readonly url: string;
89
+ url: string;
86
90
  }
87
91
  /**
88
92
  * Check if a given object implements the ShortDeviceResponse interface.
@@ -91,4 +95,4 @@ export declare function instanceOfShortDeviceResponse(value: object): value is S
91
95
  export declare function ShortDeviceResponseFromJSON(json: any): ShortDeviceResponse;
92
96
  export declare function ShortDeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortDeviceResponse;
93
97
  export declare function ShortDeviceResponseToJSON(json: any): ShortDeviceResponse;
94
- export declare function ShortDeviceResponseToJSONTyped(value?: Omit<ShortDeviceResponse, 'fullName' | 'url'> | null, ignoreDiscriminator?: boolean): any;
98
+ export declare function ShortDeviceResponseToJSONTyped(value?: ShortDeviceResponse | 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.5
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -15,21 +15,25 @@
15
15
  * Check if a given object implements the ShortDeviceResponse interface.
16
16
  */
17
17
  export function instanceOfShortDeviceResponse(value) {
18
+ if (!('legacyId' in value) || value['legacyId'] === undefined)
19
+ return false;
18
20
  if (!('codename' in value) || value['codename'] === undefined)
19
21
  return false;
20
- if (!('modelName' in value) || value['modelName'] === undefined)
22
+ if (!('codenames' in value) || value['codenames'] === undefined)
21
23
  return false;
22
- if (!('oemName' in value) || value['oemName'] === undefined)
24
+ if (!('fullName' in value) || value['fullName'] === undefined)
23
25
  return false;
24
26
  if (!('id' in value) || value['id'] === undefined)
25
27
  return false;
26
- if (!('codenames' in value) || value['codenames'] === undefined)
28
+ if (!('isFeatured' in value) || value['isFeatured'] === undefined)
29
+ return false;
30
+ if (!('modelName' in value) || value['modelName'] === undefined)
27
31
  return false;
28
32
  if (!('modelNames' in value) || value['modelNames'] === undefined)
29
33
  return false;
30
- if (!('supported' in value) || value['supported'] === undefined)
34
+ if (!('oemName' in value) || value['oemName'] === undefined)
31
35
  return false;
32
- if (!('fullName' in value) || value['fullName'] === undefined)
36
+ if (!('supported' in value) || value['supported'] === undefined)
33
37
  return false;
34
38
  if (!('url' in value) || value['url'] === undefined)
35
39
  return false;
@@ -43,16 +47,17 @@ export function ShortDeviceResponseFromJSONTyped(json, ignoreDiscriminator) {
43
47
  return json;
44
48
  }
45
49
  return {
50
+ 'legacyId': json['_id'],
46
51
  'codename': json['codename'],
47
- 'modelName': json['model_name'],
48
- 'oemName': json['oem_name'],
49
- 'id': json['id'],
50
52
  'codenames': json['codenames'],
51
- 'modelNames': json['model_names'],
52
- 'supported': json['supported'],
53
- 'isFeatured': json['is_featured'] == null ? undefined : json['is_featured'],
54
53
  'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
55
54
  'fullName': json['full_name'],
55
+ 'id': json['id'],
56
+ 'isFeatured': json['is_featured'],
57
+ 'modelName': json['model_name'],
58
+ 'modelNames': json['model_names'],
59
+ 'oemName': json['oem_name'],
60
+ 'supported': json['supported'],
56
61
  'url': json['url'],
57
62
  };
58
63
  }
@@ -64,14 +69,17 @@ export function ShortDeviceResponseToJSONTyped(value, ignoreDiscriminator = fals
64
69
  return value;
65
70
  }
66
71
  return {
72
+ '_id': value['legacyId'],
67
73
  'codename': value['codename'],
68
- 'model_name': value['modelName'],
69
- 'oem_name': value['oemName'],
70
- 'id': value['id'],
71
74
  'codenames': value['codenames'],
75
+ 'featured_text': value['featuredText'],
76
+ 'full_name': value['fullName'],
77
+ 'id': value['id'],
78
+ 'is_featured': value['isFeatured'],
79
+ 'model_name': value['modelName'],
72
80
  'model_names': value['modelNames'],
81
+ 'oem_name': value['oemName'],
73
82
  'supported': value['supported'],
74
- 'is_featured': value['isFeatured'],
75
- 'featured_text': value['featuredText'],
83
+ 'url': value['url'],
76
84
  };
77
85
  }
@@ -1,15 +1,14 @@
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.5
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 { ReleaseType } from './ReleaseType';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -18,17 +17,16 @@ import type { ReleaseType } from './ReleaseType';
18
17
  export interface ShortReleaseResponse {
19
18
  /**
20
19
  *
21
- * @type {number}
20
+ * @type {string}
22
21
  * @memberof ShortReleaseResponse
23
- * @deprecated
24
22
  */
25
- size: number;
23
+ legacyId: string;
26
24
  /**
27
- * Release ID, that's how we indentify the release in the infrastructure
28
- * @type {string}
25
+ *
26
+ * @type {boolean}
29
27
  * @memberof ShortReleaseResponse
30
28
  */
31
- id: string;
29
+ archived: boolean;
32
30
  /**
33
31
  *
34
32
  * @type {string}
@@ -37,70 +35,76 @@ export interface ShortReleaseResponse {
37
35
  buildId?: string | null;
38
36
  /**
39
37
  *
40
- * @type {string}
38
+ * @type {number}
41
39
  * @memberof ShortReleaseResponse
42
40
  */
43
- filename: string;
41
+ date: number;
44
42
  /**
45
43
  *
46
44
  * @type {string}
47
45
  * @memberof ShortReleaseResponse
48
46
  */
49
- variant: string;
47
+ deviceId: string;
50
48
  /**
51
49
  *
52
50
  * @type {string}
53
51
  * @memberof ShortReleaseResponse
54
52
  */
55
- deviceId: string;
53
+ featuredText?: string | null;
56
54
  /**
57
- * Unix timestamp of the release date
58
- * @type {number}
55
+ *
56
+ * @type {string}
59
57
  * @memberof ShortReleaseResponse
60
58
  */
61
- date: number;
59
+ filename: string;
62
60
  /**
63
61
  *
64
62
  * @type {string}
65
63
  * @memberof ShortReleaseResponse
66
64
  */
67
- md5: string;
65
+ id: string;
68
66
  /**
69
67
  *
70
- * @type {string}
68
+ * @type {boolean}
71
69
  * @memberof ShortReleaseResponse
72
70
  */
73
- version: string;
71
+ isFeatured: boolean;
74
72
  /**
75
73
  *
76
- * @type {ReleaseType}
74
+ * @type {string}
77
75
  * @memberof ShortReleaseResponse
78
76
  */
79
- type: ReleaseType;
77
+ maintainerId?: string | null;
80
78
  /**
81
79
  *
82
80
  * @type {string}
83
81
  * @memberof ShortReleaseResponse
84
82
  */
85
- maintainerId?: string | null;
83
+ md5: string;
86
84
  /**
87
85
  *
88
- * @type {boolean}
86
+ * @type {number}
89
87
  * @memberof ShortReleaseResponse
90
88
  */
91
- archived: boolean;
89
+ size: number;
92
90
  /**
93
91
  *
94
- * @type {boolean}
92
+ * @type {string}
95
93
  * @memberof ShortReleaseResponse
96
94
  */
97
- isFeatured: boolean;
95
+ type: string;
98
96
  /**
99
97
  *
100
98
  * @type {string}
101
99
  * @memberof ShortReleaseResponse
102
100
  */
103
- featuredText?: string | null;
101
+ variant: string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof ShortReleaseResponse
106
+ */
107
+ version: string;
104
108
  }
105
109
  /**
106
110
  * Check if a given object implements the ShortReleaseResponse interface.
@@ -2,41 +2,42 @@
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.5
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 { ReleaseTypeFromJSON, ReleaseTypeToJSON, } from './ReleaseType';
15
14
  /**
16
15
  * Check if a given object implements the ShortReleaseResponse interface.
17
16
  */
18
17
  export function instanceOfShortReleaseResponse(value) {
19
- if (!('size' in value) || value['size'] === undefined)
20
- return false;
21
- if (!('id' in value) || value['id'] === undefined)
18
+ if (!('legacyId' in value) || value['legacyId'] === undefined)
22
19
  return false;
23
- if (!('filename' in value) || value['filename'] === undefined)
20
+ if (!('archived' in value) || value['archived'] === undefined)
24
21
  return false;
25
- if (!('variant' in value) || value['variant'] === undefined)
22
+ if (!('date' in value) || value['date'] === undefined)
26
23
  return false;
27
24
  if (!('deviceId' in value) || value['deviceId'] === undefined)
28
25
  return false;
29
- if (!('date' in value) || value['date'] === undefined)
26
+ if (!('filename' in value) || value['filename'] === undefined)
27
+ return false;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('isFeatured' in value) || value['isFeatured'] === undefined)
30
31
  return false;
31
32
  if (!('md5' in value) || value['md5'] === undefined)
32
33
  return false;
33
- if (!('version' in value) || value['version'] === undefined)
34
+ if (!('size' in value) || value['size'] === undefined)
34
35
  return false;
35
36
  if (!('type' in value) || value['type'] === undefined)
36
37
  return false;
37
- if (!('archived' in value) || value['archived'] === undefined)
38
+ if (!('variant' in value) || value['variant'] === undefined)
38
39
  return false;
39
- if (!('isFeatured' in value) || value['isFeatured'] === undefined)
40
+ if (!('version' in value) || value['version'] === undefined)
40
41
  return false;
41
42
  return true;
42
43
  }
@@ -48,20 +49,21 @@ export function ShortReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
48
49
  return json;
49
50
  }
50
51
  return {
51
- 'size': json['size'],
52
- 'id': json['id'],
52
+ 'legacyId': json['_id'],
53
+ 'archived': json['archived'],
53
54
  'buildId': json['build_id'] == null ? undefined : json['build_id'],
54
- 'filename': json['filename'],
55
- 'variant': json['variant'],
56
- 'deviceId': json['device_id'],
57
55
  'date': json['date'],
56
+ 'deviceId': json['device_id'],
57
+ 'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
58
+ 'filename': json['filename'],
59
+ 'id': json['id'],
60
+ 'isFeatured': json['is_featured'],
61
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
58
62
  'md5': json['md5'],
63
+ 'size': json['size'],
64
+ 'type': json['type'],
65
+ 'variant': json['variant'],
59
66
  'version': json['version'],
60
- 'type': ReleaseTypeFromJSON(json['type']),
61
- 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
62
- 'archived': json['archived'],
63
- 'isFeatured': json['is_featured'],
64
- 'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
65
67
  };
66
68
  }
67
69
  export function ShortReleaseResponseToJSON(json) {
@@ -72,19 +74,20 @@ export function ShortReleaseResponseToJSONTyped(value, ignoreDiscriminator = fal
72
74
  return value;
73
75
  }
74
76
  return {
75
- 'size': value['size'],
76
- 'id': value['id'],
77
+ '_id': value['legacyId'],
78
+ 'archived': value['archived'],
77
79
  'build_id': value['buildId'],
78
- 'filename': value['filename'],
79
- 'variant': value['variant'],
80
- 'device_id': value['deviceId'],
81
80
  'date': value['date'],
81
+ 'device_id': value['deviceId'],
82
+ 'featured_text': value['featuredText'],
83
+ 'filename': value['filename'],
84
+ 'id': value['id'],
85
+ 'is_featured': value['isFeatured'],
86
+ 'maintainer_id': value['maintainerId'],
82
87
  'md5': value['md5'],
88
+ 'size': value['size'],
89
+ 'type': value['type'],
90
+ 'variant': value['variant'],
83
91
  'version': value['version'],
84
- 'type': ReleaseTypeToJSON(value['type']),
85
- 'maintainer_id': value['maintainerId'],
86
- 'archived': value['archived'],
87
- 'is_featured': value['isFeatured'],
88
- 'featured_text': value['featuredText'],
89
92
  };
90
93
  }
@@ -0,0 +1,38 @@
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.5
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 TokenResponse
16
+ */
17
+ export interface TokenResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TokenResponse
22
+ */
23
+ accessToken: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TokenResponse
28
+ */
29
+ tokenType: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the TokenResponse interface.
33
+ */
34
+ export declare function instanceOfTokenResponse(value: object): value is TokenResponse;
35
+ export declare function TokenResponseFromJSON(json: any): TokenResponse;
36
+ export declare function TokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenResponse;
37
+ export declare function TokenResponseToJSON(json: any): TokenResponse;
38
+ export declare function TokenResponseToJSONTyped(value?: TokenResponse | null, ignoreDiscriminator?: boolean): any;