@orangefox-recovery/foxclient 5.2.6 → 5.2.7

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 (189) hide show
  1. package/.openapi-generator/FILES +28 -30
  2. package/README.md +3 -65
  3. package/dist/apis/DeviceApi.d.ts +158 -0
  4. package/dist/apis/DeviceApi.js +188 -0
  5. package/dist/apis/PasteApi.d.ts +80 -0
  6. package/dist/apis/PasteApi.js +95 -0
  7. package/dist/apis/ReleaseApi.d.ts +188 -0
  8. package/dist/apis/ReleaseApi.js +226 -0
  9. package/dist/apis/StatsApi.d.ts +49 -0
  10. package/dist/apis/StatsApi.js +60 -0
  11. package/dist/apis/index.d.ts +4 -0
  12. package/dist/apis/index.js +22 -0
  13. package/dist/esm/apis/DeviceApi.d.ts +158 -0
  14. package/dist/esm/apis/DeviceApi.js +184 -0
  15. package/dist/esm/apis/PasteApi.d.ts +80 -0
  16. package/dist/esm/apis/PasteApi.js +91 -0
  17. package/dist/esm/apis/ReleaseApi.d.ts +188 -0
  18. package/dist/esm/apis/ReleaseApi.js +222 -0
  19. package/dist/esm/apis/StatsApi.d.ts +49 -0
  20. package/dist/esm/apis/StatsApi.js +56 -0
  21. package/dist/esm/apis/index.d.ts +4 -0
  22. package/dist/esm/apis/index.js +6 -0
  23. package/dist/esm/index.d.ts +3 -13
  24. package/dist/esm/index.js +3 -13
  25. package/dist/esm/models/DeviceResponse.d.ts +101 -0
  26. package/dist/esm/models/DeviceResponse.js +82 -0
  27. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +52 -0
  28. package/dist/esm/models/GlobalStatsAggregationModel.js +55 -0
  29. package/dist/esm/models/HTTPValidationError.d.ts +33 -0
  30. package/dist/esm/models/HTTPValidationError.js +42 -0
  31. package/dist/esm/models/ListResponseReleaseResponse.d.ts +39 -0
  32. package/dist/esm/models/ListResponseReleaseResponse.js +47 -0
  33. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +39 -0
  34. package/dist/esm/models/ListResponseShortDeviceResponse.js +47 -0
  35. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +39 -0
  36. package/dist/esm/models/ListResponseShortReleaseResponse.js +47 -0
  37. package/dist/esm/models/ListResponseStr.d.ts +38 -0
  38. package/dist/esm/models/ListResponseStr.js +46 -0
  39. package/dist/esm/models/MaintainerShortModel.d.ts +44 -0
  40. package/dist/esm/models/MaintainerShortModel.js +51 -0
  41. package/dist/esm/models/PasteInput.d.ts +50 -0
  42. package/dist/esm/models/PasteInput.js +51 -0
  43. package/dist/esm/models/PasteOutput.d.ts +50 -0
  44. package/dist/esm/models/PasteOutput.js +51 -0
  45. package/dist/esm/models/RecoveryImgResponse.d.ts +38 -0
  46. package/dist/esm/models/RecoveryImgResponse.js +47 -0
  47. package/dist/esm/models/ReleaseGroupsResponse.d.ts +35 -0
  48. package/dist/esm/models/ReleaseGroupsResponse.js +43 -0
  49. package/dist/esm/models/ReleaseResponse.d.ts +139 -0
  50. package/dist/esm/models/ReleaseResponse.js +107 -0
  51. package/dist/esm/models/ReleaseType.d.ts +26 -0
  52. package/dist/esm/models/ReleaseType.js +44 -0
  53. package/dist/esm/models/ReleasesSort.d.ts +25 -0
  54. package/dist/esm/models/ReleasesSort.js +43 -0
  55. package/dist/esm/models/ResponseGetReleases.d.ts +41 -0
  56. package/dist/esm/models/ResponseGetReleases.js +46 -0
  57. package/dist/esm/models/ShortDeviceResponse.d.ts +82 -0
  58. package/dist/esm/models/ShortDeviceResponse.js +73 -0
  59. package/dist/esm/models/ShortReleaseResponse.d.ts +100 -0
  60. package/dist/esm/models/ShortReleaseResponse.js +84 -0
  61. package/dist/esm/models/ValidationError.d.ts +45 -0
  62. package/dist/esm/models/ValidationError.js +52 -0
  63. package/dist/esm/models/ValidationErrorLocInner.d.ts +26 -0
  64. package/{index.ts → dist/esm/models/ValidationErrorLocInner.js} +20 -7
  65. package/dist/esm/models/index.d.ts +20 -0
  66. package/dist/esm/models/index.js +22 -0
  67. package/dist/esm/runtime.d.ts +184 -0
  68. package/dist/esm/runtime.js +334 -0
  69. package/dist/index.d.ts +3 -13
  70. package/dist/index.js +5 -15
  71. package/dist/models/DeviceResponse.d.ts +101 -0
  72. package/dist/models/DeviceResponse.js +89 -0
  73. package/dist/models/GlobalStatsAggregationModel.d.ts +52 -0
  74. package/dist/models/GlobalStatsAggregationModel.js +62 -0
  75. package/dist/models/HTTPValidationError.d.ts +33 -0
  76. package/dist/models/HTTPValidationError.js +49 -0
  77. package/dist/models/ListResponseReleaseResponse.d.ts +39 -0
  78. package/dist/models/ListResponseReleaseResponse.js +54 -0
  79. package/dist/models/ListResponseShortDeviceResponse.d.ts +39 -0
  80. package/dist/models/ListResponseShortDeviceResponse.js +54 -0
  81. package/dist/models/ListResponseShortReleaseResponse.d.ts +39 -0
  82. package/dist/models/ListResponseShortReleaseResponse.js +54 -0
  83. package/dist/models/ListResponseStr.d.ts +38 -0
  84. package/dist/models/ListResponseStr.js +53 -0
  85. package/dist/models/MaintainerShortModel.d.ts +44 -0
  86. package/dist/models/MaintainerShortModel.js +58 -0
  87. package/dist/models/PasteInput.d.ts +50 -0
  88. package/dist/models/PasteInput.js +58 -0
  89. package/dist/models/PasteOutput.d.ts +50 -0
  90. package/dist/models/PasteOutput.js +58 -0
  91. package/dist/models/RecoveryImgResponse.d.ts +38 -0
  92. package/dist/models/RecoveryImgResponse.js +54 -0
  93. package/dist/models/ReleaseGroupsResponse.d.ts +35 -0
  94. package/dist/models/ReleaseGroupsResponse.js +50 -0
  95. package/dist/models/ReleaseResponse.d.ts +139 -0
  96. package/dist/models/ReleaseResponse.js +114 -0
  97. package/dist/models/ReleaseType.d.ts +26 -0
  98. package/dist/models/ReleaseType.js +52 -0
  99. package/dist/models/ReleasesSort.d.ts +25 -0
  100. package/dist/models/ReleasesSort.js +51 -0
  101. package/dist/models/ResponseGetReleases.d.ts +41 -0
  102. package/dist/models/ResponseGetReleases.js +53 -0
  103. package/dist/models/ShortDeviceResponse.d.ts +82 -0
  104. package/dist/models/ShortDeviceResponse.js +80 -0
  105. package/dist/models/ShortReleaseResponse.d.ts +100 -0
  106. package/dist/models/ShortReleaseResponse.js +91 -0
  107. package/dist/models/ValidationError.d.ts +45 -0
  108. package/dist/models/ValidationError.js +59 -0
  109. package/dist/models/ValidationErrorLocInner.d.ts +26 -0
  110. package/dist/models/ValidationErrorLocInner.js +38 -0
  111. package/dist/models/index.d.ts +20 -0
  112. package/dist/models/index.js +38 -0
  113. package/dist/runtime.d.ts +184 -0
  114. package/dist/runtime.js +350 -0
  115. package/package.json +4 -17
  116. package/src/apis/DeviceApi.ts +326 -0
  117. package/src/apis/PasteApi.ts +158 -0
  118. package/src/apis/ReleaseApi.ts +414 -0
  119. package/src/apis/StatsApi.ts +82 -0
  120. package/src/apis/index.ts +6 -0
  121. package/src/index.ts +5 -0
  122. package/src/models/DeviceResponse.ts +171 -0
  123. package/src/models/GlobalStatsAggregationModel.ts +93 -0
  124. package/src/models/HTTPValidationError.ts +73 -0
  125. package/src/models/ListResponseReleaseResponse.ts +82 -0
  126. package/src/models/ListResponseShortDeviceResponse.ts +82 -0
  127. package/src/models/ListResponseShortReleaseResponse.ts +82 -0
  128. package/src/models/ListResponseStr.ts +74 -0
  129. package/src/models/MaintainerShortModel.ts +84 -0
  130. package/src/models/PasteInput.ts +91 -0
  131. package/src/models/PasteOutput.ts +91 -0
  132. package/src/models/RecoveryImgResponse.ts +75 -0
  133. package/src/models/ReleaseGroupsResponse.ts +74 -0
  134. package/src/models/ReleaseResponse.ts +233 -0
  135. package/src/models/ReleaseType.ts +54 -0
  136. package/src/models/ReleasesSort.ts +53 -0
  137. package/src/models/ResponseGetReleases.ts +96 -0
  138. package/src/models/ShortDeviceResponse.ts +138 -0
  139. package/src/models/ShortReleaseResponse.ts +174 -0
  140. package/src/models/ValidationError.ts +92 -0
  141. package/src/models/ValidationErrorLocInner.ts +46 -0
  142. package/src/models/index.ts +22 -0
  143. package/src/runtime.ts +432 -0
  144. package/tsconfig.json +2 -4
  145. package/api.ts +0 -2101
  146. package/base.ts +0 -86
  147. package/common.ts +0 -150
  148. package/configuration.ts +0 -115
  149. package/dist/api.d.ts +0 -1483
  150. package/dist/api.js +0 -1172
  151. package/dist/base.d.ts +0 -66
  152. package/dist/base.js +0 -65
  153. package/dist/common.d.ts +0 -65
  154. package/dist/common.js +0 -161
  155. package/dist/configuration.d.ts +0 -91
  156. package/dist/configuration.js +0 -44
  157. package/dist/esm/api.d.ts +0 -1483
  158. package/dist/esm/api.js +0 -1153
  159. package/dist/esm/base.d.ts +0 -66
  160. package/dist/esm/base.js +0 -60
  161. package/dist/esm/common.d.ts +0 -65
  162. package/dist/esm/common.js +0 -149
  163. package/dist/esm/configuration.d.ts +0 -91
  164. package/dist/esm/configuration.js +0 -40
  165. package/docs/DeviceApi.md +0 -251
  166. package/docs/DeviceResponse.md +0 -44
  167. package/docs/GlobalStatsAggregationModel.md +0 -26
  168. package/docs/HTTPValidationError.md +0 -20
  169. package/docs/ListResponseReleaseResponse.md +0 -22
  170. package/docs/ListResponseShortDeviceResponse.md +0 -22
  171. package/docs/ListResponseShortReleaseResponse.md +0 -22
  172. package/docs/ListResponseStr.md +0 -22
  173. package/docs/MaintainerShortModel.md +0 -26
  174. package/docs/PasteApi.md +0 -117
  175. package/docs/PasteInput.md +0 -26
  176. package/docs/PasteOutput.md +0 -26
  177. package/docs/RecoveryImgResponse.md +0 -22
  178. package/docs/ReleaseApi.md +0 -289
  179. package/docs/ReleaseGroupsResponse.md +0 -20
  180. package/docs/ReleaseResponse.md +0 -56
  181. package/docs/ReleaseType.md +0 -12
  182. package/docs/ReleasesSort.md +0 -10
  183. package/docs/ResponseGetReleases.md +0 -22
  184. package/docs/ShortDeviceResponse.md +0 -38
  185. package/docs/ShortReleaseResponse.md +0 -44
  186. package/docs/StatsApi.md +0 -53
  187. package/docs/ValidationError.md +0 -24
  188. package/docs/ValidationErrorLocInner.md +0 -18
  189. package/git_push.sh +0 -57
