@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,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPasteInput = instanceOfPasteInput;
17
+ exports.PasteInputFromJSON = PasteInputFromJSON;
18
+ exports.PasteInputFromJSONTyped = PasteInputFromJSONTyped;
19
+ exports.PasteInputToJSON = PasteInputToJSON;
20
+ exports.PasteInputToJSONTyped = PasteInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PasteInput interface.
23
+ */
24
+ function instanceOfPasteInput(value) {
25
+ if (!('content' in value) || value['content'] === undefined)
26
+ return false;
27
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PasteInputFromJSON(json) {
32
+ return PasteInputFromJSONTyped(json, false);
33
+ }
34
+ function PasteInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['_id'] == null ? undefined : json['_id'],
40
+ 'content': json['content'],
41
+ 'ipAddress': json['ip_address'],
42
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
43
+ };
44
+ }
45
+ function PasteInputToJSON(json) {
46
+ return PasteInputToJSONTyped(json, false);
47
+ }
48
+ function PasteInputToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ '_id': value['id'],
54
+ 'content': value['content'],
55
+ 'ip_address': value['ipAddress'],
56
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
57
+ };
58
+ }
@@ -0,0 +1,50 @@
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 PasteOutput
16
+ */
17
+ export interface PasteOutput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PasteOutput
22
+ */
23
+ id?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PasteOutput
28
+ */
29
+ content: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PasteOutput
34
+ */
35
+ ipAddress: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof PasteOutput
40
+ */
41
+ createdAt?: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PasteOutput interface.
45
+ */
46
+ export declare function instanceOfPasteOutput(value: object): value is PasteOutput;
47
+ export declare function PasteOutputFromJSON(json: any): PasteOutput;
48
+ export declare function PasteOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasteOutput;
49
+ export declare function PasteOutputToJSON(json: any): PasteOutput;
50
+ export declare function PasteOutputToJSONTyped(value?: PasteOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPasteOutput = instanceOfPasteOutput;
17
+ exports.PasteOutputFromJSON = PasteOutputFromJSON;
18
+ exports.PasteOutputFromJSONTyped = PasteOutputFromJSONTyped;
19
+ exports.PasteOutputToJSON = PasteOutputToJSON;
20
+ exports.PasteOutputToJSONTyped = PasteOutputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PasteOutput interface.
23
+ */
24
+ function instanceOfPasteOutput(value) {
25
+ if (!('content' in value) || value['content'] === undefined)
26
+ return false;
27
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PasteOutputFromJSON(json) {
32
+ return PasteOutputFromJSONTyped(json, false);
33
+ }
34
+ function PasteOutputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['_id'] == null ? undefined : json['_id'],
40
+ 'content': json['content'],
41
+ 'ipAddress': json['ip_address'],
42
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
43
+ };
44
+ }
45
+ function PasteOutputToJSON(json) {
46
+ return PasteOutputToJSONTyped(json, false);
47
+ }
48
+ function PasteOutputToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ '_id': value['id'],
54
+ 'content': value['content'],
55
+ 'ip_address': value['ipAddress'],
56
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
57
+ };
58
+ }
@@ -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: 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 RecoveryImgResponse
16
+ */
17
+ export interface RecoveryImgResponse {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof RecoveryImgResponse
22
+ */
23
+ size: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof RecoveryImgResponse
28
+ */
29
+ md5: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the RecoveryImgResponse interface.
33
+ */
34
+ export declare function instanceOfRecoveryImgResponse(value: object): value is RecoveryImgResponse;
35
+ export declare function RecoveryImgResponseFromJSON(json: any): RecoveryImgResponse;
36
+ export declare function RecoveryImgResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoveryImgResponse;
37
+ export declare function RecoveryImgResponseToJSON(json: any): RecoveryImgResponse;
38
+ export declare function RecoveryImgResponseToJSONTyped(value?: RecoveryImgResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfRecoveryImgResponse = instanceOfRecoveryImgResponse;
17
+ exports.RecoveryImgResponseFromJSON = RecoveryImgResponseFromJSON;
18
+ exports.RecoveryImgResponseFromJSONTyped = RecoveryImgResponseFromJSONTyped;
19
+ exports.RecoveryImgResponseToJSON = RecoveryImgResponseToJSON;
20
+ exports.RecoveryImgResponseToJSONTyped = RecoveryImgResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the RecoveryImgResponse interface.
23
+ */
24
+ function instanceOfRecoveryImgResponse(value) {
25
+ if (!('size' in value) || value['size'] === undefined)
26
+ return false;
27
+ if (!('md5' in value) || value['md5'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function RecoveryImgResponseFromJSON(json) {
32
+ return RecoveryImgResponseFromJSONTyped(json, false);
33
+ }
34
+ function RecoveryImgResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'size': json['size'],
40
+ 'md5': json['md5'],
41
+ };
42
+ }
43
+ function RecoveryImgResponseToJSON(json) {
44
+ return RecoveryImgResponseToJSONTyped(json, false);
45
+ }
46
+ function RecoveryImgResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'size': value['size'],
52
+ 'md5': value['md5'],
53
+ };
54
+ }
@@ -0,0 +1,35 @@
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 ReleaseGroupsResponse
17
+ */
18
+ export interface ReleaseGroupsResponse {
19
+ /**
20
+ *
21
+ * @type {{ [key: string]: Array<ReleaseResponse>; }}
22
+ * @memberof ReleaseGroupsResponse
23
+ */
24
+ data: {
25
+ [key: string]: Array<ReleaseResponse>;
26
+ };
27
+ }
28
+ /**
29
+ * Check if a given object implements the ReleaseGroupsResponse interface.
30
+ */
31
+ export declare function instanceOfReleaseGroupsResponse(value: object): value is ReleaseGroupsResponse;
32
+ export declare function ReleaseGroupsResponseFromJSON(json: any): ReleaseGroupsResponse;
33
+ export declare function ReleaseGroupsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseGroupsResponse;
34
+ export declare function ReleaseGroupsResponseToJSON(json: any): ReleaseGroupsResponse;
35
+ export declare function ReleaseGroupsResponseToJSONTyped(value?: ReleaseGroupsResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfReleaseGroupsResponse = instanceOfReleaseGroupsResponse;
17
+ exports.ReleaseGroupsResponseFromJSON = ReleaseGroupsResponseFromJSON;
18
+ exports.ReleaseGroupsResponseFromJSONTyped = ReleaseGroupsResponseFromJSONTyped;
19
+ exports.ReleaseGroupsResponseToJSON = ReleaseGroupsResponseToJSON;
20
+ exports.ReleaseGroupsResponseToJSONTyped = ReleaseGroupsResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ReleaseGroupsResponse interface.
23
+ */
24
+ function instanceOfReleaseGroupsResponse(value) {
25
+ if (!('data' in value) || value['data'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ReleaseGroupsResponseFromJSON(json) {
30
+ return ReleaseGroupsResponseFromJSONTyped(json, false);
31
+ }
32
+ function ReleaseGroupsResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'data': json['data'],
38
+ };
39
+ }
40
+ function ReleaseGroupsResponseToJSON(json) {
41
+ return ReleaseGroupsResponseToJSONTyped(json, false);
42
+ }
43
+ function ReleaseGroupsResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'],
49
+ };
50
+ }
@@ -0,0 +1,139 @@
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
+ import type { RecoveryImgResponse } from './RecoveryImgResponse';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ReleaseResponse
18
+ */
19
+ export interface ReleaseResponse {
20
+ /**
21
+ *
22
+ * @type {number}
23
+ * @memberof ReleaseResponse
24
+ * @deprecated
25
+ */
26
+ size: number;
27
+ /**
28
+ * Release ID, that's how we indentify the release in the infrastructure
29
+ * @type {string}
30
+ * @memberof ReleaseResponse
31
+ */
32
+ id: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof ReleaseResponse
37
+ */
38
+ buildId?: string | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof ReleaseResponse
43
+ */
44
+ filename: string;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof ReleaseResponse
49
+ */
50
+ variant: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof ReleaseResponse
55
+ */
56
+ deviceId: string;
57
+ /**
58
+ *
59
+ * @type {number}
60
+ * @memberof ReleaseResponse
61
+ */
62
+ date: number;
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof ReleaseResponse
67
+ */
68
+ md5: string;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof ReleaseResponse
73
+ */
74
+ version: string;
75
+ /**
76
+ *
77
+ * @type {ReleaseType}
78
+ * @memberof ReleaseResponse
79
+ */
80
+ type: ReleaseType;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof ReleaseResponse
85
+ */
86
+ maintainerId?: string | null;
87
+ /**
88
+ *
89
+ * @type {boolean}
90
+ * @memberof ReleaseResponse
91
+ */
92
+ archived: boolean;
93
+ /**
94
+ *
95
+ * @type {RecoveryImgResponse}
96
+ * @memberof ReleaseResponse
97
+ */
98
+ recoveryImg: RecoveryImgResponse;
99
+ /**
100
+ *
101
+ * @type {Array<string>}
102
+ * @memberof ReleaseResponse
103
+ */
104
+ changelog: Array<string>;
105
+ /**
106
+ *
107
+ * @type {Array<string>}
108
+ * @memberof ReleaseResponse
109
+ */
110
+ bugs: Array<string> | null;
111
+ /**
112
+ *
113
+ * @type {string}
114
+ * @memberof ReleaseResponse
115
+ */
116
+ notes: string | null;
117
+ /**
118
+ * URL of the release on the official website
119
+ * @type {string}
120
+ * @memberof ReleaseResponse
121
+ */
122
+ readonly url: string;
123
+ /**
124
+ * Mirrors list (deprecated)
125
+ * @type {{ [key: string]: string; }}
126
+ * @memberof ReleaseResponse
127
+ */
128
+ readonly mirrors: {
129
+ [key: string]: string;
130
+ };
131
+ }
132
+ /**
133
+ * Check if a given object implements the ReleaseResponse interface.
134
+ */
135
+ export declare function instanceOfReleaseResponse(value: object): value is ReleaseResponse;
136
+ export declare function ReleaseResponseFromJSON(json: any): ReleaseResponse;
137
+ export declare function ReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReleaseResponse;
138
+ export declare function ReleaseResponseToJSON(json: any): ReleaseResponse;
139
+ export declare function ReleaseResponseToJSONTyped(value?: Omit<ReleaseResponse, 'url' | 'mirrors'> | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,114 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfReleaseResponse = instanceOfReleaseResponse;
17
+ exports.ReleaseResponseFromJSON = ReleaseResponseFromJSON;
18
+ exports.ReleaseResponseFromJSONTyped = ReleaseResponseFromJSONTyped;
19
+ exports.ReleaseResponseToJSON = ReleaseResponseToJSON;
20
+ exports.ReleaseResponseToJSONTyped = ReleaseResponseToJSONTyped;
21
+ const ReleaseType_1 = require("./ReleaseType");
22
+ const RecoveryImgResponse_1 = require("./RecoveryImgResponse");
23
+ /**
24
+ * Check if a given object implements the ReleaseResponse interface.
25
+ */
26
+ function instanceOfReleaseResponse(value) {
27
+ if (!('size' in value) || value['size'] === undefined)
28
+ return false;
29
+ if (!('id' in value) || value['id'] === undefined)
30
+ return false;
31
+ if (!('filename' in value) || value['filename'] === undefined)
32
+ return false;
33
+ if (!('variant' in value) || value['variant'] === undefined)
34
+ return false;
35
+ if (!('deviceId' in value) || value['deviceId'] === undefined)
36
+ return false;
37
+ if (!('date' in value) || value['date'] === undefined)
38
+ return false;
39
+ if (!('md5' in value) || value['md5'] === undefined)
40
+ return false;
41
+ if (!('version' in value) || value['version'] === undefined)
42
+ return false;
43
+ if (!('type' in value) || value['type'] === undefined)
44
+ return false;
45
+ if (!('archived' in value) || value['archived'] === undefined)
46
+ return false;
47
+ if (!('recoveryImg' in value) || value['recoveryImg'] === undefined)
48
+ return false;
49
+ if (!('changelog' in value) || value['changelog'] === undefined)
50
+ return false;
51
+ if (!('bugs' in value) || value['bugs'] === undefined)
52
+ return false;
53
+ if (!('notes' in value) || value['notes'] === undefined)
54
+ return false;
55
+ if (!('url' in value) || value['url'] === undefined)
56
+ return false;
57
+ if (!('mirrors' in value) || value['mirrors'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ function ReleaseResponseFromJSON(json) {
62
+ return ReleaseResponseFromJSONTyped(json, false);
63
+ }
64
+ function ReleaseResponseFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'size': json['size'],
70
+ 'id': json['id'],
71
+ 'buildId': json['build_id'] == null ? undefined : json['build_id'],
72
+ 'filename': json['filename'],
73
+ 'variant': json['variant'],
74
+ 'deviceId': json['device_id'],
75
+ 'date': json['date'],
76
+ 'md5': json['md5'],
77
+ 'version': json['version'],
78
+ 'type': (0, ReleaseType_1.ReleaseTypeFromJSON)(json['type']),
79
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
80
+ 'archived': json['archived'],
81
+ 'recoveryImg': (0, RecoveryImgResponse_1.RecoveryImgResponseFromJSON)(json['recovery_img']),
82
+ 'changelog': json['changelog'],
83
+ 'bugs': json['bugs'] == null ? null : json['bugs'],
84
+ 'notes': json['notes'],
85
+ 'url': json['url'],
86
+ 'mirrors': json['mirrors'],
87
+ };
88
+ }
89
+ function ReleaseResponseToJSON(json) {
90
+ return ReleaseResponseToJSONTyped(json, false);
91
+ }
92
+ function ReleaseResponseToJSONTyped(value, ignoreDiscriminator = false) {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+ return {
97
+ 'size': value['size'],
98
+ 'id': value['id'],
99
+ 'build_id': value['buildId'],
100
+ 'filename': value['filename'],
101
+ 'variant': value['variant'],
102
+ 'device_id': value['deviceId'],
103
+ 'date': value['date'],
104
+ 'md5': value['md5'],
105
+ 'version': value['version'],
106
+ 'type': (0, ReleaseType_1.ReleaseTypeToJSON)(value['type']),
107
+ 'maintainer_id': value['maintainerId'],
108
+ 'archived': value['archived'],
109
+ 'recovery_img': (0, RecoveryImgResponse_1.RecoveryImgResponseToJSON)(value['recoveryImg']),
110
+ 'changelog': value['changelog'],
111
+ 'bugs': value['bugs'],
112
+ 'notes': value['notes'],
113
+ };
114
+ }
@@ -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,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 5.2.7
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ReleaseType = void 0;
17
+ exports.instanceOfReleaseType = instanceOfReleaseType;
18
+ exports.ReleaseTypeFromJSON = ReleaseTypeFromJSON;
19
+ exports.ReleaseTypeFromJSONTyped = ReleaseTypeFromJSONTyped;
20
+ exports.ReleaseTypeToJSON = ReleaseTypeToJSON;
21
+ exports.ReleaseTypeToJSONTyped = ReleaseTypeToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.ReleaseType = {
27
+ Stable: 'stable',
28
+ Beta: 'beta',
29
+ Alpha: 'alpha'
30
+ };
31
+ function instanceOfReleaseType(value) {
32
+ for (const key in exports.ReleaseType) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.ReleaseType, key)) {
34
+ if (exports.ReleaseType[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function ReleaseTypeFromJSON(json) {
42
+ return ReleaseTypeFromJSONTyped(json, false);
43
+ }
44
+ function ReleaseTypeFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function ReleaseTypeToJSON(value) {
48
+ return value;
49
+ }
50
+ function ReleaseTypeToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }