@orangefox-recovery/foxclient 6.0.6 → 6.0.8

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 (184) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +11 -3
  3. package/dist/apis/DeviceApi.d.ts +1 -1
  4. package/dist/apis/DeviceApi.js +1 -1
  5. package/dist/apis/PasteApi.d.ts +1 -1
  6. package/dist/apis/PasteApi.js +1 -1
  7. package/dist/apis/ReleaseApi.d.ts +6 -6
  8. package/dist/apis/ReleaseApi.js +2 -2
  9. package/dist/apis/ReportApi.d.ts +1 -1
  10. package/dist/apis/ReportApi.js +1 -1
  11. package/dist/apis/StatsApi.d.ts +1 -1
  12. package/dist/apis/StatsApi.js +1 -1
  13. package/dist/apis/UptimeApi.d.ts +59 -0
  14. package/dist/apis/UptimeApi.js +70 -0
  15. package/dist/apis/index.d.ts +1 -0
  16. package/dist/apis/index.js +1 -0
  17. package/dist/esm/apis/DeviceApi.d.ts +1 -1
  18. package/dist/esm/apis/DeviceApi.js +1 -1
  19. package/dist/esm/apis/PasteApi.d.ts +1 -1
  20. package/dist/esm/apis/PasteApi.js +1 -1
  21. package/dist/esm/apis/ReleaseApi.d.ts +6 -6
  22. package/dist/esm/apis/ReleaseApi.js +3 -3
  23. package/dist/esm/apis/ReportApi.d.ts +1 -1
  24. package/dist/esm/apis/ReportApi.js +1 -1
  25. package/dist/esm/apis/StatsApi.d.ts +1 -1
  26. package/dist/esm/apis/StatsApi.js +1 -1
  27. package/dist/esm/apis/UptimeApi.d.ts +59 -0
  28. package/dist/esm/apis/UptimeApi.js +66 -0
  29. package/dist/esm/apis/index.d.ts +1 -0
  30. package/dist/esm/apis/index.js +1 -0
  31. package/dist/esm/models/DeviceResponse.d.ts +1 -1
  32. package/dist/esm/models/DeviceResponse.js +1 -1
  33. package/dist/esm/models/ErrorResponse.d.ts +1 -1
  34. package/dist/esm/models/ErrorResponse.js +1 -1
  35. package/dist/esm/models/GlobalStatsResponse.d.ts +1 -1
  36. package/dist/esm/models/GlobalStatsResponse.js +1 -1
  37. package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
  38. package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
  39. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
  40. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +9 -1
  41. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
  42. package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
  43. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
  44. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +1 -1
  45. package/dist/esm/models/ListResponseString.d.ts +1 -1
  46. package/dist/esm/models/ListResponseString.js +1 -1
  47. package/dist/esm/models/MaintainerShortResponse.d.ts +1 -1
  48. package/dist/esm/models/MaintainerShortResponse.js +1 -1
  49. package/dist/esm/models/NewReportRequest.d.ts +1 -1
  50. package/dist/esm/models/NewReportRequest.js +1 -1
  51. package/dist/esm/models/PasteInput.d.ts +1 -1
  52. package/dist/esm/models/PasteInput.js +1 -1
  53. package/dist/esm/models/PasteResponse.d.ts +1 -1
  54. package/dist/esm/models/PasteResponse.js +1 -1
  55. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  56. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  57. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  58. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  59. package/dist/esm/models/ReleaseListResponse.d.ts +29 -0
  60. package/dist/esm/models/ReleaseListResponse.js +51 -0
  61. package/dist/esm/models/ReleaseResponse.d.ts +13 -1
  62. package/dist/esm/models/ReleaseResponse.js +9 -1
  63. package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
  64. package/dist/esm/models/ShortDeviceResponse.js +1 -1
  65. package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
  66. package/dist/esm/models/ShortReleaseResponse.js +1 -1
  67. package/dist/esm/models/TokenResponse.d.ts +1 -1
  68. package/dist/esm/models/TokenResponse.js +1 -1
  69. package/dist/esm/models/UptimeHealth.d.ts +57 -0
  70. package/dist/esm/models/UptimeHealth.js +60 -0
  71. package/dist/esm/models/UptimeHealthHost.d.ts +50 -0
  72. package/dist/esm/models/UptimeHealthHost.js +53 -0
  73. package/dist/esm/models/UptimeMonitor.d.ts +74 -0
  74. package/dist/esm/models/UptimeMonitor.js +63 -0
  75. package/dist/esm/models/UptimeMonitorGroup.d.ts +39 -0
  76. package/dist/esm/models/UptimeMonitorGroup.js +48 -0
  77. package/dist/esm/models/UptimeMonitors.d.ts +39 -0
  78. package/dist/esm/models/UptimeMonitors.js +48 -0
  79. package/dist/esm/models/UptimeResponse.d.ts +46 -0
  80. package/dist/esm/models/UptimeResponse.js +49 -0
  81. package/dist/esm/models/index.d.ts +7 -0
  82. package/dist/esm/models/index.js +7 -0
  83. package/dist/esm/runtime.d.ts +1 -1
  84. package/dist/esm/runtime.js +1 -1
  85. package/dist/models/DeviceResponse.d.ts +1 -1
  86. package/dist/models/DeviceResponse.js +1 -1
  87. package/dist/models/ErrorResponse.d.ts +1 -1
  88. package/dist/models/ErrorResponse.js +1 -1
  89. package/dist/models/GlobalStatsResponse.d.ts +1 -1
  90. package/dist/models/GlobalStatsResponse.js +1 -1
  91. package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
  92. package/dist/models/ListResponseReleaseResponse.js +1 -1
  93. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
  94. package/dist/models/ListResponseReleaseResponseDataInner.js +9 -1
  95. package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
  96. package/dist/models/ListResponseShortDeviceResponse.js +1 -1
  97. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
  98. package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
  99. package/dist/models/ListResponseString.d.ts +1 -1
  100. package/dist/models/ListResponseString.js +1 -1
  101. package/dist/models/MaintainerShortResponse.d.ts +1 -1
  102. package/dist/models/MaintainerShortResponse.js +1 -1
  103. package/dist/models/NewReportRequest.d.ts +1 -1
  104. package/dist/models/NewReportRequest.js +1 -1
  105. package/dist/models/PasteInput.d.ts +1 -1
  106. package/dist/models/PasteInput.js +1 -1
  107. package/dist/models/PasteResponse.d.ts +1 -1
  108. package/dist/models/PasteResponse.js +1 -1
  109. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  110. package/dist/models/RecoveryImgResponse.js +1 -1
  111. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  112. package/dist/models/ReleaseGroupsResponse.js +1 -1
  113. package/dist/models/ReleaseListResponse.d.ts +29 -0
  114. package/dist/models/ReleaseListResponse.js +57 -0
  115. package/dist/models/ReleaseResponse.d.ts +13 -1
  116. package/dist/models/ReleaseResponse.js +9 -1
  117. package/dist/models/ShortDeviceResponse.d.ts +1 -1
  118. package/dist/models/ShortDeviceResponse.js +1 -1
  119. package/dist/models/ShortReleaseResponse.d.ts +1 -1
  120. package/dist/models/ShortReleaseResponse.js +1 -1
  121. package/dist/models/TokenResponse.d.ts +1 -1
  122. package/dist/models/TokenResponse.js +1 -1
  123. package/dist/models/UptimeHealth.d.ts +57 -0
  124. package/dist/models/UptimeHealth.js +67 -0
  125. package/dist/models/UptimeHealthHost.d.ts +50 -0
  126. package/dist/models/UptimeHealthHost.js +60 -0
  127. package/dist/models/UptimeMonitor.d.ts +74 -0
  128. package/dist/models/UptimeMonitor.js +70 -0
  129. package/dist/models/UptimeMonitorGroup.d.ts +39 -0
  130. package/dist/models/UptimeMonitorGroup.js +55 -0
  131. package/dist/models/UptimeMonitors.d.ts +39 -0
  132. package/dist/models/UptimeMonitors.js +55 -0
  133. package/dist/models/UptimeResponse.d.ts +46 -0
  134. package/dist/models/UptimeResponse.js +56 -0
  135. package/dist/models/index.d.ts +7 -0
  136. package/dist/models/index.js +7 -0
  137. package/dist/runtime.d.ts +1 -1
  138. package/dist/runtime.js +1 -1
  139. package/docs/ListResponseReleaseResponseDataInner.md +4 -0
  140. package/docs/ReleaseApi.md +2 -2
  141. package/docs/ReleaseListResponse.md +37 -0
  142. package/docs/ReleaseResponse.md +4 -0
  143. package/docs/UptimeApi.md +69 -0
  144. package/docs/UptimeHealth.md +43 -0
  145. package/docs/UptimeHealthHost.md +41 -0
  146. package/docs/UptimeMonitor.md +49 -0
  147. package/docs/UptimeMonitorGroup.md +37 -0
  148. package/docs/UptimeMonitors.md +37 -0
  149. package/docs/UptimeResponse.md +39 -0
  150. package/package.json +1 -1
  151. package/src/apis/DeviceApi.ts +1 -1
  152. package/src/apis/PasteApi.ts +1 -1
  153. package/src/apis/ReleaseApi.ts +9 -6
  154. package/src/apis/ReportApi.ts +1 -1
  155. package/src/apis/StatsApi.ts +1 -1
  156. package/src/apis/UptimeApi.ts +103 -0
  157. package/src/apis/index.ts +1 -0
  158. package/src/models/DeviceResponse.ts +1 -1
  159. package/src/models/ErrorResponse.ts +1 -1
  160. package/src/models/GlobalStatsResponse.ts +1 -1
  161. package/src/models/ListResponseReleaseResponse.ts +1 -1
  162. package/src/models/ListResponseReleaseResponseDataInner.ts +19 -1
  163. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  164. package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
  165. package/src/models/ListResponseString.ts +1 -1
  166. package/src/models/MaintainerShortResponse.ts +1 -1
  167. package/src/models/NewReportRequest.ts +1 -1
  168. package/src/models/PasteInput.ts +1 -1
  169. package/src/models/PasteResponse.ts +1 -1
  170. package/src/models/RecoveryImgResponse.ts +1 -1
  171. package/src/models/ReleaseGroupsResponse.ts +1 -1
  172. package/src/models/ReleaseListResponse.ts +82 -0
  173. package/src/models/ReleaseResponse.ts +19 -1
  174. package/src/models/ShortDeviceResponse.ts +1 -1
  175. package/src/models/ShortReleaseResponse.ts +1 -1
  176. package/src/models/TokenResponse.ts +1 -1
  177. package/src/models/UptimeHealth.ts +110 -0
  178. package/src/models/UptimeHealthHost.ts +92 -0
  179. package/src/models/UptimeMonitor.ts +125 -0
  180. package/src/models/UptimeMonitorGroup.ts +83 -0
  181. package/src/models/UptimeMonitors.ts +83 -0
  182. package/src/models/UptimeResponse.ts +97 -0
  183. package/src/models/index.ts +7 -0
  184. package/src/runtime.ts +1 -1
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 6.0.6
5
+ * The version of the OpenAPI document: 6.0.8
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Fox API
5
5
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
6
  *
