@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,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 ListResponseStr interface.
16
+ */
17
+ export function instanceOfListResponseStr(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 ListResponseStrFromJSON(json) {
25
+ return ListResponseStrFromJSONTyped(json, false);
26
+ }
27
+ export function ListResponseStrFromJSONTyped(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 ListResponseStrToJSON(json) {
37
+ return ListResponseStrToJSONTyped(json, false);
38
+ }
39
+ export function ListResponseStrToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'data': value['data'],
45
+ };
46
+ }
@@ -0,0 +1,44 @@
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 MaintainerShortModel
16
+ */
17
+ export interface MaintainerShortModel {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MaintainerShortModel
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MaintainerShortModel
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof MaintainerShortModel
34
+ */
35
+ username: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the MaintainerShortModel interface.
39
+ */
40
+ export declare function instanceOfMaintainerShortModel(value: object): value is MaintainerShortModel;
41
+ export declare function MaintainerShortModelFromJSON(json: any): MaintainerShortModel;
42
+ export declare function MaintainerShortModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): MaintainerShortModel;
43
+ export declare function MaintainerShortModelToJSON(json: any): MaintainerShortModel;
44
+ export declare function MaintainerShortModelToJSONTyped(value?: MaintainerShortModel | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 MaintainerShortModel interface.
16
+ */
17
+ export function instanceOfMaintainerShortModel(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('username' in value) || value['username'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function MaintainerShortModelFromJSON(json) {
27
+ return MaintainerShortModelFromJSONTyped(json, false);
28
+ }
29
+ export function MaintainerShortModelFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'name': json['name'],
36
+ 'username': json['username'],
37
+ };
38
+ }
39
+ export function MaintainerShortModelToJSON(json) {
40
+ return MaintainerShortModelToJSONTyped(json, false);
41
+ }
42
+ export function MaintainerShortModelToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ 'username': value['username'],
50
+ };
51
+ }
@@ -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 PasteInput
16
+ */
17
+ export interface PasteInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PasteInput
22
+ */
23
+ id?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PasteInput
28
+ */
29
+ content: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PasteInput
34
+ */
35
+ ipAddress: string;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof PasteInput
40
+ */
41
+ createdAt?: Date;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PasteInput interface.
45
+ */
46
+ export declare function instanceOfPasteInput(value: object): value is PasteInput;
47
+ export declare function PasteInputFromJSON(json: any): PasteInput;
48
+ export declare function PasteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasteInput;
49
+ export declare function PasteInputToJSON(json: any): PasteInput;
50
+ export declare function PasteInputToJSONTyped(value?: PasteInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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 PasteInput interface.
16
+ */
17
+ export function instanceOfPasteInput(value) {
18
+ if (!('content' in value) || value['content'] === undefined)
19
+ return false;
20
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PasteInputFromJSON(json) {
25
+ return PasteInputFromJSONTyped(json, false);
26
+ }
27
+ export function PasteInputFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['_id'] == null ? undefined : json['_id'],
33
+ 'content': json['content'],
34
+ 'ipAddress': json['ip_address'],
35
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
36
+ };
37
+ }
38
+ export function PasteInputToJSON(json) {
39
+ return PasteInputToJSONTyped(json, false);
40
+ }
41
+ export function PasteInputToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ '_id': value['id'],
47
+ 'content': value['content'],
48
+ 'ip_address': value['ipAddress'],
49
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
50
+ };
51
+ }
@@ -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,51 @@
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 PasteOutput interface.
16
+ */
17
+ export function instanceOfPasteOutput(value) {
18
+ if (!('content' in value) || value['content'] === undefined)
19
+ return false;
20
+ if (!('ipAddress' in value) || value['ipAddress'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PasteOutputFromJSON(json) {
25
+ return PasteOutputFromJSONTyped(json, false);
26
+ }
27
+ export function PasteOutputFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['_id'] == null ? undefined : json['_id'],
33
+ 'content': json['content'],
34
+ 'ipAddress': json['ip_address'],
35
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
36
+ };
37
+ }
38
+ export function PasteOutputToJSON(json) {
39
+ return PasteOutputToJSONTyped(json, false);
40
+ }
41
+ export function PasteOutputToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ '_id': value['id'],
47
+ 'content': value['content'],
48
+ 'ip_address': value['ipAddress'],
49
+ 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
50
+ };
51
+ }
@@ -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,47 @@
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 RecoveryImgResponse interface.
16
+ */
17
+ export function instanceOfRecoveryImgResponse(value) {
18
+ if (!('size' in value) || value['size'] === undefined)
19
+ return false;
20
+ if (!('md5' in value) || value['md5'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function RecoveryImgResponseFromJSON(json) {
25
+ return RecoveryImgResponseFromJSONTyped(json, false);
26
+ }
27
+ export function RecoveryImgResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'size': json['size'],
33
+ 'md5': json['md5'],
34
+ };
35
+ }
36
+ export function RecoveryImgResponseToJSON(json) {
37
+ return RecoveryImgResponseToJSONTyped(json, false);
38
+ }
39
+ export function RecoveryImgResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'size': value['size'],
45
+ 'md5': value['md5'],
46
+ };
47
+ }
@@ -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,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
+ * Check if a given object implements the ReleaseGroupsResponse interface.
16
+ */
17
+ export function instanceOfReleaseGroupsResponse(value) {
18
+ if (!('data' in value) || value['data'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ReleaseGroupsResponseFromJSON(json) {
23
+ return ReleaseGroupsResponseFromJSONTyped(json, false);
24
+ }
25
+ export function ReleaseGroupsResponseFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'data': json['data'],
31
+ };
32
+ }
33
+ export function ReleaseGroupsResponseToJSON(json) {
34
+ return ReleaseGroupsResponseToJSONTyped(json, false);
35
+ }
36
+ export function ReleaseGroupsResponseToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'data': value['data'],
42
+ };
43
+ }
@@ -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;