@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,138 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ShortDeviceResponse
20
+ */
21
+ export interface ShortDeviceResponse {
22
+ /**
23
+ * Device codename, legacy
24
+ * @type {string}
25
+ * @memberof ShortDeviceResponse
26
+ * @deprecated
27
+ */
28
+ codename: string;
29
+ /**
30
+ * Model name of device, does not include the OEM part, legacy
31
+ * @type {string}
32
+ * @memberof ShortDeviceResponse
33
+ * @deprecated
34
+ */
35
+ modelName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ShortDeviceResponse
40
+ */
41
+ oemName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ShortDeviceResponse
46
+ */
47
+ id: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof ShortDeviceResponse
52
+ */
53
+ codenames: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof ShortDeviceResponse
58
+ */
59
+ modelNames: Array<string>;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof ShortDeviceResponse
64
+ */
65
+ supported: boolean;
66
+ /**
67
+ * Full name of device / devices, legacy
68
+ * @type {string}
69
+ * @memberof ShortDeviceResponse
70
+ */
71
+ readonly fullName: string;
72
+ /**
73
+ * URL of the device on the official website
74
+ * @type {string}
75
+ * @memberof ShortDeviceResponse
76
+ */
77
+ readonly url: string;
78
+ }
79
+
80
+ /**
81
+ * Check if a given object implements the ShortDeviceResponse interface.
82
+ */
83
+ export function instanceOfShortDeviceResponse(value: object): value is ShortDeviceResponse {
84
+ if (!('codename' in value) || value['codename'] === undefined) return false;
85
+ if (!('modelName' in value) || value['modelName'] === undefined) return false;
86
+ if (!('oemName' in value) || value['oemName'] === undefined) return false;
87
+ if (!('id' in value) || value['id'] === undefined) return false;
88
+ if (!('codenames' in value) || value['codenames'] === undefined) return false;
89
+ if (!('modelNames' in value) || value['modelNames'] === undefined) return false;
90
+ if (!('supported' in value) || value['supported'] === undefined) return false;
91
+ if (!('fullName' in value) || value['fullName'] === undefined) return false;
92
+ if (!('url' in value) || value['url'] === undefined) return false;
93
+ return true;
94
+ }
95
+
96
+ export function ShortDeviceResponseFromJSON(json: any): ShortDeviceResponse {
97
+ return ShortDeviceResponseFromJSONTyped(json, false);
98
+ }
99
+
100
+ export function ShortDeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortDeviceResponse {
101
+ if (json == null) {
102
+ return json;
103
+ }
104
+ return {
105
+
106
+ 'codename': json['codename'],
107
+ 'modelName': json['model_name'],
108
+ 'oemName': json['oem_name'],
109
+ 'id': json['id'],
110
+ 'codenames': json['codenames'],
111
+ 'modelNames': json['model_names'],
112
+ 'supported': json['supported'],
113
+ 'fullName': json['full_name'],
114
+ 'url': json['url'],
115
+ };
116
+ }
117
+
118
+ export function ShortDeviceResponseToJSON(json: any): ShortDeviceResponse {
119
+ return ShortDeviceResponseToJSONTyped(json, false);
120
+ }
121
+
122
+ export function ShortDeviceResponseToJSONTyped(value?: Omit<ShortDeviceResponse, 'full_name'|'url'> | null, ignoreDiscriminator: boolean = false): any {
123
+ if (value == null) {
124
+ return value;
125
+ }
126
+
127
+ return {
128
+
129
+ 'codename': value['codename'],
130
+ 'model_name': value['modelName'],
131
+ 'oem_name': value['oemName'],
132
+ 'id': value['id'],
133
+ 'codenames': value['codenames'],
134
+ 'model_names': value['modelNames'],
135
+ 'supported': value['supported'],
136
+ };
137
+ }
138
+
@@ -0,0 +1,174 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ReleaseType } from './ReleaseType';
17
+ import {
18
+ ReleaseTypeFromJSON,
19
+ ReleaseTypeFromJSONTyped,
20
+ ReleaseTypeToJSON,
21
+ ReleaseTypeToJSONTyped,
22
+ } from './ReleaseType';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ShortReleaseResponse
28
+ */
29
+ export interface ShortReleaseResponse {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof ShortReleaseResponse
34
+ * @deprecated
35
+ */
36
+ size: number;
37
+ /**
38
+ * Release ID, that's how we indentify the release in the infrastructure
39
+ * @type {string}
40
+ * @memberof ShortReleaseResponse
41
+ */
42
+ id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ShortReleaseResponse
47
+ */
48
+ buildId?: string | null;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof ShortReleaseResponse
53
+ */
54
+ filename: string;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ShortReleaseResponse
59
+ */
60
+ variant: string;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof ShortReleaseResponse
65
+ */
66
+ deviceId: string;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof ShortReleaseResponse
71
+ */
72
+ date: number;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof ShortReleaseResponse
77
+ */
78
+ md5: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof ShortReleaseResponse
83
+ */
84
+ version: string;
85
+ /**
86
+ *
87
+ * @type {ReleaseType}
88
+ * @memberof ShortReleaseResponse
89
+ */
90
+ type: ReleaseType;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ShortReleaseResponse
95
+ */
96
+ maintainerId?: string | null;
97
+ /**
98
+ *
99
+ * @type {boolean}
100
+ * @memberof ShortReleaseResponse
101
+ */
102
+ archived: boolean;
103
+ }
104
+
105
+
106
+
107
+ /**
108
+ * Check if a given object implements the ShortReleaseResponse interface.
109
+ */
110
+ export function instanceOfShortReleaseResponse(value: object): value is ShortReleaseResponse {
111
+ if (!('size' in value) || value['size'] === undefined) return false;
112
+ if (!('id' in value) || value['id'] === undefined) return false;
113
+ if (!('filename' in value) || value['filename'] === undefined) return false;
114
+ if (!('variant' in value) || value['variant'] === undefined) return false;
115
+ if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
116
+ if (!('date' in value) || value['date'] === undefined) return false;
117
+ if (!('md5' in value) || value['md5'] === undefined) return false;
118
+ if (!('version' in value) || value['version'] === undefined) return false;
119
+ if (!('type' in value) || value['type'] === undefined) return false;
120
+ if (!('archived' in value) || value['archived'] === undefined) return false;
121
+ return true;
122
+ }
123
+
124
+ export function ShortReleaseResponseFromJSON(json: any): ShortReleaseResponse {
125
+ return ShortReleaseResponseFromJSONTyped(json, false);
126
+ }
127
+
128
+ export function ShortReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShortReleaseResponse {
129
+ if (json == null) {
130
+ return json;
131
+ }
132
+ return {
133
+
134
+ 'size': json['size'],
135
+ 'id': json['id'],
136
+ 'buildId': json['build_id'] == null ? undefined : json['build_id'],
137
+ 'filename': json['filename'],
138
+ 'variant': json['variant'],
139
+ 'deviceId': json['device_id'],
140
+ 'date': json['date'],
141
+ 'md5': json['md5'],
142
+ 'version': json['version'],
143
+ 'type': ReleaseTypeFromJSON(json['type']),
144
+ 'maintainerId': json['maintainer_id'] == null ? undefined : json['maintainer_id'],
145
+ 'archived': json['archived'],
146
+ };
147
+ }
148
+
149
+ export function ShortReleaseResponseToJSON(json: any): ShortReleaseResponse {
150
+ return ShortReleaseResponseToJSONTyped(json, false);
151
+ }
152
+
153
+ export function ShortReleaseResponseToJSONTyped(value?: ShortReleaseResponse | null, ignoreDiscriminator: boolean = false): any {
154
+ if (value == null) {
155
+ return value;
156
+ }
157
+
158
+ return {
159
+
160
+ 'size': value['size'],
161
+ 'id': value['id'],
162
+ 'build_id': value['buildId'],
163
+ 'filename': value['filename'],
164
+ 'variant': value['variant'],
165
+ 'device_id': value['deviceId'],
166
+ 'date': value['date'],
167
+ 'md5': value['md5'],
168
+ 'version': value['version'],
169
+ 'type': ReleaseTypeToJSON(value['type']),
170
+ 'maintainer_id': value['maintainerId'],
171
+ 'archived': value['archived'],
172
+ };
173
+ }
174
+
@@ -0,0 +1,92 @@
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
+ import { mapValues } from '../runtime';
16
+ import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
17
+ import {
18
+ ValidationErrorLocInnerFromJSON,
19
+ ValidationErrorLocInnerFromJSONTyped,
20
+ ValidationErrorLocInnerToJSON,
21
+ ValidationErrorLocInnerToJSONTyped,
22
+ } from './ValidationErrorLocInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ValidationError
28
+ */
29
+ export interface ValidationError {
30
+ /**
31
+ *
32
+ * @type {Array<ValidationErrorLocInner>}
33
+ * @memberof ValidationError
34
+ */
35
+ loc: Array<ValidationErrorLocInner>;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ValidationError
40
+ */
41
+ msg: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ValidationError
46
+ */
47
+ type: string;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the ValidationError interface.
52
+ */
53
+ export function instanceOfValidationError(value: object): value is ValidationError {
54
+ if (!('loc' in value) || value['loc'] === undefined) return false;
55
+ if (!('msg' in value) || value['msg'] === undefined) return false;
56
+ if (!('type' in value) || value['type'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function ValidationErrorFromJSON(json: any): ValidationError {
61
+ return ValidationErrorFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
71
+ 'msg': json['msg'],
72
+ 'type': json['type'],
73
+ };
74
+ }
75
+
76
+ export function ValidationErrorToJSON(json: any): ValidationError {
77
+ return ValidationErrorToJSONTyped(json, false);
78
+ }
79
+
80
+ export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
88
+ 'msg': value['msg'],
89
+ 'type': value['type'],
90
+ };
91
+ }
92
+
@@ -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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ValidationErrorLocInner
20
+ */
21
+ export interface ValidationErrorLocInner {
22
+ }
23
+
24
+ /**
25
+ * Check if a given object implements the ValidationErrorLocInner interface.
26
+ */
27
+ export function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner {
28
+ return true;
29
+ }
30
+
31
+ export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
32
+ return ValidationErrorLocInnerFromJSONTyped(json, false);
33
+ }
34
+
35
+ export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
36
+ return json;
37
+ }
38
+
39
+ export function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner {
40
+ return ValidationErrorLocInnerToJSONTyped(json, false);
41
+ }
42
+
43
+ export function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator: boolean = false): any {
44
+ return value;
45
+ }
46
+
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './DeviceResponse';
4
+ export * from './GlobalStatsAggregationModel';
5
+ export * from './HTTPValidationError';
6
+ export * from './ListResponseReleaseResponse';
7
+ export * from './ListResponseShortDeviceResponse';
8
+ export * from './ListResponseShortReleaseResponse';
9
+ export * from './ListResponseStr';
10
+ export * from './MaintainerShortModel';
11
+ export * from './PasteInput';
12
+ export * from './PasteOutput';
13
+ export * from './RecoveryImgResponse';
14
+ export * from './ReleaseGroupsResponse';
15
+ export * from './ReleaseResponse';
16
+ export * from './ReleaseType';
17
+ export * from './ReleasesSort';
18
+ export * from './ResponseGetReleases';
19
+ export * from './ShortDeviceResponse';
20
+ export * from './ShortReleaseResponse';
21
+ export * from './ValidationError';
22
+ export * from './ValidationErrorLocInner';