@@ -0,0 +1,107 @@
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: 5.2.7
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
+ import { ReleaseTypeFromJSON, ReleaseTypeToJSON, } from './ReleaseType';
15
+ import { RecoveryImgResponseFromJSON, RecoveryImgResponseToJSON, } from './RecoveryImgResponse';
16
+ /**
17
+ * Check if a given object implements the ReleaseResponse interface.
18
+ */
19
+ export function instanceOfReleaseResponse(value) {
20
+ if (!('size' in value) || value['size'] === undefined)
21
+ return false;
22
+ if (!('id' in value) || value['id'] === undefined)
23
+ return false;
24
+ if (!('filename' in value) || value['filename'] === undefined)
25
+ return false;
26
+ if (!('variant' in value) || value['variant'] === undefined)
27
+ return false;
28
+ if (!('deviceId' in value) || value['deviceId'] === undefined)
29
+ return false;
30
+ if (!('date' in value) || value['date'] === undefined)
31
+ return false;
32
+ if (!('md5' in value) || value['md5'] === undefined)
33
+ return false;
34
+ if (!('version' in value) || value['version'] === undefined)
35
+ return false;
36
+ if (!('type' in value) || value['type'] === undefined)
37
+ return false;
38
+ if (!('archived' in value) || value['archived'] === undefined)
39
+ return false;
40
+ if (!('recoveryImg' in value) || value['recoveryImg'] === undefined)
41
+ return false;
42
+ if (!('changelog' in value) || value['changelog'] === undefined)
43
+ return false;
44
+ if (!('bugs' in value) || value['bugs'] === undefined)
45
+ return false;
46
+ if (!('notes' in value) || value['notes'] === undefined)
47
+ return false;
48
+ if (!('url' in value) || value['url'] === undefined)
49
+ return false;
50
+ if (!('mirrors' in value) || value['mirrors'] === undefined)
51
+ return false;
52
+ return true;
53
+ }
54
+ export function ReleaseResponseFromJSON(json) {
55
+ return ReleaseResponseFromJSONTyped(json, false);
56
+ }
57
+ export function ReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+ 'size': json['size'],
63
+ 'id': json['id'],
64
+ 'buildId': json['build_id'] == null ? undefined : json['build_id'],
65
+ 'filename': json['filename'],
66
+ 'variant': json['variant'],
67
+ 'deviceId': json['device_id'],
68
+ 'date': json['date'],
69
+ 'md5': json['md5'],
70
+ 'version': json['version'],
71
+ 'type': ReleaseTypeFromJSON(json['type']),
72
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
73
+ 'archived': json['archived'],
74
+ 'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
75
+ 'changelog': json['changelog'],
76
+ 'bugs': json['bugs'] == null ? null : json['bugs'],
77
+ 'notes': json['notes'],
78
+ 'url': json['url'],
79
+ 'mirrors': json['mirrors'],
80
+ };
81
+ }
82
+ export function ReleaseResponseToJSON(json) {
83
+ return ReleaseResponseToJSONTyped(json, false);
84
+ }
85
+ export function ReleaseResponseToJSONTyped(value, ignoreDiscriminator = false) {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+ return {
90
+ 'size': value['size'],
91
+ 'id': value['id'],
92
+ 'build_id': value['buildId'],
93
+ 'filename': value['filename'],
94
+ 'variant': value['variant'],
95
+ 'device_id': value['deviceId'],
96
+ 'date': value['date'],
97
+ 'md5': value['md5'],
98
+ 'version': value['version'],
99
+ 'type': ReleaseTypeToJSON(value['type']),
100
+ 'maintainer_id': value['maintainerId'],
101
+ 'archived': value['archived'],
102
+ 'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
103
+ 'changelog': value['changelog'],
104
+ 'bugs': value['bugs'],
105
+ 'notes': value['notes'],
106
+ };
107
+ }
@@ -0,0 +1,26 @@
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: 5.2.7
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
+ */
16
+ export declare const ReleaseType: {
17
+ readonly Stable: "stable";
18
+ readonly Beta: "beta";
19
+ readonly Alpha: "alpha";
20
+ };
21
+ export type ReleaseType = typeof ReleaseType[keyof typeof ReleaseType];
22
+ export declare function instanceOfReleaseType(value: any): boolean;
23
+ export declare function ReleaseTypeFromJSON(json: any): ReleaseType;
24
+ export declare function ReleaseTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseType;
25
+ export declare function ReleaseTypeToJSON(value?: ReleaseType | null): any;
26
+ export declare function ReleaseTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ReleaseType;
@@ -0,0 +1,44 @@
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: 5.2.7
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
+ *
16
+ * @export
17
+ */
18
+ export const ReleaseType = {
19
+ Stable: 'stable',
20
+ Beta: 'beta',
21
+ Alpha: 'alpha'
22
+ };
23
+ export function instanceOfReleaseType(value) {
24
+ for (const key in ReleaseType) {
25
+ if (Object.prototype.hasOwnProperty.call(ReleaseType, key)) {
26
+ if (ReleaseType[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function ReleaseTypeFromJSON(json) {
34
+ return ReleaseTypeFromJSONTyped(json, false);
35
+ }
36
+ export function ReleaseTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function ReleaseTypeToJSON(value) {
40
+ return value;
41
+ }
42
+ export function ReleaseTypeToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,25 @@
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: 5.2.7
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
+ */
16
+ export declare const ReleasesSort: {
17
+ readonly DateAsc: "date_asc";
18
+ readonly DateDesc: "date_desc";
19
+ };
20
+ export type ReleasesSort = typeof ReleasesSort[keyof typeof ReleasesSort];
21
+ export declare function instanceOfReleasesSort(value: any): boolean;
22
+ export declare function ReleasesSortFromJSON(json: any): ReleasesSort;
23
+ export declare function ReleasesSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleasesSort;
24
+ export declare function ReleasesSortToJSON(value?: ReleasesSort | null): any;
25
+ export declare function ReleasesSortToJSONTyped(value: any, ignoreDiscriminator: boolean): ReleasesSort;
@@ -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: 5.2.7
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
+ *
16
+ * @export
17
+ */
18
+ export const ReleasesSort = {
19
+ DateAsc: 'date_asc',
20
+ DateDesc: 'date_desc'
21
+ };
22
+ export function instanceOfReleasesSort(value) {
23
+ for (const key in ReleasesSort) {
24
+ if (Object.prototype.hasOwnProperty.call(ReleasesSort, key)) {
25
+ if (ReleasesSort[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function ReleasesSortFromJSON(json) {
33
+ return ReleasesSortFromJSONTyped(json, false);
34
+ }
35
+ export function ReleasesSortFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function ReleasesSortToJSON(value) {
39
+ return value;
40
+ }
41
+ export function ReleasesSortToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,41 @@
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: 5.2.7
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
+ import type { ReleaseResponse } from './ReleaseResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ResponseGetReleases
17
+ */
18
+ export interface ResponseGetReleases {
19
+ /**
20
+ *
21
+ * @type {{ [key: string]: Array<ReleaseResponse>; }}
22
+ * @memberof ResponseGetReleases
23
+ */
24
+ data: {
25
+ [key: string]: Array<ReleaseResponse>;
26
+ };
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof ResponseGetReleases
31
+ */
32
+ readonly count: number;
33
+ }
34
+ /**
35
+ * Check if a given object implements the ResponseGetReleases interface.
36
+ */
37
+ export declare function instanceOfResponseGetReleases(value: object): value is ResponseGetReleases;
38
+ export declare function ResponseGetReleasesFromJSON(json: any): ResponseGetReleases;
39
+ export declare function ResponseGetReleasesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResponseGetReleases;
40
+ export declare function ResponseGetReleasesToJSON(json: any): ResponseGetReleases;
41
+ export declare function ResponseGetReleasesToJSONTyped(value?: Omit<ResponseGetReleases, 'count'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
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: 5.2.7
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 ResponseGetReleases interface.
16
+ */
17
+ export function instanceOfResponseGetReleases(value) {
18
+ if (!('data' in value) || value['data'] === undefined)
19
+ return false;
20
+ if (!('count' in value) || value['count'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ResponseGetReleasesFromJSON(json) {
25
+ return ResponseGetReleasesFromJSONTyped(json, false);
26
+ }
27
+ export function ResponseGetReleasesFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'data': json['data'],
33
+ 'count': json['count'],
34
+ };
35
+ }
36
+ export function ResponseGetReleasesToJSON(json) {
37
+ return ResponseGetReleasesToJSONTyped(json, false);
38
+ }
39
+ export function ResponseGetReleasesToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'data': value['data'],
45
+ };
46
+ }
@@ -0,0 +1,82 @@
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: 5.2.7
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 ShortDeviceResponse
16
+ */
17
+ export interface ShortDeviceResponse {
18
+ /**
19
+ * Device codename, legacy
20
+ * @type {string}
21
+ * @memberof ShortDeviceResponse
22
+ * @deprecated
23
+ */
24
+ codename: string;
25
+ /**
26
+ * Model name of device, does not include the OEM part, legacy
27
+ * @type {string}
28
+ * @memberof ShortDeviceResponse
29
+ * @deprecated
30
+ */
31
+ modelName: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ShortDeviceResponse
36
+ */
37
+ oemName: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ShortDeviceResponse
42
+ */
43
+ id: string;
44
+ /**
45
+ *
46
+ * @type {Array<string>}
47
+ * @memberof ShortDeviceResponse
48
+ */
49
+ codenames: Array<string>;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof ShortDeviceResponse
54
+ */
55
+ modelNames: Array<string>;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof ShortDeviceResponse
60
+ */
61
+ supported: boolean;
62
+ /**
63
+ * Full name of device / devices, legacy
64
+ * @type {string}
65
+ * @memberof ShortDeviceResponse
66
+ */
67
+ readonly fullName: string;
68
+ /**
69
+ * URL of the device on the official website
70
+ * @type {string}
71
+ * @memberof ShortDeviceResponse
72
+ */
73
+ readonly url: string;
74
+ }
75
+ /**
76
+ * Check if a given object implements the ShortDeviceResponse interface.
77
+ */
78
+ export declare function instanceOfShortDeviceResponse(value: object): value is ShortDeviceResponse;
79
+ export declare function ShortDeviceResponseFromJSON(json: any): ShortDeviceResponse;
80
+ export declare function ShortDeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortDeviceResponse;
81
+ export declare function ShortDeviceResponseToJSON(json: any): ShortDeviceResponse;
82
+ export declare function ShortDeviceResponseToJSONTyped(value?: Omit<ShortDeviceResponse, 'full_name' | 'url'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,73 @@
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: 5.2.7
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 ShortDeviceResponse interface.
16
+ */
17
+ export function instanceOfShortDeviceResponse(value) {
18
+ if (!('codename' in value) || value['codename'] === undefined)
19
+ return false;
20
+ if (!('modelName' in value) || value['modelName'] === undefined)
21
+ return false;
22
+ if (!('oemName' in value) || value['oemName'] === undefined)
23
+ return false;
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('codenames' in value) || value['codenames'] === undefined)
27
+ return false;
28
+ if (!('modelNames' in value) || value['modelNames'] === undefined)
29
+ return false;
30
+ if (!('supported' in value) || value['supported'] === undefined)
31
+ return false;
32
+ if (!('fullName' in value) || value['fullName'] === undefined)
33
+ return false;
34
+ if (!('url' in value) || value['url'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ export function ShortDeviceResponseFromJSON(json) {
39
+ return ShortDeviceResponseFromJSONTyped(json, false);
40
+ }
41
+ export function ShortDeviceResponseFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'codename': json['codename'],
47
+ 'modelName': json['model_name'],
48
+ 'oemName': json['oem_name'],
49
+ 'id': json['id'],
50
+ 'codenames': json['codenames'],
51
+ 'modelNames': json['model_names'],
52
+ 'supported': json['supported'],
53
+ 'fullName': json['full_name'],
54
+ 'url': json['url'],
55
+ };
56
+ }
57
+ export function ShortDeviceResponseToJSON(json) {
58
+ return ShortDeviceResponseToJSONTyped(json, false);
59
+ }
60
+ export function ShortDeviceResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'codename': value['codename'],
66
+ 'model_name': value['modelName'],
67
+ 'oem_name': value['oemName'],
68
+ 'id': value['id'],
69
+ 'codenames': value['codenames'],
70
+ 'model_names': value['modelNames'],
71
+ 'supported': value['supported'],
72
+ };
73
+ }
@@ -0,0 +1,100 @@
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: 5.2.7
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
+ import type { ReleaseType } from './ReleaseType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ShortReleaseResponse
17
+ */
18
+ export interface ShortReleaseResponse {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof ShortReleaseResponse
23
+ * @deprecated
24
+ */
25
+ size: number;
26
+ /**
27
+ * Release ID, that's how we indentify the release in the infrastructure
28
+ * @type {string}
29
+ * @memberof ShortReleaseResponse
30
+ */
31
+ id: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ShortReleaseResponse
36
+ */
37
+ buildId?: string | null;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ShortReleaseResponse
42
+ */
43
+ filename: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ShortReleaseResponse
48
+ */
49
+ variant: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof ShortReleaseResponse
54
+ */
55
+ deviceId: string;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof ShortReleaseResponse
60
+ */
61
+ date: number;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof ShortReleaseResponse
66
+ */
67
+ md5: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof ShortReleaseResponse
72
+ */
73
+ version: string;
74
+ /**
75
+ *
76
+ * @type {ReleaseType}
77
+ * @memberof ShortReleaseResponse
78
+ */
79
+ type: ReleaseType;
80
+ /**
81
+ *
82
+ * @type {string}
83
+ * @memberof ShortReleaseResponse
84
+ */
85
+ maintainerId?: string | null;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof ShortReleaseResponse
90
+ */
91
+ archived: boolean;
92
+ }
93
+ /**
94
+ * Check if a given object implements the ShortReleaseResponse interface.
95
+ */
96
+ export declare function instanceOfShortReleaseResponse(value: object): value is ShortReleaseResponse;
97
+ export declare function ShortReleaseResponseFromJSON(json: any): ShortReleaseResponse;
98
+ export declare function ShortReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortReleaseResponse;
99
+ export declare function ShortReleaseResponseToJSON(json: any): ShortReleaseResponse;
100
+ export declare function ShortReleaseResponseToJSONTyped(value?: ShortReleaseResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,84 @@
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: 5.2.7
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
+ import { ReleaseTypeFromJSON, ReleaseTypeToJSON, } from './ReleaseType';
15
+ /**
16
+ * Check if a given object implements the ShortReleaseResponse interface.
17
+ */
18
+ export function instanceOfShortReleaseResponse(value) {
19
+ if (!('size' in value) || value['size'] === undefined)
20
+ return false;
21
+ if (!('id' in value) || value['id'] === undefined)
22
+ return false;
23
+ if (!('filename' in value) || value['filename'] === undefined)
24
+ return false;
25
+ if (!('variant' in value) || value['variant'] === undefined)
26
+ return false;
27
+ if (!('deviceId' in value) || value['deviceId'] === undefined)
28
+ return false;
29
+ if (!('date' in value) || value['date'] === undefined)
30
+ return false;
31
+ if (!('md5' in value) || value['md5'] === undefined)
32
+ return false;
33
+ if (!('version' in value) || value['version'] === undefined)
34
+ return false;
35
+ if (!('type' in value) || value['type'] === undefined)
36
+ return false;
37
+ if (!('archived' in value) || value['archived'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function ShortReleaseResponseFromJSON(json) {
42
+ return ShortReleaseResponseFromJSONTyped(json, false);
43
+ }
44
+ export function ShortReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'size': json['size'],
50
+ 'id': json['id'],
51
+ 'buildId': json['build_id'] == null ? undefined : json['build_id'],
52
+ 'filename': json['filename'],
53
+ 'variant': json['variant'],
54
+ 'deviceId': json['device_id'],
55
+ 'date': json['date'],
56
+ 'md5': json['md5'],
57
+ 'version': json['version'],
58
+ 'type': ReleaseTypeFromJSON(json['type']),
59
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
60
+ 'archived': json['archived'],
61
+ };
62
+ }
63
+ export function ShortReleaseResponseToJSON(json) {
64
+ return ShortReleaseResponseToJSONTyped(json, false);
65
+ }
66
+ export function ShortReleaseResponseToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'size': value['size'],
72
+ 'id': value['id'],
73
+ 'build_id': value['buildId'],
74
+ 'filename': value['filename'],
75
+ 'variant': value['variant'],
76
+ 'device_id': value['deviceId'],
77
+ 'date': value['date'],
78
+ 'md5': value['md5'],
79
+ 'version': value['version'],
80
+ 'type': ReleaseTypeToJSON(value['type']),
81
+ 'maintainer_id': value['maintainerId'],
82
+ 'archived': value['archived'],
83
+ };
84
+ }