7
- * The version of the OpenAPI document: 6.0.6
7
+ * The version of the OpenAPI document: 6.0.8
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.8
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 { UptimeHealthHost } from './UptimeHealthHost';
13
+ /**
14
+ * FoxHealth summary (without internal endpoint addresses).
15
+ * @export
16
+ * @interface UptimeHealth
17
+ */
18
+ export interface UptimeHealth {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof UptimeHealth
23
+ */
24
+ allUp: boolean;
25
+ /**
26
+ *
27
+ * @type {Array<UptimeHealthHost>}
28
+ * @memberof UptimeHealth
29
+ */
30
+ hosts: Array<UptimeHealthHost>;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof UptimeHealth
35
+ */
36
+ requiredUp: boolean;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof UptimeHealth
41
+ */
42
+ role: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof UptimeHealth
47
+ */
48
+ status: string;
49
+ }
50
+ /**
51
+ * Check if a given object implements the UptimeHealth interface.
52
+ */
53
+ export declare function instanceOfUptimeHealth(value: object): value is UptimeHealth;
54
+ export declare function UptimeHealthFromJSON(json: any): UptimeHealth;
55
+ export declare function UptimeHealthFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeHealth;
56
+ export declare function UptimeHealthToJSON(json: any): UptimeHealth;
57
+ export declare function UptimeHealthToJSONTyped(value?: UptimeHealth | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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: 6.0.8
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { UptimeHealthHostFromJSON, UptimeHealthHostToJSON, } from './UptimeHealthHost';
15
+ /**
16
+ * Check if a given object implements the UptimeHealth interface.
17
+ */
18
+ export function instanceOfUptimeHealth(value) {
19
+ if (!('allUp' in value) || value['allUp'] === undefined)
20
+ return false;
21
+ if (!('hosts' in value) || value['hosts'] === undefined)
22
+ return false;
23
+ if (!('requiredUp' in value) || value['requiredUp'] === undefined)
24
+ return false;
25
+ if (!('role' in value) || value['role'] === undefined)
26
+ return false;
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function UptimeHealthFromJSON(json) {
32
+ return UptimeHealthFromJSONTyped(json, false);
33
+ }
34
+ export function UptimeHealthFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'allUp': json['allUp'],
40
+ 'hosts': (json['hosts'].map(UptimeHealthHostFromJSON)),
41
+ 'requiredUp': json['requiredUp'],
42
+ 'role': json['role'],
43
+ 'status': json['status'],
44
+ };
45
+ }
46
+ export function UptimeHealthToJSON(json) {
47
+ return UptimeHealthToJSONTyped(json, false);
48
+ }
49
+ export function UptimeHealthToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'allUp': value['allUp'],
55
+ 'hosts': (value['hosts'].map(UptimeHealthHostToJSON)),
56
+ 'requiredUp': value['requiredUp'],
57
+ 'role': value['role'],
58
+ 'status': value['status'],
59
+ };
60
+ }
@@ -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: 6.0.8
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
+ * A single FoxHealth host (the internal endpoint is intentionally omitted).
14
+ * @export
15
+ * @interface UptimeHealthHost
16
+ */
17
+ export interface UptimeHealthHost {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UptimeHealthHost
22
+ */
23
+ errorText?: string | null;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof UptimeHealthHost
28
+ */
29
+ isOk: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof UptimeHealthHost
34
+ */
35
+ isOptional: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof UptimeHealthHost
40
+ */
41
+ nickname: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the UptimeHealthHost interface.
45
+ */
46
+ export declare function instanceOfUptimeHealthHost(value: object): value is UptimeHealthHost;
47
+ export declare function UptimeHealthHostFromJSON(json: any): UptimeHealthHost;
48
+ export declare function UptimeHealthHostFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeHealthHost;
49
+ export declare function UptimeHealthHostToJSON(json: any): UptimeHealthHost;
50
+ export declare function UptimeHealthHostToJSONTyped(value?: UptimeHealthHost | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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: 6.0.8
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 UptimeHealthHost interface.
16
+ */
17
+ export function instanceOfUptimeHealthHost(value) {
18
+ if (!('isOk' in value) || value['isOk'] === undefined)
19
+ return false;
20
+ if (!('isOptional' in value) || value['isOptional'] === undefined)
21
+ return false;
22
+ if (!('nickname' in value) || value['nickname'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function UptimeHealthHostFromJSON(json) {
27
+ return UptimeHealthHostFromJSONTyped(json, false);
28
+ }
29
+ export function UptimeHealthHostFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'errorText': json['errorText'] == null ? undefined : json['errorText'],
35
+ 'isOk': json['isOk'],
36
+ 'isOptional': json['isOptional'],
37
+ 'nickname': json['nickname'],
38
+ };
39
+ }
40
+ export function UptimeHealthHostToJSON(json) {
41
+ return UptimeHealthHostToJSONTyped(json, false);
42
+ }
43
+ export function UptimeHealthHostToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'errorText': value['errorText'],
49
+ 'isOk': value['isOk'],
50
+ 'isOptional': value['isOptional'],
51
+ 'nickname': value['nickname'],
52
+ };
53
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.8
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
+ * A single monitor with its current heartbeat and uptime ratio.
14
+ * @export
15
+ * @interface UptimeMonitor
16
+ */
17
+ export interface UptimeMonitor {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UptimeMonitor
22
+ */
23
+ id: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UptimeMonitor
28
+ */
29
+ lastHeartbeat?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UptimeMonitor
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UptimeMonitor
40
+ */
41
+ ping?: number | null;
42
+ /**
43
+ * "up", "down", "pending", "maintenance" or "unknown".
44
+ * @type {string}
45
+ * @memberof UptimeMonitor
46
+ */
47
+ status: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof UptimeMonitor
52
+ */
53
+ type: string;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof UptimeMonitor
58
+ */
59
+ uptime24h?: number | null;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof UptimeMonitor
64
+ */
65
+ url?: string | null;
66
+ }
67
+ /**
68
+ * Check if a given object implements the UptimeMonitor interface.
69
+ */
70
+ export declare function instanceOfUptimeMonitor(value: object): value is UptimeMonitor;
71
+ export declare function UptimeMonitorFromJSON(json: any): UptimeMonitor;
72
+ export declare function UptimeMonitorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeMonitor;
73
+ export declare function UptimeMonitorToJSON(json: any): UptimeMonitor;
74
+ export declare function UptimeMonitorToJSONTyped(value?: UptimeMonitor | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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: 6.0.8
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 UptimeMonitor interface.
16
+ */
17
+ export function instanceOfUptimeMonitor(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 (!('status' in value) || value['status'] === undefined)
23
+ return false;
24
+ if (!('type' in value) || value['type'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function UptimeMonitorFromJSON(json) {
29
+ return UptimeMonitorFromJSONTyped(json, false);
30
+ }
31
+ export function UptimeMonitorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'lastHeartbeat': json['lastHeartbeat'] == null ? undefined : json['lastHeartbeat'],
38
+ 'name': json['name'],
39
+ 'ping': json['ping'] == null ? undefined : json['ping'],
40
+ 'status': json['status'],
41
+ 'type': json['type'],
42
+ 'uptime24h': json['uptime24h'] == null ? undefined : json['uptime24h'],
43
+ 'url': json['url'] == null ? undefined : json['url'],
44
+ };
45
+ }
46
+ export function UptimeMonitorToJSON(json) {
47
+ return UptimeMonitorToJSONTyped(json, false);
48
+ }
49
+ export function UptimeMonitorToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'lastHeartbeat': value['lastHeartbeat'],
56
+ 'name': value['name'],
57
+ 'ping': value['ping'],
58
+ 'status': value['status'],
59
+ 'type': value['type'],
60
+ 'uptime24h': value['uptime24h'],
61
+ 'url': value['url'],
62
+ };
63
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.8
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 { UptimeMonitor } from './UptimeMonitor';
13
+ /**
14
+ * A group of monitors from the Uptime Kuma status page.
15
+ * @export
16
+ * @interface UptimeMonitorGroup
17
+ */
18
+ export interface UptimeMonitorGroup {
19
+ /**
20
+ *
21
+ * @type {Array<UptimeMonitor>}
22
+ * @memberof UptimeMonitorGroup
23
+ */
24
+ monitors: Array<UptimeMonitor>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UptimeMonitorGroup
29
+ */
30
+ name: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UptimeMonitorGroup interface.
34
+ */
35
+ export declare function instanceOfUptimeMonitorGroup(value: object): value is UptimeMonitorGroup;
36
+ export declare function UptimeMonitorGroupFromJSON(json: any): UptimeMonitorGroup;
37
+ export declare function UptimeMonitorGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeMonitorGroup;
38
+ export declare function UptimeMonitorGroupToJSON(json: any): UptimeMonitorGroup;
39
+ export declare function UptimeMonitorGroupToJSONTyped(value?: UptimeMonitorGroup | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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: 6.0.8
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { UptimeMonitorFromJSON, UptimeMonitorToJSON, } from './UptimeMonitor';
15
+ /**
16
+ * Check if a given object implements the UptimeMonitorGroup interface.
17
+ */
18
+ export function instanceOfUptimeMonitorGroup(value) {
19
+ if (!('monitors' in value) || value['monitors'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function UptimeMonitorGroupFromJSON(json) {
26
+ return UptimeMonitorGroupFromJSONTyped(json, false);
27
+ }
28
+ export function UptimeMonitorGroupFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'monitors': (json['monitors'].map(UptimeMonitorFromJSON)),
34
+ 'name': json['name'],
35
+ };
36
+ }
37
+ export function UptimeMonitorGroupToJSON(json) {
38
+ return UptimeMonitorGroupToJSONTyped(json, false);
39
+ }
40
+ export function UptimeMonitorGroupToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'monitors': (value['monitors'].map(UptimeMonitorToJSON)),
46
+ 'name': value['name'],
47
+ };
48
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.8
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 { UptimeMonitorGroup } from './UptimeMonitorGroup';
13
+ /**
14
+ * Uptime Kuma status page, grouped by monitor group.
15
+ * @export
16
+ * @interface UptimeMonitors
17
+ */
18
+ export interface UptimeMonitors {
19
+ /**
20
+ *
21
+ * @type {Array<UptimeMonitorGroup>}
22
+ * @memberof UptimeMonitors
23
+ */
24
+ groups: Array<UptimeMonitorGroup>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UptimeMonitors
29
+ */
30
+ title: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UptimeMonitors interface.
34
+ */
35
+ export declare function instanceOfUptimeMonitors(value: object): value is UptimeMonitors;
36
+ export declare function UptimeMonitorsFromJSON(json: any): UptimeMonitors;
37
+ export declare function UptimeMonitorsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeMonitors;
38
+ export declare function UptimeMonitorsToJSON(json: any): UptimeMonitors;
39
+ export declare function UptimeMonitorsToJSONTyped(value?: UptimeMonitors | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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: 6.0.8
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { UptimeMonitorGroupFromJSON, UptimeMonitorGroupToJSON, } from './UptimeMonitorGroup';
15
+ /**
16
+ * Check if a given object implements the UptimeMonitors interface.
17
+ */
18
+ export function instanceOfUptimeMonitors(value) {
19
+ if (!('groups' in value) || value['groups'] === undefined)
20
+ return false;
21
+ if (!('title' in value) || value['title'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function UptimeMonitorsFromJSON(json) {
26
+ return UptimeMonitorsFromJSONTyped(json, false);
27
+ }
28
+ export function UptimeMonitorsFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'groups': (json['groups'].map(UptimeMonitorGroupFromJSON)),
34
+ 'title': json['title'],
35
+ };
36
+ }
37
+ export function UptimeMonitorsToJSON(json) {
38
+ return UptimeMonitorsToJSONTyped(json, false);
39
+ }
40
+ export function UptimeMonitorsToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'groups': (value['groups'].map(UptimeMonitorGroupToJSON)),
46
+ 'title': value['title'],
47
+ };
48
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Fox API
3
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
+ *
5
+ * The version of the OpenAPI document: 6.0.8
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 { UptimeHealth } from './UptimeHealth';
13
+ import type { UptimeMonitors } from './UptimeMonitors';
14
+ /**
15
+ * Aggregated infrastructure status returned by `GET /uptime`.
16
+ * @export
17
+ * @interface UptimeResponse
18
+ */
19
+ export interface UptimeResponse {
20
+ /**
21
+ * FoxHealth result, or null if that upstream is unavailable.
22
+ * @type {UptimeHealth}
23
+ * @memberof UptimeResponse
24
+ */
25
+ health?: UptimeHealth | null;
26
+ /**
27
+ * Uptime Kuma status page result, or null if that upstream is unavailable.
28
+ * @type {UptimeMonitors}
29
+ * @memberof UptimeResponse
30
+ */
31
+ monitors?: UptimeMonitors | null;
32
+ /**
33
+ * Overall status: "healthy", "degraded" or "down".
34
+ * @type {string}
35
+ * @memberof UptimeResponse
36
+ */
37
+ status: string;
38
+ }
39
+ /**
40
+ * Check if a given object implements the UptimeResponse interface.
41
+ */
42
+ export declare function instanceOfUptimeResponse(value: object): value is UptimeResponse;
43
+ export declare function UptimeResponseFromJSON(json: any): UptimeResponse;
44
+ export declare function UptimeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UptimeResponse;
45
+ export declare function UptimeResponseToJSON(json: any): UptimeResponse;
46
+ export declare function UptimeResponseToJSONTyped(value?: UptimeResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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: 6.0.8
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { UptimeHealthFromJSON, UptimeHealthToJSON, } from './UptimeHealth';
15
+ import { UptimeMonitorsFromJSON, UptimeMonitorsToJSON, } from './UptimeMonitors';
16
+ /**
17
+ * Check if a given object implements the UptimeResponse interface.
18
+ */
19
+ export function instanceOfUptimeResponse(value) {
20
+ if (!('status' in value) || value['status'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function UptimeResponseFromJSON(json) {
25
+ return UptimeResponseFromJSONTyped(json, false);
26
+ }
27
+ export function UptimeResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'health': json['health'] == null ? undefined : UptimeHealthFromJSON(json['health']),
33
+ 'monitors': json['monitors'] == null ? undefined : UptimeMonitorsFromJSON(json['monitors']),
34
+ 'status': json['status'],
35
+ };
36
+ }
37
+ export function UptimeResponseToJSON(json) {
38
+ return UptimeResponseToJSONTyped(json, false);
39
+ }
40
+ export function UptimeResponseToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'health': UptimeHealthToJSON(value['health']),
46
+ 'monitors': UptimeMonitorsToJSON(value['monitors']),
47
+ 'status': value['status'],
48
+ };
49
+ }
@@ -12,7 +12,14 @@ export * from './PasteInput';
12
12
  export * from './PasteResponse';
13
13
  export * from './RecoveryImgResponse';
14
14
  export * from './ReleaseGroupsResponse';
15
+ export * from './ReleaseListResponse';
15
16
  export * from './ReleaseResponse';
16
17
  export * from './ShortDeviceResponse';
17
18
  export * from './ShortReleaseResponse';
18
19
  export * from './TokenResponse';
20
+ export * from './UptimeHealth';
21
+ export * from './UptimeHealthHost';
22
+ export * from './UptimeMonitor';
23
+ export * from './UptimeMonitorGroup';
24
+ export * from './UptimeMonitors';
25
+ export * from './UptimeResponse';